.products-header {
    position: relative;
    padding: 120px 0 60px;
    background: var(--gradient-dark);
    text-align: center;
    overflow: hidden;
}

.products-header h1 {
    font-size: 3rem;
    color: var(--text-bright);
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.products-header p {
    color: var(--text-dim);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.header-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, var(--purple-glow) 0%, transparent 70%);
    opacity: 0.3;
    z-index: 1;
}

.search-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.search-box {
    position: relative;
    margin-bottom: 1rem;
}

.search-box input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: none;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: var(--text-bright);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.3);
}

.search-box i {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
}

.filter-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-tag {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-dim);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-tag:hover,
.filter-tag.active {
    background: var(--primary-color);
    color: var(--text-bright);
}

.products-section {
    padding: 4rem 0;
    background: var(--bg-color);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    padding: 0.8rem;
}

.product-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.9));
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(var(--primary-rgb), 0.3);
}

.product-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--darker);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-badges {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    display: flex;
    gap: 0.5rem;
    z-index: 2;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-new {
    background: var(--success-color);
    color: white;
}

.badge-featured {
    background: var(--primary-color);
    color: white;
}

.product-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.btn-preview,
.btn-details {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: none;
    background: white;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-preview:hover,
.btn-details:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.product-content {
    padding: 0.8rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 0.75rem;
    color: var(--neon-purple);
    text-transform: lowercase;
    font-weight: 500;
    background: rgba(139, 92, 246, 0.1);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.5rem;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.product-category::before {
    content: '#';
    margin-right: 0.2rem;
    color: var(--neon-purple);
}

.product-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    color: var(--text-bright);
    font-weight: 600;
    background: linear-gradient(to right, #fff, rgba(255, 255, 255, 0.9));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
}

.product-rating i {
    color: #ffd700;
    font-size: 0.8rem;
}

.product-rating i.active {
    color: #ffd700;
}

.product-rating span {
    color: var(--text-dim);
    font-size: 0.8rem;
}

.product-description {
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
    line-height: 1.4;
    -webkit-line-clamp: 2;
    color: rgba(255, 255, 255, 0.85);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 0 1px rgba(255, 255, 255, 0.1);
}

.product-features {
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    font-size: 0.75rem;
}

.product-features span {
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.product-features i {
    color: var(--primary-color);
}

.product-meta {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.product-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.btn-purchase {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn-purchase[data-purchase-type="sale"] {
    background: linear-gradient(135deg, var(--primary-color), var(--neon-purple));
    border: none;
    color: white;
}

.btn-purchase[data-purchase-type="sale"]::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: 0.5s;
}

.btn-purchase[data-purchase-type="sale"]:hover::before {
    left: 100%;
}

.btn-purchase[data-purchase-type="rental"] {
    background: transparent;
    border: 1px solid var(--neon-purple);
    color: var(--neon-purple);
}

.btn-purchase[data-purchase-type="rental"]:hover {
    background: linear-gradient(135deg, var(--neon-purple), var(--primary-color));
    color: white;
    border: none;
}

.btn-purchase i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.btn-purchase:hover i {
    transform: translateX(3px);
}

.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 0;
}

.no-products i {
    font-size: 3rem;
    color: var(--text-dim);
    margin-bottom: 1rem;
}

.no-products h3 {
    font-size: 1.5rem;
    color: var(--text-bright);
    margin-bottom: 0.5rem;
}

.no-products p {
    color: var(--text-dim);
}

@media (max-width: 768px) {
    .products-header {
        padding: 100px 0 40px;
    }

    .products-header h1 {
        font-size: 2rem;
    }

    .products-header p {
        font-size: 1rem;
    }

    .search-box input {
        padding: 0.8rem 0.8rem 0.8rem 2.5rem;
    }

    .filter-tags {
        gap: 0.3rem;
    }

    .filter-tag {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
        padding: 0.5rem;
    }

    .product-content {
        padding: 1rem;
    }

    .product-features {
        gap: 0.75rem;
    }

    .product-actions {
        grid-template-columns: 1fr;
    }
}

@keyframes fadeScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
} 