/* ================================================================
   RS Gestão GME Brasil — Frontend Styles v3.0 (Ultra-Premium)
   Design System: Nunito Sans · Dark/Light · Red Accent
   ================================================================ */

:root {
    --rs-black: #0d0d0d;
    --rs-white: #ffffff;
    --rs-gray-50: #fafafa;
    --rs-gray-100: #f5f5f7;
    --rs-gray-200: #e8e8ed;
    --rs-gray-300: #d1d1d6;
    --rs-gray-400: #aeaeb2;
    --rs-gray-500: #8e8e93;
    --rs-gray-600: #636366;
    --rs-gray-700: #48484a;
    --rs-gray-800: #2c2c2e;
    --rs-red: #d8303f;
    --rs-red-light: rgba(216, 48, 63, .08);
    --rs-red-glow: rgba(216, 48, 63, .18);
    --rs-font: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --rs-radius: 16px;
    --rs-radius-sm: 10px;
    --rs-radius-xs: 6px;
    --rs-shadow-sm: 0 1px 3px rgba(0, 0, 0, .04), 0 1px 2px rgba(0, 0, 0, .06);
    --rs-shadow: 0 4px 16px rgba(0, 0, 0, .06), 0 1px 4px rgba(0, 0, 0, .04);
    --rs-shadow-lg: 0 12px 40px rgba(0, 0, 0, .08), 0 4px 12px rgba(0, 0, 0, .04);
    --rs-shadow-xl: 0 20px 60px rgba(0, 0, 0, .10), 0 8px 20px rgba(0, 0, 0, .06);
    --rs-transition: .3s cubic-bezier(.25, .8, .25, 1);
    --rs-transition-fast: .2s cubic-bezier(.25, .8, .25, 1);
    --rs-transition-slow: .5s cubic-bezier(.25, .8, .25, 1);
}

/* ── Scoped Reset ────────────────────────────────────── */

.rs-grid,
.rs-grid *,
.rsp-grid,
.rsp-grid *,
.rs-pi,
.rs-pi *,
.rs-single-widget,
.rs-single-widget *,
.rs-cat-acc,
.rs-cat-acc *,
.rsf-bar,
.rsf-bar *,
.rs-live-search,
.rs-live-search *,
.rs-product-nav-widget,
.rs-product-nav-widget * {
    box-sizing: border-box;
}

.rs-grid :where(a, button, input, textarea, select),
.rsp-grid :where(a, button, input, textarea, select),
.rs-pi :where(a, button, input, textarea, select),
.rs-single-widget :where(a, button, input, textarea, select),
.rs-cat-acc :where(a, button, input, textarea, select),
.rsf-bar :where(a, button, input, textarea, select),
.rs-live-search :where(a, button, input, textarea, select),
.rs-product-nav-widget :where(a, button, input, textarea, select) {
    font: inherit;
}

/* ── Animations ───────────────────────────────────────── */

@keyframes rsFadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rsFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes rsPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 var(--rs-red-glow);
    }

    50% {
        box-shadow: 0 0 0 8px transparent;
    }
}

@keyframes rsSpin {
    to {
        transform: rotate(360deg);
    }
}

.rs-animate {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s cubic-bezier(.25, .8, .25, 1), transform .6s cubic-bezier(.25, .8, .25, 1);
}

.rs-animate.rs-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================================================================
   GRID SHORTCODE — [rs_grid]
   ================================================================ */

.rs-grid {
    font-family: var(--rs-font);
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.rs-grid__count {
    font-size: 14px;
    color: var(--rs-gray-500);
    margin-bottom: 28px;
    font-weight: 500;
}

.rs-grid__count span {
    font-weight: 800;
    color: var(--rs-black);
}

.rs-grid__items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

@media (max-width: 960px) {
    .rs-grid__items {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .rs-grid__items {
        grid-template-columns: 1fr;
    }
}

/* ── Empty state ──────────────────────────────────────── */

.rs-grid__empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--rs-gray-400);
}

.rs-grid__empty .dashicons {
    font-size: 56px;
    width: 56px;
    height: 56px;
    margin-bottom: 16px;
    opacity: .3;
}

.rs-grid__empty p {
    font-size: 16px;
    margin: 0;
    font-weight: 500;
}

/* ================================================================
   SHORTCODE CARD — .rs-card (reused by rs_render_card)
   ================================================================ */

.rs-card {
    display: flex;
    flex-direction: column;
    background: var(--rs-white);
    border-radius: var(--rs-radius);
    overflow: hidden;
    text-decoration: none;
    color: var(--rs-black);
    border: 1px solid var(--rs-gray-200);
    transition: all var(--rs-transition);
    position: relative;
    height: 100%;
}

.rs-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--rs-shadow-lg);
    border-color: var(--rs-red);
}

.rs-card__image {
    position: relative;
    width: 100%;
    padding-top: 75%;
    overflow: hidden;
    background: var(--rs-gray-100);
}

.rs-card__image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
    transition: transform var(--rs-transition-slow);
}

.rs-card:hover .rs-card__image img {
    transform: scale(1.06);
}

