/*
Theme Name: Edutekst thema
Author URI: https://www.pol.works
Description: Een thema in opdracht van Fros van der Maden gemaakt
Author: LAPPS
Version: 1.0.0
License: GNU/GPL Version 2 or later. http://www.gnu.org/licenses/gpl.html
*/
@import url(fonts.css) all;
@import url('https://fonts.googleapis.com/css?family=Kalam');

@charset "UTF-8";
/* --------------------- NEW CSS ---------------------- */


html {
    height: 100%;
}


/* -- Fonts */
body {
    background: #fff;
    text-align: left;
    font-family: DIN, sans-serif;
    font-size: 16px;
    margin: 0;
    color: var(--ink);
}

table {
    overflow-y: scroll;
    display: block;
}

a {
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

a, a:hover {
    color: var(--brand);
}


code {
    color: inherit;
}

/* ------- Menu ----------- */

/* hide the checkbox and the label */
input#responsive-nav,
label.responsive-nav-label {
    display: none;
}

/* Declarations for the responsive menu */


header {
    height: 100vh;
    left: 0;
    top: 0;
    position: fixed;
    background: #fff;
    z-index: 3;
    float: left;
}

.menu ul {
    margin: 0;
    padding: 0 7px;
    list-style: none;
}

.menu ul li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.menu li {
    margin: 0;
    padding: 0px 0px 0px 8px;
    list-style: none;
}

.menu .flex-active {
    text-decoration: underline
}

.indicator {
    width: 10px;
    height: 10px;
    background: #eee;
    margin-left: -20px;
    float: left;
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    -ms-border-radius: 20px;
    -o-border-radius: 20px;
    border-radius: 20px;
    -webkit-transition: all 0.05s;
    -moz-transition: all 0.05s;
    -o-transition: all 0.05s;
    transition: all 0.05s;
    margin-top: 5px;
}

.active_menu_item .indicator, .parents:hover .indicator {
    background: #97e9ff;
}

.parents h4:hover {
    text-decoration: none;
}

.trigger-button:hover .indicator {
    background: #999;
}

.trigger-button.active .indicator, .menu.current .trigger-button .indicator {
    background: #97e9ff
}

.menu.inactive .trigger-button .indicator {
    background: #eee
}


.menu h4 {
    padding: 0 6px;
    margin: 2px;
    cursor: pointer;
}

/* Small, muted footer note at the bottom of the sidebar (pinned there by the
   sticky-sidebar rule's margin-top:auto; just flows after the menu on mobile). */
.copyright {
    font-size: 0.66rem;
    line-height: 1.35;
    color: var(--muted, #6d7a9e);
    opacity: 0.55;
    padding: 0.75rem 1rem;
}

.copyright a {
    color: inherit;
}

/* --------- Home -------- */
.intro {
    width: 100%;
    float: left;
}

.category {
    /* width: 100%; */
    /* float: left; */
    /* padding: 0; */
    background: #eee;
    position: relative;
    display: inline-block;
    /* max-width: 450px; */
    /* vertical-align: top; */
    background-size: cover !important;
    background-position: center center !important;
}

.category:before {
    content: '';
    display: block;
}

.category h2 {
    text-align: center;
    font-weight: normal;
    background: white;
    padding: 1em;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    font-size: 1.3em;
    color: initial;
}

.ratio1-1:before {
    padding-top: 100%;
}


/* ---------- Books ---------*/


#carousel .title {
}

#carousel li h1 {
    position: relative;
}

#carousel li h1 p {
    float: right;
    font-size: 0.6em;
    color: red;
    font-weight: normal;
    text-transform: uppercase;
    margin: -3px 0 0 3px;
}

#carousel .description ul {
    margin-left: -1.3em;
}

#carousel blockquote {
    text-align: justify;
    font-size: 1.2em;
    margin-bottom: 0;
    margin-left: 0;
}

#carousel .recension p {
    font-style: italic;
    margin-top: 0.5em;
    margin-bottom: 1.5em;
}

.versions {
    width: 100%;
}

.details {
    width: 100%;
}

#carousel .versions .version:nth-child(even),
.paper:nth-child(even),
.papers_overview section:nth-child(even) {
    background: #dff3f8;
}

#carousel .versions .version:nth-child(odd), .paper:nth-child(odd), .parents section:nth-child(odd),
.papers_overview section:nth-child(odd) {
    background: #e7f6fa;
}

.paper .info {
    background: inherit;
}

.version th {
    font-weight: normal !important;
}

.version h4 {
    margin-top: 1em !important;
}

.materiaal ul {
    margin: 0;
    padding: 0;
    padding-left: 1.2em;
}

.version h4 {
    margin: 0.5em 0;
}

.version h3 {
}

.version img {
    max-width: 250px !important;
}

#carousel th:nth-child(2) {
    font-weight: normal;
}

#carousel .flex-active-slide {
    opacity: 1 !important;
    min-height: 100vh;
}


#carousel .slides li:hover {
    opacity: 0.7;
}

#carousel .description li:hover {
    opacity: 1 !important;
}

#carousel .flex-viewport {
    /* overflow:visible !important; */
    width: 100%;
}

#carousel .flex-container a:active,
#carousel a:active,
#carousel .flex-container a:focus,
#carousel a:focus {
    outline: none;
}

#carousel .slides,
#carousel .flex-control-nav,
#carousel .flex-direction-nav {
    margin: 0;
    padding: 0;
    list-style: none;
}

#carousel .flex-control-nav {
    display: none;
}

#carousel a img {
    outline: none;
    border: none;
}

#carousel {
    margin: 0;
    padding: 0;
}

.box {
    -webkit-box-flex: 1;
    -moz-box-flex: 1;
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
    width: 50%;
    margin: auto;
}

button {
    background-color: #f3f3f3;
    border-radius: 5px 5px 5px 5px;
    -webkit-border-radius: 5px 5px 5px 5px;
    -moz-border-radius: 5px 5px 5px 5px;
    text-align: center;
    margin: 0.4em 0;
    cursor: pointer;
    padding: 0.4em;
    border: none;
    font-family: inherit;
    font-size: 1.1em;
    display: block;
}

#carousel button a:hover {
    text-decoration: none;
}

button.bestellen, button#Inputfield_submit {
    margin-top: 2em;
    padding: 0.5em;
    font-size: 1.2em;
    background-color: #97e9ff;
}


