/* Test-Style Enhancements for Electro Yussef */

/* Global Green Theme */
.bg-green {
    background-color: #16a34a !important;
    color: #fff !important;
}

.text-green {
    color: #16a34a !important;
}

.text-hover-success:hover {
    color: #16a34a !important;
}

/* Category Cards - Test Style */
.category-card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 10px;
    overflow: hidden;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15) !important;
}

.category-card .card-header {
    padding: 0 !important;
    border: none;
    background: transparent;
}

.category-card .category-image {
    height: 180px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.3s ease;
}

.category-card:hover .category-image {
    transform: scale(1.05);
}

.category-card .card-body {
    background-color: #16a34a !important;
    color: white !important;
    padding: 1.2rem 1rem !important;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

/* Mobile: 1 category per row */
@media (max-width: 575.98px) {
    .category-card .category-image {
        height: 200px;
    }
    
    .category-card .card-body {
        font-size: 15px;
        padding: 1rem !important;
    }
    
    .category-card:hover {
        transform: translateY(-4px);
    }
}

/* Hero Slider Enhancements */
.slide-swp.mySwiper {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.swiper-pagination-bullet {
    background: #fff;
    opacity: 0.7;
    width: 10px;
    height: 10px;
}

.swiper-pagination-bullet-active {
    background: #16a34a;
    opacity: 1;
    width: 12px;
    height: 12px;
}

/* Header Styling */
.header.bg-green {
    background-color: #16a34a !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding-top: 20px !important;
    padding-bottom: 20px !important;
}

.header-mobile.bg-green {
    background-color: #16a34a !important;
}

/* Logo Styling */
.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
    padding: 8px 12px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.d-flex-desktop {
    display: flex !important;
    flex-direction: row !important;
    gap: 30px;
}

@media (max-width: 900px) {
    .d-flex-desktop {
        flex-direction: column !important;
    }
}

/* Global Icon Styling for Headers and Menus */
.header i, 
.header-mobile i,
.search-dropdown i {
    color: white !important;
}

.topbar-item {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.topbar-item i {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.site-logo:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.site-logo i {
    font-size: 22px;
    color: white;
    background: rgba(255, 255, 255, 0.15);
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.site-logo .logo-text {
    font-size: 22px;
    font-weight: 800;
    color: white;
    letter-spacing: -1px;
    display: flex;
    align-items: baseline;
}

.site-logo .logo-text span {
    color: #bbf7d0;
    font-weight: 600;
    font-size: 18px;
    margin-left: 1px;
}

@media (max-width: 767.98px) {
    .site-logo {
        gap: 8px;
        padding: 5px;
    }
    .site-logo i {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
    .site-logo .logo-text {
        font-size: 19px;
    }
    .site-logo .logo-text span {
        font-size: 15px;
    }
}

/* Button Enhancements */
.btn-success {
    background-color: #16a34a !important;
    border-color: #16a34a !important;
    transition: all 0.3s ease;
}

.btn-success:hover {
    background-color: #15803d !important;
    border-color: #15803d !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

.btn-light-success {
    background-color: #dcfce7 !important;
    color: #16a34a !important;
    border: none;
}

.btn-light-success:hover {
    background-color: #bbf7d0 !important;
    color: #15803d !important;
}

/* Button Icons */
.btn i {
    transition: transform 0.3s ease;
}

.btn:hover i {
    transform: scale(1.1);
}

/* Icon Buttons */
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.btn-xs {
    padding: 0.25rem;
    font-size: 0.75rem;
}

.btn-clean {
    background: transparent;
    border: none;
    transition: all 0.3s ease;
}

.btn-clean:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Account Menu Refinement */
.account-menu {
    background: #fff;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    overflow: hidden;
}

.account-menu a {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    padding: 14px 20px;
    color: #4b5563 !important;
    text-decoration: none !important;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f3f4f6;
}

.account-menu a i {
    color: #6b7280 !important; /* Default sidebar icons gray */
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.account-menu a:hover,
.account-menu a.active {
    background-color: #16a34a !important;
    color: white !important;
}

.account-menu a:hover i,
.account-menu a.active i {
    color: white !important;
}

.account-menu a:last-child {
    border-bottom: none;
}

/* Card Enhancements */
.card-custom {
    border: none;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.card-custom.shadow {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

.card-custom.shadow:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12) !important;
}

/* How it Works Section - Responsive */
@media (max-width: 767.98px) {
    .card-custom.gutter-b.h-100 {
        margin-bottom: 1rem !important;
    }
    
    .card-custom.gutter-b.h-100 .mb-7 {
        margin-bottom: 1rem !important;
    }
    
    .card-custom.gutter-b.h-100 .mb-5 {
        margin-bottom: 1rem !important;
    }
    
    .card-custom.gutter-b.h-100 h4 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem !important;
    }
    
    .card-custom.gutter-b.h-100 p {
        font-size: 0.9rem;
        margin-bottom: 0;
    }
    
    /* Smaller icon circles on mobile */
    .card-custom.gutter-b.h-100 .mb-5 > div,
    .card-custom.gutter-b.h-100 .mb-7 > div {
        width: 70px !important;
        height: 70px !important;
    }
    
    .card-custom.gutter-b.h-100 .mb-5 > div i,
    .card-custom.gutter-b.h-100 .mb-7 > div i {
        font-size: 2rem !important;
    }
    
    /* Reduce card padding on mobile */
    .card-custom.gutter-b.h-100.p-6 {
        padding: 1.25rem !important;
    }
}

/* Contact Section - Responsive */
@media (max-width: 767.98px) {
    .gap-5 {
        gap: 1rem !important;
    }
    
    .card-custom .card-body h2 {
        font-size: 1.3rem !important;
    }
    
    .card-custom .card-body h3 {
        font-size: 1rem !important;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem !important;
        font-size: 1rem !important;
    }
}

/* Footer Styling */
.footer {
    background-color: #f3f6f9 !important;
    border-top: 1px solid #e2e8f0;
}

/* Overlay Search */
.overlay {
    background-color: rgba(0, 0, 0, 0.95);
}

.overlay input[type="text"] {
    border-radius: 50px;
    padding: 15px 25px;
}

.overlay button {
    border-radius: 50px;
    background-color: #16a34a !important;
}

.overlay button:hover {
    background-color: #15803d !important;
}

/* Hero Slider Enhancements */
.slide-swp.mySwiper {
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    position: relative;
}

/* Desktop: Add left/right margins */
@media (min-width: 768px) {
    .slide-swp.mySwiper {
        max-width: 95%;
        margin: 0 auto;
    }
}

/* Mobile: Smaller with margins */
@media (max-width: 767.98px) {
    .slide-swp.mySwiper {
        max-width: 92%;
        margin: 0 auto;
    }
}

/* Swiper Pagination - Position outside/below banner */
.slide-swp.mySwiper .swiper-pagination {
    bottom: -30px !important;
    position: absolute;
    left: 0;
    right: 0;
}

@media (max-width: 767.98px) {
    .slide-swp.mySwiper .swiper-pagination {
        bottom: -25px !important;
    }
}

.swiper-pagination-bullet {
    background: #16a34a;
    opacity: 0.5;
    width: 10px;
    height: 10px;
}

.swiper-pagination-bullet-active {
    background: #16a34a;
    opacity: 1;
    width: 12px;
    height: 12px;
}

/* Responsive Spacing */
.hero-slider-container {
    padding: 0 15px;
    margin-top: 2rem;
    margin-bottom: 4rem;
}

@media (max-width: 767.98px) {
    .hero-slider-container {
        padding: 0 10px;
        margin-bottom: 3.5rem !important;
        margin-top: 1.5rem;
    }
}

/* Section Spacing */
.section-title {
    margin-top: 3rem;
    margin-bottom: 2.5rem;
}

@media (max-width: 767.98px) {
    .section-title {
        margin-top: 2rem;
        margin-bottom: 1.5rem;
        font-size: 1.5rem !important;
    }
}

/* Category Grid Responsive */
@media (min-width: 1200px) {
    /* Desktop: 4 per row */
    .category-col {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    /* Tablet: 3 per row */
    .category-col {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
    
    .category-card .category-image {
        height: 160px;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    /* Small tablet: 2 per row */
    .category-col {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .category-card .category-image {
        height: 180px;
    }
}

@media (max-width: 575.98px) {
    /* Mobile: 1 per row */
    .category-col {
        flex: 0 0 100%;
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }
}

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

.category-card {
    animation: fadeIn 0.5s ease-out;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Icon Styling */
.icon-lg {
    font-size: 1.5rem;
}

.icon-xl {
    font-size: 1.75rem;
}

/* Gap Utilities */
.gap-5 {
    gap: 1.25rem !important;
}

/* Text Utilities */
.font-weight-boldest {
    font-weight: 800 !important;
}

/* Rounded Utilities */
.rounded-top {
    border-top-left-radius: 10px !important;
    border-top-right-radius: 10px !important;
}

.rounded-bottom {
    border-bottom-left-radius: 10px !important;
    border-bottom-right-radius: 10px !important;
}

/* ============================================
   CART OFFCANVAS STYLING
   ============================================ */

/* Cart Offcanvas */
#kt_quick_cart.offcanvas {
    width: 400px;
    background: #ffffff;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
}

@media (max-width: 767.98px) {
    #kt_quick_cart.offcanvas {
        width: 90%;
        max-width: 350px;
    }
}

/* Cart Header */
#kt_quick_cart .offcanvas-header {
    background: linear-gradient(135deg, #16a34a 0%, #059669 100%);
    padding: 1.5rem;
    border-bottom: none;
}

#kt_quick_cart .offcanvas-header h4 {
    color: white !important;
    font-size: 1.25rem;
    margin: 0;
}

#kt_quick_cart .offcanvas-header .btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

#kt_quick_cart .offcanvas-header .btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

#kt_quick_cart .offcanvas-header .btn i {
    color: white !important;
    font-size: 1rem;
}

/* Cart Content */
#kt_quick_cart .offcanvas-content {
    height: calc(100% - 80px);
    display: flex;
    flex-direction: column;
    padding: 0;
}

#kt_quick_cart .offcanvas-wrapper {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background: #f8f9fa;
}

/* Cart Items Styling */
#cart_items:empty::before {
    content: 'Votre panier est vide';
    display: block;
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
    font-size: 1rem;
}

/* Individual Cart Item */
#cart_items > div {
    background: white;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

#cart_items > div:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

#cart_items .symbol {
    border-radius: 8px;
    overflow: hidden;
}

#cart_items .symbol-label {
    background-size: cover;
    background-position: center;
    border-radius: 8px;
}

#cart_items .text-dark-75 {
    font-size: 0.95rem;
    line-height: 1.4;
}

#cart_items .text-muted {
    font-size: 0.85rem;
}

#cart_items .text-success {
    font-size: 1rem;
    font-weight: 700;
}

