/* Dusklia storefront — locked visual direction: dark plum, candlelit rose. */

:root {
  color-scheme: dark;
  --bg: #14070d;
  --bg-2: #1a0912;
  --panel: #210d17;
  --panel-2: #2a101c;
  --ink: #f7ebef;
  --ink-soft: #e6ccd5;
  --muted: #bd93a3;
  --rose: #e8a3b9;
  --rose-strong: #f4bccd;
  --rose-deep: #c97b93;
  --wine: #6f1936;
  --wine-dark: #4a0f24;
  --blush: #f7d6df;
  --line: rgba(247, 214, 223, 0.14);
  --line-strong: rgba(247, 214, 223, 0.26);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius: 18px;
  --radius-sm: 12px;
  --container: 1180px;
}

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

[hidden] {
  display: none !important;
}

#site-header {
  position: sticky;
  top: 0;
  z-index: 60;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background:
    radial-gradient(1100px 720px at 88% -8%, rgba(111, 25, 54, 0.55), transparent 62%),
    radial-gradient(820px 620px at -6% 24%, rgba(232, 163, 185, 0.09), transparent 58%),
    radial-gradient(700px 500px at 50% 110%, rgba(74, 15, 36, 0.5), transparent 65%),
    var(--bg);
  background-attachment: fixed;
}

body.no-scroll {
  overflow: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
}

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

::selection {
  background: var(--rose);
  color: #2a0c18;
}

:focus-visible {
  outline: 2px solid var(--rose-strong);
  outline-offset: 3px;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 0.9em;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--rose);
}

.text-link {
  color: var(--rose-strong);
  border-bottom: 1px solid rgba(244, 188, 205, 0.4);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.text-link:hover {
  color: #fff;
  border-color: #fff;
}

.link-button {
  background: none;
  border: 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.78rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link-button:hover {
  color: var(--rose-strong);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  text-align: center;
}

.btn--primary {
  background: linear-gradient(135deg, var(--rose-strong), var(--rose-deep));
  color: #2a0c18;
  box-shadow: 0 12px 34px rgba(232, 163, 185, 0.22);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 44px rgba(232, 163, 185, 0.32);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--rose);
  color: var(--rose-strong);
}

.btn--sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.78rem;
}

.btn--block {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* ---------- announcement + header ---------- */

.announcement {
  background: linear-gradient(90deg, var(--wine-dark), var(--wine));
  color: var(--blush);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  padding: 9px 16px;
}

.site-header {
  position: relative;
  z-index: 60;
  background: rgba(20, 7, 13, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 76px;
}

.brand {
  font-family: var(--serif);
  font-size: 1.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
  padding-left: 0.2em;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex: 1;
  margin-left: 8px;
}

.primary-nav a {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.primary-nav a:hover {
  color: var(--rose-strong);
  border-color: var(--rose);
}

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

.search {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(247, 214, 223, 0.04);
  padding: 0 6px 0 14px;
  height: 38px;
}

.search input {
  width: 108px;
  background: none;
  border: 0;
  outline: none;
  font-size: 0.8rem;
  color: var(--ink);
}

.search input::placeholder {
  color: var(--muted);
}

.search button {
  background: none;
  border: 0;
  color: var(--rose);
  font-size: 1rem;
  cursor: pointer;
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.search button:hover {
  background: rgba(232, 163, 185, 0.12);
}

.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.cart-button:hover {
  border-color: var(--rose);
  color: var(--rose-strong);
}

.cart-count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--rose);
  color: #2a0c18;
  font-size: 0.7rem;
  font-weight: 700;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--ink);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 8px 0;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 104px;
  border-bottom: 1px solid var(--line);
}

.hero__glow {
  position: absolute;
  inset: -20% -10% auto auto;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 163, 185, 0.24), rgba(111, 25, 54, 0.22) 42%, transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  max-width: 760px;
}

