/* Custom Shop Styles */

.payment-methods label span{
    width: 180px !important;
    height: 180px;
    text-align: center;
    border: 1px dashed #cccccc;
    vertical-align: middle;
    display: table-cell !important;
    margin: 10px;
}
.payment-methods label span img {
    max-width: 100%;
    max-height: 100%;
}

#culqi + span {
    background-repeat: no-repeat;
    background-position: center;
}


#alert-culqi {
    display: none;
}

.navbar {
    background-color: #fff;
}

.navbar-brand {
    height: 80px;
}

.navbar-brand img {
    max-height: 50px;
}

.navbar-nav > li > a {
    line-height: 60px;
    font-size: 1.7rem;
}

 .blue .navbar .navbar-nav > .active > a, .blue .navbar .navbar-nav > .active > a:active, .blue .navbar .navbar-nav > .active > a:focus, .blue .navbar .navbar-nav > .active > a:hover, .blue .navbar .navbar-nav > .open > a, .blue .navbar .navbar-nav > .open > a:active, .blue .navbar .navbar-nav > .open > a:focus, .blue .navbar .navbar-nav > .open > a:hover, .blue .navbar .navbar-nav > li > a:active, .blue .navbar .navbar-nav > li > a:focus, .blue .navbar .navbar-nav > li > a:hover {
    color: #2196f3 !important;
    background: none;
} 


.btn-circle {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    padding: 0;
}

.btn-circle i {
    margin-left: 2px;
}

.align-middle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    height: 80px;
}

.nav.navbar-nav .btn-group .btn:first-child {
    height: 40px;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;    
}

.nav.navbar-nav .btn-group .btn:last-child {
    height: 40px;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;  
}

.nav.navbar-nav .btn, .navbar .btn-circle-xs {
    background: #4b5563;
    color: #fff;
    line-height: 26px;
    border: 1px solid #424242;
}
.nav.navbar-nav .btn:hover, .navbar .btn-circle-xs:hover {
    background-color: #F97316;
    border: 1px solid #F97316;
    color: #fff;
}
.nav.navbar-nav .btn .fa, .navbar .btn-circle-xs .fa {
    font-size: 18px;
    font-weight: bold;
}

.navbar .btn-circle-xs {
    position: relative;
    line-height: 36px;
    margin-right: 8px;
    margin-top: 18px;
    height: 36px;
    width: 36px;
}
.navbar .btn-circle-xs.btn-cart-xs {
    margin-right: 12px;
}

#dropdown-cart {
    position: relative;
}
.cart-total-items-number {
    position: absolute !important;
    top: -8px;
    font-size: 10px;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    display: flex;
    right: -8px;
}

.navbar-header {
    z-index: 1;
    position: relative;
}

#dropdown-cart ~ .dropdown-menu {
    max-height: 400px;
    min-width: 300px;
    overflow-y: auto;
    padding: 10px;
    right: 15px;
}

.top-header li.social i {
    font-size: 16px;
}

.navbar .navbar-toggle {
    margin-top: 20px;
    /* Navbar negro de la tienda: el botón va transparente con borde y
       barras claras, no un recuadro blanco que rompe el header. */
    background: transparent;
    border: 1px solid #3a322a;
    padding: 8px;
    border-radius: 4px;
}
.navbar .navbar-toggle:hover,
.navbar .navbar-toggle:focus {
    background-color: rgba(249, 115, 22, .15);
    border-color: #F97316;
}

.navbar .navbar-toggle:hover .icon-bar,
.navbar .navbar-toggle:focus .icon-bar {
    background-color: #F97316;
}

.navbar .navbar-toggle .icon-bar {
    height: 3px;
    background-color: #f2ece7;
}

#product-search-form #product-search {
    border-top-left-radius: 18px;
    border-bottom-left-radius: 18px;
}

#product-search-form button.btn-search {
    border-top-right-radius: 18px;
    border-bottom-right-radius: 18px;
}

@media (min-width: 1530px) {
    .container {
        width: 1500px;
    }
}

@media (max-width: 767px) {
    .navbar-nav > li > a {
        line-height: inherit;
    }
}

.password-toggle {
    position: absolute;
    top: 16px;
    right: 10px;    
    transform: translateY(-50%);
    cursor: pointer;
    width: 20px;
    height: 20px;
    font-size: 20px;
    color: #666;
}


.whatsapp-btn {
    position: fixed;
    bottom: 52px;
    right: 20px;
    background-color: #25D366;
    color: #fff;
    font-size: 16px;
    padding: 10px 15px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    z-index: 100;
}

.whatsapp-btn:hover {
    background-color: #128C7E;
    color: #fff;
    text-decoration: none;
  }
  
  .whatsapp-btn i {
    margin-right: 5px;
    font-size: 20px;
  }
  
  @media (max-width: 767px) {
    .whatsapp-btn {
        /* background: red; */
    }
    .whatsapp-btn i {
        margin-right: 0;
        font-size: 30px;
    }
  }

