:root {
    --bg: #0f172a;
    --panel: #111827;
    --panel-2: #ffffff;
    --text: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --accent: #2563eb;
    --accent-dark: #1d4ed8;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: #f8fafc;
}
.container {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
}
.site-header {
    background: var(--bg);
    color: #fff;
    padding: 1rem 0;
}
.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.logo {
    color: #fff;
    font-size: 1.75rem;
    font-weight: 700;
    text-decoration: none;
}
.tagline {
    margin: .25rem 0 0;
    color: #cbd5e1;
}
nav a {
    color: #fff;
    text-decoration: none;
    margin-left: 1rem;
}
.hero {
    padding: 2rem 0 1rem;
}
.refresh-note {
    color: var(--muted);
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)); /* default = 3 */
    gap: 1rem;
    padding: 1rem 0 3rem;
    align-items: start;
}

/* Only go to 4 columns on very wide screens */
@media (min-width: 1300px) {
    .product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Tablet */
@media (max-width: 900px) {
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile */
@media (max-width: 520px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: visible;
    display: flex;
    flex-direction: column;
    position: relative;
    margin-top: 24px;
}
.image-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding: 1rem;
    height: 280px; /* fixed image area */
    position: relative;
    overflow: hidden;
    border-radius: 12px 12px 0 0; 
}
.image-wrap img,
.detail-image img {
    display: block;
    max-width: 100%;
    max-height: 240px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
}
.card-body {
    padding: 1rem;
}
.rank {
    font-weight: 700;
    color: var(--accent);
    margin-bottom: .5rem;
}
.card h2 {
    margin: 0 0 .5rem;
    font-size: 1rem;
    line-height: 1.4;
}
.card h2 a { color: inherit; text-decoration: none; }
.brand {
    color: var(--muted);
    margin: 0 0 .75rem;
}
.button {
    display: inline-block;
    text-decoration: none;
    background: var(--accent);
    color: #fff;
    padding: .75rem 1rem;
    border-radius: 10px;
    font-weight: 700;
}
.button:hover { background: var(--accent-dark); }
.button-large { padding: 1rem 1.25rem; }
.site-footer {
    padding: 1.5rem 0;
    border-top: 1px solid var(--line);
    background: #fff;
    color: var(--muted);
}
.detail-layout {
    display: grid;
    grid-template-columns: minmax(280px, 420px) 1fr;
    gap: 2rem;
    padding: 2rem 0 3rem;
}
.detail-image {
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--line);
    padding: 1.5rem;
    min-height: 420px;
}
.description-box,
.content-page,
.empty-state {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1.5rem;
    margin: 1rem 0 2rem;
}
.price-large {
    font-size: 1.5rem;
    font-weight: 700;
}
.image-placeholder {
    width: 100%;
    height: 100%;
    background: #e5e7eb;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: var(--muted);
}
@media (max-width: 840px) {
    .header-row {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    nav {
        display: flex;
        flex-wrap: wrap;
        gap: 0.75rem 1rem;
        width: 100%;
    }

    nav a {
        margin-left: 0;
    }

    .detail-layout {
        grid-template-columns: 1fr;
    }
}

/* Force both product card buttons to show */
.card-meta {
    margin-top: 1rem !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
}

.card-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    width: 100% !important;
}

.card-actions .button {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.card-actions .button.secondary {
    background: #f1f5f9 !important;
    color: #1e293b !important;
    border: 1px solid #cbd5e1 !important;
}

.card-actions .button.secondary:hover {
    background: #e2e8f0 !important;
}

.card-actions .button.primary {
    background: #2563eb !important;
    color: #ffffff !important;
}

.card-actions .button.primary:hover {
    background: #1d4ed8 !important;
}

.button.primary {
    background: #2563eb;
    color: #fff;
}

.button.primary:hover {
    background: #1d4ed8;
}

.button.secondary {
    background: #f1f5f9;
    color: #1e293b;
}

.button.secondary:hover {
    background: #e2e8f0;
}


/* ===== Product Page ===== */

.product-page {
    max-width: 1200px;
    margin: 0 auto;
}

.back-link {
    margin-bottom: 1.5rem;
}

.back-link a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.back-link a:hover {
    text-decoration: underline;
}

/* TOP ROW ONLY */
.product-top {
    display: grid;
    grid-template-columns: 380px minmax(0, 1fr);
    gap: 2rem;
    align-items: start; /* important */
    margin-bottom: 3rem;
}

.product-image-card,
.product-info-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.product-image-card {
    padding: 1.25rem;
    align-self: start; /* important */
}

.product-image-card img {
    width: 100%;
    display: block;
    border-radius: 14px;
    object-fit: contain;
    background: #fff;
}

.product-info-card {
    padding: 1.75rem;
}

.product-info-card h1 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 2rem;
    line-height: 1.2;
}

