/* ==========================================================================
   LUNA Standalone Storefront — Design Tokens & Editorial Layout
   Fonts: Fjalla One (display/headings) + Figtree (body/UI)
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-muted: #f7f7f7;
  --bg-charcoal: #4f4f4f;
  --ink: #000000;
  --ink-soft: #4f4f4f;
  --ink-muted: #757575;
  --border: #e2e2e2;
  --border-strong: #000000;
  --accent-sale: #d02e2e;
  --accent-star: #f5a623;
  --accent-green: #1f8a70;
  --radius-sm: 2px;
  --radius-md: 3px;
  --font-heading: "Fjalla One", sans-serif;
  --font-body: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --container-max: 1280px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  z-index: 9999;
}

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

/* Focus visibility */
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* ==========================================================================
   Top Urgency Countdown Bar
   ========================================================================== */
.urgency-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  padding: 8px 16px;
}

.urgency-bar__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
}

.urgency-bar__text {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.urgency-bar__controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.countdown-digits {
  display: inline-flex;
  align-items: flex-start;
  gap: 6px;
}

.cd-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}

.cd-unit strong {
  font-size: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.cd-unit small {
  font-size: 9px;
  color: var(--ink-muted);
  margin-top: 2px;
}

.cd-sep {
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
}

.countdown-digits--large .cd-unit strong {
  font-size: 28px;
  font-weight: 600;
}

.countdown-digits--large .cd-unit small {
  font-size: 11px;
}

.countdown-digits--large .cd-sep {
  font-size: 26px;
}

.urgency-bar__btn {
  background: #1f1f1f;
  color: #ffffff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: var(--radius-md);
  white-space: nowrap;
}

.urgency-bar__btn:hover {
  background: #000000;
}

/* ==========================================================================
   Site Header & Announcement Strip
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  height: 58px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.icon-btn {
  background: none;
  border: 0;
  padding: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-logo {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  letter-spacing: 0.14em;
  text-decoration: none;
  font-weight: 400;
  color: var(--ink);
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 24px;
}

.desktop-nav a {
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

.desktop-nav a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

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

.cart-trigger {
  position: relative;
  background: none;
  border: 0;
  padding: 6px 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cart-trigger__meta {
  font-size: 13px;
  font-weight: 500;
}

.cart-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--ink);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
}

.announcement-bar {
  background: #000000;
  color: #ffffff;
  text-align: center;
  padding: 8px 16px;
}

.announcement-bar__text {
  margin: 0;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.desktop-only {
  display: none;
}

/* ==========================================================================
   Product Hero & Gallery
   ========================================================================== */
.product-hero {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 16px 16px 48px;
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

.product-gallery {
  width: 100%;
  min-width: 0;
}

.gallery-stage {
  position: relative;
  background: var(--bg-muted);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius-sm);
}

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

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.gallery-arrow:hover {
  background: #ffffff;
}

.gallery-arrow--prev {
  left: 10px;
}

.gallery-arrow--next {
  right: 10px;
}

.gallery-zoom-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.92);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.gallery-counter {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.72);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.gallery-thumbs-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}

.thumb-scroll-btn {
  flex-shrink: 0;
  width: 28px;
  height: 76px;
  border: 1px solid var(--border);
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.gallery-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 2px 0;
  flex: 1;
}

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

.thumb-btn {
  flex: 0 0 64px;
  height: 76px;
  padding: 0;
  border: 1px solid transparent;
  border-bottom: 2px solid transparent;
  background: var(--bg-muted);
  cursor: pointer;
  overflow: hidden;
}

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

.thumb-btn.is-active {
  border-color: var(--border);
  border-bottom-color: var(--ink);
}

/* ==========================================================================
   Buy Box
   ========================================================================== */
.buy-box {
  min-width: 0;
}

.product-title {
  margin: 0 0 8px;
  font-family: var(--font-heading);
  font-size: 28px;
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.rating-summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  margin-bottom: 14px;
}

