/* ============================================================
   InKax.lk - Yellow Theme Storefront with Light/Dark Mode
   ============================================================ */

:root,
[data-theme="light"] {
  --yellow: #ffc400;
  --yellow-soft: #ffd54f;
  --yellow-pale: #fff6d6;
  --yellow-dark: #e6a700;
  --accent-text: #806000;
  --on-yellow: #111418;
  --dark-surface: #111418;
  --ink: #111418;
  --ink-2: #1c222b;
  --ink-3: #2b333d;
  --gray: #6b7280;
  --gray-2: #6b7280;
  --line: #dedede;
  --border: var(--line);
  --bg: #f7f7f7;
  --bg-elevated: #ffffff;
  --card-bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f9f9f9;
  --surface-3: #f1f1f1;
  --text: #1f2328;
  --text-2: #4f5760;
  --text-3: #6b7280;
  --text-primary: #1f2328;
  --text-secondary: #4f5760;
  --text-tertiary: #6b7280;
  --text-inverse: #ffffff;
  --white: #ffffff;
  --green: #16a34a;
  --red: #e11d48;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 30px rgba(17, 20, 24, .08);
  --shadow-lg: 0 22px 60px rgba(17, 20, 24, .16);
  --container: 1280px;
  --font: "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color-scheme: light;
}

[data-theme="dark"] {
  --yellow: #ffc400;
  --yellow-soft: #ffd54f;
  --yellow-pale: rgba(255, 196, 0, 0.12);
  --yellow-dark: #ffb300;
  --accent-text: #ffd54f;
  --ink: #f5f5f5;
  --ink-2: #c9c9c9;
  --ink-3: #9b9b9b;
  --gray: #9b9b9b;
  --gray-2: #a3a3a3;
  --line: #3a3a3a;
  --border: var(--line);
  --bg: #151515;
  --bg-elevated: #1e1e1e;
  --card-bg: #242424;
  --surface: #1e1e1e;
  --surface-2: #242424;
  --surface-3: #2d2d2d;
  --text: #f5f5f5;
  --text-2: #c9c9c9;
  --text-3: #9b9b9b;
  --text-primary: #f5f5f5;
  --text-secondary: #c9c9c9;
  --text-tertiary: #9b9b9b;
  --text-inverse: #111418;
  --white: #ffffff;
  --green: #22c55e;
  --red: #f43f5e;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .55);
  --shadow-lg: 0 22px 60px rgba(0, 0, 0, .7);
  --container: 1280px;
  --font: "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color-scheme: dark;
}

