/* ============================================
   PAWTRONIC PDP — Design Tokens & Styles
   Mobile-first (375px → 768px → 1024px+)
   ============================================ */

/* --- Tokens from Figma --- */
:root {
  /* Colors */
  --color-announcement-bg: #f0994c;
  --color-announcement-text: #000000;
  --color-primary-text: #000000;
  --color-muted-text: rgba(0, 0, 0, 0.5);
  --color-border: rgba(0, 0, 0, 0.2);
  --color-green-brand: #0d854d;
  --color-green-light: rgba(13, 133, 77, 0.2);
  --color-purple: #734df0;
  --color-blue-link: #1a73e8;
  --color-dark-review: #121623;
  --color-white: #ffffff;
  --color-subtle-bg: rgba(0, 0, 0, 0.05);
  --color-dot-active: #f0994c;
  --color-dot-inactive: rgba(255, 255, 255, 0.9);

  /* Typography */
  --font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-secondary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing */
  --announcement-px: 20px;
  --announcement-py: 15px;
  --header-py: 30px;
  --header-content-max-w: 1696px;
  --nav-gap: 28px;
  --content-pt: 40px;
  --two-col-gap: 49px;
  --info-col-w: 447px;
  --feature-gap: 10px;
  --feature-icon-gap: 10px;
  --section-gap-sm: 20px;
  --section-gap-md: 25px;
  --tracker-card-p: 20px;
  --swatch-size: 30px;
  --swatch-gap: 10px;
  --price-gap: 15px;
  --cta-px: 20px;
  --cta-py: 15px;
  --avatar-size: 80px;
  --avatar-gap: 11px;
  --carousel-arrow-size: 40px;

  /* Radii */
  --radius-image: 16px;
  --radius-tracker-card: 16px;
  --radius-tracker-thumb: 6px;
  --radius-pill: 100px;
  --radius-circle: 50%;

  /* Layout */
  --header-total-height: 144px; /* 45px announcement + 99px header */
}

/* --- Reset --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  color: var(--color-primary-text);
  background: var(--color-white);
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}

/* ============================================
   ANNOUNCEMENT BAR
   ============================================ */
.announcement-bar {
  background: var(--color-announcement-bg);
  padding: var(--announcement-py) var(--announcement-px);
  text-align: center;
}

.announcement-bar p {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 13px;
  line-height: 15px;
  color: var(--color-primary-text);
  white-space: nowrap;
}

@media (min-width: 768px) {
  .announcement-bar p {
    font-size: 15px;
  }
}

/* ============================================
   HEADER
   ============================================ */
.header {
  padding: 12px 16px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--header-content-max-w);
  margin: 0 auto;
}

.logo img {
  width: 130px;
  height: auto;
}

/* Desktop nav — hidden on mobile */
.nav-desktop {
  display: none;
  gap: var(--nav-gap);
  align-items: center;
}

.nav-desktop a {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 15px;
  line-height: 15px;
  color: var(--color-primary-text);
  white-space: nowrap;
}

.nav-desktop a:hover {
  opacity: 0.7;
}

/* Header actions — hidden on mobile */
.header-actions {
  display: none;
  gap: var(--nav-gap);
  align-items: center;
}

.currency-selector {
  display: flex;
  gap: 8px;
  align-items: center;
}

.currency-selector img:first-child {
  width: 20px;
  height: 20px;
}

.currency-selector span {
  font-weight: 600;
  font-size: 16px;
  line-height: 16px;
}

.currency-selector img:last-child {
  width: 12px;
  height: 6px;
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.icon-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Hamburger — visible on mobile */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  padding: 4px 0;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-primary-text);
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav overlay */
.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--color-white);
  padding: 20px 16px;
  border-bottom: 1px solid var(--color-border);
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  font-weight: 600;
  font-size: 18px;
  line-height: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
}

.nav-mobile a:last-child {
  border-bottom: none;
}

/* Desktop header breakpoint */
@media (min-width: 768px) {
  .header {
    padding: 16px 40px;
  }

  .logo img {
    width: 160px;
  }
}

@media (min-width: 1024px) {
  .nav-desktop {
    display: flex;
  }

  .header-actions {
    display: flex;
  }

  .hamburger {
    display: none;
  }
}

