/* ----- brand tokens ----- */
:root {
    /* primary brand dark — matches Falcon's bg-dark navbar/footer */
    --kv-dark: #0A2640;
    --kv-dark-hover: #143957;
    --kv-text: #212529;
    --kv-muted: #6c757d;
    --kv-success: #28a745;
    --kv-success-dark: #007000;
    --kv-cta: #dc3545;
    --kv-cta-hover: #b02a37;
    --kv-price: #d97706;
    --kv-accent: #ff6b00;
    --kv-accent-hover: #d95800;
    --kv-surface: #ffffff;
    --kv-surface-soft: #f8f9fa;
    --kv-border: rgba(0, 0, 0, 0.08);
    --kv-shadow-sm: 0 0 15px rgba(0, 0, 0, .08);
    --kv-shadow-md: 0 4px 24px rgba(0, 0, 0, .12);
    --kv-radius: 8px;
}

/* ----- product cards ----- */
.product-row {
    box-shadow: var(--kv-shadow-sm);
    border-radius: var(--kv-radius);
    background: var(--kv-surface);
    overflow: hidden;
    transition: box-shadow .15s ease, transform .15s ease;
}
.product-row:hover {
    box-shadow: var(--kv-shadow-md);
    transform: translateY(-2px);
}

/* small product card */

.product-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}
.product-card .product-card-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.6em;
}
.product-card .product-card-cta {
    margin-top: auto;
}

/* homepage advice intro */
.home-advice-intro {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

/* uniform thumbnail box for advice cards */
.card-thumb {
    width: 140px;
    height: 140px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
.card-thumb img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* ----- corner ribbon for top-N rank ----- */
.ribbon {
    width: 130px;
    height: 130px;
    overflow: hidden;
    position: absolute;
    z-index: 2;
    pointer-events: none;
}
.ribbon::before,
.ribbon::after {
    position: absolute;
    z-index: -1;
    content: '';
    display: block;
    border: 4px solid var(--ribbon-shadow, #8a5a00);
}
.ribbon span {
    position: absolute;
    display: block;
    width: 200px;
    padding: 8px 0;
    background: var(--ribbon-bg, var(--kv-accent));
    box-shadow: 0 4px 10px rgba(0, 0, 0, .12);
    color: #fff;
    font: 700 13px/1 sans-serif;
    text-shadow: 0 1px 1px rgba(0, 0, 0, .15);
    text-transform: uppercase;
    text-align: center;
    letter-spacing: .04em;
}
.ribbon-top-right { top: -8px; right: -8px; }
.ribbon-top-right::before,
.ribbon-top-right::after {
    border-top-color: transparent;
    border-right-color: transparent;
}
.ribbon-top-right::before { top: 0; left: 0; }
.ribbon-top-right::after  { bottom: 0; right: 0; }
.ribbon-top-right span {
    left: -22px;
    top: 26px;
    transform: rotate(45deg);
}

/* podium tints */
.ribbon.rank-1 { --ribbon-bg: #c8951a; --ribbon-shadow: #7a5a00; }
.ribbon.rank-2 { --ribbon-bg: #6c757d; --ribbon-shadow: #41464b; }
.ribbon.rank-3 { --ribbon-bg: #a05a2c; --ribbon-shadow: #5a3318; }
.ribbon.rank-4,
.ribbon.rank-5 { --ribbon-bg: var(--kv-dark); --ribbon-shadow: #000; }

/* product detail — H1 clamp (long titles fit on 2 lines, full title in title attr) */
.product-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.25;
}

/* product detail — single unified card: image left + buy block right */
.product-hero {
    display: grid;
    grid-template-columns: 1fr;
    background: var(--kv-surface);
    border: 1px solid var(--kv-border);
    border-radius: var(--kv-radius);
    box-shadow: var(--kv-shadow-sm);
    overflow: hidden;
}
@media (min-width: 992px) {
    .product-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
.product-hero-image {
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 3;
    background: var(--kv-surface);
}
.product-hero-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}
.product-hero-buy {
    padding: 1.75rem;
    border-top: 1px solid var(--kv-border);
}
@media (min-width: 992px) {
    .product-hero-buy {
        border-top: 0;
        border-left: 1px solid var(--kv-border);
    }
}
.product-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--kv-dark);
    line-height: 1;
}

/* trust signal checklist */
.trust-list li {
    padding: .2rem 0;
    color: var(--kv-text);
    display: flex;
    align-items: baseline;
    gap: .5rem;
}
.trust-list i {
    flex-shrink: 0;
}

/* product description */
.product-description {
    color: var(--kv-text);
    line-height: 1.6;
    max-width: 72ch;
}
.product-description p { margin-bottom: 1rem; }
.product-description ul,
.product-description ol {
    margin: 0 0 1rem 0;
    padding-left: 1.5rem;
    list-style-position: outside;
}
.product-description li { margin-bottom: .25rem; padding-left: .25rem; }
.product-description strong { color: var(--kv-dark); }
.product-description h2,
.product-description h3,
.product-description h4 {
    margin: 1.75rem 0 .5rem;
    font-weight: 700;
    color: var(--kv-dark);
    font-size: 1.15rem;
}
.product-description h2:first-child,
.product-description h3:first-child,
.product-description h4:first-child { margin-top: 0; }

/* price tag */
.price-tag {
    display: inline-block;
    padding: .25rem .55rem;
    background: var(--kv-dark);
    color: #fff;
    font-weight: 700;
    font-size: .85rem;
    border-radius: 4px;
    line-height: 1.2;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .18);
}

/* ----- hero with proper image + scrim overlay ----- */
.page-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    background-color: var(--kv-dark);
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.70) 0%, rgba(0, 0, 0, 0.55) 100%);
    z-index: 0;
}
.page-hero > .container {
    position: relative;
    z-index: 1;
}

