/* ============================================
   Priskolla — Swedish Price Comparison
   Amazon-inspired light theme
   ============================================ */

/* Self-hosted Inter (variable woff2, latin subset, weights 100-900).
   Saves a render-blocking @import + DNS+TLS to fonts.googleapis.com and
   fonts.gstatic.com on cold cache. The single 48 KB file covers every
   weight the design uses (400-900) via the wght axis. */
@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-latin.woff2') format('woff2-variations'),
       url('/fonts/inter-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --bg-main: #EAEDED;
    --bg-card: #FFFFFF;
    --bg-card-hover: #FAFAFA;
    --bg-elevated: #F5F5F5;
    --text-main: #0F1111;
    --text-secondary: #565959;
    --text-muted: #888C8C;
    --accent: #007185;
    --accent-hover: #C7511F;
    --accent-glow: rgba(0, 113, 133, 0.1);
    --accent-subtle: rgba(0, 113, 133, 0.05);
    --price: #B12704;
    --price-glow: rgba(177, 39, 4, 0.08);
    --border: #D5D9D9;
    --border-hover: #007185;
    --buy-btn: #FFD814;
    --buy-btn-hover: #F7CA00;
    --buy-btn-text: #0F1111;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.12);
    --radius: 8px;
    --radius-sm: 4px;
    --radius-lg: 12px;
    --header-bg: #131921;
    --header-text: #FFFFFF;
    --star-color: #FFA41C;
    --deal-red: #CC0C39;
    --savings-green: #007600;
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ====== HEADER ====== */
.header {
    background: var(--header-bg);
    border-bottom: none;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    align-items: center;
    height: 64px;
    gap: 32px;
}

.logo {
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    text-decoration: none;
    color: #FFFFFF;
    flex-shrink: 0;
}
.logo:hover { color: #FFFFFF; text-decoration: none; }

/* ====== SEARCH ====== */
.search-wrapper {
    position: relative;
    flex: 0 1 320px;
    min-width: 180px;
}

.search-input {
    width: 100%;
    padding: 8px 40px 8px 14px;
    border: 2px solid #FF9900;
    border-radius: 4px;
    background: #FFFFFF;
    color: #0F1111;
    font-size: 0.85rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

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

.search-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-glow);
}

.search-button {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    transition: color 0.15s;
}

.search-button:hover {
    color: var(--accent);
}

.search-results {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: max(100%, 380px);
    background: var(--bg-card);
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    z-index: 200;
    max-height: 420px;
    overflow-y: auto;
}

.search-results.active {
    display: block;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    text-decoration: none;
    color: var(--text-main);
    transition: background 0.1s;
    border-bottom: 1px solid var(--border);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: var(--bg-elevated);
}

.search-result-item.kb-active {
    background: var(--bg-elevated);
    outline: 2px solid var(--accent);
    outline-offset: -2px;
}

.search-result-image {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 6px;
    background: #fff;
    padding: 3px;
    flex-shrink: 0;
}

.search-result-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.search-result-name {
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.3;
}

.search-result-price {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--price);
}

.search-no-results,
.search-loading {
    padding: 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex-wrap: nowrap;
}

.nav-links::-webkit-scrollbar { display: none; }

.nav-links li { flex-shrink: 0; }
.nav-links li.nav-parent { position: relative; }

/* Dropdown subcategory menu */
.nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--header-bg);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    box-shadow: var(--shadow-md);
    list-style: none;
    margin: 0;
    padding: 6px 0;
    z-index: 100;
}

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

.nav-dropdown li { flex-shrink: unset; }

.nav-dropdown a {
    padding: 8px 16px;
    font-size: 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-dropdown a::after { display: none; }

.nav-count {
    font-size: 0.7rem;
    opacity: 0.5;
    margin-left: 8px;
}

.nav-links a {
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.82rem;
    padding: 6px 12px;
    border-radius: 4px;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: block;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 12px;
    right: 12px;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
    transform: scaleX(0);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

.nav-links a.active {
    color: #FF9900;
    background: rgba(255, 153, 0, 0.1);
}

.nav-links a.active::after {
    transform: scaleX(1);
    background: #FF9900;
}

/* ====== HERO ====== */
.hero {
    padding: 3rem 0 1.5rem;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, #FFFFFF 0%, var(--bg-main) 100%);
    pointer-events: none;
    z-index: -1;
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin: 0 0 1rem;
    color: var(--text-main);
}

.hero h1 span {
    color: var(--accent-hover);
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto 1rem;
    line-height: 1.7;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(to bottom, #FFD814, #F7CA00);
    color: #0F1111;
    font-weight: 800;
    font-size: 1rem;
    padding: 14px 32px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid #FCD200;
    letter-spacing: 0.01em;
}

.hero-cta:hover {
    background: linear-gradient(to bottom, #F7CA00, #E8B800);
    color: #0F1111;
    text-decoration: none;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
}

.hero-stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--header-bg);
}

.hero-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ====== GRIDS ====== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding-bottom: 2rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    padding-bottom: 4rem;
}

/* ====== CATEGORY CARDS ====== */
.category-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), #a78bfa);
    opacity: 0;
    transition: opacity 0.2s;
}

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

