﻿/* ============================================================
   PRODUCTS PAGE — HERO CONTENT ONLY
   Background is controlled inline in Products.cshtml
   ============================================================ */

.hero-products {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

    /* Content container */
    .hero-products .hero-content {
        position: relative;
        z-index: 2;
        max-width: 900px;
        padding: 0 20px;
        animation: fadeIn 1.2s ease-out;
    }

    /* Title */
    .hero-products h1 {
        font-size: 3rem;
        font-weight: 700;
        margin-bottom: 15px;
    }

    /* Subtitle */
    .hero-products .hero-sub {
        font-size: 1.25rem;
        opacity: 0.95;
        margin-bottom: 10px;
    }

    /* Optional description */
    .hero-products .hero-desc {
        font-size: 1.1rem;
        opacity: 0.9;
        margin-bottom: 35px;
        line-height: 1.6;
    }

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-products h1 {
        font-size: 2rem;
    }

    .hero-products .hero-sub,
    .hero-products .hero-desc {
        font-size: 1rem;
    }
}

/* ============================
   GLOBAL / PAGE BASICS
============================ */

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #222;
}

/* Hero section */
section.py-5.bg-light.border-bottom {
    background: #f7f9fc;
    border-bottom: 1px solid #e3e7ef !important;
}

section.py-5 .fw-bold {
    letter-spacing: 0.03em;
}

section.py-5 p.text-muted {
    max-width: 640px;
    margin: 0 auto;
}

/* Container spacing on products section */
section.py-4 .container {
    max-width: 1200px;
}

/* ============================
   FILTERS + SEARCH
============================ */

.filter-group {
    gap: 6px;
}

.filter-btn {
    border-radius: 30px;
    padding: 6px 18px;
    font-size: 0.9rem;
    border-width: 1px;
    border-color: #d0d4dd;
    color: #333;
    background-color: #fff;
    transition: all .18s ease;
    white-space: nowrap;
}

    .filter-btn:hover {
        background-color: #f0f4ff;
        border-color: #005bbb;
        color: #005bbb;
    }

    .filter-btn.active {
        background-color: #005bbb;
        border-color: #005bbb;
        color: #fff;
    }

/* Search input */
#productSearch {
    border-radius: 30px;
    padding-left: 16px;
    height: 42px;
    border: 1px solid #d0d4dd;
    font-size: 0.9rem;
}

    #productSearch:focus {
        border-color: #005bbb;
        box-shadow: 0 0 0 0.15rem rgba(0, 91, 187, 0.25);
        outline: none;
    }

/* ============================
   PRODUCT GRID + CARDS
============================ */

#productGrid {
    margin-top: 10px;
}

    #productGrid .card {
        border-radius: 12px;
        border: 1px solid #e2e6f0;
        transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
        overflow: hidden;
    }

        #productGrid .card:hover {
            transform: translateY(-4px);
            box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
            border-color: #c5cbe0;
        }

    #productGrid .card-img-top {
        border-top-left-radius: 12px;
        border-top-right-radius: 12px;
        height: 200px;
        object-fit: cover;
        background: #f1f3f8;
    }

    /* Card body */
    #productGrid .card-body {
        padding: 14px 16px 14px;
    }

    #productGrid h5.fw-bold {
        font-size: 1rem;
    }

    #productGrid p.small.text-muted {
        font-size: 0.82rem;
    }

    /* View details button */
    #productGrid .btn-outline-primary {
        border-radius: 30px;
        font-size: 0.8rem;
        padding: 5px 14px;
    }

/* ============================
   CATEGORY BADGES
============================ */

.badge-category {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Category colors */
.badge-thermal {
    background: #ffcc00;
    color: #000;
}

.badge-fire {
    background: #d9534f;
    color: #fff;
}

.badge-corrosion {
    background: #5cb85c;
    color: #fff;
}

.badge-sealant {
    background: #5bc0de;
    color: #fff;
}

.badge-base {
    background: #6f42c1;
    color: #fff;
}

/* ============================
   MODAL LAYOUT
============================ */

#productDetailModal .modal-content {
    border-radius: 14px;
    border: none;
}

#productDetailModal .modal-header {
    padding: 14px 18px 6px;
}

#productDetailModal .modal-body {
    padding: 18px 20px 20px;
}

