/* ==========================================================================
   NSA Signature — Product Experience Interface
   Inspired by Daraz & Alibaba shopping flow & hierarchy adapted to quiet luxury.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Master Two-Column / Mobile Responsive Grid
   -------------------------------------------------------------------------- */
.nsa-product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 5.5rem);
  max-width: 1440px;
  margin: 0 auto;
  padding: 3rem var(--nsa-gutter, 2rem) 6rem;
  align-items: start;
  box-sizing: border-box;
  position: relative;
}

/* --------------------------------------------------------------------------
   2. Single Semantic Header (Desktop column 2 / Mobile heading above gallery)
   -------------------------------------------------------------------------- */
.nsa-product-header {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
  width: 100%;
}

.nsa-product-brand-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.2rem;
}

.nsa-product-brand-link {
  font-family: var(--nsa-sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--nsa-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nsa-product-brand-link:hover {
  color: var(--nsa-text);
}

.nsa-product-brand-inline-logo {
  height: 38px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  filter: none !important;
}

/* Primary Product Title: exactly one H1 across mobile and desktop */
.nsa-product-title {
  font-family: var(--nsa-serif);
  font-size: clamp(2.3rem, 3.5vw, 3.8rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--nsa-text);
  margin: 0;
  word-break: break-word;
}

/* --------------------------------------------------------------------------
   3. Media Gallery Column (Left Column on Desktop)
   -------------------------------------------------------------------------- */
.nsa-product-media-col {
  grid-column: 1;
  grid-row: 1 / span 2;
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
  width: 100%;
}

.nsa-gallery-stage {
  position: relative;
  width: 100%;
  flex-shrink: 0;
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  overflow: hidden;
  background: var(--nsa-panel);
  border: 1px solid var(--nsa-line);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

html[data-theme="dark"] .nsa-gallery-stage {
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.35);
  background: var(--nsa-panel);
}

/* Gallery Track: Native smooth CSS snap scrolling */
.nsa-gallery-track {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nsa-gallery-track::-webkit-scrollbar {
  display: none;
}

/* Slides */
.nsa-gallery-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-sizing: border-box;
  position: relative;
}

/* Full preservation of packaging: never crop tube, bottle, cap or label */
.nsa-gallery-slide img {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  border-radius: 8px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.nsa-gallery-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--nsa-secondary);
  font: 3rem/1 var(--nsa-serif);
  letter-spacing: 0.1em;
}

/* --------------------------------------------------------------------------
   4. Optional First Product Video Slide
   -------------------------------------------------------------------------- */
.nsa-gallery-slide-video {
  padding: 0;
  background: #000;
}

.nsa-video-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0d0e10;
}

.nsa-product-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #000;
}

.nsa-video-play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.6rem;
  background: rgba(23, 24, 26, 0.82);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-family: var(--nsa-sans);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s ease;
}

.nsa-video-play-badge:hover,
.nsa-video-play-badge:focus-visible {
  transform: translate(-50%, -50%) scale(1.05);
  background: rgba(46, 38, 32, 0.95);
  border-color: rgba(232, 210, 176, 0.6);
  outline: none;
}

.nsa-video-play-badge.is-hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

/* --------------------------------------------------------------------------
   5. Gallery Controls: Counter, Navigation & Corner Badges
   -------------------------------------------------------------------------- */
/* Slide Counter Pill (Daraz / Alibaba pattern) */
.nsa-gallery-counter {
  position: absolute;
  bottom: 1.1rem;
  right: 1.1rem;
  z-index: 7;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(23, 24, 26, 0.75);
  color: #fff;
  font-family: var(--nsa-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  pointer-events: none;
}

/* Percentage Discount Tag */
.nsa-product-discount-tag {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  z-index: 7;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: #a3322a;
  color: #ffffff;
  font-family: var(--nsa-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 14px rgba(163, 50, 42, 0.3);
  text-transform: uppercase;
}

/* Transparent Brand Lockup in Dedicated Gallery Corner */
.nsa-gallery-brand-lockup {
  position: absolute;
  top: 1.1rem;
  left: 1.1rem;
  z-index: 7;
  display: inline-flex;
  align-items: center;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  pointer-events: auto;
}

.nsa-gallery-brand-lockup img {
  height: 40px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  filter: none !important;
  transition: opacity 0.2s ease;
}

.nsa-gallery-brand-lockup a:hover img {
  opacity: 0.85;
}

/* Desktop Next / Previous Arrows */
.nsa-gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 8;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--nsa-panel);
  color: var(--nsa-text);
  border: 1px solid var(--nsa-line);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, box-shadow 0.2s ease;
  padding: 0;
}

