/* ======= Reset & tokens ======= */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
:root {
  --brand-navy: #11114e;
  --brand-navy-soft: #1c1f73;
  --brand-navy-muted: #343a8d;
  --brand-ice: #f3f5ff;
  --brand-sky: #e7ebff;
  --brand-accent: #11114e;
  --brand-accent-strong: #07073a;
  --surface: #ffffff;
  --surface-2: rgba(255, 255, 255, 0.94);
  --surface-3: rgba(17, 17, 78, 0.08);
  --text-900: #11114e;
  --text-700: #313779;
  --text-500: #535aa0;
  --text-inverse: #ffffff;
  --border: rgba(17, 17, 78, 0.12);
  --shadow-lg: 0 26px 60px rgba(17, 17, 78, 0.12);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body { background: #f8faff; color: var(--text-900); }
body.nav-locked { overflow: hidden; }

.container { width: min(1180px, 92vw); margin: 0 auto; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.store-body { display: flex; flex-direction: column; min-height: 100vh; }

/* ======= Promo strip ======= */
.promo-strip { background: linear-gradient(90deg, var(--brand-accent) 0%, var(--brand-accent-strong) 100%); color: var(--text-inverse); font-size: 14px; }
.promo-strip-inner { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 10px 0; text-align: center; flex-wrap: wrap; }
.promo-strip-inner p { flex: 1 1 auto; margin: 0; }
.promo-badge { background: rgba(255, 255, 255, 0.18); border-radius: 999px; padding: 6px 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; font-size: 11px; }
.promo-link { color: var(--text-inverse); text-decoration: none; font-weight: 600; border-bottom: 1px solid rgba(255, 255, 255, 0.4); padding-bottom: 2px; text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px; }
.promo-link:hover { border-color: rgba(255, 255, 255, 0.75); }

/* ======= Buttons ======= */
.btn {
  border-radius: 12px;
  border: none;
  padding: 0 22px;
  height: 44px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

button:disabled,
.btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-accent), var(--brand-accent-strong));
  color: var(--text-inverse);
  box-shadow: 0 18px 38px rgba(17, 17, 78, 0.28);
}

#pdAddBtn.btn-primary {
  background: linear-gradient(135deg, #ff4d4d, #d61f1f);
  box-shadow: 0 18px 38px rgba(214, 31, 31, 0.28);
}

.btn-secondary {
  background: var(--brand-navy);
  color: var(--text-inverse);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(17, 17, 78, 0.3);
  color: var(--brand-navy);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-900);
}

.btn-block { width: 100%; }

.link-btn {
  background: transparent;
  border: none;
  color: var(--brand-accent-strong);
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

/* ======= Header ======= */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid rgba(17, 17, 78, 0.06);
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 34px rgba(17, 17, 78, 0.05);
}

.topbar {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 0;
  flex-wrap: wrap;
}

.brand-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1 1 auto;
  min-width: 260px;
  flex-wrap: nowrap;
}

.brand {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-transform: none;
  letter-spacing: normal;
  min-width: 0;
}

.brand-logo { height: 38px; width: auto; display: block; }
.brand-text,
.brand-mark { color: var(--brand-navy); font-weight: 800; font-size: 20px; letter-spacing: 0.06em; text-transform: uppercase; }

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  position: relative;
  transition: transform 0.3s ease, opacity 0.3s ease;
  flex: 1 1 auto;
}

.header-search {
  flex: 1 1 380px;
  min-width: 220px;
}

.nav-link {
  background: transparent;
  border: none;
  color: var(--text-700);
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.nav-link:hover { color: var(--brand-accent); }

.dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  width: 320px;
  background: var(--surface);
  border: 1px solid rgba(17, 17, 78, 0.08);
  border-radius: 18px;
  box-shadow: 0 28px 54px rgba(17, 17, 78, 0.1);
  padding: 18px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 60;
}

.dropdown.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.dropdown-head { margin-bottom: 16px; }
.dropdown-head strong { color: var(--text-900); font-size: 15px; }
.dropdown-head p { color: var(--text-500); font-size: 13px; margin-top: 6px; }

.dropdown-list { display: grid; gap: 8px; max-height: 360px; overflow: auto; }

.drop-item {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--text-700);
  font-weight: 500;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.drop-item:hover,
.drop-item.active { border-color: rgba(17, 17, 78, 0.35); background: rgba(17, 17, 78, 0.12); }
.drop-text { display: grid; gap: 2px; text-align: left; }
.drop-title { font-size: 14px; color: var(--text-700); }
.drop-desc { font-size: 12px; color: var(--text-500); line-height: 1.3; }
.drop-count { font-size: 12px; color: rgba(17, 17, 78, 0.6); }

