/* ==================================================================
   Product Detail Page — v2 (B&H-inspired)
   Fully self-contained: no rules outside .pdp-v2 wrapper, no
   reliance on legacy classes. Neutral palette, green CTA, airy layout.
   ================================================================== */

.pdp-v2 {
  --pv2-text:        #1a1a1a;
  --pv2-text-muted:  #6b7280;
  --pv2-text-faint:  #9ca3af;
  --pv2-border:      #c9ced6;
  --pv2-bg-soft:     #f8f9fb;
  --pv2-accent:      #ff8f13;   /* brand orange CTA */
  --pv2-accent-hov:  #e67e00;
  --pv2-link:        #1a4db3;   /* calmer blue than legacy */
  --pv2-price:       #1a1a1a;
  --pv2-sale:        #c62828;

  max-width: 1350px;
  margin: 0 auto;
  padding: 16px 24px 48px;
  color: var(--pv2-text);
  font-size: 14px;
  line-height: 1.5;
  box-sizing: border-box;
  font-family: "Open Sans", "Segoe UI", Helvetica, Roboto, Arial, sans-serif;
}

.pdp-v2 *,
.pdp-v2 *::before,
.pdp-v2 *::after {
  box-sizing: border-box;
}

/* ── Breadcrumb ────────────────────────────────────────────── */
.pdp-v2-crumbs {
  font-size: 13px;
  color: var(--pv2-text-muted);
  margin: 0 0 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pdp-v2-crumbs a {
  color: var(--pv2-link);
  text-decoration: none;
}
.pdp-v2-crumbs a:hover { text-decoration: underline; }
.pdp-v2-crumbs-sep { color: var(--pv2-text-faint); }
/* Mobile: hide the product name (last crumb) and the trailing separator
   from the previous crumb to save vertical space. */
@media (max-width: 640px) {
  .pdp-v2-crumbs { font-size: 12px; margin-bottom: 8px; }
  .pdp-v2-crumbs > span:last-child { display: none; }
  .pdp-v2-crumbs > span:nth-last-child(2) .pdp-v2-crumbs-sep { display: none; }
}

/* ── Title row (full width) ────────────────────────────────── */
.pdp-v2-headline {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: start;
  margin-bottom: 6px;
}
.pdp-v2-title {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--pv2-text);
  margin: 0;
  letter-spacing: -0.3px;
}
.pdp-v2-brand-logo img {
  max-height: 44px;
  max-width: 120px;
  object-fit: contain;
}
/* On phones the brand logo crushes the title into 4-5 lines, and the brand
   name is already in the title + breadcrumb. Hide the decorative logo and
   let the title occupy the full width. */
@media (max-width: 600px) {
  .pdp-v2-headline {
    grid-template-columns: 1fr;
  }
  .pdp-v2-brand-logo {
    display: none;
  }
  .pdp-v2-title {
    font-size: 22px;
  }
}
.pdp-v2-brand-logo-fallback {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--pv2-text-faint);
  border: 1px solid var(--pv2-border);
  padding: 8px 12px;
  border-radius: 4px;
}

/* ── Meta row (SKU / MFR / share / print) ──────────────────── */
.pdp-v2-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  padding: 10px 0 18px;
  margin-bottom: 20px;
  font-size: 12.5px;
  color: var(--pv2-text-muted);
}
/* Phones: tighten the meta row — less vertical padding, tighter gaps. */
@media (max-width: 600px) {
  .pdp-v2-meta {
    gap: 6px 12px;
    padding: 4px 0 6px;
    margin-bottom: 6px;
    font-size: 12px;
  }
}
.pdp-v2-meta-sku { color: var(--pv2-text-faint); }
.pdp-v2-meta-sku strong { color: var(--pv2-text-muted); font-weight: 600; }
.pdp-v2-meta-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--pv2-text-muted);
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-size: 12.5px;
  font-weight: 600;
}
.pdp-v2-meta-action:hover { color: var(--pv2-text); }
.pdp-v2-meta-action svg { width: 14px; height: 14px; }

