/* ==========================================================
   EliteToolz - Developer Tools Affiliate Site
   Aesthetic: Clean editorial / refined retail (light theme)
   ========================================================== */

:root {
    --bg:           #fafaf7;        /* warm off-white */
    --bg-2:         #f4f4ee;        /* subtle alt section bg */
    --surface:      #ffffff;        /* pure white cards */
    --surface-2:    #f7f7f2;        /* hover/raised */
    --border:       #e8e6df;        /* soft warm-gray border */
    --border-hot:   #d6d4cb;        /* darker border on hover */
    --text:         #1a1a1a;        /* near-black, not pure */
    --text-dim:     #5a5a5a;        /* secondary text */
    --text-faint:   #999692;        /* tertiary / metadata */
    --accent:       #ff5a3c;        /* warm coral — signature */
    --accent-hover: #e84320;        /* coral pressed */
    --accent-2:     #1a1a1a;        /* charcoal for contrast buttons */
    --accent-warm:  #f59e0b;        /* amber for callouts */
    --us-color:     #ff9900;        /* Amazon orange */
    --uk-color:     #0066cc;        /* British blue */
    --ca-color:     #d8232a;        /* Canadian red */
    --radius:       8px;
    --radius-lg:    14px;
    --shadow:       0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --shadow-lg:    0 10px 30px -10px rgba(0,0,0,.15), 0 4px 12px rgba(0,0,0,.05);
    --shadow-glow:  0 0 0 2px rgba(255,90,60,.12), 0 12px 28px -8px rgba(255,90,60,.18);
    --font-display: 'Outfit', system-ui, sans-serif;
    --font-mono:    'JetBrains Mono', 'Fira Code', monospace;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-display);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    font-feature-settings: 'ss01', 'cv11';
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }

/* ---------- Background grid ---------- */
.bg-grid {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(0,0,0,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,.025) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    mask-image: radial-gradient(ellipse 80% 50% at 50% 0%, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 80% 50% at 50% 0%, black 30%, transparent 70%);
}

/* ---------- Container ---------- */
.container { max-width: 1380px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250,250,247,.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}
.header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 32px;
    padding: 18px 24px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -.02em;
}
.brand-text {
    display: inline-flex;
    align-items: baseline;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 22px;
    letter-spacing: -.03em;
    line-height: 1;
}
.brand-logo-img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    flex-shrink: 0;
}
.brand-elite {
    color: var(--accent);
    font-style: italic;
}
.brand-toolz {
    color: var(--text);
}
.main-nav { display: flex; gap: 6px; }
.main-nav a {
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dim);
    transition: all .2s;
}
.main-nav a:hover { color: var(--text); background: var(--surface); }

.header-actions { display: flex; align-items: center; gap: 8px; }

.search-form {
    display: flex;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 4px 4px 4px 14px;
    transition: all .2s;
    width: 280px;
}
.search-form:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,90,60,.12); }
.search-form input {
    border: none;
    background: transparent;
    outline: none;
    flex: 1;
    padding: 8px 0;
    font-size: 13px;
    width: 100%;
    min-width: 0;
}
.search-form input::placeholder { color: var(--text-faint); }
.search-form button {
    background: var(--accent);
    color: #fff;
    padding: 7px 10px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    border: none;
    cursor: pointer;
}
.search-form button:hover { background: var(--accent-hover); }

/* Search toggle button - hidden on desktop, shows on mobile */
.search-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all .2s;
}
.search-toggle:hover { background: var(--surface); border-color: var(--accent); color: var(--accent); }

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 9px 8px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
}
.mobile-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all .25s;
}
.mobile-toggle:hover { border-color: var(--accent); }
.mobile-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    padding: 36px 0 24px;
    text-align: center;
    position: relative;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(255,90,60,.06), transparent 70%);
    pointer-events: none;
}
.hero h1 {
    font-size: clamp(26px, 4vw, 44px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -.025em;
    margin-bottom: 0;
    color: var(--text);
}
.hero h1 .accent {
    color: var(--accent);
    font-style: italic;
    font-weight: 500;
}

/* ---------- Filter bar ---------- */
.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin: 40px 0 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.filter-bar .results-count {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-dim);
}
.filter-bar .results-count b { color: var(--accent); }
.cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,90,60,.08);
    border: 1px solid rgba(255,90,60,.25);
    color: var(--accent);
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 12px;
    font-family: var(--font-mono);
}
.cat-pill a { color: inherit; opacity: .7; }
.cat-pill a:hover { opacity: 1; }

