:root{
  --bg: #fbfaf8;
  --card: #ffffff;
  --muted: #6b6b6b;
  --brand-dark: #4d3a2d;   /* warm brown */
  --brand-light: #a67c52;  /* lighter brown */
  --accent: #2f7a48;       /* green accent */
  --danger: #b93131;
  --shadow: 0 8px 24px rgba(25,20,15,0.06);
  --radius: 12px;
  --maxwidth: 1100px;
  font-family: 'Poppins', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

*{box-sizing:border-box}
html,body{height:100%}
/*----------Toast Message-----------*/
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--brand-dark);
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  font-size: 0.95rem;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 2000;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

body{
  margin:0;
  background:var(--bg);
  color:#222;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.45;
}
.logo img{
    width: 150px;
}

.container{max-width:var(--maxwidth);margin:0 auto;padding:20px}

/* HEADER */
.site-header{background:linear-gradient(180deg,#fff 0%, #fff0 60%);position:sticky;top:0;z-index:1000;backdrop-filter: blur(6px);border-bottom:1px solid rgba(0,0,0,0.03)}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:16px}
/* =========================
   DESKTOP NAVIGATION
========================= */

.nav {
  display: block;
}

.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav li {
  margin: 0;
  padding: 0;
}

.nav a {
  text-decoration: none;
  font-weight: 500;
  color: var(--brand-dark);
  font-size: 0.95rem;
  position: relative;
  transition: color 0.25s ease;
}

.nav a:hover {
  color: var(--accent);
}

/* underline hover effect */
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.nav a:hover::after {
  width: 100%;
}

.brand{font-weight:700;color:var(--brand-dark);text-decoration:none;font-size:1.15rem}
.leaf{font-size:0.9rem;margin-left:6px}
.header-actions{display:flex;gap:8px;align-items:center}
.mobile-menu{display:none;background:transparent;border:1px solid transparent;font-size:1.2rem;padding:8px;border-radius:8px}
/* MOBILE NAV (DEFAULT HIDDEN) */
@media (max-width: 768px) {

  #main-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: #fff;
    padding: 20px;

    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;

    transition: transform 0.3s ease, visibility 0.3s ease;
    z-index: 9999;
    box-sizing: border-box;
  }

  /* ✅ MENU OPEN STATE */
  #main-nav.open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto; /* 🔥 CRITICAL */
  }

  /* ✅ CLOSE BUTTON MUST BE CLICKABLE */
  .nav-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #fff;
    border: none;
    font-size: 1.4rem;
    z-index: 10000;        /* 🔥 ABOVE EVERYTHING */
    pointer-events: auto; /* 🔥 FORCE ENABLE */
    cursor: pointer;
  }

  #main-nav ul {
    margin-top: 60px;
  }
}


.cart-btn{background:transparent;border:0;font-size:1.05rem;cursor:pointer;position:relative}
.cart-count{background:var(--accent);color:#fff;padding:3px 7px;border-radius:999px;margin-left:8px;font-weight:600}

/*=================================================================================
How to make tea
=================================================================================*/
.bnl-process-line {
  background: #ffffff;
  padding: 90px 6%;
  text-align: center;
}

.bnl-process-line h2 {
  font-size: 42px;
  font-weight: 600;
  color: #512e08;
}

.bnl-process-sub {
  margin-top: 10px;
  margin-bottom: 60px;
  color: #465e14;
}

.bnl-process-track {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  position: relative;
}

.bnl-process-track::before {
  content: "";
  position: absolute;
  top: 55%;
  left: 0;
  right: 0;
  height: 2px;
  background: #e6e6e6;
  z-index: 0;
}

.bnl-process-step {
  width: 23%;
  position: relative;
  z-index: 1;
}

.bnl-process-step img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 20px;
}

.step-no {
  display: inline-block;
  background: #465e14;
  color: #fff;
  width: 36px;
  height: 36px;
  line-height: 36px;
  border-radius: 50%;
  font-weight: 600;
  margin-bottom: 12px;
}