/* ── Main grid: gallery | buy box ─────────────────────────── */
.pdp-v2-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 960px) {
  .pdp-v2-main {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ── Gallery ──────────────────────────────────────────────── */
.pdp-v2-gallery {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  align-items: start;
}
/* On phones switch to a flex column so we can explicitly re-order the
   main image above the thumbnail strip. */
@media (max-width: 600px) {
  .pdp-v2-gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .pdp-v2-gallery .pdp-v2-main-image { order: 1; }
  .pdp-v2-gallery .pdp-v2-thumbs { order: 2; }
}
.pdp-v2-thumbs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
/* Mobile thumbnails: a single horizontal row that adapts to image count.
   - min-width: 44px keeps each thumb tappable / legible
   - max-width: 72px stops a lone thumb from looking absurd
   - overflow-x: auto only kicks in if there are too many to fit legibly */
@media (max-width: 600px) {
  .pdp-v2-thumbs {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .pdp-v2-thumbs::-webkit-scrollbar { display: none; }
}
.pdp-v2-thumb {
  width: 68px;
  height: 68px;
  border: 1.5px solid var(--pv2-border);
  border-radius: 4px;
  padding: 3px;
  background: #fff;
  cursor: pointer;
  display: block;
  overflow: hidden;
  transition: border-color 0.15s;
}
/* Mobile thumbs flex to share the row evenly up to a sensible max,
   and fall back to min-width + horizontal scroll for very image-heavy products. */
@media (max-width: 600px) {
  .pdp-v2-thumb {
    flex: 1 1 0;
    width: auto;
    height: auto;
    min-width: 44px;
    max-width: 72px;
    aspect-ratio: 1;
  }
}
.pdp-v2-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.pdp-v2-thumb:hover {
  border-color: var(--pv2-text-muted);
}
.pdp-v2-thumb.active {
  border-color: var(--pv2-text);
  border-width: 2px;
  padding: 2.5px;
}
.pdp-v2-main-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  /* No overflow:hidden — the zoom panel sits outside this box to the right. */
  position: relative;
}
.pdp-v2-main-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Zoom — only active when the image is high-res (class .hires) */
.pdp-v2-zoomable.hires { cursor: crosshair; }
.pdp-v2-zoomable.hires img { cursor: crosshair; }
.pdp-v2-zoom-lens {
  position: absolute;
  border: 1px solid rgba(0, 0, 0, 0.35);
  background: rgba(255, 255, 255, 0.25);
  pointer-events: none;
  box-shadow: 0 0 0 2000px rgba(0, 0, 0, 0.02);
}
.pdp-v2-zoom-panel {
  position: absolute;
  top: 0;
  left: calc(100% + 20px);
  background-repeat: no-repeat;
  background-color: #fff;
  border: 1px solid var(--pv2-border);
  border-radius: 6px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
  z-index: 50;
  pointer-events: none;
}
/* On narrow screens there's no room for a side panel — just hide it */
@media (max-width: 1100px) {
  .pdp-v2-zoom-panel { display: none; }
  .pdp-v2-zoom-lens { display: none; }
  .pdp-v2-zoomable.hires { cursor: default; }
  .pdp-v2-zoomable.hires img { cursor: default; }
}

/* ── Buy box (no card — flows on the page like B&H) ───────── */
.pdp-v2-buy {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.pdp-v2-stock {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--pv2-text);
}
.pdp-v2-stock-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--pv2-text);
}
.pdp-v2-stock-icon svg { width: 18px; height: 18px; }