html {
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text-primary);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background .25s ease, color .25s ease;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input::placeholder, textarea::placeholder { color: var(--text-tertiary); opacity: 1; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, h5 { margin: 0 0 .5em; line-height: 1.2; font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 54px 0; }
.section-sm { padding: 34px 0; }
.muted { color: var(--gray); }
.text-center { text-align: center; }
.hidden { display: none !important; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 2px solid transparent; border-radius: 10px;
  padding: 12px 22px; font-weight: 700; font-size: 14px;
  transition: .18s ease; white-space: nowrap;
}
.btn-yellow { background: var(--yellow); color: #111418; }
.btn-yellow:hover { background: var(--yellow-dark); transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: var(--text-inverse); }
.btn-dark:hover { background: #000; transform: translateY(-1px); }
[data-theme="dark"] .btn-dark { background: #e6e8ea; color: #111418; }
[data-theme="dark"] .btn-dark:hover { background: #fff; }
.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--text-inverse); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--yellow); }
.btn-sm { padding: 9px 14px; font-size: 13px; }
.btn-block { width: 100%; }

/* ============================================================
   Top bar
   ============================================================ */
.topbar {
  background: var(--dark-surface); color: #e7e7e7; font-size: 12.5px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.topbar .container {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 38px; gap: 14px;
}
.topbar-left { display: flex; align-items: center; gap: 8px; font-weight: 600; letter-spacing: .2px; }
.topbar-left .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); }
.topbar-right { display: flex; align-items: center; gap: 6px; }
.social-link {
  width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 7px; color: #d8d8d8; transition: .15s; background: rgba(255,255,255,.05);
}
.social-link:hover { background: var(--yellow); color: var(--on-yellow); }
.social-link svg { width: 14px; height: 14px; }
.topbar-right .sep { width: 1px; height: 16px; background: rgba(255,255,255,.14); margin: 0 4px; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  background: var(--bg-elevated); position: sticky; top: 0; z-index: 80;
  box-shadow: 0 1px 0 var(--border);
  transition: background .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.header-main { display: flex; align-items: center; gap: 22px; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { height: 52px; width: auto; border-radius: 8px; object-fit: contain; }
.brand-name { font-size: 24px; font-weight: 900; letter-spacing: -.5px; line-height: 1; color: var(--text); }
.brand-name span { color: var(--text); }
.brand-tag { display: block; font-size: 10px; letter-spacing: 2.5px; color: var(--gray); font-weight: 700; text-transform: uppercase; margin-top: 4px; }

.search-wrap { flex: 1; max-width: 640px; }
.search-form {
  display: flex; align-items: stretch; border: 2px solid var(--yellow);
  border-radius: 11px; overflow: hidden; background: var(--card-bg);
}
.search-cat {
  border: 0; background: var(--surface-3); padding: 0 12px; font-size: 13px; font-weight: 600;
  color: var(--text-secondary); max-width: 165px; outline: none; border-right: 1px solid var(--border);
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23888'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; padding-right: 26px;
}
[data-theme="dark"] .search-cat {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23c9c9c9'/%3E%3C/svg%3E");
}
.search-input {
  flex: 1; border: 0; outline: none; padding: 13px 14px; font-size: 14px; min-width: 0;
  background: var(--card-bg); color: var(--text-primary);
}
.search-btn {
  border: 0; background: var(--yellow); padding: 0 20px; display: inline-flex;
  align-items: center; justify-content: center; color: #111418; transition: .15s;
}
.search-btn:hover { background: var(--yellow-dark); }
.search-btn svg { width: 19px; height: 19px; }

.header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; flex-shrink: 0; }
.header-action {
  display: flex; align-items: center; gap: 9px; padding: 8px 11px; border-radius: 10px;
  color: var(--text); transition: .15s; background: transparent; border: 0; position: relative;
}
.header-action:hover { background: var(--yellow-pale); }
.header-action svg { width: 22px; height: 22px; }
#themeToggle { padding: 8px 9px; }
.header-action .ha-text { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.header-action .ha-label { font-size: 10.5px; color: var(--gray); font-weight: 600; }
.header-action .ha-value { font-size: 13px; font-weight: 700; }
.cart-count {
  position: absolute; top: 2px; right: 4px; min-width: 18px; height: 18px; padding: 0 4px;
  background: var(--yellow); color: #111418; border-radius: 20px; font-size: 11px;
  font-weight: 800; display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--surface);
}
.menu-toggle { display: none; }

/* Nav */
.main-nav { border-top: 1px solid var(--border); background: var(--bg-elevated); transition: background .25s ease, border-color .25s ease; }
.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-list > li { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 6px; padding: 14px 15px;
  font-size: 14px; font-weight: 650; color: var(--text-2); border-bottom: 3px solid transparent;
  transition: .15s; cursor: pointer; background: none; border-top: 0; border-left: 0; border-right: 0;
}
.nav-link:hover, .nav-link.active { color: var(--text); border-bottom-color: var(--yellow); }
.nav-link .caret { width: 9px; height: 9px; opacity: .7; color: var(--text-2); }
.nav-link .badge-hot { background: var(--red); color: #fff; font-size: 9px; padding: 2px 6px; border-radius: 20px; font-weight: 800; letter-spacing: .3px; }

.nav-right { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav-phone { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; color: var(--text); padding: 0 8px; }
.nav-phone svg { width: 18px; height: 18px; color: var(--accent-text); }

/* Mega menu */
.mega {
  position: absolute; top: 100%; left: 0; width: 560px; background: var(--bg-elevated);
  border: 1px solid var(--border); border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-lg); padding: 20px; opacity: 0; visibility: hidden;
  transform: translateY(8px); transition: .18s; z-index: 40;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px 24px;
}
.mega.mega-wide { width: 720px; grid-template-columns: repeat(3, 1fr); }
.has-mega:hover > .mega { opacity: 1; visibility: visible; transform: translateY(0); }
.mega a { font-size: 13.5px; padding: 7px 8px; border-radius: 7px; color: var(--text-2); display: block; }
.mega a:hover { background: var(--yellow-pale); color: var(--text); font-weight: 600; }
.mega-title { font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--gray); font-weight: 800; padding: 4px 8px 8px; grid-column: 1 / -1; }

/* Mobile nav drawer */
.mobile-nav {
  position: fixed; inset: 0 auto 0 0; width: 320px; max-width: 88vw; background: var(--bg-elevated);
  z-index: 200; transform: translateX(-102%); transition: .25s ease; overflow-y: auto;
  box-shadow: var(--shadow-lg); padding: 0 0 30px;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.mobile-nav-head img { height: 40px; }
.mobile-nav a { display: flex; align-items: center; justify-content: space-between; padding: 13px 18px; border-bottom: 1px solid var(--border); font-weight: 600; font-size: 14.5px; color: var(--text-primary); }
.mobile-nav a:hover { background: var(--yellow-pale); }
.mobile-nav .sub a { padding-left: 34px; font-weight: 500; font-size: 13.5px; color: var(--text-secondary); }
.overlay {
  position: fixed; inset: 0; background: rgba(8, 10, 13, .55); backdrop-filter: blur(2px);
  z-index: 190; opacity: 0; visibility: hidden; transition: .25s;
}
.overlay.show { opacity: 1; visibility: visible; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative; background: #14181d; color: #fff; overflow: hidden;
  min-height: 460px; display: flex; align-items: center;
}
.hero-bg {
  position: absolute; inset: 0; background-image: url("../assets/banner.png");
  background-size: cover; background-position: center; transform: scale(1.01);
  z-index: 0;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,12,15,.92) 0%, rgba(10,12,15,.72) 42%, rgba(10,12,15,.18) 75%, rgba(10,12,15,.05) 100%);
  z-index: 1;
}
.hero .container { position: relative; z-index: 3; padding-top: 56px; padding-bottom: 56px; }
.hero-content { max-width: 600px; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px; background: var(--yellow);
  color: var(--on-yellow); font-size: 11.5px; font-weight: 800; letter-spacing: 1.6px;
  text-transform: uppercase; padding: 7px 13px; border-radius: 30px; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(34px, 5vw, 58px); font-weight: 900; letter-spacing: -1.5px; line-height: 1.03; margin-bottom: 16px; }
