/* ═══════════════════════════════════════════════════════════════
   Price Detector — PriceRunner-style Design System
   Clean white, minimal color, generous whitespace
   ═══════════════════════════════════════════════════════════════ */

:root {
    /* ── Brand ─────────────────────────────────────── */
    --dh-cta:        #f12545;
    --dh-cta-dark:   #d91e3c;
    --dh-cta-100:    #fef2f4;
    --dh-navy:       #0E112B;
    --dh-navy-700:   #1a1e3e;
    --dh-emerald:    #10b981;
    --dh-emerald-700:#047857;
    --dh-sky:        #0ea5e9;
    --dh-red:        #ef4444;

    /* ── Legacy aliases (for ease of migration) ──── */
    --dh-orange:     var(--dh-cta);
    --dh-orange-600: var(--dh-cta-dark);
    --dh-orange-100: var(--dh-cta-100);

    /* ── Neutrals ──────────────────────────────────── */
    --dh-ink:        var(--dh-navy);
    --dh-ink-light:  #3a3d54;
    --dh-slate:      #6b7280;
    --dh-mist:       #f7f8fa;
    --dh-white:      #ffffff;
    --dh-border:     #e5e7eb;

    /* ── Elevations ────────────────────────────────── */
    --dh-shadow-sm:  0 1px 2px rgba(0,0,0,0.04);
    --dh-shadow:     0 1px 3px rgba(0,0,0,0.05), 0 4px 12px rgba(0,0,0,0.03);
    --dh-shadow-lg:  0 4px 12px rgba(0,0,0,0.04), 0 12px 28px rgba(0,0,0,0.06);

    /* ── Radii ─────────────────────────────────────── */
    --dh-radius:     12px;
    --dh-radius-sm:  8px;
    --dh-radius-xs:  6px;
}

/* ══════════════════════════════════════════════════════
   GLOBAL RESET
   ══════════════════════════════════════════════════════ */

html { background: var(--dh-white); }

.dh-body {
    font-family: "Inter", system-ui, -apple-system, sans-serif;
    background: var(--dh-white);
    color: var(--dh-ink);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}

/* Edgier typography */
h1, h2, h3, h4, h5, h6,
.page-title,
.deals-title,
.home-cat-title,
.pdp-title,
.pdp-tab,
.footer-wordmark,
.dh-wordmark {
    font-family: "Space Grotesk", "Inter", system-ui, -apple-system, sans-serif;
}

h1, .page-title { letter-spacing: -0.04em; }

a { color: var(--dh-ink); text-decoration: none; transition: color 0.12s; }
a:hover { color: var(--dh-cta); }

::selection { background: rgba(241,37,69,0.10); }

.dh-main { min-height: 60vh; }

/* Minimal, non-intrusive cookie declaration */
.pd-cookie-notice {
    position: fixed;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%) translateY(8px);
    width: min(780px, calc(100% - 20px));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    padding: 0.45rem 0.6rem 0.45rem 0.75rem;
    border: 1px solid var(--dh-border);
    border-radius: 999px;
    background: rgba(255,255,255,0.96);
    box-shadow: var(--dh-shadow);
    z-index: 1200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.16s ease, transform 0.16s ease;
}
.pd-cookie-notice.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}
.pd-cookie-text {
    font-size: 0.78rem;
    color: var(--dh-slate);
    line-height: 1.35;
}
.pd-cookie-text a {
    text-decoration: underline;
    text-underline-offset: 2px;
}
.pd-cookie-ok {
    flex-shrink: 0;
    border-radius: 999px;
    padding: 0.22rem 0.75rem;
    font-size: 0.72rem;
}

/* Accessibility helpers */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.dh-skip-link {
    position: absolute;
    left: 0.75rem;
    top: 0.5rem;
    z-index: 2000;
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
    background: var(--dh-ink);
    color: #fff !important;
    font-weight: 800;
    transform: translateY(-200%);
    transition: transform 0.15s ease;
}
.dh-skip-link:focus,
.dh-skip-link:focus-visible {
    transform: translateY(0);
}

/* Strong, consistent keyboard focus */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible {
    outline: 3px solid rgba(241,37,69,0.55);
    outline-offset: 2px;
}

/* ── Content container (wider, PriceRunner-style) ── */
.dh-container {
    width: 100%;
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

/* ── Override Bootstrap defaults ──────────────── */

.btn {
    border-radius: var(--dh-radius-xs);
    font-weight: 600;
    letter-spacing: -0.01em;
    padding: 0.45rem 1rem;
    border: 0;
    transition: all 0.12s ease;
}

.btn-primary,
.btn-primary:active {
    background: var(--dh-cta) !important;
    border-color: var(--dh-cta) !important;
    color: #fff !important;
}
.btn-primary:hover,
.btn-primary:focus {
    background: var(--dh-cta-dark) !important;
    border-color: var(--dh-cta-dark) !important;
}

.btn-outline-primary {
    border: 1.5px solid var(--dh-border) !important;
    color: var(--dh-ink) !important;
    background: transparent !important;
}
.btn-outline-primary:hover {
    border-color: var(--dh-cta) !important;
    color: var(--dh-cta) !important;
    background: var(--dh-cta-100) !important;
}

.form-control, .form-select {
    border-radius: var(--dh-radius-xs);
    border: 1.5px solid var(--dh-border);
    font-size: 0.92rem;
}
.form-control:focus, .form-select:focus {
    border-color: var(--dh-cta);
    box-shadow: 0 0 0 2px rgba(241,37,69,0.10);
}

.badge { font-weight: 600; border-radius: 4px; padding: 0.25em 0.5em; }

.text-brand { color: var(--dh-cta) !important; }

/* In-content category links (AI description / product name) — brand red, underlined */
.pd-cat-link {
    color: var(--dh-cta);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.pd-cat-link:hover {
    color: var(--dh-cta-dark);
    text-decoration: underline;
}

/* ══════════════════════════════════════════════════════
   HEADER — Single white nav bar
   ══════════════════════════════════════════════════════ */

.dh-header {
    background: var(--dh-white);
    border-bottom: 1px solid var(--dh-border);
    position: sticky;
    top: 0;
    z-index: 1030;
}

.dh-header-inner {
    display: flex;
    align-items: center;
    gap: 2rem;
    height: 60px;
}

/* Logo */
.dh-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none !important;
}
.dh-logo:hover { opacity: 0.85; }

.dh-wordmark {
    color: var(--dh-ink);
    font-weight: 900;
    letter-spacing: -0.03em;
    font-size: 1.15rem;
    line-height: 1;
}
.dh-wordmark-sub {
    margin-left: 0.6rem;
    padding-left: 0.6rem;
    border-left: 1px solid var(--dh-border);
    color: var(--dh-slate);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    line-height: 1;
}

/* SVG logo (no hardcoded width/height in markup) */
.brand-logo {
    display: block;
    height: 34px;
    width: auto;
}
.brand-logo-offcanvas { height: 28px; }
.brand-logo-footer { height: 38px; }

.logo-img {
    display: block;
    width: auto;
    object-fit: contain;
}
.logo-img-nav { height: 36px; }
.logo-img-footer { height: 32px; }

/* ── Desktop nav links ───────────────────────────── */

.dh-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.dh-nav-link {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.45rem 0.75rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--dh-ink);
    text-decoration: none !important;
    border-radius: var(--dh-radius-xs);
    transition: background 0.12s, color 0.12s;
    white-space: nowrap;
}
.dh-nav-link:hover {
    background: var(--dh-mist);
    color: var(--dh-ink);
}

.dh-caret {
    font-size: 0.6rem;
    opacity: 0.5;
    transition: transform 0.2s;
}

/* ── Category dropdown ───────────────────────────── */

.dh-nav-dropdown {
    position: relative;
}

.dh-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 280px;
    background: var(--dh-white);
    border: 1px solid var(--dh-border);
    border-radius: var(--dh-radius);
    box-shadow: var(--dh-shadow-lg);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: opacity 0.15s, transform 0.15s, visibility 0s 0.15s;
    z-index: 1050;
}

.dh-nav-dropdown:hover > .dh-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.15s, transform 0.15s, visibility 0s 0s;
}
.dh-nav-dropdown:focus-within > .dh-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.15s, transform 0.15s, visibility 0s 0s;
}
.dh-nav-dropdown:hover .dh-caret { transform: rotate(180deg); }

.dh-dd-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem 0.75rem;
    border-radius: var(--dh-radius-xs);
    color: var(--dh-ink);
    text-decoration: none !important;
    font-size: 0.88rem;
    font-weight: 500;
    transition: background 0.08s;
}
.dh-dd-link:hover {
    background: var(--dh-mist);
    color: var(--dh-cta);
}
.dh-dd-name { flex: 1; }
.dh-dd-arrow { font-size: 0.6rem; opacity: 0.3; }

