/* ═══════════════════════════════════════════════════════════
   CHAIWALA — app.css
   Single stylesheet for all frontend pages
   Font: Inter (body) + Fraunces (brand/display)
   Brand: #4C7B44 green · #F7F3EE beige · #1C1C1C dark
═══════════════════════════════════════════════════════════ */

/* ── GOOGLE FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,wght@0,700;1,400;1,700&family=Inter:wght@300;400;500;600;700&display=swap');

/* ════════════════════════════════════════
   1. VARIABLES
════════════════════════════════════════ */
:root {
  /* Brand */
  --green:        #4C7B44;
  --green-dark:   #385d31;
  --green-light:  #eaf3e8;
  --green-mid:    #d0e8cb;

  /* Neutrals */
  --beige:        #F7F3EE;
  --beige-dark:   #EDE8E0;
  --white:        #ffffff;
  --dark:         #1C1C1C;
  --grey:         #6B6B6B;
  --grey-light:   #E4E0DA;

  /* UI */
  --border:       #E4E0DA;
  --shadow-xs:    0 1px 3px rgba(0,0,0,0.07);
  --shadow-sm:    0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:    0 6px 24px rgba(0,0,0,0.10);
  --shadow-lg:    0 12px 40px rgba(0,0,0,0.13);

  /* Radius */
  --r-sm:   8px;
  --r-md:   14px;
  --r-lg:   20px;
  --r-full: 999px;

  /* Layout */
  --header-h:   58px;
  --tabbar-h:   68px;
  --max-w:      1200px;

  /* Typography */
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Fraunces', Georgia, serif;
}

/* ════════════════════════════════════════
   2. RESET & BASE
════════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-body);
  background: var(--beige);
  color: var(--dark);
  min-height: 100vh;
  padding-top: 0;        /* ← change this */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
@media (max-width: 768px) {
  body { padding-bottom: var(--tabbar-h); }
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: var(--font-body); cursor: pointer; }
input, textarea, select { font-family: var(--font-body); }
ul, ol { list-style: none; }

/* ════════════════════════════════════════
   3. TYPOGRAPHY SCALE
════════════════════════════════════════ */
.t-display {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
}
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }
p  { line-height: 1.65; color: var(--grey); }

/* ════════════════════════════════════════
   4. GLOBAL BUTTONS / CTA
════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 24px;
  border-radius: var(--r-full);
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
  line-height: 1;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 3px 12px rgba(76,123,68,0.28);
}
.btn-primary:hover {
  background: var(--green-dark);
  color: #fff;
  box-shadow: 0 5px 18px rgba(76,123,68,0.35);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--green);
  border: 2px solid var(--green);
}
.btn-outline:hover {
  background: var(--green);
  color: #fff;
}

.btn-ghost {
  background: var(--green-light);
  color: var(--green);
}
.btn-ghost:hover { background: var(--green-mid); }

.btn-sm { padding: 8px 16px; font-size: 0.82rem; }
.btn-lg { padding: 15px 32px; font-size: 1rem; }
.btn-full { width: 100%; }
.btn-danger { background: #ef4444; color: #fff; }
.btn-danger:hover { background: #dc2626; color: #fff; }

/* ════════════════════════════════════════
   5. FORM ELEMENTS
════════════════════════════════════════ */
.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--dark);
  letter-spacing: 0.1px;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  font-size: 0.93rem;
  color: var(--dark);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}
.form-control:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(76,123,68,0.12);
}
.form-control::placeholder { color: #bbb; }
.form-control.error { border-color: #ef4444; }
.form-control.error:focus { box-shadow: 0 0 0 3px rgba(239,68,68,0.12); }

.input-icon-wrap { position: relative; }
.input-icon-wrap .input-icon {
  position: absolute;
  left: 13px; top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  pointer-events: none;
}
.input-icon-wrap .form-control { padding-left: 40px; }
.input-icon-wrap .input-action {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  font-size: 1rem; color: var(--grey);
  cursor: pointer; padding: 4px;
}

/* ════════════════════════════════════════
   6. CARDS
════════════════════════════════════════ */
.card {
  background: var(--white);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}
.card-body { padding: 20px; }
.card-sm { border-radius: var(--r-md); }

/* ════════════════════════════════════════
   7. ALERTS / MESSAGES
════════════════════════════════════════ */
.alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border-radius: var(--r-md);
  font-size: 0.87rem;
  font-weight: 500;
  margin-bottom: 20px;
}
.alert-error {
  background: #fff5f5;
  border: 1px solid #fecaca;
  border-left: 4px solid #ef4444;
  color: #b91c1c;
  animation: shake 0.4s ease;
}
.alert-success {
  background: var(--green-light);
  border: 1px solid var(--green-mid);
  border-left: 4px solid var(--green);
  color: var(--green-dark);
}
.alert-info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-left: 4px solid #3b82f6;
  color: #1d4ed8;
}
@keyframes shake {
  0%,100%{ transform: translateX(0); }
  20%    { transform: translateX(-5px); }
  40%    { transform: translateX(5px); }
  60%    { transform: translateX(-3px); }
  80%    { transform: translateX(3px); }
}