.bnl-process-step p {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
}

/* Mobile */
@media (max-width: 900px) {
  .bnl-process-track {
    flex-direction: column;
  }

  .bnl-process-track::before {
    display: none;
  }

  .bnl-process-step {
    width: 100%;
    margin-bottom: 50px;
  }
}

/* HERO */
.hero {
  padding: 80px 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.hero-text h1 {
  font-size: 2.6rem;
  line-height: 1.2;
}

.hero-text p {
  font-size: 1.05rem;
  max-width: 480px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  background: linear-gradient(135deg, var(--brand-dark), var(--brand-light));
  color: #fff;
  padding: 14px 28px;

  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.3px;

  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;

  box-shadow: 0 10px 25px rgba(77,58,45,0.35);
  transition: all 0.25s ease;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(77,58,45,0.45);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 6px 18px rgba(77,58,45,0.35);
}

/* SECTION */
.section{padding:18px 0}
.section-header{margin-bottom:12px}
.section-header h2 {font-size: 1.9rem; text-align: center; letter-spacing: -0.3px;}
.section-header p {text-align: center; margin-top: 6px;}
.muted{color:var(--muted);font-size:0.95rem}

/* PRODUCT GRID */
.product-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}

/* Summary card */
.card {
  background:var(--card);
  border-radius:var(--radius);
  padding:14px;
  box-shadow:var(--shadow);
  display:flex;
  flex-direction:column;
  gap:10px;
  align-items:left;
}
@media (max-width: 900px){
.card{
  width: 100%;
}
}
/* Product card */
.product-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

/* Image */
.product-card img {
  width: 100%;
  height: auto;
  max-height: 260px;
  object-fit: contain;
  margin-bottom: 10px;
}

/* Text content */
.product-content {
  text-align: center;
  padding: 0 6px;
}

