/**
 * Bestelshop - Main Stylesheet
 * 
 * Uses CSS variables for theming:
 * --color-primary: Primary brand color
 * --color-secondary: Secondary/accent color
 */

/* ==================
   Reset & Base
   ================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: #1f2937;
    background: linear-gradient(135deg, #f0eeea 0%, #eae7e2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ==================
   Typography
   ================== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    line-height: 1.3;
    color: #111827;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-secondary);
}

/* ==================
   Layout
   ================== */
.container {
    width: 100%;
    padding: 0 6rem;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
}

.main {
    flex: 1;
    padding: 2rem 0;
}

/* Landing: full-bleed sections against header/footer */
.main:has(> .landing-page) {
    padding-top: 0;
    padding-bottom: 0;
}

/* ==================
   Header
   ================== */
.header {
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-logo-center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.header-logo-img {
    height: 50px;
    max-height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    display: block;
}

.logo-text {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

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

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    color: #4b5563;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: var(--color-primary);
    background: var(--color-primary-light);
}

.nav-cart {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--color-secondary);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-logout-form {
    display: inline;
}

.nav-logout {
    background: none;
    border: none;
    cursor: pointer;
    font-size: inherit;
    font-family: inherit;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #374151;
    transition: all 0.3s ease;
}

/* ==================
   Buttons
   ================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background: color-mix(in srgb, var(--color-primary) 85%, black);
    color: white;
}

.btn-secondary {
    background: var(--color-secondary);
    color: white;
}

.btn-secondary:hover {
    background: color-mix(in srgb, var(--color-secondary) 85%, black);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: white;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-add-cart {
    padding: 0 0.75rem;
    height: 32px;
    min-height: 32px;
    min-width: 40px;
    align-self: center;
}

.btn-add-cart svg {
    display: block;
    flex-shrink: 0;
}

.variant-qty .cart-qty-control {
    flex-shrink: 0;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
}

.btn-danger {
    background: #dc2626;
    color: white;
}

.btn-danger:hover {
    background: #b91c1c;
    color: white;
}

.btn-disabled,
.btn:disabled {
    background: #e5e7eb;
    color: #9ca3af;
    border-color: #e5e7eb;
    cursor: not-allowed;
    opacity: 0.7;
}

.btn-disabled:hover,
.btn:disabled:hover {
    background: #e5e7eb;
    color: #9ca3af;
}

/* ==================
   Forms
   ================== */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: inherit;
    font-size: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-light);
}

.form-input.error,
.form-select.error,
.form-textarea.error {
    border-color: #dc2626;
}

.form-error {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-hint {
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-row {
    display: grid;
    gap: 1rem;
}

@media (min-width: 640px) {
    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==================
   Cards
   ================== */
.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    overflow: hidden;
}

.card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f3f4f6;
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1rem 1.5rem;
    background: #f9fafb;
    border-top: 1px solid #f3f4f6;
}

/* ==================
   Alerts
   ================== */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    line-height: 1.5;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* ==================
   Tables
   ================== */
.table-container {
    overflow-x: auto;
}

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

.table th,
.table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.table th {
    font-weight: 600;
    color: #374151;
    background: #f9fafb;
}

.table tr:hover {
    background: #f9fafb;
}

/* ==================
   Product Grid
   ================== */
.products-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.product-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.product-image {
    aspect-ratio: 1/1;
    background: #f0eeea;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-image svg {
    width: 48px;
    height: 48px;
    color: var(--color-primary);
    opacity: 0.5;
}

.modal-gallery {
    position: relative;
    margin: 0 0 1rem;
    border-radius: 10px;
    overflow: hidden;
    background: #111;
    aspect-ratio: 1/1;
}

.modal-gallery-track {
    width: 100%;
    height: 100%;
}

.modal-gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

.modal-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.85);
    color: #111;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-gallery-prev { left: 0.5rem; }
.modal-gallery-next { right: 0.5rem; }

.modal-gallery-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.6rem;
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    z-index: 2;
}

.modal-gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: rgba(255,255,255,0.45);
    cursor: pointer;
}

.modal-gallery-dot.is-active {
    background: #fff;
}

.product-card-compact .product-info {
    padding: 1rem 1.25rem;
}

.product-card-compact .product-name {
    font-size: 1.05rem;
}

.product-info {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-secondary);
    font-weight: 600;
}

.product-name {
    font-size: 1.1rem;
    margin: 0.25rem 0 0.5rem;
}

.product-name-link {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.product-name-link:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

.product-description {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-primary);
}

.product-unit {
    font-size: 0.85rem;
    color: #6b7280;
    font-weight: 400;
}

/* ==================
   Variants
   ================== */
.variants-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 1rem;
}

.variant-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 0.75rem;
    background: #f9fafb;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.variant-item:hover,
.variant-item.selected {
    border-color: var(--color-primary);
    background: var(--color-primary-light);
}

.variant-item.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.variant-item.disabled:hover {
    border-color: transparent;
    background: #f9fafb;
}

.variant-info {
    flex: 1;
    min-width: 0;
}

.variant-name {
    font-weight: 500;
}

.variant-details {
    width: 100%;
}

.variant-description {
    font-size: 0.85rem;
    color: #6b7280;
}

