/**
 * Affiliate Starter Theme — Main Stylesheet
 * Mobile-first, performance-optimized, conversion-focused.
 */

/* ─── CSS Variables ─────────────────────────────────────────────────── */
:root {
    --ast-primary: #f59e0b;
    --ast-primary-hover: #d97706;
    --ast-accent: #2563eb;
    --ast-accent-hover: #1d4ed8;
    --ast-text: #0f172a;
    --ast-text-light: #64748b;
    --ast-text-muted: #94a3b8;
    --ast-bg: #ffffff;
    --ast-bg-alt: #f8fafc;
    --ast-bg-dark: #0f172a;
    --ast-border: #e2e8f0;
    --ast-radius: 10px;
    --ast-radius-sm: 6px;
    --ast-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    --ast-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --ast-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.1);
    --ast-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --ast-container: 1200px;
    --ast-gap: 24px;
}

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

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

a { color: var(--ast-accent); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--ast-accent-hover); }

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

/* ─── Skip Link ─────────────────────────────────────────────────────── */
.ast-skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 10000;
    background: var(--ast-accent);
    color: #fff;
    padding: 8px 16px;
}
.ast-skip-link:focus { left: 0; }

/* ─── Container ─────────────────────────────────────────────────────── */
.ast-container {
    max-width: var(--ast-container);
    margin: 0 auto;
    padding: 0 20px;
}

/* ─── Top Bar ───────────────────────────────────────────────────────── */
.ast-top-bar {
    background: var(--ast-bg-dark);
    padding: 6px 0;
    font-size: 13px;
}

.ast-top-menu {
    list-style: none;
    display: flex;
    gap: 20px;
    overflow-x: auto;
}

.ast-top-menu li a {
    color: #cbd5e1;
    white-space: nowrap;
}

.ast-top-menu li a:hover { color: #fff; }

/* ─── Header ────────────────────────────────────────────────────────── */
.ast-header {
    background: var(--ast-bg);
    border-bottom: 1px solid var(--ast-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 12px 0;
}

/* Offset for WP admin bar */
.admin-bar .ast-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .ast-header { top: 46px; } }

.ast-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.ast-logo a,
.ast-site-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--ast-text);
    text-decoration: none;
}

.ast-logo img {
    max-height: 44px;
    width: auto;
}

/* ─── Header Search ────────────────────────────────────────────────── */
.ast-header-search {
    flex: 1;
    max-width: 420px;
}

.ast-header-search form {
    position: relative;
    display: flex;
    align-items: center;
}

.ast-header-search .ast-search-icon {
    position: absolute;
    left: 14px;
    color: var(--ast-muted);
    pointer-events: none;
}

.ast-header-search input[type="search"] {
    width: 100%;
    padding: 10px 16px 10px 42px;
    border: 1px solid var(--ast-border);
    border-radius: 50px;
    background: var(--ast-bg-alt);
    font-size: 14px;
    font-family: inherit;
    color: var(--ast-text);
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    outline: none;
}

.ast-header-search input[type="search"]::placeholder {
    color: var(--ast-muted);
}

.ast-header-search input[type="search"]:focus {
    border-color: var(--ast-accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background: var(--ast-bg);
}

.ast-header-search input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
}

@media (max-width: 768px) {
    .ast-header-search {
        order: 3;
        flex: 0 0 100%;
        max-width: 100%;
    }
    .ast-header-inner {
        flex-wrap: wrap;
    }
}

/* ─── Navigation ────────────────────────────────────────────────────── */
.ast-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ast-menu {
    list-style: none;
    display: flex;
    gap: 4px;
}

.ast-menu li a {
    display: block;
    padding: 8px 14px;
    color: var(--ast-text);
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--ast-radius-sm);
    transition: background 0.15s;
}

.ast-menu li a:hover { background: var(--ast-bg-alt); }
.ast-menu li.current-menu-item a { color: var(--ast-accent); font-weight: 600; }

/* Submenu */
.ast-menu .sub-menu {
    display: none;
    position: absolute;
    background: #fff;
    border: 1px solid var(--ast-border);
    border-radius: var(--ast-radius);
    box-shadow: var(--ast-shadow-md);
    min-width: 200px;
    padding: 8px;
    list-style: none;
    z-index: 100;
}
.ast-menu li:hover > .sub-menu { display: block; }
.ast-menu .sub-menu li { position: relative; }
.ast-menu .sub-menu li a { padding: 8px 12px; font-size: 13px; }

/* Mobile toggle */
.ast-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 24px;
    position: relative;
}
.ast-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--ast-text);
    position: absolute;
    left: 0;
    transition: 0.2s;
}
.ast-menu-toggle span:nth-child(1) { top: 0; }
.ast-menu-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.ast-menu-toggle span:nth-child(3) { bottom: 0; }

.ast-menu-toggle[aria-expanded="true"] span:nth-child(1) { top: 50%; transform: rotate(45deg); }
.ast-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.ast-menu-toggle[aria-expanded="true"] span:nth-child(3) { bottom: 50%; transform: rotate(-45deg); }

@media (max-width: 768px) {
    .ast-menu-toggle { display: block; }
    .ast-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid var(--ast-border);
        padding: 16px 20px;
        flex-direction: column;
        box-shadow: var(--ast-shadow-md);
    }
    .ast-nav.ast-nav-open { display: flex; }
    .ast-menu { flex-direction: column; gap: 0; }
    .ast-menu .sub-menu { position: static; box-shadow: none; border: none; padding-left: 16px; }
}

/* Cart icon */
.ast-header-cart a {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--ast-text);
    padding: 8px;
}
.ast-cart-count {
    background: var(--ast-primary);
    color: var(--ast-text);
    font-size: 11px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 10px;
    line-height: 1.4;
}

/* ─── Main Content ──────────────────────────────────────────────────── */
.ast-main {
    min-height: 60vh;
}

.ast-content-area {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: var(--ast-gap);
    padding-top: 32px;
    padding-bottom: 48px;
}

.ast-content-full {
    padding-top: 32px;
    padding-bottom: 48px;
}

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

/* ─── Hero ──────────────────────────────────────────────────────────── */
.ast-hero {
    background: linear-gradient(135deg, #0f172a, #1e3a5f);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.ast-hero-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 8px;
}

.ast-hero-subtitle {
    font-size: 18px;
    color: #94a3b8;
    margin-bottom: 24px;
}

.ast-hero-search {
    max-width: 500px;
    margin: 0 auto;
}

.ast-hero-search .search-form {
    display: flex;
    gap: 0;
}

.ast-hero-search .search-field {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid rgba(255,255,255,0.2);
    border-right: none;
    border-radius: var(--ast-radius) 0 0 var(--ast-radius);
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 16px;
    outline: none;
}

.ast-hero-search .search-field::placeholder { color: #94a3b8; }

.ast-hero-search .search-submit {
    padding: 14px 24px;
    background: var(--ast-primary);
    color: var(--ast-text);
    border: none;
    border-radius: 0 var(--ast-radius) var(--ast-radius) 0;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.ast-hero-search .search-submit:hover { background: var(--ast-primary-hover); }

/* ─── Sections ──────────────────────────────────────────────────────── */
.ast-section {
    margin-bottom: 48px;
}

.ast-section-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--ast-border);
}

.ast-home-content {
    padding-top: 40px;
    padding-bottom: 40px;
}

/* ─── Category Grid ─────────────────────────────────────────────────── */
.ast-category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

@media (max-width: 768px) { .ast-category-grid { grid-template-columns: repeat(2, 1fr); } }

.ast-category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: var(--ast-bg-alt);
    border: 1px solid var(--ast-border);
    border-radius: var(--ast-radius);
    text-decoration: none;
    transition: all 0.15s;
}

