/* Page-specific styles */
.page-header {
    background: #16213e;
    padding: 1.5rem 0;
    position: relative;
    margin-bottom: 0;
    border-bottom: none;
}

.page-header .container {
    text-align: center;
}

.page-header h1 {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.page-header p {
    color: #ccc;
    font-size: 0.9rem;
    margin: 0 auto;
}

/* Filter System Styles */
.filter-section {
    background: rgba(26, 26, 46, 0.95);
    padding: 1.5rem 0;
    margin: 0 0 2rem 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-top: 1px solid #8338ec;
    border-bottom: 1px solid #8338ec;
    position: relative;
    z-index: 10;
}

.filter-container {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
}

/* Filter Animation Styles */
.product-card {
    transition: all 0.3s ease-in-out;
}

.filtered-in {
    animation: fadeInScale 0.4s ease-out forwards;
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}


@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 650px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* Override product card size to make them wider */
.products-grid .product-card {
    max-width: 100%;
    width: 100%;
}

.product-image {
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    position: relative;
}

.product-image img {
    max-height: 100%;
    max-width: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    border-radius: 8px;
}

.product-image:hover img {
    transform: scale(1.08);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-info h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: #fff;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 600;
    color: #f72585;
    margin-bottom: 10px;
}

.filter-left {
    flex: 3;
}

.filter-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.filter-title {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filter-title i {
    color: #8338ec;
    font-size: 1.2rem;
    background: linear-gradient(45deg, #8257ff, #f72585);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #ccc;
    font-size: 0.9rem;
}

.filter-group select,
.filter-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: #8257ff;
    box-shadow: 0 0 0 2px rgba(131, 56, 236, 0.3);
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 0.5rem;
}

.filter-tag {
    padding: 0.5rem 1rem;
    background: rgba(26, 26, 46, 0.8);
    border: 1px solid rgba(131, 56, 236, 0.3);
    border-radius: 20px;
    color: #fff;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    outline: none;
}

.filter-tag i {
    font-size: 0.8rem;
    opacity: 0.8;
}

.filter-tag:hover {
    background: rgba(131, 56, 236, 0.2);
    border-color: rgba(131, 56, 236, 0.5);
    transform: translateY(-2px);
}

.filter-tag:focus {
    box-shadow: 0 0 0 2px rgba(131, 56, 236, 0.5);
    outline: none;
}

.filter-tag.active {
    background: linear-gradient(45deg, #8257ff, #f72585);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 12px rgba(131, 56, 236, 0.4);
    font-weight: 600;
    transform: translateY(-2px);
}

.filter-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-bottom: 1rem;
}

.filter-btn {
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.filter-btn i {
    font-size: 0.9rem;
}

.filter-btn.reset {
    background: rgba(255, 255, 255, 0.1);
    color: #ccc;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-btn.apply {
    background: linear-gradient(45deg, #8257ff, #f72585);
    color: #fff;
    box-shadow: 0 4px 10px rgba(131, 56, 236, 0.3);
}

.filter-btn:hover {
    transform: translateY(-2px);
}

.filter-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(131, 56, 236, 0.5);
}

.filter-btn.reset:hover {
    background: rgba(255, 255, 255, 0.15);
}

.filter-btn.apply:hover {
    box-shadow: 0 6px 15px rgba(131, 56, 236, 0.4);
}

/* Results counter */
.results-counter {
    margin-top: 1rem;
    color: #ccc;
    font-size: 0.9rem;
    background: rgba(26, 26, 46, 0.5);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: inline-block;
    border: 1px solid rgba(131, 56, 236, 0.2);
}

.results-counter span {
    background: linear-gradient(45deg, #8257ff, #f72585);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

/* Enhanced Mobile Improvements */
@media (max-width: 992px) {
    .filter-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .filter-left, .filter-right {
        width: 100%;
    }
    
    .filter-right {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .page-header {
        padding: 1rem 0;
    }
    
    .page-header h1 {
        font-size: 1.6rem;
    }
}

/* Mobile-First Design for Collection Pages */
@media (max-width: 650px) {
    /* Enhanced Page Header */
    .page-header {
        padding: 1.5rem 0;
        background: linear-gradient(135deg, #16213e, #1a1a2e);
    }
    
    .page-header h1 {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
        background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    .page-header p {
        font-size: 0.95rem;
        color: rgba(255, 255, 255, 0.8);
    }
    
    /* Compact Filter Section */
    .filter-section {
        padding: 1rem 0;
        margin-bottom: 1rem;
    }
    
    .filter-container {
        gap: 1rem;
    }
    
    .filter-title {
        font-size: 1rem;
        margin-bottom: 0.8rem;
        color: var(--accent-primary);
    }
    
    .filter-options {
        flex-direction: column;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .filter-tags {
        gap: 0.6rem;
        margin-top: 0.8rem;
    }
    
    .filter-tag {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
        border-radius: 15px;
        background: rgba(31, 31, 44, 0.9);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }
    
    .filter-tag:hover {
        transform: translateY(-2px) scale(1.02);
        background: rgba(130, 87, 255, 0.2);
        border-color: rgba(130, 87, 255, 0.4);
    }
    
    .filter-tag.active {
        background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
        transform: translateY(-2px) scale(1.05);
        box-shadow: 0 6px 20px rgba(130, 87, 255, 0.3);
    }
    
    /* Enhanced Filter Actions */
    .filter-actions {
        flex-direction: row;
        gap: 0.8rem;
        margin-top: 1rem;
    }
    
    .filter-btn {
        padding: 0.7rem 1.5rem;
        border-radius: 12px;
        font-size: 0.9rem;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
    
    .filter-btn.reset {
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .filter-btn.apply {
        background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
        box-shadow: 0 4px 15px rgba(130, 87, 255, 0.3);
    }
    
    /* Results Counter Enhancement */
    .results-counter {
        margin-top: 1rem;
        padding: 0.7rem 1.2rem;
        background: rgba(31, 31, 44, 0.8);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 0.9rem;
    }
    

    /* Enhanced Product Info */
    .product-info {
        padding: 1.2rem;
    }
    
    .product-name {
        font-size: 1.1rem;
        font-weight: 600;
        margin-bottom: 0.5rem;
        color: #fff;
    }
    
    .product-price {
        font-size: 1.2rem;
        font-weight: 700;
        color: var(--accent-primary);
        margin-bottom: 0.8rem;
    }
    
    .product-description {
        font-size: 0.9rem;
        color: rgba(255, 255, 255, 0.8);
        line-height: 1.4;
        margin-bottom: 1rem;
    }
    
    /* Enhanced Add to Cart Button */
    .add-to-cart {
        width: 100%;
        padding: 0.8rem;
        background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
        border: none;
        border-radius: 12px;
        color: white;
        font-weight: 600;
        font-size: 0.95rem;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(130, 87, 255, 0.3);
    }
    
    .add-to-cart:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(130, 87, 255, 0.4);
    }
    
    /* Section Title Enhancement */
    .section-title {
        text-align: center;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }
    
    .section-title h2 {
        font-size: 1.6rem;
        margin-bottom: 0.5rem;
        background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    .section-title p {
        font-size: 0.9rem;
        color: rgba(255, 255, 255, 0.7);
    }
}

/* Very Small Mobile Phones */
@media (max-width: 480px) {
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .filter-tags {
        gap: 0.5rem;
    }
    
    .filter-tag {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .filter-actions {
        flex-direction: column;
        gap: 0.6rem;
    }
    
    .filter-btn {
        width: 100%;
        justify-content: center;
    }
    
    .product-image {
        height: 250px;
    }
    
    .product-info {
        padding: 1rem;
    }
    
    .section-title h2 {
        font-size: 1.4rem;
    }
}

/* Animation for product filtering */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