.btn-facebook > a , .btn-google > a {
    color: #fff;   
    font-size: 14px;
    font-weight: bold;
}
.btn-facebook > a {
    background-color: #3c66c4;
}

.btn-google > a {
    background-color: #cf4332;
}

.btn-facebook > a > i, .btn-google > a > i {
    margin-right: 15px;
}

header .icon-tiktok {
    
}
header .icon-tiktok img {
    height: 14px;
    vertical-align: top;
    margin-top: 6px;
}
.footer .icon-tiktok img {
    height: 14px;
}

.package-options {
    display: none;
}
.package-options.active {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.package-card {
    width: 130px;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all .2s;
    background: #fff;
    position: relative;
}

.package-card:hover {
    border-color: #F97316;
}

.package-card.active {
    border-color: #F97316;
    background: #FFF7ED;
}
.package-card.active::after{
    content:"\f00c";              /* Font Awesome check */
    font-family:"FontAwesome";
    position:absolute;
    top:-10px;
    right:-10px;
    width:24px;
    height:24px;
    border-radius:50%;
    background:#F97316;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:14px;
    box-shadow:0 2px 6px rgba(0,0,0,.25);
}

.package-qty {
    font-size: 18px;
    font-weight: bold;
}

.package-price {
    font-size: 16px;
    color: #333;
}

.package-save {
    color: #c24040;
    font-size: 13px;
    font-weight: bold;
}

.old-price {
    color: #999;
    text-decoration: line-through;
    font-size: 16px;
    margin-right: 8px;
}

.discount-badge {
    background: #d9534f;
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
}

.caption-badge {
 font-size: 11px;
    font-weight: normal;
    opacity: .9;
    background: #fff;
    padding: 1px 5px;
    border-radius: 10px;
    white-space: nowrap;
    margin-left: 5px;
    color: #d9534f;
    font-weight: bold;
}

.stock-badge {
    display: inline-block;
    background: #5cb85c;
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    margin-right: 10px;
}

.sold-info {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    color: #666;
    font-size: 13px;
}

.sold-info img {
    height: 30px;
    margin-right: 6px;
}

.sold-info strong {
    color: #333;
}

.stock-alert {
    margin-top: 12px;
    font-size: 14px;
    color: #555;
}

.stock-alert .highlight {
    color: #d9534f;
    font-weight: bold;
    font-size: 16px;
}

.stock-progress {
    margin-top: 8px;
    margin-bottom: 0;
    height: 6px;
    border-radius: 10px;
    background: #eee;
    box-shadow: none;
}

.stock-progress .progress-bar {
    background: #d9534f;
}

.panel {
    border-radius: 12px;
    
}
.panel-heading {
    border-top-right-radius: 12px;
    border-top-left-radius: 12px;
}
.input-group-addon, .add-to-wishlist {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

.input-group-addon:last-child, #add-to-card button[type="submit"], button.add-to-cart {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}


.sold-info img {
    animation: fireBlink 0.8s infinite ease-in-out;
    transform-origin: center bottom;
}

@keyframes fireBlink {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    25% {
        opacity: .8;
        transform: scale(1.08);
    }
    50% {
        opacity: 1;
        transform: scale(.95);
    }
    75% {
        opacity: .9;
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}


.shipping-benefits {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 25px 15px;
    margin: 25px 0;
    box-shadow: 0 3px 10px rgba(0,0,0,.05);
}

.benefit-item {
    padding: 15px;
    transition: .25s;
}

.benefit-item:hover {
    transform: translateY(-4px);
}

.benefit-icon {
    font-size: 42px;
    margin-bottom: 15px;
}

.benefit-item h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.benefit-item p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.benefit-item strong {
    color: #333;
}

@media (max-width: 767px) {
    .benefit-item {
        margin-bottom: 25px;
    }

    .benefit-item:last-child {
        margin-bottom: 0;
    }
}

.product .product-bottom .product-rating {
    float: none;
    width: 100%;
}

.price-products {
    float: right;
    width: 70%;
}

.price-group-products {
    float: right;
    width: 70%;
    margin-top: 10px;
}

.col-md-4 .price-products {
    display: inline-block;
    float: none;
    width: 100%;
    text-align: center
}

.col-md-4 .price-group-products {
    display: flex;
    justify-content: center;  
    float: none;
    width: 100%;
}


.col-md-6 .price-group-products .pretty-check {
    margin-left: 0;
}

#results .product,
.home-featured-grid .product {
    border-radius: 12px;
}
.product .product-name {
    line-height: 1.1em;
    height: 2.2em;
    text-overflow: ellipsis;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}


.pretty-check {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-family: Arial, sans-serif;
    color: #444;
    overflow: hidden;
    margin-left: 10px;
}

/* Esconde el checkbox REAL */
.pretty-check input {
    position: fixed;
    left: -9999px;
}

.pretty-check .checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #bdbdbd;
    border-radius: 50%;
    margin-right: 8px;
    position: relative;
    box-sizing: border-box;
}

.pretty-check input:checked + .checkmark {
    background: #5cb85c;
    border-color: #5cb85c;
}

.pretty-check input:checked + .checkmark:after {
    content: "";
    position: absolute;
    left: 5px;
    top: 1px;
    width: 6px;
    height: 11px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.select-redondo{
    height: 42px;
    border: 2px solid #d9d9d9;
    border-radius: 12px;
    padding: 6px 15px;
    font-size: 14px;
    background-color: #fff;
    box-shadow: none;
    transition: all .25s ease;
}

.select-redondo:focus{
    border-color: #5cb85c;
    box-shadow: 0 0 8px rgba(92,184,92,.3);
    outline: none;
}

@media (max-width: 480px) {
    .price-products {
        float: none;
        width: 100%;
        text-align: center;
    }
}



.cart-item-image img {
    width: 50px;
}

.btn:focus, .btn:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent;
    -webkit-appearance: none;
    appearance: none;
}

/* Estilos para sidebar */
/* Fondo */

#cart-overlay{
    position:fixed;
    left:0;
    top:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,.45);

    opacity:0;
    visibility:hidden;

    transition:.3s;

    z-index:1040;
}