.ast-category-card:hover {
    border-color: var(--ast-accent);
    box-shadow: var(--ast-shadow-md);
    transform: translateY(-2px);
}

.ast-category-name {
    font-weight: 600;
    color: var(--ast-text);
    font-size: 15px;
}

.ast-category-count {
    font-size: 12px;
    color: var(--ast-text-muted);
}

/* ─── Deals Grid ────────────────────────────────────────────────────── */
.ast-deals-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

@media (max-width: 768px) { .ast-deals-grid { grid-template-columns: repeat(2, 1fr); } }

.ast-deal-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 16px;
    background: #fff;
    border: 1px solid var(--ast-border);
    border-radius: var(--ast-radius);
    text-decoration: none;
    position: relative;
    transition: box-shadow 0.15s;
    text-align: center;
}

.ast-deal-card:hover { box-shadow: var(--ast-shadow-md); }

.ast-deal-badge {
    position: absolute;
    top: -8px;
    right: 12px;
    background: #dc2626;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
}

.ast-deal-card img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 10px;
}

.ast-deal-title {
    font-size: 13px;
    color: var(--ast-text);
    margin-bottom: 6px;
    line-height: 1.3;
}

.ast-deal-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--ast-accent);
}

/* ─── Post Grid ─────────────────────────────────────────────────────── */
.ast-post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--ast-gap);
}

@media (max-width: 900px) { .ast-post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .ast-post-grid { grid-template-columns: 1fr; } }

.ast-post-card {
    background: #fff;
    border: 1px solid var(--ast-border);
    border-radius: var(--ast-radius);
    overflow: hidden;
    transition: box-shadow 0.15s;
}

.ast-post-card:hover { box-shadow: var(--ast-shadow-md); }

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

.ast-post-card-body { padding: 16px; }

.ast-post-card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.3;
}

.ast-post-card-title a { color: var(--ast-text); }
.ast-post-card-title a:hover { color: var(--ast-accent); }

.ast-post-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--ast-text-muted);
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.ast-badge {
    background: var(--ast-accent);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.ast-post-excerpt { font-size: 14px; color: var(--ast-text-light); line-height: 1.5; }

.ast-read-more {
    display: inline-block;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
}

/* ─── Single Post/Page ──────────────────────────────────────────────── */
.ast-single-header { margin-bottom: 24px; }
.ast-single-title, .ast-page-title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
}

.ast-featured-image {
    margin-bottom: 24px;
    border-radius: var(--ast-radius);
    overflow: hidden;
    text-align: center;
}

.ast-featured-image img {
    max-height: 400px;
    width: auto;
    margin: 0 auto;
    object-fit: contain;
}

.ast-single-content,
.ast-page-content {
    font-size: 17px;
    line-height: 1.8;
    color: #334155;
}

.ast-single-content h2,
.ast-page-content h2 {
    font-size: 24px;
    margin: 32px 0 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--ast-border);
}

.ast-single-content h3,
.ast-page-content h3 {
    font-size: 20px;
    margin: 24px 0 12px;
}

.ast-single-content p,
.ast-page-content p { margin-bottom: 16px; }

.ast-single-content ul,
.ast-single-content ol,
.ast-page-content ul,
.ast-page-content ol {
    margin: 0 0 16px 20px;
}

.ast-single-content li,
.ast-page-content li { margin-bottom: 6px; }

/* ─── Content Images: centered, max 400px tall ────────────────────── */
.ast-single-content figure.wp-block-image {
    text-align: center;
}

.ast-single-content figure.wp-block-image img {
    max-height: 400px;
    width: auto;
    margin: 0 auto;
    object-fit: contain;
}

/* ─── Tables: Specifications & Comparisons ────────────────────────── */

.ast-single-content table,
.ast-page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--ast-border);
    font-size: 15px;
    table-layout: fixed;
}

.ast-single-content th,
.ast-single-content td,
.ast-page-content th,
.ast-page-content td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--ast-border);
    text-align: left;
    vertical-align: top;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.ast-single-content th,
.ast-page-content th {
    background: #1e293b;
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.ast-single-content thead + tbody tr:nth-child(even),
.ast-page-content thead + tbody tr:nth-child(even) {
    background: var(--ast-bg-alt);
}

.ast-single-content tbody tr:hover,
.ast-page-content tbody tr:hover {
    background: #f0f6fc;
}

/* Spec tables (2 columns, no thead) — label bold on left */
.ast-single-content table:not(:has(thead)) td:first-child,
.ast-page-content table:not(:has(thead)) td:first-child {
    font-weight: 600;
    color: #1e293b;
    width: 38%;
    background: var(--ast-bg-alt);
}

.ast-single-content table:not(:has(thead)) tr:nth-child(even) td:first-child,
.ast-page-content table:not(:has(thead)) tr:nth-child(even) td:first-child {
    background: #eef2f6;
}

/* Remove double border on last row */
.ast-single-content tr:last-child td,
.ast-page-content tr:last-child td {
    border-bottom: none;
}

/* ─── Tables: Mobile ──────────────────────────────────────────────── */

@media (max-width: 768px) {
    .ast-single-content table,
    .ast-page-content table {
        font-size: 13px;
    }

    .ast-single-content th,
    .ast-single-content td,
    .ast-page-content th,
    .ast-page-content td {
        padding: 8px 10px;
    }

    .ast-single-content th,
    .ast-page-content th {
        font-size: 11px;
    }

    /* Comparison tables (with thead, 3+ columns): stack on mobile */
    .ast-single-content table:has(thead),
    .ast-page-content table:has(thead) {
        table-layout: auto;
    }

    .ast-single-content table:has(thead) thead,
    .ast-page-content table:has(thead) thead {
        display: none;
    }

    .ast-single-content table:has(thead) tbody tr,
    .ast-page-content table:has(thead) tbody tr {
        display: block;
        margin-bottom: 12px;
        border: 1px solid var(--ast-border);
        border-radius: 6px;
        overflow: hidden;
    }

    .ast-single-content table:has(thead) tbody td,
    .ast-page-content table:has(thead) tbody td {
        display: flex;
        justify-content: space-between;
        gap: 8px;
        border-bottom: 1px solid var(--ast-border);
        text-align: right;
    }

    .ast-single-content table:has(thead) tbody td::before,
    .ast-page-content table:has(thead) tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #1e293b;
        text-align: left;
        flex-shrink: 0;
    }

    .ast-single-content table:has(thead) tbody td:first-child,
    .ast-page-content table:has(thead) tbody td:first-child {
        background: #1e293b;
        color: #fff;
        font-weight: 600;
        display: block;
        text-align: left;
    }

    .ast-single-content table:has(thead) tbody td:first-child::before,
    .ast-page-content table:has(thead) tbody td:first-child::before {
        display: none;
    }

    /* Spec tables (no thead): keep 2-column but tighter */
    .ast-single-content table:not(:has(thead)) td:first-child,
    .ast-page-content table:not(:has(thead)) td:first-child {
        width: 42%;
    }
}

