/* ============================================
   Jagd&Sport Product Detail Page
   Matches prototype layout, works with PS9 Hummingbird markup
   ============================================ */

/* === OVERRIDE: remove Hummingbird .page bottom padding on product page === */
.page-product .page:not(body) {
  padding-bottom: 0;
}

/* === MAIN GRID: GALLERY + INFO === */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  padding: var(--space-2xl) var(--space-lg) var(--space-xl);
  max-width: var(--container-width, 1320px);
  margin: 0 auto;
}

/* === GALLERY (left, sticky) === */
.product-gallery {
  position: sticky;
  top: calc(80px + var(--space-lg));
  align-self: start;
}

.product-gallery .product__images {
  margin-bottom: var(--space-md);
}

.product-gallery .product__images .swiper-slide,
.product-gallery .product__cover,
.product-gallery .carousel-item {
  aspect-ratio: 1;
  background: var(--color-light-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: zoom-in;
  position: relative;
}

.product-gallery .product__cover img,
.product-gallery .product__images img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.5s var(--ease-out);
}

.product-gallery .product__cover:hover img {
  transform: scale(1.08);
}

/* Thumbnails */
.product-gallery .product__thumbs {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.product-gallery .product__thumbs button,
.product-gallery .product__thumbs .thumb-container {
  width: 72px;
  height: 56px;
  background: var(--color-cream);
  border: 2px solid transparent;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xs);
  transition: border-color var(--duration-fast);
}

.product-gallery .product__thumbs button:hover,
.product-gallery .product__thumbs button.active,
.product-gallery .product__thumbs .thumb-container:hover,
.product-gallery .product__thumbs .thumb-container.active {
  border-color: var(--color-accent);
}

.product-gallery .product__thumbs img {
  max-height: 100%;
  object-fit: contain;
}

/* Product flags/badges in gallery */
.product-gallery .product-flags {
  position: absolute;
  top: var(--space-lg);
  left: var(--space-lg);
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.product-gallery .product-flag {
  padding: 0.4rem 1rem;
  background: var(--color-accent);
  color: var(--color-pure-white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.product-gallery .product-flag.on-sale {
  background: var(--color-error, #B83232);
}

.product-gallery .product-flag.out_of_stock {
  background: var(--color-dark-gray);
}

/* === PRODUCT INFO (right column) === */
.product-info {
  padding-top: var(--space-sm);
}

.product-info__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  margin-bottom: var(--space-sm);
}

.product-info__brand-logo {
  height: 28px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}

.product-info__brand-name {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  transition: color var(--duration-fast);
}

.product-info__brand:hover .product-info__brand-name {
  color: var(--color-accent-dark);
}

.product-info__title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 var(--space-sm);
}

.product-info__sku {
  font-size: 0.78rem;
  color: var(--color-mid-gray);
  margin-bottom: var(--space-lg);
  display: flex;
  gap: var(--space-md);
}

.product-info__short-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--color-dark-gray);
  margin-bottom: var(--space-lg);
}

/* === PRICE BLOCK (cream bg) === */
.product-info__price-block {
  background: var(--color-cream);
  padding: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.product-info__price-row {
  display: flex;
  align-items: baseline;
  gap: var(--space-md);
  margin-bottom: var(--space-xs);
}

.product-info__price {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-black);
}

.product-info__price-old {
  font-size: 1.1rem;
  color: var(--color-mid-gray);
  text-decoration: line-through;
}

.product-info__price-save {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-error, #B83232);
  background: rgba(184, 50, 50, 0.08);
  padding: 0.2rem 0.6rem;
}

.product-info__tax {
  font-size: 0.75rem;
  color: var(--color-mid-gray);
}

/* Availability */
.product-info__availability {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: var(--space-sm);
}

.product-info__availability-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.product-info__availability-dot--in {
  background: var(--color-success);
  animation: opc-pulse 2s infinite;
}

.product-info__availability-dot--low {
  background: #9E7200;
  animation: opc-pulse 2s infinite;
}

