/* ============================================================
   Refubly Theme — clean marketplace UI (landing redesign +
   global responsive polish). Loaded after the Wolmart theme CSS.
   NOTE: theme sets html{font-size:62.5%} → 1rem = 10px.
   ============================================================ */

/* ------------------------------------------------------------
   Self-hosted fonts (woff2, variable weight 100-900).
   No external requests, no JS loader — works on every device;
   the system-font stack below covers anything older.
   ------------------------------------------------------------ */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/Inter-Variable-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/Inter-Variable-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Archivo';
    font-style: normal;
    font-weight: 100 900;
    font-stretch: 100%;
    font-display: swap;
    src: url('../fonts/Archivo-Variable-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Archivo';
    font-style: normal;
    font-weight: 100 900;
    font-stretch: 100%;
    font-display: swap;
    src: url('../fonts/Archivo-Variable-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    --rf-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --rf-font-heading: 'Archivo', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --rf-primary: #EC7A5C;
    --rf-primary-dark: #d9603f;
    --rf-primary-soft: #fdf1ed;
    --rf-ink: #14181f;
    --rf-text: #4b5563;
    --rf-muted: #8a93a3;
    --rf-border: #e8ebef;
    --rf-border-soft: #f2f4f6;
    --rf-surface: #ffffff;
    --rf-bg-soft: #f6f7f9;
    --rf-success: #0a8f5b;
    --rf-radius: 1.2rem;
    --rf-radius-sm: .8rem;
    --rf-shadow: 0 1px 2px rgba(16, 24, 32, .05);
    --rf-shadow-hover: 0 10px 28px rgba(16, 24, 32, .12);
}

/* ------------------------------------------------------------
   0. Typography — single place to change the site fonts.
   Body/UI: Inter. Headings: Archivo (bold, tight tracking).
   ------------------------------------------------------------ */
body,
.product-name, .banner-subtitle, .post-title,
.btn, .header, .footer, .form-control, .select2,
.nav-link, .menu, .dropdown,
.category-name, .icon-box-content p,
input, select, textarea, button {
    font-family: var(--rf-font) !important;
}

h1, h2, h3, h4, h5, h6,
.banner-title, .title, .widget-title, .icon-box-title,
.rf-title, .rf-seo-heading h1 {
    font-family: var(--rf-font-heading) !important;
    letter-spacing: -.02em;
}

/* headline weight punch, like the reference */
.rf-title,
.rf-seo-heading h1,
.banner-title {
    font-weight: 700;
}

/* ------------------------------------------------------------
   1. Landing scaffolding
   ------------------------------------------------------------ */
.rf-container {
    max-width: 152rem;
    margin-inline: auto;
    padding-inline: 2rem;
    width: 100%;
}

.rf-section {
    margin-bottom: 5.6rem;
}

.rf-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.6rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.rf-title {
    font-size: clamp(1.9rem, 1.4rem + 1.2vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--rf-ink);
    margin: 0;
    line-height: 1.2;
}

.rf-sub {
    font-size: 1.4rem;
    color: var(--rf-muted);
    margin: .6rem 0 0;
}

.rf-view-all {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--rf-primary);
    white-space: nowrap;
    transition: color .2s, gap .2s;
}

.rf-view-all:hover {
    color: var(--rf-primary-dark);
    gap: .8rem;
}

.rf-view-all i {
    font-size: 1.1rem;
}

/* SEO heading block */
.rf-seo-heading {
    text-align: center;
    margin: 0 0 3.6rem;
}

.rf-seo-heading h1 {
    font-size: clamp(1.9rem, 1.4rem + 1.4vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--rf-ink);
    margin-bottom: .8rem;
}

.rf-seo-heading p {
    font-size: 1.45rem;
    color: var(--rf-muted);
    max-width: 68rem;
    margin: 0 auto;
}

/* ------------------------------------------------------------
   2. Hero
   ------------------------------------------------------------ */
.rf-hero {
    padding-top: 1.6rem;
    margin-bottom: 4.4rem;
}

.rf-hero-grid {
    display: grid;
    gap: 1.6rem;
    grid-template-columns: 1fr;
}

.rf-hero-main {
    position: relative;
    border-radius: var(--rf-radius);
    overflow: hidden;
    background: var(--rf-bg-soft);
}

.rf-hero-main .banner {
    height: 100%;
}