/* ---------- Product grid ---------- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.product-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all .3s cubic-bezier(.2,.8,.2,1);
    position: relative;
    isolation: isolate;
    box-shadow: var(--shadow);
}
.product-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    background: linear-gradient(135deg, transparent 30%, var(--accent) 50%, transparent 70%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity .3s;
    pointer-events: none;
}
.product-card:hover { transform: translateY(-4px); border-color: var(--border-hot); box-shadow: var(--shadow-lg); }
.product-card:hover::before { opacity: 1; }

.product-card .img-wrap {
    position: relative;
    aspect-ratio: 3 / 4;
    background: #ffffff;
    overflow: hidden;
}
.product-card .img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.product-card .img-wrap .placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-card:hover .img-wrap img { transform: scale(1.06); }

.placeholder {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
    color: var(--text-faint);
    font-family: var(--font-mono);
    font-size: 12px;
}

.product-card .meta-row {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2;
}
.product-card .category-tag {
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(8px);
    color: var(--text);
    padding: 4px 10px;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    border: 1px solid rgba(0,0,0,.06);
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.product-card .price-tag {
    background: var(--accent);
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 1px 3px rgba(0,0,0,.1);
}

.product-card .card-body { padding: 16px 16px 14px; flex: 1; display: flex; flex-direction: column; }
.product-card h3 {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 10px;
    letter-spacing: -.01em;
    min-height: 2.7em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-card h3 a:hover { color: var(--accent); }

.affiliate-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px;
    margin-top: auto;
}
.aff-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7px 4px;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .03em;
    transition: all .2s;
    border: 1px solid var(--border);
    background: var(--bg-2);
    color: var(--text-dim);
    text-align: center;
}
.aff-btn:hover { transform: translateY(-1px); }
.aff-btn.us { border-color: rgba(255,153,0,.4); color: var(--us-color); background: rgba(255,153,0,.05); }
.aff-btn.us:hover { background: var(--us-color); color: #fff; border-color: var(--us-color); }
.aff-btn.uk { border-color: rgba(0,102,204,.35); color: var(--uk-color); background: rgba(0,102,204,.04); }
.aff-btn.uk:hover { background: var(--uk-color); color: #fff; border-color: var(--uk-color); }
.aff-btn.ca { border-color: rgba(216,35,42,.35); color: var(--ca-color); background: rgba(216,35,42,.04); }
.aff-btn.ca:hover { background: var(--ca-color); color: #fff; border-color: var(--ca-color); }
.aff-btn.disabled { opacity: .3; pointer-events: none; }

/* ---------- Pagination ---------- */
.pagination {
    margin: 60px 0 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.pagination a, .pagination span {
    min-width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-dim);
    transition: all .2s;
}
.pagination a:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-1px); }
.pagination .current { background: var(--accent); color: #fff; border-color: var(--accent); }
.pagination .next-btn {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 0 22px;
    font-weight: 700;
}
.pagination .next-btn:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 8px 20px -6px rgba(255,90,60,.4); }
.pagination .disabled { opacity: .3; pointer-events: none; }

/* ---------- Single Product Page ---------- */
.product-detail {
    padding: 40px 0 80px;
}
.breadcrumbs {
    display: flex;
    gap: 8px;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-faint);
    margin-bottom: 30px;
}
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { opacity: .5; }

.product-hero {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    margin-bottom: 60px;
}
.product-hero .img-side {
    position: sticky;
    top: 90px;
    align-self: start;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 3 / 4;
}
.product-hero .img-side img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 24px;
}
.product-hero .img-side .placeholder { width: 100%; height: 100%; object-fit: cover; }

