/* Modern Minimalist Products Page - Premium E-Commerce */

/* Page Header Enhancement */
.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4rem;
    padding: 3rem 0;
    border-bottom: 1px solid #e8e8e8;
    animation: fadeInDown 0.6s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    color: #1a1a1a;
    margin: 0;
    font-weight: 300;
    letter-spacing: -0.03em;
    position: relative;
}

/* .page-title::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 0;
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, #1a1a1a, transparent);
} */

.products-count {
    color: #999;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Ultra Modern Filter Section */
.filter-section {
    background: white;
    padding: 3.5rem;
    border-radius: 0;
    margin-bottom: 4rem;
    border: 1px solid #e8e8e8;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
    animation: fadeIn 0.6s ease-out 0.2s both;
    position: relative;
    overflow: hidden;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.filter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1a1a1a 0%, #666 50%, #1a1a1a 100%);
}

.filter-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: #1a1a1a;
    margin-bottom: 2.5rem;
    text-align: center;
    font-weight: 300;
    letter-spacing: -0.02em;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    align-items: end;
}

.filter-group {
    margin-bottom: 0;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 500;
    color: #1a1a1a;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.form-select {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e8e8e8;
    border-radius: 0;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    background: #fafafa;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%231a1a1a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 18px;
    cursor: pointer;
    color: #1a1a1a;
}

.form-select:hover {
    border-color: #bbb;
    background: white;
}

.form-select:focus {
    outline: none;
    border-color: #1a1a1a;
    background: white;
    box-shadow: 0 0 0 4px rgba(26, 26, 26, 0.05);
}

.filter-actions {
    display: flex;
    gap: 1rem;
    align-items: end;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: 0;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.btn:hover::after {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: #1a1a1a;
    color: white;
    box-shadow: 0 4px 16px rgba(26, 26, 26, 0.2);
}

.btn-primary:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(26, 26, 26, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #666;
    border: 2px solid #e8e8e8;
}

.btn-secondary:hover {
    background: #f5f5f5;
    border-color: #bbb;
    color: #1a1a1a;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: #1a1a1a;
    border: 2px solid #1a1a1a;
}

.btn-outline:hover {
    background: #1a1a1a;
    color: white;
    transform: translateY(-2px);
}

/* Premium Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.product-card {
    background: white;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid #f5f5f5;
    cursor: pointer;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26,26,26,0.02), rgba(26,26,26,0));
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 1;
}

.product-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.12);
    border-color: transparent;
}

.product-card:hover::before {
    opacity: 1;
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 380px;
    background: #f8f8f8;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    filter: grayscale(0.1);
}

.product-card:hover .product-image img {
    transform: scale(1.08);
    filter: grayscale(0);
}

.placeholder-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 500;
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.85) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 2.5rem;
    z-index: 2;
}

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

.product-overlay .btn {
    background: white;
    color: #1a1a1a;
    padding: 14px 36px;
    font-size: 0.8rem;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}

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

.product-overlay .btn:hover {
    background: #1a1a1a;
    color: white;
    transform: translateY(-3px);
}

.product-info {
    padding: 2rem;
    text-align: left;
}

.product-name {
    font-size: 1.15rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    color: #1a1a1a;
    line-height: 1.4;
    letter-spacing: -0.01em;
    transition: color 0.3s ease;
}

.product-card:hover .product-name {
    color: #666;
}

.product-meta {
    margin-bottom: 1.25rem;
    border-bottom: 1px solid #f5f5f5;
    padding-bottom: 1rem;
}

.product-brand {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 0.35rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.product-category {
    font-size: 0.8rem;
    color: #bbb;
    margin-bottom: 0.25rem;
    letter-spacing: 0.05em;
}

.product-color {
    font-size: 0.8rem;
    color: #bbb;
    letter-spacing: 0.05em;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-top: 0.5rem;
    letter-spacing: -0.02em;
}

/* Elegant No Products State */
.no-products {
    text-align: center;
    padding: 6rem 2rem;
    color: #999;
    animation: fadeIn 0.6s ease-out;
}

.no-products h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
    font-weight: 300;
    letter-spacing: -0.02em;
}

