﻿/* Reset and Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    margin: 0;
    width: 100% ;
    overflow-x: hidden;
}

/* Hero Section với background image */
.hero-section {
    position: relative;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
    margin: 0;
    padding: 2rem 1rem;
    width: 100%;
    box-sizing: border-box;
    border-radius: 15px;
    margin-bottom: 20px;
}

    .hero-section::before {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('/images/background.jpg') center/cover no-repeat;
        z-index: -1; /* đẩy ảnh ra sau */
    }


    /* nếu muốn thêm lớp overlay mờ */
    .hero-section::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgb(0 0 0 / 15%); /* mờ đen */
        z-index: -1;
    }

.hero-content {
    max-width: 800px;
    padding: 2rem;
    animation: fadeInUp 1s ease-out;
}

    .hero-content h1 {
        font-size: 5rem;
        margin-bottom: 1rem;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    }

    .hero-content p {
        font-size: 1.3rem;
        margin-bottom: 2rem;
        opacity: 0.9;
    }

.stats-container {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
}

.stat-item {
    background: rgba(255,255,255,0.1);
    padding: 2rem 1.5rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    min-width: 150px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #FFD700;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    margin-top: 0.5rem;
    opacity: 0.8;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    animation: bounce 2s infinite;
    cursor: pointer;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Products Section với overlay effect */
.products-section {
    background: rgba(255,255,255,0.95);
    position: relative;
    z-index: 10;
    border-radius: 30px 30px 15px 15px;
    box-shadow: 0 -20px 40px rgba(0,0,0,0.1);
}

.products-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 4rem 20px 20px;
    position: relative;
}

/* Main Layout */
.main-layout {
    display: grid;
    grid-template-columns: 280px 1fr 280px;
    gap: 30px;
    position: relative;
}

/* Mobile Filter Toggle Buttons */
.mobile-filter-toggles {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.mobile-filter-btn {
    padding: 15px 20px;
    background: black;
    color: white;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

    .mobile-filter-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(93, 173, 226, 0.3);
    }

    .mobile-filter-btn:active {
        transform: translateY(0);
    }

    .mobile-filter-btn i {
        font-size: 1.2rem;
    }

/* Mobile Sidebar Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1051;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

    .sidebar-overlay.active {
        opacity: 1;
        visibility: visible;
    }

/* Mobile Sidebar */
.mobile-sidebar {
    position: fixed;
    top: 0;
    width: 320px;
    height: 100%;
    background: white;
    z-index: 1051;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    padding: 20px;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
}

    .mobile-sidebar.left {
        left: 0;
    }

    .mobile-sidebar.right {
        right: 0;
        transform: translateX(100%);
    }

    .mobile-sidebar.active {
        transform: translateX(0);
    }

.mobile-filter-toggles {
    display: none;
}

.mobile-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ecf0f1;
}

    .mobile-sidebar-header h3 {
        margin: 0;
        color: #2c3e50;
        font-weight: 700;
        font-size: 1.3rem;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .mobile-sidebar-header i {
        color: #5DADE2;
    }

.mobile-close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #95a5a6;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

    .mobile-close-btn:hover {
        background: #ecf0f1;
        color: #2c3e50;
    }

/* Left Price Filter Sidebar */
.price-filter-sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border: 2px solid rgba(0,0,0,0.05);
}

.filter-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 10px;
}

    .filter-header h4 {
        margin: 0;
        color: #2c3e50;
        font-weight: 700;
        font-size: 1.2rem;
    }

    .filter-header i {
        color: #5DADE2;
        font-size: 1.3rem;
    }

/* Price Range Slider - Smaller Size */
.price-range-container {
    margin: 20px 0;
}

