/* RESET & BASE STYLES */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  color: #1A1A1A;
  background-color: #FAF9F6;
}

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

a {
  color: #1A1A1A;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ANNOUNCEMENT BAR */
.announcement-bar {
  background-color: #1A1A1A;
  color: #FAF9F6;
  text-align: center;
  padding: 12px 20px;
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 400;
  text-transform: uppercase;
}

/* NAVIGATION */
nav {
  background-color: #FAF9F6;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 300;
  letter-spacing: 6px;
  text-transform: uppercase;
  padding: 32px 20px 16px;
  text-align: center;
}

.nav-logo a {
  color: #1A1A1A;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 0 20px 24px;
  flex-wrap: wrap;
}

.nav-links a {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #1A1A1A;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #C4A97D;
}

.nav-links a.external::after {
  content: ' ↗';
}

/* Hide old nav-left/nav-right if present */
.nav-left,
.nav-right {
  display: flex;
  gap: 32px;
  align-items: center;
}

/* HERO SECTION */
.hero {
  height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #F5F3EF 0%, #E8E0D5 50%, #F5F3EF 100%);
  padding: 40px 20px;
  position: relative;
  overflow: hidden;
}

.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #8A8680;
  margin-bottom: 20px;
  font-weight: 300;
}

.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 64px;
  font-weight: 300;
  line-height: 1.2;
  color: #1A1A1A;
  margin-bottom: 24px;
  max-width: 800px;
}

.hero p {
  font-size: 18px;
  color: #3A3A3A;
  font-weight: 300;
  max-width: 600px;
  margin-bottom: 40px;
}

.hero-cta {
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #1A1A1A;
  border: 1px solid #1A1A1A;
  padding: 14px 40px;
  transition: all 0.3s ease;
}

.hero-cta:hover {
  background-color: #1A1A1A;
  color: #FAF9F6;
}

.hero.hero-compact {
  height: 42vh;
  min-height: 280px;
  padding: 30px 20px;
}

.hero.hero-minimal {
  height: auto;
  padding: 100px 20px;
  min-height: 0;
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 44px;
  font-weight: 300;
  color: #1A1A1A;
  text-align: center;
}

/* EDIT GRID (Shops section) */
.edit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 0 60px 80px 60px;
}

.edit-card {
  text-decoration: none;
  color: #1A1A1A;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.edit-card-image {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  margin-bottom: 16px;
}

.edit-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.edit-card:hover .edit-card-image img {
  transform: scale(1.04);
}

.edit-card-title {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-align: center;
  color: #1A1A1A;
}

/* SECTION HEADERS */
.section-header {
  text-align: center;
  margin: 80px 0 60px 0;
  padding: 0 20px;
}

.section-eyebrow {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #8A8680;
  margin-bottom: 16px;
  font-weight: 300;
}

.section-header h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 44px;
  font-weight: 300;
  color: #1A1A1A;
}

/* CATEGORY GRID */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 0 60px 80px 60px;
}

.category-grid-compact {
  padding: 0 80px 80px 80px;
}

.category-card {
  aspect-ratio: 3 / 4;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background-color: #E8E0D5;
  transition: transform 0.3s ease;
}

.category-card img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.category-card:hover img {
  transform: scale(1.04);
}

.category-card:hover {
  transform: none;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(transparent 40%, rgba(26, 26, 26, 0.5) 100%);
  z-index: 1;
}

.category-card-text {
  position: relative;
  z-index: 2;
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 300;
  color: #FFFFFF;
  letter-spacing: 1px;
  color: #1A1A1A;
  padding-bottom: 40px;
  text-align: center;
}

/* PRODUCT GRID */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding: 0 40px 100px 40px;
}

.product-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: #1A1A1A;
}

.product-image-wrapper {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background-color: #FFFFFF;
  margin-bottom: 16px;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  transition: transform 0.3s ease;
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

.product-affiliate-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background-color: rgba(26, 26, 26, 0.85);
  color: #FAF9F6;
  padding: 6px 12px;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 400;
}

