/* ==========================================================================
   VitalBalans – Premium Hälsa & Wellness Theme
   Modern, immersive, conversion-focused design
   ========================================================================== */

/* ---------- Custom Properties ---------- */
:root {
    --primary: #1a7a5a;
    --primary-light: #22c55e;
    --primary-dark: #0f4d38;
    --primary-glow: rgba(34, 197, 94, 0.15);
    --accent: #f59e0b;
    --accent-light: #fbbf24;
    --accent-warm: #f97316;

    --sage: #86a789;
    --sage-light: #b2c9ad;
    --cream: #fdfbf7;
    --cream-warm: #faf5ed;
    --sand: #f0ebe3;
    --stone: #e8e0d5;

    --text: #1a1a2e;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --white: #ffffff;
    --border: rgba(0,0,0,0.06);
    --border-strong: rgba(0,0,0,0.1);

    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'DM Serif Display', Georgia, 'Times New Roman', serif;

    --r-xl: 24px;
    --r-lg: 16px;
    --r-md: 12px;
    --r-sm: 8px;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.12), 0 8px 20px rgba(0,0,0,0.06);
    --shadow-glow: 0 0 40px rgba(34,197,94,0.12);
    --shadow-card: 0 1px 4px rgba(0,0,0,0.04);

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration: 0.35s;
    --duration-fast: 0.2s;

    --container: 1240px;
    --container-narrow: 760px;
}

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

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

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--cream);
    line-height: 1.75;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-out);
}
a:hover { color: var(--primary-dark); }

::selection {
    background: var(--primary-glow);
    color: var(--primary-dark);
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 28px;
}

.container-narrow { max-width: var(--container-narrow); }

/* ---------- Keyframe Animations ---------- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(32px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes pulse-soft {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes gradient-flow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes blob {
    0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    25% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
    50% { border-radius: 50% 60% 30% 60% / 30% 60% 70% 40%; }
    75% { border-radius: 60% 40% 60% 30% / 60% 40% 30% 70%; }
}

/* Intersection Observer animation classes */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(253, 251, 247, 0.8);
    backdrop-filter: blur(20px) saturate(1.8);
    -webkit-backdrop-filter: blur(20px) saturate(1.8);
    border-bottom: 1px solid var(--border);
    transition: box-shadow var(--duration) var(--ease-out);
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
    transition: transform var(--duration-fast) var(--ease-out);
}

.logo:hover { transform: scale(1.02); color: var(--text); }

.logo-img {
    height: 80px;
    width: auto;
    margin: -18px 0;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.footer-logo-text {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--white);
}

.main-nav {
    display: flex;
    gap: 8px;
}

.main-nav a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.92rem;
    padding: 8px 16px;
    border-radius: 50px;
    transition: all var(--duration-fast) var(--ease-out);
    position: relative;
}

.main-nav a:hover {
    color: var(--primary);
    background: var(--primary-glow);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    flex-direction: column;
    gap: 6px;
    border-radius: var(--r-sm);
    transition: background var(--duration-fast);
}

.nav-toggle:hover { background: var(--sand); }

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all var(--duration) var(--ease-out);
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: 160px 0 180px;
    overflow: hidden;
    background-color: #0f4d38;
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10, 30, 22, 0.55) 0%,
        rgba(15, 77, 56, 0.5) 40%,
        rgba(10, 30, 22, 0.7) 100%
    );
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, var(--cream), transparent);
    pointer-events: none;
}

/* Subtle dot pattern overlay */
.hero .hero-overlay {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    animation: fadeInUp 0.8s var(--ease-out) both;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 28px;
    letter-spacing: 0.03em;
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-light);
    border-radius: 50%;
    animation: pulse-soft 2s ease infinite;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 4.5rem);
    line-height: 1.12;
    margin-bottom: 24px;
    text-shadow: 0 2px 30px rgba(0,0,0,0.15);
}

.hero h1 em {
    font-style: normal;
    position: relative;
    display: inline-block;
}

.hero h1 em::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    right: 0;
    height: 8px;
    background: var(--accent);
    opacity: 0.5;
    border-radius: 4px;
    z-index: -1;
}

.hero p {
    font-size: 1.2rem;
    max-width: 540px;
    margin: 0 auto 40px;
    opacity: 0.92;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 34px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--duration) var(--ease-out);
    border: none;
    font-family: var(--font-body);
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s var(--ease-out);
}

.btn:hover::before { transform: translateX(100%); }

.btn-primary {
    background: var(--accent);
    color: var(--text);
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
}

.btn-primary:hover {
    background: var(--accent-light);
    color: var(--text);
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(245, 158, 11, 0.35);
}

.btn-secondary {
    background: rgba(255,255,255,0.15);
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.25);
    color: var(--white);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* ---------- Trust Bar ---------- */
.trust-bar {
    padding: 48px 0;
    border-bottom: 1px solid var(--border);
    background: var(--white);
}

.trust-items {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 0.92rem;
    font-weight: 500;
}

