/* ==========================================================================
   SpecsTime Modern Responsive Design System (v2.1)
   ========================================================================== */


:root {
    --paper: #ffffff;
    --ink: #111827;
    --ink-soft: #4b5563;
    --muted: #9ca3af;
    --line: #f3f4f6;
    --line-strong: #e5e7eb;
    --accent: #4f46e5;        /* Modern Indigo */
    --accent-dark: #4338ca;
    --accent-soft: #eef2ff;
    --secondary: #f97316;     /* Vibrant Orange */
    --secondary-dark: #ea580c;
    --secondary-soft: #fff7ed;
    --teal: #14b8a6;
    --teal-soft: #f0fdf4;
    --gold: #f59e0b;
    --danger: #ef4444;
    --wash-brands: #f9fafb;
    --wash-latest: #ffffff;
    --wash-top: #ffffff;
    --font-display: Georgia, "Times New Roman", serif;
    --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.flex-grow { flex: 1; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; width: 100%; }

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

a:hover { color: var(--accent-dark); }

a:focus-visible, button:focus-visible, input:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ---------- Announcement Bar ---------- */

.announcement-bar {
    background: var(--ink);
    color: #fff;
    font-size: 0.85rem;
    padding: 0.6rem 0;
    text-align: center;
}

.announcement-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.announcement-inner a {
    color: var(--secondary);
    font-weight: 600;
}

/* ---------- Header ---------- */

.site-header {
    border-bottom: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
}

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

.header-brand-group { display: flex; align-items: center; gap: 0.75rem; }

.logo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon { color: var(--accent); }

.main-nav { display: flex; align-items: center; gap: 0.5rem; }

.nav-dropdown { position: relative; }

.main-nav a, .main-nav .nav-disabled {
    margin-left: 0.5rem;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--ink-soft);
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    transition: all 0.15s ease;
}

.main-nav a:hover { color: var(--accent); background: var(--wash-brands); text-decoration: none; }

.nav-disabled { color: var(--muted); cursor: not-allowed; }

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid var(--line-strong);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-radius: 12px;
    padding: 0.5rem;
    min-width: 220px;
    display: none;
    z-index: 100;
    margin-top: 0.5rem;
}

.nav-dropdown:hover .dropdown-menu { display: block; }

.dropdown-menu a {
    display: block;
    padding: 0.6rem 1rem;
    color: var(--ink-soft);
    font-size: 0.9rem;
    font-weight: 500;
    margin-left: 0;
    border-radius: 6px;
}

.dropdown-menu a:hover { background: var(--wash-brands); color: var(--accent); }

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

.search-trigger-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--wash-brands);
    border: 1px solid var(--line-strong);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    color: var(--muted);
    font-size: 0.85rem;
    cursor: pointer;
    font-family: var(--font-body);
    transition: border-color 0.15s ease;
}

.search-trigger-btn:hover { border-color: var(--accent); }

.search-trigger-btn kbd {
    background: #fff;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    padding: 0.15rem 0.4rem;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: var(--ink-soft);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* Header search form: the real, always-typable search box in the header,
   present on every page (not dependent on the homepage hero). */
.header-search-form {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--wash-brands);
    border: 1px solid var(--line-strong);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    transition: border-color 0.15s ease;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.header-search-form:focus-within { border-color: var(--accent); }

.header-search-icon { color: var(--muted); flex-shrink: 0; }

.header-search-input {
    border: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--ink);
    width: 180px;
    pointer-events: auto;
    cursor: text;
    -webkit-user-select: text;
    user-select: text;
}

.header-search-input:focus { outline: none; }

.header-search-input::placeholder { color: var(--muted); }

.header-search-form kbd {
    background: #fff;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    padding: 0.15rem 0.4rem;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: var(--ink-soft);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .header-search-input { width: 120px; }
    .header-search-form kbd { display: none; }
}

main.container { padding-top: 2.5rem; padding-bottom: 4rem; }

