/* ==========================================================================
   Laptophandel.nl — Coolblue-inspired design
   Kleuren: #0090E3 (blauw), #FF6600 (oranje), wit/grijs
   ========================================================================== */

:root {
    --cb-blue: #0090e3;
    --cb-blue-dark: #0078bd;
    --cb-blue-light: #e6f4fc;
    --cb-orange: #ff6600;
    --cb-orange-hover: #e85c00;
    --cb-bg: #f6f6f6;
    --cb-white: #ffffff;
    --cb-text: #333333;
    --cb-text-muted: #717171;
    --cb-border: #d5d5d5;
    --cb-success: #008000;
    --cb-error: #c41616;
    --cb-error-bg: #fde8e8;
    --cb-success-bg: #e8f5e9;
    --cb-footer: #0090e3;
    --font: "Open Sans", Arial, Helvetica, sans-serif;
    --radius: 4px;
    --radius-lg: 8px;
    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.08);
    --header-h: 64px;
    --max-w: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.5;
    color: var(--cb-text);
    background: var(--cb-bg);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--cb-blue); text-decoration: none; }
a:hover { color: var(--cb-blue-dark); text-decoration: underline; }

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.25;
    color: var(--cb-text);
}

.container {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 16px;
}

.muted { color: var(--cb-text-muted); }
.small { font-size: 14px; }

/* ---- Top bar (Coolblue blauw) ---- */
.top-bar {
    background: var(--cb-blue);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}
.top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 16px;
    padding: 8px 16px;
    text-align: center;
}
.top-bar-link { color: #fff; text-decoration: none; }
.top-bar-link:hover { text-decoration: underline; color: #fff; }
.top-bar-sep { opacity: 0.6; }

/* ---- Header ---- */
.site-header {
    background: var(--cb-white);
    border-bottom: 1px solid var(--cb-border);
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}
.site-header.is-scrolled {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--header-h);
    gap: 16px;
}

.logo { text-decoration: none; flex-shrink: 0; }
.logo:hover { text-decoration: none; }
.logo-wordmark {
    display: inline-block;
    background: var(--cb-blue);
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: var(--radius);
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.logo-footer .logo-wordmark { font-size: 18px; }

.nav {
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-link {
    color: var(--cb-text);
    font-weight: 600;
    font-size: 15px;
    padding: 8px 12px;
    border-radius: var(--radius);
    text-decoration: none;
}
.nav-link:hover {
    background: var(--cb-blue-light);
    color: var(--cb-blue);
    text-decoration: none;
}
.nav-user {
    color: var(--cb-text-muted);
    font-size: 14px;
    padding: 0 8px;
}
.nav-register { margin-left: 4px; }

.cart-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: var(--radius);
    color: var(--cb-text) !important;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 14px;
    position: relative;
    margin-left: 8px;
}
.cart-link:hover {
    background: var(--cb-blue-light);
    color: var(--cb-blue) !important;
}
.cart-link svg { flex-shrink: 0; }
.cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--cb-orange);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 99px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--cb-text);
}

.flash-wrap { padding-top: 12px; }
.site-main { min-height: 50vh; }
.page-wrap { padding: 24px 0 48px; }

