/* =========================================================
   Rip Curl Vietnam — main.css
   Design system aligned with the broader Rip Curl family:
   Archivo Narrow typography, monochrome palette, sharp corners.
   ========================================================= */

:root {
    --rcvn-fg:        #000000;
    --rcvn-fg-soft:   #595959;
    --rcvn-fg-mute:   #999999;
    --rcvn-bg:        #ffffff;
    --rcvn-bg-alt:    #f5f5f5;
    --rcvn-bg-dark:   #1a1a1a;
    --rcvn-sale:      #c8102e;
    --rcvn-border:    #e6e6e6;

    --rcvn-display:   'Archivo Narrow', 'Archivo', 'Arial Narrow', sans-serif;
    --rcvn-body:      'Archivo Narrow', 'Archivo', 'Helvetica Neue', Arial, sans-serif;

    --rcvn-radius:    0;
    --rcvn-container: 1280px;
    --rcvn-gutter:    20px;
}

/* RESET / BASE -------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
body.home {
    margin: 0;
    color: var(--rcvn-fg);
    background: var(--rcvn-bg);
    font-family: var(--rcvn-body);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
/* Match ripcurl.co.id heading style: tight tracking, generous word spacing, uppercase */
body.home h1, body.home h2, body.home h3, body.home h4, body.home h5, body.home h6 {
    font-family: var(--rcvn-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    word-spacing: 0.25em;
    color: var(--rcvn-fg);
}
body.home .rcvn-card__name,
body.home .rcvn-card__name a { color: var(--rcvn-fg); }
body.home p { font-weight: 400; }
body.home a { color: inherit; text-decoration: none; }
body.home img { max-width: 100%; display: block; }
body.home button { font-family: inherit; cursor: pointer; }

/* Hide Blocksy default chrome on the homepage */
body.home > header.ct-header,
body.home .ct-header,
body.home #masthead,
body.home .ct-footer { display: none !important; }

.rcvn-container {
    width: 100%;
    max-width: var(--rcvn-container);
    margin: 0 auto;
    padding: 0 var(--rcvn-gutter);
}

/* ANNOUNCE BAR ------------------------------------------- */
.rcvn-announce {
    background: #333333;
    color: #fff;
    font-family: var(--rcvn-body);
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.02em;
    padding: 11px 0;
    text-align: center;
    line-height: 1.3;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.rcvn-announce__inner {
    flex: 1;
    max-width: var(--rcvn-container);
    margin: 0 auto;
    padding: 0 48px;
    position: relative;
    min-height: 1.3em;
}
.rcvn-announce__slide {
    display: none;
    width: 100%;
}
.rcvn-announce__slide.is-active { display: inline-block; }
.rcvn-announce__arrow {
    background: transparent;
    border: 0;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 4px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color .15s;
}
.rcvn-announce__arrow:hover { color: #fff; }
.rcvn-announce__arrow--prev { position: absolute; left: 8px; top: 50%; transform: translateY(-50%); }
.rcvn-announce__arrow--next { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); }
@media (max-width: 768px) {
    .rcvn-announce { font-size: 15px; padding: 9px 0; }
    .rcvn-announce__inner { padding: 0 36px; }
    .rcvn-announce__arrow { padding: 4px 8px; }
}

/* HEADER ------------------------------------------------- */
.rcvn-header {
    background: var(--rcvn-bg);
    border-bottom: 1px solid var(--rcvn-border);
    position: sticky;
    top: 0;
    z-index: 50;
}
.rcvn-header__row {
    display: flex;
    align-items: center;
    gap: 36px;
    height: 60px;
    max-width: none;
    margin: 0;
    padding: 0 32px;
}
.rcvn-header__logo {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    flex-shrink: 0;
}
.rcvn-logo__brand {
    font-family: var(--rcvn-display);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--rcvn-fg);
    text-transform: uppercase;
    line-height: 1;
}
.rcvn-logo__img {
    height: 30px;
    width: auto;
    display: block;
}

/* PRIMARY NAV ------------------------------------------- */
.rcvn-nav {
    flex: 1;
}
.rcvn-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-start;
    gap: 24px;
}
.rcvn-nav__item {
    position: relative;
}
.rcvn-nav__item > a {
    font-family: var(--rcvn-body);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 20px 0;
    display: inline-block;
    transition: color .15s;
    color: var(--rcvn-fg);
}
.rcvn-nav__item > a:hover { color: var(--rcvn-fg-soft); }
.rcvn-nav__link--accent { color: var(--rcvn-sale) !important; font-weight: 600; }
.rcvn-header__tools { margin-left: auto; gap: 6px; }

/* Mobile-only header cluster (hamburger + search). Hidden on desktop. */
.rcvn-header__mobile-left { display: none; }

/* MEGA MENU --------------------------------------------- */
.rcvn-mega {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border-top: 1px solid var(--rcvn-border);
    border-bottom: 1px solid var(--rcvn-border);
    padding: 32px 40px;
    display: grid;
    grid-template-columns: repeat(5, minmax(140px, 1fr));
    gap: 36px;
    min-width: 880px;
    max-width: calc(100vw - 64px);
    box-shadow: 0 18px 30px -8px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .15s, visibility .15s, transform .15s;
    z-index: 60;
}
.rcvn-mega--narrow {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    min-width: 460px;
}
.rcvn-has-mega:hover .rcvn-mega {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
/* Last items (right side) — flip mega to open from the right edge so it stays in viewport */
.rcvn-nav__list > .rcvn-has-mega:nth-last-child(-n+2) .rcvn-mega {
    left: auto;
    right: 0;
}
.rcvn-mega__col h4 {
    font-family: var(--rcvn-display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--rcvn-fg);
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--rcvn-border);
}
.rcvn-mega__col a {
    display: block;
    font-size: 13px;
    color: var(--rcvn-fg-soft);
    padding: 5px 0;
    transition: color .15s;
}
.rcvn-mega__col a:hover { color: var(--rcvn-fg); }