#cart_items .btn-light-danger {
    background: #fee;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

#cart_items .btn-light-danger:hover {
    background: #dc2626;
    transform: scale(1.1);
}

#cart_items .btn-light-danger:hover i {
    color: white !important;
}

@media (max-width: 767.98px) {
    #cart_items > div {
        padding: 0.75rem;
        margin-bottom: 0.5rem;
    }
    
    #cart_items .symbol {
        width: 60px !important;
        height: 60px !important;
    }
    
    #cart_items .text-dark-75 {
        font-size: 0.875rem;
    }
}

/* Cart Footer */
#kt_quick_cart .offcanvas-footer {
    background: white;
    padding: 1.25rem;
    border-top: 2px solid #e9ecef;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

#kt_quick_cart .offcanvas-footer .price_cart_toral {
    font-size: 1.5rem;
    color: #16a34a;
}

#kt_quick_cart .offcanvas-footer .btn-success {
    background: linear-gradient(135deg, #16a34a 0%, #059669 100%);
    border: none;
    padding: 0.875rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 8px;
    transition: all 0.3s ease;
}

#kt_quick_cart .offcanvas-footer .btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.4);
}

/* ============================================
   SEARCH DROPDOWN STYLING
   ============================================ */

.search-dropdown {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(22, 163, 74, 0.1);
    z-index: 9999;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 2rem 1.5rem;
    visibility: hidden;
}

