:root {
  --mist: #bebebf;
  --pebble: #9fa4a2;
  --limestone: #dcdad9;
  --graphite: #494947;
  --gravel: #7b787a;
  --obsidian: #1a1a1a;

  --accent: var(--obsidian);
  --accent-dark: var(--graphite);
  --on-accent: #ffffff;
  --ink: var(--obsidian);
  --muted: var(--graphite);
  --border: var(--limestone);
  --bg: #ffffff;
  --bg-soft: var(--limestone);
  --hero-tint: color-mix(in srgb, var(--limestone) 55%, #ffffff);
  --card: #ffffff;
  --footer-bg: var(--obsidian);
  --footer-ink: var(--limestone);
  --footer-muted: var(--mist);
  --footer-line: var(--graphite);
  --radius: 14px;
  --radius-lg: 22px;
  --pill: 999px;
  --shadow: 0 10px 30px rgba(26, 26, 26, 0.08);
  --font: "Poppins", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

:root[data-theme="dark"] {
  --accent: var(--limestone);
  --accent-dark: var(--mist);
  --on-accent: var(--obsidian);
  --ink: var(--limestone);
  --muted: var(--mist);
  --border: var(--graphite);
  --bg: var(--obsidian);
  --bg-soft: color-mix(in srgb, var(--graphite) 55%, var(--obsidian));
  --hero-tint: color-mix(in srgb, var(--graphite) 55%, var(--obsidian));
  --card: color-mix(in srgb, var(--graphite) 70%, var(--obsidian));
  --footer-bg: color-mix(in srgb, var(--graphite) 40%, var(--obsidian));
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background .25s ease, color .25s ease;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
h1, h2, h3, h4 { font-weight: 700; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: var(--pill);
  font-weight: 700;
  font-size: 14.7px;
  border: none;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-name {
  white-space: nowrap;
  font-weight: 700;
  font-size: 18px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-weight: 500;
  font-size: 15px;
}
.nav-item { position: relative; }
.nav-item .dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px;
  display: flex;
  flex-direction: column;
  min-width: 190px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .15s ease, transform .15s ease;
}
.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(4px);
}
.nav-item .dropdown a {
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 14px;
}
.nav-item .dropdown a:hover { background: var(--bg-soft); color: var(--accent); }
.main-nav > a:hover, .nav-item > a:hover { color: var(--accent); }
.main-nav > a.active, .nav-item > a.active { color: var(--accent); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.icon-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--ink);
  position: relative;
}
.icon-btn:hover { background: var(--bg-soft); }
.cart-count {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}
.menu-btn { display: none; }

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 8px 24px 16px;
  border-top: 1px solid var(--border);
}
.mobile-nav a {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-weight: 500;
}
.mobile-nav.open { display: flex; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--hero-tint);
  padding: 64px 0 0;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1.9fr;
  gap: 56px;
  align-items: stretch;
}
.hero-copy {
  align-self: center;
  padding-bottom: 120px;
}
.eyebrow {
  display: inline-block;
  background: color-mix(in srgb, var(--accent) 10%, var(--bg));
  color: var(--accent);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  padding: 8px 16px;
  border-radius: var(--pill);
  margin-bottom: 20px;
}
.hero-copy h1 {
  font-size: 51px;
  line-height: 1.08;
  margin-bottom: 22px;
}
.hero-copy p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
  max-width: 460px;
  margin-bottom: 30px;
}
.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 26px;
}
.stat {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.stat strong { font-size: 17px; }
.stat span { font-size: 13px; color: var(--muted); }

.hero-media {
  align-self: center;
  display: flex;
  justify-content: center;
}
.hero-media img {
  display: block;
  width: 100%;
  max-width: 820px;
  height: auto;
}
.deco {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}
.deco-1 { top: 72px; left: 47%; width: 26px; color: var(--pebble); }
.deco-2 { bottom: 190px; right: 5%; width: 38px; color: var(--limestone); }

/* ---------- Categories ---------- */
.categories {
  position: relative;
  z-index: 2;
  margin-top: -68px;
  padding: 0 0 70px;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 540px;
}
.category-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 30px 16px;
  font-weight: 600;
  font-size: 16px;
  box-shadow: var(--shadow);
  transition: transform .18s ease;
}
.category-tile:hover { transform: translateY(-4px); }
.category-plus { display: inline-flex; color: var(--gravel); }

