/* Design System Variables */
:root {
  --bg: #fbf6ef;
  --card: #ffffff;
  --text: #1b1b1b;
  --muted: #6a6a6a;
  --line: #eadfd4;
  --accent: #d56a3a;
  --cta: #7a3f25;
  --cta2: #5e2f1a;
  --green: #19a55b;
}

/* Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: bold;
}

/* Container */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Dotted Background */
.dotted-bg {
  background-image: radial-gradient(circle, var(--line) 1px, transparent 1px);
  background-size: 20px 20px;
  background-position: 0 0;
}

/* Announcement Bar */
.announcement-bar {
  background-color: var(--cta);
  color: white;
  text-align: center;
  padding: 8px 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Product Hero Section */
.product-hero {
  background-color: var(--card);
  padding: 24px 0;
}

.product-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Gallery */
.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.thumbnails {
  display: flex;
  flex-direction: row;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.thumbnails::-webkit-scrollbar {
  display: none;
}

.thumbnail {
  flex: 0 0 80px;
  width: 80px;
  height: 80px;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: none;
  padding: 0;
  transition: border-color 0.2s;
}

.thumbnail.active {
  border-color: var(--accent);
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.main-image {
  width: 100%;
  aspect-ratio: 1;
  background-color: #f0f0f0;
  border-radius: 8px;
  overflow: hidden;
}

.main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Purchase Block */
.purchase-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rating-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.stars {
  display: flex;
  gap: 2px;
}

.star {
  color: var(--green);
  font-size: 16px;
}

.rating-text {
  font-weight: 600;
}

.reviews, .customers {
  color: var(--muted);
}

.separator {
  color: var(--muted);
}

.sold-badge {
  background-color: var(--accent);
  color: white;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
  width: fit-content;
}

h1 {
  font-size: 28px;
  line-height: 1.2;
  margin: 0;
}

.benefits-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.benefits-list li {
  font-size: 14px;
  color: var(--text);
}

.info-box {
  background-color: var(--bg);
  padding: 12px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--muted);
}

.choose-title {
  font-size: 18px;
  margin: 8px 0;
}

/* Package Options */
.package-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.package-option {
  position: relative;
  border: 2px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
  background-color: var(--card);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.package-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.package-radio {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  border: 2px solid var(--line);
  border-radius: 50%;
  margin-top: 2px;
  position: relative;
  transition: border-color 0.2s;
}

.package-option.checked .package-radio {
  border-color: var(--text);
  border-width: 2px;
}

.package-option.checked .package-radio::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background-color: var(--text);
  border-radius: 50%;
}

.package-option.checked {
  border-color: var(--text);
  border-width: 3px;
  background-color: #fffef0;
}

.package-option.popular.checked {
  background-color: #fffef0;
}

.package-badge {
  position: absolute;
  top: -10px;
  right: 12px;
  background-color: var(--text);
  color: white;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 1;
}

.package-content {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.package-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.package-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.package-name {
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
  line-height: 1.3;
}

.package-subtitle {
  font-size: 13px;
  color: #d32f2f;
  font-weight: 500;
}

.package-save-badge {
  display: inline-block;
  background-color: var(--accent);
  color: white;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  margin-top: 4px;
  width: fit-content;
}

.package-price {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.package-price-old {
  font-size: 16px;
  color: #d32f2f;
  text-decoration: line-through;
  font-weight: 500;
}

/* Buy Button */
.buy-button {
  display: block;
  width: 100%;
  background-color: var(--cta);
  color: white;
  border: none;
  padding: 16px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
  text-decoration: none;
}

.buy-button:hover {
  background-color: var(--cta2);
}

.payment-icons {
  display: flex;
  justify-content: center;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
  flex-wrap: wrap;
}

.guarantees {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.guarantee-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.guarantee-item .icon {
  color: var(--green);
  font-weight: bold;
}

/* Sticky CTA Mobile */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--card);
  border-top: 1px solid var(--line);
  padding: 12px 16px;
  z-index: 1000;
  display: none;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
}

.sticky-button,
a.sticky-button {
  width: 100%;
  background-color: var(--cta);
  color: white;
  border: none;
  padding: 14px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
  text-decoration: none;
  display: block;
  text-align: center;
}

a.sticky-button:hover {
  color: white;
  text-decoration: none;
}

/* Landing Sections */
.landing-section {
  padding: 48px 0;
}

.section-title {
  font-size: 32px;
  text-align: center;
  margin-bottom: 24px;
}

.section-intro {
  text-align: center;
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 32px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-layout {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.section-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section-content h2 {
  font-size: 28px;
  line-height: 1.3;
}

.section-content p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
}

/* Oval Image */
.oval-image {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background-color: #f0f0f0;
}

.oval-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Formula Collage */
.formula-collage {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.formula-collage img {
  width: 100%;
  max-width: 200px;
  border-radius: 8px;
}

.formula-stats {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-bar {
  width: 100%;
  height: 8px;
  background-color: var(--line);
  border-radius: 4px;
  overflow: hidden;
}

.stat-fill {
  height: 100%;
  background-color: var(--accent);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.stat-text {
  font-size: 14px;
  line-height: 1.6;
}

.stat-text strong {
  color: var(--accent);
  font-size: 18px;
}

/* CTA Button */
.cta-button,
a.cta-button {
  background-color: var(--cta);
  color: white;
  border: none;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: fit-content;
  transition: background-color 0.2s;
  text-decoration: none;
  display: inline-block;
}

.cta-button:hover,
a.cta-button:hover {
  background-color: var(--cta2);
  color: white;
  text-decoration: none;
}

.cta-subtext {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}

.cta-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 32px;
}

/* Science Stats */
.science-stats {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Customer Grid */
.customer-grid {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background-color: #f0f0f0;
}

.customer-grid img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Promise Grid */
.promise-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.promise-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.promise-icon {
  font-size: 32px;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--card);
  border-radius: 50%;
  border: 2px solid var(--line);
  overflow: hidden;
}

.promise-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.promise-item p {
  font-size: 14px;
  font-weight: 500;
}

/* Testimonials */
.testimonials-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 16px 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.testimonials-scroll::-webkit-scrollbar {
  height: 6px;
}

.testimonials-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.testimonials-scroll::-webkit-scrollbar-thumb {
  background-color: var(--line);
  border-radius: 3px;
}

.testimonial-card {
  flex: 0 0 280px;
  background-color: var(--card);
  padding: 20px;
  border-radius: 8px;
  border: 1px solid var(--line);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.testimonial-stars {
  color: var(--green);
  font-size: 14px;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 14px;
  line-height: 1.6;
  font-style: italic;
}

.testimonial-author {
  font-weight: 600;
  font-size: 14px;
}

.testimonial-date {
  font-size: 12px;
  color: var(--muted);
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--line);
  cursor: pointer;
}

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

/* Footer */
.footer {
  background-color: var(--card);
  padding: 40px 0;
  border-top: 1px solid var(--line);
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 24px;
}

.footer-logo {
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: bold;
  color: var(--accent);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.footer-contact a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

.footer-contact a:hover {
  color: var(--accent);
}

.footer-payments {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 16px;
}

.footer-copyright {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

/* Tablet Breakpoint */
@media (min-width: 480px) {
  .container {
    padding: 0 24px;
  }

  .product-hero {
    padding: 32px 0;
  }

  h1 {
    font-size: 32px;
  }

  .section-title {
    font-size: 36px;
  }
}

/* Desktop Breakpoint */
@media (min-width: 768px) {
  .product-layout {
    flex-direction: row;
    align-items: flex-start;
    gap: 48px;
  }

  .product-gallery {
    flex-direction: row;
    flex: 1;
  }

  .thumbnails {
    flex-direction: column;
    flex: 0 0 100px;
  }

  .main-image {
    flex: 1;
  }

  .purchase-block {
    flex: 0 0 400px;
  }

  .section-layout {
    flex-direction: row;
    align-items: center;
    gap: 48px;
  }

  .section-content {
    flex: 1;
  }

  .section-image {
    flex: 1;
  }

  .formula-collage {
    flex-direction: row;
    justify-content: center;
  }

  .formula-stats {
    flex: 1;
  }

  .science-stats {
    flex: 1;
  }

  .customer-grid {
    flex: 1;
  }

  .promise-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-content {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* Large Desktop */
@media (min-width: 1024px) {
  .container {
    padding: 0 32px;
  }

  .product-hero {
    padding: 48px 0;
  }

  .landing-section {
    padding: 64px 0;
  }

  .section-layout {
    gap: 64px;
  }

  .purchase-block {
    flex: 0 0 450px;
  }

  .thumbnails {
    flex: 0 0 120px;
  }

  .thumbnail {
    flex: 0 0 100px;
    width: 100px;
    height: 100px;
  }
}