.pdp-v2-price-block {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.pdp-v2-price {
  font-size: 32px;
  font-weight: 700;
  color: var(--pv2-price);
  line-height: 1;
}
.pdp-v2-price-before {
  font-size: 16px;
  color: var(--pv2-text-faint);
  text-decoration: line-through;
}
.pdp-v2-price-save {
  font-size: 13px;
  font-weight: 700;
  color: var(--pv2-sale);
}
/* Smart sale-ends row — shown when the sale ends within 14 days.
   Lays out a clock icon next to the label. Colour comes from the
   shared .sale-ends-{critical|soon|normal} modifier in components.css. */
.pdp-v2-sale-ends {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  margin-top: 2px;
  width: 100%;
}
.pdp-v2-sale-ends svg {
  flex-shrink: 0;
}

.pdp-v2-divider {
  height: 1px;
  background: var(--pv2-border);
  border: none;
  margin: 4px 0;
}

/* ── Product family / variant picker ── */
.pdp-v2-families {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 8px 0 4px;
}

.pdp-v2-family-label {
  font-size: 0.88rem;
  color: #555;
  margin-bottom: 6px;
}

.pdp-v2-family-label strong {
  color: #111;
}

.pdp-v2-family-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pdp-v2-family-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 14px;
  min-height: 36px;
  border: 2px solid #dcdcdc;
  border-radius: 4px;
  background: #fff;
  color: #333;
  font-size: 0.88rem;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.pdp-v2-family-option:hover {
  border-color: #888;
}

.pdp-v2-family-option.active {
  border-color: #333;
  box-shadow: 0 0 0 1px #333;
  font-weight: 600;
}

.pdp-v2-family-option.has-image {
  padding: 3px;
  width: 56px;
  height: 56px;
}

.pdp-v2-family-option.has-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pdp-v2-buy-row {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 10px;
  align-items: stretch;
}
/* Secondary icon button (Add to assembly) — square, matches the bookmark style from B&H */
.pdp-v2-icon-btn {
  background: #fff;
  color: var(--pv2-text-muted);
  border: 1px solid var(--pv2-border);
  border-radius: 6px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  min-width: 52px;
  height: 100%;
}
.pdp-v2-icon-btn:hover {
  border-color: var(--pv2-text);
  color: var(--pv2-text);
  background: var(--pv2-bg-soft);
}
.pdp-v2-icon-btn-glyph { width: 20px; height: 20px; }
.pdp-v2-icon-btn-chevron { width: 12px; height: 12px; opacity: 0.7; }
.pdp-v2-qty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--pv2-border);
  border-radius: 6px;
  padding: 0 8px;
  background: #fff;
}
.pdp-v2-qty-input {
  width: 32px;
  border: none;
  outline: none;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  padding: 10px 0;
  background: transparent;
  color: var(--pv2-text);
  -moz-appearance: textfield;
}
.pdp-v2-qty-input::-webkit-outer-spin-button,
.pdp-v2-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.pdp-v2-qty-btn {
  background: none;
  border: none;
  padding: 4px 2px;
  cursor: pointer;
  color: var(--pv2-text-muted);
  font-size: 14px;
}
.pdp-v2-qty-btn:hover { color: var(--pv2-text); }

.pdp-v2-cta {
  background: var(--pv2-accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.15s;
  letter-spacing: 0.2px;
}
.pdp-v2-cta:hover { background: var(--pv2-accent-hov); }
.pdp-v2-cta:disabled { opacity: 0.6; cursor: not-allowed; }
.pdp-v2-cta svg { width: 18px; height: 18px; }

/* Info rows (shipping / protection / used) */
.pdp-v2-info-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--pv2-border);
  font-size: 13.5px;
  color: var(--pv2-text);
  text-decoration: none;
}
.pdp-v2-info-row:last-of-type { border-bottom: none; }
.pdp-v2-info-row svg {
  width: 18px;
  height: 18px;
  color: var(--pv2-text-muted);
  flex-shrink: 0;
}
.pdp-v2-info-row strong { font-weight: 600; }
.pdp-v2-info-row-action {
  margin-left: auto;
  color: var(--pv2-link);
  font-weight: 600;
  font-size: 13px;
}
.pdp-v2-info-row:hover .pdp-v2-info-row-action { text-decoration: underline; }
/* Plain value (not a link) — neutral, no hover underline */
.pdp-v2-info-row-value {
  margin-left: auto;
  color: var(--pv2-text);
  font-weight: 500;
  font-size: 13px;
}

.pdp-v2-installments {
  font-size: 12.5px;
  color: var(--pv2-text-muted);
  line-height: 1.5;
}
.pdp-v2-installments a { color: var(--pv2-link); }

/* ── Key Specifications (inside the buy column) ──────────── */
.pdp-v2-key-specs {
  padding-top: 6px;
}
.pdp-v2-key-specs-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--pv2-text);
}
.pdp-v2-key-specs-list {
  list-style: disc;
  padding-left: 20px;
  margin: 0 0 10px;
}
.pdp-v2-key-specs-list li {
  margin-bottom: 5px;
  line-height: 1.5;
}
.pdp-v2-show-more {
  background: none;
  border: none;
  color: var(--pv2-link);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}