.rf-hero-main .banner-media,
.rf-hero-side .banner-media {
    height: 100%;
    margin: 0;
}

.rf-hero-main .banner-media img,
.rf-hero-side .banner-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.rf-hero-main .banner-content {
    padding-left: clamp(2rem, 5vw, 6.4rem);
    max-width: 62rem;
}

.rf-hero-main .banner-subtitle {
    font-size: clamp(1.2rem, 1rem + .5vw, 1.5rem);
    letter-spacing: .12em;
    margin-bottom: 1rem;
}

.rf-hero-main .banner-title {
    font-size: clamp(2.2rem, 1.4rem + 2.6vw, 4.6rem);
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.12;
    margin-bottom: 1.2rem;
}

.rf-hero-main .banner-price-info {
    font-size: clamp(1.4rem, 1.2rem + .6vw, 1.8rem);
    margin-bottom: 2rem;
}

.rf-hero-main hr.divider {
    display: none;
}

.rf-hero-main .btn {
    border-radius: 999px;
    padding: 1.15rem 2.8rem;
    font-size: 1.3rem;
    letter-spacing: .05em;
}

.rf-hero-main .swiper-pagination {
    bottom: 1.6rem;
}

.rf-hero-main .swiper-pagination-bullet {
    width: .8rem;
    height: .8rem;
    background: #fff;
    opacity: .55;
    transition: all .25s;
}

.rf-hero-main .swiper-pagination-bullet-active {
    width: 2.2rem;
    border-radius: 99px;
    background: var(--rf-primary);
    opacity: 1;
}

.rf-hero-side {
    display: grid;
    gap: 1.6rem;
    grid-template-columns: 1fr 1fr;
}

.rf-hero-banner {
    position: relative;
    display: block;
    border-radius: var(--rf-radius);
    overflow: hidden;
    background: var(--rf-bg-soft);
}

.rf-hero-banner img {
    transition: transform .5s ease;
}

.rf-hero-banner:hover img {
    transform: scale(1.04);
}

@media (max-width: 991px) {
    .rf-hero-main .banner {
        aspect-ratio: 16 / 8;
        min-height: 24rem;
    }

    .rf-hero-banner {
        aspect-ratio: 16 / 10;
    }
}

@media (max-width: 575px) {
    .rf-hero-main .banner {
        aspect-ratio: 16 / 10;
        min-height: 21rem;
    }
}

@media (min-width: 992px) {
    .rf-hero-grid {
        grid-template-columns: 2.3fr 1fr;
        align-items: stretch;
    }

    .rf-hero-main,
    .rf-hero-main .banner {
        height: 44rem;
    }

    .rf-hero-side {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr;
        height: 44rem;
    }
}

/* ------------------------------------------------------------
   3. Category circles
   ------------------------------------------------------------ */
.rf-cats .category-ellipse .category-media {
    background: var(--rf-bg-soft);
    border: 1px solid var(--rf-border);
    border-radius: 50%;
    overflow: hidden;
    transition: border-color .25s, box-shadow .25s, transform .25s;
}

.rf-cats .category-ellipse:hover .category-media {
    border-color: var(--rf-primary);
    box-shadow: var(--rf-shadow-hover);
    transform: translateY(-.3rem);
}

.rf-cats .category-ellipse .category-media img {
    border-radius: 50%;
    background: transparent !important;
}

.rf-cats .category-name {
    font-size: 1.35rem;
    font-weight: 600;
    text-align: center;
    margin-top: 1.2rem;
    letter-spacing: 0;
    text-transform: none;
}

.rf-cats .category-name a {
    color: var(--rf-ink);
}

.rf-cats .category-name a:hover {
    color: var(--rf-primary);
}

/* ------------------------------------------------------------
   4. Deals bar / countdown
   ------------------------------------------------------------ */
.rf-timer {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: var(--rf-primary-soft);
    border: 1px solid #f6d9cf;
    border-radius: 999px;
    padding: .7rem 1.6rem;
}

.rf-timer-label {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--rf-primary-dark);
    white-space: nowrap;
    margin: 0;
}

.rf-timer .product-countdown {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: var(--rf-ink);
}

.rf-timer .countdown-row {
    display: inline-flex;
    gap: .5rem;
}

.rf-timer .countdown-section {
    display: inline-flex;
    align-items: baseline;
    gap: .3rem;
}

