/* ============================================================
   MadeFlow Webshop — Design CSS
   Rewritten to WEBSHOP_DESIGN_SPEC.md
   All colors via --color-* CSS custom properties (brandkit endpoint)
   No gradients · No triple shadows · No animation loops
   ============================================================ */

/* Alpine.js cloak */
[x-cloak] { display: none !important; }

/* ============================================================
   1. RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-background);
    min-height: 100vh;
    line-height: 1.55;
}

/* Papier-textuur overlay */
body::after {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.02;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Skip-to-content link (accessibility) */
.skip-link {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-accent);
    color: var(--color-text-button);
    padding: 8px 16px;
    border-radius: var(--radius);
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    z-index: 1000;
    transition: top 0.2s;
}
.skip-link:focus {
    top: 8px;
}

/* Focus visible (accessibility) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[role="tab"]:focus-visible,
[role="button"]:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* ============================================================
   1b. ANNOUNCEMENT BANNER
   ============================================================ */
.announcement-banner {
    background: var(--color-accent);
    color: var(--color-text-button);
    font-family: var(--font-ui);
    font-size: 13px;
    letter-spacing: 0.5px;
    padding: 10px 48px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.announcement-content {
    flex: 1;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.announcement-text {
    color: var(--color-text-button);
}

.announcement-cta {
    color: var(--color-text-button);
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 600;
    margin-left: 4px;
    transition: opacity 0.2s;
}

.announcement-cta:hover {
    opacity: 0.8;
}

.announcement-close {
    background: none;
    border: none;
    color: var(--color-text-button);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
    opacity: 0.5;
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    transition: opacity 0.2s;
}

.announcement-close:hover {
    opacity: 1;
}

/* ============================================================
   2. HEADER
   ============================================================ */
.header {
    background: var(--color-background);
    border-bottom: 1px solid var(--color-border);
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-family: var(--font-heading);
    font-size: 24px;
    color: var(--color-accent);
    text-decoration: none;
}

/* Logo slot: image met tekst-fallback */
.logo-slot {
    height: 44px;
    display: flex;
    align-items: center;
    text-decoration: none;
}
.logo-slot img {
    height: 44px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    display: block;
}

/* Header text-logo fallback (geen logo geupload) */
.header-brand {
    position: absolute;
    left: 24px;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text);
    text-decoration: none;
    white-space: nowrap;
}
.header-brand:hover { color: var(--color-accent); }

.nav { display: flex; gap: 24px; }
.nav a {
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-text-light);
    text-decoration: none;
    transition: color 0.2s;
}
.nav a:hover,
.nav a.active { color: var(--color-accent); }

/* Header actions (cart + login) — rechts uitgelijnd */
.header-actions {
    position: absolute;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-light);
    cursor: pointer;
    background: var(--color-background-light);
    border: 1px solid var(--color-border-light);
    border-radius: 8px;
    padding: 6px 14px;
    box-shadow: 0 1px 3px var(--shadow-color);
    transition: all 0.2s ease;
    text-decoration: none;
}

.login-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-light);
    background: none;
    border: 1px solid var(--color-border-light);
    border-radius: 8px;
    padding: 6px 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    max-width: 180px;
    white-space: nowrap;
}
.login-btn-text {
    overflow: hidden;
    text-overflow: ellipsis;
}
.logout-form { display: inline; }
.login-btn:hover {
    color: var(--color-accent);
    border-color: var(--color-accent);
}
.cart-btn:hover {
    background: var(--color-background-dark);
    color: var(--color-accent);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px var(--shadow-color);
}
.cart-btn:active {
    transform: scale(0.96);
    box-shadow: 0 1px 2px var(--shadow-color);
}

.cart-count {
    background: var(--color-accent);
    color: var(--color-text-button);
    font-size: 10px;
    min-width: 20px;
    height: 20px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
.cart-count.bump { transform: scale(1.4); }

/* Header — Checkout variant */
.header-back {
    font-family: var(--font-ui);
    font-size: 13px;
    color: var(--color-text-light);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}
.header-back:hover { color: var(--color-accent); }

/* Hamburger button — mobile only */
.hamburger {
    display: none;
    position: absolute;
    left: 16px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 110;
}
.hamburger-line {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--color-text);
    border-radius: 1px;
    margin: 4px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger.is-open {
    visibility: hidden;
}
.hamburger.is-open .hamburger-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.hamburger.is-open .hamburger-line:nth-child(2) {
    opacity: 0;
}
.hamburger.is-open .hamburger-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Mobile menu overlay */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 105;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.mobile-menu.open {
    opacity: 1;
    pointer-events: auto;
}
.mobile-menu-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background: var(--color-background);
    box-shadow: 4px 0 20px var(--shadow-color);
    padding: 80px 24px 24px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}