/* ════════════════════════════════════════
   8. BADGES / TAGS
════════════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.badge-green  { background: var(--green-light); color: var(--green); }
.badge-grey   { background: var(--beige-dark);  color: var(--grey); }
.badge-red    { background: #fff5f5; color: #ef4444; }
.badge-orange { background: #fff7ed; color: #ea580c; }

/* ════════════════════════════════════════
   9. LAYOUT HELPERS
════════════════════════════════════════ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}
.section { padding: 48px 0; }
.section-sm { padding: 28px 0; }
@media (max-width: 768px) {
  .section    { padding: 32px 0; }
  .section-sm { padding: 20px 0; }
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.flex     { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: 8px; }
.gap-md { gap: 16px; }
.gap-lg { gap: 24px; }

/* ════════════════════════════════════════
   10. HEADER
════════════════════════════════════════ */
#cw-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1rem;
  height: 60px;                /* slightly taller */
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 900;
  box-shadow: 0 1px 6px rgba(0,0,0,.08);
}

.cw-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  text-decoration: none;
}
.cw-logo img {
  height: 44px;               /* was ~36px */
  width: auto;
  display: block;
}
.cw-logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

/* Push right-actions to the far right */
.cw-header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Search */
.cw-search {
  flex: 1;
}
.cw-search form {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--beige);
  border: 1.5px solid var(--border);
  border-radius: var(--r-full);
  padding: 0 14px;
  height: 38px;
  transition: border-color 0.2s, background 0.2s;
}
.cw-search form:focus-within {
  border-color: var(--green);
  background: var(--white);
}
.cw-search input {
  border: none; background: none; outline: none;
  font-size: 0.87rem; color: var(--dark); width: 100%;
}
.cw-search input::placeholder { color: #aaa; }
.cw-search .s-icon { font-size: 0.95rem; color: var(--grey); flex-shrink: 0; }

/* Header right */
.cw-header-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.cw-icon-btn {
  position: relative;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  color: var(--dark);
  transition: background 0.15s;
  text-decoration: none;
}
.cw-icon-btn:hover { background: var(--beige-dark); }
.cw-icon-btn .cw-badge {
  position: absolute;
  top: 4px; right: 4px;
  background: var(--green);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 700;
  min-width: 16px; height: 16px;
  border-radius: var(--r-full);
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--white);
  padding: 0 3px;
}

/* Greeting chip on desktop */
.cw-greeting {
  font-size: 0.82rem;
  color: var(--grey);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}
.cw-greeting strong { color: var(--dark); font-weight: 600; }
/* ── MOBILE: hide search bar & desktop-only elements ── */
@media (max-width: 768px) {
  .cw-search        { display: none; }
  .cw-greeting      { display: none; }
  .desktop-only     { display: none; }   /* hides desktop cart button */

  /* Show mobile cart link (direct link to cart page) */
  .mobile-cart-link { display: flex; }

  .cw-logo img { height: 40px; }        /* slightly smaller on mobile */
}

/* ── DESKTOP: hide mobile cart link ── */
@media (min-width: 769px) {
  .mobile-cart-link { display: none; }  /* desktop uses button + minicart */
  .desktop-only     { display: flex; }
}

/* Cart wrap positioning for minicart dropdown */
.cw-cart-wrap {
  position: relative;
}
/* Hide search on small mobile */
@media (max-width: 480px) {
  .cw-search { display: none; }
  .cw-greeting { display: none; }
}

