/* ====================================================================
   styles-v2.css — Homepage v2 additive styles
   Loaded after styles.css. Do not move or duplicate v1 rules here.
   Tasks add: carousel, as-seen-in ribbon, mid-page badge cluster,
   add-ons cards, NYT feature card, premium add-to-cart card,
   inches/cm toggle.
   ==================================================================== */

/* ---------- Carousel base ---------- */
.cab-carousel { position: relative; }
.cab-slide { opacity: 0; visibility: hidden; transition: opacity 400ms ease; }
.cab-slide.is-active { opacity: 1; visibility: visible; }
.cab-stack > .cab-slide { position: absolute; inset: 0; }
.cab-stack { position: relative; }

.cab-controls { display: flex; align-items: center; gap: 12px; }
.cab-indicator {
  width: 10px; height: 10px; border-radius: 999px;
  background: rgba(255,255,255,0.4); border: none; padding: 0; cursor: pointer;
  transition: background 200ms, transform 200ms;
}
.cab-indicator.is-active { background: #2FA5D7; transform: scale(1.2); }
.cab-indicator--dark { background: rgba(0,0,0,0.2); }
.cab-indicator--dark.is-active { background: #2FA5D7; }

.cab-prev, .cab-next {
  width: 44px; height: 44px; border-radius: 999px; border: none; cursor: pointer;
  background: rgba(255,255,255,0.15); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 200ms;
}
.cab-prev:hover, .cab-next:hover { background: rgba(255,255,255,0.3); }
.cab-prev:focus-visible, .cab-next:focus-visible { outline: 2px solid #2FA5D7; outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .cab-slide { transition: none; }
}

/* ---------- Hero carousel ---------- */
#hero-carousel .cab-slide-content { display: flex; align-items: flex-start; }
#hero-carousel .cab-slide-content.is-active { animation: cab-fade-up 600ms ease both; }
@keyframes cab-fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
#hero-carousel .cab-prev, #hero-carousel .cab-next { background: rgba(255,255,255,0.18); }
@media (prefers-reduced-motion: reduce) {
  #hero-carousel .cab-slide-content.is-active { animation: none; }
}

/* ---------- As-Seen-In ribbon ---------- */
.press-ribbon {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(8, 1fr);
  gap: 32px; align-items: center; justify-items: center;
}
.press-ribbon li {
  display: flex; align-items: center; justify-content: center;
  height: 40px; width: 100%; max-width: 140px;
}
.press-logo-img {
  max-height: 100%; max-width: 100%;
  width: auto; height: auto;
  object-fit: contain; display: block;
  filter: grayscale(100%) brightness(0.4);
  opacity: 0.6;
  transition: opacity 200ms, filter 200ms;
}
.press-logo-img:hover { opacity: 1; filter: grayscale(0%) brightness(1); }
@media (max-width: 1280px) {
  .press-ribbon { grid-template-columns: repeat(4, 1fr); row-gap: 32px; }
  .press-ribbon li { height: 44px; max-width: 160px; }
}
@media (max-width: 640px) {
  .press-ribbon { grid-template-columns: repeat(2, 1fr); row-gap: 28px; gap: 20px; }
  .press-ribbon li { height: 36px; max-width: 130px; }
}

/* ---------- Path Finder v2 ---------- */
.cab-cost-banner {
  display: inline-flex; align-items: center; gap: 10px;
  background: #ECF7EE; color: #135E2C;
  padding: 12px 20px; border-radius: 999px;
  font-size: 15px;
  border: 1px solid #C7E5CE;
  box-shadow: 0 4px 14px rgba(22,159,77,0.08);
  margin-left: auto; margin-right: auto;
  display: flex; justify-content: center; max-width: max-content;
}
.cab-cost-banner strong { color: #169F4D; font-weight: 900; }

.path-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; box-shadow: 0 8px 30px rgba(0,0,0,0.08); transition: transform 300ms, box-shadow 300ms; position: relative; background: #fff; }
.path-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.14); }
.path-card-art { position: relative; height: 240px; overflow: hidden; background: #f1f5f9; }
.path-card-art > img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 600ms ease; }
.path-card:hover .path-card-art > img { transform: scale(1.04); }
.path-card-svg { display: block; }
.path-card-badge {
  position: absolute; bottom: 14px; left: 14px;
  font-family: 'Roboto', sans-serif; font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 6px 11px; border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  z-index: 2;
}
.path-card-badge--diy { background: #2FA5D7; color: #fff; }
.path-card-badge--exp { background: #169F4D; color: #fff; }
.path-card-badge--pro { background: #FFB74A; color: #161616; }
.path-card-body { padding: 26px 28px 28px; background: #fff; flex: 1; display: flex; flex-direction: column; }
.path-card-body--dark { background: #161616; color: #fff; }
.path-card-list { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 8px; }
.path-card-list li {
  display: flex; gap: 9px; font-size: 13.5px; line-height: 1.45; color: #272727;
}
.path-card-list li::before {
  content: ""; flex-shrink: 0; width: 16px; height: 16px; margin-top: 2px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23169F4D' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-repeat: no-repeat; background-size: contain;
}
.path-card-list--dark li { color: #fff; }
.path-card-list--dark li::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23FFB74A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
}
.path-card-cta {
  margin-top: auto;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 18px;
  border-radius: 10px;
  font-family: 'Roboto Slab', serif; font-weight: 700;
  font-size: 14px;
  transition: background 200ms, color 200ms, transform 200ms;
}
.path-card-cta--outline { background: #fff; color: #2FA5D7; border: 2px solid #2FA5D7; }
.path-card-cta--outline:hover { background: #2FA5D7; color: #fff; }
.path-card-cta--solid { background: #2FA5D7; color: #fff; }
.path-card-cta--solid:hover { background: #2590bd; }
.path-card-cta--gold { background: #FFB74A; color: #161616; }
.path-card-cta--gold:hover { background: #ffaa30; }

/* Featured (middle) card */
.path-card--featured {
  box-shadow: 0 18px 44px rgba(47,165,215,0.18);
  outline: 2px solid rgba(47,165,215,0.45);
  outline-offset: -2px;
}
.path-card-ribbon {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  background: #FFB74A; color: #161616;
  font-family: 'Roboto Slab', serif; font-weight: 900;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px; z-index: 3;
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}
@media (min-width: 900px) {
  .path-card--featured { transform: translateY(-8px); }
  .path-card--featured:hover { transform: translateY(-12px); }
}

@media (max-width: 768px) {
  .path-card-art { height: 200px; }
  .path-card-svg { width: 130px; height: 130px; }
  .path-card-body { padding: 22px 22px 24px; }
}

/* ---------- Path Finder supporting tagline ---------- */
.path-finder-tagline {
  color: #5b6470; font-size: 15px; line-height: 1.5;
  margin: 0 0 18px;
  max-width: 480px; margin-left: auto; margin-right: auto;
  font-family: 'Roboto', sans-serif;
}
.path-finder-tagline strong {
  color: #169F4D; font-family: 'Roboto Slab', serif; font-weight: 900;
}

/* ---------- Quiz CTA pill (path-finder header) ---------- */
.quiz-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: #272727;
  padding: 10px 16px;
  border-radius: 999px;
  border: 2px solid rgba(47,165,215,0.35);
  font-family: 'Roboto', sans-serif; font-weight: 500;
  font-size: 14px; text-decoration: none;
  transition: all 200ms ease;
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}
.quiz-pill:hover {
  border-color: #2FA5D7;
  color: #2FA5D7;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(47,165,215,0.18);
}
.quiz-pill strong { font-family: 'Roboto Slab', serif; font-weight: 700; color: #161616; }
.quiz-pill:hover strong { color: #2FA5D7; }
.quiz-pill svg { color: #2FA5D7; }

/* ---------- Mid-page trust cluster ---------- */
.trust-card { text-align: center; padding: 12px 8px; }
.trust-icon {
  width: 80px; height: 80px; margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 999px;
}
.trust-icon--gold  { background: rgba(255,183,74,0.14); }
.trust-icon--blue  { background: rgba(47,165,215,0.14); }
.trust-icon--green { background: rgba(22,159,77,0.14); }
@media (max-width: 768px) {
  .trust-card { padding: 4px 0; }
  .trust-icon { width: 64px; height: 64px; margin-bottom: 12px; }
}

/* ---------- Reviews wall-of-quotes mosaic ---------- */
.reviews-mosaic {
  column-count: 3;
  column-gap: 24px;
}
.reviews-mosaic-card {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  background: #fff;
  border-radius: 14px;
  padding: 22px 24px 20px;
  margin: 0 0 24px;
  box-shadow: 0 6px 22px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.04);
  display: inline-block;
  width: 100%;
  transition: transform 280ms ease, box-shadow 280ms ease;
}
.reviews-mosaic-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.10);
}
.reviews-mosaic-card--accent { background: #FFF8E9; border-color: rgba(255,183,74,0.35); }
.reviews-mosaic-card--dark { background: #161616; color: #fff; border-color: rgba(255,255,255,0.08); }
.reviews-mosaic-card--dark .reviews-mosaic-quote { color: #fff; }
.reviews-mosaic-card--dark .reviews-mosaic-meta strong { color: #fff; }
.reviews-mosaic-card--dark .reviews-mosaic-meta span { color: rgba(255,255,255,0.6); }
.reviews-stars {
  color: #FFB74A; font-size: 13px; letter-spacing: 0.18em;
  margin: 0 0 10px; line-height: 1; display: block;
}
.reviews-mosaic-quote {
  color: #272727; font-size: 15px; line-height: 1.55; margin: 0 0 14px;
  font-family: 'Roboto', sans-serif;
}
.reviews-mosaic-quote strong { color: #161616; font-weight: 700; }
.reviews-mosaic-meta {
  display: flex; flex-direction: column; gap: 2px;
}
.reviews-mosaic-meta strong { color: #272727; font-weight: 700; font-size: 13.5px; line-height: 1.3; }
.reviews-mosaic-meta span { color: #64748b; font-size: 12.5px; line-height: 1.3; }
.reviews-mosaic-tag {
  display: inline-block; margin-top: 12px;
  background: rgba(47,165,215,0.1); color: #2FA5D7;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 6px;
}
.reviews-mosaic-card--accent .reviews-mosaic-tag { background: rgba(255,183,74,0.18); color: #b97500; }
.reviews-mosaic-card--dark .reviews-mosaic-tag { background: rgba(255,183,74,0.18); color: #FFB74A; }

.reviews-mosaic-img {
  width: calc(100% + 48px);
  margin: -22px -24px 14px;
  height: 180px;
  object-fit: cover;
  display: block;
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
}

.reviews-stats {
  display: flex; flex-wrap: wrap; gap: 28px 36px; justify-content: center; align-items: center;
  margin-top: 40px; padding-top: 32px;
  border-top: 1px solid rgba(0,0,0,0.08);
}
.reviews-stat { display: flex; align-items: center; gap: 8px; color: #272727; font-size: 14px; }
.reviews-stat strong { font-family: 'Roboto Slab', serif; font-weight: 900; font-size: 16px; }
.reviews-stat-cta {
  display: inline-flex; align-items: center; gap: 6px;
  color: #2FA5D7; font-weight: 700; font-size: 14px; text-decoration: none;
  font-family: 'Roboto Slab', serif;
}
.reviews-stat-cta:hover { text-decoration: underline; }

@media (max-width: 1024px) {
  .reviews-mosaic { column-count: 2; }
}
@media (max-width: 640px) {
  .reviews-mosaic { column-count: 1; }
  .reviews-mosaic-img { height: 160px; }
}

/* ---------- NYT Featured-In card ---------- */
.nyt-card {
  display: grid; grid-template-columns: 6fr 5fr; gap: 0;
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 12px 36px rgba(0,0,0,0.08);
}
.nyt-image { position: relative; min-height: 320px; }
.nyt-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nyt-body { padding: 48px 56px; display: flex; flex-direction: column; justify-content: center; }
.nyt-eyebrow {
  font-family: 'Roboto', sans-serif; font-size: 12px; letter-spacing: 0.2em;
  text-transform: uppercase; color: #5b6470; margin-bottom: 8px;
}
.nyt-wordmark {
  font-family: Georgia, 'Times New Roman', serif; font-style: italic;
  font-size: 28px; font-weight: 700; color: #272727; margin-bottom: 24px;
}
.nyt-headline { font-size: clamp(22px, 2.4vw, 28px); color: #272727; margin-bottom: 16px; line-height: 1.25; }
.nyt-quote {
  margin: 0 0 24px; padding: 0;
  border-left: 3px solid #2FA5D7; padding-left: 16px;
  color: #3a4250; font-size: 16px; line-height: 1.6;
}
.nyt-link { color: #2FA5D7; font-weight: 700; text-decoration: none; }
.nyt-link:hover { text-decoration: underline; }
@media (max-width: 768px) {
  .nyt-card { grid-template-columns: 1fr; }
  .nyt-image { min-height: 220px; }
  .nyt-body { padding: 28px 24px; }
}

/* ---------- Add-ons & deals ---------- */
.addon-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 8px 26px rgba(0,0,0,0.06);
  display: flex; flex-direction: column;
  transition: transform 300ms, box-shadow 300ms;
}
.addon-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(0,0,0,0.10); }
.addon-card-image { position: relative; height: 240px; }
.addon-card-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 768px) { .addon-card-image { height: 200px; } }
.addon-card-pill {
  position: absolute; top: 14px; left: 14px;
  padding: 6px 12px; border-radius: 999px;
  font-family: 'Roboto', sans-serif; font-size: 12px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.addon-card-pill--green { background: #169F4D; color: #fff; }
.addon-card-pill--blue  { background: #2FA5D7; color: #fff; }
.addon-card-pill--gold  { background: #FFB74A; color: #161616; }
.addon-card-body { padding: 22px 22px 24px; flex: 1; display: flex; flex-direction: column; }

/* ---------- Room Fit unit toggle ---------- */
.unit-toggle {
  display: inline-flex; gap: 0; background: #EDF2F6;
  padding: 4px; border-radius: 999px;
  display: flex; justify-content: center; max-width: max-content;
  margin: 0 auto 18px;
}
.unit-toggle-btn {
  border: none; background: transparent; cursor: pointer;
  padding: 8px 18px; border-radius: 999px; font-size: 13px;
  font-weight: 600; color: #5b6470; transition: background 200ms, color 200ms;
}
.unit-toggle-btn.is-active { background: #fff; color: #2FA5D7; box-shadow: 0 2px 6px rgba(0,0,0,0.08); }

/* ---------- Final conversion: Premium Adjustable card ---------- */
.conversion-card { position: relative; border-radius: var(--radius); overflow: hidden; background: rgba(255,255,255,0.06); display: flex; flex-direction: column; }
.conversion-card--featured { background: linear-gradient(180deg, rgba(47,165,215,0.18) 0%, rgba(47,165,215,0.04) 60%); border: 2px solid #2FA5D7; box-shadow: 0 0 0 1px rgba(47,165,215,0.4), 0 18px 50px rgba(47,165,215,0.18); transform: scale(1.03); }
.conversion-ribbon {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  background: #2FA5D7; color: #fff;
  font-family: 'Roboto', sans-serif; font-weight: 700; font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 6px;
}
.conversion-image { aspect-ratio: 5 / 4; }
.conversion-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.conversion-body { padding: 24px 24px 28px; display: flex; flex-direction: column; gap: 4px; }
.conversion-price { color: #fff; margin: 4px 0 18px; }
.conversion-price-amount { font-family: 'Roboto Slab', serif; font-weight: 900; font-size: 30px; }
.conversion-price-unit { color: rgba(255,255,255,0.6); font-size: 13px; }

.qty-stepper { display: inline-flex; align-items: center; background: rgba(255,255,255,0.08); border-radius: 999px; padding: 4px; width: max-content; }
.qty-btn {
  width: 36px; height: 36px; border-radius: 999px; border: none;
  background: rgba(255,255,255,0.06); color: #fff; cursor: pointer;
  font-size: 18px; line-height: 1; display: inline-flex; align-items: center; justify-content: center;
}
.qty-btn:hover { background: rgba(255,255,255,0.18); }
.qty-input { width: 56px; text-align: center; background: transparent; border: none; color: #fff; font-weight: 700; font-size: 16px; -moz-appearance: textfield; }
.qty-input::-webkit-outer-spin-button, .qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.conversion-secondary { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 13px; margin-top: 10px; align-self: center; }
.conversion-secondary:hover { color: #fff; text-decoration: underline; }

@media (max-width: 768px) {
  .conversion-card--featured { transform: none; }
}
