/* ==========================================================================
   THE TENNIS SHOP 2.0 — STOREFRONT & PRODUCT CARD SYSTEM (storefront.css)
   Unified with design-tokens.css and rebuild.css.
   ========================================================================== */

.storefront {
  --forest: var(--tts-forest-950);
  --field: var(--tts-forest-800);
  --chalk: var(--tts-paper);
  --lime: var(--tts-ball);
  --terra: var(--tts-clay);
  color: var(--tts-ink);
  background: var(--tts-paper);
}

/* First-Fold Club Hero */
.store-hero {
  background: var(--tts-forest-950);
  color: var(--tts-white);
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.store-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 44px;
  padding: 56px 0 64px;
}
.store-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.store-eyebrow {
  font-family: var(--tts-font-body);
  font-weight: 800;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.16em;
  color: var(--tts-ball);
  text-transform: uppercase;
  margin: 0 0 16px;
}
.store-eyebrow--dark {
  color: var(--tts-grass-500);
}
.storefront .store-hero h1,
.rebuild-home.storefront .store-hero h1 {
  font-family: var(--tts-font-display);
  font-size: var(--tts-text-hero);
  line-height: 0.98;
  letter-spacing: -0.032em;
  font-weight: 400;
  margin: 0;
  max-width: 15ch;
  color: var(--tts-white);
}
.store-hero h1 span,
.store-hero h1 em {
  display: block;
}
.store-hero h1 span,
.rebuild-home.storefront .store-hero h1 span {
  color: var(--tts-white);
}
.store-hero h1 em,
.rebuild-home.storefront .store-hero h1 em {
  font-weight: 400;
  font-style: italic;
  color: var(--tts-ball);
}
.store-intro {
  font-size: var(--tts-text-lead);
  max-width: 50ch;
  color: #cddbd2;
  line-height: 1.65;
  margin: 22px 0 0;
}
.store-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 0;
}
.store-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--tts-font-body);
  font-weight: 800;
  font-size: 13.5px;
  padding: 13px 20px;
  border-radius: var(--tts-radius-xs);
  min-height: 46px;
  text-decoration: none;
  transition: transform var(--tts-duration-fast) var(--tts-ease-out), background var(--tts-duration-fast);
  border: 1px solid transparent;
}
.store-button:hover { transform: translateY(-1px); }
.store-button--light {
  background: var(--tts-ball);
  color: var(--tts-forest-950);
}
.store-button--light:hover { background: var(--tts-ball-hover); }
.store-button--outline {
  border-color: rgba(255, 255, 255, 0.38);
  color: var(--tts-white);
  background: transparent;
}
.store-button--outline:hover { background: rgba(255, 255, 255, 0.08); }

.store-hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #bed0c5;
  font-size: 12px;
}
.store-hero-points span::before {
  content: "✓";
  color: var(--tts-ball);
  font-weight: 800;
  margin-right: 7px;
}

.store-hero-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  min-height: 360px;
  border-radius: var(--tts-radius-feature);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--tts-shadow-lg);
  margin: 0;
}
.store-hero-visual::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(0deg, rgba(6, 26, 21, 0.62) 0%, transparent 52%);
  pointer-events: none;
}
.store-hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  inset: 0;
}
.store-visual-mark {
  position: absolute;
  z-index: 2;
  left: 18px;
  right: 18px;
  bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--tts-radius-sm);
  background: rgba(12, 38, 31, 0.84);
  backdrop-filter: blur(8px);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--tts-white);
}
.store-visual-mark small {
  display: block;
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--tts-ball);
  text-transform: uppercase;
  margin-bottom: 3px;
}
.store-visual-mark strong {
  font-family: var(--tts-font-display);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.22;
}

/* Quick Entry Strip ("I'm here to...") */
.task-strip {
  background: var(--tts-stone);
  border-bottom: 1px solid var(--tts-line);
  padding: 16px 0;
}
.task-strip-inner {
  display: flex;
  align-items: center;
  gap: 20px;
}
.task-strip-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tts-muted);
  white-space: nowrap;
}
.task-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  flex: 1;
}
.task-pill {
  background: var(--tts-white);
  border: 1px solid var(--tts-line);
  border-radius: var(--tts-radius-xs);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--tts-forest-900);
  text-decoration: none;
  transition: border-color var(--tts-duration-fast), transform var(--tts-duration-fast);
}
.task-pill:hover {
  border-color: var(--tts-forest-900);
  transform: translateY(-1px);
}