/* ── Minicart dropdown ── */
.cw-cart-wrap { position: relative; }
.cw-minicart {
  display: none;
  position: absolute;
  top: calc(100% + 10px); right: 0;
  width: 310px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  z-index: 950;
  overflow: hidden;
}
.cw-minicart.open { display: block; }
.mc-head {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.mc-head strong { font-size: 0.9rem; }
.mc-head small { font-size: 0.75rem; color: var(--grey); }
.mc-body { max-height: 220px; overflow-y: auto; padding: 8px; }
.mc-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px; border-radius: var(--r-sm);
}
.mc-item:hover { background: var(--beige); }
.mc-item-img {
  width: 44px; height: 44px;
  border-radius: var(--r-sm); overflow: hidden;
  background: var(--beige); flex-shrink: 0;
}
.mc-item-img img { width: 100%; height: 100%; object-fit: cover; }
.mc-item-name {
  font-size: 0.82rem; font-weight: 500;
  display: block; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.mc-item-meta { font-size: 0.74rem; color: var(--grey); margin-top: 2px; }
.mc-item-remove { font-size: 0.72rem; color: #ccc; margin-left: auto; padding: 4px; flex-shrink: 0; }
.mc-item-remove:hover { color: #ef4444; }
.mc-empty { padding: 28px 16px; text-align: center; }
.mc-empty-icon { font-size: 2rem; margin-bottom: 8px; }
.mc-empty p { font-size: 0.82rem; color: var(--grey); line-height: 1.5; }
.mc-foot {
  padding: 12px 14px;
  border-top: 1px solid var(--border);
}
.mc-total {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px;
}
.mc-total-label { font-size: 0.8rem; color: var(--grey); }
.mc-total-price { font-size: 1rem; font-weight: 700; color: var(--green); }
.mc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mc-btn-view {
  padding: 9px; text-align: center; border-radius: var(--r-sm);
  font-size: 0.82rem; font-weight: 600;
  border: 1.5px solid var(--green); color: var(--green);
  transition: background 0.15s, color 0.15s;
}
.mc-btn-view:hover { background: var(--green); color: #fff; }
.mc-btn-checkout {
  padding: 9px; text-align: center; border-radius: var(--r-sm);
  font-size: 0.82rem; font-weight: 600;
  background: var(--green); color: #fff;
  transition: background 0.15s;
}
.mc-btn-checkout:hover { background: var(--green-dark); color: #fff; }

/* ════════════════════════════════════════
   11. BOTTOM TAB BAR (mobile only)
════════════════════════════════════════ */
#cw-tabbar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--tabbar-h);
  background: var(--white);
  border-top: 1px solid var(--border);
  z-index: 900;
  padding: 0 8px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (max-width: 768px) {
  #cw-tabbar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
  }
}
.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 4px;
  color: #aaa;
  font-size: 0.6rem;
  font-weight: 500;
  transition: color 0.15s;
  position: relative;
  text-decoration: none;
  border-radius: var(--r-sm);
  -webkit-tap-highlight-color: transparent;
}
.tab-item.active { color: var(--green); }
.tab-icon { font-size: 1.45rem; line-height: 1; display: block; }
.tab-label { line-height: 1; letter-spacing: 0.2px; }
.tab-badge {
  position: absolute;
  top: 3px; right: calc(50% - 18px);
  background: var(--green);
  color: #fff;
  font-size: 0.55rem;
  font-weight: 700;
  min-width: 15px; height: 15px;
  border-radius: var(--r-full);
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--white);
  padding: 0 3px;
}

/* Centre cart tab — slightly elevated pill */
.tab-item.tab-center {
  background: var(--green);
  color: #fff;
  border-radius: var(--r-lg);
  padding: 8px 6px;
  margin: 0 4px;
  box-shadow: 0 4px 14px rgba(76,123,68,0.35);
  transform: translateY(-8px);
}
.tab-item.tab-center .tab-icon { font-size: 1.6rem; }
.tab-item.tab-center .tab-label { color: #fff; }
.tab-item.tab-center.active { color: #fff; }
.tab-item.tab-center .tab-badge {
  background: #fff;
  color: var(--green);
  right: calc(50% - 20px);
}

/* ════════════════════════════════════════
   12. FOOTER — minimal copyright bar only
════════════════════════════════════════ */
#cw-footer {
  background: #161f14;
}
.footer-bottom {
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.footer-copy { font-size: 0.74rem; color: #555; }
.footer-copy a { color: var(--green); }

/* On mobile footer sits above tab bar */
@media (max-width: 768px) {
  #cw-footer { display: none; }
}



/* ════════════════════════════════════════
   14. LOGIN PAGE
════════════════════════════════════════ */
body.page-login {
  padding-top: 0;
  padding-bottom: 0;
  background: var(--white);
}
.login-wrap {
  display: flex;
  min-height: 100vh;
}
.login-visual {
  position: relative;
  width: 46%;
  background: linear-gradient(150deg, #2d5a27 0%, #4C7B44 50%, #6fa365 100%);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  padding: 60px 48px;
}
.login-visual-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 25% 25%, rgba(255,255,255,0.07) 0%, transparent 55%),
              radial-gradient(ellipse at 75% 80%, rgba(0,0,0,0.12) 0%, transparent 55%);
}
.lv-deco {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
}
.lv-deco-1 { width: 300px; height: 300px; top: -80px; left: -80px; }
.lv-deco-2 { width: 180px; height: 180px; bottom: 50px; right: -50px; }
.lv-deco-3 { width: 90px;  height: 90px;  bottom: 170px; left: 40px; border-color: rgba(255,255,255,0.06); }
.login-visual-content { position: relative; z-index: 2; color: #fff; text-align: center; }
.lv-icon  { font-size: 4rem; display: block; margin-bottom: 24px; }
.lv-title { font-family: var(--font-display); font-style: italic; font-size: 2.4rem; font-weight: 700; line-height: 1.18; margin-bottom: 14px; }
.lv-title em { color: #c8e6b0; font-style: normal; }
.lv-desc  { font-size: 0.92rem; line-height: 1.7; color: rgba(255,255,255,0.78); margin-bottom: 28px; }
.lv-pills { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.lv-pill  {
  background: rgba(255,255,255,0.13);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff; font-size: 0.76rem; font-weight: 600;
  padding: 6px 14px; border-radius: var(--r-full);
}
.login-form-panel {
  width: 54%;
  display: flex; flex-direction: column; justify-content: center;
  padding: 60px 64px;
  background: var(--white);
  overflow-y: auto;
}
.login-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--green-light); border: 1px solid var(--green-mid);
  color: var(--green); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.7px; text-transform: uppercase;
  padding: 5px 12px; border-radius: var(--r-full); margin-bottom: 16px;
}
.login-title { font-size: 2rem; font-weight: 800; color: var(--dark); line-height: 1.2; margin-bottom: 8px; }
.login-sub   { font-size: 0.9rem; color: var(--grey); margin-bottom: 28px; }
.login-form  { display: flex; flex-direction: column; gap: 18px; }
.login-forgot { display: flex; justify-content: flex-end; margin-top: 4px; }
.login-forgot a { font-size: 0.8rem; color: var(--green); font-weight: 500; }
.login-forgot a:hover { text-decoration: underline; }
.login-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 24px 0; color: var(--grey-light); font-size: 0.8rem;
}
.login-divider::before, .login-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.login-register { text-align: center; }
.login-register p { font-size: 0.85rem; color: var(--grey); margin-bottom: 10px; }
.login-admin { text-align: center; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.login-admin a { font-size: 0.76rem; color: #bbb; }
.login-admin a:hover { color: var(--grey); }
@media (max-width: 860px) {
  .login-wrap { flex-direction: column; }
  .login-visual { width: 100%; min-height: 240px; padding: 40px 28px; }
  .lv-title { font-size: 1.8rem; }
  .login-form-panel { width: 100%; padding: 36px 24px; }
}
@media (max-width: 480px) {
  .login-form-panel { padding: 28px 18px; }
  .login-title { font-size: 1.6rem; }
}

/* ════════════════════════════════════════
   15. HOME PAGE
════════════════════════════════════════ */
/* ══ HERO ══ */
.home-hero {
  background: #fff;
  overflow: hidden;
}

/* — Top white section — */
.hero-top {
  text-align: center;
  padding: 48px 24px 36px;
  max-width: 760px;
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-block;
  background: linear-gradient(135deg, #c9a84c, #e8c96b, #a87828);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 8px 28px;
  border-radius: 999px;
  margin-bottom: 24px;
  box-shadow: 0 2px 12px rgba(168,120,40,0.3);
}

.hero-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: #1a4a1a;
  line-height: 1.2;
  margin-bottom: 20px;
  font-weight: 400;
}

.hero-sub {
  font-size: 1rem;
  color: #555;
  line-height: 1.8;
  max-width: 580px;
  margin: 0 auto;
}

/* Gold divider line under top section */
.hero-top::after {
  content: '';
  display: block;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #c9a84c, #e8c96b, #c9a84c, transparent);
  margin-top: 32px;
}

/* — Green curved bottom — */
.hero-bottom {
  background: #2d6a2d;
  position: relative;
  padding: 0 24px 48px;
}

.hero-wave {
  margin-top: -2px;
}
.hero-wave svg {
  display: block;
  width: 100%;
  height: 80px;
}

/* — Brewing instructions — */
.brewing-title {
  text-align: center;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin: 0 0 32px;
}

.brewing-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 700px;
  margin: 0 auto;
  flex-wrap: nowrap;
}

.brew-divider {
  width: 2px;
  height: 80px;
  background: rgba(255,255,255,0.3);
  flex-shrink: 0;
}

.brew-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 0 32px;
  flex: 1;
  min-width: 0;
}

.brew-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #fff;
}

.brew-step span {
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.4;
}

/* — CTA buttons — */
.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  padding: 32px 24px 40px;
  background: #2d6a2d;
}

/* ══ MOBILE ══ */
@media (max-width: 600px) {
  .hero-top { padding: 36px 20px 28px; }
  .hero-title { font-size: 1.8rem; }
  .hero-sub { font-size: 0.9rem; }
  .brew-step { padding: 0 16px; }
  .brew-icon { width: 52px; height: 52px; font-size: 1.3rem; }
  .brew-step span { font-size: 0.78rem; }
  .brewing-title { font-size: 0.85rem; letter-spacing: 2px; }
}

/* Features strip */
.home-features { background: var(--white); padding: 32px 0; border-bottom: 1px solid var(--border); }
.features-grid {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: repeat(4,1fr); gap: 16px;
}
.feature-card {
  display: flex; align-items: center; gap: 12px;
  padding: 16px; background: var(--beige);
  border-radius: var(--r-md);
}
.feature-icon { font-size: 1.6rem; flex-shrink: 0; }
.feature-title { font-size: 0.85rem; font-weight: 600; color: var(--dark); }
.feature-desc  { font-size: 0.75rem; color: var(--grey); margin-top: 2px; }
@media (max-width: 900px) { .features-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px) { .features-grid { grid-template-columns: 1fr; } }

/* Section head */
.section-head { text-align: center; margin-bottom: 36px; }
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--green-light); border: 1px solid var(--green-mid);
  color: var(--green); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.6px; text-transform: uppercase;
  padding: 5px 12px; border-radius: var(--r-full); margin-bottom: 12px;
}
.section-title { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; color: var(--dark); margin-bottom: 8px; }
.section-sub   { font-size: 0.9rem; color: var(--grey); }

