/* =============================================
   MAYA MART – style.css
   Mobile-first, CSS custom properties, dark mode
   ============================================= */

/* ---- TOKENS ---- */
:root {
  --green:       #1a7a4a;
  --green-dark:  #145e38;
  --green-light: #e8f5ee;
  --green-mid:   #2d9c61;
  --accent:      #f5a623;
  --accent-dark: #d48b10;
  --wa:          #25d366;
  --wa-dark:     #128c4e;
  --red:         #e53935;
  --red-light:   #fdecea;

  --bg:          #f4f6f4;
  --surface:     #ffffff;
  --surface2:    #f9faf9;
  --border:      #e0e8e2;
  --text:        #1a2b22;
  --text-mid:    #3d5244;
  --text-muted:  #6b8a74;
  --shadow:      0 2px 12px rgba(26,122,74,.10);
  --shadow-md:   0 4px 24px rgba(26,122,74,.15);
  --radius:      14px;
  --radius-sm:   8px;
  --radius-pill: 100px;

  --font-head: 'Baloo 2', 'Nunito', sans-serif;
  --font-body: 'Nunito', sans-serif;

  --header-h: 110px;
  --transition: .2s ease;
}

.dark-mode {
  --bg:         #111a14;
  --surface:    #1a2b1e;
  --surface2:   #203027;
  --border:     #2d4535;
  --text:       #e8f0ea;
  --text-mid:   #b0c8b8;
  --text-muted: #7a9e85;
  --shadow:     0 2px 12px rgba(0,0,0,.4);
  --shadow-md:  0 4px 24px rgba(0,0,0,.5);
  --green-light:#1a3326;
}

/* ---- RESET ---- */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{font-family:var(--font-body);background:var(--bg);color:var(--text);line-height:1.6;transition:background var(--transition),color var(--transition)}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}
button{cursor:pointer;border:none;background:none;font-family:inherit}
ul,ol{list-style:none}
input,select,textarea{font-family:inherit}
.sr-only{position:absolute;width:1px;height:1px;clip:rect(0,0,0,0);overflow:hidden}
.hidden{display:none!important}
.container{width:100%;max-width:1200px;margin-inline:auto;padding-inline:16px}

/* ---- TYPOGRAPHY ---- */
h1,h2,h3,h4{font-family:var(--font-head);line-height:1.2;font-weight:800}

