/* ==========================================================================
   Brands Store — stylesheet
   Original design system: bright by default, full dark-mode support via
   body[data-theme]. Palette is teal (primary) + coral (secondary accent).
   ========================================================================== */

:root {
  --brand-teal: #0d8f72;
  --brand-teal-dark: #086a55;
  --brand-coral: #ff6b45;
  --brand-ink: #0f1e1a;
  --white: #ffffff;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(15, 30, 23, 0.06);
  --shadow-md: 0 10px 30px rgba(15, 30, 23, 0.10);
  --shadow-lg: 0 20px 50px rgba(15, 30, 23, 0.16);

  --font-display: "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  --container: 1240px;
}

:root,
body[data-theme="light"] {
  --bg: #f7faf8;
  --bg-alt: #eef5f2;
  --surface: #ffffff;
  --surface-2: #f1f6f4;
  --text: var(--brand-ink);
  --text-muted: #52685e;
  --accent: var(--brand-teal);
  --accent-strong: var(--brand-teal-dark);
  --accent-2: var(--brand-coral);
  --on-accent: #ffffff;
  --border: rgba(15, 30, 23, 0.13);
  --border-soft: rgba(15, 30, 23, 0.07);
  --danger: #d64545;
  --success: #1a9b6c;
}

body[data-theme="dark"] {
  --bg: #0b1512;
  --bg-alt: #10201b;
  --surface: #132821;
  --surface-2: #17352c;
  --text: #eef6f2;
  --text-muted: #a9c2b8;
  --accent: #34d1a4;
  --accent-strong: #5be0b8;
  --accent-2: #ff9270;
  --on-accent: #06231b;
  --border: rgba(255, 255, 255, 0.14);
  --border-soft: rgba(255, 255, 255, 0.08);
  --danger: #ff8080;
  --success: #4fd39a;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.2s ease, color 0.2s ease;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; margin: 0 0 0.5em; color: var(--text); }
p { margin: 0 0 1em; color: var(--text); }
ul { margin: 0; padding: 0; list-style: none; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--accent); color: var(--on-accent);
  padding: 12px 18px; border-radius: 0 0 var(--radius-sm) 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  border: 1px solid transparent; transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-strong); transform: translateY(-1px); }