.stars {
  color: var(--accent-star);
  letter-spacing: 0.08em;
  font-size: 16px;
}

.rating-text {
  font-size: 13.5px;
  color: var(--ink-soft);
  font-weight: 500;
}

.buy-divider {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 0 0 14px;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.price-current {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
}

.price-compare {
  font-size: 16px;
  color: var(--ink-muted);
}

.price-save {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--accent-sale);
}

/* Options: Color Swatches & Sizes */
.option-block {
  margin-bottom: 18px;
}

.option-label-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 12px;
}

.option-label {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.option-sep {
  color: #c7c7c7;
}

.option-value {
  color: var(--ink-soft);
  font-weight: 500;
}

.swatch-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.swatch-btn {
  width: 34px;
  height: 34px;
  padding: 2px;
  border-radius: var(--radius-sm);
  border: 1px solid #d4d4d4;
  background: #ffffff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s ease, transform 0.12s ease;
}

.swatch-btn:hover {
  border-color: #777777;
}

.swatch-btn.is-active {
  border: 2px solid var(--ink);
}

.swatch-chip {
  width: 100%;
  height: 100%;
  border-radius: 1px;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

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

.size-btn {
  height: 42px;
  border: 1px solid #d4d4d4;
  background: #ffffff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

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

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

.size-help-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}

.size-chart-link {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.whats-my-size-btn {
  background: #ffffff;
  border: 1px solid var(--ink);
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
}

.whats-my-size-btn:hover {
  background: var(--bg-muted);
}

.fulfillment-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fulfillment-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 15px;
  letter-spacing: 0.01em;
}

.installment-line {
  margin: 0 0 16px;
  font-size: 13.5px;
  color: var(--ink-soft);
}

/* Bundle Selector */
.bundle-section {
  margin-bottom: 16px;
}

.bundle-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
}

.bundle-heading::before,
.bundle-heading::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.bundle-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bundle-card {
  border: 1px solid #d4d4d4;
  border-radius: var(--radius-md);
  padding: 14px;
  background: #ffffff;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.bundle-card.is-selected {
  border: 2px solid var(--ink);
  padding: 13px;
}

.bundle-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bundle-card__left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bundle-radio-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #999999;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bundle-card.is-selected .bundle-radio-dot {
  border-color: var(--ink);
}

.bundle-card.is-selected .bundle-radio-dot::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ink);
}

.bundle-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.bundle-title {
  font-size: 15.5px;
  font-weight: 600;
}

.bundle-badge {
  background: var(--ink);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

.bundle-subtitle {
  font-size: 12.5px;
  color: var(--ink-muted);
}

.bundle-prices {
  text-align: right;
  line-height: 1.2;
}

.bundle-price {
  display: block;
  font-size: 15.5px;
  font-weight: 600;
}

.bundle-compare {
  display: block;
  font-size: 12.5px;
  color: var(--ink-muted);
  text-decoration: line-through;
}

.bundle-items-config {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #eeeeee;
  display: none;
  flex-direction: column;
  gap: 8px;
}

.bundle-card.is-selected .bundle-items-config {
  display: flex;
}

.bundle-item-label {
  font-size: 11.5px;
  color: var(--ink-soft);
  font-weight: 500;
}

.bundle-select-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bundle-unit-tag {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-muted);
  min-width: 24px;
}

.bundle-select {
  height: 36px;
  padding: 0 10px;
  border: 1px solid #c7c7c7;
  border-radius: var(--radius-sm);
  background: #ffffff;
  font-size: 13px;
  cursor: pointer;
}

/* Primary CTAs */
.cta-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}