.rs-card__body {
    padding: 20px 24px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.rs-card__badge {
    display: inline-flex;
    align-self: flex-start;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--rs-red);
    background: var(--rs-red-light);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.rs-card__title {
    font-size: 17px;
    font-weight: 800;
    margin: 0 0 10px;
    line-height: 1.35;
    color: var(--rs-black);
    letter-spacing: -0.01em;
}

.rs-card__specs {
    list-style: none;
    padding: 0;
    margin: 0 0 4px;
    flex: 1;
}

.rs-card__specs li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 6px 0;
    border-bottom: 1px solid var(--rs-gray-100);
    font-size: 13px;
}

.rs-card__specs li:last-child {
    border-bottom: none;
}

.rs-card__specs strong {
    color: var(--rs-gray-500);
    font-weight: 600;
    font-size: 12px;
}

.rs-card__specs .rs-spec-val {
    font-weight: 800;
    color: var(--rs-black);
}

.rs-card__footer {
    padding: 14px 24px;
    border-top: 1px solid var(--rs-gray-100);
    margin-top: auto;
}

.rs-card__link {
    font-size: 13px;
    font-weight: 700;
    color: var(--rs-red);
    transition: letter-spacing var(--rs-transition);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.rs-card:hover .rs-card__link {
    letter-spacing: .8px;
}

/* ================================================================
   SINGLE PAGE — Premium Overhaul
   ================================================================ */

.rs-single {
    font-family: var(--rs-font);
    color: var(--rs-black);
    padding: 48px 0 100px;
    background: var(--rs-gray-50);
    min-height: 60vh;
}

.rs-single__container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Breadcrumb ───────────────────────────────────────── */

.rs-product-nav-widget,
.rs-product-nav-widget * {
    box-sizing: border-box;
}

.rs-product-nav-widget a {
    text-decoration: none;
}

.rs-breadcrumb {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    margin-bottom: 0;
    padding: 14px 20px;
    background: var(--rs-white);
    border-radius: 18px;
    box-shadow: var(--rs-shadow-sm);
    color: var(--rs-gray-500);
    font-weight: 500;
    min-height: 56px;
    line-height: 1.5;
}

.rs-breadcrumb a {
    color: var(--rs-gray-500);
    text-decoration: none;
    transition: color var(--rs-transition-fast);
}

.rs-breadcrumb a:hover {
    color: var(--rs-red);
}

.rs-breadcrumb span {
    color: var(--rs-gray-300);
}

.rs-breadcrumb__current {
    color: var(--rs-black);
    font-weight: 700;
}

.rs-product-nav {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 18px;
    margin-bottom: 32px;
}

.rs-product-nav__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    border-radius: 16px;
    background: var(--rs-white);
    border: 1px solid var(--rs-gray-200);
    color: var(--rs-black);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: all var(--rs-transition-fast);
}

.rs-product-nav__back:hover {
    color: var(--rs-red);
    border-color: var(--rs-red);
    box-shadow: var(--rs-shadow-sm);
}

.rs-product-nav__back .dashicons {
    width: 18px;
    height: 18px;
    font-size: 18px;
}

.rs-product-nav__breadcrumb {
    margin-bottom: 0;
    min-width: 0;
}

.rs-product-nav--widget {
    margin-bottom: 0;
}

/* ── Layout ───────────────────────────────────────────── */

.rs-single__layout {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 56px;
    align-items: start;
}

@media (max-width: 768px) {
    .rs-product-nav {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .rs-product-nav__back {
        justify-self: start;
    }

    .rs-single__layout {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}

/* ── Gallery ──────────────────────────────────────────── */

.rs-single__gallery {
    position: sticky;
    top: 100px;
}

.rs-swiper-main {
    border-radius: var(--rs-radius);
    overflow: hidden;
    background: var(--rs-white);
    box-shadow: var(--rs-shadow);
    border: 1px solid var(--rs-gray-200);
}

.rs-swiper-main img {
    width: 100%;
    height: auto;
    display: block;
}

.rs-swiper-main .swiper-button-next,
.rs-swiper-main .swiper-button-prev {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--rs-black);
    box-shadow: var(--rs-shadow);
    transition: all var(--rs-transition-fast);
}

.rs-swiper-main .swiper-button-next::after,
.rs-swiper-main .swiper-button-prev::after {
    font-size: 16px;
    font-weight: 700;
}

.rs-swiper-main .swiper-button-next:hover,
.rs-swiper-main .swiper-button-prev:hover {
    background: var(--rs-red);
    color: var(--rs-white);
    box-shadow: 0 4px 16px var(--rs-red-glow);
    transform: scale(1.08);
}

.rs-swiper-thumbs {
    margin-top: 14px;
    padding: 0 4px;
}

.rs-swiper-thumbs .swiper-slide {
    width: 72px;
    height: 56px;
    border-radius: var(--rs-radius-sm);
    overflow: hidden;
    cursor: pointer;
    opacity: .45;
    border: 2px solid transparent;
    transition: all var(--rs-transition);
    background: var(--rs-white);
    box-shadow: var(--rs-shadow-sm);
}

.rs-swiper-thumbs .swiper-slide:hover {
    opacity: .8;
}

.rs-swiper-thumbs .swiper-slide-thumb-active {
    opacity: 1;
    border-color: var(--rs-red);
    box-shadow: 0 2px 8px var(--rs-red-glow);
}

.rs-swiper-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rs-single__hero-img img {
    width: 100%;
    border-radius: var(--rs-radius);
    box-shadow: var(--rs-shadow);
}

/* ── Info Panel ───────────────────────────────────────── */

.rs-single__info {
    animation: rsFadeInUp .6s cubic-bezier(.25, .8, .25, 1) both;
}

.rs-single__badge {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--rs-red);
    background: var(--rs-red-light);
    padding: 6px 16px;
    border-radius: 24px;
    margin-bottom: 16px;
}

