/*
 * Warm Dutch Grocery Editorial — theme for SupermarktPrijzen
 * Bold serif display + cream base + orange hero + navy structure
 */

:root {
    /* Palette */
    --ink:       #0a1f33;   /* deep navy, structural */
    --ink-soft:  #1e3a52;
    --ink-mute:  #5a6b7a;
    --cream:     #fdf7ec;   /* warm white base */
    --cream-2:   #f7ecd4;   /* slightly darker cream, for sections */
    --cream-3:   #efdfbb;
    --paper:     #fffdf8;   /* card base */
    --orange:    #f16810;   /* brand hero */
    --orange-2:  #d8570a;   /* hover */
    --orange-3:  #fbd9be;   /* tint */
    --berry:     #b22b1f;   /* accent — deals, fire */
    --leaf:      #15803d;   /* pricing green, deeper than bootstrap */
    --leaf-soft: #e5f2e9;
    --line:      #e6d9bf;   /* warm border */
    --line-ink:  #d8c9a6;

    /* Typography */
    --font-display: "Archivo", "Helvetica Neue", system-ui, sans-serif;
    --font-body:    "Plus Jakarta Sans", "Helvetica Neue", Arial, sans-serif;
    --font-mono:    "JetBrains Mono", ui-monospace, monospace;

    /* Bootstrap overrides */
    --bs-body-bg:        var(--cream);
    --bs-body-color:     var(--ink);
    --bs-body-font-family: var(--font-body);
    --bs-primary:        #f16810;
    --bs-primary-rgb:    241, 104, 16;
    --bs-success:        #15803d;
    --bs-success-rgb:    21, 128, 61;
    --bs-border-color:   var(--line);
    --bs-link-color:     var(--orange);
    --bs-link-hover-color: var(--orange-2);
    --bs-heading-color:  var(--ink);
    --bs-navbar-color:   var(--ink);
}

/* ------------------------------------------------------------------
   Base
------------------------------------------------------------------- */
html, body {
    color: var(--ink);
    font-family: var(--font-body);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Warm paper-grain texture baked into the body background itself */
body {
    background-color: var(--cream);
    background-image:
        radial-gradient(ellipse 1200px 800px at 20% -10%, rgba(251, 231, 202, 0.55) 0%, transparent 50%),
        radial-gradient(ellipse 1000px 700px at 100% 100%, rgba(253, 228, 213, 0.55) 0%, transparent 55%);
    background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.025em;
    color: var(--ink);
    font-feature-settings: "ss01", "ss02";
}

.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 0.95;
    color: var(--ink);
}

a {
    color: var(--orange);
    text-decoration: none;
}
a:hover { color: var(--orange-2); text-decoration: underline; text-underline-offset: 3px; }

.text-muted { color: var(--ink-mute) !important; }
.text-dark  { color: var(--ink)     !important; }

/* ------------------------------------------------------------------
   Buttons
------------------------------------------------------------------- */
.btn {
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: -0.005em;
    border-radius: 10px;
    border-width: 1.5px;
    padding: 0.55rem 1.1rem;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 0.85rem 1.6rem; font-size: 1.05rem; border-radius: 12px; }
.btn-sm { border-radius: 8px; padding: 0.35rem 0.75rem; }

/* Orange primary everywhere */
.btn-primary,
.btn-warning {
    background: var(--orange);
    border-color: var(--orange);
    color: #fff;
    box-shadow: 0 2px 0 0 var(--orange-2), 0 8px 24px -12px rgba(241, 104, 16, 0.55);
}
.btn-primary:hover,
.btn-primary:focus,
.btn-warning:hover,
.btn-warning:focus {
    background: var(--orange-2);
    border-color: var(--orange-2);
    color: #fff;
    box-shadow: 0 2px 0 0 #a83f03, 0 10px 28px -10px rgba(241, 104, 16, 0.65);
    transform: translateY(-1px);
}

.btn-outline-primary {
    color: var(--orange);
    border-color: var(--orange);
    background: transparent;
}
.btn-outline-primary:hover {
    background: var(--orange);
    color: #fff;
    border-color: var(--orange);
}

.btn-success {
    background: var(--leaf);
    border-color: var(--leaf);
    color: #fff;
}
.btn-success:hover { background: #0f5f2c; border-color: #0f5f2c; color: #fff; }

.btn-outline-secondary {
    color: var(--ink);
    border-color: var(--line-ink);
    background: var(--paper);
}
.btn-outline-secondary:hover {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--cream);
}

