/* ===== Reset & tokens ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #faf9f7;
  --surface: #ffffff;
  --ink: #1a1a1a;
  --ink-soft: #5a5a5a;
  --muted: #8a8a8a;
  --line: #e8e4de;
  --accent: #1a1a1a;
  --accent-hover: #333;
  --warm: #8B6F5C;
  --warm-soft: #f3ebe4;
  --success: #2d6a4f;
  --danger: #b00020;
  --radius: 4px;
  --font: "DM Sans", system-ui, sans-serif;
  --serif: "Cormorant Garamond", Georgia, serif;
  --shadow: 0 12px 40px rgba(0,0,0,.12);
  --header-h: 64px;
  --topbar-h: 36px;
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

img { max-width: 100%; display: block; }
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ===== Topbar ===== */
.topbar {
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: center;
  padding: 10px 16px;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250,249,247,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  max-width: 1280px;
  margin: 0 auto;
  height: var(--header-h);
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.logo {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: .28em;
  text-align: center;
}

.logo--light { color: #fff; }

.nav {
  display: flex;
  gap: 28px;
  justify-content: flex-start;
}

.nav a {
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color .2s;
}

.nav a:hover { color: var(--ink); }

.header__actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.header__menu { display: none; }

.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  position: relative;
  border-radius: 50%;
  transition: background .2s;
}

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

.cart-count {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: var(--ink);
  color: #fff;
  font-size: 10px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile nav */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 8px 24px 16px;
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* ===== Product ===== */
.product {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 24px 64px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* Gallery */
.product__gallery {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.gallery {
  position: relative;
  background: #f0ebe4;
  border-radius: 0;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

.gallery__viewport {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  touch-action: pan-y;
  position: relative;
}

.gallery__track {
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
  height: 100%;
  transition: transform .35s cubic-bezier(.22, .8, .24, 1);
  will-change: transform;
}

.gallery__track.is-dragging {
  transition: none;
}

.gallery__slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  aspect-ratio: 4 / 5;
  height: auto;
  background: #f0ebe4;
  margin: 0;
  padding: 0;
  border: none;
  cursor: grab;
  position: relative;
  overflow: hidden;
}

.gallery__slide:active { cursor: grabbing; }

.gallery__slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.gallery__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255,255,255,.94);
  cursor: pointer;
  font-size: 0;
  line-height: 1;
  color: var(--ink);
  transition: background .2s, opacity .2s, transform .2s, box-shadow .2s;
  z-index: 4;
  border-radius: 50%;
  box-shadow: 0 2px 12px rgba(0,0,0,.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

.gallery__arrow::before {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid #1a1a1a;
  border-bottom: 2px solid #1a1a1a;
  display: block;
}

.gallery__arrow:hover {
  background: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
}

.gallery__arrow:active {
  transform: translateY(-50%) scale(0.94);
}

.gallery__arrow--prev { left: 12px; }
.gallery__arrow--prev::before {
  transform: rotate(135deg);
  margin-left: 3px;
}

.gallery__arrow--next { right: 12px; }
.gallery__arrow--next::before {
  transform: rotate(-45deg);
  margin-right: 3px;
}

.gallery__arrow:disabled,
.gallery__arrow.is-disabled {
  opacity: 0.35;
  pointer-events: none;
}

.badge {
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 6px 10px;
  background: var(--ink);
  color: #fff;
  z-index: 3;
}

.gallery__meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 3;
  pointer-events: none;
}

.gallery__dots {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 80%;
  pointer-events: auto;
}

.gallery__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255,255,255,.55);
  box-shadow: 0 0 0 1px rgba(0,0,0,.08);
  cursor: pointer;
  transition: transform .2s, background .2s, width .2s;
}

.gallery__dot.active {
  background: #fff;
  width: 18px;
  border-radius: 99px;
  box-shadow: 0 1px 4px rgba(0,0,0,.18);
}

.gallery__counter {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  color: #fff;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(6px);
  padding: 4px 10px;
  border-radius: 99px;
}

.gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.gallery__thumbs button {
  border: 1px solid transparent;
  padding: 0;
  background: #f0ebe4;
  cursor: pointer;
  aspect-ratio: 1;
  overflow: hidden;
  transition: border-color .2s;
}

.gallery__thumbs button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery__thumbs button.active,
.gallery__thumbs button:hover {
  border-color: var(--ink);
}

/* Product info */
.breadcrumb {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
  letter-spacing: .04em;
}

.product__title {
  font-family: var(--serif);
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: .01em;
  margin-bottom: 12px;
}

.product__rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.stars { color: var(--warm); font-size: 14px; letter-spacing: 2px; }
.rating-text { font-size: 13px; color: var(--muted); }

.product__price {
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}

.price--old {
  display: block;
  font-size: 13px;
  color: var(--muted);
  text-decoration: line-through;
  margin-bottom: 4px;
}

.price--row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
}

