/* Premium storefront extensions (loaded after shop.css) */

:root {
  --store-ink: #14161c;
  --store-muted: #5c6370;
  --store-line: rgba(20, 22, 28, 0.08);
  --store-card: #ffffff;
  --store-soft: #f6f7f9;
  --store-accent: #1d4ed8;
  --store-shadow: 0 18px 50px rgba(20, 22, 28, 0.08);
}

body.drawer-open {
  overflow: hidden;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--store-muted);
}

.section-band {
  background: var(--store-soft);
}

.store-banner {
  text-align: center;
  padding: 12px 16px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--store-ink);
  background: linear-gradient(180deg, #eef3ff 0%, var(--store-soft) 100%);
  border-bottom: 1px solid var(--store-line);
}

.store-banner-main {
  font-weight: 700;
}

.store-banner-sep {
  margin: 0 0.45em;
  color: var(--store-muted);
  font-weight: 500;
}

.store-banner-sub {
  color: var(--store-muted);
  font-weight: 600;
}

.store-promo-status {
  margin: 10px auto 0;
  color: var(--store-accent);
  font-size: 0.92rem;
  font-weight: 600;
  text-align: center;
}

.store-hero {
  padding: clamp(40px, 8vw, 88px) 0 clamp(28px, 5vw, 48px);
}

.store-hero-split {
  display: grid;
  gap: clamp(24px, 4vw, 40px);
  align-items: center;
}

.store-hero-copy {
  max-width: 36rem;
}

.store-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(2.4rem, 6vw, 4rem);
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.store-hero-copy > p {
  margin: 0;
  color: var(--store-muted);
  font-size: 1.08rem;
  line-height: 1.55;
  max-width: 42ch;
}

.store-hero-cta {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  justify-items: start;
}

.store-hero-note {
  margin: 0;
  color: var(--store-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

@media (min-width: 900px) {
  .store-hero-split {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 400px);
    gap: clamp(32px, 5vw, 64px);
  }

  .store-hero-cta {
    display: none;
  }
}

.store-trust {
  list-style: none;
  margin: 22px 0 0;
  padding: 16px 0 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 18px;
  border-top: 1px solid var(--store-line);
  color: var(--store-muted);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
}

.store-trust li {
  margin: 0;
}

@media (max-width: 800px) {
  .store-trust {
    grid-template-columns: 1fr 1fr;
  }

  .store-banner-sep {
    display: none;
  }

  .store-banner-sub {
    display: block;
    margin-top: 4px;
    font-size: 0.86rem;
  }
}

.store-section {
  padding: clamp(28px, 5vw, 56px) 0;
}

.store-section-head {
  display: grid;
  gap: 8px;
  margin-bottom: clamp(20px, 3vw, 28px);
  max-width: 40rem;
}

.store-section-head h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  letter-spacing: -0.035em;
}

.store-section-head p {
  margin: 0;
  color: var(--store-muted);
  line-height: 1.55;
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

#featuredGrid.store-grid-hero {
  grid-template-columns: 1fr;
  max-width: 400px;
  width: 100%;
  margin: 0;
}

#featuredGrid .store-card-star {
  grid-column: auto;
}

#featuredGrid .store-card-star .store-card-media {
  /* Match the real lifestyle photo so grass fills the frame with no bars. */
  aspect-ratio: 3 / 4;
}

@media (min-width: 900px) {
  #featuredGrid.store-grid-hero {
    max-width: none;
    justify-self: end;
  }
}

.store-card {
  display: grid;
  gap: 0;
  background: var(--store-card);
  border: 1px solid var(--store-line);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--store-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.store-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 56px rgba(20, 22, 28, 0.1);
}

.store-card-media {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--store-soft);
  cursor: pointer;
}

.store-card-media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center center;
}

/* Portrait sticker sheets must not be center-cropped into illegible crops. */
.store-card[data-product-id="sticker_pack"] .store-card-media {
  background: #f4f1ea;
}

.store-card[data-product-id="sticker_pack"] .store-card-media img {
  object-fit: contain;
  object-position: center center;
  background: #f4f1ea;
}

/* Full-bleed real photo — no letterboxing, tag stays in frame. */
#featuredGrid .store-card-star .store-card-media img,
.store-card[data-product-id="cloud_tag"] .store-card-media img {
  object-fit: cover;
  object-position: center 55%;
  aspect-ratio: 3 / 4;
}

/* Match photo box exactly so the interactive tag tint mask stays aligned. */
.product-drawer[data-active-product="cloud_tag"] .pdp-main img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 55%;
  background: #f6f5f2;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--store-ink);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.store-card-media .store-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
}

.store-card-media .store-badge + .store-badge {
  top: 46px;
}

.store-card-body {
  display: grid;
  gap: 10px;
  padding: 18px 18px 20px;
}

.store-card-body h3 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: -0.025em;
}

.store-card-headline {
  margin: 0;
  color: var(--store-muted);
  font-size: 0.95rem;
  line-height: 1.45;
  min-height: 2.9em;
}

.store-card-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.store-price {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.store-compare {
  color: var(--store-muted);
  text-decoration: line-through;
  font-size: 0.95rem;
}

.store-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn-compact {
  padding: 10px 16px;
  min-height: 40px;
  font-size: 0.88rem;
}

.ship-progress {
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--store-soft);
  border: 1px solid var(--store-line);
}

.ship-progress.is-qualified {
  border-color: rgba(21, 128, 61, 0.18);
  background: rgba(21, 128, 61, 0.04);
}

.ship-progress.is-qualified p {
  color: #166534;
}