.product-info__availability-dot--out {
  background: var(--color-error, #B83232);
}

@keyframes opc-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* === VARIANTS === */
.product-info__actions .product__variants {
  margin-bottom: var(--space-lg);
}

.product-info__actions .product-variant {
  border: none;
  padding: 0;
  margin: 0 0 var(--space-md);
}

.product-info__actions .product-variant__label {
  margin-bottom: var(--space-sm);
}

.product-info__actions .product-variant__legend {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0;
  float: none;
  width: auto;
}

.product-info__actions .product-variant__selected {
  font-weight: 400;
  color: var(--color-mid-gray);
}

/* Select dropdown styling */
.product-info__actions .form-select {
  border: 1.5px solid var(--color-warm-gray);
  border-radius: 0;
  padding: 0.5rem 1rem;
  font-size: 0.88rem;
  font-family: var(--font-body);
  background-color: var(--color-pure-white);
  width: 100%;
}

.product-info__actions .form-select:focus {
  border-color: var(--color-accent);
  box-shadow: none;
}

/* Color swatches */
.product-info__actions .product-variant__colors {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.product-info__actions .input-color__label {
  cursor: pointer;
  border: 2px solid transparent;
  padding: 2px;
  transition: border-color var(--duration-fast);
}

.product-info__actions .input-color__label--active,
.product-info__actions .input-color__label:hover {
  border-color: var(--color-black);
}

.product-info__actions .input-color__input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.product-info__actions .input-color .color {
  display: block;
  width: 28px;
  height: 28px;
  border: 1px solid var(--color-warm-gray);
}

/* === QTY + ADD TO CART ROW === */
.product-info__cart {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  align-items: stretch;
}

.product-info__qty {
  flex-shrink: 0;
}

.product-info__qty .quantity-button__group {
  border: 1.5px solid var(--color-warm-gray);
  display: flex;
  align-items: center;
  height: 100%;
  border-radius: 0;
  flex-wrap: nowrap;
}

.product-info__qty .quantity-button__group .btn {
  width: 42px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--color-dark-gray);
  background: none;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: background var(--duration-fast);
  padding: 0;
}

.product-info__qty .quantity-button__group .btn:hover {
  background: var(--color-cream);
}

.product-info__qty .quantity-button__group .form-control {
  width: 48px;
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-left: 1.5px solid var(--color-warm-gray);
  border-right: 1.5px solid var(--color-warm-gray);
  border-radius: 0;
  outline: none;
  -moz-appearance: textfield;
  appearance: textfield;
  height: 100%;
  padding: 0.4rem;
}

.product-info__qty .form-control:focus-visible {
  box-shadow: var(--focus-ring);
}

.product-info__qty input::-webkit-outer-spin-button,
.product-info__qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Add to cart button */
.product-info__cart-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.85rem var(--space-xl);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--color-accent);
  color: var(--color-pure-white);
  border: none;
  cursor: pointer;
  transition: background var(--duration-fast);
}

.product-info__cart-btn:hover {
  background: var(--color-accent-dark);
}

.product-info__cart-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.product-info__cart-btn svg {
  flex-shrink: 0;
}

/* Wishlist button in cart row */
.product-info__cart .wishlist-button-product {
  margin-left: 0 !important;
}

.product-info__cart .wishlist-button-add {
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  border-radius: 0 !important;
  border: 1.5px solid var(--color-warm-gray) !important;
  background: #fff !important;
  box-shadow: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: border-color var(--duration-fast) ease !important;
  padding: 0 !important;
}

.product-info__cart .wishlist-button-add:hover {
  border-color: var(--color-accent) !important;
  opacity: 1 !important;
}

.product-info__cart .wishlist-button-add i {
  color: var(--color-mid-gray) !important;
  font-size: 22px !important;
}

.product-info__cart .wishlist-button-add.checked i {
  color: #c0392b !important;
}

/* Minimal quantity notice */
.product-info__minimal {
  font-size: 0.78rem;
  color: var(--color-mid-gray);
  margin-bottom: var(--space-md);
}

/* === DELIVERY NOTICE === */
.product-info__delivery {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: var(--color-cream);
  border: 1px solid var(--color-warm-gray);
  margin-bottom: var(--space-lg);
  font-size: 0.82rem;
  color: var(--color-mid-gray);
  line-height: 1.5;
}

.product-info__delivery svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-accent);
}

