/* FlatFile Commerce Design System */

:root {
    /* Color Palette */
    --bg-primary: #fafaf9;
    --bg-card: #ffffff;
    --text-main: #1c1917;
    --text-muted: #78716c;
    --text-white: #ffffff;
    
    --primary: #c2410c; /* Deep copper/orange */
    --primary-hover: #9a3412;
    --primary-light: #ffedd5;
    
    --accent: #ca8a04; /* Gold accent */
    --accent-hover: #a16207;
    
    --border-color: #e7e5e4;
    --border-hover: #d6d3d1;
    
    /* Layout */
    --header-height: 80px;
    --max-width: 1200px;
    
    /* Typography */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Shadows & Transitions */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    
    --border-radius-sm: 6px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
}

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

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

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

/* Screen Readers Only helper */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Base Layout */
.site-main {
    flex-grow: 1;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Header */
.site-header {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 110;
    display: flex;
    align-items: center;
}

.header-container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--header-height);
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-image-link {
    margin-left: 0;
}

.header-logo-image {
    width: min(280px, 100%);
    height: auto;
    object-fit: contain;
}

/* Navigation */
.site-nav-bar {
    background-color: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border-color);
}

.nav-bar-container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.main-nav {
    display: flex;
    align-items: center;
    min-height: 56px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 550;
    color: var(--text-muted);
    transition: var(--transition);
    padding: 0.5rem 0;
    position: relative;
}

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

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

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

.nav-item-mega {
    position: relative;
}

.nav-item-mega > a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.mega-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    width: min(980px, calc(100vw - 3rem));
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    padding: 1.25rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
    z-index: 250;
}

.mega-menu::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
}

.nav-item-mega:hover .mega-menu,
.nav-item-mega:focus-within .mega-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
    transition-delay: 0s;
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.mega-menu-column {
    border: 1px solid #f3f4f6;
    border-radius: 10px;
    padding: 0.9rem;
    background: linear-gradient(180deg, #ffffff 0%, #fafaf9 100%);
}

.mega-menu-column h4 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    margin-bottom: 0.55rem;
}

.mega-menu-column p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 0.55rem;
}

.mega-menu-column a {
    display: block;
    font-size: 0.84rem;
    color: #374151;
    padding: 0.3rem 0;
}

.mega-menu-column a::after {
    display: none;
}

.mega-menu-column a:hover {
    color: var(--primary);
}

.mega-divider {
    border: 0;
    border-top: 1px solid #e5e7eb;
    margin: 0.55rem 0;
}

/* Search Box styling */
.search-wrapper {
    position: relative;
    width: 100%;
    max-width: 50%;
}

.header-spacer {
    display: none;
}

.search-form-container {
    width: 100%;
}

.search-input-wrapper {
    position: relative;
    width: 100%;
}

#search-input {
    width: 100%;
    padding: 0.6rem 2.5rem 0.6rem 1rem;
    border: 1px solid var(--border-color);
    background-color: #f5f5f4;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: var(--transition);
    outline: none;
}

#search-input:focus {
    border-color: var(--primary);
    background-color: var(--bg-card);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.search-icon-inline {
    position: absolute;
    right: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    display: flex;
    align-items: center;
}

/* Search Dropdown */
.search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 360px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    z-index: 200;
    max-height: 480px;
    overflow-y: auto;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.search-dropdown[hidden] {
    display: none;
}

.search-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
    cursor: pointer;
}

.search-dropdown-item:last-child {
    border-bottom: none;
}

.search-dropdown-item:hover,
.search-dropdown-item.active {
    background-color: #fafaf9;
}

.search-dropdown-item-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: var(--border-radius-sm);
    background-color: #f5f5f4;
    padding: 2px;
}

.search-dropdown-item-info {
    flex-grow: 1;
    overflow: hidden;
}

.search-dropdown-item-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-dropdown-item-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.search-dropdown-item-price {
    font-weight: 700;
    color: var(--primary);
}

