/* ========================================
   VARIABLES CSS
   ======================================== */
:root {
    --deep-green: #054A29;
    --green-darker: #077963;
    --green-light: #10BC9C;
    --green-lighter: #15AB8E;
    --main-purple: #B491CA;
    --light-purple: #F8EFEF;
    --dark-blue: #080759;
    --light-blue: #53A2EB;
    --red-light: #F8EFEF;
    --red-dark: #BD3112;
    --gray: #818181;
    --gray-light: #f8f9fa;
    --gray-border: #e9ecef;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.15);
    --radius: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
}

/* ========================================
   HIDE PRODUCTS CONTAINER BY DEFAULT
   ======================================== */
.products-container.d-none {
    display: none !important;
}

.products-container.visible {
    display: block !important;
}

.products-container.view-grid.visible .products-grid {
    display: grid !important;
}

.products-container.view-list.visible .products-list {
    display: block !important;
}

@media (min-width: 768px) {
    .products-container.view-list.visible .products-list {
        display: grid !important;
    }
}

/* ========================================
   MOBILE OPTIMIZATIONS
   ======================================== */
@media (max-width: 767px) {

    /* Section Headers */
    .section-title {
        font-size: 1.1rem !important;
    }

    .section-subtitle {
        font-size: 0.85rem !important;
    }

    /* Category Cards */
    .category-card-icon {
        width: 40px !important;
        height: 40px !important;
    }

    .category-card-icon i {
        font-size: 1.1rem !important;
    }

    .category-card-title {
        font-size: 0.9rem !important;
        line-height: 1.2 !important;
    }

    .category-card-count {
        font-size: 0.75rem !important;
    }

    .category-card-content {
        padding: 0.75rem !important;
    }

    .category-card-header {
        padding: 0.75rem 1rem !important;
        gap: 0.75rem !important;
    }

    /* Subcategory Cards */
    .subcategory-card {
        padding: 0.5rem 0.75rem !important;
    }

    .subcategory-name {
        font-size: 0.85rem !important;
    }

    .subcategory-icon {
        width: 20px !important;
        height: 20px !important;
    }

    .subcategory-icon i {
        font-size: 0.65rem !important;
    }

    /* Product Cards (Grid) */
    .product-name {
        font-size: 0.9rem !important;
        line-height: 1.3 !important;
        min-height: 2.6em;
        /* Ensure consistent height for 2 lines */
    }

    .price-current {
        font-size: 1rem !important;
    }

    .price-original {
        font-size: 0.85rem !important;
    }

    .product-card-inner {
        padding: 0.5rem !important;
    }

    .btn-add-to-cart {
        padding: 0.5rem !important;
        font-size: 0.85rem !important;
    }

    /* Product List View */
    .product-list-name {
        font-size: 0.95rem !important;
    }

    .product-list-card .card-body {
        padding: 0.75rem !important;
    }

    .product-list-card .img-fluid {
        height: 100px !important;
    }


    /* Empty State */
    .empty-state-icon {
        width: 60px !important;
        height: 60px !important;
        margin-bottom: 1rem !important;
    }

    .empty-state-icon i {
        font-size: 1.5rem !important;
    }

    .empty-state-title {
        font-size: 1rem !important;
    }

    /* General Spacing */
    .categories-section {
        padding: 1rem !important;
    }

    .products-section {
        padding: 1rem !important;
    }

    .categories-grid {
        gap: 0.75rem !important;
    }

    .mb-5 {
        margin-bottom: 2rem !important;
    }

    .mb-4 {
        margin-bottom: 1.5rem !important;
    }

    .section-header {
        margin-bottom: 1.5rem !important;
    }
}

/* ========================================
   PRODUCTS GRID - RESPONSIVE
   ======================================== */
.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    width: 100%;
}

