/* ============================================
   NxtLifestyle — Premium Beauty Blog
   Design System & Styles (v2.0 - Magazine Clean)
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,300;0,400;0,700;1,400&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/* --- CSS Variables --- */
:root {
  /* Brand Palette */
  --soft-blush: #F6DDE2;
  --warm-beige: #F5EFEA;
  --cream-white: #FFF9F6;
  --sage-green: #8FAF9C;
  --rose-gold: #C58C85;
  --rose-gold-dark: #A6706A;
  --charcoal: #2E2E2E;

  /* Text */
  --text-primary: #2E2E2E;
  --text-secondary: #5A5A5A;
  --text-muted: #888888;
  --white: #FFFFFF;

  /* UI Elements */
  --border-light: #EAE0D5;
  --border-medium: #D6C2B6;

  /* Shadows (Soft & Diffused) */
  --shadow-sm: 0 4px 6px -1px rgba(197, 140, 133, 0.1), 0 2px 4px -1px rgba(197, 140, 133, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(197, 140, 133, 0.1), 0 4px 6px -2px rgba(197, 140, 133, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(197, 140, 133, 0.1), 0 10px 10px -5px rgba(197, 140, 133, 0.04);
  --shadow-card: 0 12px 24px rgba(46, 46, 46, 0.04);

  /* Sephora / Ulta brand colors */
  --sephora-black: #000000;
  --ulta-orange: #E8620A;
  --amazon-orange: #FF9900;
  --lookfantastic-pink: #E91E8C;
  --cultbeauty-black: #1A1A1A;
  --dermstore-blue: #005BAA;

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Container */
  --container-max: 1200px;
  --container-narrow: 800px;
  --container-wide: 1400px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: var(--cream-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  animation: fadeInPage 0.8s ease-out;
}

@keyframes fadeInPage {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-sm);
}

a {
  text-decoration: none;
  color: var(--rose-gold);
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--rose-gold-dark);
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--charcoal);
  letter-spacing: -0.02em;
}

h1 {
  font-size: 3.5rem;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 0.75em;
}

h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5em;
}

h4 {
  font-size: 1.4rem;
}

h5 {
  font-size: 1.15rem;
}

p {
  margin-bottom: 1.2rem;
  color: var(--text-secondary);
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container-narrow {
  max-width: var(--container-narrow);
}

.container-wide {
  max-width: var(--container-wide);
}

/* --- Reading Progress Bar --- */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: var(--rose-gold);
  z-index: 10000;
  transition: width 0.1s linear;
}

/* ============================================
   NAVIGATION (Clean & Minimal)
   ============================================ */
/* ============================================
   NAVIGATION (Sticky & No Gaps)
   ============================================ */
.navbar {
  position: -webkit-sticky;
  /* Safari */
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 249, 246, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(234, 224, 213, 0.5);
  transition: all var(--transition-base);
  height: 80px;
  display: flex;
  align-items: center;
  margin-top: 0;
}

.navbar.scrolled {
  box-shadow: var(--shadow-sm);
  height: 70px;
}

.nav-inner {
  width: 100%;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
}

.nav-logo-text {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: -0.03em;
}

.nav-logo-text span {
  color: var(--rose-gold);
}

.nav-tagline {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--charcoal);
  position: relative;
  letter-spacing: 0.5px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--rose-gold);
  transition: width var(--transition-base);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--rose-gold);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-search-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--charcoal);
  font-size: 1.2rem;
  padding: var(--space-sm);
  transition: transform var(--transition-fast);
}

.nav-search-btn:hover {
  transform: scale(1.1);
  color: var(--rose-gold);
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
  padding: var(--space-sm);
  z-index: 1001;
}

.hamburger span {
  width: 26px;
  height: 2px;
  background: var(--charcoal);
  transition: all var(--transition-base);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 80px;
    /* Below navbar */
    left: 0;
    right: 0;
    background: rgba(255, 249, 246, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: var(--space-xl);
    gap: var(--space-lg);
    border-bottom: 1px solid var(--border-light);
    transform: translateY(-150%);
    transition: transform 0.4s ease-in-out;
    box-shadow: var(--shadow-md);
    align-items: center;
    /* Center links on mobile */
  }

  .nav-links.active {
    transform: translateY(0);
  }

  .nav-links a {
    font-size: 1.2rem;
    /* Larger text for mobile tap targets */
    width: 100%;
    text-align: center;
    padding: 10px 0;
  }

  .nav-links a::after {
    display: none;
    /* Remove underline active state for cleaner mobile look */
  }
}

