/* Original Blue/White/Green Color Palette */
:root {
    --primary: #1771BC; /* Original blue from top bar */
    --secondary: #28a745; /* Professional green for CTAs */
    --accent: #218838; /* Darker green for hover */
    --dark: #333; /* Dark grey for text */
    --light: #f8f9fa; /* Light grey background */
    --text-primary: #333; /* Dark grey */
    --text-secondary: #6c757d; /* Medium grey */
    --primary-rgb: 23, 113, 188;
    --secondary-rgb: 40, 167, 69;
    --body-bg: white;
    --card-bg: white;
    --border: #e9ecef;
    --hero-overlay: rgba(255, 255, 255, 0.85);
}

/* Icons use primary color everywhere */
.navbar-nav .nav-link i,
.navbar-collapse .nav-link i,
.navbar .container-xl > a.nav-link.d-lg-none i,
.bottom-bar-link:hover i,
.mobile-nav-icons .nav-link i,
.blog-card small.text-muted i,
.purchase-perks i,
.shipping-payment-info i,
.shipping-payment-info .fa-check-circle,
.product-features i,
.service-card i,
.shipping-info-bar i,
.empty-cart i,
.blog-post-meta-header i,
.auth-welcome-card ul li i,
.product-card .text-success i,
.product-card small.text-success i {
    color: var(--primary) !important;
}

/* All titles and headings in primary color */
h1, h2, h3, h4, h5, h6,
.card-title,
.section-title,
.display-4,
.display-5,
.blog-post-title {
    color: var(--primary);
}

/* Global Styles */
body {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--body-bg);
}

/* Menu opening state - prevent scrollbar jump */
body.menu-opening {
    overflow: hidden;
    transition: none;
}

/* Menu open state - maintain hidden scrollbar */
body.menu-open {
    overflow: hidden;
}

/* Backdrop overlay behind mobile menu */
body.menu-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: transparent;
    z-index: 1059;
    opacity: 0;
    transition: opacity 0.35s ease-out;
    pointer-events: none; /* Don't block clicks - menu items need to be clickable */
}

/* Enhanced backdrop when navigating (darker) */
body.menu-closing {
    overflow: hidden;
}

body.menu-closing::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 1059;
    opacity: 1;
    transition: opacity 0.35s ease-out;
    pointer-events: auto;
}

/* Top Bar - no top border so no white line at very top */
.top-bar {
    margin-top: 0;
    border-top: none;
    background-color: var(--primary); /* Deep Forest Green */
    color: white;
    height: 33px;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
}

/* Bottom Bar */
.bottom-bar {
    background-color: var(--card-bg);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    height: 50px;
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0;
    z-index: 1039;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bottom-bar-content {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    height: 50px;
    padding: 0;
}

.top-bar-item {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.bottom-bar-item {
    display: flex;
    align-items: center;
    white-space: nowrap;
    color: var(--text-secondary);
    margin: 0;
    padding: 0;
}

.top-bar-item i {
    font-size: 12px;
    color: white;
}

.bottom-bar-item i {
    font-size: 11px;
    color: var(--text-secondary);
}

.bottom-bar-link {
    display: flex;
    align-items: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
    margin: 0;
    padding: 0;
}

.bottom-bar-link:hover {
    color: var(--primary);
    text-decoration: none;
}

/* Mobile Carousel */
.top-bar-carousel {
    position: relative;
    height: 33px;
    overflow: hidden;
    text-align: center;
    line-height: 33px;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 33px;
    line-height: 33px;
    text-align: center;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.5s ease-in-out;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-item.active {
    opacity: 1;
    transform: translateX(0);
}

.carousel-item.prev {
    transform: translateX(-100%);
    opacity: 0;
}

.carousel-item i {
    font-size: 12px;
    color: white;
}

/* Modern Navigation - no top border to avoid white line under top bar */
.navbar {
    margin-top: 0;
    border-top: none;
    height: 66px; /* Reduced navbar height */
    background-color: var(--card-bg);
    box-shadow: 0 2px 15px rgba(var(--primary-rgb), 0.1);
    padding: 0.5rem 0;
}

/* Sticky header on mobile - complete header (top bar + navbar) */
@media (max-width: 991.98px) {
    /* Make top bar sticky first */
    .top-bar {
        position: sticky;
        top: 0;
        z-index: 1040;
        width: 100%;
    }
    
    /* Make navbar sticky right below top bar */
    .navbar {
        position: sticky;
        top: 33px; /* Height of top bar */
        z-index: 1030;
        width: 100%;
    }
}

.navbar-nav .nav-link {
    position: relative;
    padding: 0.5rem 1rem !important;
    margin: 0 0.2rem;
    transition: all 0.3s ease;
    color: var(--text-primary);
}

/* Navbar brand and logo adjustments */
.navbar-brand {
    display: flex;
    align-items: center;
    height: 100%;
    text-decoration: none;
}

.navbar-brand img.navbar-logo {
    max-height: 56px;
    width: auto;
    object-fit: contain;
}

/* Desktop navbar layout */
@media (min-width: 992px) {
    .navbar .container-xl {
        justify-content: flex-start;
    }
}

/* Mobile navbar layout */
@media (max-width: 991.98px) {
    .navbar .container-xl {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        position: relative;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .navbar-brand {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: auto;
    }
    
    /* Hamburger button - consistent spacing */
    .navbar-toggler {
        margin-right: 0;
        padding: 0.5rem;
        flex-shrink: 0;
    }
    
    /* Mobile cart icon - align to match hamburger button spacing */
    .navbar .container-xl > a.nav-link.d-lg-none {
        color: var(--primary) !important;
        padding: 0.5rem !important;
        margin-right: 0;
        flex-shrink: 0;
    }
    
    .navbar .container-xl > a.nav-link.d-lg-none i.fa-shopping-cart::before {
        color: var(--primary) !important;
    }
    
    .navbar .d-lg-none a.nav-link i.fa-shopping-cart {
        font-size: 1.2rem;
        margin-left: 0;
    }
    
    /* Mobile cart badge positioning */
    .navbar .d-lg-none #mobileCartBadge.badge {
        top: -8px !important;
        right: 0px !important;
        left: auto !important;
        transform: none !important;
        -webkit-transform: none !important;
        font-size: 0.65rem !important;
        min-width: 16px !important;
        height: 16px !important;
        padding: 0.1rem 0.3rem !important;
    }
}

.logo-text {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1;
    display: flex;
    align-items: flex-end;
    gap: 0.2rem;
    position: relative;
    color: var(--secondary);
    text-transform: uppercase;
}

.logo-main {
    color: var(--text-secondary);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    font-weight: 800;
}

.logo-dot {
    color: var(--primary); /* Original blue from top bar */
    font-size: 0.3em;
    display: flex;
    align-items: flex-end;
    margin: 0 0.05rem;
    margin-right: -3px;
    margin-bottom: 0;
    transform: scale(2.5);
    position: relative;
}

.logo-dot i {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.logo-accent {
    color: var(--primary); /* Original blue from top bar */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    font-weight: 800;
    letter-spacing: 0.5px;
}


.navbar-brand:hover .logo-main {
    color: var(--text-primary);
}

.navbar-brand:hover .logo-accent {
    color: var(--primary);
}

.navbar-nav .nav-link:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

.navbar-nav .nav-link i {
    color: var(--primary);
    margin-right: 0.5rem;
    font-size: 1rem;
}

/* For the collapsed navbar */
    /* Mobile Specific Styles */
@media (max-width: 768px) {
    .navbar-collapse .nav-link {
        color: var(--text-primary); /* Set text color to grey for mobile */
    }
    
    .navbar-collapse .nav-link i {
        color: var(--primary);
        font-size: 1rem;
    }
    
    /* Bottom Bar Mobile - Hidden */
    .bottom-bar {
        display: none;
    }
}

/* Header Section */
header.py-5 {
    background: var(--card-bg);
    padding: 6rem 0 !important;
    position: relative;
    overflow: hidden;
}

/* Mobile header adjustments */
@media (max-width: 768px) {
    header.py-5 {
        padding: 3rem 0 !important;
        margin-top: 1rem;
    }
    
    
}



.display-4 {
    font-weight: 700;
    color: var(--primary);
    text-shadow: none;
}

.lead {
    color: var(--text-secondary);
    text-shadow: none;
}

/* Main Content */
main {
    background-color: var(--light);
}

/* Cards and Content Boxes */
.card {
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.08);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    border: 1px solid var(--border);
}

.card:hover {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Oplossingen.php bundle product cards: inner blocks were painting over rounded corners, softening the top border */
.oplossingen-bundle-card {
    overflow: hidden;
    border-color: #dee2e6;
}

.oplossingen-bundle-intro {
    line-height: 1.55;
}

.oplossingen-bundle-intro img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

.oplossingen-bundle-intro a {
    word-break: break-word;
}

.oplossingen-bundle-intro p:last-child {
    margin-bottom: 0;
}

/* .lead uses light font-weight; "bolder" barely steps up — make Quill bold obvious */
.oplossingen-bundle-intro strong,
.oplossingen-bundle-intro b {
    font-weight: 700;
}

.card-body {
    padding: 2rem;
}

.card-title {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.card-text {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Buttons */
.btn {
    border-radius: 25px;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--secondary);
    border: none;
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--secondary-rgb), 0.3);
    background: var(--accent);
    color: white;
    position: relative;
}

.btn-primary:hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 25px;
}

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

.btn-success:hover {
    background: var(--accent);
    color: white;
    position: relative;
}

.btn-success:hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 25px;
}

/* Contact Info Section */
.contact-info-item {
    background: rgba(var(--secondary-rgb), 0.05);
}

.contact-info-item:hover {
    background: rgba(var(--secondary-rgb), 0.1);
}

.contact-info-item i {
    color: var(--primary);
}

/* Form Elements */
.form-control {
    border: 2px solid var(--gradient-light);
    border-radius: 10px;
    padding: 0.7rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 0.2rem rgba(var(--secondary-rgb), 0.1);
}

/* Content Sections */
.content-section h2::after {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

/* Form Checks */
.form-check {
    background: rgba(var(--secondary-rgb), 0.05);
}

.form-check:hover {
    background: rgba(var(--secondary-rgb), 0.1);
}

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

/* Contact form card: blue-tinted inputs, no background on checkbox sections */
.contact-form-card .form-control,
.contact-form-card textarea.form-control {
    background-color: rgba(var(--primary-rgb), 0.08);
}
.contact-form-card .form-control:focus,
.contact-form-card textarea.form-control:focus {
    background-color: rgba(var(--primary-rgb), 0.1);
    border-color: var(--secondary);
    box-shadow: 0 0 0 0.2rem rgba(var(--secondary-rgb), 0.1);
}
.contact-form-card .form-check {
    background: none !important;
}
.contact-form-card .form-check:hover {
    background: none !important;
}
.contact-form-card .btn-primary {
    box-shadow: 0 2px 8px rgba(var(--secondary-rgb), 0.25);
    background: var(--accent);
}
.contact-form-card .btn-primary:hover {
    box-shadow: 0 4px 12px rgba(var(--secondary-rgb), 0.35);
    background: var(--accent);
}

/* Cookie Consent Banner */
.toast-container {
    z-index: 9999;
}

/* Cart Badge */
#cartBadge, #mobileCartBadge, #mobileMenuCartBadge {
    font-size: 0.7rem !important;
    padding: 0.25rem 0.4rem !important;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    top: -3px !important;
    right: -3px !important;
    left: auto !important;
    transform: none !important;
}


/* Mobile Navigation Icons */
.mobile-nav-icons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mobile-nav-icons .nav-link {
    color: var(--primary);
    padding: 0.5rem;
    text-decoration: none;
}

.mobile-nav-icons .nav-link:hover {
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: 0.25rem;
}

.mobile-nav-icons .dropdown-toggle::after {
    display: none;
}

/* Mobile Slide-in Menu */
@media (max-width: 991.98px) {
    .navbar-collapse {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--card-bg);
        transition: right 0.35s ease-out, opacity 0.35s ease-out, visibility 0.35s ease-out;
        z-index: 1060;
        padding: 0;
        overflow-y: auto;
        display: block !important;
        visibility: hidden;
        opacity: 0;
        transform: translateZ(0); /* Hardware acceleration */
        will-change: transform;
        backface-visibility: hidden;
        isolation: isolate;
    }
    
    .navbar-collapse.show {
        visibility: visible;
        opacity: 1;
        right: 0;
        top: 0; /* Cover the entire screen including header */
        height: 100vh; /* Full viewport height */
    }
    
    .navbar-collapse .navbar-nav {
        flex-direction: column;
        width: 100%;
        margin: 0;
        padding: 1.5rem 1.5rem;
        padding-top: calc(104px + 1.5rem); /* Start below header (104px actual height) with adequate spacing */
    }
    
    .navbar-collapse .nav-item {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .navbar-collapse .nav-link {
        padding: 1rem;
        border-bottom: 1px solid var(--border);
        display: flex;
        align-items: center;
        color: var(--text-primary);
        font-weight: normal;
        text-decoration: none;
    }
    
    .navbar-collapse .nav-link:hover {
        background: var(--light);
        color: var(--text-primary);
        text-decoration: none;
    }
    
    .navbar-collapse .nav-link i {
        margin-right: 0.75rem;
        width: 20px;
        text-align: center;
    }
    
    /* Mobile Menu Header */
    .mobile-menu-header {
        position: fixed;
        top: 33px; /* Position below the blue top bar */
        left: 0;
        right: 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1.25rem 1.5rem;
        border-bottom: 1px solid var(--border);
        background: var(--card-bg);
        z-index: 1061; /* Above the menu content */
        min-height: 60px;
        box-sizing: border-box;
    }
    
    .mobile-menu-title {
        font-size: 1.25rem;
        font-weight: 600;
        color: var(--primary);
        margin: 0;
        padding: 0;
        flex: 0 1 auto;
        display: flex;
        align-items: center;
        white-space: nowrap;
    }
    
.close-btn {
    font-size: 2rem;
    color: var(--text-secondary);
        cursor: pointer;
        background: none;
        border: none;
        padding: 0;
        margin: 0;
        margin-left: auto;
        line-height: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        flex-shrink: 0;
    }
    
.close-btn:hover {
    color: var(--text-primary);
}
}

/* Dropdown Menu Fixes */
.dropdown-menu {
    z-index: 1050 !important;
    min-width: 200px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.dropdown-menu.show {
    display: block !important;
}

.navbar-nav .dropdown:hover .dropdown-menu {
    display: block;
}

#cookieConsent {
    border-radius: 15px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    background: var(--card-bg) !important;
    border: 1px solid var(--border);
    min-width: 320px;
    max-width: calc(100vw - 2rem);
}

#cookieConsent .toast-header {
    background-color: var(--primary);
    color: white;
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

#cookieConsent .toast-body {
    background: var(--card-bg);
    padding: 1.5rem;
    color: var(--text-primary);
}