button.bestellen:hover, button#Inputfield_submit:hover {
    opacity: 0.8;
}

#carousel .slides > li {
    display: none;
    -webkit-backface-visibility: hidden;
    opacity: 0;
}

.book_cover {
    -webkit-box-shadow: 7px 6px 27px 3px rgba(221, 221, 221, 1);
    -moz-box-shadow: 7px 6px 27px 3px rgba(221, 221, 221, 1);
    box-shadow: 7px 6px 27px 3px rgba(221, 221, 221, 1);
}

#carousel .slides img {
    width: 100%;
    display: block;
    max-width: 450px;
    margin: auto;
}

#carousel .slides:after {
    content: ".";
    display: block;
    clear: both;
    visibility: hidden;
    line-height: 0;
    height: 0;
}

html[xmlns] #carousel .slides {
    display: block;
}

* html #carousel .slides {
    height: 1%;
}

#carousel {
    position: relative;
    zoom: 1;
    overflow: hidden;
}

#carousel .flex-container {
    min-width: 150px;
    max-width: 960px;
}

#carousel .slides {
    zoom: 1;
    display: -webkit-box;
    display: -moz-box;
    display: -webkit-flexbox;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
}

#carousel .flex-direction-nav a {
    display: block;
    position: fixed;
    top: 50vh;
    cursor: pointer;
    font-size: 3em;
    opacity: 0.3;
}

#carousel .flex-direction-nav a:hover {
    text-decoration: none;
    opacity: 1;
}


#carousel .flex-direction-nav a:before {
    display: block;
    position: absolute;
    width: 9px;
    height: 13px;
    top: 11px;
    left: 11px;

}

#carousel .flex-direction-nav a:before {
    display: block;
    position: absolute;
    width: 9px;
    height: 13px;
    top: 11px;
    left: 11px;
}


#carousel .flex-direction-nav .flex-next {
    right: 20px;
}

#carousel .flex-direction-nav .flex-next, #carousel .flex-direction-nav .flex-prev {
    font-size: 2.5em;
}

#carousel .flex-direction-nav .flex-next:before {
    background-position: -9px 0;
    left: 15px;
}

#carousel .flex-direction-nav .flex-prev:before {
    background-position: 0 0;
}

#carousel .flex-direction-nav .flex-next:after {
    right: 0;
    border-bottom: 5px solid transparent;
    border-left: 5px solid #31611e;
}

#carousel .flex-direction-nav .flex-prev:after {
    left: 0;
    border-bottom: 5px solid transparent;
    border-right: 5px solid #31611e;
}

/* --------- Parents -------- */

.parents .archive, .parents .papers_overview {
    padding: 0;
    width: 100%;
    background: white !important;
}

.parents .archive h1, .parents .papers_overview h1 {
    margin: 2em;
    text-align: center;
    text-transform: uppercase;
    font-weight: normal;
    letter-spacing: 1px;
}

.parents .archive .slides {
    width: 250px;
}

section:nth-child(even) > .slideshow {
    float: left;
    padding: 0em 2em 0em 0em;
    overflow: hidden;
}

.parents .flex-container a:active,
.parents .flexslider a:active,
.parents .flex-container a:focus,
.parents .flexslider a:focus {
    outline: none;
}

.parents .flex-control-nav {
    width: 100%;
    text-align: center;
}


.parents .slides,
.parents .flex-control-nav,
.parents .flex-direction-nav {
    margin: 0;
    padding: 0;
    list-style: none;
}

.parents .slides {
    width: 450px;
    float: left;
}

.parents .slides li:before {
    padding-top: 100%;
}

.parents .slides li {
}

.parents .slides li img {
    width: 100%;
    object-position: center;
    object-fit: contain;
    height: 100%;
}

.parents .flexslider a img {
    outline: none;
    border: none;
}

.parents .flexslider {
    margin: 0;
    padding: 0;
}

.parents .flexslider .slides > li {
    display: none;
    -webkit-backface-visibility: hidden;
}

.parents .flexslider .slides img {
    max-width: 450px;
    width: 100%;
    display: block;
    -webkit-border-radius: 2px;
    -moz-border-radius: 2px;
    border-radius: 2px;
}

.parents .slides:after {
    content: ".";
    display: block;
    clear: both;
    visibility: hidden;
    line-height: 0;
    height: 0;
}

.parents html[xmlns] .slides {
    display: block;
}

.parents * html .slides {
    height: 1%;
}

.parents .flexslider .flex-control-nav {
    position: absolute;
    width: 100%;
    bottom: -40px;
    text-align: center;
    margin: 0 0 0 -10px;
}

.parents .flex-control-nav li {
    display: inline-block;
    zoom: 1;
    margin-top: 0.5em;
}

.parents .flex-control-paging li a {
    display: block;
    cursor: pointer;
    text-indent: -9999px;
    width: 12px;
    height: 12px;
    margin: 0 3px;
    -webkit-border-radius: 12px;
    -moz-border-radius: 12px;
    border-radius: 12px;
    -moz-box-shadow: inset 0 0 0 2px #b6b6b6;
    border: #bbb 0.15em solid;
}

.parents .flex-control-paging li a.flex-active {
    background-color: #bbb;
}


/* --------- Bestelformulier -------- */

form h3 {
    font-weight: normal;
}

form h4 {
    margin-bottom: 0.3em
}

form p {
    margin: 0.6em 0;
}

input[type="submit" i] {
    font-family: inherit;
    background: transparent;
    border: none;
    font-size: 1em;
}

.InputfieldStateRequired label:after {
    content: '*';
}

.InputfieldError {
    color: red;
}

.sales ul {
    padding: 0;
}

.sales li {
    list-style: none;
}

.InputfieldCheckbox .InputfieldHeader {
    display: none;
}

/* --------- Artikelen -------- */
/* Year-grouped article rows (migrated from design-experiments) */
.papers_overview .paper-year,
.papers_overview section:nth-child(odd),
.papers_overview section:nth-child(even) {
    background: transparent;
    display: block;
    width: auto;
    min-height: 0;
}

.paper-year-label {
    margin: 1.6rem 0 0.15rem;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gray, #6d7a9e);
}

.paper-row {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    gap: 0.9rem;
    align-items: center;
    padding: 0.8rem 0.5rem;
    border-bottom: 1px solid #e6e8ee;
    color: inherit;
    text-decoration: none;
    border-radius: 0.5rem;
    scroll-margin-top: 1.5rem;
    transition: background-color 0.15s ease;
}