/* ════════════════════════════════════════
   16. PRODUCT CARDS
════════════════════════════════════════ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.product-card {
  background: var(--white);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.product-card-img {
  display: block; aspect-ratio: 1;
  overflow: hidden; background: var(--beige);
}
.product-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.3s;
}
.product-card:hover .product-card-img img { transform: scale(1.05); }
.product-card-body { padding: 14px; flex: 1; display: flex; flex-direction: column; }
.product-card-name {
  font-size: 0.9rem; font-weight: 600; color: var(--dark);
  margin-bottom: 8px; line-height: 1.3;
}
.product-card-name a { color: inherit; }
.product-card-price { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; margin-top: auto; }
.price-old  { font-size: 0.78rem; color: #bbb; text-decoration: line-through; }
.price-now  { font-size: 1rem; font-weight: 700; color: var(--green); }
.product-card-btn {
  display: block; width: 100%; padding: 10px;
  background: var(--green); color: #fff;
  border-radius: var(--r-sm); text-align: center;
  font-size: 0.82rem; font-weight: 600;
  transition: background 0.15s, transform 0.15s;
  border: none; cursor: pointer;
}
.product-card-btn:hover { background: var(--green-dark); color: #fff; transform: translateY(-1px); }
.no-products {
  grid-column: 1/-1; text-align: center;
  padding: 60px 20px; color: var(--grey);
}

/* ════════════════════════════════════════
   17. CART PAGE
════════════════════════════════════════ */
.cart-wrap {
  max-width: 960px; margin: 0 auto;
  padding: 32px 20px;
  display: grid; grid-template-columns: 1fr 320px; gap: 24px;
  align-items: start;
}
.cart-items { display: flex; flex-direction: column; gap: 12px; }
.cart-item {
  background: var(--white); border-radius: var(--r-lg);
  border: 1px solid var(--border);
  display: flex; align-items: center; gap: 14px;
  padding: 14px;
}
.cart-item-img {
  width: 72px; height: 72px;
  border-radius: var(--r-md); overflow: hidden;
  background: var(--beige); flex-shrink: 0;
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: 0.92rem; font-weight: 600; color: var(--dark); margin-bottom: 4px; }
.cart-item-sku  { font-size: 0.75rem; color: var(--grey); margin-bottom: 8px; }
.cart-item-price { font-size: 0.95rem; font-weight: 700; color: var(--green); }
.cart-qty {
  display: flex; align-items: center; gap: 10px;
  margin-top: 8px;
}
.cart-qty-btn {
  width: 28px; height: 28px;
  background: var(--beige); border: 1px solid var(--border);
  border-radius: 50%; font-size: 1rem; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--dark); line-height: 1;
  transition: background 0.15s;
}
.cart-qty-btn:hover { background: var(--green-light); }
.cart-qty-val { font-size: 0.9rem; font-weight: 600; min-width: 20px; text-align: center; }
.cart-item-remove { font-size: 0.8rem; color: #ccc; padding: 6px; flex-shrink: 0; transition: color 0.15s; }
.cart-item-remove:hover { color: #ef4444; }
.cart-summary {
  background: var(--white); border-radius: var(--r-lg);
  border: 1px solid var(--border); padding: 20px;
  position: sticky; top: calc(var(--header-h) + 16px);
}
.cart-summary-title { font-size: 1rem; font-weight: 700; margin-bottom: 16px; }
.cart-summary-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.87rem; color: var(--grey); padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.cart-summary-row:last-of-type { border-bottom: none; }
.cart-summary-total {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0 16px; font-weight: 700; font-size: 1rem;
}
.cart-summary-total .total-price { color: var(--green); font-size: 1.2rem; }
.cart-empty { text-align: center; padding: 80px 20px; max-width: 360px; margin: 0 auto; }
.cart-empty-icon { font-size: 4rem; margin-bottom: 16px; }
.cart-empty h3 { font-size: 1.2rem; margin-bottom: 8px; }
.cart-empty p  { font-size: 0.88rem; color: var(--grey); margin-bottom: 20px; }
@media (max-width: 768px) {
  .cart-wrap { grid-template-columns: 1fr; padding: 16px; }
  .cart-summary { position: static; }
}

/* ════════════════════════════════════════
   18. CHECKOUT PAGE
════════════════════════════════════════ */
.checkout-wrap {
  max-width: 960px; margin: 0 auto;
  padding: 32px 20px;
  display: grid; grid-template-columns: 1fr 320px; gap: 24px;
  align-items: start;
}
.checkout-section { margin-bottom: 20px; }
.checkout-section-title {
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.8px; text-transform: uppercase;
  color: var(--green); margin-bottom: 14px;
}
.checkout-card {
  background: var(--white); border-radius: var(--r-lg);
  border: 1px solid var(--border); padding: 20px;
}
.checkout-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.checkout-grid .full { grid-column: 1 / -1; }
.order-summary-card {
  background: var(--white); border-radius: var(--r-lg);
  border: 1px solid var(--border); padding: 20px;
  position: sticky; top: calc(var(--header-h) + 16px);
}

/* COD payment option */
.cod-option {
  display: flex; align-items: center; gap: 14px;
  cursor: default;
}
.cod-radio { flex-shrink: 0; }
.cod-title {
  font-size: 0.92rem; font-weight: 600; color: var(--dark);
  margin-bottom: 4px; display: flex; align-items: center; gap: 6px;
}
.cod-desc { font-size: 0.8rem; color: var(--grey); }
.order-item {
  display: flex; gap: 10px; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--border);
}
.order-item:last-of-type { border-bottom: none; }
.order-item-img {
  width: 46px; height: 46px;
  border-radius: var(--r-sm); overflow: hidden; background: var(--beige); flex-shrink: 0;
}
.order-item-img img { width: 100%; height: 100%; object-fit: cover; }
.order-item-name { font-size: 0.84rem; font-weight: 500; flex: 1; }
.order-item-price { font-size: 0.84rem; font-weight: 700; color: var(--green); flex-shrink: 0; }
@media (max-width: 768px) {
  .checkout-wrap { grid-template-columns: 1fr; padding: 16px; }
  .checkout-grid { grid-template-columns: 1fr; }
  .checkout-grid .full { grid-column: 1; }
  .order-summary-card { position: static; }
}

/* ════════════════════════════════════════
   19. PROFILE PAGE
════════════════════════════════════════ */
.profile-wrap {
  max-width: 640px; margin: 0 auto; padding: 24px 20px;
}
.profile-hero {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  border-radius: var(--r-lg);
  padding: 24px 20px;
  display: flex; align-items: center; gap: 18px;
  margin-bottom: 16px;
  color: #fff;
}
.profile-avatar {
  width: 64px; height: 64px;
  background: rgba(255,255,255,0.2);
  border: 3px solid rgba(255,255,255,0.4);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; font-weight: 700; color: #fff;
  flex-shrink: 0;
}
.profile-name  { font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: 5px; }
.profile-email { font-size: 0.8rem; color: rgba(255,255,255,0.8); display: flex; align-items: center; gap: 5px; }

/* Stats */
.profile-stats {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 12px; margin-bottom: 16px;
}
.profile-stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px 12px;
  text-align: center;
}
.profile-stat-icon { font-size: 1.3rem; color: var(--green); margin-bottom: 6px; }
.profile-stat-val   { font-size: 1.1rem; font-weight: 800; color: var(--dark); margin-bottom: 3px; }
.profile-stat-label { font-size: 0.72rem; color: var(--grey); }