.rs-single__title {
    font-size: 36px;
    font-weight: 900;
    margin: 0 0 28px;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--rs-black);
}

@media (max-width: 768px) {
    .rs-single__title {
        font-size: 28px;
    }
}

.rs-single__content {
    font-size: 15px;
    line-height: 1.75;
    color: var(--rs-gray-600);
    margin-bottom: 32px;
}

.rs-single__content p {
    margin-bottom: 16px;
}

/* ── Specs — Stat Cards ───────────────────────────────── */

.rs-specs {
    margin-bottom: 32px;
}

.rs-specs__heading {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--rs-gray-500);
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--rs-gray-200);
    display: flex;
    align-items: center;
    gap: 8px;
}

.rs-specs__heading::before {
    content: '';
    display: block;
    width: 4px;
    height: 18px;
    background: var(--rs-red);
    border-radius: 2px;
}

.rs-specs__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.rs-spec-card {
    background: var(--rs-white);
    border: 1px solid var(--rs-gray-200);
    border-radius: var(--rs-radius-sm);
    padding: 20px;
    text-align: center;
    transition: all var(--rs-transition);
}

.rs-spec-card:hover {
    border-color: var(--rs-red);
    box-shadow: 0 4px 16px var(--rs-red-glow);
    transform: translateY(-2px);
}

.rs-spec-card__icon {
    font-size: 20px;
    color: var(--rs-red);
    margin-bottom: 8px;
    opacity: .7;
}

.rs-spec-card__value {
    font-size: 24px;
    font-weight: 900;
    color: var(--rs-black);
    line-height: 1.1;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

.rs-spec-card__label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--rs-gray-500);
}

/* ── Legacy Specs Table (fallback) ────────────────────── */

.rs-specs__table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--rs-gray-200);
    border-radius: var(--rs-radius-sm);
    overflow: hidden;
}

.rs-specs__table th,
.rs-specs__table td {
    padding: 14px 20px;
    text-align: left;
    font-size: 14px;
}

.rs-specs__table th {
    font-weight: 600;
    color: var(--rs-gray-500);
    background: var(--rs-gray-50);
    width: 40%;
    border-bottom: 1px solid var(--rs-gray-200);
}

.rs-specs__table td {
    font-weight: 800;
    color: var(--rs-black);
    border-bottom: 1px solid var(--rs-gray-100);
}

.rs-specs__table tr:last-child th,
.rs-specs__table tr:last-child td {
    border-bottom: none;
}

/* ── Accordion Downloads — Premium ────────────────────── */

.rs-accordion {
    margin-top: 28px;
    border: 1px solid var(--rs-gray-200);
    border-radius: var(--rs-radius-sm);
    overflow: hidden;
    background: var(--rs-white);
    transition: box-shadow var(--rs-transition);
}

.rs-accordion:hover {
    box-shadow: var(--rs-shadow);
}

.rs-accordion__input:checked~.rs-accordion__content {
    max-height: 500px;
    padding: 16px 24px 20px;
}

.rs-accordion__input:checked~.rs-accordion__trigger .rs-accordion__arrow {
    transform: rotate(90deg);
}

.rs-accordion__trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 24px;
    cursor: pointer;
    font-family: var(--rs-font);
    font-size: 14px;
    font-weight: 700;
    color: var(--rs-black);
    background: var(--rs-gray-50);
    transition: background var(--rs-transition-fast);
    user-select: none;
    border-bottom: 1px solid var(--rs-gray-200);
}

.rs-accordion__trigger:hover {
    background: var(--rs-gray-100);
}

.rs-accordion__trigger .dashicons {
    color: var(--rs-red);
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.rs-accordion__arrow {
    margin-left: auto;
    font-size: 18px;
    font-weight: 700;
    transition: transform var(--rs-transition);
    color: var(--rs-gray-400);
}

.rs-accordion__content {
    max-height: 0;
    overflow: hidden;
    padding: 0 24px;
    transition: max-height .35s cubic-bezier(.25, .8, .25, 1), padding .35s cubic-bezier(.25, .8, .25, 1);
}

.rs-accordion__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rs-accordion__list li {
    margin-bottom: 6px;
}

.rs-accordion__list a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--rs-black);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 14px;
    border-radius: var(--rs-radius-xs);
    transition: all var(--rs-transition-fast);
    border: 1px solid transparent;
}

.rs-accordion__list a:hover {
    background: var(--rs-red-light);
    color: var(--rs-red);
    border-color: rgba(216, 48, 63, .12);
}

.rs-accordion__list .dashicons {
    color: var(--rs-gray-400);
    font-size: 18px;
    width: 18px;
    height: 18px;
    transition: color var(--rs-transition-fast);
}

.rs-accordion__list a:hover .dashicons {
    color: var(--rs-red);
}