/* Accent bar at top of modal */
.modal-header-accent {
    height: 6px;
    width: 100%;
    border-radius: 4px 4px 0 0;
    margin: -6px -18px 10px;
}

/* Accent colors */
.accent-thermal {
    background: #ffcc00;
}

.accent-fire {
    background: #d9534f;
}

.accent-corrosion {
    background: #5cb85c;
}

.accent-sealant {
    background: #5bc0de;
}

.accent-base {
    background: #6f42c1;
}

/* Modal headings & text */
#productDetailModal h2.h4 {
    font-size: 1.25rem;
}

#productDetailModal h5,
#productDetailModal h6 {
    font-weight: 600;
}

#productDetailModal p.small {
    font-size: 0.85rem;
}

/* ============================
   SPEC TABLE
============================ */

.spec-table {
    font-size: 0.85rem;
}

    .spec-table th {
        width: 40%;
        font-weight: 600;
        color: #444;
        padding: 6px 0;
    }

    .spec-table td {
        color: #555;
        padding: 6px 0;
    }

/* ============================
   DOWNLOADS + RELATED
============================ */

.download-list {
    font-size: 0.85rem;
}

    .download-list li {
        margin-bottom: 6px;
    }

    .download-list a {
        text-decoration: none;
        color: #005bbb;
        font-weight: 500;
    }

        .download-list a:hover {
            text-decoration: underline;
        }

#productDetailModal .card-body.small ul {
    font-size: 0.85rem;
}

/* Related products buttons */
#productDetailModal button.btn-link {
    color: #005bbb;
}

    #productDetailModal button.btn-link:hover {
        text-decoration: underline;
    }

/* ============================
   UTILITIES / RESPONSIVE
============================ */

@media (max-width: 768px) {
    #productGrid .card-img-top {
        height: 190px;
    }

    .filter-group {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 4px;
    }

        .filter-group .filter-btn {
            font-size: 0.8rem;
        }
}

@media (max-width: 576px) {
    section.py-5 .container.text-center h1 {
        font-size: 1.5rem;
    }

    #productGrid .card-img-top {
        height: 170px;
    }
}

/* Control product image size inside cards */
.card-img-top {
    height: 200px; /* adjust this value to your liking */
    object-fit: cover; /* keeps aspect ratio and crops nicely */
    width: 100%;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    background-color: #f8f9fc;
}

/* Optional: smaller images on mobile */
@media (max-width: 576px) {
    .card-img-top {
        height: 160px;
    }
}


.search-icon {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    font-size: 0.95rem;
    color: #888;
    pointer-events: none;
}

.search-input {
    padding-left: 38px !important;
    border-radius: 30px;
    height: 42px;
}

#productGrid .card-img-top {
    height: 70px;
    object-fit: cover;
    width: 100%;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    background-color: #f1f3f8;
}

.modal-product-image {
    max-height: 100px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto 16px;
    background-color: #f1f3f8;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.spi-logo {
    height: 90px; /* adjust size as needed */
    width: auto;
    object-fit: contain;
}

.modal-header-accent-line {
    height: 1px; /* ultra thin */
    width: 100%; /* full width */
    background-color: #f9c900; /* SPI yellow */
    margin: 0 auto;
    border-radius: 1px;
}

.product-title {
    font-size: 1.6rem;
    font-weight: 700;
}

.modal-product-image {
    max-height: 220px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto 16px;
    background-color: #f1f3f8;
    border-radius: 12px;
}

.badge-category {
    display: inline-block;
    padding: 0.35em 0.75em;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 0.5rem;
    color: #fff;
    background-size: 200% 200%;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: inset 0 0 0.5rem rgba(0, 0, 0, 0.1);
}

/* Gradient stain styles per category */
.badge-thermal {
    background-image: linear-gradient(135deg, #ff7e5f, #feb47b);
}

.badge-fire {
    background-image: linear-gradient(135deg, #e53935, #fbc02d);
}

.badge-corrosion {
    background-image: linear-gradient(135deg, #6a11cb, #2575fc);
}

.badge-sealant {
    background-image: linear-gradient(135deg, #43cea2, #185a9d);
}

.badge-base {
    background-image: linear-gradient(135deg, #bdc3c7, #2c3e50);
}

.badge-category {
    animation: gradientMove 6s ease infinite;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

html[lang="en"] .lang-ar {
    display: none;
}

html[lang="ar"] .lang-en {
    display: none;
}