.product-hero .info-side .category-tag-large {
    display: inline-block;
    color: var(--accent);
    padding: 4px 12px;
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 11px;
    background: rgba(255,90,60,.08);
    border: 1px solid rgba(255,90,60,.25);
    margin-bottom: 16px;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.product-hero h1 {
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.1;
    letter-spacing: -.025em;
    margin-bottom: 16px;
}
.product-hero .lede {
    font-size: 18px;
    color: var(--text-dim);
    line-height: 1.6;
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
}
.price-row {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 24px;
}
.price-row .price-big {
    font-family: var(--font-mono);
    font-size: 28px;
    font-weight: 800;
    color: var(--accent);
}
.price-row .price-label-text {
    font-size: 13px;
    color: var(--text-faint);
}

.buy-buttons {
    display: grid;
    gap: 10px;
    margin-bottom: 28px;
}

.product-intro {
    font-size: 17px;
    line-height: 1.75;
    color: var(--text);
    margin-bottom: 28px;
}
.buy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 22px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: .01em;
    border: 3px solid #ffffff;
    background: linear-gradient(90deg, #a83b3b 0%, #7a2929 35%, #2d2d5f 65%, #1f1f4d 100%);
    transition: all .25s cubic-bezier(.2,.8,.2,1);
    color: #ffffff;
    box-shadow:
        0 0 0 1px rgba(0,0,0,.12),
        0 16px 36px -8px rgba(60, 30, 60, .6),
        0 8px 16px -4px rgba(0, 0, 0, .3),
        0 3px 6px -1px rgba(0, 0, 0, .2),
        inset 0 1px 0 0 rgba(255, 255, 255, .2);
    position: relative;
    overflow: hidden;
}
.buy-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,.15) 0%, transparent 50%);
    pointer-events: none;
}
.buy-btn:hover {
    transform: translateY(-3px);
    box-shadow:
        0 0 0 1px rgba(0,0,0,.12),
        0 22px 44px -8px rgba(60, 30, 60, .7),
        0 12px 20px -4px rgba(0, 0, 0, .35),
        0 5px 8px -2px rgba(0, 0, 0, .25),
        inset 0 1px 0 0 rgba(255, 255, 255, .25);
}
.buy-btn:active {
    transform: translateY(-1px);
    box-shadow:
        0 0 0 1px rgba(0,0,0,.12),
        0 6px 14px -3px rgba(60, 30, 60, .5),
        inset 0 1px 0 0 rgba(255, 255, 255, .15);
}
.buy-btn .label {
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    z-index: 1;
}
.buy-btn .cart-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    color: #ffffff;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,.3));
}
.buy-btn .btn-text {
    font-weight: 700;
    font-size: 20px;
    letter-spacing: .03em;
}
.buy-btn .flag {
    font-size: 22px;
    margin-left: 6px;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,.2));
}

/* Bottom-of-article smaller buttons - 3 in a row */
.buy-buttons-bottom {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    margin: 48px 0 24px;
}
.buy-btn-sm {
    padding: 11px 12px;
    border-radius: 7px;
    font-size: 13px;
}
.buy-btn-sm .label { gap: 8px; }
.buy-btn-sm .cart-icon { width: 18px; height: 18px; }
.buy-btn-sm .btn-text { font-size: 13px; letter-spacing: .02em; }
.buy-btn-sm .flag { font-size: 14px; margin-left: 4px; }

/* Force white text/link styling — overrides article default link color */
.buy-buttons-bottom .buy-btn,
.buy-buttons-bottom .buy-btn:hover,
.buy-buttons-bottom .buy-btn:visited,
.buy-buttons-bottom .buy-btn .btn-text,
.buy-buttons-bottom .buy-btn .label {
    color: #ffffff !important;
    text-decoration: none !important;
}

/* On mobile, keep 3 in a row but tighten spacing */
@media (max-width: 640px) {
    .buy-buttons-bottom { gap: 6px; }
    .buy-btn-sm { padding: 10px 6px; font-size: 11px; }
    .buy-btn-sm .label { gap: 5px; }
    .buy-btn-sm .cart-icon { width: 14px; height: 14px; }
    .buy-btn-sm .btn-text { font-size: 11px; }
    .buy-btn-sm .flag { font-size: 12px; margin-left: 2px; }
}

