/* =========================================================================
   BLAZER CHICK — Shop page (/shop). Builds on styles.css.
   ========================================================================= */

.shop-page { background: var(--cream); }
.shop-page .nav { background: rgba(13, 11, 9, .94); }
.nav__links a[aria-current="page"] { color: var(--text); }
.nav__links a[aria-current="page"]::after { transform: scaleX(1); }
.mobile-menu nav a[aria-current="page"] { color: var(--gold); }

.shop { background: var(--cream); color: var(--ink); padding: clamp(36px, 6vw, 80px) 0 clamp(70px, 9vw, 120px); }
.shop__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
.shop__media { position: sticky; top: 100px; }
.shop__frame { aspect-ratio: 4 / 4.6; }
.shop__frame.is-olive { background: radial-gradient(120% 90% at 50% 20%, #e8dfcf 0%, #cdbfa6 70%, #b9a888 100%); }

.shop__info .eyebrow { color: var(--gold-deep); }
.shop__title { font-family: var(--serif); font-weight: 500; font-size: clamp(2.8rem, 5.5vw, 4.6rem); line-height: .95; margin: 14px 0 8px; }
.shop__kind { font-size: 11.5px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-muted); }
.shop__price { margin-top: 18px; font-family: var(--serif); font-size: 2rem; font-weight: 600; color: var(--ink); }
.shop__desc { margin-top: 18px; color: var(--ink-muted); font-size: 1.05rem; max-width: 500px; }

.shop__form { margin-top: 30px; max-width: 520px; }
.shop__group { border: 0; padding: 0; margin: 0 0 28px; min-width: 0; }
.shop__label { padding: 0; font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--ink); margin-bottom: 14px; }
.shop__hint { margin-top: 12px; font-size: 13.5px; color: var(--ink-muted); }
.shop__hint .link { color: var(--gold-deep); }

/* Style picker */
.styles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.style-opt {
  position: relative; display: grid; justify-items: start; align-content: start; gap: 10px; padding: 12px; text-align: left;
  border-radius: 18px; background: #fff8ec; border: 1.5px solid var(--ink-line);
  transition: border-color .45s var(--ease), box-shadow .45s var(--ease), background .45s, transform .45s var(--ease);
}
.style-opt:hover { transform: translateY(-3px); border-color: rgba(155,117,53,.5); }
.style-opt img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; filter: saturate(.7) brightness(.92); transition: transform .6s var(--spring), filter .45s; }
.style-opt > span { display: grid; font-family: var(--serif); font-size: 1.2rem; font-weight: 600; line-height: 1.1; }
.style-opt small { font-family: var(--sans); font-size: 9.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); margin-top: 4px; }
.style-opt::after {
  content: ""; position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--gold-grad); box-shadow: 0 4px 10px -2px rgba(155,117,53,.6);
  transform: scale(0); transition: transform .45s var(--spring);
}
.style-opt::before {
  content: ""; position: absolute; z-index: 1; top: -1px; right: 0; width: 5px; height: 10px;
  border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform .45s var(--spring) .05s;
}
.style-opt[aria-checked="true"] { background: #fff; border-color: var(--gold-deep); box-shadow: 0 0 0 4px rgba(201,163,91,.2), 0 18px 34px -20px rgba(60,40,15,.6); }
.style-opt[aria-checked="true"] img { transform: rotate(-5deg) scale(1.08); filter: none; }
.style-opt[aria-checked="true"]::after { transform: scale(1); }
.style-opt[aria-checked="true"]::before { transform: rotate(45deg) scale(1); }

/* Size picker */
.sizes { display: flex; flex-wrap: wrap; gap: 10px; }
.size-opt {
  min-width: 58px; height: 48px; padding: 0 14px; border-radius: 12px;
  background: #fff8ec; border: 1.5px solid var(--ink-line);
  font-size: 14px; font-weight: 700; letter-spacing: .06em;
  transition: border-color .3s var(--ease), background .3s, color .3s, transform .3s var(--ease);
}
.size-opt:hover:not(:disabled) { border-color: rgba(155,117,53,.6); transform: translateY(-2px); }
.size-opt[aria-checked="true"] { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.size-opt:disabled { cursor: not-allowed; color: rgba(13,11,9,.35); background: transparent; text-decoration: line-through; }
.shop__group.is-invalid .size-opt:not(:disabled) { border-color: #b4323a; }

/* Buy */
.btn--dark { background: var(--ink); color: var(--cream); box-shadow: 0 16px 34px -18px rgba(13,11,9,.8); }
.btn--dark::before { content: ""; position: absolute; inset: 0; background: var(--gold-grad); transform: translateY(101%); transition: transform .6s var(--ease); }
.btn--dark:hover:not([aria-disabled="true"]) { color: var(--ink); }
.btn--dark:hover:not([aria-disabled="true"])::before { transform: none; }
.btn--dark[aria-disabled="true"] { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn--dark[aria-disabled="true"] .btn__arrow { display: none; }
.shop__buy { width: 100%; margin-top: 6px; }
.shop__error { min-height: 1.2em; margin-top: 4px; font-size: 13.5px; font-weight: 600; color: #b4323a; }
.shop__secure { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 12.5px; color: var(--ink-muted); }
.shop__secure svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Thank-you page */
.thanks { min-height: calc(100svh - 160px); display: grid; place-items: center; text-align: center; padding: 80px 0; background: var(--cream); color: var(--ink); }
.thanks__inner { max-width: 560px; display: grid; justify-items: center; gap: 18px; }
.thanks .eyebrow { color: var(--gold-deep); }
.thanks h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(2.8rem, 7vw, 4.4rem); line-height: 1; }
.thanks h1 em { color: var(--gold-deep); }
.thanks p { color: var(--ink-muted); font-size: 1.05rem; }
.thanks .btn { margin-top: 10px; }

@media (max-width: 960px) {
  .shop__grid { grid-template-columns: 1fr; }
  .shop__media { position: static; max-width: 520px; width: 100%; margin: 0 auto; }
  .shop__form { max-width: none; }
}
@media (max-width: 560px) {
  .styles { gap: 8px; }
  .style-opt { padding: 10px; }
  .style-opt img { width: 44px; height: 44px; }
  .style-opt > span { font-size: 1.05rem; }
  .style-opt small { font-size: 8.5px; letter-spacing: .08em; }
  .size-opt { min-width: 0; flex: 1 0 calc(25% - 10px); }
}