/* ---------- Section heads ---------- */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.section-eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.section-head h2 { font-size: 28px; }
.link-arrow {
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}
.link-arrow:hover { color: var(--muted); }

/* ---------- Products ---------- */
.bestsellers { padding: 10px 0 60px; }
.all-products { padding: 10px 0 70px; }

.product-card {
  background: transparent;
  border-radius: var(--radius);
  padding: 10px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.product-card:hover {
  background: var(--card);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.product-card-image {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-soft);
  margin-bottom: 14px;
}
.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.product-card:hover .product-card-image img { transform: scale(1.05); }
.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--bg-soft);
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--pill);
}
.badge.out-of-stock { background: rgba(26,26,26,0.8); color: #ffffff; }
.wishlist-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}
.wishlist-btn.active { color: var(--accent); }

.product-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}
.product-card h3 { font-size: 15px; }
.product-price {
  font-weight: 700;
  color: var(--ink);
  font-size: 14px;
  white-space: nowrap;
}
.product-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.add-cart-btn {
  width: 100%;
  padding: 11px 16px;
  border-radius: var(--pill);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink);
  font-weight: 600;
  font-size: 13.6px;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.add-cart-btn:hover:not(:disabled) {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}
.add-cart-btn:disabled {
  color: var(--muted);
  cursor: not-allowed;
}

/* ---------- Offer cards ---------- */
.promo-section { padding: 10px 0 70px; }
.promo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.offer-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: stretch;
  min-height: 260px;
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.offer-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 36px 24px 36px 36px;
}
.offer-card .btn-outline { border-color: var(--ink); }
.offer-card h3 { font-size: 22px; margin-bottom: 10px; }
.offer-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 22px;
  max-width: 300px;
}
.offer-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Why us ---------- */
.why-us { padding: 20px 0 70px; text-align: center; }
.why-us h2 { font-size: 28px; margin-bottom: 40px; }
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.why-item { padding: 0 12px; }
.why-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--accent);
  margin: 0 auto 16px;
}
.why-item h3 { font-size: 17px; margin-bottom: 8px; }
.why-item p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  max-width: 280px;
  margin: 0 auto;
}

/* ---------- Blog ---------- */
.blog-section { padding: 10px 0 80px; }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.blog-card-image {
  aspect-ratio: 16 / 11;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-soft);
  margin-bottom: 16px;
}
.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.blog-card:hover .blog-card-image img { transform: scale(1.05); }
.blog-meta {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}
.blog-card h3 { font-size: 16.5px; margin-bottom: 8px; line-height: 1.35; }
.blog-card p { font-size: 13.5px; color: var(--muted); line-height: 1.55; }

/* ---------- Footer (dark) ---------- */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-ink);
  padding: 64px 0 0;
}
.site-footer .brand-mark { color: var(--footer-ink); }
.site-footer .mark-dot { fill: var(--footer-bg); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-brand p { color: var(--footer-muted); margin: 14px 0 18px; font-size: 14px; }
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13.5px;
  color: var(--footer-muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-col h4 { font-size: 14px; margin-bottom: 18px; }
.footer-col nav { display: flex; flex-direction: column; gap: 12px; }
.footer-col nav a { font-size: 13.5px; color: var(--footer-muted); }
.footer-col nav a:hover { color: var(--footer-ink); }
.footer-newsletter p { color: var(--footer-muted); font-size: 13.5px; margin-bottom: 16px; }
#newsletterForm {
  display: flex;
  border: 1px solid var(--footer-line);
  border-radius: var(--pill);
  overflow: hidden;
  background: transparent;
  margin-bottom: 20px;
}
#newsletterForm input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px 16px;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--footer-ink);
  outline: none;
  min-width: 0;
}
#newsletterForm input::placeholder { color: var(--footer-muted); }
#newsletterForm button {
  border: none;
  background: var(--footer-ink);
  color: var(--footer-bg);
  padding: 0 20px;
  font-weight: 600;
  font-size: 13.5px;
}
.social-row { display: flex; gap: 8px; flex-wrap: wrap; }
.social-row a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--footer-line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--footer-muted);
}
.social-row a:hover { color: var(--footer-ink); border-color: var(--footer-ink); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-top: 1px solid var(--footer-line);
  font-size: 12.5px;
  color: var(--footer-muted);
}
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--footer-line);
  background: transparent;
  color: var(--footer-ink);
  padding: 8px 14px;
  border-radius: var(--pill);
  font-size: 12.5px;
  font-weight: 600;
}

