/* ====================================================
   CATALOGUE SECTION STYLES
==================================================== */

.catalogue-section {
    padding: 40px 0;
    background: #fafafa;
    min-height: 70vh;
}

.catalogue-header {
    margin-bottom: 30px;
}

.catalogue-header .section-title {
    margin-bottom: 10px;
}

.catalogue-header .section-subtitle {
    color: #888;
    font-size: 1rem;
}

/* ====================================================
   CATEGORY CARDS SECTION
==================================================== */

.category-cards-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.category-section-title {
    color: #2c2c2c;
    font-size: 1.4rem;
    font-weight: 600;
}

.category-card {
    background: #fff;
    border: 2px solid #f0f0f0;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 150px;
}

.category-card:hover {
    border-color: #e8a2c0;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(232, 162, 192, 0.1);
}

.category-icon {
    width: 50px;
    height: 50px;
    background: #f8e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    color: #e8a2c0;
    font-size: 20px;
}

.category-card:hover .category-icon {
    background: #e8a2c0;
    color: white;
}

.category-name {
    font-size: 14px;
    font-weight: 600;
    color: #2c2c2c;
    margin-bottom: 5px;
    line-height: 1.3;
}

.category-count {
    font-size: 12px;
    color: #888;
    margin: 0;
}

/* ====================================================
   FILTER SIDEBAR
==================================================== */

.filter-sidebar {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    padding: 20px;
    position: sticky;
    top: 100px;
    height: fit-content;
}

.mobile-filter-header {
    display: none;
}

.btn-filter-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px;
    background: white;
    border: 2px solid #e8a2c0;
    color: #e8a2c0;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-filter-toggle:hover {
    background: #e8a2c0;
    color: white;
}

.filter-count {
    background: #e8a2c0;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    margin-left: 8px;
}

