/* =========================================================
   Tienda RV Distribuidora - Catálogo
   Estilo: encabezado negro, acento naranja, botones píldora
   ========================================================= */

:root {
    --rv-black: #000;
    --rv-white: #fff;
    --rv-text: #111;
    --rv-muted: #8a8a8a;
    --rv-border: rgba(0, 0, 0, .1);
    --rv-soft: #f5f5f5;
    --rv-accent: #e67e22;
    --rv-accent-dark: #d27611;
    --rv-yellow: #f1c40f;
    --rv-green: #3caf65;
    --rv-red: #cc4845;
    --rv-radius: 10px;
    --rv-radius-lg: 20px;
    --rv-font: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --rv-font-head: "Golos Text", "Instrument Sans", system-ui, sans-serif;
}

body.rv-body {
    font-family: var(--rv-font);
    font-size: 14px;
    color: var(--rv-text);
    background: var(--rv-white);
}

.rv-body h1, .rv-body h2, .rv-body h3, .rv-body h4, .rv-body h5, .rv-body h6 {
    font-family: var(--rv-font-head);
}

.rv-body a { color: inherit; }

/* ---------- Barra de anuncios ---------- */
.rv-adbar {
    background: var(--rv-accent);
    color: #fff;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 16px;
    letter-spacing: .3px;
}

/* ---------- Encabezado ---------- */
.rv-head {
    background: var(--rv-black);
    color: #fff;
    z-index: 1030;
}
.rv-head-row {
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 72px;
}
.rv-icon-btn {
    background: none;
    border: 0;
    color: #fff;
    font-size: 20px;
    padding: 6px;
    line-height: 1;
}
.rv-logo {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
    text-decoration: none;
    color: #fff !important;
    flex-shrink: 0;
}
.rv-logo-main {
    font-family: var(--rv-font-head);
    font-weight: 700;
    font-size: 22px;
    letter-spacing: -.3px;
}
.rv-logo-sub {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--rv-accent);
    font-weight: 600;
}

.rv-search {
    position: relative;
    flex: 1;
    max-width: 560px;
    margin: 0 auto;
    display: flex;
}
.rv-search input {
    width: 100%;
    border: 0;
    border-radius: 40px;
    background: #fff;
    color: #000;
    padding: 11px 48px 11px 20px;
    font-size: 14px;
    outline: none;
}
.rv-search input::-webkit-search-cancel-button { cursor: pointer; }
.rv-search button {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #000;
}
.rv-search-mobile {
    max-width: none;
    padding-bottom: 12px;
}
.rv-suggest {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    color: #000;
    border-radius: var(--rv-radius);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .18);
    max-height: 420px;
    overflow-y: auto;
    z-index: 1050;
}
.rv-search-mobile .rv-suggest { top: calc(100% - 6px); }
.rv-suggest a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 14px;
    text-decoration: none;
    border-bottom: 1px solid var(--rv-border);
}
.rv-suggest a:last-child { border-bottom: 0; }
.rv-suggest a:hover, .rv-suggest a.active { background: var(--rv-soft); }
.rv-suggest img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 6px;
    background: #fff;
    flex-shrink: 0;
}
.rv-suggest .s-name {
    font-weight: 600;
    font-size: 13px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.rv-suggest .s-code { font-size: 12px; color: var(--rv-muted); }
.rv-suggest .s-price { margin-left: auto; font-weight: 700; white-space: nowrap; }
.rv-suggest .s-nostock { margin-left: auto; font-size: 12px; color: var(--rv-red); white-space: nowrap; }

.rv-head-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: auto;
}
.rv-head-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff !important;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}
.rv-head-link i { font-size: 20px; }
.rv-account {
    flex-direction: column;
    align-items: flex-end;
    font-size: 13px;
    line-height: 1.35;
}
.rv-account a { color: #fff !important; text-decoration: none; }
.rv-account a:hover { text-decoration: underline; }
.rv-cart { position: relative; }
.rv-cart .rv-cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--rv-yellow) !important;
    color: #000;
    font-size: 11px;
    border-radius: 20px;
    min-width: 19px;
    padding: 3px 5px;
}