/* Tablette */
@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Desktop */
@media (min-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ========================================
   PRODUCTS LIST VIEW STYLES
   ======================================== */
.products-list {
    display: none;
    width: 100%;
}

/* Mobile - affichage en mode liste quand sélectionné */
.view-list .products-list {
    display: block !important;
}

.view-list .products-grid {
    display: none !important;
}

/* Tablette - 2 colonnes */
@media (min-width: 768px) {
    .products-list {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .view-list .products-list {
        display: grid !important;
    }

    .product-list-card {
        margin-bottom: 0;
    }
}

/* Desktop - garder 2 colonnes pour un meilleur affichage */
@media (min-width: 992px) {
    .products-list {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .view-list .products-list {
        display: grid !important;
    }
}

.product-list-card {
    border-radius: var(--radius-lg);
    transition: var(--transition);
    background: white;
    border: 1px solid var(--gray-border);
    margin-bottom: 1rem;
}

.product-list-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: var(--main-purple);
}

.product-list-name {
    color: var(--dark-blue);
    text-decoration: none;
    transition: var(--transition);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
}

.product-list-name:hover {
    color: var(--main-purple);
}

.category-badge .badge {
    background: var(--light-purple);
    color: var(--dark-blue);
    border: 1px solid var(--main-purple);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.35rem 0.75rem;
}

/* ========================================
   LIST VIEW CART BUTTON
   ======================================== */
.list-cart-btn {
    background: linear-gradient(135deg, var(--deep-green), var(--green-light));
    color: white;
    border: none;
    border-radius: 20px;
    white-space: nowrap;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    min-height: 40px;
    width: 100%;
    box-shadow: 0 4px 15px rgba(5, 74, 41, 0.2);
    cursor: pointer;
}

.list-cart-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.list-cart-btn:hover:not(:disabled)::before {
    left: 100%;
}

.list-cart-btn:hover:not(:disabled) {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(5, 74, 41, 0.35);
    background: linear-gradient(135deg, var(--green-light), var(--deep-green));
}

.list-cart-btn:active {
    transform: translateY(-1px) scale(1.01);
}

.list-cart-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* List View Action Buttons */
.products-list .btn-sm {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid var(--gray-border);
    border-radius: 8px;
    background: white;
}

.products-list .btn-sm:hover {
    transform: scale(1.1);
    background-color: var(--main-purple) !important;
    border-color: var(--main-purple);
}

.products-list .btn-sm:hover i {
    color: white !important;
}

/* ========================================
   ENHANCED MODERN CART BUTTON STYLES
   ======================================== */
.enhanced-cart-btn {
    background: linear-gradient(135deg, var(--deep-green), var(--green-light));
    color: white;
    border: none;
    border-radius: 25px;
    padding: 0.6rem 1.2rem;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    position: relative;
    overflow: hidden;
    min-height: 40px;
    width: 100%;
    box-shadow: 0 4px 15px rgba(5, 74, 41, 0.2);
    cursor: pointer;
}

.enhanced-cart-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.enhanced-cart-btn:hover:not(:disabled)::before {
    left: 100%;
}

.enhanced-cart-btn:hover:not(:disabled) {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(5, 74, 41, 0.35);
    background: linear-gradient(135deg, var(--green-light), var(--deep-green));
}

.enhanced-cart-btn:active {
    transform: translateY(-1px) scale(1.01);
}

.enhanced-cart-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Grid view specific button styles */
.grid-cart-btn {
    border-radius: 25px;
    padding: 0.65rem 1.5rem;
    font-size: 0.9rem;
    min-height: 42px;
}

.grid-cart-btn .cart-btn-text {
    font-weight: 600;
}

/* ========================================
   SEARCH CONTAINER
   ======================================== */
.search-container {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1rem;
    box-shadow: var(--shadow);
}

.search-wrapper {
    position: relative;
}

.search-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 1rem;
    color: var(--gray);
    z-index: 2;
}

.search-input {
    padding-left: 3rem;
    padding-right: 3rem;
    border: 2px solid var(--gray-border);
    border-radius: 50px;
    height: 50px;
    font-size: 1rem;
    transition: var(--transition);
}

.search-input:focus {
    border-color: var(--main-purple);
    box-shadow: 0 0 0 3px rgba(180, 145, 202, 0.1);
}

.search-clear {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    color: var(--gray);
    z-index: 2;
}

/* ========================================
   ENVIRONMENT CAROUSEL
   ======================================== */
.environment-carousel {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.carousel-slide {
    position: relative;
    height: 300px;
    overflow: hidden;
}

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

.carousel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.3));
}

.carousel-nav {
    display: flex;
    gap: 0.5rem;
}

