/* style.css - Trust & Clarity Theme */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    /* Farvepalette: Troværdighed og Klarhed */
    --bg-color: #f8fafc;
    /* Meget lys grå/hvid baggrund */
    --card-bg: #ffffff;
    /* Helt hvid til kort */
    --text-primary: #1e293b;
    /* Mørkegrå (næsten sort) til tekst */
    --text-secondary: #64748b;
    /* Mellemgrå til beskrivelser */

    --brand-blue: #0f172a;
    /* Mørkeblå (Soliditet/Trust) */
    --lego-red: #d01012;
    /* Accent farve */

    --price-green: #16a34a;
    /* Grøn signalerer "God pris/Go" */
    --price-bg: #dcfce7;
    /* Lys grøn baggrund */

    --border-color: #e2e8f0;
    /* Diskret grå streg */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    /* Prevent horizontal scroll caused by any element */
}

/* --- Header: Ren og Professionel --- */
header {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 2500;
    /* Higher than search-group (2000) */
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--brand-blue);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--lego-red);
}

/* --- Hero Section --- */
.hero {
    text-align: center;
    padding: 3rem 0 2rem;
}

.hero h1 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--brand-blue);
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.hero p {
    color: var(--text-secondary);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* --- Search Bar: Venlig og Inbydende --- */
.search-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 1.2rem 1.5rem;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-primary);
    font-size: 1.1rem;
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
}

.search-input:focus {
    outline: none;
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.1);
}

.search-btn {
    position: absolute;
    right: 8px;
    top: 8px;
    bottom: 8px;
    background: var(--brand-blue);
    color: white;
    border: none;
    padding: 0 25px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s;
}

.search-btn:hover {
    background: #334155;
}

/* --- Grid & Cards --- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem 0 2rem;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    /* Fjerner understregning fra links */
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: #cbd5e1;
}

/* Effekt: Billedet zoomer lidt ind (begrænset for at undgå overlap med badges) */
.card:hover .card-image img {
    transform: scale(1.05);
    /* Zoomer 5% ind - holdes indenfor container pga overflow:hidden */
}

.card-image {
    width: 100%;
    height: 240px;
    aspect-ratio: 4/3;
    /* Shimmer loading placeholder */
    background: linear-gradient(90deg, #f8f9fa 25%, #e9ecef 50%, #f8f9fa 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    overflow: hidden;
    position: relative;
}

.card-image.loaded {
    animation: none;
    background: #ffffff;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.card-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 1;
    /* Lower z-index so badges appear on top */
    /* mix-blend-mode: multiply; <--- Fjernet, da vi nu bruger hvid baggrund */
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    /* Lækker blød bevægelse */
    transform-origin: center center;
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.set-number {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    color: var(--text-primary);
    height: 3rem;
    /* Sikrer ens højde */
    overflow: hidden;
}

/* Pris sektion: Fokus på besparelse */
.price-container {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-wrapper {
    display: flex;
    flex-direction: column;
}

.price-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.price-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--brand-blue);
}

.retailer-badge {
    background: var(--price-bg);
    color: var(--price-green);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

/* --- Badge Styles --- */
.popular-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #fef3c7;
    color: #b45309;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.75rem;
    z-index: 10;
}

.pieces-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    z-index: 10;
}

.price-dropped-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.75rem;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}

.historical-low-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.75rem;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
}

.viewers-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(15, 23, 42, 0.85);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    z-index: 10;
    animation: viewersPulse 2s ease-in-out infinite;
}

/* Pulsating Animation for Urgency */
@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(239, 68, 68, 0.5);
    }
}

@keyframes viewersPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.pulse-badge {
    animation: pulse 1.5s ease-in-out infinite;
}

/* --- Mobile: Badge adjustments --- */
@media (max-width: 600px) {

    .popular-badge,
    .price-dropped-badge,
    .historical-low-badge {
        font-size: 0.65rem;
        padding: 3px 6px;
        top: 8px;
        left: 8px;
    }

    .viewers-badge {
        font-size: 0.6rem;
        padding: 2px 5px;
        top: 8px;
        right: 8px;
    }

    .pieces-badge {
        font-size: 0.65rem;
        padding: 2px 5px;
        bottom: 8px;
        right: 8px;
    }
}

/* --- Product Page Specifics --- */
.product-hero {
    background: white;
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

.shop-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: white;
}

.shop-action-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    min-width: 280px;
    gap: 15px;
}

.shop-row:last-child {
    border-bottom: none;
}

/* Shop Row Enhanced Design */
.shop-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    background: white;
    transition: background 0.2s, transform 0.2s;
}

.shop-row:hover {
    background: #f8fafc !important;
}

.shop-row:last-child {
    border-bottom: none;
}

.shop-logo-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    margin-right: 15px;
    flex-shrink: 0;
}

.stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.stock-badge.in-stock {
    background: #dcfce7;
    color: #166534;
}

.stock-badge.out-of-stock {
    background: #fee2e2;
    color: #991b1b;
}

.verified-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    background: #3b82f6;
    color: white;
    border-radius: 50%;
    font-size: 9px;
    margin-left: 4px;
    position: relative;
    top: -2px;
}

