/* Lira Candles - public site styles. Brand: gold #DFA552, cream #FFF7EB, ink, KyivType Sans. */

@font-face {
  font-family: 'KyivType Sans';
  src: url('/fonts/KyivTypeSans-Light2.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-cyrillic-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  --gold: #dfa552;
  --gold-hover: #d4963e;
  --gold-deep: #94601c;
  --gold-soft: #f7e6c9;
  --cream: #fff7eb;
  --cream-deep: #fbeedb;
  --paper: #ffffff;
  --ink: #1d1813;
  --ink-soft: #3d342c;
  --muted: #6d6056;
  --line: rgba(29, 24, 19, 0.1);
  --line-strong: rgba(29, 24, 19, 0.2);
  --success: #2f7a4d;
  --danger: #b3261e;
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 12px rgba(90, 60, 25, 0.07);
  --shadow: 0 16px 44px rgba(90, 60, 25, 0.13);
  --font-display: 'KyivType Sans', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --container: 1180px;
  --header-h: 68px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.drawer-open {
  overflow: hidden;
}

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

img {
  height: auto;
}

a {
  color: inherit;
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 300;
  font-synthesis: none;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.3rem, 1.5rem + 3.4vw, 4.1rem);
}

h2 {
  font-size: clamp(1.85rem, 1.35rem + 1.9vw, 2.7rem);
}

h3 {
  font-size: 1.3rem;
}

p {
  margin: 0 0 1em;
}

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

[hidden] {
  display: none !important;
}

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

.eyebrow {
  display: inline-block;
  margin: 0 0 0.9rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gold-deep);
}

.lead {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 34em;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--cream);
}

.skip-link:focus {
  left: 12px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 48px;
  padding: 0.7em 1.45em;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 8px 22px rgba(223, 165, 82, 0.35);
}

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

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

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

.btn-light {
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
}

.btn-light:hover {
  background: #fff;
}

.btn-small {
  min-height: 40px;
  padding: 0.5em 1.05em;
  font-size: 0.88rem;
}

.btn-block {
  width: 100%;
}

.btn-grow {
  flex: 1;
}

.btn[disabled],
.btn[aria-disabled='true'] {
  opacity: 0.55;
  pointer-events: none;
}

.icon-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.2s;
}

.icon-button:hover {
  background: rgba(29, 24, 19, 0.06);
}

.icon-button.subtle {
  color: var(--muted);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 600;
  color: var(--gold-deep);
  text-decoration: none;
  transition: gap 0.2s;
}

.link-arrow:hover {
  gap: 0.65em;
}

.link-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

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

/* ---------------------------------------------------------------- header */

.announcement {
  padding: 0.55rem 16px;
  background: var(--ink);
  color: var(--cream);
  font-size: 0.9rem;
  text-align: center;
}

.announcement-muted {
  background: var(--gold-soft);
  color: var(--ink);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 247, 235, 0.88);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  flex: none;
}

.brand img {
  height: 38px;
  width: auto;
}

.main-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}

.main-nav a {
  position: relative;
  padding: 6px 0;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a[aria-current='page'] {
  color: var(--ink);
}

.main-nav a[aria-current='page']::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 2px;
}

.cart-count {
  position: absolute;
  top: 3px;
  right: 1px;
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 700;
}

.cart-count.is-bumped {
  animation: bump 0.4s ease;
}

@keyframes bump {
  40% {
    transform: scale(1.35);
  }
}

.menu-button {
  display: none;
}

