/* ======================================================
Project : Sridevi Enterprises
File    : products.css
Purpose : Product catalogue and product details styling.

Author  : Srikar
====================================================== */

/* ===========================================
   Listing and Filter Controls
=========================================== */

.products-page,
.product-details-page {

    background: #F5F7FA;
    min-height: 70vh;

}

.products-header h1,
.product-details-page h1,
.specifications-section h2,
.related-products-section h2 {

    color: #1E4FA3;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;

}

.product-search,
.filter-panel,
.catalog-product-card,
.specifications-section,
.related-products-section {

    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);

}

.filter-panel {

    padding: 24px;
    position: sticky;
    top: 100px;

}

.filter-panel h2 {

    font-size: 1.25rem;
    color: #1E4FA3;

}

.filter-panel label {

    display: block;
    font-weight: 600;
    margin: 16px 0 6px;

}

.product-list-toolbar {

    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 16px;

}

/* ===========================================
   Product Cards
=========================================== */

.catalog-product-card {

    overflow: hidden;
    display: flex;
    flex-direction: column;

}

.catalog-product-card > img {

    width: 100%;
    height: 190px;
    object-fit: contain;
    background: #F5F7FA;
    padding: 16px;

}

.catalog-product-card-body {

    padding: 20px;
    display: flex;
    flex: 1;
    flex-direction: column;

}

.catalog-product-card h2,
.catalog-product-card h3 {

    color: #1F2937;
    font-size: 1rem;
    font-weight: 600;
    height: 3rem;
    line-height: 1.5rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;

}

.catalog-product-brand,
.catalog-product-meta,
.catalog-product-availability,
.product-detail-meta,
.product-detail-availability {

    color: #667085;
    font-size: .9rem;

}

.catalog-product-pricing {

    color: #1E4FA3;
    font-size: .95rem;
    font-weight: 600;
    margin-bottom: 12px;

}

.catalog-product-card .btn {

    margin-top: auto;

}

.catalog-product-card:hover {

    box-shadow: 0 12px 28px rgba(0, 0, 0, .14);
    transform: translateY(-2px);
    transition: box-shadow .2s ease, transform .2s ease;

}

.catalog-product-card .btn:focus-visible,
.back-link:focus-visible {

    outline: 3px solid #1E4FA3;
    outline-offset: 3px;

}

.empty-state {

    color: #667085;
    padding: 24px;
    text-align: center;

}

.product-pagination {

    margin-top: 36px;

}

/* ===========================================
   Customer Enquiry
=========================================== */

.enquiry-form-wrapper {

    max-width: 760px;
    margin: 0 auto;
    padding: 36px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);

}

.enquiry-form-wrapper h1 {

    margin-top: 24px;

}

.enquiry-success > i {

    color: #198754;
    font-size: 3.5rem;

}

/* ===========================================
   Contact Page
=========================================== */

.contact-page {

    background: #F5F7FA;

}

.contact-hero,
.contact-main-content,
.contact-map-section,
.contact-faq-section {

    margin-bottom: 48px;

}

.contact-hero h1,
.contact-page h2 {

    color: #1E4FA3;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;

}

.contact-information-card,
.contact-form-card {

    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
    padding: 32px;

}

.contact-information-card address,
.contact-information-card p {

    display: grid;
    gap: 4px;
    margin: 0 0 20px;

}

.contact-information-card a {

    color: #1E4FA3;
    overflow-wrap: anywhere;

}

.contact-map-placeholder {

    align-items: center;
    background: linear-gradient(135deg, #1E4FA3, #0F2E6E);
    border-radius: 14px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    font-size: 1.1rem;
    gap: 12px;
    justify-content: center;
    min-height: 320px;

}

.contact-map-placeholder i {

    font-size: 2.5rem;

}

.contact-faq-section .accordion-item {

    border-color: #D0D5DD;

}

/* ===========================================
   Product Details
=========================================== */

.back-link {

    color: #1E4FA3;
    text-decoration: none;

}

.product-main-image {

    width: 100%;
    height: 420px;
    object-fit: contain;
    background: #ffffff;
    border-radius: 14px;
    padding: 30px;

}

.product-gallery {

    display: flex;
    gap: 12px;
    margin-top: 16px;

}

.product-gallery img {

    width: 76px;
    height: 76px;
    object-fit: contain;
    background: #ffffff;
    border: 1px solid #D0D5DD;
    border-radius: 8px;
    padding: 6px;

}

.product-facts,
.specifications-list {

    margin: 28px 0;

}

.product-facts div,
.specifications-list div {

    display: grid;
    grid-template-columns: minmax(120px, 1fr) 2fr;
    border-bottom: 1px solid #EAECF0;
    padding: 12px 0;

}

.product-facts dt,
.specifications-list dt {

    color: #475467;

}

.product-facts dd,
.specifications-list dd {

    color: #1F2937;
    margin: 0;

}

.specifications-section,
.related-products-section {

    margin-top: 48px;
    padding: 32px;

}

/* ===========================================
   Mobile
=========================================== */

@media (max-width: 767.98px) {

    .product-list-toolbar {

        align-items: stretch;
        flex-direction: column;

    }

    .product-main-image {

        height: 300px;

    }

    .filter-panel {

        position: static;

    }

    .enquiry-form-wrapper {

        padding: 24px;

    }

    .contact-information-card,
    .contact-form-card {

        padding: 24px;

    }

}