/* ---------- Header search ---------- */
.header-search {
  display: flex;
  align-items: center;
  width: 200px;
  height: 40px;
  padding: 0 6px 0 16px;
  background: var(--bg-soft);
  border-radius: var(--pill);
}
.header-search input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: 13.5px;
  color: var(--ink);
}
.header-search input::placeholder { color: var(--muted); }
.header-search button {
  display: flex;
  padding: 6px;
  border: none;
  background: transparent;
  color: var(--ink);
}
.search-icon-btn { display: none; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: var(--bg);
  padding: 12px 22px;
  border-radius: var(--pill);
  font-size: 13.5px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 200;
  white-space: nowrap;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .promo-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .main-nav { display: none; }
  .menu-btn { display: inline-flex; }
  .category-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-copy h1 { font-size: 36px; }
  .scroll-btn { display: none; }
}

/* ---------- Page hero (Shop / About / Reviews / Community) ---------- */
.page-hero {
  background: linear-gradient(var(--hero-tint), var(--bg) 90%);
  padding: 52px 0 44px;
}
.page-hero h1 {
  font-size: 38px;
  line-height: 1.15;
  margin: 16px 0 14px;
  max-width: 640px;
}
.page-hero p {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.6;
  max-width: 560px;
}

/* ---------- Shop page ---------- */
.shop-section { padding: 44px 0 80px; }
.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}
.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pill {
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink);
  padding: 10px 18px;
  border-radius: var(--pill);
  font-weight: 600;
  font-size: 13.5px;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.pill:hover { border-color: var(--accent); color: var(--accent); }
.pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}
.result-count {
  font-size: 13.5px;
  color: var(--muted);
  white-space: nowrap;
}
.shop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px 20px;
}
.product-cat {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 6px;
}
.empty-state {
  text-align: center;
  color: var(--muted);
  padding: 60px 0;
  font-size: 15px;
}

/* ---------- Content pages (About / Community) ---------- */
.content-section { padding: 60px 0; }
.content-section.alt { background: var(--bg-soft); }
.narrow { max-width: 720px; }
.content-section h2 { font-size: 26px; margin-bottom: 18px; }
.content-section p {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.7;
  margin-bottom: 14px;
}
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 8px;
}
.value-item {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 26px;
  border: 1px solid var(--border);
}
.value-item h3 { font-size: 16px; margin-bottom: 8px; }
.value-item p { font-size: 14px; margin: 0; }
.contact-list {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--muted);
  font-size: 15px;
}
.contact-list strong { color: var(--ink); }
.social-row-lg {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}
.social-row-lg a {
  border: 1px solid var(--border);
  border-radius: var(--pill);
  padding: 10px 20px;
  font-weight: 600;
  font-size: 13.5px;
  background: var(--bg);
}
.social-row-lg a:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Reviews page ---------- */
.rating-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}
.rating-score { font-size: 40px; font-weight: 800; }
.stars { color: var(--accent); font-size: 15px; letter-spacing: 2px; }
.rating-count { font-size: 13px; color: var(--muted); }
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.review-card {
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  padding: 26px;
}
.review-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}
.review-top h3 { font-size: 14.5px; margin-bottom: 2px; }
.review-stars { color: var(--accent); font-size: 13px; letter-spacing: 1px; }
.review-card p { color: var(--ink); font-size: 14px; line-height: 1.6; margin-bottom: 14px; }
.review-product { font-size: 12px; color: var(--muted); font-weight: 600; }

