*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1rem;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
}

.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;
}

/* Announcement */
.announce-bar {
  background: var(--sho-black);
  color: #fff;
  text-align: center;
  font-size: 0.8125rem;
  padding: 0.5rem 1rem;
}

.announce-bar strong {
  font-weight: 600;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(249, 245, 241, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.logo img {
  height: var(--logo-h, 64px);
  width: auto;
}

.main-nav {
  display: none;
  gap: 2rem;
  font-size: 0.9375rem;
  font-weight: 500;
}

.main-nav a:hover {
  opacity: 0.7;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.currency-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
}

.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  border-radius: var(--radius-pill);
  transition: background var(--dur) var(--ease-out);
}

.cart-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

.cart-btn svg {
  width: 22px;
  height: 22px;
}

.cart-count {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  color: #fff;
  background: var(--sho-black);
  border-radius: var(--radius-pill);
}

.cart-count:empty,
.cart-count[data-count="0"] {
  display: none;
}

.menu-toggle {
  display: flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
}

@media (min-width: 900px) {
  .main-nav {
    display: flex;
  }
  .menu-toggle {
    display: none;
  }
}

/* Mobile nav */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(12, 10, 9, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease-out);
}

.mobile-nav.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(320px, 88vw);
  height: 100%;
  background: var(--surface);
  padding: 1.5rem;
  transform: translateX(100%);
  transition: transform 280ms var(--ease-out);
  box-shadow: var(--shadow-lg);
}

.mobile-nav.open .mobile-nav-panel {
  transform: translateX(0);
}

.mobile-nav a {
  display: block;
  padding: 0.875rem 0;
  font-size: 1.125rem;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9375rem;
  border: none;
  cursor: pointer;
  transition: transform 100ms ease, background var(--dur) var(--ease-out);
}

.btn:active {
  transform: scale(0.97);
}

.btn:focus-visible {
  outline: 2px solid var(--sho-black);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

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

.btn-block {
  width: 100%;
}

/* Hero */
.hero {
  padding: 3rem 0 4rem;
  text-align: center;
}

.hero-eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

.hero p {
  max-width: 36rem;
  margin: 0 auto 2rem;
  color: var(--text-muted);
  font-size: 1.0625rem;
}

/* Product grid */
.section {
  padding: 3rem 0;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2rem;
  gap: 1rem;
}

.section-head h2 {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 640px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

.product-card {
  display: flex;
  flex-direction: column;
}

.product-card-visual {
  position: relative;
  background: transparent;
  border-radius: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: visible;
  aspect-ratio: 4 / 5;
}

.product-card-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  background: var(--surface);
  border-radius: var(--radius-pill);
}

.product-card-size {
  position: absolute;
  top: 0.65rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 0.8125rem;
  color: var(--text-muted);
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--border);
  background: transparent;
  margin: 0;
  pointer-events: none;
}

.product-card-img {
  flex: 1;
  display: block;
  width: 100%;
  min-height: 0;
  padding: 0;
  line-height: 0;
}

.product-card-img img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: contain;
  object-position: center center;
  transition: opacity var(--dur) var(--ease-out);
}

.product-card-swatches {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  justify-content: center;
  padding: 0.65rem 0.5rem 0.75rem;
  overflow: hidden;
}

.swatch {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 50%;
  border: 2px solid transparent;
  padding: 0;
  background-color: var(--swatch, #ccc);
  cursor: pointer;
  transition: transform 100ms ease, border-color var(--dur);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.swatch:hover,
.swatch.active {
  border-color: var(--sho-black);
  transform: scale(1.08);
}

.swatch-more {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.product-card-body {
  padding: 1rem 0.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card-cat {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.product-card-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
}

.product-card-price {
  font-size: 0.9375rem;
  margin-bottom: 1rem;
}

/* Cart drawer */
.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
}

.cart-drawer.open {
  pointer-events: auto;
}

.cart-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 10, 9, 0.45);
  opacity: 0;
  transition: opacity var(--dur) var(--ease-out);
}

.cart-drawer.open .cart-backdrop {
  opacity: 1;
}

.cart-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(var(--cart-w), 100vw);
  height: 100%;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 280ms var(--ease-out);
  box-shadow: var(--shadow-lg);
}

.cart-drawer.open .cart-panel {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.cart-header h2 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
}

.cart-close {
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.5rem;
}

.cart-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 3rem 1rem;
}

.cart-line {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.cart-line img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: var(--sho-card);
  border-radius: var(--radius-sm);
  padding: 0.25rem;
}

.cart-line-info {
  flex: 1;
  min-width: 0;
}

.cart-line-title {
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 0.25rem;
}

.cart-line-variant {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.cart-line-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.cart-qty-btn {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.cart-remove {
  margin-left: auto;
  font-size: 0.8125rem;
  color: var(--text-muted);
  border: none;
  background: none;
  text-decoration: underline;
}

.cart-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border);
}

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.cart-shipping-note {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* Footer */
.site-footer {
  background: var(--sho-black);
  color: #fff;
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.site-footer h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 1rem;
  opacity: 0.7;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.5rem;
}

.site-footer a:hover {
  opacity: 0.8;
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.8125rem;
  opacity: 0.65;
}

.footer-logo {
  display: inline-block;
}

.footer-logo img {
  height: 28px;
  width: auto;
  display: block;
}

/* About strip */
.about-strip {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin: 2rem 0;
}

.about-strip p {
  color: var(--text-muted);
  max-width: 48rem;
  margin: 0;
  line-height: 1.7;
}

/* Cookie consent */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--sho-black);
  color: #fff;
  padding: 1rem 0;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
}

.cookie-consent__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-consent__text {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  max-width: 42rem;
  opacity: 0.92;
}

.cookie-consent__text a {
  color: #fff;
  text-decoration: underline;
}

.cookie-consent__actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

body.has-cookie-banner {
  padding-bottom: 5rem;
}