/* Store Sections & Category Grid */
.storefront .store-section {
  padding-top: 60px;
  padding-bottom: 20px;
}
.store-section-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
  margin-bottom: 28px;
}
.storefront .store-section-heading h2 {
  font-family: var(--tts-font-display);
  font-weight: 400;
  font-size: var(--tts-text-h2);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--tts-ink);
}
.store-section-heading .store-eyebrow { margin-bottom: 8px; }
.store-section-heading > p {
  max-width: 38ch;
  color: var(--tts-muted);
  margin: 0;
  font-size: 14.5px;
}

.store-categories {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.store-category {
  position: relative;
  min-height: 270px;
  overflow: hidden;
  border-radius: var(--tts-radius-card);
  background: var(--tts-forest-950);
  box-shadow: var(--tts-shadow-sm);
  text-decoration: none;
}
.store-category img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--tts-ease-out);
}
.store-category:hover img { transform: scale(1.04); }
.store-category-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10, 32, 26, 0.92) 0%, rgba(10, 32, 26, 0.16) 76%);
}
.store-category-copy {
  position: absolute;
  inset: 0;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--tts-white);
}
.store-category-copy small {
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--tts-ball);
}
.store-category-copy strong,
.rebuild-home.storefront .store-category strong {
  font-family: var(--tts-font-display);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.1;
  margin: 6px 0;
}
.store-category-copy > span {
  font-size: 13px;
  font-weight: 600;
  color: #e4ece7;
}

/* The Club Edit — Featured Racket Cards */
.store-feature-zone {
  margin-top: 52px;
  background: var(--tts-cream);
  border-top: 1px solid var(--tts-line);
  border-bottom: 1px solid var(--tts-line);
  padding-bottom: 56px;
}
.store-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.store-feature-card {
  min-width: 0;
  background: var(--tts-white);
  border: 1px solid var(--tts-line);
  border-radius: var(--tts-radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--tts-duration-fast) var(--tts-ease-out), box-shadow var(--tts-duration-fast);
}
.store-feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--tts-shadow-md);
}
.store-feature-top {
  height: 235px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #f4f5ef;
  border-bottom: 1px solid var(--tts-line);
}
.store-feature-top > span {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--tts-forest-900);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--tts-line);
  border-radius: 4px;
  padding: 4px 8px;
}
.store-feature-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.store-feature-content small {
  font-weight: 800;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--tts-muted);
  text-transform: uppercase;
}
.storefront .store-feature-content h3 {
  font-family: var(--tts-font-display);
  font-weight: 400;
  font-size: 21px;
  letter-spacing: -0.02em;
  line-height: 1.18;
  margin: 6px 0 10px;
}
.store-feature-content p {
  font-size: 13.5px;
  color: var(--tts-muted);
  line-height: 1.55;
  margin: 0 0 16px;
}
.store-feature-content a {
  margin-top: auto;
  border-top: 1px solid var(--tts-line);
  padding-top: 14px;
  color: var(--tts-forest-900);
  font-size: 13px;
  font-weight: 800;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  text-decoration: none;
}
.store-feature-note {
  margin: 16px 0 0;
  font-size: 12.5px;
  color: var(--tts-muted);
  line-height: 1.6;
}
.store-feature-note a { text-decoration: underline; font-weight: 800; }

