:root {
  --bg: #090909;
  --bg-soft: #111111;
  --bg-card: rgba(16, 16, 16, 0.86);
  --line: rgba(211, 180, 129, 0.26);
  --line-strong: rgba(220, 191, 143, 0.55);
  --text: #f4efe7;
  --muted: rgba(244, 239, 231, 0.65);
  --muted-2: rgba(244, 239, 231, 0.45);
  --gold: #d6b181;
  --gold-2: #c99758;
  --gold-soft: rgba(214, 177, 129, 0.22);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --max: 1440px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background:
    radial-gradient(circle at 80% 18%, rgba(123, 66, 18, 0.18), transparent 28%),
    radial-gradient(circle at 15% 100%, rgba(89, 58, 19, 0.14), transparent 24%),
    linear-gradient(180deg, #060606 0%, #0b0b0b 100%);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,0.02) 0%, transparent 35%, transparent 65%, rgba(214,177,129,0.03) 100%);
  mix-blend-mode: screen;
}

.ambient {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .45;
  pointer-events: none;
  z-index: 0;
}
.ambient-1 { width: 360px; height: 360px; background: rgba(124, 69, 22, .24); top: 10%; right: -50px; }
.ambient-2 { width: 280px; height: 280px; background: rgba(89, 43, 8, .18); bottom: 8%; left: -60px; }
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .08;
  background-image: radial-gradient(rgba(255,255,255,.5) .55px, transparent .55px);
  background-size: 7px 7px;
  mix-blend-mode: soft-light;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px 34px;
  background: rgba(7, 7, 7, 0.72);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.brand-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand-mark {
  font-size: 14px;
  letter-spacing: .45em;
  color: var(--text);
  opacity: .88;
}
.brand-line {
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, rgba(214,177,129,0), rgba(214,177,129,.85), rgba(214,177,129,0));
}
.brand-main {
  font-size: 12px;
  letter-spacing: .35em;
  color: var(--gold);
}
.brand-sub {
  font-size: 10px;
  letter-spacing: .26em;
  color: var(--muted-2);
  margin-top: 3px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.ghost-chip,
.cart-pill {
  min-height: 52px;
  border-radius: 999px;
  border: 1px solid rgba(214,177,129,0.18);
  background: rgba(255,255,255,0.025);
  color: var(--muted);
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: .24s ease;
}
.ghost-chip:hover,
.ghost-chip.active,
.cart-pill:hover {
  color: var(--text);
  border-color: rgba(214,177,129,0.35);
  background: rgba(214,177,129,0.08);
}
.ghost-chip.active {
  box-shadow: inset 0 0 0 1px rgba(214,177,129,.08), 0 0 0 1px rgba(214,177,129,.06);
}
.chip-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.chip-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cart-pill {
  padding-right: 10px;
  border-color: rgba(214,177,129,0.42);
  background: linear-gradient(135deg, rgba(214,177,129,.16), rgba(255,255,255,.03));
  color: var(--text);
  box-shadow: 0 10px 30px rgba(171, 120, 57, 0.18);
}
.cart-pill strong {
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, #e5c493, #c79a5d);
  color: #17120d;
  display: grid;
  place-items: center;
  font-size: 13px;
}

.shell {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 34px 24px 80px;
}

.hero-panel {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 28px;
  align-items: center;
  min-height: 72vh;
  padding: 40px 4px 50px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: .3em;
  text-transform: uppercase;
}
.eyebrow span {
  display: block;
  width: 42px;
  height: 1px;
  background: linear-gradient(90deg, rgba(214,177,129,0), rgba(214,177,129,.9), rgba(214,177,129,0));
}
.hero-copy h1 {
  margin: 20px 0 18px;
  font-weight: 300;
  line-height: .98;
  font-size: clamp(40px, 6vw, 84px);
  letter-spacing: -.02em;
}
.hero-copy h1 span { color: var(--gold); }
.hero-copy p {
  margin: 0;
  max-width: 680px;
  font-size: 17px;
  line-height: 1.85;
  color: var(--muted);
}
.hero-actions,
.drawer-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.btn {
  position: relative;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease, background .24s ease;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.08) 45%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .7s ease;
}
.btn:hover::after { transform: translateX(120%); }
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, #d8b687, #b9894b);
  color: #14100b;
  box-shadow: 0 18px 34px rgba(185, 137, 75, 0.2);
}
.btn-secondary {
  background: rgba(255,255,255,0.03);
  color: var(--text);
  border-color: rgba(214,177,129,0.22);
}
.btn-secondary:hover { border-color: rgba(214,177,129,0.45); }

