/* =================================================================
   Zanilia Storefront CSS - Modern Digital Store Theme (Refined)
   ================================================================= */

/* === DESIGN TOKENS === */
:root {
  --primary:      #6366f1;
  --primary-d:    #4f46e5;
  --primary-2:    #312e81;
  --accent:       #f43f5e;
  --teal:         #14b8a6;
  --gold:         #f59e0b;
  --emerald:      #10b981;
  --bg:           #f0f4ff;
  --card:         #ffffff;
  --text:         #0f172a;
  --muted:        #64748b;
  --line:         #e2e8f0;
  --soft:         #f1f5f9;
  --shadow-sm:    0 1px 3px rgba(99,102,241,.08);
  --shadow-md:    0 4px 16px rgba(99,102,241,.12);
  --shadow-lg:    0 12px 36px rgba(15,23,42,.12);
  --shadow-xl:    0 24px 64px rgba(15,23,42,.16);
  --shadow-glow:  0 0 0 4px rgba(99,102,241,.18);
  --r-sm:  8px;
  --r-md:  14px;
  --r-lg:  20px;
  --r-xl:  28px;
  --r-full:9999px;
  --trans: .2s ease;
}

[hidden] {
  display: none !important;
}

html[data-theme=dark] {
  --bg:    #0d1117;
  --card:  #161b27;
  --text:  #e6edf3;
  --muted: #8b949e;
  --line:  #30363d;
  --soft:  #1c2333;
  --shadow-md: 0 4px 16px rgba(0,0,0,.36);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.42);
}
html[data-theme=dark] body {
  background: radial-gradient(circle at top left, rgba(99,102,241,.12) 0, transparent 40%),
              radial-gradient(circle at 90% 10%, rgba(20,184,166,.08) 0, transparent 30%), var(--bg);
}

/* === BASE === */
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;background:var(--bg);color:var(--text);font-size:14px;line-height:1.6}
a{color:inherit;text-decoration:none}
button{font:inherit;cursor:pointer;border:none;background:none;padding:0}
img{max-width:100%;height:auto;display:block}
.hidden{display:none!important}

/* === ANIMATIONS === */
@keyframes modalUp{from{opacity:0;transform:translateY(24px) scale(.97)}to{opacity:1;transform:none}}
@keyframes floatBob{0%,100%{transform:translateY(0) rotate(var(--rot,0deg))}50%{transform:translateY(-10px) rotate(var(--rot,0deg))}}
@keyframes salesUp{0%{transform:translateY(0)}100%{transform:translateY(-50%)}}
@keyframes fadeSlide{from{opacity:0;transform:translateX(-12px)}to{opacity:1;transform:none}}

/* === LAYOUT === */
.ds-shell{max-width:1248px;margin:0 auto;padding:0 20px;width:100%}