@media (max-width: 980px) {
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
  .value-grid { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .shop-grid { grid-template-columns: 1fr 1fr; }
  .review-grid { grid-template-columns: 1fr; }
  .page-hero h1 { font-size: 30px; }
}

.brand-mark { color: var(--accent); display: inline-flex; }
.mark-dot { fill: var(--bg); }

@media (max-width: 980px) {
  .hero-copy { padding-bottom: 40px; }
  .hero-media img { max-width: 600px; }
  .categories { margin-top: -40px; }
  .category-grid { max-width: none; }
  .offer-card { grid-template-columns: 1fr; }
  .offer-text { padding: 32px; }
  .offer-card img { height: 200px; }
  .header-search { display: none; }
  .search-icon-btn { display: inline-flex; }
  .deco { display: none; }
}
@media (max-width: 760px) {
  .category-grid { grid-template-columns: 1fr; }
}
/* ---------- Cart ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(26, 26, 26, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility 0s .25s;
}
.cart-overlay.open { opacity: 1; visibility: visible; transition: opacity .25s ease; }
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 120;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: var(--bg);
  box-shadow: -10px 0 40px rgba(26, 26, 26, 0.18);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .3s ease, visibility 0s .3s;
}
@media (min-width: 640px) { .cart-drawer { max-width: 448px; } }
.cart-drawer.open { transform: none; visibility: visible; transition: transform .3s ease; }
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  border-bottom: 1px solid var(--border);
}
.drawer-head h2 { font-size: 18px; }
.drawer-head .icon-btn { width: 44px; height: 44px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 4px 22px 18px; }
.drawer-foot {
  padding: 16px 22px calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  background: var(--bg);
  max-height: 60vh;
  overflow-y: auto;
}
.drawer-foot[hidden] { display: none; }
.drawer-region { margin-bottom: 12px; }
.drawer-region label, .cart-card label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 6px;
}

.cart-list { list-style: none; margin: 0; padding: 0; }
.cart-item { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.ci-img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--bg-soft);
  flex-shrink: 0;
}
.ci-body { flex: 1; min-width: 0; }
.ci-head { display: flex; justify-content: space-between; gap: 12px; }
.ci-head h3 { font-size: 14.5px; line-height: 1.3; }
.ci-meta { font-size: 12.5px; color: var(--muted); }
.ci-line { font-weight: 700; font-size: 14.5px; white-space: nowrap; }
.ci-low {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 10px;
  border-radius: var(--pill);
  background: var(--bg-soft);
  font-size: 11.5px;
  font-weight: 700;
}
.ci-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; margin-top: 10px; }
.stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--pill);
  overflow: hidden;
}
.stepper button {
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  color: var(--ink);
  font-size: 18px;
}
.stepper button:hover:not(:disabled) { background: var(--bg-soft); }
.stepper button:disabled { color: var(--muted); opacity: .45; cursor: not-allowed; }
.stepper input {
  width: 46px;
  height: 44px;
  border: none;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  text-align: center;
  -moz-appearance: textfield;
  appearance: textfield;
}
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ci-actions { display: flex; gap: 2px; }
.ci-actions button {
  min-height: 44px;
  padding: 0 10px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: underline;
}
.ci-actions button:hover:not(:disabled) { color: var(--ink); }
.ci-actions button:disabled { opacity: .5; cursor: not-allowed; }
.saved-actions { margin-top: 6px; }
.saved-section { margin-top: 36px; }
.saved-section h2 { font-size: 18px; margin-bottom: 4px; }

.cart-section { padding: 36px 0 90px; }
.cart-layout { display: grid; grid-template-columns: 1fr 400px; gap: 40px; align-items: start; }
.cart-side { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 16px; }
.cart-side[hidden] { display: none; }
.cart-card { background: var(--bg-soft); border-radius: var(--radius-lg); padding: 20px; }
.cart-card h4 { font-size: 14px; margin-bottom: 10px; }
.field {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}
textarea.field { padding: 12px 14px; resize: vertical; }
.field:focus-visible, .cart-drawer button:focus-visible, .cart-card button:focus-visible, .cart-item button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.est-line { font-size: 13.5px; margin-top: 10px; line-height: 1.5; }
.est-line span, .est-hint, .est-note { color: var(--muted); }
.est-hint { font-size: 13px; margin-top: 10px; }
.est-note { font-size: 12px; margin-top: 10px; }
.promo-row { display: flex; gap: 8px; }
.promo-msg { min-height: 18px; margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.promo-applied {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  padding: 8px 12px;
  border-radius: var(--radius);
  background: var(--bg);
  font-size: 13px;
  font-weight: 600;
}
.promo-applied button, .link-btn {
  min-height: 44px;
  border: none;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
}
.link-btn { display: flex; align-items: center; justify-content: center; width: 100%; color: var(--muted); }
.mini-btn {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: var(--pill);
  background: transparent;
  color: var(--ink);
  font-weight: 700;
  font-size: 13px;
}
.mini-btn:hover:not(:disabled) { background: var(--ink); color: var(--bg); }
.gift summary { cursor: pointer; font-size: 13.5px; font-weight: 700; min-height: 24px; }
.gift textarea { margin-top: 12px; }

.sum-rows { margin: 0; }
.sum-rows div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 14px; }
.sum-rows dt { color: var(--muted); }
.sum-rows dd { margin: 0; font-weight: 600; }
.sum-rows .sum-total { align-items: baseline; margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--border); }
.sum-rows .sum-total dt { color: var(--ink); font-size: 16px; font-weight: 700; }
.sum-rows .sum-total dd { font-size: 24px; font-weight: 800; }
.secure { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 14px 0 10px; font-size: 13px; color: var(--muted); }
.cart-cta { width: 100%; min-height: 52px; }
.upsell { margin: 16px 0 4px; padding: 14px; border: 1px dashed var(--pebble); border-radius: var(--radius); }
.upsell ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.upsell li, .trending li { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.upsell li span { flex: 1; }
.upsell img, .trending img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; }
.pay-badges { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pay-badges li { padding: 6px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); font-size: 11.5px; font-weight: 700; }
.pay-note { font-size: 12.5px; color: var(--muted); }
.policy-link { display: inline-block; margin-top: 12px; font-size: 12.5px; font-weight: 600; text-decoration: underline; }

.empty-cart { text-align: center; padding: 36px 8px; }
.empty-art { color: var(--pebble); margin-bottom: 10px; }
.empty-cart h2 { font-size: 22px; margin-bottom: 8px; }
.empty-cart p { color: var(--muted); font-size: 14.5px; }
.empty-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 22px 0 32px; }
.trending-title { font-size: 14px; text-align: left; margin-bottom: 10px; }
.trending { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; text-align: left; }
.trending li span { flex: 1; display: flex; flex-direction: column; }
.trending small { color: var(--muted); font-size: 12.5px; }

.cart-sticky-bar { display: none; }
@media (max-width: 980px) {
  .cart-layout { grid-template-columns: 1fr; }
  .cart-side { position: static; }
  .cart-section { padding-bottom: 120px; }
  .cart-sticky-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: var(--bg);
    border-top: 1px solid var(--border);
    box-shadow: 0 -6px 20px rgba(26, 26, 26, 0.08);
  }
  .cart-sticky-bar[hidden] { display: none; }
  .cart-sticky-bar strong { display: block; font-size: 18px; }
  .sb-label { font-size: 12px; color: var(--muted); }
}
@media (prefers-reduced-motion: reduce) {
  .cart-drawer, .cart-overlay { transition: none; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .brand { gap: 8px; }
  .brand-name { font-size: 15px; }
  .brand-mark svg { width: 28px; height: 28px; }
  .header-actions { gap: 0; }
  .header-actions .icon-btn { width: 36px; height: 36px; }
}

/* ---------- Focus (keyboard) ---------- */
a:focus-visible, button:focus-visible, select:focus-visible, summary:focus-visible,
textarea:focus-visible, input:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.site-footer :focus-visible { outline-color: var(--footer-ink); }
.header-search input:focus-visible,
#newsletterForm input:focus-visible { outline: none; }
.header-search:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
#newsletterForm:focus-within { outline: 2px solid var(--footer-ink); outline-offset: 2px; }

/* ---------- Hero video control ---------- */
/* ---------- Mobile menu search ---------- */
.mobile-search {
  display: flex;
  align-items: center;
  margin: 8px 0 4px;
  padding: 0 6px 0 16px;
  background: var(--bg-soft);
  border-radius: var(--pill);
}
.mobile-search input {
  flex: 1;
  min-width: 0;
  height: 46px;
  border: none;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}
.mobile-search input:focus-visible { outline: none; }
.mobile-search:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
.mobile-search button { display: flex; padding: 10px; border: none; background: transparent; color: var(--ink); }

/* ---------- Product cards: title link ---------- */
.product-card h3 a:hover { text-decoration: underline; }

/* ---------- Product page ---------- */
.product-section { padding: 28px 0 80px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; font-size: 13px; color: var(--muted); }
.breadcrumb a:hover { text-decoration: underline; }
.pd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.pd-image { position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-soft); }
.pd-image img { width: 100%; height: 100%; object-fit: cover; }
.pd-info h1 { font-size: 32px; line-height: 1.15; margin: 4px 0 12px; }
.pd-price { font-size: 24px; font-weight: 800; margin-bottom: 10px; }
.pd-stock { display: inline-block; margin-bottom: 18px; padding: 4px 12px; border-radius: var(--pill); background: var(--bg-soft); font-size: 12.5px; font-weight: 700; }
.pd-stock.out { background: var(--ink); color: var(--bg); }
.pd-desc { color: var(--muted); font-size: 15.5px; line-height: 1.7; margin-bottom: 26px; }
.pd-actions { display: flex; align-items: center; gap: 12px; }
.pd-add { flex: 1; min-height: 52px; max-width: 320px; }
.pd-add:disabled { opacity: .5; cursor: not-allowed; }
.wishlist-btn.pd-wish { position: static; width: 52px; height: 52px; border: 1px solid var(--border); background: var(--bg); }
.pd-note { margin-top: 16px; font-size: 12.5px; color: var(--muted); }
.related { margin-top: 72px; }
.related h2 { font-size: 24px; margin-bottom: 24px; }
@media (max-width: 980px) {
  .pd-grid { grid-template-columns: 1fr; gap: 28px; }
  .pd-info h1 { font-size: 26px; }
}