.hero-stage {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: center;
}
.hero-card {
  position: absolute;
  width: min(100%, 500px);
  aspect-ratio: 0.84;
  border-radius: 32px;
  border: 1px solid rgba(214,177,129,0.14);
  background: linear-gradient(180deg, rgba(18,18,18,.95), rgba(10,10,10,.95));
  box-shadow: var(--shadow);
}
.hero-card-back {
  transform: translate(-58px, 34px) rotate(-8deg);
  opacity: .34;
  background: linear-gradient(180deg, rgba(66,39,18,.25), rgba(14,14,14,.9));
}
.hero-card-mid {
  transform: translate(54px, -16px) rotate(9deg);
  opacity: .38;
  background: linear-gradient(180deg, rgba(40,24,11,.32), rgba(14,14,14,.95));
}
.hero-card-front {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 22px;
  overflow: hidden;
}
.hero-card-front::before,
.product-card::before,
.drawer-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.045), transparent 26%, transparent 75%, rgba(214,177,129,.08));
  pointer-events: none;
}
.hero-card-top,
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.badge,
.rating,
.tag-pill,
.drawer-topline {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 11px;
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.badge, .tag-pill, .drawer-topline {
  background: rgba(214,177,129,0.11);
  color: var(--gold);
  border: 1px solid rgba(214,177,129,0.18);
}
.rating {
  background: rgba(255,255,255,0.06);
  color: var(--text);
}
.hero-material {
  margin: 18px 0;
  flex: 1;
  border-radius: 24px;
  background:
    linear-gradient(170deg, rgba(255,255,255,.05), transparent 38%),
    radial-gradient(circle at 20% 25%, rgba(255,214,158,.12), transparent 20%),
    linear-gradient(135deg, rgba(25,25,25,.2), rgba(0,0,0,.2)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 600'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='1 0 0 0 0.35 0 1 0 0 0.23 0 0 1 0 0.14 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='400' height='600' filter='url(%23n)' opacity='0.8'/%3E%3C/svg%3E") center/cover;
  border: 1px solid rgba(214,177,129,0.14);
  position: relative;
  overflow: hidden;
}
.hero-material::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 65% 15%, rgba(255, 224, 179, 0.22), transparent 16%), linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.24));
}
.hero-card-bottom {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}
.product-mini-title { font-size: 18px; }
.product-mini-meta { margin-top: 6px; color: var(--muted); font-size: 13px; }
.product-mini-price { font-size: 32px; color: var(--gold); font-weight: 600; }

.toolbar {
  margin-top: 10px;
  padding: 28px 0 18px;
  border-top: 1px solid rgba(214,177,129,0.09);
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  flex-wrap: wrap;
}
.toolbar-title { font-size: 28px; font-weight: 300; letter-spacing: -.02em; }
.toolbar-subtitle { color: var(--muted); margin-top: 6px; }
.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.filter-btn {
  min-height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(214,177,129,0.18);
  background: rgba(255,255,255,0.02);
  color: var(--muted);
  padding: 0 16px;
  cursor: pointer;
  transition: .22s ease;
}
.filter-btn:hover, .filter-btn.active {
  color: var(--text);
  border-color: rgba(214,177,129,.5);
  background: rgba(214,177,129,.12);
}