/* ---------- Navegación de categorías ---------- */
.rv-nav { border-top: 1px solid rgba(255, 255, 255, .15); }
.rv-nav-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px 24px;
    margin: 0;
    padding: 0;
}
.rv-nav-list > li { position: relative; }
.rv-nav-list > li > a {
    display: block;
    padding: 13px 0;
    color: #fff !important;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .6px;
    border-bottom: 2px solid transparent;
}
.rv-nav-list > li > a:hover,
.rv-nav-list > li > a.active { border-bottom-color: var(--rv-accent); }
.rv-caret { font-size: 9px; margin-left: 3px; opacity: .7; }
.rv-mega {
    display: none;
    position: absolute;
    top: 100%;
    left: -20px;
    min-width: 280px;
    background: #fff;
    color: #000;
    border-radius: 0 0 var(--rv-radius) var(--rv-radius);
    box-shadow: 0 14px 32px rgba(0, 0, 0, .18);
    padding: 18px 20px;
    z-index: 1040;
}
.rv-mega-right { left: auto; right: -20px; }
.rv-nav-item:hover .rv-mega,
.rv-nav-item:focus-within .rv-mega { display: block; }
.rv-mega-all {
    display: block;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--rv-border);
}
.rv-mega-cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(160px, 1fr));
    gap: 6px 24px;
}
.rv-mega-cols-1 { grid-template-columns: 1fr; }
.rv-mega-cols a {
    text-decoration: none;
    font-size: 13px;
    color: #333;
    padding: 3px 0;
}
.rv-mega a:hover { color: var(--rv-accent); }