.btn-outline-danger {
    color: var(--berry);
    border-color: var(--berry);
    background: transparent;
}
.btn-outline-danger:hover {
    background: var(--berry);
    color: #fff;
}

/* ------------------------------------------------------------------
   Cards
------------------------------------------------------------------- */
.card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 1px 0 var(--line-ink), 0 24px 48px -32px rgba(10, 31, 51, 0.18);
}
.card-header {
    background: transparent;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.015em;
    padding: 1rem 1.25rem;
}
.card-body { padding: 1.25rem; }

.product-card {
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    cursor: pointer;
}
.product-card:hover {
    transform: translateY(-3px);
    border-color: var(--orange);
    box-shadow: 0 2px 0 var(--orange-2), 0 28px 56px -28px rgba(241, 104, 16, 0.35);
}
.product-card:hover .pc-title a { color: var(--orange); }

/* Product card layout — flex column so the supermarket row can be pinned
   to the bottom regardless of how much content is above it. */
.product-card .pc-body {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1rem 1.1rem 1.1rem;
}
.product-card .pc-title {
    font-family: var(--font-display);
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
    margin: 0 0 0.35rem;
    /* Clamp to 2 lines so every card has the same title height */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.5em;
}
.product-card .pc-title a {
    color: var(--ink);
}
.product-card .pc-title a:hover { color: var(--orange); text-decoration: none; }
.product-card .pc-brand {
    display: block;
    font-size: 0.78rem;
    color: var(--ink-mute);
    margin-bottom: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
}
.product-card .pc-price {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    /* Reserve space so rows without a unit price still align vertically */
    min-height: 2.6em;
    margin-bottom: 0.6rem;
}
.product-card .pc-price .price-tag {
    font-size: 1.35rem;
    line-height: 1;
}
.product-card .pc-unit {
    font-size: 0.78rem;
    color: var(--ink-mute);
    font-weight: 500;
}
.product-card .pc-supers {
    /* Pin to bottom — pushes itself down regardless of content above */
    margin-top: auto;
    padding-top: 0.4rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    min-height: 1.8em;
}
.product-card .pc-supers .badge {
    background: var(--cream-2) !important;
    color: var(--ink-soft) !important;
    border: 1px solid var(--line);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 0.35em 0.65em;
    margin: 0 !important;
}

/* ------------------------------------------------------------------
   Tables
------------------------------------------------------------------- */
.table {
    --bs-table-bg: transparent;
    color: var(--ink);
    border-color: var(--line);
}
.table thead th {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-mute);
    border-bottom: 1.5px solid var(--line-ink);
    padding: 1rem 0.75rem;
}
.table tbody td {
    border-color: var(--line);
    padding: 0.95rem 0.75rem;
    vertical-align: middle;
}
.table-hover tbody tr:hover > * {
    background: var(--cream-2);
}
.table-success, .table-success > * {
    --bs-table-bg: var(--leaf-soft);
    color: var(--ink);
}