.btn-secondary { background: var(--accent-2); color: #1a1008; }
.btn-secondary:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn-outline { border-color: var(--border); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--text); background: var(--surface-2); }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-sm { padding: 9px 16px; font-size: 0.85rem; }
.btn-danger-outline { border-color: var(--danger); color: var(--danger); background: transparent; }
.btn-danger-outline:hover { background: var(--danger); color: #fff; }

/* ---------------- Header ---------------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--bg); border-bottom: 1px solid var(--border-soft); }
.nav-inner { max-width: var(--container); margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 24px; }

.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); }
.logo-mark { width: 34px; height: 34px; flex-shrink: 0; }
.logo-word { font-size: 1.28rem; font-weight: 800; letter-spacing: -0.01em; color: var(--text); }
.logo-word .logo-tag { color: var(--accent); }

.main-nav { flex: 1; }
.main-nav ul { display: flex; gap: 6px; }
.main-nav a { padding: 10px 14px; border-radius: 999px; font-weight: 600; font-size: 0.95rem; color: var(--text-muted); transition: background-color 0.15s ease, color 0.15s ease; }
.main-nav a:hover { color: var(--text); background: var(--surface-2); }
.main-nav a[aria-current="page"] { color: var(--accent-strong); background: var(--surface-2); }

.nav-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  position: relative; width: 42px; height: 42px; border-radius: 999px; border: 1px solid transparent;
  background: transparent; color: var(--text); display: flex; align-items: center; justify-content: center;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.icon-btn:hover { background: var(--surface-2); border-color: var(--border-soft); }
.icon-btn svg { width: 20px; height: 20px; }
.cart-badge {
  position: absolute; top: 2px; right: 2px; min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 999px; background: var(--accent-2); color: #1a1008; font-size: 0.68rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center; line-height: 1;
}
.theme-icon-dark { display: none; }
body[data-theme="dark"] .theme-icon-light { display: none; }
body[data-theme="dark"] .theme-icon-dark { display: block; }

.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 999px; border: 1px solid var(--border-soft); background: var(--surface); color: var(--text); align-items: center; justify-content: center; }
.nav-toggle svg { width: 20px; height: 20px; }

.search-bar { max-height: 0; overflow: hidden; border-top: 0 solid var(--border-soft); transition: max-height 0.25s ease; }
.search-bar.is-open { max-height: 90px; border-top-width: 1px; }
.search-bar-inner { max-width: var(--container); margin: 0 auto; padding: 14px 24px; }
.search-bar input {
  width: 100%; padding: 12px 18px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font-size: 0.95rem;
}
.search-bar input:focus { border-color: var(--accent); }

@media (max-width: 900px) {
  .main-nav { position: fixed; inset: 0 0 0 auto; width: min(320px, 85vw); background: var(--surface); padding: 90px 24px 24px; box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform 0.25s ease; z-index: 150; }
  .main-nav ul#main-nav-list.is-open ~ * {}
  #main-nav-list { flex-direction: column; gap: 4px; }
  .main-nav { transform: translateX(100%); }
  #main-nav-list.is-open { display: flex; }
  .main-nav:has(#main-nav-list.is-open) { transform: translateX(0); }
  .nav-toggle { display: flex; }
  .main-nav a { display: block; padding: 12px 16px; }
}

/* ---------------- Hero ---------------- */
.hero { padding: 56px 0 64px; background: linear-gradient(180deg, var(--bg-alt), var(--bg) 70%); }
.hero-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-weight: 700; color: var(--accent-strong); background: var(--surface-2); padding: 6px 14px; border-radius: 999px; font-size: 0.82rem; letter-spacing: 0.02em; margin-bottom: 16px; }
.hero h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); letter-spacing: -0.02em; }
.hero .lead { font-size: 1.1rem; color: var(--text-muted); max-width: 46ch; }
.hero-actions { display: flex; gap: 14px; margin-top: 24px; flex-wrap: wrap; }
.hero-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); animation: fadeInUp 0.6s ease both; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3.2; }
.hero-media-badge { position: absolute; left: 18px; bottom: 18px; background: var(--surface); color: var(--text); padding: 10px 16px; border-radius: 999px; font-weight: 700; font-size: 0.85rem; box-shadow: var(--shadow-md); }

@keyframes fadeInUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeInUp 0.5s ease both; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
}

/* ---------------- Trust strip ---------------- */
.trust-strip { padding: 28px 0; border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); background: var(--surface); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.trust-item { display: flex; align-items: center; gap: 12px; }
.trust-item svg { width: 26px; height: 26px; color: var(--accent); flex-shrink: 0; }
.trust-item strong { display: block; font-size: 0.95rem; }
.trust-item span { font-size: 0.85rem; color: var(--text-muted); }
@media (max-width: 900px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------------- Sections ---------------- */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 6px; }
.section-head p { color: var(--text-muted); margin: 0; max-width: 60ch; }
.section-link { font-weight: 700; color: var(--accent-strong); white-space: nowrap; }

.categories, .best-sellers, .why-brand, .faq-preview, .featured, .value-section { padding: 64px 0; }

/* ---------------- Category grid ---------------- */
.category-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.category-card {
  background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius-md);
  padding: 22px; transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  display: flex; flex-direction: column; gap: 10px;
}
.category-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border); }
.category-card .icon-wrap { width: 46px; height: 46px; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); }
.category-card .icon-wrap img { width: 100%; height: 100%; object-fit: cover; }
.category-card h3 { font-size: 1.02rem; margin-bottom: 2px; }
.category-card p { font-size: 0.86rem; color: var(--text-muted); margin: 0; }
@media (max-width: 1100px) { .category-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .category-grid { grid-template-columns: repeat(2, 1fr); } }

