:root {
    --brand: #1b3c53;
    --brand-dark: #0d1e2b;
    --bg: #ffffff;
    --card: #ffffff;
    --text: #222;
    --muted: #777;
    --line: #eee;
}

/* =========================
   BASE
   ========================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}
img {
    max-width: 100%;
    height: auto;
}
a {
    color: inherit;
}

/* =========================
   SKELETON (GLOBAL)
   ========================= */
.sk {
    background: #eee;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}
.sk::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.65),
        transparent
    );
    animation: sk-shimmer 1.15s infinite;
}
@keyframes sk-shimmer {
    100% {
        transform: translateX(100%);
    }
}

.sk-block {
    width: 100%;
    height: 100%;
}
.sk-line {
    height: 12px;
    border-radius: 8px;
}
.sk-line.sm {
    height: 10px;
}
.sk-line.lg {
    height: 16px;
}
.sk-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    display: inline-block;
}

/* =========================
   HERO
   ========================= */
.rc-home-hero {
    background: var(--bg);
    padding: 16px 0 22px;
}
.rc-hero-banners {
    align-items: stretch;
}

.rc-hero-shell {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

/* Carousel wrapper */
.rc-hero-carousel {
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg);
    position: relative;
}

/* Slide link (prevent weird stacking) */
.rc-hero-link {
    display: block;
    position: relative;
}

/* Image sizing */
.rc-hero-slide img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    transform: scale(1);
    transition: transform 0.45s ease;
}
.rc-hero-carousel:hover .rc-hero-slide.active img {
    transform: scale(1.02);
}

/* Controls: glass button */
.rc-hero-control {
    width: 54px;
    opacity: 1;
    z-index: 20;
    pointer-events: auto !important;
}
.rc-hero-control__btn {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
    transition:
        transform 0.2s ease,
        background 0.2s ease;
}
.rc-hero-control:hover .rc-hero-control__btn {
    transform: scale(1.04);
    background: rgba(255, 255, 255, 0.78);
}

/* Indicators: pill modern */
.rc-hero-indicators {
    position: absolute;
    left: 50% !important;
    transform: translateX(-50%) !important;
    bottom: 12px;
    z-index: 15;
    display: flex;
    gap: 8px;
    margin: 0 !important;
    width: auto !important;
    justify-content: center;
}
.rc-hero-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 0;
    background: rgba(255, 255, 255, 0.55);
    padding: 0;
    margin: 0 !important;
    transition:
        width 0.25s ease,
        background 0.25s ease;
}
.rc-hero-indicators .active {
    width: 28px;
    background: #fff;
}

/* Right mini banners */
.rc-hero-side {
    height: 260px;
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 12px;
}
.rc-hero-mini {
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    display: block;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease;
}
.rc-hero-mini img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1);
    transition: transform 0.45s ease;
}
.rc-hero-mini:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
}
.rc-hero-mini:hover img {
    transform: scale(1.03);
}

/* HERO skeleton */
.rc-skel-hero {
    position: relative;
    height: 260px;
}
.rc-skel-hero__main {
    height: 260px;
}
.rc-skel-hero__dots {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 12px;
    display: flex;
    gap: 8px;
}
.rc-hero-side--skel {
    height: 260px;
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 12px;
}
.rc-skel-hero__mini {
    border-radius: 12px;
}

/* =========================
   BRAND STRIP - AUTO MARQUEE (FIX MENJOROK)
   ========================= */
.rc-brand-strip {
    background: var(--bg);
    padding: 14px 0;
}

.rc-brand-strip__inner {
    background: #fff;
    border-radius: 12px;
    padding: 12px 14px;
    display: grid;
    gap: 10px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.04);
}