/* ------------------------------------------------------------------
   Badges
------------------------------------------------------------------- */
.badge {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    padding: 0.45em 0.8em;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
}
.bg-success { background: var(--leaf) !important; color: #fff; }
.bg-danger  { background: var(--berry) !important; color: #fff; }
.bg-primary { background: var(--orange) !important; color: #fff; }
.bg-warning { background: var(--orange) !important; color: #fff; }

/* ------------------------------------------------------------------
   Price elements
------------------------------------------------------------------- */
.price-tag {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--leaf);
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}
.price-old {
    text-decoration: line-through;
    color: var(--ink-mute);
    font-size: 0.85rem;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}
.hero-stat-num,
.ps-price,
.ps-price-old {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}
.discount-badge {
    background: var(--berry);
    color: #fff;
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    display: inline-block;
}

/* ------------------------------------------------------------------
   Navbar / logo bar
------------------------------------------------------------------- */
.navbar {
    background: var(--ink) !important;
    border-bottom: 3px solid var(--orange);
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}
.navbar .nav-link,
.navbar .navbar-nav .nav-link {
    color: var(--cream) !important;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: -0.005em;
    padding: 0.4rem 0.9rem;
    border-radius: 8px;
    transition: background .15s ease, color .15s ease;
}
.navbar .nav-link:hover {
    color: #fff !important;
    background: rgba(241, 104, 16, 0.18);
}
.navbar .nav-link .badge {
    background: var(--orange) !important;
    color: #fff;
    margin-left: 0.3rem;
}
.navbar .dropdown-menu {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 20px 40px -20px rgba(10, 31, 51, 0.35);
}
.navbar .dropdown-item { color: var(--ink); font-weight: 500; }
.navbar .dropdown-item:hover { background: var(--cream-2); color: var(--orange-2); }
.navbar-toggler {
    border-color: var(--orange);
    color: var(--cream);
}
.navbar-toggler-icon {
    filter: invert(1);
}

/* Logo bar container (above navbar) */
.logo-bar {
    background: var(--cream);
    border-bottom: 1px dashed var(--line-ink);
    padding: 1.25rem 0;
}

/* Header search bar */
.search-bar {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--paper);
    border: 1.5px solid var(--line-ink);
    border-radius: 14px;
    padding: 4px 4px 4px 18px;
    box-shadow: 0 1px 0 var(--line-ink), 0 16px 32px -20px rgba(10, 31, 51, 0.2);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.search-bar:focus-within {
    border-color: var(--orange);
    box-shadow: 0 1px 0 var(--orange-2), 0 0 0 4px rgba(241, 104, 16, 0.12), 0 16px 32px -20px rgba(241, 104, 16, 0.3);
}
.search-bar .search-bar-icon {
    color: var(--orange);
    font-size: 1.1rem;
    margin-right: 10px;
    flex-shrink: 0;
}
.search-bar input[type="search"] {
    flex: 1;
    border: 0;
    background: transparent;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--ink);
    padding: 10px 0;
    outline: none;
    min-width: 0;
}
.search-bar input[type="search"]::placeholder {
    color: var(--ink-mute);
}
.search-bar input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
}
.search-bar button[type="submit"] {
    background: var(--orange);
    border: 0;
    border-radius: 10px;
    color: #fff;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: .9rem;
    letter-spacing: .01em;
    padding: 10px 22px;
    cursor: pointer;
    transition: background .15s ease, transform .15s ease;
    box-shadow: 0 2px 0 var(--orange-2);
}
.search-bar button[type="submit"]:hover {
    background: var(--orange-2);
    transform: translateY(-1px);
}
.search-bar button[type="submit"]:active {
    transform: translateY(1px);
    box-shadow: 0 0 0 var(--orange-2);
}

/* ------------------------------------------------------------------
   Forms
------------------------------------------------------------------- */
.form-control, .form-select {
    background: var(--paper);
    border: 1.5px solid var(--line-ink);
    border-radius: 10px;
    padding: 0.65rem 0.9rem;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.form-control:focus, .form-select:focus {
    background: var(--paper);
    border-color: var(--orange);
    color: var(--ink);
    box-shadow: 0 0 0 4px rgba(241, 104, 16, 0.12);
}
.form-control::placeholder { color: var(--ink-mute); }
.form-label {
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: 0.4rem;
}
.input-group-lg .form-control { font-size: 1.1rem; padding: 0.95rem 1.1rem; }
.input-group-lg .btn { font-size: 1rem; padding: 0.95rem 1.4rem; }

/* ------------------------------------------------------------------
   Breadcrumbs
------------------------------------------------------------------- */
.breadcrumb {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--ink-mute);
    margin-bottom: 1.25rem;
}
.breadcrumb-item + .breadcrumb-item::before { content: "/"; color: var(--line-ink); }
.breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb-item.active { color: var(--ink); font-weight: 600; }

/* ------------------------------------------------------------------
   Alerts
------------------------------------------------------------------- */
.alert {
    border-radius: 12px;
    border-width: 1.5px;
    font-weight: 500;
}
.alert-info {
    background: var(--cream-2);
    border-color: var(--line-ink);
    color: var(--ink-soft);
}
.alert-info .alert-link { color: var(--orange); font-weight: 700; }

/* ------------------------------------------------------------------
   Footer
------------------------------------------------------------------- */
footer.site-footer {
    background: var(--ink);
    color: var(--cream);
    padding: 3rem 0 2rem;
    margin-top: 5rem;
    position: relative;
}
footer.site-footer::before {
    content: "";
    display: block;
    height: 6px;
    background: repeating-linear-gradient(90deg, var(--orange) 0 24px, var(--ink) 24px 30px);
    position: absolute;
    top: 0; left: 0; right: 0;
}
footer.site-footer a { color: var(--cream); }

/* ------------------------------------------------------------------
   Homepage hero
------------------------------------------------------------------- */
.hero-editorial {
    background: var(--cream);
    padding: 4rem 0 5rem;
    position: relative;
    overflow: hidden;
}
.hero-editorial::before {
    content: "";
    position: absolute;
    top: -80px; right: -80px;
    width: 380px; height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--orange) 0%, var(--orange-2) 70%);
    opacity: 0.12;
    filter: blur(6px);
}
.hero-editorial::after {
    content: "";
    position: absolute;
    bottom: -60px; left: 10%;
    width: 220px; height: 220px;
    border-radius: 50%;
    background: var(--cream-3);
    opacity: 0.6;
    filter: blur(3px);
}
.hero-editorial .container { position: relative; z-index: 2; }

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 1.2rem;
}
.hero-kicker::before {
    content: "";
    width: 36px; height: 2px;
    background: var(--orange);
    display: inline-block;
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2rem, 6vw, 6rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
    color: var(--ink);
    margin: 0 0 1.2rem;
    max-width: 14ch;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: auto;
}
/* Compactere hero-tekst (de homepage voelt anders erg groot) */
.hero-title-compact {
    font-size: clamp(1.8rem, 4.5vw, 4rem);
    max-width: 18ch;
}
.hero-title-compact + .hero-lead { font-size: 1rem; }