@media (max-width: 480px) {
    .ast-single-content table,
    .ast-page-content table {
        font-size: 12px;
    }

    .ast-single-content th,
    .ast-single-content td,
    .ast-page-content th,
    .ast-page-content td {
        padding: 7px 8px;
    }

    /* Spec tables: also stack on very small screens */
    .ast-single-content table:not(:has(thead)) tr,
    .ast-page-content table:not(:has(thead)) tr {
        display: flex;
        flex-direction: column;
    }

    .ast-single-content table:not(:has(thead)) td:first-child,
    .ast-page-content table:not(:has(thead)) td:first-child {
        width: 100%;
        border-bottom: none;
        padding-bottom: 2px;
    }

    .ast-single-content table:not(:has(thead)) td:last-child,
    .ast-page-content table:not(:has(thead)) td:last-child {
        padding-top: 2px;
    }
}

/* Legal page content */
.ast-legal-content { max-width: 800px; }

/* Tags */
.ast-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.ast-tag {
    background: var(--ast-bg-alt);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: var(--ast-text-light);
}

/* ─── SEO Page ──────────────────────────────────────────────────────── */
.ast-seo-header { margin-bottom: 20px; }
.ast-seo-title { font-size: 30px; font-weight: 800; }
.ast-seo-meta { font-size: 13px; color: var(--ast-text-muted); }

.ast-related-seo { margin-top: 48px; }
.ast-related-seo h2 { font-size: 22px; margin-bottom: 16px; }

.ast-related-seo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

@media (max-width: 768px) { .ast-related-seo-grid { grid-template-columns: repeat(2, 1fr); } }

.ast-related-seo-card {
    display: block;
    padding: 16px;
    background: var(--ast-bg-alt);
    border: 1px solid var(--ast-border);
    border-radius: var(--ast-radius);
    font-size: 14px;
    font-weight: 500;
    color: var(--ast-text);
    transition: all 0.15s;
}

.ast-related-seo-card:hover {
    border-color: var(--ast-accent);
    color: var(--ast-accent);
}

/* ─── Sidebar ───────────────────────────────────────────────────────── */
.ast-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ast-widget {
    background: var(--ast-bg-alt);
    border: 1px solid var(--ast-border);
    border-radius: var(--ast-radius);
    padding: 20px;
}

.ast-widget-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--ast-border);
}

.ast-widget ul { list-style: none; }
.ast-widget li { padding: 6px 0; border-bottom: 1px solid var(--ast-border); }
.ast-widget li:last-child { border-bottom: none; }
.ast-widget li a { color: var(--ast-text); font-size: 14px; }
.ast-widget li a:hover { color: var(--ast-accent); }

/* ─── Breadcrumbs ───────────────────────────────────────────────────── */
.ast-breadcrumbs {
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--ast-text-muted);
}