.top-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.nav-toggle { display: none; align-self: center; }

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 78, 0.32);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 30;
}

.site-header.nav-open .nav-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(17, 17, 78, 0.12);
  background: var(--surface);
  position: relative;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(17, 17, 78, 0.08);
}

.icon-menu::before,
.icon-menu::after,
.icon-menu span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--brand-navy);
  border-radius: 999px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.icon-menu {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 100%;
  height: 100%;
}

.icon-menu::before,
.icon-menu::after {
  content: "";
}

.site-header.nav-open .icon-menu::before {
  transform: translateY(7px) rotate(45deg);
}

.site-header.nav-open .icon-menu::after {
  transform: translateY(-7px) rotate(-45deg);
}

.site-header.nav-open .icon-menu span {
  opacity: 0;
}

.icon-bag::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 18px;
  height: 18px;
  background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" fill="%2311114e" viewBox="0 0 24 24"%3E%3Cpath d="M7 9V7a5 5 0 0 1 10 0v2h3v13H4V9h3zm2-2v2h6V7a3 3 0 0 0-6 0z"/%3E%3C/svg%3E') center/contain no-repeat;
}

.badge-count {
  position: absolute;
  top: -6px;
  right: -4px;
  background: var(--brand-accent);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  border-radius: 999px;
  padding: 0 8px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--surface);
}

.header-search .search-box {
  position: relative;
  flex: 1 1 auto;
}

.header-search .search-box input {
  width: 100%;
  height: 52px;
  border-radius: 16px;
  border: 1px solid rgba(17, 17, 78, 0.12);
  background: var(--surface);
  color: var(--text-900);
  padding: 0 18px 0 52px;
  font-size: 16px;
  box-shadow: 0 14px 32px rgba(17, 17, 78, 0.05);
}

.header-search .search-box input::placeholder { color: rgba(49, 55, 121, 0.55); }

.header-search .search-ico {
  position: absolute;
  left: 20px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" fill="%2311114e" viewBox="0 0 24 24"%3E%3Cpath d="M10 2a8 8 0 0 1 6.32 12.9l4.39 4.39-1.41 1.41-4.39-4.39A8 8 0 1 1 10 2zm0 2a6 6 0 1 0 0 12 6 6 0 0 0 0-12z"/%3E%3C/svg%3E') center/contain no-repeat;
}

/* ======= Hero ======= */
.hero {
  padding: 12px 0 24px;
  color: var(--text-900);
  background: linear-gradient(180deg, rgba(17, 17, 78, 0.05) 0%, #ffffff 60%, rgba(17, 17, 78, 0.08) 100%);
}

.hero-banner {
  display: grid;
  gap: 24px;
}


.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 12px;
  color: rgba(17, 17, 78, 0.55);
}

.hero-stage {
  position: relative;
  min-height: clamp(200px, 26vw, 300px);
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(17, 17, 78, 0.16), rgba(17, 17, 78, 0.04));
  box-shadow: 0 26px 50px rgba(17, 17, 78, 0.12);
}
.hero-placeholder { display: grid; place-items: center; height: 100%; color: rgba(49, 55, 121, 0.6); font-size: 14px; padding: 24px; text-align: center; }
.hero-frame { position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s ease; }
.hero-frame.active { opacity: 1; }
.hero-picture,
.hero-picture picture,
.hero-picture img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-picture { position: relative; height: 100%; }
.hero-img { width: 100%; height: 100%; object-fit: cover; }
.hero-caption { position: absolute; bottom: 24px; left: 24px; background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(6px); color: var(--brand-navy); padding: 16px 18px; border-radius: 16px; display: grid; gap: 4px; border: 1px solid rgba(17, 17, 78, 0.08); }
.hero-caption strong { font-size: 18px; }
.hero-caption span { font-size: 12px; opacity: 0.7; }
.hero-dots { display: flex; gap: 10px; align-items: center; justify-content: center; }
.hero-dots .dot { width: 10px; height: 10px; border-radius: 999px; border: none; background: rgba(17, 17, 78, 0.18); cursor: pointer; transition: width 0.2s ease, background 0.2s ease; }
.hero-dots .dot.active { width: 30px; background: var(--brand-accent); }

