/* === Variables === */
:root {
    --primary: #0f172a;
    --primary-light: #1e293b;
    --accent: #10b981;
    --accent-hover: #059669;
    --accent-warm: #f59e0b;
    --text: #0f172a;
    --text-muted: #64748b;
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --border: #e2e8f0;
    --pros: #10b981;
    --cons: #ef4444;
    --rating: #f59e0b;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --max-width: 1200px;
    --transition: 150ms ease;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
main { flex: 1; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* === Layout === */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1rem; }

/* === Header === */
.header {
    background: var(--primary);
    color: white;
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    height: 60px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    flex-shrink: 0;
}
.logo:hover { text-decoration: none; color: white; }
.logo-img {
    display: block;
    height: 36px;
    width: auto;
}
.footer-logo-img {
    display: block;
    height: 30px;
    width: auto;
}

.search-form {
    flex: 1;
    max-width: 360px;
    position: relative;
    display: flex;
}
.search-input {
    width: 100%;
    padding: 0.4375rem 2.25rem 0.4375rem 0.75rem;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius);
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 0.875rem;
    transition: all var(--transition);
}
.search-input::placeholder { color: rgba(255,255,255,0.5); }
.search-input:focus {
    outline: none;
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.3);
}
.search-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.6);
    padding: 0.25rem;
}

.nav {
    display: flex;
    align-items: center;
    gap: 0.125rem;
    margin-left: auto;
}
.nav a {
    padding: 0.375rem 0.625rem;
    border-radius: var(--radius);
    color: rgba(255,255,255,0.8);
    font-size: 0.8125rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all var(--transition);
    text-decoration: none;
}
.nav a:hover {
    background: rgba(255,255,255,0.1);
    color: white;
    text-decoration: none;
}
.mobile-menu-btn { display: none; color: white; }

/* === Hero === */
.hero {
    background: var(--primary);
    color: white;
    padding: 3.5rem 0 3rem;
    text-align: center;
}
.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
}
.hero-accent { color: var(--accent); }
.hero-subtitle {
    color: rgba(255,255,255,0.7);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}
.hero-search {
    max-width: 560px;
    margin: 0 auto 1.75rem;
    display: flex;
    gap: 0.5rem;
}
.hero-search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: var(--radius);
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 1rem;
    transition: border-color var(--transition);
}
.hero-search-input::placeholder { color: rgba(255,255,255,0.5); }
.hero-search-input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255,255,255,0.15);
}
.hero-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}
.category-pill {
    display: inline-block;
    padding: 0.375rem 1rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    transition: all var(--transition);
    text-decoration: none;
}
.category-pill:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    text-decoration: none;
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.875rem;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-light); }
.btn-accent { background: var(--accent); color: white; }
.btn-accent:hover { background: var(--accent-hover); color: white; }
.btn-affiliate {
    background: var(--accent);
    color: white;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}
.btn-affiliate:hover { background: var(--accent-hover); color: white; }
.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-outline:hover {
    border-color: var(--text);
    color: var(--text);
}
.btn-sm { padding: 0.375rem 0.75rem; font-size: 0.8125rem; }

/* === Sections === */
.section { padding: 3rem 0; }
.section-alt { background: var(--bg-alt); }
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}
.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}
.section-header .section-title { margin-bottom: 0; }
.section-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent);
    white-space: nowrap;
}
.page-subtitle { color: var(--text-muted); margin-bottom: 2rem; }

