/**
 * RubberSmart Category Page Hero
 * File: /wp-content/themes/project/css/category.css
 */


/* ============================================================
   CATEGORY HERO
============================================================ */
.rs-cat-hero {
    position: relative;
    background-color: #15171c;
    background-image: var(--bg-desktop);
    background-size: cover;
    background-position: center;
    overflow: hidden;
    min-height: 520px;
    display: flex;
    align-items: center;
}

.rs-cat-hero--no-image {
    background-image: none;
    background-color: #15171c;
}

/* Dark gradient overlay - heavier on the left so text is readable */
.rs-cat-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg,
        rgba(15, 17, 20, 0.92) 0%,
        rgba(15, 17, 20, 0.72) 35%,
        rgba(15, 17, 20, 0.35) 65%,
        rgba(15, 17, 20, 0.15) 100%);
    pointer-events: none;
}

.rs-cat-hero--no-image .rs-cat-hero__overlay {
    background: none;
}

.rs-cat-hero__inner {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 70px 5%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}


/* ============================================================
   EYEBROW
============================================================ */
.rs-cat-hero__eyebrow {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.rs-cat-hero__eyebrow-line {
    display: inline-block;
    width: 28px;
    height: 1px;
    background: #ffc200;
    flex-shrink: 0;
}

.rs-cat-hero__eyebrow-text {
    font-size: 12px;
    font-weight: 700;
    color: #ffc200;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}


/* ============================================================
   HEADING
============================================================ */
.rs-cat-hero__heading {
    font-size: 64px;
    font-weight: 800;
    color: #fff;
    line-height: 1.05;
    margin: 0 0 12px 0;
    max-width: 46%;
    font-family: 'Space Grotesk', sans-serif;
}


/* ============================================================
   BODY (description / archive_description hook output)
============================================================ */
.rs-cat-hero__body {
    font-size: 16px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.78);
    max-width: 46%;
    margin-bottom: 36px;
}

.rs-cat-hero__body p {
    margin: 0 0 12px 0;
}

.rs-cat-hero__body p:last-child {
    margin-bottom: 0;
}


/* ============================================================
   BUTTON
============================================================ */
.rs-cat-hero__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ffc200;
    color: #15171c;
    font-size: 14px;
    font-weight: 700;
    padding: 14px 26px;
    border-radius: 4px;
    text-decoration: none;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: background 0.2s ease;
}

.rs-cat-hero__btn:hover {
    background: #e6ae00;
    color: #15171c;
    text-decoration: none;
}

.rs-cat-hero__btn svg {
    flex-shrink: 0;
}


/* ============================================================
   RESPONSIVE - 1100px and below
============================================================ */
@media (max-width: 1100px) {
    .rs-cat-hero__heading {
        font-size: 56px;
    }

    .rs-cat-hero__heading,
    .rs-cat-hero__body {
        max-width: 55%;
    }
}


/* ============================================================
   RESPONSIVE - 900px and below
============================================================ */
@media (max-width: 900px) {
    .rs-cat-hero {
        min-height: 460px;
    }

    .rs-cat-hero__inner {
        padding: 60px 5%;
    }

    .rs-cat-hero__heading {
        font-size: 46px;
    }

    .rs-cat-hero__heading,
    .rs-cat-hero__body {
        max-width: 65%;
    }

    .rs-cat-hero__body {
        font-size: 15px;
    }
}


/* ============================================================
   RESPONSIVE - 820px and below
============================================================ */
@media (max-width: 820px) {
    .rs-cat-hero__heading {
        font-size: 40px;
    }

    .rs-cat-hero__heading,
    .rs-cat-hero__body {
        max-width: 75%;
    }
}


/* ============================================================
   RESPONSIVE - 768px and below
============================================================ */
@media (max-width: 768px) {
    .rs-cat-hero__heading {
        font-size: 36px;
    }

    .rs-cat-hero__body {
        font-size: 14px;
    }

    .rs-cat-hero__btn {
        font-size: 13px;
        padding: 12px 22px;
    }
}