@media (max-width: 860px) {
  :root {
    --header-h: 60px;
  }

  .brand img {
    height: 32px;
  }

  .menu-button {
    display: inline-grid;
  }

  .header-actions {
    margin-left: auto;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 4px 16px 16px;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(90, 60, 25, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  }

  .main-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .main-nav a {
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
  }

  .main-nav a:last-child {
    border-bottom: 0;
  }

  .main-nav a[aria-current='page']::after {
    display: none;
  }
}

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

.hero {
  position: relative;
  overflow-x: clip;
  padding: clamp(28px, 6vw, 84px) 0 clamp(48px, 7vw, 100px);
}

.hero::before {
  content: '';
  position: absolute;
  top: -20vw;
  right: -14vw;
  width: 64vw;
  height: 64vw;
  max-width: 780px;
  max-height: 780px;
  background: radial-gradient(closest-side, rgba(223, 165, 82, 0.3), rgba(223, 165, 82, 0));
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.hero-copy h1 {
  max-width: 11.5em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 36px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 560px;
  margin: 0;
}

.hero-stats div {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.6);
}

.hero-stats dt {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.15;
}

.hero-stats dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.hero-visual {
  position: relative;
}

.hero-photo {
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 999px 999px var(--radius-lg) var(--radius-lg);
  background: var(--cream-deep);
  box-shadow: var(--shadow);
}

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

.hero-visual-empty {
  display: grid;
  place-items: center;
  min-height: 320px;
}

.hero-emblem {
  width: min(300px, 70%);
  height: auto;
}

.hero-card {
  position: absolute;
  left: -32px;
  bottom: 32px;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 330px;
  padding: 12px 18px 12px 12px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.hero-card img {
  flex: none;
  width: 72px;
  height: 88px;
  border-radius: 12px;
  object-fit: cover;
}

.hero-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 300;
  line-height: 1.25;
}

.hero-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.hero-visual-empty .hero-card {
  position: static;
  margin-top: 24px;
}

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

  .hero-visual {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
  }

  .hero-card {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
  }
}

@media (max-width: 520px) {
  .hero-actions .btn {
    flex: 1;
  }

  .hero-stats {
    gap: 8px;
  }

  .hero-stats div {
    padding: 10px;
  }

  .hero-stats dt {
    font-size: 1.05rem;
  }

  .hero-stats dd {
    font-size: 0.72rem;
  }
}

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

.section {
  padding: clamp(48px, 7vw, 96px) 0;
}

.section-tight {
  padding: 16px 0 64px;
}

.section-soft {
  background: var(--cream-deep);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.section-head h2 {
  margin: 0;
}

.section-head .eyebrow {
  margin-bottom: 0.6rem;
}

.section-cta {
  margin-top: 36px;
  text-align: center;
}

@media (max-width: 600px) {
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* ---------------------------------------------------------------- product cards */

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

.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.product-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--cream-deep);
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}

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

.is-sold-out .product-media img {
  filter: grayscale(0.4);
  opacity: 0.78;
}

.product-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 100%;
  background: var(--cream-deep);
}

.product-placeholder img {
  width: 34%;
  height: auto;
  opacity: 0.7;
}

.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.4;
}

.badge-muted {
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink-soft);
}

.badge-gold {
  background: var(--gold);
  color: var(--ink);
}

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

.product-title {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.25;
}

.product-title a {
  text-decoration: none;
}

.product-title a:hover {
  color: var(--gold-deep);
}

.product-summary {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-foot .btn {
  box-shadow: none;
}

.product-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}

.price {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.price-now {
  font-size: 1.05rem;
  font-weight: 700;
  white-space: nowrap;
}

.price-old {
  color: var(--muted);
  font-size: 0.88rem;
  white-space: nowrap;
}

.price-sale .price-now {
  color: var(--gold-deep);
}

@media (max-width: 1100px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .product-body {
    padding: 10px 12px 12px;
    gap: 4px;
  }

  .product-title {
    font-size: 1.02rem;
  }

  .product-summary {
    display: none;
  }

  .product-foot {
    flex-wrap: nowrap;
  }

  .price-now {
    font-size: 0.98rem;
  }

  .price-old {
    font-size: 0.78rem;
  }

  .product-foot .btn {
    flex: none;
    width: 40px;
    min-height: 40px;
    padding: 0;
    box-shadow: none;
  }

  .product-foot .btn span {
    display: none;
  }
}

/* ---------------------------------------------------------------- about, steps, gallery, contacts */

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: clamp(32px, 6vw, 84px);
}

.about-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg) var(--radius-lg) 999px 999px;
  box-shadow: var(--shadow);
}

