/* ==========================================================================
   QEMOSA — Custom design overrides
   Scope: category pages (route-product-category)
   Applies a split background: left sidebar = white, right content = cream.
   Product cards: white on cream.
   ========================================================================== */

:root {
    --q-black: #0e1111;
    --q-ink: #1a1a1a;
    --q-muted: #6b6b6b;
    --q-line: #eeeeee;
    --q-line-2: #e4e4e1;
    --q-bg: #ffffff;
    --q-bg-soft: #f7f6f3;
    --q-green: #606c38;
    --q-red: #c7352f;
    --q-cream: #faf7ef;
}

/* ----- CATEGORY PAGE ONLY ----- */
body.route-product-category .site-wrapper,
body.route-product-category #product-category {
    background: var(--q-bg);
}

/* Make the container full-bleed on category page so we get the split look */
body.route-product-category #product-category.container {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
}

body.route-product-category #product-category > .row {
    margin: 0;
    display: flex;
    flex-wrap: nowrap;
    min-height: 80vh;
}

/* Hide the top-level breadcrumb (we'll clone it under the title via JS) */
body.route-product-category > .breadcrumbs,
body.route-product-category .global-wrapper > .breadcrumbs {
    display: none !important;
}

/* -------- LEFT SIDEBAR (white, full height) -------- */
body.route-product-category #column-left {
    background: var(--q-bg);
    padding: 40px 30px 60px;
    border-right: 1px solid var(--q-line);
    min-width: 280px;
    max-width: 320px;
    flex: 0 0 300px;
}

body.route-product-category #column-left .module-heading,
body.route-product-category #column-left .module-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: var(--q-black);
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--q-line);
}

/* Filter blocks in sidebar */
body.route-product-category #column-left .module,
body.route-product-category #column-left .journal-module {
    background: transparent;
    border: none;
    padding: 0;
    margin-bottom: 6px;
}

body.route-product-category #column-left .module .module-body {
    padding: 0;
    background: transparent;
    border: none;
}

/* -------- RIGHT CONTENT (cream background) -------- */
body.route-product-category #content,
body.route-product-category #content.col-sm-9,
body.route-product-category #content.col-sm-6,
body.route-product-category #content.col-sm-12 {
    background: var(--q-cream);
    padding: 48px 5% 60px;
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    max-width: none;
}

/* Category title — serif, centered */
body.route-product-category #content .title.page-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 52px;
    font-weight: 500;
    letter-spacing: -1px;
    text-align: center;
    color: var(--q-black);
    margin: 0 0 14px;
    line-height: 1.1;
    background: transparent;
    border: none;
    padding: 0;
}

body.route-product-category #content .title.page-title::after,
body.route-product-category #content .title.page-title::before {
    display: none;
}

/* Breadcrumb under the title — injected by JS as .qemosa-breadcrumb */
body.route-product-category #content .qemosa-breadcrumb {
    text-align: center;
    margin: 0 0 36px;
    font-size: 13px;
    color: var(--q-muted);
    background: transparent;
    padding: 0;
    border: none;
}
body.route-product-category #content .qemosa-breadcrumb ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
}
body.route-product-category #content .qemosa-breadcrumb li {
    display: inline-flex;
    align-items: center;
}
body.route-product-category #content .qemosa-breadcrumb li + li::before {
    content: '/';
    margin: 0 10px;
    opacity: .5;
    color: var(--q-muted);
}
body.route-product-category #content .qemosa-breadcrumb a {
    color: var(--q-muted);
    text-decoration: none;
    transition: color .2s;
}
body.route-product-category #content .qemosa-breadcrumb a:hover {
    color: var(--q-black);
}
body.route-product-category #content .qemosa-breadcrumb li:last-child a {
    color: var(--q-black);
    font-weight: 500;
    pointer-events: none;
}

