/* =========================================================================
   Toko Bahan Bangunan — style "Modern Multi-Page Superstore"
   7 preset warna x light/dark, semua lewat CSS custom properties.
   Ganti warna cukup edit blok [data-preset="..."] di bawah — lihat dokumentasi
   docs/13_MODULES/templates/TokoBahanBangunan_Superstore.md bagian
   "Cara Mengubah Warna".
   ========================================================================= */

/* ---------- Preset: Orange Construction (default) ---------- */
:root,
[data-preset="orange"] {
  --primary: #ff6b1a;
  --primary-dark: #e0570f;
  --secondary: #1f2933;
  --accent: #ffb020;
  --bg: #f7f8fa;
  --surface: #ffffff;
  --border: #e6e8ec;
  --text: #1f2933;
  --text-muted: #6b7280;
  --success: #1e8e5a;
  --warning: #f2b705;
  --danger: #e0393e;
  --info: #2b8ce0;
}
[data-preset="orange"][data-theme="dark"] {
  --bg: #14171c; --surface: #1c2028; --border: #2b3038; --text: #eef0f3; --text-muted: #9aa1ac;
}

/* ---------- Preset: Blue Professional ---------- */
[data-preset="blue"] {
  --primary: #1565c0; --primary-dark: #0d47a1; --secondary: #0d2b45; --accent: #26a9e0;
  --bg: #f5f8fb; --surface: #ffffff; --border: #e2e9f1; --text: #17233a; --text-muted: #5b6b84;
  --success: #1e8e5a; --warning: #e0a52a; --danger: #d93a3a; --info: #26a9e0;
}
[data-preset="blue"][data-theme="dark"] {
  --bg: #0f1720; --surface: #16202c; --border: #253444; --text: #eaf1fa; --text-muted: #93a6bb;
}

/* ---------- Preset: Green Modern ---------- */
[data-preset="green"] {
  --primary: #2e7d32; --primary-dark: #1f5c24; --secondary: #1b3a2b; --accent: #8bc34a;
  --bg: #f5f9f5; --surface: #ffffff; --border: #e1ebe1; --text: #1a2a1e; --text-muted: #5c6f60;
  --success: #2e7d32; --warning: #e0a52a; --danger: #d93a3a; --info: #2b8ce0;
}
[data-preset="green"][data-theme="dark"] {
  --bg: #0f1712; --surface: #172019; --border: #26332a; --text: #ecf3ec; --text-muted: #93a89b;
}

/* ---------- Preset: Red Premium ---------- */
[data-preset="red"] {
  --primary: #c62828; --primary-dark: #9c1f1f; --secondary: #2b1616; --accent: #e0a527;
  --bg: #faf6f5; --surface: #ffffff; --border: #ecdede; --text: #2a1414; --text-muted: #75605e;
  --success: #1e8e5a; --warning: #e0a527; --danger: #c62828; --info: #2b8ce0;
}
[data-preset="red"][data-theme="dark"] {
  --bg: #17100f; --surface: #201615; --border: #34201f; --text: #f5ecec; --text-muted: #ab9291;
}

/* ---------- Preset: Dark Industrial ---------- */
[data-preset="industrial"] {
  --primary: #8a939e; --primary-dark: #6b7280; --secondary: #111318; --accent: #f2b705;
  --bg: #eceef0; --surface: #ffffff; --border: #dcdfe3; --text: #15181d; --text-muted: #5b6470;
  --success: #1e8e5a; --warning: #f2b705; --danger: #e0393e; --info: #2b8ce0;
}
[data-preset="industrial"][data-theme="dark"] {
  --bg: #0c0d10; --surface: #16181d; --border: #262a31; --text: #eceef0; --text-muted: #9aa1ac;
  --primary: #b8bfc9;
}

/* ---------- Preset: Earth Tone ---------- */
[data-preset="earth"] {
  --primary: #8d6e47; --primary-dark: #6e5536; --secondary: #3e2f22; --accent: #b08968;
  --bg: #faf7f2; --surface: #ffffff; --border: #ece2d3; --text: #2c2013; --text-muted: #7a6b57;
  --success: #4c7a3c; --warning: #c98a2c; --danger: #b5473f; --info: #4477a1;
}
[data-preset="earth"][data-theme="dark"] {
  --bg: #16130e; --surface: #201b14; --border: #362c1f; --text: #f2ece2; --text-muted: #b0a290;
}

/* ---------- Preset: Black Gold ---------- */
[data-preset="gold"] {
  --primary: #b8912f; --primary-dark: #96742a; --secondary: #0b0b0d; --accent: #f5d576;
  --bg: #f9f8f6; --surface: #ffffff; --border: #eae5d8; --text: #17150f; --text-muted: #756e5c;
  --success: #1e8e5a; --warning: #b8912f; --danger: #b5433d; --info: #3a7ea8;
}
[data-preset="gold"][data-theme="dark"] {
  --bg: #0b0b0d; --surface: #171612; --border: #2a271e; --text: #f5f1e6; --text-muted: #b3a98d;
  --primary: #d4af37;
}