.about-media .about-emblem {
  aspect-ratio: auto;
  border-radius: 0;
  box-shadow: none;
  max-width: 320px;
  margin: 0 auto;
}

.prose p {
  color: var(--ink-soft);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
}

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

  .about-media {
    max-width: 420px;
  }
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  padding: 26px 24px;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.step-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  border-radius: 16px;
  background: var(--gold-soft);
  color: var(--gold-deep);
}

.steps h3 {
  margin-bottom: 0.35em;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 760px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .steps li {
    display: grid;
    grid-template-columns: 54px 1fr;
    column-gap: 16px;
    padding: 18px;
  }

  .step-icon {
    grid-row: span 2;
    margin: 0;
  }
}

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

.gallery-item {
  aspect-ratio: 4 / 5;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--cream);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}

.gallery-item:hover img {
  transform: scale(1.03);
}

@media (max-width: 760px) {
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

.contact-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 24px 48px;
  overflow: hidden;
  padding: clamp(28px, 5vw, 60px);
  border-radius: var(--radius-lg);
  background: var(--gold);
  color: var(--ink);
}

.contact-card .eyebrow {
  color: var(--ink);
  opacity: 0.75;
}

.contact-mark {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 240px;
  height: 240px;
  opacity: 0.28;
  pointer-events: none;
}

.contact-copy {
  position: relative;
}

.contact-copy h2 {
  margin-bottom: 0.4em;
}

.contact-copy p {
  max-width: 32em;
  margin: 0;
}

.contact-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

@media (max-width: 860px) {
  .contact-card {
    grid-template-columns: 1fr;
  }

  .contact-actions {
    justify-content: flex-start;
  }
}

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

.site-footer {
  padding: 56px 0 24px;
  background: var(--ink);
  color: rgba(255, 247, 235, 0.78);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}

.footer-brand img {
  width: 150px;
  height: auto;
  margin-bottom: 16px;
}

.footer-brand p {
  max-width: 22em;
  margin: 0;
}

.site-footer h3 {
  margin-bottom: 14px;
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.site-footer ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a {
  color: rgba(255, 247, 235, 0.88);
  text-decoration: none;
}

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

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 247, 235, 0.12);
  color: rgba(255, 247, 235, 0.55);
  font-size: 0.85rem;
}

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* ---------------------------------------------------------------- catalog */

.page-head {
  padding: 28px 0 8px;
}

.page-head h1 {
  margin-bottom: 0.15em;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 18px;
  padding: 0;
  color: var(--muted);
  font-size: 0.85rem;
  list-style: none;
}

.breadcrumbs li + li::before {
  content: '/';
  margin-right: 6px;
  opacity: 0.5;
}

.breadcrumbs a {
  text-decoration: none;
}

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

.category-chips {
  display: flex;
  gap: 8px;
  margin: 0 -16px 24px;
  padding: 2px 16px 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-chips::-webkit-scrollbar {
  display: none;
}

.category-chips a {
  flex: none;
  padding: 9px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
}

.category-chips a:hover {
  border-color: var(--ink);
}

.category-chips a[aria-current='page'] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--cream);
}

.empty-state {
  max-width: 480px;
  margin: 0 auto;
  padding: 48px 16px;
  text-align: center;
}

.empty-state img {
  margin: 0 auto 16px;
}

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

/* ---------------------------------------------------------------- product page */

.product-page {
  padding: 24px 0 48px;
}

.product-page > .section {
  margin-top: clamp(32px, 5vw, 64px);
}

.product-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: start;
  gap: clamp(28px, 5vw, 64px);
}

.product-gallery {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  min-width: 0;
}

.gallery-track {
  display: flex;
  overflow-x: auto;
  border-radius: var(--radius-lg);
  background: var(--cream-deep);
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.gallery-track::-webkit-scrollbar {
  display: none;
}

.gallery-slide {
  flex: 0 0 100%;
  aspect-ratio: 4 / 5;
  margin: 0;
  scroll-snap-align: start;
}

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

.gallery-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
}