.package-contents {
    list-style: none;
    margin: 0.35rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.package-contents li {
    font-size: 0.82rem;
    color: #4b5563;
    padding: 0.15rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.package-contents li:last-child {
    border-bottom: none;
}

.package-contents-qty {
    display: inline-block;
    min-width: 1.75rem;
    font-weight: 600;
    color: var(--color-primary);
}

.package-contents-sm {
    margin: 0.2rem 0 0.35rem !important;
}

.package-contents-sm li {
    font-size: 0.75rem;
    padding: 0.1rem 0;
    color: #6b7280;
}

.package-contents-sm .package-contents-qty {
    min-width: 1.5rem;
    font-size: 0.75rem;
}

.cart-sidebar-package {
    flex-wrap: wrap;
}

.cart-package-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 0.5rem;
}

.cart-sidebar-package > .package-contents-sm {
    width: 100%;
}

.variant-qty {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.qty-input {
    width: 70px;
    padding: 0.5rem;
    text-align: center;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 1rem;
}

.qty-input:focus {
    outline: none;
    border-color: var(--color-primary);
}

/* ==================
   Cart
   ================== */
.cart-empty {
    text-align: center;
    padding: 3rem 1rem;
}

.cart-empty svg {
    width: 80px;
    height: 80px;
    color: #d1d5db;
    margin-bottom: 1rem;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
}

.cart-item-variant {
    font-size: 0.9rem;
    color: #6b7280;
}

.cart-item-price {
    font-size: 0.9rem;
    color: var(--color-primary);
    font-weight: 500;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ==================
   Checkout
   ================== */
.checkout-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .checkout-grid {
        grid-template-columns: 1fr 520px;
    }
}

.checkout-summary {
    position: static;
}

.checkout-sidebar-column .checkout-summary {
    flex-shrink: 0;
}

.checkout-summary .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Checkout Order List */
.checkout-order-list {
    max-height: 400px;
    overflow-y: auto;
}

.checkout-category {
    border-bottom: 1px solid #e5e7eb;
}

.checkout-category:last-child {
    border-bottom: none;
}

.checkout-category-header {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    background: #f9fafb;
    padding: 0.375rem 1rem;
    border-bottom: 1px solid #f3f4f6;
}

.checkout-product {
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #f3f4f6;
}

.checkout-product:last-child {
    border-bottom: none;
}

.checkout-product-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.checkout-product-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: #111827;
}

.checkout-product-price {
    font-size: 0.75rem;
    color: #6b7280;
    white-space: nowrap;
}

.checkout-variants {
    list-style: none;
    margin: 0;
    padding: 0;
}

.checkout-variant {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.125rem 0 0.125rem 0.75rem;
    font-size: 0.8rem;
    color: #4b5563;
}

.checkout-variant-name {
    flex: 1;
}

.checkout-variant-qty {
    font-weight: 500;
    color: var(--color-primary);
}

/* ==================
   Categories
   ================== */
.categories-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.category-link {
    padding: 0.5rem 1rem;
    background: white;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #4b5563;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}

.category-link:hover,
.category-link.active {
    background: var(--color-primary);
    color: white;
}

/* ==================
   Week Selector
   ================== */
.week-selector {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.week-selector-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.week-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.week-option {
    padding: 0.75rem 1.25rem;
    background: #f3f4f6;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.week-option:hover {
    border-color: var(--color-primary);
}

.week-option.active {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.week-option.is-week-locked-hidden,
.week-option[hidden] {
    display: none !important;
}

.week-option.is-week-unavailable {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
    background: #f3f4f6;
    color: #6b7280;
    border-color: #e5e7eb;
}

.week-option-catalog:not(.active) {
    border-style: dashed;
    border-color: #d1d5db;
}

.week-option-label {
    font-weight: 600;
    display: block;
}

.week-option-dates {
    font-size: 0.8rem;
    opacity: 0.8;
}

.pickup-dates-info {
    margin-top: 1rem;
}

.pickup-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    display: block;
}

.pickup-dates-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pickup-dates-list li {
    font-size: 1.05rem;
    color: #374151;
    padding: 0.25rem 0;
}

.pickup-dates-list li strong {
    color: #1f2937;
}


/* ==================
   Footer
   ================== */
.footer {
    background: #1f2937;
    color: #9ca3af;
    margin-top: auto;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    padding: 2.5rem 0;
}

.footer-brand .logo-text {
    color: white;
}

.footer-tagline {
    font-size: 0.9rem;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    transition: background 0.2s, color 0.2s, transform 0.2s;
}

.footer-social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: translateY(-2px);
}

.footer-links p {
    margin: 0;
    font-size: 0.9rem;
}

/* ==================
   Scroll to top button
   ================== */
.scroll-top-btn {
    position: fixed;
    bottom: 1.25rem;
    left: 1.25rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, background 0.2s ease;
    z-index: 90;
}

.scroll-top-btn:hover {
    background: color-mix(in srgb, var(--color-primary) 85%, black);
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .scroll-top-btn {
        bottom: 1rem;
        left: 1rem;
        width: 40px;
        height: 40px;
    }
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 1.25rem 0;
    border-top: 1px solid #374151;
}

.footer-nav a {
    color: #d1d5db;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-nav a:hover {
    color: #ffffff;
}

/* ==================
   Route / Contact Page
   ================== */

.route-page {
    padding: 2.5rem 1rem 3rem;
}

.route-header {
    text-align: center;
    margin-bottom: 2rem;
}

.route-header h1 {
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
    color: var(--color-text);
}

/* ==================
   Legal pages (privacy / voorwaarden)
   ================== */

.container.legal-page,
.legal-page {
    padding-top: 2.5rem;
    padding-bottom: 3.5rem;
    max-width: none !important;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
}

/* ==================
   FAQ page
   ================== */

.faq-page {
    padding-top: 2.5rem;
    padding-bottom: 3.5rem;
    width: 100%;
    box-sizing: border-box;
}

.faq-header {
    margin-bottom: 1.5rem;
}

.faq-header h1 {
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
    color: var(--color-text);
}

.faq-intro {
    margin: 0;
    color: #6b7280;
    font-size: 1.05rem;
}

.faq-legal-links {
    margin: 0.75rem 0 0;
    color: #6b7280;
    font-size: 0.98rem;
}

.faq-legal-links a {
    color: var(--color-primary);
    text-decoration: underline;
    font-weight: 500;
}

.faq-legal-links a:hover {
    text-decoration: none;
}

.faq-search-wrap {
    margin-bottom: 2rem;
}

.faq-search-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 0.4rem;
}

.faq-search-input {
    width: 100%;
    max-width: 520px;
    padding: 0.85rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
    color: var(--color-text);
    box-sizing: border-box;
}

.faq-search-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-light);
}