/* === Review Grid === */
.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* === Review Card === */
.review-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
}
.review-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}
.review-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}
.review-card-link:hover { text-decoration: none; }
.review-card-image {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.review-card-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}
.review-card-image--placeholder {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
}
.review-card-body { padding: 1rem 1.25rem; }
.review-card-category {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
    margin-bottom: 0.25rem;
}
.review-card-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.375rem;
    color: var(--text);
    letter-spacing: -0.01em;
}
.review-card-excerpt {
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 0.75rem;
}
.review-card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}
.review-card-count {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* === Breadcrumb === */
.breadcrumb {
    padding: 1.25rem 0;
    font-size: 0.8125rem;
    color: var(--text-muted);
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep { margin: 0 0.5rem; color: var(--border); }

/* === Review Layout (2-column with sticky sidebar) === */
.review-layout {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 2.5rem;
    align-items: start;
    max-width: 1040px;
}
.review-sidebar {
    position: sticky;
    top: 76px;
}

/* === Review Article === */
.review-article {
    min-width: 0;
    padding-bottom: 3rem;
}
.review-header { margin-bottom: 2rem; grid-column: 1 / -1; }
.review-header h1 {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
}
.review-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}
.meta-sep { color: var(--border); }
.review-intro { margin-bottom: 2.5rem; }

/* === Table of Contents === */
.toc {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.25rem 1rem;
}
.toc-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 0.875rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}
.toc-list {
    list-style: none;
    padding-left: 0;
    counter-reset: toc-counter;
}
.toc-list li {
    margin-bottom: 0.5rem;
    counter-increment: toc-counter;
    padding-left: 1.5rem;
    position: relative;
}
.toc-list li::before {
    content: counter(toc-counter) ".";
    position: absolute;
    left: 0;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    top: 0.125rem;
}
.toc-list a {
    color: var(--text);
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.35;
    display: block;
}
.toc-list a:hover { color: var(--accent); }
.toc-badge {
    display: block;
    margin-top: 0.125rem;
    padding: 0.125rem 0.5rem;
    background: var(--accent);
    color: white;
    border-radius: 999px;
    font-size: 0.625rem;
    font-weight: 600;
    width: fit-content;
}

/* === Product Section === */
.product-section {
    padding: 2.5rem 0;
    border-top: 2px solid var(--border);
    scroll-margin-top: 80px;
}
.product-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.product-position {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    background: var(--primary);
    color: white;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}
.product-header-text h2 {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: 0.375rem;
}
.product-badge {
    display: inline-block;
    padding: 0.125rem 0.75rem;
    background: var(--accent);
    color: white;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    vertical-align: middle;
    margin-left: 0.25rem;
}

/* === Stars === */
.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.stars { display: flex; gap: 2px; }
.star--filled { color: var(--rating); }
.star--empty { color: #d1d5db; }
.rating-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* === Product Image === */
.product-image {
    margin-bottom: 1.5rem;
    max-width: 400px;
}
.product-image img {
    border-radius: var(--radius-lg);
}

/* === Specs Table === */
.specs-table {
    margin-bottom: 1.5rem;
}
.specs-table h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}
.specs-table table {
    width: 100%;
    border-collapse: collapse;
}
.specs-table th, .specs-table td {
    padding: 0.5rem 0.75rem;
    text-align: left;
    font-size: 0.875rem;
    border-bottom: 1px solid var(--border);
}
.specs-table th {
    font-weight: 600;
    color: var(--text-muted);
    width: 40%;
}

/* === Pros & Cons === */
.product-pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
.pros h3, .cons h3 {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}
.pros h3 { color: var(--pros); }
.cons h3 { color: var(--cons); }
.pros li, .cons li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.375rem;
    font-size: 0.875rem;
    line-height: 1.5;
}
.pros li svg, .cons li svg { flex-shrink: 0; margin-top: 3px; }
.icon-pro { color: var(--pros); }
.icon-con { color: var(--cons); }

/* === Product CTA === */
.product-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

/* === Comparison Grid === */
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 0 0 2.5rem;
    grid-column: 1 / -1;
}
.comparison-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.comparison-card-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    color: white;
}
.comparison-card-rank--first { background: var(--accent); }
.comparison-card-rank--second { background: #64748b; }
.comparison-card-rank--third { background: #a16207; }
.comparison-card-image {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}
.comparison-card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.comparison-card-name {
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}
.comparison-card-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    width: 100%;
}
.comparison-card-actions .btn { width: 100%; justify-content: center; }
.stars--sm { gap: 1px; }

/* === Sources === */
.sources {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}
.sources h2 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

/* === Post Article === */
.post-article {
    max-width: 800px;
    padding-bottom: 3rem;
}
.post-article h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}
.post-content { margin-top: 2rem; }

/* === Related Section === */
.related-section {
    padding: 2.5rem 0;
    border-top: 1px solid var(--border);
}
.related-section h2 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