.product-name {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.product-weight {
  font-size: 0.8rem;
  color: #777;
  margin-bottom: 6px;
}

.product-desc {
  font-size: 0.85rem;
  color: #555;
  line-height: 1.4;
}

/* Footer */
.product-footer {
  margin-top: auto; /* 🔥 pushes footer to bottom */
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
}

.product-price {
  font-weight: 700;
  font-size: 1rem;
}


@media (max-width: 520px) {
  .product-card img {
    width: 100%;
  }

  .product-footer {
    flex-direction: column;
    gap: 10px;
  }

  .add-btn {
    width: 100%;
  }
}


/* CART PANEL */
.cart-panel{
  position:fixed;right:18px;top:80px;width:340px;max-width:calc(100% - 32px);background:var(--card);box-shadow:var(--shadow);border-radius:12px;padding:12px;z-index:80;transform:translateX(110%);transition:transform .28s ease;min-height:220px;
}
.cart-panel.open{transform:translateX(0)}
.cart-header{display:flex;justify-content:space-between;align-items:center;padding-bottom:6px}
.close-cart{border:0;background:transparent;font-size:1.1rem;cursor:pointer}
.cart-items{margin:0;padding:0;list-style:none;max-height:260px;overflow:auto}
.cart-items li{display:flex;justify-content:space-between;padding:10px 6px;border-bottom:1px solid rgba(0,0,0,0.03)}
.cart-items li.empty{text-align:center;color:var(--muted)}
.cart-summary{margin-top:12px}
.cart-summary .line{display:flex;justify-content:space-between;padding:6px 0}
.cart-summary .total{font-weight:700;margin-top:8px}

/* ORDER FORM */
.order-form{background:var(--card);padding:16px;border-radius:12px;box-shadow:var(--shadow)}
.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.field{display:flex;flex-direction:column}
.field input, .field select{padding:10px;border-radius:8px;border:1px solid #e6e6e6}
.label{font-size:0.9rem;margin-bottom:6px;color:var(--muted)}

/* PAYMENT */
.payment-wrap{display:flex;gap:18px;align-items:flex-start}
.payment-summary{flex:1;padding:16px}
.payment-qr{width:360px;max-width:100%;padding:16px}
.qr-wrap{display:flex;justify-content:center;padding:8px}
.qr-wrap img{width:220px;height:220px;object-fit:contain;background:#fff;border-radius:8px;border:1px solid #eee}
.disclaimer{background:#fff7e6;padding:10px;border-left:4px solid #ffb74d;border-radius:8px;margin-top:12px;font-size:0.95rem}
.payment-actions{display:flex;gap:8px;margin-top:12px}

/* FOOTER */
.site-footer{padding:20px 0;color:var(--muted);text-align:center}

/* SMALL SCREENS */
@media (max-width:900px){
  .product-grid{grid-template-columns:repeat(2,1fr)}
  .hero-inner{flex-direction:column;align-items:flex-start}
  .payment-wrap{flex-direction:column}
  .form-grid{grid-template-columns:1fr}
  .mobile-menu{display:inline-block}
  .nav{display:none}
  .cart-panel{right:12px;left:auto;top:72px;width:92%}
}

/* EXTRA SMALL */
@media (max-width:520px){
  .product-grid{grid-template-columns:1fr}
  .hero-text h1{font-size:1.25rem}
  .qr-wrap img{width:180px;height:180px}
}

/* tiny helpers */
.line{display:flex;justify-content:space-between;align-items:center}
.disabled{opacity:0.55; pointer-events: none;}

/* CATEGORY FILTER UI */
.category-tabs {
  background: #ffffff;
  border-radius: 16px;
  padding: 18px 22px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.04);
  margin: 24px auto 32px;
}



/* Each filter block */
.tab-block {
  display: flex;
  align-items: center;
  gap: 16px;
}



.tab-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: #8a8a8a;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  min-width: 140px;
}



/* Button row */
.tab-group {
  display: flex;
  gap: 20px;
  padding: 10px;
  flex-wrap: wrap;
}


/* Pills */
.tab {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;

  background: #f4f4f4;
  color: #444;
  border: none;

  cursor: pointer;
  transition: all 0.2s ease;
}


.tab:hover {
  background: #ececec;
}



.tab.active {
  background: var(--brand-dark);
  color: #fff;
  box-shadow: 0 4px 12px rgba(77,58,45,0.35);
}



/* Mobile improvement */
@media (max-width: 680px) {
  .tab-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

/* Make each tab fill its grid cell */
.tab {
  width: 100%;
  text-align: center;
}

/* Optional: full-width tab (e.g. Other Beverages) */
.tab.full {
  grid-column: span 2;
}
  .tab-block {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .tab-group {
    width: 100%;
  }

  .tab {
    flex: 1;
    text-align: center;
    height: 60px;
  }
}


/* =========================
   MOBILE NAVIGATION
========================= */

/* Default: hide close button */
.nav-close {
  display: none;
}

@media (max-width: 900px) {
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: #fff;
    padding: 24px;
    box-shadow: -10px 0 30px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: right 0.3s ease;
  }

  .nav.open {
    right: 0;
  }
body{
  margin:10px;
  
}
body.menu-open {
  overflow: hidden;
}


  /* SHOW CLOSE BUTTON */
  .nav-close {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    font-size: 20px;
    border: 1px solid #ccc;
    border-radius: 50%;
    background: #fff;
    color: #333;
    cursor: pointer;
    z-index: 1001; /* above menu */
  }

  .nav ul {
    margin-top: 60px; /* space for close button */
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
}

/* ===============================
   QUANTITY CONTROL (PLUS / MINUS)
================================ */

.qty-control {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #f4f1ee;
  padding: 6px 10px;
  border-radius: 999px;
}

/* Plus / Minus buttons */
.qty-control button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: var(--brand-dark);
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: background 0.2s ease, transform 0.15s ease;
}

/* Hover */
.qty-control button:hover {
  background: var(--brand-light);
}

/* Active (press effect) */
.qty-control button:active {
  transform: scale(0.92);
}

/* Quantity number */
.qty-control span {
  min-width: 18px;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brand-dark);
}
@media (max-width: 520px) {
  .qty-control button {
    width: 34px;
    height: 34px;
    font-size: 20px;
  }
}
/* =========================
   ORDER SUMMARY FORMATTING
========================= */

.payment-summary {
  text-align: left; /* force left alignment */
}

.summary-title {
  text-align: center;
  margin-bottom: 16px;
}

.order-items {
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  margin-bottom: 12px;
  padding: 10px 0;
}

.order-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 0.95rem;
  padding: 6px 0;
}