.faq-empty {
    color: #6b7280;
    margin: 1rem 0 0;
}

.faq-topic {
    margin-bottom: 2rem;
}

.faq-topic-title {
    margin: 0 0 0.85rem 0;
    font-size: 1.25rem;
    color: var(--color-primary);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.faq-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 0.65rem;
    overflow: hidden;
}

.faq-question {
    cursor: pointer;
    list-style: none;
    padding: 1rem 1.15rem;
    font-weight: 600;
    color: var(--color-text);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: '+';
    flex-shrink: 0;
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--color-primary);
    line-height: 1;
}

.faq-item[open] .faq-question::after {
    content: '−';
}

.faq-question:hover {
    background: #fafaf8;
}

.faq-answer {
    padding: 0 1.15rem 1.15rem;
    line-height: 1.7;
    color: var(--color-text);
    border-top: 1px solid #f3f4f6;
}

.faq-answer p {
    margin: 0.85rem 0 0;
}

.faq-answer ul,
.faq-answer ol {
    margin: 0.75rem 0 0;
    padding-left: 1.25rem;
}

.faq-answer a {
    color: var(--color-primary);
    text-decoration: underline;
}


.legal-header {
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #e5e7eb;
}

.legal-header h1 {
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
    color: var(--color-text);
}

.legal-meta {
    margin: 0;
    color: #6b7280;
    font-size: 0.9rem;
}

.legal-content {
    line-height: 1.7;
    color: var(--color-text);
    max-width: none !important;
    width: 100%;
    box-sizing: border-box;
}

.legal-content h2 {
    margin: 2rem 0 0.75rem 0;
    font-size: 1.5rem;
    color: var(--color-primary);
}

.legal-content h3 {
    margin: 1.5rem 0 0.5rem 0;
    font-size: 1.25rem;
    color: #111827;
}

.legal-content h4 {
    margin: 1.25rem 0 0.4rem 0;
    font-size: 1.1rem;
    color: #111827;
}

.legal-content p {
    margin: 0 0 1rem 0;
}

.legal-content ul {
    margin: 0 0 1rem 0;
    padding-left: 1.25rem;
}

.legal-content li {
    margin-bottom: 0.4rem;
}

.legal-content a {
    color: var(--color-primary);
    text-decoration: underline;
}

.legal-content a:hover {
    text-decoration: none;
}

.route-subtitle {
    margin: 0;
    color: #6b7280;
    font-size: 1.05rem;
}

.route-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 2rem;
    align-items: stretch;
}

@media (max-width: 900px) {
    .route-grid {
        grid-template-columns: 1fr;
    }
}

.route-info-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.route-info-card h2 {
    margin: 0 0 1.25rem 0;
    font-size: 1.4rem;
    color: var(--color-primary);
}

.route-info-item {
    display: flex;
    gap: 0.875rem;
    align-items: flex-start;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.route-info-item:last-of-type {
    border-bottom: none;
}

.route-info-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f3f4f6;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.route-info-item strong {
    display: block;
    font-size: 0.85rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.15rem;
}

.route-info-item p {
    margin: 0;
    color: var(--color-text);
    font-size: 1rem;
    line-height: 1.4;
}

.route-info-item a {
    color: var(--color-text);
    text-decoration: none;
}

.route-info-item a:hover {
    color: var(--color-primary);
}

.route-social {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
}

.route-social strong {
    display: block;
    font-size: 0.85rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.5rem;
}

.route-social-links {
    display: flex;
    gap: 0.75rem;
}

.route-social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
}

.route-social-links a:hover {
    opacity: 0.85;
}