.price-inputs {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.price-input {
    flex: 1;
    text-align: center;
}

    .price-input label {
        display: block;
        font-size: 0.85rem;
        color: #7f8c8d;
        margin-bottom: 5px;
        font-weight: 600;
    }

    .price-input input {
        display: none;
        width: 100%;
        padding: 8px;
        border: 2px solid #e1e8ed;
        border-radius: 10px;
        font-size: 0.9rem;
        text-align: center;
        background: #f8f9fa;
        font-weight: 600;
    }

        .price-input input:focus {
            outline: none;
            border-color: #5DADE2;
            background: white;
        }

/* Single Range Slider */
.single-range-slider {
    position: relative;
    margin: 20px 0;
    height: 4.5px;
}

.slider-track {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 5px;
    background: #e1e8ed;
    border-radius: 2.5px;
}

.slider-range {
    position: absolute;
    height: 100%;
    background: linear-gradient(90deg, #5DADE2, #3498db);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.range-input {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 5px;
    background: transparent;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    pointer-events: none;
}

    .range-input::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 16px;
        height: 16px;
        border-radius: 50%;
        background: #5DADE2;
        cursor: pointer;
        pointer-events: all;
        box-shadow: 0 2px 6px rgba(93, 173, 226, 0.4);
        border: 2px solid white;
        transition: all 0.2s ease;
    }

        .range-input::-webkit-slider-thumb:hover {
            transform: scale(1.1);
            box-shadow: 0 3px 8px rgba(93, 173, 226, 0.6);
        }

#minRange {
    z-index: 2;
}

#maxRange {
    z-index: 3;
}

.price-display {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 0.9rem;
    color: #5DADE2;
    font-weight: 600;
}

/* Right Brand Filter Sidebar */
.brand-filter-sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border: 2px solid rgba(0,0,0,0.05);
}

.brand-list {
    max-height: 300px;
    overflow-y: auto;
    margin-top: 15px;
    scrollbar-width: thin;
    scrollbar-color: #5DADE2 #f1f1f1;
}

    .brand-list::-webkit-scrollbar {
        width: 6px;
    }

    .brand-list::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 3px;
    }

    .brand-list::-webkit-scrollbar-thumb {
        background: #5DADE2;
        border-radius: 3px;
    }

.brand-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    margin: 8px 0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    background: #f8f9fa;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

    .brand-item:hover {
        background: #e3f2fd;
        border-color: #5DADE2;
        text-decoration: none;
        color: inherit;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(93, 173, 226, 0.15);
    }

    .brand-item.active {
        background: black;
        color: white;
        border-color: #666666;
        box-shadow: 0 4px 15px rgba(93, 173, 226, 0.3);
    }

.brand-logo {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 12px;
    object-fit: cover;
    background: white;
    padding: 2px;
    flex-shrink: 0;
}

.brand-name {
    font-weight: 600;
    font-size: 0.95rem;
    flex: 1;
}

.brand-count {
    font-size: 0.8rem;
    opacity: 0.7;
    background: rgba(255,255,255,0.2);
    padding: 2px 8px;
    border-radius: 10px;
    flex-shrink: 0;
}

.brand-item:not(.active) .brand-count {
    background: rgba(0,0,0,0.1);
    color: #7f8c8d;
}

/* Central Content Area */
.content-area {
    min-height: 800px;
}

/* Search and Filter Section */
.search-filter-section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border: 2px solid rgba(0,0,0,0.05);
}

.search-filter-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    gap: 12px;
}

    .search-filter-header h4 {
        margin: 0;
        color: #2c3e50;
        font-weight: 700;
        font-size: 1.4rem;
    }

    .search-filter-header i {
        color: #5DADE2;
        font-size: 1.5rem;
    }

.filter-form {
    display: grid;
    grid-template-columns: 2fr 1fr auto;
    gap: 20px;
    align-items: end;
}

.search-group {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 15px 20px 15px 20px;
    border: 2px solid #e1e8ed;
    border-radius: 25px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

    .search-input:focus {
        outline: none;
        border-color: #3498db;
        background: white;
        box-shadow: 0 0 0 3px rgba(93, 173, 226, 0.1);
    }

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #95a5a6;
    font-size: 1.1rem;
}

.filter-select {
    padding: 15px 20px;
    border: 2px solid #e1e8ed;
    border-radius: 15px;
    font-size: 1rem;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .filter-select:focus {
        outline: none;
        border-color: #5DADE2;
        background: white;
        box-shadow: 0 0 0 3px rgba(93, 173, 226, 0.1);
    }

.search-btn {
    padding: 15px 25px;
    background: black;
    color: white;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

    .search-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px #5dade299;
        background: #2f89c5;
        color: white;
    }

.clear-filters-btn {
    padding: 15px 25px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

    .clear-filters-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px #CCFFFF;
        color: white;
        text-decoration: none;
    }

/* Results Info */
.results-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px 0;
    border-bottom: 2px solid #ecf0f1;
}

.results-count {
    color: #7f8c8d;
    font-weight: 600;
}

.active-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-tag {
    background: black;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

    .filter-tag i {
        cursor: pointer;
        opacity: 0.8;
    }

        .filter-tag i:hover {
            opacity: 1;
        }

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px 0;
}

