/* ============================================
    WEBSHOP STYLING
   ============================================ */

:root {
    --fixed-btn-bottom: 30px;
    --fixed-btn-side: 30px;
    --order-help-offset: 8px; /* fine-tune to visually align with circular cart icon */
}

/* Products Section – modernized heading and background */
#products-section {
    padding: 28px 0 32px;
    background: linear-gradient(180deg, #f7fbff 0%, #ffffff 60%);
}

#products-section .section-title-container {
    max-width: 1200px;
    margin: 0 auto 28px;
}

#products-section .section-title {
    font-size: clamp(2rem, 1.6rem + 1.5vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

#products-section .section-divider {
    height: 5px;
    width: 80px;
    background: linear-gradient(90deg, #0d47a1 0%, #2196F3 60%, #64b5f6 100%);
    border-radius: 999px;
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.25);
}

#products-section .section-subtitle {
    color: #5a6a7a;
}

/* Category Filter Chips Bar */
.filters-bar {
    max-width: 1200px;
    margin: 0 auto 16px;
    padding: 8px 12px;
}

.filters-header {
    max-width: 1200px;
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 4px;
    text-align: center;
}

.filters-header .material-icons { color: #1976D2; font-size: 22px; }
.filters-title { margin: 0; font-size: 1.05rem; font-weight: 700; color: #1f2a37; }

.category-select-wrap {
    display: none; /* hidden by default; carousel replaces dropdown */
    align-items: center;
    gap: 10px;
    background: transparent;
    padding: 0;
    border-radius: 999px;
    border: none;
    box-shadow: none;
    margin: 6px 4px 10px;
    animation: none !important;
    transition: none !important;
    position: relative;
}

.sort-select-wrap {
    display: flex;
    justify-content: center;
    margin: 0;
}

.sort-select-wrap select {
    min-width: 240px;
    padding: 10px 36px 10px 14px;
    border: 1px solid #e3eaf3;
    border-radius: 999px;
    background: #f8fbff;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    color: #1f2a37;
    cursor: pointer;
    outline: none;
    appearance: none;
    box-shadow: 0 2px 6px rgba(13, 71, 161, 0.06);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5' stroke='%231976D2' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.sort-select-wrap select:focus {
    border-color: #bcdaf8;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.2);
}

.shortcuts-inline {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
}

.shortcuts-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

@media (min-width: 769px) {
    .shortcuts-controls {
        width: 100%;
    }

    .shortcuts-toggle,
    .sort-select-wrap {
        width: max(240px, calc((100% - 42px) / 4));
    }

    .sort-select-wrap select {
        width: 100%;
        min-width: 0;
    }
}

.category-select-wrap select {
    padding: 6px 36px 6px 12px;
    border: none;
    background: transparent;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1f2a37;
    cursor: pointer;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5' stroke='%231976D2' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    min-width: 170px;
    animation: none !important;
    transition: none !important;
}

.category-select-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid #e3eaf3;
    background: #f8fbff;
    color: #1f2a37;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(13, 71, 161, 0.06);
    font-family: 'Montserrat', sans-serif;
}
.category-select-button .chevron { color: #1976D2; font-size: 20px; }
.category-select-button:focus { outline: none; }
.category-select-wrap.open .category-select-button { border-color: #bcdaf8; box-shadow: 0 4px 12px rgba(33,150,243,0.15); }

.category-select-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e3eaf3;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(13,71,161,0.12);
    padding: 6px;
    z-index: 20;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
}
.category-select-wrap.open .category-select-panel { opacity: 1; transform: translateY(0); pointer-events: auto; }

.category-option {
    width: 100%;
    text-align: left;
    border: none;
    background: transparent;
    padding: 10px 10px;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    color: #1f2a37;
    cursor: pointer;
}
.category-option:hover { background: #f8fbff; }
.category-option.active { background: #eaf4ff; border: 1px solid #cfe8ff; }

.visually-hidden {
    position: absolute !important;
    height: 1px; width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

.category-chips {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 6px 4px;
    flex-wrap: wrap;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #f8fbff;
    border: 1px solid #e3eaf3;
    color: #1f2a37;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.chip:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.25);
}

.chip-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #1976D2;
    box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.15);
    flex-shrink: 0;
}

.chip-text { white-space: nowrap; }

.chip:hover {
    transform: translateY(-1px);
    border-color: #bcdaf8;
    box-shadow: 0 4px 10px rgba(13, 71, 161, 0.12);
}

.chip.active {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: #fff;
    border-color: #1976D2;
    box-shadow: 0 6px 16px rgba(33, 150, 243, 0.35);
}

.chip.active .chip-dot { background: #fff; box-shadow: 0 0 0 2px rgba(255,255,255,0.25); }

@media (max-width: 768px) {
    .filters-bar { padding: 6px 10px; margin-bottom: 12px; }
    /* On mobile: use carousel buttons; keep dropdown hidden */
    .category-chips { display: none; }
    .category-select-wrap { display: none; }
    .shortcuts-controls {
        width: 100%;
        margin-top: 8px;
    }
    .sort-select-wrap { width: 100%; margin: 4px 2px 0; }
    .sort-select-wrap select { width: 100%; min-width: 0; }
}

/* Info chip (BTW) */
.info-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 14px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1976D2;
    background: #eaf4ff;
    border: 1px solid #cfe8ff;
    border-radius: 999px;
    margin-top: 6px;
}

.info-chip .material-icons {
    font-size: 18px;
    color: #1e88e5;
}

/* ============================================
   Shop Shortcuts – Liquid Glass Buttons
   ============================================ */
.services-shortcuts {
    padding: 8px 0 18px;
}

.shortcuts-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.shortcuts-title {
    margin: 6px 0 12px;
    font-size: clamp(1.1rem, 1rem + 0.4vw, 1.4rem);
    font-weight: 800;
    color: #1f2a37;
    text-align: center;
}

.shortcuts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    width: 100%;
    min-width: 0;
}

/* Base tile */
.shortcut-btn {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 16px 16px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.22);
    background: linear-gradient(135deg, #eaf4ff, #ffffff);
    box-shadow: 0 8px 24px rgba(13, 71, 161, 0.08);
    cursor: pointer;
    overflow: hidden;
    isolation: isolate; /* ensure overlay/backdrop filter isolates within */
    color: #0f172a;
    text-align: left;
    transition: transform 180ms ease, box-shadow 220ms ease, border-color 180ms ease;
}

/* Image-backed tiles (image is applied inline on the button) */
.shortcut-btn.has-image {
    background-position: center;
    background-size: cover;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0; /* visual like screenshot, full-bleed image */
    aspect-ratio: 16 / 9; /* balanced tile proportion */
    overflow: hidden; /* clip blurred edges */
}

/* Frosted glass overlay that blurs the image behind it */
.shortcut-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: rgba(0,0,0,0.45); /* stronger darkening for readability */
    -webkit-backdrop-filter: blur(8px) saturate(140%); /* slight blur */
    backdrop-filter: blur(8px) saturate(140%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 8px 24px rgba(13,71,161,0.12);
    border: 1px solid rgba(255,255,255,0.28);
    z-index: 1;
    pointer-events: none;
}

/* Subtle highlight sheen */
.shortcut-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(120% 80% at 0% 0%, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0.08) 40%, rgba(255,255,255,0) 70%);
    mix-blend-mode: screen;
    z-index: 0;
    pointer-events: none;
}