.route-directions-btn {
    margin-top: 1.5rem;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.route-map {
    min-height: 450px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.route-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 450px;
}

.footer-bottom {
    padding: 1.5rem 0;
    border-top: 1px solid #374151;
    text-align: center;
    font-size: 0.85rem;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer-bottom a:hover {
    color: #ffffff;
}

/* ==================
   Error Page
   ================== */
.error-page {
    text-align: center;
    padding: 4rem 1rem;
}

.error-code {
    font-size: 6rem;
    color: var(--color-primary);
    opacity: 0.3;
    margin-bottom: 0;
}

.error-title {
    margin-bottom: 1rem;
}

.error-message {
    color: #6b7280;
    margin-bottom: 2rem;
}

.maintenance-page .maintenance-icon {
    color: var(--color-primary);
    opacity: 0.85;
    display: inline-flex;
    justify-content: center;
}

.maintenance-page .maintenance-icon svg {
    display: block;
}

/* ==================
   Account Page
   ================== */
.account-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr 1fr;
}

@media (max-width: 768px) {
    .account-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================
   Auth Pages
   ================== */
.auth-container {
    max-width: 440px;
    margin: 2rem auto;
}

.auth-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.auth-title {
    text-align: center;
    margin-bottom: 1rem;
}

.auth-intro {
    text-align: center;
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0 0 0.75rem;
}

.auth-guest {
    text-align: center;
    margin: 0 0 1.75rem;
    font-weight: 600;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: #6b7280;
}

/* ==================
   Responsive
   ================== */
@media (max-width: 1280px) {
    .header-logo-center {
        display: none;
    }
}

@media (max-width: 1024px) {
    .nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        align-items: stretch;
        gap: 0.25rem;
    }

    .nav .nav-link {
        justify-content: flex-start;
    }
    
    .nav.nav-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(4px, 4px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(4px, -4px);
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
}

/* ==================
   Utilities
   ================== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: #6b7280; }
.text-small { font-size: 0.875rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.flex { display: flex; }
.flex-between { justify-content: space-between; }
.flex-center { justify-content: center; }
.items-center { align-items: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }

.hidden { display: none !important; }

/* Badge */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.badge-success {
    background: #dcfce7;
    color: #166534;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.badge-info {
    background: #dbeafe;
    color: #1e40af;
}

.badge-default {
    background: #f3f4f6;
    color: #4b5563;
}

/* Order Status Badges */
.status-nieuw {
    background: #fee2e2;
    color: #991b1b;
}

.status-in_behandeling {
    background: #dcfce7;
    color: #166534;
}

.status-klaar {
    background: #dbeafe;
    color: #1e40af;
}

.status-afgehaald {
    background: #f3f4f6;
    color: #4b5563;
}

.status-geannuleerd {
    background: #fef3c7;
    color: #92400e;
}

/* ==================
   Categories Header + View Toggle
   ================== */
.categories-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.categories-header .categories-nav {
    margin-bottom: 0;
}

.store-product-search {
    flex: 0 1 240px;
    min-width: 180px;
}

.store-product-search-input {
    width: 100%;
    padding: 0.55rem 1rem 0.55rem 2.35rem;
    border: 1px solid #d1d5db;
    border-radius: 20px;
    font-size: 0.9rem;
    font-family: inherit;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") no-repeat 0.85rem center;
    color: var(--color-text);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    box-sizing: border-box;
}

.store-product-search-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-light);
}

.store-product-search-input::-webkit-search-cancel-button {
    cursor: pointer;
}

.store-search-empty {
    margin: -1rem 0 2rem;
    padding: 1rem 1.25rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #6b7280;
    text-align: center;
}

.product-card.is-search-hidden,
.category-section.is-search-hidden,
.category-link.is-search-hidden {
    display: none !important;
}

@media (max-width: 768px) {
    .categories-header {
        flex-direction: column;
        align-items: stretch;
    }

    .store-product-search {
        flex: 1 1 100%;
        min-width: 0;
    }

    /* iOS zooms inputs under 16px on focus — keep page scale stable */
    .store-product-search-input {
        font-size: 16px;
    }
}

/* ==================
   Products Table (used by cart)
   ================== */
.table-responsive {
    overflow-x: auto;
    margin: 0 -0.5rem;
    padding: 0 0.5rem;
}

.category-table-header {
    padding-bottom: 0.5rem;
    margin-bottom: 0;
}

/* Sticky category header */
.category-section h2 {
    position: sticky;
    top: 70px;
    padding: 0.75rem 1.5rem;
    margin: 0 -1.5rem 0.5rem -1.5rem;
    z-index: 10;
    transition: background 0.15s ease, box-shadow 0.15s ease;
    background: transparent;
    width: calc(100% + 3rem);
}

/* Full-width background when sticky */
.category-section h2.is-sticky {
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.products-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    margin-top: 1rem;
}

.products-table th {
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
    padding: 0.875rem 1rem;
    text-align: left;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.products-table td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
}

.products-table .col-product {
    width: 25%;
    background: #fafafa;
    border-right: 1px solid #f3f4f6;
}

.products-table .col-variant {
    width: 35%;
}

.products-table .col-price {
    width: 20%;
    white-space: nowrap;
}

.products-table .col-action {
    width: 20%;
    text-align: right;
}

.products-table tr.product-first-row td {
    border-top: 1px solid #e5e7eb;
}

.products-table tr.product-last-row td {
    border-bottom: 1px solid #e5e7eb;
}

/* Hover effect removed for cleaner look */

.table-product-name {
    font-weight: 600;
    color: #1f2937;
    font-size: 1rem;
}

