/* ========================================================================== 
   WEBWINKEL STEFAN — CENTRALE VORMGEVING

   1. Thema en basis
   2. Juridische pagina's
   3. Footer
   4. Navigatie en mini-winkelwagen
   5. Bootstrap-aanpassingen
   6. Productdetail
   7. Homepage en hero
   8. Responsive vormgeving

   Dit bestand wordt na Bootstrap geladen.
   ========================================================================== */

/* 1. Thema en basis ------------------------------------------------------- */

:root {
    --shop-primary: #496b7d;
    --shop-primary-dark: #385867;
    --shop-primary-hover: #3d5a69;
    --shop-primary-light: #e8f0f3;
    --shop-primary-soft: #edf3f5;

    --shop-navbar: #182530;
    --shop-footer: #213441;

    --shop-text: #20272c;
    --shop-muted: #66737c;
    --shop-border: #dde3e7;
    --shop-background: #f6f8f9;
    --shop-white: #ffffff;

    --shop-danger: #a65359;
    --shop-success: #4f7a64;

    --shop-radius: 12px;
    --shop-radius-large: 16px;

    --shop-shadow:
        0 8px 25px rgba(28, 44, 54, 0.08);
}

html,
body {
    min-height: 100%;
}

body {
    color: var(--shop-text);
    background: var(--shop-background);
}

/* 2. Juridische pagina's ------------------------------------------------- */
.legal-page {
    color: #26343d;
}

.legal-page header {
    max-width: 760px;
}

.legal-badge {
    padding: .55rem .8rem;
    color: #456878;
    background: #e8f0f3;
    border-radius: 999px;
    font-size: .75rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.legal-page .card {
    border-radius: 16px;
}

.legal-section + .legal-section {
    margin-top: 2.25rem;
    padding-top: 2.25rem;
    border-top: 1px solid #e6ebee;
}

.legal-section h2 {
    margin-bottom: 1rem;
    color: #1d2a32;
    font-size: 1.25rem;
    font-weight: 700;
}

.legal-section h3 {
    margin: 1.5rem 0 .75rem;
    color: #344c59;
    font-size: 1rem;
    font-weight: 700;
}

.legal-section p,
.legal-section li {
    color: #5d6970;
    line-height: 1.75;
}

.legal-section a {
    color: #456f82;
}

.legal-section ul {
    padding-left: 1.25rem;
}

/* 3. Footer --------------------------------------------------------------- */
.shop-footer {
    color: #dce6eb;
    background:
        linear-gradient(
            135deg,
            #182530 0%,
            #213441 55%,
            #294553 100%
        );
    border-top: 1px solid rgba(255,255,255,.08);
}

.shop-footer-brand {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
}

.shop-footer-brand:hover {
    color: #fff;
}

.shop-footer-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: #fff;
    background: #53798b;
    border-radius: 10px;
    font-size: .85rem;
    letter-spacing: .02em;
}

.shop-footer-description {
    max-width: 340px;
    color: #afc0c9;
    line-height: 1.7;
}

.shop-footer-contact {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    color: #dce6eb;
    text-decoration: none;
}

.shop-footer-contact:hover {
    color: #fff;
}

.shop-footer-title {
    margin-bottom: 1rem;
    color: #fff;
    font-size: .92rem;
    font-weight: 700;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.shop-footer-links,
.shop-footer-service {
    margin: 0;
    padding: 0;
    list-style: none;
}

.shop-footer-links li + li {
    margin-top: .65rem;
}

.shop-footer-links a {
    color: #afc0c9;
    text-decoration: none;
    transition:
        color .18s ease,
        padding-left .18s ease;
}

.shop-footer-links a:hover {
    color: #fff;
    padding-left: 3px;
}

.shop-footer-service {
    display: grid;
    gap: 1rem;
}

.shop-footer-service li {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    color: #afc0c9;
    line-height: 1.4;
}

.shop-footer-service strong {
    display: block;
    margin-bottom: .15rem;
    color: #fff;
    font-size: .9rem;
}

.shop-footer-service a {
    color: #afc0c9;
    text-decoration: none;
}

.shop-footer-service a:hover {
    color: #fff;
}

.shop-footer-service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    color: #dce6eb;
    background: rgba(255,255,255,.08);
    border-radius: 9px;
}