/* Mobile fix: Side-by-side layout */
@media (max-width: 768px) {
    .shop-row {
        flex-direction: row;
        align-items: center;
        width: 100%;
        gap: 10px;
        padding: 12px;
        justify-content: space-between;
    }

    .shop-row>div:first-child {
        width: auto !important;
        display: flex;
        align-items: center;
        flex: 1;
        min-width: 0;
        /* Allow truncation */
    }

    .shop-logo-wrapper {
        display: none !important;
    }

    .shop-info-col {
        flex-grow: 1;
        width: 100%;
        padding-right: 10px;
    }

    /* Hide the standalone stock column on mobile */
    .shop-stock-col {
        display: none !important;
    }

    /* Mobile Price + Buy Row -> Stacked on Right */
    .shop-action-row {
        width: auto;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        /* Align right */
        justify-content: center;
        gap: 6px;
        margin-top: 0;
        min-width: auto;
        flex-shrink: 0;
    }

    .shop-action-row .stock-badge {
        font-size: 0.7rem;
        padding: 2px 8px;
        margin: 0;
    }

    .shop-row .btn-buy {
        flex-grow: 0;
        width: auto;
        text-align: center;
        padding: 8px 12px;
        font-size: 0.9rem;
    }
}

.cta-btn {
    background: var(--price-green);
    color: white;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s;
    box-shadow: 0 2px 4px rgba(22, 163, 74, 0.2);
}

.cta-btn:hover {
    background: #15803d;
}

/* --- Buy Button (Affiliate Links) --- */
.btn-buy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    color: white;
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 15px rgba(22, 163, 74, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-buy::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

/* Secondary Buy Button (Not cheapest) */
.btn-buy.secondary {
    background: #f8fafc;
    color: var(--brand-blue);
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.btn-buy.secondary:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.btn-buy.secondary::before {
    display: none;
    /* No shine effect */
}

.btn-buy:hover {
    background: linear-gradient(135deg, #15803d 0%, #166534 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(22, 163, 74, 0.4);
}

.btn-buy:hover::before {
    left: 100%;
}

.btn-buy:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

/* Arrow icon animation */
.btn-buy span.arrow {
    display: inline-block;
    transition: transform 0.3s ease;
}

.btn-buy:hover span.arrow {
    transform: translateX(3px) translateY(-2px);
}

/* Paginering Styling */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.page-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--brand-blue);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.page-btn:hover:not(.disabled) {
    border-color: var(--brand-blue);
    background-color: var(--brand-blue);
    color: white;
    transform: translateY(-2px);
}

.page-btn.disabled {
    color: var(--text-secondary);
    background-color: #f1f5f9;
    cursor: not-allowed;
    border-color: transparent;
    box-shadow: none;
}

.page-info {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* --- Specifikationer Boks (Master Data) --- */
/* --- Nyt Samlet "Product Summary" Design --- */

.product-summary {
    background: #f8fafc;
    /* Lys baggrund */
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;

    /* Layout: Flexbox til at sætte Specs og Pris side om side */
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    /* Vigtigt for mobil: Knækker om hvis der mangler plads */
}

/* Venstre side: Specifikationerne (Grid) */
.summary-specs {
    display: flex;
    gap: 30px;
    flex: 1;
    /* Fylder al tilgængelig plads */
}

.spec-item {
    display: flex;
    flex-direction: column;
    min-width: 80px;
}

.spec-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.spec-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brand-blue);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Højre side: Pris-boksen */
.summary-price-box {
    text-align: right;
    padding-left: 30px;
    border-left: 2px solid #e2e8f0;
    /* En streg der adskiller fakta og pris */
    min-width: 180px;
}

.price-label-small {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
    display: block;
}

.big-price {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--brand-blue);
    line-height: 1;
}

/* Mobil-tilpasning */
@media (max-width: 600px) {
    .product-summary {
        flex-direction: column;
        /* Stacker dem ovenpå hinanden */
        align-items: flex-start;
        gap: 20px;
    }

    .summary-specs {
        width: 100%;
        justify-content: space-between;
        /* Fordeler specs pænt */
    }

    .summary-price-box {
        border-left: none;
        /* Fjerner stregen på mobil */
        border-top: 1px solid #e2e8f0;
        /* Laver en streg i toppen i stedet */
        padding-left: 0;
        padding-top: 20px;
        width: 100%;
        text-align: left;
        /* Venstrestiller prisen på mobil */
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}

/* Lille ikon før værdien (valgfrit - bruger emojis her for nemheds skyld) */
.spec-icon {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 5px;
}

/* Rabat Badge til Prisen */
.deal-badge {
    background: #dcfce7;
    color: #166534;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    margin-left: 10px;
    vertical-align: middle;
}

/* Tema Navigation */
.theme-scroll {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 10px 0;
    justify-content: center;
    flex-wrap: wrap;
}

.theme-card {
    background: white;
    border: 1px solid var(--border-color);
    padding: 15px 25px;
    border-radius: 50px;
    /* Pille-form */
    text-decoration: none;
    color: var(--brand-blue);
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.theme-card:hover {
    background: var(--brand-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.theme-icon {
    font-size: 1.2rem;
}

/* Mobil tilpasning */
@media (max-width: 600px) {
    .theme-scroll {
        justify-content: flex-start;
        padding-bottom: 15px;
    }
}


/* --- Budget Vælger Styling --- */
.budget-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 15px;
}

.budget-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.budget-card:hover {
    transform: translateY(-3px);
    border-color: var(--brand-blue);
    box-shadow: 0 8px 15px rgba(15, 23, 42, 0.1);
}

.budget-icon {
    font-size: 2rem;
    background: #f1f5f9;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.budget-text {
    display: flex;
    flex-direction: column;
}

.budget-title {
    font-weight: 700;
    color: var(--brand-blue);
    font-size: 1.1rem;
}

.budget-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* --- Search Group: Tema + Søgning på én linje --- */

/* Selve rammen der holder det hele */
.search-group {
    display: flex;
    align-items: center;
    max-width: 700px;
    /* Lidt bredere for at få plads til begge */
    margin: 0 auto;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
    position: relative;
    /* Vigtig for z-index */
    z-index: 2000;
    overflow: visible;
}

/* Fokus effekt på hele kassen når man skriver */
.search-group:focus-within {
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.1);
}

/* Tema Dropdown (Venstre side) */
.theme-select {
    appearance: none;
    /* Fjerner standard browser stil */
    border: none;
    background-color: transparent;
    padding: 1.2rem 1rem 1.2rem 1.5rem;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: var(--brand-blue);
    border-right: 1px solid var(--border-color);
    /* Streg mellem tema og søg */
    cursor: pointer;
    outline: none;
    min-width: 160px;
    /* Sikrer at der er plads til teksten */

    /* Lille pil ned ikon */
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%230f172a%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 10px;
}

.theme-select:hover {
    background-color: #f8fafc;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

/* Søgefelt Container (Højre side) */
.search-container {
    flex-grow: 1;
    /* Fylder resten af pladsen */
    position: relative;
    margin: 0;
    /* Nulstiller gammel margin */
    max-width: none;
    /* Fjerner bredde begrænsning */
    overflow: visible;
    z-index: 2001;
}

/* Input feltet */
.search-input {
    width: 100%;
    padding: 1.2rem 1.5rem;
    border: none;
    /* Fjerner border da "search-group" har den */
    background: transparent;
    color: var(--text-primary);
    font-size: 1.1rem;
    box-shadow: none;
    /* Fjerner gammel skygge */
    border-radius: 0 12px 12px 0;
}

.search-input:focus {
    outline: none;
    box-shadow: none;
    border: none;
}

/* Søgeknappen (Uændret, men sikret placering) */
.search-btn {
    position: absolute;
    right: 8px;
    top: 8px;
    bottom: 8px;
    background: var(--brand-blue);
    color: white;
    border: none;
    padding: 0 25px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s;
}

.search-btn:hover {
    background: #334155;
}

/* Mobil tilpasning: Hvis skærmen er lille, stabel dem */
@media (max-width: 600px) {
    .search-group {
        flex-direction: column;
        align-items: stretch;
    }

    .theme-select {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        width: 100%;
        border-radius: 12px 12px 0 0;
    }

    .search-input {
        border-radius: 0 0 12px 12px;
    }
}

/* --- Filter Bar Styling --- */
.filter-bar {
    background: white;
    border: 1px solid var(--border-color);
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    box-shadow: var(--shadow-sm);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-input {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.9rem;
    width: 80px;
    background: #f8fafc;
}

.filter-select {
    padding: 8px 30px 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--brand-blue);
    cursor: pointer;
    background-color: white;
    /* Custom pil (valgfri, ellers bruger den browserens standard) */
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%230f172a%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 8px;
}

.filter-btn {
    padding: 8px 16px;
    background: var(--brand-blue);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s;
}

.filter-btn:hover {
    background: #334155;
}

.result-count {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        justify-content: space-between;
    }

    .filter-input {
        width: 48%;
    }
}

/* --- MODERN HEADER STYLING --- */
.main-header {
    background: white;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    padding: 0;
    /* Container styrer padding */
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

/* Links i menuen */
.desktop-nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
    padding: 10px 0;
}

.nav-link:hover {
    color: var(--brand-blue);
}

/* --- Dropdown Menu (CSS Only) --- */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    /* Skjult som standard */
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    min-width: 180px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 8px 0;
    z-index: 1001;
}

/* Vis dropdown når musen holder over */
.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.2s ease-in-out;
}

.dropdown-content a {
    color: var(--text-primary);
    padding: 10px 20px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    transition: background 0.1s;
}

.dropdown-content a:hover {
    background-color: #f8fafc;
    color: var(--brand-blue);
}

/* --- Knapper --- */
.login-btn {
    text-decoration: none;
    color: var(--brand-blue);
    font-weight: 600;
    padding: 8px 20px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    transition: all 0.2s;
}

.login-btn:hover {
    border-color: var(--brand-blue);
    background: #f8fafc;
}

.mobile-menu-btn {
    display: none;
    /* Skjult på PC */
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--brand-blue);
    padding: 5px;
}

