/* Reset & Base */
:root {
    /* Silent Night Luxury Palette */
    --theme-bg: #F9F9F5;
    /* Cream/Off-White Background */
    --card-bg: #FFFFFF;
    /* White for cards */
    --primary: #1A3C34;
    /* Deep Forest Green */
    --secondary: #D4AF37;
    /* Antique Gold */
    --secondary-dark: #bfa32a;
    /* Darker Gold for hover */
    --text-main: #212121;
    /* Dark Grey Body Text */
    --text-muted: #666666;
    --border-color: #E0E0E0;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    --spacing-container: 1200px;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--theme-bg);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary);
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

ul {
    list-style: none;
}

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

/* Country Flag Indicator */
.country-flag {
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 1001;
    background: rgba(255, 255, 255, 0.95);
    padding: 6px 10px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: help;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-main);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.country-flag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 1);
}

.flag-emoji {
    font-size: 1.2rem;
    line-height: 1;
}

.flag-text {
    font-size: 0.75rem;
    white-space: nowrap;
}

/* Navbar */
.navbar {
    background: var(--theme-bg);
    /* Blend with body */
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.5px;
}

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

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
}

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

/* Hero Section */
.hero {
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
    /* For snow */
}

.hero-badge {
    display: inline-block;
    background-color: rgba(26, 60, 52, 0.1);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn {
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background-color: #142f29;
    transform: translateY(-2px);
}

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

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

/* Affiliate Disclaimer */
.affiliate-disclaimer {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    background: rgba(212, 175, 55, 0.1);
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 40px;
    border-left: 3px solid var(--secondary);
    line-height: 1.5;
}

/* Product Hero Card */
.product-hero {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    background: var(--card-bg);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    /* Premium soft shadow */
    margin-bottom: 60px;
    align-items: center;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.product-image {
    flex: 1 1 400px;
}

.img-placeholder {
    width: 100%;
    height: 300px;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    border-radius: 8px;
    font-weight: 600;
}

.product-verdict {
    flex: 1 1 400px;
}

.rating {
    color: var(--secondary);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.award-badge {
    display: inline-block;
    background-color: var(--secondary);
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.product-verdict h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.product-verdict p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.pros-cons {
    background-color: rgba(26, 60, 52, 0.03);
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 25px;
}

.buy-button {
    background-color: var(--secondary);
    color: #fff;
    padding: 14px 32px;
    border-radius: 4px;
    font-weight: 700;
    display: inline-block;
    transition: background 0.3s;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    /* Gold glow */
}

.buy-button:hover {
    background-color: var(--secondary-dark);
}

/* Comparison Table */
.comparison-section {
    margin-bottom: 60px;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 30px;
    position: relative;
}

.gold-ribbon {
    border-left: 5px solid var(--secondary);
    padding-left: 20px;
}

.table-container {
    overflow-x: auto;
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

th {
    text-align: left;
    padding: 20px;
    background-color: #f4f4f4;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary);
    border-bottom: 2px solid var(--border-color);
}

td {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
}

tr:last-child td {
    border-bottom: none;
}

.top-pick {
    background-color: rgba(212, 175, 55, 0.05);
    /* Subtle highlight for #1 */
}

.product-name {
    font-weight: 600;
    color: var(--primary);
}

.rank {
    color: var(--secondary);
    font-weight: 800;
    margin-right: 8px;
}

.badge {
    font-size: 0.7rem;
    background: var(--primary);
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 8px;
    vertical-align: middle;
}

.table-link {
    color: var(--primary);
    font-weight: 600;
    border-bottom: 1px solid var(--secondary);
}

.table-link:hover {
    color: var(--secondary);
}

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

.card {
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.card-image {
    width: 100%;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    position: relative;
}

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

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

.card-content {
    padding: 30px;
}

.category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--secondary);
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.read-more {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.9rem;
}

.read-more:hover {
    color: var(--secondary);
}

/* Footer */
footer {
    background-color: var(--primary);
    color: #fff;
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--secondary);
    font-family: var(--font-heading);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-col p {
    font-size: 0.9rem;
    opacity: 0.8;
    max-width: 250px;
}

.footer-col a {
    display: block;
    margin-bottom: 10px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-col a:hover {
    opacity: 1;
    color: var(--secondary);
}

.copyright {
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.5;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

/* Snow Effect Styling */
#snow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* Let clicks pass through */
    z-index: 9999;
}

.snowflake {
    position: absolute;
    top: -10px;
    color: #fff;
    opacity: 0.8;
    background: white;
    border-radius: 50%;
    pointer-events: none;
    animation: fall linear forwards;
}

@keyframes fall {
    to {
        transform: translateY(105vh);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .product-hero {
        padding: 25px;
    }

    .nav-links {
        display: none;
        /* Simple mobile hide for now */
    }
}

/* Additions for the Article/List Layout */

.article-header {
    text-align: center;
    padding: 60px 20px;
    background: var(--card-bg);
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

.article-header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.article-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-style: italic;
}

/* Updated List Item Styling */
.product-list-item {
    display: flex;
    flex-wrap: wrap;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 40px;
    /* Space between list items */
    overflow: hidden;
    position: relative;
    /* For Rank Badge */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.rank-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--secondary);
    color: #fff;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    z-index: 10;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.item-visual {
    flex: 1 1 300px;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    padding: 20px;
}

.item-visual img {
    max-width: 100%;
    max-height: 250px;
    object-fit: contain;
}

.item-content {
    flex: 2 1 400px;
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.item-header h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.item-rating {
    color: var(--secondary);
    margin-bottom: 15px;
    font-size: 1rem;
}

.item-description {
    color: var(--text-muted);
    margin-bottom: 25px;
    flex-grow: 1;
    /* Pushes button down */
}

.amazon-btn {
    align-self: flex-start;
    background: #FF9900;
    /* Amazon Orange approx or stick to Gold? User said "link to amazon". Let's stick to our Gold palette for Class, but maybe add Amazon logo text */
    /* Or stick to Brand Identity: */
    background: var(--secondary);
    color: #fff;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
}

.amazon-btn:hover {
    background: #e8a600;
    transform: translateY(-2px);
}

.specs-list {
    margin-bottom: 20px;
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.02);
    padding: 15px;
    border-radius: 6px;
}

.specs-list li {
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
}

.specs-list span {
    font-weight: 600;
    color: var(--primary);
}