/* ============================================
   RootRx — Global Styles
   Palette: Copper / Cream / Sage / Warm Black
   Fonts: Syne (headings) + DM Sans (body)
   ============================================ */

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

:root {
  --warm-black: #1a1612;
  --deep-brown: #2d2420;
  --copper: #c47a4a;
  --copper-light: #d4915e;
  --gold: #d4a56a;
  --cream: #f5efe6;
  --sage: #8a9a7b;
  --light-sage: #c4d4b8;
  --soft-white: #faf8f5;
  --muted: #8a8078;
  --border: rgba(196, 122, 74, 0.15);
  --shadow-sm: 0 2px 8px rgba(26, 22, 18, 0.06);
  --shadow-md: 0 8px 30px rgba(26, 22, 18, 0.1);
  --shadow-lg: 0 20px 60px rgba(26, 22, 18, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--soft-white);
  color: var(--warm-black);
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  line-height: 1.15;
}

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

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

/* ---- NAVIGATION ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 40px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
}

.nav--transparent {
  background: transparent;
}

.nav--solid {
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav__logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.nav__logo span {
  color: var(--copper);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav__link {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.8;
  transition: var(--transition);
  position: relative;
}

.nav__link:hover {
  opacity: 1;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--copper);
  transition: var(--transition);
}

.nav__link:hover::after {
  width: 100%;
}

.nav__cta {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 24px;
  background: var(--copper);
  color: var(--cream);
  border-radius: 100px;
  transition: var(--transition);
  letter-spacing: 0.02em;
}

.nav__cta:hover {
  background: var(--copper-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(196, 122, 74, 0.3);
}

/* Mobile nav toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--warm-black);
  transition: var(--transition);
}

/* ---- HERO SECTION (Landing Page) ---- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding: 120px 40px 80px;
  background: var(--warm-black);
  color: var(--cream);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -15%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196,122,74,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(138,154,123,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero__content {
  max-width: 800px;
  position: relative;
  z-index: 2;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(196, 122, 74, 0.12);
  border: 1px solid rgba(196, 122, 74, 0.25);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 32px;
}

.hero__title {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.hero__title em {
  font-style: normal;
  color: var(--copper);
}

.hero__subtitle {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.7;
  color: rgba(245, 239, 230, 0.7);
  max-width: 560px;
  margin-bottom: 48px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 16px 36px;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.02em;
}

.btn--primary {
  background: var(--copper);
  color: var(--cream);
}

.btn--primary:hover {
  background: var(--copper-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(196, 122, 74, 0.3);
}

.btn--secondary {
  background: transparent;
  color: var(--cream);
  border: 1.5px solid rgba(245, 239, 230, 0.3);
}

.btn--secondary:hover {
  border-color: var(--copper);
  color: var(--copper);
}

.btn--dark {
  background: var(--warm-black);
  color: var(--cream);
}

.btn--dark:hover {
  background: var(--deep-brown);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(26, 22, 18, 0.2);
}

.btn--outline {
  background: transparent;
  color: var(--warm-black);
  border: 1.5px solid var(--border);
}

.btn--outline:hover {
  border-color: var(--copper);
  color: var(--copper);
}

/* ---- SECTION LAYOUT ---- */
.section {
  padding: 100px 40px;
}

.section--cream {
  background: var(--cream);
}

.section--dark {
  background: var(--warm-black);
  color: var(--cream);
}

.section--sage {
  background: var(--sage);
  color: var(--soft-white);
}

.section__header {
  max-width: 600px;
  margin-bottom: 64px;
}

.section__header--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 16px;
}

.section__title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section__desc {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.7;
}

.section--dark .section__desc {
  color: rgba(245, 239, 230, 0.6);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* ---- PRODUCT CARDS (Storefront Grid) ---- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.product-card {
  background: var(--soft-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--border);
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(196, 122, 74, 0.3);
}

.product-card__image {
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.product-card__image-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.product-card:hover .product-card__image-inner {
  transform: scale(1.03);
}

/* Product bottle illustration (CSS-only) */
.product-bottle {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.product-bottle__cap {
  width: 24px;
  height: 14px;
  border-radius: 4px 4px 0 0;
  background: rgba(255,255,255,0.4);
  margin-bottom: -2px;
  z-index: 1;
}

.product-bottle__body {
  width: 72px;
  height: 110px;
  border-radius: 8px 8px 12px 12px;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.product-bottle__label {
  font-family: 'Syne', sans-serif;
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  text-align: center;
  padding: 0 8px;
  line-height: 1.3;
}

.product-card__category {
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  border-radius: 100px;
  color: white;
}

.product-card__body {
  padding: 24px;
}

.product-card__name {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.product-card__tagline {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 16px;
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-card__price {
  font-family: 'Syne', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--copper);
}

.product-card__size {
  font-size: 0.8rem;
  color: var(--muted);
}

.product-card__link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--copper);
  transition: var(--transition);
}

.product-card__link:hover {
  gap: 10px;
}

/* ---- FEATURED PRODUCTS (Landing Page Horizontal Scroll) ---- */
.featured-scroll {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 20px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.featured-scroll::-webkit-scrollbar {
  display: none;
}

.featured-scroll .product-card {
  min-width: 300px;
  scroll-snap-align: start;
  flex-shrink: 0;
}

/* ---- VALUES / PHILOSOPHY ---- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.value-card {
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  background: rgba(196, 122, 74, 0.04);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.value-card:hover {
  background: rgba(196, 122, 74, 0.08);
  transform: translateY(-4px);
}

.value-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--copper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 24px;
}

.value-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.value-card__desc {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ---- PRODUCT DETAIL PAGE ---- */
.detail-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding: 120px 40px 80px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}

.detail-image {
  border-radius: var(--radius-lg);
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  position: sticky;
  top: 100px;
}

.detail-image .product-bottle__cap {
  width: 40px;
  height: 22px;
  border-radius: 6px 6px 0 0;
}

.detail-image .product-bottle__body {
  width: 120px;
  height: 180px;
  border-radius: 12px 12px 18px 18px;
}

.detail-image .product-bottle__label {
  font-size: 0.7rem;
}

.detail-info {
  padding-top: 20px;
}

.detail-info__breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 24px;
}

.detail-info__breadcrumb a {
  transition: var(--transition);
}

.detail-info__breadcrumb a:hover {
  color: var(--copper);
}

.detail-info__category {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 12px;
}

.detail-info__name {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.detail-info__tagline {
  font-size: 1.15rem;
  color: var(--muted);
  margin-bottom: 24px;
}

.detail-info__price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 32px;
}

.detail-info__price {
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--copper);
}

.detail-info__size {
  font-size: 0.95rem;
  color: var(--muted);
}

.detail-info__description {
  font-size: 1.02rem;
  line-height: 1.8;
  color: #4a4440;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.detail-section {
  margin-bottom: 36px;
}

.detail-section__title {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--warm-black);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.detail-section__title::before {
  content: '';
  width: 3px;
  height: 18px;
  background: var(--copper);
  border-radius: 2px;
}

.detail-section__text {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #5a5450;
}

.detail-benefits {
  list-style: none;
}

.detail-benefits li {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #5a5450;
  padding: 8px 0;
  padding-left: 28px;
  position: relative;
}

.detail-benefits li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sage);
}