#cart-overlay.show{
    opacity:1;
    visibility:visible;
}


/* Sidebar */

#cart-sidebar{

    position:fixed;

    top:0;
    right:0;

    width:420px;
    max-width:100%;
    height:100%;

    background:#fff;

    transform:translateX(100%);
    transition:transform .35s ease;

    z-index:1050;

    display:flex;
    flex-direction:column;

    box-shadow:-5px 0 20px rgba(0,0,0,.25);
}

#cart-sidebar.show{
    transform:translateX(0);
}


/* Header */

#cart-sidebar .cart-header{

    height:65px;

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

    padding:0 20px;

    border-bottom:1px solid #eee;

    font-size:20px;
    font-weight:bold;
}

#cart-sidebar .cart-close{

    border:none;
    background:none;

    font-size:32px;

    cursor:pointer;

    padding:0;
}


/* Body */

#cart-sidebar .cart-body{
    flex:1;
    overflow-y:auto;
    padding:20px;
    min-height:0;
    height: calc(100% - 170px);
}

#cart-sidebar .cart-body tfoot {
    position: sticky;
    bottom: 0;
}

#cart-sidebar #cart-links{
    height: 90px;
    padding:18px 20px;
    border-top:1px solid #ececec;
    background:#fff;
    box-shadow:0 -4px 12px rgba(0,0,0,.05);
    flex-shrink:0;
}

/* Móvil */

@media(max-width:768px){

    #cart-sidebar{

        width:90%;
    }

}

#cart-sidebar .cart-item-image {
    height: 80px !important;
}


/* Estilo botoones del sidebar */
/*==================================
    BOTONES SIDEBAR CARRITO
==================================*/

#cart-sidebar .cart-actions .btn-group{
    width:50%;
    padding:0 4px;
}

#cart-sidebar .cart-btn{
    height:50px;

    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;

    border-radius:30px !important;

    font-size:15px;
    font-weight:600;

    white-space:nowrap;

    transition:all .25s ease;

    box-shadow:0 3px 8px rgba(0,0,0,.08);
}

#cart-sidebar .cart-btn i{
    font-size:16px;
}

/*----------------------------------
    Ver carrito
----------------------------------*/

#cart-sidebar .cart-btn-secondary{
    background:#FFF7ED;
    border:1px solid #FED7AA;
    color:#1F2937;
}

#cart-sidebar .cart-btn-secondary:hover,
#cart-sidebar .cart-btn-secondary:focus{
    background:#FFE7D6;
    border-color:#F97316;
    color:#1F2937;
    text-decoration:none;
    transform:translateY(-2px);
    box-shadow:0 6px 14px rgba(249,115,22,.18);
}

/*----------------------------------
    Comprar
----------------------------------*/

#cart-sidebar .cart-btn-primary{
    background:#F97316;
    border:1px solid #F97316;
    color:#FFF;
}

#cart-sidebar .cart-btn-primary:hover,
#cart-sidebar .cart-btn-primary:focus{
    background:#EA580C;
    border-color:#EA580C;
    color:#FFF;
    text-decoration:none;
    transform:translateY(-2px);
    box-shadow:0 8px 18px rgba(249,115,22,.35);
}

#cart-sidebar .cart-btn:active{
    transform:scale(.98);
}



/* Estilo tabla sidebar */

/*==================================
    TABLA DEL CARRITO
==================================*/

#cart-sidebar .table-cart{
    width:100%;
    margin:0;
    border:0;
    background:#FFF;
}

#cart-sidebar .table-cart>tbody>tr{
    border-bottom:1px solid #EFEFEF;
    transition:.25s;
}

#cart-sidebar .table-cart>tbody>tr:hover{
    background:#FFF8F3;
}

#cart-sidebar .table-cart>tbody>tr>td{
    border:0 !important;
    padding:10px 8px;
    vertical-align:top;
    background:transparent;
}


/*==================================
    IMAGEN
==================================*/