/* ============================================================
   RESPONSIVE - MOBILE (max 640px)
============================================================ */
@media (max-width: 640px) {
    /* Use mobile bg image if set, fall back to desktop */
    .rs-cat-hero {
        background-image: var(--bg-mobile, var(--bg-desktop)) !important;
        min-height: 420px;
    }

    /* Heavier overlay on mobile so text always reads */
    .rs-cat-hero__overlay {
        background: linear-gradient(180deg,
            rgba(15, 17, 20, 0.85) 0%,
            rgba(15, 17, 20, 0.7) 60%,
            rgba(15, 17, 20, 0.55) 100%);
    }

    .rs-cat-hero__inner {
        padding: 50px 6%;
        align-items: center;
        text-align: center;
    }

    .rs-cat-hero__eyebrow {
        margin-bottom: 18px;
        justify-content: center;
    }

    .rs-cat-hero__eyebrow-text {
        font-size: 11px;
    }

    .rs-cat-hero__heading {
        font-size: 34px;
        margin-bottom: 10px;
        max-width: 100%;
    }

    .rs-cat-hero__body {
        font-size: 13px;
        line-height: 1.5;
        margin-bottom: 28px;
        max-width: 100%;
    }

    .rs-cat-hero__btn {
        font-size: 12px;
        padding: 11px 20px;
    }
}


/* ============================================================
   USP STRIP (mirrors the homepage)
============================================================ */
.rs-usp-strip {
    background: #fff;
    border-bottom: 1px solid #eee;
}

.rs-usp-strip__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 1400px;
    margin: 0 auto;
}

.rs-usp-strip__item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 28px 5%;
    border-right: 1px solid #eee;
}

.rs-usp-strip__item:last-child {
    border-right: none;
}

.rs-usp-strip__icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: #f5f5f5;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    border: 1px solid #eee;
}

.rs-usp-strip__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.rs-usp-strip__heading {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #15171c;
    margin-bottom: 3px;
}

.rs-usp-strip__body {
    font-size: 13px;
    color: #777;
    margin: 0;
    line-height: 1.4;
}


/* USP Strip - shrink padding/text between 1100 and 640 to keep 3-across */
@media (max-width: 1100px) {
    .rs-usp-strip__item {
        gap: 12px;
        padding: 22px 4%;
    }

    .rs-usp-strip__heading {
        font-size: 14px;
    }

    .rs-usp-strip__body {
        font-size: 12px;
    }
}

@media (max-width: 900px) {
    .rs-usp-strip__item {
        gap: 10px;
        padding: 18px 3%;
    }

    .rs-usp-strip__icon {
        width: 40px;
        height: 40px;
    }

    .rs-usp-strip__heading {
        font-size: 13px;
    }

    .rs-usp-strip__body {
        font-size: 11px;
        line-height: 1.35;
    }
}

/* USP Strip - mobile: stack vertically */
@media (max-width: 640px) {
    .rs-usp-strip__grid {
        grid-template-columns: 1fr;
    }

    .rs-usp-strip__item {
        border-right: none;
        border-bottom: 1px solid #eee;
        padding: 20px 5%;
        gap: 18px;
    }

    .rs-usp-strip__item:last-child {
        border-bottom: none;
    }

    .rs-usp-strip__icon {
        width: 44px;
        height: 44px;
    }

    .rs-usp-strip__heading {
        font-size: 15px;
    }

    .rs-usp-strip__body {
        font-size: 13px;
    }
}




/* ============================================================
   BREADCRUMB OVERRIDE
   Targets the parent theme rule:
   p.breadcrumbs a, p.breadcrumbs a~span.breadcrumb_last, .woocommerce-breadcrumb .crumb
============================================================ */
.woocommerce-breadcrumb {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    background: 0 0 !important;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .02em;
    margin-bottom: 8px !important;
    margin-top: 8px !important;
}