/* === HEADER (SOFT & REFINED) === */
.ds-header{
  position:sticky;top:0;z-index:100;
  background:rgba(255,255,255,.84);
  backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);
  border-bottom:1px solid rgba(226,232,240,.8);
  box-shadow:0 4px 20px -2px rgba(15,23,42,.03);
}
html[data-theme=dark] .ds-header{
  background:rgba(18,23,35,.86);
  border-bottom:1px solid rgba(48,54,61,.8);
  box-shadow:0 4px 20px -2px rgba(0,0,0,.3);
}
.header-inner{
  display:grid;
  grid-template-columns:220px 1fr auto;
  align-items:center;
  gap:20px;height:68px;
}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--text);min-width:0;flex-shrink:0}
.brand-mark{
  width:40px;height:40px;flex-shrink:0;
  border-radius:12px;
  background:linear-gradient(135deg,var(--primary) 0%,var(--accent) 100%);
  color:#fff;font-weight:900;font-size:15px;letter-spacing:-.5px;
  display:grid;place-items:center;
  box-shadow:0 4px 12px rgba(99,102,241,.22);
}
.brand-mark.has-logo{background:transparent;border:1px solid var(--line);box-shadow:none}
.brand-logo-img{width:100%;height:100%;object-fit:contain;border-radius:10px}
.brand-text{min-width:0}
.brand-text b{display:block;font-size:15px;font-weight:800;letter-spacing:-.2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:180px}
.brand-text small{display:block;color:var(--muted);font-size:11px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:180px}
.searchbar{
  display:flex;align-items:center;gap:10px;
  height:44px;background:var(--soft);border:1.5px solid var(--line);
  border-radius:var(--r-full);padding:0 6px 0 16px;
  box-shadow:0 1px 3px rgba(15,23,42,.03);
  transition:all 0.2s ease;
}
.searchbar:focus-within{
  border-color:var(--primary);
  background:#ffffff;
  box-shadow:0 0 0 4px rgba(99,102,241,.12),0 2px 8px rgba(99,102,241,.06);
}
html[data-theme=dark] .searchbar{background:rgba(28,35,51,.75)}
html[data-theme=dark] .searchbar:focus-within{background:rgba(28,35,51,.95)}
.search-icon{width:18px;height:18px;color:var(--muted);flex-shrink:0}
.searchbar input{flex:1;border:none;outline:none;background:transparent;color:var(--text);font-size:13.5px}
.searchbar button{
  width:32px;height:32px;flex-shrink:0;
  background:linear-gradient(135deg,var(--primary),var(--primary-d));color:#fff;
  border-radius:var(--r-full);display:grid;place-items:center;
  box-shadow:0 2px 8px rgba(99,102,241,.3);
  transition:all 0.2s ease;
}
.searchbar button svg{width:15px;height:15px}
.searchbar button:hover{background:linear-gradient(135deg,var(--primary-d),var(--primary-2));transform:scale(1.04)}
.head-actions{display:flex;align-items:center;gap:6px;justify-content:flex-end}
.head-action-btn{
  display:flex;flex-direction:column;align-items:center;gap:3px;
  padding:7px 11px;border-radius:12px;
  color:var(--muted);font-size:11.5px;font-weight:600;
  transition:all 0.2s ease;
  position:relative;white-space:nowrap;
  background:transparent;border:none;cursor:pointer;
}
.head-action-btn svg{width:19px;height:19px}
.head-action-btn:hover{
  background:rgba(99,102,241,.07);color:var(--primary);transform:translateY(-1px);
}
.head-action-btn i{
  position:absolute;top:-3px;right:7px;
  min-width:18px;height:18px;
  background:linear-gradient(135deg,#f43f5e,#e11d48);color:#fff;
  border-radius:var(--r-full);font-size:9.5px;font-style:normal;font-weight:800;
  display:grid;place-items:center;border:2px solid var(--card);
  box-shadow:0 2px 6px rgba(244,63,94,.35);
}
.theme-toggle.moon .icon-sun{display:none}
html[data-theme=dark] .theme-toggle.moon .icon-moon{display:none}
html[data-theme=dark] .theme-toggle.moon .icon-sun{display:block}

/* Category Popover Dropdown */
.category-menu-wrap{position:relative}
.category-popover{
  position:absolute;right:0;top:calc(100% + 8px);
  background:#ffffff !important;
  border:1px solid #e2e8f0;
  border-radius:14px;
  box-shadow:0 16px 36px -6px rgba(15,23,42,.18), 0 0 0 1px rgba(226,232,240,.6);
  padding:6px;width:230px;
  display:none;z-index:999;max-height:380px;overflow-y:auto;
  animation:modalUp .2s cubic-bezier(0.16, 1, 0.3, 1);
}
html[data-theme=dark] .category-popover{
  background:#161b27 !important;
  border-color:#30363d;
  box-shadow:0 16px 36px -6px rgba(0,0,0,.6);
}
.category-popover.open{display:block}
.cat-menu-item{
  display:flex !important;
  flex-direction:row !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:10px !important;
  width:100% !important;
  padding:8px 10px !important;
  border-radius:8px !important;
  color:#1e293b !important;
  font-size:13px !important;
  font-weight:600 !important;
  text-align:left !important;
  background:transparent !important;
  white-space:nowrap !important;
  transition:all 0.15s ease;
  border:none;
  cursor:pointer;
  box-sizing:border-box;
}
html[data-theme=dark] .cat-menu-item{color:#e2e8f0 !important}
.cat-menu-item:hover{
  background:#f1f5f9 !important;
  color:#4f46e5 !important;
}
html[data-theme=dark] .cat-menu-item:hover{
  background:#1c2333 !important;
  color:#818cf8 !important;
}
.cat-menu-item.active{
  background:#eef2ff !important;
  color:#4f46e5 !important;
  font-weight:700 !important;
}
html[data-theme=dark] .cat-menu-item.active{
  background:rgba(99,102,241,.18) !important;
  color:#818cf8 !important;
}
.cat-menu-icon{
  width:26px !important;
  height:26px !important;
  flex-shrink:0 !important;
  background:#f1f5f9 !important;
  border-radius:6px !important;
  display:grid !important;
  place-items:center !important;
  font-size:13px !important;
  color:inherit !important;
}
html[data-theme=dark] .cat-menu-icon{background:#1c2333 !important}
.cat-menu-icon svg{width:14px;height:14px}
.cat-menu-label{
  flex:1 !important;
  text-align:left !important;
  font-size:13px !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}
.popover-count{
  margin-left:auto !important;
  font-size:11px !important;
  font-weight:700 !important;
  color:#64748b !important;
  background:#f1f5f9 !important;
  border-radius:999px !important;
  padding:2px 7px !important;
  flex-shrink:0 !important;
}
html[data-theme=dark] .popover-count{background:#1c2333 !important;color:#94a3b8 !important}
.cat-menu-item.active .popover-count{
  background:rgba(99,102,241,.15) !important;
  color:#4f46e5 !important;
}
html[data-theme=dark] .cat-menu-item.active .popover-count{
  color:#818cf8 !important;
}

.mobile-menu-btn{
  display:none;width:40px;height:40px;border-radius:12px;
  background:var(--soft);color:var(--text);
  align-items:center;justify-content:center;flex-shrink:0;
  transition:background var(--trans);
}
.mobile-menu-btn svg{width:20px;height:20px}

/* === MOBILE MENU === */
.mobile-menu{position:fixed;inset:0;z-index:160;display:none}
.mobile-menu.open{display:block}
.mobile-menu-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.6);backdrop-filter:blur(4px)}
.mobile-menu-panel{
  position:absolute;left:0;top:0;bottom:0;
  width:min(88vw,340px);background:var(--card);
  padding:20px 16px;overflow-y:auto;
  box-shadow:24px 0 60px rgba(15,23,42,.22);
  animation:fadeSlide .22s ease;
}
.mobile-menu-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;padding-bottom:16px;border-bottom:1px solid var(--line)}
.mobile-menu-close{width:36px;height:36px;border-radius:var(--r-full);background:var(--soft);display:grid;place-items:center;flex-shrink:0}
.mobile-menu-close svg{width:18px;height:18px}
.mobile-menu-search{
  display:flex;align-items:center;gap:10px;
  border:1.5px solid var(--line);border-radius:var(--r-lg);
  background:var(--soft);padding:0 10px;height:46px;margin-bottom:20px;
}
.mobile-menu-search svg{width:18px;height:18px;color:var(--muted);flex-shrink:0}
.mobile-menu-search input{flex:1;border:none;outline:none;background:transparent;color:var(--text);font-size:14px}
.mobile-menu-search button{border-radius:var(--r-sm);background:var(--primary);color:#fff;padding:8px 14px;font-size:13px;font-weight:700}
.mobile-menu-section{margin-bottom:20px}
.mobile-menu-section>b{display:block;color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.08em;margin-bottom:8px}
.mobile-menu-section a,.mobile-cat{
  display:flex;align-items:center;gap:12px;
  width:100%;padding:11px 12px;border-radius:var(--r-md);
  color:var(--text);font-size:14px;font-weight:600;text-align:left;
  transition:background var(--trans),color var(--trans);margin-bottom:2px;
}
.mobile-menu-section a svg{width:18px;height:18px;flex-shrink:0;color:var(--primary)}
.mobile-menu-section a:hover,.mobile-cat:hover{background:var(--soft);color:var(--primary)}
.mobile-cat.active{background:color-mix(in srgb,var(--primary) 10%,var(--card));color:var(--primary)}
.mobile-cat span{width:28px;height:28px;background:var(--soft);border-radius:8px;display:grid;place-items:center;font-size:15px;flex-shrink:0}

/* === MAIN WRAP === */
.main-wrap{padding:24px 0 40px}

/* === HERO === */
.hero-card{
  position:relative;overflow:hidden;
  background:linear-gradient(135deg,#1e1b4b 0%,#312e81 35%,#4338ca 70%,#6366f1 100%);
  border-radius:var(--r-xl);
  padding:32px 36px 24px;color:#fff;
  box-shadow:0 20px 50px -10px rgba(30,27,75,.4), 0 0 0 1px rgba(255,255,255,.1) inset;
  margin-bottom:28px;
}
.hero-bg-shapes{position:absolute;inset:0;pointer-events:none}
.hero-shape{position:absolute;border-radius:50%;opacity:.14;filter:blur(50px)}
.hero-shape-1{width:360px;height:360px;background:#818cf8;top:-120px;left:-60px}
.hero-shape-2{width:320px;height:320px;background:#2dd4bf;bottom:-80px;right:60px}
.hero-shape-3{width:200px;height:200px;background:#f59e0b;top:20px;right:-40px}

.hero-main-row{
  display:grid;grid-template-columns:1.15fr 0.85fr;gap:36px;align-items:center;
  position:relative;z-index:2;margin-bottom:24px;
}
.hero-copy{position:relative;z-index:2}
.hero-badge{
  display:inline-flex;align-items:center;gap:8px;
  background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.24);
  border-radius:var(--r-full);padding:5px 14px;
  font-size:12px;font-weight:700;letter-spacing:.03em;margin-bottom:14px;
  backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);
}
.hero-badge svg{width:14px;height:14px;color:#fde047}
.hero-copy h1{margin:0 0 10px;font-size:clamp(22px,3.2vw,36px);line-height:1.22;font-weight:900;letter-spacing:-.03em;color:#fff}
.hero-copy p{margin:0 0 22px;font-size:14.5px;line-height:1.6;color:rgba(255,255,255,.84);max-width:500px}
.hero-buttons{display:flex;gap:12px;flex-wrap:wrap}
.btn{
  display:inline-flex;align-items:center;gap:8px;
  padding:12px 22px;border-radius:var(--r-lg);
  font-size:14px;font-weight:800;
  transition:transform var(--trans),box-shadow var(--trans);
}
.btn svg{width:18px;height:18px}
.btn:hover{transform:translateY(-2px)}
.btn.primary{background:#fff;color:var(--primary);box-shadow:0 8px 24px rgba(0,0,0,.16)}
.btn.primary:hover{box-shadow:0 12px 32px rgba(0,0,0,.22)}
.btn.secondary{background:rgba(255,255,255,.15);color:#fff;border:1.5px solid rgba(255,255,255,.3);backdrop-filter:blur(8px)}
.btn.secondary:hover{background:rgba(255,255,255,.22)}
.btn.soft{background:var(--soft);color:var(--text)}

/* Hero Showcase Panel */
.hero-showcase{position:relative;z-index:2}
.hero-showcase-card{
  background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.18);
  border-radius:20px;padding:20px 22px;
  backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);
  box-shadow:0 16px 40px -8px rgba(0,0,0,.35);
}
.hero-showcase-header{
  display:flex;align-items:center;justify-content:space-between;
  margin-bottom:14px;padding-bottom:12px;border-bottom:1px solid rgba(255,255,255,.12);
  gap:10px;flex-wrap:wrap;
}
.hero-live-badge{
  display:flex;align-items:center;gap:8px;font-size:12px;font-weight:700;color:#34d399;
}
.live-dot{
  width:8px;height:8px;border-radius:50%;background:#34d399;
  box-shadow:0 0 10px #34d399;display:inline-block;
}
.hero-instant-pill{
  background:rgba(255,255,255,.14);border-radius:var(--r-full);
  padding:3px 10px;font-size:11px;font-weight:700;color:#fde047;
}
.hero-showcase-items{display:flex;flex-direction:column;gap:9px}
.hero-showcase-row{
  display:flex;align-items:center;gap:12px;padding:9px 12px;
  border-radius:12px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.08);
  transition:background var(--trans);
}
.hero-showcase-row:hover{background:rgba(255,255,255,.11)}
.showcase-icon{
  width:34px;height:34px;border-radius:10px;display:grid;place-items:center;flex-shrink:0;
}
.showcase-icon svg{width:17px;height:17px}
.showcase-icon.zap{background:rgba(251,191,36,.2);color:#fbbf24}
.showcase-icon.shield{background:rgba(52,211,153,.2);color:#34d399}
.showcase-icon.card-pay{background:rgba(129,140,248,.25);color:#a5b4fc}
.showcase-text b{display:block;font-size:12.5px;font-weight:800;color:#fff}
.showcase-text p{margin:2px 0 0;font-size:11px;color:rgba(255,255,255,.72);line-height:1.3}
.hero-showcase-footer{
  display:flex;align-items:center;gap:8px;margin-top:12px;padding-top:11px;
  border-top:1px solid rgba(255,255,255,.1);font-size:11.5px;color:rgba(255,255,255,.75);
}
.hero-showcase-footer .trust-stars{color:#f59e0b;letter-spacing:1px;font-size:13px}
.hero-showcase-footer b{color:#fff;font-weight:800}

/* Hero Benefits Strip */
.hero-benefits{
  display:grid;grid-template-columns:repeat(4,1fr);gap:12px;
  border-top:1px solid rgba(255,255,255,.14);padding-top:18px;position:relative;z-index:2;
}
.hero-benefit-item{
  display:flex;align-items:center;gap:10px;
  background:rgba(255,255,255,.06);padding:8px 12px;border-radius:12px;border:1px solid rgba(255,255,255,.08);
}
.hero-benefit-icon{
  width:32px;height:32px;flex-shrink:0;
  background:rgba(255,255,255,.12);border-radius:9px;display:grid;place-items:center;color:#5eead4;
}
.hero-benefit-icon svg{width:16px;height:16px}
.hero-benefit-item b{display:block;font-size:12px;font-weight:800;color:#fff}
.hero-benefit-item small{display:block;font-size:10.5px;color:rgba(255,255,255,.7);margin-top:1px}

/* === PRODUCT SECTION === */
.znl-product-section{margin:0 0 40px}
.znl-category-pills,.category-row{
  display:flex;gap:8px;overflow-x:auto;padding:2px 2px 12px;margin-bottom:20px;scrollbar-width:none;
}
.znl-category-pills::-webkit-scrollbar,.category-row::-webkit-scrollbar{display:none}
.cat-pill{
  display:inline-flex;align-items:center;gap:7px;white-space:nowrap;
  padding:8px 16px;border-radius:var(--r-full);border:1px solid var(--line);
  background:var(--card);color:var(--muted);font-size:13px;font-weight:700;cursor:pointer;
  transition:all var(--trans);
  box-shadow:0 1px 3px rgba(15,23,42,.04);
}
.cat-pill:hover{border-color:var(--primary);color:var(--primary);transform:translateY(-1px);box-shadow:0 4px 12px rgba(99,102,241,.12)}
.cat-pill.active{
  background:linear-gradient(135deg, var(--primary), var(--primary-d));
  border-color:var(--primary);color:#fff;
  box-shadow:0 4px 14px rgba(99,102,241,.3);
}
.cat-pill.hidden{display:none!important}
.product-card.hidden,.znl-product-card.hidden{display:none!important}
.product-table tr.hidden{display:none!important}

.section-divider,.znl-list-head{
  display:flex;align-items:center;justify-content:space-between;margin-bottom:18px;gap:14px;flex-wrap:wrap;
}
.znl-list-head h2{margin:0 0 2px;font-size:20px;font-weight:800;display:flex;align-items:center;gap:8px;color:var(--text)}
.znl-list-head h2 svg{width:20px;height:20px;color:var(--accent)}
.znl-list-head p{margin:0;color:var(--muted);font-size:13px}
.znl-toolbar-actions.tool-row,.tool-row{display:flex;align-items:center;gap:10px}
.sort-wrap{position:relative}
.sort-btn{
  display:flex;align-items:center;gap:8px;height:38px;padding:0 14px;
  border:1px solid var(--line);border-radius:12px;
  background:var(--card);color:var(--text);font-size:13px;font-weight:700;
  transition:border-color var(--trans),box-shadow var(--trans);
}
.sort-btn svg{width:16px;height:16px;color:var(--muted)}
.sort-btn:hover{border-color:var(--primary);box-shadow:var(--shadow-sm)}
.sort-menu{
  position:absolute;right:0;top:calc(100% + 6px);
  background:var(--card);border:1px solid var(--line);border-radius:var(--r-md);
  box-shadow:var(--shadow-lg);padding:6px;min-width:130px;z-index:40;display:none;
}
.sort-menu.open{display:block}
.sort-menu button{
  width:100%;padding:9px 12px;border-radius:var(--r-sm);
  color:var(--muted);font-size:13px;font-weight:600;text-align:left;
  transition:background var(--trans),color var(--trans);
}
.sort-menu button:hover{background:var(--soft);color:var(--text)}
.sort-menu button.active{background:color-mix(in srgb,var(--primary) 10%,var(--card));color:var(--primary)}
.view-icons{display:flex;gap:6px}
.view-icons button{
  width:38px;height:38px;border-radius:10px;border:1px solid var(--line);
  background:var(--card);display:grid;place-items:center;color:var(--muted);transition:all var(--trans);
}
.view-icons button svg{width:16px;height:16px}
.view-icons button:hover{border-color:var(--primary);color:var(--primary)}
.view-icons button.active{background:var(--primary);border-color:var(--primary);color:#fff;box-shadow:0 2px 8px rgba(99,102,241,.25)}

/* === PRODUCT GRID === */
.product-grid,.znl-product-grid{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:14px;
}
.product-card,.znl-product-card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:8px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  position:relative;
  box-shadow:0 2px 10px rgba(15,23,42,.04);
  transition:transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.22s ease;
}
.product-card:hover,.znl-product-card:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 24px -8px rgba(99,102,241,.16), 0 2px 8px rgba(15,23,42,.04);
  border-color:rgba(99,102,241,.28);
}
html[data-theme=dark] .product-card,html[data-theme=dark] .znl-product-card{
  border-color:var(--line);
}
html[data-theme=dark] .product-card:hover,html[data-theme=dark] .znl-product-card:hover{
  box-shadow:0 16px 40px rgba(0,0,0,.6);
  border-color:color-mix(in srgb, var(--primary) 50%, var(--line));
}
.thumb,.znl-card-thumb{
  position:relative;
  overflow:hidden;
  width:100%;
  aspect-ratio:16/9;
  background:linear-gradient(135deg,#eef2ff,#f8fafc);
  flex-shrink:0;
}
html[data-theme=dark] .thumb,html[data-theme=dark] .znl-card-thumb{
  background:linear-gradient(135deg,#312e81,#1e1b4b);
}
.thumb img,.znl-card-thumb img,.ds-product-thumb-img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  transform:none;
  transition:none;
}
.product-card:hover .thumb img,.znl-product-card:hover .thumb img{
  transform:none;
}
.thumb b,.ds-default-thumb{
  width:100%;
  height:100%;
  display:grid;
  place-items:center;
}
.ds-default-thumb span{
  font-size:11px;
  font-weight:800;
  color:var(--primary);
  text-align:center;
  padding:8px;
  line-height:1.3;
}
.thumb em{
  position:absolute;
  left:10px;
  top:10px;
  z-index:2;
  background:linear-gradient(135deg, var(--accent) 0%, #e11d48 100%);
  color:#fff;
  font-size:11px;
  font-style:normal;
  font-weight:800;
  padding:3px 9px;
  border-radius:var(--r-full);
  box-shadow:0 3px 10px rgba(244,63,94,.35);
  letter-spacing:.02em;
}
.product-wishlist-btn{
  position:absolute;
  right:10px;
  top:10px;
  z-index:2;
  width:34px;
  height:34px;
  background:rgba(255,255,255,.9);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  border-radius:8px;
  display:grid;
  place-items:center;
  color:var(--muted);
  border:1px solid rgba(255,255,255,.6);
  transition:all var(--trans);
  box-shadow:0 2px 8px rgba(15,23,42,.1);
}
.product-wishlist-btn span{
  font-size:16px;
  line-height:1;
}
.product-wishlist-btn:hover,.product-wishlist-btn[aria-pressed=true]{
  color:var(--accent);
  background:#fff;
  transform:scale(1.1);
  box-shadow:0 4px 14px rgba(244,63,94,.28);
}
html[data-theme=dark] .product-wishlist-btn{
  background:rgba(22,27,39,.9);
  border-color:rgba(255,255,255,.1);
}
.product-main,.znl-card-body{
  padding:12px 14px 14px;
  flex:1;
  display:flex;
  flex-direction:column;
}
.grid-category-label,.mini-cat{
  display:inline-flex;
  align-items:center;
  gap:4px;
  background:rgba(99,102,241,.08);
  color:var(--primary);
  border-radius:6px;
  padding:3px 8px;
  font-size:11px;
  font-weight:700;
  margin-bottom:7px;
  width:fit-content;
  text-transform:uppercase;
  letter-spacing:.04em;
}
html[data-theme=dark] .grid-category-label,html[data-theme=dark] .mini-cat{
  background:rgba(99,102,241,.18);
}
.product-title{
  display:block;
  font-size:14px;
  font-weight:800;
  line-height:1.32;
  color:var(--text);
  text-align:left;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  margin-bottom:6px;
  transition:color var(--trans);
  cursor:pointer;
  min-height:37px;
}
.product-title:hover{
  color:var(--primary);
}
.product-rating{
  margin:2px 0 8px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:6px;
  flex-wrap:wrap;
  font-size:12px;
}
.product-rating-score{
  display:flex;
  align-items:center;
  gap:4px;
  font-weight:700;
  color:var(--text);
}
.rating-star{
  width:13px;
  height:13px;
}
.rating-star.is-full,.rating-star.is-half{
  color:var(--gold);
}
.rating-star.is-empty{
  color:var(--line);
}
.rating-star svg{
  width:13px;
  height:13px;
}
.product-stock-inline{
  font-size:11px;
  font-weight:700;
  padding:2px 8px;
  border-radius:var(--r-full);
}
.product-stock-inline.is-available{
  background:rgba(16,185,129,.1);
  color:#059669;
  border:1px solid rgba(16,185,129,.2);
}
.product-stock-inline.is-empty{
  background:rgba(244,63,94,.08);
  color:#e11d48;
  border:1px solid rgba(244,63,94,.18);
}
.product-price-action-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-top:auto;
  padding-top:10px;
  border-top:1px solid var(--line);
}
.product-price-row{
  display:flex;
  flex-direction:column;
  gap:1px;
}
.product-price-row strong{
  font-size:16px;
  font-weight:900;
  color:var(--primary);
  line-height:1.2;
}
.product-price-row del{
  font-size:11px;
  color:var(--muted);
}
.card-bottom,.znl-card-bottom{
  margin-top:auto;
  padding:12px 16px;
  border-top:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}
.znl-card-bottom button[data-add-cart]{
  flex:1;
  padding:9px 14px;
  background:linear-gradient(135deg,var(--primary),var(--primary-d));
  color:#fff;
  border-radius:var(--r-md);
  font-size:13px;
  font-weight:800;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  box-shadow:0 4px 12px rgba(99,102,241,.24);
  transition:background var(--trans),transform var(--trans),box-shadow var(--trans);
}
.znl-card-bottom button[data-add-cart]:hover{
  transform:translateY(-1px);
  box-shadow:0 6px 16px rgba(99,102,241,.32);
}
.znl-card-bottom button[data-add-cart]:disabled{
  background:var(--soft);
  color:#94a3b8;
  border:1px solid var(--line);
  cursor:not-allowed;
  transform:none;
  box-shadow:none;
}
.grid-cart-btn{
  padding:7px 15px;
  background:linear-gradient(135deg,var(--primary),var(--primary-d));
  color:#fff;
  border-radius:10px;
  font-size:12.5px;
  font-weight:800;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  box-shadow:0 3px 10px rgba(99,102,241,.24);
  transition:all var(--trans);
}
.grid-cart-btn:hover{
  transform:translateY(-1px);
  box-shadow:0 5px 14px rgba(99,102,241,.34);
}
.grid-cart-btn:disabled{
  background:var(--soft);
  color:#94a3b8;
  border:1px solid var(--line);
  cursor:not-allowed;
  transform:none;
  box-shadow:none;
  font-weight:700;
}
.empty-state{
  grid-column:1/-1;
  padding:56px 20px;
  text-align:center;
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--r-xl);
  color:var(--muted);
  font-size:15px;
}
.product-card.is-out,
.product-row.is-out,
.znl-product-card.is-out {
  opacity:1;
}

/* === PRODUCT TABLE (list view) === */
.product-table-wrap{
  overflow-x:auto;
  display:none;
  border-radius:var(--r-xl);
  box-shadow:var(--shadow-sm);
}
.products-side.is-list-view .product-grid,.products-side[data-view=list] .product-grid{display:none!important}
.products-side.is-grid-view .product-table-wrap,.products-side[data-view=grid] .product-table-wrap{display:none!important}
.products-side.is-list-view .product-table-wrap,.products-side[data-view=list] .product-table-wrap{display:block!important;overflow-x:auto}
.products-side.is-list-view .view-icons [data-view-mode=list],
.products-side[data-view=list] .view-icons [data-view-mode=list]{background:var(--primary);border-color:var(--primary);color:#fff}
.product-table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  background:var(--card);
  border:1.5px solid var(--line);
  border-radius:var(--r-xl);
  overflow:hidden;
  min-width:760px;
}
.product-table th{
  background:var(--soft);
  color:var(--muted);
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.05em;
  text-align:left;
  padding:14px 18px;
  border-bottom:1.5px solid var(--line);
}
.product-table td{
  padding:16px 18px;
  border-bottom:1px solid var(--line);
  vertical-align:middle;
  color:var(--text);
  transition:background var(--trans);
}
.product-table tbody tr:last-child td{
  border-bottom:none;
}
.product-table tbody tr:hover td{
  background:color-mix(in srgb,var(--primary) 3%,var(--card));
}
.table-product{
  display:flex;
  align-items:center;
  gap:16px;
  min-width:280px;
}
.thumb.mini{
  width:64px;
  height:64px;
  flex-shrink:0;
  border-radius:var(--r-md);
  overflow:hidden;
  position:relative;
  background:var(--soft);
}
.thumb.mini em{
  font-size:9px;
  padding:2px 6px;
  border-radius:4px;
}
.table-product .product-title{
  min-height:0;
  margin-bottom:4px;
  font-size:14px;
}
.table-product p{
  margin:0 0 4px;
  color:var(--muted);
  font-size:12px;
  max-width:340px;
  line-height:1.4;
}
.table-stock-out{
  display:inline-block;
  font-size:10px;
  font-weight:800;
  padding:2px 8px;
  border-radius:var(--r-full);
  background:color-mix(in srgb,var(--accent) 12%,var(--card));
  color:var(--accent);
}
.table-stock-out.is-manual{
  background:color-mix(in srgb,var(--teal) 12%,var(--card));
  color:var(--teal);
}
.table-price{
  font-size:15.5px;
  font-weight:900;
  color:var(--primary);
}
.product-table del{
  color:var(--muted);
  font-size:11px;
  margin-left:4px;
}
.sold-text{
  background:color-mix(in srgb,var(--emerald) 12%,var(--card));
  color:var(--emerald);
  border-radius:var(--r-sm);
  padding:4px 8px;
  font-size:11px;
  font-weight:800;
}
html[data-theme=dark] .sold-text{
  background:rgba(16,185,129,.15)!important;
  color:#6ee7b7!important;
}
.table-add{
  padding:10px 18px;
  border-radius:var(--r-md);
  background:linear-gradient(135deg,var(--primary),var(--primary-d));
  color:#fff;
  font-size:13px;
  font-weight:800;
  white-space:nowrap;
  box-shadow:0 4px 12px rgba(99,102,241,.24);
  transition:all var(--trans);
}
.table-add:hover{
  transform:translateY(-1px);
  box-shadow:0 6px 16px rgba(99,102,241,.34);
}
.table-add:disabled{
  background:var(--soft);
  color:var(--muted);
  cursor:not-allowed;
  box-shadow:none;
  transform:none;
}
@media(min-width:641px){
  .products-side.is-list-view .product-table,.products-side[data-view=list] .product-table{display:table;min-width:760px}
}

/* === FLASH SALE === */
.znl-flash-banner,.flash-sale-strip{
  background:linear-gradient(120deg,#b91c1c 0%,#dc2626 45%,#ea580c 100%);
  border-radius:var(--r-xl);color:#fff;overflow:hidden;margin-bottom:24px;position:relative;
}
.znl-flash-nav{display:flex;align-items:center;justify-content:space-between;padding:16px 20px 8px}
.znl-flash-nav h3{margin:0;font-size:16px;font-weight:900;display:flex;align-items:center;gap:8px}
.znl-flash-count,.znl-countdown,.flash-countdown{display:flex;align-items:center;gap:8px}
.cd-box{background:rgba(0,0,0,.3);border-radius:var(--r-sm);padding:6px 10px;font-size:14px;font-weight:800;min-width:36px;text-align:center}
.cd-sep{font-size:16px;font-weight:900;opacity:.7}
.znl-flash-track{display:flex;gap:0;padding:0 10px 16px;overflow:hidden}
.znl-flash-inner{
  flex-shrink:0;width:220px;background:rgba(255,255,255,.12);border-radius:var(--r-lg);margin:0 6px;padding:16px;
  border:1px solid rgba(255,255,255,.15);display:grid;grid-template-columns:80px 1fr;gap:12px;align-items:center;
}
.znl-flash-thumb{width:80px;height:80px;border-radius:var(--r-md);overflow:hidden;background:rgba(255,255,255,.15);display:grid;place-items:center}
.znl-flash-thumb img{width:100%;height:100%;object-fit:cover}
.znl-flash-detail strong{display:block;font-size:14px;font-weight:900}
.znl-flash-desc{font-size:11px;opacity:.8;margin:4px 0 8px}
.znl-flash-buy{grid-column:1/-1}
.znl-flash-buy em{display:inline-block;background:var(--gold);color:#000;font-style:normal;font-size:11px;font-weight:800;border-radius:var(--r-sm);padding:3px 8px;margin-bottom:4px}
.znl-flash-buy strong{display:block;font-size:18px;font-weight:900}
.znl-flash-buy del{font-size:12px;opacity:.7}
.znl-flash-buy button{width:100%;margin-top:8px;padding:9px;background:#fff;color:var(--accent);border-radius:var(--r-md);font-size:13px;font-weight:800;transition:background var(--trans)}
.znl-flash-buy button:hover{background:#fff3f3}
.znl-flash-buy button:disabled{background:rgba(255,255,255,.4);color:rgba(255,255,255,.6);cursor:not-allowed}

/* === VOUCHER === */
.znl-voucher-section{margin-bottom:24px}
.znl-voucher-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;flex-wrap:wrap;gap:8px}
.znl-voucher-title{margin:0;font-size:18px;font-weight:800;display:flex;align-items:center;gap:8px}
.znl-voucher-title-icon{font-size:20px}
.znl-voucher-count{background:var(--soft);color:var(--muted);border-radius:var(--r-full);padding:4px 12px;font-size:12px;font-weight:700}
.znl-voucher-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.znl-voucher-card{background:var(--card);border:1px solid var(--line);border-radius:var(--r-xl);overflow:hidden;position:relative;transition:box-shadow var(--trans);box-shadow:var(--shadow-sm)}
.znl-voucher-card:hover{box-shadow:var(--shadow-md)}
.znl-voucher-mark{height:80px;background:linear-gradient(120deg,var(--primary),var(--accent));display:grid;place-items:center;color:#fff;font-size:28px}
.znl-voucher-body{padding:14px}
.znl-voucher-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.znl-voucher-code{font-family:ui-monospace,Consolas,monospace;font-size:14px;font-weight:800;letter-spacing:.05em;color:var(--primary)}
.znl-voucher-offer{font-size:13px;font-weight:700;color:var(--text);margin-bottom:4px}
.znl-voucher-copy{display:flex;align-items:center;gap:8px;justify-content:space-between;background:var(--soft);border-radius:var(--r-md);padding:8px 12px}
.znl-voucher-copy code{font-size:13px;font-weight:800;letter-spacing:.05em;color:var(--primary);font-family:inherit}
.znl-voucher-copy button{background:var(--primary);color:#fff;border-radius:var(--r-sm);padding:5px 12px;font-size:12px;font-weight:700;transition:background var(--trans)}
.znl-voucher-copy button:hover{background:var(--primary-d)}
.znl-voucher-meta{font-size:11px;color:var(--muted);margin-top:8px}

/* === PRODUCT MODAL (100% SOLID, OPAQUE, NEAT & POLISHED) === */
body.modal-open {
  overflow: hidden !important;
}

.product-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  overflow: hidden;
  opacity: 1 !important;
}
.product-modal.open {
  display: flex !important;
  opacity: 1 !important;
}
.product-modal.is-out {
  opacity: 1 !important;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 29, 0.78) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1;
  cursor: pointer;
  opacity: 1 !important;
}

.product-modal-card {
  position: relative;
  z-index: 10;
  width: min(890px, 95vw);
  background: #ffffff !important;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 60px -10px rgba(10, 15, 29, 0.45), 0 0 0 1px rgba(0, 0, 0, 0.05);
  animation: modalScaleUp .24s cubic-bezier(0.16, 1, 0.3, 1) both;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  opacity: 1 !important;
}
html[data-theme=dark] .product-modal-card {
  background: #151d2c !important;
  border-color: #273447 !important;
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.07);
}

@keyframes modalScaleUp {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close-floating {
  position: absolute;
  right: 18px;
  top: 18px;
  z-index: 100;
  width: 38px;
  height: 38px;
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0;
  color: #475569;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
  transition: all 0.18s ease;
  cursor: pointer;
}
html[data-theme=dark] .modal-close-floating {
  background: #1e293b !important;
  border-color: #334155;
  color: #cbd5e1;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}
.modal-close-floating svg {
  width: 16px;
  height: 16px;
  transition: transform 0.18s ease;
}
.modal-close-floating:hover {
  background: #f1f5f9 !important;
  color: #0f172a;
  transform: scale(1.08);
  border-color: #cbd5e1;
}
.modal-close-floating:hover svg {
  transform: rotate(90deg);
}
html[data-theme=dark] .modal-close-floating:hover {
  background: #334155 !important;
  color: #ffffff;
  border-color: #475569;
}

/* Modal Split Layout */
.modal-split-layout {
  display: grid;
  grid-template-columns: 350px 1fr;
  background: #ffffff !important;
  max-height: 88vh;
  height: 100%;
  overflow: hidden;
  opacity: 1 !important;
}
html[data-theme=dark] .modal-split-layout {
  background: #151d2c !important;
}

/* Left Visual Column */
.modal-visual-wrap {
  background: #f8fafc !important;
  border-right: 1px solid #e2e8f0;
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: flex-start;
  overflow-y: auto;
  opacity: 1 !important;
}
html[data-theme=dark] .modal-visual-wrap {
  background: #0d131f !important;
  border-right-color: #232e40;
}

.modal-visual {
  width: 100%;
  aspect-ratio: 1/1;
  max-height: 270px;
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}
html[data-theme=dark] .modal-visual {
  background: #1a2332 !important;
  border-color: #2a384c;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.modal-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.modal-icon {
  font-size: 48px;
  color: var(--primary);
  opacity: 0.9;
}

/* Modern Stock Status Ribbon / Badge */
.modal-stock-ribbon {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #ef4444;
  color: #ffffff;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 800;
  border-radius: 999px;
  display: none;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
  z-index: 5;
  text-transform: uppercase;
}
.product-modal.is-out .modal-stock-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Modal Stats Grid */
.modal-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: none;
}
.modal-stat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #ffffff !important;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
  opacity: 1 !important;
}
html[data-theme=dark] .modal-stat-item {
  background: #151d2c !important;
  border-color: #273447;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}
.modal-stat-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.modal-stat-icon svg {
  width: 16px;
  height: 16px;
}
.modal-stat-icon.stock { background: #ecfdf5; color: #059669; }
.modal-stat-icon.sold { background: #eef2ff; color: #4f46e5; }
.modal-stat-icon.send { background: #fffbeb; color: #d97706; }
.modal-stat-icon.warranty { background: #f0fdfa; color: #0d9488; }
html[data-theme=dark] .modal-stat-icon.stock { background: #064e3b; color: #6ee7b7; }
html[data-theme=dark] .modal-stat-icon.sold { background: #312e81; color: #a5b4fc; }
html[data-theme=dark] .modal-stat-icon.send { background: #78350f; color: #fde68a; }
html[data-theme=dark] .modal-stat-icon.warranty { background: #134e4a; color: #5eead4; }

.modal-stat-copy {
  min-width: 0;
}
.modal-stat-copy small {
  display: block;
  color: #64748b;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 2px;
}
html[data-theme=dark] .modal-stat-copy small { color: #94a3b8; }
.modal-stat-copy b {
  color: #0f172a;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
html[data-theme=dark] .modal-stat-copy b { color: #f1f5f9; }

/* Right Content Column */
.modal-body {
  padding: 28px 32px;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  background: #ffffff !important;
  display: flex;
  flex-direction: column;
  gap: 14px;
  opacity: 1 !important;
}
.modal-body > * {
  flex-shrink: 0;
}
html[data-theme=dark] .modal-body {
  background: #151d2c !important;
}
.modal-body::-webkit-scrollbar {
  width: 6px;
}
.modal-body::-webkit-scrollbar-track {
  background: transparent;
}
.modal-body::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}
html[data-theme=dark] .modal-body::-webkit-scrollbar-thumb {
  background: #334155;
}

.modal-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.modal-badge-category {
  background: #eef2ff;
  border: 1px solid #e0e7ff;
  color: #4f46e5;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 11.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
}
html[data-theme=dark] .modal-badge-category {
  background: #232a48;
  border-color: #37416e;
  color: #a5b4fc;
}
.modal-badge-discount {
  background: #fff1f2;
  border: 1px solid #ffe4e6;
  color: #e11d48;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 11.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
}
html[data-theme=dark] .modal-badge-discount {
  background: #3e1b26;
  border-color: #5c2538;
  color: #fda4af;
}

.modal-body h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.32;
  color: #0f172a;
  letter-spacing: -0.015em;
}
html[data-theme=dark] .modal-body h3 { color: #f8fafc; }

.modal-subtitle {
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
  margin: -4px 0 0;
  font-weight: 500;
}
html[data-theme=dark] .modal-subtitle { color: #94a3b8; }

.modal-rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 12.5px;
}
.modal-rating-stars {
  display: flex;
  gap: 2px;
  color: #f59e0b;
}
.modal-rating-stars i {
  font-style: normal;
  font-size: 14px;
}
.modal-rating-stars i.is-full { color: #f59e0b; }
.modal-rating-stars i.is-empty { color: #cbd5e1; }
#modalRatingValue {
  font-weight: 800;
  font-size: 13px;
  color: #0f172a;
}
html[data-theme=dark] #modalRatingValue { color: #f1f5f9; }
#modalRatingCount {
  color: #64748b;
  font-size: 12px;
}

/* Modal Description Box */
.modal-desc {
  flex: 0 0 auto;
  width: 100%;
  min-width: 0;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px 16px;
  color: #334155;
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
  max-height: none;
  height: auto;
  overflow: visible;
  overflow-wrap: anywhere;
  word-break: normal;
  opacity: 1 !important;
}
.modal-desc > :first-child { margin-top: 0; }
.modal-desc > :last-child { margin-bottom: 0; }
.modal-desc p { margin: 0 0 8px; }
.modal-desc ul,
.modal-desc ol { margin: 6px 0 8px; padding-left: 20px; }
html[data-theme=dark] .modal-desc {
  background: #101622 !important;
  border-color: #232f42;
  color: #cbd5e1;
}


/* Purchase Row */
.modal-purchase-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0 0;
  border-top: 1px solid #e2e8f0;
  margin: 0;
}
html[data-theme=dark] .modal-purchase-row {
  border-top-color: #232f42;
}
.modal-price strong {
  font-size: 26px;
  font-weight: 900;
  color: #4f46e5;
  line-height: 1.2;
}
html[data-theme=dark] .modal-price strong { color: #818cf8; }
.modal-price del {
  color: #94a3b8;
  font-size: 13.5px;
  margin-left: 8px;
}
.modal-quantity-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.modal-quantity-wrap small {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}
html[data-theme=dark] .modal-quantity-wrap small { color: #94a3b8; }

.modal-qty-box {
  display: flex;
  align-items: center;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
}
html[data-theme=dark] .modal-qty-box {
  background: #101622;
  border-color: #2a384c;
}
.modal-qty-box button {
  width: 34px;
  height: 34px;
  background: #f8fafc;
  color: #334155;
  font-size: 16px;
  font-weight: 700;
  display: grid;
  place-items: center;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
}
html[data-theme=dark] .modal-qty-box button {
  background: #1a2332;
  color: #e2e8f0;
}
.modal-qty-box button:hover {
  background: #e2e8f0;
}
html[data-theme=dark] .modal-qty-box button:hover { background: #2a384c; }
.modal-qty-box span {
  width: 38px;
  text-align: center;
  font-weight: 800;
  font-size: 14px;
  color: #0f172a;
}
html[data-theme=dark] .modal-qty-box span { color: #f1f5f9; }

/* Action Row */
.modal-action-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  margin: 0;
}
.modal-wishlist-btn {
  padding: 12px 18px;
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
  background: #ffffff !important;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  cursor: pointer;
}
html[data-theme=dark] .modal-wishlist-btn {
  background: #1a2332 !important;
  border-color: #2a384c;
  color: #cbd5e1;
}
.modal-wishlist-btn:hover, .modal-wishlist-btn[aria-pressed=true] {
  border-color: #f43f5e;
  color: #f43f5e;
  background: #fff1f2 !important;
}
html[data-theme=dark] .modal-wishlist-btn:hover,
html[data-theme=dark] .modal-wishlist-btn[aria-pressed=true] {
  background: #3e1b26 !important;
  border-color: #f43f5e;
  color: #fda4af;
}

#modalAddCart {
  padding: 12px 22px;
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  color: #ffffff;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}
#modalAddCart svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
#modalAddCart:hover:not(:disabled) {
  background: linear-gradient(135deg, #4338ca 0%, #3730a3 100%);
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.4);
  transform: translateY(-1px);
}
#modalAddCart:disabled,
#modalAddCart.is-out {
  background: #f1f5f9 !important;
  color: #94a3b8 !important;
  border: 1px solid #e2e8f0;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}
html[data-theme=dark] #modalAddCart:disabled,
html[data-theme=dark] #modalAddCart.is-out {
  background: #1a2332 !important;
  color: #64748b !important;
  border-color: #2a384c;
}

.modal-telegram-buy {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 12px;
  background: #0284c7;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s ease;
  margin: 0;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.2);
}
.modal-telegram-buy[hidden] {
  display: none !important;
}
.modal-telegram-buy.is-disabled {
  background: #f1f5f9 !important;
  color: #94a3b8 !important;
  border: 1px solid #e2e8f0;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
  pointer-events: none;
}
html[data-theme=dark] .modal-telegram-buy.is-disabled {
  background: #1a2332 !important;
  color: #64748b !important;
  border-color: #2a384c;
}
.modal-telegram-buy:hover:not(.is-disabled) {
  background: #0369a1;
  color: #ffffff;
  transform: translateY(-1px);
}
.modal-telegram-buy svg {
  width: 16px;
  height: 16px;
}

/* === CART DRAWER === */
.cart-drawer{position:fixed;inset:0;z-index:120;pointer-events:none}
.cart-drawer.open{pointer-events:auto}
.cart-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.6);backdrop-filter:blur(4px);opacity:0;transition:opacity var(--trans)}
.cart-drawer.open .cart-backdrop{opacity:1}
.cart-drawer aside{
  position:absolute;right:0;top:0;height:100%;width:min(420px,100%);
  background:var(--card);transform:translateX(100%);
  transition:transform .28s cubic-bezier(.22,1,.36,1);
  display:flex;flex-direction:column;box-shadow:var(--shadow-xl);
}
.cart-drawer.open aside{transform:translateX(0)}
.drawer-top{
  display:flex;align-items:center;justify-content:space-between;padding:18px 20px;
  background:linear-gradient(120deg,var(--primary),var(--primary-d));color:#fff;
}
.drawer-top b{font-size:16px;font-weight:800}
.drawer-top button{width:34px;height:34px;border-radius:var(--r-md);background:rgba(255,255,255,.2);color:#fff;display:grid;place-items:center;font-size:20px;transition:background var(--trans)}
.drawer-top button:hover{background:rgba(255,255,255,.3)}
.cart-items{flex:1;overflow-y:auto;padding:16px}
.cart-row{display:flex;gap:12px;border-bottom:1px solid var(--line);padding:12px 0;align-items:center}
.cart-row i{width:54px;height:54px;flex-shrink:0;border-radius:var(--r-md);background:linear-gradient(135deg,var(--teal),var(--primary));color:#fff;display:grid;place-items:center;font-style:normal;font-size:10px;font-weight:800}
.cart-row b{display:block;font-size:13px;font-weight:700;line-height:1.3}
.cart-row p{margin:4px 0 0;color:var(--primary);font-weight:800;font-size:14px}
.qty{display:flex;align-items:center;gap:6px;margin-top:6px}
.qty button{width:26px;height:26px;border:1.5px solid var(--line);border-radius:var(--r-sm);background:var(--card);font-size:16px;font-weight:700;display:grid;place-items:center}
.drawer-foot{padding:18px 20px;border-top:1px solid var(--line);background:var(--soft)}
.drawer-foot p{display:flex;justify-content:space-between;align-items:center;margin:0 0 14px;font-weight:700}
.drawer-foot b{font-size:18px;color:var(--primary)}
.drawer-foot .btn{width:100%;justify-content:center;background:var(--primary);color:#fff;padding:13px}
.drawer-foot .btn:hover{background:var(--primary-d);transform:none}

/* === RECENT SALE TOAST === */
.recent-sale-toast{
  position:fixed;left:24px;bottom:24px;z-index:9000;
  background:rgba(255,255,255,.96);border:1.5px solid var(--line);border-radius:18px;
  box-shadow:0 16px 40px -6px rgba(15,23,42,.2), 0 4px 12px rgba(99,102,241,.08);
  padding:10px 14px;
  display:none;align-items:center;gap:12px;max-width:320px;
  backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);
  animation:fadeSlide .3s cubic-bezier(.16,1,.3,1);
}
html[data-theme=dark] .recent-sale-toast{
  background:rgba(22,27,39,.96);border-color:var(--line);
}
.recent-sale-toast.show{display:flex}
.recent-sale-thumb{width:42px;height:42px;border-radius:var(--r-md);overflow:hidden;background:linear-gradient(135deg,var(--teal),var(--primary));flex-shrink:0;display:grid;place-items:center;color:#fff;font-size:11px}
.recent-sale-thumb img{width:100%;height:100%;object-fit:cover}
.recent-sale-text{flex:1;font-size:12px;line-height:1.4}
.recent-sale-text b{display:block;font-size:12px;color:var(--text);font-weight:700}
.recent-sale-close{margin-left:auto;color:var(--muted);font-size:18px;padding:2px 6px;cursor:pointer;line-height:1;transition:color var(--trans)}
.recent-sale-close:hover{color:var(--accent)}

/* === WISHLIST PAGE === */
.wishlist-page {
  padding: 24px 0 64px;
}

.wishlist-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 20px;
}
.wishlist-breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color var(--trans);
}
.wishlist-breadcrumb a:hover {
  color: var(--primary);
}
.wishlist-breadcrumb .bc-sep {
  opacity: .5;
}
.wishlist-breadcrumb span:last-child {
  color: var(--text);
}

.wishlist-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--r-xl);
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.wishlist-head-info {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 280px;
}

.wishlist-title-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.wishlist-title-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(244,63,94,0.14), rgba(244,63,94,0.04));
  border: 1.5px solid rgba(244,63,94,0.25);
  color: #f43f5e;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(244,63,94,0.12);
}
.wishlist-title-icon svg {
  width: 26px;
  height: 26px;
}
html[data-theme=dark] .wishlist-title-icon {
  background: linear-gradient(135deg, rgba(244,63,94,0.22), rgba(244,63,94,0.06));
  border-color: rgba(244,63,94,0.35);
  box-shadow: 0 4px 16px rgba(244,63,94,0.2);
}

.wishlist-title-badge-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.wishlist-page-head h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.02em;
}

.wishlist-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--r-full);
  background: #fff1f2;
  color: #e11d48;
  border: 1px solid #fecdd3;
  box-shadow: 0 1px 2px rgba(225,29,72,0.06);
}
html[data-theme=dark] .wishlist-badge {
  background: #2d1520;
  color: #fda4af;
  border-color: #4c1d2e;
}

.wishlist-page-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.4;
}

.wishlist-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.wishlist-clear-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: var(--r-lg);
  background: var(--soft);
  border: 1.5px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--trans);
}
.wishlist-clear-btn svg {
  width: 16px;
  height: 16px;
}
.wishlist-clear-btn:hover {
  background: #fff1f2;
  color: #e11d48;
  border-color: #fecdd3;
  transform: translateY(-1px);
}
html[data-theme=dark] .wishlist-clear-btn:hover {
  background: #2d1520;
  color: #fda4af;
  border-color: #4c1d2e;
}

.wishlist-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: linear-gradient(135deg, var(--primary), var(--primary-d));
  border: 1.5px solid transparent;
  border-radius: var(--r-lg);
  color: #ffffff !important;
  font-weight: 800;
  font-size: 13px;
  box-shadow: 0 4px 14px rgba(99,102,241,.25);
  transition: all var(--trans);
  text-decoration: none;
}
.wishlist-back-link svg {
  width: 17px;
  height: 17px;
}
.wishlist-back-link:hover {
  background: linear-gradient(135deg, var(--primary-d), var(--primary-2));
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(99,102,241,.35);
}

.wishlist-product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}
.wishlist-product-grid.is-empty {
  display: none !important;
}
.wishlist-product-grid [data-wishlist-card][hidden] {
  display: none !important;
}

.wishlist-empty {
  display: none !important;
  width: 100%;
}
.wishlist-empty.is-visible {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: modalScaleUp .25s ease both;
}

.wishlist-empty-card {
  text-align: center;
  padding: 56px 32px 48px;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
  max-width: 600px;
  width: 100%;
  margin: 20px auto 40px;
  position: relative;
  overflow: hidden;
}

.wishlist-empty-icon-wrap {
  position: relative;
  width: 84px;
  height: 84px;
  margin: 0 auto 22px;
}
.wishlist-empty-icon {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff1f2, #ffe4e6);
  border: 2px solid #fecdd3;
  color: #e11d48;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(244,63,94,.18);
}
.wishlist-empty-icon svg {
  width: 42px;
  height: 42px;
}
html[data-theme=dark] .wishlist-empty-icon {
  background: linear-gradient(135deg, #2d1520, #1e111a);
  border-color: #4c1d2e;
  color: #f43f5e;
  box-shadow: 0 8px 24px rgba(244,63,94,.28);
}
.wishlist-empty-sparkle {
  position: absolute;
  top: -4px;
  right: -4px;
  font-size: 20px;
  color: #f59e0b;
}

.wishlist-empty h2 {
  margin: 0 0 10px;
  font-size: 23px;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.01em;
}
.wishlist-empty p {
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  max-width: 450px;
}
.wishlist-empty-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
}
.wishlist-empty-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary), var(--primary-d));
  color: #fff;
  padding: 12px 28px;
  border-radius: var(--r-lg);
  box-shadow: 0 6px 20px rgba(99,102,241,.3);
  font-weight: 800;
  font-size: 14px;
  transition: all var(--trans);
  text-decoration: none;
}
.wishlist-empty-actions .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99,102,241,.42);
}

.wishlist-quick-cats {
  border-top: 1px dashed var(--line);
  padding-top: 22px;
  width: 100%;
}
.quick-cats-title {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 12px;
}
.quick-cats-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.quick-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--r-full);
  background: var(--soft);
  border: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: all .18s;
}
.quick-cat-pill:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-1px);
}

/* === STATIC PAGE === */
.page-wrap{padding:32px 0 60px}
.page-hero{background:linear-gradient(120deg,var(--primary),var(--accent));color:#fff;border-radius:var(--r-xl);padding:32px;margin-bottom:24px}
.page-hero h1{margin:0 0 8px;font-size:26px;font-weight:800}
.page-hero p{margin:0;opacity:.85}
.checkout-title-row{display:flex;align-items:center;gap:14px}
.checkout-title-mark{width:44px;height:44px;min-width:44px;border-radius:12px;background:rgba(255,255,255,.18);display:grid;place-items:center;backdrop-filter:blur(8px);flex-shrink:0}
.checkout-title-mark svg{width:24px;height:24px;max-width:24px;max-height:24px;color:#fff;display:block}
.static-page-card{background:var(--card);border:1px solid var(--line);border-radius:var(--r-xl);padding:28px;box-shadow:var(--shadow-sm);line-height:1.7}

/* === FOOTER === */
.znl-footer{background:linear-gradient(160deg,#0d1117 0%,#161b27 55%,#1a1f35 100%);color:#e2e8f0;margin-top:60px}
.znl-footer-inner{display:grid;grid-template-columns:1.8fr 1fr 1fr 1.2fr;gap:40px;padding:56px 0 40px}
.znl-footer-logo{display:block;margin-bottom:14px}
.znl-footer-mark{width:44px;height:44px;display:grid;place-items:center;border-radius:14px;background:linear-gradient(135deg,var(--primary),var(--accent));color:#fff;font-size:18px;font-weight:900}
.znl-footer-brand-desc{color:#8b949e;font-size:13px;line-height:1.7;margin:0 0 20px}
.znl-footer-social{display:flex;gap:10px}
.znl-social-btn{width:38px;height:38px;border-radius:var(--r-md);display:grid;place-items:center;color:#e2e8f0;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.1);transition:all var(--trans)}
.znl-social-btn svg{width:18px;height:18px}
.znl-social-btn:hover{transform:translateY(-2px)}
.znl-social-fb:hover{background:#1877f2;border-color:#1877f2}
.znl-social-tg:hover{background:#0088cc;border-color:#0088cc}
.znl-social-wa:hover{background:#25d366;border-color:#25d366}
.znl-footer-col h3{margin:0 0 18px;font-size:14px;font-weight:800;color:#e2e8f0;text-transform:uppercase;letter-spacing:.06em}
.znl-footer-links{list-style:none;padding:0;margin:0}
.znl-footer-links li{margin-bottom:2px}
.znl-footer-links a{display:flex;align-items:center;gap:8px;color:#8b949e;font-size:13px;padding:6px 0;transition:color var(--trans),gap var(--trans)}
.znl-footer-links a svg{width:14px;height:14px;flex-shrink:0;color:var(--primary)}
.znl-footer-links a:hover{color:#e2e8f0;gap:12px}
.znl-footer-contact{list-style:none;padding:0;margin:0}
.znl-footer-contact li{display:flex;align-items:flex-start;gap:10px;margin-bottom:12px;color:#8b949e;font-size:13px}
.znl-footer-contact svg{width:16px;height:16px;flex-shrink:0;margin-top:2px;color:var(--primary)}
.znl-footer-contact a{color:#8b949e;transition:color var(--trans)}
.znl-footer-contact a:hover{color:#e2e8f0}
.znl-footer-trust-list{list-style:none;padding:0;margin:0}
.znl-footer-trust-list li{display:flex;align-items:flex-start;gap:10px;margin-bottom:14px}
.znl-trust-icon{width:32px;height:32px;flex-shrink:0;border-radius:8px;display:grid;place-items:center}
.znl-trust-icon svg{width:16px;height:16px}
.znl-trust-green{background:rgba(16,185,129,.15);color:var(--emerald)}
.znl-trust-blue{background:rgba(99,102,241,.15);color:var(--primary)}
.znl-trust-gold{background:rgba(245,158,11,.15);color:var(--gold)}
.znl-footer-trust-list b{display:block;font-size:13px;font-weight:700;color:#c9d1d9}
.znl-footer-trust-list small{font-size:11px;color:#8b949e;display:block;margin-top:2px}
.znl-footer-bottom{border-top:1px solid rgba(255,255,255,.08);padding:20px 0;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;color:#8b949e;font-size:12px}

/* === SALES BOX === */
.sales-box{background:var(--card);border:1px solid var(--line);border-radius:var(--r-xl);overflow:hidden;box-shadow:var(--shadow-sm)}
.sales-head{padding:16px 18px;border-bottom:1px solid var(--line)}
.sales-head h3{margin:0 0 4px;font-size:16px;font-weight:800}
.sales-head p{margin:0;color:var(--muted);font-size:12px}
.sales-list{height:360px;overflow:hidden;position:relative}
.sales-list-inner{display:flex;flex-direction:column;gap:0;animation:salesUp 16s linear infinite}
.sales-list:hover .sales-list-inner{animation-play-state:paused}
.sale-item{border-bottom:1px solid var(--line);padding:12px 16px;display:flex;gap:10px;align-items:center}
.sale-item span{width:38px;height:38px;border-radius:10px;background:color-mix(in srgb,var(--primary) 10%,var(--card));color:var(--primary);display:grid;place-items:center;flex-shrink:0}
.sale-item b{display:block;font-size:13px;font-weight:700}
.sale-item p{margin:2px 0 0;color:var(--muted);font-size:11px}
.sale-item i{font-style:normal;color:var(--primary);font-weight:700}
.content-grid{display:block;width:100%;padding:8px 0 32px;max-width:1248px;margin:0 auto}

/* === PRODUCT PRICE MISC === */
.product-price-action-row{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:8px}
.product-meta{display:flex;gap:8px;flex-wrap:wrap;margin-top:4px}
.product-meta p,.product-meta small{margin:0;font-size:11px;color:var(--muted)}

/* === RESPONSIVE BREAKPOINTS === */
@media(max-width:1200px){
  .product-grid,.znl-product-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
  .wishlist-product-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
}

@media(max-width:960px){
  .header-inner{grid-template-columns:190px 1fr auto}
  .hero-main-row{grid-template-columns:1fr;gap:20px}
  .hero-showcase{max-width:100%}
  .hero-benefits{grid-template-columns:repeat(2,1fr)}
  .product-grid,.znl-product-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
  .wishlist-product-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
  .znl-voucher-grid{grid-template-columns:repeat(2,1fr)}
  .znl-footer-inner{grid-template-columns:1fr 1fr;gap:28px}
  .modal-split-layout {
    grid-template-columns: 1fr;
    max-height: 90vh;
    overflow-y: auto;
    display: block;
  }
  .modal-visual-wrap {
    display: flex;
    flex-direction: column;
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
    padding: 20px 20px 16px;
    gap: 14px;
    overflow-y: visible;
  }
  html[data-theme=dark] .modal-visual-wrap {
    border-bottom-color: #1e293b;
  }
  .modal-visual {
    max-height: 220px;
    aspect-ratio: 16/9;
  }
  .modal-body {
    padding: 20px 20px 28px;
    overflow-y: visible;
  }
}

@media(max-width:680px){
  body{font-size:13px;overflow-x:hidden}
  .ds-shell{padding:0 14px}
  .header-inner{display:flex;align-items:center;justify-content:space-between;gap:8px;height:58px;padding:0}
  .brand-text small{display:none}
  .brand-text b{max-width:130px;font-size:14px}
  .searchbar{display:none}
  .head-actions{gap:4px}
  .head-action-btn[data-open-cats],.head-action-btn.header-wishlist,.head-action-btn[href*=track-order]{display:none}
  .head-action-btn small{display:none}
  .head-action-btn{width:38px;height:38px;padding:0;justify-content:center}
  .head-action-btn i{top:-4px;right:-4px}
  .mobile-menu-btn{display:flex}
  .main-wrap{padding:12px 0 32px}

  /* Mobile Hero */
  .hero-card{padding:20px 16px 18px;border-radius:18px;margin-bottom:20px}
  .hero-main-row{grid-template-columns:1fr;gap:18px;margin-bottom:16px}
  .hero-copy h1{font-size:clamp(19px,5.5vw,25px);margin-bottom:8px}
  .hero-copy p{font-size:12.5px;line-height:1.5;margin-bottom:16px}
  .hero-buttons{display:grid;grid-template-columns:1fr 1fr;gap:8px;width:100%}
  .btn{padding:10px 12px;font-size:12.5px;width:100%;justify-content:center}

  /* Mobile Showcase */
  .hero-showcase-card{padding:14px;border-radius:14px}
  .hero-showcase-header{margin-bottom:10px;padding-bottom:8px}
  .hero-showcase-items{gap:7px}
  .hero-showcase-row{padding:7px 10px;gap:9px;border-radius:10px}
  .showcase-icon{width:28px;height:28px;border-radius:8px}
  .showcase-icon svg{width:14px;height:14px}
  .showcase-text b{font-size:11.5px}
  .showcase-text p{font-size:10px}
  .hero-showcase-footer{margin-top:9px;padding-top:8px;font-size:10.5px}

  /* Mobile Benefits */
  .hero-benefits{grid-template-columns:1fr 1fr;gap:8px;padding-top:14px}
  .hero-benefit-item{padding:6px 9px;gap:8px;border-radius:10px}
  .hero-benefit-icon{width:26px;height:26px;border-radius:7px}
  .hero-benefit-icon svg{width:14px;height:14px}
  .hero-benefit-item b{font-size:11px}
  .hero-benefit-item small{font-size:9.5px}

  /* Mobile Category Pills */
  .znl-category-pills,.category-row{gap:6px;padding:2px 0 8px;margin-bottom:16px}
  .cat-pill{padding:7px 13px;font-size:12px;border-radius:999px}
  .cat-pill span{font-size:12px}

  /* Mobile Product Toolbar */
  .znl-list-head{margin-bottom:14px}
  .znl-list-head h2{font-size:17px}
  .znl-list-head p{font-size:12px}
  .sort-btn{height:34px;padding:0 10px;font-size:12px;border-radius:10px}
  .view-icons button{width:34px;height:34px;border-radius:8px}
  .view-icons button svg{width:14px;height:14px}

  /* Mobile Product Cards (2 Columns) */
  .product-grid,.znl-product-grid,.wishlist-product-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;
  }
  .product-card,.znl-product-card{border-radius:7px}
  .thumb,.znl-card-thumb{aspect-ratio:16/9}
  .product-wishlist-btn{width:28px;height:28px;right:6px;top:6px}
  .product-wishlist-btn span{font-size:13px}
  .thumb em, .card-discount-tag{padding:3px 7px;font-size:10px;left:8px;top:8px;border-radius:6px;right:auto}
  .card-delivery-badge.is-manual{bottom:8px;left:8px;font-size:9px;padding:2px 6px}
  .product-main,.znl-card-body{padding:9px 10px 11px}
  .grid-category-label,.mini-cat{font-size:9.5px;padding:2px 6px;margin-bottom:4px}
  .card-cat-label{font-size:9px;padding:2px 6px;margin-bottom:5px}
  .product-title{font-size:12.5px;line-height:1.3;min-height:33px;margin-bottom:3px}
  .product-rating{margin:2px 0 6px;font-size:10.5px}
  .rating-star{width:11px;height:11px}
  .product-stock-inline{font-size:9.5px;padding:1px 6px}
  .product-price-action-row{padding-top:8px;gap:4px}
  .product-price-row strong{font-size:13.5px}
  .product-price-row del{font-size:10px}
  .grid-cart-btn{padding:5px 10px;font-size:11px;border-radius:8px}

  /* Mobile Modal */
  .product-modal{padding:12px 10px;align-items:center}
  .product-modal-card{border-radius:18px;max-height:92vh;width:100%}
  .modal-visual-wrap{padding:16px 16px 14px;gap:12px}
  .modal-visual{max-height:170px}
  .modal-stats{gap:6px}
  .modal-stat-item{padding:8px 10px}
  .modal-body{padding:16px 16px 24px;gap:12px}
  .modal-body h3{font-size:17px}
  .modal-purchase-row{flex-direction:column;align-items:stretch;gap:10px}
  .modal-action-row{grid-template-columns:1fr;gap:8px}
  #modalAddCart{width:100%;justify-content:center;height:44px}
  .modal-wishlist-btn{justify-content:center}
  .modal-close-floating{top:12px;right:12px;width:32px;height:32px}

  /* Mobile Drawer */
  .cart-drawer{align-items:flex-end}
  .cart-drawer aside{
    width:100%;height:84vh;right:0;bottom:0;top:auto;
    border-radius:var(--r-xl) var(--r-xl) 0 0;
    transform:translateY(100%);
  }
  .cart-drawer.open aside{transform:translateY(0)}

  /* Mobile Voucher */
  .znl-voucher-grid{grid-template-columns:1fr;gap:10px}

  /* Mobile Toast */
  .recent-sale-toast{left:12px;right:12px;bottom:12px;max-width:none;width:auto;border-radius:14px;padding:8px 12px}

  /* Mobile Footer */
  .znl-footer-inner{grid-template-columns:1fr;gap:24px;padding:28px 0 16px}
  .znl-footer-bottom{flex-direction:column;text-align:center;gap:8px}
}

@media(max-width:360px){
  .product-grid,.znl-product-grid,.wishlist-product-grid{gap:8px}
  .hero-buttons{grid-template-columns:1fr}
}


/* =================================================================
   NEW ULTRA-MODERN STOREFRONT STYLES (v37)
   ================================================================= */

/* --- TOP ANNOUNCEMENT TICKER --- */
/* --- TOP ANNOUNCEMENT TICKER (SOFT & ELEGANT) --- */
.ds-top-bar {
  background: linear-gradient(90deg, #18192d 0%, #242252 50%, #1c1a3b 100%);
  color: #c7d2fe;
  font-size: 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  position: relative;
  z-index: 101;
}
.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 38px;
  padding: 4px 20px;
}
.top-bar-ticker {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.top-bar-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
  flex-shrink: 0;
  animation: pulseDot 2s infinite ease-in-out;
}
@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}
.top-bar-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
  font-weight: 500;
}
.top-bar-text strong {
  color: #ffffff;
  font-weight: 800;
}
.top-bar-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  font-size: 11.5px;
}
.top-bar-badge {
  background: rgba(255,255,255,.08);
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  font-weight: 600;
  color: #c7d2fe;
}
.top-bar-track-link {
  color: #e0e7ff;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
}
.top-bar-track-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* --- HEADER ENHANCEMENTS --- */
.brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #059669;
  background: rgba(16,185,129,.08);
  border: 1px solid rgba(16,185,129,.2);
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}
html[data-theme=dark] .brand-status-chip {
  color: #34d399;
  background: rgba(16,185,129,.14);
  border-color: rgba(16,185,129,.3);
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px rgba(16,185,129,.7);
}
.search-kbd-hint {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 6px;
  pointer-events: none;
  flex-shrink: 0;
}
.popover-count {
  margin-left: auto;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--muted);
  background: var(--soft);
  border-radius: 999px;
  padding: 2px 8px;
}
.cat-menu-item.active .popover-count {
  background: rgba(99,102,241,.18);
  color: var(--primary);
}

/* --- BENTO HERO SECTION (SOFT & NEAT) --- */
.znl-bento-hero {
  margin-bottom: 36px;
}
.bento-hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 20px;
  align-items: stretch;
}
.bento-card {
  border-radius: 22px;
  position: relative;
  overflow: hidden;
}
.bento-hero-main {
  background: linear-gradient(135deg, #18192e 0%, #242254 40%, #353075 75%, #433ca8 100%);
  color: #fff;
  padding: 40px 44px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 24px 55px -15px rgba(24,25,45,.35), inset 0 1px 0 rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.08);
}
.hero-display-title {
  font-size: clamp(24px, 3.2vw, 38px);
  font-weight: 800;
  line-height: 1.24;
  letter-spacing: -0.025em;
  margin: 0 0 14px;
  color: #ffffff;
}
.gradient-text {
  background: linear-gradient(135deg, #ffffff 30%, #c7d2fe 75%, #93c5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-display-desc {
  font-size: 14.5px;
  line-height: 1.65;
  color: rgba(255,255,255,.84);
  max-width: 520px;
  margin: 0 0 22px;
}
.tag-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  display: inline-block;
  animation: pulseDot 2s infinite ease-in-out;
}
.hero-quick-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.quick-chip-label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,.7);
}
.quick-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.quick-chip:hover {
  background: rgba(255,255,255,.2);
  border-color: rgba(255,255,255,.35);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0,0,0,.16);
}
.hero-proof-strip {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.12);
  flex-wrap: wrap;
}
.proof-item {
  display: flex;
  flex-direction: column;
}
.proof-val {
  font-size: 16.5px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.02em;
}
.proof-lbl {
  font-size: 11px;
  color: rgba(255,255,255,.72);
  margin-top: 2px;
}
.proof-sep {
  width: 1px;
  height: 26px;
  background: rgba(255,255,255,.14);
}

/* --- BENTO HERO SIDE COLUMN --- */
.bento-hero-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hero-spotlight-card {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 4px 20px rgba(15,23,42,.05);
  padding: 20px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hero-spotlight-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(15,23,42,.08);
}
.spotlight-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.spotlight-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 800;
  color: var(--accent);
  background: rgba(244,63,94,.08);
  border: 1px solid rgba(244,63,94,.2);
  border-radius: 999px;
  padding: 4px 10px;
}
.spotlight-stock-tag {
  font-size: 11px;
  font-weight: 700;
  color: #059669;
  background: rgba(16,185,129,.08);
  border: 1px solid rgba(16,185,129,.2);
  border-radius: 999px;
  padding: 3px 9px;
}
.spotlight-stock-tag.is-out {
  color: var(--muted);
  background: var(--soft);
  border-color: var(--line);
}
.spotlight-body {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  align-items: center;
}
.spotlight-thumb-wrap {
  width: 88px;
  height: 88px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  background: var(--soft);
  border: 1px solid var(--line);
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(15,23,42,.04);
}
.spotlight-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.spotlight-disc {
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  border-radius: 6px;
  padding: 2px 5px;
}
.spotlight-info {
  min-width: 0;
}
.spotlight-cat {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: .04em;
  display: block;
  margin-bottom: 2px;
}
.spotlight-title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.spotlight-title button {
  color: var(--text);
  text-align: left;
  transition: color var(--trans);
}
.spotlight-title button:hover {
  color: var(--primary);
}
.spotlight-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  margin-bottom: 6px;
}
.spotlight-rating .stars {
  color: #f59e0b;
  letter-spacing: 1px;
}
.spotlight-pricing {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.spotlight-price {
  font-size: 18px;
  font-weight: 900;
  color: var(--primary);
}
.spotlight-pricing del {
  font-size: 12px;
  color: var(--muted);
}
.spotlight-buy-btn {
  width: 100%;
  padding: 11px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-d) 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--trans);
  box-shadow: 0 4px 14px rgba(99,102,241,.25);
  cursor: pointer;
}
.spotlight-buy-btn:hover:not(:disabled) {
  box-shadow: 0 6px 20px rgba(99,102,241,.38);
  transform: translateY(-1px);
}
.spotlight-buy-btn:disabled {
  background: var(--soft);
  color: var(--muted);
  box-shadow: none;
  cursor: not-allowed;
}

/* Live Ticker Card */
.hero-live-ticker {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 20px;
  box-shadow: 0 2px 10px rgba(15,23,42,.03);
}
.live-ticker-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 800;
  color: var(--text);
}
.live-dot-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px rgba(16,185,129,.7);
  display: inline-block;
  animation: pulseDot 2s infinite ease-in-out;
}
.ticker-pill {
  margin-left: auto;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--primary);
  background: rgba(99,102,241,.08);
  border-radius: 999px;
  padding: 2px 8px;
}
.live-ticker-content {
  display: flex;
  align-items: center;
  gap: 12px;
}
.live-ticker-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(99,102,241,.08);
  color: var(--primary);
  border: 1px solid rgba(99,102,241,.14);
  display: grid;
  place-items: center;
  font-size: 16px;
  flex-shrink: 0;
}
.live-ticker-text p {
  margin: 0 0 2px;
  font-size: 13px;
  line-height: 1.35;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 250px;
}
.live-ticker-text small {
  font-size: 11px;
  color: var(--muted);
}

/* Micro Trust Bento */
.hero-trust-micro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 18px;
  box-shadow: 0 2px 10px rgba(15,23,42,.03);
}
.trust-micro-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.trust-icon {
  font-size: 20px;
  flex-shrink: 0;
}
.trust-micro-item b {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}
.trust-micro-item small {
  display: block;
  font-size: 10.5px;
  color: var(--muted);
  line-height: 1.2;
  margin-top: 2px;
}

/* --- CATALOG HEADER & CATEGORY CHIPS --- */
.znl-catalog-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
  padding-bottom: 0;
  border-bottom: 0;
}
.catalog-title-group .catalog-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 9px;
  padding: 0;
  background: transparent;
  border-radius: 0;
  color: var(--primary);
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .18em;
}
.catalog-title-group .catalog-badge::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: color-mix(in srgb,var(--primary) 72%,#93c5fd);
}
.catalog-title-group h2 {
  margin: 0 0 6px;
  font-size: clamp(23px, 2.6vw, 30px);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text);
}
.catalog-title-group p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}
.pill-count {
  font-size: 11px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
}
.cat-pill.active .pill-count {
  background: rgba(255,255,255,.24);
  color: #fff;
}