.products-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.product-card {
  position: relative;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(214,177,129,0.14);
  background: linear-gradient(180deg, rgba(18,18,18,.86), rgba(10,10,10,.92));
  box-shadow: var(--shadow);
  overflow: hidden;
  cursor: pointer;
  transition: transform .32s cubic-bezier(.2,.65,.2,1), border-color .22s ease, box-shadow .32s ease;
  transform-style: preserve-3d;
}
.product-card:hover {
  transform: translateY(-8px);
  border-color: rgba(214,177,129,0.34);
  box-shadow: 0 30px 68px rgba(0, 0, 0, 0.54), 0 0 0 1px rgba(214,177,129,.06) inset;
}
.product-media {
  position: relative;
  aspect-ratio: 1.05;
  overflow: hidden;
  background: #0f0f0f;
}
.product-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 38%, rgba(0,0,0,.32) 100%);
}
.media-sheen {
  position: absolute;
  inset: -20%;
  background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.06) 50%, transparent 65%);
  transform: translateX(-120%) rotate(9deg);
  transition: transform .85s ease;
}
.product-card:hover .media-sheen { transform: translateX(120%) rotate(9deg); }

.texture {
  width: 100%; height: 100%;
  position: relative;
}
.texture::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .9;
}
.texture.primer::before {
  background:
    radial-gradient(circle at 70% 24%, rgba(250,228,195,.22), transparent 16%),
    linear-gradient(135deg, rgba(249, 238, 223, .94), rgba(216, 197, 165, .95));
}
.texture.trowel::before {
  background:
    linear-gradient(145deg, #181818 0%, #101010 44%, #292929 44%, #cead7f 45%, #d7b989 50%, #171717 50%, #111 100%);
}
.texture.bianco::before {
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.3), transparent 20%),
    linear-gradient(145deg, rgba(233,228,220,.98), rgba(192,183,171,.98));
}
.texture.mesh::before {
  background:
    linear-gradient(0deg, rgba(219, 194, 157, .1), rgba(219, 194, 157, .1)),
    repeating-linear-gradient(0deg, rgba(223, 205, 181, .6) 0 2px, transparent 2px 20px),
    repeating-linear-gradient(90deg, rgba(223, 205, 181, .6) 0 2px, transparent 2px 20px),
    linear-gradient(135deg, #1d1d1d, #0d0d0d);
}
.texture.copper::before {
  background:
    radial-gradient(circle at 65% 20%, rgba(255,220,190,.22), transparent 18%),
    linear-gradient(145deg, rgba(188,97,34,.98), rgba(75,33,15,.98));
}
.texture.silver::before {
  background:
    radial-gradient(circle at 65% 20%, rgba(255,255,255,.2), transparent 18%),
    linear-gradient(145deg, rgba(198,200,207,.98), rgba(76,80,91,.98));
}
.texture.gloss::before {
  background:
    linear-gradient(120deg, rgba(255,255,255,.04) 0%, rgba(255,255,255,.15) 22%, rgba(255,255,255,.03) 35%, rgba(20,20,20,.2) 35%, rgba(20,20,20,.1) 100%),
    linear-gradient(145deg, rgba(33,33,33,.98), rgba(10,10,10,.98));
}
.texture.course::before {
  background:
    radial-gradient(circle at 22% 18%, rgba(255,227,183,.18), transparent 16%),
    linear-gradient(135deg, rgba(22,22,22,.95), rgba(8,8,8,.95));
}
.texture.course::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, transparent 0 44%, rgba(214,177,129,.14) 44% 46%, transparent 46%),
    radial-gradient(circle at 52% 50%, rgba(214,177,129,.18), transparent 18%);
}
.product-index {
  position: absolute;
  top: 18px; left: 18px;
  font-size: 12px;
  color: rgba(255,255,255,.7);
  letter-spacing: .12em;
  z-index: 2;
}
.product-media-label {
  position: absolute;
  right: 18px; top: 18px;
  z-index: 2;
}
.product-body {
  padding: 18px 18px 20px;
}
.card-top {
  margin-bottom: 14px;
}
.product-name {
  font-size: 21px;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0;
}
.product-desc {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  min-height: 72px;
}
.card-footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
}
.price-wrap small {
  display: block;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 10px;
}
.price-wrap strong {
  display: block;
  margin-top: 6px;
  font-size: 28px;
  color: var(--gold);
  font-weight: 600;
}
.card-cta {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid rgba(214,177,129,.24);
  background: rgba(255,255,255,.03);
  display: grid;
  place-items: center;
  color: var(--gold);
  font-size: 24px;
  transition: .22s ease;
}
.product-card:hover .card-cta {
  background: rgba(214,177,129,.12);
  transform: translateY(-2px);
}

