/* Products Page Styles */

/* Header */
.products-header {
    text-align: center;
    padding: 60px 0;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--secondary-text);
    margin-top: 10px;
}

/* Layout */
.products-layout {
    display: flex;
    gap: 40px;
    padding-bottom: 80px;
    align-items: flex-start;
}

/* Sidebar Filters */
.filters-sidebar {
    width: 250px;
    flex-shrink: 0;
    background: var(--card-bg);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 20px;
}

.filter-group {
    margin-bottom: 30px;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-group h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-group ul {
    list-style: none;
}

.filter-group ul li {
    margin-bottom: 10px;
}

.filter-group ul li a {
    color: var(--secondary-text);
    display: block;
    padding: 5px 10px;
    border-radius: 8px;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.filter-group ul li a:hover,
.filter-group ul li a.active-filter {
    background: rgba(0, 255, 65, 0.1);
    color: var(--primary-color);
    padding-right: 15px;
}

/* Color Options */
.color-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.color-dot {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.color-dot:hover {
    transform: scale(1.1);
    border-color: #fff;
}

/* Products Grid */
.products-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* Product Card */
.product-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.badge-new {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: #000;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 10;
    box-shadow: 0 0 10px var(--primary-glow);
}

.product-image {
    height: 220px;
    position: relative;
    background: #000;
    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.1);
    opacity: 0.6;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}

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

.view-btn {
    background: #fff;
    color: #000;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    transform: translateY(20px);
    transition: transform 0.3s;
}

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

.product-details {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.rating {
    color: #FFD700;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.product-desc {
    font-size: 0.9rem;
    color: var(--secondary-text);
    margin-bottom: 20px;
    flex-grow: 1;
    /* Pushes bottom section down */
}

.product-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
}

.price {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.add-cart-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.add-cart-btn:hover {
    background: var(--primary-color);
    color: #000;
    box-shadow: 0 0 15px var(--primary-glow);
}

/* Responsive */
@media (max-width: 900px) {
    .products-layout {
        flex-direction: column;
    }

    .filters-sidebar {
        width: 100%;
        position: static;
        margin-bottom: 30px;
    }

    .filter-group ul {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .filter-group ul li {
        margin-bottom: 0;
    }
}