.filter-group {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.filter-group:last-child {
    border-bottom: none;
}

.filter-title {
    font-size: 15px;
    font-weight: 600;
    color: #2c2c2c;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.filter-title i {
    color: #e8a2c0;
}

.filter-options {
    max-height: 200px;
    overflow-y: auto;
    padding-right: 10px;
}

.filter-options .form-check {
    margin-bottom: 8px;
}

.filter-options .form-check-label {
    font-size: 13px;
    color: #555;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-badge {
    background: #f0f0f0;
    color: #666;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
}

.filter-options .form-check-input {
    accent-color: #e8a2c0;
    cursor: pointer;
}

.filter-options .form-check-input:checked + .form-check-label {
    color: #e8a2c0;
    font-weight: 500;
}

.filter-options .form-check-input:checked + .form-check-label .category-badge {
    background: #e8a2c0;
    color: white;
}

/* Price Filter */
.price-filter {
    padding: 10px 0;
}

.price-slider input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #f0f0f0;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.price-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #e8a2c0;
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.price-values {
    font-size: 13px;
    color: #666;
}

/* Reset Button */
.btn-reset-filters {
    background: #f8f8f8;
    color: #666;
    border: 1px solid #e0e0e0;
    padding: 10px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-reset-filters:hover {
    background: #e8a2c0;
    color: white;
    border-color: #e8a2c0;
}

/* ====================================================
   PRODUCTS GRID
==================================================== */

.products-header {
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.products-count h5 {
    color: #2c2c2c;
    font-size: 16px;
}

#activeFilters {
    font-size: 12px;
    color: #e8a2c0;
}

.products-sort .form-select {
    border-color: #e0e0e0;
    border-radius: 6px;
    font-size: 13px;
    min-width: 160px;
    padding: 8px 12px;
}

/* Product Cards */
.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(232, 162, 192, 0.1);
}

.product-image {
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    color: #2c2c2c;
    text-decoration: none;
    margin-bottom: 8px;
}

.product-title h5 {
    font-size: 15px;
    font-weight: 500;
    margin: 0;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.product-title:hover h5 {
    color: #e8a2c0;
}

.product-category {
    font-size: 12px;
    color: #888;
    margin-bottom: 10px;
}

.product-price {
    font-size: 16px;
    font-weight: 600;
    color: #e8a2c0;
    margin-bottom: 15px;
}

/* Product Actions */
.product-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn-add-to-cart {
    background: #e8a2c0;
    color: white;
    border: none;
    padding: 8px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-add-to-cart:hover {
    background: #d489ad;
}

.btn-view-details {
    background: white;
    color: #e8a2c0;
    border: 1px solid #e8a2c0;
    padding: 8px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 13px;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-view-details:hover {
    background: #e8a2c0;
    color: white;
}

/* No Products/Results */
.no-products, .no-results {
    padding: 40px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.no-products i, .no-results i {
    opacity: 0.3;
}

/* ====================================================
   MOBILE RESPONSIVE
==================================================== */

@media (max-width: 992px) {
    .catalogue-section {
        padding: 30px 0;
    }
    
    .mobile-filter-header {
        display: block;
    }
    
    .filter-container {
        display: none;
        margin-top: 15px;
        background: white;
        border-radius: 12px;
        padding: 15px;
        box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    }
    
    .filter-container.show {
        display: block;
    }
    
    .filter-sidebar {
        position: static;
        padding: 0;
        background: transparent;
        box-shadow: none;
    }
    
    .category-card {
        min-height: 130px;
        padding: 12px;
    }
    
    .category-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .category-name {
        font-size: 13px;
    }
    
    .category-count {
        font-size: 11px;
    }
}

@media (max-width: 768px) {
    .catalogue-header .section-title {
        font-size: 1.5rem;
    }
    
    .category-cards-section {
        padding: 15px;
    }
    
    .category-section-title {
        font-size: 1.2rem;
    }
    
    .product-image {
        height: 180px;
    }
    
    .product-info {
        padding: 12px;
    }
    
    .product-title h5 {
        font-size: 14px;
    }
    
    .product-price {
        font-size: 15px;
    }
    
    .btn-add-to-cart, .btn-view-details {
        font-size: 12px;
        padding: 7px;
    }
}

@media (max-width: 576px) {
    .catalogue-section {
        padding: 20px 0;
    }
    
    .category-card {
        min-height: 120px;
        padding: 10px;
    }
    
    .product-image {
        height: 160px;
    }
    
    .no-products, .no-results {
        padding: 30px 15px;
    }
}
/* ====================================================
   CATALOGUE PAGE ADD TO CART FIXES
==================================================== */

.catalogue-section .add-cart-form {
    margin: 0;
    padding: 0;
    width: 100%;
}

.catalogue-section .product-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 15px;
}

.catalogue-section .btn-add-to-cart {
    background: #e8a2c0;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.catalogue-section .btn-add-to-cart:hover {
    background: #d489ad;
    transform: translateY(-2px);
}

.catalogue-section .btn-add-to-cart.loading {
    background: #ccc;
    cursor: not-allowed;
}

.catalogue-section .btn-add-to-cart.success {
    background: #4CAF50;
}

.catalogue-section .btn-view-details {
    background: white;
    color: #e8a2c0;
    border: 1px solid #e8a2c0;
    padding: 10px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    width: 100%;
}

.catalogue-section .btn-view-details:hover {
    background: #e8a2c0;
    color: white;
}

/* Cart notification for catalogue */
.catalogue-section .cart-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    padding: 15px;
    z-index: 9999;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-width: 300px;
    border-left: 4px solid #4CAF50;
    display: none;
}

.catalogue-section .cart-notification.show {
    transform: translateX(0);
    display: block;
}

.catalogue-section .notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.catalogue-section .notification-icon {
    background: rgba(76, 175, 80, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4CAF50;
    font-size: 18px;
    flex-shrink: 0;
}

.catalogue-section .notification-text h5 {
    font-size: 14px;
    margin-bottom: 4px;
    color: #333;
    font-weight: 600;
}

.catalogue-section .notification-text p {
    font-size: 12px;
    color: #666;
    margin: 0;
}
/* Add these styles to your catalogue.css file */

.catalogue-section .btn-add-to-cart.loading {
    background: #ccc !important;
    cursor: not-allowed !important;
}

.catalogue-section .btn-add-to-cart.success {
    background: #4CAF50 !important;
}

.catalogue-section .btn-add-to-cart:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Animation for cart count */
.cart-count {
    transition: all 0.3s ease;
}

.cart-count.updated {
    animation: cartBounce 0.5s ease;
}

@keyframes cartBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

/* Loading spinner for buttons */
.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}