/* --- PRODUCT CARD REFINEMENTS --- */
.card-discount-tag,
.thumb em.card-discount-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  right: auto;
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  font-style: normal;
  border-radius: 8px;
  padding: 4px 8px;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(225, 29, 72, 0.35);
  letter-spacing: -0.01em;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.card-delivery-badge.is-manual {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(245, 158, 11, 0.95);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  border-radius: 6px;
  padding: 3px 8px;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.card-cat-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 7px;
  padding: 3px 8px;
  border-radius: 999px;
  background: color-mix(in srgb,var(--primary) 8%,var(--card));
  color: var(--primary);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: .04em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* --- 3-STEP WORKFLOW GUIDE --- */
.znl-workflow-section {
  margin: 48px 0 36px;
  padding: 36px 0 20px;
}
.section-center-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 32px;
}
.section-micro-badge {
  font-size: 11px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: .1em;
  text-transform: uppercase;
  background: rgba(99,102,241,.08);
  padding: 4px 12px;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 8px;
}
.section-center-head h2 {
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 900;
  margin: 0 0 8px;
  color: var(--text);
  letter-spacing: -0.02em;
}
.section-center-head p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.workflow-card {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--r-xl);
  padding: 30px 24px;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform var(--trans), box-shadow var(--trans), border-color var(--trans);
}
.workflow-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(99,102,241,.32);
}
.workflow-step-num {
  font-size: 38px;
  font-weight: 900;
  color: rgba(99,102,241,.18);
  line-height: 1;
  margin-bottom: 12px;
  font-family: inherit;
}
.workflow-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(99,102,241,.12), rgba(20,184,166,.12));
  display: grid;
  place-items: center;
  font-size: 24px;
  margin-bottom: 16px;
}
.workflow-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
}
.workflow-card p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
}