/* Guaranteed blur underlay: reuse the inline background on image tiles */
.shortcut-btn.has-image::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: inherit;
    background-position: inherit;
    background-size: inherit;
    filter: blur(10px) saturate(140%); /* slight blur underlay */
    transform: scale(1.05);
    z-index: 0;
    pointer-events: none;
}

/* Ensure inner content sits above overlays */
.shortcut-btn .shortcut-icon,
.shortcut-btn .shortcut-content,
.shortcut-btn .shortcut-arrow {
    position: relative;
    z-index: 2;
}

.shortcut-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #0f172a;
    background: rgba(255,255,255,0.65);
    border: 1px solid rgba(255,255,255,0.4);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12), inset 0 1px 0 rgba(255,255,255,0.45);
}

.shortcut-btn.has-image .shortcut-icon {
    color: #0f172a;
}

.shortcut-content h4 {
    margin: 0 0 4px 0;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: inherit;
    text-shadow: 0 1px 1px rgba(0,0,0,0.15);
}

.shortcut-content p {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 700;
    opacity: 0.9;
    color: inherit;
    text-shadow: 0 1px 1px rgba(0,0,0,0.15);
}

.shortcut-arrow {
    color: inherit;
    opacity: 0.9;
}

.shortcut-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 38px rgba(13, 71, 161, 0.16);
}
.shortcut-btn.active {
    border: 2px solid #01AFFE; /* visual indication of current category */
    box-shadow: 0 0 0 2px rgba(1, 175, 254, 0.15), 0 12px 30px rgba(13, 71, 161, 0.18);
}
.shortcut-btn.has-image.active::after {
    background: rgba(0,0,0,0.50); /* slightly stronger overlay when active */
}

/* Special styling for the "All categories" tile: centered, uppercase, bold, no arrow */
.shortcut-btn.all-categories {
    display: flex; /* override grid layout for centered content */
    align-items: center;
    justify-content: center;
    padding: 28px 20px;
    text-align: center;
    grid-template-columns: none;
    background: linear-gradient(135deg, #f8fbff, #ffffff);
}
.shortcut-btn.all-categories .shortcut-content { z-index: 2; }
.shortcut-btn.all-categories .shortcut-content h4 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: inherit;
}

/* Mobile-only: reduce width so the tile doesn't span too wide on small screens */
@media (max-width: 600px) {
    .shortcuts-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 12px;
    }
    .shortcut-btn.all-categories {
        flex: 0 0 auto;
        width: 150px; /* slightly narrower on mobile */
        max-width: 44%;
        padding: 16px 12px;
        justify-content: center;
    }
    .shortcut-btn.all-categories .shortcut-content h4 {
        font-size: 0.92rem;
        line-height: 1.05;
    }
}


.shortcut-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(33,150,243,0.32), 0 12px 30px rgba(13, 71, 161, 0.18);
}