#cookieConsent .toast-body p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Cookie consent buttons */
#cookieConsent .btn {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    min-width: 120px;
}

#cookieConsent .btn:last-child {
    margin-right: 0;
}

/* Cookie consent form checks */
#cookieConsent .form-check {
    background: transparent;
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

#cookieConsent .form-check:hover {
    background: rgba(var(--secondary-rgb), 0.05);
}

#cookieConsent .form-check-input:checked {
    background-color: var(--secondary);
    border-color: var(--primary);
}

/* Cookie consent button container */
#cookieConsent .btn-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* Custom File Upload */
.custom-file-upload {
    background: var(--light);
    border: 2px dashed var(--gradient-light);
}

.custom-file-upload:hover {
    border-color: var(--secondary);
    background: rgba(var(--secondary-rgb), 0.05);
}

/* Section Dividers */
.section-divider {
    background: linear-gradient(135deg, 
        rgba(var(--primary-rgb), 0.1) 0%, 
        rgba(var(--secondary-rgb), 0.1) 100%);
}

/* Map Container */
.map-overlay {
    background: rgba(var(--primary-rgb), 0.1);
}

/* Footer */
footer,
.site-footer {
    background-color: var(--primary);
    color: white;
    margin-top: auto;
}

/* Sticky footer on blog detail page when content is short */
body.page-blog-detail {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
body.page-blog-detail .homepage-section.homepage-section-blue {
    flex: 1 1 auto;
}

.site-footer-link {
    color: white;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.site-footer-link:hover {
    color: white;
    opacity: 0.9;
}

.site-footer-divider {
    margin: 0 0.5rem;
    opacity: 0.8;
}

.site-footer-copyright {
    color: white;
    font-size: 0.9rem;
}

/* Fixed banner for nieuwsbrief feedback (AJAX signup, no full page refresh) */
.site-newsletter-feedback {
    position: fixed;
    top: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10850;
    width: min(520px, calc(100% - 1.5rem));
    box-sizing: border-box;
}

.site-newsletter-feedback[hidden] {
    display: none !important;
}

.site-newsletter-feedback.site-newsletter-feedback--success {
    text-align: center;
}

.site-newsletter-feedback.site-newsletter-feedback--success .btn-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    header.py-5 {
        padding: 4rem 0 !important;
    }
    
    .navbar-nav .nav-link {
        margin: 0.2rem 0;
    }
    
    /* Mobile navbar adjustments */
    .navbar {
        height: 66px; /* Same height as desktop on mobile */
    }
    
    
    .logo-text {
        font-size: 20px; /* Smaller text logo on mobile */
    }
}


    .navbar-nav .nav-link:hover {
        background: rgba(0, 0, 0, 0.05);
        color: var(--text-primary);
        text-decoration: underline;
    }
    
    .navbar-nav .nav-link:hover i {
        color: var(--primary);
    }

    .navbar-nav .nav-link.active {
        background: rgba(0, 0, 0, 0.1);
        color: var(--text-primary);
    }
    
    .navbar-nav .nav-link.active i {
        color: var(--primary);
    }
}

/* Mobile Cookie Consent */
@media (max-width: 576px) {
    .toast-container.position-fixed.bottom-0 {
        padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    #cookieConsent {
        width: calc(100% - 2rem);
        max-width: 100%;
        min-width: 0;
        margin: 0 auto;
    }
    
    #cookieConsent .toast-body {
        padding: 1rem;
    }
    
    #cookieConsent .toast-body p {
        font-size: 0.95rem;
    }
    
    #cookieConsent .btn-container {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    #cookieConsent .btn {
        width: 100%;
        margin-right: 0;
        margin-bottom: 0;
        min-height: 44px;
    }
}

/* Animations */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.animate-in {
    animation: fadeIn 0.5s ease forwards;
}

/* File Upload Styling */
.form-control[type="file"] {
    padding: 1rem;
    cursor: pointer;
    border: 2px dashed var(--gradient-light);
    background: rgba(var(--secondary-rgb), 0.05);
    transition: all 0.3s ease;
}

.form-control[type="file"]:hover,
.form-control[type="file"].drag-over {
    border-color: var(--secondary);
    background: rgba(var(--secondary-rgb), 0.1);
}

#imagePreview {
    min-height: 50px;
}

#imagePreview .position-relative {
    transition: all 0.3s ease;
}