/* ======= Catalog ======= */
.catalog { background: linear-gradient(180deg, rgba(17, 17, 78, 0.04) 0%, #ffffff 65%, rgba(17, 17, 78, 0.06) 100%); padding: 16px 0 64px; }
.catalog-content { display: grid; gap: 20px; }
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.catalog-heading { display: grid; gap: 8px; }
.catalog-toolbar h2 { font-size: 24px; color: var(--text-900); }
.sub { color: var(--text-500); font-size: 14px; margin-top: 6px; }
#foundText { color: var(--text-700); font-weight: 600; letter-spacing: -0.01em; margin-top: 4px; }
.muted { color: var(--text-500); }
.catalog-sort { display: flex; align-items: center; justify-content: flex-end; gap: 12px; color: var(--text-500); font-size: 14px; margin-left: auto; }
.catalog-sort label { font-weight: 600; }
.catalog-sort select { border-radius: 12px; border: 1px solid rgba(17, 17, 78, 0.12); height: 42px; padding: 0 12px; background: var(--surface); color: var(--text-700); box-shadow: 0 16px 32px rgba(17, 17, 78, 0.08); }

.catalog-body {
  display: grid;
  grid-template-columns: minmax(200px, 260px) 1fr;
  gap: 24px;
  align-items: start;
  margin-top: 8px;
}

.category-panel {
  position: relative;
  background: linear-gradient(180deg, rgba(17, 17, 78, 0.95) 0%, rgba(7, 7, 58, 0.92) 100%);
  border-radius: 20px;
  border: 1px solid rgba(17, 17, 78, 0.45);
  box-shadow: 0 28px 52px rgba(17, 17, 78, 0.18);
  padding: 24px 22px;
  display: grid;
  gap: 20px;
  color: #f3f5ff;
  overflow: hidden;
}

.category-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.16) 0%, transparent 55%),
    radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.category-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.category-panel-head {
  display: grid;
  gap: 6px;
}

.category-panel-head strong {
  font-size: 13px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.category-panel-head strong::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  margin-top: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.85) 0%, rgba(17, 17, 78, 0) 100%);
}

.category-panel-head p {
  margin: 0;
  font-size: 13px;
  color: rgba(238, 240, 255, 0.72);
}
.category-panel-head p:empty {
  display: none;
}

.category-menu {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.category-item {
  margin: 0;
}

.category-link {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  color: rgba(240, 242, 255, 0.92);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.18s ease, border 0.18s ease, color 0.18s ease, transform 0.18s ease;
  position: relative;
  overflow: hidden;
}

.category-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.2), rgba(17, 17, 78, 0.25));
  opacity: 0;
  transition: opacity 0.18s ease;
}

.category-link > * {
  position: relative;
  z-index: 1;
}

.category-link .category-label {
  flex: 1;
  text-align: left;
}


.category-link .category-count {
  font-size: 12px;
  font-weight: 700;
  color: rgba(203, 207, 255, 0.9);
}

.category-link:hover,
.category-link:focus-visible {
  border-color: rgba(255, 255, 255, 0.6);
  color: #ffffff;
  outline: none;
  transform: translateY(-1px);
  box-shadow: 0 0 0 2px rgba(17, 17, 78, 0.24);
}

.category-link:hover::before,
.category-link:focus-visible::before {
  opacity: 1;
}