/* ---------- Shared tokens (semua preset) ---------- */
:root {
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 22px;
  --shadow: 0 10px 28px rgba(20, 23, 28, 0.08);
  --shadow-lg: 0 20px 48px rgba(20, 23, 28, 0.16);
  --transition: 220ms ease;
  --header-h: 76px;
  --font: "Inter", "Segoe UI", system-ui, sans-serif;
}
[data-theme="dark"] { --shadow: 0 10px 28px rgba(0,0,0,0.4); --shadow-lg: 0 20px 48px rgba(0,0,0,0.55); }

/* ---------- Reset & base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--text); transition: background var(--transition), color var(--transition); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; font-weight: 800; letter-spacing: -0.01em; }
p { line-height: 1.7; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, textarea, select { font-family: inherit; }
[hidden] { display: none !important; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.skip-link:not(:focus) { position: absolute; left: -9999px; }

/* Page transition (fade-in on load) */
body { animation: pageIn 380ms ease; }
@keyframes pageIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* Reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal.fade-only { transform: none; }
.reveal-delay-1 { transition-delay: 80ms; } .reveal-delay-2 { transition-delay: 160ms; } .reveal-delay-3 { transition-delay: 240ms; }

/* ---------- Demo ribbon ---------- */
.demo-banner { background: var(--secondary); color: var(--accent); text-align: center; font-size: 0.78rem; padding: 7px 12px; }
.demo-banner strong { color: #fff; }

/* ---------- Buttons ---------- */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; font-weight: 700; border-radius: var(--radius-sm); cursor: pointer; border: none; font-size: 0.92rem; transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition); }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: var(--secondary); color: #fff; }
.btn-outline { background: transparent; border: 2px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost { background: transparent; color: var(--text); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: 0.8rem; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* Ripple */
.ripple { position: absolute; border-radius: 50%; background: rgba(255,255,255,0.55); transform: scale(0); animation: ripple 550ms ease-out; pointer-events: none; }
.btn-outline .ripple, .btn-ghost .ripple { background: color-mix(in srgb, var(--primary) 30%, transparent); }
@keyframes ripple { to { transform: scale(3.2); opacity: 0; } }

.icon-btn { position: relative; background: var(--surface); border: 2px solid var(--border); color: var(--text); width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-size: 1rem; border-radius: 50%; transition: transform var(--transition), border-color var(--transition), color var(--transition); }
.icon-btn:hover { transform: translateY(-2px); border-color: var(--primary); color: var(--primary); }
.badge-count { position: absolute; top: -6px; right: -6px; background: var(--primary); color: #fff; font-size: 0.62rem; min-width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.badge-count.pop { animation: pop 320ms ease; }
@keyframes pop { 0% { transform: scale(1);} 45% { transform: scale(1.5);} 100% { transform: scale(1);} }

/* ---------- Sticky header + mega menu ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); transition: box-shadow var(--transition), padding var(--transition); }
.site-header.shrink { box-shadow: var(--shadow); }
.topbar { background: var(--secondary); color: rgba(255,255,255,0.85); font-size: 0.76rem; }
.topbar-inner { max-width: 1240px; margin: 0 auto; padding: 6px 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.topbar a:hover { color: var(--accent); }
.header-main { max-width: 1240px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 22px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; white-space: nowrap; }
.brand-mark { width: 40px; height: 40px; border-radius: 11px; background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem; }
.brand span { color: var(--primary); }

.main-nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.main-nav > li { position: relative; }
.main-nav > li > a, .main-nav > li > button { display: flex; align-items: center; gap: 6px; padding: 12px 14px; font-weight: 600; font-size: 0.9rem; border: none; background: none; color: var(--text); cursor: pointer; border-radius: var(--radius-sm); transition: background var(--transition), color var(--transition); }
.main-nav > li > a:hover, .main-nav > li > button:hover, .main-nav > li.active > a { background: color-mix(in srgb, var(--primary) 10%, transparent); color: var(--primary); }

.mega-menu { position: absolute; top: calc(100% + 10px); left: 0; width: 640px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 24px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity var(--transition), transform var(--transition); }
.main-nav > li:hover .mega-menu, .main-nav > li.mega-open .mega-menu { opacity: 1; pointer-events: auto; transform: translateY(0); }
.mega-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.mega-col h4 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 10px; }
.mega-col a { display: block; padding: 6px 0; font-size: 0.86rem; color: var(--text); transition: color var(--transition), transform var(--transition); }
.mega-col a:hover { color: var(--primary); transform: translateX(3px); }
.mega-promo { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); border-radius: var(--radius-sm); padding: 18px; color: #fff; display: flex; flex-direction: column; justify-content: space-between; }
.mega-promo strong { font-size: 1.05rem; display: block; margin-bottom: 6px; }
.mega-promo span { font-size: 0.78rem; opacity: 0.9; }

.dropdown-menu { position: absolute; top: calc(100% + 10px); left: 0; width: 220px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 10px; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity var(--transition), transform var(--transition); }
.main-nav > li:hover .dropdown-menu, .main-nav > li.mega-open .dropdown-menu { opacity: 1; pointer-events: auto; transform: translateY(0); }
.dropdown-menu a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; font-size: 0.86rem; border-radius: var(--radius-sm); color: var(--text); }
.dropdown-menu a:hover { background: var(--bg); color: var(--primary); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.search-inline { position: relative; }
.search-inline input { width: 220px; padding: 10px 14px 10px 38px; border-radius: 999px; border: 2px solid var(--border); background: var(--bg); color: var(--text); font-size: 0.85rem; outline: none; transition: border-color var(--transition), width var(--transition); }
.search-inline input:focus { border-color: var(--primary); width: 270px; }
.search-inline i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 0.85rem; }
.search-suggest { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); overflow: hidden; z-index: 5; }
.search-suggest a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; font-size: 0.85rem; }
.search-suggest a:hover { background: var(--bg); color: var(--primary); }
.search-suggest img { width: 30px; height: 30px; border-radius: 6px; object-fit: cover; }

.theme-switch-wrap { position: relative; }
.theme-panel { position: absolute; top: calc(100% + 10px); right: 0; width: 260px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 18px; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity var(--transition), transform var(--transition); z-index: 20; }
.theme-panel.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.theme-panel h4 { font-size: 0.8rem; margin-bottom: 10px; }
.mode-row { display: flex; gap: 6px; margin-bottom: 14px; }
.mode-row button { flex: 1; padding: 8px; border-radius: var(--radius-sm); border: 2px solid var(--border); background: var(--bg); color: var(--text-muted); cursor: pointer; font-size: 0.78rem; font-weight: 700; }
.mode-row button.active { border-color: var(--primary); color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, transparent); }
.preset-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.preset-dot { width: 100%; aspect-ratio: 1; border-radius: 50%; cursor: pointer; border: 2px solid var(--border); position: relative; transition: transform var(--transition); }
.preset-dot:hover { transform: scale(1.1); }
.preset-dot.active::after { content: "\\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 0.7rem; }

.hamburger { display: none; background: none; border: none; font-size: 1.3rem; color: var(--text); cursor: pointer; }
@media (max-width: 1080px) {
  .main-nav, .search-inline { display: none; }
  .hamburger { display: inline-flex; }
}
.mobile-nav { position: fixed; top: 0; right: 0; height: 100%; width: min(300px, 88vw); background: var(--surface); z-index: 90; box-shadow: var(--shadow-lg); padding: 24px; transform: translateX(100%); transition: transform 300ms ease; overflow-y: auto; }
.mobile-nav.open { transform: translateX(0); }
.mobile-nav a { display: block; padding: 12px 4px; font-weight: 600; border-bottom: 1px solid var(--border); }
.mobile-nav-close { background: var(--bg); border: none; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; margin-bottom: 16px; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { max-width: 1240px; margin: 0 auto; padding: 16px 24px 0; font-size: 0.82rem; color: var(--text-muted); display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { opacity: 0.5; }

/* ---------- Hero (carousel) ---------- */
.hero { position: relative; overflow: hidden; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.hero-slide { display: none; position: relative; padding: 84px 24px; background-size: cover; background-position: center; }
.hero-slide.active { display: block; animation: fadeSlide 600ms ease; }
@keyframes fadeSlide { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(100deg, color-mix(in srgb, var(--secondary) 88%, transparent) 0%, color-mix(in srgb, var(--secondary) 40%, transparent) 60%, transparent 100%); }
.hero-content { position: relative; max-width: 1240px; margin: 0 auto; color: #fff; max-width: 560px; }
.hero-tag { display: inline-flex; align-items: center; gap: 8px; background: color-mix(in srgb, var(--accent) 90%, transparent); color: var(--secondary); padding: 7px 16px; border-radius: 999px; font-weight: 800; font-size: 0.78rem; margin-bottom: 18px; }
.hero-content h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); margin-bottom: 16px; }
.hero-content p { color: rgba(255,255,255,0.85); margin-bottom: 26px; font-size: 1.02rem; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-dots { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 2; }
.hero-dots button { width: 9px; height: 9px; border-radius: 50%; border: none; background: rgba(255,255,255,0.5); cursor: pointer; transition: background var(--transition), width var(--transition); }
.hero-dots button.active { background: #fff; width: 26px; border-radius: 6px; }
.hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: none; background: rgba(255,255,255,0.16); color: #fff; cursor: pointer; font-size: 1rem; transition: background var(--transition); }
.hero-arrow:hover { background: var(--primary); }
.hero-arrow.prev { left: 20px; } .hero-arrow.next { right: 20px; }
@media (max-width: 640px) { .hero-slide { padding: 64px 20px; } }

/* ---------- Sections ---------- */
.section { max-width: 1240px; margin: 0 auto; padding: 64px 24px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 32px; gap: 16px; flex-wrap: wrap; }
.section-title { font-size: clamp(1.5rem, 3vw, 2.05rem); }
.section-sub { color: var(--text-muted); margin-top: 6px; font-size: 0.92rem; }
.section-link { font-weight: 700; color: var(--primary); font-size: 0.88rem; white-space: nowrap; }
.section-link:hover { text-decoration: underline; }
.section-alt { background: var(--surface); }

/* ---------- Category slider / grid ---------- */
.slider-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; }
.slider-track::-webkit-scrollbar { display: none; }
.slider-track > * { scroll-snap-align: start; flex: 0 0 auto; }
.category-card { width: 160px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 14px; text-align: center; transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition); cursor: pointer; }
.category-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--primary); }
.category-card img { width: 56px; height: 56px; margin: 0 auto 12px; }
.category-card h4 { font-size: 0.86rem; margin-bottom: 4px; }
.category-card span { font-size: 0.72rem; color: var(--text-muted); }
.category-grid-page { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }

/* ---------- Brand slider ---------- */
.brand-strip { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); overflow: hidden; padding: 20px 0; }
.brand-track { display: flex; gap: 60px; width: max-content; animation: marquee 22s linear infinite; align-items: center; }
.brand-strip:hover .brand-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.brand-item { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--text-muted); white-space: nowrap; opacity: 0.85; font-size: 0.95rem; }
.brand-item i { color: var(--primary); }