.rc-brand-strip__label {
    font-size: 12px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

/* viewport */
.rc-brand-marquee {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

/* soft fade edges */
.rc-brand-marquee::before,
.rc-brand-marquee::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 34px;
    z-index: 2;
    pointer-events: none;
}
.rc-brand-marquee::before {
    left: 0;
    background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0));
}
.rc-brand-marquee::after {
    right: 0;
    background: linear-gradient(270deg, #fff, rgba(255, 255, 255, 0));
}

/* IMPORTANT FIX:
   - track & group align-items:center
   - line-height:0 biar tidak ada baseline effect
   - padding vertical konsisten */
.rc-brand-marquee__track {
    display: flex;
    align-items: center;
    gap: 12px;
    width: max-content;
    will-change: transform;
    animation: rc-marquee-ltr 18s linear infinite;
    line-height: 0; /* ✅ prevent text-line box affecting */
}

.rc-brand-marquee:hover .rc-brand-marquee__track {
    animation-play-state: paused;
}

.rc-brand-marquee__group {
    display: flex;
    align-items: center; /* ✅ */
    gap: 12px;
    padding: 6px 34px; /* ✅ lebih stabil dibanding 2px */
}

/* Chip fixed height, center, no "menjorok" */
.rc-brand-chip {
    flex: 0 0 auto;
    width: 132px; /* sedikit lebih lega */
    height: 56px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px; /* ✅ bikin area logo konsisten */
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.03);
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease;
}

/* KEY FIX: logo height disamakan biar sejajar secara visual */
.rc-brand-chip img {
    display: block; /* ✅ remove inline baseline */
    width: auto;
    height: 28px; /* ✅ semua logo jadi sejajar */
    max-width: 100%;
    object-fit: contain;
    transform: translateZ(0);
}

.rc-brand-chip:hover {
    transform: translateY(-1px);
    border-color: rgba(238, 77, 45, 0.25);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.06);
}

/* gerak kiri -> kanan */
@keyframes rc-marquee-ltr {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .rc-brand-marquee__track {
        animation: none;
    }
}

@media (max-width: 575px) {
    .rc-brand-chip {
        width: 120px;
        height: 52px;
        padding: 10px 12px;
    }
    .rc-brand-chip img {
        height: 26px;
    }
    .rc-brand-marquee__track {
        animation-duration: 22s;
    }
}

/* =========================
   SECTION HEAD (polish)
   ========================= */
.rc-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 12px;
    /* background: #fff; */
    /* border-radius: 12px; */
    /* border: 1px solid rgba(0, 0, 0, 0.04); */
    /* border-bottom: 1px solid var(--line); */
}
.rc-section-head--center {
    justify-content: center;
    text-align: center;
}
.rc-section-title-recomendation {
    font-size: 16px;
    font-weight: 800;
    /* color: var(--brand); */
    position: relative;
    padding-left: 10px;
}
.rc-section-title-recomendation::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 16px;
    border-radius: 10px;
    background: var(--brand);
}

.rc-section-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text);
    position: relative;
    padding-left: 10px;
}
.rc-section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 16px;
    border-radius: 10px;
    background: var(--brand);
}
.rc-section-link {
    font-size: 13px;
    color: var(--brand);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
}
.rc-section-link:hover {
    text-decoration: underline;
}

/* =========================
   PRODUCTS (shared)
   ========================= */
.rc-products {
    background: var(--bg);
    padding: 16px 0 16px;
}

.rc-product-wrap {
    position: relative;
    background: #fff;
    border-radius: 0 0 12px 12px;
    padding: 12px 0px !important;
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-top: 0;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.04);
}

/* .rc-product-viewport {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    background: #ffffff;
}
.rc-product-viewport::-webkit-scrollbar {
    display: none;
} */
/* FIX: bg abu-abu muncul saat rc-product-viewport jadi scroll container */
.rc-products .rc-product-wrap,
.rc-products .rc-product-viewport,
.rc-products .rc-product-track {
    background: #ffffff !important;
}

/* IMPORTANT: Use flexbox with fixed width for horizontal scroll */
.rc-products .rc-product-track {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 12px;
    background: #ffffff !important;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.rc-products .rc-product-track::-webkit-scrollbar {
    display: none;
}

/* Fixed card width - 20% per card minus gap adjustment */

.rc-product-img {
    display: block;
    width: 100%;
    position: relative;
    text-decoration: none;
}

.rc-product-title {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0 0 8px 0;
    min-height: 34px;
}

.rc-product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}
.rc-product-price {
    color: #1b3c53 !important;
    font-size: 14px;
    font-weight: 800;
}

/* Harga dengan Diskon */
.rc-product-price-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rc-product-price--original {
    color: #999;
    font-size: 12px;
    font-weight: 400;
    text-decoration: line-through;
}