.search-dropdown-no-results {
    padding: 1rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Desktop header re-layout */
@media (min-width: 901px) {
    .header-container {
        gap: 1.25rem;
    }

    .search-wrapper {
        flex: 0 1 50%;
        max-width: 50%;
        min-width: 320px;
        margin-left: auto;
    }

    .header-spacer {
        display: none;
    }

    .logo-image-link {
        margin-left: 0;
        flex: 0 0 auto;
    }

    .main-nav {
        justify-content: center;
    }

    .nav-links {
        justify-content: center;
        gap: 2.25rem;
    }
}

@media (max-width: 900px) {
    .site-header {
        position: static;
    }

    .header-container {
        flex-wrap: wrap;
        justify-content: space-between;
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }

    .logo-image-link {
        margin-left: 0;
    }

    .header-logo-image {
        width: 220px;
    }

    .search-wrapper {
        order: 3;
        max-width: 100%;
        flex: 1 1 100%;
        margin-top: 0.5rem;
    }

    .site-nav-bar {
        overflow-x: auto;
    }

    .main-nav {
        min-height: 48px;
    }

    .nav-links {
        gap: 1rem;
        flex-wrap: nowrap;
        white-space: nowrap;
        padding: 0.25rem 0;
    }

    .mega-menu {
        display: none;
    }
}

/* Hero Section */
.hero-section {
    padding: 4.5rem 2rem;
    background: linear-gradient(135deg, #1c1917 0%, #292524 100%);
    border-radius: var(--border-radius-lg);
    color: var(--text-white);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(194,65,12,0.15) 0%, transparent 60%);
    pointer-events: none;
}

.hero-container {
    max-width: 720px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.04em;
    margin-bottom: 1.25rem;
    background: linear-gradient(to right, #ffffff, #f5f5f4, #d6d3d1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.15rem;
    font-weight: 400;
    color: #d6d3d1;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-search-prompt {
    font-size: 0.85rem;
    color: #a8a29e;
}

.hero-search-prompt a {
    color: #ffedd5;
    font-weight: 600;
    text-decoration: underline;
    transition: var(--transition);
}

.hero-search-prompt a:hover {
    color: var(--primary-light);
}

/* Hub Homepage */
.hub-home-hero {
    padding: 4rem 2rem;
    background: linear-gradient(145deg, #111827 0%, #1f2937 55%, #7c2d12 100%);
    border-radius: var(--border-radius-lg);
    margin-bottom: 2.6rem;
    box-shadow: var(--shadow-md);
}

.hub-home-hero-inner {
    max-width: 860px;
}

.hub-home-kicker {
    display: inline-flex;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #fed7aa;
    background-color: rgba(194, 65, 12, 0.3);
    border: 1px solid rgba(251, 146, 60, 0.45);
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    margin-bottom: 0.9rem;
}

.hub-home-hero h1 {
    font-family: var(--font-heading);
    color: #fff;
    font-size: 2.9rem;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 0.8rem;
}

.hub-home-hero p {
    color: #e5e7eb;
    font-size: 1.04rem;
    max-width: 760px;
}

.hub-home-hero-actions {
    margin-top: 1.3rem;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.hub-path-grid-section,
.hub-category-depth-section,
.hub-guides-section,
.hub-compare-section {
    margin-bottom: 3rem;
}

.hub-subgroup-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    margin: 1rem 0 0.75rem;
    color: var(--text-main);
}

.hub-path-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.hub-path-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 1.2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.hub-path-card h3 {
    font-family: var(--font-heading);
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
}

.hub-path-subtitle {
    font-size: 0.84rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.45rem;
}

.hub-path-card p {
    color: #57534e;
    font-size: 0.88rem;
}

.hub-path-cta {
    display: inline-block;
    margin-top: 0.65rem;
    color: var(--primary);
    font-size: 0.84rem;
    font-weight: 700;
}

.hub-path-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.hub-category-depth-grid,
.hub-guides-grid,
.hub-compare-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.hub-category-depth-card,
.hub-guide-card,
.hub-compare-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 1rem 1.1rem;
    transition: var(--transition);
}

.hub-category-depth-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
}

.hub-category-depth-card h3,
.hub-guide-card h3,
.hub-compare-card h3 {
    font-family: var(--font-heading);
    font-size: 1.02rem;
    line-height: 1.3;
}

.hub-category-count {
    font-size: 0.75rem;
    color: #57534e;
    background: #f5f5f4;
    border-radius: 999px;
    padding: 0.2rem 0.45rem;
    white-space: nowrap;
}

.hub-category-depth-card p,
.hub-guide-card p,
.hub-compare-card p {
    font-size: 0.86rem;
    color: #57534e;
    margin-top: 0.5rem;
}

.hub-category-depth-actions {
    margin-top: 0.7rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hub-category-depth-actions a {
    color: var(--primary);
    font-size: 0.84rem;
    font-weight: 600;
}

.hub-guide-card:hover,
.hub-compare-card:hover,
.hub-category-depth-card:hover {
    border-color: #fdba74;
    box-shadow: var(--shadow-sm);
}

.secondary-feature-section .section-title::after {
    content: ' (Secondary)';
    font-size: 0.62em;
    color: var(--text-muted);
    font-weight: 500;
}

.secondary-card {
    background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
    border-color: #d6d3d1;
}

/* Section Headers */
.section-header {
    margin-bottom: 2rem;
    text-align: left;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-main);
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Category Grid */
.categories-section {
    margin-bottom: 4rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 2rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.category-card-icon {
    width: 48px;
    height: 48px;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    transition: var(--transition);
}

.category-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.category-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.category-card-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--border-hover);
}

.category-card:hover .category-card-icon {
    background-color: var(--primary);
    color: var(--text-white);
}

.category-card:hover .category-card-link {
    color: var(--primary-hover);
    padding-left: 4px;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

/* Product Card */
.product-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.product-card-image-wrapper {
    position: relative;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    background-color: #f5f5f4;
    border-bottom: 1px solid var(--border-color);
}

.product-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1.5rem;
    transition: var(--transition);
}

.product-card-placeholder-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-align: center;
    padding: 1rem;
    gap: 0.5rem;
}