.drawer-layer {
  position: fixed;
  inset: 0;
  z-index: 80;
  visibility: hidden;
  pointer-events: none;
}
.drawer-layer.open {
  visibility: visible;
  pointer-events: auto;
}
.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.62);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity .28s ease;
}
.drawer-layer.open .drawer-backdrop { opacity: 1; }
.drawer-panel {
  position: absolute;
  right: 0;
  top: 0;
  width: min(950px, 100%);
  height: 100%;
  background: linear-gradient(180deg, rgba(15,15,15,.97), rgba(9,9,9,.98));
  border-left: 1px solid rgba(214,177,129,.18);
  transform: translateX(100%);
  transition: transform .36s cubic-bezier(.2,.65,.2,1);
  box-shadow: -30px 0 80px rgba(0,0,0,.4);
}
.drawer-layer.open .drawer-panel { transform: translateX(0); }
.product-panel {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
}
.cart-panel {
  width: min(560px, 100%);
  padding: 26px 24px 24px;
  display: flex;
  flex-direction: column;
}
.drawer-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(214,177,129,.24);
  border-radius: 50%;
  background: rgba(255,255,255,.02);
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
  z-index: 2;
}
.drawer-visual {
  position: relative;
  min-height: 100%;
  overflow: hidden;
}
.drawer-content {
  padding: 52px 44px 38px;
  overflow-y: auto;
}
.drawer-topline {
  margin-bottom: 18px;
}
.drawer-content h2,
.cart-head h2 {
  margin: 0 0 14px;
  font-size: clamp(32px, 4vw, 54px);
  line-height: .98;
  font-weight: 300;
  letter-spacing: -.02em;
}
.drawer-description {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
  margin: 0 0 18px;
}
.drawer-price {
  font-size: 42px;
  color: var(--gold);
  font-weight: 600;
}
.drawer-features {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 12px;
}
.drawer-features li {
  position: relative;
  padding: 14px 16px 14px 44px;
  border: 1px solid rgba(214,177,129,.12);
  border-radius: 14px;
  background: rgba(255,255,255,.025);
  color: var(--muted);
}
.drawer-features li::before {
  content: '✦';
  position: absolute;
  left: 16px; top: 50%; transform: translateY(-50%);
  color: var(--gold);
}
.cart-head { padding-right: 50px; }
.cart-items {
  margin-top: 8px;
  flex: 1;
  overflow-y: auto;
  padding-right: 4px;
}
.cart-item,
.cart-empty {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(214,177,129,.12);
  border-radius: 18px;
  background: rgba(255,255,255,.025);
  margin-bottom: 12px;
}
.cart-empty {
  grid-template-columns: 1fr;
  text-align: center;
  color: var(--muted);
  padding: 22px;
}
.cart-thumb {
  position: relative;
  height: 88px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(214,177,129,.1);
}
.cart-item-title {
  font-size: 16px;
  margin: 0 0 4px;
}
.cart-item-meta {
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.cart-item-price {
  color: var(--muted);
  font-size: 14px;
}
.qty-box {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  border: 1px solid rgba(214,177,129,.15);
  border-radius: 999px;
  padding: 6px 8px;
}
.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(214,177,129,.2);
  background: rgba(255,255,255,.03);
  color: var(--text);
  cursor: pointer;
}
.qty-value { min-width: 18px; text-align: center; }
.cart-item-total {
  font-size: 20px;
  color: var(--gold);
  font-weight: 600;
  align-self: start;
  padding-top: 8px;
}
.cart-summary {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(214,177,129,.14);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015));
}
.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
  color: var(--muted);
}
.summary-row strong { color: var(--text); }
.summary-row.total {
  margin-top: 4px;
  border-top: 1px solid rgba(214,177,129,.12);
  padding-top: 16px;
  color: var(--text);
}
.summary-row.total strong {
  color: var(--gold);
  font-size: 26px;
}
.cart-actions .btn { flex: 1; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 25px);
  opacity: 0;
  pointer-events: none;
  z-index: 120;
  padding: 14px 18px;
  border-radius: 999px;
  background: rgba(17,17,17,.92);
  border: 1px solid rgba(214,177,129,.25);
  color: var(--text);
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
  transition: opacity .24s ease, transform .24s ease;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1180px) {
  .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-panel { grid-template-columns: 1fr; }
  .hero-stage { min-height: 480px; order: -1; }
}

