.product-card {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
    border: 1px solid #ddd;
    border-radius: 10px;
}

.product-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.product-thumb {
    position: relative;
    /* height: 340px !important; */
    height: 280px !important;
    /* background: #0fc60838; */
    background: linear-gradient(to right, #dfece2, #fff) !important;;
    overflow: hidden;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    transition: opacity 0.3s ease;
}

.product-img.back {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    z-index: 2;
}

.product-card:hover .product-img.front {
    opacity: 0;
}

.product-card:hover .product-img.back {
    opacity: 1;
}

.product-actions {
    position: absolute;
    top: 15px;
    right: -50px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: right 0.5s ease;
    z-index: 3;
}

.product-card:hover .product-actions {
    right: 15px;
}

.product-actions button {
    background: white;
    border: none;
    border-radius: 50%;
    margin: 5px 5px 0px 0px;
    width: 40px;
    height: 40px;
    padding: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s;
}

.product-actions button:hover {
    background-color: green;
    color: white;
    font-weight: bold;
    transform: scale(1.1);
}

.product-actions button.wishlisted .bi-suit-heart {
    color: red;
}

/* Enhanced All Products Section Styles */
.all-products-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
    padding: 120px 0 100px 0;
    margin: 0;
    min-height: 100vh;
}

.all-products-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="productGrid" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(40,167,69,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23productGrid)"/></svg>');
    opacity: 0.4;
}

.products-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.products-floating-shape {
    position: absolute;
    border-radius: 50%;
    animation: productsFloat 12s ease-in-out infinite;
    opacity: 0.1;
}

.products-shape-1 {
    width: 150px;
    height: 150px;
    background: linear-gradient(45deg, #28a745, #20c997);
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.products-shape-2 {
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, #ffc107, #fd7e14);
    top: 20%;
    right: 10%;
    animation-delay: 3s;
}

.products-shape-3 {
    width: 120px;
    height: 120px;
    background: linear-gradient(45deg, #6f42c1, #e83e8c);
    bottom: 15%;
    left: 15%;
    animation-delay: 6s;
}

.products-shape-4 {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #17a2b8, #6610f2);
    bottom: 25%;
    right: 20%;
    animation-delay: 9s;
}

.products-shape-5 {
    width: 90px;
    height: 90px;
    background: linear-gradient(45deg, #dc3545, #fd7e14);
    top: 50%;
    left: 8%;
    animation-delay: 2s;
}

.products-shape-6 {
    width: 110px;
    height: 110px;
    background: linear-gradient(45deg, #198754, #20c997);
    top: 60%;
    right: 8%;
    animation-delay: 8s;
}

@keyframes productsFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg) scale(1);
        opacity: 0.1;
    }
    25% {
        transform: translateY(-30px) rotate(90deg) scale(1.1);
        opacity: 0.2;
    }
    50% {
        transform: translateY(-15px) rotate(180deg) scale(0.9);
        opacity: 0.15;
    }
    75% {
        transform: translateY(-25px) rotate(270deg) scale(1.05);
        opacity: 0.25;
    }
}

.products-header {
    position: relative;
    z-index: 2;
    margin-bottom: 4rem;
}

.products-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    padding: 10px 25px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(40, 167, 69, 0.3);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2);
    transition: all 0.3s ease;
}

.products-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
}

.products-badge i {
    font-size: 1rem;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.2) rotate(180deg); }
}

.products-title {
    font-size: 4rem;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #2c3e50 0%, #28a745 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.products-subtitle {
    font-size: 1.3rem;
    color: #6c757d;
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.products-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.divider-line {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #28a745, transparent);
}

.divider-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #28a745, #20c997);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.products-grid {
    position: relative;
    z-index: 2;
}

.products-count-info {
    display: inline-flex;
    align-items: center;
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(40, 167, 69, 0.2);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.1);
}

/* Enhanced Product Card Styles for All Products Page */
.all-products-section .product-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.all-products-section .product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.05) 0%, rgba(32, 201, 151, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.all-products-section .product-card:hover::before {
    opacity: 1;
}

.all-products-section .product-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border-color: rgba(40, 167, 69, 0.3);
}