.rs-download-file__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.rs-download-file__label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rs-download-file__meta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--rs-gray-100);
    border: 1px solid var(--rs-gray-200);
    color: var(--rs-gray-600);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.rs-accordion__list a:hover .rs-download-file__meta {
    background: rgba(216, 48, 63, .08);
    border-color: rgba(216, 48, 63, .18);
    color: var(--rs-red);
}

.rs-elem-downloads {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rs-elem-downloads li + li {
    margin-top: 8px;
}

.rs-elem-downloads a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--rs-black);
    text-decoration: none;
}

/* ── Related Section ──────────────────────────────────── */

.rs-related {
    margin-top: 80px;
    padding-top: 48px;
    border-top: 1px solid var(--rs-gray-200);
}

.rs-related__title {
    font-size: 24px;
    font-weight: 900;
    margin: 0 0 32px;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 12px;
}

.rs-related__title::before {
    content: '';
    display: block;
    width: 4px;
    height: 24px;
    background: var(--rs-red);
    border-radius: 2px;
}

/* ================================================================
   LOADING STATE (AJAX filters)
   ================================================================ */

.rs-grid--loading .rs-grid__items {
    opacity: .3;
    pointer-events: none;
    transition: opacity .2s ease;
}

.rs-grid__loader {
    display: none;
    text-align: center;
    padding: 48px;
}

.rs-grid--loading .rs-grid__loader {
    display: block;
}

.rs-grid__spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--rs-gray-200);
    border-top-color: var(--rs-red);
    border-radius: 50%;
    animation: rsSpin .7s linear infinite;
    margin: 0 auto 16px;
}

.rs-grid__pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 32px;
}

.rs-grid__page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--rs-gray-200);
    background: var(--rs-white);
    color: var(--rs-black);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all var(--rs-transition-fast);
}

.rs-grid__page-link:hover {
    border-color: var(--rs-red);
    color: var(--rs-red);
    box-shadow: var(--rs-shadow-sm);
}

.rs-grid__page-link.is-active {
    background: var(--rs-red);
    border-color: var(--rs-red);
    color: var(--rs-white);
}

.rs-grid__page-link.is-disabled {
    opacity: .45;
    pointer-events: none;
}

.rs-grid__page-gap {
    color: var(--rs-gray-400);
    font-size: 14px;
    font-weight: 700;
}

/* ================================================================
   PREMIUM CARD — .rsp-card (Elementor Grid & Carousel)
   ================================================================ */

.rsp-grid {
    display: grid;
    gap: 24px;
    font-family: var(--rs-font);
}

.rsp-grid--2col {
    grid-template-columns: repeat(2, 1fr);
}

.rsp-grid--3col {
    grid-template-columns: repeat(3, 1fr);
}

.rsp-grid--4col {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 960px) {

    .rsp-grid--3col,
    .rsp-grid--4col {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {

    .rsp-grid--2col,
    .rsp-grid--3col,
    .rsp-grid--4col {
        grid-template-columns: 1fr;
    }
}

/* ── Premium Card Base ────────────────────────────────── */

.rsp-card {
    display: flex;
    flex-direction: column;
    background: #ebebeb;
    /* Darker Gray Background (approx 20% darker than previous) */
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: var(--rs-black);
    border: none;
    transition: all .4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    height: 100%;
    box-shadow: none;
    /* Flat by default as requested */
}

.rsp-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: transparent;
}

/* ── Image (1:1 Square, Fill Space) ───────────────────── */

.rsp-card__img {
    position: relative;
    width: 100%;
    padding-top: 100%;
    /* 1:1 Aspect Ratio */
    overflow: hidden;
    background: #fff;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    margin-bottom: -1px;
    /* Prevent gap */
}

.rsp-card__img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Fill the space */
    transition: transform .5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.rsp-card:hover .rsp-card__img img {
    transform: scale(1.05);
}

/* ── Body (Gray -> Red Hover) ────────────────────────── */

.rsp-card__body-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 24px;
    background: #ebebeb;
    /* Darker Gray */
    transition: background .35s ease;
    position: relative;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

.rsp-card:hover .rsp-card__body-wrapper {
    background: var(--rs-red);
    /* Red on hover */
}

/* ── Divider (Removed in this design) ────────────────── */
.rsp-card__divider {
    display: none;
}

/* ── Title ───────────────────────────────────────────── */

.rsp-card__title {
    font-size: 18px;
    font-weight: 800;
    text-align: left;
    margin: 0 0 12px;
    line-height: 1.3;
    color: var(--rs-black);
    letter-spacing: -0.01em;
    transition: color .3s ease;
}

.rsp-card:hover .rsp-card__title {
    color: #fff;
}

/* ── Specs List ──────────────────────────────────────── */

.rsp-card__specs {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    flex: 1;
}

.rsp-card__specs li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 6px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 13px;
    transition: border-color .3s ease;
}

.rsp-card:hover .rsp-card__specs li {
    border-color: rgba(255, 255, 255, 0.2);
}

.rsp-card__specs li:last-child {
    border-bottom: none;
}

.rsp-card__spec-label {
    color: var(--rs-gray-500);
    font-weight: 600;
    transition: color .3s ease;
}

.rsp-card:hover .rsp-card__spec-label {
    color: rgba(255, 255, 255, 0.8);
}

