/* ============================================================
   vanDort Textiel — design tool styles (Folio thema)
   ============================================================ */

:root {
    /* Folio thema variabelen */
    --default-font: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    --heading-font: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    --background-color: #f8f4ee;
    --light-bg: #f3f1f0;
    --surface-color: #ffffff;
    --default-color: #5a5a5a;
    --heading-color: #2b2b2b;
    --muted-color: #898989;
    --border-color: #e8e3dd;
    --accent-color: #b8a07e;
    --accent-hover: #a48a64;
    --accent-light: #d8c4a8;
    --accent-bg: #f5efe6;
    --contrast-color: #ffffff;

    /* Functioneel */
    --color-success: #059652;
    --color-danger: #df1529;
    --color-warning: #b8a07e;
    --color-edit: #b8a07e;

    /* Schaduwen + radius */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 0.5rem 1rem rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 1rem 2rem rgba(0, 0, 0, 0.12);
    --radius: 1rem;
    --radius-sm: 0.5rem;
    --transition: 0.3s ease;
}

* { box-sizing: border-box; }

body {
    font-family: var(--default-font);
    margin: 0; padding: 0;
    background-color: #f8f4ee;
    background-image:
        radial-gradient(ellipse 800px 600px at 100% 0%, rgba(184, 160, 126, 0.10) 0%, transparent 60%),
        radial-gradient(ellipse 700px 500px at 0% 100%, rgba(184, 160, 126, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 600px 400px at 50% 50%, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
    background-attachment: fixed;
    color: var(--default-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

main { flex: 1; padding-top: 80px; }

body.no-scroll { overflow: hidden; }

h1, h2, h3, h4, h5, h6 {
    color: var(--heading-color);
    font-family: var(--heading-font);
    font-weight: 600;
}

a { color: var(--accent-color); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }

.section-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--heading-color);
    position: relative;
    padding-bottom: 0.75rem;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 50px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

.tool-title {
    font-weight: 600;
    margin: 0 0 1rem 0;
    color: var(--heading-color);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.85rem;
}

/* ===== Navbar ===== */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 70px;
    background: #1f1f1f;
    box-shadow: var(--shadow-md);
    z-index: 1000;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #2b2b2b;
}
.site-header .container-fluid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
}
.brand-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}
.brand-link img {
    height: 38px;
    width: auto;
    filter: brightness(1) drop-shadow(0 1px 2px rgba(0,0,0,0.3));
    transition: opacity var(--transition);
}
.brand-link:hover img { opacity: 0.85; }

.shop-header-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
    margin-right: 1rem;
}
.shop-header-nav a {
    color: rgba(255, 255, 255, 0.86);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}
.shop-header-nav a:hover,
.shop-header-nav a:focus {
    color: #fff;
}

.cart-button {
    background: transparent;
    border: 0;
    color: rgba(255, 255, 255, 0.9);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    font-family: inherit;
    font-size: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
}
.cart-button:hover, .cart-button:focus-visible {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
    outline: none;
}
.cart-button .cart-count-badge {
    background: var(--accent-color);
    color: #fff;
    border-radius: 999px;
    padding: 0.1rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.25rem;
    min-width: 22px;
    text-align: center;
}
.cart-button:hover .cart-count-badge {
    background: #fff;
    color: var(--accent-color);
}
@media (max-width: 575px) {
    .cart-button-label { display: none; }
    .shop-header-nav { display: none; }
}

/* ===== Edit-mode banner ===== */
.edit-mode-banner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.1rem;
    background: var(--accent-bg);
    border: 1px solid var(--accent-light);
    border-radius: var(--radius);
    color: var(--heading-color);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-sm);
}
.edit-mode-icon {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--accent-color);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.edit-mode-text { flex: 1; }
.edit-mode-cancel {
    background: transparent;
    border: 1px solid var(--accent-color);
    border-radius: var(--radius-sm);
    color: var(--accent-color);
    padding: 0.35rem 0.8rem;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition);
    font-family: inherit;
}
.edit-mode-cancel:hover {
    background: var(--accent-color);
    color: #fff;
}

/* ===== Form controls ===== */
.form-label {
    color: var(--heading-color);
    font-weight: 500;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
}
.form-select, .form-control {
    border-color: var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--default-color);
    font-family: inherit;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.form-select:focus, .form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(184, 160, 126, 0.15);
}

/* ===== Canvas ===== */
#canvas-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    background: var(--surface-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 1rem;
    border: 1px solid var(--border-color);
    transition: box-shadow var(--transition), transform var(--transition);
}
#canvas-container:hover { box-shadow: var(--shadow-lg); }

.fabric-canvas-wrapper {
    width: 100%; height: auto;
    display: flex; justify-content: center;
    position: relative;
}
canvas { max-width: 100%; height: auto; }

/* Drukvlak-aanduiding tijdelijk uitgeschakeld — uitlijning per kledingstuk
   moet nog kalibreert worden. Zet "display: none" terug op de volgende regel
   en haal "!important" weg om hem weer te activeren. */