/* Deal-van-de-dag ticket-card — klikbaar, op rechts */
.hero-deal-card {
    display: block;
    position: relative;
    padding: 2rem 0;
    text-decoration: none;
    color: inherit;
}
.hero-deal-card-inner {
    background: var(--paper);
    border: 2px solid var(--ink);
    border-radius: 18px;
    padding: 1.4rem;
    position: relative;
    transform: rotate(-2deg);
    box-shadow: 0 30px 60px -30px rgba(10,31,51,.4);
    transition: transform .2s ease, box-shadow .2s ease;
}
.hero-deal-card:hover .hero-deal-card-inner {
    transform: rotate(-1deg) translateY(-3px);
    box-shadow: 0 35px 65px -25px rgba(10,31,51,.5);
}
.hero-deal-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.2rem;
}
.hero-deal-kicker {
    font-family: var(--font-body);
    font-size: .7rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--ink-mute);
    font-weight: 700;
}
.hero-deal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--ink);
    flex-shrink: 0;
}
.hero-deal-img {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0.6rem 0 0.8rem;
}
.hero-deal-img img {
    max-height: 120px;
    max-width: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}
.hero-deal-name {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.5em;
}
.hero-deal-price-row {
    margin-top: 0.9rem;
    padding-top: 0.9rem;
    border-top: 1px dashed var(--line-ink);
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: .5rem;
}
.hero-deal-old {
    font-size: .85rem;
    color: var(--ink-mute);
    text-decoration: line-through;
}
.hero-deal-from {
    font-size: .75rem;
    color: var(--ink-mute);
    letter-spacing: .05em;
}
.hero-deal-price {
    font-size: 2rem;
}
.hero-deal-ticket-cut {
    position: absolute;
    top: 50%;
    width: 16px;
    height: 16px;
    background: var(--cream);
    border-radius: 50%;
    transform: translateY(-50%);
}
.hero-deal-ticket-cut-l { left: -9px; border-right: 2px solid var(--ink); }
.hero-deal-ticket-cut-r { right: -9px; border-left: 2px solid var(--ink); }
.hero-deal-badge {
    background: var(--orange);
    border-radius: 999px;
    padding: .35rem .9rem;
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    position: absolute;
    top: 10px;
    right: 20px;
    transform: rotate(6deg);
    box-shadow: 0 10px 20px -8px rgba(241,104,16,.5);
}
.hero-title em {
    font-style: italic;
    color: var(--orange);
    position: relative;
    font-weight: 700;
}
.hero-title em::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0.08em;
    height: 12px;
    background: var(--orange-3);
    z-index: -1;
    border-radius: 20px;
}