/* ── Search box ──────────────────────────────────── */

.dh-search-wrap {
    flex: 1;
    min-width: 0;
    display: flex;
    justify-content: flex-end;
}

.dh-search-box {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 420px;
    border-radius: 999px;
    background: var(--dh-mist);
    border: 1.5px solid var(--dh-border);
    transition: border-color 0.15s, box-shadow 0.15s;
    padding: 0 0.25rem 0 1rem;
}
.dh-search-box:focus-within {
    border-color: var(--dh-cta);
    box-shadow: 0 0 0 2px rgba(241,37,69,0.08);
    background: var(--dh-white);
}

.dh-search-icon {
    color: var(--dh-slate);
    font-size: 0.88rem;
    flex-shrink: 0;
}

.dh-search-input {
    flex: 1;
    border: 0;
    background: transparent;
    padding: 0.5rem 0.5rem;
    font-size: 0.88rem;
    color: var(--dh-ink);
    outline: none;
    min-width: 0;
}
.dh-search-input::placeholder { color: var(--dh-slate); }

.dh-search-go {
    flex-shrink: 0;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--dh-cta);
    color: #fff;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.12s;
}
.dh-search-go:hover { background: var(--dh-cta-dark); }

/* ── Mobile buttons ──────────────────────────────── */

.dh-mobile-actions {
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    margin-left: auto; /* push mobile actions to the far right */
}

.dh-mob-btn {
    width: 40px; height: 40px;
    border-radius: var(--dh-radius-xs);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    color: var(--dh-ink);
    font-size: 1.15rem;
    cursor: pointer;
    transition: all 0.12s;
    position: relative; /* anchor absolute badge on mobile basket */
}
.dh-mob-btn:hover { background: var(--dh-mist); }

/* Basket button (header) */
.dh-basket {
    margin-left: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
    border: 1px solid var(--dh-border);
    background: var(--dh-white);
    color: var(--dh-ink);
    font-weight: 800;
    font-size: 0.88rem;
    text-decoration: none !important;
    transition: background 0.12s, border-color 0.12s;
    position: relative;
}
.dh-basket:hover {
    background: var(--dh-mist);
    border-color: rgba(0,0,0,0.12);
    color: var(--dh-ink);
}
.dh-basket i { font-size: 1.05rem; color: var(--dh-cta); }
.dh-basket-text { font-weight: 900; }
.dh-basket-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--dh-cta);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1;
    margin-left: 0.25rem;
}
.dh-basket-badge-mob {
    position: absolute;
    top: 4px;
    right: 2px;
    transform: translate(25%, -25%);
    min-width: 18px;
    height: 18px;
    font-size: 0.68rem;
    padding: 0 5px;
}

/* ── Mobile search slide-down ────────────────────── */

.dh-mob-search-bar {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease, padding 0.25s ease;
    padding: 0;
    background: var(--dh-white);
    border-top: 1px solid var(--dh-border);
}
.dh-mob-search-bar.open {
    max-height: 72px;
    padding: 0.5rem 0;
}
.dh-mob-search-bar .dh-search-box {
    max-width: 100%;
}

/* ══════════════════════════════════════════════════════
   MOBILE OFFCANVAS MENU
   ══════════════════════════════════════════════════════ */

.dh-offcanvas {
    max-width: 320px;
    background: var(--dh-white);
    border-left: 0 !important;
}

.dh-offcanvas-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--dh-border);
}

.dh-offcanvas-body {
    padding: 0.5rem 0;
}

.dh-mobile-nav {
    display: flex;
    flex-direction: column;
}

.dh-mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 1.25rem;
    color: var(--dh-ink);
    text-decoration: none !important;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.1s;
}
.dh-mobile-nav-link:hover {
    background: var(--dh-mist);
}
.dh-mobile-nav-link i { font-size: 1rem; width: 1.2rem; text-align: center; opacity: 0.5; }

.dh-mobile-divider {
    height: 1px;
    background: var(--dh-border);
    margin: 0.5rem 1.25rem;
}

.dh-mobile-section-title {
    padding: 0.5rem 1.25rem 0.25rem;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--dh-slate);
}

.dh-mobile-cat-header {
    display: flex;
    align-items: center;
}
.dh-mobile-cat-header .dh-mobile-nav-link { flex: 1; }

.dh-mobile-expand {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    color: var(--dh-slate);
    font-size: 0.75rem;
    cursor: pointer;
    transition: color 0.12s, transform 0.2s;
}
.dh-mobile-expand:hover { color: var(--dh-ink); }
.dh-mobile-expand[aria-expanded="true"] { transform: rotate(180deg); }

.dh-mobile-sub-list {
    padding: 0 0 0.25rem 2.5rem;
}

.dh-mobile-sub-link {
    display: block;
    padding: 0.4rem 1rem;
    color: var(--dh-slate);
    text-decoration: none !important;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: var(--dh-radius-xs);
    transition: color 0.1s, background 0.1s;
}
.dh-mobile-sub-link:hover {
    color: var(--dh-cta);
    background: var(--dh-mist);
}

/* ══════════════════════════════════════════════════════
   HERO — Contained rounded card
   ══════════════════════════════════════════════════════ */

.hero-wrap {
    padding: 7.75rem 0 11.75rem;
}

/* Bold, full-navy shaped header (homepage) */
.hero-wrap-shaped {
    background: var(--dh-navy);
    position: relative;
    overflow: hidden;
}

/* Edgy curve / weird shape at the bottom */
.hero-wrap-shaped::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 140px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 140' preserveAspectRatio='none'%3E%3Cpath d='M0 86 C 220 140 420 30 680 70 C 960 115 1120 10 1440 74 L1440 140 L0 140 Z' fill='%23ffffff'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    pointer-events: none;
    opacity: 1;
}

/* Add extra boldness and depth */
.hero-wrap-shaped::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(900px 420px at 12% 20%, rgba(241,37,69,0.18), transparent 60%),
        radial-gradient(700px 420px at 78% 30%, rgba(255,255,255,0.06), transparent 55%);
    pointer-events: none;
}

.hero-shell {
    position: relative;
    z-index: 1;
}

.hero-wrap-shaped .hero-card-content h1 {
    color: #fff;
    font-weight: 900;
    letter-spacing: -0.04em;
    text-shadow: 0 10px 32px rgba(0,0,0,0.22);
}

.hero-wrap-shaped .hero-sub {
    color: rgba(255,255,255,0.62);
    max-width: 54ch;
}

.hero-wrap-shaped .hero-search-box {
    box-shadow: 0 18px 50px rgba(0,0,0,0.35);
}

.hero-card {
    background: linear-gradient(135deg, var(--dh-navy) 0%, var(--dh-navy-700) 100%);
    border-radius: 1.25rem;
    padding: 3.5rem 2.5rem;
    position: relative;
    overflow: hidden;
}

/* Hero unique layout */
.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3.5rem;
    align-items: start;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    margin-bottom: 1.1rem;
}
.hero-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--dh-cta);
    box-shadow: 0 0 0 4px rgba(241,37,69,0.18);
}

.hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.75rem;
}
.hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.42rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.75);
    font-weight: 600;
    font-size: 0.8rem;
}
.hero-chip i { color: var(--dh-cta); }

.hero-side { position: relative; padding-top: 0.25rem; }
.hero-metric {
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.04);
    border-radius: 1rem;
    padding: 1.25rem 1.25rem 1rem;
    margin-bottom: 1rem;
}
.hero-metric-label {
    color: rgba(255,255,255,0.6);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.3rem;
}
.hero-metric-value {
    color: #fff;
    font-weight: 900;
    letter-spacing: -0.02em;
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}
.hero-metric-sub {
    color: rgba(255,255,255,0.55);
    font-size: 0.85rem;
    line-height: 1.5;
}
.hero-mini-grid { display: grid; grid-template-columns: 1fr; gap: 0.75rem; }
.hero-mini {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.03);
    border-radius: 1rem;
    padding: 0.9rem 1rem;
}
.hero-mini i {
    width: 36px; height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(241,37,69,0.10);
    color: var(--dh-cta);
    flex-shrink: 0;
}
.hero-mini-title {
    color: rgba(255,255,255,0.92);
    font-weight: 800;
    font-size: 0.9rem;
    margin-bottom: 0.15rem;
}
.hero-mini-sub {
    color: rgba(255,255,255,0.55);
    font-size: 0.82rem;
    line-height: 1.45;
}

/* Subtle decorative circles */
.hero-card::before {
    content: "";
    position: absolute;
    top: -60px; right: -60px;
    width: 240px; height: 240px;
    border-radius: 50%;
    background: rgba(241,37,69,0.06);
}
.hero-card::after {
    content: "";
    position: absolute;
    bottom: -80px; left: 40%;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: rgba(241,37,69,0.04);
}