.read-stats {
    display: flex;
    gap: 20px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-faint);
}
.read-stats .stat { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Article ---------- */
.article {
    max-width: 760px;
    margin: 0 auto;
    padding: 24px 0 60px;
    border-top: 1px solid var(--border);
}
.article > *:first-child { margin-top: 0; }

/* H2 - main section divider */
.article h2,
.article .art-h2 {
    font-size: 28px;
    margin: 48px 0 16px;
    letter-spacing: -.02em;
    line-height: 1.25;
    color: var(--text);
    font-weight: 700;
}
.article h2:first-child,
.article .art-h2:first-child { margin-top: 0; }

/* H3 - subsection (Specifications, How to Use, Key Features...) */
.article h3,
.article .art-h3 {
    font-size: 22px;
    margin: 40px 0 18px;
    color: var(--text);
    font-weight: 700;
    letter-spacing: -.015em;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}
.article h3 + ul,
.article h3 + ol,
.article .art-h3 + .art-list { margin-top: 4px; }

/* Paragraphs */
.article p {
    font-size: 17px;
    line-height: 1.75;
    color: var(--text);
    margin-bottom: 20px;
}

/* Lists */
.article ul,
.article ol,
.article .art-list {
    margin: 0 0 24px 0;
    padding-left: 0;
    list-style: none;
    color: var(--text);
}
.article li {
    margin-bottom: 12px;
    line-height: 1.65;
    padding-left: 28px;
    position: relative;
    font-size: 16px;
}

/* Bullet markers */
.article ul li::before,
.article .art-list li::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 11px;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

/* Numbered lists - styled with circle counters */
.article ol,
.article ol.art-list {
    counter-reset: art-counter;
}
.article ol li,
.article ol.art-list li {
    counter-increment: art-counter;
    padding-left: 28px;
    margin-bottom: 16px;
}
.article ol li::before,
.article ol.art-list li::before {
    content: counter(art-counter);
    position: absolute;
    left: 0;
    top: 6px;
    width: 18px;
    height: 18px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 11px;
    font-family: var(--font-mono);
    line-height: 1;
}

/* Bold-bullet pattern: "**Title** description on next line" */
.article li strong {
    color: var(--text);
    font-weight: 700;
}
.article li .art-li-sub {
    display: block;
    color: var(--text-dim);
    font-size: 15px;
    margin-top: 4px;
    line-height: 1.6;
}

/* Blockquote */
.article blockquote,
.article .art-quote {
    border-left: 3px solid var(--accent);
    padding: 8px 0 8px 24px;
    margin: 32px 0;
    font-style: italic;
    color: var(--text-dim);
    font-size: 17px;
}

/* Links inside article */
.article a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}
.article a:hover { text-decoration-thickness: 2px; }

/* Emphasis */
.article strong { color: var(--text); font-weight: 700; }
.article em { font-style: italic; color: var(--text); }

/* Mobile: smaller article */
@media (max-width: 640px) {
    .article { padding: 20px 0 40px; }
    .article h2, .article .art-h2 { font-size: 24px; margin: 36px 0 14px; }
    .article h3, .article .art-h3 { font-size: 19px; margin: 32px 0 14px; }
    .article p { font-size: 16px; }
    .article li { font-size: 15px; }
    .article ol li::before { width: 16px; height: 16px; font-size: 10px; top: 5px; }
    .article ol li { padding-left: 24px; }
}

/* ---------- Related products ---------- */
.related-section {
    border-top: 1px solid var(--border);
    padding: 60px 0;
}
.section-title {
    font-size: 24px;
    margin-bottom: 28px;
    letter-spacing: -.02em;
    display: flex;
    align-items: baseline;
    gap: 12px;
}
.section-title::before {
    content: '//';
    color: var(--accent);
    font-family: var(--font-mono);
    font-weight: 800;
}

/* ---------- Empty state ---------- */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-faint);
}
.empty-state h3 { color: var(--text); margin-bottom: 8px; font-size: 22px; }