.nsa-gallery-nav-btn:hover {
  transform: translateY(-50%) scale(1.08);
  background: var(--nsa-panel-soft);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.nsa-gallery-nav-btn:focus-visible {
  outline: 2px solid var(--nsa-focus);
  outline-offset: 2px;
}

.nsa-gallery-prev {
  left: 0.85rem;
}

.nsa-gallery-next {
  right: 0.85rem;
}

/* Hide controls if only 1 slide */
.nsa-gallery-stage[data-single-slide="true"] .nsa-gallery-nav-btn,
.nsa-gallery-stage[data-single-slide="true"] .nsa-gallery-counter {
  display: none !important;
}

/* Thumbnail Navigation Rail */
.nsa-gallery-thumbs {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  overflow-x: auto;
  scrollbar-width: thin;
  padding-block: 0.25rem;
  margin: 0;
  list-style: none;
}

.nsa-gallery-thumbs::-webkit-scrollbar {
  height: 4px;
}

.nsa-gallery-thumbs::-webkit-scrollbar-thumb {
  background: var(--nsa-line);
  border-radius: 4px;
}

.nsa-thumb-btn {
  flex: 0 0 74px;
  width: 74px;
  height: 74px;
  border-radius: 12px;
  border: 2px solid var(--nsa-line);
  background: var(--nsa-panel);
  overflow: hidden;
  padding: 0.3rem;
  cursor: pointer;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.nsa-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.nsa-thumb-btn.is-active {
  border-color: var(--nsa-action);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.nsa-thumb-btn:focus-visible {
  outline: 2px solid var(--nsa-focus);
  outline-offset: 2px;
}

.nsa-thumb-video-icon {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  background: rgba(23, 24, 26, 0.85);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  padding-left: 1px;
}

/* Hide thumbs if single slide */
.nsa-product-media-col[data-single-slide="true"] .nsa-gallery-thumbs {
  display: none !important;
}

/* --------------------------------------------------------------------------
   6. Product Information Column (Right Column on Desktop)
   -------------------------------------------------------------------------- */
.nsa-product-info-col {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
  width: 100%;
}

/* Rating Summary Bar */
.nsa-product-rating-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
  margin-top: -0.25rem;
}

.nsa-rating-stars-visual {
  display: inline-flex;
  gap: 3px;
  color: #c59b27;
  font-size: 1.05rem;
  line-height: 1;
}

html[data-theme="dark"] .nsa-rating-stars-visual {
  color: #e5bf55;
}

.nsa-rating-avg {
  font-weight: 700;
  color: var(--nsa-text);
  font-family: var(--nsa-sans);
}

.nsa-rating-link {
  color: var(--nsa-secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.nsa-rating-link:hover {
  color: var(--nsa-text);
}

.nsa-rating-sep {
  color: var(--nsa-line);
}

.nsa-rating-write-link {
  color: var(--nsa-action);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px dotted currentColor;
  padding-bottom: 1px;
  transition: opacity 0.2s ease;
}

.nsa-rating-write-link:hover {
  opacity: 0.8;
}

/* --------------------------------------------------------------------------
   7. Pricing & Retailer Commercial Card (Daraz / Alibaba pattern)
   -------------------------------------------------------------------------- */
.nsa-pricing-card {
  background: var(--nsa-panel-soft);
  border: 1px solid var(--nsa-line);
  border-radius: 16px;
  padding: 1.35rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nsa-pricing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.nsa-price-headline {
  font-family: var(--nsa-serif);
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  font-style: italic;
  color: var(--nsa-text);
  margin: 0;
  line-height: 1.2;
}

.nsa-price-explainer {
  font-size: 0.82rem;
  color: var(--nsa-secondary);
  line-height: 1.5;
  margin: 0;
}

/* --------------------------------------------------------------------------
   8. Attributes / Options & Size Selection
   -------------------------------------------------------------------------- */
.nsa-options-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding-block: 0.25rem;
}

.nsa-option-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.nsa-option-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--nsa-text);
  min-width: 70px;
}

.nsa-option-chips {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.nsa-option-chip {
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  font-family: inherit;
  border: 1px solid var(--nsa-line);
  background: var(--nsa-panel);
  color: var(--nsa-text);
  cursor: pointer;
  transition: all 0.2s ease;
}

.nsa-option-chip:focus-visible {
  outline: 2px solid var(--nsa-focus);
  outline-offset: 2px;
}

.nsa-variant-status {
  color: var(--nsa-secondary);
  font-size: 0.82rem;
  margin: 0.5rem 0 0;
}

.nsa-option-chip.is-active {
  border-color: var(--nsa-action);
  background: var(--nsa-action);
  color: var(--nsa-on-action);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.nsa-sku-chip {
  font-size: 0.75rem;
  color: var(--nsa-secondary);
  font-family: monospace;
}

/* --------------------------------------------------------------------------
   9. Purchase & Cart Controls: Stepper, Add to Cart & Retailer Button
   -------------------------------------------------------------------------- */
.nsa-product-cart-zone {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.6rem;
  border-radius: 18px;
  background: var(--nsa-panel);
  border: 1px solid var(--nsa-line);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.nsa-stepper-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nsa-qty-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--nsa-text);
}

.nsa-qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--nsa-line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--nsa-panel-soft);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.04);
}