.rsp-card__spec-value {
    font-weight: 800;
    color: var(--rs-black);
    font-size: 14px;
    transition: color .3s ease;
}

.rsp-card:hover .rsp-card__spec-value {
    color: #fff;
}

/* ── Footer / CTA ────────────────────────────────────── */

.rsp-card__footer {
    padding: 0;
    border: none;
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.rsp-card__cta {
    display: block;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--rs-red);
    box-shadow: 0 4px 12px rgba(216, 48, 63, .3);
    position: relative;
    transition: all .3s ease;

    /* Guaranteed SVG Arrow */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: 18px;
    background-repeat: no-repeat;
    background-position: center;
}

.rsp-card__cta::after,
.rsp-card__cta::before {
    content: none;
}

/* Clear previous hacks */

.rsp-card:hover .rsp-card__cta {
    background-color: #fff;
    /* Red Arrow on Hover */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d8303f' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'%3E%3C/polyline%3E%3C/svg%3E");
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateX(4px);
}

/* ================================================================
   CAROUSEL — .rsp-carousel
   ================================================================ */

.rsp-carousel-wrapper {
    position: relative;
    padding: 0 48px;
    font-family: var(--rs-font);
}

.rsp-carousel__swiper {
    overflow: hidden;
    border-radius: 4px;
}

.rsp-carousel__swiper .swiper-slide {
    height: auto;
}

.rsp-carousel__swiper .rsp-card {
    margin: 8px 0 16px;
}

.rsp-carousel__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--rs-gray-200);
    background: var(--rs-white);
    color: var(--rs-gray-600);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--rs-transition-fast);
    box-shadow: var(--rs-shadow-sm);
}

.rsp-carousel__btn:hover {
    background: var(--rs-red);
    border-color: var(--rs-red);
    color: var(--rs-white);
    box-shadow: 0 4px 16px var(--rs-red-glow);
    transform: translateY(-50%) scale(1.08);
}

.rsp-carousel__btn--prev {
    left: 0;
}

.rsp-carousel__btn--next {
    right: 0;
}

.rsp-carousel__dots {
    margin-top: 24px !important;
    position: relative !important;
    bottom: auto !important;
}

.rsp-carousel__dots .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: var(--rs-gray-300);
    opacity: 1;
    transition: all var(--rs-transition-fast);
}

.rsp-carousel__dots .swiper-pagination-bullet-active {
    background: var(--rs-red);
    width: 28px;
    border-radius: 5px;
}

@media (max-width: 768px) {
    .rsp-carousel-wrapper {
        padding: 0 12px;
    }

    .rsp-carousel__btn {
        width: 36px;
        height: 36px;
    }

    .rsp-carousel__btn--prev {
        left: -4px;
    }

    .rsp-carousel__btn--next {
        right: -4px;
    }
}

/* ================================================================
   PRODUCT INFO WIDGET — .rs-pi (v2 Minimalist)
   ================================================================ */

.rs-pi {
    font-family: var(--rs-font);
    color: #4b5563;
}

/* Badge */
.rs-pi__badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 100px;
    background: #d8303f;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Title */
.rs-pi__title {
    font-size: clamp(22px, 3.5vw, 32px);
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
    line-height: 1.25;
    letter-spacing: -.02em;
}

/* ── Spec Cards ── */

/* Grid Layout (default) */
.rs-pi__specs--grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

/* Inline Layout */
.rs-pi__specs--inline {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.rs-pi__specs--inline .rs-pi__spec-card {
    flex: 1 1 auto;
    min-width: 0;
}

/* List Layout */
.rs-pi__specs--list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rs-pi__specs--list .rs-pi__spec-card {
    flex-direction: row;
    text-align: left;
    padding: 14px 18px;
}

.rs-pi__specs--list .rs-pi__spec-icon {
    margin-bottom: 0;
    margin-right: 14px;
}

.rs-pi__specs--list .rs-pi__spec-value {
    margin-right: auto;
    margin-bottom: 0;
}

/* Spec Card Base */
.rs-pi__spec-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 14px 16px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all .25s cubic-bezier(.4, 0, .2, 1);
    cursor: default;
}

.rs-pi__spec-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .06);
}

.rs-pi__spec-card:hover .rs-pi__spec-value,
.rs-pi__spec-card:hover .rs-pi__spec-label,
.rs-pi__spec-card:hover .rs-pi__spec-icon svg {
    color: #fff;
    stroke: #fff;
}

.rs-pi__spec-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    line-height: 0;
}

.rs-pi__spec-icon svg {
    stroke: #d8303f;
    transition: stroke .25s ease;
}

.rs-pi__spec-value {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 2px;
    transition: color .25s ease;
    line-height: 1.3;
}

.rs-pi__spec-label {
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: .8px;
    transition: color .25s ease;
}

/* Description */
.rs-pi__description {
    font-size: 15px;
    line-height: 1.7;
    color: #6b7280;
}

.rs-pi__description p {
    margin: 0;
}

/* Downloads */
.rs-pi__downloads {
    margin-top: 0;
}

.rs-pi__downloads .rs-accordion__trigger svg {
    margin-right: 8px;
    vertical-align: middle;
}

.rs-pi__downloads .rs-accordion__list a svg {
    margin-right: 6px;
    vertical-align: middle;
    opacity: .5;
}

