/* ==========================================================================
   Ranieri Reef Child - estilos propios
   ========================================================================== */

/* Barra de garantías / reassurance (footer) */
.rr-reassurance {
    background: #232323;
    color: #fff;
    padding: 42px 0;
}

.rr-reassurance .rr-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0;
}

.rr-reassurance .rr-item {
    flex: 1 1 25%;
    max-width: 25%;
    text-align: center;
    padding: 12px 20px;
}

.rr-reassurance .rr-icon {
    display: block;
    margin: 0 auto 16px;
    color: #fff;
}

.rr-reassurance .rr-icon-svg {
    width: 34px;
    height: 34px;
}

.rr-reassurance .rr-title {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 5px;
    color: #fff;
}

.rr-reassurance .rr-sub {
    font-size: 13px;
    line-height: 1.4;
    color: #9a9a9a;
}

/* La columna de WhatsApp es un link */
.rr-reassurance a.rr-item-link,
.rr-reassurance a.rr-item-link:hover,
.rr-reassurance a.rr-item-link:focus {
    text-decoration: none;
    color: inherit;
}

.rr-reassurance a.rr-item-link {
    display: block;
    transition: opacity .2s ease;
}

.rr-reassurance a.rr-item-link:hover {
    opacity: .75;
}

@media (max-width: 767px) {
    .rr-reassurance .rr-item { flex-basis: 50%; max-width: 50%; }
}

@media (max-width: 479px) {
    .rr-reassurance .rr-item { flex-basis: 100%; max-width: 100%; }
}

/* Header 1: caja oscura ancho completo, logo izq. / carrito der. */
.rr-header-bar {
    background: transparent;
    width: 100%;
}

.rr-header-bar-row {
    flex-wrap: nowrap;
    padding: 20px 0;
}

.rr-header-bar-logo img {
    display: block;
    max-height: 100px;
    width: auto;
}

/* Home: el header flota transparente sobre el slider, sin dejar hueco arriba */
#index #header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
}

#index #wrapper {
    padding-top: 0 !important;
}

.rr-header-bar-cart {
    display: flex;
    justify-content: flex-end;
}

/* Botón pill "Carrito" */
.rr-header-bar .rr-cart-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    color: #1a1a1a;
    border-radius: 999px;
    padding: 10px 22px 10px 14px;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
}

.rr-header-bar .rr-cart-pill-icon {
    position: relative;
    display: inline-flex;
    color: #1a1a1a;
}

.rr-header-bar .rr-cart-pill-svg {
    width: 18px;
    height: 18px;
    display: block;
}

.rr-header-bar .rr-cart-pill-badge {
    /* El tema oculta .ps-shoppingcart .cart-products-count-btn con display:none;
       lo forzamos visible aca. Cuando el carrito esta vacio, el .d-none del
       template (bootstrap) lo vuelve a ocultar. */
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -8px;
    right: -9px;
    min-width: 15px;
    height: 15px;
    padding: 0 3px;
    border-radius: 50%;
    background: #1a1a1a;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
}

.rr-header-bar .rr-cart-pill-badge.d-none {
    display: none !important;
}

.rr-header-bar .rr-cart-pill-text {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #1a1a1a;
}

@media (max-width: 479px) {
    .rr-header-bar-row { padding: 14px 0; }
    .rr-header-bar-logo img { max-height: 38px; }
    .rr-header-bar .rr-cart-pill-text { display: none; }
    .rr-header-bar .rr-cart-pill { padding: 8px; }
}

/* Header 2: todas las paginas menos home. Fondo blanco, volver a la izq., logo centrado, mismo carrito der. */
.rr-header-bar2 {
    background: #fff;
    border-bottom: 1px solid #eee;
}

#desktop-header-container .rr-header-bar2-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 22px 0;
}

.rr-header-bar2-back {
    justify-self: start;
}

.rr-header-bar2-logo {
    grid-column: 2;
    justify-self: center;
}

.rr-header-bar2 .rr-header-bar-cart {
    grid-column: 3;
    justify-self: end;
}

.rr-header-back {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #1a1a1a !important;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    white-space: nowrap;
}