/* ---------- Product cards ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-chips button { border: 2px solid var(--border); background: var(--surface); color: var(--text-muted); padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: 0.78rem; cursor: pointer; transition: all var(--transition); }
.filter-chips button.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.select-control { padding: 10px 14px; border: 2px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font-size: 0.85rem; cursor: pointer; }

.catalog-layout { display: grid; grid-template-columns: 250px 1fr; gap: 28px; align-items: start; }
.filter-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; position: sticky; top: calc(var(--header-h) + 16px); }
.filter-panel h4 { font-size: 0.85rem; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.filter-group { margin-bottom: 20px; }
.filter-group label { display: flex; align-items: center; gap: 8px; font-size: 0.84rem; padding: 6px 0; cursor: pointer; color: var(--text-muted); }
.filter-group label:hover { color: var(--text); }
.filter-group input[type="range"] { width: 100%; accent-color: var(--primary); }
@media (max-width: 900px) { .catalog-layout { grid-template-columns: 1fr; } .filter-panel { position: static; } }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.product-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform var(--transition), box-shadow var(--transition); display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.product-card:hover .quick-actions { opacity: 1; transform: translateY(0); }
.product-thumb { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--bg); }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.product-card:hover .product-thumb img { transform: scale(1.06); }
.product-badge { position: absolute; top: 10px; left: 10px; color: #fff; font-size: 0.62rem; font-weight: 800; padding: 4px 11px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.03em; z-index: 2; }
.badge-new { background: var(--info); } .badge-best { background: var(--accent); color: var(--secondary); } .badge-promo { background: var(--danger); animation: pulse 1.6s ease-in-out infinite; } .badge-out { background: var(--text-muted); }
@keyframes pulse { 0%,100% { transform: scale(1);} 50% { transform: scale(1.06);} }
.quick-actions { position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; gap: 8px; opacity: 0; transform: translateY(-6px); transition: opacity var(--transition), transform var(--transition); z-index: 2; }
.quick-actions button { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.95); border: none; color: var(--text-muted); cursor: pointer; transition: color var(--transition), transform var(--transition); }
.quick-actions button:hover { transform: scale(1.1); color: var(--primary); }
.quick-actions button.active { color: var(--danger); }
.stock-indicator { position: absolute; bottom: 10px; left: 10px; background: rgba(20,20,20,0.7); color: #fff; font-size: 0.62rem; padding: 3px 9px; border-radius: 999px; z-index: 2; }
.product-info { padding: 16px; display: flex; flex-direction: column; flex: 1; gap: 6px; }
.product-cat { font-size: 0.66rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--primary); }
.product-name { font-weight: 700; font-size: 0.92rem; flex: 1; }
.rating-row { display: flex; align-items: center; gap: 6px; font-size: 0.74rem; color: var(--text-muted); }
.rating-row .stars { color: var(--warning); }
.price-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price-now { font-weight: 800; font-size: 1.05rem; color: var(--text); }
.price-old { font-size: 0.74rem; color: var(--text-muted); text-decoration: line-through; }
.price-unit { font-size: 0.7rem; color: var(--text-muted); }
.product-actions { display: flex; gap: 8px; margin-top: 8px; }
.product-actions .btn { flex: 1; padding: 10px; font-size: 0.76rem; }
.compare-check { display: flex; align-items: center; gap: 6px; font-size: 0.7rem; color: var(--text-muted); padding: 0 16px 12px; }

/* Skeleton */
.skeleton-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.skeleton-thumb, .skeleton-line { background: linear-gradient(90deg, var(--border) 25%, var(--bg) 37%, var(--border) 63%); background-size: 400% 100%; animation: shimmer 1.4s infinite; }
.skeleton-thumb { aspect-ratio: 4/3; }
.skeleton-line { height: 12px; margin: 14px; border-radius: 6px; }
.skeleton-line.short { width: 55%; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 36px; }
.pagination button { width: 38px; height: 38px; border-radius: var(--radius-sm); border: 2px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; font-weight: 700; font-size: 0.85rem; }
.pagination button.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.load-more-wrap { text-align: center; margin-top: 30px; }