.order-item span:first-child {
  max-width: 70%;
  line-height: 1.4;
}

.order-item span:last-child {
  font-weight: 500;
  white-space: nowrap;
}

/* Subtotal / Total rows */
.summary-line {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.95rem;
}

.summary-line.total {
  font-weight: 700;
  font-size: 1.05rem;
  border-top: 1px solid #ddd;
  margin-top: 6px;
  padding-top: 10px;
}
/* =========================
   CART QUANTITY CONTROLS
========================= */

.cart-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cart-item-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
}

.cart-item-name {
  max-width: 75%;
  line-height: 1.4;
}

.cart-item-price {
  font-weight: 600;
  white-space: nowrap;
}

.cart-qty-control {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: var(--brand-dark);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  line-height: 1;
}

.cart-qty {
  min-width: 18px;
  text-align: center;
  font-weight: 600;
}
/* =========================
   MODERN CHECKOUT FORM
========================= */

.checkout-card {
  max-width: 900px;
  margin: 0 auto;
  background: var(--card);
  border-radius: 22px;
  padding: 28px 32px;
  box-shadow: var(--shadow);
}

.checkout-header {
  text-align: center;
  margin-bottom: 26px;
}

.checkout-header h2 {
  margin: 0;
  color: var(--brand-dark);
  font-size: 1.6rem;
}

.checkout-header p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Grid */
.checkout-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 20px;
}

/* Fields */
.field {
  position: relative;
}

.field.span-2 {
  grid-column: span 2;
}

.field input,
.field select {
  width: 100%;
  padding: 15px 14px;
  border-radius: 14px;
  border: 1px solid #ddd;
  font-size: 0.95rem;
  background: #fff;
  outline: none;
  margin: 6px;
}

/* Floating labels */
.field label {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  padding: 0 6px;
  font-size: 0.82rem;
  color: var(--muted);
  pointer-events: none;
  transition: all 0.25s ease;
}

.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field select:focus + label,
.field select:valid + label {
  top: -8px;
  font-size: 0.72rem;
  color: var(--accent);
}

/* Focus effect */
.field input:focus,
.field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47,122,72,0.15);
}

/* Actions */
.checkout-actions {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
}

.checkout-actions .btn-primary {
  flex: 1;
  padding: 15px;
  font-size: 1.05rem;
  border-radius: 16px;
}

.checkout-actions .btn-ghost {
  padding: 15px 22px;
  border-radius: 16px;
}

/* Disabled button */
.btn-primary.disabled {
  background: linear-gradient(90deg, #d6d6d6, #c2c2c2);
  cursor: not-allowed;
}
.btn-primary:not(.disabled) {
  cursor: pointer;
  opacity: 1;
  width: 100%;
}

.btn-primary:not(.disabled):hover {
  filter: brightness(1.05);
}


/* Mobile */
@media (max-width: 680px) {
  .checkout-card {
    padding: 22px;
  }

  .checkout-grid {
    grid-template-columns: 1fr;
  }

  .field.span-2 {
    grid-column: span 1;
  }

  .checkout-actions {
    flex-direction: column;
  }
}
/* =========================
   MODERN CART POPUP UI
========================= */

.cart-panel {
  position: fixed;
  right: 20px;
  top: 80px;
  width: 360px;
  max-width: calc(100% - 32px);

  /* NEW */
  max-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;

  background: var(--card);
  border-radius: 18px;
  box-shadow: var(--shadow);
  z-index: 1200;
  transform: translateX(120%);
  transition: transform 0.3s ease;
  overflow: hidden; /* important */
}


.cart-panel.open {
  transform: translateX(0);
}

/* Header */
.cart-header-modern {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid #eee;
}

.cart-header-modern h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--brand-dark);
}

