/* ==========================================================================
   products.css — Dedicated styling for Products Page, 3D Flip Cards & 3-Image Carousels
   ========================================================================== */

/* ========================================
   1. PRODUCTS HERO SECTION
======================================== */
.hero--products {
  min-height: 72vh;
  padding-block: clamp(160px, 18vh, 210px) clamp(50px, 8vh, 80px);
}

.products-hero-wrap {
  max-width: 820px;
}

.products-hero-wrap h1 {
  margin-top: 16px;
  margin-bottom: 20px;
  letter-spacing: -0.025em;
}

.products-hero-wrap .lead {
  margin-bottom: 32px;
  color: var(--text-secondary);
}

/* Category Filter Bar */
.product-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.heading-block .product-filter-bar {
  justify-content: center;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  padding: 9px 20px;
  border-radius: var(--r-pill);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  backdrop-filter: blur(8px);
}

.filter-btn:hover {
  border-color: rgba(41, 121, 255, 0.4);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}

.filter-btn.is-active {
  background: var(--accent);
  color: var(--accent-contrast-text);
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(41, 121, 255, 0.35);
}

/* Pagination control below the product grid — mirrors the filter-bar pill styling */
.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 50px;
}

.page-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  border-radius: var(--r-pill);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  backdrop-filter: blur(8px);
}

.page-btn:hover:not(:disabled) {
  border-color: rgba(41, 121, 255, 0.4);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}

.page-btn.is-active {
  background: var(--accent);
  color: var(--accent-contrast-text);
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(41, 121, 255, 0.35);
}

.page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

/* ========================================
   2. 3D FLIP CARD & CAROUSEL LAYOUT
======================================== */
.products-section,
.products-home-section {
  padding-block: clamp(70px, 10vh, 110px);
  position: relative;
}

body.product-card-scroll-locked {
  /* iOS-safe lock: overflow:hidden without position:fixed.
     position:fixed causes iOS Safari to reset scrollTop to 0 (page jumps).
     overflow:hidden alone is enough to block background scroll on Android
     Chrome; iOS is handled by the JS touch-boundary logic in products.js. */
  overflow: hidden;
  overscroll-behavior: none;
}

.products-home-section {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 30px;
  margin-top: 50px;
}

/* 3D Perspective Card Wrapper */
.product-card-wrap {
  perspective: 1400px;
  -webkit-perspective: 1400px;
  margin-top: 40px;
  height: 440px;
  position: relative;
  transition: transform 0.4s var(--ease);
  transform-origin: center;
}

/* Subtle focus/elevation for the selected (flipped) card — transform only,
   so it never changes the card's own width/height box. */
.product-card-wrap.is-flipped {
  transform: scale(1.025);
  z-index: 10;
}

.product-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.75s cubic-bezier(0.34, 1.2, 0.64, 1);
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
}

.product-card-wrap.is-flipped .product-card-inner {
  transform: rotateY(180deg);
}

/* Front & Back Faces */
.product-card-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(27, 37, 54, 0.96) 0%, rgba(18, 25, 36, 0.99) 100%);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 28px;
  padding: 24px 26px 28px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.45);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: visible;
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.product-card-wrap:hover .product-card-face {
  border-color: rgba(41, 121, 255, 0.35);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 30px rgba(41, 121, 255, 0.1);
}

.product-card-wrap.is-flipped .product-card-face {
  border-color: rgba(41, 121, 255, 0.4);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.6), 0 0 34px rgba(41, 121, 255, 0.14);
}

.product-card-front {
  z-index: 2;
  transform: rotateY(0deg);
}

.product-card-back {
  transform: rotateY(180deg);
  z-index: 1;
  background: linear-gradient(180deg, rgba(22, 31, 46, 0.98) 0%, rgba(14, 20, 29, 1) 100%);
  overflow: hidden; /* Card itself never grows — content area scrolls internally */
}