/* Fallback visual when no image is available */
.shortcut-btn:not(.has-image) {
    background: linear-gradient(135deg, #eaf4ff 0%, #ffffff 100%);
    border: 1px solid #e3eaf3;
}

/* Screenshot-like presentation for image tiles: centered bold label */
.shortcut-btn.has-image .shortcut-icon,
.shortcut-btn.has-image .shortcut-arrow {
    display: none;
}

.shortcut-btn.has-image .shortcut-content {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 12px;
}

.shortcut-btn.has-image .shortcut-content h4 {
    margin: 0;
    font-size: clamp(1rem, 0.8rem + 0.9vw, 1.35rem);
    font-weight: 900; /* bold text */
    letter-spacing: 0.5px;
    text-transform: uppercase; /* uppercase like screenshot */
    color: #ffffff;
    text-shadow: 0 2px 6px rgba(0,0,0,0.45);
}

.shortcut-btn.has-image .shortcut-content p { display: none; }

/* Special styling for the "Alle categorieën" tile: no icon, black text */
.shortcut-btn[data-category="all"] .shortcut-icon {
    display: none;
}
.shortcut-btn[data-category="all"] .shortcut-content h4 {
    color: #0f172a; /* black text for better contrast */
    text-transform: none; /* keep normal case */
    font-weight: 800;
}
.shortcut-btn[data-category="all"] .shortcut-content p {
    color: rgba(15,23,42,0.85);
}

/* Responsive tweaks */
@media (max-width: 640px) {
    .shortcuts-grid { gap: 12px; }
    .shortcut-btn { padding: 14px; border-radius: 16px; }
    .shortcut-icon { width: 40px; height: 40px; border-radius: 10px; }
}

/* Desktop collapse: show only first 4 buttons until expanded */
@media (min-width: 769px) {
    .shortcuts-grid.collapsible:not(.expanded) .shortcut-btn:nth-child(n+5) {
        display: none;
    }
}

/* Show-more toggle button – styled to match sort select on desktop */
.shortcuts-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin: 0;
    min-width: 240px;
    padding: 10px 12px 10px 14px;
    border-radius: 999px;
    border: 1px solid #e3eaf3;
    background: #f8fbff;
    color: #1f2a37;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(13, 71, 161, 0.06);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}
.shortcuts-toggle:hover,
.shortcuts-toggle:focus {
    border-color: #bcdaf8;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.2);
}
.shortcuts-toggle .toggle-icon { transition: transform 0.2s ease; color: #1976D2; font-size: 18px; }
.shortcuts-toggle[aria-expanded="true"] .toggle-icon { transform: rotate(180deg); }

/* Mobile carousel: horizontal swipe */
@media (max-width: 768px) {
    .shortcuts-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        touch-action: pan-x;
        padding: 0 4px 8px;
        scroll-padding-left: 4px;
        scroll-padding-right: 16px;
    }
    .shortcut-btn {
        flex: 0 0 auto;
        scroll-snap-align: start;
        min-width: min(220px, 78vw);
    }
    .shortcuts-grid::after {
        content: '';
        flex: 0 0 12px;
    }
    /* Hide desktop toggle on mobile */
    .shortcuts-toggle { display: none !important; }
}

/* Make the 'Alle categorieën' tile narrower on mobile */
@media (max-width: 768px) {
    .shortcut-btn[data-category="all"] {
        min-width: 140px;
    }
}

/* Shop Hero Section */
.shop-hero .christmas-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite, rotate 6s linear infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Heart Floating Elements for Shop */
.shop-hero .floating-card {
    background: transparent;
    border: none;
    backdrop-filter: none;
    clip-path: none;
    width: 60px;
    height: 60px;
    color: rgba(255, 255, 255, 0.95); /* pink hearts */
    display: flex;
    align-items: center;
    justify-content: center;
    animation: snowfall 8s linear infinite, snowRotate 4s linear infinite;
}

.shop-hero .floating-card svg {
    width: 100%;
    height: 100%;
    display: block;
}

.shop-hero .floating-card:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-duration: 12s, 6s;
    animation-delay: 0s;
}

.shop-hero .floating-card:nth-child(2) {
    top: 5%;
    right: 15%;
    animation-duration: 15s, 5s;
    animation-delay: 2s;
    width: 70px;
    height: 70px;
}

.shop-hero .floating-card:nth-child(3) {
    top: 30%;
    left: 80%;
    animation-duration: 10s, 7s;
    animation-delay: 4s;
    width: 50px;
    height: 50px;
}

.shop-hero .floating-card:nth-child(4) {
    top: 15%;
    left: 40%;
    animation-duration: 14s, 6s;
    animation-delay: 1s;
    width: 55px;
    height: 55px;
}

.shop-hero .floating-card:nth-child(5) {
    top: 50%;
    right: 25%;
    animation-duration: 11s, 5s;
    animation-delay: 3s;
    width: 65px;
    height: 65px;
}

.shop-hero .floating-card:nth-child(6) {
    top: 40%;
    left: 15%;
    animation-duration: 13s, 7s;
    animation-delay: 2.5s;
    width: 58px;
    height: 58px;
}

/* Extra floating hearts (SVG) to replace pseudo-elements */
.shop-hero .floating-extra {
    position: absolute;
    color: rgba(255, 255, 255, 0.8);
    width: 52px;
    height: 52px;
    animation: snowfall 13s linear infinite, snowRotate 5s linear infinite;
}
.shop-hero .floating-extra svg {
    width: 100%;
    height: 100%;
    display: block;
}
.shop-hero .floating-extra.extra-1 {
    top: 20%;
    left: 50%;
    animation-delay: 3s;
}
.shop-hero .floating-extra.extra-2 {
    top: 60%;
    left: 20%;
    animation-delay: 5s;
    width: 62px;
    height: 62px;
}