/* Info grid */
.profile-info-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.profile-info-item {}
.profile-info-label { font-size: 0.72rem; color: var(--grey); font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 3px; }
.profile-info-val   { font-size: 0.9rem; color: var(--dark); font-weight: 500; }

/* Recent order row */
.profile-order-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.profile-order-row:last-child { border-bottom: none; }
.profile-order-icon {
  width: 36px; height: 36px;
  background: var(--green-light);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--green); font-size: 1rem; flex-shrink: 0;
}

/* Menu */
.profile-menu { display: flex; flex-direction: column; gap: 10px; }
.profile-menu-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 15px 16px;
  display: flex; align-items: center; gap: 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
  color: var(--dark);
}
.profile-menu-item:hover { border-color: var(--green); box-shadow: var(--shadow-sm); }
.profile-menu-icon  { font-size: 1.2rem; flex-shrink: 0; color: var(--green); }
.profile-menu-label { font-size: 0.9rem; font-weight: 500; flex: 1; }
.profile-menu-arrow { color: #ccc; font-size: 0.85rem; }

@media (max-width: 480px) {
  .profile-wrap   { padding: 16px; }
  .profile-stats  { grid-template-columns: repeat(3,1fr); gap: 8px; }
  .profile-stat-card { padding: 12px 8px; }
  .profile-info-grid { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════
   20. ORDERS PAGE
════════════════════════════════════════ */
.orders-wrap {
  max-width: 760px; margin: 0 auto; padding: 24px 20px;
}
.order-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  margin-bottom: 16px;
  overflow: hidden;
}
.order-card-head {
  padding: 14px 18px;
  display: flex; align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}
.order-id   { font-size: 0.9rem; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.order-date { font-size: 0.76rem; color: var(--grey); display: flex; align-items: center; gap: 5px; }

.order-card-body { padding: 8px 12px; }

.order-line-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 6px;
  border-bottom: 1px solid var(--border);
}
.order-line-item:last-child { border-bottom: none; }
.order-line-img {
  width: 52px; height: 52px;
  border-radius: var(--r-sm);
  overflow: hidden; background: var(--beige); flex-shrink: 0;
}
.order-line-img img { width: 100%; height: 100%; object-fit: cover; }
.order-line-info { flex: 1; min-width: 0; }
.order-line-name { font-size: 0.88rem; font-weight: 500; color: var(--dark); margin-bottom: 3px; }
.order-line-meta { font-size: 0.74rem; color: var(--grey); }
.order-line-price { font-size: 0.9rem; font-weight: 700; color: var(--green); flex-shrink: 0; }

.order-card-foot {
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center;
  justify-content: space-between;
  background: var(--beige);
}
.order-total { font-size: 0.88rem; color: var(--dark); }
.order-total strong { color: var(--green); font-size: 1rem; }
.order-empty { text-align: center; padding: 60px 20px; color: var(--grey); }
.order-empty-icon { font-size: 3.5rem; margin-bottom: 14px; }

@media (max-width: 480px) {
  .orders-wrap { padding: 16px; }
  .order-card-head { flex-direction: column; gap: 10px; }
}

/* ════════════════════════════════════════
   21. PRODUCT DETAIL PAGE
════════════════════════════════════════ */
.pd-wrap {
  max-width: 960px; margin: 0 auto;
  padding: 28px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

/* Gallery */
.pd-main-img {
  position: relative;
  background: var(--white);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  aspect-ratio: 1;
}
.pd-main-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.3s;
}
.pd-main-img:hover img { transform: scale(1.03); }
.pd-badge {
  position: absolute; top: 12px; left: 12px;
  padding: 4px 10px; border-radius: var(--r-full);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.5px;
}
.pd-badge.sale { background: #ef4444; color: #fff; }

.pd-thumbs {
  display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap;
}
.pd-thumb {
  width: 64px; height: 64px;
  border-radius: var(--r-sm);
  border: 2px solid var(--border);
  overflow: hidden; cursor: pointer;
  transition: border-color 0.15s;
  flex-shrink: 0;
}
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumb.active { border-color: var(--green); }
.pd-thumb:hover  { border-color: var(--green); }

/* Info panel */
.pd-title {
  font-size: 1.5rem; font-weight: 800;
  color: var(--dark); line-height: 1.2; margin-bottom: 10px;
}
.pd-meta {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px; flex-wrap: wrap;
}
.pd-sku { font-size: 0.78rem; color: var(--grey); }

.pd-price {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 16px; flex-wrap: wrap;
}
.pd-price .price-now { font-size: 1.7rem; font-weight: 800; color: var(--green); }
.pd-price .price-old { font-size: 1rem; color: #bbb; text-decoration: line-through; }
.pd-discount-badge {
  background: #fef2f2; color: #ef4444;
  font-size: 0.76rem; font-weight: 700;
  padding: 3px 9px; border-radius: var(--r-full);
}

.pd-desc {
  font-size: 0.88rem; color: var(--grey);
  line-height: 1.75; margin-bottom: 18px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.pd-stock-info {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.82rem; color: var(--grey);
  margin-bottom: 16px;
}
.pd-stock-info i { color: var(--green); }

/* Qty */
.pd-qty-row {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 16px;
}
.pd-qty-ctrl {
  display: flex; align-items: center;
  background: var(--beige);
  border: 1.5px solid var(--border);
  border-radius: var(--r-full);
  overflow: hidden;
}
.pd-qty-btn {
  width: 40px; height: 40px;
  background: none; border: none;
  font-size: 1.1rem; color: var(--dark);
  cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  transition: background 0.15s;
}
.pd-qty-btn:hover { background: var(--green-light); color: var(--green); }
.pd-qty-ctrl input[type=number] {
  width: 44px; border: none; background: none;
  text-align: center; font-size: 0.95rem; font-weight: 700;
  color: var(--dark); outline: none;
  -moz-appearance: textfield;
}
.pd-qty-ctrl input::-webkit-outer-spin-button,
.pd-qty-ctrl input::-webkit-inner-spin-button { -webkit-appearance: none; }
.pd-qty-label { font-size: 0.76rem; color: var(--grey); }

/* Action buttons */
.pd-actions {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px; margin-bottom: 20px;
}
@media (max-width: 400px) {
  .pd-actions { grid-template-columns: 1fr; }
}

/* Trust strip */
.pd-trust {
  display: flex; gap: 16px; flex-wrap: wrap;
  padding-top: 16px; border-top: 1px solid var(--border);
}
.pd-trust-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.78rem; color: var(--grey);
}
.pd-trust-item i { color: var(--green); font-size: 1rem; }

/* Responsive */
@media (max-width: 680px) {
  .pd-wrap { grid-template-columns: 1fr; padding: 16px; gap: 20px; }
  .pd-title { font-size: 1.25rem; }
  .pd-price .price-now { font-size: 1.4rem; }
}

/* ════════════════════════════════════════
   22. SHOP PAGE
════════════════════════════════════════ */
.shop-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 24px 20px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: start;
}

/* Sidebar */
.shop-sidebar-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px;
  margin-bottom: 14px;
}
.shop-sidebar-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 14px;
}
.shop-cat-list { display: flex; flex-direction: column; gap: 4px; }
.shop-cat-item {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  font-size: 0.85rem;
  color: var(--grey);
  transition: background 0.15s, color 0.15s;
}
.shop-cat-item:hover { background: var(--beige); color: var(--dark); }
.shop-cat-item.active { background: var(--green-light); color: var(--green); font-weight: 600; }

/* Toolbar */
.shop-toolbar {
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  margin-bottom: 20px;
}
.shop-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.shop-filter-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--green-light);
  border: 1px solid var(--green-mid);
  color: var(--green);
  font-size: 0.78rem; font-weight: 600;
  padding: 5px 10px; border-radius: var(--r-full);
}
.shop-filter-tag a { color: var(--green); display: flex; align-items: center; }
.shop-filter-tag a:hover { color: var(--green-dark); }