.rf-timer .countdown-amount {
    display: inline-block;
    background: var(--rf-ink);
    color: #fff;
    border-radius: .6rem;
    padding: .25rem .7rem;
    font-size: 1.3rem;
    font-weight: 700;
    min-width: 3rem;
    text-align: center;
}

.rf-timer .countdown-period {
    font-size: 1.05rem;
    color: var(--rf-primary-dark);
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* ------------------------------------------------------------
   5. Product card
   ------------------------------------------------------------ */
.rf-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--rf-surface);
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius);
    overflow: hidden;
    transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}

.rf-card:hover {
    border-color: #d9dee5;
    box-shadow: var(--rf-shadow-hover);
    transform: translateY(-.3rem);
}

.rf-card-media {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    background: #fff;
    overflow: hidden;
}

.rf-card-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1.6rem;
    transition: opacity .35s ease, transform .35s ease;
}

.rf-card:hover .rf-card-media img {
    transform: scale(1.03);
}

.rf-card-img-hover {
    opacity: 0;
    z-index: 1;
}

.rf-card:hover .rf-card-img-hover {
    opacity: 1;
}

.rf-card-badge {
    position: absolute;
    top: 1.2rem;
    left: 1.2rem;
    z-index: 2;
    background: var(--rf-success);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
    padding: .5rem .9rem;
    border-radius: 999px;
    letter-spacing: .02em;
}

.rf-card-body {
    display: flex;
    flex-direction: column;
    gap: .7rem;
    flex-grow: 1;
    padding: 1.3rem 1.5rem 1.7rem;
    border-top: 1px solid var(--rf-border-soft);
}

.rf-card-name {
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1.45;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 4.05em;
    min-height: calc(2 * 1.45em);
}

.rf-card-name a {
    color: var(--rf-ink);
}

.rf-card-name a:hover {
    color: var(--rf-primary);
}

.rf-card-tag {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--rf-success);
}

.rf-card-tag i {
    font-size: 1.1rem;
}

.rf-card-price {
    display: flex;
    align-items: baseline;
    gap: .8rem;
    flex-wrap: wrap;
    margin-top: auto;
}

.rf-price-new {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--rf-ink);
    letter-spacing: -.01em;
}

.rf-price-old {
    font-size: 1.3rem;
    color: var(--rf-muted);
}

/* Card inside a swiper slide keeps equal height */
.swiper-slide > .rf-card {
    height: 100%;
}

/* ------------------------------------------------------------
   6. Product grid
   ------------------------------------------------------------ */
.rf-grid {
    display: grid;
    gap: 1.6rem;
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 576px) {
    .rf-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 992px) {
    .rf-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1200px) {
    .rf-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (min-width: 1600px) {
    .rf-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 419px) {
    .rf-grid {
        gap: 1rem;
    }

    .rf-card-body {
        padding: 1rem 1.1rem 1.3rem;
    }

    .rf-card-name {
        font-size: 1.3rem;
    }

    .rf-price-new {
        font-size: 1.5rem;
    }
}

/* ------------------------------------------------------------
   7. Promo banners
   ------------------------------------------------------------ */
.rf-banners {
    display: grid;
    gap: 1.6rem;
    grid-template-columns: 1fr;
}

@media (min-width: 576px) {
    .rf-banners-3,
    .rf-banners-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .rf-banners-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.rf-banner {
    position: relative;
    display: block;
    border-radius: var(--rf-radius);
    overflow: hidden;
    background: var(--rf-bg-soft);
}

.rf-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}

.rf-banner:hover img {
    transform: scale(1.04);
}

.rf-banner-wide {
    aspect-ratio: 88 / 30;
}

.rf-banner-square {
    aspect-ratio: 58 / 30;
}

@media (max-width: 575px) {
    .rf-banner-wide,
    .rf-banner-square {
        aspect-ratio: 2 / 1;
    }
}

/* ------------------------------------------------------------
   8. Boxed category panel (tiles)
   ------------------------------------------------------------ */
.rf-panel {
    background: var(--rf-surface);
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius);
    padding: 2.4rem 2.4rem 2.8rem;
}

.rf-panel .rf-head {
    margin-bottom: 2rem;
}

.rf-tiles {
    display: grid;
    gap: 1.2rem;
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 576px) {
    .rf-tiles {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 992px) {
    .rf-tiles {
        grid-template-columns: repeat(5, 1fr);
    }
}

.rf-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    background: #fff;
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius-sm);
    padding: 2rem 1.4rem 1.8rem;
    text-align: center;
    transition: border-color .25s, box-shadow .25s, transform .25s;
}

