/* =========================================================
   STEF IS THE BEST — Girlfriend Application
   Luxury editorial aesthetic · mobile-first
   ========================================================= */

:root {
  /* Palette */
  --cream:        #f7f1e1;
  --cream-deep:   #efe6cf;
  --paper:        #fbf7ea;
  --ink:          #1b1f1a;
  --ink-soft:     #3a3d35;
  --ink-muted:    #6d6b5c;
  --gold:         #b8902f;
  --gold-soft:    #c9a961;
  --gold-deep:    #8a6a1f;
  --burgundy:     #6e2a2f;
  --error:        #8b2a2a;

  /* Type */
  --f-display: "Playfair Display", Georgia, serif;
  --f-italic:  "Cormorant Garamond", Georgia, serif;
  --f-body:    "Outfit", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --wrap: 560px;
  --radius: 10px;
  --radius-sm: 6px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(27,31,26,.06), 0 2px 8px rgba(27,31,26,.04);
  --shadow-md: 0 4px 16px rgba(27,31,26,.08), 0 2px 4px rgba(27,31,26,.06);
  --shadow-lg: 0 16px 48px rgba(27,31,26,.18), 0 6px 16px rgba(27,31,26,.1);
}

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

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

body {
  margin: 0;
  font-family: var(--f-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  font-size: 16px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100dvh;
  overflow-x: hidden;

  /* Subtle paper texture */
  background-image:
    radial-gradient(ellipse at top left, rgba(184,144,47,.08), transparent 60%),
    radial-gradient(ellipse at bottom right, rgba(110,42,47,.05), transparent 55%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.1  0 0 0 0 0.12  0 0 0 0 0.1  0 0 0 0.05 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: auto, auto, 160px 160px;
}

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

button { font: inherit; cursor: pointer; color: inherit; }

::selection { background: var(--gold-soft); color: var(--ink); }

/* =========================================================
   TOP BAR (the sidebar/header)
   ========================================================= */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(180deg, var(--ink) 0%, #161a16 100%);
  color: var(--cream);
  border-bottom: 1px solid rgba(184,144,47,.35);
  box-shadow: 0 1px 0 rgba(0,0,0,.2), 0 6px 20px rgba(0,0,0,.15);
  padding-top: env(safe-area-inset-top);
}

.topbar__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  flex: 1;
  min-width: 0;
}

.brand__logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 1.5px solid var(--gold);
  box-shadow: 0 0 0 2px rgba(184,144,47,.12), inset 0 0 0 1px rgba(255,255,255,.08);
  background: var(--cream);
  position: relative;
}
.brand__logo::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  box-shadow: inset 0 -4px 10px rgba(0,0,0,.2);
  pointer-events: none;
}
.brand__logo img { width: 100%; height: 100%; object-fit: cover; }

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
}
.brand__name {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: .02em;
  color: var(--cream);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand__est {
  font-family: var(--f-italic);
  font-style: italic;
  font-size: 11px;
  color: var(--gold-soft);
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-top: 2px;
}

.topbar__badge {
  font-family: var(--f-italic);
  font-style: italic;
  font-size: 11px;
  color: var(--gold-soft);
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid rgba(184,144,47,.4);
  border-radius: 100px;
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 380px) {
  .topbar__badge { display: none; }
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 56px 24px 48px;
  text-align: center;
  position: relative;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  background-repeat: no-repeat;
}

.hero__ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 22px;
  max-width: 200px;
}
.hero__ornament--bottom { margin: 28px auto 28px; }

.hero__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent);
}
.hero__diamond {
  color: var(--gold);
  font-size: 10px;
  line-height: 1;
}

.hero__eyebrow {
  font-family: var(--f-italic);
  font-style: italic;
  font-size: 14px;
  color: var(--gold-deep);
  letter-spacing: .04em;
  margin: 0 0 10px;
}

.hero__title {
  font-family: var(--f-display);
  font-weight: 900;
  margin: 0;
  line-height: .9;
  letter-spacing: -.02em;
  color: var(--ink);
  font-size: clamp(50px, 16vw, 84px);
}