/* --- Mobil Menu Styling --- */
.mobile-menu {
    display: none;
    /* Skjult til man klikker */
    background: white;
    border-top: 1px solid var(--border-color);
    padding: 10px 0;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu a {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--text-primary);
    border-bottom: 1px solid #f1f5f9;
}

.mobile-divider {
    padding: 15px 20px 5px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

/* --- Responsivitet --- */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    /* Skjul alm. menu på mobil */
    .mobile-menu-btn {
        display: block;
    }

    /* Vis burger knap */
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, 10px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* --- MODERN HEADER (Matches Hero Dark Theme) --- */
.main-header {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 41, 59, 0.95) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    color: #ffffff;
    display: flex;
    align-items: center;
}

.logo span {
    color: #60a5fa;
}

.logo-icon {
    font-size: 1.8rem;
}

.desktop-nav {
    display: flex;
    gap: 25px;
    align-items: center;
}

@media (max-width: 899px) {
    .desktop-nav {
        display: none;
    }
}

.nav-link {
    text-decoration: none;
    color: #cbd5e1;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.dropdown {
    position: relative;
    padding-bottom: 10px;
    margin-bottom: -10px;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% + 5px);
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    min-width: 180px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    padding: 8px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1001;
}

/* Usynlig bro der holder dropdown åben når musen bevæger sig ned */
.dropdown-content::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    right: 0;
    height: 15px;
}