.alert { padding: 1rem 1.25rem; border-radius: 12px; margin-bottom: 2rem; font-size: 0.95rem; display: flex; align-items: center; gap: 0.75rem; }

.alert-success { background: var(--teal-soft); color: #065f46; border: 1px solid #a7f3d0; }

/* ---------- Hero ---------- */

.hero {
    position: relative;
    overflow: hidden;
    padding: 5rem 3rem;
    margin: 0 0 3rem;
    border-radius: 24px;
    color: #fff;
    background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
    box-shadow: 0 20px 40px -15px rgba(79, 70, 229, 0.3);
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.35rem 1rem;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 0 0 1rem;
    line-height: 1.15;
    max-width: 16ch;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 560px;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-search {
    display: flex;
    max-width: 500px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    position: relative;
    z-index: 5;
}

.hero-search input {
    flex: 1;
    padding: 1rem 1.25rem;
    border: none;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--ink);
    background: transparent;
    pointer-events: auto;
    -webkit-user-select: text;
    user-select: text;
    cursor: text;
    position: relative;
    z-index: 6;
}

.hero-search input:focus { outline: none; }

.hero-search button {
    padding: 1rem 1.75rem;
    background: var(--secondary);
    color: #fff;
    border: none;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.hero-search button:hover { background: var(--secondary-dark); }

.hero-tags {
    margin-top: 1.25rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.hero-tags a {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.2rem 0.75rem;
    border-radius: 6px;
    font-size: 0.82rem;
    backdrop-filter: blur(4px);
}

.hero-tags a:hover { background: rgba(255, 255, 255, 0.3); text-decoration: none; }

/* ---------- Sections & Modern Flow ---------- */

section { margin: 3.5rem 0; }

section h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1.5rem;
}

.section-header-row h2 { margin-bottom: 0; }

.section-desc { color: var(--muted); font-size: 0.95rem; margin: 0; }

.section-meta { color: var(--muted); font-size: 0.9rem; }

.view-all-link { font-weight: 600; font-size: 0.95rem; color: var(--accent); white-space: nowrap; }

.brand-strip {
    background: var(--wash-brands);
    border: 1px solid var(--line-strong);
    border-radius: 20px;
    padding: 2rem;
}

.brand-list { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.brand-pill {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 99px;
    padding: 0.5rem 1.1rem 0.5rem 0.85rem;
    color: var(--ink-soft);
    font-size: 0.92rem;
    font-weight: 500;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    transition: all 0.2s ease;
}

.brand-pill::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 0.6rem;
    background: var(--accent);
}

.brand-pill:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px rgba(79, 70, 229, 0.2);
    text-decoration: none;
}

/* ---------- Value Proposition Grid ---------- */

.value-prop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.75rem;
    margin: 3rem 0;
}

.prop-card {
    background: #fff;
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.prop-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
}

.prop-icon { font-size: 2rem; margin-bottom: 1rem; }

.prop-card h3 { font-family: var(--font-display); font-size: 1.2rem; margin: 0 0 0.75rem; color: var(--ink); }

.prop-card p { color: var(--ink-soft); font-size: 0.95rem; margin: 0; line-height: 1.6; }

/* ---------- Product Grid / Cards ---------- */

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.75rem; }

.product-card {
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    padding: 1.25rem;
    position: relative;
    background: #fff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    transition: all 0.2s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 20px 25px -5px rgba(79, 70, 229, 0.1);
}

.product-card a { color: var(--ink); }

.product-card-thumb { height: 150px; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; border-radius: 10px; overflow: hidden; background: var(--wash-brands); }

.product-card-thumb img { max-height: 100%; max-width: 100%; object-fit: contain; }

.thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.product-card h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; margin: 0 0 0.5rem; }

.product-card .price { font-family: var(--font-mono); font-weight: 600; color: var(--secondary-dark); margin: 0; font-size: 1.05rem; }

.product-card .rating { color: var(--gold); font-size: 0.85rem; margin: 0.4rem 0 0; font-weight: 600; }

/* ---------- Professional Footer ---------- */