/* ---------- Menú móvil ---------- */
.rv-offcanvas { background: #000; color: #fff; }
.rv-offcanvas .offcanvas-header { border-bottom: 1px solid rgba(255, 255, 255, .15); }
.rv-menu-link {
    display: block;
    padding: 14px 20px;
    color: #fff !important;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    font-weight: 500;
}
.rv-menu-link:hover { background: rgba(255, 255, 255, .06); }
.rv-menu-sep { height: 12px; }

/* ---------- Banners y beneficios ---------- */
.rv-hero img { max-height: 460px; object-fit: cover; }
.rv-hero .carousel-caption {
    background: rgba(0, 0, 0, .45);
    border-radius: var(--rv-radius);
    padding: 16px 20px;
}
.rv-benefits { padding: 22px 0; border-bottom: 1px solid var(--rv-border); }
.rv-benefit {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    height: 100%;
}
.rv-benefit i {
    font-size: 26px;
    width: 34px;
    text-align: center;
    flex-shrink: 0;
}
.rv-benefit strong {
    display: block;
    font-family: var(--rv-font-head);
    font-size: 14px;
}
.rv-benefit span { display: block; font-size: 12.5px; color: var(--rv-muted); }

/* ---------- Contenido ---------- */
.rv-main { padding-top: 24px; padding-bottom: 48px; }

.rv-section { margin-bottom: 36px; }
.rv-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}
.rv-section-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
}
.rv-slider-arrows { display: flex; align-items: center; gap: 8px; }
.rv-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #000;
    background: #fff;
    color: #000;
    font-size: 12px;
}
.rv-arrow:hover { background: #000; color: #fff; }
.rv-link-more {
    font-weight: 600;
    font-size: 13px;
    margin-left: 6px;
    text-decoration: underline;
}
.rv-slider {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 4px;
}
.rv-slider::-webkit-scrollbar { display: none; }
.rv-slide {
    flex: 0 0 calc((100% - 48px) / 4);
    scroll-snap-align: start;
}

.rv-breadcrumb {
    font-size: 13px;
    color: var(--rv-muted);
    margin-bottom: 6px;
}
.rv-breadcrumb a { text-decoration: none; color: var(--rv-muted); }
.rv-breadcrumb a:hover { color: #000; }
.rv-breadcrumb .sep { margin: 0 6px; }
.rv-breadcrumb .current { color: #000; }
.rv-title {
    font-size: 30px;
    font-weight: 700;
    margin: 0 0 18px;
}

.rv-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff6ee;
    border: 1px solid #f6d3b3;
    border-radius: var(--rv-radius);
    padding: 12px 16px;
    margin-bottom: 22px;
    font-size: 13px;
}
.rv-notice > i { color: var(--rv-accent); font-size: 18px; }
.rv-notice > span { flex: 1; }

/* ---------- Filtros ---------- */
@media (min-width: 992px) {
    .rv-filters { position: sticky; top: 140px; }
    .rv-filters .offcanvas-header { display: none; }
    .rv-filters .offcanvas-body { padding: 0; overflow: visible; }
}
.rv-filter-block {
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--rv-border);
}
.rv-filter-block:last-child { border-bottom: 0; }
.rv-filter-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 12px;
}
.rv-cat-list, .rv-sub-list, .rv-check-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.rv-cat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.rv-cat-row a {
    flex: 1;
    padding: 5px 0;
    text-decoration: none;
    font-size: 14px;
}
.rv-cat-list a small, .rv-check-list a small { color: var(--rv-muted); font-size: 12px; }
.rv-cat-list a:hover, .rv-check-list a:hover { color: var(--rv-accent); }
.rv-cat-list a.active { font-weight: 700; color: #000; text-decoration: underline; text-underline-offset: 3px; }
.rv-cat-toggle {
    border: 0;
    background: none;
    width: 28px;
    height: 28px;
    font-size: 10px;
    color: #000;
    transition: transform .2s;
}
.rv-cat-toggle.collapsed { transform: rotate(-90deg); }
.rv-sub-list { padding: 2px 0 6px 12px; border-left: 1px solid var(--rv-border); margin-left: 2px; }
.rv-sub-list a {
    display: block;
    padding: 4px 0;
    font-size: 13px;
    text-decoration: none;
    color: #444;
}
.rv-sub-list a.active { font-weight: 700; color: #000; }

.rv-check-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 0;
    text-decoration: none;
    font-size: 14px;
}
.rv-check {
    width: 18px;
    height: 18px;
    border: 1px solid #000;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 10px;
    color: transparent;
}
.rv-check-list a.checked .rv-check { background: #000; color: #fff; }
.rv-check-list a.checked { font-weight: 600; }
.rv-check-list .rv-extra { display: none; }
.rv-check-list.show-all .rv-extra { display: block; }

.rv-price-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.rv-price-inputs input {
    width: 100%;
    min-width: 0;
    border: 1px solid #000;
    border-radius: var(--rv-radius);
    padding: 8px 10px;
    font-size: 13px;
}

.rv-link-btn {
    background: none;
    border: 0;
    padding: 4px 0;
    font-size: 13px;
    font-weight: 600;
    text-decoration: underline;
    color: #000;
}

/* ---------- Barra de orden ---------- */
.rv-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.rv-count { color: var(--rv-muted); font-size: 13px; }
.rv-sort {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    margin-bottom: 0;
}
.rv-sort select {
    border: 1px solid #000;
    border-radius: 40px;
    padding: 8px 34px 8px 14px;
    font-size: 13px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23000'/%3E%3C/svg%3E") no-repeat right 14px center;
    appearance: none;
    cursor: pointer;
}

.rv-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
}
.rv-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #000;
    border-radius: 40px;
    padding: 5px 12px;
    font-size: 12.5px;
    text-decoration: none;
}
.rv-chip i { font-size: 11px; }
.rv-chip:hover { background: #000; color: #fff !important; }

/* ---------- Tarjeta de producto ---------- */
.rv-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}
.rv-card-img {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    background: #fff;
    border: 1px solid var(--rv-border);
    border-radius: var(--rv-radius);
    overflow: hidden;
}
.rv-card-img img,
.rv-card-img .producto-imagen-con-marca img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
    transition: transform .35s ease;
}
.rv-card:hover .rv-card-img img { transform: scale(1.05); }
.rv-noimg {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    color: #d0d0d0;
    background: var(--rv-soft);
}
.rv-labels {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    z-index: 12;
}
.rv-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .5px;
    padding: 4px 9px;
    border-radius: 40px;
    color: #fff;
    line-height: 1.2;
}
.rv-label-accent { background: var(--rv-accent); }
.rv-label-dark { background: #000; }

.rv-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 12px 2px 0;
}
.rv-card-meta {
    display: flex;
    gap: 8px;
    font-size: 11.5px;
    color: var(--rv-muted);
    margin-bottom: 4px;
    min-width: 0;
}
.rv-card-brand {
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: .4px;
    flex-shrink: 0;
}
.rv-card-name {
    font-family: var(--rv-font) !important;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
}
.rv-card-name a { text-decoration: none; }
.rv-card-name a:hover { text-decoration: underline; }
.rv-card-price { margin-bottom: 12px; }
.rv-price-now {
    font-family: var(--rv-font-head);
    font-size: 19px;
    font-weight: 700;
    color: #000;
}
.rv-price-old {
    font-size: 13px;
    color: var(--rv-muted);
    text-decoration: line-through;
    margin-left: 4px;
}
.rv-price-note {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--rv-accent-dark);
    margin-top: 2px;
}
.rv-price-lock { font-size: 12.5px; color: var(--rv-muted); }
.rv-card-actions {
    margin-top: auto;
    display: flex;
    gap: 8px;
}
.rv-card-actions .rv-btn-primary { flex: 1; }

