/* ==========================================================================
   PRODUCT DETAIL PAGE (PDP) STYLES — MELLOW BRAND BOOK & DESIGN SYSTEM
   Source Base: Mellow_Brand_Book.md & tokens.css
   ========================================================================== */

/* ==========================================================================
   1. BREADCRUMB NAVIGATION
   ========================================================================== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-sm);
  color: var(--grey);
  flex-wrap: wrap;
  padding: clamp(24px, 3vw, 36px) clamp(20px, 3.5vw, 50px) 0;
  width: 100%;
}
@media (max-width: 600px) {
  .breadcrumb {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}
.breadcrumb a {
  color: var(--grey);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--dur) var(--ease);
}
.breadcrumb a:hover {
  color: var(--black);
}
.breadcrumb__sep {
  width: 12px;
  height: 12px;
  opacity: 0.45;
  color: var(--grey);
}
.breadcrumb .cur {
  color: var(--black);
  font-weight: 600;
}

/* ==========================================================================
   2. MAIN PRODUCT SHOWCASE (.pdp)
   ========================================================================== */
.pdp-wrap {
  width: 100%;
  padding: clamp(24px, 3.5vw, 44px) clamp(20px, 3.5vw, 50px) clamp(60px, 8vw, 100px);
}
.pdp {
  display: flex;
  gap: clamp(36px, 5.5vw, 76px);
  align-items: flex-start;
  padding-left: 0 !important;
  padding-right: 0 !important;
  width: 100%;
}
@media (max-width: 600px) {
  .pdp-wrap {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}

/* GALLERY (Left - Sticky Tracking) */
.pdp__gallery {
  flex: 1.15;
  min-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  align-self: flex-start;
}
.pdp__main {
  width: 100%;
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--white);
  position: relative;
  aspect-ratio: 1 / 1;
  max-height: 520px;
  border: 1px solid var(--grey-lt);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.04);
}
.pdp__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.45s var(--ease);
  display: block;
}
.pdp__main:hover img {
  transform: scale(1.03);
}

/* 4-THUMBNAIL CAROUSEL STRIP (BELOW MAIN IMAGE - FULL WIDTH) */
.pdp__thumbs-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}
.pdp__thumbs-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex: 1;
  width: 100%;
  padding: 4px 0;
}
.pdp__thumbs-track::-webkit-scrollbar {
  display: none;
}
.pdp__thumb {
  width: calc((100% - (4 * 12px)) / 5);
  max-width: none;
  min-width: 0;
  aspect-ratio: 1 / 1;
  border-radius: var(--r-sm);
  background: var(--white);
  overflow: hidden;
  border: 1.5px solid var(--grey-lt);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  position: relative;
  flex-shrink: 0;
}
.pdp__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform var(--dur) var(--ease);
}
.pdp__thumb:hover {
  border-color: rgba(242, 27, 35, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(242, 27, 35, 0.1);
}
.pdp__thumb.active {
  border-color: var(--red);
  border-width: 2px;
  box-shadow: 0 4px 14px rgba(242, 27, 35, 0.18);
}
.pdp__thumb-arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--grey-lt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--black);
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--dur) var(--ease);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}
.pdp__thumb-arrow svg {
  width: 12px;
  height: 12px;
  stroke-width: 2.2;
}
.pdp__thumb-arrow:hover {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
  transform: scale(1.05);
}
.pdp__thumb-arrow:disabled {
  opacity: 0.25;
  cursor: not-allowed;
  pointer-events: none;
}

/* AUTO-HIDE ARROWS & CENTER THUMBNAILS WHEN <= CAPACITY */
.pdp__thumbs-wrap.is-static {
  justify-content: center;
}
.pdp__thumbs-wrap.is-static .pdp__thumb-arrow {
  display: none !important;
}
.pdp__thumbs-wrap.is-static .pdp__thumbs-track {
  justify-content: center;
  flex: 0 1 auto;
  width: auto;
}
.pdp__thumbs-wrap.is-static .pdp__thumb {
  flex: 0 0 auto;
  width: 80px;
  height: 80px;
}
@media (max-width: 600px) {
  .pdp__thumbs-wrap.is-static .pdp__thumb {
    width: 68px;
    height: 68px;
  }
}