.brand {
    margin: 0 0 0.75rem;
    color: #64748b;
    font-size: 1rem;
    font-weight: 500;
}

.price-large {
    margin: 0 0 1.5rem;
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
}

.description-box {
    padding: 1.25rem;
    border-radius: 14px;
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border: 1px solid #e2e8f0;
    margin-bottom: 1.5rem;
}

.description-box h2 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.15rem;
}

.description-box p {
    margin: 0;
    line-height: 1.6;
    color: #334155;
}

.product-cta {
    margin: 0;
}

.buy-button {
    display: inline-block;
    padding: 0.9rem 1.4rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.2);
}

.buy-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.25);
}

/* RESEARCH BELOW */
.research-section {
    margin-top: 0;
    clear: both;
}

.research-title {
    margin: 0 0 1.25rem;
    font-size: 2rem;
    line-height: 1.2;
}

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

.research-block {
    padding: 1.5rem;
    border-radius: 16px;
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border: 1px solid #e2e8f0;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.research-block:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.research-block h3 {
    margin: 0 0 0.6rem;
    font-size: 1.2rem;
    line-height: 1.3;
}

.research-block p {
    margin: 0 0 1rem;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.45;
}

.research-block ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.research-block li {
    margin: 0 0 0.6rem;
}

.research-block li:last-child {
    margin-bottom: 0;
}

.research-block a {
    display: inline-block;
    padding: 0.55rem 0.85rem;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.research-block a:hover {
    transform: translateY(-1px);
}

.reddit-block a {
    background: #fff1ed;
    color: #ea580c;
}

.reddit-block a:hover {
    background: #fed7aa;
    color: #c2410c;
}

.youtube-block a {
    background: #fef2f2;
    color: #dc2626;
}

.youtube-block a:hover {
    background: #fecaca;
    color: #b91c1c;
}

.google-block a {
    background: #eff6ff;
    color: #2563eb;
}

.google-block a:hover {
    background: #dbeafe;
    color: #1d4ed8;
}

.guides-block a {
    background: #f5f3ff;
    color: #7c3aed;
}

.guides-block a:hover {
    background: #e9d5ff;
    color: #6d28d9;
}

@media (max-width: 900px) {
    .product-top,
    .research-grid {
        grid-template-columns: 1fr;
    }

    .product-info-card h1,
    .research-title {
        font-size: 1.7rem;
    }

    .price-large {
        font-size: 1.5rem;
    }
}

/* =========================
   CARD ACTIONS (Index Page)
========================= */

.card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.button.primary {
    background: #2563eb;
    color: #fff;
}

.button.secondary {
    background: #f1f5f9;
    color: #1e293b;
}

.button.secondary:hover {
    background: #e2e8f0;
}


/* =========================
   PRODUCT PAGE
========================= */

.product-page {
    max-width: 1200px;
    margin: 0 auto;
}

.back-link {
    margin-bottom: 1.5rem;
}

.back-link a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.back-link a:hover {
    text-decoration: underline;
}


/* ===== TOP PRODUCT SECTION ===== */

.product-top {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 2rem;
    align-items: start; /* critical: prevents image stretching */
    margin-bottom: 3rem;
}

.product-image-card,
.product-info-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

/* Image */
.product-image-card {
    padding: 1.25rem;
    align-self: start; /* critical */
}

.product-image-card img {
    width: 100%;
    display: block;
    border-radius: 14px;
    object-fit: contain;
    background: #fff;
}

/* Info */
.product-info-card {
    padding: 1.75rem;
}

.product-info-card h1 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 2rem;
    line-height: 1.2;
}

.brand {
    margin: 0 0 0.75rem;
    color: #64748b;
    font-size: 1rem;
    font-weight: 500;
}

.price-large {
    margin: 0 0 1.5rem;
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
}

/* Description */
.description-box {
    padding: 1.25rem;
    border-radius: 14px;
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border: 1px solid #e2e8f0;
    margin-bottom: 1.5rem;
}

.description-box h2 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.15rem;
}

.description-box p {
    margin: 0;
    line-height: 1.6;
    color: #334155;
}

/* Button */
.product-cta {
    margin: 0;
}

.buy-button {
    display: inline-block;
    padding: 0.9rem 1.4rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.2s ease;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.2);
}

.buy-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.25);
}


/* =========================
   RESEARCH SECTION
========================= */

