/* ===========================
   PDP – Base layout
=========================== */

.pdp-page .card {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  border: none;
}

.pdp-page .card__body {
  padding: 0;
}

.pdp-page .card__media {
  background: transparent;
  border-bottom: none;
  aspect-ratio: auto;
}

/* ===========================
   Header (title / stars / SKU / price)
=========================== */

.pdp-header {
  margin-bottom: 10px;
}

.pdp-header h1 {
  margin: 0 0 3px;
  font-size: clamp(24px, 4vw, 30px);
  line-height: 1.2;
}

.pdp-header__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  font-size: 0.85rem;
}

.pdp-header__stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.pdp-header__stars svg {
  width: 14px;
  height: 14px;
}

.pdp-header__reviews a {
  color: #1464d2;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pdp-header__sku {
  color: #6b7280;
}

.pdp-price-row {
  margin: 8px 0 0;
}

.pdp-price {
  font-weight: 800;
  font-size: 1.25rem;
  color: #111827;
}

.pdp-price-note {
  font-size: 0.8rem;
  color: #6b7280;
  margin-top: 2px;
}

/* ===========================
   Top layout (image + right column)
=========================== */

.pdp-top {
  row-gap: 24px;
}

.pdp-gallery-main img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.pdp-main {
  display: flex;
}

.pdp-main .card__body {
  width: 100%;
}