.rc-product-price--discounted {
    color: #dc3545;
    font-size: 16px;
    font-weight: 900;
}

.rc-product-discount-badge {
    display: inline-block;
    background: #dc3545;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 4px;
    vertical-align: middle;
}

.rc-product-sold {
    font-size: 11px;
    color: #757575;
}

.rc-product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #ffce3d;
    margin-bottom: 4px;
}
.rc-product-rating i {
    font-size: 12px;
}
.rc-product-rating span {
    color: #757575;
    font-weight: 700;
}

.rc-product-location {
    font-size: 11px;
    color: #757575;
    display: flex;
    align-items: center;
    gap: 4px;
}
.rc-product-location i {
    font-size: 12px;
}

.rc-product-stock {
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #2f855a;
    font-weight: 700;
}
.rc-product-stock.out-of-stock {
    color: #c53030;
}

/* Product arrows */
.rc-product-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    display: grid;
    place-items: center;
    color: #555;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.1);
    z-index: 10;

    /* Smooth transitions for opacity */
    opacity: 1;
    pointer-events: auto;
    transition:
        opacity 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease,
        color 0.3s ease;
}
.rc-product-arrow.is-prev {
    left: 10px;
}
.rc-product-arrow.is-next {
    right: 10px;
}
.rc-product-arrow:hover {
    border-color: rgba(238, 77, 45, 0.35);
    color: var(--brand);
}

/* Hide arrows based on scroll position */
.rc-product-arrow[style*="opacity: 0"] {
    pointer-events: none;
}
.rc-product-arrow[style*="opacity: 1"] {
    pointer-events: auto;
}

/* Desktop: ensure arrows are visible above viewport */
@media (min-width: 768px) {
    .rc-products .rc-product-arrow {
        position: absolute;
        z-index: 10;
        opacity: 1;
        pointer-events: auto;
    }

    .rc-products .rc-product-wrap {
        position: relative;
        z-index: 1;
    }

    .rc-products .rc-product-viewport {
        position: relative;
        z-index: 1;
    }
}

/* Skeleton product card polish */
.rc-card--skel {
    cursor: default;
}
.rc-card--skel:hover {
    transform: none;
    box-shadow: none;
    border-color: rgba(0, 0, 0, 0.06);
}

/* =========================
   REKOMENDASI (FIX: rc-reco-*)
   ========================= */
.rc-recommendation {
    background: var(--bg);
    padding: 16px 0 22px;
}

/* container head kamu sudah ada, biarkan */

.rc-reco-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

/* card as link */
.rc-reco-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease;
}

.rc-reco-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
    border-color: rgba(45, 196, 238, 0.22);
}

/* image */
.rc-reco-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #fafafa;
    overflow: hidden;
}

.rc-reco-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* biar rapih */
    display: block;
    transition: transform 0.45s ease;
}

.rc-reco-card:hover .rc-reco-thumb img {
    transform: scale(1.03);
}