#imagePreview .position-relative:hover {
    transform: scale(1.05);
}

.btn-close {
    opacity: 0.8;
    background-color: var(--card-bg) !important;
    padding: 0.5rem !important;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.btn-close:hover {
    opacity: 1;
}

/* Services Section Header */
main h2 {
    position: relative;
    padding-bottom: 1rem;
}

main h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
}

/* Blog Section Styles - Compact Professional Look */
.blog-card {
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    overflow: hidden;
}

.blog-card:hover {
    box-shadow: 0 15px 35px rgba(var(--primary-rgb), 0.15);
    transform: translateY(-2px);
}

.blog-card .card-img-top {
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    transition: transform 0.3s ease;
    width: 100%;
    object-fit: cover;
    object-position: center;
}

.blog-card:hover .card-img-top {
    opacity: 0.9;
}

/* Blog Card Featured Image */
.blog-card-img {
    height: 200px;
    object-fit: cover;
}

.blog-card .card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
}

.blog-card .card-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary) !important;
    margin-bottom: 0.625rem;
    line-height: 1.4;
    min-height: 3.22rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-card a:hover .card-title {
    color: var(--secondary) !important;
}

.blog-card .card-text {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 0.875rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card .btn-outline-primary {
    border-color: var(--secondary);
    color: var(--secondary);
    font-weight: 500;
    padding: 0.375rem 0.875rem;
    font-size: 0.8rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    margin-top: auto;
}

.blog-card .btn-outline-primary:hover {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: white;
    transform: translateY(-1px);
}

/* Blog page header */
header.bg-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%) !important;
}

/* Blog search and filter section */
.card .form-control,
.card .form-select {
    border: 2px solid rgba(var(--primary-rgb), 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.card .form-control:focus,
.card .form-select:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 0.2rem rgba(var(--secondary-rgb), 0.1);
}

/* Blog pagination */
.pagination .page-link {
    color: var(--primary);
    border: 1px solid rgba(var(--primary-rgb), 0.1);
    padding: 0.5rem 0.75rem;
    margin: 0 0.125rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: white;
    transform: translateY(-1px);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Blog meta information */
.blog-card small.text-muted {
    font-size: 0.8rem;
    color: var(--text-secondary) !important;
}

.blog-card small.text-muted i {
    color: var(--secondary);
    margin-right: 0.25rem;
}

/* Blog section on homepage */
section.py-5.bg-light {
    background: linear-gradient(135deg, var(--light) 0%, var(--border) 100%) !important;
}

/* Reusable light blue homepage section background (kennisbank style) */
.homepage-section-blue,
.homepage-blog-section {
    background-color: var(--light);
}

/* Featured products section */
#featured-products {
    background-color: var(--light);
}

/* Category Cards Section */
.category-cards-section {
    background: var(--light);
}

.category-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.category-card {
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    height: 132px;
    max-height: 132px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.category-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.category-card-placeholder {
    opacity: 0.6;
    cursor: default;
}

.category-card-placeholder:hover {
    transform: none;
}

.category-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light);
    overflow: hidden;
    min-height: 90px;
    max-height: 90px;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--light);
}

.category-image i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.placeholder-icon {
    font-size: 2rem;
    color: var(--text-secondary);
}

