/* Reset & Body */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: Arial, sans-serif; }
body { background: #fafafa; color: #333; }

/* Header */
header {
  position: relative;
  height: 70vh;
  overflow: hidden;
  text-align: center;
}
.header-bg { position: absolute; inset: 0; z-index: 1; }
.header-bg img {
  width: 100%;
  height: 120%;
  width: 110%;
  object-fit: cover;
  position: relative;
  left: -1%; /* default */
}

header h1 {
  position: absolute;
  bottom: 100px;
  left: 15%;
  transform: translateX(-50%);
  font-size: 5rem;
  font-family: serif;
  color: #ffffff;
  z-index: 2;
  text-shadow: 0 3px 8px rgba(0,0,0,0.8);
}

/* Cart Button */
#cart-btn {
  position: fixed;
  top: 2.5%;
  right: 2%;
  background: linear-gradient(45deg, #b86b2c, #ab050c);
  color: #fff;
  padding: 12px 22px;
  border: none;
  border-radius: 30px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 1000;
  transition: all 0.3s ease;
}
#cart-btn:hover { transform: scale(1.1); }

/* Products */
#products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding: 40px;
  max-width: 1500px;
  margin: auto;
}
.product {
  background: #f7f2ec;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s;
}
.product:hover { transform: translateY(-8px); }

/* Images keep original aspect ratio */
.product img {
  width: 100%;
  height: auto; /* original size preserved */
  max-height: none;
  border-bottom: 1px solid #ddd;
}

.product h3 { margin: 10px 0; color: #333; }
.product p { margin: 6px 0; color: #666; }

/* Bigger Add to Cart button */
.product button {
  margin-top: 12px;
  margin-bottom: 20px;
  background: linear-gradient(45deg, #b86b2c, #ab050c);
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.05rem;
  transition: all 0.3s;
}
.product button:hover { transform: scale(1.05); }

/* Cart Drawer */
#cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 85%;
  height: 100%;
  background: #fff;
  box-shadow: -4px 0 20px rgba(0,0,0,0.3);
  padding: 20px;
  z-index: 2000;
  transform: translateX(100%);
  transition: transform 0.4s ease;
  display: flex;
  flex-direction: column;
}
#cart-drawer.open { transform: translateX(0); }
#cart-drawer h2 { margin-bottom: 15px; color: #b86b2c; }
#cart-items { flex: 1; overflow-y: auto; }
#cart-items div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff8f0;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
#cart-items div button {
  background: #ab050c;
  color: #fff;
  border: none;
  padding: 6px 10px;
  border-radius: 5px;
  cursor: pointer;
}
#cart-items div button:hover { background: #8a0409; }

/* Bigger Checkout Button */
#checkout-btn {
  margin-top: 15px;
  background: linear-gradient(45deg, #b86b2c, #ab050c);
  color: #fff;
  border: none;
  padding: 16px;  /* taller button */
  border-radius: 12px;
  font-weight: bold;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
#checkout-btn:hover { transform: scale(1.05); }

/* Checkout & Order Confirmation */
#checkout-form, #order-confirm {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 350px;
  background: #fff;
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  z-index: 3000;
  display: none;
}
#checkout-form.visible, #order-confirm.visible { display: block; }

#checkout-form h2, #order-confirm h2 { text-align: center; margin-bottom: 20px; color: #b86b2c; }

#checkout-form input, #checkout-form textarea,
#checkout-form button, #order-confirm button {
  width: 100%;
  margin-bottom: 12px;
  padding: 12px;  /* bigger inputs/buttons */
  border-radius: 10px;
  border: 1px solid #ddd;
  font-size: 1rem;
}

#checkout-form button, #order-confirm button {
  background: linear-gradient(45deg, #b86b2c, #ab050c);
  color: #fff;
  border: none;
  font-weight: bold;
  cursor: pointer;
}
#checkout-form button:hover, #order-confirm button:hover { transform: scale(1.05); }

/* Style the comment textarea to match other inputs */
#checkout-form textarea {
  width: 100%;
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-size: 1rem;
  font-family: Arial, sans-serif;
  resize: vertical;
  min-height: 80px;
}

/* Make the comment label consistent with others */
#checkout-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #333;
}

/* Close button for drawer */
#close-cart {
  align-self: flex-end;
  background: #ab050c;
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  margin-bottom: 15px;
}
#close-cart:hover { background: #8a0409; }