/* body */
.rc-reco-body {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rc-reco-title {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 34px; /* biar tinggi card seragam */
}

/* meta row */
.rc-reco-meta {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
}

.rc-reco-price {
    color: var(--brand);
    font-weight: 800;
    font-size: 14px;
    white-space: nowrap;
}

/* Harga dengan Diskon untuk Recommendation */
.rc-reco-price-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rc-reco-price--original {
    color: #999;
    font-size: 11px;
    font-weight: 400;
    text-decoration: line-through;
}

.rc-reco-price--discounted {
    color: var(--brand);
    font-size: 14px;
    font-weight: 900;
}

.rc-reco-discount-badge {
    display: inline-block;
    background: #dc3545;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px !important;
    margin-left: 4px;
    vertical-align: middle;
}

.rc-reco-stock {
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.rc-reco-stock i {
    font-size: 14px;
}

.rc-reco-stock.is-ok {
    color: #2f855a;
}

.rc-reco-stock.is-bad {
    color: #c53030;
}
/* Button CTA di tengah */
.rc-recommendation-cta {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.rc-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #ddd;
    color: #555;
    padding: 12px 32px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.rc-cta-button:hover {
    background: #1b3c53;
    border-color: #1b3c53;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(45, 206, 238, 0.3);
}

.rc-cta-button i {
    font-size: 16px;
}
/* =========================
   RESPONSIVE REKOMENDASI
   ========================= */
@media (max-width: 991px) {
    .rc-reco-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 10px;
    }
}

@media (max-width: 767px) {
    .rc-reco-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }

    .rc-reco-body {
        padding: 8px;
    }

    .rc-reco-title {
        font-size: 11px;
        min-height: 30px;
    }

    .rc-reco-price {
        font-size: 12px;
    }

    .rc-reco-stock {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .rc-reco-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
}

/* Desktop slider behavior when more than 5 items */
@media (min-width: 992px) {
    /* Ensure product track renders as a single horizontal row on desktop
       - use flex-nowrap so items do not wrap to a second row
       - size each card to 20% so five fit per full-width viewport
       - keep existing slider class support in case JS toggles it */
    .rc-product-track.rc-product-grid,
    .rc-product-track {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        gap: 12px;
        padding-bottom: 8px;
        /* hide scrollbar */
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .rc-product-track.rc-product-grid::-webkit-scrollbar,
    .rc-product-track::-webkit-scrollbar {
        display: none;
    }

    .rc-product-track.rc-product-grid .rc-product-card,
    .rc-product-track .rc-product-card {
        flex: 0 0 calc(20% - 9.6px);
        max-width: calc(20% - 9.6px);
    }

    /* Arrows: now controlled by JS via opacity, not by class */
    /* Old rule removed - arrows visibility handled by JavaScript */
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 991px) {
    .rc-hero-slide img {
        height: 220px;
    }
    .rc-hero-side {
        height: 220px;
    }

    .rc-product-wrap {
        padding: 12px 34px;
    }
    .rc-product-track {
        display: flex;
        flex-wrap: nowrap;
        gap: 12px;
    }
    .rc-products .rc-product-card {
        flex: 0 0 calc(50% - 6px);
        min-width: 0;
    }

    .rc-recommendation-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 10px;
    }
}

@media (max-width: 767px) {
    .rc-home-hero {
        padding: 12px 0 16px;
    }

    .rc-hero-slide img {
        height: 190px;
    }

    /* Mobile: side banners jadi row scroll */
    .rc-hero-side {
        height: auto;
        display: flex;
        gap: 10px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 2px;
    }
    .rc-hero-mini {
        flex: 0 0 auto;
        width: 70%;
        height: 120px;
    }

    .rc-product-wrap {
        padding: 12px 30px;
    }
    .rc-product-track {
        display: flex;
        flex-wrap: nowrap;
        gap: 10px;
    }
    .rc-products .rc-product-card {
        flex: 0 0 calc(50% - 5px);
        min-width: 0;
    }

    .rc-product-title {
        font-size: 11px;
    }
    .rc-product-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .rc-recommendation-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }

    .rc-cta-button {
        padding: 10px 22px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .rc-hero-slide img {
        height: 170px;
    }
    .rc-hero-mini {
        width: 78%;
        height: 110px;
    }

    .rc-recommendation-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .rc-cta-button {
        padding: 9px 18px;
        font-size: 12px;
        border-radius: 12px;
    }
}

/* Footer override */
.footer {
    background: #212121;
}
.footer .footer-bottom {
    background: #212121;
}

/* DEBUG OVERRIDE: paksa background putih untuk product card (hapus setelah verifikasi) */
.rc-products .rc-product-card,
.rc-product-card {
    background: #ffffff !important;
}

/* gunakan token header kamu (rc-header-megamart.css) */
:root {
    --rc-fg-primary: var(--primary, #1b3c53);
    --rc-fg-accent: var(--yellow-1, #ee4d2d);
    --rc-fg-bgsoft: var(--backgorund-1, #f5f5f5);
    --rc-fg-border: var(--border, #ededed);
    --rc-fg-heading: var(--heading, #222222);
    --rc-fg-text: var(--text, #222);
    --rc-fg-white: var(--white, #ffffff);
    --rc-fg-line: var(--line, #d9d9d9);

    --rc-fg-r16: 16px;
    --rc-fg-r15: 15px;
}

/* =========================================================
   1) TITLE BAR — PRODUK TERLARIS (Figma style)
   Target: .rc-products .rc-section-head
   ========================================================= */

.rc-products .rc-section-head {
    /* reset style lama */
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    margin-bottom: 10px;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    position: relative;
}

/* judul: "Grab the best deal on" (abu) + "Smartphones" (primary)
   karena di blade kamu text-nya "PRODUK TERLARIS",
   kita bikin style figma-like dengan accent pada strong/ span (opsional).
   Tanpa ubah markup, kita buat look-nya: abu + accent via ::after bar.
*/
.rc-products .rc-section-title {
    padding: 0;
    font-size: 20px;
    line-height: 26px;
    font-weight: 800;
    color: var(--brand);
    letter-spacing: 0.2px;
    position: relative;
}

/* hilangkan bar kecil sebelumnya */
.rc-products .rc-section-title::before {
    display: none !important;
}

/* underline bar tebal ala figma (line-27 / primary) */
.rc-products .rc-section-title::after {
    content: "";
    display: block;
    margin-top: 12px;
    width: 260px;
    height: 3px;
    background: var(--rc-fg-primary);
    border-radius: 999px;
}

/* View All ala figma (kanan atas, ada arrow kecil) */
.rc-products .rc-section-link {
    font-size: 14px;
    font-weight: 700;
    color: var(--rc-fg-heading);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 10px;
    transition:
        background 0.18s ease,
        transform 0.18s ease;
}

/* icon arrow bawaan bx kamu */
.rc-products .rc-section-link i {
    font-size: 18px;
    transform: rotate(-90deg);
    opacity: 0.9;
}

.rc-products .rc-section-link:hover {
    background: rgba(0, 0, 0, 0.04);
    transform: translateY(-1px);
    text-decoration: none;
}

/* garis horizontal full seperti figma line-35 */
.rc-products .rc-section-head::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 1px;
    background: var(--rc-fg-border);
}

/* =========================================================
   2) WRAPPER PRODUK TERLARIS
   Target: .rc-products .rc-product-wrap
   ========================================================= */

.rc-products .rc-product-wrap {
    /* reset style lama yang card-ish */
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;

    padding: 18px 0 0; /* kasih ruang setelah garis */
}

/* =========================================================
   3) CARD PRODUK TERLARIS — Figma rectangle + bottom panel
   Target: .rc-products .rc-product-card
   ========================================================= */

.rc-products .rc-product-card {
    /* IMPORTANT: Keep fixed width for horizontal scroll */
    flex: 0 0 calc(20% - 9.6px);
    max-width: calc(20% - 9.6px);
    min-width: 0;

    border: 1px solid var(--rc-fg-border);
    border-radius: var(--rc-fg-r16);
    /* Ganti ke putih agar tidak tampil abu-abu (override) */
    background: var(--rc-fg-white);
    overflow: hidden;
    position: relative;

    /* shadow figma ringan */

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease;
}

/* image area: full-wrap (cover) */

/* bottom white panel ala rectangle-12 */
.rc-products .rc-product-info {
    background: var(--rc-fg-white);
    border-radius: 0 0 var(--rc-fg-r15) var(--rc-fg-r15);
    padding: 12px 12px 12px;
    border-top: 1px solid var(--rc-fg-border);
}

/* title */
.rc-products .rc-product-title {
    font-size: 14px;
    line-height: 18px;
    font-weight: 700;
    color: var(--rc-fg-heading);
    margin: 0 0 0px 0;
    min-height: 36px;
}

/* meta row: harga (bold) + sold kecil */
.rc-products .rc-product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.rc-products .rc-product-price {
    font-size: 14px;
    font-weight: 900;
    color: var(--rc-fg-heading);
}

.rc-products .rc-product-sold {
    font-size: 12px;
    color: var(--rc-fg-text);
    font-weight: 600;
}

/* divider line ala figma line-26 */
.rc-products .rc-product-meta::after {
    content: "";
    display: none;
}

/* rating + location diperkecil (boleh tetap ada) */
.rc-products .rc-product-rating,
.rc-products .rc-product-location {
    font-size: 12px;
    color: var(--rc-fg-text);
    margin-bottom: 6px;
}

.rc-products .rc-product-rating i {
    color: #ffce3d;
}

/* Badge diskon ala rectangle-13
   Karena kamu belum punya data diskon, ini "default" tampil.
   Kalau tidak mau tampil, tinggal set display:none.
*/
.rc-products .rc-product-card::before {
    position: absolute;
    top: 0;
    right: 0;
    width: 44px;
    height: 44px;
    background: var(--rc-fg-primary);
    border-radius: 0 var(--rc-fg-r16) 0 var(--rc-fg-r16);
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    display: grid;
    place-items: center;
    letter-spacing: 0.3px;
}

/* =========================================================
   4) PRODUCT ARROW (biar match theme figma)
   ========================================================= */

.rc-products .rc-product-arrow {
    border-radius: 999px;
    border: 1px solid var(--rc-fg-border);
    background: rgba(255, 255, 255, 0.92);
    color: var(--rc-fg-heading);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.1);
}

.rc-products .rc-product-arrow:hover {
    border-color: rgba(27, 60, 83, 0.35);
    color: var(--rc-fg-primary);
}

/* =========================================================
   5) TITLE BAR — REKOMENDASI (tittle saja)
   Target: .rc-recommendation .rc-section-head--center
   ========================================================= */

.rc-recommendation .rc-section-head {
    background: transparent;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
}

.rc-recommendation .rc-section-title-recomendation {
    padding-left: 0;
    font-size: 20px;
    line-height: 26px;
    font-weight: 800;
    color: var(--brand);
    position: relative;
}

/* hapus bar kecil kiri */
.rc-recommendation .rc-section-title-recomendation::before {
    display: none !important;
}

/* underline tebal ala figma */
.rc-recommendation .rc-section-title-recomendation::after {
    content: "";
    display: block;
    margin: 12px auto 0;
    width: 260px;
    height: 3px;
    border-radius: 999px;
    background: var(--rc-fg-primary);
}

/* Produk image: no crop (fit penuh di dalam frame) */
.rc-products .rc-product-img {
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
    background: #ffffff;
    overflow: hidden;
}

.rc-products .rc-product-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center;
    background: #ffffff;
}
/* =========================================================
   RESPONSIVE (kecilkan underline & spacing)
   ========================================================= */

@media (max-width: 767px) {
    .rc-products .rc-section-title,
    .rc-recommendation .rc-section-title-recomendation {
        font-size: 18px;
        line-height: 24px;
    }

    .rc-products .rc-product-img img {
        height: 100% !important;
    }

    .rc-products .rc-section-title::after,
    .rc-recommendation .rc-section-title-recomendation::after {
        width: 100%;
    }

    .rc-products .rc-section-link {
        font-size: 13px;
        padding: 6px 8px;
    }

    /* Mobile: 2 cards per row with horizontal scroll */
    .rc-products .rc-product-track {
        gap: 10px;
    }

    .rc-products .rc-product-card {
        flex: 0 0 calc(50% - 5px) !important;
        max-width: calc(50% - 5px) !important;
        min-width: 0;
    }

    /* Mobile: remove padding so image displays full in card */

    /* Mobile: fix meta alignment - remove extra margin/padding */
    .rc-products .rc-product-info {
        padding: 10px;
    }

    /* Mobile: keep horizontal layout for price + sold */
    .rc-products .rc-product-meta {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px !important;
        margin-bottom: 8px;
    }

    .rc-products .rc-product-price {
        font-size: 13px;
        flex-shrink: 0;
    }

    .rc-products .rc-product-sold {
        font-size: 11px;
        text-align: right;
        flex-shrink: 0;
    }

    /* Mobile: smaller arrows but still visible */
    .rc-products .rc-product-arrow {
        width: 28px;
        height: 28px;
    }

    .rc-products .rc-product-arrow.is-prev {
        left: 5px;
    }

    .rc-products .rc-product-arrow.is-next {
        right: 5px;
    }

    .rc-products .rc-product-track {
        scroll-snap-align: start;
    }
}

@media (max-width: 480px) {
    .rc-products .rc-section-title::after,
    .rc-recommendation .rc-section-title-recomendation::after {
        width: 180px;
    }
    .rc-products .rc-product-img img {
        height: 100% !important;
    }

    .rc-products .rc-product-card::before {
        width: 58px;
        height: 40px;
        font-size: 11px;
    }
}