.research-section {
    margin-top: 0;
}

.research-title {
    margin: 0 0 1.25rem;
    font-size: 2rem;
    line-height: 1.2;
}

/* Grid */
.research-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

/* Cards */
.research-block {
    padding: 1.5rem;
    border-radius: 16px;
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border: 1px solid #e2e8f0;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
    transition: all 0.2s ease;
}

.research-block:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.research-block h3 {
    margin: 0 0 0.6rem;
    font-size: 1.2rem;
}

.research-block p {
    margin: 0 0 1rem;
    color: #475569;
    font-size: 0.95rem;
}

.research-block ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.research-block li {
    margin-bottom: 0.6rem;
}

/* Links */
.research-block a {
    display: inline-block;
    padding: 0.55rem 0.85rem;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.research-block a:hover {
    transform: translateY(-1px);
}

/* Colors */
.reddit-block a {
    background: #fff1ed;
    color: #ea580c;
}
.reddit-block a:hover {
    background: #fed7aa;
}

.youtube-block a {
    background: #fef2f2;
    color: #dc2626;
}
.youtube-block a:hover {
    background: #fecaca;
}

.google-block a {
    background: #eff6ff;
    color: #2563eb;
}
.google-block a:hover {
    background: #dbeafe;
}

.guides-block a {
    background: #f5f3ff;
    color: #7c3aed;
}
.guides-block a:hover {
    background: #e9d5ff;
}


/* =========================
   MOBILE
========================= */

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

    .research-grid {
        grid-template-columns: 1fr;
    }

    .product-info-card h1,
    .research-title {
        font-size: 1.6rem;
    }

    .price-large {
        font-size: 1.4rem;
    }
}

/* ===== BADGES ===== */

.card {
    position: relative;
    overflow: visible;
}

.card-body {
    position: relative;
    padding-top: 3.2rem; /* makes room for the ribbon */
}

/* Ribbon wrapper */
.product-badge-ribbon {
    position: absolute;
    top: 12px;
    left: -60px;
    z-index: 5;
    transform: rotate(-35deg);
    transform-origin: center;
    pointer-events: none;
    transition: transform 0.25s ease, filter 0.25s ease;
}

/* Ribbon text */
.product-badge-ribbon span {
    display: inline-block;
    width: 210px;
    text-align: center;
    padding: 0.45rem 1rem;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #fff;
    border-radius: 999px;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.22);
    background: linear-gradient(135deg, #eba625, #d8971d);
    white-space: nowrap;
}

/* Hover effect */
.card:hover .product-badge-ribbon {
    transform: rotate(-35deg) translateY(-2px) scale(1.04);
    filter: brightness(1.04);
}

/* Badge color themes */
.product-badge-ribbon.best-overall span {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
}