/* === SECONDARY ACTIONS === */
.product-info__secondary {
  display: flex;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-warm-gray);
}

.product-info__secondary a,
.product-info__secondary button {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-mid-gray);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  transition: color var(--duration-fast);
}

.product-info__secondary a:hover,
.product-info__secondary button:hover {
  color: var(--color-black);
}

/* === HIGHLIGHTS / FEATURES LIST === */
.product-info__highlights {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.product-info__highlights li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: 0.85rem;
  line-height: 1.5;
}

.product-info__highlights svg {
  flex-shrink: 0;
  margin-top: 2px;
}

/* === PRODUCT BOTTOM: 2/3 Accordions + 1/3 Video Sidebar === */
.product-detail-bottom {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-2xl);
  padding: var(--space-xl) 0 var(--space-lg);
  max-width: var(--container-width, 1320px);
  margin: 0 auto;
}

.product-detail-bottom__main {
  min-width: 0;
}

.product-detail-bottom__sidebar {
  min-width: 0;
  position: sticky;
  top: var(--space-2xl);
  align-self: start;
  background: var(--color-light-blue);
  border-radius: 0;
  padding: var(--space-lg);
}

/* --- Accordion --- */
.product-accordion {
  border-top: 1px solid var(--color-warm-gray);
}

.product-accordion:last-child {
  border-bottom: 1px solid var(--color-warm-gray);
}

.product-accordion__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) 0;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.product-accordion__header::-webkit-details-marker,
.product-accordion__header::marker {
  display: none;
}

.product-accordion__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
}

.product-accordion__icon {
  flex-shrink: 0;
  transition: transform var(--duration-fast);
  color: var(--color-mid-gray);
}

.product-accordion[open] > .product-accordion__header .product-accordion__icon {
  transform: rotate(180deg);
}

.product-accordion__body {
  padding: 0 0 var(--space-lg);
}

/* --- Description rich-text h2 styling --- */
.product-accordion__body.rich-text h2 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-dark);
  margin: var(--space-lg) 0 var(--space-sm);
}

.product-accordion__body.rich-text h2:first-child {
  margin-top: 0;
}

.product-accordion__body.rich-text p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--color-dark-gray);
  margin-bottom: var(--space-sm);
}

/* --- Video Sidebar (1/3 column) --- */
.product-sidebar-videos__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.product-sidebar-videos__slider {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.product-sidebar-videos__slider .yt-card {
  width: 100%;
  flex: none;
  border-radius: 0;
  overflow: hidden;
  cursor: pointer;
}

.product-sidebar-videos__slider .yt-card:not(:first-child) {
  display: none;
}

.product-sidebar-videos__slider.is-sliding .yt-card {
  display: none;
}

.product-sidebar-videos__slider.is-sliding .yt-card.is-active {
  display: block;
}

.product-sidebar-videos__slider .yt-card__thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.product-sidebar-videos__slider .yt-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-sidebar-videos__slider .yt-card__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.3);
  transition: background var(--duration-fast);
}

.product-sidebar-videos__slider .yt-card:hover .yt-card__play {
  background: rgba(0,0,0,0.5);
}

.product-sidebar-videos__slider .yt-card__embed {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
}

.product-sidebar-videos__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
}

.product-sidebar-videos__arrow {
  width: 32px;
  height: 32px;
  border: 1px solid var(--color-warm-gray);
  border-radius: 50%;
  background: var(--color-pure-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--duration-fast);
}

.product-sidebar-videos__arrow:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.product-sidebar-videos__counter {
  font-size: 0.82rem;
  color: var(--color-mid-gray);
  font-weight: 500;
}

/* --- Specs inside accordion --- */
.product-spec {
  display: flex;
  justify-content: space-between;
  padding: var(--space-sm) 0;
  font-size: 0.88rem;
  border-bottom: 1px solid rgba(222, 226, 234, 0.6);
}

.product-spec:last-child {
  border-bottom: none;
}

.product-spec__label {
  color: var(--color-mid-gray);
}

.product-spec__value {
  font-weight: 600;
  text-align: right;
}

/* === ATTACHMENTS === */
.product-attachments {
  max-width: var(--container-width, 1320px);
  margin: 0 auto;
  padding-bottom: var(--space-xl);
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.product-attachments__item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--color-warm-gray);
  font-size: 0.82rem;
  color: var(--color-dark-gray);
  text-decoration: none;
  transition: border-color var(--duration-fast);
}