/* HEADER TOOLS ------------------------------------------ */
.rcvn-header__tools {
    display: flex;
    align-items: center;
    gap: 4px;
}
.rcvn-icon-btn {
    background: none;
    border: 0;
    padding: 8px;
    color: var(--rcvn-fg);
    display: inline-flex;
    align-items: center;
    position: relative;
    transition: opacity .15s;
}
.rcvn-icon-btn:hover { opacity: 0.65; }
.rcvn-cart__count {
    position: absolute;
    top: 2px;
    right: -1px;
    background: var(--rcvn-fg);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 10px;
    min-width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* HERO — static image, bottom-left text, solid white square buttons */
.rcvn-hero {
    position: relative;
    aspect-ratio: 1440 / 723;   /* exact measured ripcurl.co.id desktop hero height */
    min-height: 0;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    color: #fff !important;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.rcvn-hero * { color: #fff; }
.rcvn-hero__overlay {
    position: absolute;
    inset: 0;
    /* ID uses no dark overlay (same image, full brightness). Keep only a faint
       bottom gradient for white-text legibility; top stays bright like ID. */
    background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,0.28) 100%);
    z-index: 1;
}
.rcvn-hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 32px 56px;
    text-align: left !important;
}
.rcvn-hero__inner {
    /* full-width like ID so the title sits on a single line (640px forced a wrap) */
    max-width: 100%;
    text-align: left !important;
}
.rcvn-hero__eyebrow {
    font-family: var(--rcvn-display);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin: 0 0 12px;
    opacity: 0.92;
    color: #fff !important;
    text-align: left;
}
.rcvn-hero__title {
    font-family: var(--rcvn-display);
    font-size: clamp(44px, 7vw, 84px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
    word-spacing: 0.25em;
    text-transform: uppercase;
    margin: 0 0 14px;
    color: #fff !important;
    text-align: left;
    text-shadow: 0 1px 18px rgba(0,0,0,0.38);
}
.rcvn-hero__sub {
    font-family: var(--rcvn-body);
    font-size: 15px;
    max-width: 520px;
    margin: 0 0 22px;
    opacity: 0.95;
    line-height: 1.45;
    color: #fff !important;
    text-align: left;
    text-shadow: 0 1px 12px rgba(0,0,0,0.45);
}
.rcvn-hero__ctas {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

/* BUTTONS ---------------------------------------------- */
.rcvn-btn {
    display: inline-block;
    font-family: var(--rcvn-display);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 14px 36px;
    border: 0;
    border-radius: var(--rcvn-radius);
    cursor: pointer;
    transition: all .2s;
}
.rcvn-btn--primary {
    background: #fff;
    color: var(--rcvn-fg);
}
.rcvn-btn--primary:hover { background: var(--rcvn-bg-alt); }
.rcvn-btn--ghost {
    background: transparent;
    color: #fff;
    border: 1px solid #fff;
}
.rcvn-btn--ghost:hover { background: #fff; color: var(--rcvn-fg); }

.rcvn-btn--outline {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.95);
    padding: 12px 28px;
    font-size: 12px;
    letter-spacing: 0.16em;
}
.rcvn-btn--outline:hover {
    background: #fff;
    color: var(--rcvn-fg);
}
.rcvn-btn--outline-light {
    background: #fff;
    color: var(--rcvn-fg);
    padding: 12px 28px;
    font-size: 12px;
    letter-spacing: 0.16em;
}
.rcvn-btn--outline-light:hover {
    background: var(--rcvn-bg-alt);
}

/* Solid white square button — used on hero over photo */
.rcvn-btn--solid {
    background: #fff;
    color: var(--rcvn-fg) !important;
    padding: 13px 28px;
    font-size: 14px;
    letter-spacing: 0.12em;
    font-weight: 700;
    border: 0;
    line-height: 1;
    transition: background .2s, color .2s;
}
.rcvn-btn--solid:hover {
    background: var(--rcvn-fg);
    color: #fff !important;
}

/* SECTIONS --------------------------------------------- */
.rcvn-section {
    padding: 64px 0;
}
.rcvn-section--alt {
    background: var(--rcvn-bg-alt);
}
.rcvn-section--tight {
    padding: 48px 0 24px;
}
.rcvn-section--full {
    padding: 56px 0;
}
.rcvn-section--divided {
    border-top: 1px solid var(--rcvn-border);
}
.rcvn-section--full > .rcvn-section__head {
    padding: 0 20px 24px;
    margin-bottom: 0;
}

/* Section head split: title left, action buttons right */
.rcvn-section__head--split {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    border-bottom: 0;
}
.rcvn-section__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Pill button — used under carousel as "View All" CTA */
.rcvn-section__cta {
    display: flex;
    justify-content: center;
    margin-top: 36px;
}
.rcvn-btn--pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #000;
    color: #fff !important;
    padding: 15px 35px;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0.01em;
    line-height: 1.25;
    text-transform: uppercase;
    border: 0;
    border-radius: 30px;
    transition: background .2s;
}
.rcvn-btn--pill:hover { background: #333; }
.rcvn-btn--pill .rcvn-arrow {
    font-size: 18px;
    line-height: 1;
    display: inline-block;
}

/* Solid black square button — used for "Shop Mens / Shop Womens" */
.rcvn-btn--dark {
    background: #000;
    color: #fff !important;
    padding: 17px 34px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.12em;
    border: 0;
    line-height: 1;
    transition: background .2s;
}
.rcvn-btn--dark:hover {
    background: #333;
}

/* Horizontal scroller with arrow nav */
.rcvn-scroller {
    position: relative;
}
.rcvn-scroller__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 324px;   /* matches ripcurl.co.id product card width */
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 0 20px;
    scrollbar-width: none;
}
.rcvn-scroller__track::-webkit-scrollbar { display: none; }
.rcvn-scroller__track > .rcvn-card {
    scroll-snap-align: start;
}

.rcvn-scroller__arrow {
    position: absolute;
    top: 38%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #fff;
    color: var(--rcvn-fg);
    border: 1px solid var(--rcvn-border);
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: background .15s, color .15s, border-color .15s;
}
.rcvn-scroller__arrow:hover {
    background: var(--rcvn-fg);
    color: #fff;
    border-color: var(--rcvn-fg);
}
.rcvn-scroller__arrow--prev { left: 12px; right: auto; }
.rcvn-scroller__arrow--next { right: 12px; }

/* Card refinements for the scroller layout */
.rcvn-scroller__track > .rcvn-card .rcvn-card__media {
    aspect-ratio: 4 / 5;
}
.rcvn-scroller__track > .rcvn-card .rcvn-card__body {
    padding: 14px 16px 18px;
}

.rcvn-card__name {
    font-family: var(--rcvn-body);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.35;
    margin: 0 0 6px;
    text-transform: none;
}
.rcvn-scroller__track .rcvn-card__name {
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.06em;
    font-weight: 600;
}

/* Quick-add button on card image */
.rcvn-card__add {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    background: #fff;
    color: var(--rcvn-fg);
    border: 1px solid var(--rcvn-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity .2s, transform .2s, background .2s, color .2s;
    z-index: 2;
}
.rcvn-card:hover .rcvn-card__add {
    opacity: 1;
    transform: translateY(0);
}
.rcvn-card__add:hover {
    background: var(--rcvn-fg);
    color: #fff;
}

.rcvn-section__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}
.rcvn-section__head--center {
    flex-direction: column;
    text-align: center;
    gap: 6px;
}
.rcvn-section__title {
    font-family: var(--rcvn-display);
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.03em;
    word-spacing: 0.25em;
    text-transform: uppercase;
    margin: 0;
    line-height: 1;
}
.rcvn-section__sub {
    color: var(--rcvn-fg-soft);
    margin: 0;
    font-size: 14px;
}
.rcvn-section__link {
    font-family: var(--rcvn-display);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--rcvn-fg);
    border-bottom: 1px solid var(--rcvn-fg);
    padding-bottom: 2px;
    transition: opacity .15s;
}
.rcvn-section__link:hover { opacity: 0.6; }

/* TABS ------------------------------------------------- */
.rcvn-tabs {
    display: flex;
    gap: 0;
    justify-content: center;
    flex-wrap: wrap;
    margin: 20px 0 32px;
    border-bottom: 1px solid var(--rcvn-border);
}
.rcvn-tab {
    background: transparent;
    border: 0;
    border-bottom: 2px solid transparent;
    color: var(--rcvn-fg-soft);
    padding: 12px 22px;
    font-family: var(--rcvn-display);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: -1px;
    transition: all .2s;
}
.rcvn-tab:hover { color: var(--rcvn-fg); }
.rcvn-tab.is-active {
    color: var(--rcvn-fg);
    border-bottom-color: var(--rcvn-fg);
}

/* Pill-style tab bar (rounded container, dark fill on active).
   Desktop = compact pill hugging the tab, CENTERED under the title (matches ID).
   Mobile keeps its own left-aligned compact style in the media query below. */
.rcvn-tabs--pill {
    display: flex;
    width: fit-content;
    margin: 0 auto 32px;
    padding: 5px;
    border: 1.5px solid #9a9a9a;
    border-radius: 999px;
    border-bottom: 1.5px solid #9a9a9a;
    gap: 0;
    flex-wrap: nowrap;
    justify-content: center;
}
.rcvn-tabs--pill .rcvn-tab {
    border: 0;
    border-radius: 999px;
    padding: 8px 18px;
    color: var(--rcvn-fg);
    margin: 0;
    font-size: 14px;
    letter-spacing: 0.08em;
}
.rcvn-tabs--pill .rcvn-tab:hover {
    color: var(--rcvn-fg);
    background: rgba(0,0,0,0.04);
}
.rcvn-tabs--pill .rcvn-tab.is-active {
    background: var(--rcvn-fg);
    color: #fff;
    border: 0;
}