.rr-header-back:hover {
    color: #1a1a1a !important;
    opacity: .7;
}

.rr-header-back-arrow {
    display: block;
    width: 16px;
    height: 16px;
}

.rr-header-bar2-logo img {
    display: block;
    max-height: 34px;
    width: auto;
    margin: 0 auto;
}

@media (max-width: 767px) {
    .rr-header-back span { display: none; }
    .rr-header-bar2-logo img { max-height: 26px; }
    .rr-header-bar-logo img { max-height: 56px; }
    /* En mobile el carrito queda como el mismo boton pero solo con el icono
       (se oculta el texto "CARRITO"); mantiene su fondo/estilo de desktop. */
    .rr-header-bar .rr-cart-pill-text { display: none; }
    .rr-header-bar .rr-cart-pill { padding: 8px; }
}

/* En mobile el tema oculta #desktop-header y muestra su #mobile-header (menu/busqueda).
   Lo invertimos en todas las paginas para conservar nuestro header desktop:
   - Home: logo izq. / carrito der. (header-1).
   - Resto: flecha izq. / logo centro / carrito der. (header-2). */
@media (max-width: 991.98px) {
    #desktop-header { display: block !important; }
    #mobile-header { display: none !important; }
}

/* Card de producto (layout 1) segun referencia card.JPG */
.rr-card-thumb {
    position: relative;
    background: #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
}

.rr-card-thumb .thumbnail {
    display: block;
}

.rr-card-description {
    padding-top: 16px;
    text-align: left;
}

.rr-card-description .product-title {
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    text-align: left;
    margin: 0px !important;
}

.rr-card-description .product-title a {
    color: #181818 !important;
}

.rr-card-description .product-category-name {
    font-size: 13px;
    color: #a0a0a0;
    text-align: left;
    margin-bottom: 10px;
}

.rr-card-description .product-price-and-shipping {
    text-align: left;
}

.rr-card-description .product-price {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
}

.rr-card-description .regular-price {
    font-size: 15px;
    margin-left: 8px;
    text-decoration: line-through;
}

/* El IQIT Theme Editor genera .products-grid .product-miniature .product-category-name
   { display:none !important } (config "ocultar categoria" del backoffice). La reactivamos
   con la misma especificidad, cargando después en la cascada. */
.products-grid .product-miniature .product-category-name {
    display: block !important;
}

.rr-card-description .variant-links .color {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    border-radius: 50%;
}

.product-miniature-default .variant-links .color {
    border: none;
}

/* Espaciado de la grilla: filas y columnas separadas */
.products-grid .js-product-miniature-wrapper {
    padding-left: 14px;
    padding-right: 14px;
}

/* Sin efecto hover en las cards */
.rr-card-thumb,
.rr-card-thumb * {
    transition: none !important;
    transform: none !important;
}

.product-miniature-layout-1:hover,
.product-miniature-default:hover {
    z-index: auto !important;
}

/* El IQIT Theme Editor genera (dentro de @media (hover: hover)):
   .product-miniature:hover { outline: none 1px; box-shadow: 0px 0px 25px 0px rgba(0,0,0,.15); } */
.product-miniature:hover {
    outline: none !important;
    box-shadow: none !important;
}

.products-grid .product-miniature-layout-1 {
    text-align: center;
}

.products-grid .product-miniature-layout-1 .product-description {
    padding: 14px 0px;
}

/* ==========================================================================
   Ficha de producto (detalle.JPG)
   ========================================================================== */
.rr-product { padding-top: 24px; }

.rr-product-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    margin: 0 -20px;
}

.rr-product-gallery,
.rr-product-info {
    padding: 0 20px;
}

/* --- Galería (izquierda) --- */
.rr-product-gallery { position: relative; }

.rr-product-cat-badge {
    position: absolute;
    top: 24px;
    left: 44px;
    z-index: 4;
    background: #1a1a1a;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 8px 20px;
    border-radius: 999px;
}

.rr-product-gallery .product-cover {
    background: #f0f0f0;
    border-radius: 14px;
    padding: 30px;
    overflow: hidden;
}