.price--current {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 600;
  letter-spacing: .02em;
}

.price--installment {
  font-size: 13px;
  color: var(--ink-soft);
}

.price--unit {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--warm);
  font-weight: 500;
}

.product__option { margin-bottom: 24px; }

.option__label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: var(--ink-soft);
}

.option__label span {
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink);
  font-weight: 500;
}

.color-swatches { display: flex; gap: 10px; }

.swatch {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid transparent;
  outline: 1px solid var(--line);
  cursor: pointer;
  padding: 2px;
}

.swatch--active {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.size-list {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.size-btn {
  min-width: 52px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all .2s;
}

.size-btn:hover { border-color: var(--ink); }
.size-btn.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.link-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: 12px;
  color: var(--ink-soft);
  text-decoration: underline;
  cursor: pointer;
  letter-spacing: .04em;
}

.link-btn:hover { color: var(--ink); }

/* Qty cards */
.qty-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.qty-options--single {
  grid-template-columns: 1fr;
  max-width: 280px;
}

.qty-card {
  position: relative;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 16px 12px;
  text-align: left;
  cursor: pointer;
  transition: all .2s;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.qty-card:hover { border-color: #bbb; }
.qty-card--active {
  border-color: var(--ink);
  background: #f7f5f2;
  box-shadow: inset 0 0 0 1px var(--ink);
}

.qty-card__badge {
  position: absolute;
  top: -9px;
  left: 10px;
  background: var(--warm);
  color: #fff;
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 2px 6px;
}

.qty-card__title {
  font-size: 13px;
  font-weight: 600;
}

.qty-card__price {
  font-size: 15px;
  font-weight: 500;
}

.qty-card__price span {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
}

.qty-card__total {
  font-size: 11px;
  color: var(--ink-soft);
}

/* Actions */
.product__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.product__actions--single {
  grid-template-columns: 1fr;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 24px;
  border: none;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: all .2s;
  border-radius: var(--radius);
}

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

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

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

.btn--outline:hover { background: var(--ink); color: #fff; }

.btn--dark {
  background: var(--ink);
  color: #fff;
  height: 44px;
  padding: 0 18px;
}

.btn--dark:hover { background: #333; }

.btn--block { width: 100%; margin-top: 8px; }

.product__stock {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.stock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(45,106,79,.15);
}

.product__help { margin-bottom: 20px; }

.help-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #25D366;
  font-weight: 500;
}

.help-link:hover { opacity: .85; }

.shipping-calc {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 16px;
  margin-bottom: 24px;
}

.shipping-calc label {
  display: block;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: var(--ink-soft);
}

.shipping-calc__row {
  display: flex;
  gap: 8px;
}

.shipping-calc input {
  flex: 1;
  height: 44px;
  border: 1px solid var(--line);
  padding: 0 12px;
  background: var(--bg);
}

.shipping-calc input:focus {
  outline: none;
  border-color: var(--ink);
}

.shipping-result {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-soft);
  min-height: 1.2em;
}

.shipping-result.ok { color: var(--success); }

.product__perks {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product__perks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-soft);
}

/* ===== Details / tabs ===== */
.details {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 64px 24px;
}

.details__inner {
  max-width: 860px;
  margin: 0 auto;
}

.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}

.tab {
  background: none;
  border: none;
  padding: 12px 16px;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all .2s;
}

.tab:hover { color: var(--ink); }
.tab--active {
  color: var(--ink);
  border-bottom-color: var(--ink);
  font-weight: 600;
}

.tab-panel { display: none; }
.tab-panel--active { display: block; animation: fadeIn .3s ease; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.tab-panel p { margin-bottom: 14px; color: var(--ink-soft); }
.tab-panel h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  margin: 24px 0 12px;
}

.tab-panel ul { margin: 0 0 16px 0; }
.tab-panel ul li {
  padding: 6px 0 6px 18px;
  position: relative;
  color: var(--ink-soft);
}

.tab-panel ul li::before {
  content: "·";
  position: absolute;
  left: 4px;
  font-weight: 700;
  color: var(--ink);
}

.color-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0 20px !important;
}