.category-card:hover::before { opacity: 1; }

.category-card span {
    font-size: 2rem;
    line-height: 1;
}

.category-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-main);
}

.category-card h3 a {
    color: inherit;
    text-decoration: none;
}

.category-card h3 a:hover {
    color: var(--accent);
}

.category-card p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 0;
}

/* Subcategory links inside index category cards */
.subcat-list {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

.subcat-link {
    color: var(--accent);
    text-decoration: none;
    white-space: nowrap;
}

.subcat-link:hover {
    text-decoration: underline;
}

/* Parent category page */
.parent-cat-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0 0 1.5rem;
}

.subcat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding-bottom: 3rem;
}

.subcat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

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

.subcat-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-main);
}

.subcat-card p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 0;
}

.subcat-preview {
    display: flex;
    gap: 8px;
    overflow: hidden;
}

.subcat-preview img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    background: var(--bg-elevated);
}

/* ====== PRODUCT CARDS ====== */
.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease, border-color 0.2s ease, background 0.2s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

/* Savings badge on product cards */
.savings-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--deal-red);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    z-index: 2;
    letter-spacing: 0.01em;
}

.product-image-container {
    aspect-ratio: 1;
    max-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    background: #fff;
    border-radius: var(--radius-sm);
    padding: 12px;
}

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

.product-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-info h3 {
    font-size: 0.9rem;
    margin: 0 0 8px 0;
    font-weight: 600;
    line-height: 1.4;
    height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: var(--text-main);
}

.product-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--price);
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

/* ====== RATINGS ====== */
.rating {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
    margin-bottom: 6px;
    font-size: 0.82rem;
}

/* Two-row SVG star display: empty row always rendered, filled row overlaid
   and clipped by --fill (0-100%) for precise fractional rendering. No half-star
   hack, no font-dependent glyphs, works crisply at any size. */
.star-wrap {
    position: relative;
    display: inline-block;
    line-height: 0;
    vertical-align: middle;
}

.stars-empty,
.stars-filled {
    display: inline-flex;
    gap: 1px;
}

.stars-empty svg,
.stars-filled svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    display: block;
}

.stars-empty svg { fill: var(--border); }

.stars-filled {
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--fill, 0%);
    overflow: hidden;
    pointer-events: none;
}

.stars-filled svg { fill: var(--star-color); }

.rating-num {
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.82rem;
    font-variant-numeric: tabular-nums;
}

.review-count {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.rating-attribution {
    color: var(--text-muted);
    font-size: 0.72rem;
    margin-left: 0.35rem;
    padding-left: 0.5rem;
    border-left: 1px solid var(--border);
    white-space: nowrap;
}

/* Prominent variant on product detail pages — larger stars, more generous spacing */
.product-detail .rating {
    gap: 0.5rem;
    margin: 0.5rem 0 1rem;
}

.product-detail .stars-empty svg,
.product-detail .stars-filled svg {
    width: 20px;
    height: 20px;
}

.product-detail .rating-num { font-size: 1rem; }
.product-detail .review-count { font-size: 0.88rem; }
.product-detail .rating-attribution {
    font-size: 0.82rem;
    margin-left: 0.5rem;
    padding-left: 0.6rem;
}

.vendor-count {
    font-size: 0.78rem;
    color: var(--accent);
    margin-top: auto;
    padding-top: 4px;
    font-weight: 600;
}

/* ====== SPEC BADGES ====== */
.spec-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 6px;
}

.spec-badge {
    display: inline-block;
    background: var(--accent-subtle);
    color: var(--accent);
    font-size: 0.68rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

/* ====== TAG CHIPS ====== */
.tag-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}
.tag-chip {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-main);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.15s;
}
.tag-chip:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.tag-chip.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    font-weight: 600;
    box-shadow: 0 1px 4px var(--accent-glow);
}
.tag-chip.active:hover {
    color: #fff;
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

/* ====== FILTER BAR ====== */
.filter-bar {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 20px;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    margin-bottom: 12px;
}

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

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-group label {
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.filter-select {
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.82rem;
    background: var(--bg-elevated);
    color: var(--text-main);
    font-family: inherit;
    min-width: 120px;
    cursor: pointer;
    transition: border-color 0.15s;
}

.filter-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-glow);
}

