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

/* Products Hero */
.products-hero {
    position: relative;
    padding: 160px 0 80px;
    background: var(--gss-navy);
    overflow: hidden;
}
.products-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--gss-navy) 0%, #1a2a3a 50%, var(--gss-navy) 100%);
}
.products-hero-bg .overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(211,47,47,0.08) 0%, transparent 60%);
}
.products-hero-content {
    position: relative;
    z-index: 2;
    max-width: 640px;
}
.products-hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--gss-white);
    line-height: 1.1;
    margin-bottom: 16px;
}
.products-hero-content p {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
}

/* Filter Bar */
.products-filter {
    background: var(--gss-offwhite);
    border-bottom: 1px solid rgba(15,25,35,0.08);
    padding: 24px 0;
    position: sticky;
    top: 72px;
    z-index: 90;
}
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.filter-btn {
    padding: 8px 20px;
    border: 1px solid rgba(15,25,35,0.15);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gss-navy);
    text-decoration: none;
    transition: all 0.3s ease;
    background: var(--gss-white);
    white-space: nowrap;
}
.filter-btn:hover {
    border-color: var(--gss-red);
    color: var(--gss-red);
}
.filter-btn.active {
    background: var(--gss-red);
    border-color: var(--gss-red);
    color: var(--gss-white);
}

/* Products Grid */
.products-archive {
    padding: 64px 0 96px;
    background: var(--gss-offwhite);
}
.products-grid-archive {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 32px;
}
.product-archive-card {
    background: var(--gss-white);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(15,25,35,0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-archive-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(15,25,35,0.12);
    border-color: rgba(211,47,47,0.2);
}
.product-link {
    text-decoration: none;
    color: inherit;
    display: block;
}
.product-image-wrap {
    position: relative;
    height: 260px;
    background: #f5f5f5;
    overflow: hidden;
}
.product-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    transition: transform 0.5s ease;
}
.product-archive-card:hover .product-image-wrap img {
    transform: scale(1.05);
}
.product-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: rgba(15,25,35,0.25);
    gap: 12px;
}
.product-placeholder svg {
    width: 48px;
    height: 48px;
}
.product-placeholder span {
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--gss-navy);
    color: var(--gss-white);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.product-info {
    padding: 24px;
}
.product-info h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gss-navy);
    margin-bottom: 6px;
    line-height: 1.3;
}
.product-sku {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gss-red);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}
.product-info p {
    font-size: 0.9rem;
    color: rgba(15,25,35,0.6);
    line-height: 1.6;
    margin-bottom: 16px;
}
.view-details {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gss-red);
    transition: gap 0.3s ease;
}
.product-archive-card:hover .view-details {
    gap: 8px;
}

/* Pagination */
.products-pagination {
    margin-top: 48px;
    text-align: center;
}
.products-pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}
.products-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid rgba(15,25,35,0.15);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gss-navy);
    text-decoration: none;
    transition: all 0.3s ease;
}
.products-pagination .page-numbers:hover,
.products-pagination .page-numbers.current {
    background: var(--gss-red);
    border-color: var(--gss-red);
    color: var(--gss-white);
}

/* No Products */
.no-products {
    text-align: center;
    padding: 80px 0;
}
.no-products h2 {
    font-size: 1.5rem;
    color: var(--gss-navy);
    margin-bottom: 8px;
}
.no-products a {
    color: var(--gss-red);
}

/* ===== SINGLE PRODUCT ===== */
.single-product-hero {
    background: var(--gss-navy);
    padding: 100px 0 24px;
}
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}
.back-link:hover {
    color: var(--gss-white);
}
.single-product-content {
    padding: 48px 0 96px;
    background: var(--gss-offwhite);
}
.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}
.main-image {
    background: var(--gss-white);
    border-radius: 12px;
    border: 1px solid rgba(15,25,35,0.06);
    overflow: hidden;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 32px;
}
.product-placeholder.large {
    padding: 64px;
    gap: 16px;
}
.product-placeholder.large svg {
    width: 80px;
    height: 80px;
}
.gallery-thumbs {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}
.thumb {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    border: 2px solid rgba(15,25,35,0.1);
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.3s ease;
}
.thumb:hover,
.thumb.active {
    border-color: var(--gss-red);
}
.thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}
.product-category-badge {
    display: inline-block;
    background: rgba(211,47,47,0.1);
    color: var(--gss-red);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}
.product-details h1 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    color: var(--gss-navy);
    line-height: 1.2;
    margin-bottom: 12px;
}
.product-meta-row {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.meta-item {
    font-size: 0.875rem;
    color: rgba(15,25,35,0.6);
}
.meta-item strong {
    color: var(--gss-navy);
}
.product-description {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(15,25,35,0.7);
    margin-bottom: 32px;
}
.product-description p {
    margin-bottom: 16px;
}
.product-section {
    margin-bottom: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(15,25,35,0.08);
}
.product-section h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gss-navy);
    margin-bottom: 16px;
}
.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.features-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.9rem;
    color: rgba(15,25,35,0.7);
    line-height: 1.5;
}
.features-list li svg {
    flex-shrink: 0;
    margin-top: 2px;
}
.specs-table {
    width: 100%;
    border-collapse: collapse;
}
.specs-table tr {
    border-bottom: 1px solid rgba(15,25,35,0.06);
}
.specs-table td {
    padding: 10px 0;
    font-size: 0.9rem;
}
.spec-label {
    font-weight: 600;
    color: var(--gss-navy);
    width: 40%;
}
.spec-value {
    color: rgba(15,25,35,0.6);
}
.product-cta {
    display: flex;
    gap: 16px;
    margin-top: 32px;
    flex-wrap: wrap;
}
.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border: 1px solid rgba(15,25,35,0.2);
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gss-navy);
    text-decoration: none;
    transition: all 0.3s ease;
}
.btn-outline:hover {
    border-color: var(--gss-navy);
    background: var(--gss-navy);
    color: var(--gss-white);
}

/* Responsive */
@media (max-width: 768px) {
    .products-hero {
        padding: 120px 0 48px;
    }
    .filter-bar {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
    }
    .products-grid-archive {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .product-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .main-image {
        aspect-ratio: auto;
        min-height: 280px;
    }
}