/* BUY BOX (Right) */
.pdp__buy {
  flex: 1;
  min-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.pdp__cat {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}
.pdp__title {
  font-size: clamp(2.2rem, 3.8vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 16px;
}
.pdp__title .red {
  color: var(--red);
}
.pdp__desc {
  font-size: var(--text-base);
  color: var(--grey);
  line-height: 1.68;
  margin-bottom: 28px;
  max-width: 540px;
}

/* 3 KEY FEATURE CALLOUTS */
.pdp__callouts {
  width: 100%;
  max-width: 540px;
  background: var(--off-white);
  border: 1px solid var(--grey-lt);
  border-radius: calc(var(--r-card) * 0.6);
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 32px;
}
.pdp__callout {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.pdp__callout-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--grey-lt);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--red);
  margin-top: 2px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}
.pdp__callout-icon svg {
  width: 13px;
  height: 13px;
  stroke-width: 2.2;
}
.pdp__callout strong {
  display: block;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--black);
  margin-bottom: 2px;
}
.pdp__callout span {
  font-size: 0.82rem;
  color: var(--grey);
  line-height: 1.48;
}

/* CTAs */
.pdp__actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  width: 100%;
}
.pdp__btn-main {
  width: auto;
  white-space: nowrap;
  justify-content: center;
  padding: 16px 28px;
  font-size: 0.98rem;
  border-radius: var(--r-btn);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.pdp__btn-sub {
  width: auto;
  white-space: nowrap;
  justify-content: center;
  padding: 15px 28px;
  font-size: 0.98rem;
  border-radius: var(--r-btn);
  font-weight: 600;
  letter-spacing: -0.01em;
}

@media (max-width: 960px) and (min-width: 601px) {
  .breadcrumb {
    padding-left: 50px !important;
    padding-right: 50px !important;
  }
  .pdp-wrap {
    padding-left: 50px !important;
    padding-right: 50px !important;
  }
  .reviews {
    padding-left: 50px !important;
    padding-right: 50px !important;
  }
}

@media (max-width: 960px) {
  .pdp {
    flex-direction: column;
    gap: 40px;
  }
  .pdp__gallery {
    flex-direction: column;
    width: 100%;
    position: static;
    gap: 14px;
  }
  .pdp__main {
    width: 100%;
    aspect-ratio: 1 / 1;
    min-height: 340px;
    max-height: 480px;
    order: 1;
  }
  .pdp__thumbs-wrap {
    order: 2;
    width: 100%;
    gap: 12px;
  }
  .pdp__thumbs-track {
    max-width: none;
    width: 100%;
    gap: 12px;
  }
  .pdp__thumb {
    width: calc((100% - (3 * 12px)) / 4);
    max-width: none;
  }
  .pdp__buy {
    width: 100%;
    max-width: 100%;
  }
  .pdp__desc {
    max-width: 100%;
  }
  .pdp__callouts {
    max-width: 100%;
  }
  .pdp__actions {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    width: 100%;
    margin: 0 auto;
  }
  .pdp__btn-main,
  .pdp__btn-sub {
    width: auto;
    white-space: nowrap;
    padding: 15px 24px;
  }
}

@media (max-width: 600px) {
  .pdp {
    gap: 28px;
  }
  .pdp__main {
    min-height: 260px;
    max-height: 420px;
  }
  .pdp__thumbs-wrap {
    gap: 8px;
  }
  .pdp__thumbs-track {
    max-width: none;
    width: 100%;
    gap: 8px;
  }
  .pdp__thumb {
    width: calc((100% - (2 * 8px)) / 3);
    max-width: none;
  }
  .pdp__thumb-arrow {
    width: 30px;
    height: 30px;
  }
  .pdp__actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  .pdp__btn-main,
  .pdp__btn-sub {
    width: 100%;
    white-space: normal;
    padding: 15px 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* ==========================================================================
   3. PRODUCT SPEC PILLARS (01–04 Editorial Blueprint - Enclosed Card)
   ========================================================================== */
.pdp-specs {
  margin-bottom: 0;
}
.pdp-specs .card-enclosed {
  background: var(--white) !important;
  border: none !important;
}
.pdp-specs .w-1500 {
  padding-left: 0 !important;
  padding-right: 0 !important;
  width: 100%;
}
.specs__head {
  text-align: left;
  max-width: 100%;
  width: 100%;
  margin: 0 0 48px 0;
}
.specs__head .eyebrow {
  margin-bottom: 8px;
}
.specs__title {
  font-size: var(--text-h1);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 700;
}
@media (max-width: 900px) {
  .specs__head {
    margin-bottom: 32px;
  }
  }
@media (max-width: 600px) {
  .specs__head {
    margin-bottom: 24px;
  }
  }

/* ==========================================================================
   4. YOU MAY ALSO LIKE (Enclosed Card)
   ========================================================================== */
.ymal-card {
  margin: 0 !important;
  padding: 20px !important;
  width: 100% !important;
}
.ymal-card .card-enclosed {
  padding: clamp(60px, 6vw, 90px) clamp(24px, 4vw, 50px);
}
.ymal-card__inner,
.ymal-card .w-1500 {
  width: 100%;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.ymal__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 36px;
  flex-wrap: wrap;
  gap: 16px;
}
.ymal__head .eyebrow {
  margin-bottom: 8px;
}
.ymal__title {
  font-size: var(--text-h1);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.ymal__title .red {
  color: var(--red);
}

.ymal__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 50px;
  width: 100%;
}
.ymal__grid .pcard {
  background: var(--white);
}

@media (max-width: 1024px) and (min-width: 601px) {
  .ymal__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }
  .ymal__grid .pcard:nth-child(4) {
    display: none;
  }
}
@media (max-width: 900px) {
  .ymal-card .card-enclosed {
    padding: 80px 30px !important;
  }
}
@media (max-width: 600px) {
  .ymal-card {
    padding: 10px !important;
  }
  .ymal-card .card-enclosed {
    padding: 40px 10px !important;
  }
  .ymal__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

/* ==========================================================================
   5. CUSTOMER REVIEWS
   ========================================================================== */
.reviews {
  padding: clamp(60px, 8vw, 120px) clamp(20px, 3.5vw, 50px);
  width: 100%;
}
.reviews__inner {
  padding-left: 0 !important;
  padding-right: 0 !important;
  width: 100%;
}
.reviews__head {
  margin-bottom: 36px;
}
.reviews__head .eyebrow {
  margin-bottom: 8px;
}
.reviews__title {
  font-size: var(--text-h1);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.reviews__title .red {
  color: var(--red);
}
.reviews__body {
  display: flex;
  gap: 50px;
  align-items: stretch;
}
.reviews__score {
  flex: 0 0 220px;
  background: var(--off-white);
  border: 1px solid var(--grey-lt);
  border-radius: var(--r-card);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.reviews__big {
  font-size: clamp(3.2rem, 5vw, 4.2rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--black);
  margin-bottom: 8px;
}
.reviews__stars {
  display: flex;
  gap: 4px;
  margin-bottom: 10px;
}
.reviews__stars svg {
  width: 18px;
  height: 18px;
  fill: var(--red);
  color: var(--red);
}
.reviews__count {
  font-size: var(--text-xs);
  color: var(--grey);
  font-weight: 600;
  line-height: 1.4;
}

.reviews__cards {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
}
.rcard {
  background: var(--off-white);
  border: 1px solid var(--grey-lt);
  border-radius: var(--r-card);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.rcard:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.12);
}
.rcard__stars {
  display: flex;
  gap: 3px;
  margin-bottom: 14px;
}
.rcard__stars svg {
  width: 15px;
  height: 15px;
  fill: var(--red);
  color: var(--red);
}
.rcard p {
  font-size: var(--text-sm);
  color: var(--black);
  line-height: 1.65;
  margin-bottom: 18px;
  font-style: italic;
}
.rcard__author-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--grey-lt);
}
.rcard__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--grey-lt);
  flex-shrink: 0;
}
.rcard__author-info {
  display: flex;
  flex-direction: column;
}
.rcard__name {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--black);
}
.rcard__loc {
  font-size: 0.8rem;
  color: var(--grey);
}

@media (max-width: 1024px) and (min-width: 601px) {
  .reviews__body {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    align-items: stretch;
  }
  .reviews__cards {
    display: contents;
  }
  .reviews__score {
    flex: auto;
    width: 100%;
    height: 100%;
    padding: 36px 30px;
    justify-content: center;
  }
  .rcard {
    height: 100%;
  }
}

@media (max-width: 600px) {
  .reviews {
    padding: 40px 20px !important;
  }
  .reviews__inner {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .reviews__body {
    flex-direction: column;
    gap: 10px;
  }
  .reviews__score {
    flex: auto;
    width: 100%;
    padding: 28px 20px;
  }
  .reviews__cards {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}






