/* ===================================
   PRODUCTS PAGE STYLES
   =================================== */

/* Products Hero Section */
.products-hero {
    background: linear-gradient(135deg, var(--primary-navy), var(--secondary-blue));
    color: var(--white);
    padding: 120px 0 80px;
    text-align: center;
    margin-top: 70px;
}

.products-hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
}

.products-hero p {
    font-size: 20px;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

/* Product Categories Grid */
.product-categories-section {
    padding: 80px 0;
    background: var(--light-gray);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 35px;
}

.category-card {
    background: var(--white);
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--accent-orange), var(--accent-teal));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--accent-orange), #ff8c5a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.1) rotate(5deg);
}

.category-icon i {
    font-size: 36px;
    color: var(--white);
}

.category-card h3 {
    font-size: 24px;
    color: var(--primary-navy);
    margin-bottom: 15px;
    font-weight: 700;
}

.category-card p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.category-count {
    display: inline-block;
    background: var(--light-gray);
    padding: 8px 20px;
    border-radius: 20px;
    margin-bottom: 25px;
}

.category-count span {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-navy);
}

.btn-view {
    background: var(--accent-orange);
    color: var(--white);
    border: none;
    padding: 12px 35px;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn-view:hover {
    background: #e55a2b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

/* Product Listing Section */
.product-listing-section {
    padding: 80px 0;
    background: var(--white);
    min-height: 70vh;
}

.listing-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 50px;
}

.btn-back {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--light-gray);
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    color: var(--primary-navy);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: var(--primary-navy);
    color: var(--white);
}

.listing-header h2 {
    font-size: 36px;
    color: var(--primary-navy);
    font-weight: 700;
}

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

.product-item {
    background: var(--white);
    border: 2px solid var(--medium-gray);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-item:hover {
    border-color: var(--accent-orange);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transform: translateY(-5px);
}

.product-image {
    width: 100%;
    height: 220px;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-image i {
    font-size: 64px;
    color: var(--medium-gray);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-orange);
    color: var(--white);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.product-info {
    padding: 25px;
}

.product-name {
    font-size: 18px;
    color: var(--primary-navy);
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.product-description {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 15px;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--medium-gray);
}

.product-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-orange);
}

.product-stock {
    font-size: 13px;
    color: var(--text-light);
}

.product-stock.in-stock {
    color: #28a745;
}

.product-stock.low-stock {
    color: #ffc107;
}

/* Product Features Section */
.product-features-section {
    padding: 80px 0;
    background: var(--white);
}

.product-features-section h2 {
    text-align: center;
    font-size: 42px;
    color: var(--primary-navy);
    margin-bottom: 60px;
    font-weight: 700;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.feature-box {
    text-align: center;
    padding: 30px;
    background: var(--light-gray);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.feature-box:hover {
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.feature-box i {
    font-size: 48px;
    color: var(--accent-orange);
    margin-bottom: 20px;
}

.feature-box h3 {
    font-size: 20px;
    color: var(--primary-navy);
    margin-bottom: 15px;
    font-weight: 600;
}

.feature-box p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.6;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 80px;
    color: var(--medium-gray);
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 24px;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.empty-state p {
    font-size: 16px;
    color: var(--text-light);
}

/* Loading Animation */
.loading {
    text-align: center;
    padding: 60px 20px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--light-gray);
    border-top: 4px solid var(--accent-orange);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .products-hero {
        padding: 100px 0 60px;
    }
    
    .products-hero h1 {
        font-size: 36px;
    }
    
    .products-hero p {
        font-size: 16px;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .listing-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .listing-header h2 {
        font-size: 28px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-box {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .category-card {
        padding: 30px 20px;
    }
    
    .category-icon {
        width: 70px;
        height: 70px;
    }
    
    .category-icon i {
        font-size: 32px;
    }
    
    .product-features-section h2 {
        font-size: 32px;
    }
}