.shop-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 0;
    color: #93a9b4;
    border-top: 1px solid rgba(255,255,255,.1);
    font-size: .88rem;
}

.shop-footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

/* 4. Navigatie en mini-winkelwagen -------------------------------------- */
.shop-navbar {
        background:
            linear-gradient(
                135deg,
                #17202a 0%,
                #212b36 100%
            );
    min-height: 68px;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 1030;
}

    .shop-navbar .navbar-brand {
        display: flex;
        align-items: center;
        gap: 11px;
        color: #fff;
        font-size: 1.15rem;
        letter-spacing: -0.02em;
    }

    .shop-navbar .navbar-brand:hover {
        color: #fff;
    }

    .shop-brand-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        color: #fff;
        background: var(--shop-primary);
        border-radius: 10px;
        font-size: 1rem;
        font-weight: 700;
        box-shadow: 0 5px 14px rgba(73, 107, 125, .22);
    }

    .shop-navbar .navbar-nav {
        gap: 4px;
    }

    .shop-navbar .nav-link {
        position: relative;
        padding: 10px 14px !important;
        color: rgba(255, 255, 255, 0.72);
        border-radius: 9px;
        font-weight: 500;
        transition:
            color 0.2s ease,
            background-color 0.2s ease;
    }

    .shop-navbar .nav-link:hover,
    .shop-navbar .nav-link:focus {
        color: #fff;
        background: rgba(255, 255, 255, 0.08);
    }

    .shop-navbar .nav-link.active {
        color: #fff;
        background: rgba(73, 107, 125, .32);
    }

    .shop-navbar .nav-link.active::after {
        position: absolute;
        right: 14px;
        bottom: 4px;
        left: 14px;
        height: 2px;
        content: "";
        background: #91aab5;
        border-radius: 10px;
    }

    .shop-navbar .dropdown-menu {
        min-width: 220px;
        padding: 8px;
        margin-top: 9px;
        border: 0;
        border-radius: 12px;
        box-shadow: 0 14px 36px rgba(0, 0, 0, 0.16);
    }

    .shop-navbar .dropdown-item {
        padding: 10px 12px;
        border-radius: 8px;
        color: #303842;
        font-weight: 500;
        transition:
            color 0.2s ease,
            background-color 0.2s ease;
    }

    .shop-navbar .dropdown-item:hover,
    .shop-navbar .dropdown-item:focus {
        color: var(--shop-primary);
        background: var(--shop-primary-soft);
    }

    .shop-navbar .dropdown-item.active {
        color: #fff;
        background: var(--shop-primary);
    }

    /*
     * Opmaak voor de inhoud die door tpl.NavMiniCart
     * binnen #navMiniCart wordt geplaatst.
     */
    .shop-navbar #navMiniCart {
        display: flex;
        align-items: center;
        margin-left: 8px;
    }

    .shop-navbar #navMiniCart > a,
    .shop-navbar #navMiniCart .nav-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 42px;
        padding: 9px 16px !important;
        color: #fff;
        background: var(--shop-primary);
        border-radius: 10px;
        font-weight: 600;
        text-decoration: none;
        box-shadow: 0 5px 14px rgba(73, 107, 125, .22);
        line-height: 1;
    }

    .shop-navbar #navMiniCart > a:hover,
    .shop-navbar #navMiniCart .nav-link:hover {
        color: #fff;
        background: var(--shop-primary-hover);
    }

    .shop-navbar #navMiniCart .nav-link::after {
        display: none;
    }

    .shop-navbar .navbar-toggler {
        padding: 7px 9px;
        border-color: rgba(255, 255, 255, 0.18);
        border-radius: 9px;
    }

    .shop-navbar .navbar-toggler:focus {
        box-shadow: 0 0 0 3px rgba(73, 107, 125, .35);
    }

/* 5. Bootstrap-aanpassingen ---------------------------------------------- */
.btn-primary {
    color: #fff;
    background-color: var(--shop-primary);
    border-color: var(--shop-primary);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    color: #fff !important;
    background-color: var(--shop-primary-hover) !important;
    border-color: var(--shop-primary-hover) !important;
}