/* Search Overlay */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 249, 246, 0.98);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.search-overlay.active {
  opacity: 1;
  visibility: visible;
}

.search-overlay-inner {
  width: 100%;
  max-width: 700px;
  padding: var(--space-xl);
}

.search-overlay input {
  width: 100%;
  padding: var(--space-lg) 0;
  font-size: 2rem;
  font-family: var(--font-heading);
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--border-medium);
  color: var(--charcoal);
  outline: none;
  text-align: center;
  transition: border-color var(--transition-fast);
}

.search-overlay input::placeholder {
  color: var(--text-muted);
  opacity: 0.5;
}

.search-overlay input:focus {
  border-color: var(--rose-gold);
}

.search-close {
  position: absolute;
  top: var(--space-xl);
  right: var(--space-xl);
  background: none;
  border: none;
  color: var(--charcoal);
  font-size: 2.5rem;
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.search-close:hover {
  transform: rotate(90deg);
  color: var(--rose-gold);
}

.search-results {
  margin-top: var(--space-xl);
  max-height: 50vh;
  overflow-y: auto;
  text-align: left;
}

.search-result-item {
  padding: var(--space-md);
  border-bottom: 1px solid var(--border-light);
  transition: background var(--transition-fast);
}

.search-result-item:hover {
  background: var(--warm-beige);
}

.search-result-item a {
  color: var(--charcoal);
  font-size: 1.2rem;
  font-family: var(--font-heading);
}

.search-result-item .search-result-cat {
  font-size: 0.7rem;
  color: var(--rose-gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

/* ============================================
   HERO SECTION (Cozy & Premium)
   ============================================ */
.hero {
  padding: 80px 0 100px;
  /* Reduced from 160px to account for sticky nav flow */
  background-color: var(--warm-beige);
  position: relative;
  overflow: hidden;
}

/* Abstract Background Shapes using Soft Colors */
.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--soft-blush) 0%, transparent 70%);
  opacity: 0.6;
  filter: blur(60px);
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--cream-white) 0%, transparent 70%);
  opacity: 0.8;
  filter: blur(50px);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 850px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--rose-gold);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--rose-gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: var(--space-lg);
}

.hero h1 {
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: var(--space-lg);
  color: var(--charcoal);
  letter-spacing: -2px;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-2xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
}


/* --- Buttons (Soft & Feminine) --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-primary {
  background-color: var(--rose-gold);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--rose-gold-dark);
  color: var(--white);
}

/* Premium Buy Button (Gradient) */
.btn-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  background: linear-gradient(135deg, var(--rose-gold) 0%, #d89f97 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-buy::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #d89f97 0%, var(--rose-gold) 100%);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
}

.btn-buy:hover::before {
  opacity: 1;
}

.btn-buy:hover {
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(197, 140, 133, 0.4);
}


.btn-primary:hover {
  background-color: var(--rose-gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(197, 140, 133, 0.5);
  color: var(--white);
}

.btn-secondary {
  background-color: var(--white);
  color: var(--charcoal);
  border: 1px solid var(--border-medium);
}

.btn-secondary:hover {
  border-color: var(--rose-gold);
  color: var(--rose-gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-sm {
  padding: 10px 24px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 18px 48px;
  font-size: 1.1rem;
}

/* Affiliate Buttons */
.affiliate-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.btn-affiliate {
  padding: 8px 16px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  color: var(--white);
  transition: transform var(--transition-fast);
}

.btn-affiliate:hover {
  transform: translateY(-2px);
  color: var(--white);
}

.btn-sephora {
  background: var(--sephora-black);
}

.btn-ulta {
  background: var(--ulta-orange);
}

.btn-amazon {
  background: var(--amazon-orange);
  color: #000;
}

.btn-dermstore {
  background: var(--dermstore-blue);
}

/* ============================================
   SECTIONS & CARDS
   ============================================ */
section {
  padding: var(--space-4xl) 0;
}

@media (min-width: 1024px) {
  section {
    padding: 100px 0;
  }
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-tag {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--rose-gold);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  display: block;
}

.section-header h2 {
  font-size: 2.8rem;
  color: var(--charcoal);
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--soft-blush);
  margin: var(--space-sm) auto 0;
}

/* Category Cards (Text-Only Design) */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: var(--space-md);
}

.category-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-lg) var(--space-sm);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  border: 1px solid var(--cream-white);
  border-top: 3px solid var(--soft-blush);
  /* Color accent instead of image */
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.category-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-color: var(--soft-blush);
  background: #FFFBF9;
}