.product-card-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background-color: var(--accent);
    color: var(--text-white);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
}

.product-card-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-card-meta {
    margin-bottom: 0.5rem;
}

.product-card-category {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.product-card-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.7rem;
}

.product-card-title a {
    color: var(--text-main);
    transition: var(--transition);
}

.product-card-title a:hover {
    color: var(--primary);
}

.product-card-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.7rem;
}

.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.product-card-price {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-main);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--text-white);
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(194, 65, 12, 0.25);
}

.btn-secondary {
    background-color: #f5f5f4;
    color: var(--text-main);
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: #e7e5e4;
}

.btn-card-buy {
    background-color: var(--primary-light);
    color: var(--primary);
    padding: 0.5rem 0.9rem;
    font-size: 0.8rem;
    border-radius: var(--border-radius-sm);
    font-weight: 700;
}

.btn-card-buy:hover {
    background-color: var(--primary);
    color: var(--text-white);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--border-hover);
}

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

/* Category Layout & Sidebar */
.category-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2.5rem;
    margin-top: 2rem;
}

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

.breadcrumb-nav {
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    margin-bottom: 1.5rem;
}

.breadcrumb-container {
    max-width: var(--max-width);
    margin: 0 auto;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.breadcrumb-container a {
    transition: var(--transition);
}

.breadcrumb-container a:hover {
    color: var(--primary);
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.category-title {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.category-count {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Sidebar Widget */
.sidebar-widget {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.sidebar-widget h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.widget-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: -0.5rem;
    margin-bottom: 1rem;
}

.categories-widget ul {
    list-style: none;
}

.categories-widget li {
    margin-bottom: 0.5rem;
}

.categories-widget a {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.categories-widget a:hover {
    background-color: var(--primary-light);
    color: var(--primary);
    padding-left: 1rem;
}

/* Merchandising Widget */
.merchandised-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.merchandised-item {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.merchandised-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.merchandised-item-img {
    width: 60px;
    height: 60px;
    background-color: #f5f5f4;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

.merchandised-item-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.25rem;
}

.merchandised-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

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

.merchandised-item-info h4 {
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.25rem;
}

.merchandised-item-info h4 a {
    color: var(--text-main);
    transition: var(--transition);
}

.merchandised-item-info h4 a:hover {
    color: var(--primary);
}

.merchandised-price {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--text-main);
    display: inline-block;
    margin-right: 0.5rem;
}

.merchandised-badge {
    font-size: 0.65rem;
    font-weight: 700;
    background-color: var(--primary-light);
    color: var(--primary);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    text-transform: uppercase;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-card);
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.pagination-link:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.pagination-link.active {
    background-color: var(--primary);
    color: var(--text-white);
    border-color: var(--primary);
}

/* Product Detail Page */
.product-detail-container {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    padding: 3rem;
    margin-top: 1.5rem;
}

@media (max-width: 768px) {
    .product-detail-container {
        padding: 1.5rem;
    }
}

.product-detail-layout {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 3.5rem;
}

@media (max-width: 900px) {
    .product-detail-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.product-detail-image-wrapper {
    background-color: #f5f5f4;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 420px;
    position: relative;
}

@media (max-width: 480px) {
    .product-detail-image-wrapper {
        height: 280px;
    }
}

.product-main-image {
    max-height: 100%;
    object-fit: contain;
}

.product-main-image-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    gap: 1rem;
    text-align: center;
}

.product-info-trust {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.trust-badge svg {
    color: var(--accent);
}

.product-info-category {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.product-info-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.04em;
    color: var(--text-main);
    margin-bottom: 1.5rem;
}

.product-info-price-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
}

.price-label {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
}

.price-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-main);
}

.stock-badge {
    background-color: #d1fae5;
    color: #065f46;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    text-transform: uppercase;
}

.product-info-desc {
    margin-bottom: 2rem;
}

.product-info-desc h2,
.product-info-features h2 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.product-info-desc p {
    font-size: 0.95rem;
    color: #444;
}

.enrichment-stack {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin: 2rem 0 2.5rem;
}

.enrichment-card {
    background: linear-gradient(180deg, #ffffff 0%, #fffaf5 100%);
    border: 1px solid rgba(194, 65, 12, 0.1);
    border-radius: 18px;
    padding: 1.4rem;
    box-shadow: var(--shadow-sm);
}

.enrichment-card--hero {
    background: linear-gradient(135deg, #fff7ed 0%, #ffffff 78%);
    border-color: rgba(194, 65, 12, 0.16);
    box-shadow: 0 14px 30px rgba(194, 65, 12, 0.08);
}

.enrichment-card--soft,
.enrichment-card--confidence {
    background: var(--bg-card);
}

.enrichment-card-header {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    margin-bottom: 1rem;
}

.enrichment-card-header--compact {
    margin-bottom: 0.9rem;
}

.enrichment-card-header h2 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-main);
    margin: 0;
}

.enrichment-card-header p {
    font-size: 0.86rem;
    line-height: 1.55;
    color: var(--text-muted);
    margin: 0.25rem 0 0;
}

.enrichment-kicker {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 0.35rem;
}

.enrichment-icon-badge,
.enrichment-list-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.enrichment-icon-badge {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 14px;
    background: rgba(194, 65, 12, 0.1);
    border: 1px solid rgba(194, 65, 12, 0.14);
}

.enrichment-icon-badge svg,
.enrichment-list-icon svg {
    width: 1.1rem;
    height: 1.1rem;
}

.enrichment-icon-badge--accent {
    color: var(--accent);
    background: rgba(202, 138, 4, 0.1);
    border-color: rgba(202, 138, 4, 0.18);
}

.enrichment-icon-badge--warning {
    color: #b45309;
    background: rgba(245, 158, 11, 0.11);
    border-color: rgba(245, 158, 11, 0.18);
}

.enrichment-richtext {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.enrichment-richtext p {
    font-size: 0.95rem;
    line-height: 1.78;
    color: #3f3a36;
    margin: 0;
}

.enrichment-richtext--compact p {
    line-height: 1.72;
}

.enrichment-grid,
.faq-grid,
.enrichment-subgrid,
.confidence-metrics-grid,
.technical-snapshot-grid {
    display: grid;
    gap: 1rem;
}

.enrichment-grid,
.faq-grid,
.enrichment-subgrid,
.technical-snapshot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.enrichment-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin: 0;
}

.enrichment-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    font-size: 0.92rem;
    line-height: 1.68;
    color: #3f3a36;
}

.enrichment-list-icon {
    width: 1.6rem;
    height: 1.6rem;
    margin-top: 0.05rem;
    border-radius: 999px;
    background: rgba(194, 65, 12, 0.08);
}

.enrichment-list--warning .enrichment-list-icon {
    color: #b45309;
    background: rgba(245, 158, 11, 0.12);
}

.enrichment-list--accent .enrichment-list-icon {
    color: var(--accent);
    background: rgba(202, 138, 4, 0.1);
}

.technical-snapshot-item,
.confidence-metric,
.faq-card,
.enrichment-subcard {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 14px;
}

.technical-snapshot-item {
    padding: 0.95rem 1rem;
}

.technical-snapshot-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.technical-snapshot-value {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-main);
}

.enrichment-subcard {
    padding: 1rem;
}

.enrichment-subcard h3,
.faq-card h3 {
    font-family: var(--font-heading);
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-main);
    margin-bottom: 0.7rem;
}