/* Big category cards (Categories page) */
.category-grid-lg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.category-card-lg { border-radius: var(--radius-lg); overflow: hidden; position: relative; box-shadow: var(--shadow-sm); border: 1px solid var(--border-soft); background: var(--surface); transition: transform 0.15s ease, box-shadow 0.15s ease; }
.category-card-lg:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.category-card-lg .media { aspect-ratio: 16/10; overflow: hidden; }
.category-card-lg .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.category-card-lg:hover .media img { transform: scale(1.04); }
.category-card-lg .body { padding: 18px 20px 22px; }
.category-card-lg h3 { margin-bottom: 6px; }
.category-card-lg p { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 12px; }
.category-card-lg .sub-list { display: flex; flex-wrap: wrap; gap: 6px; }
.category-card-lg .sub-list span { font-size: 0.76rem; background: var(--surface-2); color: var(--text-muted); padding: 4px 10px; border-radius: 999px; }
@media (max-width: 900px) { .category-grid-lg { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .category-grid-lg { grid-template-columns: 1fr; } }

/* ---------------- Product grid & cards ---------------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-card {
  background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius-md);
  overflow: hidden; display: flex; flex-direction: column; transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border); }
.product-card-media { aspect-ratio: 1/1; background: var(--surface-2); overflow: hidden; position: relative; }
.product-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.product-card:hover .product-card-media img { transform: scale(1.05); }
.product-card-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-category { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; color: var(--accent-strong); }
.product-card-body h3 { font-size: 1rem; margin-bottom: 0; }
.product-price { font-weight: 800; font-size: 1.05rem; color: var(--text); }
.product-card-body p { font-size: 0.86rem; color: var(--text-muted); margin: 0; flex: 1; }
.product-card-footer { margin-top: 10px; }
.add-to-cart { width: 100%; padding: 11px 18px; border-radius: 999px; border: 1px solid var(--accent); background: transparent; color: var(--accent-strong); font-weight: 700; font-size: 0.88rem; transition: background-color 0.15s ease, color 0.15s ease; }
.add-to-cart:hover { background: var(--accent); color: var(--on-accent); }
.add-to-cart.is-added { background: var(--success); border-color: var(--success); color: #fff; }

@media (max-width: 1100px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .product-grid { grid-template-columns: 1fr; } }

.no-results { grid-column: 1 / -1; text-align: center; padding: 60px 20px; color: var(--text-muted); }
.no-results h1 { color: var(--text); }

/* ---------------- Why / value cards ---------------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.why-card { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius-md); padding: 26px; }
.why-card .icon-wrap { width: 46px; height: 46px; border-radius: 12px; background: var(--surface-2); color: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.why-card .icon-wrap svg { width: 22px; height: 22px; }
.why-card h3 { font-size: 1.05rem; }
.why-card p { color: var(--text-muted); font-size: 0.92rem; margin: 0; }
@media (max-width: 900px) { .why-grid { grid-template-columns: 1fr; } }

/* ---------------- FAQ accordion ---------------- */
.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-soft); border-radius: var(--radius-md); overflow: hidden; }
.faq-question { width: 100%; text-align: left; background: none; border: none; padding: 18px 22px; font-weight: 700; font-size: 1rem; color: var(--text); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.faq-question .plus { font-size: 1.3rem; color: var(--accent); transition: transform 0.2s ease; flex-shrink: 0; }
.faq-item.is-open .plus { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.faq-item.is-open .faq-answer { max-height: 400px; }
.faq-answer-inner { padding: 0 22px 18px; color: var(--text-muted); }
.faq-answer-inner p { margin: 0; }
.faq-preview-cta { text-align: center; margin-top: 28px; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--border-soft); padding: 56px 0 0; }
.footer-inner { max-width: var(--container); margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 40px; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; margin-top: 12px; }
.footer-links h3, .footer-contact h3 { font-size: 0.9rem; margin-bottom: 14px; }
.footer-links ul { display: flex; flex-direction: column; gap: 9px; }
.footer-links a { color: var(--text-muted); font-size: 0.9rem; }
.footer-links a:hover { color: var(--accent-strong); }
.footer-contact address { font-style: normal; display: flex; flex-direction: column; gap: 9px; font-size: 0.9rem; color: var(--text-muted); }
.footer-contact a { color: var(--text-muted); }
.footer-contact a:hover { color: var(--accent-strong); }
.footer-bottom { border-top: 1px solid var(--border-soft); padding: 18px 24px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; max-width: var(--container); margin: 0 auto; }
.footer-bottom p { margin: 0; color: var(--text-muted); font-size: 0.85rem; }
.footer-bottom .legal-links { display: flex; gap: 16px; }
.footer-bottom .legal-links a { color: var(--text-muted); font-size: 0.85rem; }
.footer-bottom .legal-links a:hover { color: var(--accent-strong); }
@media (max-width: 900px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-inner { grid-template-columns: 1fr; } }

/* ---------------- Cart drawer ---------------- */
.cart-overlay { position: fixed; inset: 0; background: rgba(6, 15, 12, 0.45); opacity: 0; pointer-events: none; transition: opacity 0.2s ease; z-index: 180; }
.cart-overlay.is-visible { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100vw); background: var(--surface);
  box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform 0.25s ease; z-index: 190;
  display: flex; flex-direction: column;
}
.cart-drawer.is-open { transform: translateX(0); }
.cart-drawer-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--border-soft); }
.cart-drawer-header h2 { margin: 0; font-size: 1.15rem; }
.cart-items { flex: 1; overflow-y: auto; padding: 10px 22px; display: flex; flex-direction: column; gap: 16px; }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; }
.cart-item img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius-sm); background: var(--surface-2); }
.cart-item-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cart-item-name { font-weight: 700; font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-item-price { font-size: 0.85rem; color: var(--text-muted); }
.qty-stepper { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.qty-stepper button { width: 24px; height: 24px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); display: flex; align-items: center; justify-content: center; font-weight: 700; line-height: 1; }
.qty-stepper button:hover { border-color: var(--accent); color: var(--accent-strong); }
.qty-stepper .qty-value { min-width: 18px; text-align: center; font-weight: 700; font-size: 0.88rem; }
.cart-item-remove { background: none; border: none; color: var(--text-muted); padding: 6px; border-radius: 999px; align-self: start; }
.cart-item-remove:hover { color: var(--danger); background: var(--surface-2); }
.cart-empty { text-align: center; color: var(--text-muted); padding: 40px 22px; }
.cart-subtotal { display: flex; justify-content: space-between; padding: 16px 22px; border-top: 1px solid var(--border-soft); font-weight: 700; }
.cart-subtotal-value { color: var(--text); }
.cart-drawer-footer { padding: 16px 22px 22px; }

/* ---------------- Full cart page ---------------- */
.cart-page { padding: 48px 0 80px; }
.cart-layout { display: grid; grid-template-columns: 1.7fr 1fr; gap: 32px; align-items: start; }
.cart-table { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius-md); overflow: hidden; }
.cart-row { display: grid; grid-template-columns: 80px 1fr auto auto auto; gap: 16px; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--border-soft); }
.cart-row:last-child { border-bottom: none; }
.cart-row img { width: 80px; height: 80px; object-fit: cover; border-radius: var(--radius-sm); background: var(--surface-2); }
.cart-row .row-name { font-weight: 700; }
.cart-row .row-cat { font-size: 0.8rem; color: var(--text-muted); }
.cart-row .row-price { font-weight: 700; white-space: nowrap; }
.cart-row .row-line-total { font-weight: 800; white-space: nowrap; text-align: right; min-width: 80px; }
.order-summary { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius-md); padding: 24px; position: sticky; top: 90px; }
.order-summary h2 { font-size: 1.1rem; }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 0.92rem; color: var(--text-muted); }
.summary-row.total { border-top: 1px solid var(--border-soft); margin-top: 8px; padding-top: 14px; font-weight: 800; font-size: 1.1rem; color: var(--text); }
.cart-actions-row { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; flex-wrap: wrap; gap: 12px; }
@media (max-width: 900px) { .cart-layout { grid-template-columns: 1fr; } .order-summary { position: static; } }
@media (max-width: 640px) {
  .cart-row { grid-template-columns: 60px 1fr; grid-template-areas: "img name" "img price" "img qty"; row-gap: 6px; }
  .cart-row img { grid-area: img; width: 60px; height: 60px; }
  .cart-row .row-info { grid-area: name; }
  .cart-row .row-price { grid-area: price; }
  .cart-row .row-qty { grid-area: qty; }
  .cart-row .row-line-total { grid-column: 2; text-align: left; }
}