@keyframes snowfall {
    0% {
        transform: translateY(-20px) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) translateX(50px) rotate(360deg);
        opacity: 0;
    }
}

@keyframes snowRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Fixed Shopping Cart Icon */
.cart-icon-fixed {
    position: fixed;
    bottom: var(--fixed-btn-bottom);
    right: var(--fixed-btn-side);
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(33, 150, 243, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
}

.cart-icon-fixed:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(33, 150, 243, 0.6);
}

.cart-icon-fixed .material-icons {
    font-size: 34px;
}

/* Cart icon animation when item added */
.cart-icon-fixed.cart-shake {
    animation: cartShake 0.6s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes cartShake {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translate(-2px, -2px) rotate(-5deg) scale(1.15);
    }
    20%, 40%, 60%, 80% {
        transform: translate(2px, 2px) rotate(5deg) scale(1.15);
    }
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #c41e3a;
    color: white;
    font-size: 12px;
    font-weight: 700;
    min-width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    border: 2px solid white;
}

.cart-count.hidden {
    display: none;
}

/* Filter Container - Modern Design */
.filter-container {
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 12px 16px;
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid #e9eef5;
    border-radius: 14px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(13, 71, 161, 0.06);
    position: sticky;
    top: 12px;
    z-index: 50;
}

.filter-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-label .material-icons {
    font-size: 20px;
    color: #666;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8fbff;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid #e3eaf3;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(13, 71, 161, 0.06);
}

.filter-group:hover {
    border-color: #bcdaf8;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.15);
}

.filter-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
}

.filter-group label .material-icons {
    font-size: 18px;
}

.filter-group select {
    padding: 6px 36px 6px 12px;
    border: none;
    background: transparent;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1f2a37;
    cursor: pointer;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231976D2' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    min-width: 140px;
}

.filter-group select:focus {
    outline: none;
}

/* Loading Container */
.loading-container {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2196F3;
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

/* Prevent constant spinner on submit buttons in checkout */
.submit-btn .loading-spinner {
    display: none;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

/* Product Card */
.product-card {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #eef2f7;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(13, 71, 161, 0.15);
}

.product-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1; /* Force 1:1 square */
    overflow: hidden;
    background: #f5f5f5;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #c41e3a;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(196, 30, 58, 0.3);
}

.product-badge.new {
    background: #165b33;
}

.product-info {
    padding: 20px;
    display: grid;
    grid-template-rows: auto auto 1fr auto auto;
    flex: 1;
    gap: 0;
}

.product-category {
    color: #2196F3;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.product-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px;
    line-height: 1.4;
    min-height: 2.8em;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-description {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
    align-self: start;
}

/* Product Colors Display */
.product-colors {
    margin-bottom: 12px;
    align-self: end;
}

.product-colors-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    max-width: 100%;
    padding: 4px 0;
}

.product-color-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.product-color-circle:hover {
    transform: scale(1.1);
    z-index: 1;
}

.product-colors-fade {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 40px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
    pointer-events: none;
    display: none;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    margin-top: 0;
    border-top: 1px solid #f0f0f0;
    align-self: end;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2196F3;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.product-add-btn {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.product-add-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(33, 150, 243, 0.35);
}

.product-add-btn .material-icons {
    font-size: 18px;
}

/* No Products Message */
.no-products {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.no-products .material-icons {
    font-size: 80px;
    color: #ddd;
    margin-bottom: 20px;
}

.no-products p {
    font-size: 1.2rem;
    font-weight: 500;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: white;
    border-radius: 16px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 24px 28px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
}

.modal-close {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #999;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

.modal-close .material-icons {
    font-size: 28px;
}

.modal-body {
    padding: 28px;
}

/* Important banner layout */
.important-banner p {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.important-banner .notice-line {
    flex: 1 1 auto;
}

.important-banner .important-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.important-banner .important-title .material-icons {
    color: #2196F3;
    font-size: 24px;
}

.important-banner .important-title .title-text {
    font-weight: 600;
    color: #1976D2;
    font-size: 1rem;
}

.modal-footer {
    padding: 20px 28px;
    border-top: 2px solid #f0f0f0;
}

/* Product Modal Specific */
.product-modal-content {
    max-width: 1000px;
}

.product-modal-content .modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: white;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.product-gallery {
    position: relative;
}

.product-main-image {
    width: 100%;
    aspect-ratio: 1 / 1; /* Force 1:1 square in modal */
    height: auto; /* let aspect-ratio define height */
    object-fit: contain; /* show full image without cropping */
    background: transparent; /* remove gray background on mobile */
    border-radius: 12px;
    margin-bottom: 15px;
}

.product-gallery-indicator {
    display: none;
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.58);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.2;
}

.product-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
}

.product-thumbnail {
    width: 100%;
    aspect-ratio: 1 / 1; /* make thumbnails square */
    height: auto;
    object-fit: contain; /* avoid cropping thumbnails */
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.product-thumbnail:hover,
.product-thumbnail.active {
    border-color: #2196F3;
}

.product-details-content h2 {
    font-size: 2rem;
    margin: 0 0 10px;
    color: #333;
}

.product-title-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin: 0 0 8px;
}

/* Legacy wide share button (not used, kept for compatibility) */
.share-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 2px solid #1976D2;
    background: #fff;
    color: #1976D2;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease, color 0.2s ease;
}
.share-link-btn .material-icons { font-size: 18px; }
.share-link-btn:hover { background: rgba(25,118,210,0.06); box-shadow: 0 2px 8px rgba(33,150,243,0.18); }
.share-link-btn:active { transform: translateY(0); }

/* Minimal icon-only share beside title */
.share-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0 0 6px;
    background: transparent;
    border: none;
    color: #6b7280; /* subtle gray */
    cursor: pointer;
    transition: color 0.15s ease;
}
.share-icon-btn .material-icons { font-size: 20px; line-height: 1; }
.share-icon-btn:hover { color: #1976D2; }
.share-icon-btn:active { color: #0d47a1; }
.share-icon-btn:focus { outline: none; }
.share-icon-btn:focus-visible { outline: 2px solid rgba(25,118,210,0.35); border-radius: 4px; outline-offset: 2px; }

.product-details-category {
    color: #2196F3;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.product-details-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2196F3;
    margin-bottom: 20px;
}

.product-details-description {
    color: #666;
    line-height: 1.8;
    margin-bottom: 30px;
    font-size: 15px;
}
.product-description-collapsible {
    position: relative;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.product-description-collapsible.is-collapsed::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 60px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1));
    pointer-events: none;
}

.product-description-content {
    padding-bottom: 6px;
}

.product-details-bullets {
    margin: 10px 0 0 18px;
    padding: 0;
    color: #444;
    line-height: 1.7;
}
.product-details-bullets li { margin-bottom: 6px; }

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 6px 2px;
    border: none;
    background: transparent;
    color: #1976D2;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.read-more-btn:hover { background: transparent; box-shadow: none; transform: none; text-decoration: underline; color: #0d47a1; }

.product-options {
    margin-bottom: 30px;
}

.option-group {
    margin-bottom: 20px;
}

.option-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    display: block;
}