/* Body */
.cart-body-modern {
  flex: 1;                 /* fills available height */
  overflow-y: auto;        /* enables scroll */
}


/* Items */
.cart-items-modern {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cart-items-modern .empty {
  text-align: center;
  color: var(--muted);
  padding: 24px 0;
}

.cart-item {
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
}

.cart-item-name {
  max-width: 70%;
  line-height: 1.4;
}

.cart-item-price {
  font-weight: 600;
  white-space: nowrap;
}

/* Quantity */
.cart-qty-control {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #f4f1ee;
  padding: 6px 12px;
  border-radius: 999px;
}

.cart-qty-btn {
  background: var(--brand-dark);
  color: #fff;
  border: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
}

.cart-qty {
  min-width: 18px;
  text-align: center;
  font-weight: 600;
}

/* Footer */
.cart-footer-modern {
  padding: 16px 18px;
  border-top: 1px solid #eee;
  background: #fafafa;

  /* NEW */
  position: sticky;
  bottom: 0;
}
.cart-items-modern {
  max-height: 100%;
}


.cart-summary-line {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 0.95rem;
}

.cart-summary-line.total {
  font-weight: 700;
  font-size: 1.05rem;
  margin-top: 6px;
}

.cart-footer-modern .btn-primary {
  margin-top: 14px;
  padding: 14px;
  border-radius: 14px;
  font-size: 1rem;
}

/* Mobile */
@media (max-width: 600px) {
  .cart-panel {
    right: 12px;
    left: 12px;
    width: auto;
    top: 72px;
  }
}
/* =========================
   FLOATING CART BUTTON
========================= */

.floating-cart {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: var(--brand-dark);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 14px 18px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
  z-index: 1500;
}

.floating-cart span {
  background: var(--accent);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Hide on top (desktop) */
@media (min-width: 901px) {
  .floating-cart {
    display: none;
  }
}
.cart-btn {
  position: relative;
  padding: 10px 14px;
  border-radius: 12px;
  transition: background 0.25s ease;
}

.cart-btn:hover {
  background: rgba(0,0,0,0.05);
}

/* ===============================
   CART ITEM UI
================================ */
#cart-items {
  max-height: 320px;
  overflow-y: auto;
  padding-right: 6px;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.cart-item-img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 8px;
  background: #fafafa;
  border: 1px solid #eee;
}

.cart-item-details {
  flex: 1;
}

.cart-item-name {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.cart-item-price {
  font-size: 0.85rem;
  color: #666;
}

.cart-qty-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-qty-control button {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  font-size: 1rem;
}

.cart-qty {
  min-width: 20px;
  text-align: center;
  font-weight: 600;
}
#cart-panel {
  display: flex;
  flex-direction: column;
}

.cart-footer {
  margin-top: auto;
}
/* ===============================
   CLEAN CART UI (MINIMAL)
================================ */

#cart-items {
  max-height: 320px;
  overflow-y: auto;
  padding-right: 6px;
}

.cart-item.minimal {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.cart-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 6px;
  background: #fafafa;
  border: 1px solid #e5e5e5;
}

.cart-info {
  flex: 1;
}

.cart-name {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.cart-price {
  font-size: 0.85rem;
  color: #666;
}

.cart-qty {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cart-qty button {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.cart-qty span {
  min-width: 20px;
  text-align: center;
  font-weight: 600;
}
/* ===============================
   SINGLE ROW CART UI
================================ */

#cart-items {
  max-height: 300px;
  overflow-y: auto;   /* ✅ only one scroll */
  padding-right: 6px;
}

.cart-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  gap: 12px;
}

/* LEFT SIDE */
.cart-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.cart-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 6px;
  background: #fafafa;
  border: 1px solid #e5e5e5;
}