.print-guides {
    position: absolute;
    pointer-events: none;
    display: none !important;
}
.print-guides.is-visible { display: none !important; }
.guide-line { position: absolute; background: rgba(25, 25, 25, 0.25); }
.guide-center { top: 0; bottom: 0; left: 50%; width: 1px; }
.guide-chest { left: 12%; right: 12%; top: 34%; height: 1px; }
.guide-zone {
    position: absolute;
    border: 2px dashed rgba(31, 31, 31, 0.35);
    background: rgba(184, 160, 126, 0.08);
    border-radius: 8px;
}
.guide-label {
    position: absolute;
    transform: translateY(-100%);
    font-size: 0.75rem;
    color: var(--muted-color);
    background: rgba(255,255,255,0.9);
    padding: 0.15rem 0.35rem;
    border-radius: 4px;
}
.upload-quality-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: .5rem;
}
.upload-quality-clear {
    border: none; background: transparent; font-size: 1.4rem; line-height: 1;
    cursor: pointer; color: var(--muted-color); padding: 0 .25rem;
}
.upload-quality-clear:hover { color: var(--text-color); }
.upload-quality-block + .upload-quality-block {
    margin-top: .75rem; padding-top: .75rem;
    border-top: 1px dashed var(--border-color);
}
.upload-quality-title {
    font-weight: 600; margin-bottom: .25rem; font-size: .9rem;
}
.upload-quality {
    border: 1px solid var(--border-color);
    background: var(--light-bg);
    border-radius: var(--radius-md);
    padding: 0.75rem;
    font-size: 0.85rem;
}
.upload-quality strong { display: block; margin-bottom: 0.25rem; }
.upload-quality ul { margin: 0.35rem 0 0; padding-left: 1.1rem; }
.logo-edit-options {
    border: 1px solid var(--border-color);
    background: var(--light-bg);
    border-radius: var(--radius-md);
    padding: 0.85rem;
}
.logo-edit-title {
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 0.5rem;
}
.logo-edit-row {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}
.logo-edit-tolerance {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 0.5rem;
    align-items: center;
    margin: -0.15rem 0 0.65rem 1.45rem;
    font-size: 0.82rem;
    color: var(--muted-color);
}
.logo-edit-preview {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #fff;
}
.logo-edit-preview__head {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.55rem 0.75rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.85rem;
}
.logo-edit-preview__head span {
    color: var(--muted-color);
    text-align: right;
}
.logo-edit-preview__stage {
    min-height: 150px;
    display: grid;
    place-items: center;
    padding: 1rem;
    background-color: #f7f7f7;
    background-image:
        linear-gradient(45deg, #e4e4e4 25%, transparent 25%),
        linear-gradient(-45deg, #e4e4e4 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #e4e4e4 75%),
        linear-gradient(-45deg, transparent 75%, #e4e4e4 75%);
    background-size: 18px 18px;
    background-position: 0 0, 0 9px, 9px -9px, -9px 0;
}
.logo-edit-preview__stage img {
    max-width: 100%;
    max-height: 220px;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,.12));
}

.canvas-hint {
    color: var(--muted-color);
}
.canvas-hint kbd {
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 0.75rem;
    color: var(--heading-color);
    font-family: inherit;
}

/* ===== Ontwerpstappen en productkeuze ===== */
.designer-steps {
    display: flex;
    align-items: center;
    padding: 0.85rem 1rem;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.designer-step {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0;
    color: var(--muted-color);
    background: transparent;
    border: 0;
    white-space: nowrap;
}
.designer-step span {
    display: grid;
    place-items: center;
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 50%;
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    font-size: 0.78rem;
    font-weight: 800;
}
.designer-step strong { font-size: 0.82rem; font-weight: 700; }
.designer-step.completed span,
.designer-step.active span { color: #fff; background: var(--accent-color); border-color: var(--accent-color); }
.designer-step.active { color: var(--heading-color); }
.designer-step-line { flex: 1 1 2rem; height: 1px; margin: 0 0.65rem; background: var(--border-color); }
#product-choice,
#shirt-color-block,
#size-choice,
#design-workspace,
#price-card { scroll-margin-top: 6.5rem; }
.designer-product-card {
    position: relative;
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
    padding: 1rem;
    background: linear-gradient(135deg, #fff 0%, #f5f2ed 100%);
    border: 1px solid #d8e3dc;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.designer-product-visual {
    display: grid;
    place-items: center;
    min-height: 118px;
    padding: 0.4rem;
    background: linear-gradient(145deg, #e7ebe8, #d9dfdb);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}
.designer-product-visual img { width: 100%; height: 112px; object-fit: contain; filter: drop-shadow(0 10px 10px rgba(28, 38, 32, 0.12)); }
.designer-product-copy { min-width: 0; }
.designer-step-kicker,
.designer-step-heading span,
.step-number-inline {
    color: var(--accent-color);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}
.designer-step-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 0.2rem;
    font-size: 0.64rem;
    letter-spacing: 0.04em;
}
.designer-product-meta { color: var(--muted-color); font-size: 0.88rem; }
.designer-product-price { color: var(--heading-color); font-size: 0.9rem; }
.designer-step-heading { display: flex; align-items: baseline; gap: 0.55rem; margin: 0 0 0.85rem; }
.designer-step-heading strong { color: var(--heading-color); font-size: 1.05rem; }
.designer-product-bar {
    grid-template-columns: 88px minmax(0, 1fr) auto;
    gap: 0.9rem 1.15rem;
    align-items: center;
    padding: 0.75rem 0.9rem;
}
.designer-product-bar .designer-product-visual { min-height: 82px; }
.designer-product-bar .designer-product-visual img { height: 78px; }
.designer-product-bar .designer-product-copy { display: block; }
.designer-product-bar .designer-product-meta { margin-bottom: 0; }
.designer-product-bar .product-sale-status { margin-top: 0.45rem; padding: 0.25rem 0.55rem; font-size: 0.72rem; }
.designer-product-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: flex-start; gap: 0.45rem; }
.designer-product-actions .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; white-space: nowrap; font-size: 0.82rem; }
.designer-save-control { display: grid; justify-items: end; gap: 0.2rem; margin-right: 0.2rem; }
.draft-save-status { color: var(--muted-color); font-size: 0.68rem; line-height: 1.15; }
.draft-save-status.is-saved { color: #287047; }
.draft-save-status.is-saving { color: #8b6d26; }
.draft-save-status.is-error { color: #a33333; font-weight: 700; }

.saved-draft-notice {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.8rem;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.8rem 0.9rem;
    color: #244635;
    background: #edf6f0;
    border: 1px solid #c9dfd0;
    border-radius: var(--radius-sm);
}
.saved-draft-notice[hidden] { display: none; }
.saved-draft-icon { display: grid; place-items: center; width: 2rem; height: 2rem; color: #fff; background: #2e6b49; border-radius: 50%; }
.saved-draft-copy strong, .saved-draft-copy span { display: block; }
.saved-draft-copy strong { color: #1c3c2b; font-size: 0.9rem; }
.saved-draft-copy span { margin-top: 0.08rem; color: #557061; font-size: 0.76rem; }
.saved-draft-actions { display: flex; align-items: center; gap: 0.35rem; }
.saved-draft-actions .btn-link { color: #557061; font-size: 0.76rem; }

.product-picker-dialog {
    width: min(1040px, calc(100% - 2rem));
    max-height: calc(100vh - 2rem);
    margin: auto;
    padding: 0;
    overflow: hidden;
    color: var(--default-color);
    background: #fff;
    border: 0;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}
.product-picker-dialog::backdrop { background: rgba(22, 22, 22, 0.66); }
.product-picker-content { max-height: calc(100vh - 7rem); padding: 1.25rem 1.5rem 1.5rem; overflow: auto; }
.product-picker-controls { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.product-picker-controls .form-control { flex: 1 1 320px; }
.product-filter-buttons { display: flex; gap: 0.35rem; }
.product-filter-buttons button {
    padding: 0.48rem 0.75rem;
    color: var(--muted-color);
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
}
.product-filter-buttons button.active { color: #fff; background: var(--accent-color); border-color: var(--accent-color); }
.product-picker-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.85rem; }
.product-picker-card {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 0.85rem;
    align-items: center;
    padding: 0.9rem;
    text-align: left;
    color: inherit;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.product-picker-card:hover { transform: translateY(-2px); border-color: var(--accent-color); box-shadow: var(--shadow-md); }
.product-picker-card.active { border: 2px solid var(--accent-color); background: var(--accent-bg); }
.product-picker-card:disabled { cursor: not-allowed; opacity: 0.55; transform: none; }
.product-picker-card img { width: 92px; height: 105px; object-fit: contain; background: var(--light-bg); border-radius: 8px; }
.product-picker-card strong { display: block; color: var(--heading-color); }
.product-picker-card small { display: block; margin-top: 0.25rem; color: var(--muted-color); }
.product-picker-card .product-picker-price { margin-top: 0.45rem; color: var(--accent-color); font-weight: 800; }
.product-picker-empty { padding: 2rem; text-align: center; color: var(--muted-color); }

/* ===== Side switcher ===== */
.side-switcher {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}
.side-switcher .btn {
    width: 100%;
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--default-color);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition);
}
.side-switcher .btn i { margin-right: 0.42rem; font-size: 0.88rem; }
.side-switcher .btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}
.side-switcher .btn.active {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}
@media (max-width: 575px) { .side-switcher { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ===== Tool blocks ===== */
.tool-block {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition);
}
.tool-block:hover { box-shadow: var(--shadow-md); }

/* ===== Knoppen (algemeen) ===== */
.btn {
    font-family: inherit;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    font-weight: 500;
}
.btn-primary, .btn-accent {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
}
.btn-primary:hover, .btn-accent:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #fff;
}
.btn-success {
    background: var(--accent-color);
    border-color: var(--accent-color);
}
.btn-success:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}
.btn-outline-secondary, .btn-outline-primary {
    border-color: var(--border-color);
    color: var(--default-color);
    background: #fff;
}
.btn-outline-secondary:hover, .btn-outline-primary:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background: var(--accent-bg);
}
.btn-outline-danger {
    color: var(--color-danger);
    border-color: var(--color-danger);
    background: #fff;
}
.btn-outline-danger:hover {
    background: var(--color-danger);
    border-color: var(--color-danger);
    color: #fff;
}

/* ===== Gildan kleurkiezer ===== */
.gildan-color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(48px, 1fr));
    gap: 0.55rem;
    max-height: 300px;
    overflow-y: auto;
    padding: 0.25rem;
}
.color-picker-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.85rem; }
.color-picker-toolbar .form-control { min-width: 0; }
.color-picker-intro { max-width: 25rem; color: var(--muted-color); font-size: 0.82rem; line-height: 1.35; }
.gildan-color-btn[hidden] { display: none; }
.size-choice-panel { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border-color); }
.size-choice-panel .form-label { display: flex; align-items: center; gap: 0.55rem; font-weight: 700; }
.size-button-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.size-option-btn {
    display: inline-flex;
    min-width: 3.25rem;
    min-height: 2.7rem;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.52rem 0.8rem;
    color: var(--heading-color);
    background: #fff;
    border: 1px solid #d7dbd8;
    border-radius: 10px;
    box-shadow: 0 2px 7px rgba(28, 38, 32, 0.04);
    font-size: 0.85rem;
    font-weight: 700;
    transition: color var(--transition), background var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.size-option-btn:hover:not(:disabled) { transform: translateY(-1px); border-color: var(--accent-color); box-shadow: 0 5px 12px rgba(28, 38, 32, 0.09); }
.size-option-btn.active { color: #fff; background: var(--accent-color); border-color: var(--accent-color); box-shadow: 0 5px 14px rgba(150, 125, 90, 0.24); }
.size-option-btn small { font-size: 0.68rem; font-weight: 600; opacity: 0.78; }
.size-option-btn:disabled { cursor: not-allowed; opacity: 0.34; text-decoration: line-through; box-shadow: none; }
.gildan-color-grid::-webkit-scrollbar { width: 6px; }
.gildan-color-grid::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 3px; }
.gildan-color-btn {
    position: relative;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px var(--border-color), var(--shadow-sm);
    cursor: pointer;
    padding: 0;
    transition: transform var(--transition), box-shadow var(--transition);
}
.gildan-color-btn:hover {
    transform: scale(1.12);
    box-shadow: 0 0 0 2px var(--accent-color), var(--shadow-md);
}
.gildan-color-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--accent-color);
}
.gildan-color-btn.active {
    box-shadow: 0 0 0 3px var(--accent-color), var(--shadow-sm);
}
.gildan-color-btn.is-light::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.color-info {
    margin-top: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: var(--light-bg);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--muted-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.designer-inline-product-info {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.designer-inline-product-info > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    color: var(--heading-color);
    cursor: pointer;
    font-weight: 700;
    list-style: none;
}
.designer-inline-product-info > summary::-webkit-details-marker { display: none; }
.designer-inline-product-info > summary span { display: inline-flex; align-items: center; gap: 0.45rem; }
.designer-inline-product-info > summary > i { transition: transform var(--transition); }
.designer-inline-product-info[open] > summary > i { transform: rotate(180deg); }
.designer-inline-product-info .product-detail-content { padding: 0 1rem 1rem; border-top: 1px solid var(--border-color); }
.draft-storage-note { padding-top: 0.55rem; color: var(--muted-color); text-align: center; font-size: 0.72rem; }
.color-info-name { color: var(--heading-color); font-weight: 500; }
.color-info-code { font-family: monospace; }

/* Tekstkleur — kleinere swatches */
.text-color-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.text-color-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px var(--border-color);
    cursor: pointer;
    padding: 0;
    transition: transform var(--transition);
}
.text-color-btn:hover { transform: scale(1.15); }
.text-color-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--accent-color);
}