/* ---- BUTTONS ---- */
.btn{display:inline-flex;align-items:center;gap:8px;padding:11px 22px;border-radius:var(--radius-pill);font-weight:700;font-size:.95rem;transition:transform var(--transition),box-shadow var(--transition),background var(--transition);white-space:nowrap}
.btn:active{transform:scale(.97)}
.btn-primary{background:var(--green);color:#fff}
.btn-primary:hover{background:var(--green-dark);box-shadow:var(--shadow-md)}
.btn-outline{background:transparent;color:var(--green);border:2px solid var(--green)}
.btn-outline:hover{background:var(--green-light)}
.btn-wa{background:var(--wa);color:#fff}
.btn-wa:hover{background:var(--wa-dark);box-shadow:var(--shadow-md)}
.btn-lg{padding:14px 28px;font-size:1.05rem}
.btn-full{width:100%;justify-content:center}

/* ---- BADGE ---- */
.badge{position:absolute;top:-6px;right:-6px;background:var(--red);color:#fff;font-size:.65rem;font-weight:800;border-radius:50%;width:18px;height:18px;display:flex;align-items:center;justify-content:center;border:2px solid var(--surface);pointer-events:none}

/* ============================================================
   HEADER
   ============================================================ */
.header{position:sticky;top:0;z-index:900;background:var(--surface);box-shadow:var(--shadow)}

.header-top{padding:10px 0 6px}
.header-inner{display:flex;align-items:center;gap:12px}

.logo{display:flex;align-items:center;gap:10px;flex-shrink:0}
.logo-icon{width:42px;height:42px;background:var(--green);border-radius:var(--radius-sm);display:flex;align-items:center;justify-content:center;color:#fff;font-size:1.3rem}
.logo-main{font-family:var(--font-head);font-weight:800;font-size:1.2rem;color:var(--green);display:block;line-height:1.1}
.logo-sub{font-size:.65rem;color:var(--text-muted);font-weight:600;display:block}

.desktop-search{display:none}
@media(min-width:640px){.desktop-search{display:flex;flex:1;max-width:500px}}

.search-wrap{position:relative;width:100%;display:flex}
.search-input{flex:1;padding:10px 16px;border:2px solid var(--border);border-right:none;border-radius:var(--radius-pill) 0 0 var(--radius-pill);background:var(--surface2);color:var(--text);font-size:.9rem;outline:none;transition:border-color var(--transition)}
.search-input:focus{border-color:var(--green)}
.search-btn{padding:10px 16px;background:var(--green);color:#fff;border-radius:0 var(--radius-pill) var(--radius-pill) 0;font-size:.9rem;flex-shrink:0}
.search-btn:hover{background:var(--green-dark)}

.search-suggestions{position:absolute;top:calc(100% + 4px);left:0;right:0;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-md);max-height:320px;overflow-y:auto;z-index:1000;display:none}
.search-suggestions.open{display:block}
.suggestion-item{padding:10px 16px;cursor:pointer;font-size:.9rem;border-bottom:1px solid var(--border);display:flex;gap:10px;align-items:center}
.suggestion-item:last-child{border-bottom:none}
.suggestion-item:hover{background:var(--green-light)}
.suggestion-thumb{width:36px;height:36px;object-fit:cover;border-radius:6px;flex-shrink:0}
.suggestion-name{font-weight:700;font-size:.85rem;color:var(--text)}
.suggestion-meta{font-size:.75rem;color:var(--text-muted)}

.header-actions{display:flex;align-items:center;gap:4px;margin-left:auto}
.icon-btn{position:relative;width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:1.1rem;color:var(--text-mid);transition:background var(--transition),color var(--transition)}
.icon-btn:hover{background:var(--green-light);color:var(--green)}

.header-mobile-search{padding:6px 0 8px;display:block}
@media(min-width:640px){.header-mobile-search{display:none}}

/* Category Nav */
.cat-nav{border-top:1px solid var(--border);padding:6px 0;overflow:hidden}
.cat-nav-inner{display:flex;gap:8px;overflow-x:auto;padding-bottom:2px;scrollbar-width:none}
.cat-nav-inner::-webkit-scrollbar{display:none}
.cat-pill{padding:5px 14px;border-radius:var(--radius-pill);font-size:.8rem;font-weight:700;background:var(--surface2);color:var(--text-mid);border:1.5px solid var(--border);white-space:nowrap;transition:all var(--transition)}
.cat-pill:hover,.cat-pill.active{background:var(--green);color:#fff;border-color:var(--green)}

/* ============================================================
   DISCLAIMER BANNER
   ============================================================ */
.disclaimer-banner{background:linear-gradient(135deg,#fff9e6,#fffdf0);border-bottom:2px solid var(--accent);padding:10px 16px;font-size:.82rem;color:#7a5200;line-height:1.4}
.disclaimer-banner .container{display:flex;gap:10px;align-items:flex-start}
.disclaimer-banner i{color:var(--accent);flex-shrink:0;margin-top:2px}
.disclaimer-banner--sm{margin:0 0 12px;border-radius:var(--radius-sm);border:1.5px solid var(--accent);padding:8px 12px}
.dark-mode .disclaimer-banner{background:#2a2000;color:#ffd580;border-color:#7a5200}

/* ============================================================
   HERO
   ============================================================ */
.hero{background:linear-gradient(135deg,var(--green-dark) 0%,var(--green) 60%,var(--green-mid) 100%);color:#fff;padding:48px 0;position:relative;overflow:hidden}
.hero::before{content:'';position:absolute;inset:0;background:url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");pointer-events:none}
.hero-inner{display:flex;align-items:center;justify-content:space-between;gap:32px;position:relative}
.hero-text{flex:1}
.hero-eyebrow{font-size:.85rem;font-weight:700;text-transform:uppercase;letter-spacing:.1em;opacity:.8;margin-bottom:8px}
.hero-headline{font-family:var(--font-head);font-size:clamp(2rem,5vw,3.2rem);font-weight:900;line-height:1.1;margin-bottom:14px}
.hero-headline .accent{color:var(--accent)}
.hero-sub{opacity:.88;font-size:1rem;margin-bottom:24px;line-height:1.5}
.hero-cta-row{display:flex;gap:12px;flex-wrap:wrap}

.hero-art{flex-shrink:0;display:none}
@media(min-width:640px){.hero-art{display:flex}}
.hero-badge-ring{display:flex;gap:16px}
.hero-badge{background:rgba(255,255,255,.15);border:1.5px solid rgba(255,255,255,.3);border-radius:var(--radius);padding:16px 20px;text-align:center;backdrop-filter:blur(8px);display:flex;flex-direction:column;align-items:center;gap:8px;font-size:.8rem;font-weight:700;min-width:90px}
.hero-badge i{font-size:1.6rem}

/* ============================================================
   SECTIONS
   ============================================================ */
.section{padding:40px 0}
.section-header{margin-bottom:28px;text-align:center}
.section-title{font-size:clamp(1.4rem,3vw,2rem);color:var(--text);margin-bottom:6px}
.section-sub{color:var(--text-muted);font-size:.9rem}

/* Category Grid */
.cat-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:12px}
.cat-card{background:var(--surface);border:1.5px solid var(--border);border-radius:var(--radius);padding:18px 12px;text-align:center;cursor:pointer;transition:all var(--transition);display:flex;flex-direction:column;align-items:center;gap:8px}
.cat-card:hover,.cat-card.active{border-color:var(--green);background:var(--green-light);transform:translateY(-2px);box-shadow:var(--shadow)}
.cat-card-icon{font-size:1.8rem}
.cat-card-name{font-size:.8rem;font-weight:800;color:var(--text-mid)}
.cat-card-count{font-size:.72rem;color:var(--text-muted)}

/* ============================================================
   FILTERS ROW
   ============================================================ */
.filters-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px;flex-wrap:wrap}
.filter-chips{display:flex;gap:8px;flex-wrap:wrap}
.chip{padding:6px 14px;border-radius:var(--radius-pill);font-size:.82rem;font-weight:700;background:var(--surface2);border:1.5px solid var(--border);color:var(--text-mid);transition:all var(--transition)}
.chip:hover,.chip.active{background:var(--green);color:#fff;border-color:var(--green)}
.sort-select{padding:8px 14px;border-radius:var(--radius-pill);border:1.5px solid var(--border);background:var(--surface);color:var(--text);font-size:.85rem;font-weight:600;outline:none;cursor:pointer}
.sort-select:focus{border-color:var(--green)}

/* ============================================================
   LOADING / ERROR STATES
   ============================================================ */
.loading-state,.error-state{text-align:center;padding:60px 20px;color:var(--text-muted);font-size:1rem}
.spinner{width:44px;height:44px;border:4px solid var(--border);border-top-color:var(--green);border-radius:50%;animation:spin .8s linear infinite;margin:0 auto 16px}
@keyframes spin{to{transform:rotate(360deg)}}
.error-state i{font-size:2.5rem;color:var(--red);margin-bottom:12px;display:block}
.error-state p{margin-bottom:16px}

/* ============================================================
   PRODUCT GRID & CARDS
   ============================================================ */
.product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:14px}
@media(min-width:480px){.product-grid{grid-template-columns:repeat(auto-fill,minmax(180px,1fr))}}
@media(min-width:900px){.product-grid{grid-template-columns:repeat(auto-fill,minmax(210px,1fr))}}

.product-grid--scroll{display:flex;gap:14px;overflow-x:auto;padding-bottom:8px;scrollbar-width:none}
.product-grid--scroll .product-card{flex-shrink:0;width:180px}

.product-card{background:var(--surface);border:1.5px solid var(--border);border-radius:var(--radius);overflow:hidden;display:flex;flex-direction:column;transition:transform var(--transition),box-shadow var(--transition);position:relative}
.product-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-md)}

.product-card-img-wrap{position:relative;padding-top:100%;background:var(--surface2);overflow:hidden}
.product-card-img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;padding:8px;transition:transform .3s ease}
.product-card:hover .product-card-img{transform:scale(1.05)}
.product-card-img-placeholder{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:2.5rem;color:var(--border)}

.product-card-badge{position:absolute;top:8px;left:8px;background:var(--accent);color:#fff;font-size:.65rem;font-weight:800;padding:2px 8px;border-radius:var(--radius-pill);text-transform:uppercase}
.product-card-badge--oos{background:var(--red)}
.product-card-badge--sale{background:var(--green)}

.product-card-wish{position:absolute;top:8px;right:8px;width:30px;height:30px;border-radius:50%;background:var(--surface);border:1.5px solid var(--border);display:flex;align-items:center;justify-content:center;font-size:.9rem;color:var(--text-muted);transition:all var(--transition);z-index:2}
.product-card-wish:hover,.product-card-wish.wished{color:var(--red);border-color:var(--red);background:var(--red-light)}
.product-card-wish.wished i{font-weight:900}

.product-card-body{padding:10px 10px 0;flex:1;display:flex;flex-direction:column;gap:4px}
.product-card-name{font-size:.82rem;font-weight:800;color:var(--text);line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.product-card-meta{font-size:.7rem;color:var(--text-muted);display:flex;gap:6px;flex-wrap:wrap}
.product-card-meta span{background:var(--surface2);padding:1px 6px;border-radius:var(--radius-pill);border:1px solid var(--border)}
.product-card-price{font-family:var(--font-head);font-size:1rem;font-weight:800;color:var(--green);margin-top:4px}
.product-card-price .original{font-size:.8rem;color:var(--text-muted);text-decoration:line-through;font-weight:600;margin-left:4px}
.product-card-avail{font-size:.7rem;font-weight:700;margin-top:2px}
.product-card-avail.in-stock{color:var(--green)}
.product-card-avail.out-stock{color:var(--red)}

.product-card-footer{padding:8px 10px 10px;display:flex;gap:6px;flex-direction:column}
.btn-add{width:100%;padding:8px;font-size:.82rem;border-radius:var(--radius-sm);font-weight:700;background:var(--green);color:#fff;transition:background var(--transition)}
.btn-add:hover{background:var(--green-dark)}
.btn-add:disabled{background:var(--border);color:var(--text-muted);cursor:not-allowed}
.btn-qv{width:100%;padding:6px;font-size:.78rem;border-radius:var(--radius-sm);font-weight:700;background:var(--surface2);border:1.5px solid var(--border);color:var(--text-mid);transition:all var(--transition)}
.btn-qv:hover{border-color:var(--green);color:var(--green)}

/* Qty stepper on card (after add) */
.qty-stepper{display:flex;align-items:center;gap:6px;width:100%}
.qty-stepper button{width:30px;height:30px;border-radius:var(--radius-sm);background:var(--green-light);border:1.5px solid var(--green);color:var(--green);font-size:1rem;font-weight:800;flex-shrink:0;transition:background var(--transition)}
.qty-stepper button:hover{background:var(--green);color:#fff}
.qty-stepper .qty-val{flex:1;text-align:center;font-weight:800;font-size:.9rem}

/* Load More */
.load-more-wrap{text-align:center;padding:24px 0}

/* ============================================================
   WHOLESALE SECTION
   ============================================================ */
.wholesale-section{background:var(--green-light)}
.wholesale-card{background:var(--green);border-radius:var(--radius);padding:32px 28px;display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap}
.wholesale-text h2{color:#fff;font-size:1.5rem;margin-bottom:6px}
.wholesale-text p{color:rgba(255,255,255,.85);font-size:.95rem}

/* ============================================================
   INFO / ABOUT SECTION
   ============================================================ */
.info-grid{display:grid;gap:20px}
@media(min-width:640px){.info-grid{grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}}
.info-card{background:var(--surface);border:1.5px solid var(--border);border-radius:var(--radius);padding:24px;display:flex;flex-direction:column;gap:12px}
.info-icon{font-size:1.8rem;color:var(--green)}
.info-card h3{font-size:1.1rem;color:var(--text)}
.hours-list li{display:flex;justify-content:space-between;padding:6px 0;border-bottom:1px solid var(--border);font-size:.9rem;color:var(--text-mid)}
.hours-list li:last-child{border-bottom:none}
.contact-list li,.contact-list a{display:flex;align-items:center;gap:8px;font-size:.9rem;color:var(--text-mid);padding:4px 0}
.contact-list a:hover{color:var(--green)}
.contact-list i{color:var(--green);width:16px;flex-shrink:0}

/* ============================================================
   FAQ
   ============================================================ */
.faq-section{background:var(--surface2)}
.faq-list{display:flex;flex-direction:column;gap:10px;max-width:760px;margin-inline:auto}
.faq-item{background:var(--surface);border:1.5px solid var(--border);border-radius:var(--radius);overflow:hidden}
.faq-item summary{padding:16px 20px;cursor:pointer;font-weight:700;font-size:.95rem;list-style:none;display:flex;justify-content:space-between;align-items:center;color:var(--text)}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary::after{content:'\f078';font-family:'Font Awesome 6 Free';font-weight:900;font-size:.75rem;color:var(--green);transition:transform var(--transition)}
.faq-item[open] summary::after{transform:rotate(180deg)}
.faq-item p{padding:0 20px 16px;color:var(--text-mid);font-size:.9rem;line-height:1.6}

/* ============================================================
   LOCATION
   ============================================================ */
.map-embed-wrap{position:relative;border-radius:var(--radius);overflow:hidden;border:1.5px solid var(--border)}
.map-embed-wrap iframe{display:block}
.map-btn{position:absolute;bottom:16px;left:50%;transform:translateX(-50%)}

/* ============================================================
   FOOTER
   ============================================================ */
.footer{background:var(--green-dark);color:rgba(255,255,255,.85);padding:32px 0;margin-top:0}
.footer-inner{display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center}
.footer .logo-main{color:#fff;font-size:1.3rem}
.footer .logo-sub{color:rgba(255,255,255,.7)}
.footer .logo-icon{background:rgba(255,255,255,.15)}
.footer .logo{margin-bottom:4px}
.footer-disclaimer{font-size:.8rem;opacity:.75;max-width:500px;line-height:1.5}
.footer-copy{font-size:.75rem;opacity:.55}

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay{position:fixed;inset:0;background:rgba(0,0,0,.55);z-index:1000;display:flex;align-items:center;justify-content:center;padding:16px;overflow-y:auto;backdrop-filter:blur(3px)}
.modal{background:var(--surface);border-radius:var(--radius);max-width:560px;width:100%;position:relative;max-height:90vh;overflow-y:auto;box-shadow:var(--shadow-md);animation:modalIn .2s ease}
@keyframes modalIn{from{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}
.modal-close{position:absolute;top:12px;right:12px;width:36px;height:36px;border-radius:50%;background:var(--surface2);border:1.5px solid var(--border);display:flex;align-items:center;justify-content:center;font-size:1rem;color:var(--text-mid);z-index:2;transition:background var(--transition)}
.modal-close:hover{background:var(--red);color:#fff;border-color:var(--red)}
.modal h2{padding:20px 52px 0 20px;font-size:1.2rem;color:var(--text)}

/* Quick View */
.qv-content{display:grid;gap:0}
@media(min-width:480px){.qv-content{grid-template-columns:1fr 1fr}}
.qv-img-wrap{background:var(--surface2);padding:24px;display:flex;align-items:center;justify-content:center;min-height:220px}
.qv-img{max-height:220px;object-fit:contain;border-radius:var(--radius-sm)}
.qv-info{padding:20px}
.qv-cat{font-size:.75rem;font-weight:700;color:var(--green);text-transform:uppercase;letter-spacing:.05em;margin-bottom:6px}
.qv-name{font-size:1.1rem;font-weight:800;margin-bottom:8px;color:var(--text)}
.qv-desc{font-size:.85rem;color:var(--text-muted);margin-bottom:12px;line-height:1.5}
.qv-metas{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}
.qv-meta-tag{font-size:.72rem;background:var(--surface2);border:1px solid var(--border);border-radius:var(--radius-pill);padding:3px 10px;color:var(--text-mid);font-weight:700}
.qv-price{font-family:var(--font-head);font-size:1.4rem;font-weight:900;color:var(--green);margin-bottom:4px}
.qv-price-label{font-size:.7rem;color:var(--text-muted);margin-bottom:12px}
.qv-avail{font-size:.8rem;font-weight:700;margin-bottom:16px}
.qv-actions{display:flex;flex-direction:column;gap:8px}

/* Cart Drawer */
.drawer-overlay{position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:1000;display:flex;justify-content:flex-end}
.cart-drawer{background:var(--surface);width:100%;max-width:400px;height:100%;display:flex;flex-direction:column;animation:drawerIn .25s ease;overflow:hidden}
@keyframes drawerIn{from{transform:translateX(100%)}to{transform:translateX(0)}}
.drawer-header{display:flex;align-items:center;justify-content:space-between;padding:16px 16px 12px;border-bottom:1px solid var(--border)}
.drawer-header h2{font-size:1.1rem;display:flex;align-items:center;gap:8px;color:var(--text)}
.drawer-header .modal-close{position:static;width:32px;height:32px}
.cart-items{flex:1;overflow-y:auto;padding:12px 16px;display:flex;flex-direction:column;gap:12px}
.cart-empty{text-align:center;padding:48px 20px;color:var(--text-muted)}
.cart-empty i{font-size:2.5rem;margin-bottom:12px;display:block;color:var(--border)}

.cart-item{display:flex;gap:10px;align-items:center;background:var(--surface2);border-radius:var(--radius-sm);padding:10px;border:1px solid var(--border)}
.cart-item-img{width:52px;height:52px;object-fit:contain;border-radius:6px;background:var(--surface);flex-shrink:0}
.cart-item-info{flex:1;min-width:0}
.cart-item-name{font-size:.82rem;font-weight:700;color:var(--text);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.cart-item-price{font-size:.8rem;font-weight:800;color:var(--green);margin-top:2px}
.cart-item-controls{display:flex;align-items:center;gap:6px;margin-top:6px}
.cart-item-controls button{width:26px;height:26px;border-radius:6px;background:var(--green-light);border:1.5px solid var(--green);color:var(--green);font-size:.85rem;font-weight:800;display:flex;align-items:center;justify-content:center;transition:background var(--transition)}
.cart-item-controls button:hover{background:var(--green);color:#fff}
.cart-item-qty{font-size:.85rem;font-weight:800;min-width:22px;text-align:center}
.cart-item-remove{margin-left:auto;color:var(--red);font-size:.9rem;padding:4px;opacity:.6;transition:opacity var(--transition)}
.cart-item-remove:hover{opacity:1}

.cart-footer{padding:12px 16px;border-top:1px solid var(--border);display:flex;flex-direction:column;gap:10px}
.cart-total{display:flex;justify-content:space-between;font-size:1rem;font-weight:800;color:var(--text)}
.cart-total-mrp{font-size:.7rem;color:var(--text-muted);text-align:right;margin-top:-6px}

/* Checkout */
.modal--checkout{padding-bottom:20px}
.modal--checkout h2{margin-bottom:12px;display:flex;align-items:center;gap:8px;color:var(--wa-dark)}
.checkout-form{padding:0 20px}
.form-group{display:flex;flex-direction:column;gap:4px;margin-bottom:14px}
.form-group label{font-size:.85rem;font-weight:700;color:var(--text)}
.form-group input,.form-group textarea,.form-group select{padding:10px 14px;border:2px solid var(--border);border-radius:var(--radius-sm);background:var(--surface2);color:var(--text);font-size:.9rem;outline:none;transition:border-color var(--transition);resize:none}
.form-group input:focus,.form-group textarea:focus{border-color:var(--green)}
.radio-group{display:flex;gap:12px;flex-wrap:wrap}
.radio-label{display:flex;align-items:center;gap:8px;padding:10px 16px;border:2px solid var(--border);border-radius:var(--radius-sm);cursor:pointer;font-weight:700;font-size:.88rem;transition:all var(--transition)}
.radio-label:has(input:checked){border-color:var(--green);background:var(--green-light);color:var(--green)}
.radio-label input{position:absolute;opacity:0;pointer-events:none}
.field-error{font-size:.75rem;color:var(--red);min-height:14px}
.checkout-order-summary{background:var(--surface2);border:1.5px solid var(--border);border-radius:var(--radius-sm);padding:12px;margin-bottom:16px;font-size:.82rem;max-height:160px;overflow-y:auto;color:var(--text-mid)}
.checkout-order-summary table{width:100%;border-collapse:collapse}
.checkout-order-summary th{text-align:left;padding:4px 6px;font-size:.72rem;color:var(--text-muted);border-bottom:1px solid var(--border)}
.checkout-order-summary td{padding:4px 6px;vertical-align:top}
.checkout-total-row{display:flex;justify-content:space-between;padding:8px 0 0;border-top:1px solid var(--border);font-weight:800;color:var(--text);font-size:.88rem}

/* ============================================================
   FLOATING BUTTONS
   ============================================================ */
.floating-btns{position:fixed;bottom:20px;right:16px;display:flex;flex-direction:column;gap:10px;z-index:800}
.fab{width:48px;height:48px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:1.2rem;box-shadow:0 4px 16px rgba(0,0,0,.25);transition:transform var(--transition),box-shadow var(--transition);color:#fff}
.fab:hover{transform:scale(1.1);box-shadow:0 6px 24px rgba(0,0,0,.35)}
.fab-wa{background:var(--wa)}
.fab-call{background:var(--green)}
.fab-loc{background:var(--accent)}
.fab-top{background:var(--text-mid);opacity:0;pointer-events:none;transition:opacity .3s,transform var(--transition)}
.fab-top.visible{opacity:1;pointer-events:auto}

/* ============================================================
   DARK MODE ICON SWAP
   ============================================================ */
.dark-mode #darkToggle .fa-moon::before{content:'\f185'} /* sun icon */

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media(max-width:480px){
  .hero-headline{font-size:1.8rem}
  .hero-cta-row .btn{padding:10px 16px;font-size:.88rem}
  .product-grid{grid-template-columns:repeat(2,1fr)}
  .wholesale-card{flex-direction:column;text-align:center}
}

@media(min-width:768px){
  .header-top{padding:12px 0 8px}
  .section{padding:56px 0}
  .hero{padding:64px 0}
}

/* ---- ANIMATIONS ---- */
@media(prefers-reduced-motion:no-preference){
  .product-card{transition:transform .25s ease,box-shadow .25s ease}
}

/* Fade-in for lazy-loaded cards */
.product-card{animation:fadeUp .3s ease both}
@keyframes fadeUp{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}

/* ============================================================
   IMPROVEMENTS BATCH — cart, wishlist, toast, mobile bar
   ============================================================ */

/* --- Cart item: fix layout so image + info + right-side controls are in a row --- */
.cart-item{display:grid;grid-template-columns:52px 1fr auto;gap:10px;align-items:start}
.cart-item-img{width:52px;height:52px;object-fit:contain;border-radius:6px;background:var(--surface);flex-shrink:0;display:block}
.cart-item-info{min-width:0;display:flex;flex-direction:column;gap:2px}
.cart-item-name{font-size:.82rem;font-weight:700;color:var(--text);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.cart-item-price{font-size:.8rem;font-weight:800;color:var(--green)}
.cart-item-right{display:flex;flex-direction:column;align-items:flex-end;gap:6px}
.cart-item-remove-btn{background:none;border:none;cursor:pointer;color:var(--text-muted);font-size:.85rem;padding:2px 4px;border-radius:4px;transition:color var(--transition)}
.cart-item-remove-btn:hover{color:var(--red)}
.cart-item-stepper{display:flex;align-items:center;gap:4px}
.cart-item-stepper button{width:26px;height:26px;border-radius:6px;background:var(--green-light);border:1.5px solid var(--green);color:var(--green);font-size:.85rem;font-weight:800;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:background var(--transition)}
.cart-item-stepper button:hover{background:var(--green);color:#fff}
.cart-item-stepper .qty-val{font-size:.85rem;font-weight:800;min-width:20px;text-align:center}

/* --- Wishlist panel: image + info + add-to-cart --- */
.wish-item{display:grid;grid-template-columns:52px 1fr auto;gap:10px;align-items:center;background:var(--surface2);border-radius:var(--radius-sm);padding:10px;border:1px solid var(--border)}
.wish-item-img{width:52px;height:52px;object-fit:contain;border-radius:6px;background:var(--surface);display:block}
.wish-item-info{min-width:0}
.wish-item-name{font-size:.82rem;font-weight:700;color:var(--text);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.wish-item-price{font-size:.8rem;font-weight:800;color:var(--green);margin-top:2px}
.wish-item-actions{display:flex;flex-direction:column;align-items:center;gap:6px}
.wish-add-btn{width:32px;height:32px;border-radius:8px;background:var(--green);color:#fff;border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:.9rem;transition:background var(--transition)}
.wish-add-btn:hover{background:var(--green-dark)}
.wish-remove{width:28px;height:28px;border-radius:6px;background:none;border:1.5px solid var(--border);color:var(--text-muted);cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:.8rem;transition:all var(--transition)}
.wish-remove:hover{border-color:var(--red);color:var(--red)}

/* --- Toast notification --- */
.mm-toast{position:fixed;bottom:80px;left:50%;transform:translateX(-50%) translateY(20px);background:#1a7a4a;color:#fff;padding:10px 20px;border-radius:100px;font-size:.85rem;font-weight:700;z-index:9999;opacity:0;transition:opacity .25s,transform .25s;pointer-events:none;white-space:nowrap;box-shadow:0 4px 20px rgba(0,0,0,.25)}
.mm-toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
@media(min-width:640px){.mm-toast{bottom:24px}}

/* --- Sticky mobile cart bar --- */
.mobile-cart-bar{display:flex;position:fixed;bottom:0;left:0;right:0;background:var(--surface);border-top:1.5px solid var(--border);z-index:900;padding:8px 16px;gap:8px;align-items:center;justify-content:center}
@media(min-width:640px){.mobile-cart-bar{display:none}}
.mobile-cart-bar .btn{flex:1;justify-content:center;padding:12px}
.mobile-cart-bar-count{background:var(--red);color:#fff;font-size:.7rem;font-weight:800;border-radius:50%;width:18px;height:18px;display:inline-flex;align-items:center;justify-content:center;margin-left:4px;vertical-align:middle}
body{padding-bottom:0}
@media(max-width:639px){body{padding-bottom:66px}}

/* --- Search result count --- */
.search-result-count{font-size:.78rem;color:var(--text-muted);margin:4px 0 8px;min-height:18px;padding:0 2px}

/* --- Checkout input polish --- */
.co-input{width:100%;padding:10px 12px;border:1.5px solid var(--border);border-radius:8px;font-size:.88rem;font-family:inherit;outline:none;background:var(--surface2);color:var(--text);transition:border-color .2s}
.co-input:focus{border-color:var(--green)}
.co-input.error{border-color:var(--red)}

/* =============================================
   v6 ADDITIONS
   ============================================= */

/* --- Card entrance animation --- */
@keyframes cardIn{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}}
.product-card{animation:cardIn .35s ease both}

/* --- Heart bounce --- */
@keyframes heartBounce{0%{transform:scale(1)}40%{transform:scale(1.4)}70%{transform:scale(.88)}100%{transform:scale(1)}}
.product-card-wish.heart-bounce{animation:heartBounce .4s ease}

/* --- Toast slide-up (override existing) --- */
@keyframes toastIn{from{opacity:0;transform:translateX(-50%) translateY(20px)}to{opacity:1;transform:translateX(-50%) translateY(0)}}
@keyframes toastOut{from{opacity:1;transform:translateX(-50%) translateY(0)}to{opacity:0;transform:translateX(-50%) translateY(20px)}}
.mm-toast.show{animation:toastIn .25s ease forwards}
.mm-toast.hide{animation:toastOut .25s ease forwards}

/* --- Cart badge bump --- */
@keyframes cartBump{0%,100%{transform:scale(1)}50%{transform:scale(1.45)}}
.cart-bump{animation:cartBump .3s ease}

/* --- Skeleton loading --- */
@keyframes shimmer{from{background-position:200% 0}to{background-position:-200% 0}}
.skeleton{background:linear-gradient(90deg,var(--surface2) 25%,var(--border) 50%,var(--surface2) 75%);background-size:200% 100%;animation:shimmer 1.4s infinite;border-radius:6px}
.skeleton-card{pointer-events:none}
.skeleton-img{width:100%;aspect-ratio:1;background:linear-gradient(90deg,var(--surface2) 25%,var(--border) 50%,var(--surface2) 75%);background-size:200% 100%;animation:shimmer 1.4s infinite}
.skeleton-line{display:block;border-radius:4px}

/* --- Search suggestions box --- */
.suggestion-box{position:absolute;top:100%;left:0;right:0;background:var(--surface);border:1.5px solid var(--border);border-radius:0 0 12px 12px;z-index:200;box-shadow:0 8px 24px rgba(0,0,0,.1);overflow:hidden}

/* --- Out-of-stock filter chip (add to your chips in HTML) --- */
/* chip already styled — no extra CSS needed */

/* --- Share button in quickview --- */
.qv-share-btn{margin-top:8px;font-size:.82rem}