.category-icon {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
  display: block;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s;
}

.category-card:hover .category-icon {
  filter: none;
  opacity: 1;
  transform: scale(1.1);
}

.category-card h3 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin: 0;
  color: var(--text-dark);
}

/* Article Cards (Text-Only Magazine Style) */
.articles-grid,
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-xl);
}

/* Explicit Grid Utilities */
.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {

  .grid-3,
  .grid-4,
  .articles-grid,
  .categories-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {

  .articles-grid,
  .blog-grid,
  .grid-3,
  .grid-4,
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.article-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

/* Decorative Top Bar (Visual Header) */
.article-card::before {
  content: '';
  display: block;
  height: 6px;
  background: linear-gradient(90deg, var(--soft-blush), var(--rose-gold));
  width: 100%;
}

.article-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--soft-blush);
}

.article-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.article-card-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--rose-gold-dark);
  background: transparent;
  padding: 0;
  margin-bottom: 0.75rem;
}

.article-card-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  display: flex;
  gap: 12px;
  align-items: center;
}

.article-card h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-weight: 700;
}

.article-card h3 a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
  background-image: linear-gradient(var(--rose-gold), var(--rose-gold));
  background-size: 0% 2px;
  background-repeat: no-repeat;
  background-position: left bottom;
  padding-bottom: 2px;
}

.article-card:hover h3 a {
  color: var(--rose-gold-dark);
  background-size: 100% 2px;
}

.article-card p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
  /* Push button to bottom */
}

.read-more {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--rose-gold-dark);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: auto;
  transition: gap 0.3s ease;
}

.read-more::after {
  content: '→';
  margin-left: 6px;
  transition: transform 0.3s ease;
}

.article-card:hover .read-more {
  gap: 8px;
}

.article-card:hover .read-more::after {
  transform: translateX(4px);
}




/* --- Breadcrumbs --- */
.breadcrumbs {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.breadcrumbs a {
  color: var(--text-secondary);
  transition: color 0.2s;
}

.breadcrumbs a:hover {
  color: var(--rose-gold);
}

.breadcrumbs span {
  color: var(--text-muted);
  opacity: 0.6;
}

.breadcrumbs .current {
  color: var(--charcoal);
  font-weight: 600;
}

.article-card-body {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.article-card-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
  display: flex;
  gap: var(--space-md);
}

.article-card h3 {
  font-size: 1.4rem;
  margin-bottom: var(--space-md);
  line-height: 1.3;
}

.article-card h3 a {
  color: var(--charcoal);
  transition: color 0.2s;
}

.article-card h3 a:hover {
  color: var(--rose-gold);
}

.article-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
  flex-grow: 1;
}

.read-more {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--rose-gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 2px solid transparent;
  width: fit-content;
}

.read-more:hover {
  border-bottom-color: var(--rose-gold);
}


/* ============================================
   ARTICLE LAYOUT (Clean & Readable)
   ============================================ */
.article-hero {
  padding: 140px 0 60px;
  background-color: var(--warm-beige);
  /* Fallback */
  text-align: center;
}

.article-badge {
  display: inline-block;
  background: var(--rose-gold);
  color: var(--white);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-lg);
}

.article-title {
  font-size: 3rem;
  max-width: 900px;
  margin: 0 auto var(--space-md);
  color: var(--charcoal);
}

.article-subtitle {
  font-size: 1.3rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto var(--space-xl);
  font-weight: 300;
}

.article-meta {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 270px;
  gap: var(--space-3xl);
  margin-top: var(--space-3xl);
  align-items: start;
}