.price-input {
    width: 85px;
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.82rem;
    background: var(--bg-elevated);
    color: var(--text-main);
    font-family: inherit;
}

.price-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-glow);
}

.price-dash { color: var(--text-muted); }

.filter-apply {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 6px 16px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
}

.filter-apply:hover {
    background: var(--accent-hover);
    box-shadow: 0 0 12px var(--accent-glow);
}

/* .sort-select replaced by .filter-select */

.filter-count {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ====== BREADCRUMB ====== */
.breadcrumb {
    padding: 1.25rem 0 0;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.15s;
}

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

/* ====== PRODUCT DETAIL PAGE ====== */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    padding: 2rem 0 4rem;
}

.product-left {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.main-img {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 24px;
}

.details {
    align-self: start;
}

.details h1 {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.3;
    margin: 0 0 12px;
    color: var(--text-main);
}

/* Spec Table */
.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.88rem;
}

.spec-table tr {
    border-bottom: 1px solid var(--border);
}

.spec-table td {
    padding: 10px 12px;
}

.spec-label {
    font-weight: 600;
    color: var(--text-secondary);
    width: 40%;
}

@media (max-width: 520px) {
    .spec-table tr { display: block; padding: 4px 0; }
    .spec-table td { display: block; width: 100%; padding: 2px 0; }
    .spec-label { width: auto; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.03em; }
}

/* ====== DECISION CONTENT ====== */

/* Use case tags */
.use-cases-section {
    margin: 1.5rem 0;
}

.use-cases-section h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 0.6rem;
    color: var(--text-main);
}

.use-case-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.use-case-tag {
    background: var(--accent-subtle);
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 16px;
    border: 1px solid rgba(0, 113, 133, 0.15);
    white-space: nowrap;
}

/* Spec insights */
.spec-insights-section {
    margin: 1.5rem 0;
}

.spec-insights-section h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 0.6rem;
    color: var(--text-main);
}

.spec-insight {
    padding: 10px 14px;
    margin-bottom: 6px;
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.spec-insight-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 4px;
}

.spec-insight-name {
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--text-main);
}

.spec-insight-value {
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--accent);
    white-space: nowrap;
}

.spec-insight-meaning {
    margin: 0;
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Buy decision module */
.buy-decision {
    margin: 1.5rem 0;
    padding: 16px;
    background: var(--bg-elevated);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.buy-decision h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    color: var(--text-main);
}

.buy-decision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.buy-yes, .buy-no {
    font-size: 0.82rem;
    line-height: 1.6;
}

.buy-label {
    font-weight: 700;
    font-size: 0.82rem;
    margin-bottom: 4px;
}

.buy-yes .buy-label {
    color: var(--savings-green);
}

.buy-no .buy-label {
    color: var(--deal-red);
}

.buy-yes ul, .buy-no ul {
    margin: 0;
    padding-left: 18px;
    color: var(--text-secondary);
}

.buy-yes li, .buy-no li {
    margin-bottom: 4px;
}

/* Expert Reviews (Icecat/Testseek) */
.expert-reviews-section {
    margin: 1.5rem 0;
}

.expert-reviews-section h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    color: var(--text-main);
}

.avg-review-score {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.avg-score-num {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-main);
}

.avg-score-stars {
    color: #FFA41C;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.avg-score-count {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.expert-reviews-grid {
    display: grid;
    gap: 12px;
}

.expert-review-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.review-score {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.85rem;
    color: #fff;
    flex-shrink: 0;
}

