/* Global Styles */
:root {
    --primary-color: #008080;
    /* Teal */
    --secondary-color: #FA8072;
    /* Salmon */
    --accent-color: #FFD700;
    /* Gold */
    --text-color: #333;
    --bg-color: #F8F9FA;
    --light-bg: #fff;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

body.dark-mode {
    --bg-color: #121212;
    --light-bg: #1E1E1E;
    --text-color: #E0E0E0;
    --primary-color: #4DB6AC;
    /* Lighter Teal for dark mode */
    --secondary-color: #FF8A80;
    /* Lighter Salmon */
}

/* Dark Mode Specific Adjustments */
body.dark-mode .card,
body.dark-mode .product-card,
body.dark-mode .blog-card,
body.dark-mode .advice-item,
body.dark-mode .advice-box,
body.dark-mode header,
body.dark-mode .nav-links {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    border-color: #333;
}

body.dark-mode .hero {
    background-blend-mode: multiply;
    /* Make hero image darker */
}


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

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

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

/* Header */
/* Header - Premium Glass Design */
header {
    background-color: transparent;
    /* Initially transparent */
    box-shadow: none;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.4s ease;
    padding: 10px 0;
}

/* Scrolled State (added via JS) */
header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 0;
}

body.dark-mode header.scrolled {
    background-color: rgba(30, 30, 30, 0.95);
    /* border-bottom: 1px solid #333; REMOVED per user request */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    /* Enhanced shadow instead */
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    transition: height 0.4s ease;
}

header.scrolled .container {
    height: 60px;
    /* Shrink on scroll */
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    /* White on Hero */
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.4s;
}

header.scrolled .logo {
    color: var(--primary-color);
    /* Color on scroll */
}

/* Color on scroll */
/* Color on scroll */

body.dark-mode header.scrolled .logo {
    color: #fff;
}

.logo span {
    color: var(--secondary-color);
}

.nav-links {
    display: flex;
    gap: 20px;
    /* Reduced from 40px to fit Mix & Match */
    margin-top: 10px;
}

.nav-links a {
    font-weight: 400;
    font-size: 0.85rem;
    /* Slightly smaller for more space */
    color: #fff;
    /* White on Hero */
    text-transform: uppercase;
    letter-spacing: 1px;
    /* Reduced from 1.5px */
    position: relative;
    transition: color 0.4s;
    white-space: nowrap;
    /* Prevent individual items from wrapping */
}

header.scrolled .nav-links a {
    color: var(--text-color);
}

body.dark-mode header.scrolled .nav-links a {
    color: #f0f0f0;
}

/* ... existing code ... */

/* Button Overrides for Dark Mode */
body.dark-mode .btn-shop,
body.dark-mode .btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

body.dark-mode .btn-shop:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

body.dark-mode .filter-btn {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

body.dark-mode .filter-btn.active,
body.dark-mode .filter-btn:hover {
    background-color: var(--primary-color);
    color: #fff;
}


.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -5px;
    left: 0;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

/* Specific overrides for subpages where header needs to be visible immediately if no hero */
/* Note: We will handle this by adding a class to body or header on subpages if needed, 
   but for now we assume all pages have a "Hero" or "Page Header" at top. */

/* Burger Menu */
.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('images/bikinimode_hero_1770416261430.png') no-repeat center center/cover;
    /* Fallback if image not generated yet */
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding-top: 80px;
}

.hero-content {
    max-width: 800px;
    padding: 20px;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    margin: 10px;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--secondary-color);
    color: #fff;
    border: 2px solid var(--secondary-color);
}

.btn-primary:hover {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid #fff;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #fff;
    color: var(--primary-color);
}

