.we-stock-product {
  overflow: clip;
  color: #f5f7fa;
  background: #070a0e;
}

.we-stock-title {
  padding: clamp(34px, 5vw, 70px) 0 24px;
  background: radial-gradient(circle at 15% 0, rgba(224, 33, 43, .16), transparent 46%), #070a0e;
}

.we-stock-title h1 {
  max-width: 1100px;
  margin: 10px 0 12px;
  color: #fff;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(2rem, 5.6vw, 4.6rem);
  font-weight: 900;
  line-height: .98;
  letter-spacing: -.045em;
  text-transform: none;
}

.we-stock-title p {
  max-width: 900px;
  margin: 0;
  color: #bec6d1;
  font: 500 clamp(1rem, 1.65vw, 1.24rem)/1.65 Inter, ui-sans-serif, system-ui, sans-serif;
}

.we-stock-media-section { padding: 0 0 clamp(22px, 4vw, 48px); }

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

.we-stock-gallery__stage {
  position: relative;
  display: grid;
  width: 100%;
  min-height: clamp(330px, 57vw, 760px);
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 24px;
  background: #0d1117;
  box-shadow: 0 28px 80px rgba(0,0,0,.42);
}

.we-stock-gallery__stage > img,
.we-stock-gallery__stage > video {
  display: block;
  width: 100%;
  height: clamp(330px, 57vw, 760px);
  object-fit: contain;
  background: #0a0d12;
}

.we-stock-gallery__stage > img[hidden],
.we-stock-gallery__stage > video[hidden] { display: none !important; }

