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

/* Products Hero */
.products-hero {
    background: var(--gradient-primary);
    padding: calc(80px + var(--spacing-5xl)) 0 var(--spacing-5xl);
    text-align: center;
    color: var(--white);
}

.products-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.products-hero .hero-badge {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.products-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: var(--spacing-lg);
    font-family: var(--font-arabic);
}

.products-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    line-height: 1.8;
    margin-bottom: var(--spacing-2xl);
}

.products-stats {
    display: flex;
    gap: var(--spacing-3xl);
    justify-content: center;
    flex-wrap: wrap;
}

.products-stats .stat {
    text-align: center;
}

.products-stats .stat-num {
    display: block;
    font-size: 3rem;
    font-weight: 900;
    font-family: var(--font-english);
}

.products-stats .stat-text {
    font-size: 1rem;
    opacity: 0.85;
}

/* Products Filter */
.products-filter {
    background: var(--gray-light);
    padding: var(--spacing-2xl) 0;
    position: sticky;
    top: 70px;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.filter-controls {
    display: flex;
    gap: var(--spacing-xl);
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
}

.search-box {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    background: var(--white);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-md);
    border: 2px solid var(--gray);
    flex: 1;
    max-width: 400px;
    transition: var(--transition-normal);
}

.search-box:focus-within {
    border-color: var(--blue-dark);
    box-shadow: 0 0 0 4px rgba(13, 43, 74, 0.1);
}

.search-box svg {
    width: 24px;
    height: 24px;
    color: var(--text-secondary);
}

.search-box input {
    border: none;
    outline: none;
    font-size: 1rem;
    width: 100%;
    font-family: inherit;
    background: transparent;
}

.filter-tags {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.filter-tag {
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-full);
    background: var(--white);
    border: 2px solid var(--gray);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-normal);
}

.filter-tag:hover {
    border-color: var(--blue-light);
    background: var(--blue-pale);
}

.filter-tag.active {
    background: var(--blue-dark);
    color: var(--white);
    border-color: var(--blue-dark);
}

/* Products Table */
.products-list {
    padding: var(--spacing-4xl) 0;
    background: var(--white);
}

.products-table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray);
}

.products-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
}

.products-table thead {
    background: var(--gradient-primary);
    color: var(--white);
}

.products-table th {
    padding: var(--spacing-lg) var(--spacing-xl);
    text-align: right;
    font-weight: 700;
    font-size: 1rem;
    white-space: nowrap;
}

.products-table th:first-child {
    text-align: center;
    width: 60px;
}

.products-table td {
    padding: var(--spacing-lg) var(--spacing-xl);
    border-bottom: 1px solid var(--gray);
    vertical-align: middle;
}

.products-table td:first-child {
    text-align: center;
    font-weight: 600;
    color: var(--text-secondary);
}

.products-table tbody tr {
    transition: var(--transition-fast);
}

.products-table tbody tr:hover {
    background: var(--blue-pale);
}

.products-table tbody tr:last-child td {
    border-bottom: none;
}

.products-table td strong {
    color: var(--blue-dark);
    font-weight: 700;
}

.products-count {
    text-align: center;
    margin-top: var(--spacing-2xl);
    padding: var(--spacing-lg);
    background: var(--blue-pale);
    border-radius: var(--radius-md);
    font-weight: 600;
    color: var(--blue-dark);
}

.products-count span {
    font-size: 1.5rem;
    font-weight: 900;
    font-family: var(--font-english);
}

/* Partner Info Section */
.partner-info {
    background: var(--gray-light);
    padding: var(--spacing-4xl) 0;
}

.partner-card {
    display: flex;
    gap: var(--spacing-3xl);
    align-items: center;
    background: var(--white);
    padding: var(--spacing-3xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--blue-pale);
}

.partner-logo {
    flex-shrink: 0;
}

.partner-logo img {
    max-width: 200px;
    height: auto;
}

.partner-content h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--blue-dark);
    margin-bottom: var(--spacing-md);
}

.partner-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--spacing-lg);
}

/* Responsive */
@media (max-width: 992px) {
    .filter-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        max-width: 100%;
    }
    
    .filter-tags {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .products-hero {
        padding: calc(80px + var(--spacing-3xl)) 0 var(--spacing-3xl);
    }
    
    .products-stats {
        gap: var(--spacing-xl);
    }
    
    .products-stats .stat-num {
        font-size: 2.5rem;
    }
    
    .products-table th,
    .products-table td {
        padding: var(--spacing-md);
        font-size: 0.9rem;
    }
    
    .partner-card {
        flex-direction: column;
        text-align: center;
    }
    
    .partner-logo img {
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    .products-table th:nth-child(3),
    .products-table td:nth-child(3) {
        display: none;
    }
    
    .filter-tag {
        padding: var(--spacing-xs) var(--spacing-md);
        font-size: 0.85rem;
    }
}

/* Product Images Gallery */
.product-images-section {
    background: var(--gray-light);
    padding: var(--spacing-5xl) 0;
}

.product-images-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-xl);
}

.product-img-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--gray);
    transition: var(--transition-normal);
    text-align: center;
    padding: var(--spacing-lg);
}

.product-img-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--blue-light);
}

.product-img-card img {
    width: 100%;
    max-width: 240px;
    height: auto;
    margin: 0 auto var(--spacing-md);
    display: block;
    object-fit: contain;
    aspect-ratio: 1;
}

.product-img-name {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--blue-dark);
    padding-top: var(--spacing-sm);
    border-top: 1px solid var(--gray);
}

.product-img-hidden {
    display: none;
}

.product-images-more {
    text-align: center;
    margin-top: var(--spacing-2xl);
}

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

@media (max-width: 768px) {
    .product-images-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
    .product-img-card {
        padding: var(--spacing-md);
    }
}

@media (max-width: 480px) {
    .product-images-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-sm);
    }
    .product-img-card {
        padding: var(--spacing-sm);
    }
    .product-img-name {
        font-size: 0.75rem;
    }
}