.hero h1 {
  font-size: clamp(3rem, 6.6vw, 5.4rem);
  line-height: 0.98;
  margin-bottom: 0.35em;
}

.hero__copy {
  max-width: 520px;
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin-bottom: 2em;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- trust bar ---------- */

.trust-bar {
  border-bottom: 1px solid var(--line);
  background: rgba(33, 13, 23, 0.55);
}

.trust-bar__inner {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 18px 0;
}

.trust-bar__item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.trust-bar__item::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 12px rgba(232, 163, 185, 0.8);
  flex: none;
}

/* ---------- sections ---------- */

.section {
  padding: 78px 0;
}

.section--panel {
  background: linear-gradient(180deg, rgba(33, 13, 23, 0.66), rgba(26, 9, 18, 0.66));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  margin-bottom: 34px;
}

.section-head h2 {
  font-size: clamp(2rem, 3.4vw, 2.9rem);
}

.section-head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

/* ---------- category cards ---------- */

.category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.category-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 300px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background:
    radial-gradient(120% 100% at 80% 0%, rgba(232, 163, 185, 0.18), transparent 55%),
    linear-gradient(170deg, var(--panel-2), var(--wine-dark));
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.category-card:nth-child(2) {
  background: radial-gradient(120% 100% at 20% 0%, rgba(244, 188, 205, 0.16), transparent 55%), linear-gradient(170deg, #24101a, #3d1027);
}

.category-card:nth-child(3) {
  background: radial-gradient(120% 100% at 80% 10%, rgba(201, 123, 147, 0.2), transparent 55%), linear-gradient(170deg, #1c0a13, #2c0d1e);
}

.category-card:nth-child(4) {
  background: radial-gradient(120% 100% at 30% 0%, rgba(247, 214, 223, 0.13), transparent 55%), linear-gradient(170deg, #231019, #471226);
}

.category-card:nth-child(5) {
  background: radial-gradient(120% 100% at 70% 0%, rgba(232, 163, 185, 0.15), transparent 55%), linear-gradient(170deg, #1d0b15, #331021);
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
}

.category-card__name {
  font-family: var(--serif);
  font-size: 1.5rem;
  margin-bottom: 0.35em;
}

.category-card__copy {
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-bottom: 1.2em;
}

.category-card__count {
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rose);
}

/* ---------- product grid + cards ---------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: rgba(33, 13, 23, 0.62);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
}

.product-card__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #1a0912;
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-card__media img {
  transform: scale(1.035);
}

.ph {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(80% 70% at 30% 20%, rgba(232, 163, 185, 0.2), transparent 60%),
    linear-gradient(160deg, #2a101c, #170810);
}

.ph span {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: rgba(247, 214, 223, 0.34);
  letter-spacing: 0.08em;
}

.ph--sm {
  width: 74px;
  height: 90px;
  border-radius: 10px;
  flex: none;
}

.ph--sm span {
  font-size: 1.6rem;
}

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(20, 7, 13, 0.82);
  border: 1px solid var(--line-strong);
  color: var(--blush);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.badge--sale {
  background: var(--rose);
  color: #2a0c18;
  border-color: transparent;
}

.badge--new {
  background: rgba(247, 214, 223, 0.92);
  color: #2a0c18;
}

.product-card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 16px 18px;
  flex: 1;
}

.product-card__cat {
  margin: 0;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.product-card__title {
  font-size: 1.22rem;
  margin: 0;
}

.product-card__title a:hover {
  color: var(--rose-strong);
}

.product-card__sub {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.45;
  min-height: 2.2em;
}

.product-card__rating {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.72rem;
  color: var(--muted);
}

.stars {
  color: var(--rose);
  letter-spacing: 0.08em;
  font-size: 0.74rem;
}

.rating-copy {
  color: var(--muted);
}

.rating-copy--muted {
  color: var(--muted);
}

.product-card__price {
  margin-top: 2px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.price {
  font-family: var(--serif);
  font-size: 1.34rem;
  color: var(--ink);
}

.price-was {
  font-size: 0.82rem;
  color: var(--muted);
}

.product-card__actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 10px;
}

/* ---------- skeleton ---------- */

.skeleton-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(33, 13, 23, 0.4);
}

.skeleton-card__media {
  aspect-ratio: 4 / 5;
  background: linear-gradient(100deg, #1d0b14 20%, #2a101c 40%, #1d0b14 60%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite linear;
}

.skeleton-card__line {
  height: 12px;
  margin: 16px;
  border-radius: 6px;
  background: rgba(247, 214, 223, 0.08);
}

.skeleton-card__line--short {
  width: 55%;
}

@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

/* ---------- privacy section ---------- */

.privacy-section {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}

.privacy-section h2 {
  font-size: clamp(2rem, 3.6vw, 3rem);
}

.privacy-list {
  display: grid;
  gap: 18px;
  margin-top: 26px;
}

.privacy-list li {
  padding-left: 26px;
  position: relative;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.privacy-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -1px;
  color: var(--rose);
  font-size: 0.9rem;
}

.privacy-box {
  position: relative;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    radial-gradient(70% 60% at 70% 20%, rgba(232, 163, 185, 0.16), transparent 60%),
    linear-gradient(160deg, #2a101c, #150810);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
}

.privacy-box__parcel {
  width: 58%;
  aspect-ratio: 1.25 / 1;
  border-radius: 10px;
  background: linear-gradient(160deg, #3a1a27, #24101a);
  border: 1px solid rgba(247, 214, 223, 0.18);
  position: relative;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
}

.privacy-box__parcel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 38%;
  width: 22%;
  background: rgba(232, 163, 185, 0.16);
  border-left: 1px dashed rgba(247, 214, 223, 0.2);
  border-right: 1px dashed rgba(247, 214, 223, 0.2);
}

.privacy-box__label {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--serif);
  font-size: 1.1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247, 214, 223, 0.7);
  white-space: nowrap;
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(15, 5, 10, 0.7);
  padding: 64px 0 28px;
  margin-top: 20px;
}

.footer-grid {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.84rem;
  max-width: 300px;
}

.brand--footer {
  font-size: 1.5rem;
  margin-bottom: 0.8em;
}

.footer-note {
  color: var(--rose) !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.08em;
}

.site-footer h3 {
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.2em;
}

.site-footer li {
  margin-bottom: 0.65em;
}

.site-footer li a {
  font-size: 0.84rem;
  color: var(--ink-soft);
}

.site-footer li a:hover {
  color: var(--rose-strong);
}

.footer-bottom {
  width: min(var(--container), calc(100% - 40px));
  margin: 48px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ---------- page / shop ---------- */

.page {
  padding: 40px 0 90px;
}

.breadcrumb {
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 34px;
  letter-spacing: 0.04em;
}

.breadcrumb a:hover {
  color: var(--rose-strong);
}

.page-head {
  max-width: 720px;
  margin-bottom: 40px;
}

.page-head h1 {
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
}

.page-desc {
  color: var(--ink-soft);
  max-width: 620px;
}

.result-count {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.shop-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 42px;
  align-items: start;
}

.filters {
  position: sticky;
  top: 100px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: rgba(33, 13, 23, 0.45);
}

.filters h2 {
  font-family: var(--sans);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.4em;
}

.field {
  display: block;
  margin-bottom: 16px;
}

.field span {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}

.field input,
.field select {
  width: 100%;
  min-height: 42px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(20, 7, 13, 0.7);
  color: var(--ink);
  outline: none;
}

.field input:focus,
.field select:focus {
  border-color: var(--rose);
}

.price-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.filter-actions {
  display: grid;
  gap: 8px;
  margin-top: 20px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  background: rgba(33, 13, 23, 0.4);
}

.chip:hover {
  border-color: var(--rose);
  color: var(--rose-strong);
}

.chip.is-active {
  background: var(--rose);
  border-color: var(--rose);
  color: #2a0c18;
  font-weight: 600;
}

.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.sort {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sort select {
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(20, 7, 13, 0.7);
  color: var(--ink);
  padding: 0 12px;
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  padding-top: 40px;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
}

.empty-state h2 {
  font-size: 1.8rem;
}

.empty-state p {
  color: var(--muted);
}

/* ---------- product detail ---------- */

.product-detail {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 60px;
  align-items: start;
  margin-bottom: 90px;
}

.product-gallery__main {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #1a0912;
}

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

.product-gallery__thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.product-gallery__thumb {
  width: 74px;
  height: 92px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #1a0912;
  padding: 0;
  cursor: pointer;
}

.product-gallery__thumb.is-active {
  border-color: var(--rose);
}

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

.product-info h1 {
  font-size: clamp(2.3rem, 4.2vw, 3.4rem);
  margin-bottom: 0.3em;
}

.product-sub {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 1.4em;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 1.2em;
  font-size: 0.82rem;
}

.product-price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 0.7em;
}

.product-price .price {
  font-size: 2rem;
}

.stock {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.6em;
}

.stock--in {
  color: #a9d4b4;
}

.stock--low {
  color: #f0c98a;
}

.stock--out {
  color: #e39aa8;
}

.product-material {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1.6em;
}

.product-buy {
  display: flex;
  align-items: stretch;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.product-buy .btn {
  flex: 1;
  min-width: 150px;
}

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  height: 48px;
  overflow: hidden;
  background: rgba(20, 7, 13, 0.6);
}

.qty button {
  width: 42px;
  height: 100%;
  background: none;
  border: 0;
  color: var(--ink);
  font-size: 1.05rem;
  cursor: pointer;
}

.qty button:hover {
  background: rgba(232, 163, 185, 0.1);
  color: var(--rose-strong);
}

.qty input {
  width: 40px;
  text-align: center;
  background: none;
  border: 0;
  outline: none;
  font-size: 0.9rem;
  -moz-appearance: textfield;
  appearance: textfield;
}

.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.qty span {
  min-width: 34px;
  text-align: center;
  font-size: 0.9rem;
}

.qty--sm {
  height: 34px;
}

.qty--sm button {
  width: 30px;
}

.qty--sm span {
  min-width: 26px;
  font-size: 0.8rem;
}

.trust-list {
  display: grid;
  gap: 10px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}

.trust-list li {
  font-size: 0.8rem;
  color: var(--ink-soft);
  padding-left: 22px;
  position: relative;
}

.trust-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--rose);
}

.product-tabs {
  margin-top: 8px;
}

.tab-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}