/* -------- TOOLBAR (sort / limit / view) -------- */
body.route-product-category #content .products-filter {
    background: transparent;
    border: none;
    padding: 0 0 24px;
    margin: 0 0 24px;
    border-bottom: 1px solid rgba(14,17,17,.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

body.route-product-category #content .products-filter .select-group {
    display: flex;
    gap: 10px;
}

body.route-product-category #content .products-filter .input-group-addon {
    background: transparent;
    border: none;
    color: var(--q-muted);
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 600;
    padding: 0 10px 0 0;
}

body.route-product-category #content .products-filter select.form-control {
    background: #fff;
    border: 1px solid var(--q-line-2);
    color: var(--q-black);
    border-radius: 3px;
    padding: 8px 30px 8px 12px;
    font-size: 13px;
    font-family: inherit;
    height: auto;
    box-shadow: none;
    min-width: 160px;
}

body.route-product-category #content .products-filter select.form-control:focus {
    border-color: var(--q-black);
    outline: none;
}

body.route-product-category #content .products-filter .grid-list .view-btn {
    background: #fff;
    border: 1px solid var(--q-line-2);
    border-radius: 3px;
    width: 36px;
    height: 36px;
}

body.route-product-category #content .products-filter .grid-list .view-btn.active {
    background: var(--q-black);
    border-color: var(--q-black);
}

/* -------- PRODUCT GRID — white cards on cream -------- */
body.route-product-category #content .main-products {
    background: transparent;
}

body.route-product-category #content .product-layout .product-thumb {
    background: var(--q-bg);
    border: 1px solid rgba(14,17,17,.06);
    border-radius: 6px;
    overflow: hidden;
    transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}

body.route-product-category #content .product-layout:hover .product-thumb {
    box-shadow: 0 14px 34px rgba(14,17,17,.08);
    border-color: rgba(14,17,17,.12);
    transform: translateY(-3px);
}

body.route-product-category #content .product-thumb .image-group {
    background: var(--q-bg);
}

body.route-product-category #content .product-thumb .caption {
    padding: 16px 18px 20px;
    background: var(--q-bg);
}

body.route-product-category #content .product-thumb .caption .name a {
    color: var(--q-black);
    font-weight: 500;
    font-size: 14px;
}

body.route-product-category #content .product-thumb .caption .name a:hover {
    color: var(--q-green);
}

body.route-product-category #content .product-thumb .price {
    color: var(--q-black);
    font-weight: 700;
}

body.route-product-category #content .product-thumb .price-old {
    color: var(--q-muted);
    text-decoration: line-through;
    font-weight: 400;
}

body.route-product-category #content .product-thumb .price-new {
    color: var(--q-red);
}

/* Sale/discount badges */
body.route-product-category #content .product-thumb .product-labels .product-label,
body.route-product-category #content .product-thumb .product-label {
    border-radius: 2px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    font-size: 10px;
}

/* Pagination block — keep on cream */
body.route-product-category #content .pagination-results {
    margin: 40px 0 0;
    padding-top: 28px;
    border-top: 1px solid rgba(14,17,17,.08);
    background: transparent;
}

body.route-product-category #content .pagination-results .pagination > li > a,
body.route-product-category #content .pagination-results .pagination > li > span {
    background: #fff;
    border-color: var(--q-line-2);
    color: var(--q-black);
}

body.route-product-category #content .pagination-results .pagination > .active > a,
body.route-product-category #content .pagination-results .pagination > .active > span {
    background: var(--q-black);
    border-color: var(--q-black);
    color: #fff;
}

/* -------- RESPONSIVE (mobile) -------- */
@media (max-width: 991px) {
    body.route-product-category #product-category > .row {
        flex-wrap: wrap;
    }
    body.route-product-category #column-left {
        flex: 1 1 100%;
        max-width: 100%;
        min-width: 0;
        border-right: none;
        border-bottom: 1px solid var(--q-line);
        padding: 24px 5% 30px;
    }
    body.route-product-category #content {
        flex: 1 1 100%;
        padding: 32px 5% 40px;
    }
    body.route-product-category #content .title.page-title {
        font-size: 34px;
    }
}