/* Mobile: sidebar becomes horizontal scroll filter row */
@media (max-width: 768px) {
  .shop-wrap {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 16px;
  }
  .shop-sidebar {
    display: flex; gap: 10px; overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .shop-sidebar::-webkit-scrollbar { display: none; }
  .shop-sidebar-block {
    flex-shrink: 0; min-width: 200px;
    margin-bottom: 0;
  }
}

/* ════════════════════════════════════════
   23. PAGE HEADERS
════════════════════════════════════════ */
.page-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
  margin-bottom: 0;
}
.page-header-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
}
.page-header-title { font-size: 1.4rem; font-weight: 800; color: var(--dark); margin-bottom: 4px; }
.page-header-sub   { font-size: 0.85rem; color: var(--grey); }

/* Breadcrumb */
.breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.78rem; color: var(--grey); margin-bottom: 8px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--green); }
.breadcrumb-sep { color: #ccc; }

/* ════════════════════════════════════════
   23. EMPTY STATES
════════════════════════════════════════ */
.empty-state {
  text-align: center; padding: 60px 20px;
  max-width: 320px; margin: 0 auto;
}
.empty-state-icon { font-size: 3.5rem; margin-bottom: 16px; }
.empty-state h3 { font-size: 1.1rem; margin-bottom: 8px; }
.empty-state p  { font-size: 0.85rem; color: var(--grey); margin-bottom: 20px; }

/* ════════════════════════════════════════
   24. UTILITY
════════════════════════════════════════ */
.text-green  { color: var(--green); }
.text-grey   { color: var(--grey); }
.text-dark   { color: var(--dark); }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.mt-4  { margin-top: 4px; }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-4  { margin-bottom: 4px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.p-16  { padding: 16px; }
.p-20  { padding: 20px; }
.hidden { display: none; }
.d-flex { display: flex; }
.w-full { width: 100%; }

/* ════════════════════════════════════════
   24b. CATEGORY TABS
════════════════════════════════════════ */
.cat-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 28px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--r-full);
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--grey);
  font-size: 0.84rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.18s;
  font-family: var(--font-body);
}
.cat-tab-btn:hover  { border-color: var(--green); color: var(--green); }
.cat-tab-btn.active { background: var(--green); border-color: var(--green); color: #fff; font-weight: 600; }

.product-group        { display: none; }
.product-group.active { display: block; }

/* ════════════════════════════════════════
   25. PRELOADER
════════════════════════════════════════ */
#cw-preloader {
  position: fixed; inset: 0;
  background: var(--white);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  z-index: 9999;
  transition: opacity 0.4s, visibility 0.4s;
}
#cw-preloader.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-brand {
  font-family: var(--font-display);
  font-style: italic; font-size: 2rem;
  color: var(--green); margin-bottom: 16px;
}
.preloader-bar {
  width: 120px; height: 3px;
  background: var(--beige-dark); border-radius: var(--r-full); overflow: hidden;
}
.preloader-fill {
  height: 100%; background: var(--green); border-radius: var(--r-full);
  animation: preload 1.2s ease-in-out forwards;
}
@keyframes preload {
  0%   { width: 0; }
  100% { width: 100%; }
}

