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

:root {
    --primary: #ea580c;
    --primary-hover: #c2410c;
    --ink: #1c1917;
    --bg: #faf7f2;
    --surface: #ffffff;
    --text: #292524;
    --text-secondary: #78716c;
    --border: #e7e0d8;
    --radius: 12px;
    --radius-lg: 18px;
    --shadow: 0 1px 2px rgba(28,25,23,0.05), 0 4px 16px rgba(28,25,23,0.06);
    --shadow-lg: 0 12px 32px rgba(28,25,23,0.12);
}

body {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

.header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.header .container {
    display: flex;
    align-items: center;
    gap: 22px;
    padding-top: 18px;
    padding-bottom: 18px;
}

.header-inner { min-height: 78px; }

.logo-mark { width: 40px; height: 40px; font-size: .9rem; border-radius: 12px; }

.header-deal { display: grid; grid-template-columns: auto auto; column-gap: 8px; align-items: center; min-width: 138px; padding: 8px 10px; border: 1px solid var(--border); background: #fff7ed; color: var(--ink); text-decoration: none; font-size: .76rem; line-height: 1.15; }
.header-deal:hover { border-color: var(--primary); background: white; }
.header-deal-label { grid-column: 1 / -1; color: var(--text-secondary); font-size: .63rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 3px; }
.header-deal strong { font-size: .74rem; }
.header-deal span:not(.header-deal-label) { color: var(--text-secondary); }
.header-deal b { grid-row: 2 / span 2; grid-column: 2; align-self: center; color: var(--primary); font-size: .8rem; }

.site-nav { display: flex; align-items: center; gap: 16px; }
.site-nav a { color: var(--ink); text-decoration: none; font-size: .82rem; font-weight: 800; white-space: nowrap; }
.site-nav a:hover { color: var(--primary); }
.header-action { margin-left: auto; border: 1px solid var(--ink); color: var(--ink); border-radius: var(--radius); padding: 9px 13px; text-decoration: none; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.header-action:hover { background: var(--ink); color: white; }


.search-bar {
    flex: 1;
}

.search-bar input {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    outline: none;
    background: #f4f0ea;
    color: var(--text);
    transition: border-color 0.2s;
}

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

.search-bar input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.12);
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--ink);
    white-space: nowrap;
}

.logo-img {
    height: 42px;
    width: auto;
}

.logo span {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--ink);
    letter-spacing: -.04em;
}

main.container {
    padding-top: 24px;
    padding-bottom: 48px;
    flex: 1;
}

.home-page {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 24px;
}

.home-page .deal-showcase,
.home-page .home-guides {
    grid-column: 1 / -1;
}

.home-page .sidebar {
    grid-column: 1;
}

.home-page .content {
    grid-column: 2;
    min-width: 0;
}

main.product-page,
main.category-page {
    flex-direction: column;
}

.sidebar {
    width: 260px;
    flex-shrink: 0;
    background: var(--surface);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    align-self: flex-start;
    position: sticky;
    top: 80px;
}

.sidebar h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-top: 20px;
    margin-bottom: 8px;
}

.sidebar h3:first-child {
    margin-top: 0;
}

.sidebar ul {
    list-style: none;
    margin-bottom: 8px;
}

.sidebar li {
    padding: 4px 0;
}

.sidebar a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.15s;
}

.sidebar a:hover {
    background: var(--bg);
}

.sidebar a.active {
    background: #eff6ff;
    color: var(--primary);
    font-weight: 600;
}

.sidebar .count {
    font-size: 0.75rem;
    color: var(--text-secondary);
    background: var(--bg);
    padding: 1px 6px;
    border-radius: 10px;
}

.price-filter {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 12px;
}

.price-filter input {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.9rem;
}

.btn {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: var(--radius);
    background: var(--primary);
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-bottom: 8px;
}

.btn:hover {
    background: var(--primary-hover);
}

.btn-secondary {
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--border);
}

.content {
    flex: 1;
    min-width: 0;
}

.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    gap: 16px;
}