a.paper-row,
a.paper-row:hover,
a.paper-row:focus {
    color: inherit;
    text-decoration: none;
}

a.paper-row:hover {
    background: #f4f7fb;
}

.paper-thumb {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    overflow: hidden;
    background: #e6e9ef;
    display: block;
}

.papers_overview .paper-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-width: none;
    border-radius: 0;
    display: block;
    float: none;
    padding: 0;
}

.paper-title {
    display: block;
    font-weight: normal;
    color: var(--brand);
    line-height: 1.3;
}

.paper-meta {
    display: block;
    color: var(--gray, #6d7a9e);
    font-size: 0.9rem;
    margin-top: 0.15rem;
}

.paper-action {
    color: var(--dark, #2a3e77);
    font-weight: 600;
    font-size: 0.92rem;
    white-space: nowrap;
}

a.paper-row:hover .paper-action {
    text-decoration: underline;
}

@media (max-width: 575.98px) {
    .paper-row {
        grid-template-columns: 56px minmax(0, 1fr);
    }

    .paper-thumb {
        width: 56px;
        height: 56px;
    }

    .paper-action {
        display: none;
    }
}


/* --------- Archief cards (migrated from design-experiments) -------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    align-items: start;
}

.info-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
}

.info-card img {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.info-card-body {
    padding: 1rem 1.05rem 1.15rem;
}

.info-card-body h3 {
    margin-top: 0;
}


/* --------- Boeken (migrated from design-experiments) -------- */
.page-head {
    margin-bottom: 1.5rem;
}

.page-lead {
    color: var(--gray, #6d7a9e);
    max-width: 48rem;
}

/* Cover grid overview — covers fill their frame, no surrounding whitespace */
.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem 1.25rem;
    margin-bottom: 2.5rem;
}

.book-card {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    color: #222;
    text-decoration: none;
}

.book-card:hover,
.book-card:focus {
    color: #222;
    text-decoration: none;
}

.book-card img,
.book-card-fallback {
    display: block;
    width: 100%;
    /* height:auto so the intrinsic width/height attributes (added for CLS) do
       not force the box height; aspect-ratio drives the 3:4 thumbnail. */
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 0.5rem;
    background: #eef1f6;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.book-card:hover img {
    box-shadow: 0 6px 18px rgba(42, 62, 119, 0.18);
    transform: translateY(-2px);
}

.book-card span {
    font-weight: normal;
    color: var(--ink);
    line-height: 1.3;
}

/* Per-book catalogue section */
.book-section {
    padding: 2.25rem 0;
    border-top: 1px solid #e6e8ee;
    scroll-margin-top: 1.5rem;
}

/* Jumping to a book (#name) just scrolls to it — no highlight. scroll-margin
   keeps it clear of the sticky top bar. */
.book-section {
    scroll-margin-top: 80px;
}

.book-hero {
    display: grid;
    grid-template-columns: minmax(160px, 240px) minmax(0, 1fr);
    gap: 1.75rem;
    align-items: start;
}

.book-cover {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    background: #fff;
}

/* Bootstrap carousel slides: the width/height attributes (added for CLS) would
   otherwise force the box height on top of .w-100; keep natural scaling. */
.carousel-item img {
    height: auto;
}

/* Cover images are wrapped in <picture> for WebP; make the wrapper transparent
   to layout so the existing img rules (.book-card img, .book-cover, …) apply.
   Under display:contents the <source> is exposed as a layout box (computed
   display:block), which would otherwise become a stray grid/flex item next to
   the <img> (it pushed the hero cover into the wrong grid column). Hiding it
   does not affect WebP selection, which is driven by the DOM, not CSS. */
picture {
    display: contents;
}

picture > source {
    display: none;
}

.book-intro h2 {
    margin-top: 0;
}

.badge-wip {
    display: inline-block;
    margin-left: 0.4rem;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: var(--light, #e7f6fa);
    color: var(--dark, #2a3e77);
    font-size: 0.75rem;
    letter-spacing: 0.03em;
    vertical-align: middle;
}

.book-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.85rem;
}

.book-actions .btn {
    width: auto;
    margin: 0;
}

.login-note {
    color: var(--gray, #6d7a9e);
}

/* Editions */
.edition-list {
    margin-top: 1.25rem;
}

.edition {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 1rem;
    padding: 1.1rem 0;
    border-top: 1px solid #e6e8ee;
}

.edition-cover {
    width: 96px;
    height: 128px;
    object-fit: cover;
    border-radius: 8px;
    background: #eef1f6;
}

.meta-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem 1rem;
    margin: 0.8rem 0 0;
}

.meta-list div {
    margin: 0;
}

.meta-list dt {
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--gray, #6d7a9e);
    font-weight: normal;
}

.meta-list dd {
    margin: 0.1rem 0 0;
    font-weight: normal;
    color: var(--ink);
}

.materiaal {
    flex-basis: 100%;
}

.materiaal ul {
    margin: 0.25rem 0 0;
    padding-left: 1.1rem;
}

/* Catalogue + sticky cart layout */
.book-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 2rem;
    align-items: start;
}

.book-layout.cart-empty {
    grid-template-columns: 1fr;
}

.book-layout.cart-empty .book-cart-aside {
    display: none;
}

/* Stretch the aside to the catalogue's height so the sticky cart panel can travel. */
.book-cart-aside {
    align-self: stretch;
}

.book-cart-aside .cart-checkout {
    width: 100%;
}

/* Add-to-cart control (Bestellen button → quantity stepper) */
.order-control {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.order-qty {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.order-qty__label {
    margin: 0;
    color: var(--gray, #6d7a9e);
    font-size: 0.9rem;
}

.order-qty__input {
    width: 4.5rem;
}

/* Below a roomy desktop the side-by-side cart squeezes the catalogue, so stack
   the cart under it (and stop it sticking) rather than cramping the book rows. */
@media (max-width: 1199.98px) {
    .book-layout {
        grid-template-columns: 1fr;
    }

    .book-cart-aside {
        display: none;
    }

    .book-layout:not(.cart-empty) .book-cart-aside {
        display: block;
        margin-top: 1.5rem;
    }

    .book-cart-aside .cart-panel {
        position: static;
    }
}

@media (max-width: 720px) {
    .book-hero,
    .edition {
        grid-template-columns: 1fr;
    }

    .book-cover {
        max-width: 240px;
    }
}


/* --------- UI polish: buttons & focus (brand-consistent) -------- */
/* Outline buttons (Proefkatern, reviews, downloads) in brand navy with a soft
   tinted border instead of near-black. */
.btn-outline-dark {
    --bs-btn-color: var(--brand);
    --bs-btn-border-color: #c6cee4;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #4a63a8;          /* brighter blue, not the heavy dark-navy fill */
    --bs-btn-hover-border-color: #4a63a8;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #3f568f;
    --bs-btn-active-border-color: #3f568f;
    --bs-btn-focus-shadow-rgb: 42, 62, 119;
}

/* Button-styled links (<a class="btn">) must not pick up the global a:hover
   underline that plain links get. */
.btn,
.btn:hover,
.btn:focus {
    text-decoration: none;
}

/* Inline prose links (book descriptions, intros, leads, related materials):
   brand colour with a soft underline that firms up on hover. Buttons excluded. */
#content .description a:not(.btn),
#content .page-lead a:not(.btn),
#content .intro a:not(.btn),
#content .materiaal a:not(.btn) {
    color: var(--brand);
    text-decoration: underline;
    text-decoration-color: rgba(42, 62, 119, 0.35);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
    transition: text-decoration-color 0.12s, color 0.12s;
}

#content .description a:not(.btn):hover,
#content .page-lead a:not(.btn):hover,
#content .intro a:not(.btn):hover,
#content .materiaal a:not(.btn):hover {
    color: var(--brand-hover);
    text-decoration-color: currentColor;
}

/* Rich text sometimes wraps a link in <ins> (editor artifact). <ins>'s default
   underline sits tight under the text and clashes with the link's own offset
   underline — drop it so only the link's underline shows. */
#content ins {
    text-decoration: none;
}

/* Replace Bootstrap's blue focus glow on form fields with a brand ring. */
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    border-color: #9aa8cf;
    box-shadow: 0 0 0 0.2rem rgba(42, 62, 119, 0.18);
}

.form-check-input:checked {
    background-color: var(--brand);
    border-color: var(--brand);
}


/* --------- Images -------- */
img, img a, a, a img {
    border: none;
    outline: none;
}

/* --------- Footer -------- */
footer {
    float: left;
    width: 100%;
}

.site-footer {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.75rem;
}

.site-footer > li,
.site-footer > li > a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: inherit;
}