.hero-card-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.hero-grid .hero-card-content { max-width: none; }

.hero-card h1 {
    color: #fff;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.hero-sub {
    color: rgba(255,255,255,0.55);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}
.hero-sub strong { color: rgba(255,255,255,0.85); }

/* Hero search bar */
.hero-search-box {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 999px;
    padding: 0.25rem 0.3rem 0.25rem 1.25rem;
    max-width: 480px;
}

.hero-search-icon {
    color: var(--dh-slate);
    font-size: 1rem;
    flex-shrink: 0;
    margin-right: 0.5rem;
}

.hero-search-input {
    flex: 1;
    border: 0;
    background: transparent;
    padding: 0.6rem 0.5rem;
    font-size: 0.95rem;
    color: var(--dh-ink);
    outline: none;
    min-width: 0;
}
.hero-search-input::placeholder { color: #9ca3af; }

.hero-search-btn {
    flex-shrink: 0;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--dh-cta);
    color: #fff;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.12s;
}
.hero-search-btn:hover { background: var(--dh-cta-dark); }

/* ══════════════════════════════════════════════════════
   CATEGORY ICON STRIP (homepage)
   ══════════════════════════════════════════════════════ */

.cat-strip {
    padding: 2.25rem 0 1rem;
}

.cat-strip-card {
    background: var(--dh-white);
    border: 1px solid var(--dh-border);
    border-radius: 16px;
    padding: 1.25rem 1.25rem 0.75rem;
    box-shadow: var(--dh-shadow-sm);
}

.cat-strip-title {
    font-family: "Space Grotesk", "Inter", system-ui, -apple-system, sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
    font-size: 1rem;
    color: var(--dh-ink);
    margin-bottom: 0.85rem;
}

.cat-strip-scroll {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
}
.cat-strip-scroll::-webkit-scrollbar { display: none; }

.cat-strip-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    min-width: 92px;
    padding: 0.75rem 0.65rem;
    border-radius: var(--dh-radius);
    text-decoration: none !important;
    color: var(--dh-ink);
    transition: background 0.12s;
    flex-shrink: 0;
    text-align: center;
}
.cat-strip-item:hover {
    background: var(--dh-mist);
    color: var(--dh-ink);
}

.cat-strip-icon {
    width: 52px; height: 52px;
    border-radius: 50%;
    background: var(--dh-mist);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--dh-ink-light);
    transition: background 0.12s, color 0.12s;
}
.cat-strip-item:hover .cat-strip-icon {
    background: var(--dh-cta-100);
    color: var(--dh-cta);
}

.cat-strip-label {
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.25;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* On desktop: wrap nicely instead of scrolling */
@media (min-width: 992px) {
    .cat-strip-scroll {
        overflow-x: visible;
        flex-wrap: wrap;
        padding-bottom: 0;
    }
    .cat-strip-item { min-width: 112px; }
    .cat-strip-label { max-width: 120px; }
}

/* ══════════════════════════════════════════════════════
   DEALS SECTION (homepage)
   ══════════════════════════════════════════════════════ */

.deals-section {
    padding: 1.5rem 0 2rem;
}

.deals-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.deals-title {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--dh-ink);
    margin: 0;
}
.deals-title em { font-style: italic; }

.deals-seeall {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--dh-cta);
}
.deals-seeall:hover { color: var(--dh-cta-dark); }

.deals-scroll {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
}
.deals-scroll::-webkit-scrollbar { display: none; }

.deal-card {
    position: relative;
    flex-shrink: 0;
    width: 180px;
    background: var(--dh-white);
    border: 1px solid var(--dh-border);
    border-radius: var(--dh-radius);
    padding: 0;
    text-decoration: none !important;
    color: var(--dh-ink);
    overflow: hidden;
    transition: box-shadow 0.12s, transform 0.12s;
}
.deal-card:hover {
    box-shadow: var(--dh-shadow);
    transform: translateY(-2px);
    color: var(--dh-ink);
}

/* Make homepage deal grid cards equal height */
.deals-section .row > [class*="col-"] { display: flex; }
.deals-section .deal-card-row { flex: 1; }

.deal-badge {
    position: absolute;
    top: 8px; left: 8px;
    background: var(--dh-cta);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    z-index: 2;
}

.deal-img {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    background: var(--dh-mist);
}
.deal-img img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.deal-price {
    padding: 0.6rem 0.75rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--dh-emerald-700);
}

/* Bigger deal cards (homepage grid) */
.deal-card-row {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem;
}
.deal-img-row {
    width: 112px;
    height: 96px;
    border-radius: 12px;
    flex-shrink: 0;
    overflow: hidden;
    border: 1px solid var(--dh-border);
    background: var(--dh-mist);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.deal-img-row img {
    background: transparent !important;
    border: 0 !important;
    padding: 0.5rem !important;
    height: 100% !important;
}
.deal-body { flex: 1; min-width: 0; }
.deal-name {
    font-weight: 900;
    font-size: 0.95rem;
    color: var(--dh-ink);
    line-height: 1.25;
    margin-bottom: 0.35rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.deal-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.deal-from { font-weight: 900; color: var(--dh-emerald-700); font-size: 0.9rem; }
.deal-ret { color: var(--dh-slate); font-weight: 700; font-size: 0.78rem; }
.deal-go { color: var(--dh-slate); opacity: 0.5; font-size: 0.95rem; }
.deal-card:hover .deal-go { color: var(--dh-cta); opacity: 1; }

/* Home category rows */
.home-cat-row { padding: 2rem 0 0; }
.home-cat-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}
.home-cat-title {
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    margin: 0;
    color: var(--dh-ink);
}
.home-cat-title a { color: var(--dh-cta); }
.home-cat-title a:hover { color: var(--dh-cta-dark); }
.home-cat-more {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--dh-cta);
    white-space: nowrap;
}
.home-cat-more:hover { color: var(--dh-cta-dark); }
.home-prod .product-img { height: 170px; }
.home-prod-title {
    font-size: 0.92rem;
    font-weight: 900;
    letter-spacing: -0.015em;
    line-height: 1.25;
    margin: 0 0 0.5rem 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.home-prod-title a { color: var(--dh-ink); }
.home-prod-title a:hover { color: var(--dh-cta); }
.home-prod-meta { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }

/* ══════════════════════════════════════════════════════
   PAGE TITLES
   ══════════════════════════════════════════════════════ */

.page-title {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--dh-ink);
    margin: 0;
}

.page-prose {
    max-width: 920px;
}
.page-prose h2 {
    margin-top: 1.5rem;
    margin-bottom: 0.6rem;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--dh-ink);
}
.page-prose p, .page-prose li {
    color: var(--dh-ink-light);
    line-height: 1.75;
    font-size: 0.95rem;
}
.page-prose ul { padding-left: 1.1rem; }
.page-updated {
    color: var(--dh-slate);
    font-size: 0.85rem;
    margin-top: 0.75rem;
}

/* ══════════════════════════════════════════════════════
   CATEGORY CARDS (all categories page)
   ══════════════════════════════════════════════════════ */

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--dh-white);
    border: 1px solid var(--dh-border);
    border-radius: var(--dh-radius);
    padding: 1.25rem 0.75rem;
    transition: all 0.12s ease;
    color: var(--dh-ink);
    height: 100%;
}
.category-card:hover {
    box-shadow: var(--dh-shadow);
    border-color: var(--dh-cta);
    color: var(--dh-ink);
}

.category-icon {
    font-size: 1.4rem;
    color: var(--dh-ink-light);
    margin-bottom: 0.5rem;
}
.category-card:hover .category-icon { color: var(--dh-cta); }
.category-name { font-weight: 700; font-size: 0.85rem; line-height: 1.3; }
.category-count { color: var(--dh-slate); font-size: 0.75rem; margin-top: 0.2rem; }

.brand-card .brand-initial {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--dh-mist);
    color: var(--dh-ink);
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

/* (brand favicon styles removed — favicons are for retailers, not brands) */

/* ══════════════════════════════════════════════════════
   CATEGORY SIDEBAR (single category page)
   ══════════════════════════════════════════════════════ */

.cat-sidebar {
    border: 1px solid var(--dh-border);
    border-radius: var(--dh-radius);
    padding: 0.5rem;
    background: var(--dh-white);
}

.cat-sidebar-title {
    padding: 0.4rem 0.75rem 0.2rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--dh-slate);
    font-weight: 700;
}

.cat-sidebar-link {
    display: block;
    padding: 0.5rem 0.75rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--dh-ink-light);
    text-decoration: none !important;
    border-radius: var(--dh-radius-xs);
    transition: background 0.08s, color 0.08s;
}
.cat-sidebar-link:hover {
    background: var(--dh-mist);
    color: var(--dh-ink);
}
.cat-sidebar-link.active {
    background: var(--dh-cta-100);
    color: var(--dh-cta);
    font-weight: 700;
}