/* Responsive */
@media (max-width: 768px) {
    .rs-pi__specs--grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ================================================================
   PRODUCT GALLERY WIDGET — .rs-pg
   ================================================================ */

.rs-pg {
    font-family: var(--rs-font);
    position: relative;
}

/* Main Carousel */
.rs-pg__main {
    overflow: hidden;
    border-radius: 16px;
    background: #f5f5f7;
    position: relative;
}

.rs-pg__slide {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #f5f5f7;
}

.rs-pg__slide img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.rs-pg__slide a {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    cursor: zoom-in;
}

.rs-pg__slide a img {
    position: absolute;
    top: 0;
    left: 0;
}

/* Navigation Arrows */
.rs-pg__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .3s ease;
    opacity: 0;
}

.rs-pg:hover .rs-pg__nav {
    opacity: 1;
}

.rs-pg__nav:hover {
    transform: translateY(-50%) scale(1.1);
}

.rs-pg__nav--prev {
    left: 12px;
}

.rs-pg__nav--next {
    right: 12px;
}

/* Thumbnails */
.rs-pg__thumbs {
    margin-top: 12px;
    overflow: hidden;
    border-radius: 8px;
}

.rs-pg__thumb {
    cursor: pointer;
    opacity: .5;
    transition: opacity .3s ease;
    border-radius: 8px;
    overflow: hidden;
}

.rs-pg__thumb.swiper-slide-thumb-active {
    opacity: 1;
}

.rs-pg__thumb img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform .3s ease;
}

.rs-pg__thumb:hover {
    opacity: .85;
}

.rs-pg__thumb:hover img {
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
    .rs-pi__specs {
        grid-template-columns: repeat(2, 1fr);
    }

    .rs-pg__nav {
        width: 36px;
        height: 36px;
    }

    .rs-pg__thumb img {
        height: 60px;
    }

    .rs-pg__nav--prev {
        left: 8px;
    }

    .rs-pg__nav--next {
        right: 8px;
    }
}

/* ================================================================
   LIVE SEARCH WIDGET — .rs-search (V5 Pill Layout)
   ================================================================ */

.rs-search {
    position: relative;
    width: 100%;
    font-family: var(--rs-font);
}

/* ── Wrap (Flex Container) ──────────────── */

.rs-search__wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ── Input Field Wrap (Relative for Spinner) */

.rs-search__field-wrap {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.rs-search__input {
    width: 100%;
    /* Default padding; overridden by Elementor controls */
    padding: 14px 24px;
    border: 1px solid var(--rs-red);
    /* Matches screenshot thin red border */
    border-radius: 999px;
    /* Pill shape */
    font-size: 15px;
    font-family: inherit;
    color: #1a1a1a;
    background: #fff;
    outline: none;
    transition: all .25s ease;
    box-shadow: 0 4px 12px rgba(216, 48, 63, 0.05);
    /* Subtle shadow like screenshot */
}

.rs-search__input::placeholder {
    color: #b0b0b0;
}

.rs-search__input:focus {
    border-color: var(--rs-red);
    box-shadow: 0 0 0 3px rgba(216, 48, 63, .15);
}

.rs-search__spinner {
    position: absolute;
    right: 20px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rs-red);
    pointer-events: none;
}

/* ── Search Button ───────────────────────── */

.rs-search__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 52px;
    /* Fixed size circle default */
    height: 52px;
    border: none;
    border-radius: 50%;
    /* Circle */
    background: var(--rs-red);
    color: #ffffff;
    cursor: pointer;
    transition: background .25s ease, transform .1s ease, box-shadow .25s ease;
    box-shadow: 0 4px 12px rgba(216, 48, 63, 0.2);
}

.rs-search__btn:hover {
    background: #b22533;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(216, 48, 63, 0.3);
}

.rs-search__btn:active {
    transform: translateY(0);
}

.rs-search__btn svg {
    pointer-events: none;
    width: 20px;
    height: 20px;
}

/* ── Dropdown ────────────────────────────── */

.rs-search__dropdown {
    position: absolute;
    top: calc(100% + 12px);
    /* Matches gap */
    left: 0;
    right: 0;
    z-index: 1000;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .12);
    max-height: 420px;
    overflow-y: auto;
    overflow-x: hidden;
    animation: rsSearchSlideIn .2s ease-out;
}

@keyframes rsSearchSlideIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scrollbar */
.rs-search__dropdown::-webkit-scrollbar {
    width: 6px;
}

.rs-search__dropdown::-webkit-scrollbar-track {
    background: transparent;
}

.rs-search__dropdown::-webkit-scrollbar-thumb {
    background: #d4d4d8;
    border-radius: 3px;
}

.rs-search__dropdown::-webkit-scrollbar-thumb:hover {
    background: #a1a1aa;
}

/* ── Group ───────────────────────────────── */

.rs-search__group {
    padding: 8px 0;
}

.rs-search__group+.rs-search__group {
    border-top: 1px solid #f0f0f0;
}

.rs-search__group-label {
    padding: 8px 16px 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: #999;
}

/* ── Item ────────────────────────────────── */

.rs-search__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    text-decoration: none;
    color: inherit;
    transition: background .15s ease;
}

.rs-search__item:hover {
    background: #f8f8fa;
}