.rf-tile:hover {
    border-color: var(--rf-primary);
    box-shadow: var(--rf-shadow-hover);
    transform: translateY(-.3rem);
}

.rf-tile img {
    width: 100%;
    max-width: 11rem;
    aspect-ratio: 1 / 1;
    object-fit: contain;
}

.rf-tile-name {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--rf-ink);
    margin: 0;
}

/* ------------------------------------------------------------
   9. Mini product lists (New Arrivals / On Sale)
   ------------------------------------------------------------ */
.rf-mini-wrap {
    display: grid;
    gap: 1.6rem;
    grid-template-columns: 1fr;
}

@media (min-width: 992px) {
    .rf-mini-wrap {
        grid-template-columns: 1fr 1.4fr 1fr;
        align-items: stretch;
    }
}

.rf-mini-col {
    background: var(--rf-surface);
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius);
    padding: 2rem;
}

.rf-mini-col .rf-head {
    margin-bottom: 1.6rem;
}

.rf-mini {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    padding: 1rem 0;
}

.rf-mini + .rf-mini {
    border-top: 1px solid var(--rf-border-soft);
}

.rf-mini-thumb {
    flex: 0 0 7.2rem;
    width: 7.2rem;
    height: 7.2rem;
    border-radius: var(--rf-radius-sm);
    background: var(--rf-bg-soft);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rf-mini-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: .6rem;
}

.rf-mini-info {
    min-width: 0;
}

.rf-mini-name {
    font-size: 1.35rem;
    font-weight: 500;
    line-height: 1.4;
    margin: 0 0 .5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rf-mini-name a {
    color: var(--rf-ink);
}

.rf-mini-name a:hover {
    color: var(--rf-primary);
}

.rf-mini .rf-price-new {
    font-size: 1.45rem;
}

.rf-mini .rf-price-old {
    font-size: 1.2rem;
}

.rf-mini-poster {
    position: relative;
    display: block;
    border-radius: var(--rf-radius);
    overflow: hidden;
    background: var(--rf-bg-soft);
    min-height: 30rem;
}

.rf-mini-poster img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 991px) {
    .rf-mini-poster {
        aspect-ratio: 16 / 9;
        min-height: 0;
    }

    .rf-mini-poster img {
        position: static;
        aspect-ratio: 16 / 9;
    }
}

/* ------------------------------------------------------------
   10. Blog cards
   ------------------------------------------------------------ */
.rf-post {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--rf-surface);
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius);
    overflow: hidden;
    transition: box-shadow .25s, transform .25s;
}

.rf-post:hover {
    box-shadow: var(--rf-shadow-hover);
    transform: translateY(-.3rem);
}

.rf-post-media {
    position: relative;
    display: block;
    aspect-ratio: 43 / 28;
    overflow: hidden;
}

.rf-post-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.rf-post:hover .rf-post-media img {
    transform: scale(1.05);
}

.rf-post-date {
    position: absolute;
    top: 1.2rem;
    left: 1.2rem;
    z-index: 2;
    background: #fff;
    color: var(--rf-ink);
    border-radius: .8rem;
    padding: .6rem 1rem;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    box-shadow: var(--rf-shadow);
}

.rf-post-date span {
    display: block;
}

.rf-post-date .rf-post-month {
    font-size: 1rem;
    font-weight: 600;
    color: var(--rf-muted);
    text-transform: uppercase;
    letter-spacing: .06em;
}

.rf-post-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex-grow: 1;
    padding: 1.6rem 1.8rem 2rem;
}

.rf-post-title {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rf-post-title a {
    color: var(--rf-ink);
}

.rf-post-title a:hover {
    color: var(--rf-primary);
}

.rf-post-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--rf-primary);
}

.rf-post-link:hover {
    color: var(--rf-primary-dark);
    gap: .8rem;
}

/* ------------------------------------------------------------
   11. Services strip (above footer)
   ------------------------------------------------------------ */
.rf-services {
    display: grid;
    gap: 1.2rem;
    grid-template-columns: 1fr;
}

@media (min-width: 576px) {
    .rf-services {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .rf-services {
        grid-template-columns: repeat(4, 1fr);
    }
}

.rf-service {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    background: var(--rf-bg-soft);
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius);
    padding: 1.8rem 2rem;
}