/* ---------------- Breadcrumb ---------------- */
.breadcrumb { max-width: var(--container); margin: 0 auto; padding: 20px 24px 0; font-size: 0.85rem; color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent-strong); }

/* ---------------- Product detail page ---------------- */
.product-layout { max-width: var(--container); margin: 0 auto; padding: 24px 24px 70px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.product-gallery { display: flex; flex-direction: column; gap: 14px; }
.gallery-main { border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-2); aspect-ratio: 1/1; cursor: zoom-in; border: 1px solid var(--border-soft); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.16s ease; }
.gallery-main img.is-swapping { opacity: 0; }
.gallery-thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.gallery-thumb { width: 68px; height: 68px; border-radius: var(--radius-sm); overflow: hidden; border: 2px solid transparent; padding: 0; background: var(--surface-2); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.is-active { border-color: var(--accent); }
.product-info { display: flex; flex-direction: column; gap: 6px; }
.product-info h1 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-top: 4px; }
.product-info .product-price { font-size: 1.6rem; margin: 8px 0 4px; }
.status-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 700; color: var(--success); margin-bottom: 8px; }
.status-badge::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--success); }
.product-info .add-to-cart { width: auto; padding: 14px 30px; margin: 14px 0 6px; font-size: 0.95rem; }
.qty-select-row { display: flex; align-items: center; gap: 14px; margin: 10px 0; }
.product-desc { color: var(--text-muted); margin-top: 14px; }
.subhead { font-size: 1.05rem; margin-top: 22px; }
.feature-list { display: flex; flex-direction: column; gap: 10px; }
.feature-list li { display: flex; align-items: flex-start; gap: 10px; color: var(--text-muted); font-size: 0.92rem; }
.feature-list svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.related-section { padding: 20px 0 70px; }
@media (max-width: 900px) { .product-layout { grid-template-columns: 1fr; gap: 28px; } }