.hero h1 em { font-style: normal; color: var(--yellow); }
.hero p { font-size: 16px; color: #d6d9dd; max-width: 480px; margin-bottom: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-meta { display: flex; gap: 26px; margin-top: 34px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); flex-wrap: wrap; }
.hero-meta .hm { display: flex; flex-direction: column; }
.hero-meta .hm strong { font-size: 22px; font-weight: 900; color: var(--yellow); }
.hero-meta .hm span { font-size: 12px; color: #c6cbd1; }

/* ============================================================
   Category strip
   ============================================================ */
.cat-strip { margin-top: -42px; position: relative; z-index: 10; }
.cat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  background: var(--bg-elevated); border-radius: var(--radius); padding: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.cat-card {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 11px;
  transition: .18s; border: 1px solid transparent;
}
.cat-card:hover { background: var(--yellow-pale); border-color: var(--yellow-soft); transform: translateY(-2px); }
.cat-ico {
  width: 52px; height: 52px; border-radius: 13px; background: var(--yellow-pale);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--text-primary);
}
.cat-ico svg { width: 27px; height: 27px; }
.cat-card h3 { font-size: 14.5px; margin: 0 0 2px; color: var(--text-primary); }
.cat-card p { margin: 0; font-size: 12px; color: var(--text-tertiary); }

/* ============================================================
   Section headers
   ============================================================ */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 26px; }
.section-head .eyebrow { font-size: 11.5px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--accent-text); margin-bottom: 6px; }
.section-head h2 { font-size: clamp(23px, 2.6vw, 32px); letter-spacing: -.6px; margin: 0; }
.section-head p { margin: 6px 0 0; color: var(--gray); font-size: 14px; }
.section-link { font-size: 13.5px; font-weight: 800; display: inline-flex; align-items: center; gap: 7px; border-bottom: 2px solid var(--yellow); padding-bottom: 2px; }
.section-link:hover { color: var(--accent-text); }