.rf-service i {
    font-size: 3rem;
    color: var(--rf-primary);
    flex-shrink: 0;
}

.rf-service h3 {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--rf-ink);
    margin: 0 0 .2rem;
}

.rf-service p {
    font-size: 1.25rem;
    color: var(--rf-muted);
    margin: 0;
}

/* ------------------------------------------------------------
   12a. Shop page
   ------------------------------------------------------------ */
.rf-grid > .alert {
    grid-column: 1 / -1;
}

.rf-grid-shop {
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
    .rf-grid-shop {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .rf-grid-shop {
        grid-template-columns: repeat(4, 1fr);
    }
}

.shop-default-banner {
    border-radius: var(--rf-radius);
    overflow: hidden;
    min-height: 18rem;
    background-size: cover;
    background-position: center;
}

@media (max-width: 575px) {
    .shop-default-banner {
        min-height: 13rem;
    }

    .shop-default-banner .banner-content {
        padding: 1.6rem;
    }
}

/* sidebar filters */
.shop-sidebar .widget-collapsible {
    border-bottom: 1px solid var(--rf-border);
    padding-bottom: 1.2rem;
}

.shop-sidebar .widget-title {
    font-size: 1.5rem;
    font-weight: 700;
}

.shop-sidebar .filter-items label {
    font-size: 1.35rem;
    color: var(--rf-text);
    display: flex;
    align-items: center;
    transition: color .2s;
}

.shop-sidebar .filter-items label:hover {
    color: var(--rf-primary);
}

input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--rf-primary);
}

#applyFiltersBtn {
    border-radius: 999px;
}

/* ------------------------------------------------------------
   12b. Product detail page
   ------------------------------------------------------------ */
.product-single .product-gallery .product-single-swiper {
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius);
    overflow: hidden;
    background: #fff;
}

.product-single .product-thumb {
    border-radius: var(--rf-radius-sm);
    overflow: hidden;
    border: 1px solid var(--rf-border);
    transition: border-color .2s;
}

.product-single .product-thumb.active,
.product-single .product-thumb:hover {
    border-color: var(--rf-primary);
}

.product-single .product-title {
    font-size: clamp(2rem, 1.6rem + 1.2vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.25;
}

.product-single .product-price {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    flex-wrap: wrap;
}

.product-single .product-price .new-price {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--rf-ink);
    letter-spacing: -.01em;
}

.product-single .price-block .old-price {
    font-size: 1.6rem;
    color: var(--rf-muted);
}

.product-single .price-block .save-line {
    width: 100%;
    color: var(--rf-success);
    font-weight: 600;
}

.product-single .btn-cart {
    border-radius: 999px;
    background: var(--rf-primary);
    border-color: var(--rf-primary);
    font-weight: 700;
}

.product-single .btn-cart:hover,
.product-single .btn-cart:focus {
    background: var(--rf-primary-dark);
    border-color: var(--rf-primary-dark);
}

.product-single .product-qty-form .input-group {
    border: 1px solid var(--rf-border);
    border-radius: 999px;
    overflow: hidden;
}

.product-tabs .nav-tabs .nav-link {
    font-size: 1.5rem;
    font-weight: 600;
}

.product-tabs .nav-tabs .nav-link.active,
.product-tabs .nav-tabs .nav-link:hover {
    color: var(--rf-primary);
    border-color: var(--rf-primary);
}

#product-tab-specification .list-none li {
    padding: 1.1rem 1.4rem;
    border-radius: var(--rf-radius-sm);
    font-size: 1.35rem;
}

#product-tab-specification .list-none li:nth-child(odd) {
    background: var(--rf-bg-soft);
}

.related-product-section .title {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -.02em;
}

.product-sidebar .widget-icon-box {
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius);
    padding: .4rem 1.8rem;
    background: #fff;
}

.product-sidebar .widget-icon-box .icon-box {
    padding: 1.5rem 0;
}

.product-sidebar .widget-icon-box .icon-box + .icon-box {
    border-top: 1px solid var(--rf-border-soft);
}

.product-sidebar .widget-banner .banner {
    border-radius: var(--rf-radius);
    overflow: hidden;
}

/* ------------------------------------------------------------
   12. Global polish & responsive fixes (all pages)
   ------------------------------------------------------------ */
body {
    overflow-x: hidden;
}

.main img {
    max-width: 100%;
}