.btn-add-to-cart,
.btn-buy-now {
  width: 100%;
  height: 48px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

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

.btn-add-to-cart:hover {
  background: var(--ink);
  color: #ffffff;
}

.btn-buy-now {
  background: var(--ink);
  color: #ffffff;
  border: 1px solid var(--ink);
}

.btn-buy-now:hover {
  background: #222222;
}

/* Secondary Countdown */
.secondary-countdown {
  text-align: center;
  padding: 8px 0 18px;
}

.secondary-countdown__title {
  margin: 0 0 6px;
  font-family: var(--font-heading);
  font-size: 25px;
  line-height: 1.15;
  font-weight: 400;
}

.secondary-countdown__sub {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* As Seen In */
.as-seen-in {
  padding: 14px 0 18px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.as-seen-in__label {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.as-seen-in__logos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: center;
}

.as-seen-in__logos img {
  max-height: 28px;
  width: auto;
  margin: 0 auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.85;
}

/* Accordions (Native <details> with ::details-content animation) */
.product-accordions {
  border-top: 1px solid var(--border);
  margin-top: 4px;
}

.product-accordions details {
  border-bottom: 1px solid var(--border);
}

.product-accordions summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 2px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  cursor: pointer;
}

.product-accordions summary::-webkit-details-marker {
  display: none;
}

.product-accordions summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  transform: rotate(45deg);
  flex-shrink: 0;
  margin-right: 4px;
}

.product-accordions details[open] > summary::after {
  transform: rotate(-135deg);
}

@media (prefers-reduced-motion: no-preference) {
  .product-accordions summary::after {
    transition: transform 0.2s ease;
  }

  .product-accordions details::details-content {
    transition: block-size 0.28s ease-in-out, content-visibility 0.28s ease-in-out;
    transition-behavior: allow-discrete;
  }
}

.product-accordions details::details-content {
  interpolate-size: allow-keywords;
  overflow: clip;
  contain: layout;
}

.product-accordions details:not([open])::details-content {
  block-size: 0;
}

.accordion-body {
  padding: 0 2px 20px;
  font-size: 14px;
  color: var(--ink-soft);
}

.accordion-body h3 {
  margin: 14px 0 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.accordion-body h3:first-child {
  margin-top: 0;
}

.accordion-body p {
  margin: 0 0 10px;
}

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

.description-gallery img {
  width: 100%;
  border-radius: var(--radius-sm);
}

.size-copy p {
  margin: 0 0 8px;
}

.benefits-list {
  margin: 6px 0 0;
  padding-left: 18px;
}

.benefits-list li {
  margin-bottom: 6px;
}

/* Delivery Estimate */
.delivery-estimate {
  padding: 14px 0 0;
  font-size: 13.5px;
}

.delivery-estimate__line {
  margin: 0 0 4px;
  font-weight: 600;
}

.delivery-estimate__dates {
  margin: 0;
  color: var(--ink-soft);
}

/* ==========================================================================
   Customer Reviews Section
   ========================================================================== */
.reviews-section {
  border-top: 1px solid var(--border);
  padding: 48px 16px 64px;
}

.reviews-container {
  max-width: var(--container-max);
  margin: 0 auto;
}

.reviews-heading {
  margin: 0 0 24px;
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 400;
}

.reviews-overview {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 24px;
  align-items: center;
}

.reviews-score-col {
  text-align: center;
}

.reviews-big-score {
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
}

.reviews-stars {
  color: var(--accent-star);
  font-size: 20px;
  margin: 6px 0 4px;
}

.reviews-total-count {
  font-size: 13px;
  color: var(--ink-muted);
}

.reviews-bars-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bar-row {
  display: grid;
  grid-template-columns: 36px 1fr 34px;
  align-items: center;
  gap: 10px;
  background: none;
  border: 0;
  padding: 2px 0;
  cursor: pointer;
  text-align: left;
  font-size: 12.5px;
}

.bar-row.is-active {
  font-weight: 700;
}

.bar-star-label {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.bar-star-label span {
  color: var(--accent-star);
}

.bar-track {
  height: 7px;
  background: #e5e5e5;
  border-radius: 999px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: #333333;
  border-radius: 999px;
}

.bar-count {
  text-align: right;
  color: var(--ink-muted);
}

.write-review-btn {
  width: 100%;
  height: 44px;
  background: #2c2f3e;
  color: #ffffff;
  border: 0;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.write-review-btn:hover {
  background: #1a1c26;
}

.reviews-toolbar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.reviews-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.reviews-search-wrap svg {
  position: absolute;
  left: 12px;
  color: var(--ink-muted);
  pointer-events: none;
}

.reviews-search-wrap input {
  width: 100%;
  height: 42px;
  padding: 0 12px 0 38px;
  border: 1px solid #d4d4d4;
  border-radius: 4px;
  font-size: 14px;
}

.reviews-filter-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.reviews-filter-controls select {
  height: 42px;
  padding: 0 12px;
  border: 1px solid #d4d4d4;
  border-radius: 4px;
  background: #ffffff;
  font-size: 13.5px;
}

.clear-filter-btn {
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--ink);
  background: #ffffff;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
}

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

.review-card {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px;
  background: #ffffff;
}

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

.review-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #6f778d;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.review-author {
  font-weight: 600;
  font-size: 14px;
}

.review-meta {
  font-size: 12px;
  color: var(--ink-muted);
}

.review-rating-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink-muted);
  margin-bottom: 8px;
}