.nsa-qty-btn {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--nsa-text);
  font-size: 1.35rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.1s ease;
  padding: 0;
  user-select: none;
}

.nsa-qty-btn:hover {
  background: rgba(0, 0, 0, 0.06);
}

html[data-theme="dark"] .nsa-qty-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.nsa-qty-btn:active {
  transform: scale(0.92);
}

.nsa-qty-btn:focus-visible {
  outline: 2px solid var(--nsa-focus);
}

.nsa-qty-input {
  width: 54px !important;
  height: 44px;
  border: 0 !important;
  background: transparent !important;
  text-align: center;
  font-family: var(--nsa-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--nsa-text);
  padding: 0 !important;
  margin: 0 !important;
  -moz-appearance: textfield;
}

.nsa-qty-input::-webkit-outer-spin-button,
.nsa-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Actions Row: Add to Cart + Find a Retailer */
.nsa-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.nsa-add-cart-btn {
  width: 100%;
  min-height: 52px;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  background: var(--nsa-action) !important;
  color: var(--nsa-on-action) !important;
  border: 0;
  font-family: var(--nsa-sans);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, box-shadow 0.2s ease;
}

.nsa-add-cart-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.16);
}

.nsa-add-cart-btn:active {
  transform: translateY(0) scale(0.98);
}

.nsa-add-cart-btn.is-added {
  background: #2a5a3a !important;
  color: #ffffff !important;
}

.nsa-add-cart-btn:focus-visible {
  outline: 2px solid var(--nsa-focus);
  outline-offset: 2px;
}

.nsa-find-retailer-btn {
  width: 100%;
  min-height: 52px;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  background: transparent !important;
  color: var(--nsa-text) !important;
  border: 1.5px solid var(--nsa-line) !important;
  font-family: var(--nsa-sans);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-sizing: border-box;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, background-color 0.2s ease;
}

.nsa-find-retailer-btn:hover {
  transform: translateY(-2px);
  border-color: var(--nsa-action) !important;
  background: var(--nsa-panel-soft) !important;
}

.nsa-find-retailer-btn:active {
  transform: translateY(0) scale(0.98);
}

.nsa-find-retailer-btn:focus-visible {
  outline: 2px solid var(--nsa-focus);
  outline-offset: 2px;
}

.nsa-cart-help-note {
  font-size: 0.78rem;
  color: var(--nsa-secondary);
  line-height: 1.5;
  margin: 0;
  text-align: center;
}

/* Value Props / Assurance Bar */
.nsa-value-props {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  padding-block: 0.75rem;
  border-top: 1px solid var(--nsa-line);
  border-bottom: 1px solid var(--nsa-line);
}

.nsa-prop-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  text-align: center;
}

.nsa-prop-title {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--nsa-text);
  letter-spacing: 0.02em;
}

.nsa-prop-desc {
  font-size: 0.68rem;
  color: var(--nsa-secondary);
  line-height: 1.3;
}

/* --------------------------------------------------------------------------
   10. Structured Details Accordions
   -------------------------------------------------------------------------- */