/* keep swipers from bleeding horizontally on small screens */
.swiper-container {
    max-width: 100%;
}

/* Footer polish */
.footer .footer-newsletter form {
    flex-wrap: wrap;
    gap: 1rem;
}

@media (max-width: 767px) {

    /* data tables (cart, orders, account) scroll instead of breaking layout */
    .main table.shop-table,
    .main .order-table,
    .main table.cart-table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .container,
    .container-fluid,
    .rf-container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .footer .footer-bottom {
        flex-direction: column;
        gap: 1.2rem;
        text-align: center;
    }

    .footer .footer-bottom .footer-right {
        justify-content: center;
    }

    .rf-section {
        margin-bottom: 4rem;
    }

    .rf-panel {
        padding: 1.8rem 1.6rem 2rem;
    }

    .rf-mini-col {
        padding: 1.6rem;
    }
}

@media (max-width: 479px) {

    /* single-column checkout/auth forms */
    .main .form-row,
    .main .row.gutter-lg > [class*="col-"] {
        min-width: 0;
    }

    .main .btn {
        white-space: normal;
    }
}

/* ══════════════════════════════════════════════════════════════════════════
   SHOP FILTERS — professional faceted sidebar
   ══════════════════════════════════════════════════════════════════════════ */
.rf-filters {
    background: var(--rf-surface);
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius);
    overflow: hidden;
}

.rf-filters-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.4rem 1.6rem;
    border-bottom: 1px solid var(--rf-border);
    background: var(--rf-bg-soft);
}

.rf-filters-title {
    margin: 0;
    font-family: var(--rf-font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--rf-ink);
    display: flex;
    align-items: center;
    gap: .6rem;
    line-height: 1;
}
.rf-filters-title i { font-size: 1.7rem; color: var(--rf-primary); }

.rf-filters-clear {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--rf-primary);
    text-decoration: none;
}
.rf-filters-clear:hover { color: var(--rf-primary-dark); text-decoration: underline; }
.rf-filters-clear.is-hidden { display: none; }

.rf-filters-empty { padding: 2rem 1.6rem; color: var(--rf-muted); font-size: 1.3rem; margin: 0; }

/* ── Group ── */
.rf-filter-group { border-bottom: 1px solid var(--rf-border-soft); }
.rf-filter-group:last-child { border-bottom: 0; }

.rf-filter-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.3rem 1.6rem;
    background: none;
    border: 0;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
}

.rf-filter-name {
    display: flex;
    align-items: center;
    gap: .7rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--rf-ink);
    letter-spacing: -.01em;
}

.rf-filter-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.9rem;
    height: 1.9rem;
    padding: 0 .5rem;
    border-radius: 1rem;
    background: var(--rf-primary);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
}

.rf-filter-caret {
    font-size: 1.5rem;
    color: var(--rf-muted);
    transition: transform .2s ease;
}
.rf-filter-group.is-open .rf-filter-caret { transform: rotate(180deg); }

.rf-filter-body { display: none; padding: 0 1.6rem 1.4rem; }
.rf-filter-group.is-open .rf-filter-body { display: block; }

.rf-filter-search {
    width: 100%;
    height: 3.4rem;
    padding: 0 1.2rem;
    margin-bottom: .8rem;
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius-sm);
    font-family: inherit;
    font-size: 1.25rem;
    color: var(--rf-ink);
    background: var(--rf-bg-soft);
}
.rf-filter-search:focus {
    outline: none;
    border-color: var(--rf-primary);
    background: #fff;
}

/* ── Options ── */
.rf-filter-options {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 24rem;
    overflow-y: auto;
}
.rf-filter-options::-webkit-scrollbar { width: 4px; }
.rf-filter-options::-webkit-scrollbar-thumb { background: var(--rf-border); border-radius: 4px; }
.rf-filter-options.is-empty::after {
    content: 'No matches';
    display: block;
    padding: .8rem 0;
    color: var(--rf-muted);
    font-size: 1.25rem;
}

.rf-option { margin: 0; }
.rf-option label {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: .55rem 0;
    margin: 0;
    cursor: pointer;
    font-size: 1.3rem;
    color: var(--rf-text);
    line-height: 1.4;
}
.rf-option label:hover .rf-option-label { color: var(--rf-ink); }
.rf-option label:hover .rf-option-box { border-color: var(--rf-primary); }

.rf-option-input { position: absolute; opacity: 0; width: 0; height: 0; }