/* ---------- Footer ---------- */
.site-footer {
    border-top: 1px solid var(--border);
    background: var(--bg-2);
    padding: 80px 0 30px;
    margin-top: 80px;
}
.footer-top {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}
.footer-brand-block { display: flex; flex-direction: column; }
.footer-brand-link { text-decoration: none; display: inline-block; }
.footer-brand {
    display: inline-flex;
    align-items: baseline;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 56px;
    letter-spacing: -.04em;
    line-height: 1;
}
.footer-brand .brand-elite { color: var(--accent); font-style: italic; }
.footer-brand .brand-toolz { color: var(--text); }
.footer-tagline {
    color: var(--text-dim);
    font-size: 16px;
    margin-top: 16px;
    margin-bottom: 28px;
}
.social-row { display: flex; gap: 10px; flex-wrap: wrap; }
.social-btn {
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: var(--text);
    transition: all .2s;
    text-decoration: none;
}
.social-btn:hover {
    border-color: var(--text);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px -6px rgba(0,0,0,.15);
}
.social-btn svg { display: block; }

.footer-links-block {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}
.footer-col h4 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--accent);
    margin-bottom: 16px;
    font-family: var(--font-mono);
    font-weight: 700;
}
.footer-col a {
    display: block;
    color: var(--text-dim);
    padding: 4px 0;
    font-size: 14px;
    transition: color .2s;
    text-decoration: none;
}
.footer-col a:hover { color: var(--text); }
.muted { color: var(--text-dim); font-size: 14px; margin-top: 8px; }
.footer-bottom {
    padding-top: 28px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: var(--text-faint);
}
.disclaimer { font-style: italic; }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1180px) {
    .products-grid { grid-template-columns: repeat(3, 1fr); }
    .product-hero { grid-template-columns: 1fr; gap: 30px; }
    .product-hero .img-side { position: static; max-width: 500px; margin: 0 auto; }
}
@media (max-width: 920px) {
    .header-inner { padding: 14px 16px; gap: 16px; grid-template-columns: auto 1fr auto; }
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 12px 16px;
        gap: 0;
        display: none;
        box-shadow: 0 8px 24px -12px rgba(0,0,0,.15);
        grid-column: 1 / -1;
    }
    .main-nav.open { display: flex; }
    .main-nav a { padding: 14px 12px; border-bottom: 1px solid var(--border); }
    .main-nav a:last-child { border-bottom: none; }

    .header-actions { justify-self: end; grid-column: 3; }

    /* Hide expanded search form, show search toggle button */
    .search-form {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: auto;
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-top: none;
        padding: 12px 16px;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        display: none;
        box-shadow: 0 8px 24px -12px rgba(0,0,0,.15);
        z-index: 50;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
    }
    .search-form.open { display: flex; }
    .search-form input {
        font-size: 15px;
        padding: 11px 14px;
        background: var(--bg-2);
        border-radius: 8px;
        flex: 1 1 0;
        min-width: 0;
        border: 1px solid var(--border);
    }
    .search-form button[type="submit"] {
        padding: 11px 16px;
        flex: 0 0 auto;
    }
    .search-toggle { display: flex; }
    .mobile-toggle { display: flex; }

    .products-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .footer-top { grid-template-columns: 1fr; gap: 48px; text-align: center; }
    .footer-brand { font-size: 48px; }
    .footer-brand-block { align-items: center; }
    .social-row { justify-content: center; }
    .footer-col h4 { text-align: center; }
    .footer-col a { text-align: center; }
}
@media (max-width: 760px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
@media (max-width: 640px) {
    .container { padding: 0 16px; }
    .hero { padding: 50px 0 30px; }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .product-card h3 { font-size: 14px; }
    .aff-btn { font-size: 9px; padding: 6px 2px; }
    .footer-brand { font-size: 40px; }
    .footer-links-block { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .header-inner { gap: 12px; padding: 12px 14px; }
    .brand { font-size: 16px; }
    .brand-text { font-size: 18px; }
}
@media (max-width: 380px) {
    .brand-text { font-size: 16px; }
}

/* ==========================================================
   Card simplification (hide tags + buy buttons on grid cards)
   To restore them: delete this block or change display: none -> initial
   ========================================================== */
.product-card .category-tag { display: none; }
.product-card .price-tag { display: none; }
.product-card .affiliate-buttons { display: none; }
/* Make the title fill the bottom space cleanly */
.product-card .card-body { padding: 14px 14px 16px; }
.product-card h3 { margin-bottom: 0; min-height: 2.7em; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
.product-card {
    animation: fadeUp .5s cubic-bezier(.2,.8,.2,1) backwards;
}
/* Stagger first 30 cards; rest appear instantly to keep load fast */
.products-grid .product-card:nth-child(1)  { animation-delay: .02s; }
.products-grid .product-card:nth-child(2)  { animation-delay: .04s; }
.products-grid .product-card:nth-child(3)  { animation-delay: .06s; }
.products-grid .product-card:nth-child(4)  { animation-delay: .08s; }
.products-grid .product-card:nth-child(5)  { animation-delay: .10s; }
.products-grid .product-card:nth-child(6)  { animation-delay: .12s; }
.products-grid .product-card:nth-child(7)  { animation-delay: .14s; }
.products-grid .product-card:nth-child(8)  { animation-delay: .16s; }
.products-grid .product-card:nth-child(9)  { animation-delay: .18s; }
.products-grid .product-card:nth-child(10) { animation-delay: .20s; }
.products-grid .product-card:nth-child(11) { animation-delay: .22s; }
.products-grid .product-card:nth-child(12) { animation-delay: .24s; }
.products-grid .product-card:nth-child(13) { animation-delay: .26s; }
.products-grid .product-card:nth-child(14) { animation-delay: .28s; }
.products-grid .product-card:nth-child(15) { animation-delay: .30s; }
.products-grid .product-card:nth-child(16) { animation-delay: .32s; }
.products-grid .product-card:nth-child(17) { animation-delay: .34s; }
.products-grid .product-card:nth-child(18) { animation-delay: .36s; }
.products-grid .product-card:nth-child(19) { animation-delay: .38s; }
.products-grid .product-card:nth-child(20) { animation-delay: .40s; }
.products-grid .product-card:nth-child(21) { animation-delay: .42s; }
.products-grid .product-card:nth-child(22) { animation-delay: .44s; }
.products-grid .product-card:nth-child(23) { animation-delay: .46s; }
.products-grid .product-card:nth-child(24) { animation-delay: .48s; }
.products-grid .product-card:nth-child(25) { animation-delay: .50s; }
.products-grid .product-card:nth-child(26) { animation-delay: .52s; }
.products-grid .product-card:nth-child(27) { animation-delay: .54s; }
.products-grid .product-card:nth-child(28) { animation-delay: .56s; }
.products-grid .product-card:nth-child(29) { animation-delay: .58s; }
.products-grid .product-card:nth-child(30) { animation-delay: .60s; }

/* ==========================================================
   Live search dropdown
   ========================================================== */
@media (min-width: 921px) {
    .search-form { position: relative; }
}

.search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 20px 50px -10px rgba(0,0,0,.18), 0 6px 16px -4px rgba(0,0,0,.08);
    overflow: hidden;
    max-height: 480px;
    overflow-y: auto;
    display: none;
    z-index: 200;
}
.search-dropdown.visible { display: block; }

.sd-loading,
.sd-empty {
    padding: 20px;
    text-align: center;
    color: var(--text-dim);
    font-size: 14px;
}

.sd-item {
    display: flex;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    transition: background .15s;
    align-items: center;
    text-decoration: none;
    color: var(--text);
}
.sd-item:last-of-type { border-bottom: none; }
.sd-item:hover { background: var(--bg-2); }

.sd-thumb {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-2);
    border: 1px solid var(--border);
    display: grid;
    place-items: center;
}
.sd-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}
.sd-noimg {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--text-faint);
    font-size: 18px;
}