#cart-sidebar .table-cart td:first-child{
    width:96px;
    min-width:96px;
    max-width:96px;
    padding-right:8px !important;
}

#cart-sidebar .table-cart .cart-item-image{
    display:block;
    width:84px;
    height:84px;
    overflow:hidden;

    border-radius:16px;

    background:#FFF;

    border:2px solid #FFE7D6;

    box-shadow:0 4px 10px rgba(0,0,0,.06);

    transition:.25s;
}

#cart-sidebar .table-cart .cart-item-image img{
    width:100% !important;
    height:100% !important;
    display:block;
    object-fit:cover;
    transition:.35s;
}

#cart-sidebar .table-cart tbody tr:hover .cart-item-image{
    border-color:#F97316;
}

#cart-sidebar .table-cart tbody tr:hover .cart-item-image img{
    transform:scale(1.06);
}


/*==================================
    NOMBRE
==================================*/

#cart-sidebar .table-cart td:nth-child(2){
    padding-left:6px !important;

    color:#6B7280;

    font-size:13px;
}

#cart-sidebar .table-cart td:nth-child(2) a{

    display:block;
    color:#1F2937;
    font-size:14px;
    font-weight:700;
    text-decoration:none;
    line-height:1.35;
    margin-bottom:6px;
    transition:.2s;
    display:-webkit-box;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
    overflow:hidden;
}

#cart-sidebar .table-cart td:nth-child(2) a:hover{
    color:#F97316;
}


/*==================================
    PRECIO
==================================*/

#cart-sidebar .table-cart td:last-child{

    width:85px;

    text-align:right;

    white-space:nowrap;

    color:#F97316;

    font-size:18px;

    font-weight:700 !important;
}


/*==================================
    FOOTER
==================================*/

#cart-sidebar .table-cart tfoot{

    border-top:2px solid #F3F4F6;
}

#cart-sidebar .table-cart tfoot td{

    border:0 !important;

    background:#FAFAFA;

    padding:14px 8px;

    font-size:14px;

    font-weight:600;

    color:#1F2937;
}

#cart-sidebar .table-cart tfoot tr:last-child{

    background:#FFF7ED;
}

#cart-sidebar .table-cart tfoot tr:last-child td{

    font-size:17px;

    font-weight:700;

    border-top:1px solid #FED7AA !important;
}

#cart-sidebar .table-cart tfoot tr:last-child td:last-child{

    color:#F97316;

    font-size:20px;
}


/*==================================
    LINKS
==================================*/

#cart-sidebar .table-cart a{

    transition:.2s;
}

#cart-sidebar .table-cart a:hover{

    text-decoration:none;
}


/*==================================
    RESPONSIVE
==================================*/

@media(max-width:480px){

    #cart-sidebar .table-cart td:first-child{

        width:84px;
        min-width:84px;
        max-width:84px;
    }

    #cart-sidebar .table-cart .cart-item-image{

        width:72px;
        height:72px;
    }

    #cart-sidebar .table-cart td:nth-child(2) a{

        font-size:13px;
    }

    #cart-sidebar .table-cart td:last-child{

        font-size:16px;
    }

}



/* Filtros adicionales */
.btn-filter {
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 12px;
    color: #222;
    padding: 8px 16px;
    font-size: 15px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all .2s ease;
}

.btn-filter:hover,
.btn-filter:focus {
    background: #fff;
    border-color: #a8a8a8;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    color: #222;
    outline: none;
}

.btn-filter:active {
    background: #fff;
    border-color: #7d7d7d;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.08);
}

.btn-filter i {
    font-size: 15px;
}





/* Contenedor */
.bootstrap-select {
    width: 100% !important;
}

/* Botón */
.bootstrap-select > .dropdown-toggle {
    background: #fff !important;
    border: 1px solid #d9d9d9 !important;
    border-radius: 12px !important;
    color: #222 !important;
    padding: 8px 16px;
    height: 42px;
    transition: all .2s ease;
    box-shadow: none !important;
}

/* Hover */
.bootstrap-select > .dropdown-toggle:hover,
.bootstrap-select.open > .dropdown-toggle,
.bootstrap-select > .dropdown-toggle:focus,
.bootstrap-select > .dropdown-toggle:active {
    background: #fff !important;
    border-color: #a8a8a8 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.08) !important;
    outline: none !important;
}

/* Texto */
.bootstrap-select .filter-option {
    color: #222;
    font-weight: 500;
    margin-right: 8px;
}

/* Flecha */
.bootstrap-select .caret {
    border-top-color: #666;
}

/* Elimina el borde azul de Bootstrap */
.bootstrap-select .btn:focus {
    outline: none !important;
}
.bootstrap-select .dropdown-menu {
    border-radius: 12px;
    border: 1px solid #ddd;
    box-shadow: 0 6px 20px rgba(0,0,0,.12);
}



