/* =============================================================
   RideWild SHOP — Dark & Gold Premium
   rw-theme.css chargé avant ce fichier
   ============================================================= */

:root {
  --gold:       #d4a853;
  --gold-light: #f0c878;
  --gold-dark:  #a07830;
  --border-sub: rgba(255, 255, 255, 0.055);
  --maxw:       1100px;
}

body {
  background: #0a0a0a;
  color: #f0ebe0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  margin: 0;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: calc(58px + 1.5rem) 1.5rem 4rem;
}

/* ── Hero ── */
.hero {
  border: 1px solid rgba(212, 168, 83, 0.18);
  border-radius: 20px;
  background: linear-gradient(130deg, rgba(212, 168, 83, 0.12) 0%, rgba(10, 10, 10, 0.95) 45%, rgba(212, 168, 83, 0.06) 100%);
  padding: 1.4rem 1.3rem 1.2rem;
  overflow: hidden;
  position: relative;
  margin-bottom: 1rem;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -110px -100px auto;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 168, 83, 0.1), transparent 64%);
  pointer-events: none;
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.7rem, 3.8vw, 2.6rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #f0ebe0;
}

.hero h1 span { color: var(--gold-light); }

.hero p {
  margin: 0.65rem 0 0;
  max-width: 730px;
  color: #9a8868;
  line-height: 1.7;
}

.hero-metrics {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.metric {
  border: 1px solid rgba(212, 168, 83, 0.2);
  border-radius: 12px;
  padding: 0.65rem 0.8rem;
  background: rgba(212, 168, 83, 0.04);
}

.metric .value {
  font-size: 1.1rem;
  color: var(--gold);
  letter-spacing: 0.04em;
  font-weight: 900;
}

.metric .label {
  color: #9a8868;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Promo ticker ── */
.promo-ticker {
  margin-top: 0;
  border: 1px solid rgba(212, 168, 83, 0.15);
  border-radius: 12px;
  background: rgba(10, 10, 10, 0.85);
  overflow: hidden;
  margin-bottom: 1rem;
}

.promo-track {
  display: flex;
  width: max-content;
  animation: promo-scroll 28s linear infinite;
}

.promo-line {
  margin: 0;
  padding: 0.45rem 1.5rem;
  white-space: nowrap;
  font-size: calc(0.82rem + 6px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
}

.promo-ticker:hover .promo-track { animation-play-state: paused; }

@keyframes promo-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .promo-track { animation: none; }
}

/* ── Shop shell / toolbar ── */
.shop-shell {
  margin-top: 1rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.shop-toolbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 1rem;
}

.search-wrap { position: relative; }

.search-wrap input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #f0ebe0;
  padding: 0.65rem 1.1rem;
  outline: none;
  font: inherit;
  font-size: 0.86rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-wrap input:focus {
  border-color: rgba(212, 168, 83, 0.5);
  box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.1);
}

.search-wrap input::placeholder { color: #4a4030; }

.chip-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.48rem;
}

.chip {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 0.42rem 0.8rem;
  font: inherit;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9a8868;
  background: rgba(255, 255, 255, 0.03);
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.18s ease, background 0.18s ease, color 0.15s ease;
}

.chip:hover {
  transform: translateY(-1px);
  border-color: rgba(212, 168, 83, 0.35);
  color: var(--gold);
}

.chip.active {
  border-color: var(--gold);
  background: rgba(212, 168, 83, 0.1);
  color: var(--gold);
}

/* ── Shop headline & cart ── */
.shop-headline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.shop-headline h2 {
  margin: 0;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
}

.cart-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(212, 168, 83, 0.25);
  border-radius: 999px;
  padding: 0.42rem 0.8rem;
  background: rgba(212, 168, 83, 0.05);
  color: #9a8868;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.cart-pill:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.cart-pill strong {
  color: var(--gold);
  min-width: 20px;
  text-align: center;
}

/* ── Product grid ── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

/* ── Product cards ── */
.product-card {
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  background: rgba(17, 17, 17, 0.9);
  overflow: hidden;
  position: relative;
  isolation: isolate;
  transform: translateY(14px);
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.2s ease;
}

.product-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.product-card:hover {
  border-color: rgba(212, 168, 83, 0.45);
}