.pdp-v2-show-more:hover { text-decoration: underline; }
.pdp-v2-mfr-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  color: var(--pv2-link);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
}
.pdp-v2-mfr-link:hover { text-decoration: underline; }
.pdp-v2-mfr-link svg { width: 14px; height: 14px; }

/* ── Tabs / description ─────────────────────────────────── */
.pdp-v2-sections {
  margin-top: 32px;
}
.pdp-v2-section {
  padding: 20px 0;
  border-top: 1px solid var(--pv2-border);
}
.pdp-v2-section-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 12px;
}
.pdp-v2-section-body {
  font-size: 14px;
  line-height: 1.6;
  color: var(--pv2-text);
}
.pdp-v2-section-body h2 {
  font-size: 15px;
  font-weight: 700;
  margin: 16px 0 8px;
}
.pdp-v2-section-body dl {
  display: grid;
  grid-template-columns: minmax(160px, 240px) 1fr;
  gap: 2px 20px;
  margin: 0 0 12px;
}
.pdp-v2-section-body dd {
  margin: 0;
  padding: 8px 0;
  color: var(--pv2-text-muted);
  font-size: 13px;
  border-bottom: 1px solid var(--pv2-border);
}
.pdp-v2-section-body dt {
  margin: 0;
  padding: 8px 0;
  font-weight: 500;
  border-bottom: 1px solid var(--pv2-border);
}

/* Others Looked At — horizontal carousel */
.pdp-v2-olp {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--pv2-border);
}
.pdp-v2-olp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.pdp-v2-olp-nav {
  display: flex;
  gap: 8px;
}
.pdp-v2-olp-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--pv2-border);
  background: #fff;
  color: var(--pv2-text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.pdp-v2-olp-arrow svg { width: 16px; height: 16px; }
.pdp-v2-olp-arrow:hover:not(:disabled) {
  border-color: var(--pv2-text);
  background: var(--pv2-bg-soft);
}
.pdp-v2-olp-arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.pdp-v2-olp-scroller {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  padding-bottom: 10px;
  scroll-behavior: smooth;
}
.pdp-v2-olp-card {
  flex: 0 0 210px;
  max-width: 210px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--pv2-border);
  border-radius: 6px;
  text-decoration: none;
  color: var(--pv2-text);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.pdp-v2-olp-card:hover {
  border-color: #9ca3af;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.pdp-v2-olp-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}
.pdp-v2-olp-image img {
  max-width: 92%;
  max-height: 92%;
  object-fit: contain;
}
.pdp-v2-olp-name {
  font-size: 13px;
  line-height: 1.35;
  color: var(--pv2-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}
.pdp-v2-olp-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.pdp-v2-olp-price {
  font-weight: 700;
  font-size: 15px;
  color: var(--pv2-text);
}
.pdp-v2-olp-before {
  font-size: 12px;
  color: var(--pv2-text-faint);
  text-decoration: line-through;
}

/* Recommended Accessories (B&H-style grid) */
.pdp-v2-accessories-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.pdp-v2-accessories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 960px) { .pdp-v2-accessories-grid { grid-template-columns: repeat(3, 1fr); } }

/* Mobile: switch the grid to a horizontal swipe carousel.
   Fixes two problems in one change:
     1. The 2-col grid was forcing horizontal page overflow on small screens
        (long product names couldn't shrink, sticky buy bar inherited the
        wider layout). With a carousel, the card row has its own scroll
        container and the page width is preserved.
     2. Browsing accessories one-handed feels native — swipe instead of
        scroll-and-tap.
   Pattern: edge-to-edge container (negative margins extend beyond the page
   container's padding) so swipe targets reach the screen edges, with snap
   points so cards stop at clean positions. */
@media (max-width: 640px) {
  .pdp-v2-accessories-grid {
    display: flex;
    grid-template-columns: none;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    /* Hide the scrollbar (it's a swipe interface) */
    scrollbar-width: none;
    /* Edge-to-edge: extend beyond parent padding so first/last card touch screen edges */
    margin-left: calc(-1 * var(--sp-4, 16px));
    margin-right: calc(-1 * var(--sp-4, 16px));
    padding-left: var(--sp-4, 16px);
    padding-right: var(--sp-4, 16px);
    padding-bottom: 4px;
  }
  .pdp-v2-accessories-grid::-webkit-scrollbar { display: none; }
}
.pdp-v2-accessory {
  display: flex;
  flex-direction: row;
  gap: 10px;
  padding: 10px;
  background: #fff;
  border-radius: 4px;
  /* min-width: 0 lets flex children shrink properly, preventing long product
     names from forcing the card (and the page) wider than the viewport */
  min-width: 0;
}
@media (max-width: 640px) {
  .pdp-v2-accessory {
    /* Fixed card width with a snap point. ~75% of typical phone width
       leaves the next card peeking — visual cue that the row is swipeable. */
    flex: 0 0 240px;
    scroll-snap-align: start;
  }
}
.pdp-v2-accessory-image {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.pdp-v2-accessory-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.pdp-v2-accessory-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pdp-v2-accessory-name {
  font-size: 13px;
  line-height: 1.35;
  color: var(--pv2-text);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
  /* Break long unbreakable product codes (e.g. "Core i9-14900KS") so they
     can't force the card wider than its allotted column / flex basis */
  overflow-wrap: anywhere;
  word-break: break-word;
}
.pdp-v2-accessory-name:hover { color: var(--pv2-link); }
.pdp-v2-accessory-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--pv2-text);
}
.pdp-v2-accessory-save {
  font-size: 12px;
  font-weight: 600;
  color: var(--pv2-accent);
}
.pdp-v2-accessory-add {
  margin-top: 8px;
  background: #fff;
  color: var(--pv2-accent);
  border: 1px solid var(--pv2-accent);
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  align-self: flex-start;
  transition: background 0.15s, color 0.15s;
}
.pdp-v2-accessory-add:hover {
  background: var(--pv2-accent);
  color: #fff;
}

/* Collapsible section with fade-out gradient at the bottom */
.pdp-v2-collapsible {
  position: relative;
  max-height: 320px;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.pdp-v2-collapsible-tall { max-height: 480px; }
.pdp-v2-collapsible.expanded {
  max-height: none;
}
.pdp-v2-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 90%);
}
.pdp-v2-collapse-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  background: none;
  border: none;
  color: var(--pv2-link);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}