#grid-menu i {
    font-size: 20px;
}
#grid-selector {
    line-height: 46px;
}
#grid-selector #grid-menu ul {
    width: 60px;
}
#grid-selector #grid-menu ul li {
    width: 30px;
    color: #c0c0c0;
}
#grid-selector #grid-menu ul li.active, #grid-selector #grid-menu ul li:hover {
    color: #ff791e;
}

/* =========================================
   Menú móvil (drawer), mismo patrón que #cart-sidebar
   pero deslizando de izquierda a derecha
   ========================================= */

#nav-overlay {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .45);

    opacity: 0;
    visibility: hidden;

    transition: .3s;

    z-index: 1040;
}

#nav-overlay.show {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 767px) {

    .navbar-collapse#navbar-ex1-collapse {
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        max-width: 85%;
        height: 100%;

        /* Paleta de la tienda: negro de marca (igual que el navbar) con
           texto claro y acentos naranja, en vez del blanco lavado. */
        background: #14110d;

        transform: translateX(-100%);
        transition: transform .35s ease;

        z-index: 1050;

        display: flex !important;
        flex-direction: column;

        margin: 0;
        padding: 0;
        border: 0;

        box-shadow: 5px 0 20px rgba(0, 0, 0, .25);

        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .navbar-collapse#navbar-ex1-collapse.show {
        transform: translateX(0);
    }

    #navbar-ex1-collapse .nav-drawer-header {
        position: relative;
        display: flex;
        align-items: center;
        flex-shrink: 0;

        /* Aire arriba/abajo para que el logo no quede pegado al borde
           superior del drawer; el padding derecho reserva el espacio de
           la X, que va flotando en la esquina. */
        min-height: 68px;
        padding: 18px 56px 16px 20px;

        border-bottom: 1px solid #2a221b;
    }

    #navbar-ex1-collapse .nav-drawer-logo {
        display: inline-flex;
        align-items: center;
        max-width: 100%;
    }

    #navbar-ex1-collapse .nav-drawer-logo img {
        max-height: 40px;
        width: auto;
    }

    #navbar-ex1-collapse .nav-drawer-close {
        position: absolute;
        top: 10px;
        right: 10px;

        border: none;
        background: none;
        font-size: 26px;
        line-height: 1;
        color: #b7aca1;
        cursor: pointer;
        padding: 4px 10px;
    }

    #navbar-ex1-collapse .nav-drawer-close:hover {
        color: #F97316;
    }

    #navbar-ex1-collapse .navbar-nav {
        margin: 0;
        float: none;
        width: 100%;
    }

    #navbar-ex1-collapse .navbar-nav > li {
        float: none;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, .07);
    }

    #navbar-ex1-collapse .navbar-nav > li > a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 13px 20px;
        font-size: 15px;
        font-weight: 600;
        color: #f2ece7;
        transition: background .15s ease, color .15s ease;
    }

    #navbar-ex1-collapse .navbar-nav > li > a:hover,
    #navbar-ex1-collapse .navbar-nav > li > a:focus {
        background: rgba(249, 115, 22, .14);
        color: #F97316;
    }

    #navbar-ex1-collapse .navbar-nav > li.active > a {
        color: #fff;
        background: #F97316;
        border-left: 3px solid #C2410C;
        padding-left: 17px;
    }

    #navbar-ex1-collapse .navbar-nav > li.dropdown > a .caret {
        transition: transform .2s ease;
    }

    #navbar-ex1-collapse .navbar-nav > li.dropdown.open > a .caret {
        transform: rotate(180deg);
    }

    /* Submenús: en vez de flotar encima del contenido, se despliegan
       en línea (acordeón), indentados dentro del propio drawer */
    #navbar-ex1-collapse .dropdown-menu {
        position: static;
        float: none;
        width: 100%;
        margin: 0;
        padding: 4px 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        background: #1c1712;
    }

    #navbar-ex1-collapse .dropdown-menu > li > a {
        padding: 10px 20px 10px 32px;
        font-size: 14px;
        font-weight: 500;
        color: #cbbfb4;
    }

    #navbar-ex1-collapse .dropdown-menu > li > a:hover,
    #navbar-ex1-collapse .dropdown-menu > li > a:focus {
        background: #2a221b;
        color: #F97316;
    }

    #navbar-ex1-collapse .dropdown-menu > li.divider {
        margin: 4px 20px;
        background: #332b23;
    }

    #navbar-ex1-collapse .dropdown-submenu .dropdown-menu {
        background: #211a14;
    }

    #navbar-ex1-collapse .dropdown-submenu .dropdown-menu > li > a {
        padding-left: 44px;
        font-size: 13px;
    }

    #navbar-ex1-collapse .dropdown-menu-2x,
    #navbar-ex1-collapse .mega-menu-content {
        width: 100%;
        min-width: 0;
    }

    #navbar-ex1-collapse hr {
        margin: 6px 20px;
        border-color: #2a221b;
    }
}

/* El theme responsivo apunta a "img" hijo directo de .item (selector
   .carousel-inner > .item > img), pero el slider ahora envuelve la imagen
   en <picture> (para servir una versión mobile aparte), lo que rompe ese
   selector y deja la imagen con su tamaño intrínseco en vez de adaptarse
   al ancho. Se repite la misma regla apuntando a picture > img. */