/* ---------- Countdown / Flash sale ---------- */
.flash-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-bottom: 28px; }
.countdown { display: flex; gap: 8px; align-items: center; }
.count-box { background: var(--secondary); color: #fff; border-radius: var(--radius-sm); padding: 10px 14px; text-align: center; min-width: 58px; }
.count-box span { font-size: 1.3rem; font-weight: 800; display: block; }
.count-box small { font-size: 0.6rem; opacity: 0.75; text-transform: uppercase; }
.count-sep { font-weight: 800; font-size: 1.2rem; color: var(--text-muted); }
.promo-banner-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.promo-banner { border-radius: var(--radius-lg); overflow: hidden; position: relative; padding: 40px; background: linear-gradient(120deg, var(--primary), var(--primary-dark)); color: #fff; margin-bottom: 30px; }
.promo-banner h3 { font-size: 1.6rem; margin-bottom: 8px; }
.promo-banner p { opacity: 0.9; max-width: 480px; }

/* ---------- Stats / counters ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 20px; text-align: center; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 16px; }
.stat-card i { font-size: 1.4rem; width: 52px; height: 52px; border-radius: 16px; background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.stat-num { font-size: 2rem; font-weight: 800; }
.stat-card p { color: var(--text-muted); margin: 4px 0 0; font-size: 0.82rem; font-weight: 600; }

/* ---------- Timeline (Tentang Kami) ---------- */
.timeline { position: relative; max-width: 760px; margin: 0 auto; padding-left: 30px; border-left: 3px solid var(--border); }
.timeline-item { position: relative; padding-bottom: 34px; }
.timeline-item::before { content: ""; position: absolute; left: -39px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--primary); border: 3px solid var(--surface); box-shadow: 0 0 0 2px var(--primary); }
.timeline-item h4 { color: var(--primary); font-size: 0.95rem; margin-bottom: 4px; }
.timeline-item p { color: var(--text-muted); font-size: 0.88rem; margin: 0; }

/* ---------- CTA section ---------- */
.cta-section { background: var(--secondary); border-radius: var(--radius-lg); color: #fff; padding: 56px 40px; text-align: center; }
.cta-section h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 12px; }
.cta-section p { opacity: 0.85; max-width: 520px; margin: 0 auto 24px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Testimonials ---------- */
.testi-track { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none; }
.testi-track::-webkit-scrollbar { display: none; }
.testi-grid-page { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.testi-card { flex: 0 0 320px; scroll-snap-align: start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.testi-grid-page .testi-card { flex: none; }
.testi-card .stars { color: var(--warning); margin-bottom: 10px; }
.testi-text { color: var(--text-muted); font-size: 0.9rem; margin: 0 0 16px; }
.testi-who { display: flex; align-items: center; gap: 12px; }
.testi-avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.testi-name { font-weight: 700; font-size: 0.86rem; }
.testi-role { font-size: 0.72rem; color: var(--text-muted); }

/* ---------- FAQ accordion ---------- */
.faq-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.faq-q { width: 100%; background: none; border: none; display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 18px 20px; font-weight: 700; font-size: 0.9rem; color: var(--text); cursor: pointer; text-align: left; }
.faq-q i { color: var(--primary); transition: transform var(--transition); }
.faq-item.open .faq-q i { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 300ms ease; }
.faq-item.open .faq-a { max-height: 260px; }
.faq-a p { margin: 0; padding: 0 20px 18px; color: var(--text-muted); font-size: 0.86rem; }

/* ---------- Gallery + lightbox ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery-grid > *:nth-child(4n+1) { grid-row: span 2; }
.gallery-item { position: relative; border-radius: var(--radius-sm); overflow: hidden; cursor: zoom-in; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-cap { position: absolute; inset: auto 0 0 0; background: linear-gradient(transparent, rgba(0,0,0,0.75)); color: #fff; padding: 30px 12px 10px; opacity: 0; transition: opacity var(--transition); font-size: 0.78rem; font-weight: 700; }
.gallery-item:hover .gallery-cap { opacity: 1; }
@media (max-width: 760px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } .gallery-grid > *:nth-child(4n+1) { grid-row: span 1; } }
.lightbox { position: fixed; inset: 0; z-index: 120; background: rgba(10,10,14,0.92); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity var(--transition); }
.lightbox.show { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: min(800px, 88vw); max-height: 78vh; border-radius: var(--radius); }
.lightbox figcaption { color: #fff; text-align: center; margin-top: 14px; font-size: 0.85rem; }
.lightbox-close, .lightbox-nav { position: absolute; background: rgba(255,255,255,0.14); color: #fff; border: none; border-radius: 50%; cursor: pointer; }
.lightbox-close { top: 20px; right: 20px; width: 40px; height: 40px; font-size: 1rem; }
.lightbox-nav { top: 50%; transform: translateY(-50%); width: 46px; height: 46px; font-size: 1rem; }
.lightbox-nav.prev { left: 20px; } .lightbox-nav.next { right: 20px; }

/* ---------- Forms (contact / login / register / dashboard) ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 0.82rem; font-weight: 700; }
.form-field input, .form-field textarea, .form-field select { padding: 12px 14px; border: 2px solid var(--border); border-radius: var(--radius-sm); background: var(--bg); color: var(--text); font-size: 0.88rem; outline: none; transition: border-color var(--transition); }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { border-color: var(--primary); }
.form-error { color: var(--danger); font-size: 0.74rem; display: none; }
.form-field.invalid input, .form-field.invalid textarea { border-color: var(--danger); }
.form-field.invalid .form-error { display: block; }
.auth-card { max-width: 440px; margin: 60px auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 1.5rem; margin-bottom: 6px; text-align: center; }
.auth-card p.sub { text-align: center; color: var(--text-muted); font-size: 0.86rem; margin-bottom: 26px; }
.auth-social { display: flex; gap: 10px; margin-bottom: 20px; }
.auth-social button { flex: 1; }
.auth-divider { display: flex; align-items: center; gap: 10px; color: var(--text-muted); font-size: 0.76rem; margin: 20px 0; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.auth-foot { text-align: center; margin-top: 20px; font-size: 0.84rem; color: var(--text-muted); }
.remember-row { display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; color: var(--text-muted); }
.checkbox-row { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--text-muted); }

/* ---------- Dashboard ---------- */
.dash-layout { display: grid; grid-template-columns: 240px 1fr; gap: 26px; align-items: start; }
.dash-sidebar { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; position: sticky; top: calc(var(--header-h) + 16px); }
.dash-sidebar a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.86rem; color: var(--text-muted); }
.dash-sidebar a:hover { background: var(--bg); color: var(--text); }
.dash-sidebar a.active { background: color-mix(in srgb, var(--primary) 10%, transparent); color: var(--primary); }
.dash-profile { display: flex; align-items: center; gap: 12px; padding: 16px 12px; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.dash-profile img { width: 46px; height: 46px; border-radius: 50%; }
.dash-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.dash-card h3 { font-size: 1.05rem; margin-bottom: 16px; }
.order-table, .cart-table { width: 100%; border-collapse: collapse; }
.order-table th, .order-table td, .cart-table th, .cart-table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--border); font-size: 0.85rem; }
.order-status { padding: 4px 10px; border-radius: 999px; font-size: 0.7rem; font-weight: 700; }
.status-selesai { background: color-mix(in srgb, var(--success) 15%, transparent); color: var(--success); }
.status-proses { background: color-mix(in srgb, var(--info) 15%, transparent); color: var(--info); }
.status-batal { background: color-mix(in srgb, var(--danger) 15%, transparent); color: var(--danger); }
@media (max-width: 860px) { .dash-layout { grid-template-columns: 1fr; } .dash-sidebar { position: static; } }

/* ---------- Cart page ---------- */
.cart-page-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 30px; align-items: start; }
@media (max-width: 860px) { .cart-page-layout { grid-template-columns: 1fr; } }
.cart-page-item { display: flex; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--border); }
.cart-page-item img { width: 72px; height: 72px; border-radius: var(--radius-sm); object-fit: cover; }
.cart-page-info { flex: 1; }
.qty-control { display: inline-flex; align-items: center; gap: 10px; border: 2px solid var(--border); border-radius: var(--radius-sm); padding: 4px 8px; }
.qty-control button { width: 26px; height: 26px; border: none; background: var(--bg); border-radius: 6px; cursor: pointer; font-weight: 800; color: var(--text); }
.cart-summary { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; position: sticky; top: calc(var(--header-h) + 16px); }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 0.88rem; color: var(--text-muted); }
.summary-row.total { font-weight: 800; font-size: 1.05rem; color: var(--text); border-top: 1px solid var(--border); margin-top: 10px; padding-top: 14px; }
.promo-code-row { display: flex; gap: 8px; margin: 16px 0; }
.promo-code-row input { flex: 1; padding: 10px 12px; border: 2px solid var(--border); border-radius: var(--radius-sm); background: var(--bg); color: var(--text); }
.empty-state { text-align: center; padding: 80px 20px; color: var(--text-muted); }
.empty-state i { font-size: 3rem; margin-bottom: 16px; color: var(--border); }