/* Subcategory pills scroll wrapper */
.subcat-scroll {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.subcat-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: var(--dh-white);
    border: 1px solid var(--dh-border);
    color: var(--dh-ink-light);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.12s ease;
}
.subcat-pill:hover {
    border-color: var(--dh-cta);
    color: var(--dh-cta);
}

.subcat-name { line-height: 1; }
.subcat-count {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--dh-slate);
    background: var(--dh-mist);
    padding: 0.1rem 0.35rem;
    border-radius: 999px;
}

/* ══════════════════════════════════════════════════════
   PRODUCT CARDS
   ══════════════════════════════════════════════════════ */

.product-card {
    display: flex;
    flex-direction: column;
    background: var(--dh-white);
    border: 1px solid var(--dh-border);
    border-radius: var(--dh-radius);
    overflow: hidden;
    transition: all 0.12s ease;
    height: 100%;
}
.product-card:hover {
    box-shadow: var(--dh-shadow);
    border-color: rgba(0,0,0,0.12);
}

.product-card .product-img,
.product-card .card-img-top {
    height: 180px;
    object-fit: contain;
    padding: 1rem;
    background: var(--dh-mist);
}

.product-card-body {
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-brand { color: var(--dh-slate); font-size: 0.75rem; font-weight: 500; margin-bottom: 0.2rem; }
.product-title {
    font-weight: 700;
    font-size: 0.85rem;
    line-height: 1.35;
    flex-grow: 1;
    margin-bottom: 0.5rem;
}
.product-title a { color: var(--dh-ink); }
.product-title a:hover { color: var(--dh-cta); }

.product-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 0.3rem; }

/* ══════════════════════════════════════════════════════
   PRICES / BADGES
   ══════════════════════════════════════════════════════ */

.price-tag {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--dh-emerald-700);
    letter-spacing: -0.02em;
}
.price-tag-sm { font-size: 0.92rem; font-weight: 700; color: var(--dh-emerald-700); }

.badge-retailers {
    background: var(--dh-mist);
    color: var(--dh-slate);
    font-weight: 600;
    font-size: 0.72rem;
}
.savings-badge {
    display: inline-flex; align-items: center; gap: 0.2rem;
    background: rgba(16,185,129,0.08);
    color: var(--dh-emerald-700);
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    font-weight: 700; font-size: 0.72rem;
}

/* ══════════════════════════════════════════════════════
   PRODUCT DETAIL PAGE (PDP)
   ══════════════════════════════════════════════════════ */

.pdp-header {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 2rem;
    margin-bottom: 1.5rem;
    padding-top: 0.5rem;
}
.pdp-image-wrap {
    background: var(--dh-mist);
    border: 1px solid var(--dh-border);
    border-radius: var(--dh-radius);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pdp-image-wrap img {
    max-height: 300px;
    object-fit: contain;
    width: 100%;
}

.pdp-title {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.3;
    color: var(--dh-ink);
    margin-bottom: 0.5rem;
}

.pdp-brand {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--dh-slate);
    margin-bottom: 0.5rem;
}

.pdp-description {
    font-size: 0.9rem;
    color: var(--dh-ink-light);
    line-height: 1.65;
    margin-bottom: 0.75rem;
}

.pdp-price-line {
    font-size: 0.92rem;
    color: var(--dh-ink-light);
    margin-bottom: 0.75rem;
}
.pdp-price-range {
    color: var(--dh-emerald-700);
    font-weight: 800;
}

.pdp-save-pill {
    align-items: center;
    gap: 0.15rem;
    background: rgba(16,185,129,0.10);
    color: var(--dh-emerald-700);
    font-weight: 700;
    font-size: 0.78rem;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    white-space: nowrap;
    margin-left: 0.5rem;
}

.pdp-rating {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0 0 0.75rem 0;
    font-weight: 800;
    color: var(--dh-ink);
    font-size: 0.9rem;
}
.pdp-rating .pdp-rating-star { color: #f59e0b; } /* amber */
.pdp-rating .pdp-rating-sub {
    font-weight: 700;
    color: var(--dh-slate);
    font-size: 0.82rem;
}

.pdp-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}
.pdp-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--dh-ink-light);
    background: var(--dh-mist);
    border: 1px solid var(--dh-border);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

/* PDP: discreet basket save */
.pdp-actions {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-top: 0.65rem;
}

.pdp-actions .pdp-cta {
    border-radius: 999px;
    font-weight: 900;
    letter-spacing: -0.01em;
    padding: 0.45rem 0.9rem;
}
.pdp-actions .pdp-cta i { margin-right: 0.25rem; }

/* PDP: (mobile sticky action bar removed; actions are per-retailer rows now) */

/* ══════════════════════════════════════════════════════
   PDP TABS
   ══════════════════════════════════════════════════════ */

.pdp-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--dh-border);
    margin-bottom: 0;
}

.pdp-tab {
    background: none;
    border: none;
    padding: 0.75rem 1.25rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--dh-slate);
    cursor: pointer;
    position: relative;
    transition: color 0.12s;
    white-space: nowrap;
}
.pdp-tab:hover { color: var(--dh-ink); }
.pdp-tab.active {
    color: var(--dh-ink);
}
.pdp-tab.active::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0; right: 0;
    height: 2px;
    background: var(--dh-cta);
    border-radius: 2px 2px 0 0;
}

.pdp-tab-panel {
    display: none;
    padding: 1.5rem 0;
}
.pdp-tab-panel.active {
    display: block;
}

/* ══════════════════════════════════════════════════════
   PRICE COMPARISON — Clean row-based list
   ══════════════════════════════════════════════════════ */

.cmp-filters-bar {
    padding: 0.5rem 0;
    margin-bottom: 0.5rem;
}
.cmp-count-text {
    font-size: 0.85rem;
    color: var(--dh-slate);
    font-weight: 600;
}

/* ═══ Price comparison: card layout (desktop + mobile) ═══ */
.cmp-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cmp-card {
    background: #fff;
    border: 1px solid var(--dh-border);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    transition: border-color 0.12s, box-shadow 0.12s;
}
.cmp-card:hover {
    border-color: var(--dh-slate);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.cmp-card-best {
    border-color: rgba(16,185,129,0.4);
    background: rgba(16,185,129,0.03);
}
.cmp-card-best:hover {
    border-color: rgba(16,185,129,0.6);
    box-shadow: 0 2px 10px rgba(16,185,129,0.08);
}

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

.cmp-card-retailer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}
.cmp-card-retailer .retailer-favicon {
    flex-shrink: 0;
}

.cmp-card-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--dh-ink);
}
.cmp-card-rating {
    font-size: 0.8rem;
    margin-left: 0.25rem;
}
.cmp-card-rating-wrap {
    cursor: help;
}
.cmp-card-rating-label {
    font-size: 0.7rem;
    color: var(--dh-slate);
    font-weight: 500;
}
.cmp-card-rating i.bi-star-fill,
.cmp-card-rating i.bi-star-half {
    color: var(--dh-amber, #f59e0b);
}
.cmp-card-rating .text-muted {
    color: var(--dh-slate);
}

.cmp-card-badge {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--dh-emerald-700);
    background: rgba(16,185,129,0.12);
    border-radius: 6px;
}

.cmp-card-price-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}
.cmp-card-price-wrap {
    flex-shrink: 0;
    text-align: right;
}

.cmp-price {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--dh-ink);
    letter-spacing: -0.02em;
}
.cmp-price-best {
    color: var(--dh-emerald-700);
    font-size: 1.25rem;
}
.cmp-delivery-suffix {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--dh-slate);
    margin-top: 0.1rem;
}
.cmp-price-asterisk {
    font-weight: 700;
    color: var(--dh-slate);
    cursor: help;
    margin-left: 0.1rem;
}

.cmp-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    margin-bottom: 0.85rem;
    min-height: 1.5rem;
}
.cmp-card-meta .cmp-details[open] {
    flex-basis: 100%;
    width: 100%;
}
.cmp-card-actions .cmp-details[open] {
    flex-basis: 100%;
    width: 100%;
}

.cmp-card-stock {
    font-size: 0.78rem;
}

.cmp-quick-line {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    font-size: 0.78rem;
    color: var(--dh-slate);
}
.cmp-quick-delivery {
    font-weight: 600;
}
.cmp-quick-paylater {
    font-weight: 600;
}