.we-stock-gallery__share,
.we-stock-gallery__favorite,
.we-stock-gallery__arrow,
.we-stock-gallery__play {
  position: absolute;
  z-index: 8;
  display: grid;
  width: 50px;
  height: 50px;
  padding: 0;
  place-items: center;
  color: #fff;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 999px;
  background: rgba(4,8,13,.88);
  box-shadow: 0 12px 30px rgba(0,0,0,.38);
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.we-stock-gallery__share { top: 16px; left: 16px; }
.we-stock-gallery__favorite { top: 16px; right: 16px; }
.we-stock-gallery__favorite.is-saved { border-color: #ef373e; background: #d8212a; }
.we-stock-gallery__favorite.is-saved svg { fill: currentColor; }
.we-stock-gallery__arrow { top: 50%; width: 54px; height: 64px; border-radius: 15px; transform: translateY(-50%); }
.we-stock-gallery__arrow--previous { left: 16px; }
.we-stock-gallery__arrow--next { right: 16px; }
.we-stock-gallery__play { top: 50%; left: 50%; width: 84px; height: 84px; font-size: 32px; transform: translate(-50%, -50%); }
.we-stock-gallery__play[hidden] { display: none !important; }

.we-stock-gallery__share svg,
.we-stock-gallery__favorite svg,
.we-stock-gallery__arrow svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.we-stock-gallery__share:hover,
.we-stock-gallery__favorite:hover,
.we-stock-gallery__arrow:hover,
.we-stock-gallery__play:hover,
.we-stock-gallery button:focus-visible {
  border-color: #ef373e;
  outline: 3px solid rgba(239,55,62,.34);
  outline-offset: 2px;
}

.we-stock-gallery__count {
  position: absolute;
  z-index: 7;
  right: 16px;
  bottom: 16px;
  padding: 7px 11px;
  color: #fff;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  background: rgba(4,8,13,.86);
  font: 800 12px/1 Inter, system-ui, sans-serif;
}

.we-stock-gallery__thumbs {
  display: flex;
  gap: 10px;
  width: 100%;
  margin-top: 12px;
  padding: 2px 2px 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}

.we-stock-gallery__thumb {
  position: relative;
  flex: 0 0 clamp(150px, 16vw, 220px);
  min-width: 0;
  overflow: hidden;
  color: #f5f7fa;
  border: 2px solid transparent;
  border-radius: 14px;
  background: #0f141c;
  cursor: pointer;
}

.we-stock-gallery__thumb[aria-current="true"] { border-color: #ef373e; }
.we-stock-gallery__thumb img { display: block; width: 100%; aspect-ratio: 3/2; object-fit: cover; background: #0a0d12; }
.we-stock-gallery__thumb span { display: block; padding: 8px 9px; overflow: hidden; font: 800 11px/1.25 Inter, system-ui, sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.we-stock-gallery__thumb b { color: #ef373e; }
.we-stock-gallery__caption { margin: 8px 2px 0; color: #aeb7c4; font: 700 13px/1.4 Inter, system-ui, sans-serif; }

.we-stock-buy-grid { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); gap: 22px; align-items: start; }
.we-stock-purchase h2,
.we-stock-terms h2 { margin: 8px 0 18px; color: #fff; font: 900 clamp(1.7rem, 3vw, 2.45rem)/1.05 Inter, system-ui, sans-serif; letter-spacing: -.03em; }
.we-stock-fitment-note { padding: 14px 16px; color: #f1d8cf; border-left: 3px solid #ef6b35; background: rgba(239,107,53,.1); }
.we-stock-fitment { display: flex; gap: 11px; align-items: flex-start; margin: 18px 0; padding: 14px; color: #fff; border: 1px solid rgba(239,55,62,.48); border-radius: 12px; background: rgba(239,55,62,.08); font: 700 13px/1.5 Inter, system-ui, sans-serif; }
.we-stock-fitment input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: #ef373e; }
.we-stock-product .accessory-button:disabled { cursor: not-allowed; filter: grayscale(1); opacity: .48; }

.we-stock-policy-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin-bottom: 18px; }
.we-stock-policy-grid > div { padding: 13px; border: 1px solid rgba(255,255,255,.11); border-radius: 12px; background: rgba(255,255,255,.035); }
.we-stock-policy-grid strong,
.we-stock-policy-grid span { display: block; }
.we-stock-policy-grid strong { margin-bottom: 4px; color: #fff; font: 900 12px/1.2 Inter, system-ui, sans-serif; text-transform: uppercase; letter-spacing: .07em; }
.we-stock-policy-grid span { color: #c2cad5; font: 600 13px/1.45 Inter, system-ui, sans-serif; }

.we-stock-feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px; }
.we-stock-feature-card { min-width: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; background: #121821; box-shadow: 0 18px 42px rgba(0,0,0,.24); }
.we-stock-feature-card > a { display: grid; height: 100%; padding: 0 0 20px; color: inherit; text-decoration: none; }
.we-stock-feature-card img { display: block; width: 100%; aspect-ratio: 3/2; margin-bottom: 18px; object-fit: cover; background: #0a0d12; }
.we-stock-feature-card h3,
.we-stock-feature-card p,
.we-stock-feature-card .accessory-kicker,
.we-stock-feature-card .we-stock-feature-card__price,
.we-stock-feature-card .accessory-button { margin-right: 20px; margin-left: 20px; }
.we-stock-feature-card h3 { margin-top: 7px; margin-bottom: 8px; color: #fff; font: 900 clamp(1.25rem,2vw,1.7rem)/1.1 Inter,system-ui,sans-serif; }
.we-stock-feature-card p { color: #b9c2ce; font: 500 14px/1.55 Inter,system-ui,sans-serif; }
.we-stock-feature-card__price { display: block; margin-top: auto; margin-bottom: 14px; color: #fff; font: 900 18px/1.2 Inter,system-ui,sans-serif; }

@media (max-width: 820px) {
  .we-stock-buy-grid,
  .we-stock-feature-grid { grid-template-columns: 1fr; }
  .we-stock-gallery__stage,
  .we-stock-gallery__stage > img,
  .we-stock-gallery__stage > video { min-height: 0; height: clamp(270px, 72vw, 520px); }
}

@media (max-width: 520px) {
  .we-stock-title { padding-top: 24px; }
  .we-stock-title h1 { font-size: clamp(1.86rem, 9.5vw, 2.7rem); letter-spacing: -.035em; }
  .we-stock-gallery__stage { border-radius: 16px; }
  .we-stock-gallery__stage,
  .we-stock-gallery__stage > img,
  .we-stock-gallery__stage > video { height: 66vw; min-height: 250px; max-height: 360px; }
  .we-stock-gallery__share,
  .we-stock-gallery__favorite { top: 10px; width: 44px; height: 44px; }
  .we-stock-gallery__share { left: 10px; }
  .we-stock-gallery__favorite { right: 10px; }
  .we-stock-gallery__arrow { width: 42px; height: 54px; }
  .we-stock-gallery__arrow--previous { left: 8px; }
  .we-stock-gallery__arrow--next { right: 8px; }
  .we-stock-gallery__count { right: 10px; bottom: 10px; }
  .we-stock-gallery__thumb { flex-basis: 132px; }
  .we-stock-policy-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .we-stock-gallery__stage > video { scroll-behavior: auto; }
}