.color-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 0 !important;
}

.color-list li::before { display: none; }

.color-list .dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-block;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.feature-grid li {
  padding: 20px !important;
  background: var(--bg);
  border: 1px solid var(--line);
}

.feature-grid li::before { display: none; }

.feature-grid strong {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--ink);
}

.feature-grid span {
  font-size: 13px;
  color: var(--ink-soft);
}

/* ===== Lifestyle ===== */
.lifestyle { padding: 80px 24px; }

.lifestyle__grid {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.lifestyle__card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.lifestyle__card--reverse .lifestyle__img { order: 2; }
.lifestyle__card--reverse .lifestyle__text { order: 1; }

.lifestyle__img {
  aspect-ratio: 4/5;
  overflow: hidden;
  background: #f0ebe4;
}

.lifestyle__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lifestyle__text h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.lifestyle__text p {
  color: var(--ink-soft);
  font-size: 15px;
  max-width: 380px;
  line-height: 1.7;
}

/* ===== Newsletter ===== */
.newsletter {
  background: var(--warm-soft);
  padding: 72px 24px;
  text-align: center;
}

.newsletter__inner { max-width: 520px; margin: 0 auto; }

.newsletter h2 {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 500;
  margin-bottom: 10px;
}

.newsletter p {
  color: var(--ink-soft);
  margin-bottom: 24px;
  font-size: 14px;
}

.newsletter__form {
  display: flex;
  gap: 8px;
}

.newsletter__form input {
  flex: 1;
  height: 52px;
  border: 1px solid var(--line);
  padding: 0 16px;
  background: #fff;
}

.newsletter__form input:focus {
  outline: none;
  border-color: var(--ink);
}

.newsletter__msg {
  margin-top: 12px;
  font-size: 13px;
  color: var(--success);
  min-height: 1.2em;
}

/* ===== Footer ===== */
.footer {
  background: var(--ink);
  color: #c8c8c8;
  padding: 64px 24px 24px;
}

.footer__grid {
  max-width: 1100px;
  margin: 0 auto 48px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer__brand p {
  margin-top: 16px;
  font-size: 13px;
  max-width: 240px;
  line-height: 1.6;
}

.footer h4 {
  color: #fff;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer h4.mt { margin-top: 28px; }

.footer ul li { margin-bottom: 10px; }

.footer a {
  font-size: 13px;
  color: #a0a0a0;
  transition: color .2s;
}

.footer a:hover { color: #fff; }

.footer__pay { font-size: 13px; color: #a0a0a0; }

.footer__bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid #333;
  text-align: center;
  font-size: 12px;
  color: #777;
}

/* ===== Cart drawer ===== */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
  z-index: 80;
}

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

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(400px, 100%);
  height: 100%;
  background: var(--surface);
  z-index: 90;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}

.cart-drawer.open { transform: none; }

.cart-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px;
  border-bottom: 1px solid var(--line);
}

.cart-drawer__head h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
}

.cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.cart-empty {
  text-align: center;
  color: var(--muted);
  padding: 48px 0;
  font-size: 14px;
}

.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.cart-item img {
  width: 72px;
  height: 90px;
  object-fit: cover;
  background: #f0ebe4;
}

.cart-item__name {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 4px;
}

.cart-item__meta {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}