.cmp-details {
    display: block;
    margin: 0;
    border: 1px solid var(--dh-border);
    border-radius: var(--dh-radius-xs);
    overflow: hidden;
    background: var(--dh-white);
}
.cmp-details-summary {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--dh-cta);
    background: var(--dh-mist);
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: background 0.15s, color 0.15s;
}
.cmp-details-summary:hover {
    background: var(--dh-border);
}
.cmp-details[open] .cmp-details-summary {
    background: var(--dh-cta-100);
    color: var(--dh-cta-dark);
    border-bottom: 1px solid var(--dh-border);
}
.cmp-details-summary::-webkit-details-marker { display: none; }
.cmp-details-summary::before {
    content: "";
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    transition: transform 0.2s ease;
}
.cmp-details[open] .cmp-details-summary::before {
    transform: rotate(-90deg);
}
.cmp-details-body {
    padding: 0.85rem 1rem;
    background: var(--dh-mist);
    font-size: 0.8rem;
    color: var(--dh-ink);
    max-height:  min(70vh, 420px);
    overflow-y: auto;
    border-top: 1px solid var(--dh-border);
}
.cmp-detail-last-checked {
    margin: 0 0 0.6rem;
    font-size: 0.72rem;
    color: var(--dh-slate);
}
.cmp-detail-section {
    margin-bottom: 1rem;
    padding: 0.6rem 0.75rem;
    background: var(--dh-white);
    border-radius: var(--dh-radius-xs);
    border: 1px solid var(--dh-border);
}
.cmp-detail-section:last-child {
    margin-bottom: 0;
}
.cmp-detail-heading {
    margin: 0 0 0.5rem;
    padding-bottom: 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--dh-slate);
    border-bottom: 1px solid var(--dh-border);
}
.cmp-detail-list {
    margin: 0;
    display: grid;
    gap: 0.25rem 0;
}
.cmp-detail-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.15rem 0.75rem;
    align-items: start;
    margin: 0;
}
@media (min-width: 420px) {
    .cmp-detail-row:not(.cmp-detail-row--full) {
        grid-template-columns: 8.5em minmax(0, 1fr);
    }
}
.cmp-detail-term {
    margin: 0;
    font-weight: 500;
    color: var(--dh-slate);
    font-size: 0.78rem;
}
.cmp-detail-def {
    margin: 0;
    line-height: 1.4;
    color: var(--dh-ink);
}
.cmp-detail-row--full .cmp-detail-def {
    grid-column: 1 / -1;
}
/* Continuation rows (e.g. semicolon-split): indent to align with value column, not under label */
.cmp-detail-row--continuation {
    padding-left: 1rem;
}
@media (min-width: 420px) {
    .cmp-detail-row--continuation {
        padding-left: calc(8.5em + 0.75rem);
    }
}

.cmp-legend {
    margin: 0.75rem 0 0;
    font-size: 0.78rem;
    color: var(--dh-slate);
}
.pdp-last-updated {
    margin: 1.5rem 0 0;
    font-size: 0.75rem;
    color: var(--dh-slate);
}

.cmp-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
}
.cmp-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.22rem 0.5rem;
    font-size: 0.71rem;
    font-weight: 600;
    color: var(--dh-slate);
    background: var(--dh-mist);
    border-radius: 6px;
    white-space: nowrap;
}
.cmp-chip .bi {
    flex-shrink: 0;
    color: var(--dh-cta);
    opacity: 0.9;
}
.cmp-chip-alt {
    font-size: 0.68rem;
    padding: 0.18rem 0.42rem;
    background: rgba(0,0,0,0.04);
    color: var(--dh-slate);
}
.cmp-chip-alt .bi {
    opacity: 0.75;
}

.cmp-card-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}
.cmp-card-actions .btn {
    border-radius: 8px;
    font-weight: 700;
    padding: 0.5rem 0.9rem;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.cmp-btn-save {
    width: 2.25rem;
    height: 2.25rem;
    min-width: 2.25rem;
    min-height: 2.25rem;
    padding: 0;
    border-radius: 50%;
}
.cmp-btn-save .bi {
    font-size: 1.1rem;
}
/* Header heart: visible only on mobile (to the right of price) */
.cmp-card-header .cmp-btn-save-header {
    display: none;
}
/* Actions heart: visible only on desktop (below price, on the right) */
.cmp-btn-save-actions {
    display: inline-flex;
    order: 3;
    margin-left: auto;
}
.cmp-card-actions .cmp-details {
    order: 1;
}
.cmp-card-actions .cmp-btn-go {
    order: 2;
}
.cmp-btn-go {
    flex: 0 1 auto;
    min-width: 0;
    padding: 0.4rem 0.7rem;
    font-size: 0.8rem;
}

/* Legacy policy block (if used elsewhere) */
.cmp-policy { margin-top: 0.5rem; padding-top: 0.5rem; border-top: 1px solid var(--dh-border); }
.cmp-policy-inner { display: flex; flex-wrap: wrap; gap: 0.5rem; font-size: 0.8rem; color: var(--dh-slate); }
.cmp-policy-item { display: inline-flex; align-items: center; gap: 0.35rem; }
.cmp-policy-item .bi { color: var(--dh-cta); opacity: 0.85; }

/* Stock badges */
.stock-yes { color: var(--dh-emerald); font-weight: 600; font-size: 0.78rem; }
.stock-no  { color: var(--dh-red);     font-weight: 600; font-size: 0.78rem; }

/* ══════════════════════════════════════════════════════
   AI DESCRIPTION
   ══════════════════════════════════════════════════════ */

.ai-description {
    background: var(--dh-mist);
    border-left: 3px solid var(--dh-cta);
    border-radius: 0 var(--dh-radius-xs) var(--dh-radius-xs) 0;
    padding: 0.85rem 1.1rem;
}

.ai-desc-text {
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--dh-ink-light);
    margin: 0;
}

/* ══════════════════════════════════════════════════════
   SPECIFICATIONS TABLE
   ══════════════════════════════════════════════════════ */

.specs-card {
    background: var(--dh-white);
    border-radius: var(--dh-radius);
    border: 1px solid var(--dh-border);
    overflow: hidden;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table th,
.specs-table td {
    padding: 0.65rem 1rem;
    font-size: 0.88rem;
    vertical-align: top;
}

.spec-label {
    width: 35%;
    font-weight: 600;
    color: var(--dh-ink);
    background: var(--dh-mist);
}

.spec-value {
    color: var(--dh-ink-light);
}

.spec-row-odd td,
.spec-row-odd th { background-color: transparent; }
.spec-row-even td { background-color: rgba(0,0,0,0.01); }
.spec-row-even th { background-color: var(--dh-mist); }

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

/* ══════════════════════════════════════════════════════
   PRICE HISTORY CHART
   ══════════════════════════════════════════════════════ */

.price-history-card {
    background: var(--dh-white);
    border-radius: var(--dh-radius);
    border: 1px solid var(--dh-border);
    padding: 1rem;
    height: 320px;
    position: relative;
}

.price-history-card canvas {
    width: 100% !important;
    height: 100% !important;
}

/* ══════════════════════════════════════════════════════
   Q&A
   ══════════════════════════════════════════════════════ */

.qa-item {
    background: var(--dh-white);
    border: 1px solid var(--dh-border);
    border-radius: var(--dh-radius);
    padding: 1rem 1.25rem;
    margin-bottom: 0.6rem;
}
.qa-question { font-weight: 700; color: var(--dh-ink); font-size: 0.92rem; margin-bottom: 0.35rem; }
.qa-answer   { color: var(--dh-ink-light); font-size: 0.88rem; line-height: 1.55; }

/* ══════════════════════════════════════════════════════
   FILTERS
   ══════════════════════════════════════════════════════ */

.filters-shell {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; margin-bottom: 1rem; flex-wrap: wrap;
}
.filters-card {
    border-radius: var(--dh-radius);
    background: var(--dh-white);
    border: 1px solid var(--dh-border);
    overflow: hidden;
}
.filters-card .filters-header {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--dh-border);
    background: var(--dh-mist);
}
.filters-card .filters-body { padding: 0.85rem 1rem; }
.filters-title { font-weight: 700; margin: 0; font-size: 0.9rem; }
.filters-subtitle { color: var(--dh-slate); font-size: 0.75rem; margin-top: 0.1rem; }
.filters-group { margin-bottom: 0.85rem; }
.filters-label {
    font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em;
    color: var(--dh-slate); font-weight: 700; margin-bottom: 0.3rem;
}
.filters-actions { display: flex; gap: 8px; margin-top: 0.65rem; }

.filters-summary { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 1rem; }
.filter-pill {
    display: inline-flex; align-items: center; gap: 0.25rem;
    padding: 0.2rem 0.5rem; border-radius: 4px;
    background: var(--dh-mist); color: var(--dh-ink-light);
    font-weight: 600; font-size: 0.78rem;
    text-decoration: none;
}
.filter-pill strong { color: var(--dh-ink); font-weight: 700; }
.filter-pill:hover { background: var(--dh-cta-100); color: var(--dh-cta); }

