.close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    z-index: 100;
    /* Ensure it's above modal content */
}

.close span {
    transition: box-shadow 0.2s, background 0.2s;
}

.close:hover span {
    box-shadow: 0 4px 16px rgba(244, 67, 54, 0.15);
    background: #d32f2f;
}

.modal-content {
    background: #fff;
    margin: auto;
    padding: 30px;
    border-radius: 10px;
    max-width: 900px;
    width: 90%;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    position: relative;
}

/* Side-by-side layout for category modal (wider screens) */
.modal-body-flex {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 920px) {
    .modal-body-flex {
        flex-direction: row;
        align-items: stretch;
    }

    /* 60% afbeelding / 40% tekst */
    .modal-slider {
        flex: 0 0 60%;
        max-width: 60%;
    }

    .modal-text {
        flex: 0 0 40%;
        max-width: 40%;
    }
}

.modal-slider {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

/* Reduced max heights to free vertical space and emphasize text */
.modal-main-image {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
    border-radius: 10px;
    background: #f5f5f5;
    padding: 6px;
    width: 100%;
}

@media (min-width: 920px) {
    .modal-main-image {
        max-height: 420px;
    }
}

.modal-nav-btns {
    display: flex;
    gap: .5rem;
}

/* Smaller text sizing for product details (category modal) */
.modal-body-flex .modal-text {
    font-size: 0.95rem;
}

.modal-body-flex .modal-text h2 {
    font-size: 1.35rem !important;
}

.modal-body-flex .modal-text ul li {
    font-size: 0.8rem;
    line-height: 1.35;
    margin-bottom: 0.35rem;
}

@media (min-width: 920px) {
    .modal-body-flex .modal-text {
        font-size: 1rem;
    }

    .modal-body-flex .modal-text ul li {
        font-size: 0.85rem;
    }
}

@media (min-width: 1200px) {
    .modal-content {
        max-width: 1200px;
        padding: 40px 60px;
    }

    .modal-text {
        font-size: 1.15rem;
    }

    .modal-text ul li {
        font-size: 0.98rem;
        margin-bottom: 0.25em;
    }
}

@media (max-width: 600px) {
    .modal-content {
        max-width: 98vw;
        padding: 10px 5px;
    }

    .modal-text {
        font-size: 0.95rem;
    }

    .modal-text h2 {
        font-size: 1.5rem;
        font-weight: 600;
        color: var(--dark-gray);
        margin-bottom: 20px;
        border-radius: 8px;
        padding: 0.5em 0;
    }

    .modal-slider img {
        max-height: 220px;
    }
}

:root {
    --accent-orange: #F58220;
    --accent-gray: #6D6E71;
    --dark-gray: #2c3e50;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* Enhanced Navigation Styles */
.custom-navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.custom-navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    padding: 0.5rem 0;
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.15);
}

.brand-logo {
    height: 45px;
    transition: all 0.3s ease;
}

.custom-navbar.scrolled .brand-logo {
    height: 35px;
}

.navbar-nav {
    align-items: center;
}

.nav-link {
    color: var(--dark-gray) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    padding: 0.75rem 1rem !important;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
}

.nav-link:hover {
    color: var(--accent-orange) !important;
    transform: translateY(-2px);
}

.nav-link.active {
    color: var(--accent-orange) !important;
    background: rgba(245, 130, 32, 0.1);
}

/* Dropdown tweaks */
.navbar .dropdown-menu {
    font-size: 0.9rem;
    box-shadow: none !important;
}

.navbar .dropdown-item {
    padding: 0.45rem 1rem;
}

.producten-caret svg {
    display: block;
}

.producten-item {
    position: relative;
}

.producten-trigger {
    display: inline-flex !important;
    align-items: center;
    gap: 0.4rem;
    padding-right: 1.1rem !important;
}

.producten-trigger .producten-caret {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    color: var(--accent-orange);
    transition: transform .25s;
}

.producten-item.show .producten-caret {
    transform: rotate(180deg);
}

/* Ensure underline centers under text not including caret */
.producten-trigger .producten-label {
    position: relative;
}