/* ---------- Product detail ---------- */
.pd-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
.pd-gallery-main { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; margin-bottom: 14px; }
.pd-gallery-thumbs { display: flex; gap: 10px; }
.pd-gallery-thumbs img { width: 68px; height: 68px; border-radius: var(--radius-sm); border: 2px solid var(--border); cursor: pointer; object-fit: cover; }
.pd-gallery-thumbs img.active { border-color: var(--primary); }
.pd-info h1 { font-size: 1.5rem; margin: 8px 0 10px; }
.pd-sku { color: var(--text-muted); font-size: 0.8rem; }
.pd-price-row { display: flex; align-items: baseline; gap: 12px; margin: 16px 0; }
.pd-price-row .price-now { font-size: 1.7rem; }
.pd-qty-row { display: flex; align-items: center; gap: 14px; margin: 20px 0; }
.pd-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.pd-share { display: flex; gap: 8px; margin-top: 16px; }
.pd-tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--border); margin: 40px 0 20px; }
.pd-tabs button { padding: 12px 20px; background: none; border: none; font-weight: 700; color: var(--text-muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; }
.pd-tabs button.active { color: var(--primary); border-color: var(--primary); }
.pd-tab-panel { display: none; } .pd-tab-panel.active { display: block; }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: 0.86rem; }
.spec-table td:first-child { color: var(--text-muted); width: 40%; }
@media (max-width: 860px) { .pd-layout { grid-template-columns: 1fr; } }