.enrichment-subgrid--single {
    grid-template-columns: minmax(0, 1fr);
}

.technical-followups {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 1.15rem;
}

.faq-card {
    padding: 1rem;
}

.faq-card p {
    font-size: 0.91rem;
    line-height: 1.7;
    color: #4a433e;
}

.confidence-metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 1rem;
}

.confidence-metric {
    padding: 1rem;
    text-align: left;
    min-height: 8.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.confidence-metric-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    line-height: 1.45;
    max-width: 13ch;
}

.confidence-metric-value {
    display: flex;
    align-items: baseline;
    gap: 0.1rem;
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1;
    color: var(--text-main);
}

.confidence-metric-value small {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.enrichment-card--confidence .enrichment-subcard {
    padding: 1.1rem 1.15rem;
}

.enrichment-card--confidence .enrichment-list li {
    line-height: 1.6;
}

.features-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #444;
}

.bullet-icon {
    color: #059669;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.product-info-cta {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 2rem;
}

.btn-detail-buy {
    background-color: var(--primary);
    color: var(--text-white);
    font-size: 1.1rem;
    padding: 1rem 2rem;
    width: 100%;
    border-radius: var(--border-radius-sm);
    box-shadow: 0 4px 14px rgba(194, 65, 12, 0.3);
}