.no-products p {
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
    color: #666;
}

/* Smooth Reveal Animation */
.product-card {
    opacity: 0;
    animation: revealProduct 0.6s ease-out forwards;
}

@keyframes revealProduct {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card:nth-child(1) { animation-delay: 0.05s; }
.product-card:nth-child(2) { animation-delay: 0.1s; }
.product-card:nth-child(3) { animation-delay: 0.15s; }
.product-card:nth-child(4) { animation-delay: 0.2s; }
.product-card:nth-child(5) { animation-delay: 0.25s; }
.product-card:nth-child(6) { animation-delay: 0.3s; }
.product-card:nth-child(7) { animation-delay: 0.35s; }
.product-card:nth-child(8) { animation-delay: 0.4s; }
.product-card:nth-child(9) { animation-delay: 0.45s; }
.product-card:nth-child(10) { animation-delay: 0.5s; }
.product-card:nth-child(11) { animation-delay: 0.55s; }
.product-card:nth-child(12) { animation-delay: 0.6s; }

/* Performance Optimizations */
.product-image img {
    will-change: transform;
}

.product-card {
    will-change: transform;
}

/* Responsive Design */
@media (max-width: 1400px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 1200px) {
    .page-title {
        font-size: 3rem;
    }
    
    .filter-section {
        padding: 3rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }
    
    .product-image {
        height: 340px;
    }
}

@media (max-width: 992px) {
    .page-title {
        font-size: 2.5rem;
    }
    
    .products-header {
        margin-bottom: 3rem;
        padding: 2rem 0;
    }
    
    .filter-section {
        padding: 2.5rem;
    }
    
    .filter-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 1.5rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1.75rem;
    }
}

@media (max-width: 768px) {
    .products-header {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
        padding: 1.5rem 0;
    }
    
    .page-title {
        font-size: 2.2rem;
    }
    
    /* .page-title::after {
        bottom: -12px;
        width: 60px;
    }
     */
    .products-count {
        font-size: 0.9rem;
    }
    
    .filter-section {
        padding: 2rem;
        margin-bottom: 3rem;
    }
    
    .filter-section h2 {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .filter-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .filter-actions {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }
    
    .filter-actions .btn {
        width: 100%;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .product-image {
        height: 300px;
    }
    
    .product-info {
        padding: 1.5rem;
    }
    
    .no-products {
        padding: 4rem 1.5rem;
    }
    
    .no-products h3 {
        font-size: 1.8rem;
    }
    
    .no-products p {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .products-header {
        padding: 1rem 0;
        margin-bottom: 2rem;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .filter-section {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .filter-section h2 {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }
    
    .form-select {
        padding: 14px 18px;
        font-size: 14px;
    }
    
    .btn {
        padding: 14px 28px;
        font-size: 0.8rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .product-image {
        height: 280px;
    }
    
    .product-info {
        padding: 1.25rem;
    }
    
    .product-name {
        font-size: 1.05rem;
    }
    
    .product-price {
        font-size: 1.2rem;
    }
    
    .no-products {
        padding: 3rem 1rem;
    }
    
    .no-products h3 {
        font-size: 1.5rem;
    }
}

/* Performance - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
.products-header > div {
    position: relative;
    z-index: 2;
}

.products-count {
    margin-top: 10px; /* Add some space between title and count */
}


/* Age Range Navigation */
.age-range-navigation {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.age-range-navigation h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
    font-family: 'Playfair Display', serif;
}

.age-range-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.age-btn {
    padding: 0.5rem 1rem;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    text-decoration: none;
    color: #495057;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.age-btn:hover,
.age-btn.active {
    background: #2c3e50;
    border-color: #2c3e50;
    color: white;
}

/* Product age range badge */
.product-age-range {
    color: #e67e22;
    font-weight: 600;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .age-range-buttons {
        gap: 0.25rem;
    }
    
    .age-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}

.current-filter {
    background: #e8f4fd;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    color: #2c3e50;
    font-weight: 600;
    margin-top: 0.5rem;
    border-left: 4px solid #3498db;
    font-family: 'Playfair Display', serif;
}