.carousel-inner > .item > picture,
.carousel-inner > .item > a > picture {
    display: block;
}
.carousel-inner > .item > picture > img,
.carousel-inner > .item > a > picture > img {
    display: block;
    height: auto;
    width: 100%;
}

/* ---------------------------------------------------------------
   Productos destacados del home: grid de 4 columnas x 2 filas en
   escritorio (2 x 2 en mobile), el resto se recorre con scroll
   horizontal + flechas prev/next. Las tarjetas dentro son las mismas
   que arma gen_html() para /shop/products (col-sm-6/col-md-4), así
   que se les anula el float/width de Bootstrap para que entren en
   el grid en vez de apilarse en columnas fijas.

   El mismo slider se reutiliza para el bloque "Nuevos Productos"
   (.home-new-arrivals-section) que va debajo de la fila de colecciones.
   --------------------------------------------------------------- */
.home-featured-section,
.home-new-arrivals-section {
    position: relative;
}
.home-new-arrivals-section {
    margin-top: 34px;
}
/* Overlay de carga del bloque "Nuevos Productos": mismas reglas que #loading
   (definido en styles.min.css), acotado a su sección por el position:relative
   de arriba. */
#loading-new {
    background-color: rgba(0, 0, 0, .25);
    border-radius: 20px;
    position: absolute;
    inset: 0;
    min-height: 100px;
    z-index: 998;
    display: none;
}
#loading-new .wave {
    font-size: 10px;
    height: 40px;
    left: 50%;
    margin: -20px 0 0 -25px;
    position: absolute;
    top: 50%;
    width: 50px;
    z-index: 999;
    text-align: center;
}
#loading-new .wave .rect {
    animation: waveStretchDelay 1.2s infinite ease-in-out;
    background-color: #fff;
    display: inline-block;
    height: 100%;
    width: 6px;
}
#loading-new .wave .rect1 { animation-delay: -1.2s; }
#loading-new .wave .rect2 { animation-delay: -1.1s; }
#loading-new .wave .rect3 { animation-delay: -1s; }
#loading-new .wave .rect4 { animation-delay: -.9s; }
#loading-new .wave .rect5 { animation-delay: -.8s; }

.home-featured-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}
.home-featured-nav-group {
    display: flex;
    gap: 8px;
}
/* Se ocultan hasta que el JS confirme que hay contenido para recorrer
   (más productos/colecciones de los que entran visibles) */
.home-featured-section:not(.has-overflow) .home-featured-nav-group,
.home-collections-section:not(.has-overflow) .home-featured-nav-group {
    display: none;
}

.home-featured-grid {
    display: grid;
    grid-auto-flow: column;
    /* Altura de fila fija (medida por JS según la tarjeta más alta, ver
       home-featured.js) en vez de "auto": así el contenedor mide siempre
       exactamente 2 filas y overflow-y:hidden puede recortar el resto,
       en lugar de crecer hasta la altura total del contenido. */
    grid-template-rows: repeat(2, var(--home-featured-row-h, 480px));
    grid-auto-columns: calc((100% - 3 * 20px) / 4);
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    /* Barra de desplazamiento oculta: la navegación es por las flechas
       (o swipe en mobile), no hace falta mostrar el scrollbar. */
    scrollbar-width: none;          /* Firefox */
    -ms-overflow-style: none;       /* Edge / IE antiguos */
}
/* Estado temporal (ver sizeGrid() en home-featured.js): mientras se mide
   la altura natural de la tarjeta más alta, se anula la altura de fila
   fija — si no, el propio grid ya estirado (o el valor por defecto de
   480px) contaminaría la medición. */
.home-featured-grid.measuring {
    grid-template-rows: repeat(2, auto) !important;
}
.home-featured-grid::-webkit-scrollbar {
    display: none;              /* Chrome / Safari */
}

/* gen_html() envuelve las tarjetas en <div class="row" style="display:contents">;
   ese wrapper desaparece del árbol de cajas pero sigue siendo el padre real
   en el DOM, así que .product-container NO es hijo directo de #results:
   se usa combinador descendiente, no ">". */
.home-featured-grid .product-container {
    scroll-snap-align: start;
    width: auto !important;
    float: none !important;
    padding: 0 !important;
}
.home-featured-grid .product {
    height: 100%;
}

/* Badge de descuento de la tarjeta (home destacados / nuevos productos y
   también /shop/products, /category, /brand en mobile — misma tarjeta
   angosta a 2 columnas): "42% DESCUENTO Desde N uds." se parte mal (queda
   "42%" arriba y "DESCUENTO" abajo). Se saca la leyenda de la regla de
   cantidad ("Desde N uds.") FUERA de la píldora negra: la negra solo
   envuelve "XX% DESCUENTO" y la leyenda queda como pastilla suelta,
   centrada bajo la píldora y con fondo naranja claro. En escritorio no se
   toca. */