.cart-name {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.25;
  max-width: 100%;
  white-space: normal;          /* allow wrapping */
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;        /* max 2 lines */
  -webkit-box-orient: vertical;
}


/* RIGHT SIDE */
.cart-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-qty {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cart-qty button {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.cart-qty span {
  min-width: 18px;
  text-align: center;
  font-weight: 600;
}

.cart-line-price {
  min-width: 64px;
  text-align: right;
  font-weight: 600;
}


.field.floating {
  position: relative;
}

/* Select styling */
.field.floating select {
  width: 100%;
  padding: 16px 12px 14px;
  font-size: 0.95rem;
  border-radius: 12px;
}

/* Label base state */
.field.floating label {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  padding: 0 6px;
  font-size: 0.9rem;
  color: #777;
  pointer-events: none;
  transition: 0.2s ease;
}

/* FLOAT label when:
   1. select is focused
   2. OR a value is selected (not empty)
*/
.field.floating select:focus + label,
.field.floating select:not([value=""]) + label {
  top: -8px;
  font-size: 0.75rem;
  color: #555;
}

/* ===============================
   MOBILE NAV – HARD RESET
================================ */
@media (max-width: 768px) {

  /* NAV IS HIDDEN BY DEFAULT */
  #main-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 300px;
    height: 100vh;

    background: #fff;
    padding: 20px;

    /* 🔥 CRITICAL FIX */
    display: block !important;
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;

    transition: transform 0.3s ease, visibility 0.3s ease;
    z-index: 9999;
  }

  /* NAV WHEN OPEN */
  #main-nav.open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }
}
/* ===============================
   STOP MOBILE HORIZONTAL SCROLL
================================ */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}


/* ===============================
   HERO BUTTON – NEXT ROW FIX
================================ */

@media (max-width: 768px) {
  .hero-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* text alignment */
}

.hero-text {
  width: 100%;
}

.hero-cta {
  margin-top: 20px; /* space after text */
}
  .hero-cta a {
    width: 100%;
    text-align: center;
  }
}

.product-weight {
  font-size: 13px;
  color: #777;
  margin: 4px 0;
}

.product-desc {
  font-size: 14px;
  color: #444;
  margin: 6px 0 10px;
  line-height: 1.4;
}

.product-price {
  font-weight: 600;
  margin-top: 6px;
}

/* 🔥 FIX: Restore product card visuals */
.product-card {
  background: var(--card);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 18px;

  display: flex;
  flex-direction: column;
  align-items: center;
}

.product-footer {
  margin-top: auto;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}


/* ===============================
   PRODUCT CARD – ADD BUTTON
================================ */

.add-btn {
  background: linear-gradient(
    135deg,
    var(--brand-dark),
    var(--brand-light)
  );
  color: #fff;
  border: none;

  padding: 10px 18px;
  min-width: 90px;

  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.3px;

  border-radius: 999px;
  cursor: pointer;

  box-shadow: 0 6px 14px rgba(77,58,45,0.35);
  transition: all 0.25s ease;
}

/* Hover */
.add-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(77,58,45,0.45);
}

/* Active / click */
.add-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(77,58,45,0.35);
}

/* Disabled state safety */
.add-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
@media (max-width: 520px) {
  .add-btn {
    width: 100%;
  }
}


/* ===== GLOBAL LOADER ===== */
#global-loader {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.loader-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.85);
}

.loader-box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  padding: 24px 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.loader-box p {
  margin-top: 12px;
  font-size: 14px;
  color: #444;
}

/* Spinner */
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #ddd;
  border-top-color: #3b2a1a;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}


.field-help {
  display: block;
  margin-top: 6px;

  /* 👇 align with input text */
  padding-left: 12px;

  font-size: 12px;
  color: #777;
  line-height: 1.4;
}


/* ===============================
   IMAGE MODAL / SLIDER
================================ */

#img-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.img-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.85);
}