.product-attachments__item:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* === EXTRA SECTIONS FROM MODULES === */
.product-extra-section {
  max-width: var(--container-width, 1320px);
  margin: 0 auto;
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--color-warm-gray);
}

.product-extra-section h2 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: var(--space-lg);
}

/* === STICKY ADD TO CART BAR === */
.sticky-cart {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 800;
  background: var(--color-pure-white);
  border-top: 1px solid var(--color-warm-gray);
  box-shadow: 0 -4px 20px rgba(10, 10, 10, 0.1);
  transform: translateY(100%);
  transition: transform 0.3s var(--ease-out);
}

.sticky-cart--visible {
  transform: translateY(0);
}

.sticky-cart__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  max-width: var(--container-width, 1320px);
  margin: 0 auto;
}

.sticky-cart__product {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.sticky-cart__product img {
  width: 48px;
  height: 36px;
  object-fit: contain;
  background: var(--color-cream);
  padding: 4px;
}

.sticky-cart__name {
  font-size: 0.88rem;
}

.sticky-cart__right {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.sticky-cart__price {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
}

.sticky-cart__btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.7rem var(--space-xl);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--color-accent);
  color: var(--color-pure-white);
  border: none;
  cursor: pointer;
  transition: background var(--duration-fast);
}

.sticky-cart__btn:hover {
  background: var(--color-accent-dark);
}

/* === PRODUCT LIGHTBOX === */
.js-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0,0,0,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
  cursor: default;
}

.js-lightbox.is-visible {
  display: flex;
  opacity: 1;
}

.js-lightbox__img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 0;
  user-select: none;
  cursor: default;
}

.js-lightbox__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.15);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10;
}

.js-lightbox__close:hover {
  background: rgba(255,255,255,0.3);
}

.js-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.15);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10;
}

.js-lightbox__nav:hover {
  background: rgba(255,255,255,0.3);
}

.js-lightbox__nav--prev { left: 1.5rem; }
.js-lightbox__nav--next { right: 1.5rem; }

.js-lightbox__counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  font-weight: 500;
}

/* Hide default Hummingbird zoom button — we use our own lightbox */
.product__zoom { display: none !important; }

/* Hide the Bootstrap product modal since we use custom lightbox */
#product-modal { display: none !important; }

/* === HIDE DEFAULT HUMMINGBIRD ELEMENTS === */
.product-detail .product__container,
.product-detail .product__bottom {
  display: none;
}

/* === MODULE HOOK SECTIONS (category products, viewed, dealer finder) === */
.page-product .featured-products {
  padding: var(--space-2xl) 0;
}

.page-product .featured-products h2 {
  max-width: var(--container-width, 1320px);
  margin: 0 auto var(--space-lg);
  padding: 0 var(--space-lg);
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
}

.page-product .featured-products > .products,
.page-product .featured-products > div:not(.products) {
  max-width: var(--container-width, 1320px);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* === REASSURANCE & COMMENTS === */
.page-product .blockreassurance--product {
  max-width: var(--container-width, 1320px);
  margin: 0 auto;
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--color-warm-gray);
}

.page-product .product-comments-wrapper {
  max-width: var(--container-width, 1320px);
  margin: 0 auto;
  padding-bottom: var(--space-xl);
}

/* === MOBILE RESPONSIVE === */
@media (max-width: 991.98px) {
  .product-detail {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    padding: var(--space-md) 0 var(--space-xl);
  }

  .product-gallery {
    position: static;
  }
}

@media (max-width: 767.98px) {
  .product-info__price {
    font-size: 1.6rem;
  }

  .product-info__title {
    font-size: 1.4rem;
  }

  .sticky-cart__product img {
    display: none;
  }

  .sticky-cart__inner {
    gap: var(--space-md);
    padding: var(--space-sm) var(--space-md);
  }

  .sticky-cart__price {
    font-size: 1.1rem;
  }
}