.article-sidebar {
  border-left: 1px solid var(--border-light);
  padding-left: var(--space-lg);
}

@media (max-width: 1024px) {
  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    display: none;
  }
}

/* TOC Widget */
.toc-widget {
  background: var(--cream-white);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.toc-widget h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.toc-list li {
  margin-bottom: 0.5rem;
}

.toc-list a {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.toc-list a:hover {
  color: var(--rose-gold);
}

/* Main Content Typography */
.article-content {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #333;
}

.article-content p {
  margin-bottom: 1.5rem;
}

.article-content h2 {
  font-size: 2rem;
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--soft-blush);
}

.article-content h3 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--charcoal);
}

.article-content ul,
.article-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

/* Product Box (Refined Phase 10) */
.product-card {
  background: var(--white);
  border: 1px solid rgba(226, 185, 188, 0.3);
  /* Soft rose border */
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  margin: 3rem 0;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  /* Ultra soft shadow */
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
  border-color: var(--rose-gold);
}

.product-card .product-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--rose-gold), #d48ba8);
  color: var(--white);
  padding: 6px 20px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  box-shadow: 0 4px 10px rgba(212, 139, 168, 0.3);
}

.product-card h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  color: var(--charcoal);
}

.product-rating {
  color: #FFC107;
  font-size: 1rem;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.product-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 1.5rem;
  font-family: var(--font-heading);
}

.btn-buy {
  display: inline-block;
  background: var(--charcoal);
  color: var(--white);
  padding: 12px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-buy:hover {
  background: var(--rose-gold);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(226, 185, 188, 0.4);
}

.highlight-box {
  background-color: var(--soft-blush);
  padding: 2rem;
  border-radius: var(--radius-md);
  margin: 2rem 0;
  border-left: 4px solid var(--rose-gold);
}

/* ============================================
   NEWSLETTER
   ============================================ */
.newsletter-section {
  background-color: var(--warm-beige);
  padding: var(--space-3xl) 0;
  margin-top: var(--space-4xl);
}

.newsletter-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-inner h2 {
  margin-bottom: var(--space-sm);
}

.newsletter-form {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.newsletter-form input {
  flex: 1;
  padding: 12px 20px;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  outline: none;
  font-family: var(--font-body);
}

.newsletter-form button {
  padding: 12px 28px;
  background: var(--charcoal);
  color: var(--white);
  border: none;
  border-radius: var(--radius-full);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.newsletter-form button:hover {
  background: var(--rose-gold);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background-color: #000000;
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-4xl) 0 var(--space-xl);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer h4 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: var(--space-lg);
}

.footer ul li {
  margin-bottom: 0.8rem;
}

.footer-social-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer a {
  color: rgba(255, 255, 255, 0.7);
}

.footer a:hover {
  color: var(--rose-gold-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-social {
  display: flex;
  gap: var(--space-md);
  font-size: 1.2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  .hero {
    padding: 120px 0 60px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .nav-links {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    align-items: center;
    padding: var(--space-xl) 0;
    gap: var(--space-lg);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-150%);
    transition: transform 0.4s ease-in-out;
    visibility: hidden;
    z-index: 999;
  }

  .nav-links.active {
    display: flex;
    /* Ensure flex is active */
    transform: translateY(0);
    visibility: visible;
  }

  /* Hamburger Menu */
  .hamburger {
    display: flex;
  }
}

/* ============================================
   PREMIUM INTERACTIONS
   ============================================ */

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--rose-gold);
  color: var(--white);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 15px rgba(197, 140, 133, 0.4);
  opacity: 1;
  /* Changed from 0 to 1 for testing, JS will handle fade */
  transform: translateY(100px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 990;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--rose-gold-dark);
  transform: translateY(-5px);
}

/* Dark Mode Toggle */
.theme-toggle {
  position: fixed;
  bottom: 30px;
  left: 30px;
  background: var(--white);
  color: var(--charcoal);
  border: 1px solid var(--border-light);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-md);
  z-index: 990;
  transition: all 0.3s;
}

.theme-toggle:hover {
  transform: rotate(15deg) scale(1.1);
}

/* Load More Button Container */
.load-more-container {
  text-align: center;
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

/* Category Page Specifics (Phase 12) */
.category-page-container {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-4xl);
}

/* ============================================
   Phase 13: UI Enhancements
   ============================================ */

/* 1. Top Deals Banner */
.top-deals-banner {
  background: var(--charcoal);
  color: var(--white);
  text-align: center;
  padding: 8px 0;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  position: relative;
  /* Changed from sticky to avoid overlapping navbar */
  z-index: 1001;
  /* Above navbar */
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.top-deals-banner a {
  color: var(--rose-gold);
  text-decoration: underline;
}

/* 2. Comparison Table */
.comparison-table-wrapper {
  overflow-x: auto;
  margin: var(--space-xl) 0;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 600px;
  /* Force scroll on mobile */
}

.comparison-table th {
  background: var(--rose-gold-light);
  color: var(--charcoal);
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

.comparison-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  background: var(--white);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table .product-thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

/* 3. Exit Intent Modal */
.exit-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.exit-modal.show {
  opacity: 1;
  pointer-events: auto;
}

.exit-modal-content {
  background: var(--white);
  padding: var(--space-2xl);
  border-radius: var(--radius-lg);
  text-align: center;
  max-width: 450px;
  width: 90%;
  position: relative;
  box-shadow: var(--shadow-lg);
  border-top: 5px solid var(--rose-gold);
}

.exit-modal-content h2 {
  font-size: 1.8rem;
  margin-bottom: var(--space-md);
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
}

.close-modal:hover {
  color: var(--charcoal);
}

.hidden-card {
  display: none !important;
}

/* Newsletter Glassmorphism */
.newsletter-section {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.4));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.03);
}