.search-dropdown.active {
    transform: translateY(0);
    visibility: visible;
}

/* Desktop: Position below header */
@media (min-width: 768px) {
    .search-dropdown {
        top: 70px;
        padding: 2.5rem 2rem;
    }
}

/* Mobile: Position below mobile header */
@media (max-width: 767.98px) {
    .search-dropdown {
        top: 60px;
        padding: 1.5rem 1rem;
    }
}

.search-dropdown-content {
    max-width: 700px;
    margin: 0 auto;
}

.search-dropdown-content form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 0 1.25rem;
    border: 2px solid rgba(22, 163, 74, 0.15);
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.search-input-wrapper:focus-within {
    background: rgba(255, 255, 255, 1);
    border-color: #16a34a;
    box-shadow: 0 8px 24px rgba(22, 163, 74, 0.15), 0 0 0 4px rgba(22, 163, 74, 0.1);
    transform: translateY(-2px);
}

.search-input-wrapper .search-icon {
    color: #16a34a;
    font-size: 1.25rem;
    margin-right: 1rem;
    transition: transform 0.3s ease;
}

.search-input-wrapper:focus-within .search-icon {
    transform: scale(1.1);
}

.search-input-wrapper input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 1.125rem 0;
    font-size: 1.0625rem;
    color: #1f2937;
    outline: none;
    font-weight: 500;
}