/* ===== Font cards ===== */
.font-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.5rem;
    max-height: 320px;
    overflow-y: auto;
    padding: 0.25rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--light-bg);
}
.font-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.85rem 0.6rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    font-size: 1.1rem;
    color: var(--heading-color);
    line-height: 1.2;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    user-select: none;
}
.font-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}
.font-card.active {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}
.font-card-category {
    grid-column: 1 / -1;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted-color);
    padding: 0.6rem 0.25rem 0.25rem;
}
.font-card-category:first-child { padding-top: 0.25rem; }

/* ===== Quantity ===== */
.qty-control {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #fff;
}
.qty-control button {
    background: #fff;
    border: 0;
    color: var(--heading-color);
    width: 44px;
    font-size: 1.25rem;
    cursor: pointer;
    transition: background var(--transition);
    font-family: inherit;
}
.qty-control button:hover { background: var(--accent-bg); color: var(--accent-color); }
.qty-control input {
    width: 70px;
    border: 0;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    text-align: center;
    font-size: 1rem;
    background: #fff;
    color: var(--heading-color);
    font-family: inherit;
    font-weight: 600;
}
.qty-control input::-webkit-outer-spin-button,
.qty-control input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-control input[type=number] { -moz-appearance: textfield; }

/* ===== Productinformatie ===== */
.product-info-block {
    background: linear-gradient(135deg, #ffffff 0%, var(--accent-bg) 100%);
}
.product-info-list {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 0.5rem 1rem;
    margin: 0;
    font-size: 0.9rem;
}
.product-info-list dt {
    color: var(--muted-color);
    font-weight: 500;
}
.product-info-list dd {
    margin: 0;
    color: var(--heading-color);
    font-weight: 600;
}
.product-info-note {
    margin-top: 1rem;
    margin-bottom: 0;
    padding: 0.75rem 1rem;
    background: #fff;
    border-left: 3px solid var(--accent-color);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--default-color);
    box-shadow: var(--shadow-sm);
}
.product-sale-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0.9rem 0 0;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: #e8f7ed;
    color: #176b35;
    font-size: 0.78rem;
    font-weight: 700;
}
.product-sale-status.is-unavailable {
    background: #fff2d9;
    color: #7a4a00;
}
.gildan-color-btn:disabled {
    cursor: not-allowed;
    opacity: 0.28;
    filter: grayscale(0.8);
}
.gildan-color-btn:disabled:hover { transform: none; }

.product-detail-dialog {
    width: min(760px, calc(100% - 2rem));
    max-height: min(820px, calc(100vh - 2rem));
    margin: auto;
    padding: 0;
    overflow: hidden;
    color: var(--default-color);
    background: #fff;
    border: 0;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}