.all-products-section .product-thumb {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.all-products-section .product-img {
    transition: all 0.4s ease;
    padding: 10px;
}

.all-products-section .product-card:hover .product-img.front {
    transform: scale(1.1);
    opacity: 0;
}

.all-products-section .product-card:hover .product-img.back {
    transform: scale(1.1);
    opacity: 1;
}

.all-products-section .product-actions {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.all-products-section .product-actions button {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    border-radius: 10px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.all-products-section .product-actions button:hover {
    background: linear-gradient(135deg, #20c997, #28a745);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

.all-products-section .product-details {
    padding: 1rem;
}

.all-products-section .product-title {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.all-products-section .product-card:hover .product-title {
    color: #28a745;
}

.all-products-section .view-btn {
    background: linear-gradient(135deg, #28a745, #20c997);
    border: none;
    color: white;
    font-weight: 600;
    border-radius: 10px;
    padding: 12px 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.all-products-section .view-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 ease;
}

.all-products-section .view-btn:hover::before {
    left: 100%;
}

.all-products-section .view-btn:hover {
    background: linear-gradient(135deg, #20c997, #28a745);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
    color: white;
}

/* Responsive Design for All Products */
@media (max-width: 768px) {
    .all-products-section {
        padding: 100px 0 60px 0;
    }

    .products-title {
        font-size: 2.5rem;
    }

    .products-subtitle {
        font-size: 1.1rem;
    }

    .products-badge {
        padding: 8px 20px;
        font-size: 0.85rem;
    }

    .all-products-section .product-card {
        padding: 1.2rem !important;
    }

    .all-products-section .product-thumb {
        height: 220px;
    }

    .all-products-section .product-img {
        padding: 8px;
    }

    .all-products-section .product-actions {
        top: 10px;
        right: 10px;
    }

    .all-products-section .product-actions button {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .products-floating-shape {
        display: none;
    }
}

@media (max-width: 576px) {
    .products-title {
        font-size: 2rem;
    }
    
    .products-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .all-products-section .product-card {
        margin-bottom: 1.5rem;
    }
}

/* Enhanced Search and Filter Section */
.products-filter-section {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 3;
}

.search-container {
    position: relative;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 20px;
    color: #28a745;
    font-size: 1.1rem;
    z-index: 2;
}

.search-input {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(40, 167, 69, 0.2);
    border-radius: 15px;
    padding: 15px 20px 15px 50px;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.search-input:focus {
    outline: none;
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25), 0 8px 30px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 1);
}

.search-input::placeholder {
    color: #6c757d;
    font-weight: 400;
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    margin-top: 5px;
    border: 1px solid rgba(40, 167, 69, 0.1);
}

.search-suggestion-item {
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.search-suggestion-item:hover {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.search-suggestion-item:last-child {
    border-bottom: none;
}

.filter-dropdown,
.sort-dropdown {
    position: relative;
}

.filter-select,
.sort-select {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(40, 167, 69, 0.2);
    border-radius: 15px;
    padding: 15px 20px;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    cursor: pointer;
}

.filter-select:focus,
.sort-select:focus {
    outline: none;
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25), 0 8px 30px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 1);
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    min-height: 20px;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    animation: tagSlideIn 0.3s ease-out;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-tag:hover {
    background: linear-gradient(135deg, #20c997, #28a745);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.filter-tag .remove-tag {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-tag .remove-tag:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

@keyframes tagSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Results and Loading States */
.products-loading {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.products-loading i {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.no-products-found {
    text-align: center;
    padding: 4rem 2rem;
    color: #6c757d;
}

.no-products-found i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #dee2e6;
}

.no-products-found h3 {
    color: #495057;
    margin-bottom: 1rem;
}

.no-products-found p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.clear-filters-btn {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.clear-filters-btn:hover {
    background: linear-gradient(135deg, #20c997, #28a745);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
    color: white;
    text-decoration: none;
}

/* Enhanced Product Grid Animations */
.products-grid.filtering {
    opacity: 0.7;
    pointer-events: none;
}

.product-card.hidden {
    opacity: 0 !important;
    transform: scale(0.8) !important;
    pointer-events: none !important;
    transition: all 0.3s ease !important;
    visibility: hidden;
}

.product-card.visible {
    opacity: 1 !important;
    transform: scale(1) !important;
    pointer-events: auto !important;
    transition: all 0.3s ease !important;
    visibility: visible;
}

.product-card {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
    visibility: visible;
    transition: all 0.3s ease;
}

/* Responsive Design for Filter Section */
@media (max-width: 768px) {
    .products-filter-section {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .search-input,
    .filter-select,
    .sort-select {
        padding: 12px 15px;
        font-size: 0.95rem;
    }
    
    .search-input {
        padding-left: 45px;
    }
    
    .search-icon {
        left: 15px;
    }
    
    .filter-tags {
        margin-top: 1rem;
    }
    
    .filter-tag {
        font-size: 0.85rem;
        padding: 6px 12px;
    }
}

@media (max-width: 576px) {
    .products-filter-section {
        padding: 1rem;
        border-radius: 15px;
    }
    
    .search-input,
    .filter-select,
    .sort-select {
        border-radius: 12px;
        margin-bottom: 10px;
    }
    
    .filter-tags {
        justify-content: center;
    }
}