.review-rating-line .stars {
  font-size: 14px;
}

.review-variant-pill {
  display: inline-block;
  font-size: 11.5px;
  color: var(--ink-soft);
  background: var(--bg-muted);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}

.review-text {
  margin: 0 0 12px;
  font-size: 14px;
  color: #222222;
}

.review-helpful {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-muted);
}

.helpful-btns {
  display: inline-flex;
  gap: 10px;
}

.helpful-btn {
  background: none;
  border: 0;
  padding: 2px 4px;
  cursor: pointer;
  color: var(--ink-muted);
  font-size: 12px;
}

.helpful-btn.is-voted {
  color: var(--ink);
  font-weight: 600;
}

.reviews-load-more-wrap {
  margin-top: 22px;
  text-align: center;
}

.load-more-btn {
  padding: 10px 28px;
  border: 1px solid #d4d4d4;
  background: #ffffff;
  border-radius: 4px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}

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

/* ==========================================================================
   Footer (Black Editorial Left + Newsletter Right)
   ========================================================================== */
.site-footer {
  background: #000000;
  color: #ffffff;
}

.footer-grid {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
}

.footer-left {
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 36px;
}

.footer-menu-title {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #b5b5b5;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  text-decoration: none;
  font-size: 13.5px;
  color: #f1f1f1;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-stay-touch {
  border-top: 1px solid #262626;
  padding-top: 24px;
}

.stay-touch-heading {
  margin: 0 0 6px;
  font-family: var(--font-heading);
  font-size: 24px;
}

.stay-touch-copy {
  margin: 0;
  font-size: 13px;
  color: #b5b5b5;
}

.footer-right {
  display: flex;
  flex-direction: column;
}

.footer-editorial-img img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.footer-newsletter {
  background: var(--bg-charcoal);
  padding: 28px 24px;
  flex: 1;
}

.newsletter-heading {
  margin: 0 0 8px;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 400;
}

.newsletter-sub {
  margin: 0 0 16px;
  font-size: 13px;
  color: #e4e4e4;
}

.newsletter-form {
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
}

.newsletter-form input {
  flex: 1;
  background: transparent;
  border: 0;
  padding: 10px 0;
  color: #ffffff;
  font-size: 13.5px;
}

.newsletter-form input::placeholder {
  color: #d0d0d0;
}

.newsletter-form input:focus {
  outline: none;
}

.newsletter-form button {
  background: none;
  border: 0;
  color: #ffffff;
  font-size: 18px;
  cursor: pointer;
  padding: 8px 4px 8px 12px;
}