@media (max-width: 575.98px) {
  .product-info__cart {
    flex-direction: column;
  }

  .product-info__cart-btn {
    width: 100%;
  }

  .sticky-cart__name {
    font-size: 0.78rem;
  }

  .sticky-cart__price {
    font-size: 0.95rem;
  }

  .sticky-cart__btn {
    font-size: 0.72rem;
    padding: 0.6rem 1rem;
  }
}

/* === FULL-WIDTH BREAKOUT from .container === */
.page-product .product-section,
.page-product .featured-products {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

/* === PRODUCT SECTIONS (below fold) === */
.product-section {
  padding: var(--space-2xl) 0;
}

.product-section--light-blue {
  background: var(--color-light-blue);
}

.product-section--cream {
  background: var(--color-cream);
}

.product-section--dark {
  background: var(--color-accent-dark);
  color: var(--color-pure-white);
}

.product-section__container {
  max-width: var(--container-width, 1320px);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.product-section__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: var(--space-xl);
}

.product-section__label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}

.product-section__title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0;
}

.product-section__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.55rem 1.2rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-accent);
  border: 1.5px solid var(--color-accent);
  text-decoration: none;
  transition: all var(--duration-fast);
  margin-bottom: 0.5rem;
}

.product-section__cta:hover {
  background: var(--color-accent);
  color: var(--color-pure-white);
}

/* === PRODUCT VIDEOS SLIDER === */
.product-videos-slider {
  position: relative;
}

.product-videos-slider__track {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--space-md);
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.product-videos-slider__track::-webkit-scrollbar {
  display: none;
}

.product-videos-slider__track .yt-card {
  flex: 0 0 300px;
  width: 300px;
}

.product-videos-slider__arrow {
  position: absolute;
  top: 35%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-pure-white);
  border: 1.5px solid var(--color-warm-gray);
  color: var(--color-black);
  cursor: pointer;
  transition: all var(--duration-fast);
  box-shadow: var(--shadow-md);
}

.product-videos-slider__arrow:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.product-videos-slider__arrow--prev { left: -22px; }
.product-videos-slider__arrow--next { right: -22px; }

/* === YT CARD (shared) === */
.yt-card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform var(--duration-normal) var(--ease-out);
}

.yt-card:hover {
  transform: translateY(-4px);
}

.yt-card__thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--color-black);
}

.yt-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out), opacity var(--duration-fast);
}

.yt-card:hover .yt-card__thumb img {
  transform: scale(1.05);
  opacity: 0.85;
}

.yt-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,79,101,0.85);
  opacity: 0;
  transition: all var(--duration-fast);
}

.yt-card:hover .yt-card__play {
  opacity: 1;
}

.yt-card__duration {
  position: absolute;
  bottom: var(--space-sm);
  right: var(--space-sm);
  padding: 2px 6px;
  background: rgba(10,10,10,0.8);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
}

.yt-card__info {
  padding: var(--space-md) 0;
}

.yt-card__info h3 {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 var(--space-xs);
}

.yt-card__meta {
  font-size: 0.72rem;
  color: var(--color-mid-gray);
}

.yt-card--playing {
  aspect-ratio: 16/9;
}

.yt-card__embed {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0;
}

.js-yt-card {
  cursor: pointer;
}

/* === COMPARE TABLE === */
.compare-table-wrap {
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.compare-table th,
.compare-table td {
  padding: var(--space-md) var(--space-lg);
  text-align: center;
  border-bottom: 1px solid var(--color-warm-gray);
}

.compare-table th {
  font-weight: 700;
  font-size: 0.85rem;
  padding-top: var(--space-lg);
  padding-bottom: var(--space-lg);
  vertical-align: bottom;
}

.compare-table th:first-child,
.compare-table td:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--color-mid-gray);
  min-width: 160px;
}

.compare-table__active {
  background: rgba(0,79,101,0.04);
}

.compare-table tr:last-child td {
  border-bottom: none;
  padding-top: var(--space-lg);
}

.compare-table__btn {
  display: inline-block;
  width: 100%;
  padding: 0.55rem 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  border: 1.5px solid var(--color-accent);
  color: var(--color-accent);
  transition: all var(--duration-fast);
}

.compare-table__btn:hover {
  background: var(--color-accent);
  color: var(--color-pure-white);
}