.hero__title-line {
  display: block;
}
.hero__title-line--italic {
  font-weight: 400;
  font-style: italic;
  font-family: var(--f-italic);
  color: var(--burgundy);
  letter-spacing: -.01em;
  margin-top: -4px;
  font-size: 1.05em;
}

.hero__sub {
  font-family: var(--f-italic);
  font-style: italic;
  font-size: 16px;
  color: var(--ink-soft);
  margin: 18px auto 0;
  max-width: 360px;
}
.hero__sub em {
  color: var(--burgundy);
  font-weight: 500;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  margin-top: 8px;
  background: var(--ink);
  color: var(--cream);
  text-decoration: none;
  font-family: var(--f-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  border-radius: 100px;
  box-shadow: var(--shadow-md), inset 0 0 0 1px rgba(184,144,47,.25);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  position: relative;
  overflow: hidden;
}
.hero__cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(201,169,97,.25), transparent);
  transform: translateX(-100%);
  transition: transform .6s ease;
}
.hero__cta:hover::before { transform: translateX(100%); }
.hero__cta:active { transform: translateY(1px); }

/* =========================================================
   ACCORDION (About / Shop)
   ========================================================= */

.accordion {
  max-width: var(--wrap);
  margin: 0 auto 18px;
  padding: 0 16px;
}

.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--paper);
  border: 1px solid rgba(184,144,47,.28);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-align: left;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
  position: relative;
}

.accordion__trigger:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
}

.accordion__avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 1.5px solid var(--gold);
  box-shadow: inset 0 0 0 2px var(--paper);
  background: var(--cream-deep);
  position: relative;
}
.accordion__avatar img { width: 100%; height: 100%; object-fit: cover; }
.accordion__avatar--mono {
  display: grid;
  place-items: center;
  color: var(--gold-deep);
  background: var(--cream-deep);
}
.accordion__avatar--mono svg { width: 22px; height: 22px; }

.accordion__label {
  flex: 1;
  min-width: 0;
  line-height: 1.15;
}
.accordion__kicker {
  display: block;
  font-family: var(--f-italic);
  font-style: italic;
  font-size: 11px;
  color: var(--gold-deep);
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.accordion__title {
  display: block;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 22px;
  color: var(--ink);
  letter-spacing: .005em;
}

.accordion__chevron {
  font-size: 18px;
  color: var(--gold-deep);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  flex-shrink: 0;
  margin-left: 6px;
}

.accordion[data-open="true"] .accordion__chevron { transform: rotate(-180deg); }
.accordion[data-open="true"] .accordion__trigger {
  border-color: var(--gold);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom-color: transparent;
}

.accordion__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .5s cubic-bezier(.4,0,.2,1);
  background: var(--paper);
  border: 1px solid transparent;
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  margin-top: -1px;
}

.accordion[data-open="true"] .accordion__panel {
  max-height: 560px;
  border-color: var(--gold);
  border-top: 1px dashed rgba(184,144,47,.45);
  box-shadow: var(--shadow-sm);
}

.accordion__panel-inner {
  max-height: 560px;
  overflow-y: auto;
  padding: 20px;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-soft) transparent;
  -webkit-overflow-scrolling: touch;
}
.accordion__panel-inner::-webkit-scrollbar { width: 6px; }
.accordion__panel-inner::-webkit-scrollbar-track { background: transparent; }
.accordion__panel-inner::-webkit-scrollbar-thumb {
  background: var(--gold-soft);
  border-radius: 100px;
}

.accordion__intro {
  font-family: var(--f-italic);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-muted);
  text-align: center;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(184,144,47,.35);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.accordion__scroll-hint {
  font-size: 10px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-style: normal;
  animation: hint-bob 2.5s ease-in-out infinite;
}
@keyframes hint-bob {
  0%, 100% { opacity: .4; transform: translateY(0); }
  50%      { opacity: 1;  transform: translateY(2px); }
}