.newsletter-msg {
  margin: 8px 0 0;
  font-size: 12.5px;
  color: #d9f99d;
}

.footer-bottom {
  border-top: 1px solid #1f1f1f;
  padding: 14px 24px;
  text-align: right;
  font-size: 12px;
  color: #b5b5b5;
}

.footer-bottom p {
  margin: 0;
}

/* ==========================================================================
   Sticky Add-to-Cart Bar & Toast
   ========================================================================== */
.sticky-atc {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 35;
  background: #ffffff;
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
  padding: 10px 16px;
}

.sticky-atc[hidden] {
  display: none;
}

.sticky-atc__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sticky-atc__product {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.sticky-atc__product img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.sticky-atc__info {
  min-width: 0;
}

.sticky-atc__title {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sticky-atc__variant {
  margin: 0;
  font-size: 12px;
  color: var(--ink-muted);
}

.sticky-atc__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.sticky-atc__price {
  font-weight: 600;
  font-size: 15px;
}

.sticky-atc__btn {
  background: var(--ink);
  color: #ffffff;
  border: 0;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.toast {
  position: fixed;
  top: 74px;
  right: 16px;
  z-index: 90;
  background: var(--ink);
  color: #ffffff;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.toast[hidden] {
  display: none;
}

/* ==========================================================================
   Native <dialog> Modals & Drawers
   ========================================================================== */
dialog:modal {
  overscroll-behavior: contain;
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.55);
  overflow: hidden;
  overscroll-behavior: contain;
}

.modal-dialog {
  border: 0;
  padding: 0;
  margin: auto;
  width: min(94vw, 560px);
  max-height: 90vh;
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.modal-dialog:has(.modal-box--wide) {
  width: min(94vw, 760px);
}

.modal-dialog--lightbox {
  width: min(96vw, 880px);
  background: #111111;
  color: #ffffff;
}

.modal-box {
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

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

.modal-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 400;
}

.modal-close {
  background: none;
  border: 0;
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  color: var(--ink);
}

.modal-close--light {
  color: #ffffff;
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
}

/* Size Finder inside Modal */
.size-finder-box {
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 18px;
}

.size-finder-title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
}

.size-finder-sub {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--ink-soft);
}

.size-finder-fields {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  align-items: end;
}

.size-finder-fields label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
}

.size-finder-fields input,
.size-finder-fields select {
  height: 38px;
  padding: 0 10px;
  border: 1px solid #cccccc;
  background: #ffffff;
  border-radius: var(--radius-sm);
}

.btn-apply-size {
  height: 38px;
  padding: 0 16px;
  background: var(--ink);
  color: #ffffff;
  border: 0;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.size-finder-result {
  margin-top: 10px;
  font-size: 13.5px;
}

.size-table-wrap {
  overflow-x: auto;
  margin-bottom: 16px;
}

.size-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

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

.size-table th {
  background: var(--bg-muted);
  font-weight: 600;
}

.size-chart-modal-img {
  width: 100%;
  border-radius: var(--radius-sm);
}

/* Lightbox */
.lightbox-box {
  display: flex;
  flex-direction: column;
}

.lightbox-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
}

.lightbox-caption {
  font-size: 13px;
  color: #d4d4d4;
}

.lightbox-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 48px 24px;
}

.lightbox-stage img {
  max-height: 76vh;
  width: auto;
  object-fit: contain;
}

/* Drawers (Cart & Mobile Nav) */
.drawer-dialog {
  border: 0;
  padding: 0;
  margin: 0;
  height: 100vh;
  max-height: 100vh;
  width: min(92vw, 420px);
  background: #ffffff;
}

.drawer-dialog--right {
  margin-left: auto;
}

.drawer-dialog--left {
  margin-right: auto;
  width: min(85vw, 320px);
}