.site-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 5rem 0 2.5rem;
    margin-top: 5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-brand-col .footer-logo {
    color: #fff;
    font-size: 1.75rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.footer-tagline {
    font-size: 0.95rem;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 340px;
}

.social-links { display: flex; gap: 1.25rem; }

.social-links a { color: #fff; font-size: 0.9rem; font-weight: 600; }

.footer-col h4 {
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.05rem;
    margin-top: 0;
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
}

.footer-col ul { list-style: none; padding: 0; margin: 0; }

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

.footer-col ul li a, .footer-col ul li span { color: #94a3b8; font-size: 0.92rem; transition: color 0.15s ease; }

.footer-col ul li a:hover { color: #fff; text-decoration: none; }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.footer-legal { display: flex; gap: 2rem; }

.footer-legal a { color: #94a3b8; }

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

@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
    .hero { padding: 4rem 2rem; }
    .hero h1 { font-size: 2.5rem; }
}

@media (max-width: 640px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 1.25rem; text-align: center; }
    .main-nav { display: none; }
    .hero h1 { font-size: 2.1rem; }
    .hero-search { flex-direction: column; background: transparent; box-shadow: none; }
    .hero-search input { background: #fff; border-radius: 10px; margin-bottom: 0.5rem; }
    .hero-search button { border-radius: 10px; width: 100%; }
}

/* ==========================================================================
   Header interaction and comparison page
   ========================================================================== */

.site-header,
.header-actions,
.search-trigger-btn {
    pointer-events: auto;
}

.header-actions,
.search-trigger-btn {
    position: relative;
    z-index: 10;
}

.search-trigger-btn:hover {
    border-color: var(--accent);
    color: var(--ink);
}

h1 {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 4vw, 2.2rem);
    font-weight: 600;
    line-height: 1.2;
    color: var(--ink);
    margin: 0 0 1.5rem;
    letter-spacing: -0.02em;
}

/* ---------- Compare page: two-column layout (filters left, products right) ---------- */

.compare-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    align-items: start;
    gap: 2rem;
}

.compare-filters {
    position: sticky;
    top: calc(var(--compare-sticky-top, 73px) + 16px);
    background: #fff;
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    padding: 1.5rem;
    align-self: start;
}

.compare-filters h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    margin: 0 0 1.25rem;
    color: var(--ink);
}

.compare-filter-group { margin-bottom: 1.5rem; }

.compare-filter-group:last-child { margin-bottom: 0; }

.compare-filter-group .filter-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
    margin-bottom: 0.75rem;
}

.compare-filter-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--ink-soft);
    margin-bottom: 0.6rem;
    cursor: pointer;
}

.compare-filter-group label:last-child { margin-bottom: 0; }

.compare-filter-clear {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    cursor: pointer;
}

.compare-results {
    min-width: 0; /* allow the results column, including the scrollable table, to shrink properly inside the grid */
}

.compare-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 2rem;
}

.compare-empty-state {
    text-align: center;
    background: var(--wash-brands);
    border: 1px solid var(--line-strong);
    border-radius: 20px;
    padding: 4rem 2rem;
    margin: 2rem 0;
}

.compare-empty-state .empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.compare-empty-state h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin: 0 0 0.5rem;
}

.compare-empty-state p {
    color: var(--ink-soft);
    max-width: 400px;
    margin: 0 auto;
}

.compare-table-wrap {
    width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    background: #fff;
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
    margin-top: 1.5rem;
    -webkit-overflow-scrolling: touch;
}

.compare-table {
    width: 100%;
    min-width: 720px;
    border-collapse: separate;
    border-spacing: 0;
    text-align: left;
    font-size: 0.92rem;
}

.compare-table th,
.compare-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--line);
    border-right: 1px solid var(--line);
    vertical-align: top;
}

.compare-table th:last-child,
.compare-table td:last-child {
    border-right: 0;
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
    border-bottom: 0;
}

.compare-table thead th {
    position: sticky;
    top: var(--compare-sticky-top, 73px);
    z-index: 4;
    background: #fff;
    color: var(--ink);
    border-bottom: 2px solid var(--line-strong);
}