.producten-trigger .producten-label::after {
    display: none;
}

/* Reuse existing nav-link underline but visually it spans under label due to small caret gap */

/* Prevent partial underline flash when dropdown opens/ closes */
.producten-item .nav-link::after {
    bottom: 4px;
}

/* Clickable section headings */
.section-heading-link {
    text-decoration: none;
    color: inherit;
    position: relative;
    display: inline-block;
}

.section-heading-link:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, var(--accent-orange), #ff9a45);
    border-radius: 2px;
    transition: width .35s;
}

.section-heading-link:hover:after {
    width: 100%;
}

.section-heading-link:hover {
    color: var(--accent-orange);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: var(--accent-orange);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

/* Suppress underline for Home & Producten */
#homeLink.nav-link::after,
#productenDropdown.nav-link::after {
    display: none !important;
}


.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.cta-button {
    background: linear-gradient(135deg, var(--accent-orange), #e67312) !important;
    color: white !important;
    border-radius: 25px !important;
    padding: 0.75rem 1.5rem !important;
    margin-left: 1rem !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 15px rgba(245, 130, 32, 0.3);
    transition: all 0.3s ease !important;
}

.cta-button:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 20px rgba(245, 130, 32, 0.4) !important;
    background: linear-gradient(135deg, #e67312, var(--accent-orange)) !important;
}

.cta-button::after {
    display: none;
}

/* Custom hamburger menu */
.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
    background: transparent;
    position: relative;
    width: 30px;
    height: 30px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--dark-gray);
    margin: 5px 0;
    transition: 0.3s;
    border-radius: 3px;
}

/* Transform into a cross ONLY when the menu is expanded (aria-expanded="true").
   This avoids relying on the transient .collapsed class which is absent on initial load. */