.product-brand {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #8A8680;
  margin-bottom: 6px;
  font-weight: 400;
}

.product-name {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.4;
  margin-bottom: 8px;
  color: #1A1A1A;
}

.product-price {
  font-size: 14px;
  font-weight: 400;
  color: #3A3A3A;
  margin-bottom: 4px;
}

.product-note {
  font-size: 12px;
  color: #8A8680;
  font-weight: 300;
  font-style: italic;
  margin-bottom: 8px;
}

.product-affiliate-link {
  font-size: 11px;
  color: #C4A97D;
  font-weight: 400;
  letter-spacing: 0.5px;
}

/* EDITORIAL STRIPS */
.editorial-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 40px 40px;
  background-color: #FAF9F6;
}

.editorial-strip.editorial-text-only {
  grid-template-columns: 1fr;
  text-align: center;
  padding: 60px 40px;
  max-width: 700px;
  margin: 0 auto;
}

.editorial-strip.editorial-text-only.dark {
  max-width: none;
}

.editorial-strip.reversed {
  direction: rtl;
}

.editorial-strip.reversed > * {
  direction: ltr;
}

.editorial-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: #E8E0D5;
}

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

.editorial-content {
  padding: 20px;
}

.editorial-content h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 300;
  margin-bottom: 20px;
  color: #1A1A1A;
}

.editorial-content p {
  font-size: 16px;
  font-weight: 300;
  color: #3A3A3A;
  margin-bottom: 24px;
  line-height: 1.8;
}

.editorial-link {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #1A1A1A;
  border-bottom: 1px solid #1A1A1A;
  padding-bottom: 4px;
  transition: color 0.3s ease;
}

.editorial-link:hover {
  color: #C4A97D;
  border-bottom-color: #C4A97D;
}

.editorial-strip.dark {
  background-color: #3A3A3A;
}

.editorial-strip.dark .editorial-content h3,
.editorial-strip.dark .editorial-content p,
.editorial-strip.dark .editorial-link {
  color: #FAF9F6;
}

.editorial-strip.dark .editorial-link {
  border-bottom-color: #FAF9F6;
}

.editorial-strip.dark .editorial-link:hover {
  color: #C4A97D;
  border-bottom-color: #C4A97D;
}

/* TRENDING SECTION */
.trending-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
  padding: 0 40px 100px 40px;
}

.trending-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: #1A1A1A;
}

.trending-image {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background-color: #FFFFFF;
  margin-bottom: 16px;
  transition: transform 0.3s ease;
}

.trending-item:hover .trending-image {
  transform: scale(1.05);
}

.trending-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10%;
  object-fit: cover;
}

.trending-name {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.4;
}

/* ROUTINE STEPS */
.routine-container {
  padding: 0 40px 100px 40px;
}

.routine-step {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 80px;
}

.routine-step.reversed {
  direction: rtl;
}

.routine-step.reversed > * {
  direction: ltr;
}

.step-number {
  position: absolute;
  left: -80px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 96px;
  font-weight: 300;
  color: #E8E0D5;
  line-height: 1;
}

.step-image {
  aspect-ratio: 1;
  overflow: hidden;
  background-color: #E8E0D5;
  position: relative;
  max-width: 280px;
}

.step-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  background-color: #FFFFFF;
}

.step-content {
  padding: 20px;
  position: relative;
}

.step-content h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 300;
  margin-bottom: 16px;
  color: #1A1A1A;
}

.step-content p {
  font-size: 16px;
  font-weight: 300;
  color: #3A3A3A;
  margin-bottom: 24px;
  line-height: 1.8;
}

.step-product {
  background-color: #F5F3EF;
  padding: 16px;
  margin-top: 20px;
}

.step-product-brand {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #8A8680;
  margin-bottom: 6px;
  font-weight: 400;
}