.hero-lead {
    font-size: 1.15rem;
    color: var(--ink-soft);
    max-width: 46ch;
    line-height: 1.55;
    margin-bottom: 2rem;
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 2.5rem;
    padding-top: 1.8rem;
    border-top: 1px dashed var(--line-ink);
}
.hero-stat-num {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1;
}
.hero-stat-label {
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-mute);
    margin-top: 0.3rem;
}

/* ------------------------------------------------------------------
   Section headers (editorial)
------------------------------------------------------------------- */
.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin: 4rem 0 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line-ink);
}
.section-head h2 {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 3.5vw, 2.8rem);
    font-weight: 600;
    margin: 0;
    letter-spacing: -0.025em;
    line-height: 1;
}
.section-head .section-kicker {
    display: block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 0.6rem;
}
.section-head .section-meta {
    font-size: 0.85rem;
    color: var(--ink-mute);
    text-align: right;
    font-style: italic;
}

/* ------------------------------------------------------------------
   Deal cards (homepage)
------------------------------------------------------------------- */
.deal-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1.1rem;
    position: relative;
    overflow: hidden;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
    display: block;
    height: 100%;
    color: var(--ink);
}
.deal-card:hover {
    transform: translateY(-4px);
    border-color: var(--orange);
    text-decoration: none;
    color: var(--ink);
    box-shadow: 0 30px 60px -32px rgba(241, 104, 16, 0.4);
}
.deal-card .deal-discount {
    position: absolute;
    top: 14px; right: 14px;
    background: var(--berry);
    color: #fff;
    padding: 5px 11px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.78rem;
    z-index: 2;
}
.deal-card .deal-img {
    height: 140px;
    background: var(--cream);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.9rem;
    overflow: hidden;
}
.deal-card .deal-img img {
    max-height: 85%; max-width: 85%; object-fit: contain;
}
.deal-card h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--ink);
    margin: 0 0 0.5rem;
    letter-spacing: -0.01em;
    min-height: 2.5em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.deal-card .deal-price { display: flex; align-items: baseline; gap: 0.5rem; margin-bottom: 0.3rem; }
.deal-card .deal-super { font-size: 0.78rem; color: var(--ink-mute); letter-spacing: 0.02em; }

/* ------------------------------------------------------------------
   Category chips
------------------------------------------------------------------- */
.cat-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.3rem;
    background: var(--paper);
    border: 1.5px solid var(--line);
    border-radius: 12px;
    color: var(--ink);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
    transition: all .15s ease;
    height: 100%;
}
.cat-chip:hover {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--cream);
    transform: translateY(-2px);
    text-decoration: none;
}
.cat-chip:hover .cat-chip-arrow { color: var(--orange); transform: translateX(4px); }
.cat-chip-arrow {
    color: var(--orange);
    font-size: 1.2rem;
    transition: transform .15s ease;
}

/* ------------------------------------------------------------------
   Supermarket brand (logo + name)
------------------------------------------------------------------- */
.sm-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    line-height: 1;
    text-decoration: none;
    color: inherit;
}
.sm-brand-img {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 10px;
    width: 120px;
    height: 48px;
    padding: 6px 10px;
    flex-shrink: 0;
    box-shadow: 0 1px 0 var(--line-ink);
}
.sm-brand-img img {
    display: block;
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}
.sm-brand-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    color: var(--ink);
}

/* Compact variant (shopping list, small contexts) */
.sm-brand--sm { gap: 0.6rem; }
.sm-brand--sm .sm-brand-img {
    width: 72px;
    height: 30px;
    padding: 3px 7px;
    border-radius: 7px;
}
.sm-brand--sm .sm-brand-name {
    font-size: 0.95rem;
}

/* Fallback pill (when no logo available) */
.sm-brand--fallback {
    padding: 0.35rem 0.75rem;
    background: var(--ink);
    color: var(--cream);
    border-radius: 999px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.85rem;
}

/* Tijdelijk verborgen — prijshistorie klopt nog niet */
.price-history-card { display: none; }
.price-stats-12mo { display: none; }