.product-detail-dialog::backdrop { background: rgba(22, 22, 22, 0.62); }
.product-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}
.product-detail-eyebrow {
    margin: 0 0 0.15rem;
    color: var(--muted-color);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.product-detail-close {
    width: 2.6rem;
    height: 2.6rem;
    padding: 0;
    color: var(--heading-color);
    background: var(--accent-bg);
    border: 0;
    border-radius: 50%;
    font-size: 1.65rem;
    line-height: 1;
}
.product-detail-close:focus-visible { outline: 3px solid var(--accent-color); outline-offset: 2px; }
.product-detail-content {
    max-height: calc(100vh - 8rem);
    padding: 1.5rem;
    overflow: auto;
}
.product-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}
.product-detail-section {
    padding: 1rem;
    background: var(--accent-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}
.product-detail-section.is-primary {
    background: #f2f7f4;
    border-color: #b8d0c1;
    box-shadow: inset 0 3px 0 var(--accent-color);
}
.product-detail-section.is-wide { grid-column: 1 / -1; }
.product-detail-section h3 { margin: 0 0 0.65rem; font-size: 1rem; }
.product-detail-section p:last-child,
.product-detail-section ul:last-child { margin-bottom: 0; }
.product-detail-section ul { padding-left: 1.15rem; }
.product-safety-contact { margin: 0 0 0.75rem; font-style: normal; white-space: pre-line; }
.product-source-link { overflow-wrap: anywhere; }
.product-sheet-download {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0.65rem 0.9rem;
    color: #fff;
    background: var(--heading-color);
    border-radius: var(--radius-sm);
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
}
.product-sheet-download:hover { color: #fff; background: #000; }
.product-sheet-download:focus-visible { outline: 3px solid var(--accent-color); outline-offset: 2px; }
@media (max-width: 620px) {
    .product-detail-grid { grid-template-columns: 1fr; }
    .product-detail-section.is-wide { grid-column: auto; }
    .product-detail-header,
    .product-detail-content { padding: 1rem; }
}

/* ===== Prijs ===== */
.price-block { background: linear-gradient(135deg, #ffffff 0%, var(--accent-bg) 100%); }
.price-breakdown { font-size: 0.95rem; }
.price-row {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
    color: var(--muted-color);
}
.price-row-subtotal {
    color: var(--heading-color);
    border-top: 1px dashed var(--border-color);
    margin-top: 0.5rem;
    padding-top: 0.6rem;
    font-weight: 500;
}
.price-row-total {
    color: var(--heading-color);
    border-top: 2px solid var(--heading-color);
    margin-top: 0.5rem;
    padding-top: 0.6rem;
    font-size: 1.25rem;
    font-weight: 700;
}
.price-info {
    margin-top: 0.75rem;
    padding: 0.65rem 0.85rem;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
}
.price-info summary {
    cursor: pointer;
    color: var(--muted-color);
    user-select: none;
}
.price-info summary:hover { color: var(--accent-color); }
.price-info[open] summary {
    color: var(--heading-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
}
.price-info ul { margin: 0.5rem 0; padding-left: 1.25rem; }
.price-info li { margin-bottom: 0.4rem; }

/* ===== Logo list ===== */
.logo-list-container {
    background: var(--light-bg);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.85rem;
}
.logo-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.logo-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    box-shadow: var(--shadow-sm);
}
.logo-item span {
    font-weight: 500;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--heading-color);
}
.logo-item-actions { display: flex; gap: 0.25rem; }
.logo-item button {
    background: var(--accent-color);
    color: #fff;
    border: 0;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.78rem;
    cursor: pointer;
    transition: background var(--transition);
    font-family: inherit;
}
.logo-item button:hover { background: var(--accent-hover); }
.logo-item button.remove { background: var(--color-danger); }
.logo-item button.remove:hover { background: #b8121e; }

/* ===== Popup ===== */
.popup {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.popup-content {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 1.75rem;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
}
.popup-content h3 {
    color: var(--heading-color);
    margin-bottom: 1rem;
}

/* ===== Cart sidebar ===== */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 1200;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }

.cart-sidebar {
    position: fixed;
    top: 0; right: 0;
    height: 100%;
    width: 100%;
    max-width: 460px;
    background: #fff;
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1201;
    display: flex;
    flex-direction: column;
}
.cart-sidebar.open { transform: translateX(0); }

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--light-bg);
}
.cart-header h2 { color: var(--heading-color); font-weight: 700; }
.cart-close {
    background: transparent;
    border: 0;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    color: var(--muted-color);
    padding: 0 0.5rem;
    transition: color var(--transition);
}
.cart-close:hover { color: var(--heading-color); }

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem 1.5rem;
}
.cart-empty {
    text-align: center;
    color: var(--muted-color);
    padding: 2rem 0;
}
.cart-help {
    margin-bottom: 1rem;
    text-align: center;
    color: var(--muted-color);
}
.cart-items { display: flex; flex-direction: column; gap: 0.85rem; }

.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 0.85rem;
    padding: 0.85rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: #fff;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.cart-item-editing {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(184, 160, 126, 0.2);
}
.cart-item-thumb {
    width: 80px; height: 80px;
    border-radius: var(--radius-sm);
    background: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--border-color);
    cursor: pointer;
    padding: 0;
    transition: all var(--transition);
}
.cart-item-thumb:hover {
    transform: scale(1.04);
    border-color: var(--accent-color);
}
.cart-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-thumb.no-thumb { font-size: 2rem; }

.cart-item-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}
.cart-item-title { font-weight: 600; font-size: 0.95rem; color: var(--heading-color); }
.cart-item-meta { font-size: 0.8rem; color: var(--muted-color); }
.cart-item-price { font-size: 0.85rem; color: var(--muted-color); }

.cart-item-qty {
    display: inline-flex;
    align-items: center;
    margin-top: 0.4rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
    width: fit-content;
    background: #fff;
}
.cart-item-qty button {
    background: #fff;
    border: 0;
    width: 30px;
    height: 30px;
    cursor: pointer;
    color: var(--heading-color);
    font-size: 1rem;
    font-family: inherit;
}
.cart-item-qty button:hover { background: var(--accent-bg); color: var(--accent-color); }
.cart-item-qty input {
    width: 44px;
    height: 30px;
    text-align: center;
    border: 0;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--heading-color);
}
.cart-item-qty input::-webkit-outer-spin-button,
.cart-item-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cart-item-qty input[type=number] { -moz-appearance: textfield; }

.cart-item-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    text-align: right;
    gap: 0.25rem;
}
.cart-item-subtotal { font-weight: 700; font-size: 1rem; color: var(--heading-color); }
.cart-item-edit, .cart-item-remove {
    background: transparent;
    border: 0;
    font-size: 0.8rem;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
}
.cart-item-edit { color: var(--accent-color); }
.cart-item-edit:hover { text-decoration: underline; }
.cart-item-remove { color: var(--color-danger); }
.cart-item-remove:hover { text-decoration: underline; }

.cart-footer {
    border-top: 1px solid var(--border-color);
    padding: 1.25rem 1.5rem;
    background: var(--light-bg);
}
.cart-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.85rem;
    color: var(--heading-color);
}

/* ===== Toasts ===== */
#toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1300;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: calc(100% - 3rem);
}
.toast {
    background: var(--heading-color);
    color: #fff;
    padding: 0.85rem 1.1rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    font-size: 0.9rem;
    min-width: 240px;
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.toast.show { transform: translateX(0); opacity: 1; }
.toast-success { background: var(--color-success); }
.toast-warning { background: var(--accent-color); }
.toast-error   { background: var(--color-danger); }
.toast-info    { background: var(--accent-hover); }

@media (max-width: 575px) {
    #toast-container {
        right: 0.75rem; left: 0.75rem; bottom: 0.75rem; max-width: none;
    }
    .toast { min-width: 0; }
}

/* ===== Footer ===== */
.site-footer {
    background: #1f1f1f;
    color: rgba(255, 255, 255, 0.75);
    padding: 2.25rem 0 1.25rem;
    font-size: 0.9rem;
    margin-top: 3rem;
}
.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #fff;
    font-weight: 600;
}
.footer-brand img {
    height: 26px;
    filter: brightness(1);
}
.footer-links {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}
.footer-links a {
    color: rgba(255, 255, 255, 0.75);
    transition: color var(--transition);
}
.footer-links a:hover { color: var(--accent-color); }
.footer-bottom {
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* ===== Card hover (Folio-stijl) ===== */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-hover:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

/* ===== Focus states ===== */
.btn:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* ===== Bootstrap text-color overrides (Folio thema) ===== */
.text-muted { color: var(--muted-color) !important; }
.form-text { color: var(--muted-color); }

/* ===== Typografie helpers ===== */
.kbd-key {
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 0.75rem;
    font-family: monospace;
}

/* ===== Input group ===== */
.input-group .btn { border-top-left-radius: 0; border-bottom-left-radius: 0; }

/* ===== Cart sidebar summary ===== */
.cart-summary {
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}
.cart-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.3rem 0;
    color: var(--default-color);
}
.cart-summary-row.cart-summary-discount {
    color: var(--color-success);
    font-weight: 500;
}
.cart-summary-row.cart-summary-free {
    color: var(--color-success);
    font-weight: 500;
}
.cart-summary-hint {
    background: var(--accent-bg);
    border-left: 3px solid var(--accent-color);
    padding: 0.45rem 0.7rem;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-top: 0.45rem;
    color: var(--heading-color);
}
.cart-summary-hint i { color: var(--accent-color); margin-right: 0.25rem; }