.dropdown:hover .dropdown-content,
.dropdown.active .dropdown-content {
    display: block;
}

.dropdown-content a {
    display: block;
    padding: 8px 16px;
    text-decoration: none;
    color: #cbd5e1;
}

.dropdown-content a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.login-btn {
    background: #2563eb;
    color: white;
    padding: 8px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
    background: #3b82f6;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #ffffff;
    padding: 5px;
}

@media (max-width: 899px) {
    .mobile-toggle {
        display: block;
    }
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #1e293b;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    padding: 15px;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu .mobile-link {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 500;
}

.mobile-link:hover {
    color: #ffffff;
}

/* Footer hover effect */
footer a:hover {
    color: #93c5fd;
}

/* --- LIVE FEED VISUALS --- */
.live-toast {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: white;
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 1000;
    transform: translateY(150%);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-left: 4px solid #16a34a;
    max-width: 350px;
}

.live-toast.show {
    transform: translateY(0);
}

.live-toast-img {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: contain;
    background: #f8fafc;
}

.live-toast-content p {
    margin: 0;
    font-size: 0.85rem;
    color: #1e293b;
    line-height: 1.4;
}

.live-toast-content span {
    font-size: 0.75rem;
    color: #64748b;
}

@media (max-width: 600px) {
    .live-toast {
        left: 50%;
        transform: translate(-50%, 150%);
        width: 90%;
        bottom: 20px;
    }

    .live-toast.show {
        transform: translate(-50%, 0);
    }
}

/* ===========================================
   MOBILE OPTIMIZATIONS
   =========================================== */

/* Container padding for mobile */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
}

/* Product Grid - smaller cards on mobile */
@media (max-width: 600px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        padding: 1rem 0;
    }

    .card {
        border-radius: 8px;
    }

    .card-image {
        height: 140px;
        padding: 8px;
    }

    .card-content {
        padding: 0.75rem;
    }

    .card-title {
        font-size: 0.85rem;
        height: 2.4rem;
        line-height: 1.2;
        margin-bottom: 0.25rem;
    }

    .set-number {
        font-size: 0.7rem;
        margin-bottom: 0.25rem;
    }

    .price-container {
        padding-top: 8px;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .price-value {
        font-size: 1.1rem;
    }

    .price-label {
        font-size: 0.65rem;
    }

    .retailer-badge {
        font-size: 0.7rem;
        padding: 2px 6px;
    }

    .popular-badge {
        font-size: 0.65rem;
        padding: 2px 5px;
        top: 5px;
        left: 5px;
    }

    .pieces-badge {
        font-size: 0.65rem;
        padding: 2px 5px;
        bottom: 5px;
        right: 5px;
    }
}



/* Filter bar mobile optimization */
@media (max-width: 768px) {
    .filter-bar {
        padding: 10px 12px;
        gap: 10px;
        border-radius: 8px;
    }

    .filter-group {
        width: 100%;
        flex-wrap: wrap;
    }

    .filter-select {
        flex: 1;
        min-width: 120px;
        font-size: 0.85rem;
        padding: 10px 25px 10px 10px;
    }

    .filter-input {
        width: 70px;
        padding: 8px 10px;
        font-size: 0.85rem;
    }

    .filter-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .result-count {
        width: 100%;
        text-align: center;
        font-size: 0.8rem;
        order: -1;
        padding-bottom: 8px;
        border-bottom: 1px solid var(--border-color);
        margin-bottom: 5px;
    }
}

/* Pagination mobile */
@media (max-width: 600px) {
    .pagination {
        gap: 10px;
        margin-top: 25px;
        padding-top: 15px;
    }

    .page-btn {
        padding: 8px 14px;
        font-size: 0.85rem;
    }

    .page-info {
        font-size: 0.8rem;
    }
}

/* Top Deals section mobile */
@media (max-width: 768px) {
    section.container[style*="margin-top: 50px"] {
        margin-top: 30px !important;
        margin-bottom: 10px !important;
    }

    section.container h2 {
        font-size: 1.2rem !important;
    }

    section.container a[style*="background-color: #16a34a"] {
        padding: 6px 14px !important;
        font-size: 0.85rem !important;
    }
}

/* Footer mobile */
@media (max-width: 768px) {
    footer {
        padding: 35px 0 25px !important;
        margin-top: 40px !important;
    }

    footer h4 {
        font-size: 1rem !important;
        margin-bottom: 10px !important;
    }

    footer p,
    footer a,
    footer li {
        font-size: 0.85rem !important;
    }
}

/* Trust wrapper on mobile - stack vertically */
@media (max-width: 600px) {
    .trust-wrapper {
        flex-direction: column !important;
        gap: 10px !important;
        align-items: center !important;
    }
}

/* Quick links chips on mobile */
@media (max-width: 600px) {
    .chip {
        padding: 5px 10px;
        font-size: 0.75rem;
    }
}

/* ===========================================
   UX FORBEDRINGER
   =========================================== */

/* --- Loading Skeleton --- */
.skeleton-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.skeleton-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton-content {
    padding: 1.5rem;
}