.rr-product-gallery .product-images {
    margin-top: 16px;
}

.rr-product-gallery .thumb-container .thumb {
    border-radius: 8px;
    background: #f0f0f0;
}

/* --- Info (derecha) --- */
.rr-product-title {
    font-size: 34px;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.05;
    margin: 0 0 4px;
    color: #1a1a1a;
}

.rr-product-subtitle {
    font-size: 18px;
    color: #6b6b6b;
    margin-bottom: 10px;
}

.rr-product-info .comments_note,
.rr-product-info .iqitreviews-summary-stars,
.rr-product-info .product-rating {
    margin-bottom: 10px;
}

.rr-product-info .product-prices { margin: 6px 0 14px; }

.rr-product-info .current-price-value,
.rr-product-info .product-price {
    font-size: 30px;
    font-weight: 800;
    color: #1a1a1a;
}

.rr-product-info .regular-price {
    font-size: 18px;
    margin-left: 8px;
}

.rr-product-info .badge-discount { display: none; }

.rr-voucher-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #e7f6ec;
    color: #1a1a1a;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 14px;
    margin: 14px 0;
}

.rr-voucher-icon { width: 18px; height: 18px; flex: 0 0 auto; }

.rr-product-desc {
    color: #4a4a4a;
    font-size: 14px;
    line-height: 1.6;
    margin: 6px 0 22px;
}

/* Reassurance */
.rr-product-reassurance {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
}

.rr-product-reassurance li {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.rr-product-reassurance img {
    width: 24px;
    height: 24px;
    filter: brightness(0);
}

/* Color / variantes */
.rr-product-info .product-variants { margin-bottom: 20px; }

.rr-product-info .product-variants .color {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
}

/* Selector de cantidad oculto (usamos qty=1 fijo con boton "Comprá ahora") */
.rr-product-form .input-group.bootstrap-touchspin,
.rr-product-form .product-quantity,
.rr-product-form #quantity_wanted {
    display: none !important;
}

/* Botones */
.rr-btn-buy {
    display: block;
    width: 100%;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 18px;
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
    cursor: pointer;
    margin-bottom: 12px;
    transition: background .2s ease;
}

.rr-btn-buy:hover { background: #333; }

.rr-btn-buy .spinner-icon { display: none; }

.rr-btn-buy.disabled,
.rr-btn-buy:disabled { opacity: .5; cursor: not-allowed; }

.rr-btn-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: #fff;
    color: #1a1a1a !important;
    border: 1.5px solid #1a1a1a;
    border-radius: 12px;
    padding: 16px;
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
    text-decoration: none;
}

.rr-btn-whatsapp:hover {
    background: #f5f5f5;
    color: #1a1a1a !important;
}

.rr-btn-whatsapp-icon { width: 20px; height: 20px; }

/* --- Barra de features --- */
.rr-product-features {
    background: #f4f4f4;
    border-radius: 14px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 30px;
    margin-top: 40px;
}

.rr-feature {
    display: flex;
    align-items: center;
    gap: 16px;
}

.rr-feature-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
}

.rr-feature-title {
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    color: #1a1a1a;
}

.rr-feature-sub {
    font-size: 13px;
    color: #7a7a7a;
}

@media (max-width: 991px) {
    .rr-product-cat-badge { top: 20px; left: 40px; }
}