.category-link.active {
  border-color: rgba(255, 255, 255, 0.65);
  background: linear-gradient(135deg, #ffffff, rgba(203, 207, 255, 0.94));
  color: var(--brand-navy);
  box-shadow: 0 18px 32px rgba(17, 17, 78, 0.22);
}

.category-link.active::before {
  opacity: 1;
  background: linear-gradient(135deg, rgba(17, 17, 78, 0.1), rgba(203, 207, 255, 0.4));
}

.category-link.active .category-count {
  color: var(--brand-accent);
}

.catalog-main {
  min-width: 0;
  display: grid;
  gap: 24px;
  align-content: start;
}

.product-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.product-card { background: var(--surface); border-radius: 22px; border: 1px solid rgba(17, 17, 78, 0.08); box-shadow: 0 20px 36px rgba(17, 17, 78, 0.08); overflow: hidden; display: grid; grid-template-rows: 180px 1fr; transition: transform 0.18s ease, box-shadow 0.18s ease; }
.product-card:hover { transform: translateY(-6px); box-shadow: 0 30px 46px rgba(17, 17, 78, 0.12); }
.product-card .thumb { position: relative; }
.product-card img { width: 100%; height: 100%; object-fit: cover; }
.thumb-cart {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(17, 17, 78, 0.12);
  background: rgba(255, 255, 255, 0.92);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 30px rgba(17, 17, 78, 0.18);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.thumb-cart::before {
  content: "🛒";
  font-size: 18px;
  line-height: 1;
}
.thumb-cart:hover,
.thumb-cart:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 24px 36px rgba(17, 17, 78, 0.26);
  background: var(--brand-navy);
  color: var(--text-inverse);
}
.thumb-cart:focus-visible {
  outline: 2px solid var(--brand-accent);
  outline-offset: 2px;
}
.badge { position: absolute; top: 16px; left: 16px; background: var(--brand-accent); color: #fff; font-weight: 700; padding: 6px 10px; border-radius: 999px; font-size: 12px; box-shadow: 0 12px 20px rgba(17, 17, 78, 0.35); }
.badge-soft { display: inline-flex; align-items: center; gap: 6px; background: rgba(17, 17, 78, 0.12); color: var(--brand-navy); border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: 14px; }
.product-card .body { padding: 18px; display: grid; gap: 12px; }
.product-card .kicker { font-size: 12px; font-weight: 600; color: var(--brand-navy); background: rgba(17, 17, 78, 0.08); border-radius: 999px; padding: 4px 10px; width: fit-content; }
.product-card .title { font-size: 16px; font-weight: 700; color: var(--text-900); }
.rating { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #f59e0b; }
.stars { letter-spacing: 2px; }
.product-card .price-row { display: flex; align-items: baseline; gap: 10px; }
.product-card .price { font-weight: 800; font-size: 18px; }
.product-card .old { color: var(--text-500); text-decoration: line-through; }
.actions-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
  flex-wrap: wrap;
}
.actions-row .detail-btn,
.actions-row .buy-now {
  min-height: 42px;
  border-radius: 12px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
  flex: 1 1 0;
  min-width: 0;
  text-decoration: none;
  padding: 10px 18px;
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  line-height: 1.2;
  box-sizing: border-box;
  max-width: 100%;
}
.actions-row .detail-btn { background: rgba(17, 17, 78, 0.06); color: var(--brand-navy); }
.actions-row .detail-btn:hover { transform: translateY(-2px); }
.actions-row .buy-now { background: linear-gradient(135deg, var(--brand-accent), var(--brand-accent-strong)); color: var(--text-inverse); box-shadow: 0 18px 30px rgba(17, 17, 78, 0.28); text-decoration: none; }
.actions-row .buy-now:hover { transform: translateY(-2px); box-shadow: 0 22px 34px rgba(17, 17, 78, 0.35); }
.actions-row .buy-now.disabled { background: rgba(17, 17, 78, 0.08); color: var(--text-500); box-shadow: none; transform: none; cursor: pointer; opacity: 0.8; }
.actions-row .buy-now.disabled:hover { transform: none; box-shadow: none; }


/* ======= Modals ======= */
.modal { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; z-index: 200; }
.modal.open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, 0.68); backdrop-filter: blur(6px); }
.modal-card { position: relative; z-index: 1; background: #fff; color: var(--text-900); border-radius: 20px; padding: 24px; width: min(760px, 94vw); max-height: calc(100vh - 80px); overflow: auto; box-shadow: var(--shadow-lg); }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.modal-close { border: none; background: transparent; font-size: 28px; cursor: pointer; color: var(--text-500); }
.cart-items { display: grid; gap: 12px; max-height: 50vh; overflow: auto; }
.cart-row { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; border: 1px solid rgba(148, 163, 184, 0.18); border-radius: 14px; padding: 12px; align-items: center; }
.cart-row img { width: 72px; height: 72px; object-fit: cover; border-radius: 12px; }
.cart-row .row-title { font-weight: 600; }
.cart-row .row-sub { font-size: 13px; color: var(--text-500); }
.cart-row .row-price { font-weight: 700; }
.cart-row .row-del { border: none; background: transparent; font-size: 18px; cursor: pointer; color: #ef4444; }
.cart-total { display: flex; align-items: center; justify-content: space-between; font-size: 18px; margin-top: 12px; }

/* ======= Product detail modal ======= */
.product-detail { width: min(1100px, 94vw); }
.pd-content { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 24px; }
.pd-media-grid { display: grid; grid-template-columns: 90px 1fr; gap: 12px; }
.pd-main { border: 1px solid rgba(148, 163, 184, 0.18); border-radius: 16px; padding: 16px; background: #f8fafc; position: relative; }
.pd-main img { width: 100%; height: 420px; object-fit: contain; }
.pd-thumbs-vert { display: grid; gap: 10px; max-height: 420px; overflow: auto; }
.pd-thumb { width: 82px; height: 82px; object-fit: cover; border-radius: 12px; border: 2px solid transparent; cursor: pointer; background: #fff; box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12); }
.pd-thumb.active { border-color: var(--brand-navy); }
.pd-info { display: grid; gap: 16px; }
.pd-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 6px 12px; border-radius: 999px; font-size: 12px; border: 1px solid rgba(148, 163, 184, 0.3); }
.chip-soft { background: rgba(17, 17, 78, 0.12); color: var(--brand-navy); }
.chip-muted { background: rgba(226, 232, 240, 0.4); color: var(--text-700); }
.pd-pricebox { border: 1px solid rgba(17, 17, 78, 0.12); border-radius: 16px; padding: 16px; background: linear-gradient(180deg, rgba(17, 17, 78, 0.1), #fff 70%); display: grid; gap: 6px; }
.pd-price { font-size: 30px; font-weight: 800; color: var(--brand-navy); }
.pd-old { color: var(--text-500); text-decoration: line-through; }
.pd-free { color: #10b981; font-weight: 700; font-size: 14px; }
.pd-desc { color: var(--text-700); line-height: 1.6; }
.pd-variations { display: grid; gap: 16px; }
.pd-variation { border: 1px solid rgba(17, 17, 78, 0.12); border-radius: 16px; padding: 16px; background: #fff; display: grid; gap: 12px; }
.pd-variation-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pd-variation-title { font-weight: 700; color: var(--brand-navy); }
.pd-variation-badge { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--brand-navy); background: rgba(17, 17, 78, 0.08); padding: 4px 12px; border-radius: 999px; }
.pd-variation-badge.optional { color: var(--text-500); background: rgba(148, 163, 184, 0.18); }
.pd-variation-desc { font-size: 14px; color: var(--text-500); line-height: 1.5; }
.pd-variation-options { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.pd-variation-option { border: 1px solid rgba(17, 17, 78, 0.16); border-radius: 14px; padding: 12px; background: #fff; display: grid; gap: 6px; place-items: center; min-height: 88px; font-weight: 600; color: var(--text-700); cursor: pointer; transition: border-color 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s; text-align: center; }
.pd-variation-option:hover { border-color: var(--brand-navy); box-shadow: 0 6px 18px rgba(17, 17, 78, 0.16); }
.pd-variation-option.active { border-color: var(--brand-navy); background: rgba(17, 17, 78, 0.08); color: var(--brand-navy); box-shadow: 0 8px 24px rgba(17, 17, 78, 0.2); }
.pd-variation-thumb { width: 48px; height: 48px; border-radius: 12px; overflow: hidden; box-shadow: 0 6px 16px rgba(17, 17, 78, 0.16); }
.pd-variation-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-variation-price { font-size: 13px; font-weight: 600; color: var(--brand-navy); }
.pd-qty { border: 1px solid rgba(17, 17, 78, 0.12); border-radius: 16px; padding: 16px; background: #fff; display: grid; gap: 10px; width: min(240px, 100%); }
.pd-qty-head { display: flex; align-items: center; justify-content: space-between; }
.pd-qty-label { font-weight: 700; color: var(--brand-navy); }
.pd-stock { font-size: 13px; color: var(--text-500); }
.pd-qty-control { display: grid; grid-template-columns: auto auto auto; align-items: center; gap: 12px; }
.pd-qty-control button { width: 40px; height: 40px; border-radius: 14px; border: 1px solid rgba(17, 17, 78, 0.18); background: #fff; color: var(--brand-navy); font-size: 20px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; transition: background 0.2s, color 0.2s, box-shadow 0.2s; }
.pd-qty-control button:hover { background: var(--brand-navy); color: #fff; box-shadow: 0 6px 16px rgba(17, 17, 78, 0.2); }
.pd-qty-control input { width: 68px; text-align: center; border: 1px solid rgba(17, 17, 78, 0.18); border-radius: 12px; padding: 10px; font-weight: 600; font-size: 16px; color: var(--brand-navy); background: #fff; }
.pd-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.pd-two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.pd-box { border: 1px solid rgba(17, 17, 78, 0.12); border-radius: 16px; padding: 16px; background: #fff; }
.pd-section-title { font-weight: 700; margin-bottom: 10px; }
.pd-highlights { display: grid; gap: 8px; list-style: disc inside; color: var(--text-700); }
.pd-specs { display: grid; gap: 8px 12px; grid-template-columns: 160px 1fr; font-size: 14px; }
.pd-specs dt { color: var(--text-500); }

/* ======= Social proof ======= */
.social-proof { background: var(--surface); padding: 60px 0; }
.review-rail { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.review-card { background: var(--surface); border-radius: 22px; border: 1px solid rgba(17, 17, 78, 0.08); box-shadow: 0 20px 36px rgba(17, 17, 78, 0.08); display: flex; flex-direction: column; overflow: hidden; min-height: 100%; }
.review-media { height: 180px; overflow: hidden; background: var(--brand-ice); }
.review-media img { width: 100%; height: 100%; object-fit: cover; }
.review-body { padding: 20px; display: grid; gap: 12px; color: var(--text-900); flex: 1; }
.review-rating { color: #f59e0b; font-size: 18px; letter-spacing: 2px; }
.review-body p { font-size: 15px; line-height: 1.6; color: var(--text-700); }
.review-footer { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--text-900); }
.review-footer .muted { color: var(--text-500); }

.newsletter {
  background: linear-gradient(135deg, rgba(17, 17, 78, 0.08), rgba(17, 17, 78, 0));
  padding: 80px 0;
}

.newsletter-shell {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  align-items: center;
}

.newsletter-shell h2 { font-size: 30px; color: var(--text-900); }
.newsletter-shell p { color: var(--text-500); line-height: 1.7; }

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  background: var(--surface);
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(17, 17, 78, 0.08);
  box-shadow: 0 16px 32px rgba(17, 17, 78, 0.08);
}

.newsletter-form input {
  flex: 1 1 220px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(17, 17, 78, 0.12);
  padding: 0 14px;
  font-size: 15px;
}
.newsletter-form .btn { height: 46px; padding: 0 24px; }
.newsletter-msg { margin-top: 12px; font-size: 14px; color: var(--text-500); }
.newsletter-msg.success { color: #0f9d58; font-weight: 600; }

/* ======= Footer ======= */
.site-footer { background: linear-gradient(180deg, #11114e 0%, #161676 100%); color: rgba(255, 255, 255, 0.85); padding: 42px 0 32px; margin-top: auto; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.footer-title { font-weight: 700; display: block; margin-bottom: 12px; color: #fff; }
.site-footer a { color: rgba(255, 255, 255, 0.82); text-decoration: none; display: block; margin-bottom: 6px; }
.site-footer a:hover { color: #aeb8ff; }
.footer-social { display: flex; flex-direction: column; gap: 12px; }
.footer-social-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-social-btn { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.08); color: #fff; font-weight: 600; text-decoration: none; transition: transform 0.18s ease, background 0.18s ease; }
.footer-social-btn:hover { transform: translateY(-1px); background: rgba(255, 255, 255, 0.18); }
.footer-social-btn::before { content: ""; width: 18px; height: 18px; border-radius: 999px; background: currentColor; opacity: 0.88; mask: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" fill="white" viewBox="0 0 24 24"%3E%3Cpath d="M10.59 13.41L9.17 12l4.24-4.24 1.41 1.41L12 12l2.83 2.83-1.41 1.41z"/%3E%3C/svg%3E') center/contain no-repeat; }
.footer-social-btn--instagram::before { mask: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" fill="white" viewBox="0 0 24 24"%3E%3Cpath d="M7 2h10a5 5 0 0 1 5 5v10a5 5 0 0 1-5 5H7a5 5 0 0 1-5-5V7a5 5 0 0 1 5-5zm0 2a3 3 0 0 0-3 3v10a3 3 0 0 0 3 3h10a3 3 0 0 0 3-3V7a3 3 0 0 0-3-3H7zm5 3.5A4.5 4.5 0 1 1 7.5 12 4.5 4.5 0 0 1 12 7.5zm0 2A2.5 2.5 0 1 0 14.5 12 2.5 2.5 0 0 0 12 9.5zm5.25-2.75a1 1 0 1 1-1 1 1 1 0 0 1 1-1z"/%3E%3C/svg%3E') center/contain no-repeat; }
.footer-social-btn--whatsapp::before { mask: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" fill="white" viewBox="0 0 24 24"%3E%3Cpath d="M12 2a9 9 0 0 0-7.68 13.72L3 22l6.44-1.28A9 9 0 1 0 12 2zm0 2a7 7 0 0 1 5.94 10.85l-.24.36a1 1 0 0 0-.12.76l.5 2.51-2.46-.49a1 1 0 0 0-.76.12l-.36.22A7 7 0 1 1 12 4zm-3.29 3.71a.75.75 0 0 0-.7.45c-.37.81-.8 2.3.47 4.2 1.63 2.47 3.53 2.83 4.31 2.83a2.78 2.78 0 0 0 1.3-.31.75.75 0 0 0 .33-.92l-.34-.94a.75.75 0 0 0-1.02-.44l-.79.33a.5.5 0 0 1-.52-.11l-1.1-1.13a.5.5 0 0 1-.07-.59l.53-.96a.75.75 0 0 0-.21-.96l-.93-.67a.75.75 0 0 0-.46-.15z"/%3E%3C/svg%3E') center/contain no-repeat; }
.footer-social-btn--telegram::before { mask: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" fill="white" viewBox="0 0 24 24"%3E%3Cpath d="M21.6 3.2a1.05 1.05 0 0 0-1.08-.18L3.5 10.4a1.05 1.05 0 0 0 .12 2l4.94 1.38 1.72 5.54a1.05 1.05 0 0 0 1.84.33l2.7-3.14 4.62 3.46a1.05 1.05 0 0 0 1.65-.6l2.31-15.1a1.05 1.05 0 0 0-.7-1.21zm-5.8 9.7a1.05 1.05 0 0 0-.22.22l-2.26 2.63-.93-3a1.05 1.05 0 0 0-.72-.7l-3.38-.94 11.6-4.8-4.09 6.6z"/%3E%3C/svg%3E') center/contain no-repeat; }
.footer-social-btn--facebook::before { mask: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" fill="white" viewBox="0 0 24 24"%3E%3Cpath d="M13 3h4a1 1 0 0 1 1 1v3h-3a1 1 0 0 0-1 1v3h4l-.5 4H14v8h-4v-8H7v-4h3V8a5 5 0 0 1 5-5z"/%3E%3C/svg%3E') center/contain no-repeat; }
.footer-social-btn--tiktok::before { mask: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" fill="white" viewBox="0 0 24 24"%3E%3Cpath d="M15 3h3a4 4 0 0 0 4 4v3a7 7 0 0 1-4-1.18V16a5 5 0 1 1-5-5v3a2 2 0 1 0 2 2z"/%3E%3C/svg%3E') center/contain no-repeat; }
.footer-social-btn--youtube::before { mask: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" fill="white" viewBox="0 0 24 24"%3E%3Cpath d="M21.6 8.26a2.5 2.5 0 0 0-1.76-1.76C18.2 6 12 6 12 6s-6.2 0-7.84.5A2.5 2.5 0 0 0 2.4 8.26 26.54 26.54 0 0 0 2 12a26.54 26.54 0 0 0 .4 3.74 2.5 2.5 0 0 0 1.76 1.76C5.8 18 12 18 12 18s6.2 0 7.84-.5a2.5 2.5 0 0 0 1.76-1.76A26.54 26.54 0 0 0 22 12a26.54 26.54 0 0 0-.4-3.74zM10 9.75 15 12l-5 2.25z"/%3E%3C/svg%3E') center/contain no-repeat; }
.footer-social-btn--email::before { mask: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" fill="white" viewBox="0 0 24 24"%3E%3Cpath d="M4 4h16a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2zm0 2v.41l8 5.33 8-5.33V6H4zm16 12V9.24l-7.34 4.89a1 1 0 0 1-1.32 0L4 9.24V18h16z"/%3E%3C/svg%3E') center/contain no-repeat; }
.footer-social-btn--link::before { mask: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" fill="white" viewBox="0 0 24 24"%3E%3Cpath d="M10.59 13.41a2 2 0 0 1 0-2.82l3-3a2 2 0 1 1 2.82 2.82l-3 3a2 2 0 0 1-2.82 0zm-2.83-2.83a4 4 0 0 0 5.66 5.66l3-3a4 4 0 0 0-5.66-5.66l-.7.7 1.41 1.41.7-.7a2 2 0 1 1 2.83 2.83l-3 3a2 2 0 0 1-2.83-2.83l.71-.71-1.41-1.41zm-1.41-5.66a2 2 0 0 0-2.83 0l-3 3a4 4 0 0 0 0 5.66l.71.71 1.41-1.41-.7-.7a2 2 0 0 1 0-2.83l3-3a2 2 0 1 1 2.83 2.83l-.71.71 1.41 1.41.71-.71a4 4 0 0 0 0-5.66z"/%3E%3C/svg%3E') center/contain no-repeat; }
.footer-social-btn span { position: relative; z-index: 1; }
.footer-note { margin-top: 32px; font-size: 13px; color: rgba(255, 255, 255, 0.6); }

/* ======= Responsive ======= */
@media (max-width: 1100px) {
  .container { width: min(1000px, 94vw); }
}

@media (max-width: 960px) {
  .hero-stage { min-height: 256px; }
  .catalog-body { grid-template-columns: 1fr; }
  .category-panel {
    padding: 18px;
    gap: 16px;
  }
  .category-menu {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    overflow: visible;
    padding-bottom: 0;
  }
  .category-item {
    min-width: auto;
  }
  .category-link {
    justify-content: flex-start;
  }
  .catalog-sort { justify-content: flex-start; margin-left: 0; width: 100%; }
  .brand-nav { gap: 14px; flex-wrap: wrap; }
  .header-search { order: 3; flex: 1 1 100%; }
  .top-actions { order: 2; margin-left: 0; }
  .topbar { align-items: flex-start; }
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: fixed;
    top: 124px;
    right: 18px;
    left: 18px;
    background: var(--surface);
    border-radius: 20px;
    padding: 20px;
    flex-direction: column;
    box-shadow: 0 28px 60px rgba(17, 17, 78, 0.18);
    gap: 16px;
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
    z-index: 60;
  }
  .site-header.nav-open .primary-nav {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .primary-nav .dropdown {
    position: static;
    width: 100%;
    box-shadow: none;
    border-radius: 16px;
    margin-top: 4px;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    display: none;
  }
  .primary-nav .dropdown.open { display: block; }
  .primary-nav .dropdown-list { max-height: 260px; overflow: auto; }
  .primary-nav .dropdown-head { margin-bottom: 12px; }
}

@media (max-width: 768px) {
  .brand { flex: 1 1 auto; }
  .actions-row { flex-wrap: wrap; }
  .actions-row .detail-btn,
  .actions-row .buy-now { flex: 1 1 calc(50% - 10px); }
  .hero-caption { left: 16px; right: 16px; bottom: 16px; }
  .review-rail { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .pd-variations { gap: 14px; }
  .pd-variation { padding: 14px; }
  .pd-variation-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pd-variation-option { min-height: 80px; }
  .pd-qty { padding: 14px; }
}

@media (max-width: 600px) {
  .header-search .search-box input { height: 48px; }
  .topbar { flex-direction: row; align-items: center; gap: 12px; }
  .brand-nav { width: auto; flex: 1 1 auto; }
  .header-search { order: 3; width: 100%; }
  .top-actions { order: 2; width: auto; margin-left: auto; flex: 0 0 auto; }
  .catalog-toolbar { flex-direction: column; align-items: flex-start; gap: 12px; }
  .catalog-sort { width: 100%; justify-content: space-between; }
  .actions-row { flex-direction: column; align-items: stretch; }
  .actions-row .detail-btn,
  .actions-row .buy-now { flex: 1 1 auto; width: 100%; }
  .product-card { grid-template-rows: 200px 1fr; }
  .product-card .body { gap: 16px; }
  .hero-stage { min-height: 192px; }
  .category-panel { padding: 16px; }
  .category-item { min-width: 140px; }
  .pd-content { grid-template-columns: 1fr; }
  .pd-media-grid { grid-template-columns: 1fr; }
  .pd-main img { height: 320px; }
  .pd-thumbs-vert {
    display: flex;
    flex-direction: row;
    gap: 8px;
    max-height: none;
    overflow-x: auto;
    padding: 4px 2px 8px;
    -webkit-overflow-scrolling: touch;
  }
  .pd-thumb {
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
  }
  .pd-two-col { grid-template-columns: 1fr; }
  .pd-variations { gap: 12px; }
  .pd-variation { padding: 12px; }
  .pd-variation-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pd-variation-option { font-size: 14px; min-height: 72px; }
  .pd-variation-thumb { width: 42px; height: 42px; }
  .pd-qty-control { grid-template-columns: auto 1fr auto; gap: 10px; }
  .pd-qty-control input { width: 60px; }
  .review-rail { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; align-items: stretch; }
  .newsletter-form .btn,
  .newsletter-form input { width: 100%; }
}

@media (max-width: 480px) {
  .pd-variation-options { grid-template-columns: 1fr; }
  .pd-variation-option { justify-items: flex-start; text-align: left; padding: 12px 14px; }
  .pd-variation-thumb { width: 40px; height: 40px; }
  .pd-qty-control input { width: 56px; }
}