.btn-tertiary {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.95rem;
    font-family: var(--font-body);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-tertiary:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Sections General */
.section {
    padding: 80px 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 15px auto 0;
}

.section-subtitle {
    text-align: center;
    margin-top: -30px;
    margin-bottom: 50px;
    color: #666;
    font-style: italic;
}

.bg-light {
    background-color: #fff;
}

/* Trends Grid */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background-color: var(--light-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card-img {
    height: 250px;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-weight: 600;
}

.card-img-top {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.card-body {
    padding: 25px;
    text-align: center;
}

.card-body h3 {
    font-family: var(--font-heading);
    margin-bottom: 15px;
    color: var(--text-color);
}

.card-body p {
    color: #666;
    margin-bottom: 20px;
}

.btn-link {
    color: var(--secondary-color);
    font-weight: 600;
}

.btn-link:hover {
    text-decoration: underline;
}

/* Advice Grid */
.advice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.advice-item {
    background-color: var(--bg-color);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #eee;
    transition: var(--transition);
}

.advice-item:hover {
    border-color: var(--secondary-color);
}

.advice-item h3 {
    font-family: var(--font-heading);
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--light-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: var(--transition);
}

.product-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--accent-color);
    color: #000;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-img {
    height: 200px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.product-info {
    padding: 15px;
    text-align: center;
}

.product-info h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.price {
    display: block;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 10px;
}

.btn-shop {
    display: inline-block;
    padding: 8px 20px;
    background-color: var(--text-color);
    color: #fff;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-shop:hover {
    background-color: var(--secondary-color);
}

/* Footer */
footer {
    background-color: #222;
    color: #fff;
    padding: 60px 0 20px;
}

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

.footer-col h5 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #bbb;
}

.footer-col ul li a:hover {
    color: #fff;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 20px;
    color: #666;
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0px;
        height: 100vh;
        /* Full height */
        top: 0;
        /* Cover top too */
        background-color: var(--light-bg);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 60%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        padding-top: 100px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    .nav-links a {
        color: var(--text-color);
        /* Dark text on mobile menu */
        font-size: 1.2rem;
        margin: 15px 0;
    }

    body.dark-mode .nav-links a {
        color: var(--text-color);
    }

    /* Burger Color logic */
    .burger div {
        background-color: #fff;
        /* White on Hero */
    }

    header.scrolled .burger div {
        background-color: var(--text-color);
        /* Dark on Scroll */
    }

    body.dark-mode header.scrolled .burger div {
        background-color: #fff;
    }

    .nav-links li {
        opacity: 0;
    }

    .burger {
        display: block;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    /* Fix for mobile text overlap */
    .hero {
        padding-top: 120px;
        /* More space for header */
        align-items: flex-start;
        /* Push content towards top but under padding */
        min-height: 100vh;
        height: auto;
        /* Allow growth */
    }

    .hero-content {
        padding-top: 40px;
        /* Additional optical spacing */
    }
}

.nav-active {
    transform: translateX(0%);
}

@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.toggle .line2 {
    opacity: 0;
}

.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Article Styles */
.page-header {
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 120px 0 60px;
}

.page-header h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 10px;
}

.article-content article {
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.article-content h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 20px;
}

.article-content p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.8;
}

.article-img-full {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 30px;
}

.quote-block {
    background-color: var(--bg-color);
    border-left: 5px solid var(--secondary-color);
    padding: 20px;
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.2rem;
    color: #555;
    margin: 40px 0;
}

.advice-box {
    background-color: var(--light-bg);
    border: 1px solid #eee;
    padding: 25px;
    border-radius: 10px;
    margin-top: 20px;
}

.advice-box h3 {
    color: var(--secondary-color);
    margin-top: 20px;
    margin-bottom: 10px;
}

.advice-box ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 20px;
}

.cta-box {
    background-color: var(--accent-color);
    padding: 40px;
    text-align: center;
    border-radius: 10px;
    margin-top: 80px;
}

.cta-box h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 10px;
}

/* Body Type Graphics */
.guide-section {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 80px;
}

.guide-img {
    width: 200px;
    height: auto;
    flex-shrink: 0;
    margin-top: 20px;
}

@media screen and (max-width: 768px) {
    .guide-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .guide-section .advice-box {
        text-align: left;
    }
}

/* Magazine / Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-tag {
    font-size: 0.8rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    font-weight: 600;
}

.blog-content h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.blog-content p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
}

.read-more {
    font-weight: 600;
    color: var(--primary-color);
    margin-top: auto;
}

/* Quiz Styles */
.quiz-wrapper {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    padding: 40px 20px;
}

.quiz-card {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.quiz-card h2 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 20px;
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 30px;
}

.option-btn {
    background: var(--light-bg);
    border: 2px solid #eee;
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
    text-align: left;
}