/* Override the global a:hover underline so the icon stays clean; underline
   only the label text. */
.site-footer > li > a:hover {
    text-decoration: none;
}

.site-footer > li > a:hover span {
    text-decoration: underline;
}

.site-footer .fa {
    width: 1.1em;
    text-align: center;
    color: var(--dark);
}


.actueel {
    background-image: url("../img/chalkboard.jpg");
}

.category span {
    color: #fff;
    font-family: 'Kalam', cursive;
    font-size: 2.2em;
    line-height: 1.2;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    /* Cover only the square photo (the :before padding box), not the caption. */
    aspect-ratio: 1 / 1;
    margin: 0;
    padding: 12%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* The Actueel tile carries a full announcement, not a short caption. Keep it
   inside the square chalkboard (top-aligned, smaller, clipped) so a long text
   can't overflow past the footer and add blank space below the page. */
.actueel span {
    font-size: 1.4em;
    align-items: flex-start;
    overflow: hidden;
}


/* ==========================================================================
   SCREEN SIZES
   ========================================================================== */


@media only screen and (max-width: 1500px) and (min-width: 1250px) {
    body {
        font-size: 1.1em;
    }

    footer, header, button {
        font-size: 0.9em;
    }

    header {
        width: 13em;
    }


    input:not([type]), input[type="email" i], input[type="number" i], input[type="password" i], input[type="tel" i], input[type="url" i], input[type="text" i], textarea {
        width: 100%;
    }

    #carousel .flex-direction-nav .flex-prev {
        left: 7em;
    }

    #carousel .flex-direction-nav .flex-next {
        right: 0.2em;
    }

    #carousel .flex-direction-nav .flex-next, #carousel .flex-direction-nav .flex-prev {
        font-size: 2.25em;
    }

    #carousel blockquote {
        font-size: 1.1em;
    }

    #carousel button {
        font-size: 1em !important;
        padding: 0.7em !important;
    }

    .category {
        width: 33%;
        font-size: 0.85em;
    }

}

/* Mobile Menu */
@media screen and (max-width: 1250px) {

    label.responsive-nav-label {
        position: absolute;
        display: block;
        padding: 20px;
        cursor: pointer;
        color: #111;
        right: 0;
        top: 0;
        z-index: 1000;
        background: rgba(255, 255, 255, 0.5);
    }

    label.responsive-nav-label span {
        margin-right: 10px;
    }

    header {
        display: none;
    }

    input#responsive-nav[type=checkbox]:checked ~ header {
        display: inherit;
    }


    input#responsive-nav[type=checkbox]:checked ~ .container {
        margin: 0;
    }

    .title p, .title h1 {
        width: 100%;
    }

    .title p {
        padding: 1em 0 2em 0;
    }


}

@media only screen and (min-width: 1000px) and (max-width: 1249px) {
    body {
        font-size: 1.15em;
    }

    footer, header, button {
        font-size: 0.85em;
    }

    .sales {
        margin-top: 3.5em !important;
    }

    #carousel .flex-direction-nav .flex-next, #carousel .flex-direction-nav .flex-prev {
        font-size: 2em;
    }

    #carousel blockquote {
        font-size: 1.1em;
    }

    #carousel button {
        font-size: 1em !important;
        padding: 0.7em !important;
    }

    .version img {
        padding: 0em;
        width: 100% !important;
    }

    .category {
        width: 33%;
        font-size: 0.8em;
    }
}

@media all and (max-width: 999px) {
    footer ul > li {
        display: block;
    }

    footer ul > li:after {
        content: '';
    }

    .parents .slideshow {
        float: left;
        display: block;
        width: 100%;
        padding: 0;
    }

    .parents .slides {
        margin: auto;
        text-align: center;
        float: none;
    }

    .parents .slides, .parents .flex-control-nav, .parents .flex-direction-nav {
        margin-bottom: 2em;
    }

}