p.breadcrumbs a,
p.breadcrumbs a~span.breadcrumb_last,
.woocommerce-breadcrumb .crumb {
    position: relative !important;
    display: inline-flex !important;
    align-items: center;
    flex-wrap: nowrap !important;
    padding: 11px 16px !important;
    margin: 0 !important;
    background: #f3f3f3 !important;
    color: #555 !important;
    border-radius: 4px;
    transition: background 0.15s ease, color 0.15s ease;
}

.woocommerce-breadcrumb .crumb a {
    color: #555 !important;
    text-decoration: none;
}

.woocommerce-breadcrumb .crumb:hover {
    background: #ebebeb !important;
}

.woocommerce-breadcrumb .crumb:hover,
.woocommerce-breadcrumb .crumb:hover a {
    color: #15171c !important;
}

/* Override the parent theme's SVG bookmark/triangle backgrounds */
.woocommerce-breadcrumb .crumb::before,
.woocommerce-breadcrumb .crumb::after {
    background-image: none !important;
    width: 0 !important;
    content: none !important;
    display: none !important;
}

/* Chevron between items - inline SVG background, sits in margin gap */
.woocommerce-breadcrumb .crumb + .crumb {
    margin-left: 16px !important;
}

.woocommerce-breadcrumb .crumb + .crumb::before {
    content: '' !important;
    display: inline-block !important;
    position: absolute !important;
    left: -14px !important;
    top: 50% !important;
    transform: translateY(-50%);
    width: 8px !important;
    height: 12px !important;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 12' fill='none'><path d='M1 1l5 5-5 5' stroke='%23c5c5c5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>") !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}

/* Last crumb = current page, gold accent */
.woocommerce-breadcrumb .crumb:last-child {
    background: #ffc200 !important;
    color: #15171c !important;
    font-weight: 700;
}

.woocommerce-breadcrumb .crumb:last-child a {
    color: #15171c !important;
    pointer-events: none;
}

.woocommerce-breadcrumb .crumb:last-child:hover {
    background: #ffc200 !important;
}


/* ============================================================
   FILTER SIDEBAR
============================================================ */
.facetwp-filter-header {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px !important;
    margin-top: 7px !important;
    padding: 10px 14px !important;
    background-color: #373737 !important;
    border-bottom: none !important;
    color: #fff !important;
}

.facetwp-filter-header .filter-by-text {
    color: #ffffff !important;
    font-weight: 600;
}

.facetwp-filter-header .clear-all-link {
    color: #d9d9d9 !important;
    text-decoration: none;
    font-size: 13px;
}

.sidebar-layout .facet-template .products {
    border-top: none;
}

.sidebar-layout .facet-wrap .facet-label {
    padding: 12px 10px;
    background: #ffc200;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    font-family: 'Space Grotesk', sans-serif;
}

.sidebar-layout .facet-wrap .facetwp-checkbox {
    margin-bottom: 20px;
    background-size: 20px 20px;
    padding-left: 33px;
    font-family: 'Space Grotesk', sans-serif;
}


/* ============================================================
   PRODUCT CARD TYPOGRAPHY
============================================================ */
h2.woocommerce-loop-product__title {
    font-family: 'Space Grotesk', sans-serif;
}

p.sku {
    margin-top: 2px !important;
}

.products li.product p.sku {
    font-family: 'Space Grotesk', sans-serif;
}

.products li.product .price {
    font-family: 'Space Grotesk', sans-serif;
}


/* ============================================================
   FACETWP - INDIVIDUAL FILTERS
============================================================ */
.sidebar-layout .facet-wrap .facetwp-facet {
    padding: 18px 12px;
    border: none;
    border-top: 0;
    background-color: #f3f3f3;
}


/* ============================================================
   PRODUCT CARD - SELECT OPTIONS BUTTON
============================================================ */
.woocommerce ul.products li.product .actions a,
.woocommerce-page ul.products li.product .actions a,
.block.is-products ul.products li.product .actions a {
    font-size: 16px;
    flex: auto;
    text-align: center;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: bold;
}


/* ============================================================
   SEARCH RESULTS - HERO ADDITIONS
============================================================ */
.rs-cat-hero--search {
    min-height: 0;
    padding: 70px 0 60px;
}

.rs-cat-hero--search .rs-cat-hero__inner {
    min-height: 0;
}

.rs-cat-hero--search .rs-cat-hero__heading {
    max-width: 80%;
    font-size: 56px;
    margin-bottom: 18px;
}

.rs-cat-hero__heading--highlight {
    color: #ffc200;
}

@media (max-width: 900px) {
    .rs-cat-hero--search {
        padding: 50px 0 40px;
    }
    .rs-cat-hero--search .rs-cat-hero__heading {
        font-size: 42px;
    }
}

@media (max-width: 640px) {
    .rs-cat-hero--search {
        padding: 36px 0 30px;
    }
    .rs-cat-hero--search .rs-cat-hero__heading {
        font-size: 30px;
    }
}

.rs-cat-hero__count {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.75);
    margin: 0 0 8px 0;
    font-weight: 500;
}