/* ---------------- Lightbox ---------------- */
.lightbox-overlay { position: fixed; inset: 0; background: rgba(4, 10, 8, 0.86); display: flex; align-items: center; justify-content: center; z-index: 300; opacity: 0; pointer-events: none; transition: opacity 0.2s ease; padding: 40px; }
.lightbox-overlay.is-open { opacity: 1; pointer-events: auto; }
.lightbox-overlay img { max-width: min(1100px, 100%); max-height: 86vh; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); }
.lightbox-close { position: absolute; top: 22px; right: 26px; width: 44px; height: 44px; border-radius: 999px; background: rgba(255,255,255,0.12); color: #fff; border: none; display: flex; align-items: center; justify-content: center; }
.lightbox-close:hover { background: rgba(255,255,255,0.24); }
.lightbox-close svg { width: 22px; height: 22px; }

/* ---------------- Shop toolbar / filters ---------------- */
.shop-page { padding: 40px 0 70px; }
.shop-header h1 { margin-bottom: 6px; }
.shop-header p { color: var(--text-muted); }
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin: 24px 0 6px; }
.filter-btn { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-muted); font-weight: 600; font-size: 0.86rem; }
.filter-btn.is-active { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.subfilter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.subfilter-btn { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border-soft); background: transparent; color: var(--text-muted); font-size: 0.8rem; font-weight: 600; }
.subfilter-btn.is-active { border-color: var(--accent); color: var(--accent-strong); background: var(--surface-2); }
.shop-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 20px 0 26px; flex-wrap: wrap; }
.shop-toolbar .toolbar-left { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.result-count { font-size: 0.86rem; color: var(--text-muted); }
.select-control, .price-input {
  padding: 9px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 0.86rem;
}
.price-filter { display: flex; align-items: center; gap: 8px; }
.price-filter input { width: 84px; }
.search-results-note { margin: 0 0 16px; font-size: 0.9rem; color: var(--text-muted); }
.search-results-note a { color: var(--accent-strong); font-weight: 600; }

/* ---------------- Forms ---------------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-weight: 600; font-size: 0.88rem; }
.form-field input, .form-field textarea, .form-field select {
  padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface);
  color: var(--text); font-family: inherit; font-size: 0.94rem;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { border-color: var(--accent); }
.form-field textarea { min-height: 130px; resize: vertical; }
.field-error { font-size: 0.8rem; color: var(--danger); min-height: 1em; }
.form-field.has-error input, .form-field.has-error textarea { border-color: var(--danger); }
.form-note { margin-top: 18px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface-2); color: var(--text); display: none; }
.form-note.is-visible { display: block; }
.form-note.is-error { color: var(--danger); background: rgba(214, 69, 69, 0.1); }

/* ---------------- Generic content page (About/Privacy/Terms) ---------------- */
.content-page { padding: 56px 0 80px; }
.content-page .page-header { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.content-page .page-header p { color: var(--text-muted); }
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin-top: 2em; font-size: 1.3rem; }
.prose p, .prose li { color: var(--text-muted); }
.prose ul { list-style: disc; padding-left: 1.4em; margin-bottom: 1em; }
.prose li { margin-bottom: 0.4em; }
.updated-note { text-align: center; color: var(--text-muted); font-size: 0.85rem; margin-bottom: 8px; }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin-bottom: 56px; }
.about-grid img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); width: 100%; aspect-ratio: 4/3.2; object-fit: cover; }
@media (max-width: 800px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------------- Contact page ---------------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.contact-info-card { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius-md); padding: 26px; }
.contact-info-card h2 { font-size: 1.1rem; }
.contact-info-card address { font-style: normal; display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.contact-info-row { display: flex; gap: 12px; align-items: flex-start; }
.contact-info-row svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.contact-info-row a, .contact-info-row span { color: var(--text-muted); font-size: 0.92rem; }
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; } }