/* ------------------------------------------------------------------
   Product detail — supermarket price shelves
------------------------------------------------------------------- */
.price-shelf {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 0.7rem;
    align-items: center;
    padding: 0.6rem 0.85rem;
    background: var(--paper);
    border: 1.5px solid var(--line);
    border-radius: 10px;
    margin-bottom: 0.5rem;
    transition: all .18s ease;
    position: relative;
}
.price-shelf:hover {
    border-color: var(--line-ink);
    transform: translateX(3px);
}
.price-shelf.is-cheapest {
    background: linear-gradient(90deg, var(--leaf-soft) 0%, var(--paper) 55%);
    border-color: var(--leaf);
    border-width: 2px;
}
.price-shelf.is-cheapest::before {
    content: "goedkoopst";
    position: absolute;
    top: -9px; left: 14px;
    background: var(--leaf);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 999px;
}
.price-shelf .ps-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}
.price-shelf .ps-brand-logo {
    display: inline-flex;
    flex-shrink: 0;
    line-height: 0;
    text-decoration: none;
}
.price-shelf .ps-brand-logo img,
.price-shelf .ps-brand-logo svg {
    max-height: 30px;
    width: auto;
}
.price-shelf .ps-brand-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}
.price-shelf .ps-super {
    font-family: var(--font-display);
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.02em;
    line-height: 1.1;
}
.price-shelf .ps-super a { color: inherit; text-decoration: none; }
.price-shelf .ps-super a:hover { color: var(--orange); }
.price-shelf .ps-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-variant-numeric: tabular-nums;
}
.price-shelf .ps-meta .ps-unit {
    color: var(--ink-soft);
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: -0.01em;
}
.price-shelf .ps-meta .badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.3em 0.6em;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.price-shelf .ps-meta .badge i {
    font-size: 1em;
}
.price-shelf .ps-price {
    text-align: right;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--leaf);
    line-height: 1;
}
.price-shelf .ps-price-old {
    font-size: 0.78rem;
    text-decoration: line-through;
    color: var(--ink-mute);
    font-weight: 500;
    display: block;
}
.price-shelf .ps-actions { display: flex; gap: 0.4rem; }

/* Mobile: stack verticaal — logo + naam bovenin, prijs en knoppen eronder */
@media (max-width: 576px) {
    .price-shelf {
        grid-template-columns: auto 1fr;
        grid-template-areas:
            "brand brand"
            "price actions";
        gap: 0.6rem 0.8rem;
        padding: 0.8rem 0.9rem;
    }
    .price-shelf .ps-brand        { grid-area: brand; }
    .price-shelf .ps-brand + div  { grid-area: price; }
    .price-shelf .ps-actions      { grid-area: actions; justify-content: flex-end; }
    .price-shelf .ps-price        { text-align: left; font-size: 1.5rem; }
    .price-shelf .ps-super        { font-size: 1rem; }
    .price-shelf .ps-brand-logo img,
    .price-shelf .ps-brand-logo svg { max-height: 32px; }
    .price-shelf.is-cheapest::before {
        top: -8px; left: 12px; font-size: 0.58rem;
    }
}

/* ------------------------------------------------------------------
   Shopping list cards
------------------------------------------------------------------- */
.list-card {
    background: var(--paper);
    border: 1.5px solid var(--line);
    border-radius: 14px;
    padding: 1.5rem;
    height: 100%;
    position: relative;
    transition: all .2s ease;
    display: flex;
    flex-direction: column;
}
.list-card::before {
    content: "";
    position: absolute;
    top: 0; left: 1.5rem; right: 1.5rem;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--orange) 0 8px, transparent 8px 14px);
    border-radius: 2px;
}
.list-card:hover {
    transform: translateY(-3px);
    border-color: var(--orange);
    box-shadow: 0 28px 56px -28px rgba(241, 104, 16, 0.3);
}
.list-card h2 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: -0.015em;
    margin: 0.6rem 0 0.25rem;
}
.list-card h2 a { color: var(--ink); text-decoration: none; }
.list-card h2 a:hover { color: var(--orange); }
.list-card .list-meta {
    font-size: 0.8rem;
    color: var(--ink-mute);
    letter-spacing: 0.02em;
    margin-bottom: 1.2rem;
}
.list-card .list-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px dashed var(--line-ink);
}