.toolbar p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.toolbar select {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.9rem;
    background: var(--surface);
    cursor: pointer;
}

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

.product-card {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid transparent;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: #e9d8cc;
}

.product-card .image {
    aspect-ratio: 1;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

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

.product-card .image .no-image {
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-align: center;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.product-card .info {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card .brand {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 4px;
}

.product-card h2 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
    flex: 1;
}

.product-card .price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 12px;
}

.product-card .price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.product-card .price.sale {
    color: #dc2626;
}

.product-card .original-price {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-decoration: line-through;
}

.product-card .store {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.product-card .affiliate-btn {
    display: block;
    text-align: center;
    padding: 10px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s;
    margin-top: auto;
}

.product-card .affiliate-btn:hover {
    background: var(--primary-hover);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.15s;
}

.pagination a:hover {
    background: var(--bg);
    border-color: var(--primary);
}

.pagination .active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pagination .disabled {
    opacity: 0.4;
    cursor: default;
}

.loading {
    text-align: center;
    padding: 48px;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.error {
    text-align: center;
    padding: 48px;
    color: #dc2626;
    font-size: 1.1rem;
}

.hidden {
    display: none;
}

.footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 24px 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: auto;
}

.footer-credit {
    margin-top: 4px;
    font-size: 0.75rem;
}

.footer-credit a {
    color: var(--primary);
    text-decoration: none;
}

.footer-credit a:hover {
    text-decoration: underline;
}

.filter-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 4px;
}

.filter-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}

.filter-toggle.open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.filter-toggle.open span:nth-child(2) {
    opacity: 0;
}

.filter-toggle.open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.close-sidebar {
    display: none;
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 4px 8px;
    line-height: 1;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 98;
    opacity: 0;
    transition: opacity 0.2s;
}

.sidebar-overlay.open {
    opacity: 1;
}

/* Product page */
.product-page .loading {
    grid-column: 1 / -1;
}