/* DARK MODE VARS */
body.dark-mode {
  --cream-white: #121212;
  --white: #1e1e1e;
  --warm-beige: #1a1a1a;
  --soft-blush: #2d2d2d;
  --text-primary: #e0e0e0;
  --text-secondary: #b0b0b0;
  --text-muted: #888;
  --charcoal: #ffffff;
  --border-light: #333;
  --border-medium: #444;
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.3);
  --shadow-card: 0 12px 24px rgba(0, 0, 0, 0.4);
}

body.dark-mode .article-card {
  border-left-color: var(--rose-gold);
}

body.dark-mode .navbar {
  background: rgba(30, 30, 30, 0.95);
  border-bottom: 1px solid #333;
}

body.dark-mode .nav-links {
  background: #1e1e1e;
  border-bottom: 1px solid #333;
}

body.dark-mode .hamburger span {
  background: #fff;
}

body.dark-mode .newsletter-section {
  background: linear-gradient(135deg, rgba(30, 30, 30, 0.8), rgba(30, 30, 30, 0.6));
  border-top: 1px solid #444;
}

/* ============================================
   SIDEBAR LAYOUT (Phase 5)
   ============================================ */

.article-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-xl);
}

@media (min-width: 900px) {
  .article-layout {
    grid-template-columns: 2.2fr 1fr;
    /* Optimized for readability */
    align-items: start;
  }
}

.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  position: sticky;
  top: 100px;
  /* Sticky sidebar */
}

.sidebar-widget {
  background: var(--white);
  padding: var(--space-lg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.sidebar-widget h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  margin-bottom: var(--space-md);
  border-bottom: 2px solid var(--rose-gold-light);
  padding-bottom: 0.5rem;
  display: inline-block;
}

.sidebar-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-links li {
  margin-bottom: 0.8rem;
  border-bottom: 1px dashed var(--border-light);
  padding-bottom: 0.8rem;
}

.sidebar-links li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.sidebar-links a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s;
  font-size: 0.95rem;
  display: block;
}

.sidebar-links a:hover {
  color: var(--rose-gold);
  transform: translateX(5px);
}

/* Small sidebar search */
.sidebar-search {
  display: flex;
  gap: 8px;
  margin-bottom: 0;
}

.sidebar-search input {
  flex: 1;
  padding: 8px;
  border: 1px solid var(--border-medium);
  border-radius: 4px;
}

/* Dark Mode Sidebar */
body.dark-mode .sidebar-widget {
  background: var(--white);
  /* Uses dark mode var */
  border-color: var(--border-medium);
}