.offcanvas.dh-offcanvas.offcanvas-bottom { border-radius: var(--dh-radius) var(--dh-radius) 0 0; }
.offcanvas-header.dh-offcanvas-header {
    background: var(--dh-mist);
    border-bottom: 1px solid var(--dh-border);
}

/* ══════════════════════════════════════════════════════
   BREADCRUMB
   ══════════════════════════════════════════════════════ */

.breadcrumb { --bs-breadcrumb-divider: "\203A"; margin-bottom: 0; }
.dh-breadcrumb {
    display: inline-flex; align-items: center;
    font-size: 0.82rem;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap;
}
.dh-breadcrumb::-webkit-scrollbar { display: none; }
.dh-breadcrumb .breadcrumb-item { white-space: nowrap; flex-shrink: 0; }
.dh-breadcrumb .breadcrumb-item a { color: var(--dh-cta); font-weight: 600; }
.dh-breadcrumb .breadcrumb-item.active {
    color: var(--dh-slate);
    font-weight: 600;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ══════════════════════════════════════════════════════
   EMPTY STATE
   ══════════════════════════════════════════════════════ */

.empty-state { text-align: center; padding: 4rem 2rem; color: var(--dh-slate); }
.empty-state i { font-size: 3rem; margin-bottom: 0.75rem; display: block; color: var(--dh-slate); }

/* ══════════════════════════════════════════════════════
   BASKET
   ══════════════════════════════════════════════════════ */

.basket-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.basket-sub {
    color: var(--dh-slate);
    font-weight: 700;
    font-size: 0.9rem;
}

.basket-head-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.basket-actions-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--dh-border);
    border-radius: 16px;
    background: var(--dh-mist);
}

.basket-actions-left {
    display: inline-flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.basket-total {
    color: var(--dh-ink);
    font-weight: 800;
}
.basket-total strong { color: var(--dh-emerald-700); }

.basket-table {
    border: 1px solid var(--dh-border);
    border-radius: 18px;
    overflow: hidden;
    background: var(--dh-white);
}

.basket-row {
    display: grid;
    grid-template-columns: 1fr 140px 140px 260px;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--dh-border);
    align-items: center;
}
.basket-row:last-child { border-bottom: 0; }
.basket-row:hover { background: rgba(0,0,0,0.01); }

.basket-row-head {
    background: var(--dh-mist);
    color: var(--dh-slate);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
}

.basket-prod {
    display: flex;
    gap: 1rem;
    align-items: center;
    min-width: 0;
}
.basket-img { width: 72px; height: 72px; flex-shrink: 0; }
.basket-img img { width: 100%; height: 100%; object-fit: contain; border-radius: 12px; background: var(--dh-mist); }

.basket-prod-title {
    font-weight: 900;
    font-size: 0.95rem;
    line-height: 1.25;
    margin-bottom: 0.35rem;
}
.basket-prod-title a { color: var(--dh-ink); }
.basket-prod-title a:hover { color: var(--dh-cta); }

.basket-prod-sub {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    align-items: center;
    color: var(--dh-slate);
    font-weight: 700;
    font-size: 0.78rem;
}
.basket-retailer { color: var(--dh-slate); }

.basket-qty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.qty-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--dh-border);
    background: var(--dh-white);
    color: var(--dh-ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    text-decoration: none !important;
}
.qty-btn:hover { background: var(--dh-mist); }
.qty-num { min-width: 26px; text-align: center; font-weight: 900; }

.basket-price {
    text-align: right;
}
.basket-price-main {
    font-weight: 900;
    color: var(--dh-emerald-700);
    font-size: 1rem;
}
.basket-price-sub {
    color: var(--dh-slate);
    font-weight: 700;
    font-size: 0.78rem;
    margin-top: 0.15rem;
}

.basket-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.basket-actions .btn { padding: 0.38rem 0.75rem; }

@media (max-width: 991px) {
    /* Make basket rows feel like cards on mobile */
    .basket-actions-bar { align-items: flex-start; }
    .basket-table {
        border: 0;
        border-radius: 0;
        overflow: visible;
        background: transparent;
    }
    .basket-row {
        grid-template-columns: 1fr;
        text-align: left;
        border: 1px solid var(--dh-border);
        border-radius: 18px;
        background: var(--dh-white);
        margin-bottom: 0.75rem;
    }
    .basket-row:last-child { margin-bottom: 0; }
    .basket-price { text-align: left; }
    .basket-actions { justify-content: flex-start; }
    .basket-actions .btn { flex: 1; }
    .basket-qty { justify-content: flex-start; }
}

/* ══════════════════════════════════════════════════════
   PAGINATION
   ══════════════════════════════════════════════════════ */

.pagination .page-link {
    color: var(--dh-ink);
    border-radius: var(--dh-radius-xs);
    margin: 0 2px;
    border-color: var(--dh-border);
    font-weight: 600;
    font-size: 0.85rem;
}
.pagination .active .page-link {
    background: var(--dh-cta);
    border-color: var(--dh-cta);
    color: #fff;
}

/* ══════════════════════════════════════════════════════
   FOOTER — Modern two-part design
   ══════════════════════════════════════════════════════ */

.site-footer {
    margin-top: 4rem;
}

.footer-top {
    background: var(--dh-navy);
    padding: 5rem 0 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1fr 1.15fr;
    gap: 2.25rem;
    align-items: start;
}

.footer-brand {
    padding-right: 1.5rem;
}

.footer-col { min-width: 0; }

/* Text-only brand */
.footer-wordmark {
    display: inline-block;
    color: #fff !important;
    font-weight: 900;
    letter-spacing: -0.03em;
    font-size: 1.4rem;
    text-decoration: none !important;
    margin-bottom: 0.25rem;
}
.footer-wordmark:hover { opacity: 0.9; }
.footer-wordmark-sub {
    color: rgba(255,255,255,0.42);
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
    margin-bottom: 1.15rem;
}

.footer-tagline {
    color: rgba(255,255,255,0.5);
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer-trust {
    display: flex;
    gap: 1.25rem;
}
.footer-trust span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: rgba(255,255,255,0.4);
    font-size: 0.78rem;
    font-weight: 600;
}
.footer-trust i { color: var(--dh-cta); font-size: 0.85rem; }

.footer-heading {
    color: #fff;
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li { margin-bottom: 0.55rem; }
.footer-links a {
    color: rgba(255,255,255,0.5);
    font-size: 0.88rem;
    font-weight: 500;
    transition: color 0.12s;
    display: inline-block;
    max-width: 100%;
}
.footer-links a:hover { color: #fff; }

.footer-link-tight {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Retailers page */
.retailer-card {
    border: 1px solid rgba(255,255,255,0.0);
    background: var(--dh-white);
    border: 1px solid var(--dh-border);
    border-radius: 16px;
    padding: 0.85rem 0.9rem;
    box-shadow: var(--dh-shadow-sm);
    height: 100%;
}
.retailer-card-top {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.55rem;
    min-width: 0;
}
.retailer-favicon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--dh-mist);
    border: 1px solid var(--dh-border);
    flex-shrink: 0;
}
.retailer-meta { min-width: 0; }
.retailer-name {
    font-weight: 900;
    letter-spacing: -0.01em;
    font-size: 0.9rem;
    color: var(--dh-ink);
    line-height: 1.2;
}
.retailer-domain {
    color: var(--dh-slate);
    font-weight: 700;
    font-size: 0.78rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.retailer-count {
    color: var(--dh-ink-light);
    font-weight: 700;
    font-size: 0.82rem;
}

/* Retailers / statistics pages */
.retailers-page .retailers-hero-card {
    border: 1px solid var(--dh-border);
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
    box-shadow: var(--dh-shadow-sm);
    padding: 1rem 1.1rem;
}
.retailers-kicker {
    color: var(--dh-slate);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.2rem;
}
.retailers-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}
.retailers-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #fff;
    border: 1px solid var(--dh-border);
    border-radius: 999px;
    padding: 0.25rem 0.6rem;
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--dh-ink-light);
}
.retailers-chip i { color: var(--dh-cta); }

.retailers-prose-card {
    border: 1px solid var(--dh-border);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--dh-shadow-sm);
    padding: 1rem 1.1rem;
}

.stats-page .stats-kpi-card {
    border: 1px solid var(--dh-border);
    border-radius: 14px;
    box-shadow: var(--dh-shadow-sm);
}
.stats-page .stats-section-card {
    border-radius: 16px;
    border: 1px solid var(--dh-border);
}
.stats-page .stats-note {
    border-radius: 12px;
    border-color: var(--dh-border) !important;
    background: #fbfcff;
}
.stats-page .stats-table thead th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--dh-slate);
    font-weight: 800;
    white-space: nowrap;
}
.stats-page .stats-table tbody td {
    font-size: 0.86rem;
}