/* =========================================================
   GALLERY
   ========================================================= */

.gallery {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.photo { margin: 0; }

.photo__frame {
  position: relative;
  background: var(--cream);
  padding: 8px;
  border: 1px solid rgba(184,144,47,.4);
  border-radius: 4px;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.photo__frame::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(184,144,47,.5);
  pointer-events: none;
  z-index: 2;
}
.photo__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px;
  transition: transform .8s ease;
}
.photo:hover .photo__frame img { transform: scale(1.03); }

.photo figcaption {
  padding: 14px 4px 0;
}
.photo h3 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 20px;
  margin: 0 0 6px;
  color: var(--ink);
  letter-spacing: .005em;
}
.photo p {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.6;
}
.photo em {
  font-family: var(--f-italic);
  font-style: italic;
  color: var(--burgundy);
}

/* =========================================================
   SHOP
   ========================================================= */

.shop {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.product {
  display: flex;
  gap: 14px;
  background: var(--cream);
  border: 1px solid rgba(184,144,47,.25);
  border-radius: var(--radius);
  padding: 12px;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.product:hover {
  border-color: var(--gold);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.product__media {
  position: relative;
  width: 110px;
  aspect-ratio: 1;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--cream-deep);
  border: 1px solid rgba(184,144,47,.2);
}
.product__media img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.product__tag {
  position: absolute;
  top: 8px; left: 8px;
  background: var(--ink);
  color: var(--cream);
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 100px;
  font-weight: 500;
}
.product__tag--gold {
  background: var(--gold);
  color: var(--ink);
}
.product__tag--soldout {
  background: var(--burgundy);
  color: var(--cream);
  top: auto; bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
}

.product__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.product__name {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 17px;
  margin: 2px 0 4px;
  color: var(--ink);
  line-height: 1.25;
}

.product__meta {
  font-size: 12px;
  color: var(--ink-muted);
  margin: 0 0 auto;
  line-height: 1.45;
}

.product__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.product__price {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
  letter-spacing: .01em;
}
.product__price--strike {
  text-decoration: line-through;
  color: var(--ink-muted);
  font-weight: 400;
}

.product__btn {
  background: var(--ink);
  color: var(--cream);
  border: none;
  padding: 8px 14px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  border-radius: 100px;
  transition: background .2s ease, transform .2s ease;
  box-shadow: inset 0 0 0 1px rgba(184,144,47,.3);
  white-space: nowrap;
}
.product__btn:hover { background: var(--burgundy); }
.product__btn:active { transform: scale(.96); }
.product__btn:disabled {
  background: var(--cream-deep);
  color: var(--ink-muted);
  box-shadow: inset 0 0 0 1px rgba(184,144,47,.2);
  cursor: not-allowed;
}

.product--soldout {
  opacity: .8;
}
.product--soldout .product__media img {
  filter: grayscale(.7);
}

/* =========================================================
   APPLICATION FORM
   ========================================================= */

.app-section {
  max-width: var(--wrap);
  margin: 48px auto 0;
  padding: 0 16px 20px;
}

.app-section__head {
  text-align: center;
  padding: 32px 0 28px;
  border-top: 1px solid rgba(184,144,47,.3);
  border-bottom: 1px solid rgba(184,144,47,.3);
  margin-bottom: 32px;
  position: relative;
}

.app-section__ornament {
  display: block;
  color: var(--gold);
  font-size: 14px;
  margin-bottom: 12px;
}

.app-section__kicker {
  font-family: var(--f-italic);
  font-style: italic;
  font-size: 12px;
  color: var(--gold-deep);
  letter-spacing: .24em;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.app-section__title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 44px;
  margin: 0;
  line-height: .95;
  letter-spacing: -.015em;
  color: var(--ink);
}

.app-section__sub {
  font-family: var(--f-italic);
  font-style: italic;
  color: var(--ink-muted);
  font-size: 14.5px;
  margin: 14px auto 0;
  max-width: 360px;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: none;
  padding: 0;
  margin: 0;
  min-width: 0;
}

.field__label {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 18px;
  color: var(--ink);
  line-height: 1.3;
}

.field__num {
  font-family: var(--f-italic);
  font-style: italic;
  font-weight: 400;
  font-size: 14px;
  color: var(--gold-deep);
  letter-spacing: .05em;
  flex-shrink: 0;
  min-width: 28px;
}

.field__qtext {
  flex: 1;
}

.field__hint {
  font-family: var(--f-italic);
  font-style: italic;
  font-size: 12.5px;
  color: var(--ink-muted);
  margin: 2px 0 0;
}

.field__input {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid rgba(184,144,47,.35);
  border-radius: var(--radius-sm);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.field__input::placeholder {
  color: var(--ink-muted);
  font-style: italic;
  opacity: .7;
}

.field__input:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--cream);
  box-shadow: 0 0 0 3px rgba(184,144,47,.15);
}

.field__input--area {
  resize: vertical;
  min-height: 100px;
  line-height: 1.55;
  font-family: var(--f-body);
}

/* Radio */
.radio-grid {
  display: grid;
  gap: 10px;
}
.radio-grid--two { grid-template-columns: 1fr 1fr; }

.radio {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--paper);
  border: 1px solid rgba(184,144,47,.35);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .15s ease;
  user-select: none;
}
.radio:hover { border-color: var(--gold); }
.radio:active { transform: scale(.98); }