.review-score-high { background: #067D62; }
.review-score-mid { background: #B78B00; }
.review-score-low { background: #B12704; }

.review-source {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
}

.review-source:hover {
    text-decoration: underline;
}

.review-summary {
    font-size: 0.82rem;
    line-height: 1.55;
    color: var(--text-secondary);
    margin: 0 0 8px;
}

.review-proscons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.review-pros, .review-cons {
    margin: 0;
    padding-left: 16px;
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

.review-pros li::marker { content: "+  "; color: var(--savings-green); font-weight: 700; }
.review-cons li::marker { content: "-  "; color: var(--deal-red); font-weight: 700; }

.review-pros li, .review-cons li {
    margin-bottom: 2px;
}

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

.spec-inner {
    margin: 0;
}

.spec-toggle {
    display: block;
    width: 100%;
    padding: 10px;
    margin-top: -1px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.spec-toggle:hover {
    background: var(--accent-subtle);
    color: var(--accent-hover);
}

.prices-heading {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 2rem 0 0.75rem;
    color: var(--text-main);
}

/* Homepage "Aktuella köpguider" row — internal-linking signal from / to guides */
.home-guides-section {
    margin: 2rem 0 2.5rem;
}
.home-guides-section > h2 {
    font-size: 1.2rem;
    margin: 0 0 1rem;
    color: var(--text-main);
}
.home-guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
}
.home-guide-card {
    display: block;
    padding: 1rem 1.1rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    transition: border-color 120ms ease, transform 120ms ease;
}
.home-guide-card:hover {
    border-color: var(--accent);
    transform: translateY(-1px);
}
.home-guides-footer {
    margin: 0.85rem 0 0;
    text-align: right;
    font-size: 0.9rem;
}
.home-guides-footer a {
    color: var(--accent);
    text-decoration: none;
}
.home-guides-footer a:hover {
    text-decoration: underline;
}

/* Guide backlinks: "Finns i köpguider: Bästa X · Bästa Y" */
.guide-chips-row {
    margin: 0.25rem 0 0.75rem;
    font-size: 0.9rem;
    color: var(--text-muted, #666);
    line-height: 1.8;
}
.guide-chips-label {
    margin-right: 0.35rem;
}
.guide-chip {
    display: inline-block;
    padding: 3px 10px;
    margin: 2px 4px 2px 0;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--bg-elevated);
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.85rem;
}
.guide-chip:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.guide-chip.brand-chip {
    font-weight: 600;
}

/* Server-rendered price summary — crawlers see the numbers without JS. */
.price-summary {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    margin: 1.25rem 0 0;
    color: var(--text-main);
    line-height: 1.5;
}
.price-summary p {
    margin: 0 0 0.35rem;
    font-size: 0.95rem;
}
.price-summary p:last-child {
    margin-bottom: 0;
    color: var(--text-muted, #666);
    font-size: 0.88rem;
}

/* Price List */
.price-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.price-row {
    background: var(--bg-elevated);
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 16px;
    transition: border-color 0.15s;
}
.price-row:first-child {
    border-color: var(--savings-green);
    background: rgba(0, 118, 0, 0.04);
    position: relative;
}

.price-row:first-child::before {
    content: 'Bäst pris';
    position: absolute;
    top: -9px;
    left: 14px;
    background: var(--savings-green);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 1px 8px;
    border-radius: 3px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.vendor-name {
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.92rem;
}

.price-val {
    font-weight: 800;
    color: var(--price);
    font-size: 1.15rem;
    letter-spacing: -0.02em;
    text-align: right;
    white-space: nowrap;
}

.price-row:first-child .price-val {
    font-size: 1.25rem;
}

.buy-button {
    background: linear-gradient(to bottom, #FFD814, #F7CA00);
    color: #0F1111;
    padding: 10px 28px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.15s ease;
    letter-spacing: 0.01em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #FCD200;
}

.buy-button:hover {
    background: linear-gradient(to bottom, #F7CA00, #E8B800);
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    color: #0F1111;
    text-decoration: none;
}

.buy-button::after {
    content: '\2192';
    font-size: 0.9rem;
    transition: transform 0.15s;
}

.buy-button:hover::after {
    transform: translateX(2px);
}

/* ====== STICKY BUY BAR ====== */
.sticky-buy-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--header-bg);
    border-top: 2px solid var(--accent);
    padding: 12px 0;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.15);
}

.sticky-buy-bar.visible {
    transform: translateY(0);
}

body:has(.sticky-buy-bar.visible) {
    padding-bottom: 72px;
}

.price-history-unavailable {
    color: var(--text-secondary);
    font-size: 0.88rem;
    padding: 12px 14px;
    background: var(--bg-elevated);
    border-radius: 8px;
    margin: 0;
}

.sticky-buy-bar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.sticky-bar-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.sticky-bar-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    background: #fff;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.sticky-bar-name {
    color: var(--header-text);
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.sticky-bar-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.sticky-bar-price {
    color: #FFA41C;
    font-size: 1.2rem;
    font-weight: 800;
    white-space: nowrap;
    letter-spacing: -0.02em;
}

.sticky-bar-vendor {
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 500;
}

.sticky-bar-btn {
    background: linear-gradient(to bottom, #FFD814, #F7CA00);
    color: #0F1111;
    padding: 10px 28px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    border: 1px solid #FCD200;
    transition: all 0.15s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sticky-bar-btn:hover {
    background: linear-gradient(to bottom, #F7CA00, #E8B800);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    color: #0F1111;
    text-decoration: none;
}

.sticky-bar-btn::after {
    content: '\2192';
    font-size: 0.9rem;
}

.sticky-verdict {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 3px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}

.sticky-verdict.good {
    background: var(--savings-green);
    color: #fff;
}

.sticky-verdict.avg {
    background: #666;
    color: #fff;
}

.sticky-verdict.high {
    background: var(--deal-red);
    color: #fff;
}

/* ====== FOOTER ====== */
.footer {
    border-top: 1px solid var(--border);
    padding: 2.5rem 0;
    background: var(--header-bg);
    text-align: center;
    color: #DDD;
    font-size: 0.85rem;
    margin-top: 2rem;
}
.footer a { color: #DDD; }
.footer a:hover { color: #FF9900; }
.footer-links {
    margin-top: 0.5rem;
}
.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-links a:hover {
    color: var(--accent);
}

/* ====== LEGAL PAGES ====== */
.legal-page {
    max-width: 720px;
    margin: 2rem auto 3rem;
    color: var(--text-secondary);
    line-height: 1.75;
}
.legal-page h1 {
    color: var(--text-main);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}
.legal-page h2 {
    color: var(--text-main);
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}
.legal-page p, .legal-page li {
    font-size: 0.95rem;
}
.legal-page ul {
    padding-left: 1.5rem;
    margin: 0.5rem 0;
}
.legal-page li {
    margin-bottom: 0.3rem;
}
.legal-updated {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

/* ====== VAT & AFFILIATE LABELS ====== */
.vat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 400;
}
.affiliate-notice {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
    font-style: italic;
}
.footer-affiliate {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    opacity: 0.6;
}
.footer-affiliate a {
    color: var(--text-muted);
    text-decoration: none;
    opacity: 0.9;
}
.footer-affiliate a:hover {
    text-decoration: underline;
}
.amazon-disclosure {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 0.5rem;
}
.ad-label {
    font-size: 0.6rem;
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: 3px;
    padding: 1px 4px;
    vertical-align: middle;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ====== GUIDE PAGES ====== */
.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}
.guide-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    text-decoration: none;
    transition: border-color 0.2s, transform 0.2s;
}
.guide-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}
.guide-card h3 {
    color: var(--text-main);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}
.guide-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}
.guide-intro {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 700px;
    margin-bottom: 1rem;
}
.guide-summary {
    background: var(--accent-subtle);
    border-left: 4px solid var(--accent);
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0 2rem;
    border-radius: 0 8px 8px 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-main);
}
.guide-article {
    max-width: 720px;
    margin: 1.5rem auto 3rem;
    color: var(--text-secondary);
    line-height: 1.8;
}
.guide-article h1 {
    color: var(--text-main);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}
.guide-article h2 {
    color: var(--text-main);
    font-size: 1.3rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}
.guide-article h3 {
    color: var(--accent);
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.3rem;
}
.guide-article p {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}
.guide-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}
.guide-meta a {
    color: var(--accent);
    text-decoration: none;
}
.guide-disclaimer {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}
.guide-disclaimer a {
    color: var(--accent);
    text-decoration: none;
}
.guide-compare-table-wrap {
    overflow-x: auto;
    margin: 1.5rem 0;
    border: 1px solid var(--border);
    border-radius: 8px;
}
.guide-compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.guide-compare-table th,
.guide-compare-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}
.guide-compare-table thead th {
    background: var(--bg-alt, #f7f7f7);
    font-weight: 600;
    white-space: nowrap;
}
.guide-compare-table tbody th a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}
.guide-table-price {
    display: inline-block;
    margin-top: 0.25rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* ====== GUIDE FAQ (<details>-based accordion, emits FAQPage JSON-LD) ====== */
.guide-faq {
    margin: 2.5rem 0 1.5rem;
    padding: 1.5rem 1.75rem;
    background: var(--accent-subtle, rgba(0, 113, 133, 0.04));
    border-radius: 12px;
    border: 1px solid var(--border);
}

.guide-faq h2 {
    margin: 0 0 1rem;
    font-size: 1.35rem;
    color: var(--text-main);
}

.faq-item {
    border-top: 1px solid var(--border);
    padding: 0;
}

.faq-item:first-of-type {
    border-top: none;
}

.faq-item > summary {
    list-style: none;
    padding: 1rem 2rem 1rem 0;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-main);
    position: relative;
    transition: color 0.15s;
}

.faq-item > summary::-webkit-details-marker { display: none; }

.faq-item > summary::after {
    content: '';
    position: absolute;
    right: 0.25rem;
    top: 50%;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: translateY(-75%) rotate(45deg);
    transition: transform 0.2s ease, border-color 0.15s;
}

.faq-item[open] > summary::after {
    transform: translateY(-25%) rotate(-135deg);
    border-color: var(--accent);
}

.faq-item > summary:hover {
    color: var(--accent);
}

.faq-item > summary:hover::after {
    border-color: var(--accent);
}

.faq-item > summary:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}

.faq-answer {
    padding: 0 2rem 1rem 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

.faq-answer p {
    margin: 0;
}

/* ====== CATEGORY PAGE H1 ====== */
h1[style*="margin-top"] {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

/* ====== RESPONSIVE ====== */
@media (max-width: 1024px) {
    .product-detail {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .details {
        position: static;
    }

    .main-img {
        max-height: 350px;
    }
}

@media (max-width: 768px) {
    .header .container {
        gap: 10px;
    }

    .search-wrapper {
        flex: 0 1 200px;
        min-width: 120px;
    }

    .search-input {
        font-size: 0.8rem;
        padding: 6px 36px 6px 10px;
    }

    .nav-links {
        gap: 2px;
        mask-image: linear-gradient(90deg, #000 90%, transparent);
        -webkit-mask-image: linear-gradient(90deg, #000 90%, transparent);
        padding-right: 24px;
    }

    .nav-links a {
        font-size: 0.78rem;
        padding: 5px 8px;
    }

    .hero {
        padding: 3rem 0 2rem;
    }

    .hero h1 {
        font-size: 1.9rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .category-card {
        padding: 16px;
    }

    .category-card span {
        font-size: 1.5rem;
    }

    .grid {
        grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
        gap: 10px;
    }

    .product-card {
        padding: 12px;
    }

    .product-image-container {
        height: 150px;
        padding: 8px;
    }

    .product-info h3 {
        font-size: 0.82rem;
    }

    .product-price {
        font-size: 1.1rem;
    }

    .price-row {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .buy-button {
        grid-column: 1 / -1;
        text-align: center;
        padding: 10px;
    }

    .filter-bar {
        padding: 12px 14px;
    }

    .filter-select {
        width: 100%;
        min-width: unset;
    }

    .container {
        padding: 0 16px;
    }

    .sticky-bar-name {
        font-size: 0.78rem;
        max-width: 140px;
    }

    .sticky-bar-price {
        font-size: 1rem;
    }

    .sticky-bar-btn {
        padding: 8px 18px;
        font-size: 0.8rem;
    }

    .sticky-bar-vendor {
        display: none;
    }

    .buy-decision-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .product-image-container {
        height: 120px;
    }

    .details h1 {
        font-size: 1.25rem;
    }

    .price-row {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 6px;
    }

    .price-row:first-child::before {
        left: 50%;
        transform: translateX(-50%);
    }

    .price-val {
        text-align: center;
    }

    .buy-button {
        grid-column: 1;
        justify-self: center;
    }

    .sticky-bar-img {
        display: none;
    }

    .sticky-bar-name {
        font-size: 0.75rem;
        max-width: 100px;
    }

    .sticky-bar-price {
        font-size: 0.95rem;
    }

    .sticky-bar-btn {
        padding: 8px 14px;
        font-size: 0.78rem;
    }
}

/* ====== SCROLLBAR ====== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-elevated);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ====== DEALS SECTION ====== */
.deals-section {
    padding: 2rem 0 3rem;
}
.deals-section h2 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}
.deals-subtitle {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}
.deals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}
.deal-card {
    position: relative;
}
.deal-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #ef4444;
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 4px 10px;
    border-radius: 6px;
    z-index: 2;
}
.previous-price {
    color: var(--text-muted);
    text-decoration: line-through;
    font-size: 0.85rem;
    margin-top: 2px;
}

/* ====== PRICE HISTORY CHART ====== */
.price-history-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}
.price-history-section h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.price-chart {
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    padding: 16px;
    border: 1px solid var(--border);
}
.price-chart-svg {
    width: 100%;
    height: auto;
}

/* ====== RELATED PRODUCTS ====== */
.related-products {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}
.related-products h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.alt-section {
    margin-bottom: 1rem;
}

.alt-heading {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    padding-left: 22px;
    position: relative;
}

.alt-heading::before {
    position: absolute;
    left: 0;
    font-size: 0.85rem;
}

.alt-cheaper::before {
    content: '\25BC';
    color: var(--savings-green);
}

.alt-similar::before {
    content: '\25C6';
    color: var(--accent);
}

.alt-better::before {
    content: '\25B2';
    color: var(--price);
}

/* ====== PRICE HISTORY INSIGHTS ====== */
.price-insights {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 1rem;
}
.insight-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
}
.insight-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 4px;
}
.insight-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
}
.insight-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 2px;
}
/* Price inflation warning */
.price-inflation-note {
    margin-top: 1rem;
    padding: 10px 14px;
    background: rgba(255, 140, 0, 0.08);
    border-left: 3px solid #e8a020;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.price-verdict {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
}
.price-verdict.good { background: rgba(52, 211, 153, 0.15); color: #34d399; }
.price-verdict.avg { background: rgba(251, 191, 36, 0.15); color: #fbbf24; }
.price-verdict.high { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.trend-up { color: #ef4444; }
.trend-down { color: #34d399; }
.trend-stable { color: var(--text-muted); }

/* ====== BRAND PAGES ====== */
.brand-index-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    padding-bottom: 4rem;
}
.brand-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.brand-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.brand-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}
.brand-card p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 0;
}
.brand-category-section {
    margin-bottom: 2rem;
}
.brand-category-section h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}
.brand-stats {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    font-size: 0.88rem;
    color: var(--text-secondary);
}
.brand-stats strong {
    color: var(--accent);
}

/* ====== COMPARISON PAGES ====== */
.compare-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
    align-items: start;
    margin: 2rem 0;
}
.compare-product {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
}
.compare-img {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 16px;
}
.compare-img img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}
.compare-product h2 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.4;
}
.compare-product h2 a { color: var(--text-main); }
.compare-product h2 a:hover { color: var(--accent); }
.compare-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--price);
    margin: 8px 0 4px;
}
.compare-meta {
    font-size: 0.82rem;
    color: var(--text-muted);
}
.compare-vs {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--accent);
    align-self: center;
    padding: 0 8px;
}
.compare-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}
.compare-table th {
    background: var(--bg-elevated);
    padding: 12px 16px;
    font-weight: 700;
    font-size: 0.88rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.compare-table td {
    padding: 10px 16px;
    font-size: 0.88rem;
    border-bottom: 1px solid var(--border);
}
.compare-table .spec-label {
    font-weight: 600;
    color: var(--text-secondary);
    width: 30%;
}
.compare-table .winner { color: var(--price); font-weight: 600; }
.compare-verdict {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin: 2rem 0 4rem;
}
.compare-verdict h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--text-main);
}
.compare-verdict p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}
.compare-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 2rem 0 0.5rem;
    color: var(--text-main);
}
.compare-index-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 12px;
    padding-bottom: 4rem;
}
.compare-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.compare-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-1px);
}
.compare-card-names {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.4;
}
.compare-card-vs {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.82rem;
    flex-shrink: 0;
}
.compare-card-cat {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

@media (max-width: 768px) {
    .compare-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .compare-vs {
        text-align: center;
        padding: 8px 0;
    }
    .compare-index-grid {
        grid-template-columns: 1fr;
    }
}

/* ====== PRODUCT DESCRIPTION ====== */
.product-description {
    margin: 1rem 0 1.5rem;
}

.product-description h2 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    color: var(--text-main);
}