/* ============================================
   PRODUCT HERO — Main layout
   ============================================ */
.product-hero {
  padding: 20px 16px 0;
}

.product-grid {
  max-width: var(--header-content-max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .product-hero {
    padding: 30px 40px 0;
  }
}

@media (min-width: 1024px) {
  .product-hero {
    padding: var(--content-pt) 40px 0;
  }

  .product-grid {
    grid-template-columns: 1fr var(--info-col-w);
    gap: var(--two-col-gap);
  }

  .product-image-col {
    position: -webkit-sticky;
    position: sticky;
    top: 20px;
    align-self: start;
  }
}

/* ============================================
   CAROUSEL
   ============================================ */
.carousel {
  position: relative;
  border-radius: var(--radius-image);
  overflow: hidden;
  background: #f0ebe4;
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease;
}

.carousel-slide {
  min-width: 100%;
  aspect-ratio: 3 / 2;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Arrows */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: var(--carousel-arrow-size);
  height: var(--carousel-arrow-size);
  border-radius: var(--radius-circle);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.15));
  transition: filter 0.2s;
}

.carousel-arrow:hover {
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.25));
}

.carousel-arrow svg {
  display: block;
}

.carousel-arrow--prev {
  left: 19px;
}

.carousel-arrow--next {
  right: 19px;
}

/* Dots */
.carousel-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-circle);
  background: var(--color-dot-inactive);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.carousel-dot.active {
  background: var(--color-dot-active);
}

/* ============================================
   PRODUCT INFO COLUMN
   ============================================ */
.product-info-col {
  display: flex;
  flex-direction: column;
}

/* --- Title section (with border-bottom) --- */
.title-section {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.title-group {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.product-subtitle {
  font-weight: 500;
  font-size: 14px;
  line-height: 14px;
}

.product-title {
  font-weight: 600;
  font-size: 24px;
  line-height: 30px;
}

@media (min-width: 1024px) {
  .product-title {
    font-size: 28px;
    line-height: 34px;
  }
}

/* Rating row */
.rating-row {
  display: flex;
  align-items: center;
  height: 24px;
}

.rating-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trustpilot-stars {
  width: 85px;
  height: 16px;
}

.review-count {
  font-family: var(--font-secondary);
  font-weight: 600;
  font-size: 12px;
  line-height: 20px;
  color: var(--color-dark-review);
}

.review-separator {
  font-family: var(--font-secondary);
  font-weight: 500;
  font-size: 12px;
  line-height: 20px;
  color: var(--color-dark-review);
  transform: rotate(90deg);
  display: inline-block;
}

.rating-divider {
  width: 1px;
  height: 24px;
  background: #e3e4ea;
  margin-left: 8px;
}

.read-reviews {
  font-family: var(--font-secondary);
  font-weight: 600;
  font-size: 12px;
  line-height: 20px;
  color: var(--color-blue-link);
  text-decoration: underline;
  margin-left: 17px;
}

/* Feature list */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--feature-gap);
}

.feature-item {
  display: flex;
  align-items: center;
  gap: var(--feature-icon-gap);
}

.feature-check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.feature-item span {
  font-weight: 600;
  font-size: 14px;
  line-height: 24px;
}

/* Phone text */
.phone-text {
  font-weight: 500;
  font-size: 14px;
  line-height: 14px;
}

/* ============================================
   BUNDLE BUILDER
   ============================================ */
.bundle-builder {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.builder-step {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.step-number {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #1a1a1a;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-title {
  font-weight: 600;
  font-size: 14px;
  line-height: 14px;
}

/* Quantity tiles */
.qty-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.qty-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 8px 12px;
  border-radius: 10px;
  border: 1.5px solid var(--color-border);
  background: var(--color-white);
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s, background 0.15s;
  text-align: center;
}

.qty-tile:hover {
  border-color: rgba(0, 0, 0, 0.35);
}

.qty-tile.active {
  border-color: var(--color-green-brand);
  background: rgba(13, 133, 77, 0.04);
}

.qty-tile-best {
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  background: #1a1a1a;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.qty-tile-count {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.3;
}

.qty-tile-price {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.3;
}

.qty-tile-per {
  font-size: 11px;
  font-weight: 400;
  color: #777;
  line-height: 1.3;
}

.qty-tile-savings {
  font-size: 11px;
  font-weight: 500;
  color: var(--color-green-brand);
  line-height: 1.3;
}

.qty-tile:first-child .qty-tile-savings {
  color: #999;
}

/* Collar rows */
.collar-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.collar-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.collar-row-label {
  font-size: 12px;
  font-weight: 500;
  color: #555;
  min-width: 56px;
  flex-shrink: 0;
}

.collar-swatches {
  display: flex;
  gap: 10px;
}

.collar-swatch {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  padding: 0;
  cursor: pointer;
  position: relative;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.15s;
  flex-shrink: 0;
}

.collar-swatch.selected {
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--color-green-brand);
}