.radio input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio__box {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--gold-deep);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--cream);
  transition: border-color .2s ease, background .2s ease;
}
.radio__box::after {
  content: "";
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gold);
  transform: scale(0);
  transition: transform .2s ease;
}
.radio input:checked + .radio__box::after { transform: scale(1); }
.radio input:checked + .radio__box {
  border-color: var(--gold);
  background: var(--cream);
}
.radio:has(input:checked) {
  border-color: var(--gold);
  background: var(--cream);
}

.radio__label {
  font-family: var(--f-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}

/* Stars */
.stars {
  display: flex;
  gap: 6px;
  direction: rtl;
  justify-content: flex-end;
}
.star input { position: absolute; opacity: 0; pointer-events: none; }
.star span {
  font-size: 32px;
  color: rgba(184,144,47,.3);
  cursor: pointer;
  transition: color .15s ease, transform .15s ease;
  display: inline-block;
  line-height: 1;
}
.star:hover span,
.star:hover ~ .star span,
.star input:checked ~ span { color: var(--gold); }
.star input:checked ~ span { transform: scale(1.05); }

/* Chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  cursor: pointer;
  user-select: none;
}
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--paper);
  border: 1px solid rgba(184,144,47,.35);
  border-radius: 100px;
  color: var(--ink-soft);
  transition: all .2s ease;
}
.chip:hover span { border-color: var(--gold); }
.chip input:checked + span {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

/* Consent */
.form__consent { margin-top: 4px; }

.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
  padding: 12px;
  background: var(--paper);
  border: 1px solid rgba(184,144,47,.25);
  border-radius: var(--radius-sm);
}
.consent input { position: absolute; opacity: 0; pointer-events: none; }
.consent__box {
  width: 20px; height: 20px;
  border: 1.5px solid var(--gold-deep);
  background: var(--cream);
  border-radius: 4px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 1px;
  transition: all .2s ease;
}
.consent__box::after {
  content: "✓";
  font-size: 14px;
  color: var(--gold);
  opacity: 0;
  transform: scale(.5);
  transition: all .2s ease;
}
.consent input:checked + .consent__box { background: var(--cream); border-color: var(--gold); }
.consent input:checked + .consent__box::after { opacity: 1; transform: scale(1); }

.consent__text {
  font-family: var(--f-italic);
  font-style: italic;
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.5;
}

