﻿
/* =========================================================
   HOMERENTHUB - MULTI CATEGORY PRODUCT LISTING
   Existing Product_Layout.css remains unchanged
========================================================= */

.rh-listing-page {
    min-height: 70vh;
    padding: 22px 24px 65px;
    background: #F5F9FC;
    color: var(--product-dark);
}

    .rh-listing-page,
    .rh-listing-page * {
        box-sizing: border-box;
    }

.rh-listing-container {
    width: 100%;
    max-width: 1480px;
    margin: auto;
}


/* =========================================================
   01. BREADCRUMB
========================================================= */

.rh-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
    color: #8795A3;
    font-size: 12px;
}

    .rh-breadcrumb a {
        color: var(--product-primary);
        text-decoration: none;
        font-weight: 700;
    }

        .rh-breadcrumb a:hover {
            text-decoration: underline;
        }

    .rh-breadcrumb strong {
        color: #52677A;
    }


/* =========================================================
   02. MAIN CATEGORY MENU
========================================================= */

.rh-main-category-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
    padding: 13px 15px;
    background: #EEF3F7;
    border-radius: 14px;
}

.rh-main-category-tab {
    min-height: 46px;
    padding: 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid #DFE7ED;
    border-radius: 30px;
    background: #FFFFFF;
    color: #263746;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: .25s ease;
}

    .rh-main-category-tab i {
        font-size: 17px;
    }

    .rh-main-category-tab:hover {
        color: var(--product-primary);
        border-color: #A9D8EF;
        background: #F4FAFE;
    }

    .rh-main-category-tab.is-active {
        color: #FFFFFF;
        border-color: var(--product-primary);
        background: var(--product-primary);
        box-shadow: 0 4px 12px rgba(8,127,185,.20);
    }


/* =========================================================
   03. IMAGE BASED SUBCATEGORY MENU
========================================================= */

.rh-subcategory-strip {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 25px;
    padding: 12px;
    background: #FFFFFF;
    border: 1px solid var(--product-border);
    border-radius: 14px;
}

.rh-subcategory-chip {
    min-width: 0;
    min-height: 120px;
    padding: 10px 7px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid transparent;
    border-radius: 11px;
    background: transparent;
    color: var(--product-dark);
    cursor: pointer;
    transition: .2s ease;
}

    .rh-subcategory-chip:hover {
        background: #F4FAFE;
        border-color: #CDE5F3;
    }

    .rh-subcategory-chip.is-active {
        background: #E5F5FF;
        border-color: var(--product-primary);
        box-shadow: 0 0 0 2px rgba(8,127,185,.09);
    }

.rh-chip-image {
    width: 100%;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .rh-chip-image img {
        width: 100%;
        max-width: 105px;
        height: 76px;
        display: block;
        object-fit: contain;
    }

.rh-chip-name {
    color: #263746;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}


/* =========================================================
   04. LISTING LAYOUT
========================================================= */

.rh-listing-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    align-items: start;
    gap: 26px;
}


/* =========================================================
   05. FILTER SIDEBAR
========================================================= */

.rh-filter-sidebar {
    position: sticky;
    top: 105px;
    padding: 21px 18px;
    background: #FFFFFF;
    border: 1px solid var(--product-border);
    border-radius: 14px;
    box-shadow: 0 6px 22px rgba(16,42,67,.04);
}

.rh-filter-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 18px;
}

    .rh-filter-heading-row h2 {
        margin: 0;
        color: var(--product-dark);
        font-size: 23px;
        font-weight: 800;
    }