.ast-breadcrumbs ol {
    list-style: none;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.ast-breadcrumbs li::after { content: " / "; margin-left: 6px; }
.ast-breadcrumbs li:last-child::after { content: ""; }
.ast-breadcrumbs a { color: var(--ast-text-light); }

/* ─── 404 ───────────────────────────────────────────────────────────── */
.ast-404 {
    text-align: center;
    padding: 80px 20px;
}

.ast-404 h1 {
    font-size: 120px;
    font-weight: 900;
    color: var(--ast-border);
    line-height: 1;
    margin-bottom: 16px;
}

.ast-404 p {
    font-size: 18px;
    color: var(--ast-text-light);
    margin-bottom: 24px;
}

/* ─── Buttons ───────────────────────────────────────────────────────── */
.ast-btn {
    display: inline-block;
    padding: 12px 28px;
    background: var(--ast-accent);
    color: #fff;
    border-radius: var(--ast-radius-sm);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: background 0.15s;
}

.ast-btn:hover { background: var(--ast-accent-hover); color: #fff; }

/* ─── Footer ────────────────────────────────────────────────────────── */
.ast-footer {
    background: var(--ast-bg-dark);
    color: #cbd5e1;
}

.ast-footer-widgets {
    padding: 48px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.ast-footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

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

.ast-footer-widget h4 {
    color: #fff;
    font-size: 15px;
    margin-bottom: 16px;
}

.ast-footer-widget p, .ast-footer-widget li { font-size: 14px; }
.ast-footer-widget ul { list-style: none; }
.ast-footer-widget li { padding: 4px 0; }
.ast-footer-widget a { color: #94a3b8; }
.ast-footer-widget a:hover { color: #fff; }

/* Footer nav */
.ast-footer-nav {
    padding: 16px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.ast-footer-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.ast-footer-menu a {
    color: #94a3b8;
    font-size: 13px;
}

.ast-footer-menu a:hover { color: #fff; }

/* Footer bottom */
.ast-footer-bottom { padding: 20px 0; }

.ast-footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.ast-copyright { font-size: 13px; }

.ast-disclosure {
    font-size: 11px;
    color: #64748b;
    max-width: 500px;
    text-align: right;
}

/* ─── Pagination ────────────────────────────────────────────────────── */
.navigation.pagination {
    margin-top: 32px;
    text-align: center;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 6px;
}

.nav-links .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid var(--ast-border);
    border-radius: var(--ast-radius-sm);
    font-size: 14px;
    color: var(--ast-text);
}

.nav-links .page-numbers.current {
    background: var(--ast-accent);
    color: #fff;
    border-color: var(--ast-accent);
}

.nav-links .page-numbers:hover:not(.current) {
    background: var(--ast-bg-alt);
}

/* ─── Related Section ───────────────────────────────────────────────── */
.ast-related {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--ast-border);
}

.ast-related h2 {
    font-size: 22px;
    margin-bottom: 20px;
}

/* ─── No Results ────────────────────────────────────────────────────── */
.ast-no-results {
    text-align: center;
    padding: 48px 20px;
}

.ast-no-results h2 {
    font-size: 24px;
    margin-bottom: 12px;
}

/* ─── Search Form ───────────────────────────────────────────────────── */
.search-form {
    display: flex;
    max-width: 500px;
}

.search-field {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid var(--ast-border);
    border-right: none;
    border-radius: var(--ast-radius) 0 0 var(--ast-radius);
    font-size: 15px;
    outline: none;
}

.search-field:focus { border-color: var(--ast-accent); }

.search-submit {
    padding: 10px 20px;
    background: var(--ast-accent);
    color: #fff;
    border: none;
    border-radius: 0 var(--ast-radius) var(--ast-radius) 0;
    font-weight: 600;
    cursor: pointer;
}

/* ─── Page Updated ──────────────────────────────────────────────────── */
.ast-page-updated {
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px solid var(--ast-border);
    color: var(--ast-text-muted);
}

/* ─── WooCommerce Overrides ─────────────────────────────────────────── */
.woocommerce .products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--ast-gap);
}

@media (max-width: 768px) {
    .woocommerce .products { grid-template-columns: repeat(2, 1fr); }
}

.woocommerce ul.products li.product {
    border: 1px solid var(--ast-border);
    border-radius: var(--ast-radius);
    padding: 16px;
    transition: box-shadow 0.15s;
}

.woocommerce ul.products li.product:hover { box-shadow: var(--ast-shadow-md); }

.woocommerce ul.products li.product a img {
    border-radius: var(--ast-radius-sm);
}

.woocommerce a.button,
.woocommerce button.button {
    background: var(--ast-primary) !important;
    color: var(--ast-text) !important;
    border-radius: var(--ast-radius-sm) !important;
    font-weight: 600 !important;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover {
    background: var(--ast-primary-hover) !important;
}

/* ═══════════════════════════════════════════════════════════════════════
   FRONT PAGE — Modern Affiliate Homepage
   ═══════════════════════════════════════════════════════════════════════ */

/* ─── Hero ──────────────────────────────────────────────────────────── */
.fp-hero {
    position: relative;
    overflow: hidden;
    padding: 80px 0 72px;
    background: linear-gradient(160deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    color: #fff;
    text-align: center;
}

.fp-hero-bg {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.05) 1px, transparent 0);
    background-size: 32px 32px;
    pointer-events: none;
}

.fp-hero-inner {
    position: relative;
    z-index: 1;
}

.fp-hero-badge {
    display: inline-block;
    padding: 6px 18px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    color: #94a3b8;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.fp-hero-title {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
}

.fp-hero-title span {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.fp-hero-subtitle {
    font-size: 18px;
    line-height: 1.6;
    color: #94a3b8;
    max-width: 560px;
    margin: 0 auto 32px;
}

/* Hero search */
.fp-hero-search {
    max-width: 520px;
    margin: 0 auto 36px;
}

.fp-hero-search form {
    display: flex;
    position: relative;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    overflow: hidden;
    backdrop-filter: blur(12px);
    transition: border-color 0.2s;
}

.fp-hero-search form:focus-within {
    border-color: rgba(245,158,11,0.5);
}

.fp-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.fp-hero-search input[type="search"] {
    flex: 1;
    padding: 16px 16px 16px 48px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 16px;
    font-family: var(--ast-font);
    outline: none;
}

.fp-hero-search input[type="search"]::placeholder {
    color: #64748b;
}

.fp-hero-search button {
    padding: 16px 28px;
    background: var(--ast-primary);
    color: #0f172a;
    border: none;
    font-size: 15px;
    font-weight: 700;
    font-family: var(--ast-font);
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
}

.fp-hero-search button:hover {
    background: var(--ast-primary-hover);
}

/* Hero trust badges */
.fp-hero-trust {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.fp-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #94a3b8;
    font-weight: 500;
}

.fp-trust-item svg {
    color: #10b981;
    flex-shrink: 0;
}

/* ─── Section common ────────────────────────────────────────────────── */
.fp-section {
    padding: 56px 0;
}

.fp-section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 32px;
}

.fp-section-header h2 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--ast-text);
}

.fp-section-header-center {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.fp-section-subtitle {
    font-size: 16px;
    color: var(--ast-text-light);
    max-width: 480px;
    margin-top: 8px;
}

.fp-view-all {
    font-size: 14px;
    font-weight: 600;
    color: var(--ast-accent);
    white-space: nowrap;
}

.fp-view-all:hover { color: var(--ast-accent-hover); }

/* Category badges */
.fp-cat-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.fp-cat-badge-sm {
    padding: 3px 10px;
    font-size: 11px;
}

/* Read more link */
.fp-read-more {
    font-size: 14px;
    font-weight: 600;
    color: var(--ast-accent);
    transition: color 0.15s;
}

/* ─── Bento Grid (featured) ─────────────────────────────────────────── */
.fp-featured {
    background: var(--ast-bg-alt);
    border-top: 1px solid var(--ast-border);
    border-bottom: 1px solid var(--ast-border);
}

.fp-bento {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 20px;
    min-height: 420px;
}

/* Big card */
.fp-bento-big {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 36px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--ast-border);
    text-decoration: none;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}

.fp-bento-big:hover {
    box-shadow: var(--ast-shadow-lg);
    transform: translateY(-2px);
}

.fp-bento-big-bg {
    position: absolute;
    inset: 0;
    opacity: 0.6;
    z-index: 0;
}

.fp-bento-big-content {
    position: relative;
    z-index: 1;
}

.fp-bento-big-content h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--ast-text);
    line-height: 1.25;
    margin: 12px 0 10px;
    letter-spacing: -0.3px;
}

.fp-bento-big-content p {
    font-size: 15px;
    color: var(--ast-text-light);
    line-height: 1.5;
    margin-bottom: 16px;
}

/* Side cards */
.fp-bento-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.fp-bento-card {
    flex: 1;
    display: flex;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--ast-border);
    overflow: hidden;
    text-decoration: none;
    transition: box-shadow 0.2s, transform 0.2s;
}

.fp-bento-card:hover {
    box-shadow: var(--ast-shadow-md);
    transform: translateY(-2px);
}

.fp-bento-card-stripe {
    width: 6px;
    flex-shrink: 0;
}

.fp-bento-card-body {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.fp-bento-card-body h4 {
    font-size: 17px;
    font-weight: 700;
    color: var(--ast-text);
    line-height: 1.3;
    margin: 8px 0 6px;
}

.fp-bento-card-body p {
    font-size: 13px;
    color: var(--ast-text-light);
    line-height: 1.5;
    margin-bottom: 10px;
}

/* ─── Category Cards ────────────────────────────────────────────────── */
.fp-cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.fp-cat-card {
    position: relative;
    display: block;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 3 / 2;
    text-decoration: none;
    background: #1a1a2e;
}

.fp-cat-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease, filter 0.3s;
    filter: brightness(0.85);
}

.fp-cat-card:hover .fp-cat-card-img {
    transform: scale(1.08);
    filter: brightness(0.7);
}

.fp-cat-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 24px;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.25) 60%, transparent 100%);
    pointer-events: none;
}

.fp-cat-card-overlay h3 {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 4px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
    letter-spacing: -0.3px;
}

.fp-cat-card-count {
    font-size: 13px;
    color: rgba(255,255,255,0.85);
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* ─── How We Review ─────────────────────────────────────────────────── */
.fp-how {
    background: var(--ast-bg-alt);
    border-top: 1px solid var(--ast-border);
    border-bottom: 1px solid var(--ast-border);
}

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

.fp-how-step {
    text-align: center;
    padding: 32px 20px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--ast-border);
    transition: box-shadow 0.2s;
}

.fp-how-step:hover {
    box-shadow: var(--ast-shadow-md);
}

.fp-how-emoji {
    font-size: 48px;
    line-height: 1;
    margin-bottom: 14px;
}