/* Scroll for cart items */
#cart-items { max-height: 70vh; overflow-y: auto; }

/* =======================
   Responsive CSS
======================= */
@media (max-width: 768px) {
  #products { padding: 20px; gap: 15px; }
  header h1 { font-size: 2.8rem; bottom: 40px; left: 50%; transform: translateX(-50%); }
  header { height: 35vh; }
  #cart-btn { padding: 10px 16px; font-size: 0.95rem; }
  .product button { padding: 10px 22px; font-size: 1rem; }
  #checkout-btn { padding: 14px; font-size: 1.05rem; }
  #checkout-form, #order-confirm { width: 90%; padding: 20px; }
  #checkout-form input, #checkout-form textarea,
  #checkout-form button, #order-confirm button { font-size: 0.95rem; padding: 10px; }
  header h1 {
    left: 20px;       /* move it to the left */
    transform: none;  /* remove the translateX(-50%) centering */
    font-size: 2.8rem; /* keep mobile font size */
    bottom: 40px;
    text-align: left;
  }
}

@media (max-width: 480px) {
  #products { padding: 15px; gap: 10px; }
  header h1 { font-size: 2rem; bottom: 30px; }
  header { height: 30vh; }
  .product button { padding: 8px 20px; font-size: 0.95rem; }
  #checkout-btn { padding: 12px; font-size: 1rem; }
  #checkout-form, #order-confirm { width: 95%; padding: 15px; }
  #checkout-form input, #checkout-form textarea,
  #checkout-form button, #order-confirm button { font-size: 0.9rem; padding: 8px; }
  header h1 {
    left: 15px;       /* even closer for small phones */
    transform: none;
    font-size: 2rem;
    bottom: 30px;
    text-align: left;
  }
}

/* Flying image clone */
.fly-img {
  position: absolute;
  z-index: 9999;
  width: 80px;
  height: auto;
  pointer-events: none;
  transition: transform 0.7s ease-in-out, opacity 0.7s ease-in-out;
}

/* Bounce effect for cart button */
@keyframes cart-bounce {
  0%, 100% { transform: scale(1); }
  30% { transform: scale(1.3); }
  50% { transform: scale(0.9); }
  70% { transform: scale(1.1); }
}

.cart-bounce {
  animation: cart-bounce 0.6s ease;
}

footer {
  background: #111;
  color: #eee;
  padding: 40px 20px 20px;
  font-size: 0.95rem;
  margin-top: 50px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 30px;
  max-width: 1200px;
  margin: auto;
}

.footer-section {
  flex: 1 1 250px;
}

.footer-section h3 {
  color: #b86b2c;
  margin-bottom: 12px;
}

.footer-section p, .footer-section a {
  color: #ccc;
  text-decoration: none;
  line-height: 1.6;
}

.footer-section a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  border-top: 1px solid #333;
  padding-top: 15px;
  font-size: 0.85rem;
  color: #777;
}

@media (max-width: 600px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 600px) {
  footer {
    padding: 25px 15px 15px;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px; /* smaller space between sections */
  }

  .footer-section {
    flex: 1 1 auto;
    margin-bottom: 10px;
  }

  .footer-section h3 {
    margin-bottom: 8px;
  }

  .footer-bottom {
    margin-top: 20px;
    padding-top: 10px;
    font-size: 0.8rem;
  }
}

header .logo {
  position: absolute;
  bottom: -38%;
  left: 18%;
  transform: translateX(-50%);
  width: 45%; /* adjust this for size */
  height: auto;
  z-index: 2;
}

@media (max-width: 768px) {
  header .logo {
    left: 20%;
    transform: translateX(-50%);
    bottom: -90px;
    width: 220px; /* smaller on mobile */
  }
}

@media (max-width: 480px) {
  header .logo {
    left: 25%;
    transform: translateX(-50%);
    bottom: -2%;
    width: 60%;
  }
}

@media (max-width: 768px) {
  .header-bg img {
    width: 100%; /* zoom in a bit */
    object-fit: cover;
    position: relative;
    left: 0%; /* re-center it after zoom */
  }
}

@media (max-width: 480px) {
  .header-bg img {
    width: 140%; /* zoom in a bit */
    height: 120%;
    object-fit: cover;
    position: relative;
    left: -10%; /* re-center it after zoom */
  }
}