@media (max-width: 767px) {
    .rr-product-title { font-size: 26px; }
    .rr-product-features { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
}

/* ==========================================================================
   Bloque de voucher aplicado en la home (hook displayHome) - codigo.JPG
   ========================================================================== */
.rr-home-voucher-wrap { margin: 24px auto; }

.rr-home-voucher {
    display: flex;
    align-items: center;
    gap: 24px;
    background: #d9ecd9;
    border-radius: 14px;
    padding: 26px 34px;
}

.rr-home-voucher-gift {
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
}

.rr-home-voucher-text { flex: 1 1 auto; }

.rr-home-voucher-title {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 24px;
    font-weight: 400;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.rr-home-voucher-code {
    background: #fff;
    border-radius: 8px;
    padding: 4px 14px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: .02em;
    color: #1a1a1a;
}

.rr-home-voucher-sub {
    font-size: 15px;
    color: #5c6b5c;
}

.rr-home-voucher-pct {
    flex: 0 0 auto;
    font-size: 56px;
    font-weight: 800;
    line-height: 1;
    color: #1a1a1a;
}

.rr-home-voucher-pct span {
    font-size: 28px;
    font-weight: 800;
    vertical-align: baseline;
}

/* Estado "agregar codigo": input + boton a la derecha */
.rr-home-voucher-form {
    flex: 0 0 auto;
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.rr-home-voucher-input {
    border: 1px solid #b9d3b9;
    background: #fff;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 15px;
    color: #1a1a1a;
    min-width: 220px;
    text-transform: uppercase;
}

.rr-home-voucher-input::placeholder {
    text-transform: none;
}

.rr-home-voucher-input:focus {
    outline: none;
    border-color: #1a1a1a;
}

.rr-home-voucher-btn {
    border: none;
    background: #1a1a1a;
    color: #fff;
    border-radius: 10px;
    padding: 12px 26px;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
    cursor: pointer;
    transition: background .2s ease;
}

.rr-home-voucher-btn:hover { background: #333; }

@media (max-width: 767px) {
    .rr-home-voucher {
        flex-wrap: wrap;
        gap: 16px;
        padding: 20px;
    }
    .rr-home-voucher-title { font-size: 20px; }
    .rr-home-voucher-code { font-size: 18px; }
    .rr-home-voucher-pct { font-size: 42px; }
    .rr-home-voucher-form { width: 100%; }
    .rr-home-voucher-input { flex: 1 1 auto; min-width: 0; }
}

/* Borde redondeado uniforme en todos los botones de Bootstrap.
   !important para vencer las variantes (.btn-lg, .btn-sm) que fijan su propio radio. */
.btn {
    border-radius: 12px !important;
}

/* Botones primarios / secundarios */
.btn-primary {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: #fff;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background: #333;
    border-color: #333;
    color: #fff;
}

.btn-secondary {
    background: #fff;
    color: #1a1a1a !important;
    border: 1.5px solid #1a1a1a;
}

/* ==========================================================================
   Carrito lateral (#blockcart-content) - UI/UX
   El panel se mueve a <body> via custom.js al abrir (escapa de ancestros con
   transform). Posicionamiento fixed propio + clase .rr-cart-panel.show.
   ========================================================================== */
#blockcart-content {
    position: fixed !important;
    top: 0;
    right: 0;
    left: auto;
    height: 100vh;
    width: 390px;
    max-width: 92vw;
    min-width: 0;
    background: #fff;
    box-shadow: -8px 0 40px rgba(0, 0, 0, .18);
    padding: 0 0 24px;
    display: flex;
    flex-direction: column;
    z-index: 6000;
    transform: translateX(105%);
    transition: transform .35s cubic-bezier(.7, 0, .3, 1);
    overflow: hidden;
    visibility: visible !important;
    opacity: 1 !important;
}

#blockcart-content.rr-cart-open-panel {
    transform: translateX(0);
}

/* Encabezado del panel */
#blockcart-content .cart-title {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 24px 16px;
    margin: 0;
    border-bottom: 1px solid #eee;
}

#blockcart-content .cart-title hr { display: none; }

#blockcart-content .cart-title .modal-title {
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #1a1a1a;
}

#blockcart-content #js-cart-close {
    background: none;
    border: none;
    font-size: 26px;
    line-height: 1;
    color: #1a1a1a;
    opacity: .7;
    cursor: pointer;
    padding: 0 4px;
}

#blockcart-content #js-cart-close:hover { opacity: 1; }

/* Lista de productos */
#blockcart-content .cart-products {
    margin: 0;
    padding: 8px 24px;
    list-style: none;
}

#blockcart-content .cart-products > li {
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}

/* Subtotales y total */
#blockcart-content .cart-subtotals,
#blockcart-content .cart-totals {
    padding: 12px 24px;
}

