/* ===============================================
   VVS ROTSELAAR – WEBSHOP (LEDEN) STYLES  v1
   Structuur volgt hetzelfde patroon als werklijst.html:
   auth-guard → loading → lege staat → inhoud
   =============================================== */

/* ── Hero ── */
.shop-hero {
    background: linear-gradient(120deg, #0B1D3A 0%, #003380 55%, #0047AB 100%);
    color: var(--white);
    padding: 2.75rem 1.25rem 2.25rem;
    text-align: center;
}

.shop-hero .event-tag {
    display: inline-block;
    padding: 0.4rem 1.1rem;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 999px;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    letter-spacing: 0.06em;
    font-size: 0.85rem;
    margin-bottom: 0.9rem;
}

.shop-hero h2 {
    font-size: 2.4rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.shop-hero p {
    color: rgba(255,255,255,0.78);
    font-size: 1rem;
    max-width: 560px;
    margin: 0 auto;
}

/* ── Page shell ── */
.shop-page {
    min-height: 60vh;
    padding: 2rem 1.1rem 5rem;
}

.shop-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ── Auth guard / empty states (zelfde look als werklijst) ── */
.auth-guard {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.6rem;
    max-width: 420px;
    margin: 3rem auto;
    padding: 2.5rem 2rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 28px var(--shadow);
    color: var(--text-gray);
}
.auth-guard svg { color: var(--primary-blue); margin-bottom: 0.4rem; }
.auth-guard h3 { color: var(--text-dark); font-size: 1.4rem; }
.auth-guard a {
    margin-top: 0.75rem;
    display: inline-block;
    padding: 0.7rem 1.6rem;
    background: var(--primary-blue);
    color: var(--white) !important;
    border-radius: var(--radius);
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    letter-spacing: 0.04em;
    transition: background 0.2s;
}
.auth-guard a:hover { background: var(--dark-blue); }

.shop-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
    padding: 4rem 0;
    color: var(--text-gray);
}
.shop-spinner {
    width: 34px; height: 34px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-blue);
    border-radius: 50%;
    animation: shop-spin 0.8s linear infinite;
}
@keyframes shop-spin { to { transform: rotate(360deg); } }

/* ── Shop closed / empty notice ── */
.shop-closed-notice,
.shop-empty-notice {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    max-width: 460px;
    margin: 2.5rem auto;
    padding: 2.25rem 2rem;
    background: var(--card-bg);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-lg);
    color: var(--text-gray);
}
.shop-closed-notice svg { color: var(--warning); }
.shop-closed-notice h3, .shop-empty-notice h3 { color: var(--text-dark); font-size: 1.25rem; }

/* ── Intro + afhaalinfo ── */
.shop-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 1.75rem;
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.6;
}

.shop-pickup-banner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    padding: 0.9rem 1.25rem;
    background: var(--off-white);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-blue);
    border-radius: var(--radius);
    font-size: 0.92rem;
    color: var(--text-dark);
}
.shop-pickup-banner svg { flex-shrink: 0; color: var(--accent-blue); }

/* ── Product grid ── */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
}

.shop-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.shop-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 34px var(--shadow-lg);
}

.shop-card-image {
    width: 100%;
    aspect-ratio: 3 / 4;
    background: var(--off-white);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    font-size: 0.85rem;
    position: relative;
    overflow: hidden;
}

.shop-card-image-count {
    position: absolute;
    bottom: 10px; right: 10px;
    background: rgba(8,18,38,0.72);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    display: flex; align-items: center; gap: 0.25rem;
}

.shop-card-category {
    position: absolute;
    top: 10px; left: 10px;
    background: rgba(11,29,58,0.78);
    color: var(--white);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
}

.shop-card-body {
    padding: 1.1rem 1.15rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1;
}

.shop-card-body h3 {
    font-size: 1.15rem;
    color: var(--text-dark);
    letter-spacing: 0.01em;
}

.shop-card-price {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-top: 0.15rem;
}

