:root {
    --dealdii-orange: #f4510b;
    --dealdii-orange-dark: #c83f08;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Keep the supplied 220x70 logo at its requested height while constraining
   the visual width so the search/navigation remain usable. */
.brand {
    flex: 0 0 220px;
    width: 220px;
    height: 68px;
    overflow: hidden;
}

.brand-logo {
    display: block;
    width: auto;
    height: 70px;
    max-width: 220px;
    object-fit: contain;
    object-position: left center;
}

.footer-logo {
    width: min(230px, 38vw);
    height: 72px;
    object-fit: contain;
    object-position: left center;
}

.admin-brand {
    overflow: hidden;
}

.admin-logo {
    width: 176px;
    height: 70px;
    object-fit: contain;
    object-position: left center;
}

.hero-slideshow {
    padding: 0;
    background: #fff;
    overflow: hidden;
}

.hero-carousel {
    position: relative;
    width: 100%;
    max-width: 1900px;
    margin: 0 auto;
    aspect-ratio: 1900 / 300;
    min-height: 120px;
    overflow: hidden;
    background: #fff7ef;
}

.hero-slides,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    display: block;
    opacity: 0;
    pointer-events: none;
    transition: opacity .45s ease;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.hero-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-carousel-control {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: #142846cc;
    color: #fff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background .2s ease, transform .2s ease;
}

.hero-carousel-control:hover,
.hero-carousel-control:focus-visible {
    background: var(--dealdii-orange);
    transform: translateY(-50%) scale(1.05);
}

.hero-carousel-prev { left: 14px; }
.hero-carousel-next { right: 14px; }

.hero-carousel-dots {
    position: absolute;
    right: 0;
    bottom: 12px;
    left: 0;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 7px;
}

.hero-carousel-dots button {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 1px solid #142846aa;
    border-radius: 999px;
    background: #fff;
    cursor: pointer;
}

.hero-carousel-dots button.is-active {
    width: 24px;
    border-color: var(--dealdii-orange);
    background: var(--dealdii-orange);
}

.mobile-buy-bar { display: none; }

.budget-shortcuts { margin-top: 22px; }
.budget-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.budget-links a { display: grid; gap: 4px; padding: 15px 16px; border: 1px solid #f6c7d8; border-radius: 16px; background: linear-gradient(135deg, #fff 0%, #fff7fb 100%); color: var(--dealdii-navy); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.budget-links a:hover, .budget-links a:focus-visible { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(20,40,70,.10); }
.budget-links strong { font-size: 17px; }
.budget-links small { color: #6b7280; }

.comparison-facts {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px !important;
}
.product-knowledge .comparison-facts > div {
    display: block;
    padding: 12px;
    border: 1px solid #f1e2d4;
    border-radius: 10px;
    background: #fff;
}
.product-knowledge .comparison-facts dt { margin-bottom: 6px; }
.product-knowledge .comparison-facts dd { font-size: 14px; line-height: 1.55; }

@media (max-width: 800px) {
    .brand {
        flex: 0 0 76px;
        flex-basis: 76px;
        width: 76px;
        min-width: 0;
        height: 52px;
    }

    .brand-logo {
        width: 76px;
        height: 52px;
        max-width: 150px;
    }

    .nav {
        gap: 8px;
    }

    .nav form {
        min-width: 0;
    }

    .nav input {
        min-width: 0;
        padding-right: 8px;
        padding-left: 8px;
    }

    .nav button {
        flex: 0 0 auto;
        padding-right: 12px;
        padding-left: 12px;
        white-space: nowrap;
    }

    .footer-logo {
        width: 145px;
        height: 58px;
    }

    .hero-carousel {
        min-height: 0;
    }

    .hero-carousel-control {
        width: 30px;
        height: 30px;
        font-size: 24px;
    }

    .hero-carousel-prev { left: 8px; }
    .hero-carousel-next { right: 8px; }
    .hero-carousel-dots { bottom: 7px; }

    .mobile-buy-bar {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 20;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 10px max(12px, env(safe-area-inset-left)) calc(10px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-right));
        background: rgba(255,255,255,.96);
        border-top: 1px solid #e5e7eb;
        box-shadow: 0 -5px 18px rgba(20,40,70,.12);
        backdrop-filter: blur(8px);
    }

    .mobile-buy-bar span { display: grid; gap: 2px; min-width: 0; }
    .mobile-buy-bar strong { color: var(--dealdii-navy); font-size: 18px; }
    .mobile-buy-bar small { color: #6b7280; font-size: 10px; }
    .mobile-buy-bar .buy { flex: 0 0 auto; padding: 11px 15px; border-radius: 999px; white-space: nowrap; }
    .detail-page { padding-bottom: 82px; }
    .budget-links { grid-template-columns: 1fr; }
    .comparison-facts { grid-template-columns: 1fr; }
}