#blockcart-content .cart-subtotals { border-top: 1px solid #eee; }

#blockcart-content .cart-summary-line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 14px;
    color: #555;
    margin-bottom: 6px;
}

#blockcart-content .cart-totals {
    border-top: 1px solid #eee;
    font-size: 18px;
    font-weight: 800;
    color: #1a1a1a;
}

#blockcart-content .cart-totals .clearfix {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

/* Botones (sticky abajo) */
#blockcart-content .cart-buttons {
    position: sticky;
    bottom: 0;
    background: #fff;
    padding: 16px 24px 4px;
    border-top: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#blockcart-content .cart-buttons .btn {
    width: 100%;
    padding: 15px;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin: 0;
}

/* Carrito vacío */
#blockcart-content .no-items {
    display: block;
    padding: 40px 24px;
    text-align: center;
    color: #8a8a8a;
    font-size: 15px;
}

/* Backdrop del carrito lateral (se activa via body.rr-cart-open desde custom.js) */
body.rr-cart-open::after {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 5900;
    animation: rrFade .2s ease;
}

@keyframes rrFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ==========================================================================
   Detalle: bloques "Detalles del producto" y "Otros productos de la categoría"
   ========================================================================== */
.rr-detail-block { margin-top: 56px; }

.rr-detail-title,
.rr-related-title {
    font-size: 26px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .01em;
    color: #1a1a1a;
    margin: 0 0 22px;
}

.rr-detail-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 60px;
}

.rr-detail-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 0;
    border-bottom: 1px solid #e8e8e8;
}

.rr-detail-label {
    font-weight: 700;
    color: #1a1a1a;
    font-size: 15px;
}

.rr-detail-value {
    color: #555;
    font-size: 15px;
    text-align: right;
}

/* Otros productos de la misma categoría */
.rr-related { margin-top: 56px; }

.rr-related-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.rr-related-head .rr-related-title { margin: 0; }

.rr-related-viewall {
    flex: 0 0 auto;
    border: 1.5px solid #1a1a1a;
    border-radius: 999px;
    padding: 12px 26px;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #1a1a1a !important;
    text-decoration: none;
    white-space: nowrap;
    transition: background .2s ease, color .2s ease;
}

.rr-related-viewall:hover {
    background: #1a1a1a;
    color: #fff !important;
}

.rr-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    margin: 0;
}

/* neutralizar los estilos bootstrap de columna de la card dentro del grid */
.rr-related-grid .js-product-miniature-wrapper {
    width: auto;
    max-width: none;
    flex: none;
    padding: 0;
}

@media (max-width: 991px) {
    .rr-related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
    .rr-detail-cols { grid-template-columns: 1fr; gap: 0; }
    .rr-detail-title, .rr-related-title { font-size: 20px; }
    .rr-related-head { flex-wrap: wrap; }
}

@media (max-width: 479px) {
    .rr-related-grid { grid-template-columns: 1fr; }
}

/* Quitar header de comentarios (#product-comments-list-header) junto con su
   contenedor padre .block.block-section, y el bloque de productos vistos. */
.block.block-section:has(#product-comments-list-header) {
    display: none !important;
}

.viewed-products.block.block-section {
    display: none !important;
}

/* ==========================================================================
   Selector de cantidad moderno en el carrito ( − N + )
   Reestiliza el Bootstrap TouchSpin de las lineas del carrito.
   ========================================================================== */
.bootstrap-touchspin:has(.js-cart-line-product-quantity) {
    display: inline-flex;
    align-items: center;
    width: auto;
    border: 1px solid #e2e2e2;
    border-radius: 999px;
    background: #fff;
    overflow: hidden;
    padding: 0;
}

/* addons ocultos del touchspin */
.bootstrap-touchspin:has(.js-cart-line-product-quantity) .bootstrap-touchspin-prefix,
.bootstrap-touchspin:has(.js-cart-line-product-quantity) .bootstrap-touchspin-postfix {
    display: none !important;
}

/* el contenedor vertical de botones pasa a "contents" para poder ordenarlos */
.bootstrap-touchspin:has(.js-cart-line-product-quantity) .input-group-btn-vertical {
    display: contents;
}