/* ============================================================
   Products
   ============================================================ */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.product-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.product-card {
  background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line);
  overflow: hidden; display: flex; flex-direction: column; position: relative;
  transition: .2s; height: 100%;
}
.product-card:hover { box-shadow: var(--shadow); border-color: var(--yellow-soft); transform: translateY(-3px); }
.product-thumb { position: relative; background: linear-gradient(160deg, var(--surface-2), var(--surface-3)); aspect-ratio: 1 / 1; overflow: hidden; }
.product-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 16px; transition: .3s; }
.product-card:hover .product-thumb img { transform: scale(1.05); }
.badge {
  position: absolute; top: 12px; left: 12px; z-index: 3; font-size: 10.5px; font-weight: 800;
  letter-spacing: .6px; text-transform: uppercase; padding: 5px 9px; border-radius: 6px;
  background: var(--ink); color: var(--text-inverse);
}
.badge.sale { background: var(--red); color: #fff; }
.badge.new { background: var(--green); color: #fff; }
.badge.hot { background: var(--yellow); color: #111418; }
.product-actions { position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; gap: 7px; z-index: 3; opacity: 0; transform: translateX(6px); transition: .18s; }
.product-card:hover .product-actions { opacity: 1; transform: translateX(0); }
.icon-btn {
  width: 34px; height: 34px; border-radius: 9px; background: rgba(255,255,255,.94); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; color: #111418; transition: .15s;
}
[data-theme="dark"] .icon-btn:not(:hover) { background: rgba(21,27,35,.94); color: var(--text); }
.icon-btn:hover { background: var(--yellow); border-color: var(--yellow); color: #111418; }
.icon-btn svg { width: 16px; height: 16px; }
.product-body { padding: 15px 16px 17px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.product-cat { font-size: 10.5px; text-transform: uppercase; letter-spacing: 1px; color: var(--gray-2); font-weight: 700; }
.product-title { font-size: 14.5px; font-weight: 700; margin: 0; line-height: 1.35; color: var(--text); }
.product-title a:hover { color: var(--accent-text); }
.stars { display: flex; align-items: center; gap: 3px; font-size: 11px; color: #f59e0b; }
.stars svg { width: 12px; height: 12px; }
.stars .rc { color: var(--gray-2); margin-left: 3px; }
.price-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.price { font-size: 17px; font-weight: 900; letter-spacing: -.3px; white-space: nowrap; color: var(--text); }
.price-old { font-size: 12.5px; color: var(--gray-2); text-decoration: line-through; }
.add-btn { margin-top: 9px; }
.add-btn .btn { width: 100%; padding: 9px 10px; font-size: 12.5px; }

/* Shop layout */
.shop-layout { display: grid; grid-template-columns: 268px 1fr; gap: 26px; align-items: start; }
.sidebar { position: sticky; top: 130px; display: flex; flex-direction: column; gap: 16px; }
.widget { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.widget-head { padding: 14px 17px; font-size: 14px; font-weight: 800; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; cursor: pointer; color: var(--text); }
.widget-head .chev { width: 14px; height: 14px; transition: .2s; }
.widget.collapsed .widget-body { display: none; }
.widget.collapsed .chev { transform: rotate(-90deg); }
.widget-body { padding: 12px 17px 16px; }
.cat-list li a { display: flex; align-items: center; justify-content: space-between; padding: 7px 0; font-size: 13.5px; color: var(--text-2); border-bottom: 1px dashed var(--line); }
.cat-list li:last-child a { border-bottom: 0; }
.cat-list li a:hover { color: var(--accent-text); }
.cat-list .cnt { font-size: 11px; color: var(--gray-2); background: var(--surface-3); padding: 2px 7px; border-radius: 20px; }
.cat-list li a.active { font-weight: 800; color: var(--text); }
.cat-list li a.active .cnt { background: var(--yellow); color: #111418; }

.price-filter { display: flex; gap: 8px; align-items: flex-end; }
.price-filter .field { flex: 1; }
.price-filter label { font-size: 11px; color: var(--gray); display: block; margin-bottom: 4px; font-weight: 600; }
.price-filter input { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; outline: none; background: var(--surface); color: var(--text); }
.price-filter input:focus { border-color: var(--yellow); }

.filter-list label { display: flex; align-items: center; gap: 9px; padding: 6px 0; font-size: 13.5px; cursor: pointer; color: var(--text-2); }
.filter-list label:hover { color: var(--text); }
.filter-list input[type="checkbox"], .filter-list input[type="radio"] { accent-color: var(--accent-text); width: 16px; height: 16px; }
.filter-list .cnt { margin-left: auto; font-size: 11px; color: var(--gray-2); }

.top-rated { display: flex; flex-direction: column; gap: 12px; }
.tr-item { display: flex; gap: 10px; align-items: center; }
.tr-item img { width: 54px; height: 54px; border-radius: 8px; background: #f4f4f0; object-fit: contain; }
.tr-item .tr-name { font-size: 12.5px; font-weight: 650; line-height: 1.3; }
.tr-item .tr-price { font-size: 12px; font-weight: 800; margin-top: 2px; }

.shop-toolbar {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 16px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 20px;
}
.shop-toolbar .count { font-size: 13px; color: var(--gray); }
.shop-toolbar .spacer { flex: 1; }
.toolbar-group { display: flex; align-items: center; gap: 8px; }
.toolbar-group label { font-size: 12.5px; color: var(--gray); }
.select {
  padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface);
  font-size: 13px; font-family: inherit; color: var(--text); outline: none; cursor: pointer;
}
.select:focus { border-color: var(--yellow); }
.view-btns { display: flex; gap: 5px; }
.view-btn { width: 34px; height: 34px; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--gray); }
.view-btn.active, .view-btn:hover { background: var(--yellow); border-color: var(--yellow); color: #111418; }
.view-btn svg { width: 15px; height: 15px; }
.shop-grid.grid-3 { grid-template-columns: repeat(3, 1fr); }
.shop-grid.grid-4 { grid-template-columns: repeat(4, 1fr); }
.empty-state { padding: 60px 20px; text-align: center; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); }
.empty-state h3 { font-size: 20px; color: var(--text); }
.pagination { display: flex; justify-content: center; gap: 7px; margin-top: 30px; }
.page-btn { min-width: 38px; height: 38px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; font-size: 13px; color: var(--text); }
.page-btn:hover { border-color: var(--yellow); }
.page-btn.active { background: var(--yellow); border-color: var(--yellow); color: var(--on-yellow); }
.page-btn:disabled { opacity: .4; cursor: not-allowed; }

/* Breadcrumb */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--gray); padding: 18px 0; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--accent-text); }
.breadcrumb .sep { opacity: .5; }

.page-hero { background: var(--dark-surface); color: #fff; padding: 42px 0; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(255,196,0,.35), transparent 68%); }
.page-hero h1 { font-size: clamp(28px, 3.4vw, 42px); letter-spacing: -1px; margin: 0; }
.page-hero p { color: #c8cdd3; margin: 8px 0 0; max-width: 620px; }
.page-hero .container { position: relative; z-index: 2; }

/* ============================================================
   Confidence / features
   ============================================================ */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature {
  display: flex; align-items: center; gap: 14px; background: var(--bg-elevated);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow);
}
.feature:hover { border-color: var(--yellow-soft); box-shadow: var(--shadow); }
.feature-ico { width: 46px; height: 46px; border-radius: 12px; background: var(--yellow-pale); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--text); }
.feature-ico svg { width: 24px; height: 24px; }
.feature h3 { font-size: 14px; margin: 0 0 4px; color: var(--text); }
.feature p { font-size: 12.5px; color: var(--gray); margin: 0; line-height: 1.45; }

/* ============================================================
   Promo split
   ============================================================ */
.promo-split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; }
.promo-card { border-radius: var(--radius); padding: 38px; position: relative; overflow: hidden; min-height: 250px; display: flex; flex-direction: column; justify-content: center; }
.promo-card.dark { background: var(--dark-surface); color: #fff; }
.promo-card.dark::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(255,196,0,.45), transparent 70%); }
.promo-card.yellow { background: linear-gradient(135deg, var(--yellow), var(--yellow-soft)); color: var(--on-yellow); }
.promo-card .eyebrow { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; font-weight: 800; opacity: .8; margin-bottom: 8px; }
.promo-card h2 { font-size: clamp(24px, 3vw, 36px); letter-spacing: -.8px; max-width: 420px; }
.promo-card p { font-size: 14px; max-width: 400px; color: inherit; opacity: .85; }
.promo-card .btn { align-self: flex-start; margin-top: 8px; position: relative; z-index: 2; }

/* ============================================================
   Brands
   ============================================================ */
.brand-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.brand-tile {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 12px; text-align: center; transition: .18s; display: flex;
  flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 96px;
}
.brand-tile:hover { border-color: var(--yellow); background: var(--yellow-pale); transform: translateY(-2px); }
.brand-tile .bt-name { font-size: 14px; font-weight: 800; letter-spacing: .2px; color: var(--text); }
.brand-tile .bt-sub { font-size: 10.5px; color: var(--gray); text-transform: uppercase; letter-spacing: 1px; }

/* ============================================================
   Reviews
   ============================================================ */
.reviews-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.review-summary { display: flex; align-items: center; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 22px; }
.review-summary .rs-score { font-size: 40px; font-weight: 900; line-height: 1; color: var(--text); }
.review-summary .rs-meta { font-size: 12px; color: var(--gray); }
.google-badge { display: inline-flex; align-items: center; gap: 7px; font-weight: 800; font-size: 14px; color: var(--text); }
.google-badge svg { width: 18px; height: 18px; }
.review-track { display: flex; gap: 16px; overflow-x: auto; padding: 4px 2px 18px; scroll-snap-type: x mandatory; }
.review-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
  min-width: 320px; max-width: 340px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 10px;
}
.review-top { display: flex; align-items: center; gap: 10px; }
.review-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--yellow); display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 15px; color: #111418; }
.review-name { font-size: 13.5px; font-weight: 700; color: var(--text); }
.review-date { font-size: 11px; color: var(--gray-2); }
.review-text { font-size: 13px; color: var(--text-3); line-height: 1.6; margin: 0; }
.review-card .g-logo { margin-left: auto; opacity: .85; }