/* Omrande knoppen */
.btn-outline-primary {
    color: var(--shop-primary);
    border-color: var(--shop-primary);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    color: #fff !important;
    background-color: var(--shop-primary) !important;
    border-color: var(--shop-primary) !important;
}

.btn-outline-primary:disabled {
    color: #9aa6ac;
    background-color: transparent;
    border-color: #c8d0d4;
}

/* Tekst, achtergronden en randen */
.text-primary {
    color: var(--shop-primary) !important;
}

.bg-primary {
    background-color: var(--shop-primary) !important;
}

.border-primary {
    border-color: var(--shop-primary) !important;
}

/* Links */
main a:not(.btn) {
    color: var(--shop-primary);
}

main a:not(.btn):hover {
    color: var(--shop-primary-hover);
}

/* Formuliervelden */
.form-control:focus,
.form-select:focus {
    border-color: #8da4af;
    box-shadow: 0 0 0 0.2rem rgba(73, 107, 125, 0.15);
}

/* Voorraadbadge */
.badge.bg-success {
    background-color: var(--shop-success) !important;
}

/* Uitverkocht en verwijderen */
.badge.bg-danger,
.btn-danger {
    background-color: var(--shop-danger) !important;
    border-color: var(--shop-danger) !important;
}

/* Tekst in de mini-winkelwagen exact verticaal centreren. */
.shop-navbar #navMiniCart span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    line-height: 1;
}

.shop-navbar #navMiniCart .ms3_total_count {
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* 6. Productdetail ------------------------------------------------------- */
.shop-product {
        max-width: 1100px;
        margin: 0 auto;
    }

    .shop-product-card {
        overflow: hidden;
        border: 0;
        border-radius: 14px;
        box-shadow: 0 0.35rem 1.5rem rgba(0, 0, 0, 0.08);
    }

    .shop-product-image {
        min-height: 420px;
        padding: 2rem;
        background: #f8f9fa;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .shop-product-image img {
        display: block;
        width: 100%;
        max-width: 440px;
        max-height: 420px;
        object-fit: contain;
    }

    .shop-product-price {
        color: var(--bs-primary);
        font-size: 2rem;
        font-weight: 700;
    }

    .shop-product-quantity {
        width: 90px;
    }

/* 7. Homepage en hero ---------------------------------------------------- */

.shop-home {
    --home-radius: 22px;
}

.shop-home-hero-section {
    padding-top: 1.75rem;
    padding-bottom: 1.5rem;
}

.shop-home-hero {
    position: relative;
    overflow: hidden;
    min-height: 420px;
    color: #fff;
    border-radius: var(--home-radius);
    box-shadow: 0 18px 45px rgba(23, 36, 46, .16);
}

.shop-home-hero-content {
    display: flex;
    justify-content: center;
    flex-direction: column;
    min-height: 420px;
    padding: clamp(2.25rem, 5vw, 4.5rem);
}

.shop-home-label,
.shop-home-eyebrow {
    display: inline-block;
    color: #547688;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.shop-home-label {
    align-self: flex-start;
    margin-bottom: 1.2rem;
    padding: .45rem .75rem;
    color: rgba(255,255,255,.88);
    background: rgba(255,255,255,.09);
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 999px;
}

.shop-home-hero h1 {
    max-width: 650px;
    margin-bottom: 1rem;
    font-size: clamp(2.25rem, 4.5vw, 3.65rem);
    font-weight: 750;
    line-height: 1.02;
    letter-spacing: -.045em;
}

.shop-home-hero-content > p {
    max-width: 580px;
    margin-bottom: 1.75rem;
    color: rgba(255,255,255,.72);
    font-size: 1.08rem;
    line-height: 1.65;
}

.shop-home-section {
    padding: 3.5rem 0;
}

.shop-home-section-soft {
    background: #f2f5f6;
}

.shop-home-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 1.75rem;
}

.shop-home-heading h2 {
    margin: .3rem 0 0;
    color: var(--shop-text);
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    font-weight: 750;
    letter-spacing: -.035em;
}

.shop-home-heading > p {
    max-width: 470px;
    margin: 0;
    color: var(--shop-muted);
    line-height: 1.6;
}

.shop-category-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
}