@media all and (min-width: 750px) and (max-width: 999px) {
    body {
        font-size: 1.1em;
    }

    footer, header, button {
        font-size: 0.95em;
    }

    footer ul > li {
        display: block;
    }

    footer ul > li:after {
        content: '';
    }

    .sales {
        margin-top: 2.6em !important;
    }

    #carousel .flex-viewport {
        width: 80%;
        margin-left: 10%;
    }

    #carousel .flex-direction-nav .flex-next, #carousel .flex-direction-nav .flex-prev {
        font-size: 1.9em
    }

    #carousel .slides img {
        max-width: 450px !important;
    }

    #carousel .flex-direction-nav .flex-next {
        right: 0.5em;
    }

    #carousel blockquote {
        font-size: 1.05em;
    }

    #carousel .versions .version {
        padding: 1em;
    }

    #carousel button {
        font-size: 1em !important;
        padding: 0.7em !important;
    }

    .category {
        width: 50%;
        font-size: 0.8em;
    }

}


@media only screen and (min-width: 500px) and (max-width: 749px) {

    body {
        font-size: 1.1em;
    }

    footer, header, button {
        font-size: 0.95em;
    }

    footer ul > li {
        display: block;
    }

    footer ul > li:after {
        content: '';
    }

    .sales {
        margin-top: 2.5em !important;
    }

    #carousel .flex-viewport {
        width: 90%;
        margin-left: 5%;
    }

    #carousel .flex-direction-nav .flex-next, #carousel .flex-direction-nav .flex-prev {
        font-size: 1.5em
    }

    #carousel .flex-direction-nav .flex-prev {
        left: 0.1em
    }

    #carousel .flex-direction-nav .flex-next {
        right: 0.1em;
    }

    #carousel blockquote {
        font-size: 1.05em;
    }

    #carousel button {
        font-size: 1em !important;
        padding: 0.7em !important;
    }

    .category {
        width: 50%;
        font-size: 0.8em;
    }

}


/*  #Mobile (Portrait)
================================================== */
@media only screen and (max-width: 499px) {
    body {
        font-size: 1em;
    }

    .category, footer {
        width: 100%;
    }

    header {
        margin: 0;
        position: relative;
        float: left;
        height: auto;
    }

    .parents .slides {
        width: 100%;
    }

    footer, header, button {
        font-size: 0.9em;
    }

    footer ul {
        padding: 0.5em;
    }

    .category h2 {
        font-size: 1.1em;
    }

    #carousel .flex-viewport {
        width: 100%;
        margin-left: 0;
    }

    #carousel .flex-direction-nav .flex-next, #carousel .flex-direction-nav .flex-prev {
        display: none;
    }

    #carousel .slides img {
        max-width: 450px !important;
        float: none;
    }

    #carousel blockquote {
        font-size: 1.05em;
    }

    .version img {
        width: 100%;
    }

    #carousel button {
        font-size: 1em !important;
        padding: 0.7em !important;
    }

    .box {
        width: 100%;
        margin: 0;
        padding: 1em;
        -webkit-box-flex: none;
        -moz-box-flex: none;
        -webkit-flex: none;
        -ms-flex: none;
        flex: none;
    }
}


.image {
    position: relative;
    overflow: hidden;
    padding-bottom: 100%;
}

.image img {
    position: absolute;
}

.thumb {
    background-color: #fff;
    border-radius: .25rem;
    max-width: 100%;
    height: auto;
}

.price-string {
    font-size: 0.9em;
    line-height: 1em;
}

.control:checked ~ .conditional {
    display: block;
}

.conditional {
    display: none;
}

.navbar {
    padding: 0;
    margin: 0;
}

.navbar-btn {
    box-shadow: none;
    outline: none !important;
    border: none;
}


/* ---------------------------------------------------
    SIDEBAR STYLE
----------------------------------------------------- */

.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
    perspective: 1500px;
}


#sidebar {
    min-width: 250px;
    max-width: 250px;
    transition: all 0.6s cubic-bezier(0.945, 0.020, 0.270, 0.665);
    transform-origin: bottom left;
    background: var(--light);
}

#sidebar a {
    color: inherit
}

#sidebar li a {
    position: relative;
}


#sidebar.active {
    margin-left: -250px;
    transform: rotateY(100deg);
}


#sidebar ul.components {
    padding: 20px 0;
}


#sidebar ul li a {
    display: block;
    font-weight: bold;
    padding: 0.5em 0em;
}


a[data-toggle="collapse"] {
    position: relative;
}

#sidebar .dropdown-toggle::after {
    display: block;
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
}


#sidebar ul ul a {
    font-weight: normal;
    padding: 0.3em 0;
}


#sidebar ul ul a:hover {
    text-decoration: none;
}

ul.CTAs a {
    text-align: center;
    font-size: 0.9em !important;
    display: block;
    border-radius: 5px;
    margin-bottom: 5px;
}


/* ---------------------------------------------------
    CONTENT STYLE
----------------------------------------------------- */
#content.active {
    width: 100%;
}

#content {
    width: calc(100% - 275px);
    min-width: 0;
    min-height: 100vh;
    transition: all 0.3s;
    container-type: inline-size;
    container-name: shop;
}

/* The welcome line sits beside the menu button. Keep a long name on one line. */
#content .navbar {
    flex-wrap: nowrap;
    gap: 0.5rem;
}

#content #navbarCollapse {
    min-width: 0;
    flex: 1 1 auto;
}

#content .welcome-name {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}

/* Forms use desktop columns. Once the content column itself is narrow
   (phone, or a tablet with the sidebar still open) stack each label and field.
   On a wide column, keep the label wide enough for a word like "Telefoonnummer"
   and let the inputs share whatever is left. */
@container shop (max-width: 60rem) {
    #content form .form-group.row > [class*="col-"] {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
        margin-left: 0;
    }

    #content form .col-form-label {
        padding-bottom: 0.25rem;
        white-space: normal;
    }
}

/* Same rhythm as Bootstrap's mb-2 between field rows, and a clearer gap
   between the profile sections (details, email, password). */
#content .form-group {
    margin-bottom: 0.5rem;
}

#content form.needs-validation {
    margin-bottom: 2rem;
}