/* ---- Buttons (Coolblue) ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none !important;
    transition: background 0.15s, color 0.15s;
    line-height: 1.2;
}
.btn-block { width: 100%; }
.btn-lg { padding: 14px 24px; font-size: 17px; }
.btn-small { padding: 8px 14px; font-size: 14px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-orange {
    background: var(--cb-orange);
    color: #fff !important;
}
.btn-orange:hover {
    background: var(--cb-orange-hover);
    color: #fff !important;
}

.btn-blue {
    background: var(--cb-blue);
    color: #fff !important;
}
.btn-blue:hover {
    background: var(--cb-blue-dark);
    color: #fff !important;
}

.btn-blue-outline {
    background: var(--cb-white);
    color: var(--cb-blue) !important;
    border: 2px solid var(--cb-blue);
}
.btn-blue-outline:hover {
    background: var(--cb-blue-light);
}

.btn-secondary {
    background: var(--cb-white);
    color: var(--cb-text) !important;
    border: 1px solid var(--cb-border);
}
.btn-secondary:hover { border-color: var(--cb-blue); color: var(--cb-blue) !important; }

.btn-ghost {
    background: transparent;
    color: var(--cb-blue) !important;
    border: 1px solid var(--cb-border);
}
.btn-ghost:hover { background: var(--cb-blue-light); }

/* Legacy aliases */
.btn-primary { background: var(--cb-blue); color: #fff !important; }
.btn-primary:hover { background: var(--cb-blue-dark); color: #fff !important; }

/* ---- Hero ---- */
.hero-cb {
    background: var(--cb-blue-light);
    border-bottom: 1px solid #cce9f7;
    padding: 32px 0 40px;
}
.hero-cb-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    align-items: center;
}
.hero-cb-kicker {
    font-size: 14px;
    font-weight: 600;
    color: var(--cb-blue);
    margin: 0 0 8px;
}
.hero-cb h1 {
    font-size: clamp(28px, 4vw, 40px);
    margin: 0 0 12px;
    color: var(--cb-text);
}
.hero-cb-text p {
    margin: 0 0 20px;
    color: var(--cb-text-muted);
    max-width: 520px;
}
.hero-cb-card {
    background: var(--cb-white);
    border: 1px solid var(--cb-border);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    text-align: center;
    box-shadow: var(--shadow-card);
    min-width: 200px;
}
.hero-cb-smiley {
    font-size: 48px;
    font-weight: 700;
    color: var(--cb-blue);
    margin-bottom: 8px;
}
.hero-cb-card p { margin: 0; font-size: 15px; color: var(--cb-text-muted); }
.hero-cb-card strong { color: var(--cb-blue); font-size: 28px; display: block; }

/* ---- USP bar ---- */
.usp-bar {
    background: var(--cb-white);
    border-bottom: 1px solid var(--cb-border);
}
.usp-bar-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 20px 16px;
}
.usp-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}
.usp-icon {
    width: 36px;
    height: 36px;
    background: var(--cb-blue-light);
    color: var(--cb-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.usp-item strong { color: var(--cb-text); }

/* ---- Shop / product grid ---- */
.shop-section {
    padding: 32px 0 48px;
    background: var(--cb-bg);
}
.section-head-cb {
    margin-bottom: 24px;
}
.section-head-cb h2 {
    margin: 0 0 4px;
    font-size: 28px;
}
.section-head-cb .muted { margin: 0; font-size: 15px; }

.product-grid,
.laptop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.product-card,
.laptop-card {
    background: var(--cb-white);
    border: 1px solid var(--cb-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s;
}
.product-card:hover,
.laptop-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.product-card-image,
.laptop-card-image-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding: 16px;
    aspect-ratio: 1;
    text-decoration: none !important;
}
.product-card-image img,
.laptop-card-image-wrap img {
    max-height: 180px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    margin: 0 auto;
}

.product-card-body,
.laptop-card-body {
    padding: 12px 16px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-brand,
.brand {
    font-size: 12px;
    color: var(--cb-text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

.product-title,
.laptop-card h2 {
    margin: 4px 0 8px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
}
.product-title a,
.laptop-card h2 a {
    color: var(--cb-text);
    text-decoration: none;
}
.product-title a:hover,
.laptop-card h2 a:hover {
    color: var(--cb-blue);
    text-decoration: underline;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 8px;
    font-size: 13px;
}
.stars { color: #ffc107; letter-spacing: -1px; }
.rating-text { color: var(--cb-text-muted); }

.product-price,
.price {
    font-size: 24px;
    font-weight: 700;
    color: var(--cb-text);
    margin: 0 0 4px;
}

.product-stock {
    font-size: 13px;
    color: var(--cb-success);
    font-weight: 600;
    margin: 0 0 12px;
}
.product-stock-out { color: var(--cb-error); }

.product-add-form,
.inline-add-cart { margin-top: auto; margin-bottom: 0; }

.card-actions { display: flex; gap: 8px; margin-top: auto; }

/* Promo */
.promo-cb,
.cta-band {
    background: var(--cb-blue);
    color: #fff;
    padding: 40px 0;
}
.promo-cb-inner,
.cta-band-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.promo-cb h2,
.cta-band h2 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 24px;
}
.promo-cb p,
.cta-band p {
    margin: 0;
    opacity: 0.95;
    max-width: 560px;
}

/* ---- Product detail (PDP) ---- */
.breadcrumb {
    font-size: 14px;
    color: var(--cb-text-muted);
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.breadcrumb a { color: var(--cb-blue); }

.pdp,
.laptop-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: var(--cb-white);
    padding: 24px;
    border: 1px solid var(--cb-border);
    border-radius: var(--radius-lg);
}

.pdp-image-frame,
.gallery-frame {
    background: #fff;
    border: 1px solid var(--cb-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pdp-image-frame img,
.gallery-frame img {
    max-height: 360px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.pdp h1 { font-size: 26px; margin: 8px 0 12px; }
.pdp-rating { margin-bottom: 16px; }
.pdp-price,
.price-lg {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 16px;
    color: var(--cb-text);
}

.pdp-usps {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    font-size: 15px;
}
.pdp-usps li {
    padding: 8px 0 8px 28px;
    position: relative;
    border-bottom: 1px solid #eee;
}
.pdp-usps li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--cb-blue);
    font-weight: 700;
}

.pdp-buy,
.detail-buy-box {
    background: var(--cb-bg);
    border: 1px solid var(--cb-border);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 24px;
}
.pdp-stock {
    font-weight: 600;
    color: var(--cb-success);
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.stock-yes {
    width: 10px;
    height: 10px;
    background: var(--cb-success);
    border-radius: 50%;
}
.pdp-stock-out,
.stock.out-of-stock { color: var(--cb-error); font-weight: 600; }

.pdp-form,
.add-cart-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.qty-label { margin: 0 !important; }
.qty-label select,
.qty-label input {
    margin-top: 6px;
    width: 100%;
    max-width: 120px;
}

.pdp-tabs h2 {
    font-size: 18px;
    margin: 24px 0 12px;
    padding-top: 16px;
    border-top: 1px solid var(--cb-border);
}
.pdp-description { color: var(--cb-text-muted); line-height: 1.65; }
.specs-box { margin-top: 16px; }
.specs {
    background: var(--cb-bg);
    padding: 16px;
    border-radius: var(--radius);
    border: 1px solid var(--cb-border);
    white-space: pre-wrap;
    font-family: inherit;
    font-size: 14px;
    margin: 0;
}

.detail-trust { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.detail-trust span {
    font-size: 13px;
    padding: 6px 10px;
    background: var(--cb-blue-light);
    border-radius: var(--radius);
    color: var(--cb-blue);
    font-weight: 600;
}

/* ---- Cart & checkout ---- */
.page-head { margin-bottom: 24px; }
.page-head h1 { margin: 4px 0 0; font-size: 28px; }

.cart-layout,
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    align-items: start;
}

.cart-row {
    display: grid;
    grid-template-columns: 100px 1fr auto auto;
    gap: 16px;
    align-items: center;
    background: var(--cb-white);
    padding: 16px;
    border: 1px solid var(--cb-border);
    border-radius: var(--radius-lg);
    margin-bottom: 12px;
}
.cart-row-image {
    background: #fff;
    border: 1px solid #eee;
    border-radius: var(--radius);
    overflow: hidden;
    display: block;
}
.cart-row-image img {
    width: 100px;
    height: 80px;
    object-fit: contain;
    padding: 4px;
}
.cart-row h2 { margin: 0; font-size: 16px; }
.cart-row h2 a { color: var(--cb-text); text-decoration: none; font-weight: 600; }
.cart-row-total { text-align: right; font-size: 18px; font-weight: 700; }

.cart-summary {
    background: var(--cb-white);
    border: 1px solid var(--cb-border);
    border-radius: var(--radius-lg);
    padding: 20px;
    position: sticky;
    top: calc(var(--header-h) + 24px);
}
.cart-summary h2 {
    margin: 0 0 16px;
    font-size: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--cb-border);
}
.summary-line {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 15px;
}
.summary-line.discount { color: var(--cb-success); font-weight: 600; }
.summary-line.total {
    font-size: 20px;
    font-weight: 700;
    border-top: 2px solid var(--cb-border);
    margin-top: 8px;
    padding-top: 12px;
}

.checkout-steps {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.checkout-steps .step {
    padding: 8px 16px;
    background: var(--cb-white);
    border: 1px solid var(--cb-border);
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    color: var(--cb-text-muted);
}
.checkout-steps .step.done {
    background: var(--cb-success-bg);
    border-color: #a5d6a7;
    color: var(--cb-success);
}
.checkout-steps .step.active {
    background: var(--cb-blue);
    border-color: var(--cb-blue);
    color: #fff;
}
.checkout-steps-success {
    justify-content: center;
    margin-bottom: 24px;
}

.discount-box {
    margin-top: 20px;
    padding: 16px;
    background: var(--cb-bg);
    border: 1px dashed var(--cb-border);
    border-radius: var(--radius-lg);
}
.discount-input-row { display: flex; gap: 8px; }
.discount-input-row input { flex: 1; }

.checkout-form-col {
    background: var(--cb-white);
    padding: 24px;
    border: 1px solid var(--cb-border);
    border-radius: var(--radius-lg);
}
.checkout-subtitle {
    margin: 0 0 16px;
    font-size: 20px;
    font-weight: 700;
}
.checkout-form { margin-top: 8px; }
.stripe-badge {
    text-align: center;
    font-size: 13px;
    color: var(--cb-text-muted);
    margin: 12px 0 0;
    padding: 8px;
    background: var(--cb-bg);
    border-radius: var(--radius);
}
.discount-code-input { text-transform: uppercase; }

/* ---- Forms ---- */
.form label {
    display: block;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--cb-text);
}
.form input,
.form textarea,
.form select {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 12px 14px;
    border: 1px solid var(--cb-border);
    border-radius: var(--radius);
    font: inherit;
    font-size: 16px;
    background: var(--cb-white);
    color: var(--cb-text);
}
.form input:focus,
.form textarea:focus,
.form select:focus {
    outline: none;
    border-color: var(--cb-blue);
    box-shadow: 0 0 0 2px rgba(0, 144, 227, 0.25);
}
.form-footer {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
    color: var(--cb-text-muted);
}

.auth-box {
    max-width: 440px;
    margin: 0 auto;
    background: var(--cb-white);
    padding: 32px;
    border: 1px solid var(--cb-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}
.auth-box h1 { margin: 0 0 8px; font-size: 26px; }

/* Legacy auth layout hide */
.auth-page-wrap { display: block; }
.auth-page-wrap-reverse { display: block; }
.auth-visual { display: none; }

/* Voettekst kleine letter met asterisk (Coolblue-stijl) */
.page-home .shop-section::after {
    content: "* Actievoorwaarden kunnen gelden. Zie productpagina voor details.";
    display: block;
    text-align: center;
    font-size: 12px;
    color: var(--cb-text-muted);
    margin-top: 24px;
    padding: 0 16px;
}

/* ---- Alerts & empty ---- */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    margin: 0 0 16px;
    font-size: 15px;
    font-weight: 600;
}
.alert-success {
    background: var(--cb-success-bg);
    color: #1b5e20;
    border: 1px solid #a5d6a7;
}
.alert-error {
    background: var(--cb-error-bg);
    color: var(--cb-error);
    border: 1px solid #f5c6c6;
}

.empty-card {
    text-align: center;
    background: var(--cb-white);
    padding: 48px 24px;
    border: 1px solid var(--cb-border);
    border-radius: var(--radius-lg);
    max-width: 480px;
    margin: 24px auto;
}
.empty-card-lg { max-width: 520px; }
.empty-icon { font-size: 48px; margin-bottom: 16px; }

.success-card,
.success-card-premium {
    text-align: center;
    background: var(--cb-white);
    padding: 48px 32px;
    border: 1px solid var(--cb-border);
    border-radius: var(--radius-lg);
    max-width: 560px;
    margin: 24px auto;
}
.success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: var(--cb-blue);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
}

.link-btn {
    background: none;
    border: none;
    color: var(--cb-blue);
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    text-decoration: underline;
    padding: 0;
}
.link-btn.danger { color: var(--cb-error); }

.stock.in-stock { color: var(--cb-success); font-weight: 600; }

/* ---- Footer (Coolblue blauw) ---- */
.site-footer {
    background: var(--cb-footer);
    color: #fff;
    margin-top: 48px;
    padding: 40px 0 24px;
}
.footer-tagline {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 20px;
    color: #fff;
}
.footer-usp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}
.footer-usp-grid strong { display: block; font-size: 15px; }
.footer-usp-grid span { font-size: 13px; opacity: 0.85; }

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}
.site-footer h4 {
    color: #fff;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 12px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; font-size: 14px; }
.site-footer a { color: rgba(255, 255, 255, 0.9); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-brand p { color: rgba(255, 255, 255, 0.85); font-size: 14px; max-width: 280px; }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    font-size: 13px;
    opacity: 0.9;
}
.logo-footer .logo-wordmark {
    background: #fff;
    color: var(--cb-blue);
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .hero-cb-inner { grid-template-columns: 1fr; }
    .hero-cb-card { max-width: 280px; }
    .usp-bar-inner { grid-template-columns: repeat(2, 1fr); }
    .pdp, .laptop-detail { grid-template-columns: 1fr; }
    .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
    .cart-summary { position: static; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-usp-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .top-bar-inner { font-size: 12px; }
    .nav-toggle { display: flex; }
    .cart-label { display: none; }
    .nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: var(--cb-white);
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        border-bottom: 1px solid var(--cb-border);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        transform: translateY(-120%);
        opacity: 0;
        visibility: hidden;
        transition: 0.25s ease;
        z-index: 199;
    }
    .nav.is-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    .nav-link { padding: 12px; }
    .cart-link {
        margin: 8px 0 0;
        justify-content: center;
        background: var(--cb-blue-light);
    }
    .product-grid, .laptop-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .product-title, .laptop-card h2 { font-size: 13px; }
    .product-price, .price { font-size: 20px; }
    .cart-row { grid-template-columns: 80px 1fr; }
    .cart-row-qty, .cart-row-total { grid-column: 2; }
    .promo-cb-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 400px) {
    .product-grid, .laptop-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Admin (functioneel, lichte Coolblue tint)
   ========================================================================== */
.admin-body {
    display: flex;
    min-height: 100vh;
    margin: 0;
    background: var(--cb-bg);
    font-family: var(--font);
}
.admin-sidebar {
    width: 240px;
    background: var(--cb-blue-dark);
    color: #fff;
    padding: 20px 12px;
    flex-shrink: 0;
}
.admin-sidebar .logo {
    color: #fff;
    font-weight: 700;
    display: block;
    margin-bottom: 8px;
    text-decoration: none;
}
.admin-sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 20px;
}
.admin-sidebar a {
    color: rgba(255, 255, 255, 0.85);
    padding: 10px 12px;
    border-radius: var(--radius);
    font-size: 14px;
    text-decoration: none;
}
.admin-sidebar a:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}
.admin-main { flex: 1; padding: 24px; overflow-x: auto; }
.admin-top h1 { margin: 0 0 20px; font-size: 24px; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.stat-card {
    background: var(--cb-white);
    padding: 20px;
    border: 1px solid var(--cb-border);
    border-radius: var(--radius-lg);
}
.stat-card span { display: block; color: var(--cb-text-muted); font-size: 13px; }
.stat-card strong { font-size: 28px; color: var(--cb-blue); }

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--cb-white);
    border: 1px solid var(--cb-border);
    border-radius: var(--radius-lg);
    font-size: 14px;
}
.data-table th, .data-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid #eee;
}
.data-table th {
    background: var(--cb-bg);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    color: var(--cb-text-muted);
}
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.inline-form { display: inline; }
.badge {
    background: var(--cb-bg);
    padding: 4px 8px;
    border-radius: var(--radius);
    font-size: 12px;
    border: 1px solid var(--cb-border);
}
.badge-pay { background: var(--cb-blue-light); color: var(--cb-blue); border: none; }
.admin-form { max-width: 560px; }
.preview-thumb { max-width: 200px; border-radius: var(--radius); margin: 12px 0; }
.order-detail p { margin: 6px 0; }
.inline-status-form { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin: 16px 0; }
.info-box {
    background: var(--cb-blue-light);
    border: 1px solid #99d4f5;
    padding: 16px;
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
}
.code-block {
    display: block;
    background: #333;
    color: #fff;
    padding: 10px 12px;
    border-radius: var(--radius);
    font-size: 13px;
    word-break: break-all;
}

.col-actions { width: 48px; text-align: right; }
.actions-menu { position: relative; display: inline-block; }
.actions-menu-trigger {
    list-style: none;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border: 1px solid var(--cb-border);
    border-radius: var(--radius);
    background: var(--cb-white);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.actions-menu-trigger::-webkit-details-marker { display: none; }
.actions-menu-panel {
    position: absolute;
    right: 0;
    top: 100%;
    min-width: 200px;
    background: var(--cb-white);
    border: 1px solid var(--cb-border);
    border-radius: var(--radius);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    z-index: 50;
    padding: 4px 0;
    margin-top: 4px;
}
.actions-menu-panel a {
    display: block;
    padding: 10px 14px;
    color: var(--cb-text);
    text-decoration: none;
}
.actions-menu-panel a:hover { background: var(--cb-blue-light); }
.actions-menu-delete { border-top: 1px solid #eee; margin: 0; padding: 0; }
.actions-menu-danger {
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px 14px;
    border: none;
    background: none;
    color: var(--cb-error);
    font-weight: 600;
    cursor: pointer;
    font: inherit;
}
.actions-menu-danger:hover { background: var(--cb-error-bg); }