/* ---- Scrollable middle zone (between pinned header & pinned footer) ---- */
.card-back__scrollable {
  flex: 1 1 0%;       /* grows to fill space between header and footer */
  min-height: 0;      /* critical: allows flex child to shrink below content size */
  /* Explicit max-height so iOS Safari knows the scroll container has a boundary.
     The parent .product-card-back is position:absolute inset:0 with overflow:hidden,
     so the flex chain already constrains height — but making it explicit here
     forces WebKit to activate the native momentum scroller. */
  max-height: 100%;
  overflow-y: scroll;          /* 'scroll' (not 'auto') — required by iOS Safari to
                                  activate -webkit-overflow-scrolling: touch */
  overflow-x: hidden;
  overscroll-behavior-y: contain; /* Android Chrome: contain scroll inside card */
  -webkit-overflow-scrolling: touch; /* iOS Safari: enable momentum (inertia) scrolling */
  touch-action: pan-y pinch-zoom;   /* tell the browser only vertical pan is needed here */
  scroll-behavior: smooth;
  padding-right: 4px; /* breathing room for custom scrollbar */
  margin-right: -4px; /* counteract layout shift */

  /* Thin custom scrollbar that matches the dark design */
  scrollbar-width: thin;
  scrollbar-color: rgba(41, 121, 255, 0.35) transparent;
}
.card-back__scrollable::-webkit-scrollbar {
  width: 4px;
}
.card-back__scrollable::-webkit-scrollbar-track {
  background: transparent;
}
.card-back__scrollable::-webkit-scrollable::-webkit-scrollbar-thumb {
  background: rgba(41, 121, 255, 0.35);
  border-radius: 4px;
}
.card-back__scrollable::-webkit-scrollbar-thumb {
  background: rgba(41, 121, 255, 0.35);
  border-radius: 4px;
}
.card-back__scrollable::-webkit-scrollbar-thumb:hover {
  background: rgba(41, 121, 255, 0.6);
}

/* ========================================
   3. 3-IMAGE AUTOMATIC CAROUSEL
======================================== */
.product-card__image-wrap {
  margin-top: -65px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 5;
}

.product-carousel {
  position: relative;
  width: 220px;
  height: 220px;
  overflow: hidden;
  border-radius: 20px;
}

.product-carousel__track {
  position: relative;
  width: 100%;
  height: 100%;
}

.product-carousel__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.96);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), visibility 0.5s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-carousel__slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 2;
}

.product-carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 18px;
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.6));
  transition: transform 0.4s var(--ease), filter 0.4s var(--ease);
}

.product-card-wrap:hover .product-carousel__slide.is-active img {
  transform: scale(1.05) translateY(-4px);
  filter: drop-shadow(0 24px 38px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 14px rgba(41, 121, 255, 0.12));
}

/* Carousel Pagination Dots */
.product-carousel__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  z-index: 6;
}

.c-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.25s ease;
}

.c-dot:hover {
  background: rgba(255, 255, 255, 0.6);
  transform: scale(1.2);
}

.c-dot.is-active {
  width: 20px;
  border-radius: 4px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

/* ========================================
   4. CARD FRONT CONTENT
======================================== */
.product-card__body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-align: center;
  align-items: center;
  position: relative;
  z-index: 1;
}

.product-card__tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: rgba(41, 121, 255, 0.1);
  border: 1px solid rgba(41, 121, 255, 0.22);
  padding: 3px 12px;
  border-radius: var(--r-pill);
  margin-bottom: 10px;
  display: inline-block;
}

.product-card__title {
  font-size: 23px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  align-self: center;
  text-align: center;
}

.product-card__desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.55;
  min-height: calc(1.55em * 3);
  margin-bottom: 12px;
  max-width: 32ch;
  align-self: center;
  text-align: center;
  margin-inline: auto;
}

/* Compact customer rating chip — star, numeric score, review count */
.product-card__rating {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  gap: 5px;
  padding: 3px 11px;
  border-radius: var(--r-pill);
  background: rgba(41, 121, 255, 0.08);
  border: 1px solid rgba(41, 121, 255, 0.2);
  margin-bottom: 12px;
}