.breadcrumb {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

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

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

.breadcrumb span {
    margin: 0 6px;
}

.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.product-gallery {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-gallery img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.product-brand {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    font-weight: 600;
}

.product-info h1 {
    font-size: 1.6rem;
    line-height: 1.3;
}

.product-price-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.product-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.product-price.sale {
    color: #dc2626;
}

.product-original-price {
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-decoration: line-through;
}

.product-store {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.btn-large {
    display: block;
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    border-radius: var(--radius);
    background: var(--primary);
    color: white;
    text-decoration: none;
    font-weight: 700;
    text-align: center;
    transition: background 0.2s;
}

.btn-large:hover {
    background: var(--primary-hover);
}

.product-stock {
    font-size: 0.9rem;
    font-weight: 600;
}

.product-stock.in-stock {
    color: #16a34a;
}

.product-stock.out-of-stock {
    color: #dc2626;
}

.product-description {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px;
    margin-bottom: 40px;
}

.product-description h2 {
    font-size: 1.2rem;
    margin-bottom: 16px;
}

.desc-content {
    line-height: 1.8;
    color: var(--text);
}

.desc-content ul {
    padding-left: 20px;
}

.desc-content li {
    margin-bottom: 4px;
}

.product-related {
    margin-bottom: 40px;
}

.product-related h2 {
    font-size: 1.2rem;
    margin-bottom: 16px;
}

.product-card {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.product-card .image {
    aspect-ratio: 1;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

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

.product-card .info {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

@media (max-width: 768px) {
    .filter-toggle {
        display: flex;
    }

    .sidebar-overlay {
        display: block;
        pointer-events: none;
    }

    .sidebar-overlay.open {
        pointer-events: auto;
    }

    .sidebar {
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100vh;
        overflow-y: auto;
        z-index: 99;
        border-radius: var(--radius);
        box-shadow: -4px 0 16px rgba(0,0,0,0.15);
        transition: right 0.25s ease;
        padding-top: 60px;
    }

    .sidebar.open {
        right: 0;
    }

    .sidebar h3:first-child {
        margin-top: 0;
    }

    .close-sidebar {
        display: block;
    }

    main.container {
        flex-direction: column;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }

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

    .product-info h1 {
        font-size: 1.3rem;
    }

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

.home-hero {
    flex: 0 0 100%;
    margin-bottom: 8px;
    padding: 56px 52px;
    background: radial-gradient(circle at 88% 20%, rgba(217,104,50,.36), transparent 28%), linear-gradient(135deg, #17221f, #263d35);
    border-radius: 20px;
    color: white;
}

.deal-showcase { flex: 0 0 100%; margin: 0 0 20px; padding: 18px; background: linear-gradient(135deg, #ffe9d9 0%, #fff7ed 70%); border: 1px solid #fcd9bd; border-radius: var(--radius-lg); }
.deal-category-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 30px; }
.deal-category-tabs a { display: flex; align-items: center; justify-content: center; min-height: 58px; background: var(--ink); color: white; text-decoration: none; font-size: 1.15rem; font-weight: 800; letter-spacing: -.025em; transition: background .2s, transform .2s; }
.deal-category-tabs a:last-child { background: var(--primary); }
.deal-category-tabs a:hover { transform: translateY(-2px); background: #0d172d; }
.deal-category-tabs a:last-child:hover { background: var(--primary-hover); }
.deal-showcase-heading { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 16px; }
.deal-showcase-heading h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -.04em; line-height: 1; }
.deal-slider-wrap { position: relative; }
.deal-slider { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 360px); justify-content: center; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 2px; }
.deal-slider::-webkit-scrollbar { display: none; }
.deal-slide { scroll-snap-align: start; display: flex; flex-direction: column; min-height: 390px; background: var(--surface); border: 1px solid #cbdaf2; color: var(--text); text-decoration: none; }
.deal-slide:hover { border-color: var(--primary); box-shadow: var(--shadow-lg); }
.deal-image { height: 200px; padding: 18px; display: flex; align-items: center; justify-content: center; background: #f4f7fd; }
.deal-image img { max-height: 100%; max-width: 100%; object-fit: contain; }
.deal-copy { padding: 18px; display: flex; flex: 1; flex-direction: column; }
.deal-kicker { color: var(--primary); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; }
.deal-copy h2 { font-size: 1rem; line-height: 1.35; margin: 7px 0 auto; }
.deal-price-row { display: flex; align-items: baseline; gap: 8px; margin-top: 18px; }
.deal-price-row strong { font-size: 1.3rem; }
.deal-price-row span { color: var(--text-secondary); font-size: .8rem; text-decoration: line-through; }
.deal-price-row b { color: var(--primary); font-size: .82rem; }
.deal-link { margin-top: 14px; color: var(--primary); font-size: .85rem; font-weight: 800; }
.deal-slider-button { position: absolute; z-index: 2; top: 42%; width: 38px; height: 38px; border: 1px solid #fcd9bd; border-radius: var(--radius); background: white; color: var(--ink); font-size: 1.2rem; cursor: pointer; box-shadow: var(--shadow); }
.deal-slider-prev { left: -18px; }
.deal-slider-next { right: -18px; }
.deal-slider-button:hover { border-color: var(--primary); color: var(--primary); }

.home-hero h1 {
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    line-height: 1.25;
    margin-bottom: 8px;
    color: white;
    max-width: 760px;
    letter-spacing: -0.045em;
}

.home-hero-sub {
    color: rgba(255,255,255,.75);
    font-size: 1.08rem;
    margin-bottom: 20px;
    max-width: 640px;
}

.category-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.category-nav-item {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.28);
    color: white;
    text-decoration: none;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: var(--shadow);
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.category-nav-item:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
    background: var(--primary);
    color: white;
}

.eyebrow { color: var(--primary); text-transform: uppercase; font-size: .74rem; letter-spacing: .12em; font-weight: 800; margin-bottom: 10px; }
.home-hero .eyebrow { color: #f4b28e; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 18px; }
.section-heading h2 { font-size: 1.6rem; letter-spacing: -.03em; }
.text-link { color: var(--primary); font-size: .9rem; font-weight: 750; text-decoration: none; white-space: nowrap; }
.home-guides { flex: 0 0 100%; margin: 16px 0 6px; }
.guide-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.guide-card { display: block; padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); text-decoration: none; transition: transform .2s, box-shadow .2s, border-color .2s; }
.guide-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.guide-card span { display: block; color: var(--primary); font-size: .8rem; font-weight: 800; letter-spacing: .08em; margin-bottom: 28px; }
.guide-card h3 { font-size: 1.1rem; margin-bottom: 5px; }
.guide-card p { color: var(--text-secondary); font-size: .9rem; }

.guide-page { display: block !important; }
.guide-hero { padding: 58px; background: linear-gradient(135deg, #ffe9d9 0%, #fff7ed 60%); border-radius: var(--radius-lg); margin-bottom: 30px; max-width: 100%; border: 1px solid #fcd9bd; }
.guide-hero h1 { font-size: clamp(2rem, 4vw, 3.6rem); max-width: 820px; letter-spacing: -.04em; line-height: 1.08; margin-bottom: 18px; }
.guide-hero > p:not(.eyebrow) { max-width: 680px; color: var(--text-secondary); font-size: 1.08rem; }
.guide-cta { display: inline-block; color: white; background: var(--primary); text-decoration: none; padding: 12px 18px; border-radius: 999px; font-weight: 750; margin-top: 24px; }
.guide-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 48px; max-width: 1050px; margin: 0 auto 58px; }
.guide-article section { margin-bottom: 34px; }
.guide-article h2 { font-size: 1.55rem; letter-spacing: -.025em; margin-bottom: 10px; }
.guide-article p { color: #44504b; font-size: 1.02rem; }
.guide-aside { align-self: start; position: sticky; top: 94px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.guide-aside a { display: block; padding: 10px 0; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--border); font-size: .88rem; font-weight: 650; }
.guide-aside a:last-child { border-bottom: 0; }
.guide-products { margin-bottom: 30px; }
.guide-products .product-card h3 { font-size: 1rem; line-height: 1.35; margin-bottom: 8px; }

.category-page .breadcrumb {
    margin-bottom: 16px;
}

.category-hero {
    margin-bottom: 24px;
}

.category-hero h1 {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 12px;
}

.category-intro {
    color: var(--text);
    line-height: 1.7;
    max-width: 760px;
}

.category-intro p {
    margin-bottom: 12px;
}

.category-meta {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 8px;
}

.category-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 24px;
    align-items: flex-start;
    width: 100%;
}

.category-layout .sidebar {
    width: 260px;
    flex-shrink: 0;
    position: sticky;
    top: 80px;
}

.category-layout .content {
    min-width: 0;
    width: 100%;
}

.category-layout .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.category-content {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px;
    margin-top: 40px;
}

.category-content h2 {
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.category-content .desc-content {
    line-height: 1.8;
    color: var(--text);
}

.category-content .desc-content h3 {
    font-size: 1.1rem;
    margin-top: 24px;
    margin-bottom: 8px;
}

.category-content .desc-content p {
    margin-bottom: 12px;
}

.category-content .desc-content ul {
    padding-left: 20px;
    margin-bottom: 12px;
}

.category-content .desc-content li {
    margin-bottom: 6px;
}

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

.faq-item:first-of-type {
    border-top: 1px solid var(--border);
}

.faq-item summary {
    padding: 16px 8px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    min-height: 44px;
}

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

.faq-item summary::after {
    content: '+';
    font-size: 1.4rem;
    color: var(--primary);
    flex-shrink: 0;
    line-height: 1;
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-answer {
    padding: 0 8px 16px;
    color: var(--text);
    line-height: 1.7;
}

@media (max-width: 1024px) {
    .sidebar {
        width: 220px;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }

    .category-layout .sidebar {
        width: 220px;
    }

    .category-layout {
        grid-template-columns: 220px minmax(0, 1fr);
    }

    .category-layout .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-gallery {
        padding: 20px;
    }

    .product-gallery img {
        max-height: 320px;
    }

    .home-hero {
        padding: 24px 20px;
    }

    .deal-slider { grid-auto-columns: calc((100% - 16px) / 2); justify-content: start; }

    .home-hero h1 {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .header-action { display: none; }
    .header-deal { display: none; }
    .home-hero {
        padding: 20px 16px;
    }

    .deal-category-tabs { margin-bottom: 22px; }
    .deal-category-tabs a { min-height: 56px; font-size: 1rem; }
    .deal-slider { grid-auto-columns: 84%; justify-content: start; }
    .deal-slider-button { display: none; }

    .guide-card-grid { grid-template-columns: 1fr; }
    .guide-hero { padding: 32px 22px; }
    .guide-layout { grid-template-columns: 1fr; gap: 20px; }
    .guide-aside { position: static; }

    .home-hero h1 {
        font-size: 1.4rem;
    }

    .home-hero-sub {
        font-size: 0.95rem;
    }

    .category-nav {
        gap: 8px;
    }

    .category-nav-item {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .category-hero h1 {
        font-size: 1.5rem;
    }

    .category-layout {
        flex-direction: column;
        display: flex;
    }

    .category-layout .sidebar {
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100vh;
        overflow-y: auto;
        z-index: 99;
        border-radius: var(--radius);
        box-shadow: -4px 0 16px rgba(0,0,0,0.15);
        transition: right 0.25s ease;
        padding-top: 60px;
    }

    .category-layout .sidebar.open {
        right: 0;
    }

    .category-content {
        padding: 20px 16px;
    }

    .category-content h2 {
        font-size: 1.2rem;
    }

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

    .category-layout .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-card .info {
        padding: 12px;
    }

    .product-card h2 {
        font-size: 0.9rem;
    }

    .product-card .price {
        font-size: 1.05rem;
    }

    .product-card .brand {
        font-size: 0.7rem;
    }

    .header .container {
        gap: 12px;
    }

    .logo span {
        font-size: 1rem;
    }

    .logo-img {
        height: 30px;
    }

    .search-bar input {
        padding: 12px 14px;
        font-size: 16px;
    }

    .toolbar select {
        min-height: 44px;
    }

    .btn,
    .btn-large {
        min-height: 48px;
    }

    .sidebar a {
        min-height: 44px;
        padding: 8px;
    }

    .pagination a,
    .pagination span {
        padding: 12px 16px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .logo span {
        display: none;
    }

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

    .product-card .info {
        padding: 10px;
    }

    .product-card h2 {
        font-size: 0.85rem;
        -webkit-line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .product-card .price {
        font-size: 0.95rem;
    }

    .product-card .original-price {
        font-size: 0.75rem;
    }

    .product-card .store {
        font-size: 0.7rem;
    }

    .home-hero {
        padding: 16px 12px;
    }

    .home-hero h1 {
        font-size: 1.25rem;
    }

    .category-nav {
        flex-direction: column;
    }

    .category-nav-item {
        width: 100%;
        justify-content: center;
    }

    .product-layout {
        gap: 20px;
    }

    .product-gallery {
        padding: 16px;
    }

    .product-gallery img {
        max-height: 260px;
    }

    .product-info h1 {
        font-size: 1.2rem;
    }

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

    .btn-large {
        font-size: 1rem;
        padding: 14px;
    }

    .category-content {
        padding: 16px 12px;
    }
}

/* Responsive layout overrides */
@media (min-width: 1025px) {
    .header-inner {
        min-width: 0;
    }

    .search-bar {
        min-width: 220px;
    }
}

@media (max-width: 1024px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .header .container {
        gap: 16px;
    }

    .header-deal {
        min-width: 126px;
    }

    .site-nav {
        gap: 10px;
    }

    .site-nav a {
        font-size: .76rem;
    }

    .deal-showcase {
        padding: 16px;
    }

    .deal-slider-prev {
        left: -10px;
    }

    .deal-slider-next {
        right: -10px;
    }

    .guide-layout {
        gap: 28px;
    }
}

@media (max-width: 767px) {
    body {
        overflow-x: hidden;
    }

    .container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .header {
        position: sticky;
    }

    .header .container.header-inner {
        display: grid;
        grid-template-columns: 40px minmax(0, 1fr);
        min-height: 64px;
        gap: 10px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .logo-img {
        height: 28px;
    }

    .logo {
        width: auto;
    }

    .logo-img { display: block; height: 34px; }
    .header-deal,
    .site-nav,
    .header-action {
        display: none;
    }

    .search-bar {
        min-width: 0;
        width: 100%;
    }

    .search-bar input {
        height: 42px;
        padding: 9px 12px;
    }

    .filter-toggle {
        display: flex;
        flex: 0 0 42px;
        min-height: 42px;
        align-items: center;
        justify-content: center;
    }

    .header .header-inner:has(.filter-toggle) {
        grid-template-columns: 32px minmax(0, 1fr) 42px;
    }

    main.container {
        gap: 20px;
        padding-top: 16px;
        padding-bottom: 32px;
    }

    .home-page {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .home-page .deal-showcase,
    .home-page .home-guides,
    .home-page .content {
        width: 100%;
        min-width: 0;
    }

    .home-page .sidebar {
        position: fixed;
        top: 0;
        right: -300px;
        width: 290px;
        height: 100vh;
        z-index: 99;
    }

    .home-page .sidebar.open {
        right: 0;
    }

    .home-page .content {
        grid-column: 1;
        grid-row: 3;
    }

    .home-page .sidebar {
        grid-column: auto;
        grid-row: auto;
    }

    .deal-showcase {
        margin-bottom: 4px;
        padding: 14px;
    }

    .deal-category-tabs {
        gap: 8px;
        margin-bottom: 20px;
    }

    .deal-category-tabs a {
        min-height: 52px;
        font-size: .98rem;
    }

    .deal-showcase-heading {
        align-items: flex-start;
        margin-bottom: 14px;
    }

    .deal-showcase-heading h1 {
        font-size: 1.55rem;
        line-height: 1.05;
    }

    .deal-showcase-heading .text-link {
        font-size: .78rem;
        padding-top: 6px;
    }

    .deal-slider {
        grid-auto-columns: minmax(252px, 82vw);
        gap: 12px;
    }

    .deal-slide {
        min-height: 350px;
    }

    .deal-image {
        height: 170px;
        padding: 14px;
    }

    .deal-copy {
        padding: 14px;
    }

    .deal-price-row {
        margin-top: 14px;
    }

    .home-guides {
        margin-top: 8px;
    }

    .section-heading {
        align-items: flex-start;
    }

    .section-heading h2 {
        font-size: 1.35rem;
    }

    .guide-card-grid {
        gap: 10px;
    }

    .guide-card {
        padding: 18px;
    }

    .guide-card span {
        margin-bottom: 16px;
    }

    .sidebar {
        width: 290px;
    }

    .toolbar {
        align-items: center;
    }

    .toolbar p {
        max-width: 55%;
    }

    .toolbar select {
        min-width: 142px;
    }

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

    .home-page .content .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .home-page .content .product-card {
        min-width: 0;
    }

    .product-card .image {
        padding: 10px;
    }

    .product-card .info {
        padding: 10px;
    }

    .product-card .store {
        margin-bottom: 4px;
    }

    .category-hero h1 {
        font-size: 1.7rem;
    }

    .category-content {
        padding: 18px 14px;
        margin-top: 24px;
    }

    .product-layout {
        gap: 24px;
        margin-bottom: 28px;
    }

    .product-gallery,
    .product-description {
        padding: 18px 14px;
    }

    .product-related {
        margin-bottom: 24px;
    }

    .guide-hero {
        padding: 28px 18px;
        margin-bottom: 22px;
    }

    .guide-hero h1 {
        font-size: 2rem;
    }

    .guide-hero > p:not(.eyebrow) {
        font-size: 1rem;
    }

    .guide-layout {
        gap: 18px;
        margin-bottom: 32px;
    }

    .guide-article h2 {
        font-size: 1.35rem;
    }
}

@media (max-width: 374px) {
    .search-bar input::placeholder {
        color: transparent;
    }

    .deal-category-tabs a {
        font-size: .9rem;
    }

    .deal-showcase-heading h1 {
        font-size: 1.4rem;
    }

    .toolbar {
        flex-wrap: wrap;
    }

    .toolbar p {
        max-width: none;
        width: 100%;
    }

    .toolbar select {
        width: 100%;
    }
}

/* SEO guide hub */
.guides-hub-page { display: block; }
.guides-hub-hero { padding: 58px; background: linear-gradient(135deg, #ffe9d9 0%, #fff7ed 60%); border: 1px solid #fcd9bd; border-radius: var(--radius-lg); margin-bottom: 42px; }
.guides-hub-hero h1 { max-width: 760px; font-size: clamp(2.2rem, 5vw, 4.2rem); line-height: 1.02; letter-spacing: -.05em; margin-bottom: 18px; }
.guides-hub-hero > p { max-width: 680px; color: var(--text-secondary); font-size: 1.08rem; }
.guides-hub-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.guides-hub-actions a { background: var(--ink); color: white; text-decoration: none; padding: 12px 18px; font-weight: 800; }
.guides-hub-actions a:last-child { background: var(--primary); }
.guides-hub-section { margin-bottom: 48px; }
.guides-hub-intro { max-width: 650px; margin-bottom: 20px; }
.guides-hub-intro h2 { font-size: 1.7rem; letter-spacing: -.035em; margin-bottom: 8px; }
.guides-hub-intro > p:not(.eyebrow) { color: var(--text-secondary); }
.guides-hub-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.guides-hub-card { display: flex; min-height: 205px; flex-direction: column; padding: 24px; border: 1px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none; }
.guides-hub-card:hover { border-color: var(--primary); box-shadow: var(--shadow-lg); }
.guides-hub-card > span { color: var(--primary); font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.guides-hub-card h3 { font-size: 1.2rem; line-height: 1.2; margin: 16px 0 8px; }
.guides-hub-card p { color: var(--text-secondary); font-size: .93rem; }
.guides-hub-card b { color: var(--primary); font-size: .85rem; margin-top: auto; padding-top: 20px; }

@media (max-width: 767px) {
    .guides-hub-hero { padding: 30px 18px; margin-bottom: 30px; }
    .guides-hub-hero h1 { font-size: 2.15rem; }
    .guides-hub-hero > p { font-size: 1rem; }
    .guides-hub-section { margin-bottom: 34px; }
    .guides-hub-grid { grid-template-columns: 1fr; gap: 10px; }
    .guides-hub-card { min-height: 0; padding: 18px; }
}

/* ===== KettlebellShoppen extras ===== */

.hero {
    grid-column: 1 / -1;
    padding: 46px 44px;
    background: linear-gradient(135deg, #ffe9d9 0%, #fff7ed 55%, var(--surface) 100%);
    border: 1px solid #fcd9bd;
    border-radius: var(--radius-lg);
    margin: 0 0 26px;
}

.hero h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 900; letter-spacing: -.04em; line-height: 1.08; margin-bottom: 12px; }
.hero > .eyebrow { margin-bottom: 10px; }
.hero p:not(.eyebrow) { max-width: 640px; color: var(--text-secondary); }
.hero-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; align-items: center; }
.hero-links .text-link { margin-left: 4px; }

@media (max-width: 767px) {
    .hero { padding: 30px 22px; }
    .home-page .hero { grid-column: 1; }
}

/* hover ya */
.footer { border-top: 1px solid var(--border); }

/* Lagerstatus-badge på produktkort */
.product-card .image { position: relative; }
.stock-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
}
.stock-badge.in-stock {
    background: rgba(220, 252, 231, .92);
    color: #166534;
    border: 1px solid #bbf7d0;
}
.stock-badge.out-of-stock {
    background: rgba(254, 226, 226, .92);
    color: #991b1b;
    border: 1px solid #fecaca;
}