.bot-stats-page .bot-mix-progress {
    height: 16px;
    border-radius: 999px;
    background: #eef2f7;
}
.bot-stats-page .bot-mix-legend {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem 0.75rem;
    font-size: 0.82rem;
    color: var(--dh-ink-light);
}
.bot-stats-page .bot-mix-legend .dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 0.3rem;
    vertical-align: baseline;
}
.bot-stats-page .bot-health-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
}
.bot-stats-page .bot-health-item {
    border: 1px solid var(--dh-border);
    border-radius: 10px;
    padding: 0.55rem 0.6rem;
    background: #fff;
}
.bot-stats-page .bot-req-chart-wrap {
    position: relative;
    height: 260px;
}
.stats-page .stats-collapsible {
    border: 1px solid var(--dh-border);
    border-radius: 12px;
    background: #fff;
    padding: 0.55rem 0.7rem;
}
.stats-page .stats-collapsible > summary {
    cursor: pointer;
    list-style: none;
    font-weight: 700;
    color: var(--dh-ink);
}
.stats-page .stats-collapsible > summary::-webkit-details-marker {
    display: none;
}
.stats-page .stats-collapsible > summary::after {
    content: "▾";
    float: right;
    color: var(--dh-slate);
}
.stats-page .stats-collapsible[open] > summary::after {
    content: "▴";
}

/* Shop card polish */
.retailer-card {
    transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}
.retailer-card:hover {
    border-color: rgba(241,37,69,0.35);
    box-shadow: var(--dh-shadow);
    transform: translateY(-1px);
}

.footer-text {
    color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
    line-height: 1.6;
}

.footer-bottom {
    background: #080a1e;
    padding: 1.25rem 0;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    color: rgba(255,255,255,0.3);
    font-size: 0.75rem;
}

/* Footer disclaimer (collapsible) */
.footer-extra {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.10);
}

.footer-disclaimer {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 16px;
    overflow: hidden;
    max-width: 980px;
}

.footer-disclaimer summary {
    list-style: none;
}
.footer-disclaimer summary::-webkit-details-marker {
    display: none;
}

.footer-disclaimer-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.95rem 1.1rem;
    cursor: pointer;
    user-select: none;
    color: rgba(255,255,255,0.85);
    font-weight: 800;
    letter-spacing: -0.01em;
}

.footer-disclaimer-title {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}
.footer-disclaimer-title i {
    color: rgba(255,255,255,0.55);
    font-size: 1rem;
}

/* Pure CSS chevron */
.footer-disclaimer-summary::after {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid rgba(255,255,255,0.55);
    border-bottom: 2px solid rgba(255,255,255,0.55);
    transform: rotate(45deg);
    transition: transform 0.15s ease;
    flex-shrink: 0;
    margin-left: auto;
}
.footer-disclaimer[open] .footer-disclaimer-summary::after {
    transform: rotate(-135deg);
}