.table-product-desc {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.table-variant-name {
    font-weight: 500;
    display: block;
}

.table-variant-desc {
    font-size: 0.85rem;
    color: #6b7280;
    display: block;
}

.table-add-form {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
}

.table-add-form.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.qty-input-sm {
    width: 55px;
    padding: 0.4rem 0.5rem;
    font-size: 0.9rem;
}

/* Cart Table Specific */
.cart-table .col-qty {
    width: 120px;
}

.cart-table .col-action {
    width: 50px;
    text-align: center;
}

.cart-qty-form {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* Cart Quantity Controls (like sidebar) */
.cart-qty-control {
    display: flex;
    align-items: center;
    gap: 0;
    background: #f3f4f6;
    border-radius: 6px;
    overflow: hidden;
    width: fit-content;
}

.cart-qty-control .qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #374151;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-qty-control .qty-btn:hover {
    background: #e5e7eb;
}

.cart-qty-control .qty-btn:active {
    background: #d1d5db;
}

.qty-input-cart {
    width: 40px;
    height: 32px;
    border: none;
    background: transparent;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 500;
    color: #111827;
    -moz-appearance: textfield;
}

.qty-input-cart::-webkit-outer-spin-button,
.qty-input-cart::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Cart Remove Button (like sidebar) */
.btn-remove-cart {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
    border-radius: 6px;
    transition: color 0.15s, background-color 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-remove-cart:hover {
    color: #dc2626;
    background: #fef2f2;
}

.btn-remove-cart svg {
    width: 18px;
    height: 18px;
}

.cart-category-section {
    margin-bottom: 1.5rem;
}

/* ==================
   Catalog Page
   ================== */
.catalog-header {
    margin-bottom: 2rem;
}

.catalog-header h1 {
    margin-bottom: 0.5rem;
}

.catalog-products {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.catalog-product {
    background: white;
    border-radius: 10px;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.catalog-product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.catalog-product-name {
    font-size: 1.1rem;
    margin: 0;
}

.catalog-product-price {
    font-weight: 600;
    color: var(--color-primary);
    white-space: nowrap;
}

.catalog-product-desc {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0.5rem 0 0;
}

.catalog-variants {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 0;
    padding-top: 0.75rem;
    border-top: 1px solid #f3f4f6;
}

.catalog-variants li {
    padding: 0.35rem 0;
    font-size: 0.9rem;
    color: #4b5563;
}

.catalog-variants li::before {
    content: '•';
    color: var(--color-secondary);
    margin-right: 0.5rem;
}

.catalog-variant-name {
    font-weight: 500;
}

.catalog-variant-desc {
    color: #9ca3af;
}

.catalog-cta {
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-secondary-light));
    border-radius: 12px;
    text-align: center;
}

.catalog-cta p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #374151;
}

/* Catalog grid variants */
.catalog-variants-grid {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 0;
    padding-top: 0.75rem;
    border-top: 1px solid #f3f4f6;
    font-size: 0.85rem;
    color: #6b7280;
}

.catalog-variants-grid li {
    padding: 0.2rem 0;
}

.catalog-variants-grid li::before {
    content: '•';
    color: var(--color-secondary);
    margin-right: 0.4rem;
}

/* Mobile table adjustments (cart) */
@media (max-width: 640px) {
    .products-table th,
    .products-table td {
        padding: 0.625rem 0.75rem;
        font-size: 0.9rem;
    }

    .products-table .col-product {
        width: 30%;
    }
    
    .products-table .col-variant {
        width: auto;
    }
    
    .qty-input-sm {
        width: 45px;
    }
}

/* Mobile cart layout: hergebruik sidebar-stijl onder 520px */
.cart-mobile { display: none; }

@media (max-width: 520px) {
    .cart-desktop { display: none; }
    .cart-mobile { display: block; }

    .cart-mobile-list {
        background: white;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        overflow: hidden;
    }
}

/* ==================
   Modal
   ================== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    animation: fadeIn 0.2s ease;
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    padding: 0;
    width: 100%;
    max-width: 600px;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
}

.modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 2rem;
    -webkit-overflow-scrolling: touch;
}

.modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 5;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
}

.modal-close:hover {
    background: #e5e7eb;
    color: #1f2937;
}

.modal-header-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin-bottom: 0.25rem;
    padding-right: 2rem;
}

.modal-title {
    font-size: 1.5rem;
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
}

.modal-category {
    font-size: 0.85rem;
    font-weight: 500;
    color: #6b7280;
    background: #f3f4f6;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    white-space: nowrap;
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .modal-content {
        border-radius: 12px;
    }

    .modal-body {
        padding: 1.25rem;
    }

    .modal-header-row {
        align-items: flex-start;
        gap: 0.4rem;
    }

    .modal-title {
        font-size: 1.25rem;
        flex: 1 1 100%;
        order: 1;
    }

    .modal-category {
        order: 2;
        font-size: 0.75rem;
        padding: 0.15rem 0.5rem;
    }

    .modal-price {
        margin-bottom: 0.75rem;
    }

    .modal-description {
        margin-bottom: 0.75rem;
        padding-bottom: 0.75rem;
    }

    .modal-variants-title {
        margin-bottom: 0.5rem;
    }

    .modal-variants .variant-item {
        padding: 0.5rem 0.6rem;
    }
}

.modal-price {
    font-size: 1.1rem;
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.modal-circa {
    font-size: 0.95rem;
    color: #6b7280;
    margin: 0 0 1.25rem;
}

.modal-description {
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #f3f4f6;
}

.modal-ingredients {
    font-size: 0.9rem;
    color: #4b5563;
    line-height: 1.55;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #f3f4f6;
}

.modal-ingredients-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b7280;
    margin-bottom: 0.35rem;
}

.modal-ingredients-label strong {
    font-weight: 800;
    color: #111827;
}

.modal-ingredients-text {
    margin: 0;
}

.modal-ingredients-text strong {
    font-weight: 700;
    color: #111827;
}

.modal-description:not([style*="display: none"]) + .modal-ingredients {
    border-top: none;
}

.modal-variants-title {
    font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b7280;
    margin-bottom: 0.75rem;
}

.modal-variants {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.modal-variants .variant-item {
    background: #f9fafb;
}

.modal-variants .variant-item:hover {
    background: var(--color-primary-light);
    border-color: var(--color-primary);
}

/* Package uitvoeringen carousel */
.modal-variants.is-carousel {
    gap: 0.75rem;
}

.modal-variants-carousel {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 0.35rem;
}

.modal-variants-viewport {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    touch-action: pan-y;
}

.modal-variants-track {
    display: flex;
    width: 100%;
    transition: transform 0.28s ease;
    will-change: transform;
}

.modal-variants-slide {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    box-sizing: border-box;
    padding: 0 0.15rem;
}

.modal-variants-slide .variant-item {
    height: 100%;
    margin: 0;
}

.modal-variants-nav {
    flex: 0 0 auto;
    align-self: center;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #f3f4f6;
    color: #374151;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, color 0.15s ease;
}

.modal-variants-nav:hover {
    background: var(--color-primary);
    color: #fff;
}

.modal-variants-nav:disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

.modal-variants-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.modal-variants-dots {
    display: flex;
    gap: 0.4rem;
    align-items: center;
}

.modal-variants-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: #d1d5db;
    cursor: pointer;
}