.compare-table__btn--active {
  background: var(--color-accent);
  color: var(--color-pure-white);
  border-color: var(--color-accent);
}

/* === DEALER FINDER === */
.page-product .dealer-finder-wrap {
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
  padding: var(--space-2xl) 0;
  background: var(--color-light-blue);
}

.dealer-finder {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  max-width: var(--container-width, 1320px);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.dealer-finder__info h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.dealer-finder__info > p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--color-dark-gray);
  margin-bottom: var(--space-xl);
}

.dealer-finder__search {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.dealer-finder__input {
  flex: 1;
  padding: 0.7rem 1rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  border: 1.5px solid var(--color-warm-gray);
  background: var(--color-pure-white);
}

.dealer-finder__input:focus {
  border-color: var(--color-accent);
  outline: none;
  box-shadow: var(--focus-ring);
}

.dealer-finder__btn {
  padding: 0.7rem 1.5rem;
  background: var(--color-accent);
  color: var(--color-pure-white);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background var(--duration-fast);
}

.dealer-finder__btn:hover {
  background: var(--color-accent-dark);
}

.dealer-card {
  padding: var(--space-md);
  border: 1px solid var(--color-warm-gray);
  background: var(--color-pure-white);
  margin-bottom: var(--space-sm);
}

.dealer-card strong {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 2px;
}

.dealer-card span {
  display: block;
  font-size: 0.78rem;
  color: var(--color-mid-gray);
}

.dealer-card__stock {
  color: var(--color-success) !important;
  font-weight: 600;
  margin-top: var(--space-xs);
}

.dealer-card__stock--order {
  color: var(--color-mid-gray) !important;
}

.dealer-finder__map {
  min-height: 380px;
  border: 1px solid var(--color-warm-gray);
}

.dealer-finder__map-canvas {
  width: 100%;
  height: 100%;
  min-height: 380px;
}

.dealer-finder__icon {
  margin-bottom: var(--space-md);
}

.dealer-finder__card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md);
  border: 1px solid var(--color-warm-gray);
  background: var(--color-pure-white);
  margin-bottom: var(--space-sm);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--duration-fast) ease;
}

.dealer-finder__card:hover {
  border-color: var(--color-accent);
  text-decoration: none;
  color: inherit;
}

.dealer-finder__card-info strong {
  display: block;
  font-size: 0.88rem;
  color: var(--color-charcoal);
  margin-bottom: 2px;
}

.dealer-finder__card-info span {
  display: block;
  font-size: 0.78rem;
  color: var(--color-mid-gray);
}

.dealer-finder__card-dist {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-accent);
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: var(--space-md);
}

.dealer-finder__empty {
  padding: var(--space-lg);
  text-align: center;
  color: var(--color-mid-gray);
  font-size: 0.85rem;
}

.dealer-finder__all-link {
  display: inline-block;
  margin-top: var(--space-md);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
}

.dealer-finder__all-link:hover {
  text-decoration: underline;
}

/* === PRODUCTS GRID (related products) === */
.products-grid--4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

/* === BOUGHT TOGETHER === */
.bought-together {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: var(--space-2xl);
  align-items: start;
}

.bought-together__main {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.bought-together__product {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  border: 1.5px solid var(--color-warm-gray);
  background: var(--color-pure-white);
  flex: 1;
  min-width: 220px;
  position: relative;
  text-decoration: none;
  color: inherit;
  transition: border-color var(--duration-fast);
}

.bought-together__product--selectable:hover {
  border-color: var(--color-accent);
}

.bought-together__product img {
  width: 72px;
  height: 54px;
  object-fit: contain;
  background: var(--color-cream);
  padding: 4px;
  flex-shrink: 0;
}

.bought-together__brand {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-mid-gray);
}

.bought-together__product strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 2px 0;
}

.bought-together__price {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-accent);
}

.bought-together__check {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  width: 18px;
  height: 18px;
  accent-color: var(--color-accent);
  cursor: pointer;
}

.bought-together__plus {
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--color-mid-gray);
  flex-shrink: 0;
}

.bought-together__summary {
  padding: var(--space-xl);
  background: var(--color-cream);
  border: 1.5px solid var(--color-warm-gray);
  text-align: center;
}

.bought-together__total {
  margin-bottom: var(--space-lg);
}

