/* Products Page - Specialized Styling */

:root {
    --product-primary: #2563eb; /* Pro Blue for IT */
    --product-secondary: #4f46e5;
    --product-accent: #10b981;
    --product-bg: #f8fafc;
    --product-card-bg: #ffffff;
    --product-border: #e2e8f0;
}

.products-page {
    background-color: var(--product-bg);
}

/* --- Hero Banner --- */
.products-hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.products-hero .section-badge {
    background: rgba(37, 99, 235, 0.2);
    color: #60a5fa;
    border: 1px solid rgba(37, 99, 235, 0.3);
}

.products-hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 20px;
}

.products-hero p {
    font-size: 1.2rem;
    color: #94a3b8;
    max-width: 700px;
    margin: 0 auto;
}

/* --- Category Navigation --- */
.category-nav {
    padding: 20px 0;
    background: white;
    border-bottom: 1px solid var(--product-border);
    position: sticky;
    top: 70px;
    z-index: 100;
}

.category-list {
    display: flex;
    justify-content: center;
    gap: 30px;
    list-style: none;
}

.category-link {
    font-weight: 600;
    color: #64748b;
    padding: 8px 16px;
    border-radius: 8px;
    transition: 0.3s;
}

.category-link:hover, .category-link.active {
    background: #eff6ff;
    color: var(--product-primary);
}

/* --- Product Sections --- */
.product-section {
    padding: 80px 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

/* --- Product Cards --- */
.product-card {
    background: var(--product-card-bg);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--product-border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.product-image-wrap {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #f1f5f9;
}

.product-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--product-primary);
    color: white;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
}

.product-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
}

.product-info p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.product-cta {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

.btn-product {
    width: 100%;
    padding: 12px;
    background: #f8fafc;
    color: #1e293b;
    border-radius: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: 0.3s;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.product-card:hover .product-image-wrap img {
    transform: scale(1.1);
}

.product-card:hover .btn-product {
    background: var(--product-primary);
    color: white;
}

/* --- Customized Gallery --- */
.custom-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.8), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: all 0.3s ease;
    transform: translateY(10px);
}

.gallery-card:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.gallery-card:hover img {
    transform: scale(1.1);
}

.gallery-card:hover .gallery-card-overlay {
    opacity: 1;
    transform: translateY(0);
}

.gallery-card-title {
    color: white;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .category-list {
        overflow-x: auto;
        justify-content: flex-start;
        padding: 10px 0;
        -webkit-overflow-scrolling: touch;
    }
    .product-grid, .custom-gallery {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
}

/* --- Mobile Landscape --- */
@media (max-width: 926px) and (orientation: landscape) {
    .products-hero {
        padding: 90px 0 50px;
    }

    .products-hero h1 {
        font-size: clamp(1.8rem, 4vw, 2.5rem);
    }

    .products-hero p {
        font-size: 1rem;
    }

    .category-nav {
        top: 55px;
    }

    .category-list {
        gap: 12px;
        overflow-x: auto;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
    }

    .category-link {
        font-size: 0.85rem;
        padding: 6px 12px;
        white-space: nowrap;
    }

    .product-section {
        padding: 48px 0;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
        margin-top: 30px;
    }

    .custom-gallery {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 16px;
    }
}

@media (max-height: 420px) and (orientation: landscape) {
    .products-hero {
        padding: 70px 0 36px;
    }

    .products-hero h1 {
        font-size: 1.6rem;
    }

    .product-section {
        padding: 36px 0;
    }
}