.modal-variants-dot.is-active {
    background: var(--color-primary);
}

.modal-variants-counter {
    font-size: 0.8rem;
    font-weight: 600;
    color: #6b7280;
    letter-spacing: 0.02em;
}

@media (max-width: 600px) {
    .modal-variants-nav {
        width: 32px;
        height: 32px;
        font-size: 1.35rem;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ==================
   Toast Notifications
   ================== */
#toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 2000;
    display: flex;
    flex-direction: column-reverse;
    gap: 0.75rem;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    pointer-events: auto;
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 350px;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-success {
    border-left: 4px solid #22c55e;
}

.toast-success .toast-message::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #22c55e;
    color: white;
    border-radius: 50%;
    font-size: 0.75rem;
    margin-right: 0.5rem;
}

.toast-error {
    border-left: 4px solid #ef4444;
}

.toast-error .toast-message::before {
    content: '!';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: bold;
    margin-right: 0.5rem;
}

.toast-message {
    flex: 1;
    font-size: 0.9rem;
    color: #1f2937;
    display: flex;
    align-items: center;
}

.toast-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #9ca3af;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.toast-close:hover {
    color: #4b5563;
}

@media (max-width: 480px) {
    #toast-container {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }
    
    .toast {
        max-width: none;
    }
}

/* ==================
   Store Layout with Cart Sidebar
   ================== */
.store-layout {
    display: flex;
    gap: 2rem;
    align-items: stretch;
}

.store-main {
    flex: 1;
    min-width: 0; /* Prevent flex blowout */
}

.store-sidebar-column {
    flex-shrink: 0;
    width: 390px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-self: stretch;
}

.store-sidebar-track {
    position: sticky;
    top: 70px;
    align-self: flex-start;
    width: 100%;
    max-height: calc(100vh - 86px);
    overflow: hidden;
}

.store-sidebar-track-inner {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.store-sidebar-track.is-short {
    overflow: visible;
    max-height: none;
}

.store-sidebar-track.is-short .store-sidebar-track-inner {
    transform: none !important;
}

.store-sidebar-column:has([data-sidebar-track]) .cart-sidebar,
.store-sidebar-column:has([data-sidebar-track]) .checkout-summary {
    position: static;
    max-height: none;
    overflow: hidden;
}

.store-sidebar-column:has([data-sidebar-track]) .cart-sidebar-body {
    overflow: visible;
    max-height: none;
}

.store-sidebar-column:not(:has([data-sidebar-track])) .cart-sidebar,
.store-sidebar-column:not(:has([data-sidebar-track])) .checkout-summary {
    position: sticky;
    top: 70px;
    flex-shrink: 0;
    z-index: 2;
}

.store-sidebar-column:not(:has([data-sidebar-track])) .cart-sidebar.is-tall,
.store-sidebar-column:not(:has([data-sidebar-track])) .checkout-summary.is-tall {
    position: static;
}

.store-spotlights-viewport {
    flex: 0 0 auto;
    overflow: visible;
    padding: 6px 2px;
    box-sizing: border-box;
}

.store-spotlights-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2px 0;
}

.store-spotlight {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 12px;
    padding: 0.875rem 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.store-spotlight-label {
    margin: 0 0 0.5rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-primary);
}

.store-spotlight-text {
    font-size: 0.875rem;
    line-height: 1.55;
    color: #374151;
}

.store-spotlight-text p {
    margin: 0 0 0.65rem;
}

.store-spotlight-text p:last-child,
.store-spotlight-text ul:last-child,
.store-spotlight-text ol:last-child,
.store-spotlight-text blockquote:last-child {
    margin-bottom: 0;
}

.store-spotlight-text h2,
.store-spotlight-text h3,
.store-spotlight-text h4 {
    margin: 0 0 0.45rem;
    color: #1f2937;
    line-height: 1.25;
}

.store-spotlight-text h2 { font-size: 1rem; }
.store-spotlight-text h3 { font-size: 0.95rem; }
.store-spotlight-text h4 { font-size: 0.9rem; }

.store-spotlight-text ul,
.store-spotlight-text ol {
    margin: 0 0 0.65rem;
    padding-left: 1.25rem;
}

.store-spotlight-text li + li {
    margin-top: 0.2rem;
}

.store-spotlight-text a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.store-spotlight-text blockquote {
    margin: 0 0 0.65rem;
    padding-left: 0.75rem;
    border-left: 3px solid #fde68a;
    color: #4b5563;
}

.store-spotlight-text strong,
.store-spotlight-text b {
    font-weight: 700;
}