.carousel-prev,
.carousel-next {
    background: white;
    border: 1px solid var(--gray-border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.carousel-prev:hover,
.carousel-next:hover {
    background: var(--main-purple);
    color: white;
    border-color: var(--main-purple);
}

/* ========================================
   SECTION HEADERS
   ======================================== */
.section-header {
    margin-bottom: 2rem;
}

.section-title {
    color: var(--dark-blue);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--gray);
    margin-bottom: 0;
}

.products-count-badge {
    background: var(--main-purple);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
}

/* ========================================
   CATEGORIES SECTION
   ======================================== */
.categories-section {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.category-main-card {
    background: linear-gradient(135deg, var(--light-purple), #f8f9ff);
    border: 2px solid var(--light-purple);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
    cursor: pointer;
    transition: var(--transition);
}

.category-main-card:hover,
.category-main-card.active {
    background: linear-gradient(135deg, var(--main-purple), #9a7bb5);
    border-color: var(--main-purple);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.category-main-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.category-main-icon {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-main-card.active .category-main-icon {
    background: rgba(255, 255, 255, 0.2);
}

.category-main-icon i {
    font-size: 1.5rem;
    color: var(--main-purple);
}

.category-main-card.active .category-main-icon i {
    color: white;
}

.category-main-info {
    flex: 1;
}

.category-main-title {
    color: var(--dark-blue);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.category-main-card.active .category-main-title {
    color: white;
}

.category-main-description {
    color: var(--gray);
    margin-bottom: 0;
    font-size: 0.9rem;
}

.category-main-card.active .category-main-description {
    color: rgba(255, 255, 255, 0.9);
}

.category-main-badge .badge {
    background: white;
    color: var(--main-purple);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
}

.category-main-card.active .category-main-badge .badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.category-card {
    background: white;
    border: 2px solid var(--gray-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.category-card:hover,
.category-card.active {
    border-color: var(--main-purple);
    box-shadow: var(--shadow);
}

.category-card-header {
    display: flex;
    align-items: center;
    padding: 1.25rem;
    cursor: pointer;
    gap: 1rem;
}

.category-card-icon {
    width: 50px;
    height: 50px;
    background: var(--light-purple);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-card.active .category-card-icon {
    background: var(--main-purple);
}

.category-card-icon i {
    font-size: 1.25rem;
    color: var(--main-purple);
}

.category-card.active .category-card-icon i {
    color: white;
}

.category-card-content {
    flex: 1;
}

.category-card-title {
    color: var(--dark-blue);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.category-card-count {
    color: var(--gray);
    font-size: 0.875rem;
    margin-bottom: 0;
}

.category-card-toggle {
    color: var(--gray);
    transition: var(--transition);
}

.category-card.active .category-card-toggle {
    color: var(--main-purple);
}

/* ========================================
   SUBCATEGORIES PANEL
   ======================================== */
.subcategories-panel {
    border-top: 1px solid var(--gray-border);
    background: var(--gray-light);
    display: none;
}

.subcategories-header {
    padding: 1rem 1.25rem 0.5rem;
}

.subcategories-title {
    color: var(--gray);
    font-size: 0.875rem;
    font-weight: 600;
}

.subcategories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.5rem;
    padding: 0 1.25rem 1.25rem;
}

.subcategory-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: white;
    border: 1px solid var(--gray-border);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.subcategory-card:hover,
.subcategory-card.active {
    background: var(--light-purple);
    border-color: var(--main-purple);
    transform: translateY(-1px);
}

.subcategory-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.subcategory-icon {
    width: 24px;
    height: 24px;
    background: var(--light-purple);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.subcategory-card.active .subcategory-icon {
    background: var(--main-purple);
}

.subcategory-icon i {
    font-size: 0.75rem;
    color: var(--main-purple);
}

.subcategory-card.active .subcategory-icon i {
    color: white;
}

.subcategory-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--dark-blue);
}

.subcategory-badge {
    background: var(--light-purple);
    color: var(--main-purple);
    padding: 0.25rem 0.5rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.subcategory-card.active .subcategory-badge {
    background: var(--main-purple);
    color: white;
}

/* ========================================
   ACTIVE FILTERS
   ======================================== */
.active-filters-container {
    background: var(--light-purple);
    border: 1px solid var(--main-purple);
    border-radius: var(--radius);
    padding: 1rem 1.5rem;
}

.filters-label {
    color: var(--dark-blue);
    font-weight: 600;
    font-size: 0.9rem;
}

.filters-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-tag {
    background: white;
    color: var(--dark-blue);
    padding: 0.5rem 0.75rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--main-purple);
}

.remove-filter {
    cursor: pointer;
    color: var(--gray);
    transition: var(--transition);
}

.remove-filter:hover {
    color: var(--red-dark);
}

.btn-clear-filters {
    background: transparent;
    color: var(--red-dark);
    border: 1px solid var(--red-dark);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    transition: var(--transition);
}

.btn-clear-filters:hover {
    background: var(--red-dark);
    color: white;
}

/* ========================================
   PRODUCTS SECTION
   ======================================== */
.products-section {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.products-count {
    background: var(--light-purple);
    color: var(--main-purple);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
}

.view-toggle {
    display: flex;
    background: var(--gray-light);
    border-radius: 8px;
    padding: 0.25rem;
}

.view-btn {
    background: transparent;
    border: none;
    padding: 0.5rem;
    border-radius: 6px;
    color: var(--gray);
    transition: var(--transition);
}

.view-btn.active {
    background: white;
    color: var(--main-purple);
    box-shadow: var(--shadow);
}

/* Products Container */
.product-card-wrapper {
    transition: var(--transition);
}

/* ========================================
   LOAD MORE BUTTON
   ======================================== */
.btn-load-more {
    background: linear-gradient(135deg, var(--main-purple), #9a7bb5);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0.75rem 2.5rem;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    box-shadow: 0 4px 15px rgba(180, 145, 202, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-load-more::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.btn-load-more:hover::before {
    left: 100%;
}

.btn-load-more:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(180, 145, 202, 0.4);
    background: linear-gradient(135deg, #9a7bb5, var(--main-purple));
}

.btn-load-more:active {
    transform: translateY(0);
}

.btn-load-more:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-load-text,
.btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

/* Products Counter */
.products-counter {
    color: var(--gray);
    font-size: 0.9rem;
}

.counter-text {
    background: var(--gray-light);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 500;
}

#visible-products-count {
    color: var(--deep-green);
    font-weight: 700;
}

#total-products-count {
    color: var(--main-purple);
    font-weight: 700;
}

/* Animation for new products */
.product-card-wrapper.new-item,
.product-list-wrapper.new-item {
    animation: slideInUp 0.6s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   NO PRODUCTS STATE
   ======================================== */
.no-products-state {
    padding: 3rem 2rem;
}

.no-products-icon {
    width: 80px;
    height: 80px;
    background: var(--light-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.no-products-icon i {
    font-size: 2rem;
    color: var(--main-purple);
}

.no-products-title {
    color: var(--dark-blue);
    font-weight: 700;
}

.no-products-description {
    color: var(--gray);
    max-width: 400px;
    margin: 0 auto;
}

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

.empty-state-icon {
    width: 100px;
    height: 100px;
    background: var(--light-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}

.empty-state-icon i {
    font-size: 3rem;
    color: var(--main-purple);
}

.empty-state-title {
    color: var(--dark-blue);
    font-weight: 700;
    margin-bottom: 1rem;
}

.empty-state-description {
    color: var(--gray);
    max-width: 500px;
    margin: 0 auto 2rem;
}

.empty-state-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--deep-green);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--green-darker);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--deep-green);
    border: 2px solid var(--deep-green);
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-outline:hover {
    background: var(--deep-green);
    color: white;
    transform: translateY(-2px);
}

/* ========================================
   ANIMATIONS
   ======================================== */
.cart-pulse {
    animation: pulse 0.6s ease-in-out;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ========================================
   SPLIDE CAROUSEL CUSTOMIZATIONS
   ======================================== */
.splide__pagination {
    bottom: -2rem;
}

.splide__pagination__page.is-active {
    background: var(--main-purple);
}

.splide__arrow {
    background: rgba(180, 145, 202, 0.8);
}

.splide__arrow svg {
    fill: white;
}

.splide__arrow:hover:not(:disabled) {
    background: var(--main-purple);
}

/* ========================================
   ACCESSIBILITY
   ======================================== */
html {
    scroll-behavior: smooth;
}

.enhanced-cart-btn:focus,
.search-input:focus,
.view-btn:focus,
.category-card-header:focus,
.subcategory-card:focus {
    outline: 2px solid var(--main-purple);
    outline-offset: 2px;
}

/* ========================================
   BACK TO TOP BUTTON
   ======================================== */
.back-to-top {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background: var(--main-purple);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    z-index: 1000;
}

.back-to-top:hover {
    transform: translateY(-3px);
    background: var(--deep-green);
}

/* ========================================
   MODERN PRODUCT CARD STYLES - GRID VIEW
   ======================================== */

.product-card-modern {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.product-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.product-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Product Image Wrapper */
.product-image-wrapper {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px 16px 0 0;
}

.product-image-link {
    display: block;
    text-decoration: none;
}

.product-image-container {
    position: relative;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 1;
}

.product-card-modern:hover .product-image {
    transform: scale(1.08);
}

/* Image Overlay */
.product-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(5, 74, 41, 0.95), rgba(16, 188, 156, 0.95));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
}

.product-card-modern:hover .product-image-overlay {
    opacity: 1;
}

.overlay-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: white;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.product-card-modern:hover .overlay-content {
    transform: translateY(0);
}

.overlay-content i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.overlay-content span {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Product Badges */
.product-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.badge-discount {
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    box-shadow: 0 4px 12px rgba(238, 90, 111, 0.4);
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.badge-discount i {
    font-size: 0.85rem;
}

/* Product Actions */
.product-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.action-btn i {
    font-size: 1.1rem;
    color: #6c757d;
    transition: all 0.3s ease;
}

.action-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.action-btn.wishlist-btn:hover i,
.action-btn.wishlist-btn.active i {
    color: #dc3545;
}

/* Product Info */
.product-info {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.product-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #080759;
    text-decoration: none;
    line-height: 1.4;
    min-height: auto;
    transition: color 0.3s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.product-name:hover {
    color: #054A29;
}

/* Product Price */
.product-price-container {
    margin-top: auto;
}

.price-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.price-original {
    font-size: 0.85rem;
    color: #6c757d;
    text-decoration: line-through;
}

.price-current {
    font-size: 1.1rem;
    font-weight: 700;
    color: #054A29;
    letter-spacing: -0.3px;
}

/* Add to Cart Button - Modern Style */
.btn-add-to-cart {
    width: 100%;
    background: linear-gradient(135deg, #054A29, #10BC9C);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 0.85rem 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 16px rgba(5, 74, 41, 0.25);
    position: relative;
    overflow: hidden;
}

.btn-add-to-cart::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.btn-add-to-cart:hover::before {
    left: 100%;
}

.btn-add-to-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(5, 74, 41, 0.35);
    background: linear-gradient(135deg, #10BC9C, #054A29);
}

.btn-add-to-cart:active {
    transform: translateY(0);
}

.btn-add-to-cart i {
    font-size: 1.1rem;
}

.cart-btn-content,
.cart-loading,
.cart-success {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* ========================================
   MOBILE RESPONSIVE STYLES
   ======================================== */

/* Mobile responsive pour la vue liste */
@media (max-width: 767px) {
    .products-list {
        display: none;
    }

    .view-list .products-list {
        display: block !important;
    }

    .view-list .products-grid {
        display: none !important;
    }

    .product-list-card .row {
        flex-direction: column;
        text-align: center;
    }

    .product-list-card .col-4,
    .product-list-card .col-8,
    .product-list-card .col-12 {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }

    .product-list-card .col-4 {
        margin-bottom: 1rem;
    }

    .product-list-card .col-8 {
        margin-bottom: 1rem;
    }

    .product-list-card .col-12 {
        margin-top: 1rem;
    }

    .product-list-name {
        font-size: 1rem;
        text-align: center;
        margin-bottom: 0.5rem;
    }

    .category-badge {
        text-align: center;
        margin-bottom: 1rem;
    }

    .list-cart-btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .products-list .d-flex.justify-content-center {
        justify-content: center !important;
    }

    .products-list .gap-2 {
        gap: 0.5rem !important;
    }

    /* Amélioration du filtrage mobile */
    .categories-grid {
        grid-template-columns: 1fr;
    }

    .category-card-header {
        padding: 1rem;
        cursor: pointer;
    }

    .subcategories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .active-filters-container .d-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .filters-tags {
        width: 100%;
        flex-wrap: wrap;
    }

    /* Amélioration des catégories sur mobile */
    .categories-section {
        padding: 1rem;
        background: transparent;
        box-shadow: none;
    }

    .category-main-card {
        padding: 1.25rem;
        border-radius: 12px;
        margin-bottom: 1.5rem;
        background: linear-gradient(135deg, #f8f9fa, white);
        border: 2px solid #F8EFEF;
    }

    .category-main-card.active {
        background: linear-gradient(135deg, #B491CA, #9a7bb5);
        box-shadow: 0 6px 20px rgba(180, 145, 202, 0.3);
    }

    .category-main-icon {
        width: 50px;
        height: 50px;
    }

    .category-main-title {
        font-size: 1.1rem;
    }

    .category-card {
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    }

    .category-card-header {
        padding: 1.25rem;
        background: white;
        transition: all 0.3s ease;
    }

    .category-card-header:active {
        background: #F8EFEF;
    }

    .category-card.active .category-card-header {
        background: linear-gradient(135deg, #F8EFEF, white);
    }

    .subcategories-panel {
        background: #f8f9fa;
    }

    .subcategories-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 1rem;
    }

    .subcategory-card {
        padding: 1rem;
        border-radius: 10px;
        background: white;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    }

    .subcategory-card:active {
        transform: scale(0.98);
    }

    /* Product Cards Mobile */
    .product-card-modern {
        border-radius: 12px;
    }

    .product-image-container {
        height: 180px;
        padding: 1rem;
    }

    .product-info {
        padding: 1rem;
    }

    .product-name {
        font-size: 0.85rem;
        min-height: auto;
    }

    .price-current {
        font-size: 1rem;
    }

    .btn-add-to-cart {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
        border-radius: 10px;
    }

    .action-btn {
        width: 36px;
        height: 36px;
    }

    .action-btn i {
        font-size: 1rem;
    }

    /* CORRECTION: Filtrage en mode liste sur mobile */
    .view-list .products-list {
        display: block !important;
    }

    .view-list .products-grid {
        display: none !important;
    }

    .product-list-wrapper {
        display: block;
        margin-bottom: 1rem;
    }
}

/* Mobile optimization */
@media (max-width: 768px) {
    .enhanced-cart-btn {
        padding: 0.4rem 0.8rem;
        min-height: 32px;
        font-size: 0.75rem;
    }

    .list-cart-btn {
        padding: 0.5rem 0.8rem;
        min-height: 36px;
        font-size: 0.75rem;
    }

    .enhanced-cart-btn:hover:not(:disabled) {
        transform: translateY(-1px);
    }

    .products-grid {
        gap: 0.75rem;
    }

    .btn-load-more {
        padding: 0.6rem 2rem;
        min-height: 45px;
        font-size: 0.9rem;
    }

    /* Amélioration du responsive pour les catégories */
    .categories-section {
        padding: 1rem;
    }

    .category-main-card {
        padding: 1rem;
    }

    .category-main-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

/* S'assurer que la vue liste fonctionne sur mobile */
@media (max-width: 575px) {
    .view-list .products-list {
        display: block !important;
    }

    .view-list .products-grid {
        display: none !important;
    }

    .product-list-wrapper {
        display: block;
        width: 100%;
    }

    .product-list-card {
        margin-bottom: 1rem;
    }

    .subcategories-grid {
        grid-template-columns: 1fr;
    }

    /* Amélioration du touch sur mobile */
    .category-card-header,
    .subcategory-card,
    .category-main-card {
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .category-card-header:active,
    .subcategory-card:active,
    .category-main-card:active {
        background-color: rgba(180, 145, 202, 0.1);
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .product-image-container {
        height: 200px;
    }

    .badge-discount {
        font-size: 0.7rem;
        padding: 0.4rem 0.6rem;
    }
}

/* Additional responsive adjustments for very small screens */
@media (max-width: 380px) {
    .products-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }

    .category-card-header {
        padding: 1rem;
    }

    .category-main-card {
        padding: 1rem;
    }

    .subcategories-grid {
        grid-template-columns: 1fr;
    }
}

/* Pour les écrans très étroits */
@media (max-width: 320px) {
    .products-grid {
        grid-template-columns: 1fr !important;
    }

    .product-name {
        font-size: 0.8rem;
    }

    .price-current {
        font-size: 0.95rem;
    }
}

/* Responsive adjustments for product cards */
@media (min-width: 768px) and (max-width: 991px) {
    .product-image-container {
        height: 200px;
    }
}

@media (min-width: 992px) {
    .product-image-container {
        height: 240px;
    }

    .product-name {
        font-size: 0.95rem;
    }

    .price-current {
        font-size: 1.15rem;
    }
}

/* ========================================
   SKELETON LOADER
   ======================================== */
.skeleton-loader {
    display: none;
    width: 100%;
}

.skeleton-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    width: 100%;
}

@media (min-width: 768px) {
    .skeleton-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 992px) {
    .skeleton-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.skeleton-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.skeleton-image {
    height: 220px;
    background: #e0e0e0;
    position: relative;
    overflow: hidden;
}

.skeleton-info {
    padding: 1.25rem;
}

.skeleton-title {
    height: 20px;
    background: #e0e0e0;
    margin-bottom: 10px;
    border-radius: 4px;
    width: 80%;
    position: relative;
    overflow: hidden;
}

.skeleton-title-short {
    height: 20px;
    background: #e0e0e0;
    margin-bottom: 15px;
    border-radius: 4px;
    width: 60%;
    position: relative;
    overflow: hidden;
}

.skeleton-price {
    height: 24px;
    background: #e0e0e0;
    margin-bottom: 15px;
    border-radius: 4px;
    width: 40%;
    position: relative;
    overflow: hidden;
}

.skeleton-button {
    height: 42px;
    background: #e0e0e0;
    border-radius: 12px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

/* Animation Shimmer */
.skeleton-image::after,
.skeleton-title::after,
.skeleton-title-short::after,
.skeleton-price::after,
.skeleton-button::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background-image: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0,
            rgba(255, 255, 255, 0.2) 20%,
            rgba(255, 255, 255, 0.5) 60%,
            rgba(255, 255, 255, 0));
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

/* ========================================
   PAGE SKELETON LOADER
   ======================================== */
.page-skeleton {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f8f9fa;
    z-index: 9999;
    padding: 1rem;
    overflow-y: auto;
    padding-bottom: 80px;
    /* Pour la bottom nav */
}

.skeleton-header {
    margin-bottom: 1.5rem;
}

.skeleton-search {
    height: 50px;
    background: white;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.skeleton-carousel {
    height: 200px;
    background: #e0e0e0;
    border-radius: 16px;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.skeleton-categories-row {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
}

.skeleton-category-card {
    min-width: 120px;
    height: 140px;
    background: white;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.skeleton-section-title {
    height: 30px;
    width: 50%;
    background: #e0e0e0;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

/* Appliquer l'animation shimmer aux nouveaux éléments */
.skeleton-search::after,
.skeleton-carousel::after,
.skeleton-category-card::after,
.skeleton-section-title::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background-image: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0,
            rgba(255, 255, 255, 0.2) 20%,
            rgba(255, 255, 255, 0.5) 60%,
            rgba(255, 255, 255, 0));
    animation: shimmer 1.5s infinite;
}

/* ========================================
   INFORMATIVE NOTE - PREMIUM MODERN DESIGN
   ======================================== */
.info-note-premium {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border: 2px solid transparent;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 40px rgba(5, 74, 41, 0.08);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.info-note-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--deep-green), var(--green-light), var(--main-purple));
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.info-note-premium:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 50px rgba(5, 74, 41, 0.12);
}

.info-note-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px dashed var(--gray-border);
}

.info-note-icon-premium {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--deep-green), var(--green-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 25px rgba(5, 74, 41, 0.25);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.info-note-icon-premium i {
    font-size: 2rem;
    color: white;
}

.info-note-text {
    flex: 1;
}

.info-note-title-premium {
    color: var(--dark-blue);
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--deep-green), var(--main-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.info-note-subtitle {
    color: var(--gray);
    font-size: 1rem;
    margin-bottom: 0;
    line-height: 1.6;
}

/* Steps Premium Design */
.info-steps-premium {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .info-steps-premium {
        flex-direction: column;
    }

    .step-arrow {
        transform: rotate(90deg);
    }
}

.info-step-premium {
    flex: 1;
    min-width: 200px;
    background: white;
    border: 2px solid var(--gray-border);
    border-radius: 16px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.info-step-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(180, 145, 202, 0.1), transparent);
    transition: left 0.6s;
}

.info-step-premium:hover::before {
    left: 100%;
}

.info-step-premium:hover {
    border-color: var(--main-purple);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 30px rgba(180, 145, 202, 0.25);
}

.step-circle {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--main-purple), #9a7bb5);
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 6px 20px rgba(180, 145, 202, 0.3);
    transition: all 0.3s ease;
}

.info-step-premium:hover .step-circle {
    transform: rotate(360deg) scale(1.1);
}

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

.step-icon {
    font-size: 1.75rem;
    color: var(--main-purple);
    transition: all 0.3s ease;
}

.info-step-premium:hover .step-icon {
    color: var(--deep-green);
    transform: scale(1.2);
}

.step-label {
    color: var(--dark-blue);
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.4;
}

.step-arrow {
    color: var(--main-purple);
    font-size: 1.5rem;
    flex-shrink: 0;
    animation: arrowBounce 2s ease-in-out infinite;
}

@keyframes arrowBounce {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(5px);
    }
}

/* Empty State - Enhanced Modern Design */
.empty-state-modern {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 50%, #f0f4ff 100%);
    border-radius: 24px;
    margin: 40px 0;
    border: 2px solid var(--gray-border);
    position: relative;
    overflow: hidden;
}

.empty-state-modern::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(180, 145, 202, 0.05) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.empty-state-icon {
    width: 140px;
    height: 140px;
    margin: 0 auto 32px;
    background: linear-gradient(135deg, var(--main-purple), #9a7bb5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    box-shadow: 0 15px 40px rgba(180, 145, 202, 0.3);
    animation: floatAndPulse 3s ease-in-out infinite;
}

@keyframes floatAndPulse {

    0%,
    100% {
        transform: translateY(0) scale(1);
        box-shadow: 0 15px 40px rgba(180, 145, 202, 0.3);
    }

    50% {
        transform: translateY(-15px) scale(1.05);
        box-shadow: 0 20px 50px rgba(180, 145, 202, 0.4);
    }
}

.empty-state-icon i {
    font-size: 3.5rem;
    color: white;
}

.empty-state-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.empty-state-description {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.empty-state-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.btn-primary-modern {
    padding: 16px 36px;
    background: linear-gradient(135deg, var(--main-purple), #9a7bb5);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(180, 145, 202, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.btn-primary-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.btn-primary-modern:hover::before {
    left: 100%;
}

.btn-primary-modern:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(180, 145, 202, 0.45);
    color: white;
    background: linear-gradient(135deg, #9a7bb5, var(--main-purple));
}

.btn-outline-modern {
    padding: 16px 36px;
    background: white;
    color: var(--main-purple);
    border: 2px solid var(--main-purple);
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-outline-modern:hover {
    background: var(--main-purple);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(180, 145, 202, 0.3);
}

/* ========================================
   ENHANCED EMPTY STATE STYLES
   ======================================== */

/* Welcome Badge */
.welcome-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(180, 145, 202, 0.15), rgba(16, 188, 156, 0.15));
    border: 1px solid rgba(180, 145, 202, 0.3);
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--main-purple);
    margin-bottom: 24px;
    animation: fadeInUp 0.5s ease-out;
}

.badge-sparkle {
    animation: sparkle 1.5s ease-in-out infinite;
}

@keyframes sparkle {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.3);
        opacity: 0.8;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Guide Icon Animation */
.guide-icon-animated {
    background: linear-gradient(135deg, var(--deep-green), var(--green-light)) !important;
    box-shadow: 0 15px 40px rgba(5, 74, 41, 0.3) !important;
}

.guide-icon-animated i {
    animation: compass 3s ease-in-out infinite;
}

@keyframes compass {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(15deg);
    }

    75% {
        transform: rotate(-15deg);
    }
}

/* Search Icon Animation */
.search-icon-animated {
    background: linear-gradient(135deg, #6c757d, #adb5bd) !important;
    box-shadow: 0 15px 40px rgba(108, 117, 125, 0.3) !important;
}

.search-icon-animated i {
    animation: searchPulse 2s ease-in-out infinite;
}

@keyframes searchPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* Mini Steps Guide */
.mini-steps-guide {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 32px 0;
    padding: 24px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    border: 1px solid var(--gray-border);
}

.mini-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    padding: 12px 16px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    min-width: 100px;
    transition: all 0.3s ease;
}

.mini-step:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.mini-step-number {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--deep-green), var(--green-light));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.mini-step span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--dark-blue);
}

.mini-step-arrow {
    color: var(--gray);
    font-size: 1rem;
}

/* Responsive for Mini Steps */
@media (max-width: 576px) {
    .mini-steps-guide {
        gap: 8px;
        padding: 16px;
    }

    .mini-step {
        min-width: 80px;
        padding: 8px 12px;
    }

    .mini-step-number {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }

    .mini-step span {
        font-size: 0.75rem;
    }

    .mini-step-arrow {
        font-size: 0.8rem;
    }

    .welcome-badge {
        font-size: 0.85rem;
        padding: 8px 16px;
    }
}

/* Initial Guide State Specific */
.initial-guide-state {
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f5e9 50%, #f8f9fa 100%);
    border: 2px dashed rgba(5, 74, 41, 0.2);
}

/* Empty Search State Specific */
.empty-search-state {
    background: linear-gradient(135deg, #f8f9fa 0%, #f0f0f0 100%);
}

/* Scroll to categories smooth behavior */
.scroll-to-categories {
    scroll-behavior: smooth;
}