.option-btn:hover {
    background: var(--secondary-color);
    color: #fff;
    border-color: var(--secondary-color);
    transform: translateX(5px);
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: #eee;
    border-radius: 5px;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: var(--secondary-color);
    width: 0%;
    transition: width 0.3s ease;
}

.hidden {
    display: none;
}

.result-img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 10px;
    margin: 20px 0;
}

.result-desc {
    background: var(--light-bg);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    text-align: left;
}

.result-desc ul {
    list-style: disc;
    padding-left: 20px;
    margin-top: 10px;
}

.highlight-text {
    color: var(--secondary-color);
    font-size: 2rem;
    font-family: var(--font-heading);
}

/* 404 Page */
.error-title {
    font-size: 8rem;
    font-family: var(--font-heading);
    color: var(--secondary-color);
    line-height: 1;
    margin-bottom: 20px;
    opacity: 0.8;
}

.error-subtitle {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 20px;
}

.error-text {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
}

@media screen and (max-width: 768px) {
    .error-title {
        font-size: 5rem;
    }

    .error-subtitle {
        font-size: 1.8rem;
    }
}

/* Shop Styles */
.shop-controls {
    margin-bottom: 40px;
    text-align: center;
}

#search-input {
    padding: 15px 20px;
    width: 100%;
    max-width: 500px;
    border: 2px solid #ddd;
    border-radius: 30px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
    margin-bottom: 20px;
    font-family: var(--font-body);
}

#search-input:focus {
    border-color: var(--primary-color);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
    font-family: var(--font-body);
    font-weight: 600;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: #fff;
}

/* Global Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 15vh;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.close-search {
    position: absolute;
    top: 30px;
    right: 40px;
    background: none;
    border: none;
    font-size: 3rem;
    cursor: pointer;
    color: var(--text-color);
}

.search-content {
    width: 90%;
    max-width: 600px;
}

#global-search-input {
    width: 100%;
    border: none;
    border-bottom: 3px solid var(--primary-color);
    font-size: 2rem;
    padding: 10px 0;
    background: transparent;
    font-family: var(--font-heading);
    color: var(--text-color);
    outline: none;
}

.search-results {
    margin-top: 30px;
    max-height: 60vh;
    overflow-y: auto;
}

.search-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
    color: var(--text-color);
    text-decoration: none;
    transition: background 0.2s;
}

.search-result-item:hover {
    background: #f9f9f9;
}

.sr-title {
    font-weight: 600;
    font-size: 1.1rem;
}

.sr-type {
    font-size: 0.9rem;
    color: var(--primary-color);
}

.no-results {
    text-align: center;
    color: #888;
    margin-top: 20px;
}

/* Nav Search Icon */
.nav-search-item {
    display: flex;
    align-items: center;
}

.search-trigger-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    margin-left: 10px;
}

.search-trigger-btn svg {
    width: 22px;
    height: 22px;
    stroke: var(--text-color);
    transition: stroke 0.3s;
}

.search-trigger-btn:hover svg {
    stroke: var(--primary-color);
}

/* Theme Toggle Button */
.theme-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    padding: 0 10px;
    transition: transform 0.3s;
    line-height: 1;
}

.theme-toggle-btn:hover {
    transform: rotate(20deg);
}

/* Table Styles */
.table-container {
    overflow-x: auto;
    margin: 30px 0;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.styled-table {
    border-collapse: collapse;
    margin: 0;
    font-size: 0.95rem;
    font-family: var(--font-body);
    width: 100%;
    background-color: var(--light-bg);
}

.styled-table thead tr {
    background-color: var(--primary-color);
    color: #ffffff;
    text-align: left;
}

.styled-table th,
.styled-table td {
    padding: 12px 15px;
}

.styled-table tbody tr {
    border-bottom: 1px solid #dddddd;
}

.styled-table tbody tr:nth-of-type(even) {
    background-color: var(--bg-color);
}

.styled-table tbody tr:last-of-type {
    border-bottom: 2px solid var(--primary-color);
}

.styled-table a {
    color: var(--secondary-color);
    font-weight: 600;
}

/* Affiliate Box */
.affiliate-box {
    margin-top: 15px;
    margin-bottom: 30px;
}

.internal-links-box ul li {
    margin-bottom: 10px;
}

.internal-links-box ul li a {
    color: var(--primary-color);
    font-weight: 600;
}


/* Mix & Match Configurator Styles */
.configurator-section {
    background-color: var(--light-bg);
}

.config-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    /* Controls | Preview */
    gap: 50px;
    align-items: start;
}