.mobile-menu.open .mobile-menu-panel {
    transform: translateX(0);
}
.mobile-menu-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--color-text);
    cursor: pointer;
    padding: 4px 8px;
    font-family: var(--font-ui);
    line-height: 1;
}
.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.mobile-menu-link {
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    text-decoration: none;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border-light);
    transition: color 0.2s ease;
}
.mobile-menu-link:hover {
    color: var(--color-accent);
}
.mobile-menu-link.secondary {
    color: var(--color-text-light);
    font-weight: 500;
}
.mobile-menu-footer {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--color-border-light);
}

/* ============================================================
   2B. LOGO BANNER (gecentreerd boven hero, optioneel)
   ============================================================ */
.logo-banner {
    text-align: center;
    padding: 40px 24px 32px;
    background: var(--color-background);
}
.logo-banner-img {
    max-height: 120px;
    width: auto;
    max-width: 360px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* ============================================================
   3. HERO
   ============================================================ */
.hero { text-align: center; padding: 40px 24px 8px; }
.hero h1 {
    font-family: var(--font-heading);
    font-size: 44px;
    color: var(--color-accent);
    margin-bottom: 6px;
}
.hero p {
    font-family: var(--font-body);
    font-size: 14px;
    font-style: italic;
    color: var(--color-text-light);
}

/* ============================================================
   4. CATEGORY TABS
   ============================================================ */
.categories {
    position: sticky;
    top: 97px;
    z-index: 90;
    background: var(--color-background);
    border-bottom: 1px solid var(--color-border);
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.tabs {
    display: flex;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }

/* Tabs wrapper */
.tabs-wrap {
    position: relative;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}
.tabs-fade {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 56px;
    background: linear-gradient(to right, transparent, var(--color-background) 60%);
    pointer-events: none;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 4px;
}
.tabs-fade-left {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 56px;
    background: linear-gradient(to left, transparent, var(--color-background) 60%);
    pointer-events: none;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 4px;
}

/* Search icon toggle */
.search-toggle {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    background: var(--color-background);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-left: 8px;
    transition: border-color 0.2s ease;
}
.search-toggle:hover {
    border-color: var(--color-accent);
}
.search-toggle svg {
    color: var(--color-text-light);
}

/* Expanded search bar */
.search-expanded {
    flex: 1;
    display: flex;
    align-items: center;
    position: relative;
    max-width: 280px;
    margin-left: auto;
}
.search-expanded-icon {
    position: absolute;
    left: 10px;
    color: var(--color-text-light);
    pointer-events: none;
}
.search-input-expanded {
    font-family: var(--font-ui);
    font-size: 14px;
    padding: 8px 36px 8px 32px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-background);
    color: var(--color-text);
    width: 100%;
    outline: none;
}
.search-input-expanded:focus {
    border-color: var(--color-accent);
}
.search-input-expanded::placeholder {
    color: var(--color-text-light);
    opacity: 0.6;
}
.search-close {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    font-size: 18px;
    color: var(--color-text-light);
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}
.search-close:hover {
    color: var(--color-text);
}

/* Search expand/collapse transitions */
.search-enter { transition: opacity 0.2s ease; }
.search-enter-start { opacity: 0; }
.search-enter-end { opacity: 1; }
.search-leave { transition: opacity 0.15s ease; }
.search-leave-start { opacity: 1; }
.search-leave-end { opacity: 0; }

/* Autosuggest dropdown */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-background-light, #fff);
    border: 1px solid var(--color-border-light);
    border-top: none;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    z-index: 150;
    overflow: hidden;
}
.search-suggestion {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 14px;
    border: none;
    background: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-ui);
    font-size: 13px;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border-light);
    transition: background 0.15s ease;
}
.search-suggestion:last-child {
    border-bottom: none;
}
.search-suggestion:hover,
.search-suggestion:focus {
    background: var(--color-hover-tint, rgba(0, 0, 0, 0.03));
}
.search-suggestion-img {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}
.search-suggestion-placeholder {
    background: var(--color-background-dark, #f0ebe4);
}
.search-suggestion-name {
    flex: 1;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.search-suggestion-price {
    color: var(--color-text-accent);
    font-weight: 600;
    font-family: var(--font-heading);
    flex-shrink: 0;
}
.search-suggestion-empty {
    padding: 14px;
    text-align: center;
    color: var(--color-text-light);
    font-family: var(--font-ui);
    font-size: 13px;
}

.tab {
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 500;
    padding: 14px 20px 12px;
    color: var(--color-text-light);
    cursor: pointer;
    border: none;
    background: none;
    position: relative;
    white-space: nowrap;
    transition: color 0.2s ease;
}
.tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    right: 20%;
    height: 2px;
    background: transparent;
    border-radius: 1px;
    transition: all 0.25s ease;
}
.tab:hover { color: var(--color-accent); }
.tab:hover::after { background: var(--color-accent-border); left: 10%; right: 10%; }
.tab.active { color: var(--color-accent); font-weight: 700; }
.tab.active::after { background: var(--color-accent); left: 10%; right: 10%; height: 2.5px; }

/* ============================================================
   5. PRODUCT GRID
   ============================================================ */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 960px;
    margin: 0 auto;
    padding: 24px;
}