/* ============================================================
   Footer
   ============================================================ */
.cta-band { background: var(--dark-surface); color: #fff; border-radius: var(--radius); padding: 34px 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: 10%; top: -60px; width: 260px; height: 260px; background: radial-gradient(circle, rgba(255,196,0,.3), transparent 70%); }
.cta-band .eyebrow { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--yellow); font-weight: 800; margin-bottom: 6px; }
.cta-band h2 { font-size: clamp(22px, 2.6vw, 32px); margin: 0 0 6px; letter-spacing: -.7px; }
.cta-band p { color: #c7ccd2; margin: 0; font-size: 13.5px; }
.cta-band .btn { position: relative; z-index: 2; }

.site-footer { background: var(--dark-surface); color: #cbd0d6; font-size: 13.5px; margin-top: 0; }
.site-footer .footer-top { display: grid; grid-template-columns: 1.4fr .9fr .9fr 1.1fr; gap: 34px; padding: 48px 0 40px; }
.footer-brand img { height: 54px; width: auto; background: #fff; border-radius: 9px; padding: 5px 8px; margin-bottom: 14px; }
.footer-brand p { color: #9aa3ad; font-size: 13px; max-width: 300px; }
.footer-title { color: #fff; font-size: 14px; font-weight: 800; margin-bottom: 16px; letter-spacing: .2px; }
.footer-links li { margin-bottom: 9px; }
.footer-links a { color: #9aa3ad; transition: .15s; }
.footer-links a:hover { color: var(--yellow); padding-left: 3px; }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 12px; color: #9aa3ad; }
.footer-contact svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; color: var(--yellow); }
.footer-contact a:hover { color: var(--yellow); }
.footer-socials { display: flex; gap: 8px; margin-top: 16px; }
.footer-socials .social-link { background: rgba(255,255,255,.07); color: #d8d8d8; }
.footer-socials .social-link:hover { background: var(--yellow); color: #111418; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.09); padding: 18px 0; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 12px; color: #8b95a0; }
.footer-bottom strong { color: var(--yellow); }
.pay-badges { display: flex; gap: 6px; align-items: center; }
.pay-badges span { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); border-radius: 5px; padding: 4px 8px; font-size: 10px; font-weight: 700; color: #d6dbe0; letter-spacing: .3px; }

/* ============================================================
   Cart drawer
   ============================================================ */
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 400px; max-width: 92vw; background: var(--surface);
  z-index: 210; transform: translateX(102%); transition: .25s ease; display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg);
}
.cart-drawer.open { transform: translateX(0); }
.cart-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.cart-drawer-head h3 { margin: 0; font-size: 17px; color: var(--text); }
.cart-drawer-body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.cart-drawer-foot { border-top: 1px solid var(--line); padding: 18px 20px; }
.cart-line { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-line:last-child { border-bottom: 0; }
.cart-line img { width: 62px; height: 62px; border-radius: 9px; background: var(--surface-3); object-fit: contain; }
.cart-line-main { flex: 1; min-width: 0; }
.cart-line-name { font-size: 13px; font-weight: 700; line-height: 1.3; color: var(--text); }
.cart-line-price { font-size: 12.5px; font-weight: 800; margin-top: 3px; color: var(--text); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.qty button { width: 28px; height: 28px; border: 0; background: var(--surface-3); font-weight: 800; color: var(--text); }
.qty button:hover { background: var(--yellow); color: #111418; }
.qty span { min-width: 30px; text-align: center; font-size: 12.5px; font-weight: 700; color: var(--text); }
.cart-line .rm { border: 0; background: none; color: var(--gray-2); padding: 4px; }
.cart-line .rm:hover { color: var(--red); }
.cart-line .rm svg { width: 15px; height: 15px; }
.cart-totals { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 14px; font-weight: 700; color: var(--text); }
.cart-empty { text-align: center; padding: 50px 10px; color: var(--gray); }
.cart-empty svg { width: 54px; height: 54px; color: var(--gray-2); margin-bottom: 12px; }

/* ============================================================
   Product detail
   ============================================================ */
.pd-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: start; }
.pd-gallery { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; position: sticky; top: 130px; }
.pd-main-img { background: linear-gradient(160deg, var(--surface-2), var(--surface-3)); border-radius: 11px; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pd-main-img img { width: 100%; height: 100%; object-fit: contain; padding: 24px; }
.pd-thumbs { display: flex; gap: 9px; margin-top: 12px; }
.pd-thumb { width: 68px; height: 68px; border: 2px solid var(--line); border-radius: 9px; background: var(--surface-2); overflow: hidden; cursor: pointer; }
.pd-thumb.active { border-color: var(--yellow); }
.pd-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }

.pd-info .product-cat { font-size: 11px; }
.pd-info h1 { font-size: clamp(24px, 3vw, 34px); letter-spacing: -.7px; margin: 6px 0 10px; color: var(--text); }
.pd-rating strong { color: var(--text); }
.pd-rating { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--gray); margin-bottom: 16px; }
.pd-price { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.pd-price .price { font-size: 32px; color: var(--text); }
.pd-price .save { background: var(--yellow-pale); color: var(--accent-text); font-size: 11.5px; font-weight: 800; padding: 4px 9px; border-radius: 6px; }
.pd-stock { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; color: var(--green); background: rgba(34, 197, 94, 0.15); padding: 5px 11px; border-radius: 20px; margin-bottom: 18px; }
.pd-stock.out { color: var(--red); background: rgba(244, 63, 94, 0.15); }
.pd-stock .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pd-desc { font-size: 14px; color: var(--text-3); line-height: 1.65; }
.pd-highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; margin: 18px 0; }
.pd-highlights li { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--text-2); }
.pd-highlights svg { width: 15px; height: 15px; color: var(--accent-text); flex-shrink: 0; margin-top: 3px; }
.pd-buy { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.pd-buy .qty button { width: 36px; height: 40px; }
.pd-buy .qty span { min-width: 40px; font-size: 14px; }
.pd-buy .btn-yellow { padding: 13px 30px; }
.pd-meta { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--gray); display: flex; flex-direction: column; gap: 7px; }
.pd-meta strong { color: var(--text); }
.pd-tabs { margin-top: 34px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tab-btns { display: flex; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tab-btn { padding: 15px 22px; border: 0; background: none; font-weight: 700; font-size: 13.5px; color: var(--gray); border-bottom: 3px solid transparent; white-space: nowrap; }
.tab-btn.active { color: var(--text); border-bottom-color: var(--yellow); }
.tab-panel { padding: 24px; font-size: 14px; color: var(--text-3); }
.tab-panel h3 { font-size: 16px; color: var(--text); }
.spec-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.spec-table tr { border-bottom: 1px solid var(--line); }
.spec-table tr:last-child { border-bottom: 0; }
.spec-table th { text-align: left; width: 220px; padding: 11px 14px; background: var(--surface-2); font-weight: 700; color: var(--text); }
.spec-table td { padding: 11px 14px; color: var(--text-3); }

/* ============================================================
   Cart page
   ============================================================ */
.cart-page-layout { display: grid; grid-template-columns: 1fr 360px; gap: 26px; align-items: start; }
.cart-table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cart-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cart-table thead th { text-align: left; padding: 14px 18px; background: var(--surface-2); font-size: 12px; text-transform: uppercase; letter-spacing: .8px; color: var(--gray); border-bottom: 1px solid var(--line); }
.cart-table td { padding: 16px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; color: var(--text); }
.cart-table tbody tr:last-child td { border-bottom: 0; }
.cart-prod { display: flex; align-items: center; gap: 14px; }
.cart-prod img { width: 72px; height: 72px; border-radius: 9px; background: var(--surface-3); object-fit: contain; }
.cart-prod .cp-name { font-weight: 700; font-size: 13.5px; color: var(--text); }
.cart-prod .cp-cat { font-size: 11px; color: var(--gray-2); text-transform: uppercase; letter-spacing: .6px; }
.cart-summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: sticky; top: 130px; }
.cart-summary h3 { font-size: 17px; margin-bottom: 16px; color: var(--text); }
.summary-row { display: flex; justify-content: space-between; font-size: 13.5px; padding: 8px 0; color: var(--text-3); }
.summary-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-size: 17px; font-weight: 900; color: var(--text); }
.cart-summary .btn { margin-top: 14px; }

/* ============================================================
   Account page
   ============================================================ */
.account-wrap { max-width: 460px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.account-tabs { display: flex; background: var(--surface-3); border-radius: 10px; padding: 4px; margin-bottom: 24px; }
.account-tab { flex: 1; border: 0; background: none; padding: 10px; font-weight: 700; font-size: 13px; border-radius: 8px; color: var(--gray); }
.account-tab.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; font-size: 12.5px; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px;
  font-family: inherit; font-size: 14px; outline: none; background: var(--surface); color: var(--text);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(255,196,0,.18); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-note { font-size: 12px; color: var(--gray); }
.check-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }
.check-row input { width: 16px; height: 16px; accent-color: var(--accent-text); }
.account-divider { display: flex; align-items: center; gap: 12px; color: var(--gray-2); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; margin: 20px 0; }
.account-divider::before, .account-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.social-login { display: flex; gap: 10px; }
.social-login .btn { flex: 1; }

/* ============================================================
   Contact
   ============================================================ */
.contact-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 26px; align-items: start; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.contact-card h2 { font-size: 22px; color: var(--text); }
.contact-info-list { display: flex; flex-direction: column; gap: 18px; }
.contact-info-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-info-item .ci-ico { width: 44px; height: 44px; border-radius: 11px; background: var(--yellow-pale); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--text); }
.contact-info-item .ci-ico svg { width: 20px; height: 20px; }
.contact-info-item h4 { margin: 0 0 3px; font-size: 13.5px; color: var(--text); }
.contact-info-item p, .contact-info-item a { margin: 0; font-size: 13px; color: var(--gray); }
.contact-info-item a:hover { color: var(--accent-text); }

.faq-list { display: flex; flex-direction: column; gap: 11px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 11px; overflow: hidden; }
.faq-q { width: 100%; text-align: left; border: 0; background: none; padding: 17px 20px; font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: space-between; gap: 14px; color: var(--text); }
.faq-q .plus { width: 22px; height: 22px; border-radius: 50%; background: var(--yellow-pale); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 15px; font-weight: 800; transition: .2s; color: var(--text); }
.faq-item.open .faq-q .plus { background: var(--yellow); color: #111418; transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .28s ease; }
.faq-a p { padding: 0 20px 18px; margin: 0; font-size: 13.5px; color: var(--text-3); line-height: 1.65; }
.faq-item.open .faq-a { max-height: 400px; }

.branch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.branch-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; transition: .18s; }
.branch-card:hover { border-color: var(--yellow); box-shadow: var(--shadow); }
.branch-card h3 { font-size: 15px; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; color: var(--text); }
.branch-card h3 svg { width: 16px; height: 16px; color: var(--accent-text); }
.branch-card p { font-size: 12.5px; color: var(--gray); margin-bottom: 12px; }
.branch-card a { font-size: 12.5px; font-weight: 800; color: var(--accent-text); }

/* ============================================================
   Achievements
   ============================================================ */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; text-align: center; }
.stat-card strong { display: block; font-size: 36px; font-weight: 900; letter-spacing: -1px; color: var(--accent-text); line-height: 1; }
.stat-card span { font-size: 12.5px; color: var(--gray); font-weight: 600; }
.achievement-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.achievement-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.achievement-card .ac-img { aspect-ratio: 16 / 10; background: linear-gradient(160deg, var(--yellow-pale), rgba(255,196,0,.25)); display: flex; align-items: center; justify-content: center; }
.achievement-card .ac-img svg { width: 64px; height: 64px; color: var(--text); opacity: .85; }
.achievement-card .ac-body { padding: 18px 20px; }
.achievement-card h3 { font-size: 15px; color: var(--text); }
.achievement-card p { font-size: 12.5px; color: var(--gray); margin: 0; }

/* ============================================================
   Toast
   ============================================================ */
.toast-wrap { position: fixed; bottom: 22px; right: 22px; z-index: 300; display: flex; flex-direction: column; gap: 9px; }
.toast { background: var(--dark-surface); color: #fff; padding: 12px 18px; border-radius: 10px; font-size: 13px; font-weight: 600; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 9px; animation: toastIn .25s ease; }
.toast svg { width: 16px; height: 16px; color: var(--yellow); }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Back to top */
.to-top { color: var(--on-yellow); position: fixed; right: 22px; bottom: 22px; width: 44px; height: 44px; border-radius: 12px; background: var(--yellow); border: 0; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); z-index: 80; opacity: 0; visibility: hidden; transition: .2s; }
.to-top.show { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--yellow-dark); }
.to-top svg { width: 20px; height: 20px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .brand-grid { grid-template-columns: repeat(4, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .header-action .ha-text { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .shop-grid.grid-4 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .search-wrap { display: none; }
  .menu-toggle { display: inline-flex; }
  .main-nav { display: none; }
  .header-actions { gap: 4px; }
  .header-action { padding: 7px 8px; }
  .header-main { gap: 12px; }
  .brand img { height: 44px; }
  .shop-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .pd-layout { grid-template-columns: 1fr; }
  .pd-gallery { position: static; }
  .cart-page-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .contact-layout { grid-template-columns: 1fr; }
  .promo-split { grid-template-columns: 1fr; }
  .branch-grid { grid-template-columns: repeat(2, 1fr); }
  .achievement-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-band { padding: 28px; }
}
@media (max-width: 680px) {
  .product-grid, .shop-grid.grid-3, .shop-grid.grid-4 { grid-template-columns: repeat(2, 1fr); }
  .product-grid { gap: 12px; }
  .product-body { padding: 12px 12px 14px; }
  .product-title { font-size: 13px; }
  .price { font-size: 15px; }
  .features { grid-template-columns: 1fr; }
  .brand-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px; }
  .cat-card { padding: 8px 6px; gap: 9px; }
  .cat-ico { width: 42px; height: 42px; }
  .cat-card h3 { font-size: 12.5px; }
  .cat-card p { display: none; }
  .hero { min-height: 420px; }
  .hero-meta { gap: 18px; }
  .hero-meta .hm strong { font-size: 18px; }
  .section { padding: 40px 0; }
  .topbar-right { display: none; }
  .header-actions .header-action:nth-child(n+4) { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .cart-table thead { display: none; }
  .cart-table, .cart-table tbody, .cart-table tr, .cart-table td { display: block; width: 100%; }
  .cart-table tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
  .cart-table td { border-bottom: 0; padding: 8px 16px; }
  .cart-prod img { width: 58px; height: 58px; }
  .branch-grid { grid-template-columns: 1fr; }
  .achievement-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 24px; }
  .pd-highlights { grid-template-columns: 1fr; }
  .review-card { min-width: 280px; }
  .brand-grid { gap: 9px; }
}

@media (max-width: 420px) {
  .product-grid, .shop-grid.grid-3 { gap: 10px; }
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr; }
}

/* ============================================================
   Legal / content pages
   ============================================================ */
.legal-wrap { max-width: 880px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 38px 40px; }
.legal-wrap h2 { font-size: 20px; margin: 28px 0 10px; color: var(--text); }
.legal-wrap h2:first-child { margin-top: 0; }
.legal-wrap p, .legal-wrap li { font-size: 14px; color: var(--text-3); line-height: 1.75; }
.legal-wrap ul { list-style: disc; padding-left: 22px; margin-bottom: 16px; }
.legal-wrap ul li { margin-bottom: 6px; }
.legal-meta { font-size: 12.5px; color: var(--gray); margin-bottom: 22px; }
@media (max-width: 600px) { .legal-wrap { padding: 26px 22px; } }

/* Quick view */
.quickview { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -48%) scale(.98); width: min(880px, calc(100vw - 24px)); background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-lg); z-index: 4000; opacity: 0; pointer-events: none; transition: .18s; max-height: calc(100vh - 40px); display: flex; flex-direction: column; }
.quickview.open { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
.quickview-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.quickview-head h3 { margin: 0; font-size: 17px; color: var(--text); }
.quickview-body { padding: 22px; overflow: auto; }
.qv-grid { display: grid; grid-template-columns: 380px 1fr; gap: 26px; align-items: start; }
.qv-img { border: 1px solid var(--line); border-radius: 14px; padding: 18px; background: radial-gradient(circle at 50% 10%, var(--yellow-pale), var(--surface-2)); display: flex; align-items: center; justify-content: center; }
.qv-img img { width: 100%; max-width: 320px; }
.qv-title { font-size: 24px; margin: 8px 0 10px; color: var(--text); }
@media (max-width: 760px) { .qv-grid { grid-template-columns: 1fr; } .quickview-body { padding: 16px; } }

/* Small action buttons */
.icon-btn-sm { width: 30px; height: 30px; }
.icon-btn-sm svg { width: 14px; height: 14px; }
.product-actions { gap: 5px; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-sm svg { width: 16px; height: 16px; }

/* Keep the footer wordmark readable on its permanent dark surface. */
.site-footer .brand-name, .site-footer .brand-name span { color: #f5f5f5; }

.branch-card-yellow { background: var(--yellow); border-color: var(--yellow); }
.branch-card-yellow h3, .branch-card-yellow h3 svg, .branch-card-yellow p, .branch-card-yellow a { color: var(--on-yellow); }