.tab-button {
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 10px 14px;
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  margin-bottom: -1px;
}

.tab-button.is-active {
  color: var(--rose-strong);
  border-color: var(--rose);
}

.tab-panel {
  display: none;
  color: var(--ink-soft);
  font-size: 0.92rem;
  white-space: pre-line;
}

.tab-panel.is-active {
  display: block;
}

.related {
  border-top: 1px solid var(--line);
  padding-top: 60px;
}

.related h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 30px;
}

/* ---------- cart drawer ---------- */

.cart-backdrop,
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 3, 6, 0.66);
  backdrop-filter: blur(3px);
  z-index: 80;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.cart-backdrop {
  z-index: 84;
}

.cart-backdrop.is-visible {
  opacity: 1;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(430px, 100%);
  z-index: 90;
  background: linear-gradient(180deg, #1e0a14, #150710);
  border-left: 1px solid var(--line-strong);
  box-shadow: -30px 0 80px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  transform: translateX(102%);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.cart-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px 0;
}

.cart-drawer__head h2 {
  font-size: 1.7rem;
  margin: 0;
}

.icon-button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.icon-button:hover {
  border-color: var(--rose);
  color: var(--rose-strong);
}

.shipping-meter {
  padding: 18px 24px 20px;
  border-bottom: 1px solid var(--line);
}

.shipping-meter p {
  font-size: 0.72rem;
  color: var(--ink-soft);
  margin-bottom: 9px;
}

.shipping-meter__track {
  height: 4px;
  border-radius: 999px;
  background: rgba(247, 214, 223, 0.1);
  overflow: hidden;
}

.shipping-meter__track span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--rose-deep), var(--rose-strong));
  transition: width 0.4s ease;
}

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