.img-modal-box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 100vw;
  max-height: 92%;
}

.img-modal-box img {
  width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
}
@media (max-width: 600px) {
  .img-modal-box .nav {
    display: none;
  }
}


.img-modal-box .nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  width: 44px;
  height: 44px;

  background: rgba(0,0,0,0.6);
  border-radius: 50%;
  border: none;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #fff;
  font-size: 28px;
  line-height: 1;

  cursor: pointer;
  padding: 0;

  -webkit-tap-highlight-color: transparent;
}


/* Desktop */
.img-modal-box .prev { left: -56px; }
.img-modal-box .next { right: -56px; }

/* 🔥 MOBILE FIX */
@media (max-width: 600px) {
  .img-modal-box {
    padding: 0 12px; /* keeps buttons inside */
  }

  .img-modal-box .prev {
    left: 8px;
  }

  .img-modal-box .next {
    right: 8px;
  }
}


.img-modal-box .nav::before {
  content: "";
  position: absolute;
  inset: -10px;
}


/* ===============================
   PRODUCT IMAGE CLICK INDICATOR
================================ */

.product-image-wrap {
  position: relative;
  cursor: zoom-in;
}

.product-img {
  width: 100%;
  display: block;
}
.product-image-wrap img {
  transition: filter 0.25s ease;
}

@media (hover: hover) {
  .product-image-wrap:hover img {
    filter: brightness(0.75);
  }
}


/* Overlay badge */
.image-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  background: rgba(0, 0, 0, 0.75);
  color: #fff;

  padding: 12px 22px;
  border-radius: 999px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  font-size: 15px;
  font-weight: 600;
  line-height: 1; /* 🔥 IMPORTANT */

  box-shadow: 0 10px 25px rgba(0,0,0,0.35);

  pointer-events: none;

  opacity: 0;
  transition: all 0.25s ease;
}