@container shop (min-width: 60rem) {
    #content form .form-group.row {
        flex-wrap: nowrap;
        align-items: flex-start;
    }

    #content form .form-group.row > .col-form-label {
        flex: 0 0 12rem;
        width: 12rem;
        max-width: 12rem;
        white-space: normal;
    }

    #content form .form-group.row > [class*="col-"]:not(.col-form-label) {
        flex: 1 1 0;
        width: auto;
        max-width: none;
        min-width: 0;
    }
}

#content form .form-control,
#content form .form-select,
#content form select.form-control {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

#content .table-responsive {
    max-width: 100%;
}

#content img.thumb,
#content .category img {
    max-width: 100%;
    height: auto;
}

/* Rounded image frames (migrated from design-experiments) */
#content .carousel-inner {
    border-radius: 0.75rem;
    overflow: hidden;
}

#content img.thumb,
#content .category img {
    border-radius: 0.75rem;
}

#sidebarCollapse {
    width: 40px;
    height: 40px;
    background: #e7f6fa;
    cursor: pointer;
}

#sidebarCollapse span {
    width: 80%;
    height: 2px;
    margin: 0 auto;
    display: block;
    background: #4E6094;
    transition: all 0.8s cubic-bezier(0.810, -0.330, 0.345, 1.375);
    transition-delay: 0.2s;
}

#sidebarCollapse span:first-of-type {
    transform: rotate(45deg) translate(2px, 2px);
}

#sidebarCollapse span:nth-of-type(2) {
    opacity: 0;
}

#sidebarCollapse span:last-of-type {
    transform: rotate(-45deg) translate(1px, -1px);
}


#sidebarCollapse.active span {
    transform: none;
    opacity: 1;
    margin: 5px auto;
}


/* ---------------------------------------------------
    MEDIAQUERIES
----------------------------------------------------- */
@media (max-width: 768px) {
    #content {
        width: 100%;
    }

    #sidebar {
        margin-left: -250px;
        transform: rotateY(90deg);
    }

    #sidebar.active {
        margin-left: 0;
        transform: none;
    }

    #sidebarCollapse span:first-of-type,
    #sidebarCollapse span:nth-of-type(2),
    #sidebarCollapse span:last-of-type {
        transform: none;
        opacity: 1;
        margin: 5px auto;
    }

    #sidebarCollapse.active span {
        margin: 0 auto;
    }

    #sidebarCollapse.active span:first-of-type {
        transform: rotate(45deg) translate(2px, 2px);
    }

    #sidebarCollapse.active span:nth-of-type(2) {
        opacity: 0;
    }

    #sidebarCollapse.active span:last-of-type {
        transform: rotate(-45deg) translate(1px, -1px);
    }

}

.flexslider .slides > li {
    background-position: center;
    height: 100%;
    width: 100%;
    display: none;
    -webkit-backface-visibility: hidden;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

.flexslider-container,
.flexslider .slides,
.flex-viewport {
    height: 100%;
}

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

body {
    position: relative;
    margin: 0;
    padding: 0;
}

ul.slides {
    margin: 0;
    padding: 0;
}

.flexslider {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    border: 0px;
    overflow: hidden;
}

:root {
    --submenu_header_background: var(--secondary);
    --submenu_header_color: var(--light);
    --submenu_item_background: var(--gray-dark);
    --submenu_item_color: var(--light);
    --submenu_item_color_hover: var(--light);
}


#sidebar ul a:hover {
    color: var(--dark);
}

#sidebar ul li a {
    color: var(--gray);
}

#sidebar ul li.active > a {
    color: var(--dark);
}

#sidebar ul ul {
    background: var(--submenu_item_background);
}

#sidebar ul ul a.active {
    color: var(--dark);
}

#sidebar ul ul a {
    color: var(--submenu_item_color);
}

#sidebar ul li a[aria-expanded="true"] {
    color: var(--submenu_header_color);
    background: var(--submenu_header_background);
}

#sidebar ul ul a:hover {
    color: var(--submenu_item_color_hover);
}

#sidebarCollapse span {
    background: var(--dark);
}

#sidebarCollapse {
    background: var(--light)
}


/* Overwrite blue sidebar */

/* Status messages: a short card, not a full-width strip or a bare sentence. */
#content .alert,
#loginModal .alert {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    /* Span the container so the notice lines up with the full-width form
       fields it sits above, rather than hugging a short message. */
    width: 100%;
    margin: 1.25rem 0 2.5rem;
    padding: 0.95rem 1rem;
    border: 1px solid transparent;
    border-radius: 0.75rem;
    box-shadow: 0 1px 2px rgba(42, 62, 119, 0.06);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #1c2b4a;
}

#content .alert-success,
#loginModal .alert-success {
    background: #e7f6ee;
    border-color: #b7e0c7;
    color: #14532d;
}

#content .alert-info,
#loginModal .alert-info {
    background: #e8eef8;
    border-color: #c5d2ea;
    color: #1e3a5f;
}

#content .alert-warning,
#loginModal .alert-warning {
    background: #fff6e4;
    border-color: #f0ddb0;
    color: #6b4e16;
}

#content .alert-danger,
#loginModal .alert-danger {
    background: #fdeeee;
    border-color: #f3c7c7;
    color: #7f1d1d;
}

#content .notice-mark,
#loginModal .notice-mark {
    flex: 0 0 1.5rem;
    width: 1.5rem;
    height: 1.5rem;
    margin-top: 0.1rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    background: #2a3e77;
}

#content .alert-success .notice-mark,
#loginModal .alert-success .notice-mark {
    background: #198754;
}

#content .alert-success .notice-mark::before,
#loginModal .alert-success .notice-mark::before {
    content: "✓";
}

#content .alert-info .notice-mark::before,
#loginModal .alert-info .notice-mark::before {
    content: "i";
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
}

#content .alert-warning .notice-mark,
#loginModal .alert-warning .notice-mark,
#content .alert-danger .notice-mark,
#loginModal .alert-danger .notice-mark {
    background: #b58105;
}

#content .alert-danger .notice-mark,
#loginModal .alert-danger .notice-mark {
    background: #b42318;
}

#content .alert-warning .notice-mark::before,
#loginModal .alert-warning .notice-mark::before,
#content .alert-danger .notice-mark::before,
#loginModal .alert-danger .notice-mark::before {
    content: "!";
}

#content .notice-text,
#loginModal .notice-text {
    flex: 1 1 auto;
    min-width: 0;
}