.description-content {
    font-size: 0.92rem;
    line-height: 1.75;
    color: var(--text-secondary);
}

.description-content p {
    margin: 0 0 0.75rem;
}

.description-content p:last-child {
    margin-bottom: 0;
}

/* ====== FOCUS STYLES ====== */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.buy-button:focus-visible,
.sticky-bar-btn:focus-visible {
    outline-color: var(--text-main);
    outline-offset: 2px;
}

.product-card:focus-visible,
.category-card:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
    border-color: var(--accent);
}

.search-input:focus-visible {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-glow);
}

/* ====== EMPTY STATE ====== */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ====== SELECTION ====== */
::selection {
    background: var(--accent);
    color: #fff;
}

/* ====== PRODUCT WIZARD ====== */
.wizard-container { max-width: 800px; margin: 0 auto; padding: 2rem 1rem; }
.wizard-progress { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 2rem; }
.wizard-progress-step { flex: 1; height: 4px; background: #e0e0e0; border-radius: 2px; transition: background 0.3s; }
.wizard-progress-step.done { background: var(--accent, #f59e0b); }
.wizard-progress-step.active { background: var(--accent, #f59e0b); opacity: 0.5; }
.wizard-progress-label { font-size: 0.85rem; color: #666; margin-bottom: 0.25rem; }
.wizard-question { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; color: #1a1a1a; }
.wizard-subtitle { color: #666; margin-bottom: 1.5rem; font-size: 0.95rem; }
.wizard-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.wizard-option { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; padding: 1.25rem 1rem; border: 2px solid #e0e0e0; border-radius: 12px; cursor: pointer; transition: all 0.2s; background: #fff; text-align: center; }
.wizard-option:hover { border-color: var(--accent, #f59e0b); background: #fffbeb; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.wizard-option.selected { border-color: var(--accent, #f59e0b); background: #fffbeb; box-shadow: 0 0 0 3px rgba(245,158,11,0.2); }
.wizard-option-icon { font-size: 2rem; line-height: 1; }
.wizard-option-label { font-weight: 600; font-size: 1rem; }
.wizard-option-desc { font-size: 0.8rem; color: #888; }
.wizard-count { text-align: center; color: #666; font-size: 0.9rem; margin-bottom: 1rem; }
.wizard-count strong { color: var(--accent, #f59e0b); font-size: 1.1rem; }
.wizard-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 1rem; }
.wizard-btn { padding: 0.75rem 1.5rem; border: none; border-radius: 8px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.wizard-btn-back { background: #f3f4f6; color: #555; }
.wizard-btn-back:hover { background: #e5e7eb; }
.wizard-btn-skip { background: none; border: none; color: #888; font-size: 0.9rem; cursor: pointer; text-decoration: underline; }
.wizard-btn-skip:hover { color: #555; }
.wizard-results-header { text-align: center; margin-bottom: 1.5rem; }
.wizard-results-header h2 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.wizard-results-header p { color: #666; }
.wizard-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-bottom: 1.5rem; }
.wizard-tag { background: #fffbeb; border: 1px solid var(--accent, #f59e0b); color: #92400e; padding: 0.25rem 0.75rem; border-radius: 100px; font-size: 0.8rem; display: flex; align-items: center; gap: 0.25rem; }
.wizard-tag button { background: none; border: none; cursor: pointer; font-size: 0.9rem; color: #92400e; padding: 0 0.15rem; }
.wizard-start-link { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--accent, #f59e0b); color: #fff; padding: 0.6rem 1.2rem; border-radius: 8px; font-weight: 600; text-decoration: none; margin-bottom: 1rem; transition: background 0.2s; }
.wizard-start-link:hover { background: #d97706; }
@media (max-width: 600px) {
    .wizard-options { grid-template-columns: 1fr 1fr; }
    .wizard-question { font-size: 1.2rem; }
    .wizard-option { padding: 1rem 0.75rem; }
}

/* ====== SMOOTH SCROLL ====== */
html {
    scroll-behavior: smooth;
}

/* ====== REDUCED MOTION ====== */
/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin: 2rem 0;
    flex-wrap: wrap;
}
.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #d5d9d9;
    border-radius: 8px;
    background: var(--bg-card);
    color: var(--text-main);
    font-size: 0.9rem;
    text-decoration: none;
    transition: border-color 0.15s, background 0.15s;
}
.page-link:hover {
    border-color: var(--accent);
    background: var(--accent-glow);
    color: var(--accent);
}
.page-link.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    font-weight: 600;
}
.page-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    color: var(--text-muted);
    font-size: 1rem;
}

/* --- Energy & TCO --- */
.energy-section {
    margin: 1.5rem 0;
}
.energy-flex-layout {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}
.energy-label-scale {
    flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}
.energy-insight {
    background: #f0f7ff;
    border: 1px solid #d0e7ff;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    display: flex;
    gap: 0.75rem;
    align-items: center;
    max-width: 400px;
}
.insight-icon {
    font-size: 1.25rem;
    line-height: 1;
}
.insight-text {
    display: flex;
    flex-direction: column;
}
.insight-text strong {
    font-size: 0.95rem;
    color: #004085;
}
.insight-text span {
    font-size: 0.8rem;
    color: #406080;
}
@media (max-width: 600px) {
    .energy-flex-layout {
        flex-direction: column;
        gap: 1rem;
    }
}

/* --- Cookie Consent Banner --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #131921;
    color: white;
    padding: 1rem;
    z-index: 9999;
    display: none;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
}
.cookie-banner .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}
.cookie-banner p {
    margin: 0;
    font-size: 0.85rem;
    color: #ccc;
    line-height: 1.4;
}
.cookie-banner p a {
    color: white;
    text-decoration: underline;
}
.cookie-banner-buttons {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}
.cookie-btn {
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: opacity 0.2s;
}
.cookie-btn.accept {
    background: var(--accent);
    color: white;
}
.cookie-btn.decline {
    background: #333;
    color: white;
}
.cookie-btn:hover {
    opacity: 0.9;
}
@media (max-width: 768px) {
    .cookie-banner .container {
        flex-direction: column;
        align-items: flex-start;
    }
    .cookie-banner-buttons {
        width: 100%;
        justify-content: flex-end;
    }
}

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