.rf-option-box {
    flex-shrink: 0;
    width: 1.8rem;
    height: 1.8rem;
    border: 1.5px solid var(--rf-border);
    border-radius: .4rem;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all .15s ease;
}
.rf-option-box i {
    font-size: 1rem;
    color: #fff;
    opacity: 0;
    transform: scale(.5);
    transition: all .15s ease;
}
.rf-option-input:checked + .rf-option-box {
    background: var(--rf-primary);
    border-color: var(--rf-primary);
}
.rf-option-input:checked + .rf-option-box i { opacity: 1; transform: scale(1); }
.rf-option-input:focus-visible + .rf-option-box {
    box-shadow: 0 0 0 3px rgba(236, 122, 92, .25);
}

.rf-option-label { flex: 1; transition: color .15s ease; }
.rf-option-input:checked ~ .rf-option-label { color: var(--rf-ink); font-weight: 600; }

.rf-option-count {
    flex-shrink: 0;
    font-size: 1.15rem;
    color: var(--rf-muted);
    background: var(--rf-bg-soft);
    border-radius: 1rem;
    padding: .1rem .7rem;
    min-width: 2.4rem;
    text-align: center;
}

/* ── Price ── */
.rf-price-row { display: flex; align-items: flex-end; gap: .6rem; }
.rf-price-field { flex: 1; min-width: 0; }
.rf-price-field label {
    display: block;
    font-size: 1.1rem;
    color: var(--rf-muted);
    margin-bottom: .3rem;
    font-weight: 600;
}
.rf-price-input {
    width: 100%;
    height: 3.6rem;
    padding: 0 .9rem;
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius-sm);
    font-family: inherit;
    font-size: 1.3rem;
    color: var(--rf-ink);
    background: #fff;
}
.rf-price-input:focus { outline: none; border-color: var(--rf-primary); }
.rf-price-dash { color: var(--rf-muted); padding-bottom: .9rem; }
.rf-price-go {
    flex-shrink: 0;
    width: 3.6rem;
    height: 3.6rem;
    border: 0;
    border-radius: var(--rf-radius-sm);
    background: var(--rf-ink);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .15s ease;
}
.rf-price-go:hover { background: var(--rf-primary); }

/* Loading state while navigating */
.rf-filters.is-loading { opacity: .55; pointer-events: none; }

/* ══════════════════════════════════════════════════════════════════════════
   SHOP TOOLBAR / CHIPS / PAGINATION / EMPTY STATE
   ══════════════════════════════════════════════════════════════════════════ */
.rf-shop-toolbar {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    padding: 1.2rem 1.6rem;
    margin-bottom: 1.6rem;
    background: var(--rf-surface);
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius);
}

.rf-shop-count { margin: 0; font-size: 1.3rem; color: var(--rf-text); }
.rf-shop-count strong { color: var(--rf-ink); font-weight: 700; }

.rf-shop-sort {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: .8rem;
}
.rf-shop-sort label {
    margin: 0;
    font-size: 1.25rem;
    color: var(--rf-muted);
    font-weight: 600;
    white-space: nowrap;
}
.rf-sort-select {
    height: 3.6rem;
    padding: 0 3rem 0 1.2rem;
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius-sm);
    font-family: inherit;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--rf-ink);
    background: #fff url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%238a93a3' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e") no-repeat right 1rem center;
    background-size: 1.6rem;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}
.rf-sort-select:focus { outline: none; border-color: var(--rf-primary); }

.rf-filter-toggle {
    display: none;
    align-items: center;
    gap: .6rem;
    height: 3.6rem;
    padding: 0 1.4rem;
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius-sm);
    background: #fff;
    font-family: inherit;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--rf-ink);
    cursor: pointer;
}
.rf-filter-toggle:hover { border-color: var(--rf-primary); color: var(--rf-primary); }

/* ── Chips ── */
.rf-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .8rem;
    margin-bottom: 1.6rem;
}
.rf-chip {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    height: 3rem;
    padding: 0 1rem;
    border: 1px solid var(--rf-border);
    border-radius: 2rem;
    background: var(--rf-primary-soft);
    font-family: inherit;
    font-size: 1.2rem;
    color: var(--rf-ink);
    cursor: pointer;
    transition: all .15s ease;
}
.rf-chip:hover { border-color: var(--rf-primary); background: #fff; }
.rf-chip-group { color: var(--rf-muted); }
.rf-chip-label { font-weight: 600; }
.rf-chip i { font-size: 1.1rem; color: var(--rf-muted); }
.rf-chip:hover i { color: var(--rf-primary); }

.rf-chip-clear {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--rf-primary);
    text-decoration: underline;
    margin-left: .4rem;
}