/* ---------------- Checkout ---------------- */
.checkout-page { padding: 40px 0 80px; }
.checkout-steps { display: flex; gap: 10px; margin-bottom: 30px; flex-wrap: wrap; }
.checkout-step { padding: 8px 16px; border-radius: 999px; background: var(--surface-2); color: var(--text-muted); font-size: 0.82rem; font-weight: 700; }
.checkout-step.is-active { background: var(--accent); color: var(--on-accent); }
.checkout-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 34px; align-items: start; }
.checkout-form-card { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius-md); padding: 28px; }
.checkout-form-card h2 { font-size: 1.1rem; margin-top: 0; }
.checkout-form-card h2:not(:first-child) { margin-top: 30px; }
.order-review-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 16px; }
.order-review-item { display: flex; gap: 12px; align-items: center; }
.order-review-item img { width: 52px; height: 52px; object-fit: cover; border-radius: var(--radius-sm); background: var(--surface-2); }
.order-review-item .info { flex: 1; }
.order-review-item .name { font-weight: 700; font-size: 0.88rem; }
.order-review-item .meta { font-size: 0.8rem; color: var(--text-muted); }
.order-review-item .price { font-weight: 700; font-size: 0.88rem; white-space: nowrap; }
.confirmation-panel { text-align: center; padding: 60px 24px; background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); max-width: 620px; margin: 20px auto; }
.confirmation-panel .icon-wrap { width: 64px; height: 64px; border-radius: 999px; background: var(--surface-2); color: var(--success); display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.confirmation-panel .icon-wrap svg { width: 30px; height: 30px; }
.confirmation-panel h1 { font-size: 1.5rem; }
.order-number { font-weight: 700; color: var(--accent-strong); }
@media (max-width: 900px) { .checkout-layout { grid-template-columns: 1fr; } }

/* ---------------- 404 ---------------- */
.error-page { padding: 100px 24px 120px; text-align: center; }
.error-page .code { font-family: var(--font-display); font-size: clamp(4rem, 12vw, 7rem); font-weight: 800; color: var(--accent); line-height: 1; }
.error-page h1 { margin-top: 8px; }
.error-page p { color: var(--text-muted); max-width: 46ch; margin-left: auto; margin-right: auto; }
.error-page .actions { display: flex; gap: 14px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }

/* ---------------- Misc ---------------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