.sd-meta { flex: 1; min-width: 0; }
.sd-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.sd-title mark {
    background: rgba(255,90,60,.18);
    color: var(--accent);
    padding: 0 2px;
    border-radius: 3px;
    font-weight: 700;
}
.sd-sub {
    display: flex;
    gap: 8px;
    font-size: 11px;
    color: var(--text-faint);
    font-family: var(--font-mono);
}
.sd-cat { color: var(--text-dim); }
.sd-price { color: var(--accent); font-weight: 700; }

.sd-viewall {
    display: block;
    padding: 12px 14px;
    text-align: center;
    background: var(--bg-2);
    color: var(--accent);
    font-weight: 600;
    font-size: 13px;
    border-top: 1px solid var(--border);
    transition: background .15s;
    text-decoration: none;
}
.sd-viewall:hover { background: rgba(255,90,60,.08); }

/* On mobile, the search-form is itself a drawer below the header.
   The dropdown sits inside the drawer flowing naturally below the input. */
@media (max-width: 920px) {
    .search-dropdown {
        position: relative;
        top: 0;
        left: 0;
        right: 0;
        margin-top: 12px;
        border-radius: 8px;
        box-shadow: none;
        max-height: 60vh;
        width: 100%;
        flex-basis: 100%;
    }
}