.detail-ingredients {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-ingredient-tag {
  font-size: 0.82rem;
  font-weight: 500;
  padding: 6px 14px;
  background: rgba(138, 154, 123, 0.1);
  border: 1px solid rgba(138, 154, 123, 0.2);
  border-radius: 100px;
  color: var(--sage);
}

/* ---- RELATED PRODUCTS ---- */
.related-section {
  padding: 80px 40px;
  background: var(--cream);
}

.related-section .container {
  max-width: 1200px;
  margin: 0 auto;
}

/* ---- CATEGORY FILTERS ---- */
.category-filters {
  display: flex;
  gap: 10px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.category-btn {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 10px 22px;
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  cursor: pointer;
  transition: var(--transition);
  color: var(--warm-black);
}

.category-btn:hover,
.category-btn.active {
  background: var(--copper);
  border-color: var(--copper);
  color: var(--cream);
}

/* ---- PRODUCTS PAGE HERO ---- */
.page-hero {
  padding: 140px 40px 60px;
  background: var(--warm-black);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196,122,74,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero__title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  position: relative;
}

.page-hero__desc {
  font-size: 1.1rem;
  color: rgba(245, 239, 230, 0.6);
  max-width: 500px;
  line-height: 1.7;
  position: relative;
}

.page-hero__count {
  margin-top: 24px;
  font-size: 0.85rem;
  color: var(--copper);
  font-weight: 500;
  position: relative;
}

/* ---- FOOTER ---- */
.footer {
  background: var(--warm-black);
  color: var(--cream);
  padding: 80px 40px 40px;
}

.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(245, 239, 230, 0.1);
}

.footer__brand {
  max-width: 300px;
}

.footer__logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.footer__logo span {
  color: var(--copper);
}

.footer__tagline {
  font-size: 0.92rem;
  color: rgba(245, 239, 230, 0.5);
  line-height: 1.7;
}

.footer__col-title {
  font-family: 'Syne', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 20px;
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__link {
  font-size: 0.9rem;
  color: rgba(245, 239, 230, 0.6);
  transition: var(--transition);
}

.footer__link:hover {
  color: var(--cream);
}

.footer__bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__copy {
  font-size: 0.82rem;
  color: rgba(245, 239, 230, 0.35);
}

/* ---- CTA BANNER ---- */
.cta-banner {
  padding: 100px 40px;
  background: var(--deep-brown);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196,122,74,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-banner__title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--cream);
  margin-bottom: 16px;
  position: relative;
  letter-spacing: -0.02em;
}

.cta-banner__desc {
  font-size: 1.05rem;
  color: rgba(245, 239, 230, 0.6);
  margin-bottom: 40px;
  position: relative;
}

/* ---- 404 PAGE ---- */
.error-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  text-align: center;
  background: var(--soft-white);
}

.error-page__code {
  font-family: 'Syne', sans-serif;
  font-size: 8rem;
  font-weight: 800;
  color: var(--border);
  line-height: 1;
  margin-bottom: 16px;
}

.error-page__title {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.error-page__desc {
  color: var(--muted);
  margin-bottom: 32px;
}

/* ---- SCROLL ANIMATIONS ---- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .detail-hero {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .detail-image {
    position: static;
    height: 400px;
  }
  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .nav {
    padding: 0 20px;
  }
  .nav__links {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--soft-white);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .nav__links.active {
    display: flex;
  }
  .nav__toggle {
    display: flex;
  }
  .hero {
    padding: 120px 24px 60px;
  }
  .section {
    padding: 60px 24px;
  }
  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }
  .products-grid {
    grid-template-columns: 1fr;
  }
  .values-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .detail-hero {
    padding: 100px 24px 40px;
  }
  .detail-image {
    height: 300px;
  }
  .page-hero {
    padding: 120px 24px 40px;
  }
  .footer__top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer {
    padding: 60px 24px 30px;
  }
  .related-section {
    padding: 60px 24px;
  }
  .cta-banner {
    padding: 60px 24px;
  }
}

@media (max-width: 480px) {
  .product-card__image {
    height: 260px;
  }
  .btn {
    padding: 14px 28px;
    font-size: 0.9rem;
  }
}