.skeleton-text {
    height: 14px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 10px;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-text.title {
    height: 20px;
    width: 90%;
    margin-bottom: 15px;
}

.skeleton-text.price {
    height: 24px;
    width: 40%;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* --- Back to Top Button --- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--brand-blue);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #2563eb;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

@media (max-width: 600px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
}

/* --- Infinity Scroll Loading --- */
.infinity-loader {
    display: flex;
    justify-content: center;
    padding: 30px;
    opacity: 0;
    transition: opacity 0.3s;
}

.infinity-loader.loading {
    opacity: 1;
}

.infinity-loader .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top-color: var(--brand-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* --- Pris Alarm Toast --- */
.price-alarm-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #16a34a;
    color: white;
    padding: 15px 25px;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(22, 163, 74, 0.3);
    z-index: 1001;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-alarm-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* --- Pris Alarm Knap på Produkt --- */
.alarm-btn {
    background: none;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alarm-btn:hover {
    border-color: #f59e0b;
    background: #fef3c7;
}

.alarm-btn.active {
    background: #f59e0b;
    border-color: #f59e0b;
    color: white;
}

/* ===========================================
   SØGNING & FILTRERING
   =========================================== */

/* --- Autocomplete Dropdown --- */
.autocomplete-wrapper {
    position: relative;
}

.autocomplete-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
    z-index: 2000;
    max-height: 400px;
    overflow-y: auto;
    display: none;
}

.autocomplete-dropdown.active {
    display: block;
    animation: fadeInUp 0.2s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.autocomplete-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--text-primary);
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover,
.autocomplete-item.active {
    background: #f8fafc;
}

.autocomplete-item img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    border-radius: 6px;
    background: #f8fafc;
}

.autocomplete-item-content {
    flex: 1;
    min-width: 0;
}

.autocomplete-item-title {
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.autocomplete-item-subtitle {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.autocomplete-theme-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #2563eb, #60a5fa);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

/* --- Aktive Filtre Badges --- */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.active-filters:empty {
    display: none;
}

.filter-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e0f2fe;
    color: #0369a1;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    animation: fadeIn 0.2s ease;
}

.filter-badge-remove {
    background: none;
    border: none;
    color: #0369a1;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    padding: 0;
    opacity: 0.7;
    transition: opacity 0.15s;
}

.filter-badge-remove:hover {
    opacity: 1;
}

/* --- Ryd Alle Filtre Knap --- */
.clear-filters-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: 1px dashed var(--border-color);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.clear-filters-btn:hover {
    border-color: #ef4444;
    color: #ef4444;
    background: #fef2f2;
}

/* --- Gemte Søgninger --- */
.saved-searches {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.saved-search-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #cbd5e1;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.saved-search-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.save-search-btn {
    background: rgba(37, 99, 235, 0.2);
    border: 1px solid rgba(37, 99, 235, 0.3);
    color: #60a5fa;
}

.save-search-btn:hover {
    background: #2563eb;
    color: white;
}

/* ===========================================
   ENGAGEMENT FEATURES
   =========================================== */

/* --- Pris Faldet Badge --- */
.price-dropped-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #16a34a, #22c55e);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 4px;
    animation: pulse 2s infinite;
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.4);
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* --- Set af Ugen Sektion --- */
.set-of-week {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
    display: flex;
    gap: 30px;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.set-of-week::before {
    content: '⭐';
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 150px;
    opacity: 0.05;
}

.set-of-week-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: #1e293b;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.set-of-week-image {
    width: 200px;
    height: 200px;
    background: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    flex-shrink: 0;
}

.set-of-week-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.set-of-week-content {
    flex: 1;
    color: white;
}

.set-of-week-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.set-of-week-subtitle {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.set-of-week-price {
    display: flex;
    align-items: baseline;
    gap: 15px;
    margin-bottom: 20px;
}

.set-of-week-current {
    font-size: 2rem;
    font-weight: 800;
    color: #22c55e;
}

.set-of-week-original {
    font-size: 1.1rem;
    color: #64748b;
    text-decoration: line-through;
}

.set-of-week-btn {
    background: #2563eb;
    color: white;
    padding: 12px 30px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.set-of-week-btn:hover {
    background: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

@media (max-width: 768px) {
    .set-of-week {
        flex-direction: column;
        text-align: center;
        padding: 25px 20px;
    }

    .set-of-week-image {
        width: 150px;
        height: 150px;
    }

    .set-of-week-price {
        justify-content: center;
    }
}

/* --- Sammenligning Checkbox --- */
.compare-checkbox-wrapper {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.compare-checkbox {
    display: none;
}

.compare-checkbox-label {
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s;
    color: transparent;
}

.compare-checkbox:checked+.compare-checkbox-label {
    background: #2563eb;
    border-color: #2563eb;
    color: white;
}

.compare-checkbox-label:hover {
    border-color: #2563eb;
    transform: scale(1.1);
}

/* --- Sammenligning Floating Bar --- */
.compare-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    padding: 15px 20px;
    display: none;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.compare-bar.active {
    display: flex;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.compare-bar-items {
    display: flex;
    gap: 10px;
}

.compare-bar-item {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 8px;
    padding: 5px;
    position: relative;
}

.compare-bar-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.compare-bar-item-remove {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 18px;
    height: 18px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 0.7rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.compare-bar-info {
    color: white;
    font-weight: 500;
}

.compare-bar-btn {
    background: #22c55e;
    color: white;
    padding: 10px 25px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.compare-bar-btn:hover {
    background: #16a34a;
}

.compare-bar-clear {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #94a3b8;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    margin-left: 10px;
}

.compare-bar-clear:hover {
    border-color: #ef4444;
    color: #ef4444;
}

/* ============================================
   QUICK WIN UX IMPROVEMENTS
   ============================================ */

/* --- 1. Loading Skeleton Animation --- */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.card-skeleton {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.card-skeleton .skeleton-image {
    height: 240px;
    background: #f8fafc;
}

.card-skeleton .skeleton-content {
    padding: 1.5rem;
}

.card-skeleton .skeleton-title {
    height: 20px;
    margin-bottom: 10px;
    width: 80%;
}

.card-skeleton .skeleton-text {
    height: 14px;
    margin-bottom: 8px;
    width: 60%;
}

.card-skeleton .skeleton-price {
    height: 28px;
    width: 40%;
    margin-top: 15px;
}

/* --- 2. Smooth Scroll --- */
html {
    scroll-behavior: smooth;
}

/* Target offset for sticky header */
[id] {
    scroll-margin-top: 80px;
}

/* --- 3. Sticky Mobile CTA Button --- */
.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 12px 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 999;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.sticky-cta.visible {
    transform: translateY(0);
}

.sticky-cta-info {
    flex: 1;
    min-width: 0;
}

.sticky-cta-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--price-green);
}

.sticky-cta-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.sticky-cta .btn-buy {
    padding: 14px 24px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .sticky-cta {
        display: flex;
    }
}

/* --- 4. Toast Notifications --- */
.toast-container {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: #0f172a;
    color: white;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.95rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: toastIn 0.3s ease, toastOut 0.3s ease 2.7s forwards;
    pointer-events: auto;
}

.toast-success {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
}

.toast-info {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.toast-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.toast-icon {
    font-size: 1.2rem;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes toastOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateY(-10px) scale(0.9);
    }
}

/* --- 5. Recently Viewed Section --- */
.recently-viewed {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
}

.recently-viewed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.recently-viewed-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brand-blue);
    display: flex;
    align-items: center;
    gap: 8px;
}

.recently-viewed-clear {
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 6px;
    transition: all 0.2s;
}

.recently-viewed-clear:hover {
    background: #fee2e2;
    color: #dc2626;
}

.recently-viewed-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

@media (max-width: 768px) {
    .recently-viewed-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.recently-viewed-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    padding: 15px;
    border-radius: 12px;
    background: #f8fafc;
    transition: all 0.2s;
}

.recently-viewed-item:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

.recently-viewed-item img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 10px;
}

.recently-viewed-item-title {
    font-size: 0.8rem;
    color: var(--text-primary);
    text-align: center;
    font-weight: 500;
    line-height: 1.3;
    max-height: 2.6em;
    overflow: hidden;
}

.recently-viewed-item-price {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--price-green);
    margin-top: 5px;
}

/* Force 4 columns on desktop for Drops and Savings grids */
@media (min-width: 1024px) {

    #grid-drops .grid,
    #grid-savings .grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* --- Fase 1 Quick Wins: Button Click Feedback --- */
a.clicked {
    opacity: 0.8;
    transform: scale(0.98);
    transition: all 0.1s ease;
}

/* --- Fase 1 Quick Wins: Sticky Price Alert CTA (Mobile) --- */
.sticky-alert-mobile {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #16a34a;
    padding: 14px 20px;
    z-index: 1000;
    display: none;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.sticky-alert-mobile-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 600px;
    margin: 0 auto;
    gap: 12px;
}

.sticky-alert-mobile-text {
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    flex: 1;
}

.sticky-alert-mobile-text small {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.9;
    margin-top: 2px;
}

.sticky-alert-mobile-btn {
    background: white;
    color: #16a34a;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.2s;
    min-height: 44px;
    /* Touch-friendly */
}

.sticky-alert-mobile-btn:active {
    transform: scale(0.95);
}

@media (max-width: 768px) {
    .sticky-alert-mobile {
        display: block;
    }
}

@media (min-width: 769px) {
    .sticky-alert-mobile {
        display: none !important;
    }
}

/* === FASE 3.2: Mobile/Desktop Social Proof Toggle === */
.mobile-only {
    display: none;
}

.desktop-only {
    display: flex;
}

@media (max-width: 768px) {
    .mobile-only {
        display: flex;
    }

    .desktop-only {
        display: none;
    }

    .social-proof-badge-mobile {
        padding: 8px 14px;
        background: #fef3c7;
        border: 1px solid #fbbf24;
        border-radius: 8px;
        font-size: 0.9rem;
        font-weight: 600;
        color: #92400e;
    }

    /* === FASE 3.4: Touch Targets 48px minimum === */
    .buy-btn-large {
        padding: 20px 18px !important;
        min-height: 48px;
    }

    .shop-row .btn-buy {
        padding: 12px 16px !important;
        min-height: 48px;
    }

    .sticky-cta .btn-buy {
        padding: 17px 24px !important;
        min-height: 48px;
    }

    /* === FASE 3.6: Specs Grid Compression - Vis kun 2 specs === */
    .specs-grid .spec-item:nth-child(n+3) {
        display: none !important;
    }

    /* === FASE 3.7: Hide Secondary Actions === */
    .dual-action-buttons {
        display: none !important;
    }

    /* === FASE 3.8: Price Enhancement - Bigger and bolder === */
    .current-price-large {
        font-size: 3.2rem !important;
        font-weight: 900 !important;
        color: #15803d !important;
    }

    /* === FASE 3.5: Progressive Retailer Disclosure === */
    /* Hide shops 4+ on mobile initially */
    .shop-row.mobile-hidden {
        display: none;
    }

    /* Show "Se flere" button on mobile */
    #expand-shops-btn {
        display: flex !important;
    }

    /* Hide overflow shops initially */
    #hidden-shops {
        display: none;
    }
}

/* Desktop: Show shop 4, hide shops 5+, show expand button */
@media (min-width: 769px) {
    .shop-row.mobile-hidden {
        display: flex !important;
    }

    #expand-shops-btn {
        display: flex !important;
    }

    #hidden-shops {
        display: none;
    }
}