.cart-lines {
  display: grid;
  gap: 2px;
}

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

.cart-line__media img {
  width: 74px;
  height: 90px;
  object-fit: cover;
  border-radius: 10px;
}

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

.cart-line__title {
  font-family: var(--serif);
  font-size: 1.12rem;
  display: block;
  margin-bottom: 2px;
}

.cart-line__title:hover {
  color: var(--rose-strong);
}

.cart-line__meta {
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.cart-line__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.cart-line__price {
  font-size: 0.86rem;
}

.cart-empty {
  text-align: center;
  padding: 60px 10px;
}

.cart-empty p {
  color: var(--muted);
  margin-bottom: 18px;
}

.cart-drawer__foot {
  padding: 18px 24px 24px;
  border-top: 1px solid var(--line);
  background: rgba(20, 7, 13, 0.5);
}

.cart-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}

.cart-total span {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.cart-total strong {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
}

.cart-fine,
.cart-note {
  font-size: 0.7rem;
  color: var(--muted);
  margin-bottom: 12px;
}

.cart-note {
  color: var(--rose);
  margin: 10px 0 0;
}

#checkout-button {
  margin-bottom: 8px;
}

/* ---------- quick view / modal ---------- */

#modal-root {
  display: none;
}

#modal-root.is-open {
  display: grid;
  place-items: center;
  position: fixed;
  inset: 0;
  z-index: 95;
}