/* ============================================================
   6. PRODUCT CARD
   ============================================================ */
.card {
    background: var(--color-background-dark);
    border-radius: var(--radius);
    border: 1px solid var(--color-border-light);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px var(--shadow-color), 0 1px 2px rgba(0,0,0,0.04);
    transition: box-shadow 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
}
.card:hover {
    box-shadow: 0 6px 20px var(--shadow-color);
    transform: translateY(-3px);
}

/* Unavailable state — only the photo is greyed out */
.card.unavailable:hover {
    box-shadow: 0 1px 3px var(--shadow-color);
    transform: none;
}
.card.unavailable .card-img-wrap { opacity: 0.45; }
.card.unavailable .card-img { filter: saturate(0.15) brightness(1.05); }
.btn-unavailable {
    background: var(--color-border-light) !important;
    color: var(--color-border) !important;
    cursor: default !important;
}

/* Availability pill */
.card-avail {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font: 600 9px var(--font-ui);
    color: var(--color-text-light);
    background: var(--color-background);
    border: 1px solid var(--color-border-light);
    border-radius: 4px;
    padding: 2px 7px;
    margin-top: 4px;
}
.card-avail-dot {
    width: 5px;
    height: 5px;
    border-radius: 6px;
    background: var(--color-success);
}

/* Availability badge (replaces "In mandje" button when unavailable) */
.card-avail-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 100%;
    min-height: 42px;
    padding: 8px 10px;
    background: var(--color-background);
    border: 1px solid var(--color-accent);
    border-radius: 8px;
    font-family: var(--font-ui);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-accent);
    text-align: center;
}
.card-avail-badge-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-light);
}
.card-avail-badge-days {
    font-weight: 600;
    color: var(--color-accent);
}
.card-avail-badge svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.card-img-wrap { position: relative; overflow: hidden; cursor: pointer; }
.card-img-wrap > * { pointer-events: none; }
.card-img {
    width: 100%;
    height: 225px;
    object-fit: cover;
    display: block;
    filter: saturate(0.92);
    transition: filter 0.3s ease;
}
.card:hover .card-img { filter: saturate(1.05); }

.card-body { padding: 16px 20px 14px; cursor: pointer; }
.card-name {
    font-family: var(--font-heading);
    font-size: 28px;
    color: var(--color-text-accent);
    line-height: 1.05;
    margin-bottom: 5px;
}
.card-desc {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--color-text-light);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* Image placeholder (geen foto) */
.card-img-placeholder {
    width: 100%;
    height: 225px;
    background: var(--color-background-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 20px;
    color: var(--color-text-light);
    opacity: 0.5;
    cursor: pointer;
}

/* Secondary image crossfade */
.card-img-secondary {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 225px;
    object-fit: cover;
    opacity: 0;
    filter: saturate(1.05);
    transition: opacity 0.6s ease;
}
.card:hover .card-img-secondary { opacity: 1; }

/* ============================================================
   7. CARD BADGE
   ============================================================ */
.card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    backdrop-filter: blur(8px);
    border-radius: 6px;
    font-family: var(--font-ui);
    font-size: 10px;
    font-weight: 600;
    padding: 4px 10px;
    z-index: 2;
}
.card-badge-stock {
    background: rgba(255,255,255,0.88);
    color: var(--color-text);
}
.card-badge-new {
    background: var(--color-accent);
    color: var(--color-text-button);
}
.card-badge-soldout {
    background: rgba(0,0,0,0.6);
    color: #fff;
}
.card-badge-customtext {
    background: rgba(255,255,255,0.88);
    color: var(--color-text);
}
/* Restant-teller: eigen slot rechtsboven, naast het linker badge-slot */
.card-badge-count {
    left: auto;
    right: 12px;
    background: rgba(255,255,255,0.88);
    color: var(--color-text);
}
/* Smalle kaarten (2-koloms grid): teller een regel lager als er links een badge staat */
@media (max-width: 959px) {
    .card-badge-count.card-badge-count-lower {
        top: 44px;
    }
}