.shop-home-category {
    display: flex;
    min-width: 0;
    overflow: hidden;
    flex-direction: column;
    color: var(--shop-text);
    background: #fff;
    border: 1px solid rgba(34, 55, 66, .07);
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(28, 44, 54, .06);
    text-decoration: none;
    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.shop-home-category:hover {
    color: var(--shop-text);
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(28, 44, 54, .11);
}

.shop-home-category-media {
    position: relative;
    height: 125px;
    overflow: hidden;
    background: #edf2f4;
}

.shop-category-fallback {
    position: absolute;
    top: 50%;
    left: 50%;
    color: rgba(65, 98, 113, .28);
    font-size: 3.2rem;
    font-weight: 800;
    transform: translate(-50%, -50%);
}

.shop-home-hero-background {
    background-image:
        linear-gradient(
            90deg,
            rgba(15, 29, 39, .96) 0%,
            rgba(18, 35, 47, .88) 35%,
            rgba(18, 35, 47, .52) 60%,
            rgba(18, 35, 47, .10) 100%
        ),
        url("../images/shop/hero-watersport-techniek-kunst.png");

    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.shop-home-hero-background .shop-home-hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
}

.category-boat {
    background: linear-gradient(135deg, #e6f0f3, #d7e6eb);
}

.category-electronics {
    background: linear-gradient(135deg, #edf0f5, #dfe6ec);
}

.category-apps {
    background: linear-gradient(135deg, #e8eef4, #dce7ee);
}

.category-art {
    background: linear-gradient(135deg, #f2ede7, #e7ded4);
}

.category-used {
    background: linear-gradient(135deg, #eceae6, #dedbd4);
}

.shop-category-image {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.shop-home-category:hover .shop-category-image {
    transform: scale(1.04);
}

.shop-category-image-placeholder {
    width: 100%;
    height: 100%;
}

.shop-home-category-body {
    display: flex;
    flex: 1;
    align-items: flex-start;
    flex-direction: column;
    padding: 1rem;
}

.shop-home-category-body h3 {
    margin-bottom: .35rem;
    font-size: 1rem;
    font-weight: 700;
}

.shop-home-category-body p {
    margin-bottom: .8rem;
    color: var(--shop-muted);
    font-size: .82rem;
    line-height: 1.45;
}

.shop-home-category-body > span {
    margin-top: auto;
    color: var(--shop-primary);
    font-size: .82rem;
    font-weight: 700;
}

.shop-home-benefits {
    padding: 1.75rem 0;
    background: #fff;
    border-top: 1px solid var(--shop-border);
}

.shop-home-benefit-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.shop-home-benefit {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .8rem 1rem;
}

.shop-home-benefit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    color: #fff;
    background: var(--shop-primary);
    border-radius: 11px;
    font-weight: 700;
}

.shop-home-benefit strong,
.shop-home-benefit small {
    display: block;
}

.shop-home-benefit strong {
    margin-bottom: .15rem;
    color: var(--shop-text);
    font-size: .92rem;
}

.shop-home-benefit small {
    color: var(--shop-muted);
    font-size: .8rem;
}

/* 8. Responsive vormgeving ---------------------------------------------- */

/* Kleinere desktops en tablets. */
@media (max-width: 1199.98px) {
    .shop-category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Tablets en ingeklapte Bootstrap-navigatie. */
@media (max-width: 991.98px) {
    .shop-navbar {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .shop-navbar .navbar-collapse {
        padding-top: 14px;
    }

    .shop-navbar .navbar-nav {
        align-items: stretch !important;
        gap: 5px;
    }

    .shop-navbar .nav-link {
        padding: 11px 12px !important;
    }

    .shop-navbar #navMiniCart {
        margin-top: 6px;
        margin-left: 0;
    }

    .shop-navbar #navMiniCart > a,
    .shop-navbar #navMiniCart .nav-link {
        width: 100%;
    }

    .shop-navbar .dropdown-menu {
        margin-top: 4px;
        box-shadow: none;
    }

    .shop-home-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: .75rem;
    }
}

/* iPhone en andere telefoons in staande stand. */
@media (max-width: 767.98px) {
    .shop-navbar .navbar-brand {
        font-size: 1rem;
    }

    .shop-brand-icon {
        width: 36px;
        height: 36px;
    }

    .shop-home-hero-section {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .shop-home-hero,
    .shop-home-hero-background {
        min-height: 460px;
        border-radius: 17px;
    }

    .shop-home-hero-background {
        background-image:
            linear-gradient(
                180deg,
                rgba(15, 29, 39, .94) 0%,
                rgba(15, 29, 39, .82) 58%,
                rgba(15, 29, 39, .52) 100%
            ),
            url("../images/shop/hero-watersport-techniek-kunst.png");
        background-position: 68% center;
    }

    .shop-home-hero-background .shop-home-hero-content {
        justify-content: flex-start;
        min-height: 460px;
        padding: 2rem 1.4rem;
    }

    .shop-home-hero h1 {
        font-size: clamp(2rem, 9vw, 2.55rem);
        line-height: 1.06;
    }

    .shop-home-hero-content > p {
        font-size: 1rem;
        line-height: 1.5;
    }

    .shop-home-hero .btn-lg {
        padding: .65rem 1rem;
        font-size: .95rem;
    }

    .shop-home-section {
        padding: 2.75rem 0;
    }

    .shop-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .shop-home-benefit-grid {
        grid-template-columns: 1fr;
    }

    .shop-home-benefit {
        padding: .55rem 0;
    }

    .shop-product-image {
        min-height: 280px;
        padding: 1.25rem;
    }

    .shop-footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Kleine telefoons. */
@media (max-width: 479.98px) {
    .shop-category-grid {
        grid-template-columns: 1fr;
    }

    .shop-home-category {
        display: grid;
        grid-template-columns: 115px minmax(0, 1fr);
    }

    .shop-home-category-media {
        height: 100%;
        min-height: 130px;
    }
}

/* iPhone en andere telefoons in liggende stand.
   De beperkte hoogte is essentieel: alleen schermbreedte is hier onvoldoende. */
@media (max-width: 1024px) and (max-height: 600px) and (orientation: landscape) {
    /* Bootstrap beperkt .container hier normaal tot 720px. Op een liggende
       telefoon veroorzaakt dat onnodig brede witmarges. */
    .container {
        width: calc(100% - 2rem);
        max-width: none;
    }

    .shop-navbar {
        min-height: 58px;
        padding-top: 6px;
        padding-bottom: 6px;
    }

    .shop-navbar .navbar-brand {
        font-size: 1rem;
    }

    .shop-brand-icon {
        width: 34px;
        height: 34px;
        border-radius: 9px;
        font-size: .9rem;
    }

    .shop-navbar .navbar-toggler {
        padding: 5px 7px;
    }

    .shop-home-hero-section {
        padding-top: .85rem;
        padding-bottom: .85rem;
    }

    .shop-home-hero,
    .shop-home-hero-background {
        min-height: 300px;
        border-radius: 18px;
    }

    .shop-home-hero-background {
        background-image:
            linear-gradient(
                90deg,
                rgba(15, 29, 39, .96) 0%,
                rgba(15, 29, 39, .84) 48%,
                rgba(15, 29, 39, .30) 100%
            ),
            url("../images/shop/hero-watersport-techniek-kunst.png");
        background-position: 65% center;
    }

    .shop-home-hero-background .shop-home-hero-content {
        justify-content: center;
        width: min(72%, 570px);
        min-height: 300px;
        padding: 1.5rem 2rem;
    }

    .shop-home-hero h1 {
        max-width: 530px;
        margin-bottom: .65rem;
        font-size: clamp(1.8rem, 4.6vw, 2.65rem);
        line-height: 1.04;
    }

    .shop-home-hero-content > p {
        margin-bottom: 1rem;
        font-size: .9rem;
        line-height: 1.4;
    }

    .shop-home-label {
        margin-bottom: .75rem;
        padding: .35rem .65rem;
        font-size: .68rem;
    }

    .shop-home-hero .btn-lg {
        padding: .5rem .85rem;
        font-size: .85rem;
    }

    .shop-home-section {
        padding: 2rem 0;
    }
}

/* Animaties uitschakelen als de bezoeker dit in het apparaat heeft gekozen. */
@media (prefers-reduced-motion: reduce) {
    .shop-home-category,
    .shop-category-image,
    .shop-footer-links a {
        transition: none;
    }
}