.gallery-thumbs button {
  flex: none;
  width: 68px;
  height: 84px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 12px;
  background: none;
  opacity: 0.65;
  cursor: pointer;
  transition: opacity 0.2s, border-color 0.2s;
}

.gallery-thumbs button[aria-current='true'] {
  border-color: var(--gold);
  opacity: 1;
}

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

.product-info h1 {
  margin-bottom: 0.3em;
  font-size: clamp(2rem, 1.5rem + 2vw, 3.1rem);
}

.product-price {
  margin-bottom: 8px;
}

.product-price .price-now {
  font-size: 1.6rem;
}

.product-price .price-old {
  font-size: 1.1rem;
}

.availability {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--success);
  font-size: 0.95rem;
  font-weight: 500;
}

.availability .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.availability.is-out {
  color: var(--muted);
}

.buy-box {
  display: flex;
  gap: 12px;
  margin: 24px 0;
}

.stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
}

.stepper button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: none;
  cursor: pointer;
}

.stepper button:hover {
  background: rgba(29, 24, 19, 0.06);
}

.stepper span {
  min-width: 26px;
  font-weight: 600;
  text-align: center;
}

.stepper-large button {
  width: 48px;
  height: 48px;
}

.info-list {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.info-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.info-list .icon {
  flex: none;
  margin-top: 2px;
  color: var(--gold-deep);
}

.info-list strong {
  display: block;
  color: var(--ink);
}

.notice {
  margin: 20px 0;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--gold-soft);
  font-size: 0.95rem;
}

.notice-success {
  background: #e3f1e7;
}

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

  .product-gallery {
    position: static;
  }

  .gallery-track {
    margin: 0 -16px;
    border-radius: 0;
  }

  .gallery-thumbs {
    display: none;
  }
}

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

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(29, 24, 19, 0.42);
  opacity: 0;
  transition: opacity 0.25s;
}

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

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 61;
  display: flex;
  flex-direction: column;
  width: min(440px, 100%);
  background: var(--cream);
  box-shadow: -20px 0 60px rgba(29, 24, 19, 0.16);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0.32s;
}

.drawer.is-open {
  transform: none;
  visibility: visible;
}

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

.drawer-head h2 {
  margin: 0;
  font-size: 1.5rem;
}

.drawer-view,
.checkout-form {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}

.drawer-body {
  flex: 1;
  padding: 16px 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.drawer-foot {
  padding: 14px 20px calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.cart-lines {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cart-line {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
}

.cart-line-media img {
  width: 72px;
  height: 90px;
  border-radius: 12px;
  background: var(--cream-deep);
  object-fit: cover;
}

.cart-line-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.cart-line-name {
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
}

.cart-line-price {
  color: var(--muted);
  font-size: 0.9rem;
}

.cart-line-warning {
  color: var(--danger);
  font-size: 0.85rem;
  font-weight: 500;
}

.cart-line.is-unavailable .cart-line-media img {
  opacity: 0.45;
}

.cart-line-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}

.cart-empty {
  padding: 48px 12px;
  color: var(--muted);
  text-align: center;
}

.cart-empty img {
  margin: 0 auto 12px;
}

.cart-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 1.02rem;
}

.cart-total strong {
  font-size: 1.35rem;
}

.fine-print {
  margin: 6px 0 12px;
  color: var(--muted);
  font-size: 0.8rem;
}

.drawer-foot .fine-print:last-child {
  margin: 10px 0 0;
  text-align: center;
}

/* ---------------------------------------------------------------- forms */

.checkout-form fieldset {
  margin: 0 0 22px;
  padding: 0;
  border: 0;
}

.checkout-form legend {
  margin-bottom: 10px;
  padding: 0;
  font-family: var(--font-display);
  font-size: 1.28rem;
}

.field {
  display: grid;
  align-content: start;
  gap: 6px;
  margin-bottom: 14px;
}

.field > span {
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 500;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 16px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field textarea {
  min-height: 88px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 3px rgba(223, 165, 82, 0.28);
}

.field.has-error input,
.field.has-error textarea {
  border-color: var(--danger);
}

.field-error {
  color: var(--danger);
  font-size: 0.82rem;
}

.field-hint {
  color: var(--muted);
  font-size: 0.8rem;
}

.share-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: 12px;
}

.small {
  font-size: 0.85rem;
}

.success-email {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.field-error:empty {
  display: none;
}

.choice-list {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.choice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
}

.choice:has(input:checked) {
  border-color: var(--gold-deep);
  background: #fffcf6;
  box-shadow: 0 0 0 1px var(--gold-deep);
}

.choice input {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--gold-deep);
}

.choice small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.8rem;
}

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 8px;
  cursor: pointer;
}