.cart-item__price {
  font-size: 14px;
  font-weight: 600;
}

.cart-item__remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 12px;
  text-decoration: underline;
  align-self: start;
}

.cart-drawer__foot {
  padding: 20px;
  border-top: 1px solid var(--line);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 14px;
}

.cart-total strong {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
}

/* ===== Modal ===== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}

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

.modal__box {
  background: var(--surface);
  max-width: 480px;
  width: 100%;
  padding: 32px 28px;
  position: relative;
  box-shadow: var(--shadow);
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
}

.modal__box h3 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  margin-bottom: 6px;
}

.modal__sub {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}

.size-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-bottom: 16px;
}

.size-table th,
.size-table td {
  padding: 10px 8px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.size-table th {
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.modal__note {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: #fff;
  padding: 14px 24px;
  font-size: 13px;
  letter-spacing: .04em;
  z-index: 120;
  opacity: 0;
  pointer-events: none;
  transition: all .3s;
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== Cookie ===== */
.cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  z-index: 70;
  box-shadow: 0 -4px 24px rgba(0,0,0,.06);
  transform: translateY(100%);
  transition: transform .35s;
}

.cookie-bar.show { transform: none; }

.cookie-bar p {
  font-size: 13px;
  color: var(--ink-soft);
  max-width: 720px;
}

.cookie-bar a { text-decoration: underline; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .product {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 0 48px;
  }

  .product__gallery {
    position: static;
    margin: 0;
  }

  .product__info {
    padding: 0 20px;
  }

  .gallery {
    border-radius: 0;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }

  .gallery__viewport {
    width: 100%;
  }

  .gallery__slide {
    aspect-ratio: 1 / 1.15;
    min-height: 280px;
    max-height: min(72vh, 520px);
  }

  .gallery__slide img {
    object-fit: cover;
    object-position: center top;
  }

  .gallery__arrow {
    display: inline-flex;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,.96);
  }

  .gallery__arrow--prev { left: 10px; }
  .gallery__arrow--next { right: 10px; }

  /* Mobile: horizontal thumb strip like a real gallery */
  .gallery__thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    padding: 12px 16px 4px;
    margin-top: 0;
    scrollbar-width: none;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .gallery__thumbs::-webkit-scrollbar {
    display: none;
  }

  .gallery__thumbs button {
    flex: 0 0 64px;
    width: 64px;
    min-width: 64px;
    height: 64px;
    aspect-ratio: 1;
    scroll-snap-align: start;
    border-radius: 8px;
    border: 1.5px solid transparent;
    overflow: hidden;
  }

  .gallery__thumbs button.active {
    border-color: var(--ink);
  }

  .gallery__thumbs button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .gallery__dots {
    max-width: 70%;
  }

  .lifestyle__card,
  .lifestyle__card--reverse {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .lifestyle__card--reverse .lifestyle__img,
  .lifestyle__card--reverse .lifestyle__text { order: unset; }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .nav { display: none; }
  .header__menu { display: inline-flex; }
  .header__inner { grid-template-columns: auto 1fr auto; }
  .logo { text-align: left; font-size: 24px; letter-spacing: .22em; }
}

@media (max-width: 600px) {
  .topbar { font-size: 10px; padding: 8px 10px; height: auto; min-height: var(--topbar-h); }

  .qty-options { grid-template-columns: 1fr; }

  .product__actions { grid-template-columns: 1fr; }

  .qty-options--single { max-width: none; }

  .feature-grid { grid-template-columns: 1fr; }

  .newsletter__form { flex-direction: column; }

  .footer__grid { grid-template-columns: 1fr; gap: 28px; }

  .cookie-bar {
    flex-direction: column;
    text-align: center;
  }

  .price--current { font-size: 30px; }

  .gallery__slide {
    aspect-ratio: 1 / 1.2;
    max-height: min(70vh, 480px);
  }

  .gallery__thumbs button {
    flex: 0 0 56px;
    width: 56px;
    min-width: 56px;
    height: 56px;
  }

  /* Too many dots look bad — hide dots, keep counter */
  .gallery__dots { display: none; }
}