.product-badge-ribbon.most-popular span {
    background: linear-gradient(135deg, #f5d33e, #d9b206);
}

.product-badge-ribbon.best-value span {
    background: linear-gradient(135deg, #10b981, #059669);
}

.product-badge-ribbon.best-for-gaming span {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.product-badge-ribbon.best-for-travel span {
    background: linear-gradient(135deg, #2d708f, #25607e);
}

.product-badge-ribbon.trending span {
    background: linear-gradient(135deg, #ec4899, #db2777);
}

/* ORANGE BADGES */
.product-badge-ribbon.best-headphones span,
.product-badge-ribbon.best-budget-smart-cam span,
.product-badge-ribbon.best-budget-streaming span,
.product-badge-ribbon.best-tv-overall span,
.product-badge-ribbon.best-budget-lighting span {
    background: linear-gradient(135deg, #eba625, #d8971d);
    color: #fff;
}


/* ===== FILTERS ===== */
.filters {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
    margin: 0 0 70px;
}

.filters select {
    min-width: 180px;
    padding: 10px 14px;
    border: 1px solid #d6dbe1;
    border-radius: 10px;
    background: #fff;
    font-size: 0.95rem;
}

.logo {
    display: inline-block;
    line-height: 0;
}

.logo img {
    display: block;
    width: 320px;
    max-width: 100%;
    height: auto;
}

@media (max-width: 600px) {
    .logo img {
        width: 240px;
    }
}

/* Nav pills: orange ring = current page */
nav a.nav-pill {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .4rem .8rem;
    border-radius: 999px;
    border: 1px solid transparent;
}

nav a.nav-pill:hover {
    border-color: rgba(255, 255, 255, .35);
}

nav a.trend-link {
    font-weight: 700;
    border-color: rgba(255, 255, 255, .7);
}

nav a.nav-pill.active {
    border-color: #f97316;
    background: rgba(249, 115, 22, .14);
}

nav a.nav-pill.active:hover {
    background: rgba(249, 115, 22, .25);
}

.trend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f97316;
    animation: trend-pulse 1.8s infinite;
}

@keyframes trend-pulse {
    0% { box-shadow: 0 0 0 0 rgba(249, 115, 22, .7); }
    70% { box-shadow: 0 0 0 7px rgba(249, 115, 22, 0); }
    100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .trend-dot { animation: none; }
}

.page-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin: 0 0 .25rem;
    color: #c2410c;
    font-weight: 700;
    font-size: .85rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

/* Product page: Description + Features boxes */
.info-box h2 { display: flex; align-items: center; gap: 0.6rem; }

.info-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
}

.description-section { border-left: 4px solid var(--accent); }
.description-section .info-icon { background: #dbeafe; color: var(--accent-dark); }
.description-section .info-icon::before {
    content: "i"; font-family: Georgia, serif; font-weight: 700; font-size: 1.05rem;
}

.features-section { border-left: 4px solid #f97316; }
.features-section .info-icon { background: #ffedd5; color: #c2410c; }
.features-section .info-icon::before { content: "★"; font-size: 1rem; }

.feature-list { list-style: none; margin: 0; padding: 0; }
.feature-list li {
    position: relative; padding-left: 1.75rem; margin-bottom: 0.55rem;
    line-height: 1.5; color: #334155;
}
.feature-list li:last-child { margin-bottom: 0; }
.feature-list li::before {
    content: "✓"; position: absolute; left: 0; top: 0;
    width: 1.2rem; height: 1.2rem; border-radius: 50%;
    background: #dcfce7; color: #15803d;
    font-size: 0.75rem; font-weight: 700; text-align: center; line-height: 1.2rem;
}
/* Product page: Amazon button under price, At a glance card, You might also like */
.product-media { display: flex; flex-direction: column; gap: 1rem; }
.product-media .product-image-card { align-self: stretch; width: 100%; }
.product-cta { margin: 0 0 1.5rem; }
.glance-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 1.25rem; }
.glance-label { margin: 0 0 .75rem; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #c2410c; }
.glance-list { margin: 0; }
.glance-list div { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid #f1f5f9; }
.glance-list dt { color: var(--muted); }
.glance-list dd { margin: 0; font-weight: 600; color: #0f172a; text-align: right; }
.glance-note { margin: .85rem 0 0; font-size: .85rem; color: var(--muted); line-height: 1.5; }
.glance-card .secondary-cta { display: block; text-align: center; margin-top: .85rem; background: #fff; color: var(--accent-dark); border: 2px solid var(--accent); }
.glance-card .secondary-cta:hover { background: #eff6ff; }
.related-section { margin: 2.5rem 0; }
.related-section h2 { margin: 0 0 1rem; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.related-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 1rem; display: flex; flex-direction: column; }
.related-image img { width: 100%; height: 140px; object-fit: contain; }
.related-card h3 { font-size: 1rem; margin: .75rem 0 .25rem; }
.related-card h3 a { color: var(--text); text-decoration: none; }
.related-price { margin: 0 0 .75rem; font-weight: 700; }
.related-buy { margin-top: auto; text-align: center; }
@media (max-width: 900px) { .product-media { order: 2; } }

/* =========================
   GUIDES (gift guide, explainers, /guides)
========================= */
.guide-page { padding: 1.5rem 0 3rem; }
.guide-page h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); line-height: 1.15; margin: 0 0 .75rem; }
.guide-page h2 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); line-height: 1.2; margin: 0 0 1rem; }
.guide-page p { line-height: 1.65; color: #334155; }
.guide-crumbs { font-size: .9rem; color: var(--muted); margin: 0 0 1.25rem; }
.guide-crumbs a { color: var(--accent); text-decoration: none; }
.guide-byline { font-size: .85rem; color: var(--muted); margin: 0 0 1rem; }
.guide-lede { font-size: 1.125rem; max-width: 68ch; }
.guide-article { max-width: 760px; }
.guide-section { margin: 0 0 2.25rem; }
.guide-disclosure { font-size: .85rem; color: var(--muted) !important; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .65rem .9rem; margin: 0 0 1.5rem; }

.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.guide-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; display: flex; flex-direction: column; overflow: hidden; }
.guide-card-image { height: 190px; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.guide-card-image img { max-width: 100%; max-height: 160px; object-fit: contain; }
.guide-card-body { padding: 0 1rem 1rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.guide-card-body h3 { font-size: 1.05rem; line-height: 1.3; margin: 0; }
.guide-card-body h3 a { color: var(--text); text-decoration: none; }
.guide-card-body p { font-size: .92rem; line-height: 1.5; margin: 0; }
.guide-card-actions { margin-top: auto; padding-top: .6rem; display: flex; flex-direction: column; gap: .5rem; }
.guide-card-actions .button { text-align: center; padding: .65rem .8rem; font-size: .92rem; }
.guide-pick { align-self: flex-start; display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: .25rem .6rem; border-radius: 999px; background: #ffedd5; color: #c2410c; }

.gift-banner { background: var(--bg); color: #fff; border-radius: 18px; padding: 1.75rem; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1.5rem; align-items: center; margin: 0 0 1.5rem; }
.gift-banner h1 { color: #fff; }
.gift-banner p { color: #cbd5e1; }
.gift-banner .page-eyebrow { color: #fdba74; }
.gift-banner .guide-byline { color: #cbd5e1; }
.gift-dates { display: flex; flex-wrap: wrap; gap: .6rem; }
.gift-dates div { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); border-radius: 12px; padding: .75rem .9rem; min-width: 88px; }
.gift-dates b { display: block; font-size: 1.6rem; color: #fff; font-variant-numeric: tabular-nums; }
.gift-dates small { color: #cbd5e1; font-size: .75rem; }
.price-group { display: flex; align-items: baseline; gap: .75rem; margin: 0 0 1rem; padding-bottom: .5rem; border-bottom: 2px solid var(--line); }
.price-group h2 { margin: 0 !important; }
.price-group span { color: var(--muted); font-size: .9rem; }
.guide-note { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.5rem; }

.guide-diagram { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.1rem; margin: 0 0 2rem; }
.guide-diagram svg { display: block; width: 100%; height: auto; }
.guide-diagram figcaption { font-size: .9rem; color: var(--muted); margin-top: .5rem; line-height: 1.5; }
.guide-glossary { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .75rem; }
.guide-glossary div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .9rem; }
.guide-glossary b { display: block; margin-bottom: .25rem; }
.guide-glossary span { font-size: .9rem; color: #334155; line-height: 1.5; }
.guide-faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1rem; }
.guide-faq details + details { margin-top: .6rem; }
.guide-faq summary { font-weight: 700; cursor: pointer; }
.guide-faq details p { margin: .6rem 0 0; }

.guide-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.guide-list-item { display: flex; flex-direction: column; gap: .5rem; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.25rem; color: var(--text); text-decoration: none; transition: box-shadow .2s ease, transform .2s ease; }
.guide-list-item:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(15, 23, 42, .08); }
.guide-list-item h2 { font-size: 1.2rem !important; margin: 0 !important; }
.guide-list-item p { margin: 0; font-size: .95rem; }

@media (max-width: 840px) {
    .gift-banner { grid-template-columns: minmax(0, 1fr); }
}

/* Gift guide (/gift-guide) */
.gift-guide { display: flex; flex-direction: column; gap: 2rem; }
.gift-guide .guide-crumbs, .gift-guide .guide-disclosure { margin: 0; }
.gg-hero { background: var(--bg); color: #fff; border-radius: 22px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; overflow: hidden; }
.gg-hero-copy { padding: 2rem; display: flex; flex-direction: column; gap: .9rem; }
.gg-hero-copy .page-eyebrow { color: #fdba74; margin: 0; }
.gg-hero-copy h1 { color: #fff; margin: 0; }
.gg-hero-copy p { color: #cbd5e1; font-size: 1.05rem; max-width: 52ch; margin: 0; }
.gg-hero-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.button.gg-orange { background: #f97316; color: #0f172a; }
.button.gg-orange:hover { background: #fb923c; }
.gg-updated { font-size: .8rem; color: #94a3b8; }
.gg-hero-art { align-self: stretch; min-height: 260px; background: radial-gradient(circle at 60% 50%, #1e3a8a 0%, var(--bg) 70%); display: flex; align-items: center; justify-content: center; padding: 1.25rem; }
.gg-hero-art svg { width: 100%; max-width: 380px; height: auto; }
.gg-dates { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: .6rem; }
.gg-date { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .18); border-radius: 14px; padding: .75rem; display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.gg-date.hot { border-color: #f97316; background: rgba(249, 115, 22, .14); }
.gg-date svg { width: 30px; height: 30px; }
.gg-date b { font-size: 1.5rem; line-height: 1.1; color: #fff; font-variant-numeric: tabular-nums; }
.gg-date small { color: #cbd5e1; font-size: .75rem; line-height: 1.3; }

.gg-legend { display: flex; flex-wrap: wrap; gap: .6rem 1.1rem; align-items: center; font-size: .9rem; color: var(--muted); }
.gg-tag { display: inline-flex; align-items: center; gap: .4rem; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: .3rem .65rem; border-radius: 999px; white-space: nowrap; }
.gg-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.gg-tag.stocking { background: #fce7f3; color: #be185d; }
.gg-tag.small { background: #dcfce7; color: #15803d; }
.gg-tag.thoughtful { background: #eff6ff; color: #1d4ed8; }
.gg-tag.crowd { background: #ccfbf1; color: #0f766e; }
.gg-tag.splurge { background: #ede9fe; color: #6d28d9; }

.gg-quiz { background: #fff; border: 1px solid var(--line); border-radius: 20px; display: grid; grid-template-columns: 220px minmax(0, 1fr); overflow: hidden; scroll-margin-top: 1rem; }
.gg-quiz-side { background: #ffedd5; padding: 1.5rem; display: flex; flex-direction: column; gap: .75rem; justify-content: center; }
.gg-quiz-side svg { width: 100%; max-width: 150px; height: auto; }
.gg-quiz-side .page-eyebrow { margin: 0; }
.gg-quiz-side p { font-size: .9rem; color: #7c2d12; margin: 0; }
.gg-quiz-main { padding: 1.6rem; display: flex; flex-direction: column; gap: 1.1rem; min-width: 0; }
.gg-quiz-main h2 { margin: 0; }
.gg-progress { display: flex; gap: 6px; }
.gg-progress span { height: 6px; flex: 1; border-radius: 999px; background: var(--line); }
.gg-progress span.done { background: #f97316; }
.gg-step { font-size: .8rem; color: var(--muted); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.gg-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .6rem; }
.gg-option { display: flex; align-items: center; gap: .75rem; text-align: left; background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: .75rem .9rem; font: inherit; font-weight: 700; color: var(--text); cursor: pointer; }
.gg-option:hover, .gg-option:focus-visible { border-color: var(--accent); background: #eff6ff; }
.gg-option small { display: block; font-weight: 400; color: var(--muted); font-size: .8rem; margin-top: 2px; }
.gg-option-icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.gg-option-icon svg { width: 22px; height: 22px; }
.gg-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .75rem; }
.gg-result { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: .75rem; align-items: center; border: 1px solid var(--line); border-radius: 14px; padding: .6rem; }
.gg-result img { width: 72px; height: 72px; object-fit: contain; }
.gg-result > div { display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; min-width: 0; }
.gg-result h3 { font-size: 1rem; margin: 0; }
.gg-result a { color: var(--accent); font-weight: 700; font-size: .9rem; text-decoration: none; }
.gg-quiz-foot { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }
.gg-link { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; align-self: flex-start; }

.gg-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.gg-chip { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .9rem .35rem .35rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: .9rem; font-weight: 700; color: #334155; text-decoration: none; }
.gg-chip:hover { border-color: #f97316; }
.gg-chip span { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.gg-chip svg { width: 20px; height: 20px; }

.gg-group { display: flex; flex-direction: column; gap: 1rem; scroll-margin-top: 1rem; }
.gg-group-head { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 1.1rem; align-items: center; }
.gg-group-head h2 { margin: 0 0 .35rem; }
.gg-group-head p { margin: 0; }
.gg-group-art { width: 96px; height: 96px; border-radius: 24px; display: flex; align-items: center; justify-content: center; }
.gg-group-art svg { width: 64px; height: 64px; }
.gg-card .guide-card-image { position: relative; }
.gg-card .guide-card-image .gg-tag { position: absolute; top: .75rem; left: .75rem; }
.gg-card .guide-card-body { gap: .6rem; }
.gg-best-for { background: #f8fafc; border: 1px solid var(--line); border-radius: 10px; padding: .55rem .7rem; font-size: .88rem; line-height: 1.45; color: #334155; }
.gg-best-for b { display: block; color: #c2410c; font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 2px; }

@media (max-width: 860px) {
    .gg-hero { grid-template-columns: minmax(0, 1fr); }
    .gg-hero-art { min-height: 200px; order: -1; }
    .gg-quiz { grid-template-columns: minmax(0, 1fr); }
    .gg-quiz-side { flex-direction: row; align-items: center; }
    .gg-quiz-side svg { max-width: 80px; flex-shrink: 0; }
}
@media (max-width: 480px) {
    .gg-dates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gg-hero-copy, .gg-quiz-main { padding: 1.25rem; }
    .gg-group-head { grid-template-columns: 64px minmax(0, 1fr); gap: .75rem; }
    .gg-group-art { width: 64px; height: 64px; border-radius: 18px; }
    .gg-group-art svg { width: 44px; height: 44px; }
}

/* Homepage: Gift Guide banner */
.hero a { color: var(--accent); font-weight: 700; }
.home-gift-banner { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto auto; gap: 1.25rem; align-items: center; background: var(--bg); color: #fff; border-radius: 18px; padding: 1rem 1.5rem 1rem 1rem; margin: 0 0 2rem; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.home-gift-banner:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(15, 23, 42, .18); }
.home-gift-art { background: radial-gradient(circle at 50% 50%, #1e3a8a 0%, var(--bg) 75%); border-radius: 14px; display: flex; align-items: center; justify-content: center; }
.home-gift-art svg { width: 120px; height: auto; }
.home-gift-copy { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.home-gift-copy .page-eyebrow { color: #fdba74; margin: 0; }
.home-gift-copy strong { font-size: 1.4rem; line-height: 1.2; }
.home-gift-copy span:last-child { color: #cbd5e1; font-size: .95rem; line-height: 1.5; }
.home-gift-count { display: flex; flex-direction: column; border: 1px solid #f97316; background: rgba(249, 115, 22, .14); border-radius: 12px; padding: .6rem .8rem; text-align: center; }
.home-gift-count b { font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.home-gift-count small { color: #cbd5e1; font-size: .75rem; }
.home-gift-cta { background: #f97316; color: #0f172a; white-space: nowrap; }
.home-gift-banner:hover .home-gift-cta { background: #fb923c; }

@media (max-width: 840px) {
    .home-gift-banner { grid-template-columns: 88px minmax(0, 1fr); padding: 1rem; }
    .home-gift-art svg { width: 88px; }
    .home-gift-count { grid-column: 1 / -1; flex-direction: row; justify-content: center; align-items: baseline; gap: .5rem; }
    .home-gift-cta { grid-column: 1 / -1; text-align: center; }
}

/* Guides list illustrations + shared guide pieces */
.guide-page > .page-eyebrow, .guide-page .guide-article .page-eyebrow { color: #c2410c; }
.guide-list-item { padding: 0; overflow: hidden; }
.guide-list-art { height: 150px; display: flex; align-items: center; justify-content: center; padding: .75rem; }
.guide-list-art svg { width: 100%; max-width: 170px; height: auto; }
.guide-list-text { display: flex; flex-direction: column; gap: .45rem; padding: 1.1rem 1.25rem 1.25rem; min-width: 0; flex: 1; }
.guide-list-cta { margin-top: auto; color: var(--accent); font-weight: 700; font-size: .9rem; }
.guide-quick { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.25rem 1.5rem; }
.guide-quick h2 { margin: 0 0 .75rem !important; font-size: 1.2rem !important; }
.guide-quick ol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: .55rem; }
.guide-quick li { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.guide-quick a { color: var(--text); font-weight: 700; text-decoration: none; }
.guide-quick a:hover { color: var(--accent); }
.guide-tips { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .9rem; }
.guide-tip { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 14px; padding: 1rem 1.1rem; }
.guide-tip:nth-child(even) { border-left-color: #f97316; }
.guide-tip h3 { margin: 0 0 .35rem; font-size: 1.05rem; }
.guide-tip p { margin: 0; font-size: .95rem; }
.guide-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.1rem; max-width: 760px; }
.guide-steps li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: .9rem; }
.guide-step-num { width: 44px; height: 44px; border-radius: 50%; background: #eff6ff; color: var(--accent-dark); font-weight: 700; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; }
.guide-steps h3 { margin: .45rem 0 .3rem; font-size: 1.15rem; }
.guide-steps p { margin: 0; }
.guide-table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.guide-table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: .95rem; }
.guide-table th, .guide-table td { text-align: left; padding: .75rem .9rem; border-bottom: 1px solid var(--line); color: #334155; vertical-align: top; }
.guide-table th { background: #f1f5f9; color: var(--text); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.guide-table tr:last-child td { border-bottom: 0; }
.guide-table a { color: var(--accent); font-weight: 700; text-decoration: none; }
.guide-callout { display: flex; flex-direction: column; gap: .3rem; background: #ffedd5; border: 1px solid #fed7aa; border-radius: 14px; padding: 1rem 1.25rem; text-decoration: none; }
.guide-callout strong { color: #7c2d12; }
.guide-callout span { color: #9a3412; }
.guide-callout:hover { border-color: #f97316; }
.mg-art svg { width: 100%; max-width: 210px; height: auto; }

/* ==========================================================
   HELP ME CHOOSE (/quizzes, /laptop-quiz, /monitor-quiz)
   ========================================================== */
.quiz-soon { cursor: default; opacity: .85; }
.quiz-soon:hover { transform: none; box-shadow: none; }
.quiz-soon .guide-pick { background: #f1f5f9; color: #475569; }
.guide-page > .guide-callout { margin-top: 1.5rem; }
.lq-callout { margin: 0; }

.lq-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 1.5rem; scroll-margin-top: 1rem; }
.lq-q { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: .5rem; }
.lq-q:first-child { grid-column: 1 / -1; }
.lq-q legend { display: flex; align-items: center; gap: .5rem; font-weight: 700; font-size: 1rem; color: var(--text); padding: 0; margin-bottom: .5rem; }
.lq-num { width: 24px; height: 24px; border-radius: 50%; background: #ffedd5; color: #c2410c; font-size: .78rem; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.lq-hint { margin: -.25rem 0 0; font-size: .85rem; color: var(--muted); }
.lq-options { display: flex; flex-wrap: wrap; gap: .4rem; }
.lq-option { background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: .45rem .75rem; font: inherit; font-size: .9rem; font-weight: 700; color: var(--text); cursor: pointer; text-align: left; }
.lq-option small { display: block; font-weight: 400; color: var(--muted); font-size: .75rem; }
.lq-option:hover, .lq-option:focus-visible { border-color: var(--accent); }
.lq-option.on { border-color: #f97316; background: #fff7ed; color: #9a3412; }
.lq-option.empty { opacity: .45; }
.lq-bar { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.lq-count { font-weight: 700; font-size: 1.05rem; margin-right: auto; }

.lq-results-wrap { display: flex; flex-direction: column; gap: 1rem; scroll-margin-top: 1rem; }
.lq-results-head h2 { margin: 0 0 .35rem; }
.lq-results-head p { margin: 0; }
.lq-results-head .page-eyebrow { margin: 0 0 .25rem; color: #c2410c; }
.lq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.lq-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.lq-art { position: relative; height: 160px; background: linear-gradient(135deg, #eff6ff, #ede9fe); display: flex; align-items: center; justify-content: center; }
.lq-art svg { width: 100%; max-width: 200px; height: auto; }
.lq-rank { position: absolute; top: .75rem; left: .75rem; font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: .25rem .6rem; border-radius: 999px; background: #fff; color: #c2410c; }
.lq-card:first-child .lq-rank { background: #f97316; color: #fff; }
.lq-body { padding: 1.1rem 1.25rem 1.25rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.lq-body h3 { margin: 0; font-size: 1.1rem; }
.lq-brand { font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.lq-note { margin: 0; font-size: .92rem; }
.lq-specs { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .3rem .75rem; margin: .25rem 0; font-size: .88rem; background: #f8fafc; border: 1px solid var(--line); border-radius: 10px; padding: .6rem .75rem; }
.lq-specs dt { color: var(--muted); font-weight: 700; }
.lq-specs dd { margin: 0; color: #334155; }
.lq-price { margin: 0; font-weight: 700; color: #15803d; font-size: .9rem; }
.lq-body .button { margin-top: auto; text-align: center; }
.lq-fine { margin: 0; font-size: .75rem; color: var(--muted); }
.lq-results-wrap.none { background: #fff; border: 1px dashed #fdba74; border-radius: 16px; padding: 1.5rem; }
.lq-fixes { display: flex; flex-wrap: wrap; gap: .5rem; }
.lq-fix { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; background: #fff7ed; border: 1px solid #fdba74; border-radius: 12px; padding: .55rem .8rem; font: inherit; cursor: pointer; text-align: left; }
.lq-fix strong { color: #9a3412; font-size: .9rem; }
.lq-fix span { font-size: .8rem; color: var(--muted); }

.lq-body h3.lq-title { font-size: .95rem; line-height: 1.4; font-weight: 700; overflow-wrap: anywhere; }
.lq-diff { background: #fff7ed; border: 1px solid #fdba74; border-radius: 10px; padding: .55rem .7rem; font-size: .85rem; color: #7c2d12; }
.lq-diff b { display: block; color: #c2410c; font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 2px; }
.lq-diff ul { margin: 0; padding-left: 1.1rem; }
.lq-card.close .lq-rank { background: #fff; color: #c2410c; }
.lq-fix-wrap { display: flex; flex-direction: column; gap: .5rem; }
.lq-fix-wrap p { margin: 0; font-weight: 700; }

@media (max-width: 700px) {
    .lq-form { grid-template-columns: minmax(0, 1fr); padding: 1.1rem; }
}