/* --- SAMMENLIGN.PHP (MIN SAMLING) STYLES --- */
.collection-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.collection-header {
    text-align: center;
    margin-bottom: 50px;
}

.collection-header h1 {
    font-size: 2.5rem;
    color: var(--brand-blue);
    margin-bottom: 10px;
}

.collection-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.tabs-container {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
    flex-wrap: wrap;
}

.tab-btn {
    padding: 15px 30px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-btn:hover {
    color: var(--brand-blue);
}

.tab-btn.active {
    color: var(--brand-blue);
    border-bottom-color: var(--brand-blue);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.product-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.product-image-container {
    aspect-ratio: 1;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

.product-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.remove-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    transition: all 0.2s;
    z-index: 10;
}

.product-card:hover .remove-btn {
    opacity: 1;
}

.remove-btn:hover {
    background: rgba(220, 38, 38, 1);
    transform: scale(1.1);
}

.product-info {
    padding: 15px;
}

.product-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.product-title {
    font-weight: 600;
    color: var(--brand-blue);
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.product-price {
    font-weight: 700;
    color: var(--price-green);
    font-size: 1.1rem;
}

.product-specs {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-state-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    opacity: 0.3;
}

.empty-state h2 {
    color: var(--text-secondary);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.empty-state-btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--brand-blue);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s;
}

.empty-state-btn:hover {
    background: #1e3a5f;
    transform: translateY(-2px);
}

.collection-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--brand-blue);
    margin-bottom: 5px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .collection-header h1 {
        font-size: 2rem;
    }

    .tabs-container {
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .tab-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
        white-space: nowrap;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .product-info {
        padding: 10px;
    }

    .product-title {
        font-size: 0.9rem;
    }

    .product-price {
        font-size: 1rem;
    }
}

/* --- PRODUCT.PHP STYLES --- */
.breadcrumb {
    margin: 20px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--brand-blue);
    text-decoration: none;
    font-weight: 500;
}