.category-title {
    padding: 0.5rem;
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

.category-title h6 {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    text-align: center;
    line-height: 1.2;
}

/* Category image icon sizing */
.category-image i {
    color: var(--text-secondary);
    opacity: 0.7;
}


/* Services section background handled above; spacing via .homepage-section */

/* Blog section title */
.display-5 {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* Blog section lead text */
.lead {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* Blog "All Articles" button */
.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 30px;
}

/* Responsive blog cards */
@media (max-width: 768px) {
    .blog-card .card-body {
        padding: 1rem;
    }
    
    .blog-card .card-title {
        font-size: 1rem;
        min-height: 2.8rem;
        -webkit-line-clamp: 2;
    }
    
    .blog-card .card-text {
        font-size: 0.85rem;
        -webkit-line-clamp: 2;
    }
    
    .blog-card .btn-outline-primary {
        font-size: 0.75rem;
        padding: 0.3rem 0.75rem;
    }
}

/* Blog search results styling */
.text-center.py-5 i.fa-search {
    color: var(--secondary);
    opacity: 0.5;
}

/* Blog filter section */
.card .btn-outline-secondary {
    border-color: var(--text-secondary);
    color: var(--text-secondary);
}

.card .btn-outline-secondary:hover {
    background-color: var(--text-secondary);
    border-color: var(--text-secondary);
    color: white;
}

/* Single blog post content */
.post-content {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-primary);
}

.post-content h2 {
    color: var(--primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.post-content h3 {
    color: var(--primary);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.post-content p {
    margin-bottom: 1.25rem;
}

.post-content ul, .post-content ol {
    margin-bottom: 1.25rem;
    padding-left: 2rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

.post-content blockquote {
    border-left: 4px solid var(--secondary);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--text-secondary);
}

/* Policy pages (retourbeleid, privacy-beleid, algemene-voorwaarden) – align with index/contact */
.policy-content {
    font-size: 1rem;
    line-height: 1.6;
}

.policy-content h2 {
    font-size: 1.25rem;
    color: var(--primary);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.policy-content h3 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.policy-content p {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.policy-content ul,
.policy-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    font-size: 1rem;
}

.policy-content li {
    margin-bottom: 0.35rem;
}

/* Blog post badges / category tags */
.badge {
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-weight: 500;
}

.badge.bg-secondary {
    background-color: var(--secondary) !important;
    color: white !important;
}

.badge.bg-light {
    background-color: var(--light) !important;
    color: var(--text-secondary) !important;
    border: 1px solid var(--border);
}

/* ========================================
   PRODUCT PAGE STYLES
   ======================================== */

/* Product Cards */
.product-card {
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    overflow: hidden;
}

/* Product Card Image Heights */
.product-card-img-desktop {
    height: 120px;
}

.product-card-img-mobile {
    height: 200px;
}

/* Product Card Stock Status Text */
.product-stock-text {
    font-size: 0.7rem;
}

/* Product card: op voorraad / uitverkocht – theme-aware */
.product-card .text-success,
.product-card small.text-success {
    color: var(--secondary) !important;
}
.product-card .text-success i,
.product-card small.text-success i {
    color: var(--secondary) !important;
}
.product-card .text-danger,
.product-card small.text-danger {
    color: #dc3545 !important;
}
.product-card .text-danger i,
.product-card small.text-danger i {
    color: #dc3545 !important;
}

/* Product price – theme-aware (cards and product page) */
.product-price {
    color: var(--secondary) !important;
    font-weight: 600;
}

/* Product Card Compact Buttons */
.btn-product-card {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

.product-card .card-title {
    color: var(--primary) !important;
    font-weight: 600;
}
/* Keep product card title primary when inside link (e.g. products.php listing) */
.product-card a .card-title {
    color: var(--primary) !important;
}

.product-card:hover {
    box-shadow: 0 15px 35px rgba(var(--primary-rgb), 0.15);
}

.product-card .card-img-top {
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    transition: transform 0.3s ease;
    width: 100%;
    object-fit: cover;
    object-position: center;
}

/* Products Page Image Sizing */
.products-page-image {
    height: 250px !important;
    max-height: 250px !important;
    object-fit: cover;
    width: 100%;
}

@media (max-width: 991.98px) {
    .products-page-image {
        height: 200px !important;
        max-height: 200px !important;
    }
}

@media (max-width: 768px) {
    .products-page-image {
        height: 180px !important;
        max-height: 180px !important;
    }
}

.product-card:hover .card-img-top {
    opacity: 0.9;
}

.product-card .card-body {
    padding: 1.5rem;
}

.product-card .card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary) !important;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    min-height: 3.5rem; /* Minimum 2 lines: 1.25rem * 1.4 * 2 = 3.5rem */
    height: 3.5rem;
    overflow: hidden;
    position: relative;
    padding-right: 1rem; /* Space for ellipsis */
    max-height: 3.15rem; /* Limit to 1.8 lines: 1.25rem * 1.4 * 1.8 = 3.15rem */
}

.product-card .card-title::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0.35rem; /* Position at end of 1.8 lines (3.5rem - 3.15rem = 0.35rem from bottom) */
    width: 0.75rem;
    height: 1.75rem; /* Height to cover the truncated area */
    background: linear-gradient(to right, transparent, var(--card-bg) 60%);
    pointer-events: none;
}

.product-card .card-title::before {
    content: '...';
    position: absolute;
    right: 0;
    bottom: 0.35rem;
    color: var(--primary);
    line-height: 1.4;
    font-size: 1.25rem;
}

.product-card .card-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    min-height: 2.85rem; /* Minimum 2 lines: 0.95rem * 1.5 * 2 = 2.85rem */
    height: 2.85rem;
    overflow: hidden;
    position: relative;
    padding-right: 1rem; /* Space for ellipsis */
    max-height: 2.1375rem; /* Limit to 1.5 lines: 0.95rem * 1.5 * 1.5 = 2.1375rem */
}

.product-card .card-text::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0.7125rem; /* Position at end of 1.5 lines (2.85rem - 2.1375rem = 0.7125rem from bottom) */
    width: 0.75rem;
    height: 1.425rem;
    background: linear-gradient(to right, transparent, var(--card-bg) 60%);
    pointer-events: none;
}

.product-card .card-text::before {
    content: '...';
    position: absolute;
    right: 0;
    bottom: 0.7125rem;
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 0.95rem;
}

/* Product Badges */
.badge.bg-danger {
    background-color: #dc3545 !important;
    color: white !important;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
}

.badge.bg-warning {
    background-color: #e0a800 !important;
    color: #212529 !important;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
}

.badge.bg-secondary {
    background-color: var(--secondary) !important;
    color: white !important;
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-weight: 500;
}

/* Product Price Styling */
.h5.text-danger {
    color: #dc3545 !important;
    font-weight: 700;
}

.h5.text-primary {
    color: var(--primary) !important;
    font-weight: 700;
}

.text-decoration-line-through {
    text-decoration: line-through !important;
    opacity: 0.7;
}

/* Product Buttons */
.btn-outline-success {
    border-color: var(--secondary);
    color: var(--secondary);
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-success:hover {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: white;
    transform: translateY(-1px);
}

.btn-outline-secondary {
    border-color: var(--text-secondary);
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    background-color: var(--text-secondary);
    border-color: var(--text-secondary);
    color: white;
    transform: translateY(-1px);
}

/* Product Page Header */
.page-header h1 {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-header .lead {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Product Images */
.product-images .main-image img {
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.product-images .main-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}

.gallery-thumbnails .gallery-thumb {
    border: 3px solid transparent;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    width: 100%;
    height: 80px;
    object-fit: cover;
}

.gallery-thumbnails .gallery-thumb:hover {
    border-color: var(--secondary);
    transform: scale(1.05);
}

.gallery-thumbnails .gallery-thumb.active {
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.2);
}

/* Product Info Section */
.product-info h1 {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 1rem;
}

.product-info .h2 {
    color: var(--primary);
    font-weight: 600;
}

/* Price Section */
.price-section {
    background: var(--light);
    padding: 1rem 1.25rem;
    border-radius: 10px;
    border: 1px solid var(--border);
}

/* Stock Status */
.alert-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border: 1px solid #c3e6cb;
    color: #155724;
    border-radius: 10px;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    border: 1px solid #f5c6cb;
    color: #721c24;
    border-radius: 10px;
}

/* Add to Cart Section */
.add-to-cart {
    background: var(--card-bg);
    padding: 1rem 1.25rem;
    border-radius: 10px;
    border: 1px solid var(--border);
}

.add-to-cart .input-group {
    border-radius: 10px;
    overflow: hidden;
}

.add-to-cart .form-control {
    border: 2px solid var(--border);
    text-align: center;
    font-weight: 600;
}

.add-to-cart .btn-outline-secondary {
    border: 2px solid var(--border);
    background: var(--light);
    color: var(--text-secondary);
    font-weight: 600;
}

.add-to-cart .btn-outline-secondary:hover {
    background: var(--border);
    border-color: var(--border);
}

/* Purchase perks */
.purchase-perks li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    margin-bottom: 0.35rem;
}

.purchase-perks i {
    color: var(--secondary);
}

/* ========================================
   PRODUCT DETAILS: Quantity controls (match listing)
   ======================================== */
.product-info .input-group {
    width: auto;
    align-items: center;
}

.product-info .btn-quantity {
    width: 30px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: var(--card-bg);
    color: var(--text-secondary);
    transition: none !important;
    transform: none !important;
    cursor: pointer;
    flex-shrink: 0;
}

.product-info .btn-quantity:hover {
    background: var(--card-bg) !important;
    color: var(--text-secondary) !important;
    transform: none !important;
}

.product-info .btn-quantity i {
    font-size: 0.85rem;
}

.product-info .quantity-input {
    width: 50px;
    text-align: center;
    border: 2px solid var(--border);
    border-radius: 0;
    padding: 0.35rem 0.25rem;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.product-info .quantity-input::-webkit-outer-spin-button,
.product-info .quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.product-info .quantity-input[type=number] {
    -moz-appearance: textfield;
}

.product-info .quantity-input:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 0.2rem rgba(var(--secondary-rgb), 0.1);
}

/* Shipping & Payment Info */
.shipping-payment-info {
    font-size: 1rem;
}

.shipping-payment-info li {
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.shipping-payment-info i {
    color: var(--secondary);
    margin-right: 0.5rem;
}

.shipping-payment-info .fa-check-circle {
    color: var(--secondary);
}

.shipping-payment-info .fa-times-circle {
    color: #dc3545;
}

/* Product Features */
.product-features h5 {
    color: var(--primary);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.product-features ul {
    margin-bottom: 0;
}

.product-features ul li {
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    padding: 0;
    border-bottom: none;
}

.product-features ul li:last-child {
    margin-bottom: 0;
}

.product-features i {
    color: var(--secondary);
    margin-right: 0.5rem;
}

/* Product Tabs */
.nav-tabs {
    border-bottom: 2px solid var(--border);
    margin-bottom: 0;
}

.nav-tabs .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    border-bottom-color: var(--secondary);
    color: var(--secondary);
    background: rgba(var(--secondary-rgb), 0.05);
}

.nav-tabs .nav-link.active {
    border-bottom-color: var(--primary);
    color: var(--primary);
    background: var(--card-bg);
}

.tab-content .card {
    border-top: none;
    border-radius: 0 0 15px 15px;
}

/* Product Specifications Table */
.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(var(--primary-rgb), 0.02);
}

.table td {
    padding: 1rem;
    vertical-align: middle;
    border-top: 1px solid var(--light);
}

.table td:first-child {
    font-weight: 600;
    color: var(--primary);
    width: 40%;
}

/* Breadcrumb */
.breadcrumb {
    background: linear-gradient(135deg, var(--light), var(--border));
    border-radius: 10px;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
}

/* Breadcrumb overrides on product and blog details */
.product-breadcrumbs .breadcrumb,
.blog-breadcrumbs .breadcrumb {
    background: transparent;
    border-radius: 0;
    padding: 0;
    margin-bottom: 0.5rem;
}

.breadcrumb-item a {
    color: var(--secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--primary);
}

.breadcrumb-item.active {
    color: var(--primary);
    font-weight: 500;
}

/* Product Filters */
.card .form-control,
.card .form-select {
    border: 2px solid rgba(var(--primary-rgb), 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.card .form-control:focus,
.card .form-select:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 0.2rem rgba(var(--secondary-rgb), 0.1);
}

/* Pagination */
.pagination .page-link {
    color: var(--primary);
    border: 1px solid rgba(var(--primary-rgb), 0.1);
    padding: 0.5rem 0.75rem;
    margin: 0 0.125rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: white;
    transform: translateY(-1px);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Product Search Results */
.text-center.py-5 i.fa-search {
    color: var(--secondary);
    opacity: 0.5;
}

/* Product Categories / Category tags */
.badge.bg-secondary {
    background-color: var(--secondary) !important;
    color: white !important;
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

/* Stock Status Icons */
.fa-check-circle {
    color: var(--secondary);
}

.fa-times-circle {
    color: #dc3545;
}

/* Product Description */
.product-description {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-primary);
    font-family: inherit;
}

.product-description h2 {
    color: var(--primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 1.5rem;
}

.product-description h3 {
    color: var(--primary);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    font-size: 1.25rem;
}

.product-description p {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1rem;
}

.product-description ul, .product-description ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
    color: var(--text-primary);
}

.product-description li {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.product-description img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

.product-description blockquote {
    border-left: 4px solid var(--secondary);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--text-secondary);
    font-size: 1rem;
}

.product-description strong, .product-description b {
    font-weight: 600;
    color: var(--text-primary);
}

.product-description a {
    color: var(--primary);
    text-decoration: underline;
}

.product-description a:hover {
    color: var(--secondary);
}

/* Responsive Design for Product Pages */
@media (max-width: 768px) {
    .product-card .card-body {
        padding: 1rem;
    }
    
    .product-card .card-title {
        font-size: 1.1rem;
        line-height: 1.4;
        min-height: 3.08rem; /* Minimum 2 lines: 1.1rem * 1.4 * 2 = 3.08rem */
        height: 3.08rem;
        max-height: 2.772rem; /* Limit to 1.8 lines: 1.1rem * 1.4 * 1.8 = 2.772rem */
    }
    
    .product-card .card-title::after {
        bottom: 0.308rem; /* Position at end of 1.8 lines (3.08rem - 2.772rem = 0.308rem from bottom) */
        height: 1.54rem;
    }
    
    .product-card .card-title::before {
        bottom: 0.308rem;
        font-size: 1.1rem;
    }
    
    .product-card .card-text {
        font-size: 0.9rem;
    }
    
    .gallery-thumbnails .gallery-thumb {
        height: 60px;
    }
    
    .add-to-cart .btn-lg {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }
    
    .nav-tabs .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .product-images .main-image img {
        height: 250px;
    }
    
    .gallery-thumbnails .gallery-thumb {
        height: 50px;
    }
    
    .price-section {
        padding: 1rem;
    }
    
    .add-to-cart {
        padding: 1rem;
    }
}

/* ========================================
   PRODUCT DETAILS PAGE STYLES
   ======================================== */

/* Product Page Container */
.product-page {
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.08);
    padding: 2rem;
    margin: 0;
}

@media (max-width: 768px) {
    .product-page {
        padding: 1.5rem;
        margin: 0.5rem 0;
        border-radius: 10px;
    }
}

@media (max-width: 576px) {
    .product-page {
        padding: 1rem;
        margin: 0.5rem 0;
    }
}

/* Product Header */
.product-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 2rem;
    border-radius: 15px 15px 0 0;
    margin: -2rem -2rem 2rem -2rem;
}

@media (max-width: 768px) {
    .product-header {
        padding: 1.5rem;
        margin: -1.5rem -1.5rem 1.5rem -1.5rem;
        border-radius: 10px 10px 0 0;
    }
}

@media (max-width: 576px) {
    .product-header {
        padding: 1rem;
        margin: -1rem -1rem 1rem -1rem;
    }
}

/* Product Title */
.product-title {
    color: white;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    margin: 0;
    font-size: 2rem;
}

@media (max-width: 768px) {
    .product-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 576px) {
    .product-title {
        font-size: 1.5rem;
    }
}

/* Product price on gradient header (detail page) – white for contrast */
.product-header .product-price {
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    margin: 0.5rem 0 0 0;
}

/* Product Meta */
.product-meta {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-top: 1rem;
}

@media (max-width: 576px) {
    .product-meta {
        font-size: 0.85rem;
    }
}

/* Back Button */
.back-button {
    background: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.1);
    display: inline-block;
    margin-bottom: 1rem;
}

