/* ════════════════════════════════════════════
   DESIGN TOKENS — প্রান্তিক হাট লোগো রঙ
   green  #2d8a4e   yellow #f9c200
   brown  #5d3a1a   cyan   #00bcd4
════════════════════════════════════════════ */
:root {
  --green:      #2d8a4e;
  --green2:     #1e6638;
  --green-lt:   rgba(45,138,78,0.10);
  --yellow:     #f0a500;
  --yellow-lt:  rgba(249,194,0,0.14);
  --brown:      #5d3a1a;
  --brown-lt:   rgba(93,58,26,0.10);
  --cyan:       #00bcd4;
  --cyan-lt:    rgba(0,188,212,0.12);
  --ink:        #1a1a1a;
  --ink2:       #2c2c2c;
  --muted:      #6b7280;
  --muted2:     #9ca3af;
  --border:     #e5e7eb;
  --bg:         #f7f9f5;
  --white:      #ffffff;
  --card-r:     16px;
  --font:       'Noto Sans Bengali', 'Nunito', sans-serif;
  --body:       'Noto Sans Bengali', 'Lato', sans-serif;
  --sh:         0 2px 12px rgba(0,0,0,.07);
  --sh-lg:      0 10px 40px rgba(0,0,0,.13);
  --sh-xl:      0 20px 70px rgba(0,0,0,.17);
}