.check input {
  width: 20px;
  height: 20px;
  accent-color: var(--gold-deep);
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-error {
  margin: 10px 0;
  color: var(--danger);
  font-weight: 500;
}

.turnstile-box:empty {
  display: none;
}

.success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-top: 48px;
  text-align: center;
}

.success h3 {
  margin: 8px 0 0;
  font-size: 1.6rem;
}

.success h3 span,
.order-head h1 {
  white-space: nowrap;
}

.success p {
  color: var(--ink-soft);
}

.success-icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font-size: 0.92rem;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translate(-50%, 16px);
  transition: opacity 0.25s, transform 0.25s;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--gold);
  font-weight: 700;
  cursor: pointer;
}

/* ---------------------------------------------------------------- orders */

.card {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.card h2 {
  font-size: 1.45rem;
}

.order-page {
  padding: 24px 0 64px;
}

.order-head h1 {
  margin-bottom: 0.1em;
}

.order-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: start;
  gap: 20px;
  margin-top: 24px;
}

.status-card h2 {
  margin-bottom: 0.25em;
  font-size: 1.85rem;
}

.status-card.is-cancelled h2 {
  color: var(--danger);
}

.status-label {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.timeline {
  display: grid;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.timeline-step {
  position: relative;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  padding-bottom: 18px;
}

.timeline-step:not(:last-child)::before {
  content: '';
  position: absolute;
  top: 28px;
  bottom: 0;
  left: 13px;
  width: 2px;
  background: var(--line);
}

.timeline-step.is-done:not(:last-child)::before {
  background: var(--gold);
}

.timeline-dot {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
}

.is-done .timeline-dot {
  border-color: var(--gold);
  background: var(--gold);
}

.is-current .timeline-dot {
  border-color: var(--gold);
  box-shadow: 0 0 0 5px rgba(223, 165, 82, 0.25);
}

.is-current .timeline-dot::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
}

.timeline-text {
  display: flex;
  flex-direction: column;
  padding-top: 3px;
  line-height: 1.35;
}

.is-todo .timeline-text {
  color: var(--muted);
}

.timeline-text small {
  color: var(--muted);
  font-size: 0.8rem;
}

.tracking {
  display: grid;
  gap: 6px;
  margin-top: 8px;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: var(--cream);
}

.tracking-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.2rem;
}

.cancel-form {
  margin-top: 20px;
}

.order-items {
  display: grid;
  gap: 12px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.order-items li {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 12px;
}

.order-item-media img,
.order-item-media .product-placeholder {
  width: 56px;
  height: 70px;
  border-radius: 10px;
  object-fit: cover;
}

.order-item-name small {
  display: block;
  color: var(--muted);
}

.order-total {
  display: flex;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 1.1rem;
}

.order-details {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
}

.order-details dt {
  color: var(--muted);
  font-size: 0.8rem;
}

.order-details dd {
  margin: 0;
}

.help-box {
  margin-top: 28px;
  color: var(--muted);
  text-align: center;
}

.help-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.my-orders {
  display: grid;
  gap: 12px;
  max-width: 720px;
}

.my-order {
  display: grid;
  gap: 6px;
  padding: 18px 20px;
  text-decoration: none;
  transition: box-shadow 0.2s;
}

.my-order:hover {
  box-shadow: var(--shadow);
}

.my-order-top,
.my-order-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.status-pill {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--gold-soft);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.status-pill.is-done {
  background: #e3f1e7;
}

.status-pill.is-cancelled {
  background: #f3e3e0;
  color: #7a2a22;
}

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

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