.product-card__rating-star {
  color: var(--accent);
  flex-shrink: 0;
}

.product-card__rating-value {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.product-card__rating-count {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1;
}

/* Small row of 3 product-specific animated icons, filling the space above the "Explore more" button */
.product-card__icons {
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 10px;
  margin: auto auto 10px;
  text-align: center;
}

.product-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: var(--accent);
  opacity: 0.78;
  filter: drop-shadow(0 0 5px rgba(41, 121, 255, 0.3));
  animation: productIconFloat 3.2s ease-in-out infinite;
}

.product-card__icon:nth-child(2) { animation-delay: 0.25s; }
.product-card__icon:nth-child(3) { animation-delay: 0.5s; }

@keyframes productIconFloat {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.68; }
  50% { transform: translateY(-4px) scale(1.1); opacity: 1; }
}

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

/* Front CTA Button ("Explore more »" triggers 3D flip) */
.product-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  margin-top: auto;
  position: relative;
  gap: 7px;
  padding: 10px 24px;
  border-radius: var(--r-pill);
  background: #ffffff;
  color: #0c1117;
  font-size: 13.5px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.28s var(--ease);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.product-card__cta .chevron {
  font-weight: 800;
  font-size: 15px;
  transition: transform 0.25s var(--ease);
  display: inline-block;
}

.product-card__cta:hover {
  background: var(--accent);
  color: var(--accent-contrast-text);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(41, 121, 255, 0.4);
}

.product-card__cta:hover .chevron {
  transform: translateX(4px);
}

/* ========================================
   5. CARD BACK CONTENT (DETAILS & ADD TO CART)
======================================== */
.card-back__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0; /* Always pinned — never pushed off screen */
  position: relative;
  z-index: 4; /* stays above the internally-scrolling content */
}

.card-back__return-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}

.card-back__return-btn:hover,
.card-back__return-btn:focus-visible {
  background: var(--accent);
  color: var(--accent-contrast-text);
}

.card-back__title {
  font-size: 21px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.2;
}

.card-back__desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
}

.card-back__reviews {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin-bottom: 16px;
  padding: 9px 11px;
  background: rgba(41, 121, 255, 0.07);
  border: 1px solid rgba(41, 121, 255, 0.16);
  border-radius: 12px;
}

.card-back__reviews-label {
  width: 100%;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-back__reviews-stars {
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 1px;
  line-height: 1;
}

.card-back__reviews-value {
  color: var(--text-primary);
  font-size: 12.5px;
  font-weight: 800;
}

.card-back__reviews-count {
  color: var(--text-muted);
  font-size: 11px;
}

.card-back__specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.card-back-spec {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 8px 12px;
}

.card-back-spec__label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 600;
}

.card-back-spec__val {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 2px;
}

.card-back__price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 0;  /* no longer uses auto since parent scrollable handles space */
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 12px;
  flex-shrink: 0; /* Pinned — never disappears into scroll overflow */
}

.card-back__price {
  font-size: 24px;
  font-weight: 800;
  color: var(--accent);
}

.card-back__stock {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 500;
}

.card-back__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
  flex-shrink: 0; /* Always visible — pinned at the bottom of the back face */
}

/* Add to Cart Button — slightly more compact so Buy Now sits neatly beside it */
.btn--add-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, #1d68e8 0%, #1047a9 100%);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s var(--ease);
  box-shadow: 0 4px 16px rgba(16, 71, 169, 0.3);
}

.btn--add-cart svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.btn--add-cart:hover {
  background: linear-gradient(135deg, #185acb 0%, #0d3b8f 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 71, 169, 0.45);
}

.btn--add-cart:hover svg {
  transform: scale(1.15);
}

.btn--add-cart.is-added {
  background: #2dd4bf;
  color: #042f2e;
}

/* Buy Now Button — pairs with Add to Cart as a matching button group */
.btn--buy-now {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text-primary);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s var(--ease);
}