.collar-swatch:disabled {
  cursor: not-allowed;
}

.collar-swatch.sold-out {
  opacity: 0.4;
}

.collar-swatch-fill {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: block;
}

.collar-swatch-line {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 1.5px;
  background: #999;
  transform: translate(-50%, -50%) rotate(-45deg);
  pointer-events: none;
}

/* Recap pill */
.recap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--color-subtle-bg);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  align-self: flex-start;
}

.recap-label {
  font-size: 12px;
  font-weight: 500;
  color: #555;
}

.recap-dots {
  display: flex;
  gap: 5px;
}

.recap-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: block;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Price & CTA card */
.price-cta-card {
  margin-top: 20px;
  border: 1px solid var(--color-green-brand);
  border-radius: var(--radius-tracker-card);
  padding: var(--tracker-card-p);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Sold-out CTA state */
.add-to-cart:disabled {
  background: #b0b0b0;
  cursor: not-allowed;
}

.add-to-cart:disabled:hover {
  background: #b0b0b0;
}

/* --- Price section --- */
.price-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.price-and-cta {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.price-row {
  display: flex;
  align-items: center;
  gap: var(--price-gap);
  flex-wrap: wrap;
}

.price-current {
  font-weight: 500;
  font-size: 20px;
  line-height: 20px;
  text-transform: uppercase;
}

.price-original {
  font-weight: 400;
  font-size: 20px;
  line-height: 20px;
  text-transform: uppercase;
  color: var(--color-muted-text);
  text-decoration: line-through;
}

.save-badge {
  background: var(--color-purple);
  color: var(--color-white);
  font-weight: 500;
  font-size: 12px;
  line-height: 12px;
  padding: 5px 8px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

/* Purchase actions */
.purchase-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.refund-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-green-light);
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  align-self: flex-start;
}

.refund-pill img,
.refund-pill svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.refund-pill span {
  font-weight: 500;
  font-size: 12px;
  line-height: 12px;
  color: var(--color-green-brand);
}

.add-to-cart {
  width: 100%;
  background: var(--color-green-brand);
  color: var(--color-white);
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 16px;
  line-height: 16px;
  padding: var(--cta-py) var(--cta-px);
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.add-to-cart:hover {
  background: #0b7343;
}

.add-to-cart:active {
  background: #096238;
}

/* Subscription note */
.subscription-note {
  display: flex;
  align-items: center;
  gap: 8px;
}

.subscription-note img {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.subscription-note span {
  font-weight: 500;
  font-size: 12px;
  line-height: 12px;
}

.learn-more {
  font-weight: 600;
  font-size: 12px;
  line-height: 12px;
  text-decoration: underline;
}

.ship-date {
  text-decoration: underline;
}

/* ============================================
   REVIEWS SECTION
   ============================================ */
.reviews-section {
  margin-top: var(--section-gap-sm);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.reviews-heading {
  font-weight: 600;
  font-size: 14px;
  line-height: 24px;
}

.review-videos {
  display: flex;
  gap: 12px;
}

.video-wrap {
  position: relative;
  flex: 1 1 0;
  width: 0;
}

.review-video {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 12px;
  background: #000;
  display: block;
}

.video-play-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 2;
}

.video-play-btn:hover {
  background: rgba(0, 0, 0, 0.65);
}

/* ============================================
   SCROLL TEST SECTION
   ============================================ */
.scroll-test-section {
  height: 100vh;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-test-section p {
  color: #999;
  font-family: var(--font-primary);
  font-size: 16px;
}