/* === Prose === */
.prose h2 { font-size: 1.375rem; font-weight: 700; margin: 2rem 0 0.75rem; letter-spacing: -0.01em; }
.prose h3 { font-size: 1.125rem; font-weight: 600; margin: 1.5rem 0 0.5rem; }
.prose p { margin-bottom: 1rem; }
.prose ul, .prose ol { margin-bottom: 1rem; padding-left: 1.5rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 0.375rem; }
.prose a { color: var(--accent); text-decoration: underline; overflow-wrap: break-word; word-break: break-word; }
.prose strong { font-weight: 600; }
.prose img { border-radius: var(--radius); margin: 1rem 0; max-width: 100%; height: auto; }
.prose .alignright { float: right; margin: 0 0 1rem 1.5rem; max-width: 250px; }
.prose .alignleft { float: left; margin: 0 1.5rem 1rem 0; max-width: 250px; }
.prose .aligncenter { display: block; margin: 1.5rem auto; }
.prose .wp-block-image { margin: 1.5rem 0; }
.prose .wp-block-image figure { margin: 0; }
.prose .wp-block-image img { border-radius: var(--radius); }
.prose .is-resized img { max-width: 100%; height: auto; }
.prose::after { content: ""; display: table; clear: both; }
.review-meta-footer {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    margin-top: 2rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* === Search === */
.search-form-large {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
    max-width: 600px;
}
.search-input-large {
    flex: 1;
    min-width: 0;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
}
.search-input-large:focus { outline: none; border-color: var(--accent); }
.search-page-header {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-size: 1.75rem;
    letter-spacing: -0.02em;
}
.search-section-title {
    font-size: 1.125rem;
    margin: 2rem 0 1rem;
    color: var(--text-muted);
}

/* === Trust Section === */
.trust-section {
    padding: 3rem 0;
    background: var(--bg);
    border-top: 1px solid var(--border);
}
.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}
.trust-icon {
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: center;
    color: var(--accent);
}
.trust-item h3 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
    letter-spacing: -0.01em;
}
.trust-item p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* === Page Content === */
.page-content {
    max-width: 720px;
    padding: 2rem 0 3rem;
}
.page-content h1 { margin-bottom: 1.5rem; }

/* === Category Description === */
.category-description {
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 720px;
}

/* === Empty State === */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
    grid-column: 1 / -1;
}

/* === Footer === */
.footer {
    background: var(--primary);
    color: #cbd5e1;
    padding: 3rem 0 1.5rem;
    margin-top: 3rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}
.footer-brand-name {
    font-weight: 700;
    font-size: 1rem;
    color: white;
}
.footer h3 {
    color: white;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}
.footer p { font-size: 0.8125rem; line-height: 1.6; }
.footer ul li { margin-bottom: 0.375rem; }
.footer a { color: #cbd5e1; font-size: 0.8125rem; }
.footer a:hover { color: white; }
.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 1.5rem;
    font-size: 0.75rem;
    color: #64748b;
}
.affiliate-disclosure {
    margin-top: 0.5rem;
    font-size: 0.6875rem;
    color: #475569;
}

/* === Mobile === */
@media (max-width: 768px) {
    .container { padding: 0 1rem; }
    .nav { display: none; }
    .nav.is-open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--primary);
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding: 0.5rem;
        box-shadow: var(--shadow-lg);
    }
    .mobile-menu-btn { display: block; margin-left: auto; }
    .search-form { display: none; }

    .hero { padding: 2rem 0 1.75rem; }
    .hero h1 { font-size: 1.75rem; }
    .hero-subtitle { font-size: 0.9375rem; margin-bottom: 1.5rem; }
    .hero-search { flex-direction: column; }
    .hero-categories { gap: 0.375rem; }
    .category-pill { font-size: 0.8125rem; padding: 0.25rem 0.75rem; }

    .section { padding: 2rem 0; }
    .section-title { font-size: 1.25rem; }

    .review-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    .review-card-image { aspect-ratio: 1/1; padding: 0.75rem; }
    .review-card-body { padding: 0.75rem; }
    .review-card-title { font-size: 0.875rem; }
    .review-card-excerpt { display: none; }
    .review-card-meta { gap: 0.5rem; }
    .review-card-count { display: none; }

    .trust-grid { grid-template-columns: 1fr; gap: 1.5rem; }

    .review-header h1 { font-size: 1.5rem; }
    .review-layout { grid-template-columns: 1fr; gap: 0; }
    .review-sidebar { display: none; }

    .comparison-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
        margin: 1rem 0 1.5rem;
    }
    .comparison-card-image { height: 100px; }
    .comparison-card-name { font-size: 0.75rem; }
    .comparison-card-rank { width: 32px; height: 32px; font-size: 0.75rem; margin-bottom: 0.5rem; }
    .comparison-card-actions .btn { font-size: 0.6875rem; padding: 0.25rem 0.5rem; }

    .toc { margin: 1.5rem 0; }

    .product-header { gap: 0.75rem; }
    .product-header-text h2 { font-size: 1.25rem; }
    .product-image { max-width: 100%; }

    .product-pros-cons {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .product-cta { flex-direction: column; }
    .btn-affiliate { width: 100%; justify-content: center; }

    .btn-sm { min-height: 44px; font-size: 0.875rem; display: inline-flex; align-items: center; }

    .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }

    .search-form-large { max-width: 100%; }
    .search-page-header { padding-top: 1rem; font-size: 1.5rem; }

    .post-article h1 { font-size: 1.5rem; }
}

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