.bought-together__total span:first-child {
  display: block;
  font-size: 0.82rem;
  color: var(--color-mid-gray);
  margin-bottom: var(--space-xs);
}

.bought-together__total strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
}

.bought-together__save {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-success);
  margin-top: var(--space-xs);
}

.bought-together__add-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  width: 100%;
  padding: 0.85rem 2rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--color-accent);
  color: var(--color-pure-white);
  border: none;
  cursor: pointer;
  transition: background var(--duration-fast);
}

.bought-together__add-btn:hover {
  background: var(--color-accent-dark);
}

.bt__add-btn--inactive {
  opacity: 0.4;
  pointer-events: none;
  cursor: default;
}

/* === PRODUCT NEWSLETTER === */
.product-newsletter {
  text-align: center;
  padding: var(--space-2xl) 0;
  max-width: 600px;
  margin: 0 auto;
}

.product-newsletter__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: var(--space-md);
}

.product-newsletter__title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
  margin: 0 0 var(--space-sm);
}

.product-newsletter__subtitle {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.78);
  margin: 0 0 var(--space-xl);
  line-height: 1.6;
}

.product-newsletter__form {
  display: flex;
  max-width: 520px;
  margin: 0 auto;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.product-newsletter__input {
  flex: 1;
  padding: 1rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  border: 1.5px solid var(--color-warm-gray);
  border-right: none;
}

.product-newsletter__input:focus {
  border-color: var(--color-accent);
  outline: none;
  box-shadow: var(--focus-ring);
}

.product-newsletter__btn {
  padding: 1rem 2rem;
  background: var(--color-pure-white);
  color: var(--color-black);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background var(--duration-fast);
}

.product-newsletter__btn:hover {
  background: var(--color-cream);
}

.product-newsletter__legal {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.65);
  margin-top: var(--space-md);
}

/* === MOBILE RESPONSIVE === */
@media (max-width: 991.98px) {
  .product-detail {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    padding: var(--space-md) 0 var(--space-xl);
  }

  .product-detail-bottom {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .product-gallery {
    position: static;
  }

  .products-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .bought-together {
    grid-template-columns: 1fr;
  }

  .dealer-finder {
    grid-template-columns: 1fr;
  }

  .product-section__header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
  }
}

@media (max-width: 767.98px) {
  .product-section {
    padding: var(--space-xl) 0;
  }

  .product-section__title {
    font-size: 1.3rem;
  }

  .compare-table th,
  .compare-table td {
    padding: var(--space-sm);
  }

  .compare-table {
    font-size: 0.78rem;
  }

  .compare-table th img {
    height: 32px !important;
  }

  .dealer-finder__search {
    flex-direction: column;
  }

  .product-videos-slider__arrow {
    display: none;
  }

  .product-videos-slider__track .yt-card {
    flex: 0 0 260px;
    width: 260px;
  }
}

@media (max-width: 575.98px) {
  .product-info__cart {
    flex-direction: column;
  }

  .product-info__cart-btn {
    width: 100%;
  }

  .sticky-cart__name {
    font-size: 0.78rem;
  }

  .sticky-cart__price {
    font-size: 0.95rem;
  }

  .sticky-cart__btn {
    font-size: 0.72rem;
    padding: 0.6rem 1rem;
  }

  .products-grid--4 {
    grid-template-columns: 1fr;
  }

  .bought-together__main {
    flex-direction: column;
  }

  .bought-together__product {
    width: 100%;
    min-width: auto;
  }

  .bought-together__plus {
    transform: rotate(90deg);
  }

  .compare-table th:first-child,
  .compare-table td:first-child {
    min-width: 100px;
    font-size: 0.72rem;
  }

  .product-newsletter__form {
    flex-direction: column;
  }

  .product-newsletter__input {
    border-right: 1.5px solid var(--color-warm-gray);
  }

  .product-section {
    padding: var(--space-xl) 0;
  }
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
  .product-gallery .product__cover img,
  .sticky-cart,
  .yt-card,
  .yt-card__thumb img,
  .yt-card__play {
    transition: none;
  }

  .product-info__availability-dot--in,
  .product-info__availability-dot--low {
    animation: none;
  }
}