.product-hero {
    background: white;
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-sm);
}

.hero-image-box {
    flex: 1;
    min-width: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 12px;
    min-height: 350px;
    overflow: hidden;
}

.hero-image-box img {
    width: 100%;
    height: 100%;
    max-height: 500px;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.hero-image-box:hover img {
    transform: scale(1.05);
}

.hero-info {
    flex: 1.5;
    min-width: 300px;
}

.shops-container {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    background: white;
}

.shop-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.1s;
}

.shop-row:last-child {
    border-bottom: none;
}

.shop-row:hover {
    background: #f8fafc;
}

.stock-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.dot.green {
    background: #22c55e;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

.dot.red {
    background: #ef4444;
}

.buy-btn {
    background: var(--price-green);
    color: white;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.2s;
}

.buy-btn:hover {
    background: #16a34a;
    transform: translateY(-1px);
}

.buy-btn.secondary {
    background: white;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.shop-action-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.btn-buy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--price-green);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
    min-width: 130px;
}

.btn-buy:hover {
    background: #16a34a;
    transform: translateY(-1px);
}

.btn-buy.secondary {
    background: white;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-buy.secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.btn-buy .btn-price {
    font-size: 1.2em;
    font-weight: 800;
}

.btn-buy .arrow {
    margin-left: 8px;
    font-size: 1.2em;
}

.stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
}

.stock-badge.in-stock {
    color: #16a34a;
}

.stock-badge.out-of-stock {
    color: #ef4444;
}

.shop-logo-wrapper {
    width: 45px;
    height: 45px;
    background: #f1f5f9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--brand-blue);
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-right: 12px;
}

.shop-info-col {
    flex: 1;
    min-width: 0;
}

.verified-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: #3b82f6;
    color: white;
    border-radius: 50%;
    font-size: 0.7rem;
    margin-left: 6px;
}

/* New layout classes */
.shop-left-section {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    gap: 8px;
}