@media (max-width: 920px) {
  .topbar { padding: 16px 18px; }
  .shell { padding: 20px 16px 60px; }
  .toolbar { padding-top: 16px; }
  .product-panel { grid-template-columns: 1fr; }
  .drawer-visual { min-height: 280px; }
  .drawer-content { padding: 32px 22px 24px; }
}

@media (max-width: 740px) {
  .products-grid { grid-template-columns: 1fr; }
  .hero-copy p { font-size: 15px; }
  .hero-card-front { padding: 16px; }
  .hero-stage { min-height: 420px; }
  .toolbar-title { font-size: 24px; }
  .product-desc { min-height: auto; }
  .topbar-actions { width: 100%; justify-content: flex-start; }
  .ghost-chip, .cart-pill { min-height: 48px; }
  .cart-item { grid-template-columns: 76px 1fr; }
  .cart-item-total { grid-column: 2; padding-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}


/* ============================================================
   AXELLIOR V3 — ZDJĘCIA Z LOKALNEGO KATALOGU
   Zachowujemy gradientowe wizualizacje CSS jako fallback.
   ============================================================ */
.texture, .hero-material { isolation: isolate; }
.texture .ax-product-image,
.hero-material .ax-product-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: var(--ax-image-fit, cover);
  object-position: var(--ax-image-position, center);
  z-index: 1;
  filter: none;
  animation: ax-product-image-in .55s cubic-bezier(.22,1,.36,1) both;
}
.hero-material .ax-product-image { z-index: 1; }
.hero-material:has(.ax-product-image)::after { z-index: 2; pointer-events: none; }
.product-media .texture .ax-product-image,
.cart-thumb .texture .ax-product-image,
.drawer-visual .texture .ax-product-image { transition: transform .6s cubic-bezier(.22,1,.36,1); }
.product-card:hover .product-media .ax-product-image { transform: scale(1.04); }
@keyframes ax-product-image-in {
  from { opacity: 0; transform: scale(1.025); }
  to { opacity: 1; transform: scale(1); }
}

/* ============================================================
   AXELLIOR V3 — WŁASNY SCROLLBAR (SAFARI / CHROME / FIREFOX)
   Aktywowany przez JS wyłącznie na komputerach z myszą.
   Nie zmieniamy mechaniki naturalnego scrollowania strony.
   ============================================================ */