/* GRID ------------------------------------------------- */
.rcvn-grid {
    display: grid;
    gap: 18px;
}
.rcvn-grid--6 { grid-template-columns: repeat(6, 1fr); }
.rcvn-grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1100px) {
    .rcvn-grid--6 { grid-template-columns: repeat(3, 1fr); }
    .rcvn-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .rcvn-grid--6, .rcvn-grid--4 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* PRODUCT CARD ---------------------------------------- */
.rcvn-card {
    background: transparent;
}
.rcvn-card__media {
    position: relative;
    display: block;
    aspect-ratio: 324 / 383;   /* matches ripcurl.co.id product image */
    overflow: hidden;
    background: var(--rcvn-bg-alt);
}
.rcvn-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.rcvn-card:hover .rcvn-card__media img { transform: scale(1.03); }
/* Special Offers carousel uses larger cards than Essentials (matches ripcurl.co.id) */
.rcvn-section:has(.rcvn-tabs) .rcvn-scroller__track { grid-auto-columns: 348px; }
.rcvn-section:has(.rcvn-tabs) .rcvn-card__media { aspect-ratio: 4 / 5; }
@media (max-width: 768px) {
    .rcvn-section:has(.rcvn-tabs) .rcvn-scroller__track { grid-auto-columns: 75vw !important; }
}
.rcvn-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    font-family: var(--rcvn-display);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    padding: 4px 8px;
    text-transform: uppercase;
    background: var(--rcvn-sale);
    color: #fff;
}
.rcvn-badge--offer {
    font-family: var(--rcvn-body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 6px 14px;
    text-transform: none;
    background: #c8102e;
    color: #fff;
    border-radius: 999px;
}
.rcvn-card__body {
    padding: 12px 0 4px;
}
.rcvn-card__name {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
    margin: 0 0 4px;
}
.rcvn-card__name a:hover { text-decoration: underline; }
.rcvn-card__color {
    font-size: 12px;
    color: var(--rcvn-fg-mute);
    margin: 0 0 6px;
    text-transform: capitalize;
}
.rcvn-card__price {
    display: flex;
    gap: 8px;
    align-items: baseline;
    flex-wrap: wrap;
}
.rcvn-price {
    font-size: 13px;
    font-weight: 600;
}
.rcvn-price--sale { color: var(--rcvn-sale); }
.rcvn-price--regular {
    font-weight: 400;
    color: var(--rcvn-fg-mute);
    text-decoration: line-through;
    font-size: 12px;
}

/* POPULAR CATEGORIES TILES ---------------------------- */
.rcvn-cats {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}
@media (max-width: 1100px) { .rcvn-cats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px)  { .rcvn-cats { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
.rcvn-cat {
    display: block;
    text-align: center;
    transition: opacity .15s;
}
.rcvn-cat:hover { opacity: 0.85; }
.rcvn-cat__media {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--rcvn-bg-alt);
    margin-bottom: 10px;
}
.rcvn-cat__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.rcvn-cat:hover .rcvn-cat__media img { transform: scale(1.04); }
.rcvn-cat__name {
    font-family: var(--rcvn-display);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--rcvn-fg);
}

/* FEATURE BLOCK — left media + right carousel */
.rcvn-feature {
    padding: 32px 0;
}
.rcvn-feature__row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 32px;
    align-items: center;
}
@media (max-width: 1000px) {
    .rcvn-feature__row { grid-template-columns: 1fr; gap: 24px; }
}
.rcvn-feature__media {
    position: relative;
    overflow: hidden;
    background: var(--rcvn-bg-alt);
    aspect-ratio: 5 / 4;
    align-self: start;
    width: 50vw;
    justify-self: start;
}
@media (max-width: 1000px) {
    .rcvn-feature__media { width: 100%; }
}
.rcvn-feature__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}
.rcvn-feature__cta {
    position: absolute;
    bottom: 32px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    z-index: 2;
}
.rcvn-feature__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 0 48px 40px;
    overflow: hidden;
}
.rcvn-feature__head {
    padding-right: 40px;
    margin-bottom: 28px;
}
.rcvn-feature__title {
    font-family: var(--rcvn-display);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.03em;
    word-spacing: 0.25em;
    text-transform: uppercase;
    margin: 0 0 12px;
    line-height: 1.05;
}
.rcvn-feature__sub {
    font-size: 14px;
    line-height: 1.55;
    color: var(--rcvn-fg-soft);
    margin: 0;
    max-width: 540px;
}
/* Scroller variant inside the right column — static 3-up grid (matches ripcurl.co.id) */
.rcvn-scroller--inline .rcvn-scroller__track {
    grid-auto-columns: unset;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-flow: row;
    overflow: visible;
    padding: 0;
    gap: 12px;
}
.rcvn-scroller--inline .rcvn-scroller__arrow { display: none !important; }
/* Hide the quick-add overlay on inline (collection-feature) cards to match RC ID */
.rcvn-scroller--inline .rcvn-card__add { display: none; }

/* BANNER STRIP ---------------------------------------- */
.rcvn-banner-strip {
    position: relative;
    min-height: 380px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: #fff;
}
.rcvn-banner-strip__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 60%);
}
.rcvn-banner-strip__content {
    position: relative;
    z-index: 2;
    max-width: var(--rcvn-container);
    margin: 0 auto;
    padding: 0 60px;
    width: 100%;
}
.rcvn-banner-strip__content h2 {
    font-family: var(--rcvn-display);
    font-size: 64px;
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.005em;
    text-transform: uppercase;
    margin: 12px 0 18px;
}
.rcvn-banner-strip__sub {
    font-size: 15px;
    max-width: 460px;
    margin: 0 0 22px;
    opacity: 0.95;
}
.rcvn-banner-strip__content .rcvn-btn--primary {
    background: #fff;
    color: var(--rcvn-fg);
}