/* Submit */
.submit {
  margin-top: 10px;
  padding: 18px 24px;
  background: var(--ink);
  color: var(--cream);
  border: none;
  border-radius: 100px;
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: var(--shadow-md), inset 0 0 0 1px rgba(184,144,47,.3);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  position: relative;
  overflow: hidden;
}
.submit::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(201,169,97,.3), transparent);
  transform: translateX(-100%);
  transition: transform .7s ease;
}
.submit:hover::before { transform: translateX(100%); }
.submit:active { transform: scale(.98); }
.submit__arrow {
  font-family: var(--f-display);
  font-size: 18px;
  letter-spacing: 0;
}

.form__note {
  font-family: var(--f-italic);
  font-style: italic;
  font-size: 13px;
  text-align: center;
  color: var(--ink-muted);
  margin: 0;
}
.form__note em { color: var(--burgundy); }

/* =========================================================
   FOOTER
   ========================================================= */

.footer {
  max-width: var(--wrap);
  margin: 56px auto 0;
  padding: 40px 24px calc(40px + env(safe-area-inset-bottom));
  text-align: center;
  color: var(--ink-muted);
}

.footer__divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 22px;
  max-width: 220px;
  margin-left: auto;
  margin-right: auto;
}
.footer__divider > span:not(.footer__diamond) {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.footer__diamond {
  color: var(--gold);
  font-size: 10px;
}

.footer__line {
  font-family: var(--f-display);
  font-size: 16px;
  margin: 4px 0;
  color: var(--ink-soft);
  letter-spacing: .05em;
}
.footer__line--small {
  font-family: var(--f-italic);
  font-style: italic;
  font-size: 13px;
  color: var(--ink-muted);
  letter-spacing: .12em;
  text-transform: lowercase;
}

.footer__fine {
  font-size: 11.5px;
  color: var(--ink-muted);
  margin: 18px auto 0;
  max-width: 320px;
  line-height: 1.5;
  opacity: .75;
}

/* =========================================================
   MODAL (Congratulations)
   ========================================================= */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}
.modal[aria-hidden="false"] {
  display: flex;
  animation: modal-in .35s ease;
}

@keyframes modal-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15,18,14,.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.modal__shell {
  position: relative;
  background: var(--cream);
  width: 100%;
  max-width: 520px;
  max-height: 92dvh;
  overflow-y: auto;
  border-radius: 20px 20px 0 0;
  box-shadow: var(--shadow-lg);
  animation: shell-up .45s cubic-bezier(.22,1,.36,1);
  border-top: 3px solid var(--gold);
}

@keyframes shell-up {
  from { transform: translateY(30px); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}

.modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(6px);
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  color: var(--ink);
  display: grid;
  place-items: center;
  z-index: 2;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease;
}
.modal__close:hover { transform: scale(1.08); }

.modal__media {
  margin: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #eaddc6;
}
.modal__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal__body {
  padding: 26px 24px 32px;
  text-align: center;
}

.modal__title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 34px;
  margin: 0 0 12px;
  line-height: 1;
  letter-spacing: -.01em;
  color: var(--ink);
}

.modal__lead {
  font-family: var(--f-italic);
  font-style: italic;
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0 auto 22px;
  max-width: 400px;
  line-height: 1.6;
}

.modal__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  border-radius: 100px;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: .03em;
  box-shadow: 0 6px 18px rgba(37,211,102,.35);
  transition: transform .2s ease, box-shadow .2s ease;
}
.modal__cta:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(37,211,102,.45); }
.modal__cta:active { transform: translateY(0); }
.modal__cta-icon { width: 22px; height: 22px; }

.modal__fine {
  font-family: var(--f-italic);
  font-style: italic;
  font-size: 12.5px;
  color: var(--ink-muted);
  margin: 14px 0 0;
}

/* =========================================================
   TOAST (cart feedback)
   ========================================================= */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom));
  transform: translateX(-50%) translateY(30px);
  background: var(--ink);
  color: var(--cream);
  padding: 12px 20px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(184,144,47,.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .3s ease;
  z-index: 110;
  max-width: calc(100% - 32px);
  text-align: center;
}
.toast.toast--show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* =========================================================
   RESPONSIVE — tablet / desktop refinements
   ========================================================= */