@media (min-width: 769px) and (max-width: 1024px) {
    .review-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .review-layout { grid-template-columns: minmax(0, 1fr) 240px; gap: 1.5rem; }
}

/* === FAQ Section === */
.faq-section {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.faq-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
    overflow: hidden;
    background: var(--bg);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary);
    text-align: left;
    background: var(--bg-alt);
    transition: background var(--transition);
    cursor: pointer;
    border: none;
    font-family: inherit;
    gap: 1rem;
}

.faq-question:hover {
    background: var(--border);
}

.faq-icon {
    flex-shrink: 0;
    transition: transform var(--transition);
    color: var(--text-muted);
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding: 1rem 1.25rem;
    color: var(--text);
    line-height: 1.7;
}

.faq-answer p {
    margin: 0;
}

.faq-item.is-open .faq-answer {
    display: block;
}

/* === Spec Comparison Table === */
.spec-table-wrapper {
    grid-column: 1 / -1;
    margin: 0 0 2.5rem;
    min-width: 0;
    overflow: hidden;
}
.spec-table-heading {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--primary);
    margin-bottom: 1rem;
}
.spec-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    max-width: 100%;
}
.spec-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    min-width: 600px;
}
.spec-table thead {
    background: var(--bg-alt);
    border-bottom: 2px solid var(--border);
}
.spec-table th,
.spec-table td {
    padding: 0.75rem 1rem;
    text-align: center;
    vertical-align: middle;
    border-bottom: 1px solid var(--border);
}
.spec-table th:not(:first-child),
.spec-table td:not(:first-child) {
    border-left: 1px solid var(--border);
}
.spec-table-label {
    text-align: left !important;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
    background: var(--bg);
    min-width: 140px;
}
.spec-table-product {
    min-width: 150px;
    padding: 1rem 0.75rem;
}
.spec-table-img {
    width: 80px;
    height: 80px;
    margin: 0 auto 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.spec-table-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.spec-table-name {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text);
}
.spec-table-badge {
    display: inline-block;
    margin-top: 0.375rem;
    padding: 0.125rem 0.625rem;
    background: var(--accent);
    color: white;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 600;
}
.spec-table-stars {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1px;
    flex-wrap: wrap;
}
.spec-table-rating-num {
    margin-left: 0.375rem;
    font-weight: 600;
    font-size: 0.8125rem;
    color: var(--text-muted);
}
.spec-table-rating-row {
    background: var(--bg-alt);
}
.spec-table-na {
    color: #cbd5e1;
}
.spec-table-cta-row td {
    padding: 1rem;
    border-bottom: none;
}
.spec-table-cta-row .btn {
    width: 100%;
    justify-content: center;
}
.spec-table tbody tr:hover {
    background: var(--bg-alt);
}
.spec-table tbody .spec-table-rating-row:hover,
.spec-table tbody .spec-table-cta-row:hover {
    background: var(--bg-alt);
}

/* Spec table mobile: sticky first column */
@media (max-width: 768px) {
    .spec-table-label {
        position: sticky;
        left: 0;
        z-index: 2;
        background: var(--bg);
        box-shadow: 2px 0 4px rgba(0,0,0,0.05);
    }
    .spec-table-rating-row .spec-table-label {
        background: var(--bg-alt);
    }
    .spec-table thead .spec-table-label {
        background: var(--bg-alt);
    }
}