/* ===== Volume hint in design tool ===== */
.volume-hint {
    background: var(--accent-bg);
    border: 1px solid var(--accent-light);
    color: var(--heading-color);
    padding: 0.6rem 0.85rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    margin: 0.75rem 0 0;
    text-align: center;
}
.volume-hint i { color: var(--accent-color); margin-right: 0.35rem; }

/* ===== Cart pagina ===== */
.page-hero {
    background: linear-gradient(135deg, #fff 0%, var(--accent-bg) 100%);
    padding: 2.5rem 0 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}
.page-hero h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}
.page-hero .breadcrumb-link {
    color: var(--muted-color);
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}
.page-hero .breadcrumb-link:hover { color: var(--accent-color); }

.cart-page-empty {
    text-align: center;
    padding: 4rem 1rem;
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    color: var(--muted-color);
}
.cart-page-empty .display-1 {
    font-size: 4rem;
    color: var(--accent-light);
    margin-bottom: 1rem;
}

.cart-page-item {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 1.25rem;
    align-items: start;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 1rem;
    transition: box-shadow var(--transition);
}
.cart-page-item:hover { box-shadow: var(--shadow-md); }
.cart-page-item-thumb {
    width: 120px;
    height: 120px;
    background: var(--light-bg);
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cart-page-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-page-item-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
}
.cart-page-item-meta {
    color: var(--muted-color);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}
.cart-page-item-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}
.cart-page-item-actions a {
    color: var(--accent-color);
    font-size: 0.85rem;
    cursor: pointer;
}
.cart-page-item-actions a.danger { color: var(--color-danger); }
.cart-page-item-right {
    text-align: right;
    min-width: 100px;
}
.cart-page-item-price {
    font-weight: 700;
    color: var(--heading-color);
    font-size: 1.1rem;
}
.cart-page-item-perstuk {
    font-size: 0.8rem;
    color: var(--muted-color);
}

@media (max-width: 575px) {
    .cart-page-item {
        grid-template-columns: 80px 1fr;
    }
    .cart-page-item-thumb { width: 80px; height: 80px; }
    .cart-page-item-right {
        grid-column: 1 / -1;
        text-align: left;
        border-top: 1px solid var(--border-color);
        padding-top: 0.75rem;
        min-width: 0;
    }
}

/* Order summary (sticky aside op cart-pagina) */
.order-summary {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 90px;
}
.order-summary h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 1rem;
}
.order-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
}
.order-summary-row.total {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--heading-color);
    border-top: 2px solid var(--heading-color);
    margin-top: 0.5rem;
    padding-top: 0.75rem;
}
.order-summary-row.discount { color: var(--color-success); font-weight: 500; }
.order-summary-row.free { color: var(--color-success); font-weight: 500; }

.discount-code-control {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.45rem;
    align-items: stretch;
}
.discount-code-control .form-control {
    min-width: 0;
    height: 40px;
    border-radius: var(--radius-sm);
    border-color: var(--border-color);
    background: #fff;
    font-size: 0.9rem;
}
.discount-code-control .btn {
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--heading-color);
    border: 1px solid var(--heading-color);
    color: #fff;
    font-size: 0.86rem;
    font-weight: 700;
    padding: 0 0.85rem;
}
.discount-code-control .btn:hover,
.discount-code-control .btn:focus {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
}
.discount-code-control .discount-remove {
    width: 40px;
    padding: 0;
    background: #fff;
    color: var(--muted-color);
    border-color: var(--border-color);
}
.discount-message {
    margin-top: 0.45rem;
    font-size: 0.82rem;
    line-height: 1.35;
}
.discount-message.is-muted { color: var(--muted-color); }
.discount-message.is-success { color: var(--color-success); font-weight: 600; }
.discount-message.is-error { color: var(--color-danger); }

.progress-block {
    margin-top: 1rem;
    padding: 0.75rem;
    background: var(--accent-bg);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
}
.progress-block-text {
    margin: 0 0 0.4rem;
    color: var(--heading-color);
}
.progress-bar-track {
    background: rgba(184, 160, 126, 0.2);
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
}
.progress-bar-fill {
    background: var(--accent-color);
    height: 100%;
    transition: width 0.4s ease;
}

/* Checkout pagina */
.checkout-form fieldset {
    border: 0;
    padding: 0;
    margin-bottom: 1.5rem;
}
.checkout-form legend {
    font-size: 1rem;
    font-weight: 600;
    color: var(--heading-color);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}
.checkout-stepper {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    color: var(--muted-color);
    font-size: 0.9rem;
}
.checkout-stepper .step {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.checkout-stepper .step.active {
    color: var(--accent-color);
    font-weight: 600;
}
.checkout-stepper .step-num {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: var(--border-color);
    color: var(--default-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
}
.checkout-stepper .step.active .step-num,
.checkout-stepper .step.completed .step-num {
    background: var(--accent-color);
    color: #fff;
}
.checkout-stepper .step-divider {
    flex: 0 0 30px;
    height: 1px;
    background: var(--border-color);
}

/* ===== Korting weergave ===== */
.price-old {
    text-decoration: line-through;
    color: var(--muted-color);
    font-weight: 400;
    font-size: 0.95em;
    margin-right: 0.35rem;
}
.price-new {
    color: var(--color-success);
    font-weight: 700;
}
.badge-discount {
    display: inline-block;
    background: var(--color-success);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    margin-left: 0.35rem;
    letter-spacing: 0.02em;
    vertical-align: middle;
}

/* ===== Cart-badge pulse animatie ===== */
@keyframes cart-pulse {
    0% { transform: scale(1); }
    30% { transform: scale(1.45); }
    60% { transform: scale(0.95); }
    100% { transform: scale(1); }
}
.cart-badge-pulse {
    animation: cart-pulse 0.55s ease;
}

/* ===== Confirm-dialog ===== */
.confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.confirm-overlay.open { opacity: 1; }

.confirm-modal {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 2rem 1.75rem 1.5rem;
    width: 100%;
    max-width: 440px;
    text-align: center;
    transform: translateY(12px) scale(0.97);
    transition: transform 0.25s ease;
}
.confirm-overlay.open .confirm-modal {
    transform: translateY(0) scale(1);
}

.confirm-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}
.confirm-warning .confirm-icon {
    background: var(--accent-bg);
    color: var(--accent-color);
}
.confirm-danger .confirm-icon {
    background: rgba(223, 21, 41, 0.12);
    color: var(--color-danger);
}
.confirm-info .confirm-icon {
    background: rgba(37, 99, 235, 0.12);
    color: #2563eb;
}

.confirm-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--heading-color);
    margin: 0 0 0.5rem;
}
.confirm-message {
    color: var(--default-color);
    margin: 0 0 1.25rem;
    line-height: 1.5;
}
.confirm-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}
.confirm-actions .btn { min-width: 130px; }