.compare-table thead th.spec-col-header {
    width: 220px;
    min-width: 180px;
    background: var(--wash-brands);
    font-family: var(--font-display);
    font-size: 1rem;
    vertical-align: middle;
    z-index: 5;
}

.compare-table thead th.product-col-header {
    min-width: 240px;
}

.compare-header-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
}

.compare-thumb {
    width: 100%;
    height: 90px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--wash-brands);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.25rem;
}

.compare-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.compare-brand {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    font-weight: 600;
}

.compare-model {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.3;
}

.compare-variant-label {
    display: block;
    font-size: 0.8rem;
    color: var(--ink-soft);
    font-weight: 500;
}

.compare-price-tag {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 600;
    color: var(--secondary-dark);
    margin-top: 0.25rem;
}

.compare-table tr.group-row td {
    background: var(--wash-brands);
    padding: 0.75rem 1.25rem;
    border-top: 1px solid var(--line-strong);
    border-bottom: 1px solid var(--line-strong);
}

.group-title {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.compare-table tbody th.row-label,
.compare-table tbody th:not([class]) {
    width: 220px;
    min-width: 180px;
    background: #fafafc;
    font-weight: 600;
    color: var(--ink-soft);
    font-size: 0.88rem;
}

.compare-table tbody td.row-value {
    color: var(--ink);
    font-size: 0.9rem;
}

.compare-table tbody tr:not(.group-row):hover th,
.compare-table tbody tr:not(.group-row):hover td {
    background: var(--wash-brands);
}

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

    .compare-filters {
        position: static;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 768px) {
    .compare-page-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .compare-table-wrap {
        border-radius: 12px;
    }

    .compare-table th,
    .compare-table td {
        padding: 0.8rem 1rem;
    }

    .compare-table thead th {
        top: var(--compare-sticky-top-mobile, 65px);
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================================================
   Search page (filters + results)
   ========================================================================== */

.search-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    align-items: start;
    gap: 2rem;
}

.filters {
    background: #fff;
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    padding: 1.5rem;
    position: sticky;
    top: calc(var(--compare-sticky-top, 73px) + 16px);
}

.filters form { display: flex; flex-direction: column; gap: 1.5rem; }

.filter-group { display: flex; flex-direction: column; gap: 0.5rem; }

.filter-group > label:first-child {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
    margin-bottom: 0.25rem;
}

.filter-group input[type="text"],
.filter-group input[type="number"] {
    width: 100%;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--ink);
    background: var(--wash-brands);
}

.filter-group input[type="text"]:focus,
.filter-group input[type="number"]:focus {
    outline: none;
    border-color: var(--accent);
    background: #fff;
}

.filter-group label.checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--ink-soft);
    text-transform: none;
    letter-spacing: normal;
    cursor: pointer;
}

.filters button[type="submit"] {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    transition: background-color 0.15s ease;
    width: 100%;
}

.filters button[type="submit"]:hover { background: var(--accent-dark); }

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.results-header h1 { margin: 0; }

.sort-form label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--ink-soft);
}

.sort-form select {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: #fff;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--ink);
    cursor: pointer;
}

.compare-check {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: var(--ink-soft);
    font-weight: 500;
    margin-bottom: 0.75rem;
    cursor: pointer;
}