/* ── Empty state ── */
.rf-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 6rem 2rem;
    background: var(--rf-bg-soft);
    border-radius: var(--rf-radius);
}
.rf-empty-state i { font-size: 4.5rem; color: var(--rf-muted); display: block; margin-bottom: 1.5rem; }
.rf-empty-state h4 { font-size: 1.8rem; font-weight: 700; color: var(--rf-ink); margin-bottom: .6rem; }
.rf-empty-state p { color: var(--rf-muted); font-size: 1.35rem; margin-bottom: 2rem; }

/* ── Pagination ── */
.rf-pagination-wrap { margin-top: 3rem; display: flex; justify-content: center; }
.rf-pagination {
    display: flex;
    align-items: center;
    gap: .5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}
.rf-pagination li { margin: 0; }
.rf-pagination a,
.rf-pagination span {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    min-width: 3.8rem;
    height: 3.8rem;
    padding: 0 1.2rem;
    justify-content: center;
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius-sm);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--rf-ink);
    background: #fff;
    text-decoration: none;
    transition: all .15s ease;
}
.rf-pagination a:hover { border-color: var(--rf-primary); color: var(--rf-primary); }
.rf-pagination .active span { background: var(--rf-ink); border-color: var(--rf-ink); color: #fff; }
.rf-pagination .disabled span { color: var(--rf-muted); background: var(--rf-bg-soft); cursor: default; }

/* ── Mobile drawer ── */
body.rf-no-scroll { overflow: hidden; }

@media (max-width: 991px) {
    .rf-filter-toggle { display: inline-flex; }
    .rf-shop-sort { margin-left: 0; }

    .shop-sidebar.rf-sidebar-open .sidebar-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(20, 24, 31, .45);
        z-index: 1200;
    }
    .shop-sidebar.rf-sidebar-open .sidebar-content {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 88vw;
        max-width: 34rem;
        background: #fff;
        z-index: 1201;
        overflow-y: auto;
        padding: 1.6rem;
        box-shadow: var(--rf-shadow-hover);
    }
    .shop-sidebar.rf-sidebar-open .sidebar-close {
        display: block;
        position: fixed;
        top: 1.2rem;
        left: calc(88vw - 4rem);
        z-index: 1202;
    }
}

/* ── Filter sidebar scrolling ─────────────────────────────────────────────
   The theme's sticky.js pins .sticky-sidebar with inline positioning sized to
   its original height, so filter groups past the fold became unreachable.
   Native CSS sticky + an internally scrollable panel keeps every group
   reachable no matter how many facets a category has. */
@media (min-width: 992px) {
    .shop-sidebar .sticky-sidebar {
        position: sticky !important;
        top: 2rem !important;
        bottom: auto !important;
        left: auto !important;
        width: auto !important;
        transform: none !important;
    }

    .shop-sidebar .rf-filters {
        display: flex;
        flex-direction: column;
        max-height: calc(100vh - 4rem);
    }

    /* Header stays put; only the groups scroll */
    .shop-sidebar .rf-filters-head {
        flex-shrink: 0;
    }
    .shop-sidebar .rf-filters #filtersForm {
        overflow-y: auto;
        overscroll-behavior: contain;
        flex: 1 1 auto;
        min-height: 0;
    }
    .shop-sidebar .rf-filters #filtersForm::-webkit-scrollbar {
        width: 5px;
    }
    .shop-sidebar .rf-filters #filtersForm::-webkit-scrollbar-thumb {
        background: var(--rf-border);
        border-radius: 4px;
    }
    .shop-sidebar .rf-filters #filtersForm::-webkit-scrollbar-thumb:hover {
        background: var(--rf-muted);
    }
}

/* Inner option lists scroll on their own only when a group is very long —
   nested scrollbars in a short group feel broken. */
.rf-filter-options {
    max-height: 22rem;
}

/* The theme's sticky plugin measures the sidebar once and locks a height on the
   wrapper, so groups opened later were clipped. Let the wrapper size itself. */
.shop-sidebar .sidebar-content,
.shop-sidebar.sidebar-fixed .sidebar-content {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}