.search-input-wrapper input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.search-close-btn {
    background: rgba(239, 68, 68, 0.1);
    border: none;
    color: #dc2626;
    font-size: 1.125rem;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: 0.75rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.search-close-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    transform: rotate(90deg) scale(1.1);
}

.search-submit-btn {
    background: linear-gradient(135deg, #16a34a 0%, #059669 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.0625rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(22, 163, 74, 0.25);
}

.search-submit-btn:hover {
    background: linear-gradient(135deg, #15803d 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(22, 163, 74, 0.35);
}

.search-submit-btn:active {
    transform: translateY(0);
}

.search-submit-btn i {
    color: white;
}

/* Search Dropdown Backdrop */
.search-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.search-backdrop.active {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 767.98px) {
    .search-input-wrapper {
        padding: 0 1rem;
        border-radius: 14px;
    }
    
    .search-input-wrapper input {
        padding: 1rem 0;
        font-size: 1rem;
    }
    
    .search-input-wrapper .search-icon {
        font-size: 1.125rem;
        margin-right: 0.75rem;
    }
    
    .search-submit-btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        border-radius: 10px;
    }
    
    .search-close-btn {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
}

/* Animation for search dropdown */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.search-dropdown.active {
    animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Old Overlay - Hide it */
.overlay {
    display: none !important;
}

/* ============================================
   OFFCANVAS OVERLAY
   ============================================ */

.offcanvas-overlay {
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

/* ============================================
   SCROLLBAR STYLING
   ============================================ */

#kt_quick_cart .offcanvas-wrapper::-webkit-scrollbar {
    width: 6px;
}

#kt_quick_cart .offcanvas-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
}

#kt_quick_cart .offcanvas-wrapper::-webkit-scrollbar-thumb {
    background: #16a34a;
    border-radius: 3px;
}

#kt_quick_cart .offcanvas-wrapper::-webkit-scrollbar-thumb:hover {
    background: #15803d;
}

/* Mobile Spacing Utilities */
@media (max-width: 767.98px) {
    .mb-10 {
        margin-bottom: 2rem !important;
    }
    
    .mb-8 {
        margin-bottom: 1.5rem !important;
    }
    
    .mb-6 {
        margin-bottom: 1rem !important;
    }
    
    .mt-15 {
        margin-top: 2.5rem !important;
    }
    
    .my-10 {
        margin-top: 2rem !important;
        margin-bottom: 2rem !important;
    }
    
    .p-8 {
        padding: 1.5rem !important;
    }
    
    .p-10 {
        padding: 2rem !important;
    }
}