/* ------------------------------------------------------------------
   Auth split layout
------------------------------------------------------------------- */
.auth-shell {
    min-height: calc(100vh - 180px);
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 0;
    background: var(--cream);
}
@media (max-width: 900px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-shell .auth-brand { display: none; }
}
.auth-brand {
    background: var(--ink);
    color: var(--cream);
    padding: 4rem 3.5rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.auth-brand::before {
    content: "";
    position: absolute;
    top: -150px; right: -150px;
    width: 500px; height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--orange) 0%, transparent 70%);
    opacity: 0.5;
}
.auth-brand::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 6px;
    background: repeating-linear-gradient(90deg, var(--orange) 0 30px, var(--ink) 30px 36px);
}
.auth-brand > * { position: relative; z-index: 2; }
.auth-brand .brand-kicker {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 1.5rem;
}
.auth-brand h1 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 3.6vw, 3.4rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--cream);
    margin: 0 0 1.5rem;
}
.auth-brand h1 em {
    font-style: italic;
    color: var(--orange);
    font-weight: 700;
}
.auth-brand p {
    color: rgba(253, 247, 236, 0.75);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 36ch;
}
.auth-brand .brand-footer {
    font-size: 0.78rem;
    color: rgba(253, 247, 236, 0.5);
    letter-spacing: 0.05em;
    border-top: 1px solid rgba(253, 247, 236, 0.15);
    padding-top: 1.5rem;
}

.auth-panel {
    padding: 4rem 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.auth-panel-inner { width: 100%; max-width: 420px; }
.auth-panel h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    margin: 0 0 0.4rem;
    letter-spacing: -0.025em;
}
.auth-panel .auth-sub {
    color: var(--ink-mute);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.85rem 1rem;
    background: var(--paper);
    border: 1.5px solid var(--line-ink);
    border-radius: 10px;
    color: var(--ink);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all .15s ease;
    margin-bottom: 0.65rem;
}
.social-btn:hover {
    background: var(--ink);
    color: var(--cream);
    border-color: var(--ink);
    text-decoration: none;
    transform: translateY(-1px);
}
.social-btn i { font-size: 1.15rem; }

.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    font-size: 0.78rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ink-mute);
}
.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line-ink);
}

/* ------------------------------------------------------------------
   Stagger animation (on page load)
------------------------------------------------------------------- */
@keyframes rise {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
.rise { animation: rise .6s ease both; }
.rise-1 { animation-delay: .05s; }
.rise-2 { animation-delay: .15s; }
.rise-3 { animation-delay: .25s; }
.rise-4 { animation-delay: .35s; }
.rise-5 { animation-delay: .45s; }

/* ------------------------------------------------------------------
   Misc utilities
------------------------------------------------------------------- */
.dashed-divider {
    border: 0;
    border-top: 1.5px dashed var(--line-ink);
    margin: 2rem 0;
}
.ink-on-cream { background: var(--ink); color: var(--cream); }
.text-orange { color: var(--orange) !important; }
.text-leaf { color: var(--leaf) !important; }

/* Autocomplete dropdown */
.autocomplete-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 6px;
    background: var(--paper);
    border: 1.5px solid var(--line-ink);
    border-radius: 12px;
    box-shadow: 0 24px 48px -24px rgba(10, 31, 51, 0.35);
    max-height: 380px;
    overflow-y: auto;
    z-index: 1050;
    padding: 4px;
}
.autocomplete-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--ink);
    font-size: 0.88rem;
    line-height: 1.3;
    cursor: pointer;
    transition: background .1s ease;
}
.autocomplete-item + .autocomplete-item {
    margin-top: 1px;
}
.autocomplete-item:hover,
.autocomplete-item.active {
    background: var(--cream-2);
    color: var(--ink);
    text-decoration: none;
}
.autocomplete-img,
.autocomplete-img-placeholder {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    object-fit: contain;
    background: var(--cream);
    border-radius: 6px;
    padding: 2px;
}
.autocomplete-img-placeholder {
    background: transparent;
}
.autocomplete-name {
    flex: 1;
    min-width: 0;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.autocomplete-size {
    color: var(--ink-mute);
    font-size: 0.78rem;
    font-weight: 400;
    margin-left: 4px;
}
.autocomplete-all {
    margin-top: 4px;
    border-top: 1px dashed var(--line-ink);
    border-radius: 0 0 8px 8px;
    color: var(--orange);
    font-weight: 600;
    padding-top: 10px;
}
.autocomplete-all:hover,
.autocomplete-all.active {
    background: var(--cream-2);
    color: var(--orange-2);
}