.shop-name-row {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.shop-name {
    white-space: nowrap;
}

.shop-meta-row {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.shop-badges-col {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    padding-left: 12px;
}

.best-price-badge {
    background: #16a34a;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    white-space: nowrap;
}

.shop-action-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* Hide mobile stock badge on desktop - only visible on mobile */
.stock-badge-mobile {
    display: none;
    font-size: 0.85rem;
    font-weight: 600;
    color: #16a34a;
    align-items: center;
}

.stock-badge-mobile.in-stock {
    color: #16a34a;
}

.stock-badge-mobile.out-of-stock {
    color: #ef4444;
}

.badge-row {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

footer a:hover {
    color: #93c5fd !important;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.spec-item {
    background: #f8fafc;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
}

.spec-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.spec-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brand-blue);
}

.related-products {
    margin-bottom: 30px;
}

.price-history-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.price-history-section canvas {
    max-height: 250px;
}

.price-chart-container {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.price-chart-container::-webkit-scrollbar {
    height: 6px;
}

.price-chart-container::-webkit-scrollbar-track {
    background: transparent;
}

.price-chart-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

@media (max-width: 768px) {
    .related-products {
        display: none;
    }

    .price-history-section {
        padding: 15px;
    }

    .price-history-section canvas {
        max-height: 200px;
    }

    .price-stats {
        gap: 12px !important;
    }

    .price-stats>div {
        flex: 1;
        min-width: 80px;
        text-align: center;
    }

    .price-stats>div span {
        font-size: 0.75rem !important;
    }

    .price-stats>div>div {
        font-size: 1rem !important;
    }

    .price-chart-container {
        margin: 0 -15px;
        padding: 0 15px;
    }

    h2 {
        font-size: 1.2rem !important;
    }

    /* Fix shop rows overflow on mobile */
    .shops-container {
        overflow: hidden;
    }

    .shop-row {
        flex-wrap: wrap;
        gap: 10px;
        padding: 12px 15px;
    }

    /* Hide logo on mobile to save space */
    .shop-logo-wrapper {
        display: none !important;
    }

    /* Hide desktop badges column on mobile */
    .desktop-only {
        display: none !important;
    }

    /* Show mobile stock badge on mobile */
    .stock-badge-mobile {
        display: flex !important;
    }

    /* Row 1: Shop name (left) + Tjekket (right) */
    .shop-left-section {
        width: 100%;
    }

    .shop-info-col {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        gap: 8px;
    }

    .shop-name-row {
        font-size: 1rem !important;
        display: inline-flex;
        align-items: center;
    }

    .shop-meta-row {
        font-size: 0.8rem !important;
        margin-top: 0 !important;
        display: inline-flex;
        white-space: nowrap;
    }

    /* Row 2: Stock + Buy button MUST stay on same line */
    .shop-action-row {
        width: 100%;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .stock-badge-mobile {
        display: inline-flex !important;
        flex-shrink: 0;
        font-size: 0.85rem !important;
    }

    .btn-buy {
        display: inline-flex !important;
        flex: 0 1 auto !important;
        justify-content: center;
        padding: 10px 16px !important;
    }

    .btn-buy .btn-price {
        font-size: 1rem !important;
    }

    .btn-buy .arrow {
        font-size: 1rem !important;
    }

    /* 1. Horizontal Scroll Badges */
    .hero-info .badge-row {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 8px;
        margin-bottom: 10px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /* Firefox */
    }

    .hero-info .badge-row::-webkit-scrollbar {
        display: none;
    }

    /* Chrome/Safari */
    .hero-info .badge {
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* 2. Smaller Title */
    .hero-info h1 {
        font-size: 1.5rem !important;
        margin: 5px 0 10px !important;
    }

    /* 3. Compact Specs Grid */
    .specs-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        margin: 15px 0 !important;
    }

    .spec-item {
        padding: 8px !important;
    }

    .spec-label {
        font-size: 0.75rem !important;
    }

    .spec-value {
        font-size: 0.9rem !important;
    }

    /* 4. Tighter Description */
    .hero-info>div[style*="background: #f8fafc"] {
        padding: 15px !important;
        margin-top: 15px !important;
    }

    #desc-container {
        max-height: 3.6em !important;
        /* Show less initially on mobile */
    }
}

/* Redesigned Price Box Styles */
.price-box-container {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    padding: 24px;
    border-radius: 16px;
    margin-top: 25px;
    border: 1px solid #bbf7d0;
    position: relative;
    overflow: hidden;
}

.scarcity-alert-row {
    margin-bottom: 0;
    margin-right: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    background: transparent;
    padding: 8px 0;
    border-radius: 8px;
    width: auto;
}

.price-action-wrapper {
    display: flex;
    justify-content: flex-start;
    /* Default (desktop): Align left */
    align-items: center;
    /* Center vertically */
    gap: 40px;
    /* Gap between price and button */
}

.price-col {
    display: flex;
    flex-direction: column;
}

.current-price-large {
    font-size: 2.5rem;
    font-weight: 800;
    color: #166534;
    line-height: 1.1;
    letter-spacing: -1px;
}

.price-label-small {
    font-size: 0.85rem;
    color: #15803d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.buy-btn-large {
    padding: 14px 40px;
    /* Larger padding on desktop */
    font-size: 1.2rem;
    background: #16a34a;
    color: white;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 6px -1px rgba(22, 163, 74, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.buy-btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(22, 163, 74, 0.5);
    background: #15803d;
}

/* Savings Badge */
/* Savings Badge */
.savings-badge {
    display: inline-block;
    background: #dcfce7;
    color: #166534;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-top: 6px;
}

.savings-badge.orange {
    background: transparent;
    color: #c2410c;
    padding-left: 0;
    border: 1px solid #c2410c;
    /* Optional: keep border if text only? Or just text. User asked for match background set. */
    border: none;
}

/* Trust Signal */
.trust-signal {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 6px;
    text-align: right;
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: flex-end;
}

@media (max-width: 768px) {
    .price-action-wrapper {
        flex-direction: column;
        align-items: stretch;
        /* Full width button */
        gap: 20px;
    }

    .buy-btn-large {
        justify-content: center;
        width: 100%;
        padding: 18px;
        font-size: 1.2rem;
    }

    .current-price-large {
        font-size: 2.8rem;
    }

    .scarcity-alert-row {
        display: flex;
        /* Full width on mobile */
        justify-content: flex-start;
        width: 100%;
    }

    .price-col {
        align-items: flex-start;
    }

    .trust-signal {
        justify-content: center;
    }

    /* Dual buttons mobile fix */
    .dual-action-buttons {
        flex-direction: column;
        gap: 10px;
    }
}

/* Dual Action Buttons (Desktop defaults) */
.dual-action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.action-btn-secondary {
    flex: 1;
    padding: 15px 20px;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    text-align: center;
    font-weight: 600;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.action-btn-secondary:hover {
    background: #e2e8f0;
}