/* ----- navbar active state ----- */
.navbar-dark .navbar-nav .nav-link.active,
.navbar-dark .navbar-nav .nav-link:hover {
    color: #fff !important;
}

/* desktop: underline accent under the active item */
@media (min-width: 992px) {
    .navbar-dark .navbar-nav .nav-link {
        position: relative;
    }
    .navbar-dark .navbar-nav .nav-link.active::after {
        content: '';
        position: absolute;
        left: 1rem;
        right: 1rem;
        bottom: -2px;
        height: 2px;
        background: var(--kv-accent);
        border-radius: 2px;
    }
}

/* mobile active state */
@media (max-width: 991.98px) {
    .navbar-dark .navbar-nav .nav-link.active {
        font-weight: 700;
        border-left: 3px solid var(--kv-accent);
        padding-left: .75rem;
    }
}

/* ----- definition card (category page "Uitgelicht" grid) ----- */
.definition-card {
    display: block;
    height: 100%;
    background: var(--kv-surface);
    border: 1px solid var(--kv-border);
    border-radius: var(--kv-radius);
    padding: 1.25rem 1rem;
    text-align: center;
    text-decoration: none;
    color: var(--kv-text);
    transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}
.definition-card:hover {
    box-shadow: var(--kv-shadow-md);
    transform: translateY(-2px);
    border-color: transparent;
    color: var(--kv-text);
}
.definition-card .card-thumb {
    width: 120px;
    height: 120px;
}
.definition-card .definition-title {
    margin: .75rem 0 .35rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--kv-text);
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: none;
}
.definition-card .definition-intro {
    color: var(--kv-muted);
    font-size: .85rem;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ----- sidebar nav ----- */
.sidebar-nav .sidebar-title {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--kv-muted);
    margin-bottom: .75rem;
}
.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar-nav li + li {
    margin-top: .25rem;
}
.sidebar-nav a {
    display: block;
    padding: .4rem .6rem;
    border-radius: 6px;
    color: var(--kv-text);
    text-decoration: none;
    transition: background-color .1s ease;
}
.sidebar-nav a:hover {
    background: var(--kv-surface-soft);
    color: var(--kv-dark);
}
.sidebar-nav a.is-active {
    background: var(--kv-surface-soft);
    color: var(--kv-dark);
    font-weight: 600;
}

/* ----- blog index cards ----- */
.blog-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: var(--kv-surface);
    border: 1px solid var(--kv-border);
    border-radius: var(--kv-radius);
    overflow: hidden;
    transition: box-shadow .15s ease, transform .15s ease;
}
.blog-card:hover {
    box-shadow: var(--kv-shadow-md);
    transform: translateY(-2px);
    color: var(--kv-text);
}
.blog-card-image {
    aspect-ratio: 16 / 10;
    background: var(--kv-surface-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.blog-card-image img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}
.blog-card-body {
    padding: 1rem 1.25rem 1.25rem;
}
.blog-card-meta {
    display: flex;
    gap: .5rem;
    align-items: center;
    font-size: .8rem;
    color: var(--kv-muted);
    margin-bottom: .5rem;
}
.blog-card-category {
    color: var(--kv-dark);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    font-size: .72rem;
}
.blog-card-date::before {
    content: '·';
    margin-right: .5rem;
}
.blog-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--kv-text);
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ----- blog article ----- */
.blog-article {
    max-width: 72ch;
    margin: 0 auto;
}
.blog-content {
    color: var(--kv-text);
    line-height: 1.7;
}
.blog-content h2,
.blog-content h3 {
    margin-top: 2rem;
    margin-bottom: .75rem;
    color: var(--kv-dark);
    font-weight: 700;
}
.blog-content p { margin-bottom: 1rem; }
.blog-content ul,
.blog-content ol { margin: 0 0 1rem 1.25rem; }
.blog-content li { margin-bottom: .35rem; }
.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--kv-radius);
    margin: 1rem 0;
}
.blog-content a {
    color: var(--kv-dark);
    text-decoration: underline;
}

