/* ============================================================
   YAGO'S — CSS
   Desktop: Tailwind handles everything
   Mobile (<1024px): Custom mobile-app design system
   ============================================================ */

/* ---- Shared animations & utilities (all screens) ---------- */
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position:  400px 0; }
}
.skeleton {
  background: linear-gradient(90deg, #ede8e0 25%, #e4dfd6 50%, #ede8e0 75%);
  background-size: 400px 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}
@keyframes toastIn  { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }
@keyframes toastOut { from { opacity:1; transform:translateY(0); } to { opacity:0; transform:translateY(10px); } }
.toast { animation: toastIn 0.2s ease; }
@keyframes reviewMarquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes fadeInUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
.animate-fade-in-up { animation: fadeInUp 600ms cubic-bezier(0.2,0,0,1) both; }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 500ms ease, transform 500ms ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.nav-link-active { color: #1D3A24 !important; font-weight: 600; }
.nav-link-active::after { content:''; display:block; height:2px; background:#1D3A24; border-radius:2px; margin-top:1px; }

/* ---- Cart Drawer (shared) --------------------------------- */
.cart-drawer {
  transform: translateX(100%);
  transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
}
.cart-drawer.open { transform: translateX(0); }
.cart-overlay {
  opacity: 0; pointer-events: none;
  transition: opacity 300ms ease;
}
.cart-overlay.open { opacity: 1; pointer-events: all; }
body.modal-open { overflow: hidden; }

/* ---- Modal (shared) --------------------------------------- */
.modal-overlay {
  opacity: 0; pointer-events: none;
  transition: opacity 200ms ease;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

/* ---- Material Symbols (shared) ---------------------------- */
.ms {
  font-family: 'Material Symbols Rounded';
  font-weight: normal; font-style: normal; font-size: 20px; line-height: 1;
  letter-spacing: normal; text-transform: none; display: inline-block;
  white-space: nowrap; direction: ltr; -webkit-font-smoothing: antialiased;
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle; visibility: hidden;
}
.fonts-loaded .ms { visibility: visible; }
/* Always show icons that are forced visible via inline style (SPA post-nav) */
.ms-fill { font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24; }
.ms-sm  { font-size: 16px; } .ms-md { font-size: 20px; }
.ms-lg  { font-size: 24px; } .ms-xl { font-size: 28px; }
.ms-2xl { font-size: 32px; }

/* ---- OTP inputs (shared) ---------------------------------- */
.otp-input {
  width: 44px; height: 52px; border: 2px solid #e8e1d5;
  border-radius: 10px; text-align: center; font-size: 20px; font-weight: 800;
  color: #1F1F1F; background: #FCFAF6; outline: none; transition: border-color 0.2s;
}
.otp-input:focus { border-color: #123524; box-shadow: 0 0 0 3px rgba(18,53,36,0.08); }

/* ============================================================
   MOBILE-ONLY STYLES (< 1024px)
   ============================================================ */
@media (max-width: 1023px) {

  /* ---- Design tokens ------------------------------------ */
  :root {
    --green-primary:  #123524;
    --green-dark:     #1D4D38;
    --orange-accent:  #E89A3D;
    --ivory-bg:       #F8F5EF;
    --card-white:     #FCFAF6;
    --border-color:   #E8E1D5;
    --text-main:      #1F1F1F;
    --text-sec:       #6B6B6B;
  }

  /* ---- Override body bg for mobile ---------------------- */
  body { background: #F8F5EF !important; }

  /* ---- Hide desktop-only elements ----------------------- */
  .desktop-only { display: none !important; }
  #main-nav.desktop-nav { display: none !important; }

  /* ---- Mobile Top Nav ----------------------------------- */
  #mobile-top-nav {
    background: #FCFAF6;
    border-bottom: 1px solid #E8E1D5;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 6px rgba(18,53,36,0.07);
  }
  .mob-nav-row1 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px 6px;
    gap: 0;
  }

  /* Logo: bigger and proper */
  .mob-nav-logo { height: 48px; width: auto; object-fit: contain; }

  /* Delivery badge: right side, no flex expansion, clean button */
  .mob-delivery-badge {
    display: flex; align-items: center; gap: 5px;
    background: transparent; border: none;
    padding: 3px 6px;
    cursor: pointer; flex-shrink: 0;
  }
  .mob-delivery-label {
    font-size: 8.5px; font-weight: 700; color: #9B9B9B;
    display: block; line-height: 1; letter-spacing: 0.06em;
    text-transform: uppercase;
  }
  .mob-delivery-addr {
    font-size: 13px; font-weight: 800; color: #1F1F1F;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    max-width: 110px; display: block; line-height: 1.3;
  }

  /* Profile button: filled green initial (logged in) */
  .mob-profile-btn {
    width: 40px; height: 40px; border-radius: 50%;
    background: #123524; color: #FCFAF6;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; flex-shrink: 0; transition: all 0.2s;
    font-size: 15px; font-weight: 800; border: none;
    box-shadow: 0 2px 8px rgba(18,53,36,0.18);
    text-decoration: none;
  }
  .mob-profile-btn:hover, .mob-profile-btn:active { transform: scale(1.05); }

  /* Profile button: outline style (logged out) */
  .mob-profile-btn-outline {
    width: 40px; height: 40px; border-radius: 50%;
    background: transparent; border: 1.5px solid #E8E1D5;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; flex-shrink: 0; transition: all 0.2s;
  }
  .mob-profile-btn-outline:hover { border-color: #123524; }

  /* Search bar: clean, no filter button, Google-style radius */
  .mob-search-row { padding: 0 14px 10px; }
  .mob-search-bar {
    display: flex; align-items: center; gap: 10px;
    background: #F0EDE7; border: none;
    border-radius: 8px; padding: 0 14px;
    height: 42px; cursor: pointer; transition: box-shadow 0.2s;
  }
  .mob-search-bar:hover { box-shadow: 0 0 0 2px rgba(18,53,36,0.12); }
  .mob-search-ph { flex: 1; font-size: 13px; color: #B0A99F; }

  /* ---- Bottom Nav -------------------------------------- */
  #bottom-nav {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: #FCFAF6; border-top: 1px solid #E8E1D5;
    z-index: 200; padding: 8px 0 max(8px, env(safe-area-inset-bottom));
    display: flex; align-items: center; justify-content: space-around;
  }
  .bnav-item {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 4px 12px; cursor: pointer; color: #9B9B9B;
    transition: color 0.2s; text-decoration: none;
  }
  .bnav-item.active { color: #123524; }
  .bnav-item-label { font-size: 10px; font-weight: 600; line-height: 1; }
  .bnav-center {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
  }
  .bnav-center-btn {
    width: 52px; height: 52px; border-radius: 50%;
    background: linear-gradient(135deg, #123524 0%, #1D4D38 100%);
    display: flex; align-items: center; justify-content: center;
    margin-top: -20px; box-shadow: 0 4px 16px rgba(18,53,36,0.4);
    border: 3px solid #FCFAF6; cursor: pointer; transition: all 0.2s;
    color: white; font-size: 22px; position: relative;
  }
  .bnav-center-btn:hover { transform: scale(1.05); }
  .bnav-cart-badge {
    position: absolute; top: -6px; right: -4px;
    background: #E89A3D; color: white; font-size: 9px; font-weight: 800;
    width: 18px; height: 18px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid #FCFAF6;
  }

  /* ---- Mobile body padding for bottom nav --------------- */
  body { padding-bottom: 72px; }

  /* ---- Search overlay ----------------------------------- */
  #search-overlay {
    display: none; position: fixed; inset: 0; z-index: 300;
    background: rgba(18,53,36,0.5);
  }
  .search-overlay-box {
    background: #FCFAF6; border-radius: 0 0 12px 12px;
    padding: 16px; box-shadow: 0 8px 32px rgba(18,53,36,0.2);
  }
  #search-input-mob {
    flex: 1; border: none; background: none; outline: none;
    font-size: 14px; color: #1F1F1F; font-family: inherit;
  }

  /* ---- Toast position for mobile ----------------------- */
  #toast-container { bottom: 80px !important; }

  /* ---- Mobile Banner ------------------------------------ */
  .mob-banner-wrap {
    margin: 12px 16px 0; border-radius: 6px; overflow: hidden;
    background: #F5F0EA; position: relative;
  }
  .mob-banner-wrap img {
    width: 100%; height: auto;
    display: block; border-radius: 6px;
  }
  /* ---- Category pills ---------------------------------- */
  .mob-cat-scroll {
    display: flex; gap: 10px; overflow-x: auto; padding: 10px 14px 6px;
    scrollbar-width: none; -ms-overflow-style: none;
  }
  .mob-cat-scroll::-webkit-scrollbar { display: none; }
  .mob-cat-pill {
    display: flex; flex-direction: column; align-items: center;
    gap: 6px; flex-shrink: 0; cursor: pointer; text-decoration: none;
  }
  .mob-cat-icon {
    width: 56px; height: 56px; border-radius: 6px;
    background: #FCFAF6; border: 1.5px solid #E8E1D5;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; transition: all 0.2s;
    color: #6B6B6B;
  }
  .mob-cat-icon svg { display: block; }
  .mob-cat-pill.active .mob-cat-icon { background: #123524; border-color: #123524; color: white; }
  .mob-cat-pill:active .mob-cat-icon { transform: scale(0.94); }
  .mob-cat-label {
    font-size: 10.5px; font-weight: 600; color: #9B9B9B;
    text-align: center; line-height: 1;
  }
  .mob-cat-pill.active .mob-cat-label { color: #123524; }

  /* ---- Quick links ------------------------------------- */
  .mob-ql-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 8px; padding: 0 14px;
  }
  .mob-ql-card {
    display: flex; flex-direction: column; align-items: flex-start;
    background: #FCFAF6; border: 1px solid #E8E1D5;
    border-radius: 6px; padding: 12px 10px;
    text-decoration: none; transition: all 0.2s; position: relative;
  }
  .mob-ql-card:active { transform: scale(0.97); }
  .mob-ql-icon {
    width: 36px; height: 36px; border-radius: 5px; background: #F0F7F2;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 8px; flex-shrink: 0;
    font-size: 18px;
  }
  .mob-ql-icon svg { display: block; }
  .mob-ql-title { font-size: 11px; font-weight: 800; color: #1F1F1F; line-height: 1.2; margin-bottom: 2px; }
  .mob-ql-sub { font-size: 9px; color: #9B9B9B; line-height: 1.3; }
  .mob-ql-arr { position: absolute; top: 10px; right: 10px; font-size: 13px; color: #D0C8BE; font-weight: 600; }

  /* ---- Section header ---------------------------------- */
  .mob-section-header {
    display: flex; align-items: center; justify-content: space-between; padding: 0 16px;
  }
  .mob-section-title { font-size: 17px; font-weight: 800; color: #1F1F1F; }
  .mob-see-all { font-size: 12px; font-weight: 700; color: #123524; text-decoration: none; }

  /* ---- Horizontal product scroll ----------------------- */
  .mob-products-scroll {
    display: flex; gap: 10px; overflow-x: auto;
    padding: 8px 14px 12px;
    scrollbar-width: none; -ms-overflow-style: none;
  }
  .mob-products-scroll::-webkit-scrollbar { display: none; }
  .mob-prod-card {
    flex-shrink: 0; width: 148px; background: #FCFAF6;
    border: 1px solid #E8E1D5; border-radius: 6px;
    overflow: hidden; position: relative; cursor: pointer;
    transition: all 0.2s;
    display: flex; flex-direction: column;
  }
  .mob-prod-card:active { transform: scale(0.97); }
  .mob-prod-img { width: 100%; height: 130px; object-fit: cover; background: #F5F0EA; display: block; }
  .mob-prod-badge {
    position: absolute; top: 6px; left: 6px;
    background: #E89A3D; color: white; font-size: 9px; font-weight: 800;
    padding: 3px 7px; border-radius: 3px;
  }
  .mob-prod-wish {
    position: absolute; top: 6px; right: 6px;
    width: 26px; height: 26px; border-radius: 50%;
    background: rgba(252,250,246,0.9); border: none;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 13px; color: #B0A99F;
  }
  .mob-prod-body { padding: 8px; display: flex; flex-direction: column; flex: 1; }
  .mob-prod-name {
    font-size: 12px; font-weight: 700; color: #1F1F1F; line-height: 1.35; margin-bottom: 5px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    /* Fixed 2-line height so all cards align regardless of name length */
    height: 32px; min-height: 32px;
  }
  /* Meta on ONE line with flex: time · label together */
  .mob-prod-meta {
    font-size: 9.5px; color: #9B9B9B; margin-bottom: 6px;
    display: flex; align-items: center; gap: 4px;
    white-space: nowrap; overflow: hidden;
  }
  .mob-prod-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
  .mob-prod-price { font-size: 13px; font-weight: 800; color: #1F1F1F; }
  .mob-prod-orig { font-size: 9.5px; color: #B0A99F; text-decoration: line-through; }
  .mob-prod-add {
    width: 26px; height: 26px; border-radius: 50%; background: #123524;
    border: none; color: white; font-size: 20px; display: flex;
    align-items: center; justify-content: center; cursor: pointer;
    transition: all 0.2s; line-height: 1; padding: 0;
  }
  .mob-prod-add:active { transform: scale(0.9); }

  /* ---- Promo banner ------------------------------------ */
  .mob-promo {
    margin: 0 14px; background: linear-gradient(135deg, #F8F5EF 0%, #F0EBE0 100%);
    border: 1px solid #E8E1D5; border-radius: 6px; padding: 14px;
    display: flex; align-items: center; gap: 12px;
  }
  .mob-promo-tag { font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; color: #E89A3D; margin-bottom: 2px; }
  .mob-promo-h { font-family: 'Playfair Display', serif; font-size: 19px; font-weight: 700; line-height: 1.2; color: #1F1F1F; }
  .mob-promo-h .acc { color: #E89A3D; }
  .mob-promo-sub { font-size: 10px; color: #9B9B9B; margin-top: 3px; }
  .mob-promo-code { background: #FCFAF6; border: 1.5px dashed #E8E1D5; border-radius: 4px; padding: 8px 12px; text-align: center; flex-shrink: 0; }
  .mob-promo-code-lbl { font-size: 9px; color: #9B9B9B; }
  .mob-promo-code-val { font-size: 15px; font-weight: 900; color: #123524; letter-spacing: 0.06em; }

  /* ---- Category image grid ----------------------------- */
  .mob-cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 0 14px; }
  .mob-cat-grid-item {
    border-radius: 6px; overflow: hidden; position: relative; height: 120px;
    text-decoration: none; background: #FCFAF6; border: 1px solid #E8E1D5;
    display: block; transition: transform 0.2s;
  }
  .mob-cat-grid-item:active { transform: scale(0.98); }
  .mob-cat-grid-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .mob-cat-grid-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(18,53,36,0.03) 0%, rgba(18,53,36,0.12) 100%);
  }
  .mob-cat-grid-label-glass {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: rgba(252, 250, 246, 0.92); backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 7px 10px; display: flex; align-items: center; justify-content: space-between;
    border-top: 1px solid rgba(232, 225, 213, 0.6);
  }
  .mob-cat-grid-icon  { font-size: 13px; display: inline-flex; align-items: center; justify-content: center; }
  .mob-cat-grid-name  { font-size: 11.5px; font-weight: 750; color: #123524; line-height: 1.2; }
  .mob-cat-grid-sub   { font-size: 11px; color: #E89A3D; font-weight: 700; }

  /* ---- Review card & Marquee --------------------------- */
  .mob-reviews-marquee-container {
    overflow: hidden; width: 100%; padding: 10px 0; position: relative;
  }
  .mob-reviews-marquee-track {
    display: flex; gap: 12px; width: max-content;
    animation: reviewMarquee 30s linear infinite;
  }
  @keyframes reviewMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }
  .mob-review-card {
    flex-shrink: 0; width: 240px; background: #FCFAF6;
    border: 1px solid #E8E1D5; border-radius: 6px; padding: 14px 16px;
    box-shadow: 0 2px 8px rgba(18,53,36,0.04);
  }
  /* Star rating row: golden stars, normal font */
  .mob-review-stars-row {
    display: flex; align-items: center; gap: 2px;
    margin-bottom: 10px;
  }
  .mob-review-star { color: #F5A623; font-size: 14px; line-height: 1; }
  .mob-review-rating-num {
    font-size: 11px; font-weight: 700; color: #6B6B6B;
    margin-left: 4px;
  }
  .mob-review-text {
    font-size: 12.5px; color: #3A3A3A; line-height: 1.6; margin-bottom: 12px;
    font-style: normal; font-weight: 400;
  }
  .mob-review-avatar {
    width: 32px; height: 32px; border-radius: 50%;
    background: #123524; color: white; font-weight: 700; font-size: 13px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  }
  .mob-review-name   { font-size: 12px; font-weight: 700; color: #1F1F1F; }
  .mob-review-sub    { font-size: 10px; color: #9B9B9B; }

  /* Active Category highlight border */
  .mob-cat-grid-item.active {
    border-color: #123524 !important;
    box-shadow: 0 0 0 2px rgba(18,53,36,0.15);
  }
  .mob-cat-grid-item.active .mob-cat-grid-label-glass {
    background: rgba(18,53,36,0.95) !important;
    border-top-color: #123524;
  }
  .mob-cat-grid-item.active .mob-cat-grid-name { color: #FCFAF6 !important; }
  .mob-cat-grid-item.active .mob-cat-grid-sub  { color: #E89A3D !important; }


  /* ---- Menu page mobile -------------------------------- */
  .mob-menu-filter-bar {
    display: flex; gap: 8px; overflow-x: auto; padding: 8px 14px 4px;
    scrollbar-width: none; position: sticky; top: 92px; z-index: 50;
    background: #FCFAF6; border-bottom: 1px solid #E8E1D5;
  }
  .mob-menu-filter-bar::-webkit-scrollbar { display: none; }
  .mob-filter-chip {
    display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px;
    border-radius: 4px; font-size: 11.5px; font-weight: 600;
    border: 1.5px solid #E8E1D5; background: #FCFAF6; color: #9B9B9B;
    cursor: pointer; white-space: nowrap; transition: all 0.2s; text-decoration: none;
    flex-shrink: 0;
  }
  .mob-filter-chip.active { background: #123524; border-color: #123524; color: white; }
  .mob-product-grid {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 10px; padding: 12px 14px 80px;
  }
  .mob-grid-card {
    background: #FCFAF6; border: 1px solid #E8E1D5; border-radius: 6px;
    overflow: hidden; position: relative; cursor: pointer; transition: all 0.2s;
  }
  .mob-grid-card:active { transform: scale(0.97); }
  .mob-grid-img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #F5F0EA; display: block; }
  .mob-grid-badge {
    position: absolute; top: 6px; left: 6px; background: #E89A3D;
    color: white; font-size: 9px; font-weight: 800; padding: 3px 7px; border-radius: 3px;
  }
  .mob-grid-wish {
    position: absolute; top: 6px; right: 6px; width: 26px; height: 26px;
    border-radius: 50%; background: rgba(252,250,246,0.9); border: none;
    display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 13px; color: #B0A99F;
  }
  .mob-grid-body { padding: 8px; }
  .mob-grid-name { font-size: 12px; font-weight: 700; color: #1F1F1F; line-height: 1.3; margin-bottom: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .mob-grid-meta { font-size: 9.5px; color: #9B9B9B; margin-bottom: 7px; }
  .mob-grid-bottom { display: flex; align-items: center; justify-content: space-between; }
  .mob-grid-price  { font-size: 13px; font-weight: 800; color: #1F1F1F; }
  .mob-grid-orig   { font-size: 9.5px; color: #B0A99F; text-decoration: line-through; }
  .mob-grid-add {
    width: 26px; height: 26px; border-radius: 50%; background: #123524;
    border: none; color: white; font-size: 20px; display: flex;
    align-items: center; justify-content: center; cursor: pointer; line-height: 1; padding: 0;
  }

  /* ---- Divider ----------------------------------------- */
  .mob-divider { height: 8px; background: #F0ECE4; border-top: 1px solid #E8E1D5; border-bottom: 1px solid #E8E1D5; margin: 0 0 4px; }
  .mob-section  { margin-bottom: 20px; }
  .mob-section-gap { margin-bottom: 8px; }

  /* ---- Banner dots position fix ----------------------- */
  .mob-banner-dot {
    height: 6px; border-radius: 999px; background: rgba(255,255,255,0.5);
    transition: all 0.3s; cursor: pointer; width: 6px;
    border: none;
  }
  .mob-banner-dot.active { background: white; width: 20px; }

  /* ---- Form inputs (shared between checkout + auth) ----- */
  .mob-input {
    width: 100%; padding: 12px 16px; border: 1.5px solid #E8E1D5;
    border-radius: 7px; background: #FCFAF6; font-size: 14px;
    color: #1F1F1F; font-family: inherit; outline: none; transition: border-color 0.2s;
  }
  .mob-input:focus { border-color: #123524; box-shadow: 0 0 0 3px rgba(18,53,36,0.07); }

  /* ---- Checkout mobile card ---------------------------- */
  .mob-checkout-section {
    background: #FCFAF6; border: 1px solid #E8E1D5;
    border-radius: 7px; padding: 16px; margin: 0 16px 12px;
  }
  .mob-checkout-step-num {
    width: 26px; height: 26px; border-radius: 50%;
    background: #123524; color: white; font-size: 12px;
    font-weight: 800; display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }

  /* ---- Primary button (mobile) ------------------------- */
  .mob-btn-primary {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    background: linear-gradient(90deg, #123524 0%, #1D4D38 100%);
    color: white; font-weight: 700; font-size: 14px; padding: 12px 24px;
    border-radius: 999px; border: none; cursor: pointer; transition: all 0.2s;
    text-decoration: none; width: 100%;
  }
  .mob-btn-primary:hover { opacity: 0.92; }

  /* ---- Checkout CTA ------------------------------------ */
  .mob-checkout-cta {
    display: flex; align-items: center; justify-content: space-between;
    background: linear-gradient(90deg, #123524 0%, #1D4D38 100%);
    color: white; border-radius: 7px; padding: 16px 20px;
    text-decoration: none; cursor: pointer; transition: all 0.2s;
  }
  .mob-checkout-cta:hover { opacity: 0.92; transform: translateY(-1px); }

} /* end @media (max-width: 1023px) */

/* ============================================================
   DESKTOP-ONLY STYLES (>= 1024px)
   ============================================================ */
@media (min-width: 1024px) {
  /* Hide mobile-only UI */
  #mobile-top-nav { display: none !important; }
  #bottom-nav     { display: none !important; }
  .mobile-only    { display: none !important; }
  .mob-section    { display: none !important; }
  .mob-only       { display: none !important; }
  #search-overlay { display: none !important; }

  /* Show desktop nav */
  #main-nav.desktop-nav { display: block !important; }

  /* Desktop section wrappers - replaces missing lg:block in compiled tailwind */
  .desktop-only { display: block !important; }
  .desktop-only.flex { display: flex !important; }
  .lg-hidden    { display: none !important; }

  /* Grid helper classes for desktop sections */
  .grid { display: grid !important; }
  .grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  .grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }

  /* Desktop reviews marquee */
  .desk-reviews-marquee-container {
    overflow: hidden; width: 100%; padding: 8px 0; position: relative;
  }
  .desk-reviews-marquee-track {
    display: flex; gap: 20px; width: max-content;
    animation: reviewMarquee 35s linear infinite;
  }
  .desk-reviews-marquee-track:hover { animation-play-state: paused; }
  .desk-review-card {
    flex-shrink: 0; width: 320px; background: #FCFAF6;
    border: 1px solid #E8E1D5; border-radius: 12px; padding: 24px 22px;
    box-shadow: 0 2px 8px rgba(18,53,36,0.04);
  }
  .desk-review-stars-row { display: flex; align-items: center; gap: 3px; margin-bottom: 14px; }
  .desk-review-text { font-size: 14px; color: #3A3A3A; line-height: 1.65; margin-bottom: 18px; }
  .desk-review-avatar {
    width: 38px; height: 38px; border-radius: 50%;
    background: #123524; color: white; font-weight: 700; font-size: 15px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  }
  .desk-review-name { font-size: 13px; font-weight: 700; color: #1F1F1F; }
  .desk-review-sub  { font-size: 11px; color: #9B9B9B; }
}

/* Global Menu Grid and Cards (shared across menu & homepage on all screens) */
.menu-product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 12px 8px;
}
.menu-card {
  background: #FCFAF6;
  border: 1px solid #E8E1D5;
  border-radius: 7px;
  overflow: hidden;
  position: relative;
  transition: all 0.22s cubic-bezier(0.4,0,0.2,1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.menu-card:active { transform: scale(0.97); }
.menu-card-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #F5F0EA;
  display: block;
}
.menu-card-badge {
  position: absolute;
  top: 8px; left: 8px;
  background: #E89A3D;
  color: white;
  font-size: 9px; font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  z-index: 2;
}
.menu-card-wish {
  position: absolute;
  top: 8px; right: 8px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(252,250,246,0.92);
  border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 14px; color: #B0A99F;
  z-index: 2;
  transition: all 0.2s;
}
.menu-card-body { padding: 8px; display: flex; flex-direction: column; flex: 1; }
.menu-card-name {
  font-size: 11px; font-weight: 700; color: #1F1F1F;
  line-height: 1.3; margin-bottom: 2px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  height: 28px;
}
.menu-card-meta { display: none; }
.menu-card-bottom {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto;
}
.menu-card-price { font-size: 12.5px; font-weight: 800; color: #1F1F1F; }
.menu-card-orig  { font-size: 9px; color: #B0A99F; text-decoration: line-through; }
.menu-add-btn {
  width: 22px; height: 22px; border-radius: 50%;
  background: #123524; border: none; color: white;
  font-size: 14px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.2s; line-height: 1; padding: 0;
}
.menu-add-btn:active { transform: scale(0.9); }

/* Mobile: hide desktop sections */
@media (max-width: 1023px) {
  .desktop-only { display: none !important; }
  .lg-hidden    { display: block !important; }
}

/* ============================================================
   DESKTOP HERO + LARGE SCREEN FIXES
   ============================================================ */
@media (min-width: 1024px) {
  /* Ensure body has cream background on desktop */
  body { background: #F6F1EA !important; }

  /* Desktop hero image: fill height */
  .desk-hero-img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: center;
    display: block;
  }

  /* Smooth hover on category cards */
  .desk-cat-card {
    border-radius: 8px; overflow: hidden;
    background: #F8F5EF; border: 1px solid #E8E1D5;
    display: block; transition: transform 0.25s, box-shadow 0.25s;
    text-decoration: none;
  }
  .desk-cat-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(18,53,36,0.12); }
  .desk-cat-card img { transition: transform 0.35s; }
  .desk-cat-card:hover img { transform: scale(1.04); }

  /* Product card hover */
  .desk-prod-card {
    background: #FCFAF6; border: 1px solid #E8E1D5; border-radius: 8px;
    overflow: hidden; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s;
  }
  .desk-prod-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(18,53,36,0.10); }

  /* Quick links hover */
  .desk-ql-card {
    display: flex; align-items: center; gap: 14px;
    background: #FCFAF6; border: 1px solid #E8E1D5; border-radius: 7px;
    padding: 18px 20px; text-decoration: none; transition: border-color 0.2s, box-shadow 0.2s;
  }
  .desk-ql-card:hover { border-color: rgba(29,58,36,0.3); box-shadow: 0 2px 12px rgba(18,53,36,0.08); }

  /* Subscription plan card */
  .desk-plan-card {
    border-radius: 10px; padding: 28px 24px; text-align: center;
    position: relative; transition: transform 0.2s, box-shadow 0.2s;
  }
  .desk-plan-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(18,53,36,0.10); }

  /* Make sure footer has no bottom margin on desktop */
  footer { margin-bottom: 0 !important; }

  /* Banner slider dot — hide on desktop (full banner shown inline) */
  .mob-banner-dot { display: none !important; }

  /* Max-width centering utility for non-Tailwind desktop sections */
  .desk-wrap {
    max-width: 1280px; margin: 0 auto; padding: 0 32px;
  }
  .desk-wrap-md {
    max-width: 1024px; margin: 0 auto; padding: 0 32px;
  }

  /* Responsive grid helpers for >1440px screens */
  @media (min-width: 1440px) {
    .desk-wrap { padding: 0 48px; }
  }
}

/* ============================================================
   MOBILE SUBSCRIPTION PLAN SCROLL
   ============================================================ */
@media (max-width: 1023px) {
  .mob-plan-scroll {
    display: flex; gap: 10px; overflow-x: auto;
    scrollbar-width: none; -ms-overflow-style: none;
    padding: 0 14px 4px;
  }
  .mob-plan-scroll::-webkit-scrollbar { display: none; }
  .mob-plan-card {
    flex-shrink: 0; width: 158px; border-radius: 8px;
    padding: 16px 14px; text-decoration: none; display: flex; flex-direction: column;
    position: relative; transition: transform 0.2s;
  }
  .mob-plan-card:active { transform: scale(0.97); }

  /* Combo section label badge */
  .mob-combo-badge {
    background: #1D3A24; color: white; font-size: 9px; font-weight: 800;
    padding: 3px 7px; border-radius: 3px;
    position: absolute; top: 6px; left: 6px; z-index: 1;
  }
}

/* ── Spin animation (loading indicators) ── */
@keyframes spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