.drawer-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.shipping-progress {
  padding: 12px 20px;
  background: var(--bg-muted);
  border-bottom: 1px solid var(--border);
}

.shipping-progress__text {
  margin: 0 0 8px;
  font-size: 12.5px;
  font-weight: 500;
  text-align: center;
}

.shipping-progress__track {
  height: 5px;
  background: #dddddd;
  border-radius: 999px;
  overflow: hidden;
}

.shipping-progress__fill {
  height: 100%;
  width: 0%;
  background: var(--ink);
  transition: width 0.25s ease;
}

.drawer-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-empty {
  text-align: center;
  padding: 40px 10px;
  color: var(--ink-muted);
}

.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid #eeeeee;
}

.cart-item img {
  width: 72px;
  height: 86px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.cart-item__title {
  margin: 0 0 4px;
  font-size: 13.5px;
  font-weight: 600;
}

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

.cart-item__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d4d4d4;
  border-radius: var(--radius-sm);
}

.qty-stepper button {
  width: 28px;
  height: 28px;
  background: none;
  border: 0;
  cursor: pointer;
}

.qty-stepper span {
  min-width: 24px;
  text-align: center;
  font-size: 13px;
}

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

.drawer-footer {
  padding: 16px 20px 20px;
  border-top: 1px solid var(--border);
  background: #ffffff;
}

.drawer-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 13.5px;
}

.drawer-savings {
  color: var(--accent-sale);
  font-weight: 600;
}

.drawer-summary-row--total {
  font-size: 16px;
  margin-top: 6px;
}

.drawer-tax-note {
  margin: 4px 0 12px;
  font-size: 12px;
  color: var(--ink-muted);
}

/* Checkout & Review Forms */
.checkout-order-box {
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 13px;
}

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

.checkout-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12.5px;
  font-weight: 600;
}

.checkout-form input,
.checkout-form select,
.checkout-form textarea {
  padding: 10px 12px;
  border: 1px solid #cccccc;
  border-radius: var(--radius-sm);
  font-weight: 400;
}

.checkout-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.payment-methods {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.payment-methods legend {
  font-size: 12px;
  font-weight: 600;
  padding: 0 4px;
}

.pm-option {
  flex-direction: row !important;
  align-items: center;
  gap: 8px !important;
  font-weight: 500 !important;
  cursor: pointer;
}

.order-confirmed {
  text-align: center;
  padding: 16px 8px;
}

.order-confirmed h2 {
  font-family: var(--font-heading);
  font-size: 24px;
  margin: 0 0 8px;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  padding: 12px 20px;
}

.mobile-nav-links a,
.mobile-nav-links button {
  padding: 14px 4px;
  border: 0;
  border-bottom: 1px solid #eeeeee;
  background: none;
  text-align: left;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (min-width: 768px) {
  .urgency-bar__inner {
    flex-direction: row;
    gap: 18px;
  }

  .reviews-overview {
    grid-template-columns: 180px 1fr 200px;
  }

  .reviews-toolbar {
    flex-direction: row;
    justify-content: space-between;
  }

  .reviews-search-wrap {
    flex: 1;
    max-width: 420px;
  }

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

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

  .footer-left {
    padding: 56px 48px;
  }

  .footer-editorial-img img {
    height: 290px;
  }
}

@media (min-width: 1024px) {
  .mobile-only {
    display: none;
  }

  .desktop-only {
    display: inline;
  }

  .desktop-nav {
    display: flex;
  }

  .product-hero {
    padding: 32px 24px 64px;
  }

  .product-grid {
    grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
    gap: 44px;
  }

  .product-gallery {
    position: sticky;
    top: 76px;
  }

  .product-title {
    font-size: 32px;
  }
}

@media (max-width: 480px) {
  .size-finder-fields {
    grid-template-columns: 1fr;
  }

  .checkout-row-2 {
    grid-template-columns: 1fr;
  }
}