.navbar-toggler[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggler[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.navbar-toggler[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile responsive */
@media (max-width: 991px) {
    .custom-navbar {
        background: rgba(255, 255, 255, 0.98);
    }

    /* Shift toggler a bit left so it's less flush against the edge */
    .navbar-toggler {
        transform: translateX(-10px);
    }

    /* Left-align mobile nav content instead of centered */
    .navbar-collapse {
        text-align: left;
    }

    .navbar-collapse .navbar-nav {
        align-items: stretch;
        width: 100%;
    }

    .navbar-collapse .nav-item {
        width: 100%;
    }

    .navbar-collapse .nav-link {
        text-align: left;
        display: block;
    }

    /* Always show product categories list (dropdown menu) inside mobile collapse */
    .navbar-collapse .producten-item>a.producten-trigger {
        position: relative;
        font-weight: 500;
        padding-bottom: 0 !important;
    }

    .navbar-collapse .producten-item .producten-caret {
        display: none;
    }

    .navbar-collapse .producten-item .dropdown-menu {
        display: block !important;
        /* force visible */
        position: static;
        /* remove absolute positioning */
        float: none;
        transform: none !important;
        background: transparent;
        border: 0;
        box-shadow: none;
        /* Tighten vertical gap & indent slightly to show it's a child of Producten */
        margin: 0.05rem 0 0.4rem;
        /* reduced top + slightly reduced bottom */
        padding: 0.05rem 0 0.25rem 0.75rem;
        /* added left padding for hierarchy */
    }

    /* Indent product category items */
    .navbar-collapse .producten-item .dropdown-item {
        padding: 0.45rem 0.75rem 0.45rem 2.1rem;
        font-size: 0.9rem;
        border-radius: 8px;
        position: relative;
        color: var(--dark-gray);
    }

    .navbar-collapse .producten-item .dropdown-item:hover {
        background: rgba(245, 130, 32, 0.08);
        color: var(--accent-orange);
    }

    /* Bullet accent for categories */
    .navbar-collapse .producten-item .dropdown-item:before {
        content: "";
        position: absolute;
        left: 1.1rem;
        top: 50%;
        width: 6px;
        height: 6px;
        background: var(--accent-orange);
        border-radius: 50%;
        transform: translateY(-50%);
        box-shadow: 0 0 0 3px rgba(245, 130, 32, 0.18);
    }

    /* Visual separator under the Producten heading */
    .navbar-collapse .producten-item>a.producten-trigger:after {
        content: "";
        display: block;
        height: 1px;
        background: linear-gradient(90deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0));
        margin: 0.07rem 0 0.07rem;
        /* bring list closer to heading */
    }

    /* Tighten spacing for the CTA so it stays below categories */
    .navbar-collapse .cta-button {
        margin-top: 0.75rem !important;
    }

    .navbar-collapse {
        background: white;
        margin-top: 1rem;
        padding: 1rem;
        border-radius: 10px;
        /* Removed shadow for a flatter, cleaner list appearance */
        box-shadow: none;
    }

    .nav-link {
        margin: 0.25rem 0;
        text-align: center;
    }

    .cta-button {
        margin: 1rem 0 0 0 !important;
        display: block;
        text-align: center;
    }

    /* Fix horizontal gap caused by 100vw (includes scrollbar and can create right whitespace) */
    .custom-navbar,
    .navbar-collapse {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        left: 0;
        right: 0;
    }

    html,
    body {
        overflow-x: hidden;
    }

    /* Agreement modal styles */
    .agreement-modal,
    #agreementModal {
        position: fixed;
        inset: 0;
        display: none;
        align-items: center;
        justify-content: center;
        background: rgba(0, 0, 0, 0.45);
        z-index: 2000;
        padding: 2rem;
    }

    /* Further tighten about image & prevent accidental overflow on very small screens */
    @media (max-width: 575px) {
        .about-image .image-frame {
            /* Ensure the frame never exceeds its column */
            width: 100%;
            /* Slightly reduce visual bulk on small devices */
            border-width: 2px;
            box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.25),
                0 3px 10px -2px rgba(0, 0, 0, 0.12),
                0 0 0 2px rgba(245, 130, 32, 0.4),
                0 0 0 4px rgba(245, 130, 32, 0.10);
        }

        .about-split {
            padding: 7.5rem 0 4.5rem;
        }
    }

    .agreement-modal .modal-content,
    #agreementModal .modal-content {
        max-width: 900px;
        width: 100%;
        max-height: 85vh;
        overflow: auto;
        padding: 28px;
    }

    .agreement-content {
        color: #333;
        line-height: 1.6;
    }

    .btn-close-agreement {
        position: absolute;
        top: 14px;
        right: 14px;
        border: none;
        background: transparent;
        cursor: pointer;
    }

    @media (max-width: 600px) {

        .agreement-modal,
        #agreementModal {
            padding: 0.75rem;
        }

        .agreement-modal .modal-content,
        #agreementModal .modal-content {
            padding: 14px;
            border-radius: 8px;
        }
    }
}

.banner {
    background: url('../img/banner_background.png') no-repeat center center/cover;
    height: 20vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    position: relative;
}

.about-split {
    padding: 10rem 0 6.5rem;
    /* more breathing room top & bottom */
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fb 60%, #f2f4f7 100%);
}

.about-split h1 {
    font-size: clamp(2rem, 2.6vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--dark-gray);
    margin-bottom: 1.25rem;
    letter-spacing: -0.5px;
}

.about-split .lead {
    font-size: 1.05rem;
    color: #4a5562;
    margin-bottom: 1.5rem;
}

.about-highlights {
    list-style: none;
    padding: 0;
    margin: 0 0 1.75rem;
}

.about-highlights li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.55rem;
    font-weight: 500;
    color: #2f3d4a;
}

.about-highlights li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 10px;
    height: 10px;
    background: var(--accent-orange);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(245, 130, 32, 0.18);
}

.about-cta .btn-accent {
    padding: 0.85rem 1.75rem;
    font-size: 0.95rem;
}

.about-image .image-frame {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: #fff;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 14px 42px -16px rgba(0, 0, 0, 0.25),
        0 3px 8px -2px rgba(0, 0, 0, 0.10),
        0 0 0 2px rgba(245, 130, 32, 0.45),
        0 0 0 5px rgba(245, 130, 32, 0.10);
    border: 3px solid rgba(245, 130, 32, 0.70);
}