.rh-reset-btn {
    padding: 5px 8px;
    border: 0;
    background: transparent;
    color: var(--product-primary);
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

    .rh-reset-btn:hover {
        text-decoration: underline;
    }


/* FILTER SECTION */

.rh-filter-section {
    padding: 18px 0;
    border-top: 1px solid #EDF2F7;
}

    .rh-filter-section h3 {
        margin: 0 0 14px;
        color: #263746;
        font-size: 16px;
        font-weight: 800;
    }

.rh-filter-search {
    height: 42px;
    padding: 0 11px;
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid #DCE7EF;
    border-radius: 8px;
    background: #FFFFFF;
}

    .rh-filter-search:focus-within {
        border-color: var(--product-primary);
        box-shadow: 0 0 0 3px rgba(8,127,185,.08);
    }

    .rh-filter-search i {
        color: #8293A1;
        font-size: 14px;
    }

    .rh-filter-search input {
        width: 100%;
        min-width: 0;
        padding: 0;
        border: 0;
        outline: 0;
        color: var(--product-dark);
        background: transparent;
        font-size: 12px;
    }


/* CHECKBOXES */

.rh-filter-options {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.rh-filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #536678;
    font-size: 13px;
    cursor: pointer;
}

    .rh-filter-option:hover {
        color: var(--product-primary);
    }

    .rh-filter-option input {
        width: 17px;
        height: 17px;
        margin: 0;
        accent-color: var(--product-primary);
        cursor: pointer;
    }


/* INFORMATION BOXES */

.rh-filter-info {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    border: 1px solid #DDEEF8;
    border-radius: 9px;
    background: #F4FAFE;
}

    .rh-filter-info > i {
        color: var(--product-primary);
        font-size: 19px;
    }

    .rh-filter-info strong,
    .rh-filter-info small {
        display: block;
    }

    .rh-filter-info strong {
        color: var(--product-dark);
        font-size: 12px;
    }

    .rh-filter-info small {
        margin-top: 4px;
        color: var(--product-muted);
        font-size: 10px;
        line-height: 1.5;
    }


/* CLEAR BUTTON */

.rh-clear-filter-btn {
    width: 100%;
    min-height: 39px;
    margin-top: 5px;
    border: 1px solid #CDE5F3;
    border-radius: 8px;
    color: var(--product-primary);
    background: #F4FAFE;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: .2s ease;
}

    .rh-clear-filter-btn:hover {
        color: #FFFFFF;
        background: var(--product-primary);
    }


/* =========================================================
   06. RESULTS HEADING
========================================================= */

.rh-listing-results {
    min-width: 0;
}

.rh-results-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
}

.rh-eyebrow {
    display: block;
    margin-bottom: 7px;
    color: var(--product-primary);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1.1px;
}

.rh-results-title h1 {
    margin: 0 0 7px;
    color: var(--product-dark);
    font-size: clamp(25px, 2.5vw, 34px);
    font-weight: 900;
    line-height: 1.2;
}

.rh-results-title p {
    max-width: 720px;
    margin: 0;
    color: var(--product-muted);
    font-size: 12px;
    line-height: 1.7;
}


/* SORT */

.rh-results-tools {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 8px;
}

    .rh-results-tools label {
        color: #6B7C8D;
        font-size: 11px;
        font-weight: 700;
    }

    .rh-results-tools select {
        min-height: 38px;
        padding: 0 27px 0 10px;
        border: 1px solid #DCE7EF;
        border-radius: 8px;
        color: var(--product-dark);
        background: #FFFFFF;
        font-size: 11px;
        outline: 0;
    }

        .rh-results-tools select:focus {
            border-color: var(--product-primary);
        }


/* =========================================================
   07. RESULTS SUMMARY
========================================================= */

.rh-results-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    color: #728394;
    font-size: 11px;
}

.rh-home-use-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 30px;
    color: var(--product-primary);
    background: #E6F5FD;
    font-size: 10px;
    font-weight: 800;
}


/* =========================================================
   08. CATEGORY CARD GRID
========================================================= */

.rh-category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 17px;
}

.rh-category-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #DFE8EF;
    border-radius: 15px;
    background: #FFFFFF;
    box-shadow: 0 5px 20px rgba(16,42,67,.035);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

    .rh-category-card:hover {
        transform: translateY(-4px);
        border-color: #B9DDF0;
        box-shadow: 0 12px 28px rgba(16,42,67,.09);
    }

    .rh-category-card[hidden] {
        display: none !important;
    }


/* CARD IMAGE */