/* Original color circles (kept for backward compatibility) */
.color-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.color-option {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.color-option:hover,
.color-option.active {
    border-color: #2196F3;
    transform: scale(1.1);
}

.color-option.active::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
}

/* New color list style (type + name) */
.color-options-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.color-option-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.color-option-row:hover {
    border-color: #2196F3;
    background: #f5f5f5;
}

.color-option-row.active {
    border-color: #2196F3;
    background: linear-gradient(135deg, #e3f2fd 0%, #f5f5f5 100%);
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.2);
}

.color-preview {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 2px solid #e0e0e0;
    flex-shrink: 0;
}

.color-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.95rem;
}

.color-type {
    font-weight: 600;
    color: #666;
}

.color-name {
    color: #333;
}

/* Color type groups (nieuwe styling voor gegroepeerde kleuren) */
.color-type-group {
    margin-bottom: 16px;
}

.color-type-group:last-child {
    margin-bottom: 0;
}

.color-options-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.color-option-btn.hidden {
    display: none;
}

.color-options-toggle-btn {
    margin-top: 8px;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #cfe8ff;
    background: #f3f9ff;
    color: #1976D2;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.color-options-toggle-btn:hover {
    border-color: #90caf9;
    background: #e8f4ff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.15);
}

.color-options-toggle-btn .material-icons {
    font-size: 20px;
    transition: transform 0.2s ease;
}

.color-options-toggle-btn[aria-expanded="true"] .material-icons {
    transform: rotate(180deg);
}

.color-option-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: #333;
    width: 100%;
    box-sizing: border-box;
}

.color-option-btn:hover {
    border-color: #2196F3;
    background: #f5f5f5;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    color: #333;
}

.color-option-btn.active {
    border-color: #2196F3;
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white !important;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
}

.color-preview-small {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.color-option-btn.active .color-preview-small {
    border-color: rgba(255, 255, 255, 0.5);
}

.color-label {
    font-weight: 500;
}

/* Variant (Grootte) buttons: mirror color-option-btn styling */
.variant-options-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.variant-option-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: #333;
}

.variant-option-btn:hover {
    border-color: #2196F3;
    background: #f5f5f5;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    color: #333;
}

.variant-option-btn.active {
    border-color: #2196F3;
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white !important;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
}

/* Extra Product Options (checkboxes) */
.product-extra-options {
    margin-top: 16px;
}

.extra-options-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.extra-option-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.extra-option-item:hover {
    border-color: #2196F3;
    background: #f5f5f5;
}

.extra-option-item:has(.extra-option-checkbox:checked) {
    border-color: #2196F3;
    background: linear-gradient(135deg, #e3f2fd 0%, #f5f5f5 100%);
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.2);
}

.extra-option-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: #2196F3;
}

.extra-option-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    color: #333;
    flex: 1;
}

.extra-option-price {
    font-weight: 600;
    color: #2196F3;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 15px;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    border-color: #2196F3;
    color: #2196F3;
}

/* Modal quantity buttons with blue outline */
.modal-qty-btn {
    border-color:#1976D2;
    color:#1976D2;
}
.modal-qty-btn:hover {
    background:rgba(25,118,210,0.06);
    color:#1976D2;
}

