/* =========================================================
   WD MILITARIA — custom.css
   Kleurenschema-match met de oude v21-shop (zwart / khaki / crème)
   ========================================================= */

/* ---------------------------------------------------------
   FOOTER ALTIJD ONDERAAN (alle pagina's)
   --------------------------------------------------------- */
html, body {
    min-height: 100vh;
}

body {
    display: flex;
    flex-direction: column;
}

main.col-12 {
    flex: 1 0 auto;
}

/* ---------------------------------------------------------
   ALLEEN OP DE HOMEPAGE: extra ruimte tussen tekst en emailer
   i.p.v. tussen emailer en footer
   --------------------------------------------------------- */
.home main.col-12 {
    display: flex;
    flex-direction: column;
}

.home main.col-12 > div {
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 100%;
}

.home .CTA-block.emailer {
    margin-top: auto;
}

/* ---------------------------------------------------------
   DISCLAIMER-TEKST
   Pas de class "highlight" toe op de alinea in de content-editor
   --------------------------------------------------------- */
.highlight {
    color: #990000;
}

/* ---------------------------------------------------------
   MEDEDELINGENKADER MET STIPPELRAND
   Pas de classes "banner top" toe op de wrapper in de content-editor
   --------------------------------------------------------- */
.banner.top {
    background-color: #dddddd;
    border: 2px dashed #000000;
    padding: 15px 20px;
    text-align: center;
    font-weight: bold;
}

/* ---------------------------------------------------------
   HOMEPAGE: uitlijning tekst/afbeelding-blok naast elkaar
   --------------------------------------------------------- */
.home .col-6.block.text-block h2 {
    margin-bottom: 10px;
}

.home .col-6.block.text-block {
    margin-top: 82px;
}

.home .col-6.block.image-block {
    margin-top: 128px;
}

/* Knop-variant "outline-dark" — nu nergens gebruikt op WD Militaria,
   klaar voor als 'ie ooit wordt toegepast in een blok */
.home a.btn.btn-outline-dark {
    background-color: white;
    color: black;
}

.home a.btn.btn-outline-dark:hover,
.home a.btn.btn-outline-dark:active {
    color: black;
}

/* ---------------------------------------------------------
   SHOP-PAGINA
   --------------------------------------------------------- */
.shop .row.mx-auto.mb-2.item-sorting {
    margin-top: 50px !important;
}

/* ---------------------------------------------------------
   PRODUCTPAGINA
   --------------------------------------------------------- */
.product .row.mx-auto.mt-3.gap-4 {
    justify-content: center;
}

.modal-dialog.modal-dialog-centered.modal-lg img {
    max-height: fit-content;
}

img.w-100 {
    width: 60% !important;
}

/* Productfoto's: niet uitrekken, verhouding behouden
   (bevestigd nodig: foto van 400x600 werd platgedrukt in een
   vak van 500x400 door de standaard object-fit: fill) */
.product-swiper .swiper-slide img {
    object-fit: contain;
}

/* ---------------------------------------------------------
   NIEUWSBRIEF / EMAILER-BLOK
   Zwart met crème/khaki-accenten, geen achtergrondafbeelding
   --------------------------------------------------------- */
.CTA-block.emailer > div.w-100 {
    background-image: none !important;
    background-color: #000000;
    padding: 60px 20px;
    text-align: center;
}

.CTA-block.emailer > div.w-100 p {
    font-size: 2.2em;
    color: #ffffff;
    margin-bottom: 10px;
    font-weight: bold;
    letter-spacing: 1px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.CTA-block.emailer > div.w-100 h2 {
    font-size: 1.1em;
    line-height: 1.6;
    color: #CCCC99;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.CTA-block.emailer .cta-form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
    gap: 15px;
}

.CTA-block.emailer .cta-form .email-field input.form-control[type="email"] {
    flex-grow: 1;
    padding: 14px 20px;
    border: 1px solid #CCCC99;
    border-radius: 4px;
    background-color: #1a1a1a;
    color: #ffffff;
    font-size: 1.1em;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.CTA-block.emailer .cta-form .email-field input.form-control[type="email"]::placeholder {
    color: #888888;
}

.CTA-block.emailer .cta-form .email-field input.form-control[type="email"]:focus {
    border-color: #E9E9D1;
    box-shadow: 0 0 0 3px rgba(204, 204, 153, 0.3);
}

.CTA-block.emailer .cta-form .submit-button button.btn.btn-outline-light {
    background-color: #CCCC99;
    color: #000000;
    border: none;
    border-radius: 4px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    flex-shrink: 0;
}

.CTA-block.emailer .cta-form .submit-button button.btn.btn-outline-light:hover {
    background-color: #ffffff;
    color: #000000;
    transform: translateY(-2px);
}

.CTA-block.emailer .cta-form .cf-turnstile {
    margin: 10px auto;
}

@media (max-width: 768px) {
    .CTA-block.emailer > div.w-100 {
        padding: 35px 15px;
    }

    .CTA-block.emailer > div.w-100 p {
        font-size: 1.8em;
        line-height: 1.3;
    }

    .CTA-block.emailer > div.w-100 h2 {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .CTA-block.emailer .cta-form {
        flex-direction: column;
        gap: 15px;
        max-width: 300px;
        width: calc(100% - 30px);
        padding: 0 15px;
        box-sizing: border-box;
    }

    .CTA-block.emailer .cta-form .email-field,
    .CTA-block.emailer .cta-form .submit-button,
    .CTA-block.emailer .cta-form .cf-turnstile {
        width: 100%;
        max-width: none;
    }

    .CTA-block.emailer .cta-form .email-field input.form-control[type="email"],
    .CTA-block.emailer .cta-form .submit-button button.btn.btn-outline-light {
        width: 100%;
    }
}