.rs-search__item-thumb {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    /* Matches widget style */
    overflow: hidden;
    background: #f0f0f2;
}

.rs-search__item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rs-search__item-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.rs-search__item-title {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rs-search__item-meta {
    font-size: 12px;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── "Ver mais" link ─────────────────────── */

.rs-search__more {
    display: block;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 700;
    color: var(--rs-red);
    text-decoration: none;
    transition: background .2s ease;
    text-align: center;
    background: rgba(216, 48, 63, .04);
}

.rs-search__more:hover {
    background: rgba(216, 48, 63, .08);
}

/* ── Empty state ─────────────────────────── */

.rs-search__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    text-align: center;
}

.rs-search__empty p {
    margin: 0;
    font-size: 14px;
    color: #999;
}

/* ── Responsive ──────────────────────────── */

@media (max-width: 768px) {
    .rs-search__item-thumb {
        width: 40px;
        height: 40px;
        border-radius: 8px;
    }

    .rs-search__item-title {
        font-size: 13px;
    }

    .rs-search__dropdown {
        max-height: 320px;
    }
}

/* ── Input Field Wrap (Relative for Spinner) */

.rs-search__field-wrap {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.rs-search__input {
    width: 100%;
    /* Default padding; overridden by Elementor controls */
    padding: 14px 20px;
    border: 1.5px solid #e0e0e0;
    border-radius: 999px;
    /* Pill shape default */
    font-size: 15px;
    font-family: inherit;
    color: #1a1a1a;
    background: #fff;
    outline: none;
    transition: border-color .25s ease, box-shadow .25s ease;
}

.rs-search__input::placeholder {
    color: #b0b0b0;
}

.rs-search__input:focus {
    border-color: #d8303f;
    box-shadow: 0 0 0 3px rgba(216, 48, 63, .1);
}

.rs-search__spinner {
    position: absolute;
    right: 16px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d8303f;
    pointer-events: none;
}

/* ── Search Button ───────────────────────── */

.rs-search__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: none;
    cursor: pointer;
    transition: background .25s ease, transform .1s ease;
    /* Elementor controls width, height, radius, bg, color */
}

.rs-search__btn:active {
    transform: scale(0.96);
}

.rs-search__btn svg {
    pointer-events: none;
}

/* ── Dropdown ────────────────────────────── */

.rs-search__dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 1000;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .12);
    max-height: 420px;
    overflow-y: auto;
    overflow-x: hidden;
    animation: rsSearchSlideIn .2s ease-out;
}

@keyframes rsSearchSlideIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scrollbar */
.rs-search__dropdown::-webkit-scrollbar {
    width: 6px;
}

.rs-search__dropdown::-webkit-scrollbar-track {
    background: transparent;
}

.rs-search__dropdown::-webkit-scrollbar-thumb {
    background: #d4d4d8;
    border-radius: 3px;
}

.rs-search__dropdown::-webkit-scrollbar-thumb:hover {
    background: #a1a1aa;
}

/* ── Group ───────────────────────────────── */

.rs-search__group {
    padding: 8px 0;
}

.rs-search__group+.rs-search__group {
    border-top: 1px solid #f0f0f0;
}

.rs-search__group-label {
    padding: 8px 16px 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: #999;
}

/* ── Item ────────────────────────────────── */

.rs-search__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    text-decoration: none;
    color: inherit;
    transition: background .15s ease;
}

.rs-search__item:hover {
    background: #f8f8fa;
}

.rs-search__item-thumb {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f0f2;
}

.rs-search__item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rs-search__item-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.rs-search__item-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rs-search__item-meta {
    font-size: 12px;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── "Ver mais" link ─────────────────────── */

.rs-search__more {
    display: block;
    padding: 8px 16px 4px;
    font-size: 13px;
    font-weight: 600;
    color: #d8303f;
    text-decoration: none;
    transition: color .2s ease;
}

.rs-search__more:hover {
    color: #b22533;
}

/* ── Empty state ─────────────────────────── */

.rs-search__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    text-align: center;
}

.rs-search__empty p {
    margin: 0;
    font-size: 14px;
    color: #999;
}

/* ── Responsive ──────────────────────────── */

@media (max-width: 768px) {
    .rs-search__item-thumb {
        width: 40px;
        height: 40px;
        border-radius: 6px;
    }

    .rs-search__item-title {
        font-size: 13px;
    }

    .rs-search__dropdown {
        max-height: 320px;
    }
}

/* ================================================================
   CATEGORY ACCORDION (SANFONA) — FULLY ISOLATED
   Uses .rs-cat-acc--isolated to override all theme/Elementor styles
   ================================================================ */

/* ── Hard Reset ──────────────────────────── */
.rs-cat-acc--isolated,
.rs-cat-acc--isolated *,
.rs-cat-acc--isolated *::before,
.rs-cat-acc--isolated *::after {
    all: unset !important;
    box-sizing: border-box !important;
}