@media (max-width: 767px) {
    .home-featured-grid .discount-badge,
    #results:not(.home-featured-grid) .discount-badge {
        position: relative;
        white-space: nowrap;
        overflow: visible;
        margin-bottom: 24px;
    }
    .home-featured-grid .discount-badge .caption-badge,
    #results:not(.home-featured-grid) .discount-badge .caption-badge {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        margin: 4px 0 0;
        white-space: nowrap;
        background: #FFEDD5;
        padding: 2px 8px;
    }

    /* Grupo "Con relleno" (.price-group-products): la tarjeta mobile usa
       .col-md-6, así que la regla de centrado de .col-md-4 no aplica y
       queda con float:right;width:70% (corrido a la derecha). Se centra. */
    .home-featured-grid .price-group-products,
    #results:not(.home-featured-grid) .price-group-products {
        float: none;
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .home-featured-grid {
        grid-auto-columns: calc((100% - 12px) / 2);
        gap: 0 12px;
    }
}

/* Flechas junto al título "Productos destacados" (no flotando sobre las
   tarjetas): estilo neutro por defecto, la paleta naranja/negro del demo
   lo sobreescribe en theme-orange-black-demo.css */
.home-featured-nav {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    color: #555;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, opacity .2s ease;
}
.home-featured-nav:hover {
    background: #f2f2f2;
    border-color: #ccc;
}
.home-featured-nav[disabled] {
    opacity: .3;
    cursor: default;
    pointer-events: none;
}

/* =========================================
   Fila de colecciones del home (cuadros apaisados enlazables).
   Con ≤4 llenan el ancho (flex:1); con más, el flex-basis fuerza
   desborde -> scroll horizontal + flechas (home-collections.js).
   ========================================= */
.home-collections-section {
    margin-top: 34px;
}
.home-collections {
    display: flex;
    justify-content: center;
    gap: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    padding-bottom: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.home-collections::-webkit-scrollbar {
    display: none;
}
/* Sin desborde: no hace falta el "scroller", que ocupe todo el ancho */
.home-collections-section:not(.has-overflow) .home-collections {
    overflow-x: visible;
}
/* Con desborde el centrado rompería el scroll: se vuelve a alinear a la izq. */
.home-collections-section.has-overflow .home-collections {
    justify-content: flex-start;
}
.home-collection {
    flex: 1 0 260px;
    max-width: 520px;
    scroll-snap-align: start;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    background: #f2f2f2;
    aspect-ratio: 16 / 10;
    transition: transform .2s ease, box-shadow .2s ease;
}
.home-collection:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .15);
}
.home-collection img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* navegador viejo sin aspect-ratio */
@supports not (aspect-ratio: 1) {
    .home-collection {
        height: 200px;
    }
}

/* Banner de la colección en su página de listado (/coleccion/<slug>) */
.collection-banner {
    margin-bottom: 18px;
    border-radius: 12px;
    overflow: hidden;
}
.collection-banner img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    display: block;
}
@media (max-width: 767px) {
    .collection-banner img {
        max-height: 180px;
    }
}

/* =========================================
   /shop/products (y /category, /brand, /coleccion — todos usan #results +
   gen_html): en mobile gen_html marca las tarjetas como .col-md-6, que
   Bootstrap ignora bajo 992px, así que quedaban a 1 columna. Se fuerza el
   grid a 2 columnas, igual que el home. Las tarjetas van envueltas en
   <div class="row" style="display:contents">, por eso .product-container
   termina siendo hijo efectivo de #results y el 50% aplica.

   OJO: el slider "Productos Destacados" del home TAMBIÉN es #results (con la
   clase .home-featured-grid añadida), y ese tiene su propio layout de grid
   con scroll horizontal — por eso todo este bloque va con
   :not(.home-featured-grid), para no pisárselo.
   ========================================= */
@media (max-width: 767px) {
    #results:not(.home-featured-grid) {
        display: block !important;   /* pisa el style="display:table" inline */
    }
    /* gen_html() agrupa las tarjetas de a 2 en <div class="row"
       style="display:contents">. Se convierte esa fila en un flex real de 2
       columnas (pisando el display:contents inline). Los pseudo-elementos
       clearfix de Bootstrap en .row cuentan como flex items y descuadran el
       gap, por eso se ocultan. */
    #results:not(.home-featured-grid) > .row {
        display: flex !important;
        flex-wrap: wrap;
        gap: 12px;
        margin: 0 0 12px;
    }
    #results:not(.home-featured-grid) > .row::before,
    #results:not(.home-featured-grid) > .row::after {
        display: none;
    }
    #results:not(.home-featured-grid) .product-container {
        width: calc((100% - 12px) / 2);
        float: none;
        padding: 0;
        margin-bottom: 0;
    }
    /* Tarjeta angosta: stepper de cantidad y botones (favoritos + "Añadir
       a la cesta") apilados a todo el ancho, mismo criterio que el home. */
    #results:not(.home-featured-grid) .product-bottom .row {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        margin-left: 0;
        margin-right: 0;
    }
    #results:not(.home-featured-grid) .product-bottom .row > .col-xs-5,
    #results:not(.home-featured-grid) .product-bottom .row > .col-xs-7 {
        width: 100%;
        float: none;
        padding-left: 0;
        padding-right: 0;
    }
    /* gen_html() en mobile marca .product-rating (contenedor reusado para el
       stepper) con float:left;width:55%; en la fila apilada eso lo deja a
       media caja. Se lleva a ancho completo. */
    #results:not(.home-featured-grid) .product-bottom .product-rating {
        float: none;
        width: 100%;
        padding-bottom: 0;
    }
}