/* Bij blanco shirts: warning-variant van knop */
.confirm-warning .confirm-ok {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

/* Cart item gestileerd voor blanco indicator */
.cart-page-item-blanco {
    display: inline-block;
    margin-left: 0.4rem;
    padding: 0.1rem 0.5rem;
    background: var(--light-bg);
    color: var(--muted-color);
    font-size: 0.7rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
}

/* ===== Delivery method picker ===== */
.delivery-method {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}
.delivery-option {
    cursor: pointer;
    margin: 0;
}
.delivery-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.delivery-option-content {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    background: #fff;
}
.delivery-option:hover .delivery-option-content {
    border-color: var(--accent-light);
    background: var(--accent-bg);
}
.delivery-option input[type="radio"]:checked + .delivery-option-content {
    border-color: var(--accent-color);
    background: var(--accent-bg);
    box-shadow: 0 0 0 3px rgba(184, 160, 126, 0.15);
}
.delivery-option-icon {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: var(--light-bg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--accent-color);
    flex-shrink: 0;
    transition: all var(--transition);
}
.delivery-option input[type="radio"]:checked + .delivery-option-content .delivery-option-icon {
    background: var(--accent-color);
    color: #fff;
}
.delivery-option-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}
.delivery-option-text strong {
    color: var(--heading-color);
    font-size: 0.95rem;
}
.delivery-option-text small {
    color: var(--muted-color);
    font-size: 0.8rem;
}

@media (max-width: 575px) {
    .delivery-method { grid-template-columns: 1fr; }
}

/* Mobiele ontwerptool: canvas rustiger, controls dichterbij en minder horizontale krapte. */
@media (max-width: 767px) {
    main.container.my-4.my-lg-5 {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
        margin-top: 1rem !important;
    }
    #canvas-container {
        max-width: none;
        border-radius: 10px;
        padding: 0.5rem;
        box-shadow: var(--shadow-sm);
    }
    .tool-block {
        padding: 1rem;
        border-radius: 10px;
        margin-bottom: 0.85rem;
    }
    .side-switcher {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.5rem;
        overflow: visible;
    }
    .side-switcher .btn {
        min-width: 0;
        min-height: 46px;
        padding: 0.65rem 0.45rem;
    }
    .font-grid,
    .gildan-color-grid,
    .text-color-grid {
        max-height: 220px;
        overflow-y: auto;
        padding-right: 0.15rem;
    }
    .qty-control {
        max-width: none;
    }
    .designer-steps {
        align-items: flex-start;
        gap: 0.35rem;
        padding: 0.7rem;
        overflow-x: auto;
    }
    .designer-step { flex-direction: column; min-width: 62px; gap: 0.2rem; }
    .designer-step-line { min-width: 18px; margin: 0.9rem 0 0; }
    .designer-product-card { grid-template-columns: 92px minmax(0, 1fr); gap: 0.8rem; padding: 0.9rem; }
    .designer-product-visual { min-height: 110px; }
    .designer-product-visual img { height: 100px; }
    .designer-product-bar { grid-template-columns: 78px minmax(0, 1fr); align-items: center; }
    .designer-product-bar .designer-product-visual { min-height: 74px; }
    .designer-product-bar .designer-product-visual img { height: 70px; }
    .designer-product-bar .designer-product-actions { grid-column: 2; justify-content: flex-start; }
    .designer-save-control { justify-items: start; width: 100%; margin: 0 0 0.25rem; }
    .product-picker-controls { align-items: stretch; flex-direction: column; }
    .product-filter-buttons { overflow-x: auto; padding-bottom: 0.15rem; }
    .product-picker-grid { grid-template-columns: 1fr; }
    .color-picker-toolbar { align-items: stretch; flex-direction: column; }
    .saved-draft-notice { grid-template-columns: auto minmax(0, 1fr); }
    .saved-draft-actions { grid-column: 1 / -1; }
}

@media (max-width: 430px) {
    .designer-product-card { grid-template-columns: 1fr; }
    .designer-product-visual { display: none; }
    .designer-product-bar .designer-product-actions { grid-column: 1; }
}