.fp-how-number {
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.fp-how-step-blue  { border-top: 3px solid #3b82f6; }
.fp-how-step-green { border-top: 3px solid #10b981; }
.fp-how-step-amber { border-top: 3px solid #f59e0b; }
.fp-how-step-purple { border-top: 3px solid #8b5cf6; }

.fp-how-step-blue  .fp-how-number { color: #3b82f6; }
.fp-how-step-green .fp-how-number { color: #10b981; }
.fp-how-step-amber .fp-how-number { color: #f59e0b; }
.fp-how-step-purple .fp-how-number { color: #8b5cf6; }

.fp-how-step h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--ast-text);
    margin-bottom: 8px;
}

.fp-how-step p {
    font-size: 14px;
    color: var(--ast-text-light);
    line-height: 1.55;
}

/* ─── More Reviews Grid ─────────────────────────────────────────────── */
.fp-review-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.fp-review-card {
    display: flex;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--ast-border);
    overflow: hidden;
    text-decoration: none;
    transition: box-shadow 0.2s, transform 0.2s;
}

.fp-review-card:hover {
    box-shadow: var(--ast-shadow-md);
    transform: translateY(-2px);
}

.fp-review-card-accent {
    width: 5px;
    flex-shrink: 0;
}

.fp-review-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.fp-review-card-body h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--ast-text);
    line-height: 1.3;
    margin: 8px 0;
}

.fp-review-card-body p {
    font-size: 14px;
    color: var(--ast-text-light);
    line-height: 1.5;
    margin-bottom: 12px;
    flex: 1;
}

.fp-review-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fp-review-card-meta time {
    font-size: 12px;
    color: var(--ast-text-muted);
}

/* ─── CTA / Newsletter ──────────────────────────────────────────────── */
.fp-cta {
    background: linear-gradient(135deg, #0f172a, #1e3a5f);
    padding: 64px 0;
}

.fp-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.fp-cta-text h2 {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.fp-cta-text p {
    font-size: 16px;
    color: #94a3b8;
    max-width: 400px;
}

.fp-cta-form {
    display: flex;
    gap: 0;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.12);
}

.fp-cta-form input[type="email"] {
    padding: 16px 20px;
    width: 280px;
    background: rgba(255,255,255,0.08);
    border: none;
    color: #fff;
    font-size: 15px;
    font-family: var(--ast-font);
    outline: none;
}

.fp-cta-form input[type="email"]::placeholder {
    color: #64748b;
}

.fp-cta-form button {
    padding: 16px 28px;
    background: var(--ast-primary);
    color: #0f172a;
    border: none;
    font-size: 15px;
    font-weight: 700;
    font-family: var(--ast-font);
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
}

.fp-cta-form button:hover {
    background: var(--ast-primary-hover);
}

/* ─── Front Page Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
    .fp-hero { padding: 56px 0 48px; }
    .fp-hero-title { font-size: 38px; }

    .fp-bento {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .fp-bento-big { min-height: 240px; }

    .fp-bento-side {
        flex-direction: row;
        gap: 16px;
    }

    .fp-bento-card { flex: 1; }

    .fp-cat-grid { grid-template-columns: repeat(3, 1fr); }

    .fp-how-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .fp-review-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .fp-cta-inner {
        flex-direction: column;
        text-align: center;
    }

    .fp-cta-text p { margin: 0 auto; }
}

@media (max-width: 600px) {
    .fp-hero-title { font-size: 32px; letter-spacing: -1px; }
    .fp-hero-subtitle { font-size: 16px; }
    .fp-hero-search button { padding: 14px 18px; font-size: 14px; }

    .fp-bento-side { flex-direction: column; }

    .fp-cat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .fp-cat-card-overlay h3 { font-size: 16px; }
    .fp-cat-card-overlay { padding: 14px 16px; }

    .fp-how-grid { grid-template-columns: 1fr; }

    .fp-review-grid { grid-template-columns: 1fr; }

    .fp-section-header h2 { font-size: 24px; }

    .fp-cta-form {
        flex-direction: column;
        width: 100%;
        border-radius: 12px;
    }

    .fp-cta-form input[type="email"] {
        width: 100%;
        border-radius: 12px 12px 0 0;
    }

    .fp-cta-form button {
        border-radius: 0 0 12px 12px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   HERO SLIDER
   ═══════════════════════════════════════════════════════════════════════ */

.fp-hero-slider {
    position: relative;
    overflow: hidden;
    min-height: 480px;
    background: #0f172a;
}

.fp-slider-track {
    position: relative;
    width: 100%;
    height: 480px;
}

.fp-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
    display: flex;
    align-items: center;
    pointer-events: none;
}

.fp-slide-active {
    opacity: 1;
    pointer-events: auto;
}

.fp-slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    transition: transform 6s ease;
}

.fp-slide-active .fp-slide-bg {
    transform: scale(1);
}

.fp-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(15,23,42,0.92) 0%, rgba(15,23,42,0.6) 60%, rgba(15,23,42,0.3) 100%);
}

.fp-slide-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 600px;
    padding: 40px 0;
}

.fp-slide-title {
    font-size: 40px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    margin: 16px 0 12px;
}

.fp-slide-excerpt {
    font-size: 16px;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 24px;
}

.fp-slide-cta {
    display: inline-block;
    padding: 12px 28px;
    background: var(--ast-primary);
    color: #0f172a;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    transition: background 0.15s;
}

.fp-slide-cta:hover {
    background: var(--ast-primary-hover);
    color: #0f172a;
}

/* Slider dots */
.fp-slider-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.fp-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.5);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}

.fp-dot-active,
.fp-dot:hover {
    background: var(--ast-primary);
    border-color: var(--ast-primary);
}

/* Search bar below slider */
.fp-hero-search-wrap {
    padding: 20px 0;
    background: #0f172a;
}

@media (max-width: 768px) {
    .fp-hero-slider,
    .fp-slider-track { min-height: 380px; height: 380px; }
    .fp-slide-title { font-size: 28px; }
    .fp-slide-excerpt { font-size: 14px; }
    .fp-slider-dots { bottom: 16px; }
}

@media (max-width: 480px) {
    .fp-hero-slider,
    .fp-slider-track { min-height: 340px; height: 340px; }
    .fp-slide-title { font-size: 24px; }
    .fp-slider-dots { bottom: 12px; }
}

/* ═══════════════════════════════════════════════════════════════════════
   BENTO CARD IMAGES
   ═══════════════════════════════════════════════════════════════════════ */

.fp-bento-big-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.25;
    z-index: 0;
    transition: opacity 0.3s;
}

.fp-bento-big:hover .fp-bento-big-img {
    opacity: 0.35;
}

.fp-bento-card-thumb {
    width: 120px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
}

@media (max-width: 600px) {
    .fp-bento-card-thumb { width: 90px; }
}

/* ═══════════════════════════════════════════════════════════════════════
   REVIEW CARD IMAGES
   ═══════════════════════════════════════════════════════════════════════ */

.fp-review-card {
    flex-direction: column;
}