.rh-card-image {
    position: relative;
    height: 225px;
    margin: 11px 11px 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #F1F7FB;
}

    .rh-card-image img {
        display: block;
        width: 100%;
        height: 100%;
        padding: 9px;
        object-fit: contain;
        object-position: center;
    }


/* BADGE */

.rh-card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1;
    padding: 6px 9px;
    border-radius: 5px;
    color: #FFFFFF;
    background: var(--product-primary);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .5px;
}


/* CARD CONTENT */

.rh-card-content {
    padding: 15px 15px 16px;
}

.rh-card-category {
    margin-bottom: 6px;
    color: #8293A1;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .8px;
}

.rh-card-content h2 {
    min-height: 24px;
    margin: 0;
    color: var(--product-dark);
    font-size: 17px;
    font-weight: 800;
}


/* CARD FOOTER */

.rh-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 13px;
    padding-top: 11px;
    border-top: 1px solid #EDF2F6;
    color: #7A8B99;
    font-size: 10px;
}

.rh-card-arrow {
    width: 27px;
    height: 27px;
    flex: 0 0 27px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #FFFFFF;
    background: var(--product-primary);
    font-size: 15px;
}


/* =========================================================
   09. NO RESULTS
========================================================= */

.rh-no-results {
    margin-top: 12px;
    padding: 50px 20px;
    text-align: center;
    border: 1px dashed #C9DCE8;
    border-radius: 14px;
    background: #FFFFFF;
}

    .rh-no-results[hidden] {
        display: none !important;
    }

    .rh-no-results > i {
        color: var(--product-primary);
        font-size: 36px;
    }

    .rh-no-results h3 {
        margin: 10px 0 6px;
        color: var(--product-dark);
        font-size: 19px;
        font-weight: 800;
    }

    .rh-no-results p {
        margin: 0 0 15px;
        color: var(--product-muted);
        font-size: 12px;
    }

    .rh-no-results button {
        padding: 9px 15px;
        border: 0;
        border-radius: 8px;
        color: #FFFFFF;
        background: var(--product-primary);
        font-size: 11px;
        font-weight: 800;
        cursor: pointer;
    }


/* =========================================================
   10. TABLET RESPONSIVE
========================================================= */

@media (max-width: 1100px) {

    .rh-listing-layout {
        grid-template-columns: 225px minmax(0, 1fr);
        gap: 17px;
    }

    .rh-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rh-card-image {
        height: 210px;
    }
}


/* =========================================================
   11. MOBILE RESPONSIVE
========================================================= */

@media (max-width: 767px) {

    .rh-listing-page {
        padding: 17px 13px 40px;
    }

    .rh-main-category-menu {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 10px;
    }

    .rh-main-category-tab {
        min-height: 41px;
        padding: 0 14px;
        font-size: 11px;
    }

    .rh-subcategory-strip {
        grid-template-columns: repeat(6, 112px);
        gap: 6px;
        overflow-x: auto;
        padding: 9px;
    }

    .rh-subcategory-chip {
        min-height: 105px;
    }

    .rh-chip-image,
    .rh-chip-image img {
        height: 65px;
    }

    .rh-listing-layout {
        grid-template-columns: 1fr;
        gap: 17px;
    }

    .rh-filter-sidebar {
        position: static;
        padding: 16px;
    }

    .rh-filter-options {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rh-results-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 13px;
    }

    .rh-results-tools {
        width: 100%;
        justify-content: flex-end;
    }

    .rh-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 11px;
    }

    .rh-card-image {
        height: 170px;
        margin: 8px 8px 0;
    }

    .rh-card-content {
        padding: 11px;
    }

        .rh-card-content h2 {
            font-size: 14px;
        }

    .rh-card-bottom {
        font-size: 9px;
    }
}


/* =========================================================
   12. SMALL MOBILE
========================================================= */

@media (max-width: 420px) {

    .rh-category-grid {
        grid-template-columns: 1fr;
    }

    .rh-card-image {
        height: 220px;
    }

    .rh-filter-options {
        grid-template-columns: 1fr;
    }

    .rh-results-title h1 {
        font-size: 25px;
    }
}