/* Product Card - IMPROVED VERSION */
.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: none;
    transition: all 0.3s ease;
    position: relative;
    width: 100%;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    min-height: 350px; /* Chiều cao tối thiểu cho phép nội dung mở rộng */
}

    .product-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 24px rgba(0,0,0,0.15);
        text-decoration: none;
        color: inherit;
    }

    .product-card.out-of-stock {
        cursor: not-allowed;
        opacity: 0.7;
    }

        .product-card.out-of-stock:hover {
            transform: none;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }

.product-image-container {
    position: relative;
    overflow: hidden;
    background: #f7f7f7;
    flex-shrink: 0;
    aspect-ratio: 4 / 5; /* giữ tỉ lệ 4:5 */
    width: 100%; /* luôn full chiều ngang card */
}


    .product-image-container img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

.product-card:hover .product-image-container img {
    transform: scale(1.05);
}

.product-badges {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 5;
}

    .product-badges .badge {
        font-size: 0.65rem;
        padding: 3px 6px;
        border-radius: 12px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    }

.badge.bg-danger {
    background: #ff4444 !important;
    color: white !important;
}

.badge.bg-success {
    background: #ff6b35 !important;
    color: white !important;
}

.card-body {
    padding: 16px;
    flex: 1; /* Cho phép phần này mở rộng theo nội dung */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Đẩy price xuống cuối */
    gap: 6px;
    min-height: 100px; /* Chiều cao tối thiểu cho phần nội dung */
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #111;
    line-height: 1.4;
    margin: 0;
    /* Cho phép xuống dòng tự nhiên */
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    text-align: left;
    /* Không giới hạn số dòng để tránh bị cắt */
}

.product-category {
    color: #757575;
    font-size: 0.875rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

    .product-category i {
        color: #5DADE2;
        font-size: 0.8rem;
    }

.product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: orangered;
    margin: 0;
    flex-shrink: 0;
}

.product-brand {
    color: #95a5a6;
    font-size: 0.8rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0; /* Không cho phép shrink */
}

.out-of-stock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.out-of-stock-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    background: #ff4444;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 2px 8px rgba(255, 68, 68, 0.3);
    z-index: 2;
    white-space: nowrap;
}

/* Pagination */
.pagination-section {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
    gap: 20px;
}