.about-image .image-frame:before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(150deg, rgba(245, 130, 32, 0.18), rgba(245, 130, 32, 0.06) 45%, rgba(255, 255, 255, 0) 75%);
    mix-blend-mode: multiply;
    pointer-events: none;
}

.about-image .image-frame:after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 55%;
    height: 60%;
    background: radial-gradient(circle at 85% 85%, rgba(245, 130, 32, 0.35), rgba(245, 130, 32, 0.05) 60%, rgba(245, 130, 32, 0) 80%);
    mix-blend-mode: screen;
    opacity: .5;
    pointer-events: none;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 991px) {
    .about-split {
        padding: 8.5rem 0 5rem;
    }

    .about-image {
        order: -1;
        margin-bottom: 2.25rem;
    }
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
}


.banner-content img {
    max-width: 150px;
    margin-bottom: 1rem;
}

.banner-content h1 {
    font-size: 3rem;
    font-weight: bold;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7), 0 0px 1px rgba(0, 0, 0, 0.5);
}

section {
    padding: 4rem 0;
    scroll-margin-top: 95px;
}

/* Popup arrow icon next to product title */
.popup-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .25s, transform .25s;
}

.category-swiper .product-image {
    max-width: 240px;
}

.category-swiper .swiper-button-prev,
.category-swiper .swiper-button-next {
    /* Reduced overall button size */
    width: 50px;
    height: 50px;
    padding: 6px 6px 3px 3px;
    border: 2px solid #d1d8dc !important;
    box-shadow: 0 3px 10px -2px rgba(0, 0, 0, 0.16), 0 0 0 3px rgba(245, 130, 32, 0.07);
    color: var(--accent-orange) !important;
    border-radius: 50%;
    transition: background .25s, color .25s, box-shadow .25s, border-color .25s;
    background: #fff;
}

.category-swiper .swiper-button-prev {
    padding: 6px 6px 6px 3px;
}

.category-swiper .swiper-button-next {
    padding: 6px 3px 6px 6px;
}

#producten h2,
#contact h2 {
    color: var(--accent-orange);
    margin-bottom: 2rem;
}

/* Enhanced Contact Section */
.contact-section {
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    padding-top: 4rem;
    padding-bottom: 2.5rem;
}

.contact-section .section-heading {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 0.75rem;
}

.contact-intro {
    font-size: 0.98rem;
    color: #586571;
    margin-bottom: 1.75rem;
    max-width: 640px;
}

.contact-form label {
    font-weight: 500;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #4a5660;
}

.contact-form .form-control {
    border-radius: 8px;
    border: 1px solid #d9dee2;
    font-size: 0.95rem;
}

.contact-form .form-control:focus {
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 3px rgba(245, 130, 32, 0.15);
}

.mini-badges .badge-soft {
    background: #eef2f5;
    color: #54616d;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.contact-details {
    font-size: 0.9rem;
}

.contact-details .contact-list li {
    margin-bottom: 0.4rem;
}

.contact-details .contact-item {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    margin-bottom: .55rem;
    font-size: 0.85rem;
}

.contact-details .contact-item .ci-icon {
    display: inline-flex;
    width: 28px;
    height: 28px;
    background: #eef2f5;
    color: #f58220;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    line-height: 1;
    flex-shrink: 0;
}

.contact-details .contact-item .ci-label {
    display: inline-block;
    color: #2f3d4a;
}

.contact-details .contact-item a.ci-label:hover {
    color: var(--accent-orange);
    text-decoration: none;
}

/* New contact side layout */
.contact-section {
    position: relative;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 85%);
}

.contact-side {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-card {
    background: #ffffff;
    border: 1px solid #e7ecef;
    padding: 1.3rem 1.4rem 1.25rem;
    border-radius: 16px;
    box-shadow: 0 4px 14px -6px rgba(0, 0, 0, 0.05);
    position: relative;
}

.contact-card:before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 16px;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(245, 130, 32, 0.08), transparent 55%);
    opacity: 0.6;
}