/* Desktop hover enhancement */
@media (hover: hover) {
  .image-indicator {
    opacity: 0;
    transition: opacity 0.25s ease;
  }

  .product-image-wrap:hover .image-indicator {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* Mobile: always visible */
@media (hover: none) {
  .image-indicator {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

/*-------Shopping cart icon-----*/
.cart-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 18px;
}

.cart-btn i {
  font-size: 20px;
}

.cart-btn:hover i {
  color: var(--accent);
}

.cart-btn.bump {
  animation: bump 0.25s ease;
}

@keyframes bump {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* ===============================
   PRODUCT PAGE LAYOUT
=================================*/

.pdp-container {
  display: flex;
  justify-content: center;
  gap: 100px;
  max-width: 1400px;
  margin: 60px auto;
  align-items: flex-start;
  padding: 0 40px;
}

@media (max-width: 1000px) {
  .pdp-container {
    flex-direction: column;
    gap: 40px;
  }
}

/* ===============================
   BACK BUTTON
=================================*/

.back-btn {
  background: none;
  border: none;
  font-weight: 600;
  cursor: pointer;
  margin: 20px 40px;
  display: inline-block;
}

/* ===============================
   GALLERY SECTION
=================================*/
/* Make image + zoom sit side by side */
.zoom-container {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

/* Prevent wrapping */
.pdp-gallery {
  flex-shrink: 0;
}


/* Main image wrapper */
.zoom-image-wrapper {
  width: 450px;
  height: 450px;
  background: #f8f8f8;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Main product image */
.pdp-main-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Zoom preview panel */
.zoom-result {
  width: 450px;
  height: 450px;
  border-radius: 12px;
  border: 1px solid #e5e5e5;
  display: none;
  background-repeat: no-repeat;
  background-color: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* ===============================
   PRODUCT INFO SECTION
=================================*/

.pdp-info {
  min-width: 400px;
  max-width: 500px;
  margin-left: 60px;
}

.pdp-info h1 {
  font-size: 32px;
  margin-bottom: 10px;
}

.pdp-weight {
  font-size: 16px;
  color: #666;
}

.pdp-price {
  font-size: 28px;
  font-weight: 600;
  margin: 20px 0;
}

/* Quantity */
.pdp-qty {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 20px 0;
}

.pdp-qty button {
  width: 40px;
  height: 40px;
  font-size: 18px;
  cursor: pointer;
}

/* ===============================
   BUTTONS
=================================*/

.btn-primary {
  width: 100%;
  background: #000;
  color: #fff;
  padding: 16px;
  border: none;
  border-radius: 30px;
  font-size: 16px;
  cursor: pointer;
  margin-top: 20px;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-secondary {
  width: 100%;
  background: #f5a623;
  color: #fff;
  padding: 16px;
  border: none;
  border-radius: 30px;
  font-size: 16px;
  cursor: pointer;
  margin-top: 15px;
}

/* ===============================
   DETAILS SECTION
=================================*/

.pdp-details {
  max-width: 1200px;
  margin: 60px auto;
  padding: 40px;
  border-top: 1px solid #eee;
}

.pdp-details h2 {
  margin-top: 30px;
}


.pdp-gallery {
  display: flex;
  flex-direction: column;   /* stack vertically */
  align-items: center;
}

.pdp-thumbs {
  display: flex;
  gap: 12px;
  margin-top: 20px;        /* spacing below main image */
  justify-content: center;
}

.pdp-thumb {
  width: 70px;
  height: 70px;
  object-fit: contain;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  background: #fff;
  transition: 0.2s ease;
}

.pdp-thumb:hover {
  transform: scale(1.05);
}

.pdp-thumb.active {
  border-color: #000;
}
/* =========================
   PRODUCT PAGE RESPONSIVE
========================= */

@media (max-width: 768px) {

   .pdp-container {
    flex-direction: column;
    gap: 20px;
    padding: 0 16px;
  }

 .pdp-gallery {
    width: 100%;
  }

  .zoom-container {
    flex-direction: column;
    align-items: center;
  }

  .zoom-image-wrapper {
    width: 100%;
  }

  .pdp-main-img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .zoom-result {
    display: none !important; /* disable zoom preview on mobile */
  }

  .pdp-thumbs {
    justify-content: center;
    margin-top: 12px;
  }

  .pdp-info {
    width: 100%;
    text-align: left;
  }

  .pdp-info h1 {
    font-size: 22px;
    line-height: 1.3;
  }

  .pdp-price {
    font-size: 22px;
  }

  .pdp-qty {
  justify-content: space-between;
  max-width: 180px;
  margin: 0 auto 24px auto;
}

  #add-to-cart,
  #buy-now {
    width: 100%;
    height: 52px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 14px;
  }

  #add-to-cart {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  }
    #buy-now {
    background: linear-gradient(135deg, #f4a51c, #f9b233);
    box-shadow: 0 4px 12px rgba(244,165,28,0.25);
  }
  .pdp-details {
    padding: 16px;
  }
  .pdp-info {
    width: 100%;
    min-width: 0;         /* 🔥 FIX */
    max-width: 100%;      /* 🔥 FIX */
    margin-left: 0;       /* 🔥 FIX */

    background: #fff;
    padding: 20px;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  }
}
@media (max-width: 768px) {

  .pdp-header {
    padding: 12px 16px;
  }

  .header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}
@media (max-width: 768px) {

  #pdp-name {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 8px;
    word-break: break-word;
  }

  .pdp-weight {
    font-size: 14px;
    color: #777;
    margin-bottom: 10px;
  }

  .pdp-price {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
  }


}
@media (max-width: 768px) {

  .pdp-qty {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
  }

  .pdp-qty button {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }

  #qty-value {
    font-size: 16px;
    font-weight: 500;
  }

}
/*---------Back Button---------*/
.back-btn {
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-dark);
  cursor: pointer;
  margin-left: 50px;
  transition: color 0.2s ease;
}

.back-btn:hover {
  color: var(--accent);
}
@media (max-width: 768px) {
  .back-btn {
    font-size: 13px;
  }
}