.shop-card-cta {
    margin-top: 0.5rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--accent-blue);
    letter-spacing: 0.03em;
    display: flex; align-items: center; gap: 0.3rem;
    opacity: 0.85;
    transition: opacity 0.2s, gap 0.2s;
}
.shop-card:hover .shop-card-cta { opacity: 1; gap: 0.5rem; }

/* ── Floating cart button ── */
.cart-fab {
    position: fixed;
    bottom: 1.75rem; right: 1.75rem;
    width: 60px; height: 60px;
    border-radius: 50%;
    background: var(--primary-blue);
    color: var(--white);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 24px rgba(0,71,171,0.45);
    z-index: 5040;
    transition: transform 0.2s ease;
}
.cart-fab:hover { transform: scale(1.06); }
.cart-fab-badge {
    position: absolute;
    top: -4px; right: -4px;
    background: var(--danger);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 800;
    min-width: 20px; height: 20px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--white);
    padding: 0 2px;
}

/* ── Cart drawer ── */
.cart-backdrop {
    position: fixed; inset: 0;
    background: rgba(8,18,38,0.55);
    z-index: 5050;
    display: none;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.cart-backdrop.active { display: block; opacity: 1; }

.cart-drawer {
    position: fixed;
    top: 0; right: 0;
    height: 100%;
    width: 100%;
    max-width: 400px;
    background: var(--card-bg);
    z-index: 5060;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
    box-shadow: -12px 0 32px rgba(0,0,0,0.25);
}
.cart-drawer.active { transform: translateX(0); }

.cart-drawer-header {
    padding: 1.25rem 1.4rem;
    display: flex; align-items: center; justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
}
.cart-drawer-header h3 { font-size: 1.4rem; color: var(--text-dark); }
.cart-close-btn {
    background: none; color: var(--text-gray); font-size: 1.4rem; line-height: 1;
    padding: 0.2rem 0.4rem;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.cart-empty {
    text-align: center;
    color: var(--text-gray);
    padding: 2.5rem 1rem;
    font-size: 0.92rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.6rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid var(--border-color);
}
.cart-item-info strong { display: block; color: var(--text-dark); font-size: 0.95rem; }
.cart-item-info span.cart-item-size { display: block; color: var(--text-gray); font-size: 0.8rem; margin-top: 0.15rem; }
.cart-item-price { font-weight: 700; color: var(--primary-blue); white-space: nowrap; }
.cart-item-remove {
    background: none; color: var(--danger); font-size: 0.78rem;
    text-decoration: underline; padding: 0; margin-top: 0.4rem;
}

.cart-item-qty {
    display: flex; align-items: center; gap: 0.4rem;
    margin-top: 0.5rem;
}
.cart-qty-btn {
    width: 26px; height: 26px;
    border: 1.5px solid var(--border-color);
    border-radius: 6px;
    background: var(--white);
    color: var(--text-dark);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.15s, border-color 0.15s;
}
.cart-qty-btn:hover { background: var(--off-white); border-color: var(--primary-blue); }
.cart-qty-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.cart-qty-value {
    min-width: 24px;
    text-align: center;
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--text-dark);
}
html.dark .cart-qty-btn { background: #1e2130; }

.cart-drawer-footer {
    padding: 1.1rem 1.4rem 1.4rem;
    border-top: 1px solid var(--border-color);
}
.cart-total-row {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 0.9rem;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.2rem; font-weight: 700; color: var(--text-dark);
}
.cart-checkout-btn {
    width: 100%;
    background: var(--primary-blue);
    color: var(--white);
    padding: 0.9rem;
    border-radius: var(--radius);
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    letter-spacing: 0.04em;
    font-size: 1.05rem;
    text-transform: uppercase;
    transition: background 0.2s;
}
.cart-checkout-btn:hover { background: var(--dark-blue); }
.cart-checkout-btn:disabled { background: var(--text-gray); cursor: not-allowed; }

.cart-note {
    margin-top: 0.7rem;
    font-size: 0.78rem;
    color: var(--text-gray);
    text-align: center;
}

/* ── Bevestigingsmodal ── */
.shop-modal-backdrop {
    position: fixed; inset: 0;
    background: rgba(8,18,38,0.6);
    z-index: 5070;
    display: none;
    align-items: center; justify-content: center;
    padding: 1.25rem;
}
.shop-modal-backdrop.active { display: flex; }

.shop-modal {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    max-width: 420px; width: 100%;
    padding: 2rem 1.75rem;
    text-align: center;
    animation: shopModalIn 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes shopModalIn {
    from { opacity: 0; transform: translateY(-14px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.shop-modal .modal-icon { font-size: 2.4rem; margin-bottom: 0.75rem; }
.shop-modal h3 { color: var(--text-dark); font-size: 1.5rem; margin-bottom: 0.6rem; }
.shop-modal p { color: var(--text-gray); font-size: 0.92rem; line-height: 1.55; margin-bottom: 1.4rem; }
.shop-modal-close-btn {
    background: var(--primary-blue);
    color: var(--white);
    padding: 0.7rem 1.8rem;
    border-radius: var(--radius);
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700; letter-spacing: 0.03em;
}
.shop-modal-close-btn:hover { background: var(--dark-blue); }

/* ── Toast ── */
.shop-toast {
    position: fixed;
    bottom: 1.75rem; left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: var(--text-dark);
    color: var(--white);
    padding: 0.75rem 1.3rem;
    border-radius: 9px;
    font-size: 0.88rem;
    font-weight: 600;
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    pointer-events: none;
    max-width: 320px;
    text-align: center;
}
.shop-toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.shop-toast.error   { background: var(--danger); }
.shop-toast.success { background: var(--success); }

/* ── Responsive ── */
@media (max-width: 768px) {
    .shop-hero h2 { font-size: 1.8rem; }
    .shop-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; }
    .shop-card-body h3 { font-size: 1.05rem; }
    .cart-drawer { max-width: 100%; }
}

/* ── Dark mode ── */
html.dark .shop-card-image { background-color: #1e2130; }

/* ═══════════════════════════════════════════════
   PRODUCTDETAIL POPUP (met foto-slider)
   ═══════════════════════════════════════════════ */
.product-modal-backdrop {
    position: fixed; inset: 0;
    background: rgba(8,18,38,0.68);
    z-index: 5045;
    display: none;
    align-items: center; justify-content: center;
    padding: 1.25rem;
    overflow-y: auto;
}
.product-modal-backdrop.active { display: flex; }

.product-modal {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    max-width: 920px;
    width: 100%;
    max-height: calc(100vh - 2.5rem);
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    position: relative;
    box-shadow: 0 30px 70px rgba(0,0,0,0.4);
    animation: productModalIn 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes productModalIn {
    from { opacity: 0; transform: translateY(-16px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.product-modal-close {
    position: absolute;
    top: 12px; right: 12px;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(8,18,38,0.55);
    color: var(--white);
    font-size: 1.15rem;
    display: flex; align-items: center; justify-content: center;
    z-index: 5;
    transition: background 0.2s;
}
.product-modal-close:hover { background: rgba(8,18,38,0.85); }

/* ── Gallerij (linkerkant) ── */
.product-modal-gallery {
    position: relative;
    background: var(--off-white);
    display: flex;
    flex-direction: column;
    min-height: 320px;
}

.product-modal-main-image {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    touch-action: pan-y;
}
.product-modal-main-image img {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: contain;
    -webkit-user-drag: none;
    user-select: none;
}
.product-modal-main-image.no-image {
    color: var(--text-gray);
    font-size: 3rem;
}
.gallery-no-image-icon {
    font-size: 3rem;
    color: var(--text-gray);
    align-items: center;
    justify-content: center;
    width: 100%; height: 100%;
}

.gallery-nav-btn {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    color: var(--text-dark);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
}
.gallery-nav-btn:hover { background: var(--white); }
.gallery-nav-btn.prev { left: 12px; }
.gallery-nav-btn.next { right: 12px; }

.gallery-dots {
    position: absolute;
    bottom: 12px; left: 50%;
    transform: translateX(-50%);
    display: flex; gap: 6px;
}
.gallery-dots .dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: rgba(11,29,58,0.35);
    transition: all 0.2s;
}
.gallery-dots .dot.active { background: var(--primary-blue); width: 18px; border-radius: 3px; }

.gallery-thumbs {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem;
    overflow-x: auto;
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
}
.gallery-thumb {
    flex: 0 0 auto;
    width: 54px; height: 54px;
    border-radius: 6px;
    background: var(--off-white) center/cover no-repeat;
    border: 2px solid transparent;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.15s;
}
.gallery-thumb:hover { opacity: 1; }
.gallery-thumb.active { border-color: var(--primary-blue); opacity: 1; }

/* ── Info (rechterkant) ── */
.product-modal-info {
    padding: 1.75rem 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}
.product-modal-category {
    display: inline-block;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent-blue);
    margin-bottom: 0.4rem;
}
.product-modal-info h2 {
    font-size: 1.7rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    line-height: 1.15;
    padding-right: 2rem;
}
.product-modal-price {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}
.product-modal-desc {
    font-size: 0.94rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    white-space: pre-line;
}

.product-modal-option-group { margin-bottom: 1.1rem; }
.product-modal-option-group label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.5rem;
}
.size-pill-group { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.size-pill {
    padding: 0.5rem 1rem;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--text-dark);
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.15s;
}
.size-pill:hover { border-color: var(--primary-blue); }
.size-pill.selected {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: var(--white);
}

.qty-stepper {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius);
    padding: 0.4rem 0.9rem;
}
.qty-stepper-btn {
    width: 26px; height: 26px;
    border-radius: 6px;
    background: var(--off-white);
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.qty-stepper-btn:hover { background: var(--border-color); }
.qty-stepper-value { min-width: 20px; text-align: center; font-weight: 700; color: var(--text-dark); }

.product-modal-footer {
    margin-top: auto;
    padding-top: 1rem;
    display: flex;
    gap: 0.6rem;
    align-items: center;
}
.product-modal-add-btn {
    flex: 1;
    background: var(--primary-blue);
    color: var(--white);
    padding: 0.85rem 1rem;
    border-radius: var(--radius);
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    letter-spacing: 0.03em;
    font-size: 1rem;
    transition: background 0.2s;
}
.product-modal-add-btn:hover { background: var(--dark-blue); }
.product-modal-add-btn:disabled { background: var(--text-gray); cursor: not-allowed; }

.product-modal-share-btn {
    width: 44px; height: 44px;
    border-radius: var(--radius);
    background: var(--off-white);
    color: var(--text-dark);
    border: 1.5px solid var(--border-color);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s;
}
.product-modal-share-btn:hover { background: var(--border-color); }

.product-modal-size-hint {
    font-size: 0.8rem; color: var(--danger); margin-top: 0.4rem; display: none;
}
.product-modal-size-hint.show { display: block; }

@media (max-width: 720px) {
    .product-modal {
        grid-template-columns: 1fr;
        max-height: calc(100vh - 1.5rem);
        overflow-y: auto;
    }
    .product-modal-main-image { aspect-ratio: 1 / 1; }
    .product-modal-info { padding: 1.4rem 1.25rem 1.25rem; }
    .product-modal-info h2 { font-size: 1.4rem; }
}

html.dark .product-modal-gallery,
html.dark .gallery-thumb { background-color: #1e2130; }
html.dark .gallery-nav-btn { background: rgba(30,33,48,0.9); color: #fff; }
html.dark .size-pill { background: #1e2130; }
html.dark .qty-stepper-btn { background: #1e2130; }
html.dark .shop-pickup-banner { background: var(--off-white); }