/* input central */
.bootstrap-touchspin:has(.js-cart-line-product-quantity) .js-cart-line-product-quantity {
    order: 0;
    width: 46px;
    min-width: 46px;
    height: 40px;
    text-align: center;
    border: none;
    background: none;
    box-shadow: none;
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    padding: 0;
    -moz-appearance: textfield;
    appearance: textfield;
}

.bootstrap-touchspin:has(.js-cart-line-product-quantity) .js-cart-line-product-quantity:focus {
    outline: none;
    box-shadow: none;
}

.bootstrap-touchspin:has(.js-cart-line-product-quantity) .js-cart-line-product-quantity::-webkit-outer-spin-button,
.bootstrap-touchspin:has(.js-cart-line-product-quantity) .js-cart-line-product-quantity::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* botones − / + */
.bootstrap-touchspin:has(.js-cart-line-product-quantity) .btn-touchspin {
    order: 0;
    width: 40px;
    height: 40px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    color: #1a1a1a;
    cursor: pointer;
    padding: 0;
    border-radius: 0 !important;
    transition: background .15s ease;
}

.bootstrap-touchspin:has(.js-cart-line-product-quantity) .btn-touchspin:hover {
    background: #f2f2f2;
}

.bootstrap-touchspin:has(.js-cart-line-product-quantity) .bootstrap-touchspin-down { order: -1; }
.bootstrap-touchspin:has(.js-cart-line-product-quantity) .bootstrap-touchspin-up { order: 1; }

/* ocultar los iconos fa-angle y poner − / + */
.bootstrap-touchspin:has(.js-cart-line-product-quantity) .btn-touchspin .fa {
    display: none;
}

.bootstrap-touchspin:has(.js-cart-line-product-quantity) .bootstrap-touchspin-down::before {
    content: "\2212"; /* − */
    font-size: 20px;
    line-height: 1;
}

.bootstrap-touchspin:has(.js-cart-line-product-quantity) .bootstrap-touchspin-up::before {
    content: "+";
    font-size: 20px;
    line-height: 1;
}

/* Notificación de compra (toast) al agregar al carrito.
   Reposicionada abajo-centro (para no chocar con el drawer arriba-derecha) y estilo limpio. */
#blockcart-notification.ns-box {
    top: auto;
    bottom: 24px;
    right: 50%;
    transform: translateX(50%);
    max-width: 400px;
    min-width: 280px;
    background: #fff;
    color: #1a1a1a;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .18);
    padding: 14px 18px;
    z-index: 999999;
}

#blockcart-notification.ns-box .ns-title {
    font-size: 14px;
    color: #1a1a1a;
}

#blockcart-notification.ns-box .ns-title i.fa-check {
    color: #2ecc71;
    margin-right: 4px;
}

#blockcart-notification.ns-box .ns-thumb img {
    border-radius: 8px;
    background: #f0f0f0;
}

/* Línea de producto del carrito (item.JPG) */
#blockcart-content .cart-products > li { padding: 16px 0; }

.rr-cart-line {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.rr-cart-line-thumb {
    flex: 0 0 auto;
    width: 84px;
    height: 84px;
    border-radius: 10px;
    background: #f0f0f0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rr-cart-line-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.rr-cart-line-info {
    flex: 1 1 auto;
    min-width: 0;
}

.rr-cart-line-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.rr-cart-line-name {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a !important;
    text-decoration: none;
    line-height: 1.3;
}

.rr-cart-line-remove {
    flex: 0 0 auto;
    color: #9a9a9a !important;
    font-size: 16px;
    line-height: 1;
    padding: 2px;
    transition: color .15s ease;
}

.rr-cart-line-remove:hover { color: #1a1a1a !important; }

.rr-cart-line-variant {
    font-size: 13px;
    color: #8a8a8a;
    margin-top: 2px;
}

.rr-cart-line-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
}

.rr-cart-line-price {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    white-space: nowrap;
}

/* Quitar el listado de comentarios del detalle de producto */
.row:has(> #product-comments-list) {
    display: none !important;
}