/* ----- branded search bar ----- */
.kv-search {
    position: relative;
    display: flex;
    align-items: stretch;
    background: #fff;
    border-radius: 999px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .15);
    overflow: hidden;
    height: 44px;
}
.kv-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--kv-muted);
    pointer-events: none;
    font-size: .9rem;
}
.kv-search-input {
    flex: 1 1 auto;
    border: 0;
    background: transparent;
    padding: 0 16px 0 40px;
    font-size: .95rem;
    color: var(--kv-text);
    outline: none;
    min-width: 0;
}
.kv-search-input::placeholder { color: var(--kv-muted); }
.kv-search-input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.kv-search-submit {
    flex: 0 0 auto;
    border: 0;
    background: var(--kv-accent);
    color: #fff;
    font-weight: 600;
    font-size: .9rem;
    padding: 0 22px;
    cursor: pointer;
    transition: background-color .15s ease;
}
.kv-search-submit:hover { background: var(--kv-accent-hover); }

/* ----- autocomplete dropdown ----- */
.ui-autocomplete {
    background: #fff;
    border: 1px solid var(--kv-border) !important;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .18);
    padding: .35rem !important;
    max-height: 460px;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1050;
    list-style: none;
    margin-top: 6px !important;
}
.ui-autocomplete .ui-menu-item { padding: 0; }
.ui-autocomplete .ui-menu-item-wrapper {
    padding: .55rem .75rem;
    border: 0 !important;
    border-radius: 8px;
    color: var(--kv-text);
    display: flex;
    align-items: center;
    gap: .65rem;
    line-height: 1.25;
    cursor: pointer;
    transition: background-color .1s ease;
}
.ui-autocomplete .ui-menu-item-wrapper:hover,
.ui-autocomplete .ui-menu-item-wrapper.ui-state-active,
.ui-autocomplete .ui-state-active .ui-menu-item-wrapper {
    background-color: var(--kv-surface-soft);
    color: var(--kv-text);
}
.ui-autocomplete .ui-menu-item-wrapper img {
    border-radius: 6px;
    flex-shrink: 0;
    background: var(--kv-surface-soft);
}
.ui-autocomplete .ui-menu-item-wrapper .text-300 {
    color: var(--kv-muted);
    font-size: .8em;
    margin-left: auto;
    padding-left: .5rem;
    white-space: nowrap;
}
/* autocomplete "see all" footer row */
.ui-autocomplete .ui-menu-item:last-child {
    margin-top: .35rem;
    padding-top: .35rem;
    border-top: 1px solid var(--kv-border);
}
.ui-autocomplete .ui-menu-item:last-child .ui-menu-item-wrapper {
    color: var(--kv-dark);
    font-weight: 600;
    justify-content: flex-start;
}
.ui-autocomplete .ui-menu-item:last-child .ui-menu-item-wrapper::before {
    content: '\f002';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--kv-accent);
}

/* ----- footer columns ----- */
.footer-col {
    flex: 1 1 180px;
    min-width: 180px;
}

/* ----- section heading with underline accent ----- */
.section-title {
    display: inline-block;
    position: relative;
    padding-bottom: 0.75rem;
}
.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 48px;
    height: 3px;
    background: var(--kv-accent);
    border-radius: 3px;
}
.section-title-left {
    display: inline-block;
    position: relative;
    padding-bottom: 0.6rem;
    margin-bottom: 1rem;
}
.section-title-left::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: var(--kv-accent);
    border-radius: 3px;
}

/* ----- info callout (e.g. "Lees ook ons artikel") ----- */
.callout {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: .9rem 1.1rem;
    background: var(--kv-surface-soft);
    border-left: 4px solid var(--kv-accent);
    border-radius: var(--kv-radius);
    margin-bottom: 1.5rem;
    color: var(--kv-text);
}
.callout i {
    color: var(--kv-accent);
    margin-top: .2rem;
}
.callout a {
    color: var(--kv-dark);
    font-weight: 600;
}

/* ----- accordion (brand-tinted) ----- */
.accordion-flush .accordion-button {
    background: transparent;
    color: var(--kv-text);
    font-weight: 600;
    padding: 1rem 0;
    box-shadow: none !important;
}
.accordion-flush .accordion-button:not(.collapsed) {
    color: var(--kv-dark);
    background: transparent;
}
.accordion-flush .accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}
.accordion-flush .accordion-body {
    padding: 0 0 1rem;
    color: var(--kv-text);
}

/* ----- misc utilities ----- */
.fit-content {
    height: fit-content;
    width: fit-content;
}

.text-dark-green {
    color: var(--kv-success);
}

.in-stock {
    display: inline-block;
    padding: 0 0.5rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
    color: var(--kv-success-dark);
    border: 1px solid;
}

.scrolling-wrapper {
    overflow-x: scroll;
    overflow-y: hidden;
    white-space: nowrap;
}

.productImage:hover {
    border: 3px solid var(--kv-accent);
    cursor: pointer;
}