.btn-detail-buy:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(194, 65, 12, 0.4);
}

.cta-notice {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
    text-align: center;
}

@media (max-width: 900px) {
    .enrichment-grid,
    .faq-grid,
    .enrichment-subgrid,
    .technical-snapshot-grid,
    .confidence-metrics-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .confidence-metric {
        min-height: auto;
    }

    .confidence-metric-label {
        max-width: none;
    }
}

@media (max-width: 640px) {
    .enrichment-card {
        padding: 1.05rem;
        border-radius: 16px;
    }

    .enrichment-card-header {
        gap: 0.75rem;
    }

    .enrichment-icon-badge {
        width: 2.2rem;
        height: 2.2rem;
        border-radius: 12px;
    }

    .enrichment-list li {
        font-size: 0.9rem;
    }
}

/* Compare Page Styling */
.compare-container {
    max-width: 960px;
    margin: 0 auto;
    padding-top: 1rem;
}

.compare-header {
    text-align: center;
    margin-bottom: 3rem;
}

.compare-header h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 0.5rem;
}

.compare-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
}

.compare-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3.5rem;
}

@media (max-width: 600px) {
    .compare-cards-grid {
        grid-template-columns: 1fr;
    }
}

.compare-card-column {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.compare-card-column.recommended {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.compare-choice-badge {
    position: absolute;
    top: -0.75rem;
    background-color: var(--primary);
    color: var(--text-white);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
}

.compare-card-img-wrapper {
    width: 140px;
    height: 140px;
    background-color: #f5f5f4;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.compare-card-img-wrapper img {
    max-height: 100%;
    padding: 0.5rem;
}

.compare-card-column h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.35;
}

.compare-card-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 1.5rem;
}

.btn-compare-buy {
    background-color: var(--primary-light);
    color: var(--primary);
    width: 100%;
    padding: 0.75rem;
    font-size: 0.9rem;
}

.btn-compare-buy:hover {
    background-color: var(--primary);
    color: var(--text-white);
}

.compare-recommendation-block {
    background-color: var(--primary-light);
    border: 1px solid #fed7aa;
    border-radius: var(--border-radius-md);
    padding: 2rem;
    margin-bottom: 3.5rem;
}

.compare-recommendation-block h2 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-hover);
    margin-bottom: 0.5rem;
}

.compare-recommendation-block p {
    font-size: 1rem;
    color: #431407;
}