.contact-card.benefits {
    padding-bottom: 1rem;
}

.mini-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: .6px;
    margin: 0 0 .85rem;
    color: #f58220;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: .65rem;
    font-size: 0.92rem;
}

.benefits-list li {
    padding-left: 1.25rem;
    position: relative;
    line-height: 1.35;
    font-weight: 500;
    color: #2d3d49;
}

.benefits-list li:before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f58220;
    position: absolute;
    left: 0;
    top: 7px;
    box-shadow: 0 0 0 5px rgba(245, 130, 32, 0.18);
}

.contact-card.meta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.meta-item {
    display: flex;
    gap: .85rem;
    align-items: flex-start;
}

.meta-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #f7f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f58220;
    box-shadow: 0 2px 6px -2px rgba(0, 0, 0, 0.08) inset, 0 1px 2px rgba(0, 0, 0, 0.04);
}

.meta-icon i {
    font-size: 18px;
    line-height: 1;
}

.meta-text {
    flex: 1;
}

.meta-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: .6px;
    font-weight: 600;
    color: #6b747a;
    margin-bottom: 2px;
}

.meta-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: #243646;
}

.meta-value a {
    color: #243646;
    text-decoration: none;
}

.meta-value a:hover {
    color: #f58220;
}

@media (max-width: 991px) {
    .contact-side {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .contact-card {
        flex: 1 1;
    }
}

@media (max-width: 575px) {
    .contact-side {
        flex-direction: column;
    }

    .contact-card {
        padding: 1rem 1rem 1rem 1rem;
    }

    .meta-icon {
        width: 38px;
        height: 38px;
    }
}

/* Contact info pair */
.contact-info-pair {
    display: flex;
    flex-wrap: wrap;
    gap: 1.75rem;
    background: #fff;
    border: 1px solid #e3e7ea;
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 4px 18px -6px rgba(0, 0, 0, 0.08);
}

.contact-info-pair.fullwidth {
    justify-content: space-between;
}

.contact-info-item {
    flex: 1 1 250px;
    min-width: 240px;
}

.ci-heading {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: #6a747d;
    margin-bottom: 0.4rem;
}

.ci-value {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
}

.ci-value svg {
    color: var(--accent-orange);
}

.ci-value a {
    color: #2c3e50;
    text-decoration: none;
}

.ci-value a:hover {
    color: var(--accent-orange);
}

@media (max-width: 575px) {
    .contact-info-pair {
        padding: 1rem 1.1rem;
        gap: 1rem;
    }

    .ci-value {
        font-size: 0.95rem;
    }
}

@media (max-width: 991px) {
    .contact-section {
        padding-top: 3.5rem;
    }
}

/* Footer */
.site-footer {
    background: #f4f6f9;
    color: #4a5562;
    font-size: 0.9rem;
    margin-top: 1.25rem;
    border-top: 1px solid #dfe3e7;
    box-shadow: 0 -2px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Tighten spacing before footer */
#contact {
    padding-bottom: 2.5rem;
}

/* Controlled gap between contact and footer */
#contact+.site-footer {
    margin-top: 1.25rem;
}

.site-footer .footer-top {
    padding-top: 3.25rem;
}

.site-footer a {
    color: #2c3e50;
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--accent-orange);
}

.footer-top {
    padding: 3.75rem 0 2.75rem;
}

.footer-block h5 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0 0 1.1rem;
    letter-spacing: .3px;
    color: #2c3e50;
}

.footer-list li {
    margin-bottom: .45rem;
}

.footer-list li:last-child {
    margin-bottom: 0;
}

.footer-brand .brand-inline {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.footer-logo {
    width: 64px;
    height: auto;
    object-fit: contain;
}

.brand-text .brand-heading {
    font-size: 1.05rem;
    margin: 0 0 .35rem;
    font-weight: 700;
    color: #2c3e50;
}

.brand-text .tagline {
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
    color: #56616b;
}

.links-cols {
    columns: 1;
    column-gap: 0;
}

.links-cols li {
    margin-bottom: 0;
    padding: 4px 0 6px;
    border-bottom: 1px solid #eceef1;
}

.links-cols li:last-child {
    border-bottom: none;
}

.links-cols a {
    font-size: 0.8rem;
}

.company-list li {
    position: relative;
    padding-left: 1.1rem;
}

.company-list li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 6px;
    height: 6px;
    background: var(--accent-orange);
    border-radius: 50%;
    opacity: .55;
}

