body {
    font-family: var(--font-family), sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
}

/* ================================
   GENERAL NAVBAR IMPROVEMENTS
================================== */
.navbar {
    padding: 0.7rem 1rem;
    transition: all 0.3s ease;
}

/* Logo hover */
.navbar-brand img {
    transition: transform 0.2s ease;
}
.navbar-brand img:hover {
    transform: scale(1.05);
}

/* Navbar links */
.navbar-nav .nav-link {
    font-weight: 500;
    color: #333;
    transition: color 0.2s ease, transform 0.2s ease;
}
.navbar-nav .nav-link:hover {
    color: var(--primary-color);
    transform: translateY(-1px);
}
.navbar-nav .nav-link.active {
    color: #D80032 !important;
    font-weight: 600;
}

/* Dropdown menu styling */
.dropdown-menu {
    border-radius: 10px;
    padding: 0.75rem 0;
    animation: fadeIn 0.2s ease;
}
.dropdown-item:hover {
    background-color: #f3f3f3;
}

/* Fade animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ================================
   TOPBAR – CUSTOM STYLE
================================== */

.topbar {
    background-color: #f8f9fa;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.topbar .container {
    min-height: 38px;
}

/* Links */
.topbar a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.topbar a:hover {
    color: var(--primary-color);
}

/* Social icons */
.topbar-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-left: 6px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.topbar-social i {
    font-size: 1.15rem;
    color: #333;
}

.topbar-social:hover {
    background-color: color-mix(in srgb, var(--primary-color) 15%, transparent);
}

.topbar-social:hover i {
    color: var(--primary-color);
}

/* Phone icon */
.topbar-left i {
    font-size: 1rem;
    margin-right: 6px;
}

/* ================================
   TOPBAR RESPONSIVE
================================== */

@media (max-width: 576px) {
    /* Verberg telefoonnummer, behoud icoon */
    .topbar-left a {
        display: none;
    }

    /* Centreer socials */
    .topbar .container {
        justify-content: center;
    }

    .topbar-right {
        gap: 4px;
    }
}

/* ----------------------------
        SEARCH BAR
----------------------------- */
.navbar form input[type="search"] {
    border-radius: 50px;
    padding-left: 20px;
    border: 1px solid #ddd;
    transition: box-shadow 0.2s ease;
}
.navbar form input[type="search"]:focus {
    box-shadow: 0 0 0 0.15rem rgba(216, 0, 50, 0.25);
    border-color: var(--primary-color);
}

/* ----------------------------
        CART BUTTON
----------------------------- */
.btn-outline-dark.position-relative {
    border-radius: 50px;
    padding: 6px 18px;
    font-weight: 500;
    transition: all 0.2s ease;
}
.btn-outline-dark:hover {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}
.btn-outline-dark:hover .badge {
    background-color: #fff;
    color: var(--primary-color);
}

/* Badge styling */
.btn .badge {
    position: absolute;
    top: -6px;
    right: -6px;
    font-size: 0.75rem;
    padding: 4px 7px;
}

/* AUTH LINKS + USER + CART */
.nav-auth-link,
.nav-user-link {
    font-weight: 500;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    transition: 0.2s;
}
.nav-auth-link i,
.nav-user-link i {
    font-size: 1.1rem;
    margin-right: 6px;
}
.nav-auth-link:hover,
.nav-user-link:hover {
    color: var(--primary-color);
    transform: translateY(-1px);
}

/* Dropdown user */
#userDropdown + .dropdown-menu {
    border-radius: 8px;
    padding: 0.5rem 0;
}
#userDropdown + .dropdown-menu .dropdown-item {
    padding: 8px 18px;
    font-size: 0.95rem;
}
#userDropdown + .dropdown-menu .dropdown-item:hover {
    background-color: #f5f5f5;
}

/* Cart button */
.btn-cart {
    border: 1px solid #333;
    border-radius: 50px;
    padding: 6px 18px;
    background: white;
    transition: 0.25s;
}
.btn-cart:hover {
    background-color: var(--primary-color);
     border-color: var(--primary-color);
    color: white;
}
.btn-cart:hover .badge {
    background: white !important;
    color: #D80032 !important;
}

/* Center items inside navbar */
.navbar-nav.align-items-center > li {
    display: flex;
    align-items: center;
}

/* ----------------------------
        RESPONSIVENESS
----------------------------- */
@media (max-width: 991px) {
    .navbar-nav .nav-link {
        padding-left: 10px;
        font-size: 1.05rem;
    }
    .navbar form {
        display: none !important;
    }
    .dropdown-menu {
        border-radius: 0;
    }
}
@media (min-width: 992px) {
    .btn-outline-dark.position-relative {
        margin-left: 10px;
    }
}

/* ===================================
   PRODUCT CARD – CUSTOM DESIGN SYSTEM
=================================== */

.card-custom {
    position: relative;
    border: none;
    border-radius: 18px;
    background-color: #fff;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-custom:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.15);
}

/* ======================
   IMAGE
====================== */

.card-custom .ratio {
    overflow: hidden;
}

.card-custom img {
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card-custom:hover img {
    transform: scale(1.08);
}

/* ======================
   BADGE
====================== */

.card-custom .badge-top {
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    letter-spacing: 0.3px;
    z-index: 5;
}

/* ======================
   Home page Categories
====================== */
.category-img {
    height: 200px;
    object-fit: cover; /* vult het kader zonder vervorming */
}

/* ======================
   BODY
====================== */

.card-custom .card-body {
    padding: 1rem;
    text-align: center;
    flex: 1;
}

.card-custom h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 0.4rem;
}

.card-custom .text-muted {
    font-size: 0.8rem;
}

.card-custom .fs-5 {
    font-size: 1.05rem !important;
    color: var(--primary-color, #d80032);
}

/* ======================
   FOOTER / ACTIONS
====================== */

.card-custom .card-footer {
    background: transparent;
    border-top: none;
    padding: 0.75rem 1rem 1.2rem;
}

/* Buttons container */
.card-custom .card-footer .d-flex {
    gap: 0.5rem;
}

/* ======================
   BUTTONS
====================== */
/* Card footer: knoppen naar de zijkanten */
.card-custom .card-footer .d-flex {
    justify-content: space-between; /* spreidt de knoppen naar de kanten */
    gap: 0.5rem; /* kleine ruimte tussen de knoppen als ze smal zijn */
}

/* Voor extra kleine buttons */
.btn-xs {
    font-size: 0.72rem;
    padding: 5px 12px;
    border-radius: 999px;
    font-weight: 500;
    line-height: 1.2;
    transition: all 0.25s ease;
    flex: none; /* voorkomt dat ze uitrekken */
}
/* ======================
   Home page slider
====================== */

.hero-slide {
    height: 80vh;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.hero-slide .container {
    position: relative;
    z-index: 2;
}

.hero-product {
    max-height: 400px;
    animation: float 3s ease-in-out infinite;
}

/* subtle floating effect */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* responsive */
@media (max-width: 768px) {
    .hero-slide {
        height: auto;
        padding: 60px 0;
        text-align: center;
    }

    .hero-product {
        margin-top: 20px;
        max-height: 250px;
    }
}

/* ======================
   RESPONSIVE
====================== */

@media (max-width: 768px) {
    .card-custom h3 {
        font-size: 0.9rem;
    }

    .btn-xs {
        width: 100%;
    }

    .card-custom .card-footer .d-flex {
        flex-direction: column;
    }
}
