﻿body {
    background-color: rgba(242, 227, 208,0.4);
}

.card {
    box-shadow: 3px 3px 4px #f1f0f0;
}

.card-body {
    padding: 0rem 1rem;
}

.product-page-heading {
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    margin-top: 7px;
    font-family: var(--heading-font) !important;
}

.product-details {
    font-size: 14px;
    margin-bottom: 5px;
    font-family: var(--body-font);
}

    .product-details span:first-child {
        font-weight: 600;
    }

.product-detail-img {
    width: 70%;
    height: auto;
    object-fit: cover;
}

.card-footer {
    background-color: transparent;
    border: 1px solid transparent;
    text-align: center;
}

.send-query {
    text-decoration: underline;
    font-weight: 600;
    font-size: 15px;
    text-align: center;
}

.table {
    margin-top: 0.7rem !important;
    margin-bottom: 0.5rem !important;
}

.product-specification tbody {
    display: inline-block;
}

    .product-specification tbody tr {
        border-bottom: 1px solid transparent;
        height: 5px;
        font-family: lato;
    }

        .product-specification tbody tr td:first-child {
            width: 25% !important;
            letter-spacing: .1px;
            font-weight: 600;
            text-align: left;
        }

        .product-specification tbody tr td:last-child {
            width: 75% !important;
            letter-spacing: .1px;
            text-align: left;
        }

        .product-specification tbody tr td {
            font-size: 14px;
        }

.heading-details-head {
    font-family: var(--heading-font) !important;
    font-size: 20px;
    color: var(--primary-color);
    font-weight: 600;
}

/*new style added 20-08-2026*/

.category-tab {
    display: flex;
    justify-content: center;
}

.category-tab-item {
    padding: 5px;
    color: yellow;
}

    .category-tab-item a {
        padding: 5px;
    }

.tab-bar {
    max-width: 1100px;
    margin: 0 auto 24px;
    display: flex;
    justify-content: center;
    gap: 10px;
    border-bottom: 1px solid #e0dbd2;
    padding-bottom: 0;
}

.tab-btn {
    background: none;
    border: none;
    padding: 10px 15px;
    font-size: 0.95rem;
    font-weight: bold;
    color: #777;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
}

    .tab-btn:hover {
        color: #2f5233;
    }

    .tab-btn.active {
        color: var(--primary-color);
        border-bottom-color: var(--primary-color);
        font-size: 17px;
    }

/* ---------- Toolbar (sort) ---------- */
.toolbar {
    max-width: 1100px;
    margin: 0 auto 20px;
    text-align: right;
}

    .toolbar label {
        font-size: 0.85rem;
        font-weight: bold;
        margin-right: 6px;
    }

    .toolbar select {
        padding: 6px 10px;
        border-radius: 4px;
        border: 1px solid #ccc;
    }

/* ---------- Product grid ---------- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.product-card {
    background: #fff;
    border: 1px solid #e5e0d8;
    border-radius: 8px;
    padding: 12px 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
}

    /* Hidden by the tab filter (kept separate from the [hidden] attr used by the modal-overlay,
     so JS toggles this via classList, not the attribute) */
    .product-card.is-filtered-out {
        display: none;
    }

    .product-card img {
        width: 100%;
        height: auto;
        object-fit: cover;
        border-radius: 6px;
        margin-bottom: 12px;
    }

.product-title {
    font-size: 1.08rem;
    margin: 0 0 6px;
    font-weight: 600;
}

.product-short-desc {
    font-size: 0.85rem;
    color: #777;
    margin: 0 0 14px;
    flex-grow: 1;
}

.btn-enquiry {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}

    .btn-enquiry:hover {
        background: #24401f;
    }

.no-results {
    text-align: center;
    color: #999;
    padding: 40px 0;
    grid-column: 1 / -1;
}

/* ---------- Modal ---------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

    .modal-overlay[hidden] {
        display: none;
    }

.modal-box {
    background: #fff;
    max-width: 530px;
    width: 100%;
    /*max-height: 85vh;*/
    overflow-y: auto;
    border-radius: 8px;
    padding: 20px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    color: #ff0000;
}

    .modal-close:hover {
        color: #ff0000;
    }

.modal-product-info {
    border-bottom: 1px solid #eee;
    /*margin-bottom: 16px;
            padding-bottom: 12px;*/
    padding-right: 20px;
}

#modalProductName {
    margin: 0 0 8px;
    font-size: 1.3rem;
}

#modalProductDetail {
    margin: 0;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
}

#enquiryForm label {
    display: block;
    font-size: 0.85rem;
    font-weight: bold;
    margin: 12px 0 4px;
}

#enquiryForm input,
#enquiryForm textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9rem;
    font-family: inherit;
}

#enquiryForm button[type="submit"] {
    margin-top: 18px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95rem;
}

    #enquiryForm button[type="submit"]:hover {
        background: #24401f;
    }

.product-newtitle {
    text-align: left !important;
    font-size: 1rem !important;
    font-weight: 600;
}

.content-sub-heading {
    font-family: 'PlayfairDisplay-Bold', 'serif';
    font-size: 50px;
    font-weight: 600;
}



#enquiry-modal button[type="submit"] {
    margin-top: 18px;
    background: #1e4dbe;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95rem;
}

#enquiry-modal .hero-button {
    margin-top: 18px;
    background: #1e4dbe;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95rem;
}


#enquiry-modal .btn-close {
    color: #ff0000 !important;
    float: right;
    font-size: 30px;
    font-weight: bold;
    background: none !important;
    opacity: 1;
    padding: 0px;
    margin: 0px;
   margin-top: -35px;
}

    #enquiry-modal .btn-close:hover,
    #enquiry-modal .btn-close:focus {
        color: #ff0000;
        text-decoration: none;
        cursor: pointer;
    }
#enquiry-modal label {
    display: block;
    font-size: 0.85rem;
    font-weight: bold;
    margin: 12px 0 4px;
}