.pagination {
    display: flex;
    gap: 8px;
    align-items: center;
}

    .pagination a, .pagination span {
        padding: 12px 16px;
        text-decoration: none;
        border-radius: 10px;
        font-weight: 600;
        transition: all 0.3s ease;
        min-width: 45px;
        text-align: center;
    }

    .pagination a {
        background: white;
        color: #5DADE2;
        border: 2px solid #e1e8ed;
    }

        .pagination a:hover {
            background: #5DADE2;
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(93, 173, 226, 0.3);
        }

    .pagination .current {
        background: linear-gradient(135deg, #5DADE2 0%, #3498db 100%);
        color: white;
        border: 2px solid #5DADE2;
    }

.pagination-info {
    color: #7f8c8d;
    font-weight: 600;
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    margin: 40px 0;
    grid-column: 1 / -1;
}

    .empty-state i {
        font-size: 4rem;
        color: #bdc3c7;
        margin-bottom: 20px;
        display: block;
    }

    .empty-state h4 {
        color: #7f8c8d;
        font-weight: 600;
        margin-bottom: 10px;
    }

    .empty-state p {
        color: #95a5a6;
        font-size: 1rem;
        margin: 0;
    }

/* RESPONSIVE DESIGN */
@media (max-width: 1200px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .stats-container {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .stat-item {
        min-width: auto;
        width: 200px;
    }

    .main-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Hide desktop sidebars on mobile */
    .price-filter-sidebar,
    .brand-filter-sidebar {
        display: none;
    }

    /* Show mobile filter toggles */
    .mobile-filter-toggles {
        display: grid;
    }

    /* Show mobile overlays */
    .sidebar-overlay,
    .mobile-sidebar {
        display: block;
    }

    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    /* Product card responsive */
    .product-card {
        min-height: 320px;
    }

    .product-image-container {
        aspect-ratio: 4 / 5; /* luôn giữ tỷ lệ 4:5 */
        width: 100%;
    }

    .card-title {
        font-size: 0.9rem;
        line-height: 1.3;
    }

    .product-badges .badge {
        font-size: 0.6rem;
        padding: 2px 5px;
    }

    .product-price {
        font-size: 0.9rem;
    }

    .product-category {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .filter-form {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .results-info {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .search-filter-section {
        padding: 20px;
    }

    .search-input, .filter-select {
        padding: 12px 15px;
        padding-left: 45px;
    }

    .search-btn, .clear-filters-btn {
        width: 100%;
        padding: 12px 20px;
    }

    .price-inputs {
        gap: 10px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    /* Product card mobile */
    .product-card {
        min-height: 280px;
    }

    .product-image-container {
        aspect-ratio: 4 / 5;
        width: 100%;
    }

    .card-body {
        padding: 12px;
        gap: 4px;
        min-height: 80px;
    }

    .card-title {
        font-size: 0.8rem;
        line-height: 1.3;
    }

    .product-badges .badge {
        font-size: 0.55rem;
        padding: 2px 4px;
    }

    .product-price {
        font-size: 0.9rem;
    }

    .product-category {
        font-size: 0.8rem;
    }

    /* Mobile sidebar adjustments */
    .mobile-sidebar {
        max-width: 90vw;
        padding: 15px;
    }

    html, body {
        width: 100%;
        max-width: 100%;
        position: relative;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    /* Product card very small screens */
    .product-card {
        min-height: 250px;
    }

    .product-image-container {
        aspect-ratio: 4 / 5;
        width: 100%;
    }

    .card-body {
        padding: 10px;
        gap: 3px;
        min-height: 70px;
    }

    .product-badges .badge {
        font-size: 0.5rem;
        padding: 2px 4px;
    }

    .card-title {
        font-size: 0.75rem;
        line-height: 1.2;
    }

    .product-price {
        font-size: 0.8rem;
    }

    .product-category {
        font-size: 0.75rem;
    }

    .mobile-sidebar {
        width: 100%;
        max-width: 300px;
    }

    .mobile-filter-toggles {
        gap: 10px;
    }

    .mobile-filter-btn {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
}

/* Load More Button Styles */
.load-more-section {
    text-align: center;
    margin: 40px 0;
    padding: 20px;
}

.load-more-btn {
    background: black;
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    min-width: 160px;
}

    .load-more-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    }

    .load-more-btn:disabled {
        background: #ccc;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }

    .load-more-btn .spinner {
        display: none;
        width: 16px;
        height: 16px;
        border: 2px solid #ffffff;
        border-top: 2px solid transparent;
        border-radius: 50%;
        animation: spin 1s linear infinite;
        margin-right: 8px;
        vertical-align: middle;
    }

    .load-more-btn.loading .spinner {
        display: inline-block;
    }

    .load-more-btn.loading .btn-text {
        opacity: 0.7;
    }

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.load-more-info {
    margin-top: 15px;
    color: #666;
    font-size: 14px;
}

.no-more-products {
    text-align: center;
    padding: 30px;
    color: #666;
    font-style: italic;
    font-size: 16px;
}

    .no-more-products i {
        font-size: 24px;
        margin-bottom: 10px;
        display: block;
        opacity: 0.5;
    }

/* Product Card Animation Styles */
.product-card {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease;
}

    .product-card.fade-in {
        animation: fadeInUp 0.6s ease forwards;
    }

    .product-card.loading-new {
        opacity: 0;
        transform: translateY(30px);
    }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animation delays for multiple cards */
.product-card.fade-in:nth-child(1) {
    animation-delay: 0.2s;
}

.product-card.fade-in:nth-child(2) {
    animation-delay: 0.25s;
}

.product-card.fade-in:nth-child(3) {
    animation-delay: 0.3s;
}

.product-card.fade-in:nth-child(4) {
    animation-delay: 0.35s;
}

.product-card.fade-in:nth-child(5) {
    animation-delay: 0.4s;
}

.product-card.fade-in:nth-child(6) {
    animation-delay: 0.55s;
}

.product-card.fade-in:nth-child(7) {
    animation-delay: 0.6s;
}

.product-card.fade-in:nth-child(8) {
    animation-delay: 0.65s;
}

.product-card.fade-in:nth-child(9) {
    animation-delay: 0.7s;
}

.product-card.fade-in:nth-child(10) {
    animation-delay: 0.75s;
}

.product-card.fade-in:nth-child(11) {
    animation-delay: 0.8s;
}

.product-card.fade-in:nth-child(12) {
    animation-delay: 0.85s;
}
