@import url('/css/shared-custom.css');
@import url('https://fonts.googleapis.com/css?family=Josefin+Sans:300,400,600,700&display=swap');

html, body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: #333333;
    background-image: url("/assets/templates/hetcolofon/images/hetcolofonbg.png");
    background-repeat: repeat;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container-wide {
    width: 95%;
    max-width: 1600px;
    margin: 0 auto;
}

/* --- Header Basis (Desktop) --- */
.header-wrapper {
    background-color: #ffffff;
    padding: 20px 0;
    border-bottom: 1px solid #e5e5e5;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
    position: relative;
    z-index: 1001;
}

.header-main-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Links: Logo + Naam & Socials */
.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-logo {
    max-height: 80px;
    width: auto;
    display: block;
}

.title-socials-stack h1 {
    margin: 0 !important;
    font-size: 32px !important;
    color: #4EB5A6;
    font-weight: 700;
    line-height: 1.1;
}

.header-socials {
    margin-top: 5px;
    display: flex;
    gap: 12px;
}

.header-socials a {
    color: #4EB5A6;
    font-size: 18px;
    text-decoration: none;
    transition: color 0.2s;
}

.header-socials a:hover {
    color: #333;
}

/* Rechts: Contact + Cart */
.header-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.header-contact {
    text-align: right;
    font-size: 15px;
    color: #666;
}

.contact-item i {
    color: #4EB5A6;
    margin-right: 5px;
}

.contact-item a {
    color: #666;
    text-decoration: none;
    font-weight: 600;
}

/* --- Winkelwagen --- */
.svg-wrapper {
    width: 48px;
    height: 48px;
    background-color: #4EB5A6;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.svg-wrapper:hover {
    transform: scale(1.1);
    background-color: #3d9488;
}

#shoppingcartbtn {
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    width: 100%;
    height: 100%;
}

#shoppingcartbtn .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ffffff !important;
    color: #4EB5A6 !important;
    border: 2px solid #4EB5A6;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 50%;
    font-weight: bold;
}

/* --- Navigatie & Algemeen --- */
.blok1-nav-wrapper {
    background-color: #f9f9f9;
    border-bottom: 4px solid #4EB5A6;
    z-index: 1000;
}

.nav-menu {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 10px 0;
    margin: 0;
    flex-wrap: wrap;
}

.nav-menu a {
    color: #333;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 15px;
    padding: 12px 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-menu a:hover,
.nav-menu .active a {
    color: #4EB5A6;
    background-color: rgba(78, 181, 166, 0.05);
}

.navbar-toggler {
    border-color: #4EB5A6;
}

.navbar-toggler .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%234EB5A6' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

#midden {
    flex: 1 0 auto;
}

.card, .card-ghost, .card-solid {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 4px;
    transition: box-shadow 0.3s ease;
}

.card-ghost {
    background: #fdfdfd;
    border: 1px dashed #4EB5A6;
}

.card-body {
    padding: 20px;
}

h1, h2, h3, h4, h5 {
    color: #4EB5A6;
    font-weight: 700;
}

.btn-primary, .btn-default {
    background-color: #4EB5A6 !important;
    border: none !important;
    color: #ffffff !important;
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 600;
    border-radius: 2px;
    padding: 10px 20px;
    text-shadow: none;
    background-image: none;
}

.btn-primary:hover {
    background-color: #3d9488 !important;
}

/* --- Footer --- */
.nieuwe-footer {
    background-color: #4EB5A6;
    color: #ffffff;
    padding: 40px 0 20px 0;
    margin-top: 50px;
}

.nieuwe-footer h5 {
    color: #ffffff !important;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.nieuwe-footer a {
    color: #ffffff;
    text-decoration: none;
    opacity: 0.9;
}

.nieuwe-footer a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* --- Mobiele Optimalisatie (Media Query) --- */
@media (max-width: 991px) {
    .header-main-flex {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .header-left {
        flex-direction: column;
        gap: 10px;
    }

    .header-socials {
        justify-content: center;
    }

    .header-right {
        flex-direction: column;
        gap: 15px;
    }

    .header-contact {
        text-align: center;
    }

    .nav-menu {
        flex-direction: column;
        align-items: center;
    }
}

/* Card specific styling */
.favorite-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 12px;
    overflow: hidden;
}

.favorite-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Fix image scaling issues */
.card-img-wrapper {
    height: 240px; /* Fixed height for consistency */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fdfdfd;
}

.card-img-wrapper img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    object-fit: contain; /* Prevents the "stretching" seen in your screenshot */
}

/* Line Clamping: Limits titles to 2 lines exactly */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 3rem; /* ensures the gap is the same even for 1-line titles */
    line-height: 1.5rem;
    font-weight: 700;
}

/* Table refinements */
.table th {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
}


.card-img-top {
    height: 180px;
    width: 100%;
    object-fit: contain;
    display: block;
    margin-left: auto;
    margin-right: auto;
    flex-shrink: 0;
    margin-bottom: 15px;
    padding: 10px;
}

.card-body.d-flex.flex-column {
    height: auto !important;
}

.button-price {
    margin-top: auto;
    padding-top: 15px;
}

.card {
    height: 100%;
}