.pdp-v2-collapse-toggle:hover { text-decoration: underline; }
.pdp-v2-collapse-toggle::after {
  content: '';
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-left: 2px;
  margin-top: -3px;
  transition: transform 0.2s;
}
.pdp-v2-collapsible.expanded + .pdp-v2-collapse-toggle::after {
  transform: rotate(-135deg);
  margin-top: 2px;
}

/* ── Sticky buy bar ──────────────────────────────────────── */
.pdp-v2-sticky {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--pv2-bg-soft);
  border-top: 1px solid var(--pv2-border);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(100%);
  transition: transform 0.25s ease;
  z-index: 900;
  pointer-events: none;
}
.pdp-v2-sticky.visible {
  transform: translateY(0);
  pointer-events: auto;
}
.pdp-v2-sticky-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 24px;
  max-width: 1350px;
  margin: 0 auto;
}
.pdp-v2-sticky-thumb {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex-shrink: 0;
  background: #fff;
  border-radius: 4px;
  border: 1px solid var(--pv2-border);
}
.pdp-v2-sticky-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pdp-v2-sticky-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--pv2-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pdp-v2-sticky-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--pv2-text);
}
.pdp-v2-sticky-cta {
  flex-shrink: 0;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 700;
  background: var(--pv2-accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.pdp-v2-sticky-cta:hover { background: var(--pv2-accent-hov); }
.pdp-v2-sticky-cta:disabled { opacity: 0.6; cursor: not-allowed; }
@media (max-width: 640px) {
  .pdp-v2-sticky-thumb { width: 44px; height: 44px; }
  .pdp-v2-sticky-name { font-size: 13px; }
  .pdp-v2-sticky-price { font-size: 17px; }
  .pdp-v2-sticky-cta { padding: 12px 20px; font-size: 14px; }
}