.alt-font {
    font-family: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
    letter-spacing: .2px;
}

.alt-font li {
    font-variant-ligatures: discretionary-ligatures;
}

.footer-legal {
    background: #f7f9fa;
    padding: 1rem 0;
    border-top: 1px solid #e3e7ea;
}

.legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    align-items: center;
}

.legal-link {
    font-size: 0.75rem;
    letter-spacing: .5px;
    font-weight: 600;
    color: #6d6e71;
    text-transform: none;
}

.legal-link:hover {
    color: var(--accent-orange);
}

.sep {
    color: #c1c7cc;
}

.copy {
    color: #6c7680;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: .3px;
}

@media (max-width: 991px) {
    .links-cols {
        columns: 1;
    }
}

@media (max-width: 575px) {
    .footer-top {
        padding: 3rem 0 2rem;
    }

    .footer-logo {
        width: 56px;
    }

    .legal-links {
        justify-content: center;
    }

    .footer-legal {
        text-align: center;
    }
}

.btn-accent {
    background-color: var(--accent-orange);
    color: white;
    border: none;
}

.btn-accent:hover {
    background-color: #d46b14;
}

/* Disabled state for accent button */
.btn-accent[disabled],
.btn-accent:disabled {
    background: #e0e4e8 !important;
    color: #8a949d !important;
    cursor: not-allowed;
    box-shadow: none;
    opacity: 1;
    /* keep text readable */
    position: relative;
}

.btn-accent[disabled]:hover,
.btn-accent:disabled:hover {
    background: #e0e4e8 !important;
    color: #8a949d !important;
}

/* Product grid image styling */
.product-image {
    width: 100%;
    max-width: 350px;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f8f8;
    border-radius: 10px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Product card styling */
.product-card {
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
}

/* Full category page grid */
.category-grid-wrapper {
    padding: 2rem 0 4rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.75rem 1.25rem;
    align-items: stretch;
}

/* Always show at least 2 columns on very small screens */
@media (max-width: 430px) {
    .category-grid {
        /* Force exactly two columns; items will shrink below 180px if needed */
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 576px) {
    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (min-width: 992px) {
    .category-grid {
        gap: 2rem 1.75rem;
    }
}

.cat-card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
}

.cat-img-wrap {
    width: 100%;
    aspect-ratio: 1/1;
    background: #f8f8f8;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: box-shadow .25s, transform .25s;
    padding: 6px;
}

.cat-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cat-card-inner:hover .cat-img-wrap {
    box-shadow: 0 6px 22px -4px rgba(0, 0, 0, 0.18);
    transform: translateY(-4px);
}

.cat-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0.75rem 0 0;
    color: var(--dark-gray);
}

.category-page-hero {
    padding: 7.5rem 0 2.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #f7f9fb 55%, #eef2f6 100%);
}

.category-page-hero h1 {
    font-size: clamp(1.9rem, 2.6vw, 3rem);
    font-weight: 700;
    color: var(--dark-gray);
    margin: 0 0 .75rem;
    letter-spacing: -0.5px;
}

.category-page-hero p.lead {
    font-size: 1.05rem;
    color: #4a5562;
    max-width: 820px;
    margin: 0 auto;
}

.breadcrumb-cat {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    color: #888;
    margin-bottom: 1rem;
}

.product-card:hover .product-image {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.25s;
}

.image-indicators {
    display: flex;
    gap: 4px;
    justify-content: center;
    margin-top: 6px;
    min-height: 12px;
}

.indicator-dot {
    width: 8px;
    height: 8px;
    background: #1e6bd6;
    border-radius: 50%;
    opacity: 0.35;
    transition: opacity 0.2s, transform 0.2s;
}

.product-card:hover .indicator-dot {
    opacity: 0.7;
    transform: scale(1.1);
}

.indicator-more {
    font-size: 0.65rem;
    line-height: 1;
    background: #1e6bd6;
    color: #fff;
    padding: 2px 4px;
    border-radius: 10px;
    opacity: 0.8;
}

.product-title {
    margin-top: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-gray);
    text-align: center;
}