.back-button:hover {
    background: var(--secondary);
    color: white;
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.2);
    text-decoration: none;
}

@media (max-width: 576px) {
    .back-button {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* Product Details Badges - Override for product page header */
.product-header .badge {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-weight: 500;
}

.product-header .badge.bg-success {
    background-color: var(--secondary) !important;
    color: white !important;
}

.product-header .badge.bg-info {
    background-color: #17a2b8 !important;
    color: white !important;
}

.product-header .badge.bg-warning {
    background-color: #fd7e14 !important;
    color: white !important;
}

.product-header .badge.bg-danger {
    background-color: #dc3545 !important;
    color: white !important;
}

/* Product Main Image */
.product-main-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.product-main-image-placeholder {
    width: 100%;
    height: 400px;
}

@media (max-width: 992px) {
    .product-main-image,
    .product-main-image-placeholder {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .product-main-image,
    .product-main-image-placeholder {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .product-main-image,
    .product-main-image-placeholder {
        height: 250px;
    }
}


/* Related Products Images */
.related-product-image {
    height: 200px;
    object-fit: cover;
}

.related-product-placeholder {
    height: 200px;
}

@media (max-width: 768px) {
    .related-product-image,
    .related-product-placeholder {
        height: 180px;
    }
}

@media (max-width: 576px) {
    .related-product-image,
    .related-product-placeholder {
        height: 150px;
    }
}

/* ========================================
   HOMEPAGE REDESIGN - CLEAN DESIGN STYLES
   ======================================== */

/* Shared vertical spacing for homepage rows */
.homepage-section {
    padding: 3rem 0;
}

/* Header rows on listing pages (blog/products) - same blue as hero background */
.homepage-section-header {
    background-color: var(--card-bg);
}

@media (max-width: 768px) {
    .homepage-section {
        padding: 2rem 0;
    }
}

/* Removed extra gap before footer so last section touches footer */
.homepage-section + footer,
.homepage-section + .site-footer {
    margin-top: 0;
}

/* Hero Section */
.hero-section {
    background-color: var(--card-bg);
}

.hero-section .row {
    height: 100%;
    align-items: stretch;
}

.hero-card {
    background-color: var(--card-bg);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 1.3rem; /* Reduced from 2rem by ~33% */
    min-height: 100%;
    transition: box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--hero-overlay);
    z-index: 0;
    border-radius: 15px;
}

.hero-card::after {
    content: '';
    position: absolute;
    bottom: -80px;
    right: -80px;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.15), rgba(var(--primary-rgb), 0.05));
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

/* Animated warning icon */
.fa-beat {
    animation: fa-beat 2s infinite;
}

@keyframes fa-beat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.hero-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.hero-section .display-4 {
    color: var(--primary);
    font-weight: 700;
    font-size: 2.2rem; /* Further reduced to match smaller card */
    margin-bottom: 1.2rem; /* Reduced margin */
}

.hero-section .lead {
    color: var(--text-secondary); /* Medium Grey */
    font-size: 1rem; /* Further reduced to match smaller card */
    margin-bottom: 1.5rem; /* Reduced margin */
}

.hero-section-content {
    margin-bottom: 1.5rem;
}

.hero-section-content:last-child {
    margin-bottom: 0;
}

.hero-cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-cta-buttons .btn {
    flex: 0 0 auto;
}

.btn-outline-primary {
    border: 2px solid var(--primary); /* Original blue from top bar */
    color: var(--primary); /* Original blue from top bar */
    background: transparent;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--primary); /* Original blue from top bar */
    color: white;
    border-color: var(--primary); /* Original blue from top bar */
}

/* Right Column CTA Container */
.col-lg-4 .row {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    margin: 0 !important;
}

.col-lg-4 .row .col-12 {
    flex: 1 !important;
    max-width: 100% !important;
    padding: 0 !important;
}

/* Configurator Box */
.configurator-box {
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
    padding: 1rem; /* Reduced from 1.5rem by ~33% */
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: box-shadow 0.3s ease;
    margin-bottom: 0.7rem; /* Reduced from 1rem */
    min-height: 0;
}

.configurator-box:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.configurator-box h3 {
    color: var(--primary);
    font-weight: 600;
    font-size: 1.1rem; /* Reduced to match smaller card */
    margin-bottom: 0.7rem; /* Reduced margin */
}

.configurator-box p {
    color: var(--text-secondary);
    font-size: 0.9rem; /* Reduced to match smaller card */
    margin-bottom: 1rem; /* Reduced margin */
}

.configurator-box .btn-cta {
    align-self: flex-start; /* Don't stretch to full width */
    width: auto;
}

/* Kennisbank CTA Box */
.kennisbank-cta-box {
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
    padding: 1rem; /* Reduced from 1.5rem by ~33% */
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: box-shadow 0.3s ease;
    min-height: 0;
}

.kennisbank-cta-box:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.kennisbank-cta-box h3 {
    color: var(--primary);
    font-weight: 600;
    font-size: 1.1rem; /* Reduced to match smaller card */
    margin-bottom: 0.7rem; /* Reduced margin */
}

.kennisbank-cta-box p {
    color: var(--text-secondary);
    font-size: 0.9rem; /* Reduced to match smaller card */
    margin-bottom: 1rem; /* Reduced margin */
}

.kennisbank-cta-box .btn-cta {
    align-self: flex-start; /* Don't stretch to full width */
    width: auto;
}

/* CTA Button */
.btn-cta {
    background: var(--secondary); /* Saddle Brown */
    border: none;
    color: white;
    padding: 0.6rem 1.2rem; /* Reduced from 0.75rem 1.5rem */
    border-radius: 6px; /* Reduced from 25px for less rounding */
    font-weight: 600;
    font-size: 0.9rem; /* Reduced font size */
    transition: all 0.3s ease;
    display: inline-block; /* Don't span full width */
    width: auto; /* Allow natural width */
}

.btn-cta:hover {
    background: var(--accent); /* Darker green on hover */
    color: white;
    box-shadow: 0 5px 15px rgba(var(--secondary-rgb), 0.3);
}

/* Add-to-cart success state: "Toegevoegd!" uses accent color (overrides .btn-cta) */
.btn-cta.btn-success,
.product-card .btn-cta.btn-success {
    background: var(--accent) !important;
    color: white !important;
    border: none;
}
.btn-cta.btn-success:hover,
.product-card .btn-cta.btn-success:hover {
    background: var(--accent) !important;
    color: white !important;
}

/* Section Titles */
.section-title {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    display: none;
}

.section-title.text-left {
    text-align: left;
    padding-bottom: 0;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

/* Service Cards */
.service-card {
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
    padding: 1rem; /* Match configurator/kennisbank cards */
    height: 100%;
    transition: box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.service-card h3 {
    color: var(--primary);
    font-weight: 600;
    font-size: 1.1rem; /* Match configurator/kennisbank cards */
    margin-bottom: 0.7rem; /* Match configurator/kennisbank cards */
}

.service-card p {
    color: var(--text-secondary); /* Match configurator/kennisbank cards */
    font-size: 0.9rem; /* Match configurator/kennisbank cards */
    margin-bottom: 1rem; /* Match configurator/kennisbank cards */
}

.service-card i {
    color: var(--primary);
    font-size: 1.5rem; /* Reduced from 2rem to match smaller card */
    margin-bottom: 0.7rem; /* Match configurator/kennisbank cards */
}

/* Services Section Spacing */
.services-section {
    margin-top: 0;
    margin-bottom: 0;
    background: var(--light);
}

/* Custom 5-column layout for featured products */
.col-lg-2-4 {
    flex: 0 0 20%;
    max-width: 20%;
}

@media (max-width: 992px) {
    .col-lg-2-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 768px) {
    .col-lg-2-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Mobile Products Carousel */
.products-mobile-carousel .carousel-container {
    position: relative;
    overflow: hidden;
}

.products-mobile-carousel .carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
}

.products-mobile-carousel .carousel-item {
    flex: 0 0 100%;
    width: 100%;
    position: static !important;
    opacity: 1 !important;
    transform: none !important;
    display: block !important;
}

.products-mobile-carousel .carousel-item.active {
    display: block !important;
}

.products-mobile-carousel .carousel-item:not(.active) {
    display: none !important;
}

.products-mobile-carousel .carousel-control-prev,
.products-mobile-carousel .carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
}

.products-mobile-carousel .carousel-control-prev:hover,
.products-mobile-carousel .carousel-control-next:hover {
    background: var(--card-bg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.products-mobile-carousel .carousel-control-prev {
    left: 10px;
}

.products-mobile-carousel .carousel-control-next {
    right: 10px;
}

.products-mobile-carousel .carousel-control-prev-icon,
.products-mobile-carousel .carousel-control-next-icon {
    width: 20px;
    height: 20px;
    background-size: 20px 20px;
}





/* Responsive Design for Homepage */
@media (max-width: 768px) {
    .hero-section .col-lg-4 {
        margin-top: 2rem;
    }
    
    .hero-section .display-4 {
        font-size: 1.8rem; /* Further reduced for mobile */
    }
    
    .hero-section .lead {
        font-size: 0.95rem; /* Further reduced for mobile */
    }
    
    .hero-cta-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .hero-cta-buttons .btn {
        width: 100%;
        text-align: center;
    }
    
    .col-lg-4 .row {
        height: auto !important;
        display: block !important;
    }
    
    .col-lg-4 .row .col-12 {
        flex: none !important;
        max-width: 100% !important;
    }
    
    .configurator-box {
        margin-bottom: 2rem;
    }
    
    .kennisbank-cta-box {
        margin-bottom: 0;
    }
    
    .carousel-item {
        flex: 0 0 100%;
    }
    
    .carousel-controls {
        display: none;
    }
}


/* ========================================
   CART PAGE STYLES
   ======================================== */

/* Cart Items */
.cart-item {
    transition: all 0.3s ease;
    border: 1px solid rgba(var(--primary-rgb), 0.1);
}

.cart-item:hover {
    box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.1);
    transform: translateY(-2px);
}

.cart-item.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Quantity Controls */
.quantity-input {
    width: 80px;
    text-align: center;
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.quantity-input:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 0.2rem rgba(var(--secondary-rgb), 0.1);
}

.btn-quantity {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border);
    background: var(--card-bg);
    color: var(--text-secondary);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-quantity:hover {
    border-color: var(--secondary);
    background: var(--secondary);
    color: white;
    transform: scale(1.1);
}

.btn-quantity:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Remove Button */
.btn-remove {
    color: var(--secondary);
    background: none;
    border: none;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-remove:hover {
    background: var(--secondary);
    color: white;
    transform: scale(1.1);
}

/* Cart Summary */
.cart-summary {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid var(--border);
    position: sticky;
    top: 2rem;
}

/* Cart page – marketing slogan bar (theme-aware) */
.shipping-info-bar {
    background: rgba(var(--secondary-rgb), 0.12);
    color: var(--text-primary);
    border: 1px solid rgba(var(--secondary-rgb), 0.25);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    line-height: 1.4;
}
.shipping-info-bar i {
    color: var(--secondary);
    font-size: 1.15rem;
    flex-shrink: 0;
}

/* Empty Cart */
.empty-cart {
    text-align: center;
    padding: 4rem 2rem;
}

/* Responsive Logo Styles */
@media (max-width: 768px) {
    .logo-text {
        font-size: 20px;
    }
    
    .logo-dot {
        font-size: 0.25em;
        margin-bottom: 0;
    }
}

@media (max-width: 576px) {
    .logo-text {
        font-size: 18px;
    }
    
    .logo-dot {
        font-size: 0.2em;
        margin-bottom: 0;
    }
}

.empty-cart i {
    font-size: 4rem;
    color: var(--secondary);
    opacity: 0.5;
    margin-bottom: 1rem;
}

/* Cart Item Image */
.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(var(--primary-rgb), 0.1);
}

/* Hide mobile quantity dropdown on desktop */
@media (min-width: 769px) {
    .quantity-select-mobile {
        display: none !important;
    }
    
    .quantity-controls-desktop {
        display: flex !important;
    }
}

/* Hide desktop quantity controls on mobile */
@media (max-width: 768px) {
    .quantity-controls-desktop {
        display: none !important;
    }
    
    .quantity-select-mobile {
        display: block !important;
    }
    
    /* Compact mobile product cards */
    .row.g-4 .product-card {
        border-radius: 0 !important;
        box-shadow: none !important;
        border: 1px solid var(--border);
        margin-bottom: 0;
    }
    
    .product-card .card-body {
        padding: 0.75rem;
    }
    
    .product-card .card-title {
        font-size: 0.85rem !important;
        font-weight: normal !important;
        color: var(--primary) !important;
        line-height: 1.3;
        min-height: 2.21rem; /* Minimum 2 lines: 0.85rem * 1.3 * 2 = 2.21rem */
        height: 2.21rem;
        overflow: hidden;
        position: relative;
        margin-bottom: 0.75rem !important;
        padding-right: 1rem; /* Space for ellipsis */
        max-height: 1.99rem; /* Limit to 1.8 lines: 0.85rem * 1.3 * 1.8 = 1.989rem */
    }
    
    .product-card .card-title::after {
        content: '';
        position: absolute;
        right: 0;
        bottom: 0.22rem; /* Position at end of 1.8 lines (2.21rem - 1.99rem = 0.22rem from bottom) */
        width: 0.75rem;
        height: 1.105rem;
        background: linear-gradient(to right, transparent, var(--card-bg) 60%);
        pointer-events: none;
    }
    
    .product-card .card-title::before {
        content: '...';
        position: absolute;
        right: 0;
        bottom: 0.22rem;
        color: var(--primary);
        line-height: 1.3;
        font-size: 0.85rem;
    }
    
    .product-card .card-text {
        font-size: 0.75rem;
        line-height: 1.5;
        min-height: 2.25rem; /* Minimum 2 lines: 0.75rem * 1.5 * 2 = 2.25rem */
        height: 2.25rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        position: relative;
        padding-right: 1rem; /* Space for ellipsis */
        max-height: 1.6875rem; /* Limit to 1.5 lines: 0.75rem * 1.5 * 1.5 = 1.6875rem */
    }
    
    .product-card .card-text::after {
        content: '';
        position: absolute;
        right: 0;
        bottom: 0.5625rem; /* Position at end of 1.5 lines (2.25rem - 1.6875rem = 0.5625rem from bottom) */
        width: 0.75rem;
        height: 1.125rem;
        background: linear-gradient(to right, transparent, var(--card-bg) 60%);
        pointer-events: none;
    }
    
    .product-card .card-text::before {
        content: '...';
        position: absolute;
        right: 0;
        bottom: 0.5625rem;
        color: var(--text-secondary);
        line-height: 1.5;
        font-size: 0.75rem;
    }
    
    /* Hide old price on mobile */
    .product-card .old-price {
        display: none !important;
    }
    
    /* Hide cart icon on mobile button (but allow check icon) */
    .product-card .btn-text-mobile i:not(.fa-check) {
        display: none !important;
    }
    
    .product-card .btn-text-mobile i.fa-check {
        display: inline-block !important;
    }
    
    /* No rounded corners on images */
    .product-card .card-img-top {
        border-radius: 0 !important;
    }
    
    /* Minimal gap between cards */
    .row.g-4 {
        --bs-gutter-y: 0.5rem;
        --bs-gutter-x: 0.5rem;
    }
}

/* Product Card Desktop Dimensions */
@media (min-width: 992px) {
    .product-card {
        min-height: 330px;
        height: auto;
        overflow: visible;
    }
}

/* Mobile specific adjustments */
@media (min-width: 769px) {
    .product-card .btn-text-desktop {
        display: inline;
    }
    
    .product-card .btn-text-mobile {
        display: none;
    }
}

@media (max-width: 768px) {
    .product-card .btn-text-desktop {
        display: none;
    }
    
    .product-card .btn-text-mobile {
        display: inline;
    }
    
    .product-card .d-flex.gap-2 {
        flex-wrap: nowrap;
        min-width: 0; /* Allow flex items to shrink below content size if needed */
    }
    
    .product-card .btn-cta.flex-grow-1 {
        flex-grow: 0 !important;
        flex-basis: 80px !important;
    }
    
    .product-card .btn-cta {
        font-size: 0.20rem;
        padding: 0.3rem 0.5rem;
        width: 80px !important;
        min-width: 80px !important;
        max-width: 80px !important;
        height: 30px !important;
        min-height: 30px !important;
        max-height: 30px !important;
        flex: 0 0 80px !important;
        flex-grow: 0 !important;
        flex-basis: 80px !important;
        flex-shrink: 0 !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .product-card .quantity-select-mobile {
        flex-shrink: 1 !important;
        max-width: 60px !important;
        min-width: 50px;
    }
    
    .product-card .quantity-controls-desktop {
        flex-shrink: 0 !important;
    }
    
    .product-card .btn-quantity {
        width: 25px;
        height: 30px;
    }
    
    .product-card .btn-quantity i {
        font-size: 0.7rem;
    }
    
    .product-card .quantity-input {
        width: 40px;
        font-size: 0.8rem;
        padding: 0.3rem 0.2rem;
    }
    
    .product-card .card-img-top {
        height: 120px !important;
    }
    
    .product-card h5.mb-3 {
        font-size: 0.85rem;
        margin-bottom: 0.4rem !important;
    }
    
    .product-card h5.text-primary {
        font-size: 0.8rem !important;
    }
}

/* Product Card Quantity Controls */
.product-card .input-group {
    width: auto;
    align-items: center;
}

.product-card .input-group .form-control {
    border-top: 2px solid var(--border);
    border-bottom: 2px solid var(--border);
    display: flex;
    align-items: center;
}

.product-card .btn-cta {
    white-space: nowrap;
}

.product-card .btn-quantity {
    width: 30px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: var(--card-bg);
    color: var(--text-secondary);
    transition: none !important;
    transform: none !important;
    cursor: pointer;
    flex-shrink: 0;
}

.product-card .btn-quantity:hover {
    background: var(--card-bg) !important;
    color: var(--text-secondary) !important;
    transform: none !important;
}

.product-card .btn-quantity i {
    font-size: 0.85rem;
}

.product-card .quantity-input {
    width: 50px;
    text-align: center;
    border: 2px solid var(--border);
    border-radius: 0;
    padding: 0.35rem 0.25rem;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.product-card .quantity-input::-webkit-outer-spin-button,
.product-card .quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.product-card .quantity-input[type=number] {
    -moz-appearance: textfield;
}

.product-card .quantity-input:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 0.2rem rgba(var(--secondary-rgb), 0.1);
}

/* Product Card Clickable Area */
.product-card a:hover {
    text-decoration: none;
}

.product-card a:hover .card-title {
    color: var(--secondary) !important;
}

/* Product Card Hover Effect - Image */
.product-card a:hover .card-img-top {
    opacity: 0.9;
}

/* Cart Alerts */
.alert-cart {
    border-radius: 10px;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Cart Header */
.cart-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

/* Responsive Cart */
@media (max-width: 768px) {
    .cart-item .row > div {
        margin-bottom: 1rem;
    }
    
    .cart-item-image {
        width: 60px;
        height: 60px;
    }
    
    .quantity-input {
        width: 60px;
    }
    
    .btn-quantity {
        width: 35px;
        height: 35px;
    }
    
    .cart-summary {
        margin-top: 2rem;
        position: static;
    }
}

@media (max-width: 576px) {
    .cart-item {
        padding: 1rem !important;
    }
    
    .cart-item .row {
        text-align: center;
    }
    
    .cart-item .col-md-2,
    .cart-item .col-md-4,
    .cart-item .col-md-3,
    .cart-item .col-md-2,
    .cart-item .col-md-1 {
        margin-bottom: 0.5rem;
    }
    
    .cart-summary {
        padding: 1.5rem;
    }
}

/* ========================================
   BLOG POST PAGE STYLES
   ======================================== */

/* Blog Post Container */
.blog-post-container {
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.08);
    padding: 2rem;
    margin: 0;
}

/* Compact Meta Header */
.blog-post-meta-header {
    margin-bottom: 0.75rem;
}

.blog-post-meta-header small {
    font-size: 0.875rem;
}

.blog-post-meta-header i {
    color: var(--secondary);
}

/* Blog Post Title */
.blog-post-title {
    color: var(--primary);
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

/* Blog Post Content */
.blog-post-content {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-primary);
}

.blog-post-content h2 {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.75rem;
    margin: 2rem 0 1rem 0;
    border-bottom: 3px solid var(--secondary);
    padding-bottom: 0.5rem;
}

.blog-post-content h3 {
    color: var(--primary);
    font-weight: 600;
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem 0;
}

.blog-post-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.blog-post-content ul, 
.blog-post-content ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.blog-post-content li {
    margin-bottom: 0.5rem;
}

.blog-post-content blockquote {
    border-left: 4px solid var(--secondary);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--text-secondary);
    background: rgba(var(--secondary-rgb), 0.05);
    border-radius: 0 10px 10px 0;
}

.blog-post-content code {
    background: rgba(var(--primary-rgb), 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: var(--primary);
}

.blog-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.1);
    margin: 1rem 0;
}

.blog-post-content a {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 2px solid var(--secondary);
    transition: all 0.3s ease;
}

.blog-post-content a:hover {
    color: var(--secondary);
    border-bottom-color: var(--primary);
    background: rgba(var(--secondary-rgb), 0.1);
    padding: 0.1rem 0.3rem;
    border-radius: 4px;
}

/* Blog Post Footer Meta (Categories and Tags) */
.blog-post-footer-meta {
    border-top: 1px solid var(--border) !important;
}

.blog-post-footer-meta small {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.blog-post-footer-meta .badge {
    font-size: 0.75rem;
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
    font-weight: 500;
}

.blog-post-footer-meta .badge.bg-secondary {
    background-color: var(--secondary) !important;
    color: white !important;
}

.blog-post-footer-meta .badge.bg-light {
    background-color: var(--light) !important;
    color: var(--text-secondary) !important;
    border: 1px solid var(--border);
}

.blog-post-footer-meta .badge:hover {
    opacity: 0.92;
}

/* Blog Post Images */
.blog-featured-image {
    height: 400px;
    object-fit: cover;
}

.blog-card-image {
    height: 200px;
    object-fit: cover;
}

/* Blog Page - Ensure white background (main tag removed, so no grey background) */
/* Blog cards already have white background from .card base styles */

/* Search Filter Bar - card-like on blog/products listing */
.search-filter-bar {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 0;
    border: 1px solid rgba(var(--secondary-rgb), 0.25); /* subtle green border, like card accent */
    box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.08); /* match card softness */
}

/* Filter labels: blue like card titles, but no hover/transition on the container itself */
.search-filter-bar .form-label {
    color: var(--primary);
    font-weight: 600;
}

/* Search/filter inputs: match card inputs and remove default browser outline */
.search-filter-bar .form-control,
.search-filter-bar .form-select {
    border: 2px solid rgba(var(--primary-rgb), 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.search-filter-bar .form-control:focus,
.search-filter-bar .form-select:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 0.2rem rgba(var(--secondary-rgb), 0.1);
}

/* Fix search input focus to not overlap button */
.search-filter-bar .input-group-sm .form-control:focus {
    z-index: 3;
    position: relative;
}

.search-filter-bar .input-group-sm .form-control:focus + .btn,
.search-filter-bar .input-group-sm .btn:focus {
    z-index: 2;
    box-shadow: none;
}

/* Prevent mobile zoom on input focus */
.search-filter-bar .form-control,
.search-filter-bar .form-select,
.search-filter-bar input[type="text"],
.search-filter-bar input[type="search"] {
    font-size: 16px !important;
}

@media (max-width: 768px) {
    .search-filter-bar {
        padding: 1rem 1.25rem;
    }
    
    /* Ensure inputs are readable and don't zoom */
    .search-filter-bar .form-control-sm,
    .search-filter-bar .form-select-sm {
        font-size: 16px !important;
        padding: 0.5rem 0.75rem !important;
    }
}

/* Responsive Blog Post */
@media (max-width: 768px) {
    .blog-post-container {
        padding: 1.5rem;
        margin: 0;
    }
    
    .blog-post-title {
        font-size: 1.75rem;
    }
    
    .blog-post-content {
        font-size: 1rem;
    }
    
    .blog-post-content h2 {
        font-size: 1.5rem;
    }
    
    .blog-post-content h3 {
        font-size: 1.25rem;
    }
    
    .blog-featured-image {
        height: 250px;
    }
    
    .blog-card-image {
        height: 150px;
    }
}

@media (max-width: 576px) {
    .blog-post-container {
        padding: 1rem;
        margin: 0;
    }
    
    .blog-post-title {
        font-size: 1.5rem;
    }
    
    .blog-post-content {
        font-size: 0.95rem;
    }
    
    .blog-post-content h2 {
        font-size: 1.35rem;
    }
    
    .blog-post-content h3 {
        font-size: 1.15rem;
    }
    
    .blog-post-meta-header small {
        font-size: 0.8rem;
    }
    
    .blog-featured-image {
        height: 200px;
    }
    
    .blog-card-image {
        height: 120px;
    }
}

/* ========================================
   AUTHENTICATION PAGE STYLES
   ======================================== */

/* Auth Container */
.auth-container {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 2rem 0;
}

/* Welcome Card - Similar to homepage cards */
.auth-welcome-card {
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: box-shadow 0.3s ease;
}

.auth-welcome-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.auth-welcome-card h2 {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.auth-welcome-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0;
    line-height: 1.6;
}

/* Login Form Card - Similar to homepage cards */
.auth-login-card {
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
    transition: box-shadow 0.3s ease;
}

.auth-login-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.auth-login-card h3 {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    text-align: left;
}

.auth-login-card .lead {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 0;
    text-align: left;
}

/* Form Labels */
.auth-login-card .form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* Form Controls - Use site standard styles */
.auth-login-card .form-control {
    border: 2px solid var(--border);
    border-radius: 10px;
    padding: 0.7rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.auth-login-card .form-control:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 0.2rem rgba(var(--secondary-rgb), 0.1);
}

/* Form Check */
.auth-login-card .form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.auth-login-card .form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(var(--secondary-rgb), 0.1);
}

/* Forgot Password Link */
.forgot-password {
    text-align: right;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.forgot-password a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.forgot-password a:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* Divider */
.divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border);
}

.divider span {
    background: var(--card-bg);
    padding: 0 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    position: relative;
}

/* Buttons - Use site standard styles */
.auth-login-card .btn-primary {
    width: 100%;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 25px;
}

.auth-login-card .btn-outline-primary {
    width: 100%;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 25px;
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.auth-login-card .btn-outline-primary:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Alert Styling - Use site standard */
.auth-login-card .alert {
    border-radius: 10px;
    border: none;
    margin-bottom: 1.5rem;
}

/* Mobile Responsive */
@media (max-width: 991.98px) {
    .auth-container {
        padding: 1rem 0;
        min-height: auto;
    }
    
    .auth-welcome-card {
        margin-bottom: 1.5rem;
    }
    
    .auth-login-card {
        padding: 2rem 1.5rem;
    }
    
    .auth-login-card h3 {
        font-size: 1.35rem;
    }
}

@media (max-width: 576px) {
    .auth-container {
        padding: 0.5rem 0;
    }
    
    .auth-welcome-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .auth-welcome-card h2 {
        font-size: 1.5rem;
    }
    
    .auth-login-card {
        padding: 1.5rem 1rem;
    }
    
    .auth-login-card h3 {
        font-size: 1.25rem;
    }
    
    .auth-login-card .lead {
        font-size: 1rem;
    }
    
    .forgot-password {
        text-align: center;
        margin-top: 0.75rem;
    }
}

/* Register Page Specific Styles */
.auth-login-card .form-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.auth-login-card .form-check-label a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.auth-login-card .form-check-label a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

/* Forgot Password Success Icon */
.auth-login-card .text-success i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

/* Verify Email Icons */
.auth-login-card .text-center i.text-success,
.auth-login-card .text-center i.text-danger {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

/* Reset Password Icons */
.auth-login-card .text-center i.text-warning {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

.strength-weak {
    color: #dc3545;
}

.strength-medium {
    color: #ffc107;
}

.strength-strong {
    color: var(--secondary);
}

/* Welcome Card Icons */
.auth-welcome-card i {
    display: block;
}

.auth-welcome-card ul {
    margin-top: 1rem;
    padding-left: 0;
}

.auth-welcome-card ul li {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.auth-welcome-card ul li i {
    margin-right: 0.5rem;
    flex-shrink: 0;
}

/* ========================================
   PROFILE PAGE STYLES
   ======================================== */

/* Profile Sidebar Menu */
.profile-sidebar {
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.08);
    margin-bottom: 2rem;
}

.profile-sidebar .card-body {
    padding: 1.25rem;
}

.profile-sidebar h4 {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.profile-sidebar .text-muted {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0;
}

.profile-menu {
    list-style: none !important;
    padding: 0 !important;
    margin: 0;
}

.profile-menu li {
    margin-bottom: 0.25rem;
    list-style: none !important;
    list-style-type: none !important;
}

.profile-menu li::before,
.profile-menu li::marker {
    content: none !important;
    display: none !important;
}

.profile-menu li span {
    display: inline-block;
}

.profile-menu a {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.95rem;
}

.profile-menu a:hover {
    background: var(--light);
    color: var(--primary);
    text-decoration: none;
}

.profile-menu a.active {
    background: rgba(23, 113, 188, 0.08);
    color: var(--primary);
    border-left-color: var(--primary);
    font-weight: 600;
}

.profile-menu a.active i {
    color: var(--primary);
}

.profile-menu i {
    width: 18px;
    margin-right: 10px;
    text-align: center;
    color: var(--primary);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.profile-menu a:hover i {
    color: var(--primary);
}

.profile-menu a.active i {
    color: var(--primary);
}

/* Logout menu item */
.profile-menu li.logout-item {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.profile-menu li.logout-item a {
    color: #dc3545;
}

.profile-menu li.logout-item a:hover {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.profile-menu li.logout-item i {
    color: #dc3545;
}

.profile-menu li.logout-item a:hover i {
    color: #dc3545;
}

/* Profile Content Card */
.profile-content {
    min-height: 600px;
    padding: 2rem;
    position: relative;
}

/* Ensure the card maintains height */
.col-md-9 .card {
    min-height: 600px;
    display: flex;
    flex-direction: column;
}

.col-md-9 .card .card-body {
    flex: 1;
}

/* Prevent layout shift when switching sections */
.profile-content > * {
    min-height: 0;
}

/* Ensure alerts don't cause layout shift - reserve space */
.profile-content::before {
    content: '';
    display: block;
    height: 0;
    margin-bottom: 0;
}

.profile-content .alert {
    margin-bottom: 1.5rem;
}

/* Ensure consistent spacing for section headers */
.profile-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border);
    min-height: 60px;
}

.profile-section-header h3 {
    color: var(--primary);
    margin: 0;
    flex: 1;
}

.profile-section-header .btn {
    margin-left: 1rem;
    flex-shrink: 0;
}

/* Profile Info Box */
.profile-info {
    background: var(--light);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

/* Order Table Styles */
.order-table {
    background: transparent;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    margin-top: 0;
}

.order-table .order-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: normal;
    transition: all 0.3s ease;
}

.order-table .order-link:hover {
    color: var(--secondary);
    text-decoration: underline;
}

.order-table .invoice-link {
    color: var(--secondary);
    text-decoration: none;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.order-table .invoice-link:hover {
    background: rgba(var(--secondary-rgb), 0.1);
    color: var(--secondary);
    transform: scale(1.1);
}

/* Ensure empty state has consistent height */
.profile-content .empty-state {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.order-table th {
    background: transparent;
    color: var(--text-secondary);
    border: none;
    border-bottom: 1px solid var(--border);
    padding: 12px 15px;
    font-weight: 500;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.order-table td {
    padding: 15px;
    vertical-align: middle;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-pending { background: #fff3cd; color: #856404; }
.status-processing { background: #d1ecf1; color: #0c5460; }
.status-shipped { background: #d4edda; color: #155724; }
.status-delivered { background: #d1ecf1; color: #0c5460; }
.status-cancelled { background: #f8d7da; color: #721c24; }
.status-refunded { background: #e2e3e5; color: #383d41; }

/* Address Cards */
.address-card {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: var(--card-bg);
    transition: box-shadow 0.3s ease;
}

.address-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.address-card.default {
    border-color: var(--primary);
    background: var(--light);
}

.address-type {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.address-actions {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.address-actions .btn {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
    margin-top: 2rem;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--border);
}

.empty-state h5 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.empty-state p {
    margin-bottom: 1.5rem;
}

.empty-state .btn {
    margin-top: 1rem;
}

/* Order Details */
.order-details-section {
    margin-bottom: 1.5rem;
}

.order-details-section h6 {
    color: var(--primary);
    border-bottom: 2px solid var(--border);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.order-details-table {
    font-size: 0.9rem;
}

.order-details-table td {
    padding: 0.5rem;
    border: none;
}

.order-details-table td:first-child {
    font-weight: 600;
    color: var(--text-secondary);
    width: 40%;
}

.order-items-table th {
    background: var(--light);
    color: var(--primary);
    font-weight: 600;
    border: none;
    padding: 0.75rem;
}

.order-items-table td {
    padding: 0.75rem;
    border-top: 1px solid var(--border);
    vertical-align: middle;
}

.order-items-table tbody tr:hover {
    background: var(--light);
}

.cost-summary-table td {
    padding: 0.5rem;
    border: none;
}

.cost-summary-table .table-primary {
    background: var(--primary) !important;
    color: white;
}

.cost-summary-table .table-primary td {
    background: transparent !important;
    color: white;
}

/* Tracking Section */
.tracking-section {
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

.tracking-code {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: var(--primary);
    background: var(--border);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
}

.tracking-link {
    text-decoration: none;
}

.tracking-link:hover {
    text-decoration: none;
}

/* ========================================
   ORDER DETAILS PAGE STYLES
   ======================================== */

.order-details-card {
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 2rem;
    transition: box-shadow 0.3s ease;
}

.order-details-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.order-details-header {
    background: transparent;
    color: var(--text-primary);
    padding: 1.5rem 2rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.order-details-header h2 {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.order-details-header p {
    color: var(--text-secondary);
    margin: 0;
}

.order-details-content {
    padding: 2rem;
}

.order-section {
    margin-bottom: 0;
}

.order-section h4,
.order-section h5 {
    color: var(--primary);
    font-weight: 600;
}

.order-section h4 i,
.order-section h5 i {
    color: var(--primary);
}

.order-item {
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}

.order-item:last-child {
    border-bottom: none;
}

.price-highlight {
    color: var(--secondary);
    font-weight: 600;
    font-size: 1.1rem;
}

.total-section {
    background: var(--light);
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 1rem;
}

.total-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.total-line.final {
    border-top: 2px solid var(--primary);
    padding-top: 1rem;
    margin-top: 1rem;
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--primary);
}

/* Order Details Info Table */
.info-table {
    font-size: 0.9rem;
}

.info-table td {
    padding: 0.5rem;
    border: none;
    vertical-align: top;
}

.info-table td:first-child {
    font-weight: 600;
    color: var(--text-secondary);
    width: 40%;
}

/* Order Items Table - Subtle styling */
.order-items-table {
    background: transparent;
}

.order-items-table th {
    background: transparent;
    color: var(--text-secondary);
    border: none;
    border-bottom: 1px solid var(--border);
    padding: 12px 15px;
    font-weight: 500;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.order-items-table td {
    padding: 15px;
    vertical-align: middle;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.order-items-table tbody tr:hover {
    background: transparent;
}

/* Cost Summary Table */
.cost-summary-table {
    background: transparent;
}

.cost-summary-table td {
    padding: 0.5rem;
    border: none;
}

.cost-summary-table .table-primary {
    background: transparent !important;
    color: var(--primary) !important;
}

.cost-summary-table .table-primary td {
    background: transparent !important;
    color: var(--primary) !important;
    font-weight: 600;
}

/* Mobile Responsive for Order Details */
@media (max-width: 991.98px) {
    .order-details-content {
        padding: 1.5rem;
    }
    
    .order-details-header {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .order-details-content {
        padding: 1rem;
    }
    
    .order-details-header {
        padding: 1rem 1.5rem;
    }
    
    .order-details-header h2 {
        font-size: 1.25rem;
    }
    
    .order-items-table {
        font-size: 0.8rem;
    }
    
    .order-items-table th,
    .order-items-table td {
        padding: 0.5rem 0.25rem;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .profile-sidebar {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .profile-sidebar .card-body {
        padding: 1.5rem;
    }
    
    .profile-content {
        padding: 1.5rem !important;
    }
    
    .col-md-9 .card {
        min-height: auto;
    }
    
    .col-md-9 .card .card-body {
        padding: 1.5rem !important;
    }
    
    .profile-menu a {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .order-table {
        font-size: 0.875rem;
    }
    
    .order-table th,
    .order-table td {
        padding: 12px 10px;
    }
    
    .order-table .invoice-link {
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }
    
    .profile-section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .profile-section-header .btn {
        margin-left: 0;
        margin-top: 1rem;
    }
    
    .profile-info {
        padding: 1.25rem;
    }
}

/* 404 / Error page - site style */
.error-page {
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 3rem 2rem;
    margin-top: 1rem;
}

.error-page .error-page-code {
    color: var(--primary);
    font-weight: 700;
}

.error-page .btn-cta {
    margin-top: 0.5rem;
}