/* ===== PRODUCTS PAGE SPECIFIC STYLES ===== */

/* Products Hero */
.page-hero.products-hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 150px 0 80px;
    position: relative;
    overflow: hidden;
}

.page-hero.products-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: url('../images/products-hero-bg.svg') no-repeat right center;
    opacity: 0.1;
}

.hero-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.stat-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(47, 245, 98, 0.1);
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    border: 1px solid rgba(47, 245, 98, 0.2);
}

.stat-badge i {
    color: var(--fluorescent-green);
    font-size: 0.9rem;
}

.stat-badge span {
    color: var(--dark-gray);
    font-size: 0.85rem;
    font-weight: 500;
}

.product-search-box {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(47, 245, 98, 0.1);
}

.product-search-box h4 {
    color: var(--black);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    text-align: center;
}

.search-container {
    position: relative;
    margin-bottom: 1.5rem;
}

#productSearch {
    width: 100%;
    padding: 0.9rem 1.2rem;
    padding-right: 50px;
    border: 2px solid rgba(128, 128, 128, 0.2);
    border-radius: 25px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
}

#productSearch:focus {
    outline: none;
    border-color: var(--fluorescent-green);
    box-shadow: 0 0 0 3px rgba(47, 245, 98, 0.1);
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--fluorescent-green), var(--primary-dark));
    border: none;
    border-radius: 50%;
    color: var(--black);
    cursor: pointer;
    transition: var(--transition);
}

.search-btn:hover {
    transform: translateY(-50%) scale(1.1);
}

.quick-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0.5rem 1rem;
    background: rgba(47, 245, 98, 0.05);
    border-radius: 15px;
    color: var(--dark-gray);
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid transparent;
}

.filter-tag:hover {
    background: rgba(47, 245, 98, 0.1);
    border-color: var(--fluorescent-green);
    color: var(--black);
}

.filter-tag i {
    font-size: 0.8rem;
    color: var(--fluorescent-green);
}

/* Categories Section */
.categories-section {
    background: var(--white);
}

.category-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2.5rem 2rem;
    display: block;
    height: 100%;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 2px solid transparent;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--fluorescent-green);
    text-decoration: none;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--fluorescent-green), var(--yellow));
}

.category-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(47, 245, 98, 0.1), rgba(47, 245, 98, 0.2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--fluorescent-green);
    font-size: 2rem;
    transition: var(--transition);
}

.category-card:hover .category-icon {
    background: linear-gradient(135deg, var(--fluorescent-green), var(--primary-dark));
    color: var(--white);
    transform: rotate(15deg);
}

.category-card h4 {
    color: var(--black);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.category-card p {
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.category-count {
    display: inline-block;
    background: rgba(47, 245, 98, 0.1);
    color: var(--fluorescent-green);
    padding: 0.4rem 1rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Featured Products */
.featured-products {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.product-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    position: relative;
}

.product-card.featured {
    border: 2px solid var(--fluorescent-green);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--fluorescent-green);
    color: var(--black);
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
}

.product-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.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);
}

.product-content {
    padding: 1.5rem;
}

.product-category {
    display: inline-block;
    background: rgba(47, 245, 98, 0.1);
    color: var(--fluorescent-green);
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.product-card h5 {
    color: var(--black);
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
    line-height: 1.4;
}

.product-description {
    color: var(--dark-gray);
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
    line-height: 1.5;
}

.product-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.spec {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    color: var(--dark-gray);
}

.spec i {
    color: var(--fluorescent-green);
    font-size: 0.9rem;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(128, 128, 128, 0.1);
}

.product-price {
    display: flex;
    flex-direction: column;
}

.price {
    color: var(--black);
    font-weight: 700;
    font-size: 1.1rem;
}

.stock {
    font-size: 0.8rem;
    font-weight: 600;
}

.stock.in-stock {
    color: var(--fluorescent-green);
}

.stock.limited {
    color: var(--yellow);
}

.btn-product {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--fluorescent-green), var(--primary-dark));
    color: var(--black);
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-product:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(47, 245, 98, 0.3);
    color: var(--black);
    text-decoration: none;
}

/* Products by Category */
.products-by-category {
    background: var(--white);
}

.category-section {
    margin-bottom: 4rem;
}

.category-header {
    margin-bottom: 2rem;
}

.category-title {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1rem;
}

.category-title i {
    font-size: 2rem;
    color: var(--fluorescent-green);
}

.category-title h3 {
    color: var(--black);
    margin: 0;
    font-size: 1.8rem;
}

.category-description {
    color: var(--dark-gray);
    max-width: 600px;
    margin: 0;
}

.product-tags {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tag {
    display: inline-block;
    background: rgba(128, 128, 128, 0.1);
    color: var(--dark-gray);
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Brands Section */
.brands-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.brand-item {
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    width: 100%;
    max-width: 200px;
}

.brand-logo:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--fluorescent-green);
}

.brand-logo i {
    font-size: 2.5rem;
    color: var(--fluorescent-green);
}

.brand-logo span {
    color: var(--black);
    font-weight: 700;
    font-size: 1.1rem;
    text-align: center;
}

/* Catalog CTA */
.catalog-cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--black), #333333);
}

.catalog-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 3rem;
    border: 1px solid rgba(47, 245, 98, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.catalog-card h3 {
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.catalog-card p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .page-hero.products-hero {
        padding: 130px 0 60px;
    }
    
    .product-search-box {
        margin-top: 2rem;
    }
    
    .product-image {
        height: 180px;
    }
    
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-stats {
        justify-content: center;
    }
    
    .category-card {
        padding: 2rem 1.5rem;
    }
    
    .product-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .btn-product {
        text-align: center;
        justify-content: center;
    }
    
    .catalog-card {
        padding: 2rem;
        text-align: center;
    }
    
    .catalog-card .text-end {
        text-align: center !important;
        margin-top: 1.5rem;
    }
}

@media (max-width: 576px) {
    .page-hero.products-hero .hero-title {
        font-size: 2rem;
    }
    
    .category-title {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .category-title h3 {
        font-size: 1.5rem;
    }
    
    .brands-grid {
        grid-template-columns: 1fr;
    }
    
    .brand-logo {
        max-width: 100%;
    }
}