/* Footer Responsive */
@media (max-width: 767.98px) {
    .footer {
        padding: 1.25rem 0 !important;
    }
    
    .footer .container {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .footer .nav {
        justify-content: center;
        margin-top: 0;
        gap: 0.5rem;
    }
    
    .footer .nav .nav-link {
        padding: 0.25rem 0.75rem;
        font-size: 0.875rem;
    }
    
    .footer .text-muted {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }
    
    .footer a i {
        font-size: 1.25rem !important;
    }
    
    .footer .order-2 {
        order: 2;
    }
    
    .footer .order-1 {
        order: 1;
    }
}

/* Desktop Footer */
@media (min-width: 768px) {
    .footer {
        padding: 1.75rem 0 !important;
    }
}

/* Mobile Header Adjustments */
@media (max-width: 767.98px) {
    #kt_header_mobile img {
        height: 40px !important;
    }
    
    .topbar-item {
        margin-left: 0.5rem !important;
        margin-right: 0.5rem !important;
    }
    
    /* Mobile cart badge positioning */
    #kt_header_mobile .position-relative .label {
        top: -5px !important;
        right: -8px !important;
        min-width: 18px;
        min-height: 18px;
        font-size: 10px;
        padding: 2px 5px;
    }
}

/* Desktop Header Adjustments */
@media (min-width: 768px) {
    #kt_header img {
        height: 50px !important;
    }
    
    /* Desktop cart badge - inline display */
    #kt_header .topbar-item .d-flex .count_item_header {
        margin-left: 0.25rem;
    }
}

/* Cart Badge Styling - Both Mobile and Desktop */
.label.label-danger {
    background-color: #dc2626 !important;
    color: white !important;
    border-radius: 10px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Mobile Header Cart Badge */
#kt_header_mobile .position-relative {
    position: relative;
    display: inline-block;
}

#kt_header_mobile .position-relative .label {
    position: absolute;
    top: -8px;
    right: -10px;
    min-width: 20px;
    min-height: 20px;
    padding: 3px 6px;
    font-size: 11px;
    z-index: 1;
}

/* Desktop Header Cart Badge - Inline style */
#kt_header .topbar-item .d-flex {
    position: relative;
}

#kt_header .topbar-item .count_item_header {
    font-size: 16px;
    font-weight: 700;
    color: white;
}

/* Responsive Visibility Utilities */
@media (max-width: 767.98px) {
    .d-none-mobile {
        display: none !important;
    }
}

@media (min-width: 768px) {
    .d-none-desktop {
        display: none !important;
    }
}

/* Ensure site-logo is properly styled in headers */
.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
}

/* Perfect Center logo for mobile */
@media (max-width: 991.98px) {
    .header-mobile {
        position: relative;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-top: 20px !important;
        padding-bottom: 20px !important;
    }
    .header-mobile .site-logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        margin: 0 !important;
        width: auto !important;
        justify-content: center;
    }
}

/* Fix for secondary pages top gap */
body.secondary-page {
    padding-top: 0 !important;
}

.secondary-page .header-fixed {
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
}

.secondary-page .header-mobile-fixed {
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
}

/* Compensate for fixed header height in content */
.secondary-page .content {
    padding-top: 70px !important; /* Desktop header height */
}

@media (max-width: 991.98px) {
    .secondary-page .content {
        padding-top: 60px !important; /* Mobile header height */
    }
}

/* Missing Utility Classes */
.d-flex {
    display: flex !important;
}

.flex-column {
    flex-direction: column !important;
}

.flex-row {
    flex-direction: row !important;
}

.align-items-center {
    align-items: center !important;
}

.justify-content-between {
    justify-content: space-between !important;
}

.justify-content-center {
    justify-content: center !important;
}

.mx-auto {
    margin-left: auto !important;
    margin-right: auto !important;
}

.ml-5 {
    margin-left: 1.25rem !important;
}

.mr-5 {
    margin-right: 1.25rem !important;
}

.ml-auto {
    margin-left: auto !important;
}

.gap-5 {
    gap: 1.25rem !important;
}

.position-relative {
    position: relative !important;
}

.position-absolute {
    position: absolute !important;
}

.top-0 {
    top: 0 !important;
}

.right-0 {
    right: 0 !important;
}