.fp-review-card-img {
    height: 160px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.fp-review-card-accent {
    display: none;
}

/* When there's an image, hide the accent bar */
.fp-review-card:has(.fp-review-card-img) .fp-review-card-accent {
    display: none;
}

/* When there's no image, show accent bar */
.fp-review-card:not(:has(.fp-review-card-img)) {
    flex-direction: row;
}

.fp-review-card:not(:has(.fp-review-card-img)) .fp-review-card-accent {
    display: block;
}

@media (max-width: 600px) {
    .fp-review-card-img { height: 120px; }
}

/* ═══════════════════════════════════════════════════════════════════════
   COMMENTS SECTION
   ═══════════════════════════════════════════════════════════════════════ */

.ast-comments-area {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--ast-border);
}

.ast-comments-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--ast-text);
    margin-bottom: 24px;
}

.ast-comments-heading svg {
    color: var(--ast-accent);
    flex-shrink: 0;
}

/* Comment form wrapper */
.ast-comment-form-wrap {
    background: #fff;
    border: 1px solid var(--ast-border);
    border-radius: var(--ast-radius);
    padding: 28px;
    margin-bottom: 32px;
    box-shadow: var(--ast-shadow);
}

.ast-comment-note {
    font-size: 13px;
    color: var(--ast-text-muted);
    margin-bottom: 20px;
}

.ast-comment-note .required { color: #ef4444; }

/* Form fields */
.ast-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.ast-field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ast-field-group.ast-field-full {
    margin-bottom: 16px;
}

.ast-field-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--ast-text);
}

.ast-field-group .required { color: #ef4444; }
.ast-field-group .ast-optional { color: var(--ast-text-muted); font-weight: 400; font-size: 12px; }

.ast-field-group input,
.ast-field-group textarea {
    padding: 10px 14px;
    border: 1px solid var(--ast-border);
    border-radius: var(--ast-radius-sm);
    font-size: 15px;
    font-family: var(--ast-font);
    transition: border-color 0.15s, box-shadow 0.15s;
    outline: none;
    width: 100%;
}

.ast-field-group input:focus,
.ast-field-group textarea:focus {
    border-color: var(--ast-accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.ast-field-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Submit */
.ast-submit-wrap {
    margin-top: 4px;
}

.ast-comment-submit {
    display: inline-block;
    padding: 12px 32px;
    background: var(--ast-accent);
    color: #fff;
    border: none;
    border-radius: var(--ast-radius-sm);
    font-size: 15px;
    font-weight: 600;
    font-family: var(--ast-font);
    cursor: pointer;
    transition: background 0.15s;
}

.ast-comment-submit:hover {
    background: var(--ast-accent-hover);
}

/* Logged in */
.ast-logged-in {
    font-size: 14px;
    color: var(--ast-text-light);
    margin-bottom: 16px;
}

/* reCAPTCHA notice */
.ast-recaptcha-notice {
    font-size: 11px;
    color: var(--ast-text-muted);
    margin-top: 16px;
    line-height: 1.5;
}

.ast-recaptcha-notice a { color: var(--ast-text-light); }

/* Hide Google's floating reCAPTCHA badge */
.grecaptcha-badge { visibility: hidden !important; }

/* Comment list */
.ast-comments-list-wrap {
    margin-top: 32px;
}

.ast-comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ast-comment {
    margin-bottom: 0;
    padding: 20px 0;
    border-bottom: 1px solid var(--ast-border);
    list-style: none;
}

.ast-comment:last-child { border-bottom: none; }

.ast-comment-inner {
    display: flex;
    gap: 16px;
}

.ast-comment-avatar {
    flex-shrink: 0;
}

.ast-avatar-img {
    border-radius: 50%;
    width: 48px;
    height: 48px;
}

.ast-comment-content {
    flex: 1;
    min-width: 0;
}

.ast-comment-meta {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 8px;
}

.ast-comment-author {
    font-size: 14px;
    font-weight: 600;
    color: var(--ast-text);
}

.ast-comment-date {
    font-size: 12px;
    color: var(--ast-text-muted);
}

.ast-comment-awaiting {
    background: #fffbeb;
    border: 1px solid #fef08a;
    padding: 8px 12px;
    border-radius: var(--ast-radius-sm);
    font-size: 13px;
    color: #92400e;
    margin-bottom: 8px;
}

.ast-comment-text {
    font-size: 15px;
    color: #334155;
    line-height: 1.6;
}

.ast-comment-text p { margin-bottom: 8px; }
.ast-comment-text p:last-child { margin-bottom: 0; }

.ast-comment-actions {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

.ast-reply-link a,
.ast-edit-link a {
    font-size: 13px;
    font-weight: 600;
    color: var(--ast-accent);
}

/* Threaded replies */
.ast-comment-list .children {
    list-style: none;
    padding-left: 32px;
    margin: 0;
    border-left: 2px solid var(--ast-border);
}

/* Comment navigation */
.ast-comment-nav {
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
    margin-top: 16px;
    border-top: 1px solid var(--ast-border);
    font-size: 14px;
    font-weight: 600;
}

.ast-comment-nav a { color: var(--ast-accent); }

.ast-no-comments {
    padding: 20px;
    background: var(--ast-bg-alt);
    border-radius: var(--ast-radius);
    text-align: center;
    color: var(--ast-text-muted);
    font-size: 14px;
    margin-top: 24px;
}

/* Reply form */
.ast-comment-list .comment-respond {
    padding: 20px;
    margin: 16px 0;
    background: var(--ast-bg-alt);
    border-radius: var(--ast-radius);
}

@media (max-width: 600px) {
    .ast-field-row { grid-template-columns: 1fr; }
    .ast-comment-inner { gap: 12px; }
    .ast-comment-list .children { padding-left: 16px; }
    .ast-comment-form-wrap { padding: 20px; }
}

/* ═══════════════════════════════════════════════════════════════════════
   SIDEBAR CUSTOM STYLES
   ═══════════════════════════════════════════════════════════════════════ */

.ast-widget-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ast-widget-title svg {
    color: var(--ast-accent);
    flex-shrink: 0;
}

/* Popular reviews list */
.ast-popular-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ast-popular-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--ast-border);
    align-items: center;
}

.ast-popular-item:last-child { border-bottom: none; }

.ast-popular-thumb {
    flex-shrink: 0;
    display: block;
}

.ast-popular-thumb img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.ast-popular-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.ast-popular-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--ast-text);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ast-popular-title:hover { color: var(--ast-accent); }

.ast-popular-cat {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Category list */
.ast-cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ast-cat-item {
    border-bottom: 1px solid var(--ast-border);
}

.ast-cat-item:last-child { border-bottom: none; }

.ast-cat-item a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    color: var(--ast-text);
    font-size: 14px;
    transition: color 0.15s;
}

.ast-cat-item a:hover { color: var(--ast-accent); }

.ast-cat-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.ast-cat-name {
    flex: 1;
}

.ast-cat-count {
    background: var(--ast-bg-alt);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--ast-text-muted);
}

/* ═══════════════════════════════════════════════════════════════════════
   CONTACT PAGE
   ═══════════════════════════════════════════════════════════════════════ */

.ast-contact-wrap {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    align-items: start;
}

.ast-contact-intro {
    font-size: 16px;
    color: var(--ast-text-light);
    line-height: 1.6;
    margin-bottom: 28px;
}

