/*
Theme Name: Sport Trust Child
Template: storefront
Version: 2.0.0
Description: Reproduction fidèle sportrushs.store — Noto Sans / Fjalla One, palette #E63946 / #3D0005 / #F1FAEE.
*/

/* ============ DESIGN TOKENS ============ */
:root {
  --st-red: #E63946;
  --st-ink: #3D0005;
  --st-mint: #F1FAEE;
  --st-white: #FFFFFF;
  --st-font: 'Noto Sans', -apple-system, sans-serif;
  --st-display: 'Fjalla One', 'Noto Sans', sans-serif;
  --st-maxw: 1200px;
  --st-radius: 0px;
}
/* ============ BASE ============ */
html { scroll-behavior: smooth; }
body {
  font-family: var(--st-font);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--st-ink);
  background: var(--st-white);
  margin: 0;
}
.st-page { min-height: 100vh; display: flex; flex-direction: column; }
.st-main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--st-font); color: var(--st-ink); }
.container { max-width: var(--st-maxw); margin: 0 auto; padding: 0 24px; }

/* ============ HEADER ============ */
.st-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--st-white);
  border-bottom: 1px solid rgba(61, 0, 5, 0.08);
}
body.home .st-header {
  background: transparent;
  border-bottom-color: transparent;
  position: absolute; top: 0; left: 0; right: 0;
}
body.home .st-header a { color: #fff; }
body.home .st-header .st-cart-link { color: #fff; }
.st-header-inner {
  max-width: 1400px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 32px; gap: 24px;
}
.st-logo { font-family: var(--st-display); font-size: 28px; letter-spacing: 0.3px; line-height: 1; color: var(--st-ink); text-decoration: none; }
.st-logo a { text-decoration: none; color: inherit; }
.st-nav { display: flex; gap: 34px; }
.st-nav a { color: var(--st-ink); text-decoration: none; font-size: 16px; font-weight: 400; letter-spacing: 0.2px; }
.st-nav a:hover { color: var(--st-red); }
.st-cart-link { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--st-ink); font-size: 16px; font-weight: 400; }
.st-cart-link:hover { color: var(--st-red); }
.st-cart-count {
  background: var(--st-red); color: #fff; font-size: 11px; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center; padding: 0 5px;
}

/* ============ HERO ============ */
.st-hero {
  position: relative; display: flex; align-items: center;
  min-height: 585px; color: #fff; overflow: hidden;
  margin-top: 0;
}
.st-hero-bg { position: absolute; inset: 0; z-index: 0; }
.st-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.st-hero::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(30,0,4,0.72) 0%, rgba(30,0,4,0.25) 55%, rgba(30,0,4,0.05) 100%); }
.st-hero-content { position: relative; z-index: 2; max-width: 1400px; margin: 0 auto; padding: 120px 32px 90px; width: 100%; }
.st-hero h1 {
  font-family: var(--st-display); font-size: 88px; font-weight: 400; line-height: 1;
  letter-spacing: -2.64px; color: #fff; margin: 0 0 20px; max-width: 15ch;
}
.st-hero p.lead { font-size: 18px; color: #fff; opacity: 0.9; max-width: 46ch; margin: 0 0 30px; line-height: 1.55; }
.st-hero-media { display: none; }

/* ============ BUTTONS ============ */
.st-btn {
  display: inline-block; background: var(--st-ink); color: #fff;
  font-family: var(--st-font); font-size: 14px; font-weight: 400;
  padding: 16px 24px; border: none; cursor: pointer; text-decoration: none;
  border-radius: 37px; transition: opacity 0.15s;
}
.st-btn:hover { opacity: 0.88; color: #fff; }
.st-btn--outline { background: transparent; color: var(--st-ink); border: 1.5px solid var(--st-ink); }
.st-btn--white { background: #fff; color: var(--st-ink); }
.st-btn--ghost-white { background: #fff; color: var(--st-ink); }

/* ============ MARQUEE ============ */
.st-marquee { background: var(--st-mint); overflow: hidden; padding: 22px 0; }
.st-marquee-track { display: flex; gap: 60px; width: max-content; animation: st-marquee 26s linear infinite; }
.st-marquee span { font-size: 14px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--st-ink); white-space: nowrap; }
@keyframes st-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============ SECTIONS ============ */
.st-section { padding: 48px 0; }
.st-section--mint { background: var(--st-mint); }
.st-section--red { background: var(--st-red); }
.st-section--red h2, .st-section--red h3, .st-section--red p { color: #fff; }
.st-section--red .st-kicker { color: rgba(255,255,255,0.9); }
.st-kicker {
  font-size: 16px; font-weight: 500; letter-spacing: 0.2px;
  margin: 0 0 8px; color: var(--st-ink); text-transform: none;
}
.st-section--red .st-kicker { color: rgba(255,255,255,0.9); }
.st-section-title { font-size: 32px; font-weight: 500; letter-spacing: -0.96px; line-height: 1.15; margin: 0 0 12px; color: var(--st-ink); }
.st-section-sub { font-size: 15px; opacity: 0.75; margin: 0 0 34px; max-width: 60ch; }

/* ============ PRODUCT GRID ============ */
.st-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.st-card { display: flex; flex-direction: column; text-decoration: none; }
.st-card-media { display: block; overflow: hidden; margin-bottom: 14px; }
.st-card-media img { width: 100%; aspect-ratio: 2/3; object-fit: cover; transition: transform 0.3s; }
.st-card:hover .st-card-media img { transform: scale(1.03); }
.st-card-name { font-size: 13px; font-weight: 400; color: var(--st-ink); margin: 0 0 4px; line-height: 1.4; text-decoration: none; }
a.st-card-name:hover { color: var(--st-red); }
.st-card-price { font-size: 14px; color: var(--st-ink); opacity: 0.85; margin: 0 0 10px; }
.st-card .price, .st-card-price .amount { font-weight: 400; }
.st-add {
  display: inline-block; background: var(--st-ink); color: #fff;
  font-size: 13px; font-weight: 400;
  padding: 9px 18px; text-decoration: none; align-self: flex-start; border: none; cursor: pointer;
  border-radius: 37px;
}
.st-add:hover { opacity: 0.88; color: #fff; }

/* ============ SPLIT MEDIA SECTIONS ============ */
.st-split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 56px; }
.st-split-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.st-split h3 { font-size: 32px; font-weight: 500; letter-spacing: -0.96px; margin: 0 0 14px; line-height: 1.15; }
.st-split p { font-size: 15px; line-height: 1.7; margin: 0 0 24px; opacity: 0.85; max-width: 46ch; }

/* ============ NEWSLETTER ============ */
.st-newsletter { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 30px 0; }
.st-newsletter h2 { font-size: 26px; font-weight: 500; letter-spacing: -0.6px; margin: 0; }
.st-newsletter-form { display: flex; gap: 0; flex: 0 1 440px; }
.st-newsletter-form input[type="email"] {
  flex: 1; border: 1px solid rgba(61,0,5,0.25); border-right: none; background: #fff;
  padding: 12px 16px; font-size: 14px; font-family: var(--st-font); color: var(--st-ink); outline: none;
}
.st-newsletter-form button {
  background: var(--st-red); color: #fff; border: none; padding: 12px 24px;
  font-family: var(--st-font); font-size: 14px; font-weight: 700; cursor: pointer; text-transform: uppercase; letter-spacing: 0.5px;
}

/* ============ FOOTER ============ */
.st-footer { background: var(--st-mint); padding: 26px 0; }
.st-footer-inner { max-width: var(--st-maxw); margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.st-footer p { margin: 0; font-size: 13px; opacity: 0.75; }
.st-footer a { font-size: 13px; opacity: 0.75; text-decoration: underline; }

/* ============ SHOP / ARCHIVE (full-width, sans sidebar) ============ */
.woocommerce-page .content-area, .woocommerce .content-area { width: auto !important; float: none !important; margin: 0 !important; }
.woocommerce-page .widget-area, .woocommerce .widget-area { display: none !important; }
.woocommerce-page .site-main, .woocommerce .site-main { width: 100%; }
.woocommerce-page .col-full, .woocommerce .col-full { max-width: 1400px; margin: 0 auto; padding: 0 32px; }
.st-page-header { padding: 44px 0 10px; }
.st-page-header h1 { font-size: 40px; font-weight: 500; letter-spacing: -1.2px; margin: 0 0 6px; }
.woocommerce h1.page-title { font-size: 32px; font-weight: 500; letter-spacing: -0.96px; }
.woocommerce .products ul, .woocommerce ul.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.woocommerce ul.products li.product { width: 100% !important; margin: 0 !important; float: none !important; text-align: left; }
.woocommerce ul.products li.product .woocommerce-loop-product__link img { aspect-ratio: 2/3; object-fit: cover; width: 100%; margin: 0 0 12px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 15px; font-weight: 600; padding: 0; color: var(--st-ink); }
.woocommerce ul.products li.product .price { color: var(--st-ink); font-size: 14px; margin: 2px 0 12px; }
.woocommerce ul.products li.product .button {
  background: var(--st-red); color: #fff; font-weight: 700; font-size: 13px;
  letter-spacing: 0.5px; text-transform: uppercase; padding: 10px 22px; border-radius: 0;
  margin-top: 0;
}
.woocommerce ul.products li.product .button:hover { opacity: 0.88; background: var(--st-red); color: #fff; }
.woocommerce span.onsale { background: var(--st-red); border-radius: 0; line-height: 2.4; }

/* ============ SINGLE PRODUCT ============ */
.woocommerce div.product .product_title { font-size: 34px; font-weight: 500; letter-spacing: -1px; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--st-ink); font-size: 22px; font-weight: 600; }
.woocommerce div.product form.cart .button {
  background: var(--st-red); color: #fff; font-weight: 700; letter-spacing: 0.5px;
  text-transform: uppercase; padding: 13px 30px; border-radius: 0;
}
.woocommerce div.product form.cart .button:hover { background: var(--st-red); opacity: 0.88; color: #fff; }
.woocommerce div.product div.images img { border-radius: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--st-ink); }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { font-weight: 500; }

/* ============ CART / CHECKOUT (blocs + classique) ============ */
.woocommerce table.shop_table { border-collapse: collapse; }
.woocommerce table.shop_table th { font-weight: 600; }
.woocommerce .cart_totals h2, .woocommerce #order_review_heading { font-size: 22px; font-weight: 500; letter-spacing: -0.5px; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button {
  background: var(--st-red); color: #fff; border-radius: 0; font-weight: 700;
  letter-spacing: 0.4px; text-transform: uppercase; font-size: 13px; padding: 12px 24px;
}
.woocommerce a.button:hover, .woocommerce button.button:hover { background: var(--st-red); opacity: 0.88; color: #fff; }
.wc-block-cart .wc-block-cart__submit-button, .wc-block-checkout .wc-block-components-checkout-place-order-button {
  background: var(--st-red) !important; border-radius: 0 !important; text-transform: uppercase; font-weight: 700 !important;
}
.wp-block-woocommerce-cart, .wp-block-woocommerce-checkout { font-family: var(--st-font); }
.wc-block-components-totals-item, .wc-block-components-product-name { color: var(--st-ink); }

/* ============ HEADER STOREFRONT OVERRIDES ============ */
.site-header .site-header-inner, .storefront-breadcrumb { display: none; }
.st-header + .storefront-breadcrumb { display: none; }
.woocommerce-breadcrumb { display: none; }
#page .col-full { max-width: none; padding: 0; }
.site-main .col-full, .storefront-breadcrumb + .site-main .col-full { padding: 0; }

/* ============ RESPONSIVE ============ */
@media (max-width: 991px) {
  .st-hero { grid-template-columns: 1fr; padding: 40px 0; gap: 24px; }
  .st-hero h1 { font-size: 42px; }
  .st-grid { grid-template-columns: repeat(2, 1fr); }
  .st-split { grid-template-columns: 1fr; gap: 28px; }
  .woocommerce .products ul, .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .st-header-inner { flex-wrap: wrap; padding: 12px 16px; }
  .st-nav { order: 3; width: 100%; justify-content: space-between; gap: 12px; }
  .st-hero h1 { font-size: 34px; letter-spacing: -1px; }
  .st-section { padding: 44px 0; }
  .st-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .woocommerce .products ul, .woocommerce ul.products { grid-template-columns: 1fr 1fr; gap: 14px; }
  .st-newsletter { flex-direction: column; gap: 18px; align-items: stretch; }
  .st-newsletter-form { flex-direction: column; gap: 10px; }
  .st-newsletter-form input[type="email"] { border: 1px solid rgba(61,0,5,0.25); }
  .st-footer-inner { flex-direction: column; text-align: center; }
  .st-section-title { font-size: 26px; }
  .st-split h3 { font-size: 26px; }
  .container { padding: 0 16px; }
}