/* =======================
   Social Icons Styling
======================= */
.social-links {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-top: 10px;
}

.social-links a img {
  width: 30px;
  height: 30px;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.social-links a:hover img {
  transform: scale(1.2);
  filter: brightness(1.3);
}

@media (max-width: 600px) {
  .social-links {
    justify-content: center;
    gap: 20px;
  }

  .social-links a img {
    width: 35px;
    height: 35px;
  }
}

/* Help Section */
.help-section {
  text-align: left;
  margin-left: 0px;
  margin-top: -4%;
  position: absolute;
  left: 4%;
  z-index: 5; /* above header background + body */
}
#help-btn {
  background-color: #7c3804b0;
  color: #ffffff;
  border: none;
  padding: 10px 18px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
}

#help-btn:hover {
  background-color: #e6b800;
}

/* The help box popup */
#help-box{
  background-color: #fff8e1;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  position: absolute;
  top: 40px;
  left: 0;
  width: 250px;
  padding: 10px;
  z-index: 9999; /* ensures it overlays everything */
}
#help-form {
  background-color: #fff8e1;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  position: absolute;
  top: 40px;
  left: 0;
  width: 400px;
  padding: 10px;
  z-index: 9999; /* ensures it overlays everything */
}

.help-option {
  display: block;
  width: 100%;
  background: none;
  border: none;
  padding: 8px 0;
  font-size: 16px;
  cursor: pointer;
  text-align: left;
  
}

.help-option:hover {
  color: #ff9900;
}

#back-btn {
  background: none;
  border: none;
  font-size: 14px;
  cursor: pointer;
  margin-bottom: 8px;
}

#help-form form input,
#help-form form textarea {
  width: 100%;
  margin-bottom: 8px;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

#help-form button[type="submit"] {
  background-color: #ffcc00;
  border: none;
  padding: 8px 15px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}

.hidden {
  display: none;
}

@media (max-width: 480px) {
  .help-section {
    position: absolute; /* not fixed or absolute */
    text-align: left;
    top: 27%;
  }

  #help-btn {
    padding: 8px 14px;
    font-size: 14px;
    border-radius: 15px;
  }

  #help-box{
    position: static;
    transform: none;
    width: 140%;
    margin: 10px auto;
  }
  #help-form {
    position: static;
    transform: none;
    width: 90%;
    margin: 10px auto;
  }
}

.popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #222;
  color: #fff;
  padding: 15px 25px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  opacity: 0;
  z-index: 9999;
  transition: opacity 0.3s ease;
  font-size: 1rem;
  text-align: center;
}
.popup.show {
  opacity: 1;
}
.hidden {
  display: none;
}

/* Reset & Body */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: Arial, sans-serif; }
body { background: #fafafa; color: #333; }

/* Header, Products, Cart Button ... same as your previous CSS ... */

/* Quantity controls in cart */
.qty-controls {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
}

.qty-controls button {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 5px;
  background: #ab050c;
  color: #fff;
  cursor: pointer;
  font-weight: bold;
  font-size: 16px;
}

.qty-controls button:hover { background: #8a0409; }

.qty-controls input {
  width: 35px;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
  background: #fff8f0;
  pointer-events: none;
}

/* Popup message */
.popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #222;
  color: #fff;
  padding: 15px 25px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  opacity: 0;
  z-index: 9999;
  transition: opacity 0.3s ease;
  font-size: 1rem;
  text-align: center;
}

.popup.show { opacity: 1; }
.hidden { display: none; }
.footer-bottom {
  width: 100%;
  text-align: center;
  margin-top: 30px;
  flex-basis: 100%;
}




#cart-totals {
  margin-top: 15px;
  padding: 10px 0;
  font-size: 18px;
}

#cart-totals .line {
  border-top: 2px solid #000;
  margin: 15px 0;
}

.total-row {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  padding: 5px 0;
}

.total-final {
  font-size: 20px;
  font-weight: 700;
}



/* Add this to your CSS file */
body.cart-open {
  overflow: hidden;
}

#cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 85%;
  height: 100%;
  background: #fff;
  box-shadow: -4px 0 20px rgba(0,0,0,0.3);
  padding: 20px;
  z-index: 2000;
  transform: translateX(100%);
  transition: transform 0.4s ease;
  display: flex;
  flex-direction: column;
  overflow-y: auto; /* Enable scrolling only for cart */
}