/* USP STRIP ------------------------------------------- */
.rcvn-usp {
    background: var(--rcvn-bg-dark);
    color: #fff;
    padding: 22px 0;
}
.rcvn-usp__row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    text-align: center;
}
.rcvn-usp__item strong {
    font-family: var(--rcvn-display);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 2px;
}
.rcvn-usp__item span {
    font-size: 12px;
    opacity: 0.7;
}
@media (max-width: 700px) {
    .rcvn-usp__row { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}

/* FOOTER ---------------------------------------------- */
.rcvn-footer {
    background: #fbfaf3;
    color: var(--rcvn-fg);
    padding: 48px 0 0;
    border-top: 1px solid var(--rcvn-border);
}
.rcvn-footer__grid {
    width: 100%;
    margin: 0;
    padding: 0 60px 48px;
    display: grid;
    grid-template-columns: 1fr 1.2fr 1.4fr auto;
    gap: 60px;
    box-sizing: border-box;
}
@media (max-width: 900px) { .rcvn-footer__grid { grid-template-columns: repeat(2, 1fr); gap: 32px; } }
@media (max-width: 540px) { .rcvn-footer__grid { grid-template-columns: 1fr; } }
.rcvn-footer__col h4 {
    font-family: var(--rcvn-display);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin: 0 0 20px;
    color: var(--rcvn-fg);
}
.rcvn-footer__col a {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--rcvn-fg);
    padding: 1px 0;
    text-decoration: none;
    transition: opacity .15s;
}
.rcvn-footer__col a:hover { opacity: 0.6; }
.rcvn-footer__about p {
    font-size: 12px;
    line-height: 1.55;
    color: var(--rcvn-fg);
    margin: 0;
}
.rcvn-footer__bcorp img {
    display: block;
    width: 130px;
    height: auto;
}
.rcvn-payinfo {
    width: 100%;
    box-sizing: border-box;
    padding: 48px 60px;
    border-top: 1px solid var(--rcvn-border);
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 80px;
}
.rcvn-payinfo__col h4 {
    font-family: var(--rcvn-display);
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 22px;
    color: var(--rcvn-fg);
}
.rcvn-payinfo__group { margin-bottom: 22px; }
.rcvn-payinfo__group h5 {
    font-family: var(--rcvn-body);
    font-size: 12px;
    font-weight: 600;
    margin: 0 0 10px;
    color: var(--rcvn-fg);
}
.rcvn-payinfo__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.rcvn-pay-chip {
    background: #fff;
    border: 1px solid var(--rcvn-border);
    padding: 6px 12px;
    font-family: var(--rcvn-display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--rcvn-fg);
    line-height: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
}
.rcvn-pay-chip img {
    height: 20px;
    width: 20px;
    object-fit: contain;
    display: block;
}
.rcvn-pay-chip--logo {
    padding: 6px 14px;
}
.rcvn-pay-chip--logo img {
    height: 22px;
    width: auto;
}
.rcvn-payinfo__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}
.rcvn-payinfo__head h4 { margin: 0; }
.rcvn-payinfo__social {
    display: flex;
    gap: 14px;
    color: var(--rcvn-fg);
}
.rcvn-payinfo__social a { color: inherit; transition: opacity .15s; }
.rcvn-payinfo__social a:hover { opacity: 0.6; }
.rcvn-payinfo__sub {
    font-size: 13px;
    line-height: 1.6;
    color: var(--rcvn-fg);
    margin: 0 0 16px;
    max-width: 420px;
}
.rcvn-newsletter--light {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--rcvn-border);
    background: #fff;
    max-width: 480px;
}
.rcvn-newsletter--light input {
    flex: 1;
    background: transparent;
    border: 0;
    color: var(--rcvn-fg);
    padding: 14px 16px;
    font: inherit;
    font-size: 13px;
    outline: none;
}
.rcvn-newsletter--light input::placeholder { color: rgba(0,0,0,0.4); }
.rcvn-newsletter--light button {
    background: transparent;
    border: 0;
    border-left: 1px solid var(--rcvn-border);
    color: var(--rcvn-fg);
    padding: 0 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.rcvn-newsletter--light button:hover { background: var(--rcvn-fg); color: #fff; }

.rcvn-footer__bottom {
    width: 100%;
    margin: 0;
    padding: 18px 60px;
    border-top: 1px solid var(--rcvn-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    gap: 16px;
}
.rcvn-footer__terms {
    font-size: 11px;
    color: var(--rcvn-fg-soft, #555);
    text-decoration: none;
}
.rcvn-footer__terms:hover { color: var(--rcvn-fg); }
@media (max-width: 900px) {
    .rcvn-payinfo { grid-template-columns: 1fr; gap: 40px; padding: 40px 24px; }
    .rcvn-footer__bottom { padding: 18px 24px; }
}
.rcvn-copyright {
    font-size: 11px;
    color: var(--rcvn-fg-soft, #555);
    margin: 0;
    text-align: center;
    text-align: right;
    max-width: 60%;
}

/* MOBILE ---------------------------------------------- */
@media (max-width: 1000px) {
    .rcvn-nav { display: none; }
    .rcvn-header__row { grid-template-columns: auto auto; }
    .rcvn-section__title { font-size: 26px; }
    .rcvn-banner-strip__content h2 { font-size: 40px; }
    .rcvn-section { padding: 44px 0; }
}

/* LANGUAGE SWITCHER — small EN | VN toggle in header tools area */
.rcvn-langswitch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 14px;
    font-family: var(--rcvn-display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
}
.rcvn-langswitch__opt {
    color: var(--rcvn-fg-soft, #888);
    text-decoration: none;
    padding: 2px 4px;
    transition: color .15s;
}
.rcvn-langswitch__opt.is-active { color: var(--rcvn-fg); }
.rcvn-langswitch__opt:hover { color: var(--rcvn-fg); }
.rcvn-langswitch__sep { color: var(--rcvn-border); }
@media (max-width: 700px) {
    .rcvn-langswitch { margin-right: 6px; font-size: 11px; }
}

/* SEARCH BANNER — wide hero image, title top-center, CTA bottom-right.
   Wrapper carries the bottom divider line + bottom margin so the banner
   itself stays visually flush at the top. */
.rcvn-search-banner-wrap {
    padding: 0 0 48px;
}
.rcvn-search-banner {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 7;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: block;
}
.rcvn-search-banner__title {
    position: absolute;
    top: 8%;
    left: 0;
    right: 0;
    margin: 0;
    text-align: center;
    color: #fff !important;
    font-family: var(--rcvn-display, var(--rcvn-body));
    font-weight: 700;
    font-size: clamp(48px, 8vw, 140px);
    letter-spacing: -0.03em;
    word-spacing: 0.25em;
    line-height: 1;
    text-transform: uppercase;
    text-shadow: 0 2px 18px rgba(0,0,0,0.18);
    will-change: transform;
}
.rcvn-search-banner__cta {
    position: absolute;
    right: 32px;
    bottom: 32px;
    background: #fff;
    color: var(--rcvn-fg) !important;
    padding: 16px 28px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border: 0;
    line-height: 1;
    transition: background .2s, color .2s;
}
.rcvn-search-banner__cta:hover { background: var(--rcvn-fg); color: #fff !important; }
@media (max-width: 700px) {
    .rcvn-search-banner { aspect-ratio: 4 / 5; }
    .rcvn-search-banner__cta { right: 16px; bottom: 16px; padding: 12px 20px; }
}

/* MANIFESTO — centered statement + supporting paragraph */
.rcvn-manifesto {
    padding: 96px 20px;
}
.rcvn-manifesto__inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}
.rcvn-manifesto__title {
    margin: 0 0 28px;
    font-family: var(--rcvn-display, var(--rcvn-body));
    font-weight: 700;
    font-size: clamp(20px, 2vw, 30px);
    line-height: 1.35;
    letter-spacing: -0.03em;
    word-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--rcvn-fg);
}
.rcvn-manifesto__sub {
    max-width: 520px;
    margin: 0 auto;
    font-size: 14px;
    line-height: 1.7;
    color: var(--rcvn-fg-soft, #555);
}
@media (max-width: 700px) {
    .rcvn-manifesto { padding: 56px 20px; }
    .rcvn-manifesto__title { font-size: 18px; }
}

/* RIP CURL BLOGS — fixed 50/25/25 row that fills viewport. Wide image left,
   two square images right. No horizontal scroll. Same gap as Popular Categories. */
.rcvn-blogs {
    display: flex;
    gap: 8px;
    padding: 0 20px;
    align-items: stretch;
    box-sizing: border-box;
}
.rcvn-blogs > .rcvn-blog--wide { flex: 0 0 calc(50% - 4px); aspect-ratio: 718 / 550; }
.rcvn-blog-track {
    display: flex !important;
    flex-direction: row;
    gap: 8px !important;
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden !important;
    box-sizing: border-box;
}
.rcvn-blog-track .rcvn-blog--square { flex: 1 1 0; aspect-ratio: 359 / 550; }
.rcvn-blog {
    flex: 0 0 auto;
    display: block;
    overflow: hidden;
    background: var(--rcvn-bg-alt);
    aspect-ratio: 1 / 1;
    position: relative;
    text-decoration: none;
    color: #fff;
}
.rcvn-blog__caption {
    position: absolute;
    left: 16px;
    right: 60px;
    bottom: 16px;
    color: #fff;
    z-index: 2;
    text-shadow: 0 1px 6px rgba(0,0,0,0.45);
}
.rcvn-blog__date {
    font-family: var(--rcvn-display);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
    text-transform: uppercase;
}
.rcvn-blog__title {
    font-family: var(--rcvn-display);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0;
    text-transform: uppercase;
    margin: 0;
    color: #fff !important;
    word-spacing: 0;
}
.rcvn-blog__arrow {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 36px;
    height: 36px;
    background: #fff;
    color: #000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}
.rcvn-blog__media {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}
.rcvn-blog__media::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 55%;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.55) 100%);
    pointer-events: none;
}
/* Bottom Read More button — visible on mobile, hidden on desktop (header has it there) */
.rcvn-section__cta--blogs { display: none; }
.rcvn-blog--wide   { flex-basis: calc((100% - 12px) * 0.5);  aspect-ratio: 718 / 550; }
.rcvn-blog--square { flex-basis: calc((100% - 12px) * 0.25); aspect-ratio: 359 / 550; }
.rcvn-blog__media {
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.rcvn-blog__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}
.rcvn-blog:hover .rcvn-blog__media img { transform: scale(1.04); }

/* POPULAR CATEGORIES — tight scroller + simple image+label tile */
.rcvn-section__nav {
    display: flex;
    gap: 8px;
}
.rcvn-nav-arrow {
    width: 40px;
    height: 40px;
    border: 1px solid var(--rcvn-border);
    border-radius: 999px;
    background: #fff;
    color: var(--rcvn-fg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: background .15s, color .15s, border-color .15s;
}
.rcvn-nav-arrow:hover {
    background: var(--rcvn-fg);
    color: #fff;
    border-color: var(--rcvn-fg);
}
.rcvn-scroller--tight .rcvn-scroller__track {
    grid-auto-columns: 320px;   /* matches ripcurl.co.id category tile width */
    gap: 6px;
    padding: 0 20px;
}
.rcvn-scroller--tight .rcvn-scroller__arrow { display: none; }
.rcvn-cat {
    display: block;
    text-decoration: none;
    color: inherit;
    scroll-snap-align: start;
}
.rcvn-cat__media {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--rcvn-bg-alt);
}
.rcvn-cat__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}
.rcvn-cat:hover .rcvn-cat__media img { transform: scale(1.03); }
.rcvn-cat__label {
    text-align: center;
    padding: 14px 8px 4px;
    font-family: var(--rcvn-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
}

/* =========================================================
   MOBILE OVERRIDES — kept at end so they win the cascade.
   Only fire at viewport ≤ 768px; desktop is untouched.
   ========================================================= */
@media (max-width: 768px) {
    /* HEADER — hamburger+search left, centered logo, account+cart right */
    .rcvn-header__row {
        display: grid !important;
        grid-template-columns: 1fr auto 1fr !important;
        align-items: center;
        gap: 0;
        padding: 0 12px;
        height: 56px;
    }
    .rcvn-header__mobile-left {
        display: flex;
        gap: 0;
        justify-self: start;
    }
    .rcvn-header__logo {
        justify-self: center;
        flex-shrink: 0;
    }
    .rcvn-logo__img { height: 26px; width: auto; }
    .rcvn-header__tools {
        justify-self: end;
        margin-left: 0;
        gap: 0;
    }
    /* Hide language switcher and the desktop-side search button on mobile */
    .rcvn-header__tools .rcvn-langswitch,
    .rcvn-header__tools > [aria-label="Search"] { display: none; }
    .rcvn-nav { display: none; }

    /* CAROUSELS — bigger cards, ~1.5 cards visible per swipe */
    .rcvn-scroller__track {
        grid-auto-columns: 55vw !important;
        gap: 12px !important;
        padding: 0 16px !important;
    }
    .rcvn-scroller__arrow { display: none !important; }
    /* Section heads stack vertically (title above buttons) on mobile */
    .rcvn-section__head--split {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
    .rcvn-section__title { font-size: 38px; -webkit-text-stroke: 0.5px currentColor; }
    .rcvn-section__actions { gap: 10px; }
    .rcvn-btn--dark { padding: 16px 28px; font-size: 15px; }
    /* Product card text bumps to read better on mobile */
    .rcvn-scroller__track .rcvn-card__name { font-size: 15px; line-height: 1.35; }
    .rcvn-card__price { font-size: 15px; }
    .rcvn-section--full { padding: 32px 0; }

    /* Section divider — narrower (with side margins) on mobile, not edge-to-edge */
    .rcvn-section--divided {
        border-top: 0;
        position: relative;
    }
    .rcvn-section--divided::before {
        content: "";
        position: absolute;
        top: 0;
        left: 24px;
        right: 24px;
        height: 2px;
        background: #b8b8b8;
    }
    /* Footer — tighter link spacing + about/B-Corp side-by-side row */
    .rcvn-footer { padding: 32px 0 0 !important; }
    .rcvn-footer__grid {
        display: grid !important;
        grid-template-columns: 1fr auto !important;
        grid-template-areas:
            "ql    ql"
            "help  help"
            "about bcorp" !important;
        column-gap: 16px !important;
        row-gap: 24px !important;
        padding: 0 24px 24px !important;
    }
    .rcvn-footer__col:nth-child(1) { grid-area: ql; }
    .rcvn-footer__col:nth-child(2) { grid-area: help; }
    .rcvn-footer__about            { grid-area: about; align-self: center; }
    .rcvn-footer__bcorp            { grid-area: bcorp; align-self: center; }
    .rcvn-footer__bcorp img        { width: 110px; height: auto; }
    .rcvn-footer__col h4 { font-size: 16px; margin: 0 0 14px; }
    .rcvn-footer__col a  { font-size: 15px; padding: 3px 0; }
    .rcvn-footer__about p { font-size: 15px; line-height: 1.55; }
    /* Payment + Connect block — bigger fonts on mobile */
    .rcvn-payinfo__col h4       { font-size: 18px; margin: 0 0 18px; }
    .rcvn-payinfo__group h5     { font-size: 13px; margin: 0 0 12px; }
    .rcvn-pay-chip              { font-size: 13px; padding: 7px 12px; min-height: 36px; }
    .rcvn-payinfo__sub          { font-size: 15px; line-height: 1.55; }
    .rcvn-newsletter--light input { font-size: 15px; padding: 14px 16px; }

    /* Manifesto block — slightly bigger title and supporting paragraph on mobile */
    .rcvn-manifesto__title { font-size: 22px !important; }
    .rcvn-manifesto__sub   { font-size: 17px !important; }

    /* "View All" pill CTA — keep side margin from screen edges */
    .rcvn-section__cta {
        padding: 0 40px;
        margin-top: 28px;
    }
    .rcvn-btn--pill {
        width: 100%;
        max-width: 100%;
        text-align: center;
        justify-content: center;
        white-space: normal;
        padding: 15px 35px;
        font-size: 18px;
        line-height: 1.3;
    }
    /* Mens Boardshorts feature — full-width square video on mobile */
    .rcvn-feature__media {
        width: 100% !important;
        aspect-ratio: 1 / 1 !important;
    }
    /* Bigger subtitle + bigger carousel cards inside the feature block on mobile */
    .rcvn-feature__sub { font-size: 16px; line-height: 1.5; }
    .rcvn-feature__content { padding: 24px 0 24px 16px; }
    .rcvn-feature__head { padding-right: 16px; margin-bottom: 20px; }
    .rcvn-scroller--inline .rcvn-scroller__track {
        grid-template-columns: none !important;
        grid-auto-flow: column !important;
        grid-auto-columns: 70vw !important;
        overflow-x: auto !important;
        gap: 12px !important;
    }
    .rcvn-scroller--inline .rcvn-card__media { aspect-ratio: 3 / 4; }

    /* RIP CURL BLOGS — lead is a full-width static card; the rest scroll horizontally */
    .rcvn-blog-lead {
        padding: 0 16px;
        margin-bottom: 12px;
    }
    .rcvn-blog-lead .rcvn-blog {
        display: block;
        width: 100% !important;
        aspect-ratio: 16 / 10 !important;
        height: auto !important;
        flex: initial !important;
    }
    /* Mobile blogs (ripcurl.co.id): full-width square lead + horizontal slider of square cards */
    .rcvn-blogs { flex-direction: column; gap: 10px; padding: 0; }
    .rcvn-blogs > .rcvn-blog--wide { flex: none; width: auto; margin: 0 16px; aspect-ratio: 1 / 1; }
    .rcvn-blog-track {
        flex: none !important;
        width: 100% !important;
        gap: 10px !important;
        padding: 0 16px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .rcvn-blog-track::-webkit-scrollbar { display: none; }
    .rcvn-blog-track .rcvn-blog--square {
        flex: 0 0 84vw !important;
        aspect-ratio: 1 / 1 !important;
    }
    /* Bigger blogs section title on mobile (regular section title size, not popcat) */
    .rcvn-section--divided:not(.rcvn-section--popcat) .rcvn-section__head--split .rcvn-section__title {
        font-size: 40px;
    }
    .rcvn-blog__title { font-size: 21px; }
    .rcvn-blog__date { font-size: 12px; }
    .rcvn-blog__caption { left: 18px; right: 64px; bottom: 18px; }
    .rcvn-blog--square .rcvn-blog__title { font-size: 19px; }
    .rcvn-blog--square .rcvn-blog__caption { left: 18px; right: 64px; bottom: 18px; }
    /* Blogs on mobile (matches ripcurl.co.id): title only — no Read More in header,
       no bottom CTA. Essentials "Shop Mens/Womens" stay visible (different section). */
    .rcvn-section__cta--blogs { display: none; }
    .rcvn-section:has(.rcvn-blog-track) .rcvn-section__head .rcvn-section__actions { display: none; }
    .rcvn-btn--blogs {
        text-align: center;
        justify-content: center;
        padding: 14px 32px;
        font-size: 13px;
        letter-spacing: 0.14em;
    }

    /* LIVE THE SEARCH banner — taller image + bigger centered CTA on mobile */
    .rcvn-search-banner {
        aspect-ratio: auto !important;
        height: 95vh !important;
        min-height: 600px !important;
    }
    .rcvn-search-banner__title {
        top: 0;
        text-align: left;
        padding: 0 24px;
        font-size: 76px !important;
        line-height: 0.92;
        word-spacing: 0 !important;
        letter-spacing: -0.04em !important;
    }
    .rcvn-search-banner__cta {
        right: 24px !important;
        left: 24px !important;
        bottom: 24px !important;
        padding: 18px 24px !important;
        font-size: 14px !important;
        text-align: center;
        justify-content: center;
        display: flex;
    }

    /* Popular Categories — bigger images, smaller title (#303030), rounded-square arrows */
    .rcvn-scroller--tight .rcvn-scroller__track {
        grid-auto-columns: 85vw !important;
        gap: 10px !important;
        padding: 0 16px !important;
    }
    .rcvn-cat__media { aspect-ratio: 4 / 5; }
    .rcvn-cat__label { font-size: 13px; padding: 14px 6px 4px; letter-spacing: 0.14em; }
    .rcvn-section__nav { gap: 8px; }
    .rcvn-nav-arrow {
        width: 30px;
        height: 30px;
        border-radius: 4px;
        box-shadow: none;
    }
    .rcvn-nav-arrow svg { width: 14px; height: 14px; }
    /* Popular Categories title is the only one in #303030 (slightly softer than the full black we use elsewhere) */
    .rcvn-section--popcat .rcvn-section__title {
        color: #303030;
        font-size: 26px;
        font-weight: 600;
    }

    /* Special Offers pill tabs — flat horizontal scroll strip on mobile */
    .rcvn-tabs--pill {
        width: auto;
        margin: 0 16px 24px;
        padding: 5px;
        gap: 0;
        border: 1.5px solid #9a9a9a;
        border-radius: 999px;
        background: #fff;
        overflow: visible;
        flex-wrap: nowrap;
        justify-content: flex-start;
    }
    .rcvn-tabs--pill .rcvn-tab {
        white-space: nowrap;
        flex-shrink: 0;
        padding: 9px 22px;
        font-size: 13px;
        letter-spacing: 0.05em;
        border: 0;
        border-radius: 999px;
    }
}

/* SEARCH OVERLAY ----------------------------------------- */
.rcvn-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--rcvn-border);
    z-index: 120;
    transform: translateY(-100%);
    transition: transform .25s ease;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}
.rcvn-search-overlay.is-open {
    transform: translateY(0);
}
.rcvn-search-form {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 900px;
    margin: 0 auto;
    padding: 18px 24px;
}
.rcvn-search-form input[type="search"] {
    flex: 1;
    border: 0;
    background: transparent;
    font: inherit;
    font-size: 18px;
    padding: 8px 0;
    outline: none;
    color: var(--rcvn-fg);
}
.rcvn-search-form input[type="search"]::placeholder {
    color: rgba(0, 0, 0, 0.4);
}
.rcvn-search-form button {
    background: transparent;
    border: 0;
    color: var(--rcvn-fg);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.rcvn-search-form button:hover { opacity: 0.6; }
.rcvn-search-form__close {
    border-left: 1px solid var(--rcvn-border) !important;
    padding-left: 16px !important;
}

/* SEARCH MODAL (centered popup, RC Indonesia style) ------ */
.rcvn-search-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    pointer-events: none;
    opacity: 0;
    transition: opacity .2s ease;
}
.rcvn-search-modal.is-open {
    pointer-events: auto;
    opacity: 1;
}
.rcvn-search-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}
.rcvn-search-modal__panel {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(720px, calc(100% - 32px));
    max-height: calc(100vh - 64px);
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.rcvn-search-modal__form {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--rcvn-border);
}
.rcvn-search-modal__icon { color: rgba(0, 0, 0, 0.55); flex: 0 0 auto; }
.rcvn-search-modal__form input[type="search"] {
    flex: 1;
    border: 0;
    background: transparent;
    font: inherit;
    font-size: 15px;
    outline: none;
    color: var(--rcvn-fg);
    padding: 6px 0;
}
.rcvn-search-modal__form input[type="search"]::placeholder { color: rgba(0, 0, 0, 0.4); }
.rcvn-search-modal__close {
    background: transparent;
    border: 0;
    color: var(--rcvn-fg);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.rcvn-search-modal__close:hover { opacity: 0.6; }
.rcvn-search-modal__body {
    padding: 18px;
    overflow-y: auto;
    flex: 1 1 auto;
}
.rcvn-search-modal__section + .rcvn-search-modal__section { margin-top: 24px; }
.rcvn-search-modal__section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 12px;
}
.rcvn-search-modal__section-head h3 {
    font-family: var(--rcvn-display);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0;
}
.rcvn-search-modal__clear {
    background: transparent;
    border: 0;
    cursor: pointer;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(0, 0, 0, 0.55);
    padding: 0;
}
.rcvn-search-modal__clear:hover { color: var(--rcvn-fg); }
.rcvn-search-modal__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.rcvn-search-product {
    display: block;
    text-decoration: none;
    color: var(--rcvn-fg);
}
.rcvn-search-product__media {
    aspect-ratio: 4 / 5;
    background: #f5f5f5;
    overflow: hidden;
    margin-bottom: 6px;
}
.rcvn-search-product__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.rcvn-search-product__name {
    font-size: 12px;
    line-height: 1.3;
    margin-bottom: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.rcvn-search-product__price {
    font-size: 12px;
    font-weight: 700;
}
@media (max-width: 640px) {
    .rcvn-search-modal__grid { grid-template-columns: repeat(2, 1fr); }
    .rcvn-search-modal__panel { width: calc(100% - 16px); max-height: calc(100vh - 32px); }
}

/* SINGLE PRODUCT (PDP) — RC Indonesia clone --------------- */
/* Break out of any parent container constraints (Blocksy/WC wrappers) */
body.single-product .ct-container,
body.single-product .ct-container-narrow,
body.single-product .entry-content,
body.single-product .ct-main-content,
body.single-product .rcvn-main,
body.single-product main#main,
body.single-product article,
body.single-product .product {
    max-width: none !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}
.rcvn-pdp { padding: 0; width: 100%; }
.rcvn-pdp__layout {
    display: grid;
    grid-template-columns: 60% 40%;
    gap: 0;
    align-items: start;
}
.rcvn-pdp__gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    background: #f5f5f5;
}
.rcvn-pdp__img {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #f5f5f5;
}
.rcvn-pdp__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.rcvn-pdp__img--placeholder {
    background: linear-gradient(135deg, #eee, #e0e0e0);
    aspect-ratio: 4 / 5;
}
/* Desktop gallery rhythm (matches Rip Curl Thailand): every 3rd image
   (1st, 4th, …) spans the full width; the rest sit in a 2-up row. */
@media (min-width: 769px) {
    .rcvn-pdp__gallery .rcvn-pdp__img:nth-child(3n+1) { grid-column: 1 / -1; }
}
/* Thumbnail strip — desktop keeps the full image grid, so hide it here */
.rcvn-pdp__thumbs { display: none; }
/* Info panel — normal flow (NOT sticky), padded ----------- */
.rcvn-pdp__info {
    position: static;
    align-self: start;
}
.rcvn-pdp__info-inner {
    padding: 48px 56px;
    max-width: none;
    width: 100%;
}
.rcvn-pdp__title {
    font-family: var(--rcvn-display);
    /* match Rip Curl Thailand product title scale: 24px mobile / 30px desktop */
    font-size: clamp(24px, 2.4vw, 30px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: #1a1a1a;
    margin: 0 0 12px;
}
.rcvn-pdp__price {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.2;
}
.rcvn-pdp__price del { color: rgba(0, 0, 0, 0.4); font-weight: 400; margin-right: 8px; }
.rcvn-pdp__price ins { text-decoration: none; color: var(--rcvn-fg); }
.rcvn-pdp__sku { font-size: 14px; font-weight: 400; color: rgba(0,0,0,0.55); margin-top: 8px; }
.rcvn-pdp__divider {
    border: 0;
    border-top: 1px solid var(--rcvn-border);
    margin: 24px 0;
}
.rcvn-pdp__attr {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-size: 13px;
    margin-bottom: 18px;
}
.rcvn-pdp__attr-label { color: rgba(0, 0, 0, 0.6); }
.rcvn-pdp__attr-value { font-weight: 600; }

/* Variation form — restyle Woo's default markup ---------- */
.rcvn-pdp__info .variations_form .variations { width: 100%; border-collapse: collapse; margin-bottom: 18px; }
.rcvn-pdp__info .variations_form .variations tr { display: block; margin-bottom: 16px; }
/* Colour row shows as a labelled box swatch (matches ripcurl.co.th) */
.rcvn-pdp__info .variations_form .variations th,
.rcvn-pdp__info .variations_form .variations td { display: block; padding: 0; text-align: left; border: 0; background: none; width: 100%; }
.rcvn-pdp__info .variations_form .variations th.label label {
    font-size: 13px;
    color: var(--rcvn-fg);
    margin-bottom: 10px;
    display: block;
    font-weight: 600;
}
.rcvn-pdp__info .variations_form .reset_variations {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(0, 0, 0, 0.5);
    display: inline-block;
    margin-top: 8px;
}
/* Native select fallback — visible while JS swatches load */
.rcvn-pdp__info select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--rcvn-border);
    background: #fff;
    font: inherit;
    font-size: 14px;
    cursor: pointer;
}
/* Box-style swatches injected by JS — equal-width, span full row */
.rcvn-swatch-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
}
.rcvn-swatch {
    flex: 1 1 0;
    min-width: 0;
    /* match Rip Curl Thailand size buttons: 16px text, compact 11px/15px padding */
    padding: 11px 15px;
    border: 1px solid var(--rcvn-border);
    background: #fff;
    font: inherit;
    font-size: 16px;
    font-weight: 400;
    color: #555;
    cursor: pointer;
    text-align: center;
    text-transform: uppercase;
    transition: all .15s ease;
    position: relative;
}
.rcvn-swatch:hover { border-color: var(--rcvn-fg); }
/* Colour swatch — sized to its label, left-aligned (not full-row like sizes) */
.rcvn-swatch-group--color { flex-wrap: wrap; }
.rcvn-swatch--color { flex: 0 0 auto; padding: 14px 24px; }
/* Selected = outlined (white box, dark border), matching ripcurl.co.th — not filled */
.rcvn-swatch.is-selected {
    background: #fff;
    color: var(--rcvn-fg);
    border-color: var(--rcvn-fg);
    box-shadow: inset 0 0 0 1px var(--rcvn-fg);
}
.rcvn-swatch.is-disabled {
    color: rgba(0, 0, 0, 0.28);
    cursor: not-allowed;
    background: #fff;
    border-color: #ececec;
}

/* Quantity + Add to Cart row */
.rcvn-pdp__info .woocommerce-variation { margin-bottom: 14px; }
.rcvn-pdp__info .woocommerce-variation-price .price {
    font-size: 16px;
    font-weight: 600;
}
.rcvn-pdp__info .woocommerce-variation-availability { display: none !important; }
.rcvn-pdp__info form.cart {
    display: block;
    margin-top: 18px;
}
/* The qty + ADD TO CART live inside this wrapper — flex them as one row */
.rcvn-pdp__info .woocommerce-variation-add-to-cart {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
    margin-top: 18px;
}
/* "Quantity" label above the stepper (matches ripcurl.co.th) */
.rcvn-pdp__info .woocommerce-variation-add-to-cart::before {
    content: "Quantity";
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--rcvn-fg);
    margin-bottom: -2px;
}
/* Hide Woo's "Clear" link — RC.id doesn't show one */
.rcvn-pdp__info .reset_variations { display: none !important; }
.rcvn-pdp__info .quantity {
    display: flex;
    align-items: center;
    border: 1px solid var(--rcvn-border);
    flex: 0 0 auto;
    width: 130px;
    height: 52px;
}
.rcvn-pdp__info .quantity input.qty {
    width: 100%;
    border: 0;
    background: transparent;
    text-align: center;
    font: inherit;
    font-size: 15px;
    padding: 0;
    height: 100%;
    -moz-appearance: textfield;
}
.rcvn-pdp__info .quantity input.qty::-webkit-outer-spin-button,
.rcvn-pdp__info .quantity input.qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.rcvn-pdp__info button.single_add_to_cart_button {
    width: 100%;
    flex: none;
    background: var(--rcvn-fg);
    color: #fff;
    border: 0;
    height: 52px;
    padding: 0 22px;
    font: inherit;
    font-size: 16px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
    line-height: 1.2;
    cursor: pointer;
    transition: background .15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.rcvn-pdp__info button.single_add_to_cart_button:hover { background: #333; }
.rcvn-pdp__info button.single_add_to_cart_button.disabled,
.rcvn-pdp__info button.single_add_to_cart_button[disabled] {
    background: #bbb;
    cursor: not-allowed;
}

/* Size guide — black button matching Rip Curl Thailand (#232323, 16px/400, 13px 25px, sharp) */
.rcvn-pdp__size-guide {
    display: inline-block;
    margin-top: 16px;
    background: #232323;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: normal;
    text-transform: none;
    padding: 13px 25px;
    border: 1px solid #232323;
    border-radius: 0;
    text-align: center;
    transition: background .15s ease;
}
.rcvn-pdp__size-guide:hover { background: #000; }

/* Details — sits inside the info column, directly under the size guide (matches Thailand) */
.rcvn-pdp__details {
    margin-top: 26px;
}
.rcvn-pdp__short, .rcvn-pdp__desc {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 18px;
}
/* Thailand-style details block: Style Code + name + material + features */
.rcvn-pdp__meta {
    font-size: 14px;
    line-height: 1.6;
    color: var(--rcvn-fg);
    margin: 0 0 2px;
}
.rcvn-pdp__meta--name { text-transform: uppercase; margin-bottom: 8px; }
.rcvn-pdp__desc { margin-bottom: 0; }
.rcvn-pdp__desc p { margin: 0 0 2px; }
.rcvn-pdp__desc ul { margin: 2px 0 0; padding-left: 20px; list-style: disc; }
.rcvn-pdp__desc li { font-size: 14px; line-height: 1.6; margin: 0; }
.rcvn-pdp__specs {
    width: 100%;
    max-width: 540px;
    border-collapse: collapse;
    margin-top: 18px;
}
.rcvn-pdp__specs th, .rcvn-pdp__specs td {
    padding: 12px 8px;
    text-align: left;
    border-top: 1px solid var(--rcvn-border);
    font-size: 13px;
    vertical-align: top;
}
.rcvn-pdp__specs th { font-weight: 700; width: 180px; }
.rcvn-pdp__specs tr:last-child th,
.rcvn-pdp__specs tr:last-child td { border-bottom: 1px solid var(--rcvn-border); }

/* Related products --------------------------------------- */
.rcvn-pdp__related {
    padding: 40px 36px 80px;
    border-top: 1px solid var(--rcvn-border);
}
.rcvn-pdp__related-title {
    font-family: var(--rcvn-display);
    font-size: 20px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-align: center;
    margin: 0 0 24px;
}
.rcvn-pdp__related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.rcvn-pdp__related-card {
    text-decoration: none;
    color: var(--rcvn-fg);
    text-align: center;
}
.rcvn-pdp__related-media {
    aspect-ratio: 4 / 5;
    background: #f5f5f5;
    overflow: hidden;
    margin-bottom: 8px;
}
.rcvn-pdp__related-media { position: relative; }
.rcvn-pdp__related-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rcvn-pdp__related-badge {
    position: absolute;
    top: 8px; right: 8px;
    z-index: 2;
    background: #8b1a2b;
    color: #fff;
    font-family: var(--rcvn-display);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    letter-spacing: 0.01em;
}
.rcvn-pdp__related-name { font-size: 14px; line-height: 1.3; margin-bottom: 2px; text-transform: uppercase; }
.rcvn-pdp__related-price { font-size: 14px; font-weight: 400; }
.rcvn-pdp__related-price ins { text-decoration: none; color: var(--rcvn-fg); }
.rcvn-pdp__related-price del { color: rgba(0,0,0,0.4); font-weight: 400; margin-left: 6px; }

/* Sticky bottom bar -------------------------------------- */
.rcvn-pdp__sticky-bar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    background: #fff;
    border-top: 1px solid var(--rcvn-border);
    padding: 10px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    z-index: 80;
    transform: translateY(100%);
    transition: transform .25s ease;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
}
.rcvn-pdp__sticky-bar.is-visible { transform: translateY(0); }
.rcvn-pdp__sticky-info { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1 1 auto; }
/* inner text wrapper must be allowed to shrink so the name can ellipsis (fixes price/name overlap) */
.rcvn-pdp__sticky-info > div { min-width: 0; overflow: hidden; }
.rcvn-pdp__sticky-info img { width: 44px; height: 56px; object-fit: cover; flex: 0 0 44px; }
.rcvn-pdp__sticky-name {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rcvn-pdp__sticky-variant { font-size: 11px; color: rgba(0, 0, 0, 0.55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rcvn-pdp__sticky-cta { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.rcvn-pdp__sticky-price { font-size: 13px; font-weight: 700; white-space: nowrap; }
.rcvn-pdp__sticky-cta .rcvn-btn--dark {
    background: var(--rcvn-fg);
    color: #fff;
    border: 0;
    padding: 12px 22px;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* PDP responsive ---------------------------------------- */
@media (max-width: 1024px) {
    .rcvn-pdp__layout { grid-template-columns: 1fr; }
    .rcvn-pdp__info { position: static; height: auto; overflow: visible; }
    .rcvn-pdp__info-inner { padding: 28px 20px; }
    .rcvn-pdp__details { padding: 32px 20px; }
    .rcvn-pdp__related { padding: 32px 20px 60px; }
    .rcvn-pdp__related-grid { grid-template-columns: repeat(2, 1fr); }
    .rcvn-pdp__sticky-bar { padding: 8px 14px; }
    .rcvn-pdp__sticky-info img { width: 36px; height: 46px; flex: 0 0 36px; }

    /* MOBILE PDP GALLERY — Rip Curl Thailand layout:
       one main image + horizontal thumbnail strip below (NOT the full stack). */
    .rcvn-pdp__gallery { grid-template-columns: 1fr; gap: 0; }
    .rcvn-pdp__gallery .rcvn-pdp__img { display: none; }
    .rcvn-pdp__gallery .rcvn-pdp__img.is-active { display: block; }
    /* Fallback before JS runs (or if JS fails): show the first image only while
       nothing is active yet, so the gallery is never blank and never doubled. */
    .rcvn-pdp__gallery:not(:has(.is-active)) .rcvn-pdp__img:first-child { display: block; }

    .rcvn-pdp__thumbs {
        display: flex;
        gap: 6px;
        padding: 12px 16px 0;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .rcvn-pdp__thumbs::-webkit-scrollbar { display: none; }
    .rcvn-pdp__thumb {
        flex: 0 0 58px;
        height: 72px;
        padding: 0;
        background: none;
        border: 0;
        border-bottom: 2px solid transparent;
        cursor: pointer;
        overflow: hidden;
        transition: border-color .15s;
    }
    .rcvn-pdp__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .rcvn-pdp__thumb.is-active { border-bottom-color: var(--rcvn-fg, #1a1a1a); }
}

/* MOBILE NAV DRAWER -------------------------------------- */
.rcvn-drawer {
    position: fixed;
    inset: 0;
    z-index: 100;
    pointer-events: none;
}
.rcvn-drawer.is-open { pointer-events: auto; }
.rcvn-drawer__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity .25s ease;
}
.rcvn-drawer.is-open .rcvn-drawer__overlay { opacity: 1; }
.rcvn-drawer__panel {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: min(420px, 88vw);
    background: #333333;
    color: #fff;
    transform: translateX(-100%);
    transition: transform .3s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
}
.rcvn-drawer.is-open .rcvn-drawer__panel { transform: translateX(0); }
.rcvn-drawer__close {
    background: none;
    border: 0;
    color: #fff;
    cursor: pointer;
    padding: 16px;
    align-self: flex-start;
}
.rcvn-drawer__nav {
    display: flex;
    flex-direction: column;
    padding: 8px 0 0;
}
.rcvn-drawer__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 24px;
    color: #fff !important;
    text-decoration: none;
    font-family: var(--rcvn-display);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    transition: opacity .15s;
    font-size: 28px;
}
.rcvn-drawer__link:hover { opacity: 0.7; }
.rcvn-drawer__link svg { opacity: 0.6; }
.rcvn-drawer__link--accent {
    color: var(--rcvn-sale, #e74c3c) !important;
    border-bottom: 0;
}
.rcvn-drawer__lang {
    display: flex;
    gap: 10px;
    padding: 24px 24px 8px;
    font-family: var(--rcvn-display);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.55);
}
.rcvn-drawer__lang-opt {
    color: inherit;
    text-decoration: none;
    padding: 4px 6px;
}
.rcvn-drawer__lang-opt.is-active { color: #fff; }
.rcvn-drawer__lang span { color: rgba(255, 255, 255, 0.30); }
.rcvn-drawer__featured {
    margin-top: auto;
    padding: 16px 0 24px;
}
.rcvn-drawer__featured-track {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 16px;
    scrollbar-width: none;
}
.rcvn-drawer__featured-track::-webkit-scrollbar { display: none; }
.rcvn-drawer__product {
    flex: 0 0 auto;
    width: 140px;
    color: #fff !important;
    text-decoration: none;
}
.rcvn-drawer__product-media {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #2a2a2a;
}
.rcvn-drawer__product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.rcvn-drawer__product-media .rcvn-badge {
    position: absolute;
    top: 8px;
    left: 0;
}
.rcvn-drawer__product-name {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
    margin-top: 8px;
    padding: 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.rcvn-drawer__product-price {
    font-size: 18px;
    font-weight: 700;
    margin-top: 4px;
    padding: 0 4px;
}
/* Lock body scroll when drawer is open */
body.rcvn-no-scroll { overflow: hidden; }

/* ===== Homepage match to ripcurl.co.id (2026 refresh) ===== */

/* Hero — swap to the mobile crop on small screens */
@media (max-width: 768px) {
    .rcvn-hero { background-image: var(--hero-mobile) !important; aspect-ratio: 390 / 651; }
}

/* JOIN US / VIP DEALS strip (matches ripcurl.co.id) */
.rcvn-vip { padding-top: 28px; padding-bottom: 28px; }
.rcvn-vip__inner { display: flex; align-items: stretch; gap: 12px; padding: 0 24px; }
.rcvn-vip__join {
    flex: 0 0 250px;
    background: #fff;
    border: 1px solid var(--rcvn-border, #e6e6e6);
    border-radius: 6px;
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
}
.rcvn-vip__badge {
    font-size: 11px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700;
    color: var(--rcvn-sale, #c8102e);
    background: #fbe2e7;
    padding: 4px 14px;
    border-radius: 999px;
}
.rcvn-vip__title { font-family: var(--rcvn-display); font-size: 22px; font-weight: 700; margin: 0; }
.rcvn-vip__note { font-size: 13px; line-height: 1.5; color: rgba(0,0,0,.6); margin: 0; }
.rcvn-vip__cta { width: 100%; justify-content: center; text-align: center; margin-top: 4px; }
.rcvn-vip__deals {
    display: flex; gap: 12px;
    flex: 1 1 0; min-width: 0;
    height: 188px;
    overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.rcvn-vip__deals::-webkit-scrollbar { display: none; }
.rcvn-vip__deal { flex: 0 0 auto; height: 100%; position: relative; display: block; border-radius: 6px; overflow: hidden; }
.rcvn-vip__deal img { height: 100%; width: auto; display: block; }
.rcvn-vip__deal.is-locked img { filter: grayscale(1) brightness(1.08); opacity: 0.55; }
.rcvn-vip__noteligible {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    background: #fff; color: var(--rcvn-sale, #c8102e);
    border: 1px solid var(--rcvn-sale, #c8102e);
    font-size: 12px; font-weight: 700; letter-spacing: .02em;
    padding: 5px 10px; white-space: nowrap;
}
@media (max-width: 768px) {
    .rcvn-vip__inner { flex-direction: column; padding: 0 16px; }
    .rcvn-vip__join { flex: none; width: 100%; padding: 26px 20px; }
    .rcvn-vip__deals { width: 100%; flex: none; height: 160px; }
}

/* LIVE THE SEARCH — full-bleed wave hero with overlaid title + button (ripcurl.co.id) */
.rcvn-lts {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 48px 40px;
    overflow: hidden;
}
.rcvn-lts__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.12) 0%, rgba(0,0,0,0) 45%);
    pointer-events: none;
}
.rcvn-lts .rcvn-lts__title {
    position: relative;
    font-family: var(--rcvn-display);
    font-weight: 800;
    font-size: clamp(48px, 9vw, 132px);
    letter-spacing: .01em;
    line-height: 0.92;
    color: #fff !important;
    margin: 0;
    max-width: 100%;   /* full-width so the title stays on one line like ID (mobile keeps 80% below) */
    text-shadow: 0 2px 24px rgba(0,0,0,0.18);
}
.rcvn-lts__btn {
    position: relative;
    margin-top: auto;
    align-self: center;
    width: 100%;
    max-width: 520px;
    background: #fff;
    color: var(--rcvn-fg, #1a1a1a);
    text-align: center;
    text-decoration: none;
    padding: 18px 30px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.rcvn-lts__btn:hover { background: #f0f0f0; }
@media (max-width: 768px) {
    .rcvn-lts { min-height: 100vh; padding: 36px 22px 28px; }
    .rcvn-lts .rcvn-lts__title { max-width: 80%; font-size: clamp(44px, 15vw, 72px); }
}

/* ============================================================
   Typography alignment to Rip Curl Indonesia — measured 2026-06.
   Archivo Narrow throughout; weights / sizes / letter-spacing
   matched element-by-element to the live ID homepage. Forced with
   !important to win over existing descendant-selector rules. ID
   never uses positive tracking, so spurious +tracking is removed.
   ============================================================ */

/* Hero headline — ID 72px / 600 / -0.03em uppercase */
.rcvn-hero__title{
    font-size: clamp(40px, 5vw, 72px) !important;
    font-weight: 600 !important;
    letter-spacing: -0.03em !important;
    word-spacing: normal !important;
}
/* Hero supporting copy — ID 600 / 16px / -0.03em */
.rcvn-hero__sub{
    font-weight: 600 !important;
    font-size: 16px !important;
    letter-spacing: -0.03em !important;
}

/* Section headings — ID 700 / -0.03em / word-spacing normal; 40 main, 36 feature, 32 categories */
.rcvn-section__title{
    font-size: clamp(28px, 2.9vw, 40px) !important;
    font-weight: 700 !important;
    letter-spacing: -0.03em !important;
    word-spacing: normal !important;
}
.rcvn-section--popcat .rcvn-section__title{
    font-size: clamp(24px, 2.3vw, 32px) !important;
}
.rcvn-feature__title{
    font-size: clamp(26px, 2.6vw, 36px) !important;
    font-weight: 700 !important;
    letter-spacing: -0.03em !important;
    word-spacing: normal !important;
}

/* Product card names — ID 16px / 700 / -0.03em (-0.48px) / uppercase */
.rcvn-card__name{
    font-size: 16px !important;
    font-weight: 700 !important;
    letter-spacing: -0.03em !important;
    word-spacing: normal !important;
}
/* Category tile labels — same card-title style */
.rcvn-cat__label{
    font-size: 16px !important;
    font-weight: 700 !important;
    letter-spacing: normal !important;
    text-transform: uppercase !important;
}
/* Prices — ID 600 / -0.03em */
.rcvn-card__price{
    font-weight: 600 !important;
    letter-spacing: -0.03em !important;
}

/* Buttons — ID 400 weight, normal tracking; primary CTAs 18px */
.rcvn-btn,
.rcvn-btn--pill,
.rcvn-btn--dark,
.rcvn-hero__ctas a,
.rcvn-feature__cta,
.rcvn-feature__cta a,
.rcvn-vip__cta{
    font-weight: 400 !important;
    letter-spacing: normal !important;
}
.rcvn-hero__ctas a,
.rcvn-btn--pill{
    font-size: 18px !important;
}

/* JOIN US — ID h3 900 / 22px / -0.03em */
.rcvn-vip__title{
    font-weight: 900 !important;
    font-size: 22px !important;
    letter-spacing: -0.03em !important;
    word-spacing: normal !important;
}
/* Blog card titles — ID h3 700 / 24px / normal */
.rcvn-blog__title{
    font-weight: 700 !important;
    font-size: clamp(18px, 1.7vw, 24px) !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
}
/* LIVE THE SEARCH title — ID 142px / 900 / -0.04em / line-height 0.85, one line */
.rcvn-lts .rcvn-lts__title{
    font-weight: 900 !important;
    font-size: clamp(56px, 9.9vw, 142px) !important;
    letter-spacing: -0.04em !important;
    line-height: 0.85 !important;
    word-spacing: normal !important;
}
/* LIVE THE SEARCH button — ID 16px / 900 / uppercase / padding 20px 50px / auto width */
.rcvn-lts__btn{
    width: auto !important;
    max-width: none !important;
    align-self: center;
    padding: 20px 50px !important;
    font-size: 16px !important;
    font-weight: 900 !important;
    letter-spacing: normal !important;
    text-transform: uppercase !important;
}
/* Desktop LTS layout matches ID: centered title up top, compact button bottom-right.
   Scoped to desktop so the (already-good) mobile layout is untouched. */
@media (min-width: 769px){
    .rcvn-lts{ padding: 48px 72px 72px !important; }
    .rcvn-lts .rcvn-lts__title{ width: 100% !important; text-align: center !important; }
    .rcvn-lts__btn{ align-self: flex-end !important; }
}
/* Mobile LTS: ID uses a FULL-WIDTH button (desktop is compact). Restore it. */
@media (max-width: 768px){
    .rcvn-lts__btn{ width: 100% !important; max-width: none !important; align-self: stretch !important; }
}

/* Body copy — ID paragraphs are 400 weight, normal tracking, 18px */
.rcvn-feature__sub,
.rcvn-manifesto__sub{
    font-weight: 400 !important;
    font-size: 18px !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
}
/* VIP note — ID 13px / 400 / normal */
.rcvn-vip__note{
    font-weight: 400 !important;
    font-size: 13px !important;
    letter-spacing: normal !important;
}
/* Blog date label — remove spurious positive tracking */
.rcvn-blog__date{
    letter-spacing: normal !important;
}
/* VIP "Not Eligible" overlay — ID 10px / 800 / normal / UPPERCASE */
.rcvn-vip__noteligible{
    font-weight: 800 !important;
    font-size: 10px !important;
    letter-spacing: normal !important;
    text-transform: uppercase !important;
}

/* Header nav — ID 700 / 16px / normal tracking (Blocksy defaults to 600/14) */
.ct-main-navigation a,
.ct-menu-link,
header nav a,
header .menu > li > a{
    font-weight: 700 !important;
    font-size: 16px !important;
    letter-spacing: normal !important;
}