.nsa-details-accordions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.nsa-accordion-card {
  border: 1px solid var(--nsa-line);
  border-radius: 14px;
  background: var(--nsa-panel);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nsa-accordion-card[open] {
  border-color: var(--nsa-border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.nsa-accordion-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.4rem;
  font-family: var(--nsa-sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--nsa-text);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.nsa-accordion-summary::-webkit-details-marker {
  display: none;
}

.nsa-accordion-summary::after {
  content: '';
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--nsa-secondary);
  border-bottom: 2px solid var(--nsa-secondary);
  transform: rotate(45deg);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  margin-left: 1rem;
}

.nsa-accordion-card[open] .nsa-accordion-summary::after {
  transform: rotate(-135deg);
}

.nsa-accordion-summary:focus-visible {
  outline: 2px solid var(--nsa-focus);
  outline-offset: -2px;
}

.nsa-accordion-body {
  padding: 0 1.4rem 1.3rem;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--nsa-secondary);
}

.nsa-accordion-body p {
  margin: 0 0 0.75rem;
}

.nsa-accordion-body p:last-child {
  margin-bottom: 0;
}

.nsa-packaging-note {
  font-size: 0.82rem;
  font-style: italic;
  color: var(--nsa-secondary);
  margin-top: 0.25rem;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   11. Interactive 5-Star Rating Form Component (Customer Reviews)
   -------------------------------------------------------------------------- */
/* Native radios retain form validation and keyboard support. */
.nsa-rating-field { border: 0; padding: 0; margin: 0 0 1.5rem; display: flex; flex-wrap: wrap; gap: .3rem; }
.nsa-rating-field legend { font-weight: 600; margin-bottom: .45rem; }
.nsa-rating-field .nsa-rating-choice { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0 !important; background: transparent !important; cursor: pointer; }
.nsa-rating-field .nsa-rating-choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.nsa-rating-field .nsa-rating-star { font-size: 1.75rem; color: #8c8176; line-height: 1; }
.nsa-rating-field .nsa-rating-choice:has(input:checked) .nsa-rating-star,
.nsa-rating-field .nsa-rating-choice:has(~ .nsa-rating-choice input:checked) .nsa-rating-star { color: #b48925; }
.nsa-rating-field .nsa-rating-choice:has(input:focus-visible) { outline: 2px solid var(--nsa-focus); outline-offset: 2px; border-radius: 6px; }

/* --------------------------------------------------------------------------
   12. Mobile Layout & Responsive Breakpoints
   -------------------------------------------------------------------------- */
/* Tablet Breakpoint (701px - 1024px) */
@media (max-width: 1024px) {
  .nsa-product-detail {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem var(--nsa-gutter, 1.5rem) 5rem;
  }

  .nsa-product-header {
    grid-column: 1;
    grid-row: 1;
    max-width: 680px;
    margin: 0 auto;
  }

  .nsa-product-media-col {
    grid-column: 1;
    grid-row: 2;
    position: static;
    max-width: 680px;
    margin: 0 auto;
  }

  .nsa-product-info-col {
    grid-column: 1;
    grid-row: 3;
    max-width: 680px;
    margin: 0 auto;
  }
}

/* Mobile: separate document-flow rows prevent title and controls overlapping. */
@media (max-width: 700px) {
  .nsa-product-detail { padding: 1.25rem 16px 4rem; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); }
  .nsa-product-header { grid-column: 1; grid-row: 1; padding: 0; background: none; }
  .nsa-product-header .nsa-product-brand-link { font-size: .72rem; }
  .nsa-product-header .nsa-product-title { font-size: clamp(1.8rem, 7vw, 2.4rem); line-height: 1.12; }
  .nsa-product-media-col { grid-column: 1; grid-row: 2; position: static; gap: .75rem; }
  .nsa-gallery-stage { aspect-ratio: 4 / 5; border: 0; border-radius: 20px; }
  .nsa-gallery-slide { padding: 0; }
  .nsa-gallery-slide img { width: 100%; height: 100%; border-radius: 20px; }
  .nsa-product-info-col { grid-column: 1; grid-row: 3; padding: 0; gap: 1.25rem; }
  .nsa-actions-row { grid-template-columns: 1fr; gap: .65rem; }
  .nsa-gallery-nav-btn { display: none; }
  .nsa-gallery-thumbs { padding: 4px; flex-shrink: 0; }
  .nsa-thumb-btn { flex: 0 0 60px; width: 60px; height: 60px; border-radius: 12px; }
  .nsa-product-cart-zone { padding: 1rem; }
  .nsa-value-props { grid-template-columns: 1fr; gap: .75rem; border: 0; }
  .nsa-prop-item { text-align: left; }
}

/* --------------------------------------------------------------------------
   13. Motion & Accessibility Safeguards
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