.compare-table-wrapper {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    overflow-x: auto;
}

.compare-table-wrapper h2 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.compare-table th,
.compare-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.compare-table th {
    background-color: #fafaf9;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
}

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

.price-cell {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
}

.compare-spec-list {
    list-style: none;
}

.compare-spec-list li {
    margin-bottom: 0.3rem;
    position: relative;
    padding-left: 1rem;
}

.compare-spec-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
}

/* Listicle Page Styling */
.listicle-container {
    max-width: 800px;
    margin: 0 auto;
}

.listicle-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.listicle-header h1 {
    font-family: var(--font-heading);
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 0.5rem;
}

.listicle-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.listicle-intro {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 2rem;
    text-align: left;
    box-shadow: var(--shadow-sm);
}

.listicle-intro p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
    color: #444;
}

.listicle-intro p:last-child {
    margin-bottom: 0;
}

.listicle-notice {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.listicle-items-list {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
}

.listicle-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    position: relative;
}

.listicle-item-badge {
    position: absolute;
    top: -1.25rem;
    left: 2rem;
    width: 48px;
    height: 48px;
    background-color: var(--text-main);
    color: var(--text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    box-shadow: var(--shadow-md);
}

.listicle-item-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.listicle-item h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 750;
    color: var(--text-main);
    padding-left: 1.5rem;
}

.listicle-item-choice-badge {
    background-color: var(--accent);
    color: var(--text-white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    text-transform: uppercase;
}

.listicle-item-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
}

@media (max-width: 600px) {
    .listicle-item-grid {
        grid-template-columns: 1fr;
    }
}

.listicle-item-image-wrapper {
    background-color: #f5f5f4;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.listicle-item-image-wrapper img {
    max-height: 100%;
    object-fit: contain;
}

.listicle-fallback {
    color: var(--text-muted);
}

.listicle-item-details {
    display: flex;
    flex-direction: column;
}

.listicle-item-desc {
    font-size: 0.95rem;
    color: #444;
    margin-bottom: 1.25rem;
}

.listicle-item-specs {
    margin-bottom: 1.5rem;
}

.listicle-item-specs h3 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.listicle-specs-list {
    list-style: none;
}

.listicle-specs-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}

.listicle-specs-list svg {
    color: #059669;
}

.listicle-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.listicle-item-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-main);
}

.listicle-item-actions {
    display: flex;
    gap: 0.75rem;
}

/* Hub Detail Page */
.hub-hero {
    margin: 1rem 0 2rem;
}

.hub-hero-inner {
    background: linear-gradient(140deg, #111827 0%, #1f2937 60%, #7c2d12 100%);
    border-radius: var(--border-radius-lg);
    color: #f8fafc;
    padding: 2rem;
}

.hub-kicker {
    color: #fed7aa;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
    margin-bottom: 0.4rem;
}

.hub-hero-inner h1 {
    font-family: var(--font-heading);
    font-size: 2.3rem;
    line-height: 1.15;
    margin-bottom: 0.55rem;
}

.hub-hero-inner p {
    color: #e5e7eb;
    max-width: 780px;
}

.hub-hero-actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.hub-switcher {
    margin-bottom: 2.5rem;
}

.hub-switcher-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.8rem;
}

.hub-switcher-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.85rem;
    transition: var(--transition);
}

.hub-switcher-card h3 {
    font-size: 0.95rem;
    font-family: var(--font-heading);
}

.hub-switcher-card p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.hub-switcher-card.active,
.hub-switcher-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.hub-next-steps {
    margin-bottom: 3rem;
}

.hub-next-steps-inner {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 1.4rem;
}

.hub-next-steps h2 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
}

.hub-next-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.8rem;
}

.hub-next-card {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 0.9rem;
}

.hub-next-card h3 {
    font-size: 0.92rem;
    font-family: var(--font-heading);
}

.hub-next-card p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Error/404 Page */
.error-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 1.5rem;
    text-align: center;
}

.error-content {
    max-width: 480px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
}