/* ============================================================
   8. CARD RATING
   ============================================================ */
.card-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 4px;
}
.card-stars {
    font-size: 12px;
    letter-spacing: 1px;
    color: #e4a11b;
}
.card-stars .empty { opacity: 0.25; }
.card-review-count {
    font-family: var(--font-ui);
    font-size: 10px;
    color: var(--color-text-light);
}

/* ============================================================
   9. BUY ZONE (button + counter)
   ============================================================ */

/* Card buy zone */
.card-buy {
    padding: 14px 20px 18px;
    border-top: 1px dashed var(--color-border);
    margin-top: auto;
}
.price-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 12px;
}
.price {
    font-family: var(--font-ui);
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text-accent);
}
.price-per {
    font-family: var(--font-ui);
    font-size: 11px;
    color: var(--color-text-light);
}
.price-vat-label {
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 400;
    color: var(--color-text-light);
    margin-left: 4px;
}
.buy-row { display: flex; gap: 8px; align-items: center; }

/* Order button (full-width, prototype pattern) */
.btn-order {
    width: 100%;
    height: 42px;
    padding: 12px 28px;
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    text-decoration: none;
    background: var(--color-button);
    color: var(--color-text-button);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px var(--shadow-color);
    transition: all 0.2s ease;
}
.btn-order:hover {
    background: var(--color-button-hover);
    box-shadow: 0 4px 12px var(--shadow-color);
    transform: translateY(-2px);
}
.btn-order:active {
    transform: scale(0.97);
    filter: brightness(0.95);
    background: var(--color-button-hover);
}
.btn-order:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    filter: none;
    box-shadow: none;
}
.btn-order:disabled:hover {
    transform: none;
    box-shadow: none;
    background: var(--color-button);
}
.btn-order.btn-order-secondary {
    background: var(--color-background-light);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    box-shadow: none;
}
.btn-order.btn-order-secondary:hover {
    background: var(--color-background);
    box-shadow: 0 1px 3px var(--shadow-color);
}
.btn-order.added {
    background: var(--color-success);
    box-shadow: 0 1px 3px var(--shadow-color);
    text-transform: none;
    letter-spacing: 0.5px;
}
.btn-order.in-cart {
    background: var(--color-button);
    box-shadow: 0 1px 3px var(--shadow-color);
    letter-spacing: 0.5px;
    text-transform: none;
}

/* Full-width card counter (replaces button after adding to cart) */
.card-counter {
    display: flex;
    align-items: center;
    width: 100%;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    height: 42px;
    background: var(--color-background-light);
}
.card-counter button {
    width: 42px;
    height: 42px;
    border: none;
    background: transparent;
    font-family: var(--font-ui);
    font-size: 16px;
    font-weight: 600;
    color: var(--color-accent);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}
.card-counter button:hover { background: var(--hover-tint); }
.card-counter span {
    flex: 1;
    text-align: center;
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text);
    border-left: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border);
}

/* ============================================================
   10. (reserved — card info overlay removed, replaced by detail panel)
   ============================================================ */

/* ============================================================
   11. DETAIL ROWS & TAGS
   ============================================================ */
.detail-row { margin-bottom: 14px; }
.detail-row:last-child { margin-bottom: 0; }
.detail-label {
    font-family: var(--font-ui);
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-text-accent);
    margin-bottom: 4px;
}
.detail-text {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--color-text);
    line-height: 1.6;
}
.detail-text.sub {
    font-size: 11px;
    color: var(--color-text-light);
    font-style: italic;
    margin-top: 3px;
}
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
    font-family: var(--font-ui);
    font-size: 10px;
    font-weight: 500;
    padding: 4px 12px;
    background: var(--color-background-light);
    border: 1px solid var(--color-border-light);
    border-radius: 4px;
    color: var(--color-text-light);
    box-shadow: 0 1px 2px var(--shadow-color);
}
.tag.allergen {
    background: #fef3c7;
    border-color: #f59e0b;
    color: #92400e;
}