@media (min-width: 600px) {
  :root { --wrap: 640px; }
  .hero { padding: 80px 24px 56px; }
  .hero__title { font-size: 100px; }
  .app-section__title { font-size: 54px; }

  .shop { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .product { flex-direction: column; }
  .product__media { width: 100%; aspect-ratio: 4/5; }

  .modal { align-items: center; padding: 20px; }
  .modal__shell { border-radius: 20px; }
}

@media (min-width: 900px) {
  :root { --wrap: 720px; }

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

  .hero__title { font-size: 128px; }
  .accordion__panel-inner { max-height: 640px; }
  .accordion[data-open="true"] .accordion__panel { max-height: 640px; }
}

/* Accessibility: reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* =========================================================
   PRODUCT LIGHTBOX
   ========================================================= */

.product__media {
  cursor: zoom-in;
  position: relative;
}
.product__media::after {
  content: "";
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  background-color: rgba(27,31,26,.82);
  border: 1px solid rgba(201,169,97,.55);
  border-radius: 50%;
  opacity: .9;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f7f1e1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='7'/><line x1='21' y1='21' x2='16.5' y2='16.5'/><line x1='11' y1='8' x2='11' y2='14'/><line x1='8' y1='11' x2='14' y2='11'/></svg>");
  background-size: 14px 14px;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 1;
}
.product__media:hover::after { opacity: 1; transform: scale(1.08); }
.product--soldout .product__media::after { display: none; }
.product__media img { transition: transform .4s ease; }
.product:hover .product__media img { transform: scale(1.04); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.lightbox[aria-hidden="false"] {
  display: flex;
  animation: modal-in .28s ease;
}
.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15,18,14,.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.lightbox__close {
  position: absolute;
  top: calc(16px + env(safe-area-inset-top));
  right: 16px;
  width: 42px;
  height: 42px;
  border: none;
  background: rgba(255,255,255,.96);
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
  color: var(--ink);
  display: grid;
  place-items: center;
  z-index: 3;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: transform .2s ease;
}
.lightbox__close:hover { transform: scale(1.08); }
.lightbox__shell {
  position: relative;
  background: var(--cream);
  width: 100%;
  max-width: 520px;
  max-height: 92dvh;
  overflow-y: auto;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  animation: shell-up .4s cubic-bezier(.22,1,.36,1);
  border: 1px solid rgba(184,144,47,.35);
  z-index: 2;
}
.lightbox__media {
  margin: 0;
  aspect-ratio: 1;
  background: var(--paper);
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid rgba(184,144,47,.25);
}
.lightbox__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 18px;
}
.lightbox__tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--ink);
  color: var(--cream);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  font-weight: 500;
  z-index: 1;
}
.lightbox__tag--gold { background: var(--gold); color: var(--ink); }
.lightbox__tag--soldout { background: var(--burgundy); color: var(--cream); }
.lightbox__body {
  padding: 22px 24px 26px;
}
.lightbox__name {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 26px;
  margin: 0 0 8px;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: .005em;
}
.lightbox__meta {
  font-size: 14px;
  color: var(--ink-muted);
  margin: 0 0 20px;
  line-height: 1.55;
}
.lightbox__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px dashed rgba(184,144,47,.35);
}
.lightbox__price {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 22px;
  color: var(--ink);
}
.lightbox__price--strike {
  text-decoration: line-through;
  color: var(--ink-muted);
  font-weight: 400;
}
.lightbox__btn {
  background: var(--ink);
  color: var(--cream);
  border: none;
  padding: 12px 22px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  border-radius: 100px;
  box-shadow: inset 0 0 0 1px rgba(184,144,47,.3);
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.lightbox__btn:hover { background: var(--burgundy); }
.lightbox__btn:active { transform: scale(.97); }
.lightbox__btn:disabled {
  background: var(--cream-deep);
  color: var(--ink-muted);
  cursor: not-allowed;
  box-shadow: inset 0 0 0 1px rgba(184,144,47,.2);
}