.product-card[data-category="partner"] {
  border-color: rgba(212, 168, 83, 0.2);
  background: linear-gradient(170deg, rgba(212, 168, 83, 0.06), rgba(17, 17, 17, 0.95));
}

.product-card[data-category="partner"]:hover {
  border-color: rgba(212, 168, 83, 0.55);
}

.product-card.is-visible,
.product-card.is-visible[data-category="partner"] {
  background: transparent;
}

.product-card:not([data-category="wear"]) .product-media {
  background: rgba(10, 10, 10, 0.8);
}

.product-card[data-category="wear"] .product-media {
  background: transparent;
}

.product-card:not([data-category="wear"]) .product-media img {
  object-fit: contain;
  padding: 20px;
  background: transparent;
}

.product-media {
  width: 100%;
  display: block;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  background: #0d0d0d;
  overflow: hidden;
  position: relative;
}

.product-media img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.product-media:hover img { transform: scale(1.07); }

.zoom-badge {
  position: absolute;
  right: 10px; bottom: 10px;
  border-radius: 999px;
  border: 1px solid rgba(212, 168, 83, 0.3);
  background: rgba(10, 10, 10, 0.75);
  padding: 0.26rem 0.55rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold);
}

.product-body {
  padding: 0.8rem 0.85rem 0.9rem;
  display: flex;
  flex-direction: column;
}

.product-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
}

.product-ref {
  color: #4a4030;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.product-topline,
.product-ref { display: none; }

.product-price {
  font-size: 0.95rem;
  color: var(--gold);
  display: block;
  align-self: flex-end;
  margin-top: 0.55rem;
  padding: 0.2rem 0.55rem;
  border: 1px solid rgba(212, 168, 83, 0.25);
  border-radius: 999px;
  background: rgba(212, 168, 83, 0.06);
  order: 30;
  font-weight: 800;
}

.product-title {
  margin: 0;
  font-size: calc(0.88rem + 4px);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 800;
  color: #f0ebe0;
}

.product-subtitle {
  display: none;
  font-size: 0.8rem;
  color: #9a8868;
  margin-top: 0.25rem;
}

/* ── Offer layout (portrait cards) ── */
.product-card.offer-layout {
  aspect-ratio: 9 / 16;
  background: transparent;
}

.product-card.offer-layout .product-title {
  order: 1;
  margin-bottom: 0.35rem;
  text-align: center;
  align-self: stretch;
  font-weight: 800;
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  line-height: 1.08;
}

.product-card.offer-layout .product-title .offer-title-country {
  font-size: calc(1.1rem + 6px);
  font-weight: 900;
  letter-spacing: 0.06em;
}

.product-card.offer-layout .product-title .offer-title-rest {
  font-size: calc(0.7rem + 5px);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #9a8868;
}

.product-card.offer-layout .product-media {
  order: 28;
  width: 100%;
  margin-left: auto;
  margin-top: auto;
  margin-bottom: 0.35rem;
  border-radius: 10px;
  border: none;
  background: transparent;
  position: relative;
  z-index: 3;
  transition: width 0.28s ease;
}

.product-card.offer-layout:hover .product-media { width: 28.8%; }

.product-card.offer-layout .product-media img {
  height: auto;
  min-height: 0;
  padding: 6px;
  object-fit: contain;
}

.product-card.offer-layout .product-media .zoom-badge { display: none; }

.product-card.offer-layout .product-body {
  position: relative;
  z-index: 2;
  height: 100%;
}

/* ── Video background in offer cards ── */
.offer-bg-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.offer-bg-video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  opacity: 0.2;
  transition: opacity 0.3s ease;
}

.product-card.offer-layout:hover .offer-bg-video { opacity: 0.85; }
.offer-bg-video-wrap::after { content: none; }

/* ── Footer ── */
footer {
  margin-top: 2rem;
  background: rgba(0, 0, 0, 0.92);
  border-top: 1px solid rgba(212, 168, 83, 0.1);
  color: #4a4030;
  text-align: center;
  padding: 0;
  font-size: 0.76rem;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-metrics { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .shop-toolbar { grid-template-columns: 1fr; }
  .chip-row { justify-content: flex-start; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-metrics { grid-template-columns: 1fr; }
}

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