@media (max-width: 900px) {
    .config-grid {
        grid-template-columns: 1fr;
    }

    .config-preview-container {
        order: -1;
        /* Show preview on top on mobile */
    }
}

/* Preview Stage */
.config-preview-container {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    text-align: center;
    position: sticky;
    top: 100px;
}

.preview-stage {
    width: 300px;
    height: 450px;
    background-color: #f4f4f4;
    border-radius: 15px;
    /* Soft edges */
    margin: 0 auto 20px;
    position: relative;
    overflow: hidden;
    /* Create a subtle mannequin silhouette using CSS gradients/shapes? 
       For simplicity, we use a simple stacked block layout that changes color/pattern */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 2px solid #eee;
}

.preview-layer {
    width: 60%;
    transition: all 0.5s ease;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.top-layer {
    height: 120px;
    margin-bottom: 20px;
    /* Default Shape for Top */
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
    background-color: #ddd;
    /* Default Placeholder */
}

.bottom-layer {
    height: 100px;
    /* Default Shape for Bottom */
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
    border-bottom-left-radius: 100px;
    /* High leg cut */
    border-bottom-right-radius: 100px;
    background-color: #ddd;
}

.preview-info h3 {
    margin-bottom: 10px;
    font-family: var(--font-heading);
}

.preview-info p {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Controls */
.control-group {
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.control-group h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
    padding-bottom: 5px;
}

.style-selector {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 15px;
}

.config-option {
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.2s;
}

.config-option:hover {
    transform: translateY(-3px);
}

.config-option.active {
    border-color: var(--secondary-color);
    box-shadow: 0 5px 15px rgba(250, 128, 114, 0.3);
}

.option-preview {
    height: 60px;
    width: 100%;
    margin-bottom: 5px;
    border-radius: 5px;
}

.option-name {
    font-size: 0.8rem;
    text-align: center;
    display: block;
    line-height: 1.2;
    padding: 0 5px 5px;
}

/* Pattern Classes for CSS Visualizer */
.pattern-neon {
    background: #FF1493;
}

.pattern-retro {
    background: conic-gradient(from 45deg, #A8E6CF 25%, #FFD3B6 25% 50%, #A8E6CF 50% 75%, #FFD3B6 75%);
    background-size: 20px 20px;
}

.pattern-black {
    background: #000;
}

.pattern-eco {
    background: #556B2F;
}

/* Olive */
.pattern-tropical {
    background: radial-gradient(circle, #00ff00 10%, #006400 90%);
}

.pattern-stripes {
    background: repeating-linear-gradient(45deg, #000080, #000080 10px, #fff 10px, #fff 20px);
}

/* Newsletter Popup Styles */
.newsletter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 3000;
    /* Highest priority */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.newsletter-overlay.active {
    opacity: 1;
    visibility: visible;
}

.newsletter-modal {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 450px;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.newsletter-overlay.active .newsletter-modal {
    transform: translateY(0);
}

.close-newsletter {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
}

.close-newsletter:hover {
    color: var(--primary-color);
}

.newsletter-content h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.newsletter-content p {
    margin-bottom: 25px;
    line-height: 1.6;
}

.newsletter-content input {
    width: 100%;
    padding: 12px;
    border: 2px solid #eee;
    border-radius: 8px;
    margin-bottom: 15px;
    font-family: var(--font-body);
}

.newsletter-content input:focus {
    border-color: var(--secondary-color);
    outline: none;
}

.tiny-text {
    font-size: 0.7rem;
    color: #999;
    margin-top: 15px;
}

/* Dark Mode Support for Newsletter */
body.dark-mode .newsletter-modal {
    background: var(--light-bg);
    /* Use dark mode card bg */
}

body.dark-mode .newsletter-content input {
    background: var(--bg-color);
    border-color: #444;
    color: var(--text-color);
}

/* --- STYLE STUDIO PATTERNS --- */
.pattern-neon {
    background: linear-gradient(135deg, #ccff00, #9eff00);
}

.pattern-retro {
    background: radial-gradient(circle, #ff6b6b 20%, #ffffff 20%);
    background-size: 20px 20px;
}

.pattern-metallic {
    background: linear-gradient(145deg, #d4d4d4, #ffffff, #a3a3a3);
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.5);
}

.pattern-eco {
    background-color: #556b2f;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' viewBox='0 0 4 4'%3E%3Cpath fill='%3C95a5a6' fill-opacity='0.4' d='M1 3h1v1H1V3zm2-2h1v1H2V1z'%3E%3C/path%3E%3C/svg%3E");
}

.pattern-leopard {
    background-color: #e67e22;
    background-image: radial-gradient(#2c3e50 20%, transparent 20%), radial-gradient(#2c3e50 20%, transparent 20%);
    background-position: 0 0, 15px 15px;
    background-size: 30px 30px;
}

.pattern-ribbed {
    background: repeating-linear-gradient(90deg, #3498db, #3498db 2px, #2980b9 2px, #2980b9 4px);
}

.pattern-black {
    background: #1a1a1a;
}

/* --- STYLE STUDIO SHAPES (MODULAR PAPER DOLL LAYOUT) --- */
.preview-stage {
    display: flex;
    flex-direction: column;
    width: 200px;
    height: 400px;
    /* Total height */
    margin: 0 auto;
    position: relative;
    background: transparent;
    border: none;
}

/* Rows */
.doll-row {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    display: block;
}

.row-head {
    height: 80px;
    z-index: 10;
}

.row-bust {
    height: 100px;
    z-index: 20;
}

.row-hips {
    height: 80px;
    z-index: 20;
}

.row-legs {
    height: 140px;
    z-index: 10;
}

/* Parts */
.doll-part {
    width: 100%;
    height: 100%;
    display: block;
}

.doll-body-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 100% 100%;
    background-position: 0 0;
    z-index: 1;
}

.doll-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    transition: all 0.3s ease;
    background-size: cover;
    background-position: center;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-position: 0 0;
    mask-position: 0 0;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

/* Remove old monolithic classes */
.body-silhouette,
.preview-layer {
    display: none;
}

/* TOP SHAPES (Local Coords: 200x100) */
/* Top container starts at Y=80 of original. We shift all Y coords by -80. */
/* E.g., original neck at 80 -> new 0. */

.shape-triangle {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='100' viewBox='0 0 200 100' preserveAspectRatio='none'%3E%3Cpath d='M80 5 L 100 0 L 120 5' stroke='white' stroke-width='3' fill='none' /%3E%3Cpath d='M70 40 Q 85 65 100 40 Q 115 65 130 40 L 125 5 L 105 30 L 100 30 L 95 30 L 75 5 Z' fill='white' /%3E%3Cpath d='M100 30 L 100 45' stroke='white' stroke-width='2' /%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='100' viewBox='0 0 200 100' preserveAspectRatio='none'%3E%3Cpath d='M80 5 L 100 0 L 120 5' stroke='white' stroke-width='2' fill='none' /%3E%3Cpath d='M70 40 Q 85 65 100 40 Q 115 65 130 40 L 125 5 L 105 30 L 100 30 L 95 30 L 75 5 Z' fill='white' /%3E%3Cpath d='M100 30 L 100 45' stroke='white' stroke-width='2' /%3E%3C/svg%3E");
}

.shape-bandeau {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='100' viewBox='0 0 200 100' preserveAspectRatio='none'%3E%3Crect x='65' y='30' width='70' height='30' rx='5' fill='white' /%3E%3Ccircle cx='100' cy='45' r='8' fill='white' /%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='100' viewBox='0 0 200 100' preserveAspectRatio='none'%3E%3Crect x='65' y='30' width='70' height='30' rx='5' fill='white' /%3E%3Ccircle cx='100' cy='45' r='8' fill='white' /%3E%3C/svg%3E");
}

.shape-bustier {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='100' viewBox='0 0 200 100' preserveAspectRatio='none'%3E%3Cpath d='M65 30 Q 100 50 135 30 L 135 70 Q 100 75 65 70 Z' fill='white' /%3E%3Crect x='75' y='5' width='8' height='30' fill='white' /%3E%3Crect x='117' y='5' width='8' height='30' fill='white' /%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='100' viewBox='0 0 200 100' preserveAspectRatio='none'%3E%3Cpath d='M65 30 Q 100 50 135 30 L 135 70 Q 100 75 65 70 Z' fill='white' /%3E%3Crect x='75' y='5' width='8' height='30' fill='white' /%3E%3Crect x='117' y='5' width='8' height='30' fill='white' /%3E%3C/svg%3E");
}

/* BOTTOM SHAPES (Local Coords: 200x80) */
/* Bottom container starts at Y=180 of original. We shift all Y coords by -180. */
/* E.g., original waist at 180 -> new 0. */

.shape-classic {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='80' viewBox='0 0 200 80' preserveAspectRatio='none'%3E%3Cpath d='M60 20 Q 100 35 140 20 L 135 40 Q 100 70 65 40 Z' fill='white' /%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='80' viewBox='0 0 200 80' preserveAspectRatio='none'%3E%3Cpath d='M60 20 Q 100 35 140 20 L 135 40 Q 100 70 65 40 Z' fill='white' /%3E%3C/svg%3E");
}

.shape-highwaist {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='80' viewBox='0 0 200 80' preserveAspectRatio='none'%3E%3Cpath d='M65 0 Q 100 5 135 0 L 140 40 Q 100 70 60 40 Z' fill='white' /%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='80' viewBox='0 0 200 80' preserveAspectRatio='none'%3E%3Cpath d='M65 0 Q 100 5 135 0 L 140 40 Q 100 70 60 40 Z' fill='white' /%3E%3C/svg%3E");
}

.shape-brazilian {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='80' viewBox='0 0 200 80' preserveAspectRatio='none'%3E%3Cpath d='M60 30 Q 100 40 140 30 L 130 50 Q 100 75 70 50 Z' fill='white' /%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='80' viewBox='0 0 200 80' preserveAspectRatio='none'%3E%3Cpath d='M60 30 Q 100 40 140 30 L 130 50 Q 100 75 70 50 Z' fill='white' /%3E%3C/svg%3E");
}

/* Legacy bits cleanup */

/* UI Helpers */
.shape-btns {
    display: flex;
    gap: 10px;
}

.btn-outline {
    background: transparent;
    border: 1px solid #ddd;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-outline.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn-outline:hover:not(.active) {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Studio Preview Enhancements */
.top-layer {
    width: 60%;
    height: 40%;
    margin: 10% auto 0;
    border-radius: 10px 10px 50% 50%;
}

.bottom-layer {
    width: 50%;
    height: 35%;
    margin: 5% auto 0;
    border-radius: 5px 5px 40% 40%;
}

/* Style Selector Grid */
.style-selector {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
}

.config-option {
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 10px;
    transition: all 0.3s ease;
    text-align: center;
}

.config-option.active {
    border-color: var(--primary-color);
    background: #fffafa;
}

.option-preview {
    width: 100%;
    height: 60px;
    border-radius: 8px;
    margin-bottom: 8px;
    border: 1px solid #eee;
}

.option-name {
    font-size: 0.75rem;
    font-weight: 600;
    display: block;
    line-height: 1.2;
}

.option-name small {
    color: #888;
    font-weight: 400;
}

/* --- WEATHER WIDGET --- */
.weather-widget {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    max-width: 600px;
    margin: 40px auto;
}

.weather-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.weather-header h4 {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    font-size: 1.25rem;
}

.weather-header span {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
}

.weather-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}

.weather-item {
    text-align: center;
    padding: 15px;
    background: #fbfbfb;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.weather-item:hover {
    background: #fff5f8;
    transform: scale(1.05);
}

.loc-name {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.loc-temp {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.loc-cond {
    display: block;
    font-size: 0.75rem;
    color: #888;
}

/* --- FAQ ACCORDION --- */
.faq-accordion {
    margin-top: 20px;
}

.faq-item {
    border-bottom: 1px solid #eee;
    margin-bottom: 5px;
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 20px 0;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Playfair Display', serif;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s;
    color: var(--text-color);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--secondary-color);
    transition: transform 0.3s;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s, opacity 0.4s;
    opacity: 0;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-bottom: 20px;
    opacity: 1;
}

.faq-answer p {
    line-height: 1.8;
    color: #555;
    font-size: 1rem;
}

.dark-mode .faq-answer p {
    color: #ccc;
}

.dark-mode .faq-item {
    border-color: #333;
}

/* --- HOME MAGAZINE TEASER --- */
.mag-teaser-section {
    padding: 80px 0;
}

.mag-teaser-section .blog-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.mag-teaser-section .blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.mag-teaser-section .blog-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.mag-teaser-section .blog-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.mag-teaser-section .blog-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: block;
}

.mag-teaser-section .blog-content h3 {
    font-family: var(--font-heading);
    margin-bottom: 10px;
    font-size: 1.4rem;
    color: var(--secondary-color);
}

.mag-teaser-section .blog-content p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
}

.mag-teaser-section .read-more {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-top: auto;
}

.dark-mode .mag-teaser-section {
    background: #1a1a1a !important;
}

.dark-mode .mag-teaser-section .blog-card {
    background: #252525;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.dark-mode .mag-teaser-section .blog-card:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.dark-mode .mag-teaser-section .blog-content p {
    color: #bbb;
}

/* --- BEACH CLUB SOUNDS --- */
.music-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.music-card {
    height: 400px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.music-card:hover {
    transform: scale(1.03);
}

.vibe-chill {
    background-image: url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?q=80&w=600&auto=format&fit=crop');
}

.vibe-tropical {
    background-image: url('https://images.unsplash.com/photo-1473116763249-2faaef81ccda?q=80&w=600&auto=format&fit=crop');
}

.vibe-lounge {
    background-image: url('https://images.unsplash.com/photo-1519046904884-53103b34b206?q=80&w=600&auto=format&fit=crop');
}

.music-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 60%, transparent 100%);
    padding: 30px;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.music-overlay h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 5px;
    color: white !important;
}

.music-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 20px;
    color: white !important;
}

.spotify-btn {
    display: inline-flex;
    align-items: center;
    background: #1DB954;
    color: white !important;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: background 0.3s, transform 0.3s;
    width: fit-content;
}

.spotify-btn svg {
    width: 18px;
    height: 18px;
    margin-right: 10px;
}

.spotify-btn:hover {
    background: #1ed760;
    transform: scale(1.05);
}

@media (max-width: 992px) {
    .music-grid {
        grid-template-columns: 1fr;
    }

    .music-card {
        height: 300px;
    }
}

/* --- MATERIAL KUNDE --- */
.material-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.material-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    cursor: help;
    border: 1px solid #f0f0f0;
}

.material-thumb {
    height: 120px;
    width: 100%;
}

.material-body {
    padding: 20px;
}

.material-tagline {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
    display: block;
}

.material-hover-info {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.5;
    opacity: 0.5;
    transition: opacity 0.3s;
    margin-top: 15px;
}

.material-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.material-card:hover .material-hover-info {
    opacity: 1;
}

/* Material Thumb Patterns */
.pattern-metallic {
    background: linear-gradient(135deg, #e6b980 0%, #eacda3 100%);
    position: relative;
}

.pattern-metallic::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.4) 0%, transparent 60%);
}

.pattern-ribbed {
    background-color: #f7d794;
    background-image: repeating-linear-gradient(90deg, transparent, transparent 5px, rgba(0, 0, 0, 0.05) 5px, rgba(0, 0, 0, 0.05) 10px);
}

.pattern-leopard {
    background-color: #f3a683;
    background-image:
        radial-gradient(circle at 20% 20%, #303952 2px, transparent 4px),
        radial-gradient(circle at 50% 50%, #303952 3px, transparent 6px),
        radial-gradient(circle at 80% 80%, #303952 2px, transparent 4px);
    background-size: 20px 20px;
}

.dark-mode .material-card {
    background: #252525;
    border-color: #333;
}

.dark-mode .material-hover-info {
    color: #ccc;
}

@media (max-width: 768px) {
    .material-grid {
        grid-template-columns: 1fr;
    }
}

/* --- DEALS SECTION --- */
.sale-badge-main {
    display: inline-block;
    background: #d63384;
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.deals-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.deal-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(214, 51, 132, 0.1);
    transition: transform 0.3s;
}

.deal-card:hover {
    transform: translateY(-10px);
}

.deal-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #ffc107;
    color: #000;
    padding: 8px 12px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 1.1rem;
    z-index: 2;
}

.deal-img-placeholder {
    height: 200px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    color: #ccc;
    font-size: 1.2rem;
    background-size: cover;
    background-position: center;
}

.deal-body {
    padding: 25px;
}

.deal-body h4 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.price-row {
    margin-bottom: 20px;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    margin-right: 10px;
}

.new-price {
    color: #d63384;
    font-weight: 700;
    font-size: 1.5rem;
}

.stock-meter {
    height: 6px;
    background: #eee;
    border-radius: 3px;
    margin-bottom: 8px;
    overflow: hidden;
}

.stock-progress {
    height: 100%;
    background: linear-gradient(90deg, #d63384, #ffc107);
}

.stock-label {
    font-size: 0.75rem;
    color: #d63384;
    font-weight: 600;
    margin-bottom: 20px;
}

.btn-deal {
    display: block;
    background: var(--secondary-color);
    color: white !important;
    text-align: center;
    padding: 12px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-deal:hover {
    background: #252525;
}

/* --- BESTSELLER LIST --- */
.bestseller-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.bestseller-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: #fdfdfd;
    border: 1px solid #f5f5f5;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s;
}

.bestseller-item:hover {
    background: #fffafa;
    border-color: #ffdce5;
    transform: translateX(10px);
}

.bestseller-item .rank {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-right: 20px;
    width: 30px;
}

.bestseller-item .item-info {
    flex-grow: 1;
}

.bestseller-item .item-info strong {
    display: block;
    font-size: 1.1rem;
}

.bestseller-item .item-info span {
    font-size: 0.85rem;
    color: #777;
}

.bestseller-item .go-btn {
    font-size: 1.5rem;
    color: #ccc;
    transition: color 0.3s;
}

.bestseller-item:hover .go-btn {
    color: var(--primary-color);
}

.dark-mode .deal-card {
    background: #252525;
    border-color: #333;
}

.dark-mode .bestseller-item {
    background: #1a1a1a;
    border-color: #333;
}

.dark-mode .bestseller-item .item-info span {
    color: #999;
}

@media (max-width: 992px) {
    .deals-grid {
        grid-template-columns: 1fr;
    }
}

.hero-image-full {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.article-img-full {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 15px;
    margin: 20px 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .hero-image-full {
        height: 250px;
    }
}

/* UX BOOSTERS v5.3 */
.progress-container {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 1001;
    display: none;
}

body.article-page .progress-container {
    display: block;
}

.progress-bar {
    height: 4px;
    background: var(--primary-color);
    width: 0%;
    transition: width 0.1s ease;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    background: var(--primary-color);
}

.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

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

/* --- COOKIE BANNER --- */
.cookie-banner {
    position: fixed;
    bottom: -150px;
    left: 20px;
    right: 20px;
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 2000;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    transition: bottom 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 1000px;
    margin: 0 auto;
    border: 1px solid #eee;
}

.cookie-banner.active {
    bottom: 20px;
}

.cookie-content {
    flex: 1;
    min-width: 300px;
    margin-right: 20px;
}

.cookie-content h4 {
    margin-bottom: 5px;
    color: var(--primary-color);
}

.cookie-content p {
    font-size: 0.9rem;
    margin: 0;
}

.cookie-btns {
    display: flex;
    gap: 10px;
}

.btn-cookie-ghost {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.btn-cookie-ghost:hover {
    background: var(--light-bg);
}

/* --- SEARCH QUICK FILTERS --- */
.search-quick-filters {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-pill {
    padding: 6px 15px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 20px;
    color: #333;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-pill:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Cookie Banner Base Styles */
.cookie-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background-color: var(--light-bg);
    color: var(--text-color);
    padding: 20px;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: bottom 0.5s ease-in-out;
    z-index: 10000;
}

.cookie-banner.active {
    bottom: 0;
}

.cookie-content {
    max-width: 70%;
}

.cookie-content h4 {
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.cookie-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

.cookie-btns {
    display: flex;
    gap: 10px;
}

body.dark-mode .cookie-banner {
    background: #1a1a1a;
    border-color: #333;
}