/* PRODUCTS PAGE STYLES */
/* PRODUCTS PAGE - CATEGORY FILTER PILLS BAR */
.main-categories-filter-section {
    padding: 20px 0 10px 0;
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
}

.main-categories-title {
    font-family: var(--font-heading);
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--primary-black);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.category-pills-bar {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 12px;
    margin-top: 15px;
    padding: 12px 6px 16px 6px;
}

.category-pill-btn {
    background-color: var(--white);
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    outline: none;
    min-height: 100px;
    width: 100%;
    position: relative;
    z-index: 1;
    text-decoration: none;
    color: var(--text-dark, #1e293b);
}

.category-pill-btn .cat-pill-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background-color: rgba(179, 0, 30, 0.08);
    color: var(--primary-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: all 0.25s ease;
}

.category-pill-btn .cat-pill-title {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary-black);
    line-height: 1.25;
    transition: all 0.25s ease;
}

.category-pill-btn:hover {
    border-color: var(--primary-red);
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(179, 0, 30, 0.15);
    z-index: 2;
}

.category-pill-btn:hover .cat-pill-icon {
    background-color: var(--primary-red);
    color: var(--white);
}

.category-pill-btn.active {
    background-color: var(--primary-red);
    border-color: var(--primary-dark-red);
    box-shadow: 0 8px 22px rgba(179, 0, 30, 0.25);
    transform: translateY(-2px);
    z-index: 3;
}

.category-pill-btn.active .cat-pill-icon {
    background-color: var(--white);
    color: var(--primary-red);
}

.category-pill-btn.active .cat-pill-title {
    color: var(--white);
}

@media (max-width: 1540px) {
    .category-pills-bar {
        grid-template-columns: repeat(8, minmax(140px, 1fr));
        overflow-x: auto;
        padding: 12px 6px 16px 6px;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 992px) {
    .category-pills-bar {
        grid-template-columns: repeat(4, 1fr);
        overflow-x: visible;
    }
}

@media (max-width: 576px) {
    .category-pills-bar {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* PRODUCTS GRID - HORIZONTAL ROW LAYOUT */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 30px;
    width: 100%;
}

@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
}

@media (max-width: 900px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}


/* NEW SLEEK PRODUCT CARD DESIGN */
.product-card {
    background-color: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
    border: 1.5px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(179, 0, 30, 0.12);
    border-color: rgba(179, 0, 30, 0.4);
}

.product-img-wrapper {
    position: relative;
    height: 220px;
    width: 100%;
    overflow: hidden;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.product-img-wrapper img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-img-wrapper img {
    transform: scale(1.08);
}

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background-color: var(--white);
}

.product-info .badge {
    align-self: flex-start;
    background-color: rgba(179, 0, 30, 0.06);
    color: var(--primary-red);
    border: 1px solid rgba(179, 0, 30, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.product-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    margin: 10px 0 6px 0;
    color: #0f172a;
    line-height: 1.3;
}

.product-desc-short {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 16px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-action {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
    gap: 12px;
}

.product-spec {
    font-size: 0.78rem;
    font-weight: 600;
    color: #475569;
    background-color: #f1f5f9;
    padding: 6px 10px;
    border-radius: 6px;
}

.product-action .btn {
    padding: 8px 16px;
    font-size: 0.82rem;
    font-weight: 700;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.25s ease;
}

/* REMOVE / HIDE POPUP OVERLAY PANEL COMPLETELY */
.product-specs-overlay {
    display: none !important;
}



.product-link {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-dark-red);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.product-link:hover {
    color: var(--accent-red);
}

/* TECHNICAL SPECIFICATION TABLES */
.product-spec-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.85rem;
}

.product-spec-table th, .product-spec-table td {
    border: 1px solid var(--border-grey);
    padding: 10px 14px;
    text-align: left;
}

.product-spec-table th {
    background-color: var(--bg-light-red);
    color: var(--primary-dark-red);
    font-weight: 700;
}

.product-spec-table tr:nth-child(even) {
    background-color: var(--white);
}

.product-spec-table tr:nth-child(odd) {
    background-color: var(--light-grey);
}

.product-spec-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 15px 0;
}

/* RESPONSIVE LAYOUT */
@media (max-width: 576px) {
    .product-img-wrapper {
        height: 200px;
        padding: 15px;
    }
    
    .product-info {
        padding: 18px 15px;
    }

    .product-title {
        font-size: 1.2rem;
    }

    .product-desc {
        font-size: 0.88rem;
    }

    .product-action {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}


/* ==========================================================================
   PRODUCTS PAGE SCROLL REVEAL ANIMATIONS (DOWN TO UP ONE-BY-ONE CARDS)
   ========================================================================== */

.products-header-animated {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.products-header-animated.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Category Filter Pills Bar Entrance */
.category-pill-btn {
    opacity: 0;
    transform: translateY(45px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.main-categories-filter-section.animate-in .category-pill-btn:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: translateY(0); }
.main-categories-filter-section.animate-in .category-pill-btn:nth-child(2) { transition-delay: 0.10s; opacity: 1; transform: translateY(0); }
.main-categories-filter-section.animate-in .category-pill-btn:nth-child(3) { transition-delay: 0.15s; opacity: 1; transform: translateY(0); }
.main-categories-filter-section.animate-in .category-pill-btn:nth-child(4) { transition-delay: 0.20s; opacity: 1; transform: translateY(0); }
.main-categories-filter-section.animate-in .category-pill-btn:nth-child(5) { transition-delay: 0.25s; opacity: 1; transform: translateY(0); }
.main-categories-filter-section.animate-in .category-pill-btn:nth-child(6) { transition-delay: 0.30s; opacity: 1; transform: translateY(0); }
.main-categories-filter-section.animate-in .category-pill-btn:nth-child(7) { transition-delay: 0.35s; opacity: 1; transform: translateY(0); }
.main-categories-filter-section.animate-in .category-pill-btn:nth-child(8) { transition-delay: 0.40s; opacity: 1; transform: translateY(0); }

.main-categories-filter-section.animate-in .category-pill-btn:hover {
    transform: translateY(-4px);
}

/* Product Cards One-by-One Rise Animation */
.product-card {
    opacity: 0;
    transform: translateY(70px);
    transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.product-card.animate-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.product-card.animate-in:hover {
    transform: translateY(-6px) !important;
}

/* SHARED CATALOG PAGE EXTRACTED STYLES */
.products-page-section {
    background-color: #f8fafc;
    padding-top: 30px;
}

.products-section-header {
    margin-bottom: 30px;
}

.catalog-badge {
    background-color: rgba(179, 0, 30, 0.08);
    color: var(--primary-red);
    padding: 6px 18px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.catalog-title {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 700;
    color: #0f172a;
    margin-top: 10px;
    margin-bottom: 6px;
}

.catalog-subtitle {
    font-size: 0.95rem;
    color: #64748b;
    font-weight: 500;
}

.product-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e2e8f0;
    padding-top: 10px;
}

.product-card-tag {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary-red);
}

.btn-sm-details {
    padding: 6px 14px;
    font-size: 0.8rem;
    border-radius: 6px;
}