.btn--buy-now:hover {
  background: linear-gradient(135deg, #1d68e8 0%, #1047a9 100%);
  border-color: #1d68e8;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 71, 169, 0.35);
}

@media (max-width: 380px) {
  .btn--add-cart,
  .btn--buy-now {
    padding: 9px 8px;
    font-size: 11.5px;
  }
}

/* ========================================
   6. CART DRAWER ITEMS & DYNAMIC UI
======================================== */
.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 12px 0;
}

.cart-item-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 14px;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 10px;
}

.cart-item-thumb {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  background: #151d28;
}

.cart-item-info h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.cart-item-info .price {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
}

.cart-qty-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-qty-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 13px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.cart-qty-btn:hover {
  background: var(--accent);
  color: var(--accent-contrast-text);
}

.cart-item-qty {
  font-size: 13px;
  font-weight: 600;
  min-width: 14px;
  text-align: center;
}

/* Cart added notification toast */
.cart-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--accent);
  border-radius: var(--r-pill);
  padding: 12px 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(41, 121, 255, 0.2);
  z-index: 1000;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.cart-toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.cart-toast svg {
  color: var(--accent);
  width: 18px;
  height: 18px;
}

/* ========================================
   7. FLAGSHIP PRODUCT SPOTLIGHT (FEATURED)
======================================== */
.spotlight-section {
  background: linear-gradient(180deg, #1c2636 0%, #232f42 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.spotlight-content .eyebrow {
  color: var(--accent);
}

.spotlight-content h2 {
  color: var(--text-primary);
}

.spotlight-content .lead {
  color: var(--text-secondary);
}

.spotlight-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.spotlight-media {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.spotlight-frame {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1/1;
  background: radial-gradient(circle at center, rgba(41, 121, 255, 0.08) 0%, transparent 70%);
  border-radius: 36px;
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spotlight-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 24px;
  filter: drop-shadow(0 24px 50px rgba(0, 0, 0, 0.65));
  transition: transform 0.5s var(--ease);
}

.spotlight-frame:hover img {
  transform: scale(1.05) rotate(-1deg);
}

.spotlight-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 28px 0 32px;
}

.spec-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px 16px;
}

.spec-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-bottom: 4px;
}

.spec-val {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

/* ========================================
   8. CRAFTSMANSHIP & MATERIAL PILLARS
======================================== */
.materials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.material-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 32px 26px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

.material-card:hover {
  transform: translateY(-5px);
  border-color: rgba(41, 121, 255, 0.3);
}

.material-card__num {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  display: block;
}

.material-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

/* Force reveal-animated content in these two sections to always render
   fully visible, regardless of whether the scroll-reveal JS has fired
   (fixes titles appearing invisible/blank on load or in static captures). */
.materials-grid .material-card.reveal,
.materials-grid .material-card.reveal * ,
.spotlight-content.reveal,
.spotlight-content.reveal * {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}

.material-card p {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ========================================
   9. BESPOKE & TRADE COMMISSIONS
======================================== */
.bespoke-box {
  background: linear-gradient(135deg, rgba(27, 37, 54, 0.8) 0%, rgba(16, 22, 32, 0.95) 100%);
  border: 1px solid rgba(41, 121, 255, 0.25);
  border-radius: 28px;
  padding: 48px 40px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.bespoke-box h3 {
  font-size: clamp(26px, 3.5vw, 38px);
  margin-bottom: 16px;
  line-height: 1.15;
}

.bespoke-box p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ========================================
   10. RESPONSIVE BREAKPOINTS
======================================== */
@media (max-width: 1080px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 48px 24px;
  }
  .spotlight-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .spotlight-frame {
    max-width: 380px;
    margin: 0 auto;
  }
  .bespoke-box {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 36px 28px;
  }
  .materials-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .product-grid {
    grid-template-columns: 1fr;
    max-width: 380px;
    margin-inline: auto;
  }
  .product-card-wrap {
    height: 460px;
    margin-top: 50px;
  }
  .product-carousel {
    width: 200px;
    height: 200px;
  }
  .spotlight-specs {
    grid-template-columns: 1fr;
  }
}