.product-card {
  position: relative;
  overflow: hidden;
}

.product-card-img {
  position: relative;
  display: block;
}

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
}

/* ══ ORDER SUCCESS ══ */
.success-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px 80px;
  min-height: 70vh;
}

.success-icon-ring {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--green-light);
  border: 3px solid var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  color: var(--green);
  margin-bottom: 24px;
  animation: pop-in 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes pop-in {
  0%   { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1);   opacity: 1; }
}

.success-heading {
  font-size: 2rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 8px;
}

.success-tagline {
  color: var(--grey);
  font-size: 1rem;
  margin-bottom: 32px;
}

.success-card {
  background: #fff;
  border: 1px solid var(--green-mid);
  border-radius: var(--r-lg);
  overflow: hidden;
  max-width: 420px;
  width: 100%;
  margin-bottom: 32px;
  box-shadow: 0 4px 20px rgba(76,123,68,0.08);
}

.success-card-head {
  background: var(--green-light);
  color: var(--green);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.success-card-body {
  padding: 20px 24px;
  color: var(--grey);
  font-size: 0.95rem;
  line-height: 1.7;
}

.success-card-body p { margin: 0 0 8px; }
.success-card-body p:last-child { margin: 0; }

.success-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

@media (max-width: 480px) {
  .success-heading { font-size: 1.6rem; }
  .success-actions { flex-direction: column; width: 100%; max-width: 320px; }
  .success-actions .btn { width: 100%; justify-content: center; }
}