/* Ensure Swiper slider does not leak images outside */
.product-swiper {
    overflow: hidden;
    position: relative;
}

.swiper-wrapper {
    width: 100%;
    height: 100%;
}

/* Modal Styles */
.modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #fff;
    margin: auto;
    padding: 30px;
    border-radius: 10px;
    max-width: 900px;
    width: 90%;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    position: relative;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    cursor: pointer;
    z-index: 10;
}

.modal-body {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.modal-text {
    flex: 1 1 300px;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* ensure left alignment */
}

.modal-text h2 {
    margin-bottom: 20px;
}

.modal-text ul {
    padding-left: 20px;
}

.modal-slider {
    flex: 1 1 350px;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-slider img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.slider-controls {
    display: flex;
    gap: 20px;
}

/* Enhanced slider buttons */
.slider-controls .slider-btn {
    --btn-size: 54px;
    background: linear-gradient(135deg, #ffffff 0%, #f1f3f5 100%);
    border: 1px solid #d9dde1;
    width: var(--btn-size);
    height: var(--btn-size);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.08) inset;
    transition: box-shadow .25s, transform .25s, background .25s;
    padding: 0;
    color: var(--dark-gray);
    font: inherit;
}

.slider-controls .slider-btn:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12), 0 0 0 3px rgba(245, 130, 32, 0.15);
}

.slider-controls .slider-btn:active {
    transform: scale(.92);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
}

.slider-controls .slider-btn:focus-visible {
    outline: 3px solid var(--accent-orange);
    outline-offset: 2px;
}

.slider-btn-icon {
    display: block;
    font-size: 1.9rem;
    line-height: 1;
    pointer-events: none;
}

/* Ensure SVG inherits color */
.slider-btn-icon path {
    stroke: currentColor;
}

@media (max-width: 600px) {
    .slider-controls {
        gap: 12px;
    }

    .slider-controls .slider-btn {
        --btn-size: 46px;
    }

    .slider-btn-icon {
        font-size: 1.6rem;
    }
}

/* --------------------------------------------------
   Mobile modal fine‑tuning (product modals)
   - Make images percentage based (not full width) to avoid feeling oversized
   - Maintain aspect ratio via height:auto
   - Slightly tighten horizontal padding so text has more usable space
--------------------------------------------------- */
@media (max-width: 600px) {
    /* Constrain image width & center */
    .modal-slider img,
    .modal-main-image {
        width: 90%;              /* percentage sizing as requested */
        max-width: 90%;
        height: auto;            /* keep natural aspect ratio */
        max-height: 55vh;        /* prevent excessively tall images */
        margin-left: auto !important;
        margin-right: auto !important;
        display: block;          /* enables auto margins to center */
        padding-left: 0;         /* remove internal horizontal bias */
        padding-right: 0;
    }

    /* Reduce side padding inside modal for more content width */
    .modal-content {
        padding-left: 10px;
        padding-right: 10px;
    }

    /* Light internal padding adjustment for text block */
    .modal-text {
        padding-left: 4px;
        padding-right: 4px;
    }

    /* Ensure the slider container itself centers children fully */
    .modal-slider {
        align-items: center !important;
        width: 100%;
        padding-left: 0;
        padding-right: 0;
        text-align: center;
    }

    /* Force vertical stacking & neutral widths so centering works predictably */
    .modal-body {
        flex-direction: column;
        align-items: center; /* center child blocks */
        gap: 24px; /* slightly tighter on small screens */
    }

    .modal-text, .modal-slider {
        flex: 0 0 auto;
        min-width: 0; /* allow shrinking below previous min-widths */
        width: 100%;
    }

    /* Center the navigation buttons below the image */
    .slider-controls {
        justify-content: center;
        width: 100%;
    }
}