.ast-contact-form {
    background: #fff;
    border: 1px solid var(--ast-border);
    border-radius: var(--ast-radius);
    padding: 28px;
    box-shadow: var(--ast-shadow);
}

.ast-contact-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    background: var(--ast-accent);
    color: #fff;
    border: none;
    border-radius: var(--ast-radius-sm);
    font-size: 15px;
    font-weight: 600;
    font-family: var(--ast-font);
    cursor: pointer;
    transition: background 0.15s;
}

.ast-contact-submit:hover {
    background: var(--ast-accent-hover);
}

.ast-contact-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Spinner animation */
.ast-spinner-icon {
    animation: ast-spin 1s linear infinite;
}

@keyframes ast-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Feedback messages */
.ast-contact-feedback {
    padding: 14px 18px;
    border-radius: var(--ast-radius-sm);
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}

.ast-contact-feedback-success {
    background: #f0fdf4;
    border: 1px solid #86efac;
    color: #166534;
}

.ast-contact-feedback-error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

/* Info column */
.ast-contact-info-card {
    background: var(--ast-bg-alt);
    border: 1px solid var(--ast-border);
    border-radius: var(--ast-radius);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ast-contact-info-item {
    display: flex;
    gap: 14px;
}

.ast-contact-info-item svg {
    color: var(--ast-accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.ast-contact-info-item strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--ast-text);
    margin-bottom: 4px;
}

.ast-contact-info-item p {
    font-size: 14px;
    color: var(--ast-text-light);
    line-height: 1.5;
    margin: 0;
}

.ast-contact-info-item a {
    color: var(--ast-accent);
}

@media (max-width: 900px) {
    .ast-contact-wrap {
        grid-template-columns: 1fr;
    }
    .ast-contact-info-card {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 20px;
    }
    .ast-contact-info-item {
        flex: 1;
        min-width: 200px;
    }
}

@media (max-width: 600px) {
    .ast-contact-form { padding: 20px; }
    .ast-contact-info-card {
        flex-direction: column;
    }
}

/* ─── Amazon CTA Buttons ───────────────────────────────────────────── */
.ast-amazon-cta {
    margin: 20px 0 28px;
    text-align: center;
}

.ast-amazon-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(to bottom, #f7c948, #f0a500);
    color: #111 !important;
    font-weight: 700;
    font-size: 16px;
    border-radius: 50px;
    text-decoration: none !important;
    box-shadow: 0 2px 8px rgba(240, 165, 0, 0.35);
    transition: transform 0.15s, box-shadow 0.15s;
}

.ast-amazon-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(240, 165, 0, 0.45);
}

.ast-amazon-btn:active {
    transform: translateY(0);
}

.ast-amazon-cta-bottom {
    margin: 36px 0;
}

.ast-amazon-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 28px;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 2px solid #f59e0b;
    border-radius: 16px;
}

.ast-amazon-cta-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ast-amazon-cta-text strong {
    font-size: 18px;
    color: #92400e;
}

.ast-amazon-cta-text span {
    font-size: 14px;
    color: #78716c;
}

@media (max-width: 540px) {
    .ast-amazon-cta-inner {
        flex-direction: column;
        text-align: center;
    }
    .ast-amazon-btn {
        padding: 12px 24px;
        font-size: 15px;
    }
}

/* ─── Amazon Button Under Images ───────────────────────────────────── */
.ast-img-amazon-cta {
    text-align: center;
    margin: 12px 0 32px;
}

.ast-amazon-btn-sm {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: linear-gradient(to bottom, #f7c948, #f0a500);
    color: #111 !important;
    font-weight: 600;
    font-size: 14px;
    border-radius: 50px;
    text-decoration: none !important;
    box-shadow: 0 2px 6px rgba(240, 165, 0, 0.3);
    transition: transform 0.15s, box-shadow 0.15s;
}

.ast-amazon-btn-sm:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(240, 165, 0, 0.4);
}

.ast-amazon-btn-sm:active {
    transform: translateY(0);
}

/* ─── Pros & Cons ──────────────────────────────────────────────────── */
.ast-pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 36px 0;
}

.ast-pros-card,
.ast-cons-card {
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
}

.ast-pros-card {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #bbf7d0;
}

.ast-cons-card {
    background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
    border: 1px solid #fca5a5;
}

.ast-pros-header,
.ast-cons-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 22px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.ast-pros-header {
    background: rgba(34, 197, 94, 0.12);
    color: #15803d;
    border-bottom: 1px solid #bbf7d0;
}

.ast-cons-header {
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
    border-bottom: 1px solid #fca5a5;
}