/* ===== Schaalbare productcatalogus ===== */
.catalog-page-hero {
    padding: 2.6rem 0;
    color: #fff;
    background:
        radial-gradient(circle at 76% 12%, rgba(183, 207, 190, 0.18), transparent 31%),
        linear-gradient(125deg, #18251e 0%, #234f39 68%, #2b6a4a 100%);
}
.catalog-page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(310px, 0.75fr); gap: 3rem; align-items: center; }
.catalog-page-hero h1 { max-width: 700px; margin: 0 0 0.8rem; color: #fff; font-size: clamp(2rem, 4vw, 3.15rem); line-height: 1.02; letter-spacing: -0.04em; }
.catalog-page-hero > .container > p:not(.catalog-page-eyebrow) { max-width: 720px; color: rgba(255,255,255,.78); font-size: 1.1rem; }
.catalog-page-hero-copy > p:not(.catalog-page-eyebrow) { max-width: 620px; margin-bottom: 0; color: rgba(255,255,255,.78); font-size: 1.03rem; }
.catalog-page-back { display: inline-flex; align-items: center; gap: 0.35rem; margin-bottom: 1rem; color: rgba(255,255,255,.72); font-size: 0.78rem; text-decoration: none; }
.catalog-page-back:hover { color: #fff; }
.catalog-page-eyebrow { margin: 0 0 0.55rem; color: #bfe2cc; font-size: 0.76rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; }
.catalog-page-benefits { display: flex; flex-wrap: wrap; gap: 0.65rem 1.1rem; margin-top: 1.25rem; }
.catalog-page-benefits span { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 650; }
.catalog-choice-guide { padding: 1.2rem; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.15); border-radius: 18px; backdrop-filter: blur(8px); }
.catalog-choice-guide > p { margin: 0 0 0.75rem; color: #d7eadf; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.catalog-choice-guide ol { display: grid; gap: 0.7rem; margin: 0; padding: 0; list-style: none; }
.catalog-choice-guide li { display: grid; grid-template-columns: 2rem 1fr; column-gap: 0.65rem; align-items: center; }
.catalog-choice-guide li > span { display: grid; grid-row: 1 / span 2; place-items: center; width: 2rem; height: 2rem; color: #173526; background: #dce9e0; border-radius: 50%; font-weight: 800; }
.catalog-choice-guide strong, .catalog-choice-guide small { display: block; }
.catalog-choice-guide strong { color: #fff; font-size: 0.9rem; }
.catalog-choice-guide small { color: rgba(255,255,255,.65); font-size: 0.75rem; }
.catalog-page-section { padding-top: 2.5rem; padding-bottom: 4.5rem; }
.catalog-page-intro { margin-bottom: 1.5rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--border-color); }
.catalog-page-section-kicker { margin: 0 0 0.35rem; color: var(--accent-color); font-size: 0.74rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.catalog-page-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.catalog-page-search { position: relative; width: min(100%, 390px); }
.catalog-page-search i { position: absolute; left: 0.9rem; top: 50%; z-index: 1; color: var(--muted-color); transform: translateY(-50%); }
.catalog-page-search .form-control { padding-left: 2.5rem; }
.catalog-page-filters { margin-bottom: 0; }
.catalog-page-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.35rem; }
.catalog-product-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid #d9dedb; border-radius: 18px; box-shadow: 0 8px 24px rgba(28, 38, 32, 0.07); transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition); }
.catalog-product-card:hover { transform: translateY(-4px); border-color: #b8c9bf; box-shadow: 0 15px 36px rgba(28, 38, 32, 0.13); }
.catalog-product-visual { position: relative; isolation: isolate; display: grid; place-items: center; min-height: 290px; padding: 1.15rem; overflow: hidden; background: linear-gradient(145deg, #e6ebe8 0%, #ccd7d1 100%); }
.catalog-product-visual::before { position: absolute; z-index: -1; width: 78%; aspect-ratio: 1; content: ''; background: rgba(255,255,255,.58); border: 1px solid rgba(255,255,255,.78); border-radius: 50%; }
.catalog-product-image-button { display: grid; width: 100%; height: 100%; padding: 0; cursor: zoom-in; background: transparent; border: 0; place-items: center; }
.catalog-product-image-button:focus-visible { border-radius: .75rem; outline: 3px solid var(--accent-color); outline-offset: -4px; }
.catalog-product-visual img { width: 100%; height: 255px; object-fit: contain; filter: drop-shadow(0 16px 14px rgba(29, 42, 34, .18)); transition: transform var(--transition); }
.catalog-product-visual.has-catalog-photo { padding: 0; background: #eef1ef; }
.catalog-product-visual.has-catalog-photo::before { display: none; }
.catalog-product-visual.has-catalog-photo img { width: 100%; height: 290px; object-fit: cover; object-position: center top; filter: none; }
.catalog-product-visual.is-color-preview { padding: 1.15rem; background: linear-gradient(145deg, #e6ebe8 0%, #ccd7d1 100%); }
.catalog-product-visual.is-color-preview::before { display: block; }
.catalog-product-visual.is-color-preview img { width: 100%; height: 255px; object-fit: contain; filter: drop-shadow(0 16px 14px rgba(29, 42, 34, .18)); }
.catalog-color-preview-label { position: absolute; z-index: 2; right: 1rem; bottom: 1rem; max-width: calc(100% - 2rem); padding: 0.34rem 0.58rem; overflow: hidden; color: #fff; background: rgba(22,33,27,.78); border-radius: 999px; font-size: 0.7rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; backdrop-filter: blur(5px); }
.catalog-color-preview-label[hidden] { display: none; }
.catalog-product-card:hover .catalog-product-visual img { transform: scale(1.025); }
.catalog-product-thumbnails { display: flex; gap: .5rem; min-height: 62px; padding: .65rem 1rem .2rem; overflow-x: auto; background: #fff; scrollbar-width: thin; }
.catalog-product-thumbnail { flex: 0 0 52px; width: 52px; height: 52px; padding: 2px; overflow: hidden; background: #f1f3f2; border: 1px solid #d9dedb; border-radius: .55rem; }
.catalog-product-thumbnail:hover { border-color: #8c9d94; }
.catalog-product-thumbnail.is-active { border-color: var(--accent-color); box-shadow: 0 0 0 2px rgba(184,153,104,.25); }
.catalog-product-thumbnail:focus-visible { outline: 2px solid var(--accent-color); outline-offset: 2px; }
.catalog-product-thumbnail img { width: 100%; height: 100%; object-fit: cover; border-radius: .35rem; }
.catalog-lightbox-open { overflow: hidden; }
.catalog-lightbox { position: fixed; z-index: 2000; inset: 0; display: grid; padding: 1.25rem; background: rgba(12,18,15,.88); place-items: center; backdrop-filter: blur(8px); }
.catalog-lightbox-panel { position: relative; display: grid; width: min(1040px,96vw); height: min(850px,92vh); padding: 1rem; background: #f4f4f2; border: 1px solid rgba(255,255,255,.2); border-radius: 1rem; box-shadow: 0 28px 80px rgba(0,0,0,.42); grid-template-rows: minmax(0,1fr) auto; }
.catalog-lightbox-image { width: 100%; height: 100%; min-height: 0; object-fit: contain; background: #e9ecea; border-radius: .7rem; }
.catalog-lightbox-caption { margin: .75rem 3.5rem 0; color: #4d5751; font-size: .9rem; text-align: center; }
.catalog-lightbox-close,.catalog-lightbox-nav { position: absolute; z-index: 1; display: grid; width: 44px; height: 44px; padding: 0; color: #fff; background: rgba(24,33,28,.82); border: 1px solid rgba(255,255,255,.4); border-radius: 999px; box-shadow: 0 8px 20px rgba(0,0,0,.25); place-items: center; }
.catalog-lightbox-close { top: 1.65rem; right: 1.65rem; }
.catalog-lightbox-nav { top: 50%; transform: translateY(-50%); }
.catalog-lightbox-nav.is-previous { left: 1.65rem; }
.catalog-lightbox-nav.is-next { right: 1.65rem; }
.catalog-lightbox-close:hover,.catalog-lightbox-nav:hover { background: #111b16; }
.catalog-lightbox-close:focus-visible,.catalog-lightbox-nav:focus-visible { outline: 3px solid #dbc195; outline-offset: 2px; }
.catalog-product-badge { position: absolute; z-index: 2; left: 1rem; top: 1rem; padding: 0.32rem 0.62rem; border-radius: 999px; font-size: 0.7rem; font-weight: 800; }
.catalog-product-badge.is-available { color: #176b35; background: #e8f7ed; }
.catalog-product-badge.is-unavailable { color: #7a4a00; background: #fff2d9; }
.catalog-product-body { display: flex; flex: 1; flex-direction: column; padding: 1.2rem 1.25rem 1.25rem; }
.catalog-product-meta { margin: 0 0 0.3rem; color: var(--accent-color); font-size: 0.76rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.catalog-product-body h2 { margin-bottom: 0.5rem; color: var(--heading-color); font-size: 1.35rem; }
.catalog-product-description { min-height: 3.5em; margin-bottom: 0.8rem; color: var(--muted-color); font-size: 0.86rem; line-height: 1.5; }
.catalog-product-facts { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.25rem 0 1rem; }
.catalog-product-facts span { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.3rem 0.5rem; color: var(--muted-color); background: var(--light-bg); border-radius: 999px; font-size: 0.75rem; }
.catalog-product-colors { display: flex; align-items: center; gap: 0.34rem; min-height: 28px; margin: -0.25rem 0 0.9rem; }
.catalog-color-swatch { width: 26px; height: 26px; padding: 0; appearance: none; cursor: pointer; border: 1px solid rgba(35,42,38,.32); border-radius: 7px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.4); transition: transform var(--transition), box-shadow var(--transition); }
.catalog-color-swatch:hover,.catalog-color-swatch:focus-visible { z-index: 1; transform: translateY(-2px) scale(1.08); outline: 2px solid #fff; box-shadow: 0 0 0 3px var(--accent-color), inset 0 0 0 1px rgba(255,255,255,.4); }
.catalog-color-more { display: grid; place-items: center; min-width: 28px; height: 24px; padding: 0 0.3rem; color: var(--muted-color); background: #f4f5f4; border: 1px solid var(--border-color); border-radius: 7px; font-size: 0.7rem; font-weight: 800; }
.catalog-product-price { margin-top: auto; padding-top: 0.85rem; border-top: 1px solid var(--border-color); }
.catalog-product-price strong { display: block; color: var(--heading-color); font-size: 1.08rem; }
.catalog-product-actions { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 1rem; }
.catalog-product-actions .btn-primary { flex: 1 1 155px; }
.catalog-page-empty { padding: 4rem 1rem; text-align: center; color: var(--muted-color); background: var(--light-bg); border: 1px dashed var(--border-color); border-radius: var(--radius); }
.catalog-page-empty i { display: block; margin-bottom: 0.75rem; font-size: 2rem; }

@media (max-width: 991px) {
    .catalog-page-hero-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .catalog-choice-guide { max-width: 660px; }
    .catalog-page-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
    .catalog-page-hero { padding: 2rem 0; }
    .catalog-choice-guide { display: none; }
    .catalog-page-toolbar { align-items: stretch; flex-direction: column; }
    .catalog-page-search { width: 100%; }
    .catalog-page-filters { display: flex; overflow-x: auto; padding-bottom: 0.25rem; }
    .catalog-page-grid { grid-template-columns: 1fr; }
    .catalog-product-visual { min-height: 230px; }
    .catalog-product-visual img { height: 220px; }
    .catalog-product-visual.has-catalog-photo img { height: 320px; }
    .catalog-product-visual.is-color-preview img { height: 220px; }
    .catalog-product-thumbnails { padding-inline: .75rem; }
    .catalog-lightbox { padding: .5rem; }
    .catalog-lightbox-panel { width: 100%; height: 88vh; padding: .55rem; }
    .catalog-lightbox-close { top: 1rem; right: 1rem; }
    .catalog-lightbox-nav.is-previous { left: 1rem; }
    .catalog-lightbox-nav.is-next { right: 1rem; }
}

/* ===== Trust card (cart pagina) ===== */
.trust-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.payment-method-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
    margin-top: 0.9rem;
}

.payment-method-strip span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0.25rem 0.55rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: #fff;
    color: var(--heading-color);
    font-size: 0.78rem;
    font-weight: 700;
}

.payment-method-strip small {
    flex-basis: 100%;
    color: var(--muted-color);
    text-align: center;
    line-height: 1.35;
}

.checkout-legal-policy {
    margin-top: 0.75rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-color);
    border-radius: var(--radius-sm);
    background: #f8f6f2;
}

.invoice-details-toggle .form-check-label,
.checkout-final-approval .form-check-label {
    color: var(--heading-color);
    font-weight: 500;
    cursor: pointer;
}

.invoice-details-panel {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.invoice-details-panel[hidden] {
    display: none;
}

.checkout-reassurance {
    display: grid;
    gap: 0.45rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.checkout-reassurance p {
    display: flex;
    gap: 0.45rem;
    align-items: flex-start;
    margin: 0;
    color: var(--muted-color);
    font-size: 0.86rem;
    line-height: 1.35;
}

.checkout-reassurance i {
    color: var(--accent-color);
    margin-top: 0.05rem;
}
.trust-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}
.trust-item i {
    color: var(--accent-color);
    font-size: 1.3rem;
    margin-top: 0.15rem;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}
.trust-item strong {
    display: block;
    font-size: 0.92rem;
    color: var(--heading-color);
    margin-bottom: 0.15rem;
}
.trust-item small {
    color: var(--muted-color);
    font-size: 0.8rem;
    line-height: 1.4;
}

/* ===== Cart empty state ===== */
.cart-page-empty {
    text-align: center;
    padding: 4rem 1.5rem;
    background: #fff;
    border-radius: var(--radius);
    border: 2px dashed var(--border-color);
    color: var(--muted-color);
}
.cart-page-empty .display-1 {
    font-size: 4.5rem;
    color: var(--accent-light);
    margin-bottom: 1rem;
    opacity: 0.6;
}
.cart-page-empty h3 {
    color: var(--heading-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* ===== Cart-item fade-in animatie ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.cart-page-item {
    animation: fadeInUp 0.35s ease both;
}
.cart-page-item:nth-child(2) { animation-delay: 0.05s; }
.cart-page-item:nth-child(3) { animation-delay: 0.1s; }
.cart-page-item:nth-child(4) { animation-delay: 0.15s; }
.cart-page-item:nth-child(5) { animation-delay: 0.2s; }

/* ===== Cart-sidebar item ook fade-in ===== */
.cart-item {
    animation: fadeInUp 0.3s ease both;
}

/* ===== Smooth scroll voor whole page ===== */
html { scroll-behavior: smooth; }

/* ===== Cart-button focus state subtieler maken ===== */
.cart-button:focus-visible {
    box-shadow: 0 0 0 3px rgba(184, 160, 126, 0.4);
}

/* ===== Toast iets nettere positie + meer ruimte ===== */
.toast {
    border-radius: var(--radius-sm);
    padding: 0.85rem 1.2rem;
    backdrop-filter: blur(8px);
}
.toast-success { background: #059652; }

/* ===== Tool-block subtieler bij hover (alleen lichte lift) ===== */
.tool-block:hover { transform: translateY(-1px); }

/* ===== Sticky order-summary - verfijnen ===== */
.order-summary {
    transition: box-shadow 0.3s ease;
}
.order-summary:hover { box-shadow: var(--shadow-md); }

/* ===== Page-hero verfijnen ===== */
.page-hero {
    border-bottom: none;
    background: linear-gradient(135deg, #fff 0%, var(--accent-bg) 100%);
    box-shadow: inset 0 -1px 0 var(--border-color);
}
.page-hero h1 {
    color: var(--heading-color);
    letter-spacing: -0.01em;
}

/* ===== Scrollbar styling (voor font-grid en cart sidebar) ===== */
.font-grid::-webkit-scrollbar,
.cart-body::-webkit-scrollbar {
    width: 6px;
}
.font-grid::-webkit-scrollbar-thumb,
.cart-body::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}
.font-grid::-webkit-scrollbar-thumb:hover,
.cart-body::-webkit-scrollbar-thumb:hover {
    background: var(--accent-light);
}

/* ===== Subtle item-removed shake ===== */
@keyframes itemRemove {
    0% { transform: translateX(0); opacity: 1; }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    100% { transform: translateX(40px); opacity: 0; }
}
.cart-page-item.removing { animation: itemRemove 0.35s ease forwards; }

/* ===== Page-hero meer ademruimte ===== */
.page-hero {
    padding: 3rem 0 2.25rem;
}
.page-hero h1 {
    font-size: 2.25rem;
    margin: 0.4rem 0 0;
}
.page-hero .breadcrumb-link {
    margin-bottom: 0.85rem;
}

/* ===== Checkout-formulier verfijnen ===== */
.checkout-form .tool-block {
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.25rem;
}
.checkout-form legend {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.25rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--border-color);
    width: 100%;
}
.checkout-form .form-label {
    font-size: 0.85rem;
    color: var(--heading-color);
    font-weight: 500;
    margin-bottom: 0.4rem;
    letter-spacing: 0.01em;
}
.checkout-form .form-control,
.checkout-form .form-select {
    padding: 0.7rem 0.9rem;
    font-size: 0.95rem;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--heading-color);
}
.checkout-form .form-control::placeholder {
    color: #b8b8b8;
}
.checkout-form .form-control:focus,
.checkout-form .form-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(184, 160, 126, 0.18);
}
.checkout-form textarea.form-control { padding: 0.85rem 0.9rem; }

.checkout-form button[type="submit"] {
    padding: 0.95rem 1.5rem;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
}

/* Verfijn de delivery-method picker */
.delivery-option-content {
    padding: 1.1rem 1.2rem;
}
.delivery-option-text strong {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}
.delivery-option-text small {
    line-height: 1.4;
}

/* Vereiste-veld asterisk subtieler */
.checkout-form .form-label .text-danger {
    color: var(--accent-color) !important;
    font-weight: 700;
    margin-left: 0.15rem;
}

/* Checkout sticky order summary minder dichtbij */
@media (min-width: 992px) {
    .checkout-form { padding-right: 0.5rem; }
}

/* ===== Order confirmation banner (na succesvolle checkout) ===== */
.order-confirmation-banner {
    margin-top: 1rem;
    padding: 0.85rem 1.25rem;
    background: #d1f4e0;
    border-left: 4px solid var(--color-success);
    border-radius: var(--radius-sm);
    color: #0a5132;
    font-size: 1rem;
    font-weight: 500;
}
.order-confirmation-banner i {
    color: var(--color-success);
}