@media (hover: hover) and (pointer: fine) {
  html.ax-scroll-ready,
  html.ax-scroll-ready body,
  html.ax-scroll-ready .drawer-content,
  html.ax-scroll-ready .cart-items {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
  }
  html.ax-scroll-ready::-webkit-scrollbar,
  html.ax-scroll-ready body::-webkit-scrollbar,
  html.ax-scroll-ready .drawer-content::-webkit-scrollbar,
  html.ax-scroll-ready .cart-items::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    display: none !important;
  }
}
.ax-scroll-track {
  --ax-scroll-width: 5px;
  position: absolute;
  z-index: 95;
  width: var(--ax-scroll-width);
  border-radius: 999px;
  background: rgba(214,177,129,.06);
  box-shadow: inset 0 0 0 1px rgba(214,177,129,.08);
  opacity: .76;
  touch-action: none;
  user-select: none;
  cursor: pointer;
  transition: opacity .2s ease, width .2s ease, background .2s ease;
}
.ax-scroll-track.is-page {
  position: fixed;
  z-index: 65;
  right: 9px;
  top: 11px;
  bottom: 11px;
}
.ax-scroll-track.is-inner {
  right: 9px;
  top: 10px;
  bottom: 10px;
}
.ax-scroll-track:hover,
.ax-scroll-track.is-dragging {
  width: 8px;
  background: rgba(214,177,129,.1);
  opacity: 1;
}
.ax-scroll-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 28px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f0d3a3 0%, #be8e55 52%, #8a5b30 100%);
  box-shadow: 0 0 13px rgba(206,152,80,.38), 0 0 2px rgba(250,228,190,.55);
  will-change: transform;
}
.ax-scroll-track.is-hidden { display: none !important; }
body.ax-drawer-open > .ax-scroll-track.is-page { visibility: hidden; }
.drawer-layer:not(.open) .ax-scroll-track { visibility: hidden; }
@media (hover: none), (pointer: coarse) {
  .ax-scroll-track { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .texture .ax-product-image, .hero-material .ax-product-image { animation: none; }
}
/* AXELLIOR COMMERCE: zachowanie z v3 + podpięcie sklepu */
.topbar-actions a.ghost-chip {text-decoration:none;justify-content:center}
.top-cart-price {font-size:11px;color:#e0ba85;white-space:nowrap;opacity:.85}
.language-switch {display:flex;gap:7px;align-items:center;padding:0 6px}
.language-switch a {color:#b5a490;font-size:11px;text-decoration:none;letter-spacing:.12em}
.language-switch a:hover {color:#e5c493}
@media(max-width:900px){.topbar{align-items:flex-start;flex-direction:column}.topbar-actions{width:100%;justify-content:center}.ghost-chip,.cart-pill{min-height:43px;font-size:12px;padding:0 12px}.top-cart-price{font-size:10px}}

.drawer-gallery{position:absolute;z-index:3;display:flex;flex-wrap:wrap;gap:8px;bottom:22px;left:16px;right:16px}.gallery-thumb{width:58px;height:58px;border-radius:12px;overflow:hidden;cursor:pointer;background:#121212;border:1px solid rgba(214,177,129,.22);padding:0}.gallery-thumb.selected,.gallery-thumb:hover{border-color:#e2bd85;box-shadow:0 0 0 1px #e2bd85}.gallery-thumb img{width:100%;height:100%;object-fit:cover;display:block}

@media(max-width:740px){.topbar .language-switch{margin-left:auto}.topbar .brand-wrap{justify-content:center}}


/* AXDECO 1.1.2 — nawigacja: kolekcje / studio / sklep / konto / koszyk */
.topbar-actions .ax-account-chip {
  min-width: 52px;
  padding: 0 15px;
  border: 1px solid rgba(214,177,129,.52);
  color: #e5c493;
  background: linear-gradient(135deg, rgba(214,177,129,.105), rgba(255,255,255,.025));
  box-shadow: 0 9px 27px rgba(171,120,57,.08);
}
.topbar-actions .ax-account-chip:hover,
.topbar-actions .ax-account-chip:focus-visible {
  border-color: #dec098;
  background: rgba(214,177,129,.2);
  color: #fff0d6;
}
.topbar-actions .ax-cart-chip {
  min-width: 52px;
  justify-content: center;
  gap: 9px;
}
.topbar-actions .ax-cart-chip .chip-icon,
.topbar-actions .ax-account-chip .chip-icon {width:20px;height:20px;}
.topbar-actions .ax-cart-chip .chip-icon svg,
.topbar-actions .ax-account-chip .chip-icon svg {width:20px;height:20px;}
.ax-hero-selected-texture {position:absolute;inset:0;width:100%;height:100%;}
.hero-material .ax-hero-selected-texture .ax-product-image {z-index:2;}
@media(max-width:900px) {
  .topbar-actions .ax-account-chip {min-width:45px;padding:0 12px;}
  .topbar-actions .ax-cart-chip {min-width:46px;padding-left:12px;}
}
@media(max-width:520px){
  .topbar-actions{column-gap:6px;row-gap:9px;}
  .topbar-actions .ghost-chip:not(.ax-account-chip){padding:0 10px;font-size:11px;gap:6px;}
  .topbar-actions .ax-cart-chip .top-cart-price{font-size:10px;}
  .topbar-actions .ax-cart-chip strong{min-width:26px;height:26px;font-size:11px;padding:0 6px;}
  .topbar-actions .ax-account-chip{padding:0 9px;}
  /* Obracane karty dekoracyjne nie poszerzają widoku telefonu. */
  .hero-stage{overflow:clip;}
}