/* Exact-Model Product Photography & Provenance Captions */
.store-feature-top .racket-photo--featured {
  position: static;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin: 0;
  width: 100%;
  height: 100%;
  padding: 12px 12px 6px;
  gap: 4px;
}
.store-feature-top .racket-photo--featured img {
  display: block;
  width: auto;
  height: 175px;
  max-width: 180px;
  aspect-ratio: 510 / 696;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.store-feature-top .racket-photo--featured figcaption {
  font-size: 10px;
  line-height: 1.3;
  color: var(--tts-muted);
  text-align: center;
}
.racket-photo figcaption a {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.racket-photo--card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin: 0 0 16px;
  padding: 14px 12px 8px;
  background: var(--tts-cream);
  border: 1px solid var(--tts-line);
  border-radius: var(--tts-radius-sm);
}
.racket-photo--card img {
  display: block;
  height: 166px;
  max-width: 100%;
  width: auto;
  aspect-ratio: 510 / 696;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.racket-photo--card figcaption {
  font-size: 10.5px;
  line-height: 1.3;
  color: var(--tts-muted);
}
.racket-photo--profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 0 0 24px;
  background: var(--tts-cream);
  padding: 28px 20px 14px;
  border: 1px solid var(--tts-line);
  border-radius: var(--tts-radius-feature);
}
.racket-photo--profile img {
  display: block;
  width: auto;
  max-width: 260px;
  height: 350px;
  aspect-ratio: 510 / 696;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.racket-photo--profile figcaption {
  font-size: 11.5px;
  color: var(--tts-muted);
}
.store-feature-price {
  font-size: 13px !important;
  color: var(--tts-forest-900) !important;
  margin: 0 0 12px !important;
}
.store-feature-price strong {
  font-size: 15px;
  font-weight: 800;
  color: var(--tts-ink);
  font-variant-numeric: tabular-nums;
}
.offer-table a[data-price-offer] {
  font-weight: 800;
  color: var(--tts-forest-900);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.product-action-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 18px;
  background: var(--tts-stone);
  border: 1px solid var(--tts-line);
  padding: 14px 18px;
  border-radius: var(--tts-radius-sm);
  margin-top: -8px;
  margin-bottom: 24px;
}
.product-action-strip span {
  font-size: 11px;
  letter-spacing: 0.1em;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--tts-muted);
  margin-right: auto;
}
.product-action-strip a {
  font-size: 13px;
  font-weight: 800;
  color: var(--tts-forest-900);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Shoes, Strings & Brand Range Cards (consolidated from product_offers.py) */
.product-photo,
.shoe-scan-photo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 0 12px;
  padding: 12px;
  background: var(--tts-cream);
  border-radius: var(--tts-radius-sm);
  overflow: hidden;
}
.product-photo img,
.shoe-scan-photo img {
  display: block;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.product-photo--shoe img { height: 145px; aspect-ratio: 640 / 440; }
.product-photo--shoe-sub { padding: 8px; margin: 0 0 8px; }
.product-photo--shoe-sub img { height: 110px; aspect-ratio: 640 / 440; }
.shoe-scan-photo { margin: 0 0 8px; padding: 10px; }
.shoe-scan-photo img { height: 115px; aspect-ratio: 640 / 440; }
.product-photo--string img { height: 140px; aspect-ratio: 1 / 1; }
.product-photo--price { margin: 0; }
.product-photo--price img { height: 155px; }
.product-photo--brand img { height: 150px; aspect-ratio: 510 / 696; }

.brand-families-section .family-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.family-model-offers {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--tts-line);
}
.family-model-offers-label {
  margin: 0 0 8px !important;
  color: var(--tts-clay) !important;
  font-size: 11px !important;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}
.family-model-offer { padding: 10px 0 0; }
.family-model-offer + .family-model-offer {
  margin-top: 12px;
  border-top: 1px solid var(--tts-line);
}
.family-model-offer .product-photo--brand {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 0 10px;
  padding: 12px;
  background: var(--tts-cream);
  border-radius: var(--tts-radius-sm);
}
.family-model-offer .product-photo--brand img {
  display: block;
  width: auto !important;
  max-width: 100%;
  height: 150px !important;
  aspect-ratio: 510 / 696;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.family-model-offer h3 { font-size: 1rem; line-height: 1.25; margin: 0 0 7px; }
.family-model-offer > a {
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: var(--tts-ball);
  text-underline-offset: 4px;
}
.family-model-offer .product-offer { margin-top: 9px; padding-top: 9px; }
.family-model-offer .product-offer-price { font-size: 0.95rem; margin: 0.2rem 0; font-variant-numeric: tabular-nums; }
.family-model-offer .product-offer-variant,
.family-model-offer .product-offer-meta { font-size: 0.8rem; }
.family-model-offer .product-offer-link { font-size: 0.84rem; }
.family-unmatched-models {
  margin-top: 22px;
  padding: 20px;
  background: var(--tts-white);
  border: 1px solid var(--tts-line);
  border-radius: var(--tts-radius-card);
}
.family-unmatched-models > h3 { margin: 0 0 12px; font-size: 1rem; }
.family-unmatched-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

/* Retailer Partnership Page */
.partner-page { background: var(--tts-paper); }
.partner-hero { padding: 64px 0 52px; }
.partner-hero h1 {
  font-family: var(--tts-font-display);
  font-weight: 400;
  font-size: var(--tts-text-hero);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 12px 0 22px;
  max-width: 900px;
}
.partner-hero > p:not(.eyebrow) {
  max-width: 720px;
  color: var(--tts-body);
  font-size: 1.1rem;
  line-height: 1.68;
}
.partner-hero-link {
  display: inline-block;
  background: var(--tts-forest-900);
  color: var(--tts-white);
  padding: 13px 20px;
  border-radius: var(--tts-radius-xs);
  font-weight: 800;
  margin-top: 16px;
}
.partner-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-bottom: 52px;
}
.partner-panel {
  border: 1px solid var(--tts-line);
  background: var(--tts-white);
  border-radius: var(--tts-radius-card);
  padding: 28px;
}
.partner-index {
  color: var(--tts-brass);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.13em;
}
.partner-panel h2 {
  font-family: var(--tts-font-display);
  font-weight: 400;
  font-size: 1.65rem;
  line-height: 1.2;
  margin: 14px 0 10px;
}
.partner-panel p { color: var(--tts-muted); margin: 0; }
.partner-contact {
  background: var(--tts-forest-950);
  color: var(--tts-white);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 34px;
  align-items: center;
  padding: 44px;
  border-radius: var(--tts-radius-feature);
}
.partner-contact h2 {
  font-family: var(--tts-font-display);
  font-weight: 400;
  font-size: 2.2rem;
  line-height: 1.1;
  margin: 8px 0 16px;
}
.partner-contact p:not(.eyebrow) { color: #d6e4dc; margin: 0 0 12px; max-width: 680px; }
.partner-contact-actions { display: grid; gap: 10px; min-width: 215px; }
.partner-fineprint { padding: 35px 0 70px; }
.partner-fineprint h2 { font-family: var(--tts-font-display); font-weight: 400; font-size: 1.65rem; }
.partner-fineprint p { color: var(--tts-muted); max-width: 760px; }

/* Responsive Breakpoints */
@media (max-width: 1050px) {
  .store-feature-grid { grid-template-columns: repeat(2, 1fr); }
  .store-hero-grid { gap: 28px; }
}
@media (max-width: 850px) {
  .family-unmatched-grid { grid-template-columns: 1fr; }
  .task-strip-inner { flex-direction: column; align-items: stretch; gap: 10px; }
  .task-pills { grid-template-columns: 1fr; }
}
@media (max-width: 780px) {
  .store-hero-grid { grid-template-columns: 1fr; padding: 36px 0 44px; }
  .store-hero-visual { min-height: 280px; }
  .store-categories { grid-template-columns: repeat(2, 1fr); }
  .store-section-heading { display: block; }
  .store-section-heading > p { margin-top: 10px; }
  .partner-columns { grid-template-columns: 1fr; }
  .partner-contact { grid-template-columns: 1fr; padding: 28px; }
  .partner-contact-actions { display: flex; flex-wrap: wrap; }
  .storefront .store-section { padding-top: 44px; }
  .store-feature-zone { margin-top: 36px; }
}
@media (max-width: 520px) {
  .store-categories { gap: 10px; }
  .store-category { min-height: 195px; }
  .store-category-copy { padding: 14px; }
  .store-category-copy strong { font-size: 22px; }
  .store-feature-grid { grid-template-columns: 1fr; }
  .racket-photo--profile img { height: 270px; }
}