.quantity-value {
    font-size: 1.2rem;
    font-weight: 600;
    min-width: 40px;
    text-align: center;
}

.add-to-cart-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.add-to-cart-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
}

.add-to-cart-btn .material-icons {
    font-size: 24px;
}

.add-to-cart-btn.disabled,
.add-to-cart-btn:disabled {
    background:#bdbdbd;
    color:#ffffff;
    cursor:not-allowed;
    box-shadow:none;
    transform:none;
}

/* Cart Modal */
.cart-modal-content {
    max-width: 700px;
}

.cart-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    align-items: center;
}

.cart-item-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px;
}

.cart-item-options {
    color: #666;
    font-size: 14px;
    margin-bottom: 8px;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Cart quantity buttons: blue outline and symbols */
.cart-item-quantity .quantity-btn {
    border-color: #1976D2;
    color: #1976D2;
    background: #fff;
}

.cart-item-quantity .quantity-btn:hover {
    background: rgba(25, 118, 210, 0.06);
}

.cart-item-quantity .quantity-btn {
    width: 32px;
    height: 32px;
    font-size: 16px;
}

.cart-item-quantity .quantity-value {
    font-size: 1rem;
    min-width: 30px;
}

.cart-item-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2196F3;
    text-align: right;
    flex-shrink: 0;
}

.cart-item-remove {
    background: transparent;
    border: none;
    color: #c41e3a;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.cart-item-remove:hover {
    background: #ffebee;
}

.cart-item-remove .material-icons {
    font-size: 24px;
}

.cart-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.cart-empty .material-icons {
    font-size: 100px;
    color: #e0e0e0;
    margin-bottom: 24px;
}

.cart-empty p {
    font-size: 1.2rem;
    margin-bottom: 24px;
    color: #666;
    font-weight: 500;
}

.primary-btn {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Outline style for 'Vorige' buttons across desktop and mobile */
.primary-btn.prev-btn {
    background: transparent;
    color: #1976D2;
    border: 2px solid #1976D2;
    box-shadow: none;
}

.primary-btn.prev-btn:hover {
    background: rgba(25, 118, 210, 0.06);
    transform: none;
    box-shadow: none;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
}

.cart-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cart-total {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.cart-total span:first-child {
    font-size: 15px;
    color: #666;
    font-weight: 500;
}

.total-price {
    font-size: 2rem;
    font-weight: 700;
    color: #2196F3;
}

.checkout-btn {
    padding: 14px 28px;
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.checkout-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
}

/* Checkout Modal */
.checkout-modal-content {
    max-width: 900px;
}

/* Checkout Form Styling */
#checkout-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-section {
    background: #f8f9fa;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #2196F3;
}

.section-icon {
    color: #2196F3;
    font-size: 24px;
}

.section-heading {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.input-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
}

.input-wrapper input,
.input-wrapper select,
.input-wrapper textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
    background: white;
}

.input-wrapper input:focus,
.input-wrapper select:focus,
.input-wrapper textarea:focus {
    outline: none;
    border-color: #2196F3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.input-wrapper label {
    position: absolute;
    left: 16px;
    top: 14px;
    font-size: 1rem;
    color: #666;
    pointer-events: none;
    transition: all 0.3s ease;
    background: white;
    padding: 0 4px;
}

.input-wrapper input:focus + label,
.input-wrapper input:not(:placeholder-shown) + label,
.input-wrapper select:focus + label,
.input-wrapper select:valid + label,
.input-wrapper textarea:focus + label,
.input-wrapper textarea:not(:placeholder-shown) + label {
    top: -10px;
    left: 12px;
    font-size: 0.85rem;
    color: #2196F3;
    font-weight: 600;
}

.input-wrapper select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

/* Radio Options */
.radio-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 12px 20px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 140px;
    position: relative;
}

.radio-option::before,
.radio-option::after {
    display: none !important;
    content: none !important;
}

.radio-option:hover {
    border-color: #2196F3;
    background: rgba(33, 150, 243, 0.05);
}

.radio-option input[type="radio"] {
    display: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    position: absolute !important;
}

.radio-option input[type="radio"]::before,
.radio-option input[type="radio"]::after {
    display: none !important;
    content: none !important;
}

.radio-custom {
    display: none !important;
}

/* Highlight whole option when selected */
.radio-option:has(input[type="radio"]:checked) {
    border-color: #2196F3;
    background: rgba(33, 150, 243, 0.06);
}

.radio-option input[type="radio"]:checked ~ .radio-label {
    color: #2196F3;
    font-weight: 600;
}

.radio-label {
    font-size: 1rem;
    color: #333;
    transition: all 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    position: relative;
}

.radio-label::before,
.radio-label::after {
    display: none !important;
    content: none !important;
}

/* Shipping Options */
.shipping-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.shipping-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.shipping-option:hover {
    border-color: #2196F3;
    background: rgba(33, 150, 243, 0.05);
}