#modal-root .modal-backdrop {
  opacity: 1;
}

.quick-view {
  position: relative;
  z-index: 96;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(920px, calc(100% - 32px));
  max-height: calc(100vh - 60px);
  overflow-y: auto;
  border-radius: 22px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(160deg, #230e19, #160811);
  box-shadow: var(--shadow);
}

.quick-view__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  background: rgba(20, 7, 13, 0.8);
}

.quick-view__media {
  min-height: 420px;
  background: #1a0912;
  display: grid;
}

.quick-view__media img,
.quick-view__media .ph {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.quick-view__body {
  padding: 38px 34px;
  align-self: center;
}

.quick-view__body h2 {
  font-size: 2.1rem;
  margin-bottom: 0.2em;
}

.quick-view__sub {
  color: var(--muted);
  font-size: 0.9rem;
}

.quick-view__rating {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  margin-bottom: 14px;
}

.quick-view__price {
  margin-bottom: 16px;
}

.quick-view__price .price {
  font-size: 1.7rem;
}

.quick-view__desc {
  color: var(--ink-soft);
  font-size: 0.86rem;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 20px;
}

.quick-view__buy {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.quick-view__buy .btn {
  flex: 1;
}

/* ---------- age gate ---------- */

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(700px 520px at 75% 10%, rgba(111, 25, 54, 0.6), transparent 65%),
    radial-gradient(600px 500px at 15% 90%, rgba(232, 163, 185, 0.12), transparent 60%),
    #0f0509;
}

.age-gate__panel {
  width: min(520px, 100%);
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  padding: 46px 40px 38px;
  text-align: center;
  background: linear-gradient(165deg, rgba(42, 16, 28, 0.95), rgba(20, 7, 13, 0.98));
  box-shadow: var(--shadow);
}

.age-gate__brand {
  font-family: var(--serif);
  font-size: 1.7rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  margin-bottom: 1.4em;
  color: var(--rose-strong);
}

.age-gate h1 {
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  margin-bottom: 0.4em;
}

.age-gate__copy {
  color: var(--ink-soft);
  font-size: 0.9rem;
  max-width: 380px;
  margin: 0 auto 1.8em;
}

.age-gate__enter {
  width: 100%;
  min-height: 52px;
}

.age-gate__exit {
  display: inline-block;
  margin-top: 18px;
  font-size: 0.78rem;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.age-gate__exit:hover {
  color: var(--rose-strong);
}

.age-gate__note {
  margin: 22px 0 0;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- toast ---------- */

.toast-root {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 120;
  display: grid;
  gap: 8px;
  width: min(420px, calc(100% - 32px));
  pointer-events: none;
}

.toast {
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(33, 13, 23, 0.97);
  color: var(--ink);
  font-size: 0.84rem;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .primary-nav {
    gap: 14px;
  }

  .primary-nav a {
    font-size: 0.67rem;
    letter-spacing: 0.1em;
  }

  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }

  .footer-grid > div:last-child {
    grid-column: 2;
  }
}

@media (max-width: 860px) {
  .site-header__inner {
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 0;
  }

  .nav-toggle {
    display: inline-block;
    order: 0;
  }

  .brand {
    order: 1;
    font-size: 1.35rem;
  }

  .header-actions {
    order: 2;
    gap: 8px;
  }

  .search {
    display: none;
  }

  .primary-nav {
    order: 3;
    flex-basis: 100%;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-top: 1px solid var(--line);
    padding-top: 10px;
  }

  .primary-nav.is-open {
    display: flex;
  }

  .primary-nav a {
    padding: 10px 0;
    width: 100%;
    font-size: 0.8rem;
  }

  .hero {
    padding: 64px 0 72px;
  }

  .trust-bar__inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 16px;
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .shop-layout {
    grid-template-columns: 1fr;
  }

  .filters {
    position: static;
  }

  .product-detail {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .privacy-section {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .footer-grid > div:last-child {
    grid-column: auto;
  }

  .quick-view {
    grid-template-columns: 1fr;
  }

  .quick-view__media {
    min-height: 260px;
    max-height: 320px;
  }

  .quick-view__body {
    padding: 26px 24px 30px;
  }

  .section {
    padding: 58px 0;
  }
}

@media (max-width: 560px) {
  .container,
  .site-header__inner,
  .trust-bar__inner,
  .footer-grid,
  .footer-bottom {
    width: calc(100% - 28px);
  }

  .product-grid {
    gap: 12px;
  }

  .product-card__body {
    padding: 12px;
  }

  .product-card__title {
    font-size: 1.05rem;
  }

  .product-card__actions {
    grid-template-columns: 1fr;
  }

  .product-card__actions .btn {
    min-height: 40px;
  }

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

  .category-card {
    min-height: 220px;
  }

  .age-gate__panel {
    padding: 34px 22px 28px;
  }

  .section-head--row {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .site-footer {
    padding-top: 48px;
  }

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

  .product-buy {
    display: grid;
    grid-template-columns: 1fr;
  }

  .qty {
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- checkout ---------- */

.checkout-page {
  padding-top: 34px;
}

.checkout-head h1 {
  font-size: clamp(2.6rem, 5.4vw, 4rem);
}

.checkout-steps {
  display: flex;
  gap: 26px;
  padding: 0;
  margin: 0 0 30px;
  list-style: none;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.checkout-steps li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkout-steps li span {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  font-size: 0.6rem;
  letter-spacing: 0;
}

.checkout-steps li.is-active {
  color: var(--rose-strong);
}

.checkout-steps li.is-active span {
  border-color: var(--rose);
  background: var(--rose);
  color: #2a0c18;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 44px;
  align-items: start;
}

.checkout-main {
  min-width: 0;
}

.checkout-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: rgba(33, 13, 23, 0.55);
  margin-bottom: 16px;
}

.checkout-card h2 {
  font-size: 1.55rem;
  margin-bottom: 0.8em;
}

.checkout-card h3 {
  font-family: var(--sans);
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.5em;
}

.checkout-card p {
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}

.field--wide {
  grid-column: 1 / -1;
}

.checkout-help {
  color: var(--muted);
  font-size: 0.72rem;
  margin: 0.4em 0 0;
}

.checkout-card .checkout-help {
  color: var(--muted);
  font-size: 0.72rem;
}

.checkout-error {
  border: 1px solid rgba(227, 154, 168, 0.45);
  background: rgba(227, 154, 168, 0.08);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
  color: #f0b8bf;
  font-size: 0.84rem;
}

.ship-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  background: rgba(20, 7, 13, 0.4);
  cursor: pointer;
}

.ship-option input {
  width: 16px;
  height: 16px;
  accent-color: var(--rose);
}

.ship-option__left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ship-option__left strong {
  display: block;
  font-size: 0.9rem;
}

.ship-option__left em {
  display: block;
  font-style: normal;
  font-size: 0.72rem;
  color: var(--muted);
}

.ship-option__price {
  color: var(--rose-strong);
  font-weight: 600;
  font-size: 0.84rem;
}

.order-summary {
  position: sticky;
  top: 104px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: rgba(33, 13, 23, 0.62);
}

.order-summary h2 {
  font-size: 1.4rem;
  margin-bottom: 1em;
}

.summary-lines {
  display: grid;
}

.summary-line {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.summary-line:first-child {
  padding-top: 0;
}

.summary-line__media img,
.summary-line__media .ph {
  width: 52px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
}

.summary-line__body {
  flex: 1;
  min-width: 0;
}

.summary-line__title {
  display: block;
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 1.2;
}

.summary-line__meta {
  display: block;
  font-size: 0.68rem;
  color: var(--muted);
  margin-top: 2px;
}

.summary-line__price {
  font-size: 0.82rem;
  white-space: nowrap;
}

.summary-totals {
  padding-top: 16px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.summary-row--total {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 12px;
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--ink);
}

.summary-note {
  font-size: 0.68rem;
  color: var(--muted);
  margin: 10px 0 0;
}

.checkout-back {
  margin-bottom: 14px;
}

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

.review-grid p {
  margin: 0;
  font-size: 0.84rem;
}

.test-payment {
  border: 1px solid rgba(232, 163, 185, 0.28);
  background: rgba(232, 163, 185, 0.06);
  border-radius: 14px;
  padding: 20px;
}

.test-payment p {
  margin: 0 0 12px;
  font-size: 0.84rem;
  color: var(--ink-soft);
}

.test-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--rose);
  color: #2a0c18;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.test-card {
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  color: var(--muted);
  font-size: 0.76rem;
  margin-bottom: 16px;
}

.test-payment .link-button {
  display: block;
  margin: 12px auto 0;
}

.test-payment code {
  font-size: 0.78em;
  background: rgba(247, 214, 223, 0.1);
  padding: 1px 5px;
  border-radius: 4px;
}

.confirmation {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  padding: 20px 0 60px;
}

.confirmation h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
}

.confirmation__sub {
  color: var(--muted);
  font-size: 0.9rem;
}

.confirmation__badge {
  display: inline-block;
  margin: 0 0 26px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(169, 212, 180, 0.45);
  color: #a9d4b4;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.confirmation__badge--warn {
  border-color: rgba(227, 154, 168, 0.5);
  color: #e39aa8;
}

.confirmation__panel {
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  background: rgba(33, 13, 23, 0.55);
  margin-bottom: 22px;
}

.confirmation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 22px;
}

.confirmation-grid h3 {
  font-family: var(--sans);
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.5em;
}

.confirmation-grid p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--ink-soft);
}

.confirmation .btn {
  margin-top: 6px;
}

@media (max-width: 900px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .order-summary {
    position: static;
  }

  .review-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media (max-width: 560px) {
  .checkout-grid {
    grid-template-columns: 1fr;
  }

  .field--wide {
    grid-column: auto;
  }

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

  .checkout-card {
    padding: 18px;
  }

  .checkout-steps {
    gap: 14px;
    font-size: 0.58rem;
  }
}