body.dark-mode .sidebar-links li {
  border-bottom-color: var(--border-medium);
}

/* ============================================
   SOCIAL SHARE (Unified Component)
   ============================================ */
.share-bar {
  display: flex;
  gap: 10px;
  z-index: 100;
}

.social-share-floating {
  position: fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 100;
}

.share-bar-inline {
  margin: 2rem 0;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  justify-content: center;
  flex-wrap: wrap;
}

.share-bar-inline::before {
  content: 'Share this guide:';
  display: block;
  width: 100%;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Refined Share Buttons (Minimalist -> Color on Hover) */
.share-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1px solid var(--border-medium);
  color: var(--text-secondary);
  text-decoration: none;
  font-family: 'Lato', sans-serif;
  font-size: 1.1rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.share-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  transition: fill 0.3s ease;
}

.share-btn:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
  color: var(--white);
}

/* Hover Colors */
.share-fb:hover {
  background: #1877f2;
}

.share-tw:hover {
  background: #000000;
}

.share-pn:hover {
  background: #bd081c;
}

.share-wa:hover {
  background: #25d366;
}

.share-li:hover {
  background: #0077b5;
}

.share-em:hover {
  background: #888888;
}

@media (max-width: 1024px) {
  .share-bar-floating {
    display: none;
  }
}

@media (max-width: 768px) {
  .share-bar-inline {
    gap: 8px;
  }

  .share-btn {
    width: 38px;
    height: 38px;
    font-size: 0.9rem;
  }
}

/* ============================================
   HOMEPAGE ENHANCEMENTS (Phase 6)
   ============================================ */
.hero {
  position: relative;
  background: linear-gradient(135deg, #fff0f3 0%, #fff5f0 100%);
  /* Soft Rose/Peach Gradient */
  padding: 4rem 0;
  /* Reduced from 6rem */
  text-align: center;
  overflow: hidden;
  min-height: 600px;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 300px;
  height: 300px;
  background: rgba(226, 185, 188, 0.1);
  border-radius: 50%;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -50px;
  left: -50px;
  width: 200px;
  height: 200px;
  background: rgba(226, 185, 188, 0.15);
  border-radius: 50%;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  color: var(--charcoal);
  margin-bottom: 1.5rem;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin: 0 auto 2.5rem;
  font-weight: 300;
}

/* Refined Featured Section */
.featured-grid .article-card {
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s, box-shadow 0.3s;
}

.featured-grid .article-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.featured-grid .article-card h3 {
  font-size: 1.6rem;
}

/* Why Trust Us Section */
.trust-section {
  padding: var(--space-3xl) 0;
  background: var(--white);
  text-align: center;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2xl);
  margin-top: var(--space-xl);
}

.trust-item img {
  width: 60px;
  height: 60px;
  margin-bottom: var(--space-md);
  opacity: 0.8;
}

.trust-item h3 {
  font-size: 1.2rem;
  margin-bottom: var(--space-sm);
  color: var(--charcoal);
}

.trust-item p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .trust-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .category-tabs {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding-left: 20px;
    padding-right: 20px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    mask-image: linear-gradient(to right, transparent, black 20px, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 20px, black 90%, transparent);
  }
}

/* ============================================
   CATEGORY TABS (Redesign Phase 8)
   ============================================ */
.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 40px 0;
  padding-bottom: 10px;
}

.tab-btn {
  appearance: none;
  background: var(--white);
  border: 1px solid var(--border-medium);
  border-radius: 50px;
  padding: 12px 24px;
  font-family: var(--font-heading);
  /* Playfair Display */
  font-size: 1rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tab-btn:hover {
  transform: translateY(-2px);
  border-color: var(--rose-gold);
  color: var(--rose-gold);
  box-shadow: 0 6px 15px rgba(226, 185, 188, 0.2);
}

.tab-btn.active {
  background: var(--rose-gold);
  color: var(--white);
  border-color: var(--rose-gold);
  box-shadow: 0 8px 20px rgba(226, 185, 188, 0.4);
  transform: translateY(-2px);
}

/* Emoji formatting in tabs */
.tab-btn span {
  font-style: normal;
}