.shipping-option input[type="radio"] {
    display: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.shipping-option input[type="radio"]:checked ~ .radio-label {
    color: #2196F3;
}

/* Same visual rule for selected shipping card */
.shipping-option:has(input[type="radio"]:checked) {
    border-color: #2196F3;
    background: rgba(33, 150, 243, 0.06);
}

.shipping-option .radio-label {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.shipping-name {
    font-weight: 500;
    color: #333;
}

.shipping-price {
    font-weight: 700;
    color: #2196F3;
}

/* Checkbox Label */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 12px 16px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.checkbox-label:hover {
    border-color: #2196F3;
    background: rgba(33, 150, 243, 0.05);
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* Submit Button */
.submit-btn {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
    border: none;
    padding: 14px 32px; /* match primary-btn size */
    border-radius: 12px; /* match primary-btn rounding */
    font-size: 1rem; /* match primary-btn font size */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
    margin-top: 0; /* align with vorige button */
    min-height: 54px; /* unify height */
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.submit-btn .material-icons {
    font-size: 24px;
}

.checkout-order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #e9ecef;
    background: white;
    border-radius: 8px;
    margin-bottom: 8px;
}

/* ============================================
   Globale Korting Banner
   ============================================ */
.discount-banner {
    max-width: 1200px;
    margin: 0 auto 14px;
    padding: 16px 22px;
    display: flex;
    align-items: flex-start;
    gap: 18px;
    border-radius: 18px;
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 10px 28px rgba(25,118,210,0.35);
    position: relative;
}
.discount-banner .material-icons {
    font-size: 34px;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}
.discount-banner-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: clamp(0.85rem, 0.8rem + 0.45vw, 1rem);
    line-height: 1.4;
}
.discount-banner-text strong {
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}
.discount-list {
    list-style: none;
    margin: 4px 0 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.discount-list li {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    column-gap: 14px;
    row-gap: 4px;
    background: linear-gradient(90deg, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0.10) 100%);
    padding: 8px 14px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    box-shadow: 0 3px 8px rgba(25,118,210,0.18), inset 0 0 0 1px rgba(255,255,255,0.22);
}
.discount-list li::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.35) 50%, rgba(255,255,255,0) 100%);
    opacity: 0.6;
}
.discount-list li:last-child::after { display: none; }
.discount-list li .discount-trigger { opacity: 0.9; font-weight: 600; }
.discount-list li .discount-value { font-weight: 700; color: #fff; white-space: nowrap; }
.discount-list li .discount-extra { font-weight: 500; opacity: 0.75; white-space: nowrap; }
@media (max-width: 640px) {
    .discount-list li { grid-template-columns: 1fr auto; }
    .discount-list li .discount-extra { display: none; }
}
@media (max-width: 768px) {
    .discount-banner { padding: 14px 16px; border-radius: 16px; gap: 14px; }
    .discount-banner .material-icons { font-size: 30px; }
    .discount-list li { font-size: 0.75rem; padding: 6px 8px; }
}
@media (max-width: 768px) {
    .discount-banner {
        padding: 12px 16px;
        border-radius: 14px;
        margin-bottom: 12px;
    }
    .discount-banner .material-icons { font-size: 28px; }
    .discount-banner-text { font-size: 0.85rem; }
}

.checkout-order-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.checkout-item-info {
    flex: 1;
}

.checkout-item-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.checkout-item-options {
    font-size: 14px;
    color: #666;
}

.checkout-item-price {
    font-weight: 600;
    color: #2196F3;
}

.checkout-totals {
    margin-top: 24px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px solid #e9ecef;
}

.total-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    font-size: 1rem;
    color: #555;
}

.total-row.grand-total {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2196F3;
    padding-top: 16px;
    border-top: 2px solid #dee2e6;
    margin-top: 12px;
}

/* Checkout navigation buttons uniform layout */
.checkout-nav .primary-btn,
.checkout-nav .submit-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 54px;
}

/* Direct discount price styling */
.old-price { font-size:0.75rem; color:#777; text-decoration:line-through; }
.new-price { color:#c41e3a; font-weight:700; }

/* ============================================
   DISCOUNT CODE STYLING
   ============================================ */

.discount-code-container {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.btn-apply-discount {
    background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%);
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.btn-apply-discount:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.btn-apply-discount:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-apply-discount .material-icons {
    font-size: 20px;
}

.discount-message {
    margin-top: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 500;
}

.discount-message.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.discount-message.error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

.discount-message.success::before {
    content: '✓';
    font-weight: bold;
    font-size: 1.2rem;
}

.discount-message.error::before {
    content: '✕';
    font-weight: bold;
    font-size: 1.2rem;
}

.discount-applied {
    margin-top: 12px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8f4 100%);
    border: 2px solid #4CAF50;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.discount-applied-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.discount-applied-content .material-icons {
    color: #4CAF50;
    font-size: 28px;
}

.discount-applied-code {
    font-weight: 700;
    color: #2e7d32;
    font-size: 1rem;
    font-family: 'Courier New', monospace;
}

.discount-applied-value {
    font-size: 0.9rem;
    color: #388E3C;
    font-weight: 500;
}

.discount-remove-btn {
    background: transparent;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.discount-remove-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #c62828;
}

.discount-remove-btn .material-icons {
    font-size: 22px;
}

.total-row#discount-row {
    color: #4CAF50 !important;
    font-weight: 600;
}

.total-row#discount-row span {
    color: #4CAF50 !important;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Order Help Modal: fix Tip paragraph wrapping on mobile and desktop */
#order-help-modal .important-banner p,
#order-help-modal .important-banner .notice-line {
    display: block;              /* override global flex on banner paragraphs */
    word-break: normal;          /* prevent breaking inside words */
    overflow-wrap: normal;       /* keep natural wrapping */
    white-space: normal;         /* allow normal wrapping */
    line-height: 1.5;
}