/* --- VALUE PROPOSITION BENTO --- */
.znl-features-bento-section {
  margin: 20px 0 48px;
}
.features-bento-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.feature-bento-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 28px;
  border-radius: var(--r-xl);
  background: var(--card);
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform var(--trans), box-shadow var(--trans);
}
.feature-bento-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.bento-feat-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 26px;
  flex-shrink: 0;
}
.bento-feat-body h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
}
.bento-feat-body p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
}
.bento-glow-indigo .bento-feat-icon { background: linear-gradient(135deg, #e0e7ff, #c7d2fe); }
.bento-glow-teal .bento-feat-icon { background: linear-gradient(135deg, #ccfbf1, #99f6e4); }
.bento-glow-rose .bento-feat-icon { background: linear-gradient(135deg, #ffe4e6, #fecdd3); }
.bento-glow-gold .bento-feat-icon { background: linear-gradient(135deg, #fef3c7, #fde68a); }

/* --- FAQ ACCORDION --- */
.znl-faq-section {
  margin: 20px 0 50px;
}
.faq-accordion-wrap {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-card {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--trans), box-shadow var(--trans);
}
.faq-card[open] {
  border-color: rgba(99,102,241,.4);
  box-shadow: var(--shadow-sm);
}
.faq-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  cursor: pointer;
  user-select: none;
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  list-style: none;
}
.faq-summary::-webkit-details-marker {
  display: none;
}
.faq-q-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(99,102,241,.1);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 900;
  flex-shrink: 0;
}
.faq-q-text {
  flex: 1;
}
.faq-chevron {
  font-size: 16px;
  color: var(--muted);
  transition: transform 0.2s ease;
}
.faq-card[open] .faq-chevron {
  transform: rotate(180deg);
  color: var(--primary);
}
.faq-answer {
  padding: 0 22px 20px 64px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}
.faq-answer p {
  margin: 0;
}

/* --- SUPPORT & CTA STRIP --- */
.znl-support-cta {
  margin: 20px 0 60px;
}
.support-cta-card {
  background: linear-gradient(135deg, #18182e 0%, #2e2870 50%, #4338ca 100%);
  border-radius: var(--r-xl);
  padding: 38px 44px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  box-shadow: 0 20px 50px rgba(24,24,46,.3);
}
.support-badge {
  font-size: 11px;
  font-weight: 800;
  color: #a5b4fc;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: inline-block;
}
.support-cta-copy h3 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.02em;
}
.support-cta-copy p {
  margin: 0;
  font-size: 14px;
  color: rgba(255,255,255,.8);
  max-width: 520px;
  line-height: 1.5;
}
.support-cta-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.btn-cta {
  padding: 12px 22px;
  border-radius: var(--r-lg);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: all var(--trans);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-cta.primary {
  background: #10b981;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(16,185,129,.35);
}
.btn-cta.primary:hover {
  background: #059669;
  transform: translateY(-2px);
}
.btn-cta.secondary {
  background: rgba(255,255,255,.15);
  color: #ffffff;
  border: 1.5px solid rgba(255,255,255,.25);
}
.btn-cta.secondary:hover {
  background: rgba(255,255,255,.25);
  transform: translateY(-2px);
}

/* --- DARK MODE OVERRIDES FOR NEW COMPONENTS --- */
html[data-theme=dark] .hero-spotlight-card,
html[data-theme=dark] .hero-live-ticker,
html[data-theme=dark] .hero-trust-micro,
html[data-theme=dark] .workflow-card,
html[data-theme=dark] .feature-bento-card,
html[data-theme=dark] .faq-card {
  background: var(--card);
  border-color: var(--line);
}
html[data-theme=dark] .bento-glow-indigo .bento-feat-icon { background: linear-gradient(135deg, #312e81, #1e1b4b); }
html[data-theme=dark] .bento-glow-teal .bento-feat-icon { background: linear-gradient(135deg, #134e4a, #042f2e); }
html[data-theme=dark] .bento-glow-rose .bento-feat-icon { background: linear-gradient(135deg, #881337, #4c0519); }
html[data-theme=dark] .bento-glow-gold .bento-feat-icon { background: linear-gradient(135deg, #78350f, #451a03); }
html[data-theme=dark] .workflow-step-num { color: rgba(165,180,252,.2); }
html[data-theme=dark] .search-kbd-hint { background: var(--soft); border-color: var(--line); color: var(--muted); }

/* --- RESPONSIVE OVERRIDES --- */
@media(max-width: 960px) {
  .bento-hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .features-bento-grid { grid-template-columns: 1fr; }
  .support-cta-card { flex-direction: column; text-align: center; padding: 28px 22px; }
  .support-cta-actions { justify-content: center; width: 100%; }
}

@media(max-width: 680px) {
  .ds-top-bar { display: none; }
  .brand-status-chip { display: none; }
  .search-kbd-hint { display: none; }
  .bento-hero-main { padding: 22px 18px; }
  .hero-display-title { font-size: 22px; }
  .hero-display-desc { font-size: 13px; margin-bottom: 16px; }
  .hero-quick-chips { gap: 6px; margin-bottom: 18px; }
  .quick-chip { padding: 4px 10px; font-size: 11px; }
  .hero-proof-strip { gap: 10px; }
  .proof-sep { display: none; }
  .proof-val { font-size: 14px; }
  .hero-spotlight-card { padding: 16px; }
  .spotlight-body { grid-template-columns: 74px 1fr; gap: 10px; }
  .spotlight-thumb-wrap { width: 74px; height: 74px; }
  .spotlight-title { font-size: 13.5px; }
  .spotlight-price { font-size: 15.5px; }
  .hero-trust-micro { grid-template-columns: 1fr; }
  .workflow-grid { grid-template-columns: 1fr; gap: 14px; }
  .workflow-card { padding: 22px 18px; }
  .feature-bento-card { padding: 20px 18px; gap: 14px; }
  .bento-feat-icon { width: 44px; height: 44px; font-size: 22px; }
  .faq-summary { padding: 14px 16px; font-size: 14px; }
  .faq-answer { padding: 0 16px 16px 54px; font-size: 13px; }
  .znl-catalog-header { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* =================================================================
   HOMEPAGE SPACING & MOBILE POLISH
   Scoped to index.php via body.home-page so inner pages stay unchanged.
   ================================================================= */
.home-page{
  --home-gutter:clamp(20px,3vw,36px);
}
.home-page .ds-shell{
  width:100%;
  max-width:1320px;
  margin-inline:auto;
  padding-inline:var(--home-gutter);
}
.home-page .main-wrap{
  width:100%;
  min-width:0;
}
.home-page .main-wrap > section,
.home-page .content-grid,
.home-page .products-side{
  min-width:0;
  max-width:100%;
}
.home-page .content-grid{
  width:100%;
}

/* Keep horizontally scrollable controls inside the safe page gutter. */
.home-page .znl-category-pills,
.home-page .category-row{
  max-width:100%;
  overscroll-behavior-inline:contain;
}
.home-page .znl-catalog-header,
.home-page .znl-product-toolbar,
.home-page .product-grid,
.home-page .znl-product-grid{
  min-width:0;
}

@media(max-width:960px){
  .home-page{--home-gutter:22px}
  .home-page .header-inner{min-width:0}
  .home-page .brand-group,
  .home-page .searchbar,
  .home-page .head-actions{min-width:0}
}

@media(max-width:680px){
  .home-page{--home-gutter:16px}
  .home-page .ds-shell{padding-inline:var(--home-gutter)}
  .home-page .main-wrap{padding-top:14px;padding-bottom:30px}

  .home-page .header-inner{
    padding-inline:0;
    gap:7px;
  }
  .home-page .brand{min-width:0;max-width:calc(100% - 92px)}
  .home-page .brand-text{min-width:0}
  .home-page .brand-text b{max-width:118px}

  .home-page .bento-hero-grid,
  .home-page .bento-hero-main,
  .home-page .bento-hero-side,
  .home-page .hero-spotlight-card,
  .home-page .hero-live-ticker,
  .home-page .hero-trust-micro{
    min-width:0;
    max-width:100%;
  }
  .home-page .bento-hero-main{border-radius:18px;padding:20px 16px}
  .home-page .hero-buttons{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .home-page .hero-buttons .btn{min-width:0;padding-inline:9px}
  .home-page .hero-proof-strip{flex-wrap:wrap;row-gap:10px}
  .home-page .proof-item{min-width:calc(50% - 6px)}

  .home-page .znl-voucher-card,
  .home-page .znl-flash-banner,
  .home-page .support-cta-card,
  .home-page .workflow-card,
  .home-page .feature-bento-card,
  .home-page .faq-card{max-width:100%}

  .home-page .znl-catalog-header{
    width:100%;
    gap:10px;
    padding-bottom:14px;
  }
  .home-page .catalog-title-group{width:100%;min-width:0}
  .home-page .catalog-title-group h2{font-size:19px;line-height:1.3}
  .home-page .catalog-title-group p{font-size:12.5px;line-height:1.5}
  .home-page .znl-toolbar-actions{
    width:100%;
    display:flex;
    justify-content:space-between;
    gap:8px;
  }
  .home-page .sort-wrap{min-width:0;flex:1}
  .home-page .sort-btn{width:100%;justify-content:space-between}
  .home-page .view-icons{flex-shrink:0}

  .home-page .znl-category-pills,
  .home-page .category-row{
    margin-inline:0;
    padding-inline:0;
    scroll-padding-inline:0;
  }
  .home-page .cat-pill{flex:0 0 auto;max-width:80vw}
  .home-page .cat-pill .pill-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

  .home-page .product-grid,
  .home-page .znl-product-grid,
  .home-page .wishlist-product-grid{
    width:100%;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
  }
  .home-page .product-card,
  .home-page .znl-product-card{min-width:0;overflow:hidden}
  .home-page .product-main,
  .home-page .znl-card-body{min-width:0;padding:9px}
  .home-page .product-title,
  .home-page .product-title button{max-width:100%;overflow-wrap:anywhere}
  .home-page .product-price-action-row{align-items:flex-end}
  .home-page .product-price-row{min-width:0}
  .home-page .grid-cart-btn{flex-shrink:0;padding-inline:8px}

  .home-page .znl-footer{margin-top:40px}
  .home-page .znl-footer-inner,
  .home-page .znl-footer-bottom{padding-inline:0}
}

@media(max-width:390px){
  .home-page{--home-gutter:14px}
  .home-page .product-grid,
  .home-page .znl-product-grid,
  .home-page .wishlist-product-grid{gap:8px}
  .home-page .product-main,
  .home-page .znl-card-body{padding:8px}
  .home-page .grid-cart-btn{padding:5px 7px;font-size:10.5px}
}

@media(max-width:340px){
  .home-page .product-grid,
  .home-page .znl-product-grid,
  .home-page .wishlist-product-grid{grid-template-columns:1fr}
  .home-page .hero-buttons{grid-template-columns:1fr}
  .home-page .proof-item{min-width:100%}
}

/* =================================================================
   HOMEPAGE INFO SECTIONS — refined layout
   ================================================================= */
.home-page .znl-workflow-section,
.home-page .znl-features-bento-section {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--shadow-sm);
}
.home-page .znl-workflow-section {
  margin: 44px 0 22px;
  padding: 34px;
}
.home-page .znl-features-bento-section {
  margin: 22px 0 46px;
  padding: 34px;
}
.home-page .znl-workflow-section .section-center-head,
.home-page .znl-features-bento-section .section-center-head {
  max-width: 680px;
  margin-bottom: 26px;
}
.home-page .section-center-head h2 {
  line-height: 1.18;
}
.home-page .workflow-grid {
  gap: 14px;
}
.home-page .workflow-card {
  min-height: 100%;
  padding: 20px;
  border-width: 1px;
  border-radius: 18px;
  background: var(--soft);
  box-shadow: none;
}
.home-page .workflow-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.home-page .workflow-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.home-page .workflow-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 30px;
  margin: 0;
  padding: 0 11px;
  border: 1px solid rgba(99,102,241,.18);
  border-radius: 999px;
  background: rgba(99,102,241,.08);
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
}
.home-page .workflow-icon-wrap {
  width: 44px;
  height: 44px;
  margin: 0;
  border-radius: 13px;
  font-size: 21px;
}
.home-page .workflow-step-label,
.home-page .bento-feat-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--primary);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.home-page .workflow-card h3 {
  margin-bottom: 7px;
  font-size: 16px;
}
.home-page .workflow-card p {
  font-size: 13px;
  line-height: 1.6;
}
.home-page .features-bento-grid {
  gap: 14px;
}
.home-page .feature-bento-card {
  min-height: 138px;
  gap: 16px;
  padding: 20px;
  border-width: 1px;
  border-radius: 18px;
  background: var(--soft);
  box-shadow: none;
}
.home-page .feature-bento-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.home-page .bento-feat-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  font-size: 22px;
}
.home-page .bento-feat-body {
  min-width: 0;
}
.home-page .bento-feat-body h3 {
  margin-bottom: 6px;
  font-size: 16px;
}
.home-page .bento-feat-body p {
  font-size: 13px;
  line-height: 1.58;
}
@media (max-width: 680px) {
  .home-page .znl-workflow-section,
  .home-page .znl-features-bento-section {
    border-radius: 18px;
    padding: 24px 16px;
  }
  .home-page .znl-workflow-section {
    margin-top: 32px;
  }
  .home-page .znl-workflow-section .section-center-head,
  .home-page .znl-features-bento-section .section-center-head {
    margin-bottom: 20px;
  }
  .home-page .section-center-head h2 {
    font-size: 21px;
  }
  .home-page .section-center-head p {
    font-size: 13px;
  }
  .home-page .workflow-grid,
  .home-page .features-bento-grid {
    gap: 10px;
  }
  .home-page .workflow-card,
  .home-page .feature-bento-card {
    padding: 16px;
    border-radius: 15px;
  }
  .home-page .workflow-card-top {
    margin-bottom: 14px;
  }
  .home-page .feature-bento-card {
    min-height: 0;
    gap: 13px;
  }
  .home-page .bento-feat-icon {
    width: 42px;
    height: 42px;
    font-size: 20px;
  }
}
@media (max-width: 380px) {
  .home-page .feature-bento-card {
    align-items: flex-start;
  }
  .home-page .workflow-card p,
  .home-page .bento-feat-body p {
    font-size: 12.5px;
  }
}


/* =================================================================
   WISHLIST PAGE SAFE GUTTER
   Gives wishlist content consistent breathing room on desktop/mobile
   without changing the global header alignment.
   ================================================================= */
.wishlist-body{
  --wishlist-gutter:clamp(24px,3vw,40px);
}
.wishlist-body .wishlist-page.ds-shell{
  width:100%;
  max-width:1320px;
  margin-inline:auto;
  padding:24px var(--wishlist-gutter) 64px;
  min-width:0;
}
.wishlist-body .wishlist-page-head,
.wishlist-body .wishlist-product-grid,
.wishlist-body .wishlist-empty,
.wishlist-body .wishlist-breadcrumb{
  min-width:0;
  max-width:100%;
}

@media(max-width:960px){
  .wishlist-body{--wishlist-gutter:22px}
}

@media(max-width:680px){
  .wishlist-body{--wishlist-gutter:16px}
  .wishlist-body .wishlist-page.ds-shell{
    padding:18px var(--wishlist-gutter) 42px;
  }
  .wishlist-body .wishlist-page-head{
    padding-left:18px;
    padding-right:18px;
  }
}

@media(max-width:360px){
  .wishlist-body{--wishlist-gutter:14px}
}

/* =================================================================
   MOBILE HEADER SAFE GUTTER
   Keep the brand/logo and header controls away from the screen edges.
   ================================================================= */
@media(max-width:680px){
  .ds-header .header-inner,
  .home-page .ds-header .header-inner{
    padding-left:max(16px, env(safe-area-inset-left));
    padding-right:max(16px, env(safe-area-inset-right));
  }
}

@media(max-width:360px){
  .ds-header .header-inner,
  .home-page .ds-header .header-inner{
    padding-left:max(14px, env(safe-area-inset-left));
    padding-right:max(14px, env(safe-area-inset-right));
  }
}


/* =================================================================
   MOBILE LIST VIEW — fit viewport without horizontal overflow
   ================================================================= */
@media (max-width: 640px) {
  .home-page .products-side.is-list-view,
  .home-page .products-side[data-view="list"] {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  .home-page .products-side.is-list-view .product-table-wrap,
  .home-page .products-side[data-view="list"] .product-table-wrap {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden !important;
    overflow-y: visible;
    border-radius: 0;
    box-shadow: none;
  }

  .home-page .products-side.is-list-view .product-table,
  .home-page .products-side[data-view="list"] .product-table {
    display: block !important;
    width: 100% !important;
    max-width: 100%;
    min-width: 0 !important;
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow: visible;
  }

  .home-page .product-table thead {
    display: none;
  }

  .home-page .product-table tbody {
    display: grid;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    gap: 10px;
  }

  .home-page .product-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
    width: 100%;
    max-width: 100%;
    min-width: 0;
    gap: 10px 8px;
    padding: 10px;
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--card);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
  }

  .home-page .product-table tbody tr:hover td {
    background: transparent;
  }

  .home-page .product-table td {
    display: block;
    width: auto;
    max-width: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    overflow-wrap: anywhere;
  }

  .home-page .product-table td:first-child {
    grid-column: 1 / -1;
    padding-bottom: 9px;
    border-bottom: 1px solid var(--line);
  }

  .home-page .table-product {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .home-page .table-product > div:last-child {
    min-width: 0;
  }

  .home-page .thumb.mini {
    width: 92px;
    height: auto;
    aspect-ratio: 16 / 10;
    min-width: 0;
    border-radius: 7px;
  }

  .home-page .thumb.mini img,
  .home-page .thumb.mini .ds-product-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: none !important;
  }

  .home-page .table-product .product-title {
    display: -webkit-box;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    margin: 0 0 4px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 12.5px;
    line-height: 1.35;
    text-align: left;
    overflow-wrap: anywhere;
  }

  .home-page .table-product p {
    display: -webkit-box;
    width: 100%;
    max-width: 100%;
    margin: 0 0 5px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 10.5px;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .home-page .table-stock-out {
    max-width: 100%;
    padding: 2px 6px;
    font-size: 9px;
    white-space: normal;
  }

  .home-page .product-table td[data-label]::before {
    display: block;
    margin-bottom: 3px;
    color: var(--muted);
    content: attr(data-label);
    font-size: 9px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: .045em;
    text-transform: uppercase;
  }

  .home-page .product-table td[data-label="Kategori"] {
    grid-column: 1 / -1;
  }

  .home-page .product-table td[data-label="Kategori"]::before {
    display: none;
  }

  .home-page .product-table td[data-label="Kategori"] .mini-cat {
    display: inline-flex;
    max-width: 100%;
    margin: 0;
    padding: 3px 7px;
    font-size: 9px;
    white-space: normal;
  }

  .home-page .product-table td[data-label="Harga"],
  .home-page .product-table td[data-label="Stok"],
  .home-page .product-table td[data-label="Terjual"] {
    min-width: 0;
  }

  .home-page .table-price {
    display: block;
    font-size: 13px;
    line-height: 1.25;
    white-space: normal;
  }

  .home-page .product-table del {
    display: block;
    margin: 2px 0 0;
    font-size: 9px;
    line-height: 1.2;
  }

  .home-page .sold-text {
    display: inline-flex;
    max-width: 100%;
    padding: 3px 6px;
    font-size: 9.5px;
  }

  .home-page .product-table .table-action-cell {
    grid-column: 1 / -1;
    width: 100%;
    padding-top: 1px;
  }

  .home-page .product-table .table-add {
    width: 100%;
    max-width: 100%;
    min-height: 36px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 11px;
    white-space: normal;
  }
}

@media (max-width: 380px) {
  .home-page .product-table tbody tr {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px 7px;
    padding: 9px;
  }

  .home-page .table-product {
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 9px;
  }

  .home-page .thumb.mini {
    width: 80px;
  }

  .home-page .product-table td[data-label="Kategori"],
  .home-page .product-table .table-action-cell {
    grid-column: 1 / -1;
  }

  .home-page .product-table td[data-label="Terjual"] {
    grid-column: 1 / -1;
  }
}