/* ---------- Article ---------- */
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.article-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform var(--transition), box-shadow var(--transition); }
.article-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.article-thumb { aspect-ratio: 16/9; overflow: hidden; }
.article-thumb img { width: 100%; height: 100%; object-fit: cover; }
.article-body { padding: 18px; }
.article-tag { font-size: 0.66rem; font-weight: 800; color: var(--primary); text-transform: uppercase; }
.article-body h3 { font-size: 1rem; margin: 8px 0; }
.article-meta { font-size: 0.74rem; color: var(--text-muted); }
.article-detail-body { max-width: 760px; margin: 0 auto; }
.article-detail-body img { border-radius: var(--radius); margin: 20px 0; }
.article-detail-body p { color: var(--text-muted); margin-bottom: 16px; }

/* ---------- Store locations ---------- */
.store-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.store-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.store-card h4 { margin-bottom: 8px; }
.store-card p { font-size: 0.85rem; color: var(--text-muted); margin: 4px 0; }
.map-placeholder { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); aspect-ratio: 16/6; display: flex; align-items: center; justify-content: center; color: var(--text-muted); margin-bottom: 30px; overflow: hidden; position: relative; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; }
.contact-line { display: flex; align-items: center; gap: 14px; padding: 12px 0; }
.contact-line i { width: 42px; height: 42px; border-radius: 12px; background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary); display: inline-flex; align-items: center; justify-content: center; }
.contact-line strong { display: block; font-size: 0.9rem; } .contact-line span { color: var(--text-muted); font-size: 0.8rem; }
.social-row { display: flex; gap: 10px; margin-top: 20px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Newsletter ---------- */
.newsletter-band { background: var(--secondary); border-radius: var(--radius-lg); padding: 50px 40px; color: #fff; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.newsletter-band h3 { font-size: 1.4rem; margin-bottom: 6px; }
.newsletter-form { display: flex; gap: 10px; }
.newsletter-form input { padding: 13px 16px; border-radius: var(--radius-sm); border: none; width: 240px; }
@media (max-width: 700px) { .newsletter-band { flex-direction: column; text-align: center; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--secondary); color: rgba(255,255,255,0.72); padding: 60px 24px 22px; margin-top: 60px; }
.footer-grid { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 34px; }
.footer-grid h4 { color: #fff; font-size: 0.86rem; margin-bottom: 16px; }
.footer-grid a { display: block; padding: 5px 0; font-size: 0.82rem; }
.footer-grid a:hover { color: var(--accent); }
.footer-about p { font-size: 0.84rem; margin: 12px 0 16px; max-width: 300px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; }
.footer-social a:hover { background: var(--primary); color: #fff; }
.footer-bottom { max-width: 1240px; margin: 34px auto 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.12); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.74rem; }
.payment-icons { display: flex; gap: 8px; }
.payment-icons span { background: rgba(255,255,255,0.1); padding: 4px 8px; border-radius: 6px; font-size: 0.68rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Floating buttons ---------- */
.float-stack { position: fixed; right: 22px; bottom: 22px; z-index: 55; display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.float-btn { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.3rem; box-shadow: var(--shadow); transition: transform var(--transition); border: none; cursor: pointer; }
.float-btn:hover { transform: scale(1.1); }
.float-wa { background: #25d366; }
.float-call { background: var(--info); }
.float-quote { background: var(--primary); }
.back-to-top { width: 46px; height: 46px; background: var(--secondary); opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity var(--transition), transform var(--transition); }
.back-to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* ---------- Overlay / Modal / Offcanvas / Toast (popup modern, no alert/confirm) ---------- */
.overlay-backdrop { position: fixed; inset: 0; background: rgba(10, 11, 15, 0.55); z-index: 98; opacity: 0; transition: opacity var(--transition); }
.overlay-backdrop.show { opacity: 1; }
.modal { position: fixed; top: 50%; left: 50%; z-index: 110; background: var(--surface); color: var(--text); width: min(440px, 90vw); max-height: 85vh; overflow: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 34px 30px 28px; transform: translate(-50%, -50%) scale(0.92); opacity: 0; pointer-events: none; transition: transform var(--transition), opacity var(--transition); text-align: center; }
.modal.show { opacity: 1; transform: translate(-50%, -50%) scale(1); pointer-events: auto; }
.modal-close { position: absolute; top: 14px; right: 14px; background: var(--bg); border: none; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; color: var(--text); }
.modal-icon { width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-size: 1.5rem; color: #fff; }
.modal-icon.info { background: var(--info); } .modal-icon.success { background: var(--success); } .modal-icon.error { background: var(--danger); } .modal-icon.confirm { background: var(--warning); } .modal-icon.delete { background: var(--danger); }
.modal h3 { font-size: 1.2rem; margin-bottom: 8px; }
.modal p { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 22px; }
.modal-actions { display: flex; gap: 10px; justify-content: center; }
.modal-actions .btn { flex: 1; }
.modal.quickview { width: min(680px, 92vw); text-align: left; }
.qv-body { display: grid; grid-template-columns: 1fr 1.1fr; gap: 24px; }
.qv-body img { border-radius: var(--radius-sm); border: 1px solid var(--border); }
@media (max-width: 600px) { .qv-body { grid-template-columns: 1fr; } }

.offcanvas { position: fixed; top: 0; right: 0; height: 100%; width: min(400px, 92vw); background: var(--surface); z-index: 105; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; transform: translateX(100%); transition: transform 300ms ease; }
.offcanvas.show { transform: translateX(0); }
.offcanvas-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px; border-bottom: 1px solid var(--border); }
.offcanvas-header h3 { font-size: 1.02rem; }
.offcanvas-body { flex: 1; overflow-y: auto; padding: 10px 22px; }
.offcanvas-footer { padding: 20px 22px; border-top: 1px solid var(--border); }
.cart-line { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); align-items: center; }
.cart-line img { width: 56px; height: 56px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.cart-line-info { flex: 1; }
.cart-line-name { font-size: 0.82rem; font-weight: 700; margin-bottom: 4px; }
.cart-line-price { font-size: 0.76rem; color: var(--text-muted); }
.remove-line { background: none; border: none; color: var(--danger); cursor: pointer; }

.toast-container { position: fixed; top: 90px; right: 20px; z-index: 130; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--secondary); color: #fff; padding: 14px 18px; border-radius: var(--radius-sm); font-size: 0.82rem; font-weight: 600; display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow-lg); animation: toastIn 240ms ease; max-width: 320px; }
.toast.success i { color: var(--success); } .toast.error i { color: var(--danger); } .toast.info i { color: var(--info); }
.toast.leaving { animation: toastOut 220ms ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(30px); } }

.cookie-bar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 100; background: var(--secondary); color: rgba(255,255,255,0.85); padding: 18px 24px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; transform: translateY(100%); transition: transform 320ms ease; }
.cookie-bar.show { transform: translateY(0); }
.cookie-bar p { margin: 0; font-size: 0.82rem; max-width: 620px; }

/* ---------- Misc ---------- */
.status-page { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 60px 24px; }
.status-page .code { font-size: 6rem; font-weight: 800; color: var(--primary); line-height: 1; }
.status-page h1 { font-size: 1.5rem; margin: 10px 0; }
.status-page p { color: var(--text-muted); max-width: 420px; margin-bottom: 26px; }
.maintenance-page { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 24px; background: var(--secondary); color: #fff; }
.maintenance-page i { font-size: 3rem; color: var(--accent); margin-bottom: 20px; }
.maintenance-page h1 { font-size: 1.8rem; margin-bottom: 10px; }
.maintenance-page p { color: rgba(255,255,255,0.75); max-width: 460px; margin-bottom: 26px; }

/* Ultra wide */
@media (min-width: 1600px) { .container, .section, .header-main, .footer-grid, .topbar-inner, .breadcrumb { max-width: 1440px; } }

/* Tablet / mobile density adjustments */
@media (max-width: 760px) {
  .section { padding: 44px 20px; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .form-grid { grid-template-columns: 1fr; }
  .pd-layout { gap: 24px; }
}