/* Keep the close button in the flex row, vertically centred with the text,
   rather than floating in the corner the way Bootstrap positions it. */
#content .alert-dismissible .btn-close,
#loginModal .alert-dismissible .btn-close {
    position: static;
    flex: 0 0 auto;
    align-self: center;
    padding: 0;
    margin: 0;
}

#content .alert h1,
#content .alert h2,
#content .alert h3,
#content .alert p,
#content .alert .lead,
#loginModal .alert h1,
#loginModal .alert p {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    margin: 0;
}

#content .alert a,
#loginModal .alert a {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

#content .alert a:hover,
#loginModal .alert a:hover {
    color: inherit;
}

/* The contact line sits in the next row. Keep it off the message on short pages. */
#content > .row + .row {
    clear: both;
    margin-top: 1.5rem;
}

:root {
    --light: #e7f6fa;
    --gray: #6d7a9e;
    --dark: #2a3e77;

    /* Cohesive design tokens — single source of truth for the UI colours. */
    --ink: #253246;          /* primary text (softer than pure black)      */
    --muted: #6d7a9e;        /* secondary / meta text                      */
    --line: #e4e8f1;         /* hairlines & borders                        */
    --surface: #fbfcfe;      /* cards & panels                             */
    --brand: #2a3e77;        /* navy — primary actions, links, emphasis    */
    --brand-hover: #223160;
    --brand-tint: #eef1f8;   /* subtle navy wash for hovers / targets      */

    --nav-height: 3.5rem;    /* sticky top bar height; sticky panels clear it */

    /* Point Bootstrap's defaults at the brand so no stray bootstrap-blue
       shows up in links, buttons, form focus rings, etc. */
    --bs-primary: #2a3e77;
    --bs-primary-rgb: 42, 62, 119;
    --bs-link-color: #2a3e77;
    --bs-link-color-rgb: 42, 62, 119;
    --bs-link-hover-color: #223160;
    --bs-link-hover-color-rgb: 34, 49, 96;
    --bs-focus-ring-color: rgba(42, 62, 119, 0.25);

    --submenu_header_background: #e5ebff;
    --submenu_header_color: var(--dark);
    --submenu_item_background: #e5ebff;
    --submenu_item_color: var(--gray);
    --submenu_item_color_hover: #313d5f;
}


/* Cookie consent banner (gates Google Analytics until accepted). */
.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 1030;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.5rem;
    max-width: 46rem;
    margin: 0 auto;
    padding: 1rem 1.25rem;
    background: #fff;
    border: 1px solid #e6eaf3;
    border-radius: 0.9rem;
    box-shadow: 0 6px 24px rgba(42, 62, 119, 0.18);
}

.cookie-banner[hidden] {
    display: none;
}

.cookie-banner__text {
    margin: 0;
    flex: 1 1 18rem;
    font-size: 0.9rem;
    color: var(--gray);
}

.cookie-banner__actions {
    display: flex;
    gap: 0.5rem;
    flex: 0 0 auto;
}


/* -- Content rhythm ---------------------------------------------------- */
#content {
    padding-bottom: 3rem;
    /* Sticky footer: fill the viewport and push the footer row to the bottom on
       short pages. The base #content rule already sets min-height:100vh; making
       it a column flexbox lets the last row (the footer) sit at the bottom. */
    display: flex;
    flex-direction: column;
}

#content > .row:last-child {
    margin-top: auto;
}

/* Sticky navigation on non-mobile (the sidebar is off-canvas at <=768px, so
   this only applies to the wider layout). The sidebar stays in view while the
   content scrolls, with the copyright pinned to its bottom; the top bar
   (menu button + account chip) sticks to the top of the viewport. */
@media (min-width: 769px) {
    #sidebar {
        position: sticky;
        top: 0;
        align-self: flex-start; /* opt out of .wrapper align-items:stretch so sticky engages */
        height: 100vh;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
    }

    #sidebar .copyright {
        margin-top: auto;
    }

    #content .navbar {
        position: sticky;
        top: 0;
        z-index: 4;
    }
}

.intro {
    margin-bottom: 1.5rem;
}


/* =====================================================================
   SHOP FLOW UX  (header account chip, order history, order form, profile)
   ===================================================================== */

/* -- 1. Account chip in the top bar (right-aligned) -------------------- */
#content #navbarCollapse {
    display: flex;
    justify-content: flex-end;
}

#content .welcome-name.account-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 100%;
    padding: 0.4rem 0.9rem;
    border: 1px solid #dbe3f4;
    border-radius: 2rem;
    background: var(--light);
    color: var(--dark);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

#content .welcome-name.account-chip:hover {
    background: #dff1f8;
    border-color: #c3d0ea;
    text-decoration: none;
}

.account-chip__icon {
    flex: 0 0 auto;
    color: var(--dark);
}

.account-chip__text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* The Bootstrap caret already indicates the dropdown; keep it close to the text. */
#content .welcome-name.account-chip.dropdown-toggle::after {
    margin-left: 0.15rem;
}


/* -- 2. Order history cards (Mijn bestellingen) ------------------------ */
.order-card {
    border: 1px solid #e6eaf3;
    border-radius: 0.9rem;
    background: #fff;
    box-shadow: 0 1px 3px rgba(42, 62, 119, 0.06);
    padding: 1.25rem 1.5rem 0.5rem;
    margin-bottom: 1.75rem;
}

.order-card__header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #eef1f7;
}

.order-card__title {
    margin: 0;
    font-size: 1.5rem;
}

.order-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.85rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
}

.order-badge--paid {
    background: #e4f6ec;
    color: #1d7a46;
}

.order-badge--open {
    background: #fdecec;
    color: #b02a2a;
}

.order-card__block {
    margin-bottom: 1rem;
}

.order-card__block-title {
    font-size: 0.8rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--gray);
    margin-bottom: 0.4rem;
}

.order-meta {
    margin: 0;
}

.order-meta dt {
    font-weight: 400;
    color: var(--gray);
}

.order-meta dd {
    margin: 0 0 0.4rem;
}

.order-meta code,
.order-card code {
    font-size: 0.85em;
    color: var(--dark);
    word-break: break-all;
}

.order-address {
    font-style: normal;
    line-height: 1.5;
}

.order-address p {
    margin: 0;
}

/* Numbers align on the right; the grand total is emphasised and the summary
   spacer cells carry no borders so the totals read as a clean block. */