/* ---------- Reviews (empty state) ---------- */
.review-empty { text-align: center; padding: 40px 28px; }
.review-empty h2 { font-size: 22px; margin-bottom: 10px; }
.review-empty p { color: var(--muted); margin-bottom: 22px; }
/* ---------- Checkout ---------- */
#checkoutMain fieldset { border: 0; margin: 0 0 16px; min-width: 0; }
.co-card legend { float: left; width: 100%; padding: 0; margin-bottom: 14px; font-size: 16px; font-weight: 700; }
.co-card legend + * { clear: both; }
.co-title { font-size: 16px; margin-bottom: 12px; }
.co-field { margin-bottom: 14px; }
.co-field label { display: block; margin-bottom: 6px; font-size: 12.5px; font-weight: 700; }
.co-field small { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }
.field[aria-invalid="true"] { border-color: var(--ink); border-width: 2px; }
.field-error { margin-top: 6px; font-size: 12.5px; font-weight: 600; }
.form-alert { margin-bottom: 16px; padding: 14px 16px; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--bg); font-size: 14px; font-weight: 600; }
.co-methods { display: grid; gap: 8px; }
.co-method { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); font-size: 14px; font-weight: 600; cursor: pointer; }
.co-method:has(input:checked) { border-color: var(--ink); border-width: 2px; }
.co-method input { width: 18px; height: 18px; accent-color: var(--ink); }
.co-lines { list-style: none; margin: 0 0 12px; padding: 0; }
.co-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.co-lines small { color: var(--muted); }
.success h2 { font-size: 22px; margin-bottom: 10px; }
.success p { margin-bottom: 10px; line-height: 1.6; }
.co-card { background: var(--bg-soft); border-radius: var(--radius-lg); padding: 20px; }

/* Until the admin has reported real stock, don't show the built-in numbers as if they were live. */
html.stock-pending .add-cart-btn,
html.stock-pending .pd-add,
html.stock-pending .pd-stock,
html.stock-pending .badge.out-of-stock { visibility: hidden; }