/* ==========================================================
   Static pages (Terms, FAQ, Editorial Standards, etc.)
   ========================================================== */
.static-page {
    max-width: 820px;
    padding-top: 40px;
    padding-bottom: 40px;
}
.static-page-head {
    padding: 24px 0 32px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 8px;
}
.static-page-head .cat-pill {
    display: inline-block;
    margin-bottom: 16px;
}
.static-page-head h1 {
    font-size: clamp(32px, 5vw, 48px);
    letter-spacing: -.025em;
    line-height: 1.1;
    margin-bottom: 12px;
}
.static-page-head .lede {
    font-size: 17px;
    color: var(--text-dim);
    line-height: 1.6;
}
.static-article {
    border-top: none;
    padding-top: 0;
}
.static-article a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.static-article a:hover { text-decoration-thickness: 2px; }

/* ==========================================================
   FAQ accordion
   ========================================================== */
.faq-list {
    margin: 8px 0 60px;
    border-top: 1px solid var(--border);
}
.faq-item {
    border-bottom: 1px solid var(--border);
}
.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 22px 48px 22px 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    position: relative;
    transition: color .15s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 28px;
    font-weight: 300;
    color: var(--accent);
    transition: transform .25s ease, content .25s;
    line-height: 1;
}
.faq-item[open] summary::after {
    content: '−';
}
.faq-item summary:hover { color: var(--accent); }
.faq-answer {
    padding: 0 0 22px;
    color: var(--text);
    line-height: 1.7;
    font-size: 16px;
}
.faq-answer p { margin-bottom: 12px; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer ul { margin: 12px 0 12px 24px; }
.faq-answer li { margin-bottom: 6px; }
.faq-answer a { color: var(--accent); text-decoration: underline; }

/* ==========================================================
   Cookie consent banner
   ========================================================== */
.cookie-banner {
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: 16px;
    z-index: 1000;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px 22px;
    box-shadow: 0 20px 50px -10px rgba(0,0,0,.18), 0 6px 16px -4px rgba(0,0,0,.08);
    max-width: 880px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .35s ease, transform .35s ease;
}
.cookie-banner.visible {
    opacity: 1;
    transform: translateY(0);
}
.cookie-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.cookie-text {
    flex: 1;
    min-width: 240px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text);
}
.cookie-text strong {
    display: block;
    font-size: 15px;
    margin-bottom: 4px;
}
.cookie-text span {
    color: var(--text-dim);
}
.cookie-text a { color: var(--accent); text-decoration: underline; }
.cookie-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}
.cookie-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    border: 1px solid;
    transition: all .15s;
    font-family: inherit;
}
.cookie-btn-accept {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.cookie-btn-accept:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.cookie-btn-decline {
    background: transparent;
    color: var(--text-dim);
    border-color: var(--border);
}
.cookie-btn-decline:hover { color: var(--text); border-color: var(--text-dim); }

@media (max-width: 600px) {
    .cookie-banner { padding: 14px 16px; bottom: 8px; left: 8px; right: 8px; }
    .cookie-inner { gap: 12px; }
    .cookie-actions { width: 100%; }
    .cookie-actions .cookie-btn { flex: 1; padding: 10px 14px; }
}