.order-table {
    margin-bottom: 1rem;
}

.order-table th,
.order-table td {
    vertical-align: middle;
}

/* Keep money amounts on one line so they don't wrap as "€" + "20,00". */
.order-table .text-end {
    white-space: nowrap;
}

.order-table__summary td,
.order-table__summary th {
    border-top: 0;
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
}

.order-table__spacer {
    border: 0 !important;
}

.order-table__grand th,
.order-table__grand td {
    border-top: 2px solid #e0e5f0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    padding-top: 0.5rem;
}


/* -- 3. Order form: product cards ------------------------------------- */
/* A real responsive grid: columns grow with the available width, so the
   book column adds columns as the screen widens and uses fewer when the
   cart sits beside it. Replaces the old column-count breakpoints, which
   jumped around (3 → 2 → 1) instead of increasing with screen size. */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
}

.product-grid .product-card {
    margin-bottom: 0;
    border: 1px solid #e6eaf3;
    border-radius: 0.75rem;
    overflow: hidden;
}

/* Keep the quantity + price row aligned along the bottom of every card. */
.product-grid .product-card .card-body {
    display: flex;
    flex-direction: column;
}

.product-grid .product-card .product-controls {
    margin-top: auto;
    padding-top: 0.5rem;
}

/* A large, centred cover instead of the old tiny square thumbnail. */
.product-card__media {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.1rem 1.1rem 0;
}

.product-card__cover {
    max-width: 100%;
    max-height: 210px;
    width: auto;
    height: auto;
    border-radius: 0.4rem;
    box-shadow: 0 2px 6px rgba(42, 62, 119, 0.12);
}

.product-card .card-title {
    margin-bottom: 1rem;
}

/* Quantity (label above a compact input) on the left, price on the right. */
.product-controls {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}

.product-qty {
    flex: 0 0 auto;
}

.product-qty__label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray);
    margin-bottom: 0.25rem;
}

#content form .product-qty .product_item {
    width: 5rem;
    text-align: center;
}

.product-price {
    flex: 1 1 auto;
    min-width: 7rem;
    text-align: right;
    padding-bottom: 0.4rem;
    color: var(--gray);
    line-height: 1.3;
}

.product-price strong {
    color: var(--dark);
    font-size: 1.05rem;
}

.price-note {
    display: block;
    font-size: 0.8rem;
}


/* -- 3b. Shopping cart panel ------------------------------------------ */
.cart-panel {
    border: 1px solid #e6eaf3;
    border-radius: 0.9rem;
    background: #fbfcfe;
    padding: 1.25rem 1.35rem;
}

@media (min-width: 992px) {
    .cart-panel {
        position: sticky;
        /* Clear the sticky top bar (top:0, z-index:4) so it doesn't overlap
           the cart title when the page is scrolled. */
        top: calc(var(--nav-height) + 1.5rem);
    }
}

.cart-panel__title {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e6eaf3;
}

.cart-panel .content {
    display: flex;
    flex-direction: column;
}

/* A cart line: product name and its line total on one row, the
   "quantity × unit price" as a muted caption underneath. */
.cart-line {
    padding: 0.6rem 0;
    border-bottom: 1px solid #eef1f7;
}

.cart-line__main {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
}

.cart-line__name {
    font-weight: 600;
}

.cart-line__sum {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.cart-line__meta {
    margin-top: 0.15rem;
    color: var(--gray);
    font-size: 0.85rem;
}

/* Summary rows (shipping, subtotal, VAT, total): label left, amount right. */
.cart-row {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.3rem 0;
}

.cart-row > span:last-child {
    white-space: nowrap;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.cart-subtotal {
    margin-top: 0.6rem;
    padding-top: 0.6rem;
    border-top: 1px solid #e6eaf3;
}

.cart-row--discount {
    color: #1d7a46;
}

.cart-row--pending {
    color: #b02a2a;
}

/* The "must still be calculated" message is prose, not an amount — let it wrap. */
.cart-row--pending > span:last-child {
    white-space: normal;
}

.cart-row--total {
    margin-top: 0.4rem;
    padding-top: 0.6rem;
    border-top: 2px solid #e0e5f0;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--dark);
}

.cart-empty {
    padding: 0.4rem 0;
}


/* -- 4. Profile sections as cards ------------------------------------- */
.profile-customer-type {
    display: inline-block;
    margin: 0.25rem 0 1.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    background: var(--light);
    color: var(--dark);
    font-size: 0.85rem;
    font-weight: 600;
}

#content form.profile-section {
    border: 1px solid #e6eaf3;
    border-radius: 0.9rem;
    background: #fff;
    box-shadow: 0 1px 3px rgba(42, 62, 119, 0.05);
    padding: 1.5rem;
    margin-bottom: 1.75rem;
}

#content form.profile-section > h4:first-child {
    margin-top: 0;
    padding-bottom: 0.75rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid #eef1f7;
}


/* -- 5. Brand-navy primary buttons ------------------------------------ */
/* Bootstrap 5.3 buttons read these local custom properties, so re-point
   btn-primary at the brand navy (--dark) instead of the stock blue. */
.btn-primary {
    --bs-btn-bg: #2a3e77;
    --bs-btn-border-color: #2a3e77;
    --bs-btn-hover-bg: #223160;
    --bs-btn-hover-border-color: #1f2c57;
    --bs-btn-active-bg: #1f2c57;
    --bs-btn-active-border-color: #1b274e;
    --bs-btn-disabled-bg: #2a3e77;
    --bs-btn-disabled-border-color: #2a3e77;
    --bs-btn-focus-shadow-rgb: 42, 62, 119;
}


/* -- 6. Required-field markers ---------------------------------------- */
.label-required::after {
    content: " *";
    color: #b02a2a;
    font-weight: 700;
}

.required-note {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 1.25rem;
}


/* -- 7. Guest checkout: login prompt + sign-up ------------------------ */
/* The top-bar login button reuses the account-chip look (it is a <button>). */
#content .welcome-name.account-chip--login {
    font: inherit;
    font-weight: 600;
    line-height: 1.2;
}

.checkout-login-prompt {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    padding: 0.9rem 1.25rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e6eaf3;
    border-radius: 0.75rem;
    background: var(--light);
}

.checkout-confirm-notice {
    color: var(--gray);
    margin-bottom: 1.25rem;
}

p {
    margin: 0;
}