/* ---------- Botones ---------- */
.rv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 40px;
    padding: 10px 18px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid #000;
    cursor: pointer;
    transition: background .2s, color .2s, opacity .2s;
    white-space: nowrap;
}
.rv-btn-primary { background: #000; color: #fff !important; }
.rv-btn-primary:hover { opacity: .82; }
.rv-btn-primary:disabled { background: #bdbdbd; border-color: #bdbdbd; cursor: not-allowed; opacity: 1; }
.rv-btn-outline { background: #fff; color: #000 !important; }
.rv-btn-outline:hover { background: #000; color: #fff !important; }
.rv-btn-light { background: #fff; color: #000 !important; border-color: #fff; }
.rv-btn-sm { padding: 8px 14px; font-size: 11.5px; }
.rv-btn-wide { min-width: 280px; padding: 13px 28px; }
.rv-btn.loading { pointer-events: none; opacity: .6; }

/* ---------- Mostrar más / vacío ---------- */
.rv-more { text-align: center; margin-top: 34px; }
.rv-more-count { font-size: 13px; color: var(--rv-muted); margin-bottom: 12px; }
.rv-empty {
    text-align: center;
    padding: 60px 20px;
    border: 1px dashed var(--rv-border);
    border-radius: var(--rv-radius-lg);
}
.rv-empty > i { font-size: 44px; color: #ccc; margin-bottom: 12px; }
.rv-empty p { color: var(--rv-muted); }

/* ---------- WhatsApp ---------- */
.rv-whatsapp {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #4dc247;
    color: #fff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
    z-index: 1040;
    transition: transform .2s;
}
.rv-whatsapp:hover { transform: scale(1.08); }

/* ---------- Pie ---------- */
.rv-footer {
    background: #000;
    color: rgba(255, 255, 255, .75);
    padding: 44px 0 20px;
    font-size: 13.5px;
}
.rv-footer h6 {
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 13px;
    margin-bottom: 14px;
}
.rv-footer p { margin-bottom: 8px; }
.rv-footer a { color: rgba(255, 255, 255, .85) !important; text-decoration: none; }
.rv-footer a:hover { color: #fff !important; text-decoration: underline; }
.rv-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .15);
    margin-top: 30px;
    padding-top: 18px;
    text-align: center;
    font-size: 12.5px;
    color: rgba(255, 255, 255, .55);
}

/* ---------- Notificaciones (tienda.js) ---------- */
.toast-container {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 2000;
}

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
    .rv-slide { flex-basis: calc((100% - 32px) / 3); }
}
@media (max-width: 991.98px) {
    .rv-head-row { min-height: 60px; gap: 12px; }
    .rv-logo { margin-right: auto; }
    .rv-logo-main { font-size: 18px; }
    .rv-logo-sub { font-size: 9.5px; letter-spacing: 1.5px; }
    .rv-title { font-size: 24px; }
    .rv-filters .offcanvas-body { padding-top: 8px; }
}
@media (max-width: 767.98px) {
    .rv-slide { flex-basis: calc((100% - 16px) / 2); }
    .rv-benefits { padding: 16px 0; }
    .rv-benefit i { font-size: 20px; width: 26px; }
    .rv-benefit strong { font-size: 13px; }
    .rv-benefit span { font-size: 11.5px; }
    .rv-notice { flex-wrap: wrap; }
    .rv-section-title { font-size: 18px; }
    .rv-link-more { display: none; }
}
@media (max-width: 575.98px) {
    .rv-main { padding-top: 16px; }
    .rv-card-name { font-size: 13px; }
    .rv-price-now { font-size: 16px; }
    .rv-card-actions { flex-direction: column; gap: 6px; }
    .rv-btn { padding: 9px 10px; font-size: 11px; letter-spacing: .8px; }
    .rv-btn-wide { min-width: 0; width: 100%; }
    .rv-whatsapp { width: 52px; height: 52px; font-size: 28px; right: 16px; bottom: 16px; }
}

/* =========================================================
   Página de producto
   ========================================================= */
.rv-product { margin-top: 6px; }

/* Galería */
.rv-gallery {
    display: flex;
    gap: 14px;
    position: sticky;
    top: 150px;
}
.rv-thumbs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 76px;
    flex-shrink: 0;
    max-height: 560px;
    overflow-y: auto;
    scrollbar-width: none;
}
.rv-thumbs::-webkit-scrollbar { display: none; }
.rv-thumb {
    width: 76px;
    height: 76px;
    padding: 4px;
    border: 1px solid var(--rv-border);
    border-radius: var(--rv-radius);
    background: #fff;
    flex-shrink: 0;
    opacity: .65;
    transition: opacity .2s, border-color .2s;
}
.rv-thumb img { width: 100%; height: 100%; object-fit: contain; }
.rv-thumb:hover { opacity: 1; }
.rv-thumb.active { border-color: #000; opacity: 1; }
.rv-gallery-main {
    position: relative;
    flex: 1;
    aspect-ratio: 1 / 1;
    border: 1px solid var(--rv-border);
    border-radius: var(--rv-radius-lg);
    background: #fff;
    overflow: hidden;
    cursor: zoom-in;
}
.rv-gallery-slide {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.rv-gallery-slide.active { display: flex; }
.rv-gallery-slide .producto-imagen-con-marca { width: 100%; height: 100%; }
.rv-gallery-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.rv-gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid #000;
    background: rgba(255, 255, 255, .92);
    color: #000;
    z-index: 13;
}
.rv-gallery-arrow:hover { background: #000; color: #fff; }
.rv-gallery-arrow.prev { left: 14px; }
.rv-gallery-arrow.next { right: 14px; }
.rv-zoom-hint {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #000;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    z-index: 13;
    pointer-events: none;
}
.rv-gallery-main .rv-labels { top: 16px; left: 16px; }

/* Lightbox */
.rv-lb { position: relative; }
.rv-lb-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 0;
    background: #000;
    color: #fff;
    z-index: 20;
}
.rv-lb-prev { left: 0; }
.rv-lb-next { right: 0; }
.rv-lb-count { margin-top: 10px; font-size: 13px; color: var(--rv-muted); }

/* Caja de compra */
.rv-buybox .rv-card-meta { font-size: 13px; }
.rv-buybox .rv-card-brand { text-decoration: none; color: #000; }
.rv-buybox .rv-card-brand:hover { text-decoration: underline; }
.rv-product-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 18px;
    text-transform: uppercase;
}
.rv-product-price { margin-bottom: 16px; }
.rv-price-big {
    font-family: var(--rv-font-head);
    font-size: 34px;
    font-weight: 700;
    line-height: 1.1;
}
.rv-price-old-lg {
    font-size: 16px;
    color: var(--rv-muted);
    text-decoration: line-through;
}
.rv-product-price .rv-price-note { font-size: 14px; margin-top: 4px; }
.rv-price-list { font-size: 12.5px; color: var(--rv-muted); margin-top: 6px; }
.rv-price-lock-lg {
    background: var(--rv-soft);
    border-radius: var(--rv-radius);
    padding: 14px 16px;
    font-weight: 600;
}
.rv-stock {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 600;
    margin-bottom: 20px;
}
.rv-stock.ok { color: var(--rv-green); }
.rv-stock.no { color: var(--rv-red); }

.rv-buy-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}
.rv-qty {
    display: flex;
    align-items: center;
    border: 1px solid #000;
    border-radius: 40px;
    overflow: hidden;
    flex-shrink: 0;
}
.rv-qty button {
    width: 42px;
    height: 48px;
    border: 0;
    background: #fff;
    font-size: 12px;
}
.rv-qty button:hover { background: var(--rv-soft); }
.rv-qty input {
    width: 48px;
    border: 0;
    text-align: center;
    font-weight: 700;
    font-size: 15px;
    -moz-appearance: textfield;
    outline: none;
}
.rv-qty input::-webkit-outer-spin-button,
.rv-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.rv-btn-lg { padding: 15px 22px; font-size: 13px; }
.rv-buy-note { font-size: 12px; color: var(--rv-muted); margin: 10px 0 0; }

.rv-product-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin: 22px 0;
    padding: 16px 0;
    border-top: 1px solid var(--rv-border);
    border-bottom: 1px solid var(--rv-border);
}
.rv-product-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 13.5px;
    text-decoration: none;
}
.rv-product-links a:hover { text-decoration: underline; }
.rv-product-links .fa-whatsapp { color: #25d366; font-size: 18px; }

.rv-perks { list-style: none; padding: 0; margin: 0; }
.rv-perks li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 8px 0;
    font-size: 13px;
    color: var(--rv-muted);
}
.rv-perks i { font-size: 18px; color: #000; width: 24px; text-align: center; margin-top: 2px; }
.rv-perks strong { display: block; color: #000; font-size: 13.5px; }

/* Descripción y características */
.rv-product-details {
    margin-top: 48px;
    padding-top: 36px;
    border-top: 1px solid var(--rv-border);
}
.rv-section-title-sm { font-size: 18px; margin-bottom: 14px; }
.rv-subtitle { font-size: 15px; font-weight: 700; margin: 22px 0 8px; }
.rv-desc { font-size: 14.5px; line-height: 1.7; color: #333; }
.rv-specs {
    display: grid;
    grid-template-columns: 130px 1fr;
    margin: 0;
    border: 1px solid var(--rv-border);
    border-radius: var(--rv-radius);
    overflow: hidden;
}
.rv-specs dt, .rv-specs dd {
    margin: 0;
    padding: 11px 14px;
    border-bottom: 1px solid var(--rv-border);
    font-size: 13.5px;
}
.rv-specs dt { background: var(--rv-soft); font-weight: 600; }
.rv-specs dt:last-of-type, .rv-specs dd:last-of-type { border-bottom: 0; }
.rv-specs a { text-decoration: underline; }
.rv-related { margin-top: 52px; }

@media (max-width: 991.98px) {
    .rv-gallery { position: static; flex-direction: column-reverse; }
    .rv-thumbs { flex-direction: row; width: auto; max-height: none; overflow-x: auto; }
    .rv-thumb { width: 64px; height: 64px; }
    .rv-product-title { font-size: 22px; }
    .rv-price-big { font-size: 28px; }
}
@media (max-width: 575.98px) {
    .rv-gallery-slide { padding: 12px; }
    .rv-gallery-arrow { width: 36px; height: 36px; }
    .rv-buy-row { flex-direction: column; }
    .rv-qty { align-self: flex-start; }
    .rv-specs { grid-template-columns: 110px 1fr; }
}

/* =========================================================
   Formularios, cuenta, carrito y checkout
   ========================================================= */
.rv-body .form-control,
.rv-body .form-select {
    border: 1px solid rgba(0, 0, 0, .28);
    border-radius: var(--rv-radius);
    padding: 11px 14px;
    font-size: 14px;
    color: #000;
}
.rv-body .form-control:focus,
.rv-body .form-select:focus {
    border-color: #000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, .08);
}
.rv-body .form-label { font-weight: 600; font-size: 13.5px; margin-bottom: 6px; }
.rv-help { font-size: 12px; color: var(--rv-muted); margin-top: 4px; display: block; }
.rv-pass { position: relative; }
.rv-pass .form-control { padding-right: 46px; }
.rv-pass-toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: 0;
    background: none;
    color: #555;
}

.rv-alert {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    border-radius: var(--rv-radius);
    padding: 12px 16px;
    font-size: 13.5px;
    margin-bottom: 18px;
    border: 1px solid transparent;
}
.rv-alert > i { margin-top: 2px; }
.rv-alert-danger { background: #fdeeee; border-color: #f3c7c6; color: #8f2a28; }
.rv-alert-success { background: #edf8f1; border-color: #bfe5cc; color: #1f6b3b; }
.rv-alert-info { background: var(--rv-soft); border-color: var(--rv-border); color: #333; }
.rv-alert-warning { background: #fff6ee; border-color: #f6d3b3; color: #7a4210; }

/* Páginas de cuenta (login / registro) */
.rv-auth {
    max-width: 460px;
    margin: 10px auto 20px;
}
.rv-auth-wide { max-width: 760px; }
.rv-auth-card {
    border: 1px solid var(--rv-border);
    border-radius: var(--rv-radius-lg);
    padding: 34px 32px;
    background: #fff;
}
.rv-auth-head { text-align: center; margin-bottom: 24px; }
.rv-auth-head h1 { font-size: 26px; font-weight: 700; margin: 0 0 6px; }
.rv-auth-head p { color: var(--rv-muted); margin: 0; }
.rv-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--rv-muted);
    font-size: 12.5px;
    margin: 22px 0;
}
.rv-divider::before, .rv-divider::after { content: ""; flex: 1; height: 1px; background: var(--rv-border); }
.rv-auth-foot { text-align: center; margin-top: 18px; font-size: 13.5px; }
.rv-auth-foot a { font-weight: 600; }
.rv-link-small { font-size: 13px; color: #444 !important; }

.rv-form-section {
    font-family: var(--rv-font-head);
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin: 28px 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--rv-border);
}
.rv-form-section.first { margin-top: 0; }

.rv-tipo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.rv-tipo input { display: none; }
.rv-tipo label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, .2);
    border-radius: var(--rv-radius);
    padding: 16px 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13.5px;
    transition: border-color .2s, background .2s;
}
.rv-tipo label i { font-size: 22px; }
.rv-tipo label small { font-weight: 400; color: var(--rv-muted); font-size: 11.5px; }
.rv-tipo label:hover { border-color: #000; }
.rv-tipo input:checked + label { border: 2px solid #000; background: var(--rv-soft); padding: 15px 9px; }

.rv-success { text-align: center; padding: 20px 0 6px; }
.rv-success-icon {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: #edf8f1;
    color: var(--rv-green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin-bottom: 18px;
}
.rv-success h1, .rv-success h2 { font-size: 26px; font-weight: 700; }
.rv-success p { color: #444; }
.rv-success-actions { display: flex; flex-direction: column; gap: 10px; max-width: 340px; margin: 24px auto 0; }

/* Pasos de compra */
.rv-steps {
    display: flex;
    align-items: center;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0 0 22px;
    font-size: 13px;
    color: var(--rv-muted);
    flex-wrap: wrap;
}
.rv-steps li { display: flex; align-items: center; gap: 8px; }
.rv-steps li + li::before { content: ""; width: 26px; height: 1px; background: rgba(0, 0, 0, .25); margin-right: 2px; }
.rv-steps span {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid currentColor;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}
.rv-steps .done, .rv-steps .current { color: #000; font-weight: 600; }
.rv-steps .current span { background: #000; color: #fff; border-color: #000; }
.rv-steps .done span { background: var(--rv-green); border-color: var(--rv-green); color: #fff; }

/* Carrito */
.rv-cart-list { border-top: 1px solid var(--rv-border); }
.rv-cart-head, .rv-cart-item {
    display: grid;
    grid-template-columns: 1fr 110px 130px 120px 40px;
    gap: 16px;
    align-items: center;
}
.rv-cart-head {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--rv-muted);
    padding: 12px 0;
    border-bottom: 1px solid var(--rv-border);
}
.rv-cart-head .r { text-align: right; }
.rv-cart-head .c { text-align: center; }
.rv-cart-item { padding: 18px 0; border-bottom: 1px solid var(--rv-border); }
.rv-cart-prod { display: flex; gap: 14px; align-items: center; min-width: 0; }
.rv-cart-thumb {
    width: 84px;
    height: 84px;
    flex-shrink: 0;
    border: 1px solid var(--rv-border);
    border-radius: var(--rv-radius);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #ccc;
    font-size: 24px;
}
.rv-cart-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.rv-cart-thumb > i { color: #ccc !important; }
.rv-cart-name { font-weight: 600; font-size: 14px; line-height: 1.35; text-decoration: none; display: block; }
.rv-cart-name:hover { text-decoration: underline; }
.rv-cart-code { font-size: 12px; color: var(--rv-muted); }
.rv-cart-warn { font-size: 12px; color: var(--rv-red); margin-top: 3px; }
.rv-cart-price, .rv-cart-sub { text-align: right; }
.rv-cart-price { font-size: 14px; }
.rv-cart-sub { font-family: var(--rv-font-head); font-size: 16px; font-weight: 700; }
.rv-cart-item .rv-qty { justify-self: center; }
.rv-cart-item .rv-qty button { width: 34px; height: 38px; }
.rv-cart-item .rv-qty input { width: 40px; font-size: 14px; }
.rv-qty button:disabled { opacity: .35; cursor: not-allowed; }
.rv-cart-remove {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 0;
    background: none;
    color: #555;
}
.rv-cart-remove:hover { background: #fdeeee; color: var(--rv-red); }
.rv-cart-continue { display: inline-flex; margin-top: 18px; font-weight: 600; font-size: 13.5px; text-decoration: none; gap: 8px; align-items: center; }
.rv-cart-continue:hover { text-decoration: underline; }
.rv-cart-busy { opacity: .5; pointer-events: none; }

.rv-summary {
    border: 1px solid var(--rv-border);
    border-radius: var(--rv-radius-lg);
    padding: 24px;
    background: #fff;
    position: sticky;
    top: 150px;
}
.rv-summary h2 { font-size: 18px; font-weight: 700; margin: 0 0 16px; text-transform: uppercase; }
.rv-summary-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 6px 0; }
.rv-summary-row.muted { color: var(--rv-muted); font-size: 13px; }
.rv-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-top: 1px solid var(--rv-border);
    margin-top: 10px;
    padding-top: 14px;
    margin-bottom: 18px;
}
.rv-summary-total span { font-weight: 700; font-size: 15px; }
.rv-summary-total strong { font-family: var(--rv-font-head); font-size: 26px; }
.rv-summary .rv-btn { width: 100%; }
.rv-summary .rv-btn + .rv-btn { margin-top: 10px; }
.rv-summary-note { font-size: 12px; color: var(--rv-muted); margin: 14px 0 0; }

/* Checkout */
.rv-box {
    border: 1px solid var(--rv-border);
    border-radius: var(--rv-radius-lg);
    padding: 22px 24px;
    margin-bottom: 20px;
    background: #fff;
}
.rv-box h2 { font-size: 16px; font-weight: 700; margin: 0 0 16px; text-transform: uppercase; }
.rv-order-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--rv-border);
}
.rv-order-item:last-child { border-bottom: 0; padding-bottom: 0; }
.rv-order-item:first-of-type { padding-top: 4px; }
.rv-order-item .rv-cart-thumb { width: 60px; height: 60px; position: relative; overflow: visible; }
.rv-order-item .rv-cart-thumb img { border-radius: var(--rv-radius); }
.rv-order-qty {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #000;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    min-width: 22px;
    height: 22px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
}
.rv-order-info { flex: 1; min-width: 0; }
.rv-order-info strong { display: block; font-size: 13.5px; font-weight: 600; }
.rv-order-info small { color: var(--rv-muted); font-size: 12px; }
.rv-order-price { font-weight: 700; white-space: nowrap; }

@media (max-width: 991.98px) {
    .rv-summary { position: static; }
}
@media (max-width: 767.98px) {
    .rv-cart-head { display: none; }
    .rv-cart-item {
        grid-template-columns: 1fr auto;
        grid-template-areas: "prod remove" "qty sub";
        gap: 12px;
    }
    .rv-cart-prod { grid-area: prod; }
    .rv-cart-price { display: none; }
    .rv-cart-item .rv-qty { grid-area: qty; justify-self: start; }
    .rv-cart-sub { grid-area: sub; }
    .rv-cart-remove { grid-area: remove; align-self: start; }
    .rv-cart-thumb { width: 70px; height: 70px; }
    .rv-auth-card { padding: 26px 18px; }
    .rv-tipo-grid { grid-template-columns: 1fr; }
    .rv-tipo label { flex-direction: row; justify-content: flex-start; text-align: left; padding: 12px 14px; }
    .rv-tipo input:checked + label { padding: 11px 13px; }
    .rv-tipo label i { width: 26px; font-size: 18px; }
    .rv-tipo label small { display: none; }
    .rv-box { padding: 18px 16px; }
}