/* ============================================================
   12. TOAST
   ============================================================ */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: var(--color-background-light);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 500;
    padding: 12px 16px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 300;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), opacity 0.4s ease;
    opacity: 0;
}
.toast svg { color: var(--color-success); }
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* 13. Detail panel: verhuisd naar static/webshop/css/components/_detail-panel.css (COMMIT_10c PLAN_FRONTEND_GODFILES, geladen via base.html) */

/* ============================================================
/* ============================================================
   26. RESPONSIVE — Tablet
   ============================================================ */
@media (min-width: 640px) and (max-width: 959px) {
    .grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   27. RESPONSIVE — Mobile (<640px for products, <768px for checkout)
   ============================================================ */
@media (max-width: 639px) {
    .nav { display: none; }
    .hamburger { display: block; }
    .mobile-menu { display: block; }
    .header { padding: 0 16px; height: 52px; }
    .header-brand { left: 48px; font-size: 16px; }
    .login-btn {
        padding: 6px;
        background: var(--color-background-light);
        border: 1px solid var(--color-border-light);
        border-radius: 8px;
        box-shadow: 0 1px 3px var(--shadow-color);
    }
    .login-btn-text { display: none; }
    .logout-form { display: none !important; }
    .logo-slot img { height: 36px; max-width: 160px; }
    .hero { padding: 20px 16px 4px; }
    .hero h1 { font-size: 32px; }
    .hero p { font-size: 12px; }
    .categories { padding: 0 12px; top: 89px; }
    .search-toggle { width: 32px; height: 32px; }
    .search-expanded { max-width: none; }
    .tab { font-size: 13px; padding: 14px 18px 12px; }
    .grid { grid-template-columns: 1fr 1fr; gap: 10px; padding: 16px 12px 80px; }

    /* Compact cards */
    .card-img-wrap { height: auto; }
    .card-img { height: auto; aspect-ratio: 4/3; }
    .card-img-placeholder { height: auto; aspect-ratio: 4/3; }
    .card-img-secondary { height: auto; aspect-ratio: 4/3; }
    .card-body { padding: 8px 10px 6px; }
    .card-name { font-size: 19px; margin-bottom: 2px; }
    .card-desc { font-size: 10px; line-height: 1.4; }
    .card-buy { padding: 8px 10px 10px; }
    .price-row { margin-bottom: 6px; }
    .price { font-size: 16px; }
    .buy-row { flex-direction: column; gap: 0; }

    /* Detail panel becomes bottom drawer on mobile */
    .detail-panel {
        top: auto; right: 0; bottom: 0; left: 0;
        width: 100%;
        height: 80vh; height: 80dvh;
        border-radius: 10px 10px 0 0;
        transform: translateY(100%);
        box-shadow: 0 -8px 30px var(--shadow-color);
        transition: transform 0.25s ease;
    }
    .detail-backdrop.open .detail-panel { transform: translateY(0); }
    /* Swipe handle for drag-to-dismiss */
    .detail-swipe-handle {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 48px;
        cursor: grab;
        touch-action: none;
        z-index: 10;
    }
    .detail-swipe-handle::before {
        content: '';
        display: block;
        width: 40px;
        height: 4px;
        border-radius: 2px;
        background: var(--color-border);
        margin: 12px auto 0;
    }
    /* Gallery also responds to swipe */
    .detail-gallery { touch-action: pan-x; }
    .detail-panel::before {
        display: none;
    }
    .detail-gallery { height: 240px; }
    .detail-gallery-img { height: 240px; }
    .detail-buy { padding: 16px 20px; }
}

/* ============================================================
   28. ANNOUNCEMENT BAR
   ============================================================ */
.announce {
    background: var(--footer-bg);
    padding: 10px 24px;
    text-align: center;
    position: relative;
    z-index: 99;
}
.announce-text {
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 600;
    color: var(--footer-accent);
    letter-spacing: 0.3px;
}
.announce-text a {
    color: var(--footer-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.announce-close {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--footer-accent);
    opacity: 0.5;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 4px;
}
.announce-close:hover { opacity: 1; }
.announce.hidden { display: none; }