#order-help-modal .important-banner .notice-line a {
    white-space: nowrap;         /* keep short links together to avoid odd splits */
}

/* Order Help Floating Button */
.order-help-btn {
    position: fixed;
    bottom: calc(var(--fixed-btn-bottom) + var(--order-help-offset));
    left: var(--fixed-btn-side);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: white;
    color: #0d47a1;
    border: 2px solid #cfe8ff;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(13, 71, 161, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    z-index: 998;
}

.order-help-btn .material-icons {
    font-size: 22px;
    color: #1976D2;
}

.order-help-btn:hover,
.order-help-btn:focus {
    transform: translateY(-2px);
    border-color: #bcdaf8;
    box-shadow: 0 12px 28px rgba(33, 150, 243, 0.18);
}

.order-help-btn:active {
    transform: translateY(0);
}

.order-help-text {
    white-space: nowrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --fixed-btn-bottom: 20px;
        --fixed-btn-side: 20px;
        --order-help-offset: 6px;
        --help-circle-size: 56px; /* match visual weight with cart icon on mobile */
    }
    #products-section {
        padding-top: 20px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 0 15px 40px;
    }

    .filter-container {
        position: sticky;
        top: 8px;
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .filter-label {
        display: none;
    }

    .filter-group {
        width: 100%;
        justify-content: space-between;
    }

    .filter-group select {
        flex: 1;
        min-width: auto;
    }

    .product-detail {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .cart-icon-fixed {
        width: 60px;
        height: 60px;
    }

    .cart-icon-fixed .material-icons {
        font-size: 30px;
    }

    .cart-count {
        min-width: 20px;
        height: 20px;
        font-size: 11px;
    }

    .cart-item {
        flex-wrap: wrap;
    }

    .cart-item-image {
        width: 80px;
        height: 80px;
    }

    .cart-footer {
        flex-direction: column;
        gap: 15px;
    }

    .checkout-btn {
        width: 100%;
        justify-content: center;
    }

    .modal-content {
        max-height: 95vh;
    }

    .modal-body {
        padding: 20px;
    }

    /* Mobile: stack color and variant buttons full width */
    .color-options-buttons,
    .variant-options-buttons {
        flex-direction: column;
        gap: 10px;
    }
    .color-option-btn,
    .variant-option-btn {
        width: 100%;
        box-sizing: border-box;
        justify-content: flex-start;
    }

    /* Checkout: stack form fields under each other on mobile */
    .form-grid {
        grid-template-columns: 1fr;
    }

    /* Checkout: important banner stacks vertically on mobile */
    .important-banner {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Checkout: stack navigation buttons vertically and full width */
    .checkout-nav {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .checkout-nav .primary-btn,
    .checkout-nav .submit-btn {
        width: 100%;
        box-sizing: border-box;
    }

    .discount-code-container {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-apply-discount {
        width: 100%;
        justify-content: center;
    }

    .order-help-btn {
        padding: 10px 14px;
        font-size: 0.95rem;
        transition: padding 0.25s ease, border-radius 0.25s ease, width 0.25s ease, height 0.25s ease, gap 0.2s ease;
    }

    /* Animated collapse for mobile after intro */
    .order-help-btn .order-help-text {
        display: inline-block;
        max-width: 220px;
        overflow: hidden;
        transition: max-width 0.35s ease, opacity 0.35s ease, transform 0.35s ease, margin 0.25s ease;
        transform-origin: left center;
    }

    .order-help-btn.is-collapsed {
        padding: 0;
        width: var(--help-circle-size);
        height: var(--help-circle-size);
        border-radius: 50%;
        gap: 0;
        justify-content: center;
    }

    .order-help-btn.is-collapsed .order-help-text {
        max-width: 0;
        opacity: 0;
        margin: 0;
        transform: rotateY(90deg);
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .product-card {
        border-radius: 10px;
    }

    .product-image-container {
        aspect-ratio: 1 / 1; /* Keep square on mobile */
    }

    .product-info {
        padding: 12px;
    }

    .product-name {
        font-size: 0.95rem;
        margin-bottom: 6px;
        min-height: 2.6em;
    }

    .product-description {
        font-size: 12px;
        margin-bottom: 10px;
        min-height: 2.4em;
    }

    /* Mobile: ensure colors wrap properly */
    .product-colors-container {
        justify-content: center;
        gap: 5px;
        padding: 6px 0;
    }

    .product-color-circle {
        width: 24px;
        height: 24px;
    }

    .product-footer {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        margin-top: auto;
    }

    .product-price {
        font-size: 1.1rem;
        align-items: center;
        text-align: center;
    }

    .product-add-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
        width: 100%;
        justify-content: center;
    }

    .product-main-image {
        height: 300px;
    }

    .product-gallery-indicator {
        display: inline-flex;
        align-items: center;
    }

    .product-details-content h2 {
        font-size: 1.5rem;
    }
    .product-actions-row { justify-content: center; }

    .product-details-price {
        font-size: 2rem;
    }

    /* Smaller collapsed height on mobile is handled via JS by pixels */
}