.trust-icon {
    width: 44px;
    height: 44px;
    background: var(--primary-glow);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

/* ---------- Featured Categories ---------- */
.featured-categories {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-header .section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--primary);
    margin-bottom: 12px;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1.2;
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 520px;
    margin: 0 auto;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.category-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 44px 28px 36px;
    text-align: center;
    text-decoration: none;
    color: var(--text);
    transition: all var(--duration) var(--ease-out);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--duration) var(--ease-out);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
    color: var(--text);
}

.category-card:hover::before { transform: scaleX(1); }

.category-icon {
    font-size: 2.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background: var(--primary-glow);
    border-radius: 20px;
    margin: 0 auto 20px;
    transition: all var(--duration) var(--ease-spring);
}

.category-card:hover .category-icon {
    transform: scale(1.1) rotate(-3deg);
    background: rgba(34, 197, 94, 0.2);
}

.category-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.category-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

/* ---------- Posts Grid ---------- */
.latest-posts {
    padding: 80px 0 100px;
    background: var(--cream-warm);
}

.latest-posts h2, .related-posts h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.8rem);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 32px;
}

.post-card {
    background: var(--white);
    border-radius: var(--r-xl);
    overflow: hidden;
    transition: all var(--duration) var(--ease-out);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border);
    position: relative;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.post-card-image {
    position: relative;
    overflow: hidden;
}

.post-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}

.post-card:hover img {
    transform: scale(1.06);
}

.post-card-body {
    padding: 28px;
}

.post-category {
    display: inline-flex;
    align-items: center;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    background: var(--primary-glow);
    padding: 5px 14px;
    border-radius: 50px;
    margin-bottom: 14px;
}

.post-card h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    line-height: 1.32;
    margin-bottom: 10px;
}

.post-card h3 a {
    color: var(--text);
    transition: color var(--duration-fast);
}
.post-card h3 a:hover { color: var(--primary); }

.post-card p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.post-card time {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
}

.post-card .read-more {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap var(--duration-fast) var(--ease-out);
}

.post-card:hover .read-more { gap: 8px; }

/* ---------- Newsletter ---------- */
.newsletter {
    padding: 100px 0;
}

.newsletter-box {
    position: relative;
    background: linear-gradient(145deg, #0f4d38, #1a7a5a 50%, #22c55e);
    background-size: 200% 200%;
    animation: gradient-flow 10s ease infinite;
    color: var(--white);
    border-radius: var(--r-xl);
    padding: 80px 48px;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(15, 77, 56, 0.3);
}

.newsletter-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
}

.newsletter-box h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    margin-bottom: 14px;
    position: relative;
}

.newsletter-box p {
    opacity: 0.92;
    margin-bottom: 36px;
    font-size: 1.08rem;
    position: relative;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

.newsletter-form input {
    flex: 1;
    padding: 16px 24px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    font-size: 1rem;
    font-family: var(--font-body);
    background: rgba(255,255,255,0.12);
    color: var(--white);
    backdrop-filter: blur(10px);
    transition: all var(--duration-fast);
}

.newsletter-form input::placeholder { color: rgba(255,255,255,0.55); }
.newsletter-form input:focus {
    outline: none;
    border-color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.18);
}

.newsletter-form .btn {
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
}

/* ---------- Article ---------- */
.article {
    padding: 72px 0 80px;
}

.article-header {
    text-align: center;
    margin-bottom: 48px;
    animation: fadeInUp 0.6s var(--ease-out) both;
}

.article-header h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.5vw, 3rem);
    line-height: 1.2;
    margin: 18px 0;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.article-meta {
    display: flex;
    gap: 24px;
    justify-content: center;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.article-hero {
    margin-bottom: 48px;
    border-radius: var(--r-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    animation: scaleIn 0.7s var(--ease-out) 0.2s both;
}

.article-hero img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
}

/* Article Body Typography */
.article-body {
    animation: fadeIn 0.6s var(--ease-out) 0.3s both;
}

.article-body h2 {
    font-family: var(--font-display);
    font-size: 1.65rem;
    margin: 56px 0 18px;
    color: var(--primary-dark);
    position: relative;
    padding-bottom: 12px;
}

.article-body h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 2px;
}

.article-body h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin: 40px 0 14px;
}

.article-body p {
    margin-bottom: 22px;
    color: var(--text);
}

.article-body ul, .article-body ol {
    margin-bottom: 22px;
    padding-left: 24px;
}

.article-body li {
    margin-bottom: 10px;
    padding-left: 4px;
}

.article-body blockquote {
    border-left: 4px solid var(--primary);
    background: linear-gradient(135deg, var(--primary-glow), rgba(134, 167, 137, 0.08));
    padding: 24px 28px;
    margin: 32px 0;
    border-radius: 0 var(--r-lg) var(--r-lg) 0;
    font-style: italic;
    color: var(--primary-dark);
}

.article-body img {
    border-radius: var(--r-lg);
    margin: 32px 0;
    box-shadow: var(--shadow-md);
}

.article-body a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(26, 122, 90, 0.3);
    transition: text-decoration-color var(--duration-fast);
}