.footer-disclaimer-body {
    padding: 0 1.1rem 1rem;
    color: rgba(255,255,255,0.55);
    font-size: 0.88rem;
    line-height: 1.7;
}
.footer-disclaimer-body p {
    margin: 0.75rem 0 0;
}
.footer-disclaimer-body p:first-child {
    margin-top: 0.25rem;
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════ */

html, body { overflow-x: hidden; }

/* ── Touch targets ── */
.hero-search { margin-top: 1.25rem; }
.hero-search-box { max-width: 560px; }
.hero-search-input { font-weight: 600; }

@media (max-width: 991px) {
    .btn { min-height: 44px; }
    .form-control, .form-select { min-height: 44px; font-size: 1rem !important; }
}

/* ═══════════════════════════════════════════
   TABLET & DOWN (≤991px)
   ═══════════════════════════════════════════ */
@media (max-width: 991px) {

    .dh-container { padding-left: 1.25rem; padding-right: 1.25rem; }

    .dh-header-inner { gap: 0.75rem; height: 52px; }
    .logo-img-nav { height: 30px; }
    .brand-logo { height: 30px; }

    /* Hero */
    .hero-wrap { padding: 5.75rem 0 9.75rem; }
    .hero-grid { grid-template-columns: 1fr; gap: 1.25rem; }
    .hero-card h1 { font-size: 1.35rem; }
    .hero-sub { font-size: 0.85rem; }

    /* Category strip */
    .cat-strip-item { min-width: 68px; padding: 0.5rem 0.35rem; }
    .cat-strip-icon { width: 40px; height: 40px; font-size: 1rem; }
    .cat-strip-label { font-size: 0.68rem; }

    /* Deals */
    .deal-card-row { padding: 0.75rem; }
    .deal-img-row { width: 96px; height: 88px; }
    .deal-name { font-size: 0.9rem; }

    /* Product cards */
    .product-card .product-img,
    .product-card .card-img-top { height: 150px; padding: 0.6rem; }
    .product-card-body { padding: 0.7rem; }
    .product-title { font-size: 0.82rem; }
    .price-tag { font-size: 0.95rem; }
    .product-brand { font-size: 0.72rem; }

    /* Breadcrumbs */
    .dh-breadcrumb { font-size: 0.78rem; }

    /* PDP */
    .pdp-header { grid-template-columns: 1fr; gap: 1rem; margin-bottom: 1rem; }
    .pdp-image-wrap { padding: 1rem; }
    .pdp-image-wrap img { max-height: 240px; }
    .pdp-title { font-size: 1.35rem; }
    .pdp-brand { margin-bottom: 0.25rem; }
    .pdp-price-line { margin-bottom: 0.6rem; }
    .pdp-meta-line { margin-bottom: 0.6rem; }
    .pdp-actions { gap: 0.75rem; margin-top: 0.5rem; }

    /* PDP tabs */
    .pdp-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .pdp-tabs::-webkit-scrollbar { display: none; }
    .pdp-tab { padding: 0.65rem 1rem; font-size: 0.85rem; }
    .pdp-tab-panel { padding: 1.1rem 0; }

    /* CMP cards */
    .cmp-card { padding: 0.9rem 1rem; }
    .cmp-card-header { margin-bottom: 0.5rem; }
    .cmp-card-meta { margin-bottom: 0.7rem; }

    /* Filters */
    .filters-shell {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    /* Category page */
    .category-card { padding: 1rem 0.5rem; }
    .category-name { font-size: 0.8rem; }
    .category-count { font-size: 0.7rem; }

    /* Footer */
    .site-footer { margin-top: 2rem; }
    .footer-top { padding: 3rem 0 2.5rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
    .footer-brand { grid-column: 1 / -1; padding-right: 0; }
    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
        gap: 0.25rem;
    }

    .footer-extra { margin-top: 2rem; padding-top: 1.5rem; }
    .footer-disclaimer { max-width: 100%; }
    .footer-disclaimer-summary { padding: 0.85rem 0.95rem; }
    .footer-disclaimer-body { padding: 0 0.95rem 0.9rem; font-size: 0.85rem; }

    .stats-page .stats-kpis > [class*="col-"] { display: flex; }
    .stats-page .stats-kpi-card { flex: 1; }
    .stats-page .stats-section-card .card-body { padding: 0.9rem; }
}

@media (max-width: 576px) {
    .pd-cookie-notice {
        bottom: 8px;
        border-radius: 12px;
        align-items: flex-start;
        padding: 0.5rem 0.55rem;
        gap: 0.5rem;
    }
    .pd-cookie-text {
        font-size: 0.73rem;
    }
    .pd-cookie-ok {
        padding: 0.2rem 0.6rem;
    }

    /* Footer: stack sections for better readability */
    .footer-top { padding: 2.5rem 0 2rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 1.25rem; }
    .footer-trust { flex-wrap: wrap; row-gap: 0.5rem; }
    .footer-links li { margin-bottom: 0.45rem; }

    .retailers-page .retailers-hero-card,
    .retailers-page .retailers-prose-card {
        border-radius: 14px;
        padding: 0.85rem 0.85rem;
    }
    .retailers-page .retailers-chip {
        font-size: 0.7rem;
        padding: 0.22rem 0.5rem;
    }
    .retailers-page .retailer-card {
        padding: 0.78rem 0.82rem;
    }
    .retailers-page .retailer-name { font-size: 0.94rem; }
    .retailers-page .retailer-domain { font-size: 0.75rem; }

    /* Convert stats tables into mobile cards for readability */
    .stats-page .stats-table-mobile-cards thead {
        display: none;
    }
    .stats-page .stats-table-mobile-cards tbody,
    .stats-page .stats-table-mobile-cards tr,
    .stats-page .stats-table-mobile-cards td {
        display: block;
        width: 100%;
    }
    .stats-page .stats-table-mobile-cards tr {
        border: 1px solid var(--dh-border);
        border-radius: 12px;
        margin-bottom: 0.6rem;
        padding: 0.55rem 0.65rem;
        background: #fff;
    }
    .stats-page .stats-table-mobile-cards td {
        border: 0 !important;
        padding: 0.24rem 0;
        text-align: left !important;
    }
    .stats-page .stats-table-mobile-cards td::before {
        content: attr(data-label);
        display: block;
        font-size: 0.67rem;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        color: var(--dh-slate);
        font-weight: 800;
        margin-bottom: 0.08rem;
    }
    .stats-page .stats-table-mobile-cards td[data-label="Shop"] strong,
    .stats-page .stats-table-mobile-cards td[data-label="Shop pair"] strong {
        font-size: 0.9rem;
    }
    .stats-page .stats-table-mobile-cards .rs-rank {
        color: var(--dh-cta) !important;
        font-weight: 900;
    }
    .bot-stats-page .bot-health-grid,
    .bot-stats-page .bot-mix-legend {
        grid-template-columns: 1fr;
    }
    .bot-stats-page .bot-req-chart-wrap {
        height: 220px;
    }
}

/* ═══════════════════════════════════════════
   PHONE (≤576px)
   ═══════════════════════════════════════════ */
@media (max-width: 576px) {

    .dh-container { padding-left: 0.75rem; padding-right: 0.75rem; }

    .dh-header-inner { gap: 0.35rem; height: 48px; }
    .logo-img-nav { height: 26px; }
    .brand-logo { height: 26px; }
    .dh-mob-btn { width: 36px; height: 36px; font-size: 1.05rem; }

    /* Hero */
    .hero-wrap { padding: 4.75rem 0 8.75rem; }
    .hero-card h1 { font-size: 1.15rem; }
    .hero-sub { font-size: 0.82rem; margin-bottom: 1rem; }
    .hero-search-box { padding: 0.15rem 0.2rem 0.15rem 0.85rem; }
    .hero-search-input { font-size: 0.88rem; padding: 0.5rem 0.35rem; }
    .hero-search-btn { width: 36px; height: 36px; }

    /* Categories */
    .cat-strip { padding: 1rem 0 0.25rem; }

    /* Deals */
    .deal-card-row { padding: 0.7rem; gap: 0.75rem; }
    .deal-img-row { width: 88px; height: 84px; }
    .deal-name { font-size: 0.88rem; }
    .deal-from { font-size: 0.85rem; }

    /* Deals + home category headings: avoid cramped right-side links */
    .deals-header,
    .home-cat-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }

    /* Top deals are 2-up on mobile: make the card vertical */
    .deal-card-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.6rem;
    }
    .deal-img-row {
        width: 100%;
        height: 120px;
    }
    .deal-img-row img { padding: 0.65rem !important; }
    .deal-go { display: none; }
    .deal-meta {
        gap: 0.15rem;
        flex-direction: column;
        align-items: flex-start;
    }
    .deal-ret { font-size: 0.76rem; }

    /* Page titles */
    .page-title { font-size: 1.2rem; }

    /* Product cards */
    .product-card .product-img,
    .product-card .card-img-top { height: 120px; padding: 0.5rem; }
    .product-card-body { padding: 0.55rem; }
    .product-title { font-size: 0.78rem; line-height: 1.3; }
    .product-brand { font-size: 0.68rem; }
    .price-tag { font-size: 0.88rem; }

    /* PDP */
    .pdp-header { gap: 0.75rem; }
    .pdp-image-wrap { padding: 0.75rem; }
    .pdp-image-wrap img { max-height: 180px; }
    .pdp-title { font-size: 1.2rem; }
    .pdp-tab { padding: 0.55rem 0.75rem; font-size: 0.8rem; }
    .pdp-price-line { font-size: 0.88rem; }
    .pdp-badge { font-size: 0.72rem; }
    .pdp-actions { flex-wrap: wrap; row-gap: 0.35rem; }
    .pdp-price-line { margin-bottom: 0.75rem; }
    .pdp-save-pill { margin-left: 0; margin-top: 0.4rem; }
    .pdp-rating { margin-bottom: 0.85rem; }
    .pdp-meta-line { gap: 0.35rem; margin-bottom: 0.85rem; }
    .pdp-badge { padding: 0.25rem 0.55rem; }

    /* CMP cards — mobile */
    .cmp-card { padding: 0.85rem 1rem; border-radius: 10px; }
    .cmp-card-header {
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-bottom: 0.5rem;
    }
    .cmp-card-retailer {
        flex: 1 1 100%;
        min-width: 0;
        flex-wrap: wrap;
        gap: 0.35rem 0.5rem;
    }
    .cmp-card-retailer .retailer-favicon { order: -1; }
    .cmp-card-name { font-size: 0.9rem; order: 0; }
    .cmp-card-badge { order: 1; margin-left: auto; }
    .cmp-card-rating {
        order: 2;
        flex-basis: 100%;
        width: 100%;
        margin-left: 0;
        margin-top: 0.15rem;
        font-size: 0.75rem;
    }
    .cmp-card-rating-label { font-size: 0.65rem; }
    .cmp-card-price-row {
        order: -1;
        flex-basis: 100%;
        margin-bottom: 0.15rem;
        justify-content: flex-start;
        align-items: flex-start;
    }
    .cmp-card-price-row .cmp-card-price-wrap {
        flex: 1;
        min-width: 0;
        text-align: left;
    }
    .cmp-card-header .cmp-btn-save-header {
        display: inline-flex;
        flex-shrink: 0;
        flex-grow: 0;
        width: 2.5rem;
        height: 2.5rem;
        min-width: 2.5rem;
        min-height: 2.5rem;
        max-width: 2.5rem;
        max-height: 2.5rem;
        padding: 0;
        border-radius: 50%;
        align-items: center;
        justify-content: center;
    }
    .cmp-card-actions .cmp-btn-save-actions {
        display: none;
    }
    .cmp-price { font-size: 1.35rem; }
    .cmp-price-best { font-size: 1.45rem; }
    .cmp-card-meta {
        margin-bottom: 0.65rem;
        gap: 0.4rem;
    }
    .cmp-card-meta .cmp-details {
        flex-basis: 100%;
    }
    .cmp-chip { font-size: 0.68rem; padding: 0.18rem 0.4rem; }
    .cmp-card-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .cmp-card-actions .cmp-details {
        order: -1;
        flex-basis: 100%;
        width: 100%;
    }
    .cmp-card-actions .cmp-btn-save {
        width: 2.5rem;
        height: 2.5rem;
        min-width: 2.5rem;
        min-height: 2.5rem;
    }
    .cmp-card-actions .btn {
        min-height: 42px;
        font-size: 0.88rem;
    }
    .cmp-card-actions .cmp-btn-go {
        flex: 1;
        min-width: 0;
    }
    .cmp-details-summary { padding: 0.45rem 0.6rem; min-height: 44px; }
    .cmp-legend { margin-top: 1rem; font-size: 0.75rem; }

    /* Subcategory pills */
    .subcat-scroll {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        padding-bottom: 0.25rem;
    }
    .subcat-scroll::-webkit-scrollbar { display: none; }
    .subcat-pill { flex-shrink: 0; font-size: 0.78rem; padding: 0.28rem 0.6rem; }

    /* Q&A */
    .qa-item { padding: 0.7rem 0.85rem; }
    .qa-question { font-size: 0.85rem; }
    .qa-answer { font-size: 0.82rem; }

    /* Specs */
    .spec-label { width: 38%; font-size: 0.8rem; padding: 0.5rem 0.6rem; white-space: normal; }
    .spec-value { font-size: 0.8rem; padding: 0.5rem 0.6rem; }

    /* Price history */
    .price-history-card { height: 220px; padding: 0.5rem 0.35rem 0.35rem; }

    /* Empty states */
    .empty-state { padding: 2.5rem 1rem; }
    .empty-state i { font-size: 2rem; }

    /* Pagination */
    .pagination .page-link { font-size: 0.78rem; min-width: 34px; min-height: 34px; }
}

/* ═══════════════════════════════════════════
   SMALL PHONE (≤400px)
   ═══════════════════════════════════════════ */
@media (max-width: 400px) {
    .logo-img-nav { height: 24px; }
    .hero-card h1 { font-size: 1rem; }
    .product-card .product-img,
    .product-card .card-img-top { height: 95px; }
    .product-title { font-size: 0.72rem; }
    .price-tag { font-size: 0.82rem; }
}

/* ═══════════════════════════════════════════
   SAFE AREA (iPhone notch / gesture bar)
   ═══════════════════════════════════════════ */
@supports (padding: env(safe-area-inset-bottom)) {
    .site-footer { padding-bottom: calc(1rem + env(safe-area-inset-bottom)); }
    .offcanvas.dh-offcanvas .offcanvas-body { padding-bottom: calc(2rem + env(safe-area-inset-bottom)); }
}