.ast-pros-header svg { color: #16a34a; }
.ast-cons-header svg { color: #dc2626; }

.ast-pros-list,
.ast-cons-list {
    list-style: none;
    margin: 0;
    padding: 16px 22px;
}

.ast-pros-list li,
.ast-cons-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    font-size: 15px;
    line-height: 1.5;
    color: #374151;
}

.ast-pros-list li + li,
.ast-cons-list li + li {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.ast-pros-list li svg {
    flex-shrink: 0;
    color: #16a34a;
    margin-top: 2px;
}

.ast-cons-list li svg {
    flex-shrink: 0;
    color: #dc2626;
    margin-top: 2px;
}

.ast-pros-list li span,
.ast-cons-list li span {
    flex: 1;
}

@media (max-width: 640px) {
    .ast-pros-cons {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* ─── Key Features Card ────────────────────────────────────────────── */
.ast-features-card {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #93c5fd;
    border-radius: 16px;
    overflow: hidden;
    margin: 36px 0;
}

.ast-features-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 22px;
    font-size: 18px;
    font-weight: 700;
    color: #1e40af;
    background: rgba(59, 130, 246, 0.1);
    border-bottom: 1px solid #93c5fd;
}

.ast-features-header svg { color: #2563eb; }

.ast-features-list {
    list-style: none;
    margin: 0;
    padding: 8px 22px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 24px;
}

.ast-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 0;
    font-size: 15px;
    line-height: 1.5;
    color: #374151;
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

.ast-features-list li:last-child,
.ast-features-list li:nth-last-child(1) {
    border-bottom: none;
}

.ast-features-list li svg {
    flex-shrink: 0;
    color: #f59e0b;
    margin-top: 3px;
}

.ast-features-list li span { flex: 1; }

@media (max-width: 640px) {
    .ast-features-list { grid-template-columns: 1fr; }
}

/* ─── Verdict Card ─────────────────────────────────────────────────── */
.ast-verdict-card {
    background: linear-gradient(135deg, #fefce8 0%, #fef9c3 50%, #fef08a 100%);
    border: 1px solid #fbbf24;
    border-radius: 16px;
    overflow: hidden;
    margin: 36px 0;
}

.ast-verdict-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 24px;
    font-size: 20px;
    font-weight: 800;
    color: #92400e;
    background: rgba(245, 158, 11, 0.15);
    border-bottom: 1px solid #fbbf24;
}

.ast-verdict-header svg { color: #d97706; }

.ast-verdict-score {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 28px 24px 20px;
}

.ast-verdict-number {
    font-size: 56px;
    font-weight: 800;
    color: #92400e;
    line-height: 1;
    letter-spacing: -0.02em;
}

.ast-verdict-outof {
    font-size: 24px;
    font-weight: 600;
    color: #b45309;
    opacity: 0.7;
}

.ast-verdict-stars {
    display: flex;
    gap: 4px;
    color: #f59e0b;
}

.ast-star-empty {
    color: #d1d5db;
}

.ast-verdict-body {
    padding: 0 24px 24px;
}

.ast-verdict-body p {
    font-size: 15px;
    line-height: 1.7;
    color: #4b5563;
    margin: 0 0 12px;
}

.ast-verdict-body p:last-child { margin-bottom: 0; }

.ast-verdict-body p strong {
    color: #374151;
}

@media (max-width: 480px) {
    .ast-verdict-score {
        flex-direction: column;
        gap: 8px;
    }
    .ast-verdict-number { font-size: 44px; }
}

/* ═══════════════════════════════════════════════════════════════════════
   CATEGORY HUB PAGES
   ═══════════════════════════════════════════════════════════════════════ */

/* Hero */
.cat-hero {
    background: linear-gradient(135deg, var(--cat-color, #64748b), var(--cat-color-dark, #475569));
    color: #fff;
    padding: 56px 0;
    text-align: center;
}

.cat-hero-badge {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: rgba(255,255,255,0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.cat-hero-title {
    font-size: 40px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    margin: 0 0 12px;
}

.cat-hero-subtitle {
    font-size: 17px;
    color: rgba(255,255,255,0.8);
    max-width: 560px;
    margin: 0 auto;
}

/* Intro content */
.cat-intro-content {
    max-width: 800px;
    margin: 0 auto;
}

.cat-intro-content h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 32px 0 12px;
}

.cat-intro-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 24px 0 10px;
}

/* Subcategories grid */
.cat-subcat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.cat-subcat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 20px 16px;
    background: #fff;
    border: 1px solid var(--ast-border, #e2e8f0);
    border-radius: var(--ast-radius, 12px);
    text-decoration: none;
    transition: all 0.15s;
}

.cat-subcat-card:hover {
    border-color: var(--ast-accent, #2563eb);
    box-shadow: var(--ast-shadow-md, 0 4px 6px rgba(0,0,0,0.07));
    transform: translateY(-2px);
}

.cat-subcat-name {
    font-weight: 600;
    color: var(--ast-text, #1e293b);
    font-size: 15px;
}

.cat-subcat-count {
    font-size: 12px;
    color: var(--ast-text-muted, #94a3b8);
}

/* Top picks products */
.cat-products-grid {
    max-width: 900px;
}

/* Comparison grid */
.cat-comparison-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.cat-comparison-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px 24px;
    background: #fff;
    border: 1px solid var(--ast-border, #e2e8f0);
    border-radius: var(--ast-radius, 12px);
    text-decoration: none;
    transition: all 0.15s;
}

.cat-comparison-card:hover {
    border-color: var(--ast-accent, #2563eb);
    box-shadow: var(--ast-shadow-md, 0 4px 6px rgba(0,0,0,0.07));
}

.cat-comparison-vs {
    display: inline-block;
    width: fit-content;
    padding: 2px 10px;
    background: #fef3c7;
    color: #92400e;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    letter-spacing: 1px;
}

.cat-comparison-title {
    font-weight: 600;
    color: var(--ast-text, #1e293b);
    font-size: 15px;
    line-height: 1.4;
}

/* Cluster grid */
.cat-cluster-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.cat-cluster-card {
    padding: 24px;
    background: #fff;
    border: 1px solid var(--ast-border, #e2e8f0);
    border-radius: var(--ast-radius, 12px);
}

.cat-cluster-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px;
}

.cat-cluster-title a {
    color: var(--ast-text, #1e293b);
    text-decoration: none;
}

.cat-cluster-title a:hover {
    color: var(--ast-accent, #2563eb);
}

.cat-cluster-count {
    font-size: 13px;
    color: var(--ast-text-muted, #94a3b8);
    display: block;
    margin-bottom: 12px;
}

.cat-cluster-members {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cat-cluster-members li {
    padding: 6px 0;
    border-bottom: 1px solid var(--ast-border, #e2e8f0);
    font-size: 14px;
}

.cat-cluster-members li:last-child {
    border-bottom: none;
}

.cat-cluster-members a {
    color: var(--ast-accent, #2563eb);
    text-decoration: none;
}

.cat-cluster-members a:hover {
    text-decoration: underline;
}

/* Related SEO page type badge */
.ast-related-seo-type {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--ast-text-muted, #94a3b8);
    margin-bottom: 4px;
}

/* ═══════════════════════════════════════════════════════════════════════
   CLUSTER NAVIGATION (injected into content)
   ═══════════════════════════════════════════════════════════════════════ */

.ae-cluster-breadcrumb {
    padding: 12px 16px;
    background: var(--ast-bg-alt, #f8fafc);
    border: 1px solid var(--ast-border, #e2e8f0);
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 14px;
}

.ae-cluster-label {
    color: var(--ast-text-muted, #94a3b8);
    font-weight: 600;
}

.ae-cluster-breadcrumb a {
    color: var(--ast-accent, #2563eb);
    text-decoration: none;
    font-weight: 500;
}

.ae-cluster-breadcrumb a:hover {
    text-decoration: underline;
}

.ae-cluster-nav {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 2px solid var(--ast-border, #e2e8f0);
}

.ae-cluster-nav-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 16px;
}

.ae-cluster-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.ae-cluster-link {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 20px;
    background: var(--ast-bg-alt, #f8fafc);
    border: 1px solid var(--ast-border, #e2e8f0);
    border-radius: var(--ast-radius, 12px);
    text-decoration: none;
    transition: all 0.15s;
}

.ae-cluster-link:hover {
    border-color: var(--ast-accent, #2563eb);
    box-shadow: var(--ast-shadow-md, 0 4px 6px rgba(0,0,0,0.07));
}

.ae-cluster-link-role {
    font-size: 11px;
    font-weight: 600;
    color: var(--ast-text-muted, #94a3b8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ae-cluster-link-title {
    font-weight: 600;
    color: var(--ast-text, #1e293b);
    font-size: 14px;
}

.ae-cluster-link-ctx {
    font-size: 13px;
    color: var(--ast-text-light, #64748b);
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .cat-hero-title { font-size: 32px; }
    .cat-subcat-grid { grid-template-columns: repeat(2, 1fr); }
    .cat-comparison-grid { grid-template-columns: 1fr; }
    .cat-cluster-grid { grid-template-columns: 1fr; }
    .ae-cluster-links { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .cat-hero { padding: 40px 0; }
    .cat-hero-title { font-size: 28px; }
    .cat-subcat-grid { grid-template-columns: 1fr; }
}

/* ─── Print ─────────────────────────────────────────────────────────── */
@media print {
    .ast-header, .ast-top-bar, .ast-footer, .ast-sidebar, .ast-nav { display: none; }
    .ast-content-area { grid-template-columns: 1fr; }
    .fp-hero, .fp-cta, .fp-hero-slider { display: none; }
}