/* ════════════════════════════════════════════
   RESET
════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; max-width: 100%; }
body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
  max-width: 100%;
  -webkit-font-smoothing: antialiased;
}
img { display: block; width: 100%; height: 100%; object-fit: cover; }
button { cursor: pointer; font-family: var(--font); }
a { text-decoration: none; color: inherit; }
input, select, textarea { font-family: var(--body); }
.hide { display: none !important; }

.section { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 20px; }
.heading { font-family: var(--font); font-weight: 900; font-size: clamp(1.05rem,2.5vw,1.5rem); color: var(--ink); }
.sub-heading { font-size: .83rem; color: var(--muted); margin-top: 3px; }

/* ════════════════════════════════════════════
   NAVBAR
════════════════════════════════════════════ */
.navbar {
  position: sticky; top: 0; z-index: 300;
  background: var(--green);
  border-bottom: 3px solid var(--yellow);
  box-shadow: 0 2px 18px rgba(0,0,0,.2);
  width: 100%; max-width: 100%;
}
.nav-inner {
  max-width: 1320px; margin: 0 auto; padding: 0 16px;
  display: flex; align-items: center; gap: 10px; height: 62px;
}
.logo { display: flex; align-items: center; gap: 9px; cursor: pointer; flex-shrink: 0; }
.logo-img { width: 44px; height: 44px; border-radius: 10px; overflow: hidden; flex-shrink: 0; background: #fcfdfb; }
.logo-img img { width: 100%; height: 100%; object-fit: contain; }
.logo-text { font-family: var(--font); font-weight: 300; font-size: 1.18rem; color: #fff; line-height: 1.2; }
.logo-text span { color: var(--yellow); font-size: .68rem; display: block; font-weight: 700; letter-spacing: .05em; opacity: .9; }

.nav-search-bar {
  flex: 1; display: flex; align-items: center;
  background: rgba(255,255,255,.15); border: 2px solid rgba(255,255,255,.28);
  border-radius: 40px; padding: 0 6px 0 14px; transition: all .2s; min-width: 0;
}
.nav-search-bar:focus-within { background: rgba(255,255,255,.25); border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(249,194,0,.2); }
.ns-icon { font-size: .95rem; flex-shrink: 0; color: rgba(255,255,255,.8); }
.nav-search-bar input { flex: 1; border: none; background: transparent; padding: 9px 8px; font-size: .9rem; outline: none; color: #fff; min-width: 0; }
.nav-search-bar input::placeholder { color: rgba(255,255,255,.6); }
.ns-btn { background: var(--yellow); color: var(--brown); border: none; border-radius: 30px; padding: 7px 16px; font-weight: 800; font-size: .8rem; flex-shrink: 0; transition: background .2s; }
.ns-btn:hover { background: #e6b200; }

.nav-right { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.nav-action-btn { display: flex; align-items: center; gap: 5px; padding: 7px 12px; border-radius: 40px; border: none; background: rgba(255,255,255,.15); color: #fff; font-weight: 700; font-size: .8rem; transition: all .2s; white-space: nowrap; }
.nav-action-btn:hover { background: rgba(255,255,255,.28); }
.nav-action-btn.outline { border: 2px solid var(--yellow); background: transparent; color: var(--yellow); }
.nav-action-btn.outline:hover { background: var(--yellow); color: var(--brown); }
.nav-btn-label { display: inline; }

.nav-cart-trigger { display: flex; align-items: center; gap: 7px; background: var(--yellow); color: var(--brown); border: none; border-radius: 40px; padding: 8px 16px; font-weight: 800; font-size: .85rem; transition: all .2s; position: relative; white-space: nowrap; }
.nav-cart-trigger:hover { background: #e6b200; }
.cart-icon-wrap { position: relative; display: inline-flex; align-items: center; font-size: 1.1rem; }
.cart-bubble { position: absolute; top: -8px; right: -10px; background: var(--brown); color: #fff; border-radius: 50%; width: 19px; height: 19px; font-size: .65rem; font-weight: 900; font-family: var(--font); display: flex; align-items: center; justify-content: center; border: 2px solid var(--yellow); transition: transform .25s; }
.cart-trigger-label { font-weight: 800; }

/* ════════════════════════════════════════════
   HERO
════════════════════════════════════════════ */
.hero { position: relative; overflow: hidden; min-height: clamp(320px,46vw,500px); display: flex; flex-direction: column; width: 100%; max-width: 100%; background: var(--green2); }
.hero-bg-img { position: absolute; inset: 0; background-size: cover; background-position: center; animation: heroZoom 14s ease-in-out infinite alternate; }
@keyframes heroZoom { from { transform: scale(1.0); } to { transform: scale(1.08); } }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(30,102,56,.9) 0%, rgba(30,102,56,.62) 55%, rgba(93,58,26,.28) 100%); }
.hero-content { position: relative; z-index: 2; padding: clamp(30px,7vw,70px) 20px 26px; max-width: 1320px; margin: 0 auto; width: 100%; flex: 1; }

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(34, 85, 34, 0.85);
  border: 1px solid rgba(80, 140, 60, 0.7);
  color: #ffffff;
  padding: 6px 14px 6px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 400;
  font-family: var(--font);
  margin-bottom: 13px;
  line-height: 1.4;
  letter-spacing: 0.01em;
  white-space: nowrap;
  width: fit-content;
}

.hero-title { font-family: var(--font); font-weight: 400; font-size: clamp(1.55rem,5vw,3.2rem); color: #fff; line-height: 1.18; margin-bottom: 12px; }
.hero-title span { color: var(--yellow); }
.hero-desc { color: rgba(255,255,255,.82); font-size: clamp(.84rem,1.5vw,1rem); max-width: 500px; margin-bottom: 20px; line-height: 1.7; }
.hero-search-box { display: flex; align-items: center; background: #fff; border-radius: 50px; overflow: hidden; max-width: 520px; box-shadow: 0 8px 40px rgba(0,0,0,.28); margin-bottom: 18px; }
.hero-search-box span { padding: 0 12px; font-size: 1rem; flex-shrink: 0; }
.hero-search-box input { flex: 1; border: none; outline: none; padding: 13px 4px; font-size: .9rem; color: var(--ink); min-width: 0; }
.hero-search-box button { background: var(--green); color: #fff; border: none; padding: 13px 20px; font-weight: 800; font-size: .88rem; transition: background .2s; white-space: nowrap; flex-shrink: 0; }
.hero-search-box button:hover { background: var(--green2); }
.hero-pills { display: flex; flex-wrap: wrap; gap: 7px; }
.hero-pills span { background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.28); color: #fff; padding: 5px 14px; border-radius: 30px; font-size: .8rem; font-weight: 700; cursor: pointer; transition: all .2s; }
.hero-pills span:hover { background: var(--yellow); color: var(--brown); border-color: var(--yellow); }

.hero-stats-bar { position: relative; z-index: 2; background: rgba(0,0,0,.3); backdrop-filter: blur(14px); border-top: 1px solid rgb(250, 246, 246); width: 100%; }
.hero-stats { max-width: 1320px; margin: 0 auto; display: flex; align-items: stretch; }
.hstat { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 12px 16px; flex: 1; min-width: 80px; border-right: 1px solid rgba(255,255,255,.12); }
.hstat:last-child { border-right: none; }
.hstat strong { font-family: var(--font); font-size: clamp(.9rem,2.5vw,1.3rem); font-weight: 900; color: var(--yellow); line-height: 1; }
.hstat span { font-size: .7rem; color: rgba(255,255,255,.65); margin-top: 3px; font-weight: 600; }
.hstat-div { display: none; }

/* ════════════════════════════════════════════
   BROWSE SECTIONS
════════════════════════════════════════════ */
.browse-section { padding: 30px 20px 0; max-width: 1320px; margin: 0 auto; width: 100%; box-sizing: border-box; }
.subcat-section { max-width: 1320px; margin: 0 auto; padding: 0 20px; width: 100%; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .4s cubic-bezier(.4,0,.2,1), opacity .3s, padding .3s; }
.subcat-section.visible { max-height: 300px; opacity: 1; padding: 20px 20px 0; }

.browse-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; gap: 10px; }
.see-all-btn { background: none; border: 2px solid var(--border); border-radius: 40px; padding: 6px 16px; font-weight: 700; font-size: .8rem; color: var(--muted); transition: all .2s; white-space: nowrap; flex-shrink: 0; }
.see-all-btn:hover { border-color: var(--green); color: var(--green); }

/* ════════════════════════════════════════════
   CAROUSEL ENGINE
════════════════════════════════════════════ */
.carousel-outer {
  display: flex;
  align-items: center;
  width: 100%;
}

.carousel-track-wrap {
  overflow: hidden;
  flex: 1;
  min-width: 0;
}

.carousel-track {
  display: flex;
  gap: 14px;
  padding: 8px 2px 14px;
  transition: transform .38s cubic-bezier(.4,0,.2,1);
  will-change: transform;
  width: max-content;
}

.car-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--border);
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
  font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  z-index: 5; transition: all .2s; color: var(--ink);
  cursor: pointer; flex-shrink: 0;
}
.car-btn:hover { background: var(--green); color: #fff; border-color: var(--green); }
.car-btn.prev { margin-right: 8px; }
.car-btn.next { margin-left: 8px; }

.mobile-car-prev,
.mobile-car-next {
  display: none;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--border);
  box-shadow: 0 3px 12px rgba(0,0,0,.16);
  font-size: 1rem;
  align-items: center; justify-content: center;
  cursor: pointer; color: var(--ink);
  transition: all .2s; flex-shrink: 0;
}
.mobile-car-prev:hover,
.mobile-car-next:hover { background: var(--green); color: #fff; border-color: var(--green); }
.mobile-car-prev { margin-right: 6px; }
.mobile-car-next { margin-left: 6px; }

.carousel-dots { display: none; justify-content: center; align-items: center; gap: 6px; padding: 10px 0 4px; }
.carousel-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--border); border: none; padding: 0; cursor: pointer; transition: all .25s; }
.carousel-dot.active { background: var(--green); width: 18px; border-radius: 4px; }

/* ── Category card ── */
.cat-card { flex-shrink: 0; width: 130px; background: var(--white); border-radius: var(--card-r); border: 2px solid var(--border); overflow: hidden; cursor: pointer; transition: all .22s; box-shadow: var(--sh); }
.cat-card:hover  { border-color: var(--green); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(45,138,78,.2); }
.cat-card.active { border-color: var(--green); box-shadow: 0 0 0 3px rgba(45,138,78,.18); }
.cat-card-img { height: 90px; overflow: hidden; background: #f3f4f6; }
.cat-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.cat-card:hover .cat-card-img img { transform: scale(1.08); }
.cat-card-body { padding: 8px 8px 10px; text-align: center; }
.cat-card-name { font-family: var(--font); font-weight: 800; font-size: .74rem; color: var(--ink); line-height: 1.35; }
.cat-card-count { font-size: .67rem; color: var(--muted); margin-top: 3px; font-weight: 600; }

/* ── Subcategory card ── */
.subcat-card { flex-shrink: 0; display: flex; align-items: center; gap: 8px; background: var(--white); border: 2px solid var(--border); border-radius: 50px; padding: 7px 16px 7px 7px; cursor: pointer; transition: all .2s; box-shadow: var(--sh); white-space: nowrap; }
.subcat-card:hover  { border-color: var(--green); transform: translateY(-2px); }
.subcat-card.active { border-color: var(--green); background: var(--green-lt); }
.subcat-img { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: #f3f4f6; }
.subcat-img img { width: 100%; height: 100%; object-fit: cover; }
.subcat-name { font-family: var(--font); font-weight: 800; font-size: .8rem; color: var(--ink); }

/* ── Product card ── */
.product-card { flex-shrink: 0; width: 272px; background: var(--white); border-radius: var(--card-r); border: 1px solid var(--border); overflow: hidden; transition: all .22s; box-shadow: var(--sh); display: flex; flex-direction: column; }
.product-card:hover { border-color: transparent; transform: translateY(-4px); box-shadow: var(--sh-lg); }

.product-img-wrap { position: relative; height: 158px; background: #f3f4f6; overflow: hidden; flex-shrink: 0; }
.product-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product-card:hover .product-img-wrap img { transform: scale(1.06); }

.product-badge { position: absolute; top: 9px; left: 9px; font-family: var(--font); font-weight: 900; font-size: .62rem; padding: 3px 9px; border-radius: 20px; letter-spacing: .04em; text-transform: uppercase; }
.pb-deal { background: var(--brown); color: #fff; }
.pb-pop  { background: var(--yellow); color: var(--brown); }
.pb-new  { background: var(--cyan);   color: #fff; }

.pc-discount-badge { position: absolute; top: 9px; right: 9px; background: var(--green); color: #fff; font-family: var(--font); font-weight: 900; font-size: .65rem; padding: 3px 8px; border-radius: 20px; }

.product-card-body { padding: 10px 12px 12px; flex: 1; display: flex; flex-direction: column; gap: 0; }

.pc-top-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 3px; }
.pc-supplier { font-size: .66rem; color: var(--muted); font-weight: 700; }

.pc-container-tag { font-family: var(--font); font-weight: 800; font-size: .6rem; padding: 2px 7px; border-radius: 20px; letter-spacing: .03em; white-space: nowrap; }
.tag-bag    { background: var(--yellow-lt); color: var(--brown);  border: 1px solid rgba(249,194,0,.45); }
.tag-carton { background: var(--cyan-lt);   color: #006d7a;       border: 1px solid rgba(0,188,212,.35); }
.tag-gallon { background: var(--green-lt);  color: var(--green2); border: 1px solid rgba(45,138,78,.35); }

.pc-name { font-family: var(--font); font-weight: 800; font-size: .84rem; color: var(--ink); line-height: 1.3; margin-bottom: 4px; }
.pc-contents { font-size: .67rem; color: var(--muted); font-weight: 600; background: var(--bg); border-radius: 6px; padding: 3px 8px; margin-bottom: 7px; line-height: 1.4; }

.pc-price-row { display: flex; align-items: baseline; gap: 5px; flex-wrap: wrap; margin-bottom: 8px; }
.pc-price-original { font-family: var(--font); font-weight: 700; font-size: .78rem; color: var(--muted2); text-decoration: line-through; }
.pc-price-discounted { font-family: var(--font); font-weight: 900; font-size: 1rem; color: var(--green); }
.pc-price-unit-label { font-size: .68rem; color: var(--muted); font-weight: 600; }

.pc-tiers { display: flex; flex-direction: column; gap: 3px; background: var(--bg); border: 1px solid var(--border); border-radius: 9px; padding: 6px 8px; margin-bottom: 9px; }
.pc-tier { display: flex; justify-content: space-between; align-items: center; font-size: .68rem; color: var(--muted); font-weight: 600; padding: 1px 0; }
.pc-tier-active { color: var(--ink); }
.pc-tier-active .pc-tier-qty  { color: var(--cyan);  font-weight: 800; }
.pc-tier-active .pc-tier-price{ color: var(--green); font-weight: 900; font-size: .74rem; }
.pc-tier-qty   { font-family: var(--font); }
.pc-tier-price { font-family: var(--font); font-weight: 700; }

.pc-moq-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 5px; }
.pc-moq-label { font-size: .68rem; font-weight: 800; color: var(--green2); background: var(--green-lt); border-radius: 6px; padding: 2px 7px; }
.pc-qty-ctrl { display: flex; align-items: center; gap: 4px; }
.pc-qty-btn { width: 28px; height: 28px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--border); font-size: .95rem; font-weight: 700; display: flex; align-items: center; justify-content: center; transition: all .18s; flex-shrink: 0; line-height: 1; }
.pc-qty-btn:hover { background: var(--green); color: #fff; border-color: var(--green); }
.pc-qty-val { font-family: var(--font); font-weight: 900; font-size: .88rem; min-width: 22px; text-align: center; }

.pc-unit-price { font-size: .71rem; color: var(--muted); font-weight: 700; margin-bottom: 5px; text-align: right; }

.pc-final-row { display: flex; align-items: center; justify-content: space-between; background: var(--green-lt); border: 1px solid rgba(45,138,78,.2); border-radius: 9px; padding: 6px 10px; margin-bottom: 5px; }
.pc-final-label { font-family: var(--font); font-weight: 800; font-size: .74rem; color: var(--ink2); }
.pc-final-price { font-family: var(--font); font-weight: 900; font-size: 1rem; color: var(--green); }

.pc-inner-total { font-size: .7rem; font-weight: 800; color: var(--cyan); text-align: right; margin-bottom: 7px; }

.pc-add-btn { width: 100%; background: var(--green); color: #fff; border: none; padding: 10px; border-radius: 10px; font-weight: 800; font-size: .82rem; transition: all .2s; }
.pc-add-btn:hover  { background: var(--green2); }
.pc-add-btn:active { transform: scale(.97); }
.pc-add-btn.added  { background: var(--brown); }

/* ════════════════════════════════════════════
   PRODUCTS SECTION
════════════════════════════════════════════ */
.products-section { padding: 24px 20px 0; max-width: 1320px; margin: 0 auto; width: 100%; }
.products-controls { display: flex; align-items: center; gap: 8px; }
.sort-select { border: 1.5px solid var(--border); border-radius: 10px; padding: 7px 12px; font-family: var(--font); font-weight: 700; font-size: .8rem; color: var(--ink); background: var(--white); cursor: pointer; }

.filter-chips { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 10px; }
.chip { display: flex; align-items: center; gap: 4px; background: var(--green-lt); color: var(--green2); border: 1px solid rgba(45,138,78,.25); border-radius: 20px; padding: 4px 11px; font-family: var(--font); font-weight: 700; font-size: .76rem; cursor: pointer; transition: all .2s; }
.chip:hover { background: var(--green); color: #fff; }

.no-products-msg { text-align: center; padding: 48px 20px; color: var(--muted); }
.no-products-msg .npm-icon { font-size: 2.8rem; margin-bottom: 10px; }
.no-products-msg p { font-family: var(--font); font-weight: 700; font-size: .95rem; margin-bottom: 14px; }

.btn-ghost { background: none; border: 2px solid var(--green); color: var(--green); border-radius: 40px; padding: 9px 22px; font-weight: 800; font-size: .86rem; transition: all .2s; }
.btn-ghost:hover { background: var(--green); color: #fff; }

.load-more-row { text-align: center; padding: 20px 0 32px; }
.load-more-btn { background: var(--white); border: 2px solid var(--green); color: var(--green); border-radius: 40px; padding: 10px 28px; font-weight: 800; font-size: .86rem; transition: all .2s; }
.load-more-btn:hover { background: var(--green); color: #fff; }

/* ════════════════════════════════════════════
   CART
════════════════════════════════════════════ */
.cart-section { background: var(--white); border-radius: 20px; box-shadow: var(--sh-lg); margin: 32px 20px 0; padding: 28px; max-width: 1320px; margin-left: auto; margin-right: auto; }
.cart-section-header { margin-bottom: 20px; }

.cart-empty-state { text-align: center; padding: 48px 20px; }
.ces-icon { font-size: 3.5rem; margin-bottom: 14px; }
.ces-title { font-family: var(--font); font-weight: 900; font-size: 1.2rem; margin-bottom: 8px; }
.ces-sub { font-size: .86rem; color: var(--muted); margin-bottom: 20px; }
.ces-btn { background: var(--green); color: #fff; border: none; border-radius: 40px; padding: 10px 24px; font-weight: 800; font-size: .9rem; }

.cart-table-wrap { display: flex; gap: 20px; align-items: flex-start; }
.cart-table { flex: 1; }
.cart-table-header { display: grid; grid-template-columns: 68px 1fr 130px 110px; gap: 10px; padding: 8px 12px; font-family: var(--font); font-weight: 800; font-size: .76rem; color: var(--muted); border-bottom: 2px solid var(--border); margin-bottom: 6px; }
.cart-item { display: grid; grid-template-columns: 68px 1fr 130px 110px 36px; gap: 10px; align-items: center; padding: 12px; border-bottom: 1px solid var(--border); transition: background .18s; }
.cart-item:hover { background: var(--bg); border-radius: 10px; }
.ci-img { width: 68px; height: 54px; border-radius: 10px; overflow: hidden; background: #f3f4f6; }
.ci-img img { width: 100%; height: 100%; object-fit: cover; }
.ci-name { font-family: var(--font); font-weight: 800; font-size: .84rem; color: var(--ink); margin-bottom: 2px; }
.ci-supplier { font-size: .66rem; color: var(--muted); margin-bottom: 2px; }
.ci-pkg-detail { font-size: .67rem; color: var(--cyan); font-weight: 700; }
.ci-price-unit { font-size: .68rem; color: var(--muted); font-weight: 600; }
.ci-qty-ctrl { display: flex; align-items: center; gap: 6px; }
.ci-qty-btn { width: 28px; height: 28px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--border); font-size: .9rem; font-weight: 700; display: flex; align-items: center; justify-content: center; transition: all .18s; }
.ci-qty-btn:hover { background: var(--green); color: #fff; border-color: var(--green); }
.ci-qty-val { font-family: var(--font); font-weight: 900; font-size: .88rem; min-width: 22px; text-align: center; }
.ci-total { font-family: var(--font); font-weight: 900; font-size: .9rem; color: var(--green); text-align: right; }
.ci-remove { width: 28px; height: 28px; border-radius: 50%; background: none; border: 1.5px solid var(--border); font-size: .75rem; color: var(--muted); display: flex; align-items: center; justify-content: center; transition: all .18s; }
.ci-remove:hover { background: #fee2e2; border-color: #f87171; color: #dc2626; }

.cart-summary { width: 300px; flex-shrink: 0; }
.cart-summary-inner { position: sticky; top: 80px; background: var(--bg); border-radius: 14px; padding: 18px; border: 1px solid var(--border); }
.cs-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: .86rem; }
.cs-row strong { font-family: var(--font); font-weight: 900; }
.cs-green { color: var(--green); }
.cs-total { border-bottom: none; padding-top: 12px; }
.cs-total span { font-family: var(--font); font-weight: 900; font-size: 1rem; }
.cs-total strong { font-size: 1.25rem; color: var(--green); }
/* cs-moq-note kept in DOM but never shown — display:none always */
.cs-moq-note { display: none !important; }
.cs-checkout-btn { width: 100%; background: var(--green); color: #fff; border: none; border-radius: 12px; padding: 12px; font-weight: 800; font-size: .9rem; margin-top: 14px; transition: all .2s; }
.cs-checkout-btn:hover { background: var(--green2); }
.cs-checkout-btn:disabled { background: var(--muted2); cursor: not-allowed; }
.cs-clear-btn { width: 100%; background: none; border: 1.5px solid var(--border); border-radius: 12px; padding: 9px; font-weight: 700; font-size: .82rem; color: var(--muted); margin-top: 8px; transition: all .2s; }
.cs-clear-btn:hover { border-color: var(--brown); color: var(--brown); }

/* ════════════════════════════════════════════
   CHECKOUT
════════════════════════════════════════════ */
.page-section { min-height: 60vh; }
.checkout-wrap { padding: 32px 20px 56px; max-width: 1100px; margin: 0 auto; }
.back-btn { background: none; border: 1.5px solid var(--border); border-radius: 40px; padding: 7px 18px; font-weight: 700; font-size: .82rem; color: var(--muted); margin-bottom: 18px; transition: all .2s; }
.back-btn:hover { border-color: var(--green); color: var(--green); }
.checkout-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 20px; }
.co-box-title { font-family: var(--font); font-weight: 900; font-size: 1rem; margin-bottom: 14px; color: var(--ink); padding-bottom: 10px; border-bottom: 2px solid var(--border); }
.co-order-review { background: var(--white); border-radius: 14px; padding: 20px; box-shadow: var(--sh); }
.co-form-box { background: var(--white); border-radius: 14px; padding: 20px; box-shadow: var(--sh); }
.co-order-item { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--border); }
.co-item-img { width: 54px; height: 44px; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: #f3f4f6; }
.co-item-img img { width: 100%; height: 100%; object-fit: cover; }
.co-item-info { flex: 1; }
.co-item-name { font-family: var(--font); font-weight: 800; font-size: .84rem; color: var(--ink); margin-bottom: 2px; }
.co-item-sub { font-size: .72rem; color: var(--muted); font-weight: 600; }
.co-item-price { font-family: var(--font); font-weight: 900; font-size: .9rem; color: var(--green); white-space: nowrap; }
.co-totals { padding: 12px 0 0; }
.co-total-row { display: flex; justify-content: space-between; font-size: .88rem; padding: 6px 0; border-bottom: 1px solid var(--border); }
.co-grand { padding-top: 12px; border-bottom: none; }
.co-grand span { font-family: var(--font); font-weight: 900; font-size: 1rem; }
.co-grand strong { font-family: var(--font); font-weight: 900; font-size: 1.2rem; color: var(--green); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fg { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.fg.full { grid-column: 1 / -1; }
.fg label { font-size: .78rem; font-weight: 700; color: var(--ink2); }
.fg input, .fg select, .fg textarea { border: 1.5px solid var(--border); border-radius: 9px; padding: 9px 12px; font-size: .88rem; color: var(--ink); transition: border-color .2s; background: var(--white); }
.fg input:focus, .fg select:focus, .fg textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(45,138,78,.1); }
.fg textarea { resize: vertical; min-height: 70px; }
.co-terms { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 14px; font-size: .8rem; line-height: 1.5; }
.co-terms input { margin-top: 3px; accent-color: var(--green); }
.co-terms a { color: var(--green); font-weight: 700; }
.co-submit-btn { width: 100%; background: var(--green); color: #fff; border: none; border-radius: 12px; padding: 13px; font-weight: 800; font-size: .95rem; transition: all .2s; }
.co-submit-btn:hover { background: var(--green2); }

/* ════════════════════════════════════════════
   THANK YOU
════════════════════════════════════════════ */
.ty-wrap { padding: 48px 20px 64px; display: flex; justify-content: center; }
.ty-box { background: var(--white); border-radius: 20px; padding: 36px 32px; box-shadow: var(--sh-xl); max-width: 480px; width: 100%; text-align: center; }
.ty-anim { position: relative; width: 72px; height: 72px; margin: 0 auto 20px; }
.ty-circle { width: 72px; height: 72px; border-radius: 50%; background: var(--green); animation: pulse .6s ease-out forwards; }
@keyframes pulse { from { transform: scale(.7); opacity:0; } to { transform:scale(1); opacity:1; } }
.ty-check { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 2rem; color: #fff; font-weight: 900; }
.ty-title { font-family: var(--font); font-weight: 900; font-size: 1.6rem; margin-bottom: 8px; }
.ty-sub { font-size: .9rem; color: var(--muted); margin-bottom: 14px; }
.ty-order-id { background: var(--bg); border-radius: 10px; padding: 10px 16px; font-family: var(--font); font-weight: 800; font-size: .88rem; color: var(--green); margin-bottom: 16px; }
.ty-details { text-align: left; margin-bottom: 16px; }
.ty-detail-row { display: flex; justify-content: space-between; font-size: .84rem; padding: 7px 0; border-bottom: 1px solid var(--border); }
.ty-whatsapp { font-size: .84rem; color: var(--muted); margin-bottom: 20px; }
.ty-actions { display: flex; gap: 10px; }
.ty-btn-primary { flex: 1; background: var(--green); color: #fff; border: none; border-radius: 12px; padding: 11px; font-weight: 800; font-size: .88rem; }
.ty-btn-secondary { flex: 1; background: none; border: 2px solid var(--border); border-radius: 12px; padding: 11px; font-weight: 700; font-size: .88rem; color: var(--muted); }

/* ════════════════════════════════════════════
   AUTH
════════════════════════════════════════════ */
.auth-section { min-height: 100vh; }
.auth-wrap { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.auth-visual { background-size: cover; background-position: center; position: relative; display: flex; align-items: flex-end; padding: 40px; }
.auth-vis-overlay { position: absolute; inset: 0; background: linear-gradient(160deg, rgba(30,102,56,.85) 0%, rgba(93,58,26,.7) 100%); }
.auth-vis-text { position: relative; z-index: 2; color: #fff; }
.auth-vis-text h2 { font-family: var(--font); font-weight: 900; font-size: 1.5rem; margin: 16px 0 10px; line-height: 1.3; }
.auth-vis-text p { font-size: .88rem; color: rgba(255,255,255,.78); line-height: 1.6; }
.auth-features { margin-top: 14px; }
.af-item { font-size: .84rem; color: rgba(255,255,255,.85); margin-bottom: 8px; }
.auth-form-box { background: var(--white); display: flex; flex-direction: column; justify-content: center; padding: 48px 40px; }
.auth-title { font-family: var(--font); font-weight: 900; font-size: 1.5rem; margin-bottom: 4px; }
.auth-sub { font-size: .84rem; color: var(--muted); margin-bottom: 22px; }
.auth-form { display: flex; flex-direction: column; gap: 0; }
.auth-remember { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; font-size: .8rem; }
.auth-forgot { color: var(--green); font-weight: 700; }
.auth-submit-btn { width: 100%; background: var(--green); color: #fff; border: none; border-radius: 12px; padding: 13px; font-weight: 800; font-size: .95rem; transition: all .2s; }
.auth-submit-btn:hover { background: var(--green2); }
.auth-switch { text-align: center; margin-top: 18px; font-size: .86rem; color: var(--muted); font-weight: 600; }
.auth-switch button { background: none; border: none; color: var(--green); font-weight: 800; font-size: .86rem; text-decoration: underline; cursor: pointer; }
.auth-terms-check { display: flex; align-items: flex-start; gap: 7px; margin-bottom: 16px; font-size: .8rem; line-height: 1.5; }
.auth-terms-check input { margin-top: 3px; accent-color: var(--green); flex-shrink: 0; }
.auth-terms-check a { color: var(--green); font-weight: 700; }

/* ════════════════════════════════════════════
   REGISTER — Contact Buttons
════════════════════════════════════════════ */
.register-contact-options {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 28px 0 20px;
}

.reg-contact-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 14px;
  text-decoration: none;
  font-family: var(--font);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  cursor: pointer;
  border: none;
}
.reg-contact-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}
.reg-contact-btn:active { transform: translateY(0); }

.reg-whatsapp-btn {
  background: #25D366;
  color: #fff;
  box-shadow: 0 4px 18px rgba(37,211,102,.35);
}
.reg-facebook-btn {
  background: #0866FF;
  color: #fff;
  box-shadow: 0 4px 18px rgba(8,102,255,.30);
}

.reg-btn-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  /* override global img rule */
  object-fit: unset;
}

.reg-btn-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.reg-btn-label {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
}
.reg-btn-sub {
  font-size: .78rem;
  opacity: .85;
  font-weight: 400;
}

.reg-or-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #aaa;
  font-size: .85rem;
}
.reg-or-divider::before,
.reg-or-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.reg-help-note {
  text-align: center;
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 4px;
}

/* ════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════ */
.footer { background: var(--brown); color: rgba(255,255,255,.78); margin-top: 56px; width: 100%; }
.footer-inner { padding: 44px 20px 32px; max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1.1fr; gap: 32px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-brand p { font-size: .83rem; color: rgba(255,255,255,.55); line-height: 1.7; margin-top: 12px; margin-bottom: 16px; max-width: 260px; }
.footer-pay { display: flex; flex-wrap: wrap; gap: 7px; }
.footer-pay span { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); border-radius: 6px; padding: 3px 10px; font-size: .74rem; font-weight: 700; color: #fff; }
.footer-col h4 { font-family: var(--font); font-weight: 900; font-size: .84rem; color: var(--yellow); margin-bottom: 12px; text-transform: uppercase; letter-spacing: .06em; }
.footer-col a, .footer-col p { display: block; color: rgba(255,255,255,.55); font-size: .83rem; margin-bottom: 7px; transition: color .2s; }
.footer-col a:hover { color: var(--yellow); }
.footer-bottom { padding: 14px 20px; max-width: 1320px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; font-size: .76rem; color: rgba(255,255,255,.35); flex-wrap: wrap; gap: 8px; }
.footer-bottom a { color: rgba(255,255,255,.35); margin-left: 14px; }
.footer-bottom a:hover { color: rgba(255,255,255,.65); }

/* ════════════════════════════════════════════
   TOAST
════════════════════════════════════════════ */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(80px); background: var(--brown); color: #fff; padding: 11px 26px; border-radius: 40px; font-family: var(--font); font-weight: 700; font-size: .86rem; z-index: 9999; pointer-events: none; white-space: nowrap; box-shadow: var(--sh-lg); transition: transform .4s cubic-bezier(.34,1.56,.64,1); }
.toast.show { transform: translateX(-50%) translateY(0); }

/* ════════════════════════════════════════════
   RESPONSIVE — Tablet ≤ 1100px
════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 24px; }
  .checkout-layout { grid-template-columns: 1fr; }
  .cart-table-wrap { flex-direction: column; }
  .cart-summary { width: 100%; }
  .cart-summary-inner { position: static; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-form-box { padding: 36px 28px; justify-content: flex-start; }
}

/* ════════════════════════════════════════════
   RESPONSIVE — Mobile ≤ 768px
════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* ── Navbar ── */
  .nav-search-bar     { display: none; }
  .nav-btn-label      { display: none; }
  .nav-action-btn     { padding: 7px 9px; font-size: .74rem; }
  .cart-trigger-label { display: none; }
  .nav-cart-trigger   { padding: 8px 12px; }

  /* ── Hero ── */
  .hero               { min-height: auto; }
  .hero-content       { padding-top: 28px; padding-bottom: 18px; }
  .hero-title         { font-size: clamp(1.35rem, 6vw, 2rem); }
  .hero-desc          { display: none; }
  .hero-pills         { display: none; }
  .hero-search-box    { max-width: 100%; }
  .hero-search-box button { padding: 12px 14px; font-size: .8rem; }

  .hero-stats { display: grid; grid-template-columns: 1fr 1fr; }
  .hstat { padding: 10px; border-right: none; border-bottom: 1px solid rgba(255,255,255,.12); }
  .hstat:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.12); }
  .hstat:last-child, .hstat:nth-last-child(2):nth-child(odd) { border-bottom: none; }

  /* ── Sections ── */
  .browse-section               { padding: 20px 10px 0; }
  .subcat-section               { padding: 0 10px; }
  .subcat-section.visible       { padding: 16px 10px 0; max-height: 280px; }
  .products-section             { padding: 16px 10px 0; }
  .cart-section                 { margin: 14px 0 0; border-radius: 0; padding: 18px 10px; }
  .section                      { padding: 0 10px; }
  .checkout-wrap                { padding: 18px 10px 48px; }

  /* ── Carousel ── */
  .car-btn                      { display: none; }
  .mobile-car-prev,
  .mobile-car-next              { display: flex; }
  .carousel-dots                { display: flex; }

  .carousel-track-wrap {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    width: 0;
  }
  .carousel-track {
    width: 100%;
    gap: 0;
    padding: 8px 0 14px;
  }

  .cat-card {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
    border-radius: 12px;
    margin: 0;
    box-sizing: border-box;
  }
  .cat-card-img { height: 130px; }

  .subcat-card  { flex-shrink: 0; margin: 0 3px; }

  .product-card {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
    border-radius: 12px;
    margin: 0;
    box-sizing: border-box;
  }

  .product-img-wrap {
    height: 52vw;
    max-height: 260px;
  }
  .product-img-wrap img {
    object-fit: cover;
    object-position: center;
    image-rendering: auto;
  }

  .pc-name              { font-size: .92rem; }
  .pc-price-discounted  { font-size: 1.08rem; }
  .pc-final-price       { font-size: 1.05rem; }
  .pc-add-btn           { padding: 13px 10px; font-size: .88rem; }

  /* ── Cart ── */
  .cart-table-header  { display: none; }
  .cart-item {
    grid-template-columns: 64px 1fr 34px;
    grid-template-rows: auto auto;
    gap: 6px 10px;
    padding: 12px;
  }
  .ci-img      { grid-column: 1; grid-row: 1 / 3; width: 64px; height: 56px; }
  .ci-info     { grid-column: 2; grid-row: 1; }
  .ci-qty-ctrl { grid-column: 2; grid-row: 2; }
  .ci-total    { display: none; }
  .ci-remove   { grid-column: 3; grid-row: 1; align-self: start; }

  /* ── Checkout ── */
  .form-row { grid-template-columns: 1fr; gap: 0; }

  /* ── Auth ── */
  .auth-form-box { padding: 28px 16px; }
  .auth-title    { font-size: 1.25rem; }

  /* ── Register contact buttons ── */
  .reg-btn-label { font-size: .9rem; }
  .reg-contact-btn { padding: 13px 16px; gap: 12px; }

  /* ── Footer ── */
  .footer-inner  { grid-template-columns: 1fr; gap: 18px; padding: 26px 12px 18px; }
  .footer-bottom { flex-direction: column; text-align: center; padding: 12px; }
  .footer-brand p { max-width: 100%; }
}

/* ════════════════════════════════════════════
   RESPONSIVE — Small phones ≤ 420px
════════════════════════════════════════════ */
@media (max-width: 420px) {
  .nav-inner     { padding: 0 8px; gap: 6px; }
  .logo-text     { font-size: .95rem; }
  .hero-title    { font-size: 1.25rem; }
  .ty-box        { padding: 22px 12px; }
  .ty-title      { font-size: 1.3rem; }
  .ty-actions    { flex-direction: column; }

  .product-img-wrap { height: 58vw; max-height: 240px; }
  .product-card-body { padding: 8px 10px 10px; }
  .pc-tiers { padding: 5px 7px; }

  .reg-btn-label { font-size: .84rem; }
  .reg-btn-sub   { font-size: .72rem; }
  .reg-btn-icon  { width: 26px; height: 26px; }
}

/* ════════════════════════════════════════════
   KEY INFO BLOCK
════════════════════════════════════════════ */
.ki-block {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 9px;
  border: 1.5px solid rgba(45,138,78,.22);
  box-shadow: 0 2px 10px rgba(45,138,78,.08);
}

.ki-row {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border-bottom: 1px solid rgba(0,0,0,.06);
  transition: background .18s;
}
.ki-row:last-child { border-bottom: none; }

.ki-row.ki-muted {
  background: #f9fafb;
  opacity: .65;
}

.ki-row.ki-has-val:nth-child(1) { background: rgba(0,188,212,.09); }
.ki-row.ki-has-val:nth-child(2) { background: rgba(249,194,0,.11); }
.ki-row.ki-bonus-row            { background: rgba(45,138,78,.10); }

.ki-icon {
  font-size: .9rem;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}

.ki-label {
  flex: 1;
  color: var(--ink2);
  font-family: var(--font);
  font-weight: 700;
  font-size: .71rem;
}

.ki-val {
  font-family: var(--font);
  font-weight: 900;
  font-size: .82rem;
  white-space: nowrap;
}

.ki-val.ki-unit {
  color: #0097a7;
  background: rgba(0,188,212,.14);
  border: 1px solid rgba(0,188,212,.3);
  border-radius: 20px;
  padding: 2px 9px;
  font-size: .75rem;
}

.ki-val.ki-save {
  color: #b45309;
  background: rgba(249,194,0,.22);
  border: 1px solid rgba(249,194,0,.45);
  border-radius: 20px;
  padding: 2px 9px;
  font-size: .75rem;
}

.ki-val.ki-bonus {
  color: var(--green2);
  background: rgba(45,138,78,.14);
  border: 1px solid rgba(45,138,78,.32);
  border-radius: 20px;
  padding: 2px 9px;
  font-size: .75rem;
}

.pc-bonus-tag {
  background: rgba(45,138,78,.13);
  color: var(--green2);
  border: 1px solid rgba(45,138,78,.28);
  border-radius: 20px;
  padding: 1px 7px;
  font-size: .67rem;
  font-weight: 800;
  margin-left: 4px;
}

/* ════════════════════════════════════════════
   ORDER TRACKING SECTION
════════════════════════════════════════════ */
.track-section {
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--sh-lg);
  margin: 32px 20px 0;
  padding: 28px;
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
}

.track-lookup-box {
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
}

.track-input-wrap {
  display: flex;
  align-items: center;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 50px;
  overflow: hidden;
  padding: 0 6px 0 18px;
  transition: all .2s;
  box-shadow: var(--sh);
}
.track-input-wrap:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(45,138,78,.12);
}

.track-icon { font-size: 1rem; flex-shrink: 0; color: var(--muted); }

.track-input-wrap input {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px 10px;
  font-size: .92rem;
  color: var(--ink);
  background: transparent;
  font-family: var(--body);
  min-width: 0;
}
.track-input-wrap input::placeholder { color: var(--muted2); }

.track-btn {
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 40px;
  padding: 10px 22px;
  font-weight: 800;
  font-size: .86rem;
  font-family: var(--font);
  transition: all .2s;
  flex-shrink: 0;
  white-space: nowrap;
}
.track-btn:hover { background: var(--green2); }
.track-btn:disabled { background: var(--muted2); cursor: not-allowed; }

.track-error {
  margin-top: 12px;
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fca5a5;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: .82rem;
  font-weight: 700;
  font-family: var(--font);
}

.track-history-wrap { display: flex; flex-direction: column; gap: 18px; }

/* ════════════════════════════════════════════
   ORDER CARD
════════════════════════════════════════════ */
.order-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--sh);
  transition: box-shadow .2s;
}
.order-card:hover { box-shadow: var(--sh-lg); }

.oc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 16px 18px;
  background: var(--bg);
  border-bottom: 2px solid var(--border);
  gap: 12px;
}

.oc-id { font-family: var(--font); font-weight: 900; font-size: .9rem; color: var(--ink); margin-bottom: 4px; }
.oc-date { font-size: .74rem; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
.oc-shop { font-size: .78rem; color: var(--green2); font-weight: 800; margin-top: 4px; }

.oc-status {
  font-family: var(--font);
  font-weight: 800;
  font-size: .72rem;
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}
.status-pending    { background: var(--yellow-lt);          color: #92650a;       border: 1px solid rgba(249,194,0,.4); }
.status-confirmed  { background: var(--cyan-lt);            color: #006d7a;       border: 1px solid rgba(0,188,212,.35); }
.status-processing { background: var(--brown-lt);           color: var(--brown);  border: 1px solid rgba(93,58,26,.25); }
.status-shipped    { background: rgba(99,102,241,.1);       color: #4338ca;       border: 1px solid rgba(99,102,241,.3); }
.status-delivered  { background: var(--green-lt);           color: var(--green2); border: 1px solid rgba(45,138,78,.3); }
.status-cancelled  { background: #fee2e2;                   color: #dc2626;       border: 1px solid #fca5a5; }

.oc-status-payment {
  font-family: var(--font);
  font-weight: 800;
  font-size: .68rem;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.oc-status-paid   { background: var(--green-lt); color: var(--green2); border: 1px solid rgba(45,138,78,.3); }
.oc-status-unpaid { background: var(--yellow-lt); color: #92650a;      border: 1px solid rgba(249,194,0,.4); }

.order-card .cart-table-header { padding: 8px 18px; margin-bottom: 0; background: transparent; }
.order-card .cart-item { padding: 12px 18px; }
.order-card .cart-item:last-child { border-bottom: none; }

.oc-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: var(--bg);
  border-top: 2px solid var(--border);
  gap: 12px;
}
.oc-payment { font-size: .8rem; color: var(--muted); font-weight: 700; }
.oc-total { font-family: var(--font); font-size: .9rem; color: var(--ink2); font-weight: 700; }
.oc-total strong { font-family: var(--font); font-weight: 900; font-size: 1.1rem; color: var(--green); }

@media (max-width: 768px) {
  .track-section { margin: 14px 0 0; border-radius: 0; padding: 18px 10px; }
  .track-lookup-box { padding: 14px; }
  .track-input-wrap { padding: 0 4px 0 12px; }
  .track-btn { padding: 9px 14px; font-size: .8rem; }

  .oc-header { padding: 12px 12px; flex-wrap: wrap; }
  .oc-id { font-size: .82rem; }

  .order-card .cart-table-header { display: none; }
  .order-card .cart-item {
    grid-template-columns: 64px 1fr 34px;
    grid-template-rows: auto auto;
    gap: 6px 10px;
    padding: 12px;
  }
  .order-card .ci-img      { grid-column: 1; grid-row: 1 / 3; width: 64px; height: 56px; }
  .order-card .ci-info     { grid-column: 2; grid-row: 1; }
  .order-card .ci-qty-ctrl { grid-column: 2; grid-row: 2; }
  .order-card .ci-total    { display: none; }
  .order-card .ci-remove   { display: none; }

  .oc-footer { padding: 12px; flex-direction: column; align-items: flex-start; gap: 6px; }
  .oc-total  { align-self: flex-end; }
}

/* ════════════════════════════════════════════
   SHARED: Key-Info Chips
════════════════════════════════════════════ */
.eci-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}

.eci-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px 3px 7px;
  border-radius: 20px;
  font-family: var(--font);
  font-size: .67rem;
  font-weight: 700;
  white-space: nowrap;
  line-height: 1.4;
}
.eci-chip span:first-child { font-size: .75rem; }
.eci-chip strong { font-weight: 900; font-size: .7rem; margin-left: 2px; }

.eci-chip--cyan  { background: rgba(0,188,212,.11); border: 1px solid rgba(0,188,212,.35); color: #006d7a; }
.eci-chip--cyan strong { color: #0097a7; }
.eci-chip--amber { background: rgba(249,194,0,.14); border: 1px solid rgba(249,194,0,.45); color: #92650a; }
.eci-chip--amber strong { color: #b45309; }
.eci-chip--green { background: rgba(45,138,78,.11); border: 1px solid rgba(45,138,78,.32); color: var(--green2); }
.eci-chip--green strong { color: var(--green2); }

.eci-total-inners {
  font-size: .69rem;
  font-weight: 800;
  color: var(--cyan);
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.eci-bonus-tag {
  background: rgba(45,138,78,.13);
  color: var(--green2);
  border: 1px solid rgba(45,138,78,.28);
  border-radius: 20px;
  padding: 1px 7px;
  font-size: .63rem;
  font-weight: 800;
}

/* ════════════════════════════════════════════
   ENHANCED CART ITEM
════════════════════════════════════════════ */
.eci-item { border-bottom: 1px solid var(--border); border-radius: 0; transition: background .18s; }
.eci-item:hover { background: var(--bg); border-radius: 10px; }
.eci-item:last-child { border-bottom: none; }

/* ════════════════════════════════════════════
   ENHANCED ORDER CARD
════════════════════════════════════════════ */
.eoc-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--sh);
  transition: box-shadow .2s, transform .2s;
  margin-bottom: 18px;
}
.eoc-card:hover { box-shadow: var(--sh-lg); transform: translateY(-2px); }

.eoc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 16px 20px;
  background: linear-gradient(135deg, #f0faf4 0%, #f7f9f5 100%);
  border-bottom: 2px solid var(--border);
  gap: 12px;
}

.eoc-order-id { font-family: var(--font); font-weight: 900; font-size: .95rem; color: var(--ink); margin-bottom: 8px; letter-spacing: -.01em; }

.eoc-meta-row { display: flex; flex-wrap: wrap; gap: 6px; }

.eoc-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: .72rem;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}
.eoc-meta-shop { background: var(--green-lt); border-color: rgba(45,138,78,.28); color: var(--green2); }

.eoc-header-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }

.eoc-items-wrap { display: flex; flex-direction: column; }

.eoc-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  transition: background .15s;
}
.eoc-item:last-child { border-bottom: none; }
.eoc-item:hover { background: var(--bg); }

.eoc-item-img { width: 64px; height: 54px; border-radius: 10px; overflow: hidden; flex-shrink: 0; background: #f3f4f6; border: 1px solid var(--border); }
.eoc-item-img img { width: 100%; height: 100%; object-fit: cover; }
.eoc-item-img-placeholder { width: 100%; height: 100%; background: var(--bg); border-radius: 10px; }

.eoc-item-body { flex: 1; min-width: 0; }
.eoc-item-name { font-family: var(--font); font-weight: 800; font-size: .86rem; color: var(--ink); margin-bottom: 2px; line-height: 1.3; }
.eoc-item-supplier { font-size: .67rem; color: var(--muted); margin-bottom: 2px; font-weight: 600; }
.eoc-item-pkg { font-size: .68rem; color: var(--cyan); font-weight: 700; margin-bottom: 2px; }
.eoc-item-rate { font-size: .68rem; color: var(--muted); font-weight: 600; margin-bottom: 3px; }

.eoc-item-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; padding-top: 2px; }

.eoc-qty-pill {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 3px 10px;
  font-family: var(--font);
  font-weight: 800;
  font-size: .72rem;
  color: var(--ink2);
  white-space: nowrap;
}
.eoc-item-total { font-family: var(--font); font-weight: 900; font-size: .95rem; color: var(--green); }

.eoc-empty { padding: 20px; color: var(--muted); font-size: .84rem; text-align: center; }

.eoc-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 20px;
  background: linear-gradient(135deg, #f0faf4 0%, #f7f9f5 100%);
  border-top: 2px solid var(--border);
  gap: 12px;
}
.eoc-pay-method { font-size: .8rem; color: var(--muted); font-weight: 700; }
.eoc-footer-right { display: flex; align-items: baseline; gap: 8px; }
.eoc-grand-label { font-size: .82rem; font-weight: 700; color: var(--muted); }
.eoc-grand-val { font-family: var(--font); font-weight: 900; font-size: 1.2rem; color: var(--green); }

@media (max-width: 768px) {
  .eoc-header { padding: 12px 14px; flex-wrap: wrap; }
  .eoc-order-id { font-size: .82rem; }
  .eoc-item { padding: 12px 14px; gap: 10px; }
  .eoc-item-img { width: 54px; height: 46px; }
  .eoc-item-right { flex-direction: row; align-items: center; gap: 8px; padding-top: 0; }
  .eoc-item-total { font-size: .88rem; }
  .eoc-footer { padding: 11px 14px; flex-direction: column; align-items: flex-start; gap: 6px; }
  .eoc-footer-right { align-self: flex-end; }
  .eoc-grand-val { font-size: 1.05rem; }
  .eci-chips { gap: 4px; }
  .eci-chip  { font-size: .63rem; padding: 3px 7px 3px 6px; }
}