.step-product-name {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.4;
  margin-bottom: 8px;
  color: #1A1A1A;
}

.step-product-link {
  font-size: 11px;
  color: #C4A97D;
  font-weight: 400;
  letter-spacing: 0.5px;
}

/* PAGE HEADER */
.page-header {
  text-align: center;
  padding: 60px 20px 40px 20px;
  background-color: #FAF9F6;
}

.page-header h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 52px;
  font-weight: 300;
  color: #1A1A1A;
}

.page-header p {
  font-size: 16px;
  color: #8A8680;
  margin-top: 12px;
  font-weight: 300;
}

/* FOOTER */
footer {
  background-color: #3A3A3A;
  color: #FAF9F6;
  padding: 60px 40px 40px 40px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-column h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 1px;
  margin-bottom: 20px;
  color: #FAF9F6;
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 12px;
}

.footer-column a {
  font-size: 13px;
  color: #B8B5B0;
  transition: color 0.3s ease;
  font-weight: 300;
}

.footer-column a:hover {
  color: #C4A97D;
}

.footer-disclosure {
  font-size: 12px;
  color: #B8B5B0;
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 40px;
}

.footer-bottom {
  border-top: 1px solid #8A8680;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #B8B5B0;
  letter-spacing: 1px;
}

.footer-bottom a {
  color: #B8B5B0;
  transition: color 0.3s ease;
}

.footer-bottom a:hover {
  color: #C4A97D;
}

/* RESPONSIVE DESIGN */
@media (max-width: 900px) {
  .edit-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 20px 60px 20px;
  }

  .hero-title {
    font-size: 32px;
  }

  nav {
    padding: 20px 15px;
  }

  .nav-logo {
    font-size: 20px;
  }

  .nav-links {
    gap: 20px;
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 20px 60px 20px;
  }

  .category-grid-compact {
    padding: 0 20px 60px 20px;
  }

  .hero.hero-compact {
    height: 30vh;
    min-height: 200px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    padding: 0 20px 80px 20px;
  }

  .hero h1 {
    font-size: 48px;
  }

  .section-header h2 {
    font-size: 36px;
  }

  .editorial-strip {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 30px 20px;
  }

  .editorial-strip.reversed {
    direction: ltr;
  }

  .editorial-strip.reversed > * {
    direction: ltr;
  }

  .trending-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 0 20px 80px 20px;
  }

  .routine-step {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 80px;
  }

  .routine-step.reversed {
    direction: ltr;
  }

  .routine-step.reversed > * {
    direction: ltr;
  }

  .step-number {
    left: 0;
    position: relative;
    margin-bottom: 20px;
    font-size: 64px;
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    padding: 0 20px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .announcement-bar {
    font-size: 9px;
    padding: 10px 15px;
  }

  .nav-logo {
    font-size: 24px;
    padding: 20px 15px 10px;
  }

  .nav-links {
    gap: 16px;
    padding: 0 15px 16px;
  }

  .nav-links a {
    font-size: 11px;
  }

  .hero {
    height: auto;
    padding: 40px 20px;
    min-height: 60vh;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero p {
    font-size: 16px;
  }

  .section-header {
    margin: 60px 0 40px 0;
  }

  .section-header h2 {
    font-size: 28px;
  }

  .category-grid,
  .product-grid,
  .trending-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px 60px 15px;
  }

  .category-card {
    aspect-ratio: 1;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trending-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .editorial-strip {
    padding: 20px 15px;
  }

  .editorial-content h3 {
    font-size: 24px;
  }

  .editorial-content p {
    font-size: 14px;
  }

  .routine-container {
    padding: 0 15px 60px 15px;
  }

  .page-header {
    padding: 40px 15px 30px 15px;
  }

  .page-header h1 {
    font-size: 36px;
  }

  footer {
    padding: 40px 15px 30px 15px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-disclosure {
    font-size: 11px;
  }
}