.rs-cat-hero__did-you-mean {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.rs-cat-hero__did-you-mean a {
    color: #ffc200;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 194, 0, 0.4);
    transition: border-color 0.2s ease;
}

.rs-cat-hero__did-you-mean a:hover {
    border-bottom-color: #ffc200;
}

@media (max-width: 640px) {
    .rs-cat-hero--search .rs-cat-hero__heading {
        max-width: 100%;
        font-size: 30px;
    }
}


/* ============================================================
   NO RESULTS PAGE
============================================================ */
.rs-no-results {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 4% 80px;
}

.rs-no-results__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.rs-no-results__heading {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #15171c;
    margin: 0 0 14px 0;
    letter-spacing: -0.01em;
}

.rs-no-results__lede {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    margin: 0 0 22px 0;
}

.rs-no-results__col .search-form {
    width: 100%;
}

.rs-no-results__col .search-form > div {
    display: flex;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
}

.rs-no-results__col .search-form input[type="search"] {
    flex: 1;
    padding: 14px 16px;
    border: none;
    font-size: 15px;
    outline: none;
    background: transparent;
}

.rs-no-results__col .search-form button {
    background: #15171c;
    border: none;
    color: #fff;
    padding: 0 22px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s ease;
}

.rs-no-results__col .search-form button:hover {
    background: #ffc200;
    color: #15171c;
}

.rs-no-results__cats {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 6px;
}

.rs-no-results__cats a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: #f7f7f7;
    color: #15171c;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.rs-no-results__cats a:hover {
    background: #ffc200;
    color: #15171c;
}

.rs-no-results__cat-arrow {
    display: flex;
    align-items: center;
    color: #888;
    transition: color 0.2s ease, transform 0.2s ease;
}

.rs-no-results__cats a:hover .rs-no-results__cat-arrow {
    color: #15171c;
    transform: translateX(3px);
}

.rs-no-results__help {
    text-align: center;
    padding: 28px 20px;
    background: #f7f7f7;
    border-radius: 4px;
    font-size: 15px;
    color: #555;
}

.rs-no-results__help a {
    color: #15171c;
    font-weight: 700;
    border-bottom: 2px solid #ffc200;
    text-decoration: none;
    padding-bottom: 1px;
}

.rs-no-results__help a:hover {
    color: #ffc200;
    border-bottom-color: #15171c;
}

@media (max-width: 768px) {
    .rs-no-results {
        padding: 40px 4% 60px;
    }
    .rs-no-results__grid {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 40px;
    }
    .rs-no-results__heading {
        font-size: 19px;
    }
}