.rs-cat-acc--isolated {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    width: 100% !important;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

/* ── Item ────────────────────────────────── */

.rs-cat-acc--isolated .rs-cat-acc__item {
    display: block !important;
    position: relative !important;
}

/* ── Header ──────────────────────────────── */

.rs-cat-acc--isolated .rs-cat-acc__header {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
    padding: 16px 20px !important;
    margin: 0 !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    cursor: pointer !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #1f2937 !important;
    text-align: left !important;
    line-height: 1.4 !important;
    letter-spacing: -0.01em !important;
    text-decoration: none !important;
    transition: all .25s cubic-bezier(.4, 0, .2, 1) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

.rs-cat-acc--isolated .rs-cat-acc__header:hover {
    border-color: var(--rs-red, #d8303f) !important;
    color: var(--rs-red, #d8303f) !important;
    box-shadow: 0 4px 12px rgba(216, 48, 63, 0.08) !important;
}

/* Active / Open state */
.rs-cat-acc--isolated .rs-cat-acc__item--open>.rs-cat-acc__header {
    background: var(--rs-red, #d8303f) !important;
    color: #ffffff !important;
    border-color: var(--rs-red, #d8303f) !important;
}

/* Shadow only when the modifier class is present */
.rs-cat-acc--shadow .rs-cat-acc__item--open>.rs-cat-acc__header {
    box-shadow: 0 6px 20px rgba(216, 48, 63, 0.3) !important;
}

/* ── Icon (+/−) ──────────────────────────── */

.rs-cat-acc--isolated .rs-cat-acc__icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    width: 24px !important;
    height: 24px !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    color: #9ca3af !important;
    transition: transform .3s ease, color .3s ease !important;
}

.rs-cat-acc--isolated .rs-cat-acc__header:hover .rs-cat-acc__icon {
    color: var(--rs-red, #d8303f) !important;
}

.rs-cat-acc--isolated .rs-cat-acc__item--open>.rs-cat-acc__header .rs-cat-acc__icon {
    color: #ffffff !important;
}

/* ── Label / Count ───────────────────────── */

.rs-cat-acc--isolated .rs-cat-acc__label {
    display: block !important;
    flex: 1 !important;
    line-height: 1.4 !important;
}

.rs-cat-acc--isolated .rs-cat-acc__count {
    display: inline !important;
    font-weight: 400 !important;
    color: #9ca3af !important;
    font-size: 13px !important;
    margin-left: 6px !important;
}

.rs-cat-acc--isolated .rs-cat-acc__item--open .rs-cat-acc__count {
    color: rgba(255, 255, 255, 0.65) !important;
}

/* ── Body (product list) ─────────────────── */

/* Hidden attribute must win over all: unset */
.rs-cat-acc--isolated .rs-cat-acc__body[hidden] {
    display: none !important;
}

.rs-cat-acc--isolated .rs-cat-acc__body:not([hidden]) {
    display: block !important;
    position: relative !important;
    padding: 10px 0 6px 20px !important;
    margin-left: 12px !important;
    border-left: 2px solid rgba(216, 48, 63, 0.2) !important;
    border-left-style: solid !important;
    animation: rsCatAccFade .3s cubic-bezier(.4, 0, .2, 1) !important;
}

@keyframes rsCatAccFade {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Product Link ────────────────────────── */

.rs-cat-acc--isolated .rs-cat-acc__product {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 10px 14px !important;
    margin-bottom: 4px !important;
    background: #f9fafb !important;
    border: 1px solid #f3f4f6 !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #374151 !important;
    text-decoration: none !important;
    line-height: 1.4 !important;
    transition: all .2s ease !important;
}

.rs-cat-acc--isolated .rs-cat-acc__product:hover {
    background: #ffffff !important;
    border-color: var(--rs-red, #d8303f) !important;
    color: var(--rs-red, #d8303f) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06) !important;
    transform: translateX(4px) !important;
}

.rs-cat-acc--isolated .rs-cat-acc__product-name {
    display: block !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* ── Thumbnail ───────────────────────────── */

.rs-cat-acc--isolated .rs-cat-acc__thumb {
    display: block !important;
    flex-shrink: 0 !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    background: #e5e7eb !important;
}

.rs-cat-acc--isolated .rs-cat-acc__thumb img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* ── Empty state ─────────────────────────── */

.rs-cat-acc--isolated .rs-cat-acc__empty {
    display: block !important;
    padding: 14px 16px !important;
    font-size: 13px !important;
    color: #9ca3af !important;
    font-style: italic !important;
    background: #f9fafb !important;
    border: 1px dashed #e5e7eb !important;
    border-radius: 8px !important;
}

/* ── Responsive ──────────────────────────── */

@media (max-width: 768px) {
    .rs-cat-acc--isolated .rs-cat-acc__header {
        padding: 14px 16px !important;
        font-size: 14px !important;
    }

    .rs-cat-acc--isolated .rs-cat-acc__body {
        padding-left: 16px !important;
        margin-left: 8px !important;
    }

    .rs-cat-acc--isolated .rs-cat-acc__product {
        font-size: 13px !important;
        padding: 10px 12px !important;
    }

    .rs-cat-acc--isolated .rs-cat-acc__thumb {
        width: 30px !important;
        height: 30px !important;
    }
}

/* ================================================================
   PRODUCT VIDEO WIDGET — .rs-pv
   ================================================================ */

.rs-pv {
    position: relative;
    overflow: hidden;
    border-radius: var(--rs-radius);
    background: var(--rs-black);
    width: 100%;
}

.rs-pv iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.rs-pv .wp-embed-responsive .wp-block-embed__wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.rs-pv .wp-embed-responsive .wp-block-embed__wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