@media (min-width: 960px) {
  .pdp-top {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

/* ===========================
   Free shipping pill + trust band
=========================== */

/* keep margin only on the top pill */
.pdp-free-ship {
  margin: 8px 0 14px;
}

/* shared box style */
.pdp-free-ship,
.pdp-trust-band__item {
  padding: 10px 12px;
  border-radius: 0.9rem;
  background: #ecfdf3;
  border: 1px solid #bbf7d0;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.86rem;
}

/* shared icon style */
.pdp-free-ship__icon,
.pdp-trust-band__icon {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #ffffff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.pdp-free-ship__icon svg,
.pdp-trust-band__icon svg {
  width: 15px;
  height: 15px;
  color: #16a34a;
}

.pdp-free-ship strong,
.pdp-trust-band strong {
  display: block;
  font-weight: 800;
  color: #065f46;
}

.pdp-free-ship a {
  color: #15803d;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ===========================
   Buy CTA + Stripe note
=========================== */

.pdp-cta {
  margin-top: 8px;
   margin-bottom: 8px;
}

.pdp-cta .btn--primary {
  background: #111111;
  border-color: #111111;
  color: #ffffff;
  width: 100%;
  min-height: 48px;
  font-size: 4rem;
}

.pdp-cta .btn--primary:hover {
  filter: brightness(1.06);
}

.pdp-cta .btn--primary:active {
  filter: brightness(0.98);
}

.pdp-paynote {
  margin-top: 8px;
  font-size: 0.8rem;
  color: #4b5563;
}

/* ============================
   PDP Countdown
============================= */


.pdp-cutoff {
  margin-top: 8px;
  font-size: 0.8rem;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 100%;
  overflow-x: hidden;
}

.pdp-cutoff__timer {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
}

.pdp-cutoff__group {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  text-align: center;
}

/* Vertical dividers only between columns (no outer borders) */
.pdp-cutoff__group + .pdp-cutoff__group {
  border-left: 1px solid #e5e7eb;
  margin-left: 6px;
  padding-left: 6px;
}

.pdp-cutoff__num {
  font-weight: 600;
  font-size: 0.85rem;
  line-height: 1.1;
}

.pdp-cutoff__unit {
  font-size: 0.7rem;
  line-height: 1;
  color: #6b7280;
  margin-top: 2px;
}

.pdp-cutoff__label {
  font-size: 0.8rem;
  white-space: nowrap;
}

/* Small-screen polish */
@media (max-width: 480px) {
  .pdp-cutoff {
    gap: 8px;
  }

  .pdp-cutoff__num {
    font-size: 0.8rem;
  }

  .pdp-cutoff__label {
    font-size: 0.78rem;
  }
}

/* ===========================
   Summary bullets
=========================== */

.pdp-summary {
  margin-top: 14px;
  color: #374151;
  font-size: 0.9rem;
}

.pdp-summary ul {
  margin: 10px 0 0;
  padding-left: 18px;
}

.pdp-summary li {
  margin: 4px 0;
}

/* ===========================
   Details & specs
=========================== */

.pdp-details {
  margin-top: 32px;
}

.pdp-details-grid {
  display: grid;
  gap: 24px;
}

.pdp-details h2 {
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
}

.pdp-details ul {
  margin: 0;
  padding-left: 18px;
}

.pdp-details li {
  margin: 4px 0;
  font-size: 0.9rem;
}

@media (min-width: 820px) {
  .pdp-details-grid {
    grid-template-columns: 1.2fr 1fr;
  }
}



/* ===========================
   Reviews
=========================== */

.pdp-reviews {
  margin-top: 40px;
}

.pdp-reviews h2 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.review-card {
  border-top: 1px solid #e5e7eb;
  padding: 16px 0;
  display: grid;
  gap: 10px;
}

.review-card__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}

.review-card__stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.review-card__stars svg {
  width: 14px;
  height: 14px;
}

.review-card__title {
  font-weight: 700;
  font-size: 0.95rem;
}

.review-card__meta {
  font-size: 0.8rem;
  color: #6b7280;
}

.review-card__meta--bottom {
  margin-top: 4px;
}

.review-card__body {
  white-space: pre-wrap;
  font-size: 0.9rem;
  color: #111827;
}

.review-card__image {
  margin-top: 8px;
  max-width: 320px;
}

/* ===========================
   FAQ
=========================== */

.pdp-faq {
  margin-top: 40px;
}

.pdp-faq h2 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.faq-item {
  border-top: 1px solid #e5e7eb;
  padding: 12px 0;
}

.faq-question {
  font-weight: 700;
  font-size: 0.95rem;
}

.faq-answer {
  margin-top: 4px;
  font-size: 0.9rem;
  color: #374151;
}

/* ===========================
   Small-screen polish
=========================== */

@media (max-width: 720px) {
  .pdp-cta .btn--primary {
    font-size: 0.98rem;
    min-height: 50px;
  }

  .pdp-cutoff {
    align-items: flex-start;
  }
}


/* === PDP gallery carousel === */

.pdp-gallery-main {
  position: relative;
  overflow: hidden;
}

.pdp-gallery__img {
  display: none;
  width: 100%;
  height: auto;
}

.pdp-gallery__img.is-active {
  display: block;
}

.pdp-gallery__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pdp-gallery__arrow--prev {
  left: 0.5rem;
}

.pdp-gallery__arrow--next {
  right: 0.5rem;
}

.pdp-gallery__dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.pdp-gallery__dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
}

.pdp-gallery__dot.is-active {
  background: #fff;
}


/* MAIN PDP IMAGE – works with your real iPhone ratio */
.pdp-gallery-main {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
}

.pdp-gallery-main img {
  width: 100%;
  height: auto;       /* No cropping */
  display: block;
  object-fit: contain; /* Full image always shown */
}

/* MOBILE (default) — image fills width beautifully */
@media (max-width: 899px) {
  .pdp-gallery-main img {
    max-height: 75vh; /* prevents it from being too tall on smaller phones */
  }
}

/* DESKTOP — cap size so it doesn't get huge or show imperfections */
@media (min-width: 900px) {
  .pdp-gallery-main {
    max-width: 480px;   /* sweet spot */
    margin: 0 auto;
  }

  .pdp-gallery-main img {
    max-height: 520px;  /* not too big, not too small */
    width: auto;
    margin: 0 auto;
    object-fit: contain;
  }
}

/* THUMBNAILS – unchanged (just better fit with natural image size) */
.pdp-gallery-thumbs {
  margin-top: 0.75rem;
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.pdp-thumb {
  border: none;
  padding: 0;
  background: transparent;
  cursor: pointer;
  flex: 0 0 72px;
  border-radius: 12px;
  overflow: hidden;
  opacity: 0.6;
}

.pdp-thumb img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.pdp-thumb.is-active {
  opacity: 1;
  outline: 2px solid var(--blue, #3f7dd9);
  outline-offset: 2px;
}

/* PDP GALLERY LAYOUT FIX
   Compress space between main image and thumbnails
--------------------------------------------------*/

/* Make the gallery card a simple vertical stack */
.card.pdp-gallery {
  display: flex;
  flex-direction: column;
}

/* Kill any leftover aspect-ratio / fixed height on the media container */
.card__media.pdp-gallery-main,
.pdp-gallery-main {
  aspect-ratio: auto !important;
  height: auto !important;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  margin: 0;              /* removes extra white space */
}

/* Main image sizing: full width on mobile, capped on desktop */
.pdp-gallery-main img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Thumbs: small, tight gap under hero */
.pdp-gallery-thumbs {
  margin-top: 0.75rem;    /* adjust smaller/larger if you want */
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.pdp-thumb {
  border: none;
  padding: 0;
  background: transparent;
  cursor: pointer;
  flex: 0 0 72px;
  border-radius: 12px;
  overflow: hidden;
  opacity: 0.6;
}

.pdp-thumb img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.pdp-thumb.is-active {
  opacity: 1;
  outline: 2px solid var(--blue, #3f7dd9);
  outline-offset: 2px;
}


.pdp-price-block {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.5rem 0 1rem;
}

.pdp-price--sale {
  font-size: 2rem;
  font-weight: 700;
  color: #c62828; /* red like Evo */
}

.pdp-price--was {
  font-size: 1rem;
  color: #6b7280; /* gray */
  text-decoration: line-through;
  margin-left: 0.25rem;
}

.pdp-price--badge {
  background: #c62828;
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.pdp-price--regular {
  font-size: 2rem;
  font-weight: 700;
}


/* ===========================
   Spacing fixes (Countdown + Trust band)
=========================== */

/* Give the countdown some breathing room before the first trust card */
.pdp-cutoff {
  margin-bottom: 12px; /* was effectively 0 */
}

/* Trust band: add vertical spacing between each card */
.pdp-trust-band {
  display: grid;
  gap: 12px; /* space between Ships Today / Easy Returns / Built by Skiers */
}

/* Extra safety: if anything forces flex/other layout, still space items */
.pdp-trust-band__item + .pdp-trust-band__item {
  margin-top: 0; /* handled by gap above */
}

/* Optional: slightly reduce padding on small screens if it feels tall */
@media (max-width: 480px) {
  .pdp-trust-band {
    gap: 10px;
  }
  .pdp-cutoff {
    margin-bottom: 10px;
  }
}