/* Fila de "cantidad" + "favoritos/agregar" dentro de la tarjeta del
   home: el split fijo col-xs-5/col-xs-7 de Bootstrap reserva 150px
   para el stepper (que solo usa ~120px, dejando aire muerto) más 30px
   de gutter, y le deja al grupo de botones apenas ~138px — insuficiente
   para "Añadir a la cesta", que terminaba con su última letra tapada
   por la tarjeta vecina. Se cambia a flex con columnas ajustadas a su
   contenido real y un gap chico y fijo, liberando bastante más ancho
   para los botones. Solo en el grid del home: /shop/products no tiene
   este problema (ahí sí le entran 3-4 tarjetas por fila con más ancho
   cada una) así que se deja intacto. */
.home-featured-grid .product-bottom .row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-left: 0;
    margin-right: 0;
    gap: 8px;
}
.home-featured-grid .product-bottom .row > [class*="col-xs-"] {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
    float: none;
}
/* El stepper de cantidad usa .input-group, que en Bootstrap es
   display:table — dentro de un flex item con width:auto esos
   elementos no se ajustan a su contenido (se expanden), así que se le
   da un ancho fijo ya calibrado a lo que el stepper realmente ocupa,
   en vez de depender de un shrink-to-fit que no funciona con tables. */
.home-featured-grid .product-bottom .row > .col-xs-5 {
    flex: 0 0 130px;
    width: 130px;
}
.home-featured-grid .product-bottom .row > .col-xs-7 {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
}

/* .product-rating es el contenedor original de las estrellas de
   rating del theme, reutilizado aquí para el stepper de cantidad —
   pero se le quedó su padding-bottom:10px de estrellas, que hace su
   columna más alta que la de los botones y desalinea el centrado
   vertical (los botones quedaban unos px más abajo). La tarjeta lleva
   .product.alt, así que styles.min.css la pinta con
   `.product.alt .product-bottom .product-rating{padding:0 0 10px}`
   (especificidad 0,4,0) — el override tiene que incluir .product.alt
   para ganar. */
.home-featured-grid .product.alt .product-bottom .product-rating {
    padding-bottom: 0;
}

/* Favoritos y "Añadir a la cesta" con la misma altura fija (34px,
   igual que el stepper) y centrado por flex en vez de depender de
   line-height/padding — así el tamaño de fuente de cada uno no afecta
   su alto y ambos quedan exactamente parejos. */
.home-featured-grid .add-to-wishlist,
.home-featured-grid .btn-group .btn-theme.add-to-cart {
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 0;
    padding-bottom: 0;
}
.home-featured-grid .add-to-wishlist {
    width: 34px;
    padding-left: 0;
    padding-right: 0;
    flex-shrink: 0;
}
.home-featured-grid .btn-group .btn-theme.add-to-cart {
    width: calc(100% - 34px);
    padding-left: 8px;
    padding-right: 8px;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* En mobile (2 columnas, tarjeta bastante angosta) no entran el
   stepper Y los botones uno al lado del otro sin volver a apretar
   "Añadir a la cesta" — se apilan en dos líneas, cada una a todo el
   ancho de la tarjeta. */
@media (max-width: 767px) {
    .home-featured-grid .product-bottom .row {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .home-featured-grid .product-bottom .row > .col-xs-5,
    .home-featured-grid .product-bottom .row > .col-xs-7 {
        flex: 0 0 auto;
        width: 100%;
    }
}

/* =========================================
   "GRATIS" del costo de envío (cuadro "Totales" en /cart, /cart/checkout y
   donde se muestre el envío = 0). Píldora naranja en negrita con ícono de
   camión animado para que resalte frente al resto de la tabla de totales.
   ========================================= */
.free-shipping-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 10px;
    border-radius: 999px;
    background: #FFF1E7;
    color: #EA580C;
    font-weight: 700;
    font-size: .95em;
    letter-spacing: .4px;
    text-transform: uppercase;
    white-space: nowrap;
    line-height: 1.6;
}
.free-shipping-badge .fa {
    font-size: 1.1em;
    animation: freeShippingTruck 1.4s ease-in-out infinite;
}
@keyframes freeShippingTruck {
    0%, 100% { transform: translateX(0); }
    50%      { transform: translateX(3px); }
}
@media (prefers-reduced-motion: reduce) {
    .free-shipping-badge .fa { animation: none; }
}