.store-spotlight--product {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.store-spotlight--product .store-spotlight-label {
    padding: 0 0.15rem;
}

.store-spotlight-card {
    width: 100%;
    background: white;
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.store-spotlight-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.store-spotlight-card .product-description {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.checkout-grid .store-spotlights-stack {
    margin-top: 0;
}

.checkout-sidebar-column {
    width: 100%;
}

/* Cart Sidebar */
.cart-sidebar {
    flex-shrink: 0;
    width: 100%;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.cart-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: var(--color-primary);
    color: white;
}

.cart-sidebar-header h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 600;
    color: white;
    margin: 0;
}

.cart-sidebar-header svg {
    flex-shrink: 0;
}

.cart-sidebar-header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cart-sidebar-count {
    background: white;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    min-width: 24px;
    text-align: center;
}

.cart-sidebar-close {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.cart-sidebar-close:hover {
    opacity: 1;
}

@media (max-width: 1024px) {
    .cart-sidebar-close {
        display: block;
    }
}

.cart-sidebar-body {
    flex: 1 1 auto;
    overflow: visible;
    padding: 0;
}

.cart-sidebar-empty {
    padding: 2rem 1.25rem;
    text-align: center;
    color: #6b7280;
}

.cart-sidebar-empty p {
    margin: 0 0 0.25rem;
    font-weight: 500;
}

/* Sidebar Categories */
.cart-sidebar-categories {
    padding: 0;
}

.cart-sidebar-category {
    border-bottom: 1px solid #e5e7eb;
}

.cart-sidebar-category:last-child {
    border-bottom: none;
}

.cart-sidebar-category-header {
    font-size: 0.77rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    background: #f9fafb;
    padding: 0.375rem 1rem;
    border-bottom: 1px solid #f3f4f6;
}

.cart-sidebar-products {
    padding: 0;
}

.cart-sidebar-product {
    border-bottom: 1px solid #f3f4f6;
}

.cart-sidebar-product:last-child {
    border-bottom: none;
}

.cart-product-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem 0.25rem;
    gap: 0.5rem;
}

.cart-product-name {
    font-weight: 600;
    font-size: 0.88rem;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

.cart-product-price {
    font-size: 0.77rem;
    color: #6b7280;
    white-space: nowrap;
    flex-shrink: 0;
}

.cart-sidebar-variants {
    list-style: none;
    margin: 0;
    padding: 0 0 0.25rem 0;
}

.cart-sidebar-variant {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.25rem 1rem 0.25rem 1.5rem;
}

.cart-variant-name {
    font-size: 0.825rem;
    color: #4b5563;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

.cart-variant-controls {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    flex-shrink: 0;
}

/* Legacy support for flat list */
.cart-sidebar-items {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cart-sidebar-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.3s ease;
}

.cart-sidebar-item:last-child {
    border-bottom: none;
}

.cart-item-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
}

.cart-item-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.cart-item-product {
    font-weight: 500;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-variant {
    font-size: 0.75rem;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-price {
    font-size: 0.75rem;
    color: #6b7280;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Cart Item Controls */
.cart-item-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.cart-item-qty-control {
    display: flex;
    align-items: center;
    gap: 0;
    background: #f3f4f6;
    border-radius: 6px;
    overflow: hidden;
}

.qty-btn {
    width: 26px;
    height: 26px;
    border: none;
    background: transparent;
    color: #374151;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: #e5e7eb;
}

.qty-btn:active {
    background: #d1d5db;
}

.qty-input-sidebar {
    width: 32px;
    height: 26px;
    border: none;
    background: transparent;
    text-align: center;
    font-size: 0.88rem;
    font-weight: 500;
    color: #111827;
    -moz-appearance: textfield;
}

.qty-input-sidebar::-webkit-outer-spin-button,
.qty-input-sidebar::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.btn-remove {
    width: 26px;
    height: 26px;
    border: none;
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
    border-radius: 4px;
    transition: color 0.15s, background-color 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-remove:hover {
    color: #dc2626;
    background: #fef2f2;
}

.btn-remove svg {
    width: 16px;
    height: 16px;
}

.cart-sidebar-footer {
    padding: 1rem 1.25rem;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cart-sidebar-footer .btn {
    font-size: 0.9rem;
    padding: 0.625rem 1rem;
}

/* Responsive: Hide sidebar on smaller screens */
@media (max-width: 1024px) {
    .store-layout {
        display: block;
    }

    .store-sidebar-column {
        position: static;
        width: auto;
        margin-top: 2rem;
    }

    .store-sidebar-track {
        position: static;
        top: auto;
        bottom: auto;
        max-height: none;
        overflow: visible;
    }

    .store-sidebar-track-inner {
        transform: none !important;
    }
    
    .cart-sidebar {
        display: none;
        width: auto;
    }
}

/* Mobile floating cart button */
.cart-mobile-toggle {
    display: none;
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-primary);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    cursor: pointer;
    z-index: 90;
    align-items: center;
    justify-content: center;
}

.cart-mobile-toggle .cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--color-secondary);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 1024px) {
    .cart-mobile-toggle {
        display: flex;
    }

    .store-sidebar-column,
    .store-sidebar-track,
    .store-sidebar-track-inner {
        overflow: visible !important;
        max-height: none !important;
        transform: none !important;
        filter: none !important;
        perspective: none !important;
        will-change: auto !important;
    }
    
    .cart-sidebar.mobile-open,
    .store-sidebar-column .cart-sidebar.mobile-open,
    .store-sidebar-column:has([data-sidebar-track]) .cart-sidebar.mobile-open {
        display: flex !important;
        position: fixed !important;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-height: 100vh;
        border-radius: 0;
        z-index: 200;
        animation: slideInUp 0.3s ease;
        overflow: hidden;
    }

    .cart-sidebar.mobile-open .cart-sidebar-body {
        flex: 1;
        min-height: 0;
        overflow-y: auto;
    }
    
    .cart-sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 199;
    }
    
    .cart-sidebar-overlay.active {
        display: block;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Payment Methods Bar */
.payment-methods-bar {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}
.payment-methods-label {
    display: block;
    font-size: 0.7rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}
.payment-methods-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.payment-methods-logos img {
    height: 44px !important;
    width: auto !important;
    max-width: 96px !important;
    max-height: 44px !important;
    object-fit: contain;
    opacity: 0.65;
    transition: opacity 0.2s;
}
.payment-methods-logos img:hover {
    opacity: 1;
}

/* Brands Bar */
.footer-brands {
    text-align: center;
}
.brands-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.brands-logos img {
    height: 88px !important;
    width: auto !important;
    max-width: 200px !important;
    max-height: 88px !important;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.brands-logos img:hover {
    opacity: 1;
}

/* ==================
   Landing page
   ================== */
.landing-page {
    padding-bottom: 0;
}

.landing-section {
    padding: 2.75rem 0;
}

.landing-shop-preview {
    background: linear-gradient(180deg, #e5e7eb 0%, #fff 55%);
    border-bottom: 1px solid #e5e7eb;
}

.landing-section-intro {
    margin: 0 0 1.25rem;
}

.landing-week-preview {
    margin-bottom: 1.5rem;
}

.landing-cta-row {
    display: flex;
    justify-content: center;
    margin-top: 1.25rem;
}

.landing-products-preview {
    margin-top: 1.75rem;
}

/* Zelfde kaartgrootte als bestelpagina, maar max. 1 rij */
.landing-products-grid {
    overflow: hidden;
    grid-template-rows: auto;
    grid-auto-rows: 0;
    row-gap: 0;
    column-gap: 1.25rem;
}

a.landing-product-card {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

a.landing-product-card .product-name {
    color: inherit;
}

.landing-closed-note {
    margin: 0;
    color: #92400e;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
}

.landing-cms-block {
    /* tone classes set background */
}

.landing-tone-light {
    background: #f3f4f6;
    color: #1f2937;
}

.landing-tone-dark {
    background: #1f2937;
    color: #e5e7eb;
}

.landing-tone-dark .landing-block-title {
    color: #fff;
}

.landing-tone-dark .landing-block-preview {
    color: #9ca3af;
}

.landing-tone-dark .landing-block-more a {
    color: #e5e7eb;
}

.landing-block-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 2rem 2.5rem;
    align-items: center;
}

.landing-block-grid-text-only {
    grid-template-columns: 1fr;
    max-width: 40rem;
}

.landing-cms-block-flip .landing-block-grid {
    direction: rtl;
}

.landing-cms-block-flip .landing-block-grid > * {
    direction: ltr;
}

.landing-block-title {
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(1.45rem, 3vw, 1.9rem);
    margin: 0 0 0.85rem;
    color: #111827;
}

.landing-block-preview {
    margin: 0 0 1.1rem;
    font-size: 1.05rem;
    line-height: 1.65;
    color: #374151;
}

.landing-block-more {
    margin: 0;
}

.landing-block-more a {
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
}

.landing-block-more a:hover {
    text-decoration: underline;
}

.landing-block-cta {
    margin: 1.5rem 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.landing-block-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.15rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    background: var(--color-primary);
    color: #fff;
    border: 1px solid transparent;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.landing-block-cta-btn:hover {
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
}

.landing-tone-dark .landing-block-cta-btn {
    background: #fff;
    color: #1f2937;
}

.landing-tone-dark .landing-block-cta-btn:hover {
    color: #111827;
    background: #f3f4f6;
}

.landing-carousel {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(0,0,0,0.08);
    aspect-ratio: 4 / 3;
    box-shadow: 0 10px 28px rgba(0,0,0,0.12);
}

.landing-carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.landing-carousel-slide {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    transition: opacity 0.45s ease;
    pointer-events: none;
}

.landing-carousel-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.landing-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.landing-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    border-radius: 999px;
    background: rgba(255,255,255,0.88);
    color: #111827;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.landing-carousel-prev { left: 0.65rem; }
.landing-carousel-next { right: 0.65rem; }

.landing-carousel-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.7rem;
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    z-index: 2;
}

.landing-carousel-dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    border: none;
    padding: 0;
    background: rgba(255,255,255,0.55);
    cursor: pointer;
}

.landing-carousel-dot.is-active {
    background: #fff;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.15);
}

@media (max-width: 800px) {
    .landing-block-grid,
    .landing-cms-block-flip .landing-block-grid {
        grid-template-columns: 1fr;
        direction: ltr;
    }

    .landing-cms-block-flip .landing-block-media {
        order: -1;
    }
}

.btn-lg {
    padding: 0.85rem 1.5rem;
    font-size: 1.05rem;
}

/* Admin: drag-over row highlight */
tr.drag-over {
    background: #f0fdf4 !important;
    box-shadow: inset 0 -2px 0 var(--color-primary, #2D5016);
}

/* Blog */
.blog-index {
    padding-top: 2rem;
    padding-bottom: 3rem;
}

.blog-index-header {
    margin-bottom: 2rem;
}

.blog-index-header h1 {
    margin: 0 0 0.4rem;
    font-size: 2rem;
}

.blog-index-intro {
    margin: 0;
    color: #6b7280;
}

.blog-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.blog-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.blog-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    color: inherit;
    text-decoration: none;
}

.blog-card-media {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f3f4f6;
}

.blog-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-card-body {
    padding: 1.1rem 1.15rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    flex: 1;
}

.blog-card-date {
    font-size: 0.8rem;
    color: #6b7280;
}

.blog-card-title {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.3;
}

.blog-card-preview {
    margin: 0;
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-more {
    margin-top: auto;
    padding-top: 0.5rem;
    font-weight: 600;
    color: var(--color-primary);
    font-size: 0.95rem;
}

.blog-article {
    padding-top: 1.5rem;
    padding-bottom: 3rem;
    max-width: 760px;
}

.blog-article-back {
    margin: 0 0 1.25rem;
}

.blog-article-header {
    margin-bottom: 1.5rem;
}

.blog-article-header h1 {
    margin: 0.35rem 0 0;
    font-size: 2rem;
    line-height: 1.2;
}

.blog-article-date {
    font-size: 0.9rem;
    color: #6b7280;
}

.blog-article-media {
    margin: 0 0 1.75rem;
}

.blog-article-media .landing-carousel {
    aspect-ratio: 16 / 10;
}

.blog-article-cta {
    margin-top: 2rem;
}