.summary-save,
.summary-free,
.card-save {
  color: #166534;
  font-weight: 700;
}

.card-save {
  margin: 0;
  font-size: 0.88rem;
}

.value-breakdown {
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--store-soft);
  border: 1px solid var(--store-line);
  font-size: 0.92rem;
  line-height: 1.45;
}

.value-breakdown ul {
  margin: 0 0 10px;
  padding-left: 1.1rem;
  color: var(--store-muted);
}

.value-breakdown p {
  margin: 0 0 4px;
}

.pdp-footnote {
  margin: 18px 0 0;
  color: var(--store-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.ship-progress-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(20, 22, 28, 0.08);
  overflow: hidden;
  margin-bottom: 10px;
}

.ship-progress-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--store-ink);
  transition: width 0.25s ease;
}

.ship-progress p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--store-muted);
}

.cart-summary {
  margin-top: 18px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--store-line);
  background: #fff;
  box-shadow: var(--store-shadow);
  display: grid;
  gap: 10px;
}

.summary-total {
  padding-top: 8px;
  border-top: 1px solid var(--store-line);
  font-size: 1.05rem;
}

.cart-upsell {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 16px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--store-line);
  background: #fff;
}

.cart-upsell-copy {
  display: grid;
  gap: 4px;
  max-width: 36ch;
}

.cart-upsell-copy p {
  margin: 0;
  color: var(--store-muted);
  font-size: 0.92rem;
}

.photo-status {
  display: inline-flex;
  margin-top: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #b45309;
}

.photo-status.is-ready {
  color: #15803d;
}

.cart-qty-row {
  margin: 0 0 10px;
}

.cart-qty-row input {
  width: 72px;
  margin-left: 8px;
}

/* Product drawer */
.product-drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(10, 12, 16, 0.42);
  display: grid;
  place-items: end center;
  padding: 0;
}

.product-drawer[hidden] {
  display: none !important;
}

.product-drawer-panel {
  width: min(1120px, 100%);
  max-height: min(94vh, 980px);
  overflow: auto;
  background: #fff;
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.18);
  padding: clamp(16px, 3vw, 28px);
}

.pdp-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 16px;
}

.pdp-close {
  border: 0;
  background: var(--store-soft);
  border-radius: 999px;
  padding: 10px 16px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.pdp-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(20px, 4vw, 40px);
}

.pdp-main {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: var(--store-soft);
}

.pdp-main img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  object-position: center center;
  background: var(--store-soft);
}

.pdp-color-stage .pdp-tag-tint {
  position: absolute;
  inset: 0;
  background: #7eb6e8;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
  mix-blend-mode: color;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.pdp-color-stage[data-color="sky-blue"] .pdp-tag-tint {
  opacity: 1;
}

.product-drawer[data-active-product="sticker_pack"] .pdp-main,
.product-drawer[data-active-product="sticker_pack"] .pdp-main img {
  background: #f4f1ea;
  aspect-ratio: 3 / 4;
}

.pdp-caption {
  margin: 10px 0 12px;
  color: var(--store-muted);
  font-size: 0.92rem;
}

.pdp-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.pdp-thumb {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  padding: 0;
  border-radius: 14px;
  border: 2px solid transparent;
  overflow: hidden;
  background: var(--store-soft);
  cursor: pointer;
}

.pdp-thumb.is-active {
  border-color: var(--store-ink);
}

.pdp-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pdp-copy h2 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.035em;
}

.pdp-headline {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 600;
}

.pdp-desc {
  margin: 0 0 16px;
  color: var(--store-muted);
  line-height: 1.55;
}

.pdp-colors {
  border: 0;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pdp-colors legend {
  margin-bottom: 8px;
  font-weight: 600;
}

.swatch-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--store-line);
  cursor: pointer;
}

.pdp-qty {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.qty-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.qty-controls button,
.qty-controls input {
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid var(--store-line);
  background: #fff;
  font: inherit;
}

.qty-controls button {
  width: 44px;
  cursor: pointer;
}

.qty-controls input {
  width: 64px;
  text-align: center;
}

.pdp-sections {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.pdp-sections h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.pdp-sections ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--store-muted);
  line-height: 1.55;
}

.pdp-sections p {
  margin: 0;
  color: var(--store-muted);
  line-height: 1.55;
}

.pdp-related {
  margin-top: 28px;
}

.pdp-related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pdp-related-card {
  display: grid;
  gap: 6px;
  text-align: left;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid var(--store-line);
  background: var(--store-soft);
  cursor: pointer;
  font: inherit;
}

.pdp-related-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
}

@media (max-width: 980px) {
  .store-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #featuredGrid.store-grid-hero {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

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

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

  #featuredGrid.store-grid-hero {
    max-width: none;
  }

  .product-drawer-panel {
    border-radius: 22px 22px 0 0;
  }

  .pdp-related-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --store-ink: #f2f3f7;
    --store-muted: #a7afbd;
    --store-line: rgba(155, 133, 255, 0.18);
    --store-card: #161922;
    --store-soft: #151822;
    --store-accent: #9cbcff;
    --store-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  }

  .store-banner {
    background: linear-gradient(180deg, #151822 0%, var(--store-soft) 100%);
    color: var(--store-ink);
  }

  .section-band {
    background: var(--store-soft);
  }

  .product-drawer-panel,
  .store-card {
    background: var(--store-card);
    border-color: var(--store-line);
  }

  .store-qty,
  .pdp-qty,
  .product-drawer-panel input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]),
  .product-drawer-panel select,
  .product-drawer-panel textarea {
    background: #12141c;
    color: var(--store-ink);
    border-color: var(--store-line);
  }
}