.compare-submit {
    margin-top: 2rem;
    background: var(--secondary);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 0.85rem 1.75rem;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.compare-submit:hover { background: var(--secondary-dark); }

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

@media (max-width: 640px) {
    .results-header { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   Product view page
   ========================================================================== */

.product-header {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 3rem;
    margin: 2.5rem 0 3.5rem;
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.product-gallery img {
    width: 100%;
    border-radius: 16px;
    border: 1px solid var(--line-strong);
    background: var(--wash-brands);
    object-fit: contain;
}

.thumb-placeholder.large {
    height: 360px;
    border-radius: 16px;
    background: var(--wash-brands);
    border: 1px solid var(--line-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-family: var(--font-display);
    font-size: 1.1rem;
}

.product-summary h1 { margin-bottom: 0.25rem; }

.release-year {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 0 0 0.75rem;
}

.product-summary .rating {
    color: var(--gold);
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0 0 1.5rem;
}

.product-summary h2 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin: 0 0 1rem;
}

.variant-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.variant-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1.1rem;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    color: var(--ink);
    font-size: 0.92rem;
    font-weight: 500;
    background: #fff;
    transition: all 0.15s ease;
}

.variant-option:hover { border-color: var(--accent); text-decoration: none; }

.variant-option.active {
    border-color: var(--accent);
    background: var(--accent-soft);
    box-shadow: 0 0 0 1px var(--accent) inset;
}

.availability {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.2rem 0.6rem;
    border-radius: 99px;
    white-space: nowrap;
}

.availability.in_stock { background: var(--teal-soft); color: #047857; }
.availability.out_of_stock { background: #fef2f2; color: var(--danger); }
.availability.preorder { background: var(--secondary-soft); color: var(--secondary-dark); }
.availability.discontinued { background: var(--line); color: var(--muted); }

.spec-group { margin-bottom: 2rem; }

.spec-group h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin: 0 0 0.75rem;
    color: var(--ink);
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    overflow: hidden;
}

.spec-table tr:not(:last-child) th,
.spec-table tr:not(:last-child) td {
    border-bottom: 1px solid var(--line);
}

.spec-table th {
    text-align: left;
    width: 260px;
    padding: 0.75rem 1.25rem;
    background: var(--wash-brands);
    color: var(--ink-soft);
    font-weight: 600;
    font-size: 0.88rem;
}

.spec-table td {
    padding: 0.75rem 1.25rem;
    color: var(--ink);
    font-size: 0.9rem;
}

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

/* ==========================================================================
   Reviews
   ========================================================================== */

.review-form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    background: #fff;
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    padding: 1.75rem;
    margin-top: 1.5rem;
    max-width: 560px;
}

.review-form input[type="text"],
.review-form select,
.review-form textarea {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: var(--ink);
    background: var(--wash-brands);
}

.review-form textarea { resize: vertical; min-height: 90px; }

.review-form input:focus,
.review-form select:focus,
.review-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: #fff;
}

.review-form button[type="submit"] {
    align-self: flex-start;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.review-form button[type="submit"]:hover { background: var(--accent-dark); }

.review-form .error {
    color: var(--danger);
    font-size: 0.82rem;
    margin: -0.4rem 0 0;
}

/* Spam honeypot: hidden from real users/screen readers, but still present
   in the DOM for bots that auto-fill every field. Never use display:none
   for honeypots -- some spam bots skip hidden fields, defeating the point. */
.honeypot {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.review {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--line);
}

.review:last-of-type { border-bottom: 0; }

.review-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.4rem;
}

.review-header strong { color: var(--ink); }

.review-header .rating { color: var(--gold); font-weight: 600; font-size: 0.88rem; }

.review h4 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    margin: 0 0 0.5rem;
}

.review p { color: var(--ink-soft); font-size: 0.92rem; margin: 0 0 0.5rem; }

.review .pros, .review .cons { font-size: 0.88rem; }
.review .pros strong { color: #047857; }
.review .cons strong { color: var(--danger); }

/* ==========================================================================
   Pagination (Laravel paginator output)
   ========================================================================== */

nav[role="navigation"] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

nav[role="navigation"] a,
nav[role="navigation"] span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.6rem;
    border-radius: 8px;
    font-size: 0.88rem;
    color: var(--ink-soft);
    border: 1px solid transparent;
}

nav[role="navigation"] a:hover {
    background: var(--wash-brands);
    border-color: var(--line-strong);
    text-decoration: none;
}

nav[role="navigation"] span[aria-current="page"] {
    background: var(--accent);
    color: #fff;
    font-weight: 600;
}

nav[role="navigation"] span:not([aria-current="page"]) {
    color: var(--muted);
    cursor: default;
}