.error-badge {
    background-color: var(--primary-light);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.error-content h1 {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.error-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.error-suggestions {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    text-align: left;
}

.error-suggestions h3 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.error-suggestions ul {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.error-suggestions a {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 550;
    transition: var(--transition);
}

.error-suggestions a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Footer Section */
.site-footer {
    background-color: #1c1917;
    color: #d6d3d1;
    border-top: 1px solid #292524;
    padding: 4rem 1.5rem 0;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(260px, 1.2fr) minmax(0, 3fr);
    gap: 3rem;
    padding-bottom: 3rem;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
}

@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-links-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 600px) {
    .footer-container {
        grid-template-columns: 1fr;
    }

    .footer-links-grid {
        grid-template-columns: 1fr;
    }
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
}

.footer-logo-image {
    width: min(280px, 100%);
    height: auto;
    object-fit: contain;
}

.footer-description {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #a8a29e;
}

.footer-column h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 1.25rem;
    letter-spacing: 0.02em;
}

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

.footer-column li {
    margin-bottom: 0.75rem;
}

.footer-column a {
    font-size: 0.85rem;
    color: #a8a29e;
    transition: var(--transition);
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
}

.footer-column a:hover {
    color: var(--text-white);
    padding-left: 2px;
}

.footer-cookie-btn {
    font-size: 0.85rem;
    color: #a8a29e;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    transition: var(--transition);
    padding: 0;
}

.footer-cookie-btn:hover {
    color: var(--text-white);
    padding-left: 2px;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid #292524;
    padding: 2rem 0;
    font-size: 0.75rem;
    color: #78716c;
}

.footer-bottom-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-bottom p {
    max-width: 700px;
    line-height: 1.5;
}

.footer-badges {
    display: flex;
    gap: 0.75rem;
}

.badge {
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.65rem;
    text-transform: uppercase;
}

.badge-speed {
    background-color: rgba(5, 150, 105, 0.15);
    color: #34d399;
}

.badge-secure {
    background-color: rgba(194, 65, 12, 0.15);
    color: #fb923c;
}

/* Real-time search animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.search-dropdown {
    animation: fadeIn 0.12s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Affiliate Disclosure Banner */
.affiliate-disclosure-banner {
    background-color: #1c1917;
    border-bottom: 1px solid var(--border-color);
    padding: 0.5rem 1.5rem;
    font-size: 0.75rem;
    color: #d6d3d1;
}

.disclosure-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.disclosure-badge {
    background-color: var(--primary);
    color: var(--text-white);
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    font-weight: 700;
    font-size: 0.65rem;
    text-transform: uppercase;
}

.disclosure-link {
    color: var(--text-white);
    text-decoration: underline;
    font-weight: 600;
}

.disclosure-link:hover {
    color: var(--primary-light);
}

/* Policy Pages */
.policy-page {
    padding: 2rem 0 3rem;
}

.policy-page-container {
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 2.25rem;
}

.policy-page-container h1 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
}

.policy-page-container h2 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    margin: 1.5rem 0 0.75rem;
}

.policy-page-container p,
.policy-page-container li {
    color: #44403c;
    font-size: 0.95rem;
    line-height: 1.7;
}

.policy-page-container ul {
    margin-left: 1.15rem;
}

.policy-updated {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.policy-cta {
    margin-top: 1.25rem;
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 500;
}

.cookie-consent-inner {
    max-width: 980px;
    margin: 0 auto;
    background-color: #1c1917;
    color: #f5f5f4;
    border: 1px solid #292524;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cookie-consent-title {
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.cookie-consent-copy p {
    font-size: 0.85rem;
    color: #d6d3d1;
}

.cookie-consent-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.cookie-consent .btn-secondary {
    background-color: transparent;
    color: #f5f5f4;
    border-color: #57534e;
}

.cookie-consent .btn-secondary:hover {
    background-color: #292524;
}

.cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 550;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.cookie-modal[hidden] {
    display: none;
}

.cookie-modal-backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.55);
}

.cookie-modal-panel {
    position: relative;
    width: 100%;
    max-width: 640px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    padding: 1.5rem;
}

.cookie-modal-panel h2 {
    font-family: var(--font-heading);
    margin-bottom: 0.4rem;
}

.cookie-modal-panel > p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.cookie-option {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.cookie-option p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.cookie-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.85rem;
    color: var(--text-main);
}

.cookie-modal-actions {
    margin-top: 1rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
}

body.cookie-modal-open {
    overflow: hidden;
}

@media (max-width: 900px) {
    .cookie-consent-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}