.article-body a:hover {
    text-decoration-color: var(--primary);
}

.article-body strong {
    color: var(--text);
    font-weight: 600;
}

/* ---------- Product Box (Affiliate) ---------- */
.article-body .product-box {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 32px;
    margin: 36px 0;
    display: flex;
    gap: 28px;
    align-items: center;
    transition: all var(--duration) var(--ease-out);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.article-body .product-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--accent), var(--accent-warm));
}

.article-body .product-box:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: transparent;
}

.article-body .product-box img {
    width: 140px;
    height: 140px;
    object-fit: contain;
    border-radius: var(--r-md);
    margin: 0;
    box-shadow: none;
}

.article-body .product-box .product-info { flex: 1; }

.article-body .product-box h3 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.article-body .product-box .product-price {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 10px 0;
}

.article-body .product-box .btn {
    margin-top: 14px;
    font-size: 0.88rem;
    padding: 11px 26px;
}

/* ---------- Affiliate Notice ---------- */
.affiliate-notice {
    background: linear-gradient(135deg, var(--sand), var(--stone));
    border-radius: var(--r-lg);
    padding: 24px 28px;
    margin: 56px 0 36px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    border-left: 4px solid var(--accent);
    position: relative;
}

/* ---------- Share ---------- */
.article-share {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
    margin-top: 16px;
}

.article-share span {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.article-share a {
    padding: 9px 18px;
    border-radius: 50px;
    background: var(--white);
    border: 1px solid var(--border);
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--duration-fast) var(--ease-out);
}

.article-share a:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ---------- Category Header ---------- */
.category-header {
    position: relative;
    padding: 80px 0 60px;
    text-align: center;
    background: linear-gradient(180deg, var(--white), var(--cream));
    overflow: hidden;
}

.category-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    opacity: 0.5;
    pointer-events: none;
}

.category-header h1 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4vw, 3rem);
    margin-bottom: 14px;
    position: relative;
}

.category-header p {
    color: var(--text-secondary);
    font-size: 1.12rem;
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

/* ---------- Related Posts ---------- */
.related-posts {
    padding: 80px 0 100px;
    background: var(--cream-warm);
}

/* ---------- Footer ---------- */
.site-footer {
    background: linear-gradient(180deg, #0d3b2a, #091f17);
    color: rgba(255,255,255,0.8);
    padding: 80px 0 40px;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 56px;
    margin-bottom: 56px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo {
    margin-bottom: 8px;
}

.footer-col p {
    color: rgba(255,255,255,0.6);
    font-size: 0.92rem;
    line-height: 1.7;
}

.footer-col h4 {
    color: var(--white);
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 24px;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }

.footer-col a {
    color: rgba(255,255,255,0.55);
    font-size: 0.92rem;
    transition: all var(--duration-fast);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-col a:hover {
    color: var(--primary-light);
    transform: translateX(4px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 28px;
    text-align: center;
    font-size: 0.84rem;
    color: rgba(255,255,255,0.4);
}

.affiliate-disclosure {
    margin-top: 10px;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.3);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .category-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }

    .main-nav {
        display: none;
        position: absolute;
        top: 76px;
        left: 0;
        right: 0;
        background: rgba(253, 251, 247, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px 28px 28px;
        gap: 4px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
    }

    .main-nav.active { display: flex; }

    .main-nav a {
        padding: 12px 16px;
        border-radius: var(--r-md);
    }

    .hero { padding: 80px 0 100px; }

    .hero h1 { font-size: clamp(2.2rem, 6vw, 3rem); }

    .hero-actions { flex-direction: column; align-items: center; }

    .featured-categories { padding: 64px 0; }

    .posts-grid { grid-template-columns: 1fr; }

    .newsletter-form { flex-direction: column; }

    .newsletter-box { padding: 48px 28px; }

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

    .trust-items { gap: 24px; }

    .article-body .product-box {
        flex-direction: column;
        text-align: center;
    }

    .article-body .product-box::before {
        top: 0;
        left: 0;
        right: 0;
        bottom: auto;
        width: auto;
        height: 4px;
    }

    .article-share { flex-wrap: wrap; }
}

@media (max-width: 480px) {
    .category-grid { grid-template-columns: 1fr; }
    .trust-items { flex-direction: column; gap: 16px; }
}

/* ---------- Scroll Progress Bar ---------- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light), var(--accent));
    z-index: 1001;
    transition: width 0.1s linear;
    border-radius: 0 2px 2px 0;
}

/* ---------- Back to Top ---------- */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary);
    cursor: pointer;
    opacity: 0;
    transform: translateY(16px);
    transition: all var(--duration) var(--ease-out);
    box-shadow: var(--shadow-md);
    z-index: 99;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* ---------- Cookie Banner Placeholder ---------- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 20px 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    z-index: 999;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
    transform: translateY(100%);
    transition: transform 0.5s var(--ease-out);
}

.cookie-banner.visible { transform: translateY(0); }

.cookie-banner p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    max-width: 500px;
}

.cookie-banner .btn {
    padding: 10px 24px;
    font-size: 0.85rem;
}