/* Global */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap");
:root {
    --primary-h: 29;
    --primary-s: 100%;
    --primary-l: 50%;

    --title-color: #001524;
    --subtitle-color: #60769a;
    --price-color: #001524;
    /* --background-color: rgba(0, 208, 255, 1); */
    /* --background-color: #ff7b00ff; */
    /* --background-input: rgb(255, 241, 226); */
    /* --border-color: rgb(255, 225, 195); */
    /* --background-color-pastel: rgb(255, 225, 195); */
    --bg-opacity: 0.5;
}
h1,
.h1,
h2,
.h2,
h3,
.h3,
h4,
.h4,
h5,
.h5,
h6,
.h6 {
    color: var(--title-color);
}
*::-webkit-scrollbar-track{
	background-color: #F1F2F4;
}
*::-webkit-scrollbar{
	width: 6px;
}
*::-webkit-scrollbar-thumb{
	background-color: #cbcfd6;
	border-radius: 4px;
}
body {
    font-size: 1.4rem;
}
body, .product-title, .add-cart {
font-family: 'Poppins', sans-serif;
}
a{
    text-decoration: none !important;
}
nav.main-nav.flex-grow-1 .menu {
    flex-flow: row wrap;
    display: flex;
    justify-content: center;
    padding-top: 68px;
}
.product-single-container.product-single-default {
    margin-top: 5rem;
}
/* Header */
.header-bottom.sticky-header.fixed{
    display: none;
}
.header-bottom.sticky-header.header-menu{
    margin-top: 100px;
}
.header-bottom {
    background-color: #f9fafc;
}

ul.menu.sf-arrows.sf-js-enabled li a {
    background: #eaeef7;
    margin: 0 5px 5px 0;
    padding: 6px 16px;
    color: #60769a;
    border-radius: 4px;
}
.logo img {
    max-height: 42px;
}

.header {
    background-color: #fff;
    border-bottom: 1px solid #f1f2f4;
    position: fixed;
    z-index: 13;
    width: 100%;
}

.header-middle {
    padding-top: 9px;
    padding-bottom: 9px;
}
.header-right {
    height: 42px;
}
.header-right .dropdown.cart-dropdown {
    height: 45px;
}
.header-contact span {
    color: #23da95;
}

.header-contact,
.whatsapp-order {
    color: #23da95;
    background: #e4fff4;
    border-radius: 5px;
    padding: 3px 15px;
}

.dropdown, .dropleft, .dropright, .dropup {
    position: relative;
    background: #f4f6fa;
    border-radius: 5px;
}
.cart-dropdown .dropdown-toggle {
    padding-right: 1rem;

}
.header-contact::after{
    display: none;
}

.header-dropdown .search_input {
    border-radius: 6px !important;
    height: 42px;
    padding: 1.2rem;
    border-color: #f4f6fa;
    background: #f4f6fa;
    color: #60769a;
}
.form-control{
    font-size: 1.4rem !important;
    padding: 1.25rem 1.5rem !important;
}
.search_input::placeholder,
input#email::placeholder,
input#pwd::placeholder,
input#name_reg::placeholder,
input#email_reg::placeholder,
input#pwd_reg::placeholder,
input#pwd_repeat_reg::placeholder,
select.form-control::placeholder, 
input.form-control::placeholder, 
textarea.form-control::placeholder  {
    color: #B1B8C2 !important;
}
.header-dropdown .search_input:focus {
    border-color: #60769a;
}

.cart-dropdown .dropdown-toggle::after{
    display: none;
}

.icon-user:before {
    content: '\f007';
    font-family: 'Font Awesome 5 Free';
    transform: scale(.75);
}


.cart-dropdown .text-white {
    color: #60769a !important;
}

.product-single-tabs li.nav-item:nth-child(2),
.ratings-container,
.cart-dropdown .dropdownmenu-wrapper::after,
.dropdownmenu-wrapper::before {
    display: none;
}




/* Home */
.home-slide::before{
    background: #fff;
}
.home-slide div {
    border-radius: 18px;
}

/* Produc list */
.product-image img {
    object-fit: contain;
}
.product-image-list {
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-container {
    background-color: #fff;
    border: unset;
    margin-bottom: 36px;
    border-radius: 8px;
}
.product-image::after {
    background-color: unset;
}
figure.product-image-container:hover {
}
.product.product-style {
    border: 1px solid #f1f2f4;
    border-radius: 8px;
    padding-bottom: 12px;
}
.product.product-style:hover{
    box-shadow: 0 4px 24px rgb(153 153 153 / 20%);
}
.product:hover .paction.add-cart, .grid-product:hover .paction.add-cart {
    border-color: #23da95;
    background-color: #23da95;
}
.product-action {
    display: inline-block;
}
.product-action .add-cart::before {
    font-size: 28px;
}
.price-box {
    font: 400 0/1 "Poppins",sans-serif;
    color: #00112e;
    width: 50%;
    display: inline-block;
}
.add-cart span:not(.product-quick-view .add-cart span) {
    display: none;
}
.add-cart {
    color: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
    background-color: hsl(var(--primary-h), var(--primary-s), 96%);
    border: unset;
    min-width: 50px;
    border-radius: 5px;
}

.product-title a {
    color: #00132f;
    font-size: 15px;
    text-decoration: none;
}
h2.product-title {
    margin: 10px;
    height: 36px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.product.product-style:hover .product-title a {
    color: #808a9c;
}
.internal_id{
    display: none;
}

/* Quickview */
.product-quick-view .product-single-details .product-action {
    width: 100%;
}
.product-quick-view .product-single-details .paction {
    height: 55px;
    width: 100%;
}
.product-quick-view {
    padding: 4rem;
    border-radius: 20px;
}


/* Product Detail */
.product-single-details {
    margin-top: 20px;
}
.product-single-details small {
    font-size: 100%;
    color: #60769a;
}
.product-single-details .product-desc {
    border-bottom: 1px solid #f1f2f4;
}
.product-single-details .add-cart span {
    display: block !important;
}
.product-single-details .add-cart {
    color: #ffffff;
    background-color: #23da95;
    border: unset;
    width: 100%;
    min-width: 50px;
    border-radius: 10px;
    height: 60px;
    transition: all .2s ease;
}
.product-single-details .add-cart:hover {
    background: #1ace88;
}
.product-single-details .add-cart span {
    font-size: 18px;
}
.product-single-details .product-action.product-all-icons{
    width: 100%;
}
.widget-info li {
    border-top: unset;
    background: #f3f6fa;
    margin-bottom: 10px;
    border-radius: 8px;
    padding: 12px 6px;
    align-items: center;
    display: flex;
}
.widget-info li h4{
    color: #60769a;
    font: 600 1.4rem/1.5 "Poppins",sans-serif;
    white-space: unset;
    text-transform: unset;
}
.widget-info i {
    color: #24da94;
}
.prod-thumbnail .active img, .prod-thumbnail img:hover {
    border: unset;
    border-radius: 8px;
    filter: brightness(0.97);
}
.prod-full-screen i {
    cursor: pointer;
    color: #60769a;
    background: #f3f6fa;
    padding: 10px;
    border-radius: 5px;
}
.prod-full-screen i:after {
    content: 'Ampliar Imagen';
}
.product-single-carousel i.icon-angle-right,
.product-single-carousel i.icon-angle-left {
    cursor: pointer;
    color: #60769a;
    background: #f3f6fa;
    padding: 0 10px;
    border-radius: 5px;
}
.nav.nav-tabs .nav-item.show .nav-link, 
.nav.nav-tabs .nav-item .nav-link.active {
    color: #24da94;
    border-bottom-color: #24da94;
}
.nav.nav-tabs .nav-item .nav-link:hover {
    color: #24da94;
}
nav.nav-tabs .nav-item .nav-link {
    font: 700 1.4rem/1 "Poppins",sans-serif;
    color: #60769a;
}
.nav.nav-tabs {
    border-bottom: .2rem solid #f1f2f4;
}

/* 
.sidebar-product .widget.widget-banners.box-carousel {
    display: none;
}
.sidebar-product .product-sm .product-details {
    margin-left: 95px;
}
.sidebar-product h2.product-title {
    margin: unset;
}

.sidebar-product .widget.widget-featured {
    margin-top: 80px;
}
.featured-section {
    background-color: #f3f6fa;
}
.featured-section .product {
    background: #fff;
    border-radius: 8px;
}
.featured-section .product-image img {
    height: 200px;
}

.featured-section .product:hover {
    box-shadow: 0 4px 24px rgb(153 153 153 / 20%);
} */

/* ===== PRODUCTO SIDEBAR ===== *//* ===== ITEM SIDEBAR ===== */
.sidebar-product .product.product-sm {
    display: flex;
    align-items: center;
    gap: 10px; /* 👈 distancia controlada */
    padding: 10px 0;
}

/* ===== IMAGEN ===== */
.sidebar-product .product-sm .product-image-container {
    width: 100px;
    min-width: 100px;
}

.sidebar-product .product-sm .product-image img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

/* ===== TEXTO ===== */
.sidebar-product .product-sm .product-details {
    flex: 1;
    margin: 0 !important;        /* 🔥 elimina empujes */
    padding: 0;
    text-align: left;
}

/* ===== TITULO ===== */
.sidebar-product .product-sm .product-title {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
}

/* evita títulos largos */
.sidebar-product .product-sm .product-title a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== PRECIO ===== */
.sidebar-product .product-sm .product-price {
    font-size: 15px;
    font-weight: 700;
    color: #000;
}

/* ===== ELIMINA HERENCIAS DEL TEMA ===== */
.sidebar-product .product-sm .product-details,
.sidebar-product .product-sm h2,
.sidebar-product .product-sm .price-box{
     margin-left: 0 !important;
}




a.paction.add-cart.whatsapp {
    background: #e4fff4;
    color: #23da95;
    font-weight: bold;
}
.whatsapp i.fab.fa-whatsapp {
    font-size: 24px;
    margin-right: 8px;
}
.add-cart.whatsapp::before {
    display: none !important;
}

@media screen and (min-width: 1200px){
    .widget-info i {
        margin-right: 15px;
    }
}



/* Footer */
.footer {
    color: #60769a;
    background-color: #fff;
    border-top: 1px solid #f1f2f4;
}
.footer-bottom{
    border-top: 1px solid #f1f2f4;
}
.footer .widget-title {
    color: #60769a;
    font: 700 1.6rem/1.1 "Poppins",sans-serif;
    text-transform: unset;
}
ul.contact-info svg {
    margin-right: 20px;
}
p.footer-copyright {
    display: flex;
    align-items: center;
}
p.footer-copyright img {
    margin-left: 8px;
}
.footer .contact-info a:hover {
    color: #24da94;
    text-decoration: unset;
}
.footer .widget-info li {
    padding-right: 30px;
}
.social-icons {
    justify-content: center;
}
.footer .social-icon {
    width: 48px;
    height: 48px;
    font-size: 22px;
    border-radius: 6px;
}
.footer .social-icon.facebook {
    color: #2346e8;
    background-color: #f8f9fe;
}
.footer .social-icon.facebook:hover {
    color: #f8f9fe;
    background-color: #2346e8;
}
.footer .social-icon.twitter {
    color: #1478fa;
    background-color: #f8f9fe;
}
.footer .social-icon.twitter:hover {
    color: #f7faff;
    background-color: #1478fa;
}
.footer .social-icon.youtube {
    color: #ff006c;
    background-color: #fff8fb;
}
.footer .social-icon.youtube:hover {
    color: #fff8fb;
    background-color: #ff006c;
    text-decoration: unset;
}
.footer ul.links {
    width: 120px;
}
.footer .footer-payments {
    display: flex;
}
.footer .footer-payments img {
    margin-left: 8px;
    height: 24px;
}
#scroll-top {
    width: 48px;
    height: 48px;
    right: 15px;
    bottom: -8px;
    z-index: 9999;
    background-color: #f3f6fa;
    font-size: 32px;
    color: #6f83a4;
    padding: 5px 0 11px;
}
#scroll-top.fixed {
    border-radius: 6px;
    bottom: 15px;
}
#scroll-top:hover, #scroll-top:focus {
    background-color: #24da94;
    color: #fff;
}

/* Login */
.login a.login-link {
    padding: 10px;
    display: inline-block;
    color: #60769a;
}
.modal-body {
    padding: 40px;
}

div#login_register_modal{
    background: rgba(0, 0, 0, .25);
}
.modal-content{
    box-shadow: none;
    border-radius: 12px;
}
.modal .nav.nav-tabs {
    border-top: 1px solid #f1f2f4;
    border-bottom: unset;
    margin-top: 20px;
    display: flex;
    justify-content: center;
}
.modal li {
    width: 48%;
    margin-right: 5px;
}
.modal li a {
    text-align: center;
    padding-top: 20px;
    font-size: 14px;
    display: inline-block;
    width: 100%;
}
.modal a:hover, 
.modal a:focus {
    color: #24da94;
}


label{
    color: #60769a;
}
.modal button.btn.btn-primary,
.dropdown-cart-action .btn,
.btn.btn-block.btn-sm.btn-primary.cash,
.btn-primary.login-link  {
    width: 100%;
    margin-top: 20px;
    border-radius: 8px;
    background: #24da94;
    border-color: #24da94;
}
.btn {
    font-family: "Poppins",sans-serif;
}
@media screen and (min-width: 992px){
    .modal-dialog {
        max-width: 500px;
    }
}
.dropdown-menu span {
    text-transform: lowercase;
}
.dropdown-menu .cart-product-info span {
    text-transform: unset;
}
.btn-logout {
    font-size: 14px !important;
    text-transform: lowercase !important;
}
.dropdown-cart-total.d-flex.content-user{
    align-items: center;
}

/* Search */
#header_bar .header-menu {
    box-shadow: 0 5px 20px rgb(0 0 0 / 10%);
    border-radius: 8px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
#header_bar .header-menu::-webkit-scrollbar {
    display: none;
}
.header-menu img {
    width: 50px;
    filter: brightness(0.95);
    object-fit: contain;
}
.header-menu a.d-flex {
    padding: 4px 16px 0 8px;
}
.header-menu li a:hover {
    background: #f3f6fa;
}
.header-menu li a {
    height: 54px;
    color: #60769a;
}
span.search_price {
    background: #24da94;
    color: white;
    padding: 0px 8px;
    border-radius: 4px;
}

/* Cart */
.btn-filter-search {
    min-width: 38px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
    color: #fff;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-filter-search i {
    font-size: 16px;
    line-height: 1;
}

.btn-filter-search:hover {
    background: hsl(var(--primary-h), var(--primary-s), 62%);
    color: #fff;
}

.btn-filter-search:active {
    background: hsl(var(--primary-h), var(--primary-s), 40%);
    transform: translateY(0);
}

.btn-filter-search:focus {
    outline: none;
    box-shadow: 0 0 0 3px hsl(var(--primary-h), var(--primary-s), 70%);
}

.btn-filter-search:disabled {
    background: hsl(var(--primary-h), var(--primary-s), 85%);
    color: rgba(255, 255, 255, 0.8);
    box-shadow: none;
}
.dropdownmenu-wrapper {
    position: relative;
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    border: unset;
    box-shadow: 0 0 20px rgb(0 0 0 / 10%);
}
.dropdown-cart-products {
    max-height: 300px;
    overflow: hidden;
    overflow-y: auto;
}
.cart-dropdown .dropdownmenu-wrapper {
    padding: 10px;
}
.cart-dropdown .product {
    padding: 10px 10px 0 10px;
    border-bottom: unset;
    height: 72px;
}
.cart-dropdown .dropdown-menu .product img {
    height: 64px;
    width: 64px;
    border-radius: 6px;
}
.cart-dropdown .btn-remove {
    background-color: #ffe5e5;
    border-radius: 6px;
    box-shadow: unset;
    color: #ef4a47;
    right: 0;
    top: 0;
}
.dropdown-cart-total {
    padding: 18px 8px;
}
.dropdown-cart-action {
    padding: 0;
}
.dropdown-cart-action a {
    margin-top: 0 !important;
    font-size: 16px !important;
}
#product_added .product-desc {
    display: none;
}
.modal-footer {
    justify-content: space-between;
}
.modal-footer button.btn.btn-warning {
    text-transform: unset;
    background: unset;
    border: unset;
}

.modal-footer a.btn.btn-primary {
    border-radius: 8px;
    background: #24da94;
    color: #fff;
    border: unset;
}


* + .uk-alert {
    margin-top: 20px;
}

.uk-alert, .alert {
    position: relative;
    margin-bottom: 20px;
    padding: 15px 25px 15px 15px;
    background: #FFF;
    color: #808A9C;
    border-radius: 8px;
    box-shadow: 0 4px 12px -2px rgb(29 22 96 / 10%);
}

.uk-alert-success, .alert-success {
    background: #F8FDFB;
    color: #23DA95;
}
.uk-alert-warning {
    background: #FFF9F4;
    color: #FF9200;
}

/* Checkout */
.product-col .product-image-container {
    flex: unset;
    width: 75px;
    height: 75px;
    align-items: center;
    border: unset;
}
.table.table-cart tr td {
    border-top: unset;
    padding: 1rem;
}
.table.table-cart tr td.product-col {
    padding: 5px;
}
.cart-table-container {
    border: 1px solid #f1f2f4;
    border-radius: 12px;
}

.bootstrap-touchspin .form-control:not(:focus) {
    border: unset;
    border-radius: 6px;
    background: #f3f6fa;
    color: #60769a;
}
input.vertical-quantity.form-control.input_quantity {
    border-radius: 6px;
    border-color: #60769a;
}
.bootstrap-touchspin .input-group-btn-vertical .bootstrap-touchspin-up,
.bootstrap-touchspin .input-group-btn-vertical .bootstrap-touchspin-down {
    border-radius: 4px;
    background: #f3f6fa;
    border: unset;
}
button.btn.btn-outline-danger.btn-sm,
.btn.btn-outline-secondary.btn-clear-cart ,
.btn-logout{
    background: #fdf8f8;
    border-color: #fdf8f8;
    color: #fc4f4b;
    border-radius: 6px;
    padding: 6px;
    text-transform: unset;
}
button.btn.btn-outline-danger.btn-sm:hover,
.btn.btn-outline-secondary.btn-clear-cart:hover,
.btn-logout:hover {
    background: #fc4f4b;
    border-color: #fc4f4b;
    color: #fdf8f8;
}
.table-cart a.btn.btn-outline-secondary {
    border: unset;
    border-radius: 6px;
}
.table-cart .float-right,
.table-cart .float-left {
    margin: 0 20px;
}
.btn-back-to-cart{
    background: #f3f6fa;
}
.btn-back-to-cart:hover{
    background: #60769a;
}
.cart-summary {
    padding: 25px;
    background: #f3f6fa;
    border: unset;
    border-radius: 12px;
}
.table.table-totals {
    border-top: unset;
    color: #60769a;
    margin-bottom: 0;
}
.cart-table-container h2:not(.product-title) {
    padding: 20px 20px 0;
    text-align: center;
}

.btn.btn-block.btn-sm.btn-primary.cash,
.btn-primary.login-link {
    padding: 14px;
    font-size: 18px;
}

.btn.btn-block.btn-sm.btn-primary.cash,
.btn-primary.login-link-pay {
    padding: 14px;
    font-size: 18px;
}
.whatsapp-order{
    min-width: 50px;
    padding: 4px;
}
.whatsapp-order:hover {
    background: #24da94;
    color: #fff;
}
select.form-control, input.form-control, textarea.form-control {
    border-color: #f3f6fa;
    border-radius: 6px;
    color: #60769a;
}
nav.main-nav.flex-grow-1 .menu {
    flex-flow: row wrap;
    display: flex;
    justify-content: center;
    padding-top: 0px;
}

/* Header */
.header-bottom.sticky-header.fixed {
    display: none;
}
.header-bottom.sticky-header.header-menu {
    margin-top: 100px;
}
.header-bottom {
    background-color: #f9fafc;
}

ul.menu.sf-arrows.sf-js-enabled li a {
    background: #eaeef7;
    margin: 0;
    padding: 0px 0px;
    color: var(--title-color);
    border-radius: 0px;
}
.logo img {
    max-height: 42px;
}

.header {
    background-color: #fff;
    border-bottom: 1px solid #f1f2f4;
    position: fixed;
    z-index: 13;
    width: 100%;
}

.header-middle {
    padding-top: 9px;
    padding-bottom: 9px;
}
.header-right {
    height: 42px;
}
.header-right .dropdown.cart-dropdown {
    height: 45px;
}
.header-contact span {
    color: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
}
.header-contact a:hover, .header-contact a:focus{
    color: hsl(var(--primary-h), var(--primary-s), 96%);
}
.header-contact,
.whatsapp-order {
    color: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
    background: hsl(var(--primary-h), var(--primary-s), 88%);
    border-radius: 5px;
    padding: 3px 15px;
}

/* cart-count is now a standalone badge outside .dropdown-toggle */

.dropdown,
.dropleft,
.dropright,
.dropup {
    position: relative;
    background: #f4f6fa;
    border-radius: 5px;
}
.header .dropdown-toggle{
    background-color: var(--title-color)!important;
    color: #fff !important;
}
.cart-dropdown .dropdown-toggle {
    padding-right: 1rem;
    
}
.header-contact::after {
    display: none;
}

.header-dropdown .search_input {
    border-radius: 6px !important;
    height: 42px;
    padding: 1.2rem;
    border-color: hsl(var(--primary-h), var(--primary-s), 88%);
    background: hsl(var(--primary-h), var(--primary-s), 92%)!important;
    color: var(--title-color);
}

.search_input::placeholder,
input#email::placeholder,
input#pwd::placeholder,
input#name_reg::placeholder,
input#email_reg::placeholder,
input#pwd_reg::placeholder,
input#pwd_repeat_reg::placeholder,
select.form-control::placeholder,
input.form-control::placeholder,
textarea.form-control::placeholder {
    color: #b1b8c2 !important;
}
.header-dropdown .search_input:focus {
    border: 1px solid hsl(var(--primary-h), var(--primary-s), var(--primary-l)) !important;
}

.cart-dropdown .dropdown-toggle::after {
    display: none;
}

.icon-user:before {
    content: "\f007";
    font-family: "Font Awesome 5 Free";
    transform: scale(0.75);
}

.cart-dropdown .text-white {
    color: hsl(var(--primary-h), var(--primary-s), 92%) !important;
}

.product-single-tabs li.nav-item:nth-child(2),
.ratings-container,
.cart-dropdown .dropdownmenu-wrapper::after,
.dropdownmenu-wrapper::before {
    display: none;
}

/* Home */
.home-slide::before {
    background: #fff;
}
 .home-slide div{
    border-radius: 18px;
}
.home-slide div a{
    background: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
    border: 1px solid hsl(var(--primary-h), var(--primary-s), var(--primary-l));
}
.home-slide div a:hover{
    background: var(--title-color);
}
/* Produc list */
.product:not(.product-sm):hover .product-image-container {
    box-shadow: unset;
}
.product-image::after {
    background-color: unset;
}
.product.product-style {
    border: 1px solid hsl(var(--primary-h), var(--primary-s), 88%);
    border-radius: 8px;
    padding-bottom: 12px;
}
.product.product-style:hover {
    box-shadow: 0 4px 24px rgb(153 153 153 / 20%);
}
.product:hover .paction.add-cart,
.grid-product:hover .paction.add-cart {
    border-color: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
    background-color: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
}
.product-action {
    display: inline-block;
}
.product-action .add-cart::before {
    font-size: 28px;
}
.add-cart span:not(.product-quick-view .add-cart span) {
    display: none;
}
.btn-quickview {
    font: 400 1.3rem/1 "Poppins", sans-serif;
    background-color: hsl(var(--primary-h), var(--primary-s), 96%);
    color: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
    border-radius: 5px;
    margin: 0 20px;
    padding: 12px;
    transform: translateY(50%);
}
.btn-quickview:hover, .btn-quickview:focus, .product:hover .btn-quickview:hover, .product:hover .btn-quickview:focus {
    color: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
    opacity: .9;
    text-decoration: none;
}

.internal_id {
    display: none;
}

/* Quickview */
.product-quick-view .product-single-details-restaurant .product-action {
    width: 100%;
}
.product-quick-view .product-single-details-restaurant .paction {
    height: 55px;
    width: 100%;
}
.product-quick-view {
    padding: 4rem;
    border-radius: 20px;
}

/* Product Detail */
/* .product-single-details-restaurant {
    margin-top: 20px;
} */
.product-single-details-restaurant small {
    font-size: 100%;
    color: var(--title-color);
}
.product-single-details-restaurant .product-desc {
    border-bottom: 1px solid #f1f2f4;
}
.product-single-details-restaurant .add-cart span {
    display: block !important;
}
.product-single-details-restaurant .add-cart {
    color: #ffffff;
    background-color: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
    border: unset;
    width: 100%;
    border-radius: 10px;
    height: 60px;
    transition: all 0.2s ease;
}
.product-single-details-restaurant .add-cart:hover {
    background: #1ace88;
}
.product-single-details-restaurant .add-cart span {
    font-size: 18px;
}
.product-single-details-restaurant .product-action.product-all-icons {
    width: 100%;
}
.widget-info li {
    border-top: unset;
    background: #f3f6fa;
    margin-bottom: 10px;
    border-radius: 8px;
    padding: 12px 6px;
    align-items: center;
    display: flex;
}
.widget-info li h4 {
    color: var(--title-color);
    font: 600 1.4rem/1.5 "Poppins", sans-serif;
    white-space: unset;
    text-transform: unset;
}
.widget-info i {
    color: #24da94;
}
.prod-thumbnail .active img,
.prod-thumbnail img:hover {
    border: unset;
    border-radius: 8px;
    filter: brightness(0.97);
}
.prod-full-screen i {
    cursor: pointer;
    color: var(--title-color);
    background: #f3f6fa;
    padding: 10px;
    border-radius: 5px;
}
.prod-full-screen i:after {
    content: "Ampliar Imagen";
}
.product-single-carousel i.icon-angle-right,
.product-single-carousel i.icon-angle-left {
    cursor: pointer;
    color: var(--title-color);
    background: #f3f6fa;
    padding: 0 10px;
    border-radius: 5px;
}
.nav.nav-tabs .nav-item.show .nav-link,
.nav.nav-tabs .nav-item .nav-link.active {
    color: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
    border-bottom-color: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
}
.nav.nav-tabs .nav-item .nav-link:hover {
    color: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
}
nav.nav-tabs .nav-item .nav-link {
    font: 700 1.4rem/1 "Poppins", sans-serif;
    color: var(--title-color);
}
.nav.nav-tabs {
    border-bottom: 0.2rem solid #f1f2f4;
}

.sidebar-product .widget.widget-banners.box-carousel {
    display: none;
}
.sidebar-product .product-sm .product-details {
    margin-left: 95px;
}
.sidebar-product h2.product-title {
    margin: unset;
}
.sidebar-product .widget.widget-featured {
    margin-top: 80px;
}
.featured-section {
    background-color: #f3f6fa;
}
.featured-section .product {
    background: #fff;
    border-radius: 8px;
}
.featured-section .product-image img {
    height: 200px;
}

.featured-section .product:hover {
    box-shadow: 0 4px 24px rgb(153 153 153 / 20%);
}
a.paction.add-cart.whatsapp {
    background: #e4fff4;
    color: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
    font-weight: bold;
}
.whatsapp i.fab.fa-whatsapp {
    font-size: 24px;
    margin-right: 8px;
}
.add-cart.whatsapp::before {
    display: none !important;
}

@media screen and (min-width: 1200px) {
    .widget-info i {
        margin-right: 15px;
    }
}

/* Footer */
.footer-bottom {
    border-top: 1px solid #f1f2f4;
}
.footer .widget-title {
    color: var(--title-color);
    font: 700 1.6rem/1.1 "Poppins", sans-serif;
    text-transform: unset;
}
ul.contact-info svg {
    margin-right: 20px;
}
p.footer-copyright {
    display: flex;
    align-items: center;
}
p.footer-copyright img {
    margin-left: 8px;
}
.footer .contact-info a:hover {
    color: #24da94;
    text-decoration: unset;
}
.footer .widget-info li {
    padding-right: 30px;
}
.social-icons {
    justify-content: center;
}
.footer .social-icon {
    width: 48px;
    height: 48px;
    font-size: 22px;
    border-radius: 6px;
}
.footer .social-icon.facebook {
    color: #2346e8;
    background-color: #f8f9fe;
}
.footer .social-icon.facebook:hover {
    color: #f8f9fe;
    background-color: #2346e8;
}
.footer .social-icon.twitter {
    color: #1478fa;
    background-color: #f8f9fe;
}
.footer .social-icon.twitter:hover {
    color: #f7faff;
    background-color: #1478fa;
}
.footer .social-icon.youtube {
    color: #ff006c;
    background-color: #fff8fb;
}
.footer .social-icon.youtube:hover {
    color: #fff8fb;
    background-color: #ff006c;
    text-decoration: unset;
}
.footer ul.links {
    width: 120px;
}
.footer .footer-payments {
    display: flex;
}
.footer .footer-payments img {
    margin-left: 8px;
    height: 24px;
}
#scroll-top {
    width: 48px;
    height: 48px;
    right: 15px;
    bottom: -8px;
    z-index: 9999;
    background-color: #f3f6fa;
    font-size: 32px;
    color: #6f83a4;
    padding: 5px 0 11px;
}
#scroll-top.fixed {
    border-radius: 6px;
    bottom: 15px;
}
#scroll-top:hover,
#scroll-top:focus {
    background-color: #24da94;
    color: #fff;
}

/* Login */
.login a.login-link {
    padding: 10px;
    display: inline-block;
    color: var(--title-color);
}
.modal-body {
    padding: 40px;
}

div#login_register_modal {
    background: rgba(0, 0, 0, 0.25);
}
.modal-content {
    box-shadow: none;
    border-radius: 12px;
    overflow:hidden;
}
.modal .nav.nav-tabs {
    border-top: 1px solid #f1f2f4;
    border-bottom: unset;
    margin-top: 20px;
    display: flex;
    justify-content: center;
}
.modal li {
    width: 48%;
    margin-right: 5px;
}
.modal li a {
    text-align: center;
    padding-top: 20px;
    font-size: 14px;
    display: inline-block;
    width: 100%;
}
.modal a:hover,
.modal a:focus {
    color: #24da94;
}
input#email,
input#pwd,
input#name_reg,
input#email_reg,
input#pwd_reg,
input#pwd_repeat_reg,input#ruc_reg {
    background: hsl(var(--primary-h), var(--primary-s), 96%);
    border-color: hsl(var(--primary-h), var(--primary-s), 88%);
    border-radius: 6px;
    color: var(--title-color);
}
input#email:focus,
input#pwd:focus,
input#name_reg:focus,
input#email_reg:focus,
input#pwd_reg:focus,
input#pwd_repeat_reg:focus,
input#ruc_reg:focus {
    background: #fff;
    border-color: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
}

label {
    color: var(--title-color);
}
.modal button.btn.btn-primary,
.dropdown-cart-action .btn,
.btn.btn-block.btn-sm.btn-primary.cash,
.btn-primary.login-link {
    width: 100%;
    margin-top: 20px;
    border-radius: 8px;
    background: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
    border-color: hsl(var(--primary-h), var(--primary-s), 88%);
}
.modal button.btn.btn-primary,
.dropdown-cart-action .btn,
.btn.btn-block.btn-sm.btn-primary.cash,
.btn-primary.login-link-pay {
    width: 100%;
    margin-top: 20px;
    border-radius: 8px;
    background: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
    border-color: hsl(var(--primary-h), var(--primary-s), 88%);
}

.btn-primary.login-link:hover{
    background: var(--title-color);
}
.btn {
    padding: 1rem 2rem;
    font-family: "Poppins", sans-serif;
    border-radius: 25px !important;
}
@media screen and (min-width: 992px) {
    .modal-dialog {
        max-width: 700px;
    }
}
@media screen and (min-width: 576px) {
    .modal-dialog {
        max-width: 700px;
    }
}
.dropdown-menu span {
    text-transform: lowercase;
}
.dropdown-menu .cart-product-info span {
    text-transform: unset;
}
.btn-logout {
    font-size: 14px !important;
    text-transform: lowercase !important;
}
.dropdown-cart-total.d-flex.content-user {
    align-items: center;
}

/* Search */
#header_bar .header-menu {
    box-shadow: 0 5px 20px rgb(0 0 0 / 10%);
    border-radius: 8px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
#header_bar .header-menu::-webkit-scrollbar {
    display: none;
}
.header-menu img {
    width: 50px;
    filter: brightness(0.95);
    object-fit: contain;
}
.header-menu a.d-flex {
    padding: 4px 16px 0 8px;
}
.header-menu li a:hover {
    background: #f3f6fa;
}
.header-menu li a {
    height: 54px;
    color: var(--title-color);
}
span.search_price {
    background: #24da94;
    color: white;
    padding: 0px 8px;
    border-radius: 4px;
}

/* Cart */

.dropdownmenu-wrapper {
    position: relative;
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    border: unset;
    box-shadow: 0 0 20px rgb(0 0 0 / 10%);
}
.dropdown-cart-products {
    max-height: 300px;
    overflow: hidden;
    overflow-y: auto;
}
.cart-dropdown .dropdownmenu-wrapper {
    padding: 15px;
}
.cart-dropdown .product {
    padding: 10px 10px 0 10px;
    border-bottom: unset;
    height: 72px;
}
.cart-dropdown .product-image-container {
    border: unset;
}
.cart-dropdown .dropdown-menu .product img {
    height: 64px;
    width: 64px;
    border-radius: 6px;
}
.cart-dropdown .btn-remove {
    background-color: #ffe5e5;
    border-radius: 6px;
    box-shadow: unset;
    color: #ef4a47;
    right: 0;
    top: 0;
}
.dropdown-cart-total {
    padding: 0px 8px;
}
.dropdown-cart-action {
    padding: 0;
}
.dropdown-cart-action a {
    margin-top: 0 !important;
    font-size: 16px !important;
}

.modal-footer {
    justify-content: space-between;
}

.modal-footer a.btn.btn-primary {
    border-radius: 25px;
    background: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
    color: #fff;
    border: unset;
}

* + .uk-alert {
    margin-top: 20px;
}

.uk-alert,
.alert {
    position: relative;
    margin-bottom: 20px;
    padding: 15px 25px 15px 15px;
    border-radius: 25px;
    box-shadow: 0 4px 12px -2px rgb(29 22 96 / 10%);
}

.uk-alert-success,
.alert-success {
    background: #f8fdfb;
    color: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
}
.uk-alert-warning {
    background: #fff9f4;
    color: #ff9200;
}

/* Checkout */
.product-col .product-image-container {
    flex: unset;
    width: 75px;
    height: 75px;
    align-items: center;
    border: unset;
}
.table.table-cart tr td {
    border-top: unset;
    padding: 1rem;
}
.table.table-cart tr td.product-col {
    padding: 5px;
}
.cart-table-container {
    border: 1px solid #f1f2f4;
    border-radius: 12px;
}

.bootstrap-touchspin .form-control:not(:focus) {
    border: unset;
    border-radius: 6px;
    background: hsl(var(--primary-h), var(--primary-s), 96%);
    color: var(--title-color);
}
input.vertical-quantity.form-control.input_quantity {
    border-radius: 6px;
    border-color: var(--title-color);
}
.bootstrap-touchspin .input-group-btn-vertical .bootstrap-touchspin-up,
.bootstrap-touchspin .input-group-btn-vertical .bootstrap-touchspin-down {
    border-radius: 4px;
    background: hsl(var(--primary-h), var(--primary-s), 96%);
    border: unset;
}
button.btn.btn-outline-danger.btn-sm,
.btn.btn-outline-secondary.btn-clear-cart,
.btn-logout {
    background: #fdf8f8;
    border-color: #fdf8f8;
    color: #fc4f4b;
    border-radius: 6px;
    padding: 6px;
    text-transform: unset;
}
button.btn.btn-outline-danger.btn-sm:hover,
.btn.btn-outline-secondary.btn-clear-cart:hover,
.btn-logout:hover {
    background: #fc4f4b;
    border-color: #fc4f4b;
    color: #fdf8f8;
}
.table-cart thead {
    color: var(--title-color);
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-bottom: 2px solid #e2e8f0;
}
.table-cart thead th {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    padding: 1.25rem 1rem;
    border-top: none;
    border-bottom: 2px solid #cbd5e0;
    position: relative;
}
.table-cart thead th:first-child {
    border-radius: 12px 0 0 0;
}
.table-cart thead th:last-child {
    border-radius: 0 12px 0 0;
}
.table-cart {
    color: var(--title-color);
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    background: #ffffff;
}
.table-cart tbody tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid #f1f5f9;
}

.table-cart tbody tr:hover {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.table-cart tbody tr:last-child {
    border-bottom: none;
}

.table-cart tbody td {
    padding: 1.25rem 1rem;
    vertical-align: middle;
    font-size: 0.95rem;
    font-weight: 500;
}

.table-cart tbody td:nth-child(2) {
    font-weight: 700;
    color: #059669;
    font-size: 1.1rem;
}

.table-cart tbody td:nth-child(3) {
    position: relative;
}

.table-cart tbody td:nth-child(3)::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    border-radius: 2px;
    margin-right: 0.5rem;
}
.dropdown-table{
    background-color: transparent !important;
    margin-bottom: 12px;
    position: relative !important;
}
.cart-table-container .dropdown-menu-table {
    z-index: 1050 !important;
    position: absolute !important;
    overflow: visible !important;
}
.cart-table-container {
    overflow: visible !important;
}
.table-cart a.btn.btn-outline-secondary {
    border: unset;
    border-radius: 6px;
}
.table-cart a.btn.btn-outline-secondary:hover {
    background: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
}
.table-cart .float-right,
.table-cart .float-left {
    margin: 0 20px;
}
.table-cart .btn.btn-default.btn-sm.text-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.3);
}

.table-cart .btn.btn-default.btn-sm.text-success:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 15px rgba(16, 185, 129, 0.4);
}

.table-cart .btn.btn-default.btn-sm.text-success i {
    color: #ffffff !important;
    font-size: 1.5rem;
}

/* Estados de los pedidos con colores específicos */
.table-cart tbody tr[data-status="1"] td:nth-child(3)::before {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.table-cart tbody tr[data-status="2"] td:nth-child(3)::before {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.table-cart tbody tr[data-status="3"] td:nth-child(3)::before {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.table-cart tbody tr[data-status="4"] td:nth-child(3)::before {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}
.btn-back-to-cart {
    background: #f3f6fa;
}
.btn-back-to-cart:hover {
    background: var(--title-color);
}
.cart-summary {
    padding: 25px;
    background: hsl(var(--primary-h), var(--primary-s), 96%);
    border: unset;
    border-radius: 12px;
}
.table.table-totals {
    border-top: unset;
    color: var(--title-color);
    margin-bottom: 0;
}
.cart-table-container h2:not(.product-title) {
    padding: 20px 20px 0;
    text-align: center;
}

.btn.btn-block.btn-sm.btn-primary.cash,
.btn-primary.login-link {
    padding: 14px;
    font-size: 18px;
}
.whatsapp-order {
    min-width: 50px;
    padding: 4px;
}
.whatsapp-order:hover {
    background: #24da94;
    color: #fff;
}
select.form-control,
input.form-control,
textarea.form-control {
    border-color: hsl(var(--primary-h), var(--primary-s), 88%);
    border-radius: 6px;
    color: var(--title-color);
}
.form-control:focus {
    color: var(--title-color) !important;
    background-color: #fff !important;
    border-color: hsl(var(--primary-h), var(--primary-s), var(--primary-l)) !important;
    box-shadow: none !important;
}

.bg-success {
    background-color: hsl(var(--primary-h), var(--primary-s), var(--primary-l)) !important;
}

/* Mobile */
/* clase agregado nuevos*/
/* .home-slider.restaurante .owl-stage-outer {
    margin-top: 68px;
} */
.main-nav .all-category {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-left: 15px;
    margin-right: 15px;
    text-transform: initial;
}
.main-nav .all-category a {
    background: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
    margin: 0 5px 5px 0;
    padding: 6px 16px;
    color: #fff;
    border-radius: 24px;
    font-weight: 700;
}
.main-nav .all-category a:hover {
    background: var(--title-color) !important;
    color: #fff;
}
h1.title-category {
    font-size: 18px;
    font-weight: 700;
    color: var(--title-color);
}
.main-nav .all-category .title-category {
    font-size: 18px;
    font-weight: 700;
    color: var(--title-color);
}
nav.main-nav.flex-grow-1 .menu.restaurante {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding-top: 0px;
    gap: 15px;
    overflow-x: auto;
}
nav.main-nav.flex-grow-1 .menu.restaurante::-webkit-scrollbar {
    display: none; /* Ocultar scrollbar en Chrome/Safari */
}
nav.main-nav.flex-grow-1 .menu.restaurante {
    scrollbar-width: none; /* Ocultar scrollbar */
    -ms-overflow-style: none; /* Ocultar scrollbar en IE y Edge Legacy */
}
nav.main-nav.flex-grow-1 .menu.restaurante li {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    flex-direction: column;
    background: hsl(var(--primary-h), var(--primary-s), 96%);
    margin: 5px;
    padding: 6px 16px;
    color: var(--title-color);
    border-radius: 1.8rem;
    width: 128px;
    height: 128px;
    box-sizing: border-box;
}
nav.main-nav.flex-grow-1 .menu.restaurante li:hover {
    background-color: hsl(var(--primary-h), var(--primary-s), 88%);
    
}
nav.main-nav.flex-grow-1 .menu.restaurante li a {
    background: #eaeef7;
    margin: 0;
    padding: 0px 0px;
    color: var(--title-color);
    border-radius: 0px;
    text-transform: capitalize;
    display: contents;
}
/* Category menu */
#scrollContainer {
    scroll-behavior: smooth; /* Movimiento suave */
    user-select: none; /* Evita selección de texto mientras arrastras */
    cursor: grab;
    transition: scroll-left 0.5s ease-in-out;
}
#scrollContainer:active {
    cursor: grabbing;
}
/* Produc list */
.product-image img {
    object-fit: contain;
    border-radius: 8px 8px 0 0;
}
.product-image-container {
    height: 100%;
    min-width: 112px !important;
    width: 112px !important;
    max-width: 100%;
    background-color: #fff;
    border: unset;
    margin: 0;
    border-radius: 8px;
    display: flex;
    align-items: center;
}
.product-image-container-ecommerce{
    background-color: #fff;
    border: unset;
    margin-bottom: 8px;
    border-radius: 8px;
    width: 100% !important;
    justify-content: center;
}
.product-image-list-restaurant {
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 260px;
}
/* Produc details */
.product-details-ecommerce .product-information {
    text-align: left;
}
.product-details-ecommerce .product-information .product-title-ecommerce {
    margin: 10px 10px 10px 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.product-title-ecommerce a {
    color: var(--title-color);
    text-decoration: none;
    font: 600 1.5rem/1.25 "Open Sans", sans-serif;
}
.product.product-style:hover .product-title-ecommerce a {
    color: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
}
.product-details-ecommerce .product-information h3.product-stock {
    color: var(--subtitle-color);
    font: 600 1.2rem/1.25 "Open Sans", sans-serif;
}
.product-details-ecommerce .product-information .product-stock span {
    font: 500 1.4rem/1.25 "Open Sans", sans-serif;
}
.product-description {
    font: 600 1.3rem/1.25 "Open Sans", sans-serif;
    margin-bottom: 12px;
    color: var(--subtitle-color);

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.product-details-ecommerce {
    padding: 7px 14px;
}
.product-details-ecommerce .product-price-ecommerce {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}
.product-details-ecommerce .product-price-ecommerce .price-box-ecommerce {
    margin-bottom: 0;
}
.price-box-ecommerce {
    font: 600 1.6rem "Nunito", sans-serif;
    color: var(--price-color);
    width: 50%;
    display: inline-block;
}
/* login buton */
.btn-logout {
    font-size: 25px;
    margin-left: 6%;
}
.cart-dropdown .header-contact {
    width: 100%;
    height: 35px;
    background-color: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
    display: flex;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-radius: 20px;
    cursor: pointer;
}
.header-contact .login-link {
    margin-left: 5px;
    color: #fff;
    font-size: 10px !important;
    font-weight: lighter !important;
}
.header-contact .login-link:hover {
    color: #fff;
}
.page-pagination .pagination span,
.page-pagination .pagination a {
    border-radius: 24px !important;
}
.page-pagination .pagination .page-item.active .page-link {
    color: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
}
.product-image-container .image-product{
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    max-height: 75px;
    border-radius: 8px;
}
/* footer */
.vl {
    border-left: 2px solid black;
    height: 100%;
    margin-left: 30%;
}
.footer-middle {
    color: #fff;
}
.container-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 1px solid #fff;
}
.container-footer .footer-bottom {
    border: none;
}
.widget-info ul.contact-info li {
    background-color: transparent !important;
    color: #fff;
}
h4.widget-title {
    color: #fff !important;
}
ul.contact-info li a:hover {
    color: #fff !important;
    text-decoration: underline !important;
}
.widget .social-icons {
    display: block;
    gap: 2rem;
}
.widget .social-icons a {
    background-color: transparent !important;
    margin-left: -8px !important;
    border-radius: 50%;
    padding: 5px;
}
.widget .social-icons a:hover{
    background: hsl(var(--primary-h), var(--primary-s), 60%) !important;
}
.footer {
    color: var(--title-color);
    border-top: 1px solid #f1f2f4;
    margin-top:3rem;
    background: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
}
.copy-text{
    color: #ffffff;
}
/* Product addcart */
.product-single-details-restaurant .product-title {
    color: var(--title-color);
    font-weight: 600;
    font-size: 1.7rem;
    letter-spacing: -0.01em;
    margin-bottom: 1.1rem;
}
.product-single-details-restaurant .product-price {
    font: 600 1.8rem / 1 "Opens Sans", sans-serif;
    color: #00112e;
}
#product_added_image img {
    border-radius: 6px;
}
.modal-footer button.btn.btn-warning {
    background: #f8fdfb;
    border: 1px solid hsl(var(--primary-h), var(--primary-s), var(--primary-l));
    border-radius: 25px;
    color: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
    text-transform: unset;
}
.modal-footer button.btn.btn-warning:hover {
    background: var(--title-color);
    color: #ffffff;
    border: 1px solid var(--title-color);
}
.alert.alert-warning {
    color: #856404;
    background-color: #fff3cd;
}
/* formulario de iniciar sesion */
.modal-body-restaurant {
    position: relative;
    overflow: hidden;
    transition: transform 0.5s ease-in;
}
.modal-body-restaurant .contenedor-form {
    display: flex;
}

.modal-body-restaurant .contenedor-form .first-column {

    display: flex;
    width: 100%;
    flex-direction: column;
    justify-content: center;
    background: #fff;
}
.modal-body-restaurant .contenedor-form .first-column form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 34px;
    height: 100%;
    background: #fff;
    transition: transform 0.5s ease-in;  
}
.modal-body-restaurant .contenedor-form .second-column {
    display: flex;
    width: 100%;
    flex-direction: column;
    justify-content: center;
    background: #fff;
    transition: transform 0.5s ease-in;
}
.modal-body-restaurant .contenedor-form .second-column form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 34px;
    height: 100%;
    background: #fff;
    transition: transform 0.5s ease-in;
}
.first-column {
    overflow: hidden;
}
.modal button.btn.btn-primary:hover{
    background:var(--title-color);
}
.modal button.btn.btn-primary:active{
    background: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
    color: #fff;
    box-shadow:none;
    border: 1px solid hsl(var(--primary-h), var(--primary-s), var(--primary-l));
}
.modal button.btn.btn-primary:focus{
    outline:none;
    box-shadow:none;
    border: 1px solid hsl(var(--primary-h), var(--primary-s), var(--primary-l));
}
.modal button.btn.btn-primary:active:focus{
    outline:none;
    box-shadow:none;
    border: 1px solid hsl(var(--primary-h), var(--primary-s), var(--primary-l));
}
.second-column {
    overflow: hidden;
}
/* .iniciar-sesion {
    transform: translateX(100%);
} */
.registrarse {
    transform: translateX(-100%);
    transition: transform 0.5s ease-in;
}
.contenedor-form.active .iniciar-sesion {
    transform: translateX(100%);
}
.contenedor-form.active .registrarse {
    transform: translateX(0);
}
.modal-body-restaurant .terceary-column {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    background: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
    width: 50%;
    height: 100%;
    transition: transform 0.5s ease-in-out, border-radius 0.5s ease-in-out;
    border-radius: 50% 0 0 50%;
}
.contenedor-form.active .terceary-column{
    transform: translateX(0);
    border-radius: 0 50% 50% 0;
}
.terceary-column div {
    /* border: 1px solid blue; */
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 0 20px;
    color#fff;
    transition: transform 0.5s ease-in-out;
    /* background: hsl(var(--primary-h), var(--primary-s), var(--primary-l)); */
    height: 100%;

}
.modal-body-restaurant .terceary-column .contenedor-iniciar-sesion .btn-iniciar-sesion{
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    font-size: 15px;
    width: 60%;
    padding: 12px 0px;
    border-radius: 25px;
}
.modal-body-restaurant .terceary-column .contenedor-iniciar-sesion .btn-iniciar-sesion:hover{
    background: #fff;
    border: 2px solid #fff;
    color: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
    font-size: 15px;
    width: 60%;
    padding: 12px 0px;
    border-radius: 25px;
    cursor: pointer;
}
.modal-body-restaurant .terceary-column .contenedor-iniciar-sesion .btn-iniciar-sesion:focus{
    outline:none;
}
.modal-body-restaurant .terceary-column .contenedor-registro .btn-registrarse{
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    font-size: 15px;
    width: 60%;
    padding: 12px 0px;
    border-radius: 25px;
}
.modal-body-restaurant .terceary-column .contenedor-registro .btn-registrarse:hover{
    background: #fff;
    border: 2px solid #fff;
    color: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
    font-size: 15px;
    width: 60%;
    padding: 12px 0px;
    border-radius: 25px;
    cursor: pointer;
}
.modal-body-restaurant .terceary-column .contenedor-registro .btn-registrarse:focus{
    outline:none;
}
.terceary-column .contenedor-iniciar-sesion {
    transform: translateX(100%);
}
.terceary-column .contenedor-iniciar-sesion h3{
    color: #fff;
    font-size: 30px;
}
.terceary-column .contenedor-iniciar-sesion p{
    color: #fff;
    font-size: 16px;
}

.terceary-column .contenedor-registro h3{
    color: #fff;
    font-size: 30px;
}
.terceary-column .contenedor-registro p{
    color: #fff;
    font-size: 16px;
}
.contenedor-form.active .contenedor-iniciar-sesion {
    transform: translateX(0);
}
.contenedor-form.active .contenedor-registro {
    transform: translateX(-100%);
}
.loaded .col-lg-6 .product-single-details p .alert-stock{
    background: #e4fff4;
    color: #23da95!important;
    padding: 2px 6px;
    border-radius: 5px;
}
.loaded span.alert-sin-stock{
    background: rgb(252 78 75 / 20%);
    color: #fc4f4b!important;
    padding: 2px 6px;
    border-radius: 5px;
}
.loaded .product-single-details .product-category{
    color: var(--title-color);
    font: 600 1.35rem / 1.25 "Open Sans", sans-serif;
}
.loaded .product-single-details .product-category span{
    color: var(--subtitle-color);
    font: 600 1.2rem / 1.25 "Open Sans", sans-serif;
}
.product-single-details .price-box{
    color:hsl(var(--primary-h), var(--primary-s), var(--primary-l));
}
.mfp-content .product-single-details .price-box .product-price{
    color:hsl(var(--primary-h), var(--primary-s), var(--primary-l));
}
.mfp-content .product-single-details .product-title{
    color:var(--title-color);
}
.mfp-content .product-single-details .product-desc .product-stock{
    color: var(--title-color);
    font: 600 1.35rem / 1.25 "Open Sans", sans-serif;
}
.mfp-content .product-single-details .product-desc .product-stock span{
    color: var(--subtitle-color);
    font: 600 1.35rem / 1.25 "Open Sans", sans-serif;
}
.mfp-content .product-single-details  .old-price{
    color: #fc4f4b;
}
.mfp-content .product-single-details .add-cart{
    background-color: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
}
.mfp-content .product-single-details .add-cart:hover{
    background-color: var(--title-color);
}
/* offers*/
.image-offers-container {
    height: 165px;
}
.image-offers{
    border-radius: 1.25rem !important;
    max-height: 100%;
}
.product-single-details .add-cart{
    background-color: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
}
.product-single-details .add-cart:hover{
    background-color: var(--title-color);
}

.product-single-details .product-action.product-all-icons {
    width: 100%;
}

/* style for list of products */
.product-single-default .product-single-details .product-stock {
    color: var(--title-color);
    font: 600 1.35rem / 1.25 "Open Sans", sans-serif;
}
.product-single-default .product-single-details .product-stock span{
    color: var(--subtitle-color);
    font: 600 1.35rem / 1.25 "Open Sans", sans-serif;
}
.product-single-default .product-single-details .product-stock .alert-stock{
    background: #e4fff4;
    color: #23da95 !important;
    padding: 2px 6px;
    border-radius: 5px;
}
.product-single-default .product-single-details .old-price{
    color: #fc4f4b;
}
.dropdown-ecommerce .dropdown-options{
    padding: 5px;
    border-radius: 8px;
    text-decoration: none;
}
.dropdown-ecommerce .dropdown-options:hover{
    background-color: hsl(var(--primary-h), var(--primary-s), 92%);
}
.cart-table-container {
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 1.5rem !important;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
    position: relative;
    overflow: hidden;
}

.cart-table-container::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 13px;
    background: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
    background-size: 200% 95%;
    border-radius: 79px 79px 0 0;
    margin-left: 0px;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.table-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(248, 250, 252, 0.95) !important;
    backdrop-filter: blur(8px) !important;
    z-index: 10;
    display: none;
    border-radius: 16px;
}

.table-loader .loader {
    width: 50px;
    height: 50px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.dropdown .btn.btn-default.dropdown-toggle {
    background: var(--title-color) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 0.75rem 1.25rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.025em !important;
    font-size: 0.875rem !important;
    transition: all 0.3s ease !important;
}

.dropdown .btn.btn-default.dropdown-toggle:hover,
.dropdown .btn.btn-default.dropdown-toggle:focus {
    background: var(--title-color) !important;
    box-shadow: none;
}

.dropdown-menu-table {
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
    padding: 0.5rem 0 !important;
    background: #ffffff !important;
    backdrop-filter: blur(10px) !important;
    margin-top: 0.5rem !important;
    z-index: 1050 !important;
    position: absolute !important;
    left: 13px !important;
}

.dropdown-menu-table li a {
    padding: 0.75rem 1.25rem !important;
    color: #64748b !important;
    text-decoration: none !important;
    display: block !important;
    transition: all 0.2s ease !important;
    font-weight: 500 !important;
}

.dropdown-menu-table li a:hover {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%) !important;
    color: #1e293b !important;
}
.pagination .page-item .page-link {
    border: 1px solid #e2e8f0 !important;
    border-radius: 50% !important;
    padding: 10px !important;
    color: #64748b;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pagination .page-item.active .page-link {
    color: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
}
.table.table-cart tr th{
    padding: 1rem !important;
}
.select-state .el-input input:focus,
.el-select .el-input.is-focus .el-input__inner,
.el-input__inner:focus {
    border-color: var(--border-color) !important;
}
.el-select-dropdown__item.selected,
.el-date-table td.today span,
.el-date-table td.available:hover,
.el-date-picker__header-label.active, .el-date-picker__header-label:hover,
.el-picker-panel__icon-btn:hover,
.el-year-table td.today .cell,
.el-year-table td .cell:hover, .el-year-table td.current:not(.disabled) .cell,
.el-month-table td.today .cell,
.el-month-table td .cell:hover{
    color: var(--title-color) !important;
}
.el-dropdown-menu__item:focus, .el-dropdown-menu__item:not(.is-disabled):hover{
    background-color: var(--background-input) !important;
    color: var(--title-color) !important;
}
.forgot-password-container {
    margin-top: 20px;
    padding: 16px;
    border-radius: 8px;
    background: hsl(var(--primary-h), var(--primary-s), 96%);
    border: 1px solid hsl(var(--primary-h), var(--primary-s), 88%);
    text-align: center;
    box-shadow: 0 4px 12px -2px rgb(29 22 96 / 10%);
}

.forgot-password-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--title-color);
    margin-bottom: 10px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.forgot-password-text {
    font-size: 13px;
    color: var(--subtitle-color);
    line-height: 1.5;
    margin: 0;
    padding: 0 10px;
    font-weight: 400;
}

.document-selector-container {
    margin-bottom: 12px;
}

.select-ruc-dni {
    width: 100%;
    padding: 12px 16px;
    padding-right: 40px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--title-color);
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2360769a' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px 16px;
    border: 1px solid hsl(var(--primary-h), var(--primary-s), 88%);
    border-radius: 8px;
    appearance: none;
    transition: all 0.15s ease-in-out;
    cursor: pointer;
}
.select-ruc-dni:focus {
    border-color: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
    outline: 0;
    background-color: #fff;
}

#counter {
    font-size: 12px;
    color: var(--subtitle-color);
    text-align: right;
    display: inline-block;
    margin-top: 6px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    background-color: hsl(var(--primary-h), var(--primary-s), 96%);
    border: 1px solid hsl(var(--primary-h), var(--primary-s), 88%);
    min-width: 50px;
    transition: all 0.2s ease;
}

.document-input-container {
    position: relative;
}
.btn-whatsapp{
    width: 100%;
    height: 50px;
    background-color: #e3ffee;
    border: 1px solid #25D366;
    border-radius: 8px;
    color: #25D366;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.btn-whatsapp:hover{
    background-color: #25D366;
    color: #fff;
    text-decoration: none;
}
/* Estados del contador con colores de la plantilla */
#counter.warning {
    color: #FF9200;
    background-color: #FFF9F4;
    border-color: var(--background-color);
}

#counter.success {
    color: #23DA95;
    background-color: #F8FDFB;
    border-color: #23da95;
}

#counter.error {
    color: #e74c3c;
    background-color: #fdf2f2;
    border-color: #f5c6cb;
}

/* Estilos para el label mejorado */
.form-group label {
    font-weight: 600;
    color: var(--title-color);
    margin-bottom: 8px;
    font-size: 14px;
}

/* Banner ancho completo */
.ecommerce-view .full-width-banner {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    min-height: 465px !important;
}
.full-width-banner .home-slide div{
    border-radius: 0;
}
.ecommerce-view .full-width-banner .home-slide {
    min-height: 465px !important;
}

@media (min-width: 768px) {
    .ecommerce-view .full-width-banner .home-slide {
        min-height: 50vh;
    }
}
.banner-slider-wrapper{
    position: relative;
}
.banner-slider-wrapper .banner-nav-prev {
    position: absolute; 
    left: 0; 
    top: 50%; 
    transform: translateY(-50%); 
    z-index: 100; 
    background: transparent; 
    color: white; 
    border: none; 
    width: 50px; 
    height: 50px; 
    border-radius: 50%; 
    font-size: 24px; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    transition: background 0.3s;
}
.banner-slider-wrapper .banner-nav-next {
    position: absolute; 
    right: 0; 
    top: 50%; 
    transform: translateY(-50%); 
    z-index: 100; 
    background: transparent; 
    color: white; 
    border: none; 
    width: 50px; 
    height: 50px; 
    border-radius: 50%; 
    font-size: 24px; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    transition: background 0.3s;
}
.banner-slider-wrapper .banner-nav-prev:hover,
.banner-slider-wrapper .banner-nav-prev:focus,
.banner-slider-wrapper .banner-nav-next:hover,
.banner-slider-wrapper .banner-nav-next:focus {
    outline: none; 
}
.full-width-banner .home-slide-content{
    left: 16%;
    padding-left: 0;
}
.home-slider.owl-carousel .owl-dots {
    position: absolute;
    left: 50%;
    bottom: 3.4rem;
    transform: translateX(-50%);
    margin: 0;
    line-height: 0;
    counter-reset: dot-counter;
}
.owl-theme .owl-dots .owl-dot {
    counter-increment: dot-counter;
}
.owl-theme .owl-dots .owl-dot span{
    width: 32px;
    height: 32px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.3) !important;
    border: 2px solid white;
}
.owl-theme .owl-dots .owl-dot.active span {
    background: rgba(255, 255, 255, 0.8) !important;
}
.owl-theme .owl-dots .owl-dot span::before {
    content: counter(dot-counter);
    position: absolute;
    color: white;
    font-size: 1.4rem;
    font-weight: 400;
    z-index: 1;
}
.home-slider.ecommerce.owl-theme .owl-dots .owl-dot span::before {
    content: none !important;
    display: none !important;
}
.home-slider.ecommerce.owl-theme .owl-dots .owl-dot span {
    line-height: 1;
    text-align: center;
}
.home-slider.ecommerce.owl-theme .owl-dots .owl-dot.active span:empty::after {
    color: #fff;
}
.home-slider.ecommerce[data-dots-numbered="1"] .owl-dots .owl-dot span::before {
    content: none;
}
.home-slider.ecommerce[data-dots-numbered="1"] .owl-dots .owl-dot span {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
}
.home-slider.ecommerce[data-dots-numbered="1"] .owl-dots .owl-dot.active span {
    color: #333;
}
.owl-theme.owl-theme-light .owl-dots .owl-dot span {
    border-color: rgba(255,255,255,0.2);
    background: transparent !important;
}
.home-slider.ecommerce.owl-theme .owl-dots .owl-dot:hover span:empty::after {
    color: #fff;
}
.home-slider.ecommerce.owl-theme .owl-dots .owl-dot span:empty::after {
    content: counter(dot-counter);
    color: rgba(255,255,255,0.2);
    font-size: 1.4rem;
    font-weight: 400;
}

/* =====================================================
   ECOMMERCE UI v2 — MEJORAS 2026
   Tarjetas · Categorías · Secciones · Mobile-first
   ===================================================== */

/* ── PRODUCT CARD ────────────────────────────────────── */
.ec-product-card {
    position: relative;
    background: #fff;
    border-radius: 14px;
    border: 1px solid hsl(var(--primary-h), var(--primary-s), 91%);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform .22s ease, box-shadow .22s ease;
}
.ec-product-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,.08);
}
.ec-product-card--oos {
    opacity: .72;
    pointer-events: auto; /* permitir avisos de stock */
}

/* Imagen */
.ec-product-card__img-wrap {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: hsl(var(--primary-h), var(--primary-s), 97%);
    flex-shrink: 0;
}
.ec-product-card__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    transition: transform .35s ease;
}
.ec-product-card:hover .ec-product-card__img {
    transform: scale(1.06);
}

/* Overlay quick-view */
/* overlay eliminado — sin botones sobre la imagen */
.ec-btn-quickview {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    color: var(--title-color);
    border-radius: 24px;
    padding: 7px 16px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
    transition: background .18s;
}
.ec-btn-quickview:hover {
    background: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
    color: #fff;
    text-decoration: none;
}
/* Badges */
.ec-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.ec-badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    line-height: 1.5;
}
.ec-badge--new  { background: hsl(var(--primary-h), var(--primary-s), var(--primary-l)); color: #fff; }
.ec-badge--sale { background: #e74c3c; color: #fff; }
.ec-badge--oos  { background: #868e96; color: #fff; }

/* Cuerpo de tarjeta */
.ec-product-card__body {
    padding: 10px 13px 13px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.ec-product-card__cat {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
    margin-bottom: 4px;
    display: block;
}
.ec-product-card__title {
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    color: var(--title-color);
}
.ec-product-card__title a { color: inherit; text-decoration: none; }
.ec-product-card:hover .ec-product-card__title a {
    color: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
}
.ec-product-card__desc {
    font-size: 11.5px;
    color: var(--subtitle-color);
    margin-bottom: 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ec-product-card__stock {
    font-size: 11px;
    font-weight: 600;
    color: #28a745;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
}
.ec-product-card__stock--oos { color: #dc3545; }
.ec-product-card__stock svg  { flex-shrink: 0; }

/* Footer: precio + botón */
.ec-product-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid hsl(var(--primary-h), var(--primary-s), 93%);
}
.ec-product-card__price { display: flex; flex-direction: column; }
.ec-price-old {
    font-size: 11px;
    color: #aaa;
    text-decoration: line-through;
    line-height: 1.2;
}
.ec-price-current {
    font-size: 16px;
    font-weight: 700;
    color: var(--price-color);
    line-height: 1.2;
}

/* Botón agregar al carrito */
.ec-btn-cart {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    border-radius: 8px;
    background: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
    color: #fff;
    border: none;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background .18s, transform .15s;
    white-space: nowrap;
}
.ec-btn-cart:hover { background: var(--title-color); transform: scale(1.03); }
.ec-btn-cart:active { transform: scale(.97); }

/* Botón notificación stock */
.ec-btn-notify {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px 10px;
    border-radius: 8px;
    background: transparent;
    border: 1px dashed #bbb;
    color: #999;
    font-size: 11px;
    cursor: pointer;
    transition: all .18s;
}
.ec-btn-notify:hover {
    border-color: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
    color: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
    background: hsl(var(--primary-h), var(--primary-s), 96%);
}

/* ── RESPONSIVE GRID ─────────────────────────────────── */
/* Mobile ≤ 575px: ocultar texto del botón, reducir padding */
@media (max-width: 575px) {
    .ec-product-card__body       { padding: 8px 10px 10px; }
    /* Fix #5: mínimo 13px para legibilidad en móvil */
    .ec-product-card__title      { font-size: 13px; }
    .ec-price-current            { font-size: 14px; }
    .ec-btn-cart__text           { display: none; }
    .ec-btn-cart                 { padding: 8px 10px; }
    .ec-product-card__overlay    { display: none; } /* no hover en táctil */
    .ec-product-card             { border-radius: 10px; }
    .product-col-item            { padding-left: 5px; padding-right: 5px; }
}

/* Tablet: columnas de 3 */
@media (min-width: 576px) and (max-width: 767px) {
    .ec-btn-cart__text { display: none; }
}

/* ── SECTION TITLE ───────────────────────────────────── */
.ec-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding: 0 2px;
}
.ec-section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--title-color);
    position: relative;
    padding-left: 14px;
    margin: 0;
}
.ec-section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
    border-radius: 2px;
}
.ec-section-link {
    font-size: 13px;
    font-weight: 600;
    color: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
    text-decoration: none;
}
.ec-section-link:hover { text-decoration: underline; }

/* ── CATEGORÍAS MEJORADAS ─────────────────────────────── */
#scrollContainer {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 10px;
    padding: 6px 4px 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    cursor: grab;
    user-select: none;
}
#scrollContainer:active          { cursor: grabbing; }
#scrollContainer::-webkit-scrollbar { display: none; }

#scrollContainer li.menu-item {
    list-style: none;
    flex-shrink: 0;
}
#scrollContainer li.menu-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    border-radius: 14px;
    background: hsl(var(--primary-h), var(--primary-s), 95%);
    color: var(--title-color);
    font-size: 11.5px;
    font-weight: 600;
    text-align: center;
    min-width: 74px;
    max-width: 100px;
    text-decoration: none;
    border: 1.5px solid transparent;
    transition: all .2s ease;
    line-height: 1.3;
}
#scrollContainer li.menu-item a img {
    width: 46px;
    height: 46px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid hsl(var(--primary-h), var(--primary-s), 85%);
    flex-shrink: 0;
}
#scrollContainer li.menu-item a:hover,
#scrollContainer li.menu-item a.active-category {
    background: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
    color: #fff;
    border-color: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
}
#scrollContainer li.menu-item a:hover img,
#scrollContainer li.menu-item a.active-category img {
    border-color: rgba(255,255,255,.45);
}

/* ── OFFERS / PROMOCIONES ────────────────────────────── */
.ec-offers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin: 8px 0 24px;
}
@media (max-width: 575px) {
    .ec-offers-grid { grid-template-columns: 1fr; gap: 10px; }
}
.ec-offer-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16 / 7;
    display: block;
}
.ec-offer-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.ec-offer-item:hover img { transform: scale(1.04); }

/* ── PAGINACIÓN ─────────────────────────────────────── */
.page-pagination { margin-top: 8px; }

/* ── PRODUCT DETAIL — selector de cantidad ──────────── */
.ec-qty-selector {
    display: inline-flex;
    align-items: stretch;
    border: 1.5px solid hsl(var(--primary-h), var(--primary-s), 88%);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 14px;
}
.ec-qty-btn {
    width: 40px;
    min-height: 44px;
    background: hsl(var(--primary-h), var(--primary-s), 95%);
    border: none;
    font-size: 20px;
    font-weight: 500;
    color: var(--title-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
    line-height: 1;
}
.ec-qty-btn:hover { background: hsl(var(--primary-h), var(--primary-s), 88%); }
.ec-qty-input {
    width: 54px;
    text-align: center;
    border: none;
    border-left: 1.5px solid hsl(var(--primary-h), var(--primary-s), 88%);
    border-right: 1.5px solid hsl(var(--primary-h), var(--primary-s), 88%);
    font-size: 16px;
    font-weight: 700;
    color: var(--title-color);
    background: #fff;
    -moz-appearance: textfield;
}
.ec-qty-input::-webkit-inner-spin-button,
.ec-qty-input::-webkit-outer-spin-button { -webkit-appearance: none; }

/* Mobile sticky CTA bar */
@media (max-width: 767px) {
    .ec-mobile-action-bar {
        position: fixed;
        bottom: 0; left: 0; right: 0;
        z-index: 10000;
        background: #fff;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
        box-shadow: 0 -3px 16px rgba(0,0,0,.10);
        display: flex !important;
        gap: 10px;
        border-top: 1px solid hsl(var(--primary-h), var(--primary-s), 90%);
    }
    .ec-mobile-action-bar .add-cart,
    .ec-mobile-action-bar .btn-whatsapp {
        flex: 1;
        height: 50px;
        font-size: 15px;
        border-radius: 10px !important;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }
    /* Espacio para que el contenido no quede debajo del bar */
    .product-single-container { padding-bottom: 80px; }
}

/* ── ALL CATEGORY PILLS (header nav) ─────────────────── */
.main-nav .all-category li.title-category {
    font-size: 14px;
    font-weight: 700;
    color: var(--title-color);
    align-self: center;
    white-space: nowrap;
    padding-right: 6px;
}

/* ── ESPECIFICACIONES TÉCNICAS ───────────────────────── */
.specs-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.3rem;
    margin-top: 8px;
}
.specs-content table th,
.specs-content table td {
    padding: 8px 12px;
    border: 1px solid hsl(var(--primary-h), var(--primary-s), 90%);
    text-align: left;
}
.specs-content table th {
    background: hsl(var(--primary-h), var(--primary-s), 96%);
    font-weight: 700;
    color: var(--title-color);
}
.specs-content table tr:nth-child(even) td {
    background: hsl(var(--primary-h), var(--primary-s), 99%);
}

/* ── MOBILE MENU MEJORADO ────────────────────────────── */
@media (max-width: 991px) {
    .mobile-menu li > a { font-size: 15px; padding: 10px 15px; }
    .mobile-menu-wrapper { padding: 20px 0; }
}

/* ── BOTÓN WHATSAPP FLOTANTE ─────────────────────────── */
a.ws-flotante {
    position: fixed;
    bottom: 24px;
    right: 20px;
    z-index: 9999;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37,211,102,.45);
    transition: transform .2s ease, box-shadow .2s ease;
    text-decoration: none;
}
a.ws-flotante svg {
    width: 28px;
    height: 28px;
}
a.ws-flotante:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 22px rgba(37,211,102,.55);
}
@media (max-width: 767px) {
    a.ws-flotante {
        bottom: 16px;
        right: 12px;
        width: 46px;
        height: 46px;
    }
    a.ws-flotante svg {
        width: 24px;
        height: 24px;
    }
}

/* ── HOME SECTIONS ───────────────────────────────────── */
.ec-home-section {
    margin-bottom: 2.4rem;
    position: relative;
}
.ec-home-section--categories {
    margin-bottom: 1rem;
}
.ec-home-section--offers {
    margin-top: 1rem;
}
.ec-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.2rem;
    gap: 12px;
}
.ec-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--title-color, #333);
    margin: 0;
    padding-left: 14px;
    border-left: 4px solid hsl(var(--primary-h), var(--primary-s), var(--primary-l));
    line-height: 1.3;
}
.ec-section-link {
    font-size: 1.3rem;
    font-weight: 600;
    color: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
    white-space: nowrap;
    text-decoration: none;
    transition: opacity .18s;
}
.ec-section-link:hover { opacity: .75; text-decoration: underline; }

/* ── OFFERS GRID MEJORADO ────────────────────────────── */
.ec-offers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 100%;
}
.ec-offer-item {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16 / 7;
    background: hsl(var(--primary-h), var(--primary-s), 96%);
}
.ec-offer-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}
.ec-offer-item:hover img { transform: scale(1.04); }

@media (max-width: 575px) {
    .ec-section-title { font-size: 1.5rem; }
    .ec-offers-grid { grid-template-columns: 1fr; }
    .ec-offer-item { aspect-ratio: 16 / 6; }
}

/* ── STOCK NOTIFY MODAL ──────────────────────────────── */
#ec-notify-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
#ec-notify-modal.ec-notify-modal--open {
    display: flex;
}
.ec-notify-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.5);
    backdrop-filter: blur(3px);
}
.ec-notify-box {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 32px 28px 28px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,.18);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    animation: ecNotifyIn .22s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes ecNotifyIn {
    from { opacity:0; transform: scale(.88) translateY(12px); }
    to   { opacity:1; transform: scale(1)  translateY(0);     }
}
.ec-notify-close {
    position: absolute;
    top: 12px; right: 14px;
    background: none; border: none;
    font-size: 22px; line-height: 1;
    color: #999; cursor: pointer;
    transition: color .15s;
}
.ec-notify-close:hover { color: #333; }
.ec-notify-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--title-color,#333);
    margin: 0 0 4px;
}
.ec-notify-product-name {
    font-size: 1.3rem;
    color: #666;
    margin: 0 0 18px;
    max-height: 40px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}
#ec-notify-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
#ec-notify-form input[type="text"],
#ec-notify-form input[type="email"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1.4rem;
    outline: none;
    transition: border-color .18s;
    box-sizing: border-box;
}
#ec-notify-form input:focus { border-color: hsl(var(--primary-h),var(--primary-s),var(--primary-l)); }
.ec-notify-error {
    font-size: 1.2rem;
    color: #e53e3e;
    min-height: 18px;
    margin: 0;
}
.ec-notify-submit {
    background: hsl(var(--primary-h),var(--primary-s),var(--primary-l));
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 11px 20px;
    font-size: 1.4rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity .18s;
}
.ec-notify-submit:disabled { opacity: .65; cursor: default; }
.ec-notify-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
}
.ec-notify-success p {
    font-size: 1.4rem;
    color: #333;
    margin: 0;
}

/* ── WISHLIST BUTTON ─────────────────────────────────── */
.ec-btn-wishlist {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    background: rgba(255,255,255,.9);
    border: none;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
    transition: transform .18s ease, background .18s ease;
    color: #aaa;
}
.ec-btn-wishlist:hover {
    transform: scale(1.15);
    color: #e53e3e;
    background: #fff;
}
.ec-btn-wishlist--active {
    color: #e53e3e;
    background: #fff;
}
.ec-btn-wishlist--active svg {
    fill: #e53e3e;
    stroke: #e53e3e;
}

/* ── RELATED PRODUCTS SECTION ────────────────────────── */
.ec-related-section {
    margin-bottom: 3rem;
}
@media (max-width: 575px) {
    .ec-related-section .ec-product-card__title { font-size: 1.25rem; }
}

/* ── BUNDLES / PAQUETES SECTION ──────────────────────── */
.ec-bundles-section { margin-bottom: 2.4rem; }

.ec-section-badge {
    background: #ff6b35;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: .02em;
    white-space: nowrap;
}

.ec-bundle-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid hsl(var(--primary-h),var(--primary-s),91%);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform .22s ease, box-shadow .22s ease;
}
.ec-bundle-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,.1);
}
.ec-bundle-card--oos { opacity: .75; }

.ec-bundle-card__img-wrap {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: hsl(var(--primary-h),var(--primary-s),97%);
}
.ec-bundle-card__img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}
.ec-bundle-card:hover .ec-bundle-card__img { transform: scale(1.05); }

.ec-bundle-discount-badge {
    position: absolute;
    top: 10px; left: 10px;
    background: #e53e3e;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
}

.ec-bundle-card__body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 10px;
}
.ec-bundle-card__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--title-color,#333);
    margin: 0;
    line-height: 1.35;
}
.ec-bundle-card__title a { color: inherit; text-decoration: none; }
.ec-bundle-card__title a:hover { color: hsl(var(--primary-h),var(--primary-s),var(--primary-l)); }

.ec-bundle-items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.ec-bundle-items__item {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 1.25rem;
    color: #555;
    line-height: 1.4;
}
.ec-bundle-items__more {
    font-size: 1.2rem;
    color: #888;
    font-style: italic;
}

.ec-bundle-card__footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}
.ec-bundle-card__price { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ec-bundle-price-old {
    font-size: 1.3rem;
    color: #aaa;
    text-decoration: line-through;
}
.ec-bundle-price-current {
    font-size: 1.8rem;
    font-weight: 800;
    color: hsl(var(--primary-h),var(--primary-s),var(--primary-l));
}
.ec-bundle-btn {
    background: hsl(var(--primary-h),var(--primary-s),var(--primary-l));
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: opacity .18s;
    white-space: nowrap;
}
.ec-bundle-btn:hover { opacity: .85; }
.ec-bundle-oos {
    font-size: 1.3rem;
    color: #aaa;
    font-style: italic;
}

@media (max-width: 575px) {
    .ec-bundle-card__title { font-size: 1.35rem; }
    .ec-bundle-price-current { font-size: 1.6rem; }
}

/* ── SEARCH RESULTS ──────────────────────────────────── */
.ec-search-item {
    gap: 10px;
    padding: 8px 10px;
    text-decoration: none;
    color: #333;
    transition: background .15s;
}
.ec-search-item:hover { background: #f5f5f5; color: #333; }
.ec-search-img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    border: 1px solid #eee;
}
.ec-search-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.ec-search-name {
    font-size: 1.3rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ec-search-cat {
    font-size: 1.1rem;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ec-search-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: hsl(var(--primary-h),var(--primary-s),var(--primary-l));
    white-space: nowrap;
    flex-shrink: 0;
}
.ec-search-more {
    padding: 8px 12px;
    border-top: 1px solid #f0f0f0;
    font-size: 1.25rem;
    text-align: center;
}
.ec-search-more a { color: hsl(var(--primary-h),var(--primary-s),var(--primary-l)); text-decoration: none; }
.ec-search-more a:hover { text-decoration: underline; }
.ec-search-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 18px 12px;
    color: #aaa;
    font-size: 1.3rem;
    text-align: center;
}

/* ── CHECKOUT STEPPER ────────────────────────────────── */
.ec-checkout-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 20px 0 24px;
    padding: 0 16px;
}
.ec-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    opacity: .35;
    transition: opacity .2s;
}
.ec-step--active { opacity: 1; }
.ec-step--done { opacity: 1; }
.ec-step--done .ec-step__num { background: #16a34a; box-shadow: 0 4px 12px rgba(22,163,74,0.3); }
.ec-step__line--done { background: #16a34a; }
.ec-step__num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: hsl(var(--primary-h),var(--primary-s),var(--primary-l));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
    box-shadow: 0 4px 12px hsl(var(--primary-h),var(--primary-s),70%);
}
.ec-step__label {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--title-color,#333);
    white-space: nowrap;
}
.ec-step__line {
    flex: 1;
    height: 2px;
    background: hsl(var(--primary-h),var(--primary-s),85%);
    margin: 0 8px;
    margin-bottom: 22px;
    max-width: 60px;
}

/* ── CARRITO VACÍO ───────────────────────────────────── */
.ec-cart-empty {
    text-align: center;
    padding: 40px 20px !important;
    color: #bbb;
}
.ec-cart-empty svg { margin-bottom: 12px; }
.ec-cart-empty p {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: #aaa;
}

@media (max-width: 575px) {
    .ec-step__label { display: none; }
    .ec-step__line { max-width: 30px; }
}

/* ── FILTROS Y ORDENACIÓN ────────────────────────────── */
.ec-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    background: #fff;
    border: 1px solid hsl(var(--primary-h),var(--primary-s),91%);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 16px;
}
.ec-filter-group { display: flex; align-items: center; gap: 8px; }
.ec-filter-label {
    font-size: 1.25rem;
    font-weight: 600;
    color: #555;
    white-space: nowrap;
    margin: 0;
    cursor: pointer;
}
.ec-filter-select-wrap { position: relative; }
.ec-filter-select {
    appearance: none;
    -webkit-appearance: none;
    background: #f8f9fa url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23888' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E") no-repeat right 10px center;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 6px 30px 6px 10px;
    font-size: 1.3rem;
    cursor: pointer;
    color: #333;
    transition: border-color .15s;
}
.ec-filter-select:focus { outline: none; border-color: hsl(var(--primary-h),var(--primary-s),var(--primary-l)); }

/* Rango de precio */
.ec-filter-group--price { gap: 6px; }
.ec-price-range { display: flex; align-items: center; gap: 6px; }
.ec-price-input-wrap { position: relative; display: flex; align-items: center; }
.ec-price-symbol {
    position: absolute; left: 8px;
    font-size: 1.2rem; color: #888; pointer-events: none;
}
.ec-filter-input {
    width: 80px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 6px 6px 6px 22px;
    font-size: 1.3rem;
    transition: border-color .15s;
}
.ec-filter-input:focus { outline: none; border-color: hsl(var(--primary-h),var(--primary-s),var(--primary-l)); }
.ec-price-sep { font-size: 1.3rem; color: #aaa; }
.ec-filter-apply-btn {
    width: 30px; height: 30px;
    background: hsl(var(--primary-h),var(--primary-s),var(--primary-l));
    color: #fff;
    border: none;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: opacity .15s;
}
.ec-filter-apply-btn:hover { opacity: .8; }

/* Toggle disponibles */
.ec-filter-group--toggle { gap: 0; }
.ec-filter-toggle {
    display: flex; align-items: center; gap: 8px;
    cursor: pointer; margin: 0;
}
.ec-filter-toggle input[type="checkbox"] { display: none; }
.ec-filter-toggle__track {
    width: 38px; height: 20px;
    background: #ddd;
    border-radius: 20px;
    position: relative;
    transition: background .2s;
    flex-shrink: 0;
}
.ec-filter-toggle__track::after {
    content: '';
    position: absolute;
    top: 2px; left: 2px;
    width: 16px; height: 16px;
    background: #fff;
    border-radius: 50%;
    transition: transform .2s;
    box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.ec-filter-toggle input:checked ~ .ec-filter-toggle__track {
    background: hsl(var(--primary-h),var(--primary-s),var(--primary-l));
}
.ec-filter-toggle input:checked ~ .ec-filter-toggle__track::after {
    transform: translateX(18px);
}

/* Limpiar filtros */
.ec-filter-clear {
    font-size: 1.2rem;
    color: #e53e3e;
    text-decoration: none;
    display: flex; align-items: center; gap: 4px;
    transition: opacity .15s;
}
.ec-filter-clear:hover { opacity: .75; }

/* Contador resultados */
.ec-results-count {
    font-size: 1.3rem;
    color: #888;
    margin: 0 0 12px;
}

@media (max-width: 575px) {
    .ec-filters { padding: 10px 12px; gap: 8px; }
    .ec-filter-input { width: 65px; }
}

/* ── MINI-CARRITO DROPDOWN ──────────────────────────── */
.ec-minicart-dropdown {
    display: none;           /* oculto por defecto — Bootstrap añade .show al abrirlo */
    min-width: 320px;
    max-width: 360px;
    width: 360px;
    padding: 0;
    border: none;
    border-radius: 14px;
    background: #fff !important;
    box-shadow: 0 8px 32px rgba(0,0,0,.18);
    overflow: hidden;
    position: absolute;
    z-index: 9999 !important;
    right: 0;
    left: auto !important;
    top: 100%;
}
.ec-minicart-dropdown.show {
    display: block;
}
.ec-minicart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid #f0f0f0;
    font-weight: 700;
    font-size: 14px;
    color: var(--title-color);
}
.ec-minicart-count-label { font-weight: 400; font-size: 12px; color: #888; }
.ec-minicart-list { max-height: 280px; overflow-y: auto; padding: 8px 0; }
.ec-minicart-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    transition: background .15s;
}
.ec-minicart-item:hover { background: #fafafa; }
.ec-minicart-img {
    flex-shrink: 0;
    width: 52px; height: 52px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eee;
    display: flex; align-items: center; justify-content: center;
    background: #f8f8f8;
}
.ec-minicart-img img { width: 100%; height: 100%; object-fit: contain; }
.ec-minicart-info { flex: 1; min-width: 0; }
.ec-minicart-name {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--title-color);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}
.ec-minicart-name:hover { color: hsl(var(--primary-h),var(--primary-s),var(--primary-l)); }
.ec-minicart-meta { display: block; font-size: 12px; color: #888; }
.ec-minicart-sub { display: block; font-size: 13px; font-weight: 700; color: var(--price-color); margin-top: 2px; }
.ec-minicart-remove {
    flex-shrink: 0;
    width: 24px; height: 24px;
    border: none; background: none;
    cursor: pointer;
    color: #bbb;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s, color .15s;
    padding: 0;
}
.ec-minicart-remove:hover { background: #fee2e2; color: #e53e3e; }
.ec-minicart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 28px 16px;
    gap: 8px;
    color: #bbb;
    font-size: 13px;
}
.ec-minicart-footer {
    border-top: 1px solid #f0f0f0;
    padding: 12px 16px;
}
.ec-minicart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
    color: #555;
}
.ec-minicart-total strong { font-size: 16px; font-weight: 800; color: var(--title-color); }
.ec-minicart-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 11px;
    background: hsl(var(--primary-h),var(--primary-s),var(--primary-l));
    color: #fff;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: opacity .18s;
}
.ec-minicart-btn:hover { opacity: .88; color: #fff; text-decoration: none; }

/* ── HEADER WISHLIST ICON ────────────────────────────── */
.ec-header-wishlist {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: var(--title-color);
    text-decoration: none;
    transition: color .18s;
    flex-shrink: 0;
}
.ec-header-wishlist:hover { color: #fca5a5; }
.ec-header-wishlist svg { display: block; }
.ec-header-wishlist__count {
    position: absolute;
    top: -4px; right: -4px;
    min-width: 18px; height: 18px;
    background: #e53e3e;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 9px;
    padding: 0 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border: 1.5px solid #fff;
}

/* ── NEWSLETTER BAR ──────────────────────────────────── */
.ec-newsletter-bar {
    background: hsl(var(--primary-h),var(--primary-s),var(--primary-l));
    padding: 20px 0;
}
.ec-newsletter-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.ec-newsletter-bar__text {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #fff;
    flex: 1;
    min-width: 200px;
}
.ec-newsletter-bar__text svg { flex-shrink: 0; }
.ec-newsletter-bar__text strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
}
.ec-newsletter-bar__text span {
    display: block;
    font-size: 1.25rem;
    opacity: .85;
}
.ec-newsletter-bar__form {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}
.ec-newsletter-bar__input {
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 1.3rem;
    width: 240px;
    max-width: 100%;
    outline: none;
}
.ec-newsletter-bar__btn {
    background: rgba(0,0,0,.25);
    color: #fff;
    border: 1.5px solid rgba(255,255,255,.4);
    border-radius: 8px;
    padding: 8px 18px;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background .18s;
}
.ec-newsletter-bar__btn:hover { background: rgba(0,0,0,.4); }
@media (max-width: 575px) {
    .ec-newsletter-bar__form { width: 100%; }
    .ec-newsletter-bar__input { flex: 1; width: auto; }
}

/* ── FOOTER LINKS MEJORADO ───────────────────────────── */
.ec-footer-links { list-style: none; padding: 0; margin: 0; }
.ec-footer-links li { margin-bottom: 8px; }
.ec-footer-links a {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 1.3rem;
    text-decoration: none;
    transition: opacity .15s;
}
.ec-footer-links a:hover { opacity: .75; }

/* ── LAZY LOAD — shimmer skeleton ────────────────────── */
img.ec-img-lazy {
    background: linear-gradient(90deg, #f0f0f0 25%, #e4e4e4 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: ec-shimmer 1.4s infinite;
    object-fit: contain;
}
img.ec-img-lazy--loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e4e4e4 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: ec-shimmer 1.4s infinite;
}
img.ec-img-lazy--loaded {
    animation: none;
    background: none;
    transition: opacity .3s ease;
}
@keyframes ec-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── BREADCRUMBS (páginas de listado) ────────────────── */
.ec-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 10px 0;
    margin: 0 0 8px;
    font-size: 1.3rem;
}
.ec-breadcrumb li { display: flex; align-items: center; gap: 6px; }
.ec-breadcrumb a {
    display: flex;
    align-items: center;
    gap: 5px;
    color: hsl(var(--primary-h),var(--primary-s),var(--primary-l));
    text-decoration: none;
    transition: opacity .15s;
}
.ec-breadcrumb a:hover { opacity: .75; text-decoration: underline; }
.ec-breadcrumb__sep { color: #bbb; font-size: 1.1rem; }
.ec-breadcrumb [aria-current="page"] { color: #777; }

/* ── LIGHTBOX ─────────────────────────────────────────── */
#ec-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
}
#ec-lightbox.ec-lightbox--open { display: flex; }
.ec-lb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.88);
}
.ec-lb-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 20px 60px;
}
.ec-lb-img-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 90vw;
    max-height: 85vh;
}
.ec-lb-img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 6px;
    user-select: none;
}
.ec-lb-btn {
    position: absolute;
    background: rgba(255,255,255,.12);
    border: none;
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .18s;
    z-index: 1;
}
.ec-lb-btn:hover { background: rgba(255,255,255,.28); }
.ec-lb-close { top: 16px; right: 16px; }
.ec-lb-prev  { left: 12px; }
.ec-lb-next  { right: 12px; }
.ec-lb-counter {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,.7);
    font-size: 1.3rem;
    margin: 0;
}
@media (max-width: 575px) {
    .ec-lb-inner { padding: 16px 44px; }
    .ec-lb-prev  { left: 4px; }
    .ec-lb-next  { right: 4px; }
}

/* ── MINIATURAS ACTIVAS ───────────────────────────────── */
#carousel-custom-dots .owl-dot { cursor: pointer; transition: opacity .15s; }
#carousel-custom-dots .owl-dot img { border-radius: 6px; border: 2px solid transparent; transition: border-color .2s; }
#carousel-custom-dots .ec-thumb-active img {
    border-color: hsl(var(--primary-h),var(--primary-s),var(--primary-l));
    opacity: 1 !important;
}
#carousel-custom-dots .owl-dot:not(.ec-thumb-active) { opacity: .65; }
#carousel-custom-dots .owl-dot:not(.ec-thumb-active):hover { opacity: .9; }

/* ── ZOOM EN IMAGEN PRINCIPAL ─────────────────────────── */
.product-single-carousel .product-item {
    overflow: hidden;
    border-radius: 8px;
}
.product-single-carousel .product-single-image {
    transition: transform .35s cubic-bezier(.25,.46,.45,.94);
    will-change: transform;
}
.product-single-carousel .product-item:hover .product-single-image {
    transform: scale(1.06);
}

/* ── ATRIBUTOS DEL PRODUCTO ───────────────────────────── */
.product-attributes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.product-attr-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f5f6fa;
    border: 1px solid #e2e4ee;
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 1.2rem;
    color: #555;
    line-height: 1.3;
}
.product-attr-badge strong {
    color: #333;
    font-weight: 600;
}

/* ── VISTOS RECIENTEMENTE ─────────────────────────── */
.ec-rv-list {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}
.ec-rv-col { min-width: 0; }
@media (max-width: 991px) { .ec-rv-list { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 575px) { .ec-rv-list { grid-template-columns: repeat(2, 1fr); } }

/* ── HISTORIAL DE BÚSQUEDAS ──────────────────────────── */
.ec-search-history-panel { padding: 8px 0 4px; }
.ec-search-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 14px 8px;
    font-size: 1.2rem;
    color: #aaa;
}
.ec-search-history-clear {
    background: none; border: none;
    font-size: 1.15rem; color: hsl(var(--primary-h),var(--primary-s),var(--primary-l));
    cursor: pointer; padding: 0;
}
.ec-search-history-clear:hover { text-decoration: underline; }
.ec-search-history-item {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
}
.ec-search-history-item .ec-search-item { flex: 1; }
.ec-search-history-icon { color: #bbb; flex-shrink: 0; margin-right: 8px; }
.ec-search-history-remove {
    background: none; border: none;
    color: #ccc; cursor: pointer; padding: 4px 10px;
    flex-shrink: 0; line-height: 1;
    transition: color .15s;
}
.ec-search-history-remove:hover { color: #e53e3e; }

/* ── UPSELL EN CARRITO ───────────────────────────────── */
.ec-upsell-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}
.ec-slider-btn {
    width: 38px; height: 38px;
    border-radius: 50%;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    color: #374151;
    transition: background .15s, border-color .15s, opacity .15s;
    flex-shrink: 0;
    user-select: none;
}
.ec-slider-btn:hover { background: hsl(var(--primary-h),var(--primary-s),95%); border-color: hsl(var(--primary-h),var(--primary-s),70%); }
.ec-slider-btn.swiper-button-disabled { opacity: 0.35; pointer-events: none; }
.ec-upsell-swiper { overflow: hidden; }
.ec-upsell-swiper .ec-product-card__img-wrap,
.ec-related-swiper .ec-product-card__img-wrap { height: 180px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: #f8f9fa; }
.ec-upsell-swiper .ec-product-card__img,
.ec-related-swiper .ec-product-card__img { width: 100%; height: 100%; object-fit: cover; }
.ec-related-swiper { overflow: hidden; }
.ec-related-pagination .swiper-pagination-bullet { background: #d1d5db; opacity: 1; }
.ec-related-pagination .swiper-pagination-bullet-active { background: hsl(var(--primary-h),var(--primary-s),45%); }
/* Badge estrella tag destacado */
.ec-featured-tag-badge {
    display: inline-flex; align-items: center; justify-content: center;
    background: #fbbf24; color: #fff; border-radius: 50%;
    width: 18px; height: 18px; margin-left: 5px;
    vertical-align: middle; flex-shrink: 0;
}
/* Widget Productos Destacados sidebar */
.ec-wp-swiper { height: 270px; }
.ec-featured-item { display:flex; gap:10px; align-items:flex-start; padding:8px 0; border-bottom:1px solid #f0f0f0; }
.ec-featured-item:last-child { border-bottom: none; }
.ec-featured-img { flex-shrink:0; width:64px; height:64px; overflow:hidden; border-radius:8px; background:#f8f9fa; }
.ec-featured-img img { width:100%; height:100%; object-fit:cover; }
.ec-featured-info { flex:1; min-width:0; }
.ec-featured-info .product-title { font-size:0.8rem; font-weight:600; margin:0 0 4px; line-height:1.3; }
.ec-featured-info .product-title a { color:#1e293b; text-decoration:none; }
.ec-featured-info .product-title a:hover { color:hsl(var(--primary-h),var(--primary-s),40%); }
.ec-featured-info .product-price { font-size:0.85rem; font-weight:700; color:hsl(var(--primary-h),var(--primary-s),35%); }
.ec-rv-swiper { overflow: hidden; }
.ec-rv-swiper .ec-product-card__img-wrap { height: 180px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: #f8f9fa; }
.ec-rv-swiper .ec-product-card__img { width: 100%; height: 100%; object-fit: cover; }
.ec-rv-pagination .swiper-pagination-bullet { background: #d1d5db; opacity: 1; }
.ec-rv-pagination .swiper-pagination-bullet-active { background: hsl(var(--primary-h),var(--primary-s),45%); }
.ec-upsell-pagination .swiper-pagination-bullet { background: #d1d5db; opacity: 1; }
.ec-upsell-pagination .swiper-pagination-bullet-active { background: hsl(var(--primary-h),var(--primary-s),45%); }

/* ── STICKY ADD-TO-CART DESKTOP ──────────────────────── */
.ec-sticky-desktop {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1050;
    background: #fff;
    border-bottom: 2px solid hsl(var(--primary-h),var(--primary-s),88%);
    box-shadow: 0 2px 12px rgba(0,0,0,.1);
    transform: translateY(-110%);
    transition: transform .28s cubic-bezier(.4,0,.2,1);
}
.ec-sticky-desktop--visible { transform: translateY(0); }
.ec-sticky-desktop__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.ec-sticky-desktop__name {
    flex: 1; min-width: 0;
    font-size: 1.4rem; font-weight: 700; color: #333;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    margin: 0;
}
.ec-sticky-desktop__price {
    font-size: 1.6rem; font-weight: 800;
    color: hsl(var(--primary-h),var(--primary-s),var(--primary-l));
    white-space: nowrap;
}
.ec-sticky-desktop__btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: hsl(var(--primary-h),var(--primary-s),var(--primary-l));
    color: #fff !important; border-radius: 8px;
    padding: 9px 22px; font-size: 1.4rem; font-weight: 700;
    text-decoration: none; white-space: nowrap;
    transition: opacity .15s;
}
.ec-sticky-desktop__btn:hover { opacity: .88; }
/* Solo visible en md+ */
@media (max-width: 767px) { .ec-sticky-desktop { display: none !important; } }

/* ── COMPARTIR PRODUCTO ──────────────────────────────── */
.ec-share-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.ec-share-bar__label { font-size: 1.2rem; color: #999; }
.ec-share-btn {
    display: inline-flex; align-items: center; gap: 6px;
    background: #f1f3f5; border: none; border-radius: 8px;
    padding: 7px 14px; font-size: 1.3rem; color: #555;
    cursor: pointer; transition: background .15s;
}
.ec-share-btn:hover { background: #e2e6ea; }
.ec-share-links {
    display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
}
.ec-share-link {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 6px 12px; border-radius: 7px;
    font-size: 1.25rem; font-weight: 600; text-decoration: none;
    transition: opacity .15s; border: none; cursor: pointer;
}
.ec-share-link:hover { opacity: .8; text-decoration: none; }
.ec-share-link--wa  { background: #dcfce7; color: #15803d; }
.ec-share-link--fb  { background: #dbeafe; color: #1d4ed8; }
.ec-share-link--copy { background: #f3f4f6; color: #555; }

/* ── REVIEWS / RATING ────────────────────────────────── */
.ec-reviews-wrap { padding: 24px 0; }

/* Summary */
.ec-reviews-summary {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    padding: 20px;
    background: #fafafa;
    border-radius: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.ec-reviews-avg {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    min-width: 80px; gap: 4px;
}
.ec-reviews-avg__num {
    font-size: 3.6rem; font-weight: 800;
    color: hsl(var(--primary-h),var(--primary-s),var(--primary-l));
    line-height: 1;
}
.ec-reviews-avg__stars { display: flex; gap: 2px; }
.ec-reviews-avg__stars .ec-star { font-size: 1.6rem; color: #ddd; }
.ec-reviews-avg__stars .ec-star--on { color: #f59e0b; }
.ec-reviews-avg__total { font-size: 1.2rem; color: #888; white-space: nowrap; }

/* Distribution bars */
.ec-reviews-dist { flex: 1; min-width: 180px; display: flex; flex-direction: column; gap: 6px; }
.ec-dist-row { display: flex; align-items: center; gap: 8px; }
.ec-dist-label { font-size: 1.2rem; color: #666; white-space: nowrap; width: 30px; text-align: right; }
.ec-dist-bar { flex: 1; height: 8px; background: #e5e7eb; border-radius: 4px; overflow: hidden; }
.ec-dist-fill { height: 100%; background: #f59e0b; border-radius: 4px; transition: width .4s ease; }
.ec-dist-count { font-size: 1.1rem; color: #999; width: 20px; text-align: left; }

/* Filter buttons */
.ec-reviews-filters {
    display: none; align-items: center; flex-wrap: wrap; gap: 8px;
    margin-bottom: 16px;
}
.ec-reviews-filter-label { font-size: 1.2rem; color: #888; }
.ec-filter-star-btn {
    border: 1px solid #e5e7eb; background: #fff; border-radius: 20px;
    padding: 4px 12px; font-size: 1.2rem; cursor: pointer;
    color: #555; transition: all .15s;
}
.ec-filter-star-btn:hover,
.ec-filter-star-btn--active {
    background: hsl(var(--primary-h),var(--primary-s),var(--primary-l));
    border-color: hsl(var(--primary-h),var(--primary-s),var(--primary-l));
    color: #fff;
}

/* Review cards */
.ec-review-card {
    border-bottom: 1px solid #f0f0f0;
    padding: 14px 0;
}
.ec-review-card:last-child { border-bottom: none; }
.ec-review-card__head {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    margin-bottom: 6px;
}
.ec-review-card__name { font-weight: 700; font-size: 1.3rem; color: #333; }
.ec-review-card__stars { display: flex; gap: 1px; }
.ec-review-card__stars .ec-star { font-size: 1.3rem; color: #ddd; }
.ec-review-card__stars .ec-star--on { color: #f59e0b; }
.ec-review-card__date { font-size: 1.1rem; color: #aaa; margin-left: auto; }
.ec-review-card__comment { font-size: 1.3rem; color: #555; margin: 0; line-height: 1.55; }

/* States */
.ec-reviews-loading,
.ec-reviews-empty {
    text-align: center; color: #aaa; padding: 20px 0; font-size: 1.3rem;
}

/* Pagination */
.ec-reviews-pagination {
    display: none; justify-content: center; margin: 16px 0;
}
.ec-reviews-page-btn {
    border: 1px solid hsl(var(--primary-h),var(--primary-s),var(--primary-l));
    background: #fff; color: hsl(var(--primary-h),var(--primary-s),var(--primary-l));
    border-radius: 8px; padding: 8px 24px; font-size: 1.3rem; font-weight: 600;
    cursor: pointer; transition: all .15s;
}
.ec-reviews-page-btn:hover {
    background: hsl(var(--primary-h),var(--primary-s),var(--primary-l));
    color: #fff;
}

/* Form */
.ec-review-form-wrap {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #f0f0f0;
}
.ec-review-form-title {
    font-size: 1.5rem; font-weight: 700; margin-bottom: 12px; color: #333;
}
.ec-review-stars-input { display: flex; gap: 6px; margin-bottom: 14px; }
.ec-star-pick {
    font-size: 2.4rem; background: none; border: none; color: #ddd;
    cursor: pointer; padding: 0; line-height: 1; transition: color .1s, transform .1s;
}
.ec-star-pick--on,
.ec-star-pick:hover { color: #f59e0b; transform: scale(1.15); }
.ec-review-input,
.ec-review-textarea {
    display: block; width: 100%;
    border: 1px solid #e5e7eb; border-radius: 8px;
    padding: 10px 14px; font-size: 1.3rem; color: #333;
    margin-bottom: 10px; font-family: inherit;
    transition: border-color .15s;
}
.ec-review-input:focus,
.ec-review-textarea:focus { outline: none; border-color: hsl(var(--primary-h),var(--primary-s),var(--primary-l)); }
.ec-review-textarea { resize: vertical; min-height: 80px; }
.ec-review-submit-btn {
    background: hsl(var(--primary-h),var(--primary-s),var(--primary-l));
    color: #fff; border: none; border-radius: 8px;
    padding: 10px 28px; font-size: 1.4rem; font-weight: 700;
    cursor: pointer; transition: opacity .15s;
}
.ec-review-submit-btn:hover { opacity: .88; }
.ec-review-submit-btn:disabled { opacity: .5; cursor: default; }
.ec-review-msg { font-size: 1.2rem; margin-top: 8px; min-height: 18px; }
.ec-review-login-msg {
    text-align: center; color: #888; padding: 20px 0; font-size: 1.3rem;
}
.ec-review-login-msg a { color: hsl(var(--primary-h),var(--primary-s),var(--primary-l)); text-decoration: underline; }

/* ── COMPARADOR DE PRODUCTOS ─────────────────────────── */

/* Compare button on cards */
.ec-btn-compare {
    position: absolute;
    top: 42px; right: 10px; /* below wishlist button */
    width: 32px; height: 32px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 3;
    transition: all .15s;
    color: #888;
    padding: 0;
}
.ec-btn-compare:hover { background: hsl(var(--primary-h),var(--primary-s),var(--primary-l)); color: #fff; border-color: transparent; }
.ec-btn-compare--active { background: hsl(var(--primary-h),var(--primary-s),var(--primary-l)) !important; color: #fff !important; border-color: transparent !important; }

/* Detail page compare button */
.ec-btn-compare--detail {
    position: static;
    width: auto; height: auto;
    border-radius: 8px;
    padding: 7px 16px;
    font-size: 1.3rem;
    gap: 6px;
    display: inline-flex; align-items: center;
    background: #f3f4f6; color: #555; border: 1px solid #e5e7eb;
}
.ec-btn-compare--detail svg { flex-shrink: 0; }
.ec-btn-compare--detail:hover { background: hsl(var(--primary-h),var(--primary-s),var(--primary-l)); color: #fff; border-color: transparent; }
.ec-btn-compare--detail.ec-btn-compare--active { background: hsl(var(--primary-h),var(--primary-s),var(--primary-l)); color: #fff; border-color: transparent; }

/* Floating comparison bar */
.ec-compare-bar {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 1050;
    background: #fff;
    box-shadow: 0 -4px 24px rgba(0,0,0,.12);
    transform: translateY(100%);
    transition: transform .3s ease;
    border-top: 2px solid hsl(var(--primary-h),var(--primary-s),var(--primary-l));
}
.ec-compare-bar--visible { transform: translateY(0); }
.ec-compare-bar__inner {
    max-width: 1200px; margin: 0 auto;
    padding: 10px 20px;
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.ec-compare-bar__label {
    font-size: 1.2rem; font-weight: 700; color: #555; white-space: nowrap;
}
.ec-compare-bar__slots {
    display: flex; gap: 10px; flex: 1; overflow-x: auto;
}
.ec-cslot {
    min-width: 90px; max-width: 110px;
    border: 1.5px dashed #e5e7eb;
    border-radius: 8px; padding: 6px 8px;
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    position: relative; background: #fafafa;
    font-size: 1.1rem;
}
.ec-cslot--filled { border-style: solid; border-color: hsl(var(--primary-h),var(--primary-s),var(--primary-l)); }
.ec-cslot img { width: 44px; height: 44px; object-fit: contain; border-radius: 4px; }
.ec-cslot__name { font-size: 1.05rem; color: #333; text-align: center; line-height: 1.3; word-break: break-word; }
.ec-cslot__label { font-size: 1.1rem; color: #aaa; text-align: center; padding-top: 6px; }
.ec-cslot__placeholder { width: 44px; height: 44px; background: #f0f0f0; border-radius: 4px; }
.ec-cslot__remove {
    position: absolute; top: -6px; right: -6px;
    width: 18px; height: 18px; border-radius: 50%;
    background: #e55; color: #fff; border: none;
    font-size: 9px; line-height: 1; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    padding: 0;
}
.ec-compare-bar__actions { display: flex; gap: 8px; }
.ec-compare-bar__open {
    background: hsl(var(--primary-h),var(--primary-s),var(--primary-l));
    color: #fff; border: none; border-radius: 8px;
    padding: 9px 20px; font-size: 1.3rem; font-weight: 700;
    cursor: pointer; white-space: nowrap; transition: opacity .15s;
}
.ec-compare-bar__open:disabled { opacity: .45; cursor: default; }
.ec-compare-bar__open:not(:disabled):hover { opacity: .85; }
.ec-compare-bar__clear {
    background: #f3f4f6; color: #666; border: none; border-radius: 8px;
    padding: 9px 14px; font-size: 1.2rem; cursor: pointer; transition: background .15s;
}
.ec-compare-bar__clear:hover { background: #e5e7eb; }

/* Comparison modal */
.ec-compare-modal {
    position: fixed; inset: 0; z-index: 2000;
    background: rgba(0,0,0,.55);
    display: none; align-items: flex-start; justify-content: center;
    padding: 20px;
    overflow-y: auto;
}
.ec-compare-modal--open { display: flex; }
.ec-compare-modal__inner {
    background: #fff;
    border-radius: 16px;
    width: 100%; max-width: 960px;
    margin: auto;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.2);
}
.ec-compare-modal__head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid #f0f0f0;
}
.ec-compare-modal__title { font-size: 1.7rem; font-weight: 800; margin: 0; color: #222; }
.ec-compare-modal__close {
    background: none; border: none; font-size: 2rem; color: #aaa; cursor: pointer; line-height: 1; padding: 0;
}
.ec-compare-modal__close:hover { color: #333; }
.ec-compare-modal__body { padding: 0; overflow-x: auto; }

/* Comparison table */
.ec-compare-table-wrap { overflow-x: auto; }
.ec-compare-table {
    width: 100%; border-collapse: collapse;
    font-size: 1.3rem;
}
.ec-compare-table th,
.ec-compare-table td {
    padding: 12px 16px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}
.ec-compare-table th {
    text-align: left; width: 140px; min-width: 120px;
    font-weight: 700; color: #555; background: #fafafa;
    white-space: nowrap;
}
.ec-compare-row--img td { padding: 16px; }
.ec-compare-row--img img { width: 100px; height: 100px; object-fit: contain; border-radius: 8px; }
.ec-compare-row--highlight { background: hsl(var(--primary-h),var(--primary-s),97%); }
.ec-compare-col--empty { background: #fafafa; }
.ec-compare-name { font-weight: 700; color: #222; text-decoration: none; display: block; line-height: 1.4; }
.ec-compare-name:hover { color: hsl(var(--primary-h),var(--primary-s),var(--primary-l)); text-decoration: underline; }
.ec-compare-price { font-weight: 800; font-size: 1.5rem; color: hsl(var(--primary-h),var(--primary-s),var(--primary-l)); }
.ec-compare-na { color: #ccc; }
.ec-compare-stock { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 1.15rem; font-weight: 600; }
.ec-compare-stock--in  { background: #dcfce7; color: #15803d; }
.ec-compare-stock--out { background: #fee2e2; color: #dc2626; }
.ec-compare-row--cta td { padding: 16px; }
.ec-compare-cta-btn {
    display: inline-block; background: hsl(var(--primary-h),var(--primary-s),var(--primary-l));
    color: #fff; border-radius: 8px; padding: 8px 16px;
    font-size: 1.25rem; font-weight: 700; text-decoration: none;
    transition: opacity .15s; margin-bottom: 6px;
}
.ec-compare-cta-btn:hover { opacity: .85; color: #fff; text-decoration: none; }
.ec-compare-remove-btn {
    display: block; width: 100%;
    background: none; border: 1px solid #e5e7eb;
    border-radius: 6px; padding: 5px 10px;
    font-size: 1.2rem; color: #999; cursor: pointer;
    transition: all .15s;
}
.ec-compare-remove-btn:hover { border-color: #dc2626; color: #dc2626; }

/* Toast */
.ec-compare-toast {
    position: fixed; bottom: 80px; left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #333; color: #fff; border-radius: 8px;
    padding: 10px 20px; font-size: 1.3rem;
    z-index: 3000; opacity: 0;
    transition: opacity .25s, transform .25s;
    pointer-events: none; white-space: nowrap;
}
.ec-compare-toast--in { opacity: 1; transform: translateX(-50%) translateY(0); }
.ec-compare-toast--warn { background: #b45309; }

/* ── CUPÓN DE DESCUENTO ──────────────────────────────── */
.ec-coupon-box {
    margin-bottom: 16px;
    padding: 12px;
    background: #f9fafb;
    border: 1px dashed #d1d5db;
    border-radius: 10px;
}
.ec-coupon-input-wrap {
    display: flex; gap: 0;
}
.ec-coupon-input {
    flex: 1;
    border: 1px solid #d1d5db;
    border-right: none;
    border-radius: 8px 0 0 8px;
    padding: 9px 12px;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    outline: none;
    transition: border-color .15s;
}
.ec-coupon-input:focus { border-color: hsl(var(--primary-h),var(--primary-s),var(--primary-l)); }
.ec-coupon-input:disabled { background: #f3f4f6; color: #888; }
.ec-coupon-btn {
    background: hsl(var(--primary-h),var(--primary-s),var(--primary-l));
    color: #fff; border: none; border-radius: 0 8px 8px 0;
    padding: 9px 18px; font-size: 1.3rem; font-weight: 700;
    cursor: pointer; white-space: nowrap; transition: opacity .15s;
}
.ec-coupon-btn:hover { opacity: .85; }
.ec-coupon-btn:disabled { opacity: .5; cursor: default; }
.ec-coupon-msg {
    margin: 7px 0 0; font-size: 1.2rem;
}
.ec-coupon-msg--ok { color: #16a34a; }
.ec-coupon-msg--err { color: #dc2626; }

/* Discount row in totals table */
.ec-coupon-discount-row td { color: #16a34a; font-weight: 700; }
.ec-coupon-tag {
    display: inline-flex; align-items: center; gap: 4px;
    background: #dcfce7; color: #15803d;
    border-radius: 12px; padding: 2px 8px;
    font-size: 1.15rem; font-weight: 700;
}


/* DARK MODE */
[data-theme='dark'] {
    --title-color: #e2e8f0; --subtitle-color: #94a3b8; --price-color: #e2e8f0;
    --dm-bg: #0f1117; --dm-surface: #1a1d2e; --dm-surface2: #242740;
    --dm-border: #2d3654; --dm-text: #e2e8f0; --dm-muted: #8896aa;
    --dm-input-bg: #1e2235; color-scheme: dark;
}
[data-theme='dark'] body { background: var(--dm-bg) !important; color: var(--dm-text) !important; }
[data-theme='dark'] h1,[data-theme='dark'] h2,[data-theme='dark'] h3,
[data-theme='dark'] h4,[data-theme='dark'] h5,[data-theme='dark'] h6 { color: var(--dm-text) !important; }
[data-theme='dark'] a { color: var(--dm-text); }
[data-theme='dark'] .header,
[data-theme='dark'] .header-middle { background: #0d0f1a !important; border-bottom: 1px solid var(--dm-border) !important; }
[data-theme='dark'] .header-bottom,
[data-theme='dark'] .sticky-header { background: #11131f !important; }
[data-theme='dark'] .header .dropdown-toggle { background-color: #1e2235 !important; }
[data-theme='dark'] .header-contact a,
[data-theme='dark'] .header-contact span { color: #94a3b8 !important; }
[data-theme='dark'] .search_input,
[data-theme='dark'] .search_input:focus { background-color: #1e2235 !important; color: var(--dm-text) !important; border-color: var(--dm-border) !important; }
[data-theme='dark'] .header-menu { background: #1a1d2e !important; border: 1px solid var(--dm-border) !important; }
[data-theme='dark'] .header-menu a { color: var(--dm-text) !important; }
[data-theme='dark'] .header-menu a:hover { background: var(--dm-surface2) !important; }
[data-theme='dark'] .ec-header-wishlist { color: #94a3b8; }
[data-theme='dark'] .ec-product-card { background: var(--dm-surface) !important; border-color: var(--dm-border) !important; }
[data-theme='dark'] .ec-product-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,.45) !important; }
[data-theme='dark'] .ec-product-card__title a,
[data-theme='dark'] .ec-product-card__title { color: var(--dm-text) !important; }
[data-theme='dark'] .ec-product-card__cat,
[data-theme='dark'] .ec-product-card__desc,
[data-theme='dark'] .ec-product-card__stock { color: var(--dm-muted) !important; }
[data-theme='dark'] .ec-btn-wishlist,
[data-theme='dark'] .ec-btn-compare { background: var(--dm-surface2) !important; border-color: var(--dm-border) !important; color: #94a3b8 !important; }
[data-theme='dark'] .sidebar-widget { background: var(--dm-surface) !important; border-color: var(--dm-border) !important; }
[data-theme='dark'] .widget-title { color: var(--dm-text) !important; }
[data-theme='dark'] .product-single-container,
[data-theme='dark'] .product-single-details,
[data-theme='dark'] .product-title { color: var(--dm-text) !important; }
[data-theme='dark'] .product-single-tabs .nav-tabs { border-color: var(--dm-border) !important; }
[data-theme='dark'] .nav-tabs .nav-link { color: var(--dm-muted) !important; }
[data-theme='dark'] .nav-tabs .nav-link.active { background: var(--dm-surface2) !important; color: var(--dm-text) !important; border-color: var(--dm-border) !important; }
[data-theme='dark'] .tab-content { background: transparent !important; color: var(--dm-text) !important; }
[data-theme='dark'] .cart-summary,
[data-theme='dark'] .table { color: var(--dm-text) !important; }
[data-theme='dark'] .table td,
[data-theme='dark'] .table th { border-color: var(--dm-border) !important; }
[data-theme='dark'] .ec-coupon-box { background: var(--dm-surface) !important; border-color: var(--dm-border) !important; }
[data-theme='dark'] .ec-coupon-input { background: var(--dm-input-bg) !important; color: var(--dm-text) !important; border-color: var(--dm-border) !important; }
[data-theme='dark'] input,
[data-theme='dark'] select,
[data-theme='dark'] textarea,
[data-theme='dark'] .form-control { background: var(--dm-input-bg) !important; color: var(--dm-text) !important; border-color: var(--dm-border) !important; }
[data-theme='dark'] .ec-reviews-summary { background: var(--dm-surface) !important; }
[data-theme='dark'] .ec-review-card { border-color: var(--dm-border) !important; }
[data-theme='dark'] .ec-review-form-wrap { border-color: var(--dm-border) !important; }
[data-theme='dark'] .ec-review-input,
[data-theme='dark'] .ec-review-textarea { background: var(--dm-input-bg) !important; color: var(--dm-text) !important; }
[data-theme='dark'] .ec-footer,
[data-theme='dark'] footer { background: #0a0c14 !important; border-color: var(--dm-border) !important; }
[data-theme='dark'] .ec-footer-title { color: var(--dm-text) !important; }
[data-theme='dark'] .ec-footer-links a,
[data-theme='dark'] .ec-footer-text { color: var(--dm-muted) !important; }
[data-theme='dark'] .ec-compare-modal__inner,
[data-theme='dark'] .ec-compare-bar { background: #1a1d2e !important; }
[data-theme='dark'] .ec-compare-table th { background: var(--dm-surface2) !important; color: var(--dm-text) !important; }
[data-theme='dark'] .ec-compare-table td,
[data-theme='dark'] .ec-compare-table th { border-color: var(--dm-border) !important; color: var(--dm-text) !important; }
[data-theme='dark'] .ec-tracking-wrap,
[data-theme='dark'] .ec-tracking-card { background: var(--dm-surface) !important; border-color: var(--dm-border) !important; }
[data-theme='dark'] .ec-section-title { color: var(--dm-text) !important; }
[data-theme='dark'] .ec-reviews-avg__total,
[data-theme='dark'] .ec-dist-label,
[data-theme='dark'] .ec-dist-count,
[data-theme='dark'] .ec-breadcrumb,
[data-theme='dark'] .breadcrumb-item a { color: var(--dm-muted) !important; }
[data-theme='dark'] .pagination .page-link { background: var(--dm-surface) !important; border-color: var(--dm-border) !important; color: var(--dm-text) !important; }
body,.header,.header-middle,.header-bottom,
.ec-product-card,.sidebar-widget,.tab-content,
.cart-summary,.ec-footer,footer,
input,select,textarea,.form-control {
    transition: background-color .25s ease, color .18s ease, border-color .2s ease;
}
.ec-theme-toggle {
    background: none; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 50%;
    color: #94a3b8; transition: background .15s, color .15s;
    padding: 0; flex-shrink: 0;
}
.ec-theme-toggle:hover { background: rgba(148,163,184,.15); color: #fff; }
.ec-theme-icon--sun  { display: none; }
.ec-theme-icon--moon { display: block; }
[data-theme='dark'] .ec-theme-icon--sun  { display: block; }
[data-theme='dark'] .ec-theme-icon--moon { display: none; }
[data-theme='dark'] .ec-theme-toggle { color: #f59e0b; }


/* VOICE SEARCH */
.ec-voice-btn {
    position: absolute;
    right: 36px; top: 50%;
    transform: translateY(-50%);
    width: 28px; height: 28px;
    background: none; border: none;
    cursor: pointer; padding: 0;
    display: flex; align-items: center; justify-content: center;
    color: #94a3b8; border-radius: 50%;
    transition: color .15s, background .15s;
    z-index: 2;
}
.ec-voice-btn:hover { color: hsl(var(--primary-h),var(--primary-s),var(--primary-l)); background: rgba(0,0,0,.05); }

/* Listening pulse */
.ec-voice-btn--listening { color: #ef4444 !important; }
.ec-voice-btn--listening .ec-voice-icon {
    animation: ec-voice-pulse 1s ease-in-out infinite;
}
@keyframes ec-voice-pulse {
    0%,100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.3); opacity: .7; }
}

/* Push clear icon further left when mic is visible */
.header-dropdown-inside .clear-icon { right: 40px; }
[data-theme='dark'] .ec-voice-btn { color: #64748b; }
[data-theme='dark'] .ec-voice-btn:hover { color: hsl(var(--primary-h),var(--primary-s),var(--primary-l)); }


/* PWA update toast */
.ec-pwa-update-toast {
    position: fixed; bottom: 80px; left: 50%;
    transform: translateX(-50%) translateY(30px);
    background: #1e2235; color: #e2e8f0;
    border-radius: 12px; padding: 12px 20px;
    display: flex; align-items: center; gap: 14px;
    font-size: 1.3rem; z-index: 4000;
    box-shadow: 0 8px 30px rgba(0,0,0,.25);
    opacity: 0; transition: opacity .3s, transform .3s;
    white-space: nowrap;
}
.ec-pwa-update-toast--in { opacity: 1; transform: translateX(-50%) translateY(0); }
.ec-pwa-update-toast button {
    background: hsl(var(--primary-h),var(--primary-s),var(--primary-l));
    color: #fff; border: none; border-radius: 7px;
    padding: 5px 14px; font-size: 1.2rem; font-weight: 700;
    cursor: pointer;
}
.ec-pwa-update-toast button:hover { opacity: .85; }


/* AJAX FILTERS */

/* Category pills */
.ec-category-pills {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin-bottom: 16px;
}
.ec-cat-pill {
    border: 1.5px solid #e5e7eb;
    background: #fff; border-radius: 20px;
    padding: 5px 14px; font-size: 1.25rem; font-weight: 600;
    cursor: pointer; color: #555;
    transition: all .15s; white-space: nowrap;
}
.ec-cat-pill:hover { border-color: hsl(var(--primary-h),var(--primary-s),var(--primary-l)); color: hsl(var(--primary-h),var(--primary-s),var(--primary-l)); }
.ec-cat-pill--active {
    background: hsl(var(--primary-h),var(--primary-s),var(--primary-l));
    border-color: hsl(var(--primary-h),var(--primary-s),var(--primary-l));
    color: #fff !important;
}
[data-theme='dark'] .ec-cat-pill { background: var(--dm-surface); border-color: var(--dm-border); color: var(--dm-muted); }

/* Price range slider */
.ec-range-slider {
    position: relative; height: 36px;
    display: flex; align-items: center;
    width: 200px; max-width: 100%;
    padding: 0 8px;
    user-select: none;
}
.ec-range-track {
    position: absolute; left: 8px; right: 8px;
    height: 4px; background: #e5e7eb; border-radius: 2px;
}
.ec-range-fill {
    position: absolute; height: 100%;
    background: hsl(var(--primary-h),var(--primary-s),var(--primary-l));
    border-radius: 2px;
    transition: left .05s, width .05s;
}
.ec-range-input {
    position: absolute; width: 100%;
    height: 4px; background: transparent;
    -webkit-appearance: none; appearance: none;
    pointer-events: none; outline: none; border: none;
    padding: 0; margin: 0;
}
.ec-range-input::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 18px; height: 18px; border-radius: 50%;
    background: #fff;
    border: 2.5px solid hsl(var(--primary-h),var(--primary-s),var(--primary-l));
    cursor: pointer; pointer-events: all;
    box-shadow: 0 1px 4px rgba(0,0,0,.15);
    transition: transform .1s;
}
.ec-range-input::-webkit-slider-thumb:hover { transform: scale(1.2); }
.ec-range-input::-moz-range-thumb {
    width: 18px; height: 18px; border-radius: 50%;
    background: #fff;
    border: 2.5px solid hsl(var(--primary-h),var(--primary-s),var(--primary-l));
    cursor: pointer; pointer-events: all;
    box-shadow: 0 1px 4px rgba(0,0,0,.15);
}
.ec-range-input--min { z-index: 3; }
.ec-range-input--max { z-index: 4; }

/* Filter results wrapper + loading */
.ec-filter-results { position: relative; min-height: 200px; }
.ec-filter-loading::after {
    content: '';
    position: absolute; inset: 0;
    background: rgba(255,255,255,.6);
    border-radius: 8px;
    z-index: 10;
    animation: ec-spin-bg 1.2s ease-in-out infinite;
}
[data-theme='dark'] .ec-filter-loading::after { background: rgba(15,17,23,.6); }
@keyframes ec-spin-bg {
    0%,100% { opacity: .6; } 50% { opacity: 1; }
}

/* No results */
.ec-no-results {
    text-align: center; padding: 48px 20px;
    display: flex; flex-direction: column;
    align-items: center; gap: 12px;
    color: #aaa;
}
.ec-no-results p { font-size: 1.4rem; margin: 0; }
.ec-no-results__clear {
    color: hsl(var(--primary-h),var(--primary-s),var(--primary-l));
    font-size: 1.3rem; text-decoration: underline; cursor: pointer;
}

/* Responsive */
@media (max-width: 576px) {
    .ec-range-slider { width: 150px; }
    .ec-category-pills { gap: 6px; }
    .ec-cat-pill { font-size: 1.15rem; padding: 4px 10px; }
}

/* ══════════════════════════════════════════════════════════
   #18 VARIANTES DE PRODUCTO
   ══════════════════════════════════════════════════════════ */
.ec-variant-selectors { margin: 1rem 0; }

.ec-variant-group { margin-bottom: 1rem; }

.ec-variant-group--info { margin-bottom: .5rem; }

.ec-variant-label {
    font-size: .78rem;
    font-weight: 600;
    color: var(--ec-text-muted, #6b7280);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: .4rem;
    display: flex;
    align-items: center;
    gap: .35rem;
}

.ec-variant-label span {
    font-weight: 700;
    color: var(--ec-text, #111827);
    text-transform: none;
    letter-spacing: 0;
}

.ec-variant-options {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

/* ── Chip buttons (Talla, Presentación, etc.) ── */
.ec-variant-opt--chip {
    padding: .3rem .75rem;
    border: 1.5px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    color: #374151;
    font-size: .82rem;
    cursor: pointer;
    transition: border-color .18s, background .18s, color .18s, box-shadow .18s;
    line-height: 1.4;
}

.ec-variant-opt--chip:hover {
    border-color: var(--ec-primary, #ff8000);
    color: var(--ec-primary, #ff8000);
}

.ec-variant-opt--chip.ec-variant-opt--selected {
    border-color: var(--ec-primary, #ff8000);
    background: var(--ec-primary, #ff8000);
    color: #fff;
    box-shadow: 0 2px 8px rgba(255,128,0,.3);
}

/* ── Color swatches ── */
.ec-variant-options--colors { gap: .5rem; }

.ec-variant-opt--color {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2.5px solid transparent;
    padding: 0;
    cursor: pointer;
    position: relative;
    transition: transform .18s, box-shadow .18s, border-color .18s;
    outline: none;
}

.ec-variant-opt--color:hover {
    transform: scale(1.15);
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
}

.ec-variant-opt--color.ec-variant-opt--selected {
    border-color: var(--ec-primary, #ff8000);
    box-shadow: 0 0 0 3px rgba(255,128,0,.25);
    transform: scale(1.1);
}

.ec-variant-opt--color.ec-variant-opt--selected::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.7);
}

.ec-swatch {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

/* ── Required notice ── */
.ec-variant-required {
    font-size: .75rem;
    color: #dc2626;
    margin-top: .25rem;
    display: none;
}

.ec-variant-group.ec-variant-group--error .ec-variant-required {
    display: block;
}

.ec-variant-group.ec-variant-group--error .ec-variant-opt--chip:not(.ec-variant-opt--selected) {
    border-color: #fca5a5;
}

.ec-variant-group.ec-variant-group--error .ec-variant-opt--color:not(.ec-variant-opt--selected) {
    border-color: #fca5a5;
}

/* ── Shake animation ── */
@keyframes ec-shake {
    0%, 100% { transform: translateX(0); }
    20%       { transform: translateX(-5px); }
    40%       { transform: translateX(5px); }
    60%       { transform: translateX(-4px); }
    80%       { transform: translateX(4px); }
}

.ec-variant-group--shake { animation: ec-shake .4s ease; }

/* ── Out-of-stock option ── */
.ec-variant-opt--oos {
    opacity: .35;
    cursor: not-allowed;
    pointer-events: none;
    position: relative;
}
.ec-variant-opt--chip.ec-variant-opt--oos {
    text-decoration: line-through;
    color: #9ca3af;
    border-color: #e5e7eb;
    background: #f9fafb;
}
.ec-variant-opt--color.ec-variant-opt--oos {
    filter: grayscale(1);
}
.ec-variant-opt--color.ec-variant-opt--oos::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    width: 80%;
    height: 2px;
    background: #ef4444;
    transform: rotate(-45deg);
    border-radius: 1px;
}

/* ── Price flash animation ── */
@keyframes ec-price-flash {
    0%   { opacity: 1; transform: scale(1); }
    30%  { opacity: 0; transform: scale(.92); }
    60%  { opacity: 0; transform: scale(1.06); }
    100% { opacity: 1; transform: scale(1); }
}
.ec-price-flash {
    animation: ec-price-flash .35s ease;
}

/* ── Low-stock urgency indicator ── */
#ec-low-stock {
    display: flex;
    align-items: center;
    gap: .4rem;
    margin-top: .5rem;
    padding: .35rem .65rem;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 6px;
    font-size: .8rem;
    font-weight: 600;
    color: #c2410c;
    width: fit-content;
}
#ec-low-stock svg {
    flex-shrink: 0;
    color: #f97316;
}

/* ── Dark mode overrides ── */
[data-theme='dark'] .ec-variant-opt--chip {
    background: #1e293b;
    border-color: #334155;
    color: #cbd5e1;
}

[data-theme='dark'] .ec-variant-opt--chip:hover {
    border-color: var(--ec-primary, #ff8000);
    color: var(--ec-primary, #ff8000);
}

[data-theme='dark'] .ec-variant-opt--chip.ec-variant-opt--selected {
    background: var(--ec-primary, #ff8000);
    border-color: var(--ec-primary, #ff8000);
    color: #fff;
}

[data-theme='dark'] .ec-variant-label {
    color: #94a3b8;
}

[data-theme='dark'] .ec-variant-label span {
    color: #f1f5f9;
}

/* ══════════════════════════════════════════════════════════
   #18b VARIANTES ESTILO FALABELLA
   ══════════════════════════════════════════════════════════ */

/* ── Thumbnails de imagen para colores ── */
.ec-variant-options--thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.ec-variant-opt--thumb {
    width: 56px;
    height: 56px;
    border-radius: 6px;
    border: 2px solid #e5e7eb;
    padding: 2px;
    cursor: pointer;
    background: #fff;
    transition: border-color .18s, box-shadow .18s;
    overflow: hidden;
}

.ec-variant-opt--thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.ec-variant-opt--thumb:hover {
    border-color: #9ca3af;
}

.ec-variant-opt--thumb[aria-pressed="true"] {
    border-color: #111827;
    box-shadow: 0 0 0 1px #111827;
}

.ec-variant-opt--thumb.ec-variant-opt--oos {
    opacity: .35;
    cursor: not-allowed;
    pointer-events: none;
}

/* ── Botones de talla estilo Falabella ── */
.ec-variant-options--sizes {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.ec-variant-opt--size {
    min-width: 44px;
    height: 40px;
    padding: 0 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 20px;
    background: #fff;
    color: #374151;
    font-size: .85rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color .18s, background .18s, color .18s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.ec-variant-opt--size:hover {
    border-color: #111827;
    color: #111827;
}

.ec-variant-opt--size[aria-pressed="true"] {
    border-color: #111827;
    background: #111827;
    color: #fff;
}

.ec-variant-opt--size.ec-variant-opt--oos {
    opacity: .35;
    cursor: not-allowed;
    pointer-events: none;
    text-decoration: line-through;
    color: #9ca3af;
    border-color: #e5e7eb;
    background: #f9fafb;
}

/* ── aria-pressed en chips y colors existentes ── */
.ec-variant-opt--chip[aria-pressed="true"] {
    border-color: var(--ec-primary, #ff8000);
    background: var(--ec-primary, #ff8000);
    color: #fff;
    box-shadow: 0 2px 8px rgba(255,128,0,.3);
}

.ec-variant-opt--color[aria-pressed="true"] {
    border-color: var(--ec-primary, #ff8000);
    box-shadow: 0 0 0 3px rgba(255,128,0,.25);
    transform: scale(1.1);
}

.ec-variant-opt--color[aria-pressed="true"]::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.7);
}

/* ── Rating inline (estilo Falabella) ── */
.ec-product-rating {
    display: none;
    align-items: center;
    gap: .5rem;
    margin: .35rem 0 .75rem;
}

.ec-product-rating__stars {
    display: flex;
    gap: 1px;
}

.ec-star {
    font-size: 16px;
    line-height: 1;
}

.ec-star--full {
    color: #f59e0b;
}

.ec-star--half {
    color: #f59e0b;
    opacity: .6;
}

.ec-star--empty {
    color: #d1d5db;
}

.ec-product-rating__count {
    font-size: .82rem;
    color: #6b7280;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color .18s;
}

.ec-product-rating__count:hover {
    color: var(--ec-primary, #ff8000);
    border-bottom-color: var(--ec-primary, #ff8000);
}

/* ── Código de producto (estilo Falabella) ── */
.ec-product-codes {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: .75rem 0;
    padding-top: .75rem;
    border-top: 1px solid #f3f4f6;
}

.ec-product-code {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .78rem;
    color: #6b7280;
}

.ec-product-code svg {
    color: #9ca3af;
}

/* ── Info de entrega (estilo Falabella) ── */
.ec-delivery-info {
    margin: .75rem 0;
    padding: .75rem 0;
    border-top: 1px solid #f3f4f6;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.ec-delivery-row {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .82rem;
    color: #374151;
}

.ec-delivery-row svg {
    flex-shrink: 0;
    color: #16a34a;
}

/* ── Dark mode para nuevos elementos ── */
[data-theme='dark'] .ec-variant-opt--thumb {
    border-color: #334155;
    background: #1e293b;
}

[data-theme='dark'] .ec-variant-opt--thumb[aria-pressed="true"] {
    border-color: #e2e8f0;
    box-shadow: 0 0 0 1px #e2e8f0;
}

[data-theme='dark'] .ec-variant-opt--size {
    background: #1e293b;
    border-color: #334155;
    color: #cbd5e1;
}

[data-theme='dark'] .ec-variant-opt--size[aria-pressed="true"] {
    background: #f1f5f9;
    border-color: #f1f5f9;
    color: #0f172a;
}

[data-theme='dark'] .ec-product-codes {
    border-top-color: #1e293b;
}

[data-theme='dark'] .ec-delivery-info {
    border-top-color: #1e293b;
}

[data-theme='dark'] .ec-delivery-row {
    color: #cbd5e1;
}

/* ══════════════════════════════════════════════════════════
   #19 PANEL DE USUARIO (PROFILE)
   ══════════════════════════════════════════════════════════ */
.ec-profile-page {
    padding-top: 8rem;
    padding-bottom: 4rem;
    max-width: 860px;
}

/* ── Header ── */
.ec-profile-header {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.ec-profile-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--ec-primary, #ff8000);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ec-profile-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    color: var(--ec-text, #111827);
}

.ec-profile-email {
    font-size: .85rem;
    color: var(--ec-text-muted, #6b7280);
    margin: .1rem 0 0;
}

.ec-profile-info { flex: 1; }

.ec-profile-logout-form { margin-left: auto; }

.ec-profile-logout-btn {
    display: flex;
    align-items: center;
    gap: .4rem;
    padding: .45rem 1rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    background: transparent;
    color: var(--ec-text-muted, #6b7280);
    font-size: .82rem;
    cursor: pointer;
    transition: border-color .18s, color .18s;
}

.ec-profile-logout-btn:hover {
    border-color: #dc2626;
    color: #dc2626;
}

/* ── Tabs ── */
.ec-profile-tabs {
    display: flex;
    gap: .25rem;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 2rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.ec-profile-tabs::-webkit-scrollbar { display: none; }

.ec-profile-tab {
    display: flex;
    align-items: center;
    gap: .4rem;
    padding: .65rem 1.2rem;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    background: transparent;
    color: var(--ec-text-muted, #6b7280);
    font-size: .88rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: color .18s, border-color .18s;
}

.ec-profile-tab:hover { color: var(--ec-primary, #ff8000); }

.ec-profile-tab--active {
    color: var(--ec-primary, #ff8000);
    border-bottom-color: var(--ec-primary, #ff8000);
    font-weight: 600;
}

/* ── Panels ── */
.ec-profile-panel { display: none; }
.ec-profile-panel--active { display: block; }

/* ── Orders tab ── */
.ec-profile-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.ec-profile-select {
    padding: .4rem .75rem;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    font-size: .85rem;
    color: #374151;
    cursor: pointer;
}

.ec-orders-list { display: flex; flex-direction: column; gap: .75rem; }

.ec-order-card {
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow .18s;
}

.ec-order-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }

.ec-order-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .75rem 1rem;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.ec-order-card__id {
    font-size: .82rem;
    font-weight: 600;
    color: var(--ec-text-muted, #6b7280);
}

.ec-order-card__body {
    display: flex;
    gap: 2rem;
    padding: .75rem 1rem;
    flex-wrap: wrap;
}

.ec-order-card__meta {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    font-size: .85rem;
}

.ec-order-card__label {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--ec-text-muted, #6b7280);
}

.ec-order-card__total {
    font-weight: 700;
    color: var(--ec-primary, #ff8000);
}

/* Order badges */
.ec-order-badge {
    padding: .2rem .65rem;
    border-radius: 99px;
    font-size: .72rem;
    font-weight: 600;
}

.ec-order-badge--1 { background: #fef9c3; color: #92400e; }
.ec-order-badge--2 { background: #dcfce7; color: #166534; }
.ec-order-badge--3 { background: #dbeafe; color: #1e40af; }
.ec-order-badge--4 { background: #f0fdf4; color: #15803d; }

/* Empty + loading */
.ec-orders-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--ec-text-muted, #6b7280);
}

.ec-orders-empty svg { margin-bottom: 1rem; opacity: .35; }
.ec-orders-empty p { margin-bottom: 1rem; }
.ec-orders-loading { text-align: center; padding: 2rem; }

/* ── Profile forms ── */
.ec-profile-form { max-width: 480px; }

.ec-form-group { margin-bottom: 1.25rem; }

.ec-form-label {
    display: block;
    font-size: .82rem;
    font-weight: 600;
    color: var(--ec-text, #111827);
    margin-bottom: .35rem;
}

.ec-form-input {
    width: 100%;
    padding: .55rem .85rem;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: .9rem;
    color: #374151;
    background: #fff;
    transition: border-color .18s, box-shadow .18s;
    outline: none;
}

.ec-form-input:focus {
    border-color: var(--ec-primary, #ff8000);
    box-shadow: 0 0 0 3px rgba(255,128,0,.12);
}

.ec-form-input--disabled {
    background: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
}

.ec-form-hint {
    display: block;
    font-size: .72rem;
    color: var(--ec-text-muted, #9ca3af);
    margin-top: .25rem;
}

.ec-input-pwd-wrap { position: relative; }

.ec-input-pwd-wrap .ec-form-input { padding-right: 2.5rem; }

.ec-pwd-toggle {
    position: absolute;
    right: .65rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--ec-text-muted, #9ca3af);
    padding: 0;
    line-height: 1;
}

.ec-pwd-toggle:hover { color: var(--ec-primary, #ff8000); }

.ec-form-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.ec-form-msg {
    font-size: .82rem;
    transition: opacity .2s;
}

.ec-form-msg--success { color: #16a34a; }
.ec-form-msg--error   { color: #dc2626; }

/* Pagination */
.ec-profile-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    font-size: .85rem;
    color: var(--ec-text-muted, #6b7280);
}

.ec-page-btn {
    width: 32px;
    height: 32px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color .18s, color .18s;
}

.ec-page-btn:hover:not(:disabled) { border-color: var(--ec-primary, #ff8000); color: var(--ec-primary, #ff8000); }
.ec-page-btn:disabled { opacity: .4; cursor: not-allowed; }

/* ── Dark mode ── */
[data-theme='dark'] .ec-profile-tab { color: #94a3b8; }
[data-theme='dark'] .ec-profile-tab--active { color: var(--ec-primary, #ff8000); }
[data-theme='dark'] .ec-profile-tabs { border-bottom-color: #334155; }

[data-theme='dark'] .ec-order-card { border-color: #334155; }
[data-theme='dark'] .ec-order-card__head { background: #1e293b; border-bottom-color: #334155; }

[data-theme='dark'] .ec-form-input {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}
[data-theme='dark'] .ec-form-input--disabled { background: #0f172a; color: #475569; }
[data-theme='dark'] .ec-form-label { color: #e2e8f0; }
[data-theme='dark'] .ec-profile-select { background: #1e293b; border-color: #334155; color: #e2e8f0; }
[data-theme='dark'] .ec-page-btn { background: #1e293b; border-color: #334155; color: #94a3b8; }
[data-theme='dark'] .ec-profile-logout-btn { border-color: #334155; color: #94a3b8; }
[data-theme='dark'] .ec-profile-name { color: #f1f5f9; }

/* ══════════════════════════════════════════════════════════
   GOOGLE OAUTH BUTTON
   ══════════════════════════════════════════════════════════ */
.ec-btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    width: 100%;
    padding: .6rem 1rem;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    color: #374151;
    font-size: .88rem;
    font-weight: 500;
    text-decoration: none;
    transition: box-shadow .18s, border-color .18s;
    margin-top: .25rem;
}

.ec-btn-google:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
    border-color: #9ca3af;
    color: #111827;
    text-decoration: none;
}

.ec-social-divider {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: 1rem 0 .75rem;
    color: #9ca3af;
    font-size: .78rem;
}

.ec-social-divider::before,
.ec-social-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

[data-theme='dark'] .ec-btn-google {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}

[data-theme='dark'] .ec-social-divider { color: #475569; }
[data-theme='dark'] .ec-social-divider::before,
[data-theme='dark'] .ec-social-divider::after { background: #334155; }

/* ── Registro rápido ── */
.ec-register-subtitle {
    font-size: .82rem;
    color: #6b7280;
    margin: -.25rem 0 1rem;
}
.ec-optional-label {
    font-size: .72rem;
    color: #9ca3af;
    font-weight: 400;
}

/* ══════════════════════════════════════════════════════════
   #20 FLASH SALE / COUNTDOWN
   ══════════════════════════════════════════════════════════ */
.ec-flash-sale {
    background: linear-gradient(135deg, #ff4500 0%, #ff8000 100%);
    border-radius: 16px;
    padding: 1.5rem;
    margin: 2rem 0;
    color: #fff;
    overflow: hidden;
    position: relative;
}

.ec-flash-sale::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 180px; height: 180px;
    border-radius: 50%;
    background: rgba(255,255,255,.07);
    pointer-events: none;
}

/* Head */
.ec-flash-sale__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.ec-flash-sale__title-wrap {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.ec-flash-sale__title-wrap svg { flex-shrink: 0; }

.ec-flash-sale__title {
    font-size: 1.3rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: -.02em;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,.2);
}

.ec-flash-sale__subtitle {
    font-size: .82rem;
    margin: .15rem 0 0;
    opacity: .85;
}

/* Countdown */
.ec-countdown {
    display: flex;
    align-items: center;
    gap: .4rem;
    background: rgba(0,0,0,.18);
    border-radius: 12px;
    padding: .6rem 1rem;
}

.ec-countdown__block {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 40px;
}

.ec-countdown__num {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.ec-countdown__label {
    font-size: .6rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    opacity: .8;
    margin-top: .1rem;
}

.ec-countdown__sep {
    font-size: 1.4rem;
    font-weight: 700;
    opacity: .6;
    align-self: flex-start;
    padding-top: .1rem;
}

.ec-countdown__ended {
    font-size: .9rem;
    font-weight: 600;
    opacity: .8;
}

/* Products horizontal scroll */
.ec-flash-sale__products {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: .5rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.3) transparent;
    scroll-snap-type: x mandatory;
}
/* Pocos items: llenar todo el espacio */
.ec-flash-sale__products.ec-flash--few .ec-flash-card,
.ec-flash-sale__products[class*="ec-flash--count-"] .ec-flash-card {
    /* default: será overrideado por media queries */
}

.ec-flash-sale__products::-webkit-scrollbar { height: 4px; }
.ec-flash-sale__products::-webkit-scrollbar-track { background: transparent; }
.ec-flash-sale__products::-webkit-scrollbar-thumb { background: rgba(255,255,255,.3); border-radius: 2px; }

/* Flash card */
.ec-flash-card {
    flex: 0 0 200px;
    scroll-snap-align: start;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: #111827;
    position: relative;
    transition: transform .18s, box-shadow .18s;
    display: block;
}

.ec-flash-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,.2);
    text-decoration: none;
    color: #111827;
}

.ec-flash-card__badge {
    position: absolute;
    top: 8px; left: 8px;
    background: #ff4500;
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    padding: .15rem .45rem;
    border-radius: 6px;
    z-index: 1;
}

.ec-flash-card__img-wrap {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f3f4f6;
}

.ec-flash-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}

.ec-flash-card:hover .ec-flash-card__img { transform: scale(1.05); }

.ec-flash-card__body {
    padding: .6rem .7rem .7rem;
}

.ec-flash-card__name {
    font-size: .75rem;
    color: #374151;
    margin: 0 0 .35rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ec-flash-card__prices {
    display: flex;
    flex-direction: column;
    gap: .05rem;
}

.ec-flash-card__price-new {
    font-size: .95rem;
    font-weight: 800;
    color: #ff4500;
}

.ec-flash-card__price-old {
    font-size: .72rem;
    color: #9ca3af;
    text-decoration: line-through;
}

/* Flash responsive: web ≤4 llenan, >4 scroll; móvil ≤2 llenan, >2 scroll */
@media (min-width: 768px) {
    .ec-flash-card { flex: 0 0 calc(25% - .75rem); }
    .ec-flash--count-1 .ec-flash-card,
    .ec-flash--count-2 .ec-flash-card,
    .ec-flash--count-3 .ec-flash-card,
    .ec-flash--count-4 .ec-flash-card { flex: 1 1 0; min-width: 0; }
    .ec-flash--count-1,
    .ec-flash--count-2,
    .ec-flash--count-3,
    .ec-flash--count-4 { overflow-x: visible; }
}
@media (max-width: 767px) {
    .ec-flash-card { flex: 0 0 calc(50% - .5rem); }
    .ec-flash--count-1 .ec-flash-card,
    .ec-flash--count-2 .ec-flash-card { flex: 1 1 0; min-width: 0; }
    .ec-flash--count-1,
    .ec-flash--count-2 { overflow-x: visible; }
}

/* Dark mode */
[data-theme='dark'] .ec-flash-card {
    background: #1e293b;
    color: #f1f5f9;
}

[data-theme='dark'] .ec-flash-card:hover { color: #f1f5f9; }
[data-theme='dark'] .ec-flash-card__name { color: #cbd5e1; }
[data-theme='dark'] .ec-flash-card__img-wrap { background: #0f172a; }

/* ── Wishlist mejorada ──────────────────────────────────────────────────── */
.ec-wishlist-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}
.ec-wishlist-subtitle {
    color: #888;
    font-size: .9rem;
    margin: .25rem 0 0;
}
.ec-wishlist-actions {
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
}
.ec-wl-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .5rem 1rem;
    border-radius: 8px;
    font-size: .85rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: background .2s, transform .1s;
}
.ec-wl-btn:active { transform: scale(.97); }
.ec-wl-btn--share {
    background: #f3f4f6;
    color: #374151;
}
.ec-wl-btn--share:hover { background: #e5e7eb; }
.ec-wl-btn--cart {
    background: var(--ec-primary, #2d6a4f);
    color: #fff;
}
.ec-wl-btn--cart:hover { filter: brightness(1.1); }

/* Share menu flotante */
.ec-share-menu {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    padding: .4rem;
    min-width: 220px;
}
.ec-share-option {
    display: flex;
    align-items: center;
    gap: .6rem;
    width: 100%;
    padding: .6rem .9rem;
    border: none;
    background: none;
    border-radius: 7px;
    font-size: .875rem;
    color: #374151;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s;
}
.ec-share-option:hover { background: #f3f4f6; color: #111; }

/* Toast de confirmación */
.ec-share-toast {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: #111;
    color: #fff;
    padding: .6rem 1.2rem;
    border-radius: 99px;
    font-size: .875rem;
    display: flex;
    align-items: center;
    gap: .5rem;
    z-index: 9999;
    box-shadow: 0 4px 16px rgba(0,0,0,.2);
    white-space: nowrap;
}

/* ── Quick View Modal ────────────────────────────────────────────────────── */
.ec-qv-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: ec-qv-fade-in .2s ease;
}
@keyframes ec-qv-fade-in { from { opacity:0 } to { opacity:1 } }

.ec-qv-modal {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 860px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 24px 64px rgba(0,0,0,.2);
    animation: ec-qv-slide-in .25s ease;
}
@keyframes ec-qv-slide-in { from { transform:translateY(20px);opacity:0 } to { transform:translateY(0);opacity:1 } }

.ec-qv-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #f3f4f6;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
}
.ec-qv-close:hover { background: #e5e7eb; }

.ec-qv-loading {
    height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ec-qv-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #e5e7eb;
    border-top-color: var(--ec-primary, #2d6a4f);
    border-radius: 50%;
    animation: ec-spin .7s linear infinite;
}
@keyframes ec-spin { to { transform: rotate(360deg) } }

.ec-qv-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
}
@media (max-width: 640px) {
    .ec-qv-content { grid-template-columns: 1fr; gap: 1rem; padding: 1.2rem; }
}

/* Gallery */
.ec-qv-main-wrap {
    border-radius: 12px;
    overflow: hidden;
    background: #f9fafb;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ec-qv-main-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity .2s;
}
.ec-qv-thumbs {
    display: flex;
    gap: .5rem;
    margin-top: .75rem;
    flex-wrap: wrap;
}
.ec-qv-thumb {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    border: 2px solid #e5e7eb;
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    background: #f9fafb;
    transition: border-color .15s;
    flex-shrink: 0;
}
.ec-qv-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ec-qv-thumb--active,
.ec-qv-thumb:hover { border-color: var(--ec-primary, #2d6a4f); }

/* Info panel */
.ec-qv-info {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    padding-top: .25rem;
}
.ec-qv-category {
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ec-primary, #2d6a4f);
    margin: 0;
}
.ec-qv-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111;
    margin: 0;
    line-height: 1.3;
}
.ec-qv-price {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--ec-primary, #2d6a4f);
}
.ec-qv-stock {
    font-size: .85rem;
    font-weight: 500;
    margin: 0;
}
.ec-qv-stock--in { color: #16a34a; }
.ec-qv-stock--out { color: #dc2626; }
.ec-qv-desc {
    font-size: .875rem;
    color: #555;
    margin: 0;
    line-height: 1.5;
}

/* Qty + cart row */
.ec-qv-qty-row {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
    margin-top: .5rem;
}
.ec-qv-qty {
    display: flex;
    align-items: center;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    height: 42px;
}
.ec-qv-qty-btn {
    width: 36px;
    height: 100%;
    border: none;
    background: #f9fafb;
    font-size: 1.1rem;
    cursor: pointer;
    color: #374151;
    transition: background .15s;
}
.ec-qv-qty-btn:hover { background: #f3f4f6; }
.ec-qv-qty-input {
    width: 44px;
    height: 100%;
    border: none;
    border-left: 1.5px solid #e5e7eb;
    border-right: 1.5px solid #e5e7eb;
    text-align: center;
    font-size: .95rem;
    font-weight: 600;
    outline: none;
}
.ec-qv-btn-cart {
    flex: 1;
    min-width: 160px;
    height: 42px;
    background: var(--ec-primary, #2d6a4f);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    transition: filter .15s, background .2s;
}
.ec-qv-btn-cart:hover:not(:disabled) { filter: brightness(1.1); }
.ec-qv-btn-cart:disabled { cursor: not-allowed; }

.ec-qv-btn-wish {
    width: 42px;
    height: 42px;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color .15s, background .15s;
    flex-shrink: 0;
}
.ec-qv-btn-wish:hover { border-color: #e53e3e; background: #fff5f5; }

.ec-qv-full-link {
    display: inline-block;
    font-size: .85rem;
    color: #6b7280;
    text-decoration: none;
    margin-top: .25rem;
    transition: color .15s;
}
.ec-qv-full-link:hover { color: var(--ec-primary, #2d6a4f); }

/* ── Búsqueda inteligente — mejoras ────────────────────────────────────── */

/* Resaltado del término buscado */
.ec-search-hl {
    background: transparent;
    color: var(--ec-primary, #2d6a4f);
    font-weight: 700;
    padding: 0;
}

/* Item activo con teclado / hover */
.ec-search-item--active > .ec-search-item,
.ec-search-item:hover {
    background: #f3f4f6;
    border-radius: 8px;
}

/* Etiqueta "Búsqueda" en el header con ?q= activo */
.ec-search-q-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: #e6f4ed;
    color: var(--ec-primary, #2d6a4f);
    border-radius: 99px;
    font-size: .78rem;
    font-weight: 600;
    padding: .2rem .65rem;
    margin-left: .5rem;
    vertical-align: middle;
}
.ec-search-q-badge button {
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    padding: 0;
    line-height: 1;
    font-size: .85rem;
}

/* Banner de búsqueda activa */
.ec-search-active-banner {
    display: flex;
    align-items: center;
    gap: .5rem;
    background: #e6f4ed;
    color: #1a4731;
    border-radius: 8px;
    padding: .5rem .9rem;
    font-size: .875rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.ec-search-active-banner strong { color: var(--ec-primary, #2d6a4f); }
.ec-search-active-clear {
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(0,0,0,.1);
    color: #1a4731;
    text-decoration: none;
    flex-shrink: 0;
    transition: background .15s;
}
.ec-search-active-clear:hover { background: rgba(0,0,0,.2); }

/* ── Zoom de imagen en detalle de producto ──────────────────────────────── */
.ec-zoom-lens {
    position: absolute;
    border: 2px solid var(--ec-primary, #2d6a4f);
    background: rgba(255,255,255,.15);
    pointer-events: none;
    z-index: 8000;
    display: none;
    border-radius: 4px;
    backdrop-filter: blur(1px);
}

.ec-zoom-panel {
    position: absolute;
    z-index: 8001;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,.15);
    display: none;
    pointer-events: none;
    background-color: #f9fafb;
    background-repeat: no-repeat;
}

/* ── Newsletter Pop-up ───────────────────────────────────────────────────── */
.ec-nl-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 9100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.ec-nl-overlay--in  .ec-nl-modal { animation: ec-nl-in .3s ease forwards; }
.ec-nl-overlay--out .ec-nl-modal { animation: ec-nl-out .3s ease forwards; }
@keyframes ec-nl-in  { from { transform:scale(.9) translateY(20px);opacity:0 } to { transform:scale(1) translateY(0);opacity:1 } }
@keyframes ec-nl-out { from { transform:scale(1) translateY(0);opacity:1 } to { transform:scale(.9) translateY(20px);opacity:0 } }

.ec-nl-modal {
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 640px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0,0,0,.2);
    position: relative;
}

.ec-nl-close {
    position: absolute;
    top: .85rem;
    right: .85rem;
    z-index: 2;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,.06);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
}
.ec-nl-close:hover { background: rgba(0,0,0,.12); }

.ec-nl-body {
    display: grid;
    grid-template-columns: 220px 1fr;
}
@media (max-width: 520px) {
    .ec-nl-body { grid-template-columns: 1fr; }
}

.ec-nl-left {
    background: linear-gradient(135deg,
        hsl(var(--primary-h), var(--primary-s), 35%),
        hsl(var(--primary-h), var(--primary-s), 55%));
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
}
@media (max-width: 520px) { .ec-nl-left { min-height: 140px; } }

.ec-nl-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ec-nl-icon-wrap svg { stroke: rgba(255,255,255,.85); }

.ec-nl-right {
    padding: 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

.ec-nl-tag {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ec-primary, #2d6a4f);
    margin: 0;
}
.ec-nl-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #111;
    margin: 0;
    line-height: 1.25;
}
.ec-nl-desc {
    font-size: .875rem;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.ec-nl-form {
    display: flex;
    gap: .5rem;
    margin-top: .5rem;
    flex-wrap: wrap;
}
.ec-nl-input {
    flex: 1;
    min-width: 0;
    padding: .6rem .9rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: .875rem;
    outline: none;
    transition: border-color .15s;
}
.ec-nl-input:focus { border-color: var(--ec-primary, #2d6a4f); }
.ec-nl-input--error { border-color: #dc2626; }
.ec-nl-btn {
    padding: .6rem 1.1rem;
    background: var(--ec-primary, #2d6a4f);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: .875rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: filter .15s;
}
.ec-nl-btn:hover { filter: brightness(1.1); }

.ec-nl-privacy {
    font-size: .72rem;
    color: #aaa;
    margin: 0;
}

/* Estado de éxito */
.ec-nl-success {
    flex-direction: column;
    align-items: center;
    gap: .75rem;
    padding: 1rem 0;
    text-align: center;
}
.ec-nl-success svg { stroke: #16a34a; }
.ec-nl-success p { font-size: .9rem; color: #374151; margin: 0; }

.ec-nl-coupon {
    display: flex;
    align-items: center;
    gap: .5rem;
    background: #f0fdf4;
    border: 1.5px dashed #16a34a;
    border-radius: 8px;
    padding: .5rem .9rem;
}
.ec-nl-coupon-code {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: .1em;
    color: #15803d;
}
.ec-nl-copy-btn {
    padding: .3rem .7rem;
    background: #16a34a;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: .78rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════════════════
   PUNTOS DE FIDELIDAD — Carrito
   ═══════════════════════════════════════════════════════════════════ */
.ec-points-box {
    margin-bottom: 12px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 10px 14px;
}
.ec-points-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .875rem;
    color: #78350f;
    margin-bottom: 8px;
}
.ec-points-hint { color: #92400e; font-size: .78rem; }
.ec-points-apply-wrap,
.ec-points-applied-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.ec-points-apply-label,
.ec-points-applied-label {
    font-size: .82rem;
    color: #78350f;
    display: flex;
    align-items: center;
    gap: 4px;
}
.ec-points-btn {
    padding: 4px 12px;
    border: none;
    border-radius: 6px;
    background: #f59e0b;
    color: #fff;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}
.ec-points-btn:hover { background: #d97706; }
.ec-points-btn--remove {
    background: transparent;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}
.ec-points-btn--remove:hover { background: #fee2e2; }

/* ═══════════════════════════════════════════════════════════════════
   PUNTOS DE FIDELIDAD — Perfil
   ═══════════════════════════════════════════════════════════════════ */
.ec-points-profile-card {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fde68a;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 24px;
}
.ec-points-balance-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}
.ec-points-balance-num {
    font-size: 2rem;
    font-weight: 700;
    color: #92400e;
    margin: 0;
    line-height: 1.1;
}
.ec-points-balance-label {
    font-size: .85rem;
    color: #a16207;
    margin: 0;
}
.ec-points-rule {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: .83rem;
    color: #78350f;
    background: #fef9c3;
    border-radius: 6px;
    padding: 8px 12px;
}
.ec-points-disabled {
    background: #f9fafb;
    border-color: #e5e7eb;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #9ca3af;
    font-size: .9rem;
}
.ec-points-history-title {
    font-size: .95rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 10px;
}
.ec-points-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .83rem;
}
.ec-points-table th,
.ec-points-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #f3f4f6;
    text-align: left;
}
.ec-points-table th { color: #6b7280; font-weight: 600; }
.ec-pts-neg { color: #dc2626; font-weight: 600; }
.ec-pts-pos { color: #16a34a; font-weight: 600; }


/* ═══════════════════════════════════════════════════════════════════
   BUNDLE / PACK LANDING PAGE
   ═══════════════════════════════════════════════════════════════════ */
.ec-bundle-landing { background: #f8f9fa; }

/* Hero */
.ec-bl-hero {
    position: relative;
    padding: 80px 0 60px;
    overflow: hidden;
}
.ec-bl-hero__bg {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, #1e293b 0%, #334155 60%, #1e3a5f 100%);
    z-index: 0;
}
.ec-bl-hero .container { position: relative; z-index: 1; }
.ec-bl-hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

/* Galería */
.ec-bl-gallery { position: relative; }
.ec-bl-gallery__main {
    position: relative;
    background: rgba(255,255,255,.08);
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ec-bl-gallery__img { width: 100%; height: 100%; object-fit: contain; padding: 16px; }
.ec-bl-save-badge {
    position: absolute;
    top: 14px; right: 14px;
    background: #ef4444;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(239,68,68,.4);
}
.ec-bl-gallery__thumbs {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}
.ec-bl-thumb {
    width: 60px; height: 60px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,.2);
    cursor: pointer;
    padding: 0;
    background: rgba(255,255,255,.08);
    transition: border-color .2s;
}
.ec-bl-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.ec-bl-thumb--active { border-color: #fff; }
.ec-bl-thumb:hover { border-color: rgba(255,255,255,.6); }

/* Info lateral */
.ec-bl-info { color: #fff; }
.ec-bl-info__tag {
    display: inline-block;
    background: var(--primary-color, #e9272d);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 14px;
}
.ec-bl-info__title {
    font-size: 2.8rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 12px;
    line-height: 1.2;
}
.ec-bl-info__desc { font-size: 1.35rem; color: rgba(255,255,255,.75); margin: 0 0 20px; }

/* Precio */
.ec-bl-price-block {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}
.ec-bl-price-old { font-size: 1.8rem; color: rgba(255,255,255,.5); text-decoration: line-through; }
.ec-bl-price-now { font-size: 3.6rem; font-weight: 900; color: #fff; line-height: 1; }
.ec-bl-price-save {
    background: #22c55e;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
}

/* Countdown */
.ec-bl-countdown {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 20px;
    display: inline-flex;
    flex-direction: column;
    gap: 8px;
}
.ec-bl-countdown__label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1.1rem;
    color: rgba(255,255,255,.8);
    text-transform: uppercase;
    letter-spacing: .06em;
    font-weight: 600;
}
.ec-bl-countdown__boxes { display: flex; align-items: center; gap: 6px; }
.ec-bl-cd-box {
    background: rgba(255,255,255,.15);
    border-radius: 8px;
    padding: 6px 14px;
    text-align: center;
    min-width: 54px;
}
.ec-bl-cd-box span {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}
.ec-bl-cd-box small { font-size: 1rem; color: rgba(255,255,255,.6); text-transform: uppercase; }
.ec-bl-cd-sep { font-size: 2rem; font-weight: 800; color: rgba(255,255,255,.5); }

/* Stock bajo */
.ec-bl-low-stock {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 1.25rem;
    color: #b91c1c;
    margin-bottom: 20px;
}

/* CTA */
.ec-bl-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary-color, #e9272d);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 16px 36px;
    font-size: 1.7rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s;
    box-shadow: 0 8px 24px rgba(0,0,0,.25);
    margin-bottom: 20px;
    width: 100%;
    justify-content: center;
}
.ec-bl-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0,0,0,.35); }
.ec-bl-cta:active { transform: translateY(0); }
.ec-bl-cta--oos { background: #9ca3af; cursor: not-allowed; }
.ec-bl-cta--outline {
    background: transparent;
    border: 2px solid var(--primary-color, #e9272d);
    color: var(--primary-color, #e9272d);
    box-shadow: none;
    width: auto;
    padding: 14px 40px;
}
.ec-bl-cta--outline:hover {
    background: var(--primary-color, #e9272d);
    color: #fff;
    box-shadow: 0 6px 20px rgba(0,0,0,.15);
}

/* Perks */
.ec-bl-perks { display: flex; flex-direction: column; gap: 8px; }
.ec-bl-perk { display: flex; align-items: center; gap: 8px; font-size: 1.3rem; color: rgba(255,255,255,.85); }
.ec-bl-perk svg { color: #22c55e; flex-shrink: 0; }

/* Sección incluye */
.ec-bl-includes { padding: 60px 0; }
.ec-bl-section-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #1e293b;
    text-align: center;
    margin: 0 0 36px;
    position: relative;
}
.ec-bl-section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color, #e9272d);
    border-radius: 2px;
    margin: 10px auto 0;
}
.ec-bl-includes__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 36px;
}
.ec-bl-inc-item {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
}
.ec-bl-inc-item:hover { box-shadow: 0 6px 24px rgba(0,0,0,.1); transform: translateY(-3px); }
.ec-bl-inc-img-wrap {
    position: relative;
    display: block;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: #f8f9fa;
}
.ec-bl-inc-img-wrap img { width: 100%; height: 100%; object-fit: contain; padding: 16px; transition: transform .3s; }
.ec-bl-inc-item:hover .ec-bl-inc-img-wrap img { transform: scale(1.04); }
.ec-bl-inc-qty {
    position: absolute; top: 8px; right: 8px;
    background: #1e293b; color: #fff;
    font-size: 1rem; font-weight: 700;
    padding: 2px 8px; border-radius: 12px;
}
.ec-bl-inc-body { padding: 14px 16px; }
.ec-bl-inc-name {
    display: block;
    font-size: 1.3rem; font-weight: 700; color: #222;
    text-decoration: none; margin-bottom: 4px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ec-bl-inc-name:hover { color: var(--primary-color, #e9272d); }
.ec-bl-inc-desc { font-size: 1.1rem; color: #888; margin: 0 0 8px; }
.ec-bl-inc-price { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.ec-bl-inc-unit { font-size: 1.1rem; color: #aaa; }
.ec-bl-inc-total { font-size: 1.3rem; font-weight: 700; color: #333; }

/* Tabla resumen precio */
.ec-bl-price-summary {
    max-width: 420px; margin: 0 auto;
    background: #fff; border-radius: 12px; border: 1px solid #e9ecef; overflow: hidden;
}
.ec-bl-ps-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 20px; border-bottom: 1px solid #f0f0f0;
    font-size: 1.4rem; color: #555;
}
.ec-bl-ps-row:last-child { border-bottom: none; }
.ec-bl-ps-row--save { color: #16a34a; font-weight: 600; }
.ec-bl-ps-row--total { background: #f8f9fa; font-size: 1.6rem; font-weight: 800; color: #1e293b; }

/* Responsive */
@media (max-width: 768px) {
    .ec-bl-hero__inner { grid-template-columns: 1fr; gap: 28px; }
    .ec-bl-hero { padding: 60px 0 40px; }
    .ec-bl-info__title { font-size: 2.2rem; }
    .ec-bl-price-now { font-size: 2.8rem; }
    .ec-bl-cta { font-size: 1.5rem; padding: 14px 28px; }
    .ec-bl-includes__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .ec-bl-includes__grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════
   CARRITO PROFESIONAL — CHECKOUT CARDS
══════════════════════════════════════════════════════════ */

/* Card base */
.ec-checkout-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
    margin-bottom: 20px;
    overflow: hidden;
    transition: box-shadow .2s;
}
.ec-checkout-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.04);
}
.ec-checkout-card__header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 24px;
    background: linear-gradient(135deg, #f9fafb, #fff);
    border-bottom: 1px solid #f3f4f6;
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
}
.ec-checkout-step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: hsl(var(--primary-h, 250), var(--primary-s, 50%), var(--primary-l, 50%));
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

/* Badge producto count */
.ec-cart-badge {
    margin-left: auto;
    background: #1e293b;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    min-width: 22px;
    height: 22px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
}

/* Estado vacío */
.ec-cart-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 48px 24px;
    gap: 12px;
    color: #9ca3af;
}
.ec-cart-empty-state p { font-size: 1.4rem; color: #6b7280; margin: 0; }

/* Lista de items */
.ec-cart-items { padding: 0 8px; }
.ec-cart-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s;
}
.ec-cart-item:last-child { border-bottom: none; }
.ec-cart-item:hover { background: #fafbfc; }

.ec-cart-item__img {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid #f3f4f6;
    background: #f9fafb;
}
.ec-cart-item__img img { width: 100%; height: 100%; object-fit: cover; }

.ec-cart-item__info { flex: 1; min-width: 0; }
.ec-cart-item__name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ec-cart-item__price { font-size: 1.15rem; color: #6b7280; }
.ec-cart-item__variant { display:inline-block; font-size:.78rem; color:#5a6acf; background:#eef0ff; border-radius:12px; padding:2px 9px; margin-bottom:4px; font-weight:600; }

/* Qty input */
.ec-qty-input {
    width: 60px !important;
    text-align: center;
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    padding: 6px 4px !important;
    font-size: 1.2rem !important;
    font-weight: 600;
    color: #1e293b;
    background: #fff;
    -moz-appearance: textfield;
}
.ec-qty-input::-webkit-outer-spin-button,
.ec-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ec-qty-input:focus { outline: none; border-color: #16a34a !important; box-shadow: 0 0 0 3px rgba(22,163,74,0.12) !important; }

.ec-cart-item__qty { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ec-cart-item__qty .ec-qty-selector { margin-bottom: 0; }
.ec-stock-warning { font-size: 0.78rem; color: #ef4444; white-space: nowrap; }
.ec-cart-item__subtotal { text-align: right; min-width: 70px; }
.ec-cart-item__subtotal-label { display: block; font-size: 1.05rem; color: #9ca3af; margin-bottom: 2px; }
.ec-cart-item__subtotal strong { font-size: 1.3rem; font-weight: 700; color: #1e293b; }

/* Botón eliminar */
.ec-cart-item__remove {
    background: none;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #9ca3af;
    transition: all 0.15s;
    flex-shrink: 0;
    padding: 0;
}
.ec-cart-item__remove:hover { background: #fee2e2; border-color: #fca5a5; color: #ef4444; }

/* Footer del carrito */
.ec-cart-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}

/* Botones ghost */
.ec-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1.2rem;
    color: #374151;
    background: #fff;
    cursor: pointer;
    text-decoration: none !important;
    transition: all 0.15s;
    font-weight: 500;
}
.ec-btn-ghost:hover { border-color: #9ca3af; background: #f3f4f6; color: #111; }
.ec-btn-ghost--danger { color: #b91c1c; }
.ec-btn-ghost--danger:hover { border-color: #fca5a5; background: #fff5f5; color: #dc2626; }

/* Botón primary */
.ec-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 24px;
    background: #16a34a;
    color: #fff !important;
    border-radius: 10px;
    font-size: 1.3rem;
    font-weight: 600;
    text-decoration: none !important;
    border: none;
    cursor: pointer;
    transition: opacity 0.15s;
}
.ec-btn-primary:hover { opacity: 0.88; }

/* TOTALES DEL PEDIDO */
.ec-order-totals { padding: 0 20px 4px; }
.ec-order-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px dashed #f0f0f0;
    font-size: 1.25rem;
    color: #4b5563;
}
.ec-order-line:last-of-type { border-bottom: none; }
.ec-order-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    margin: 4px 0 0;
    border-top: 2px solid hsl(var(--primary-h), var(--primary-s), 90%);
    background: hsl(var(--primary-h), var(--primary-s), 97%);
    font-size: 16px;
    font-weight: 700;
    color: #111827;
}
.ec-order-total strong {
    font-size: 24px;
    color: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
}

/* BOTONES DE PAGO */
.ec-payment-actions {
    padding: 16px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ec-pay-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 13px 20px;
    border-radius: 10px;
    font-size: 1.35rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    text-decoration: none !important;
    transition: opacity 0.15s, transform 0.1s;
    letter-spacing: 0.02em;
}
.ec-pay-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.ec-pay-btn:active { transform: translateY(0); }
.ec-pay-btn--visa { background: #1a56db; color: #fff !important; }
.ec-pay-btn--cash { background: #fff; color: #1e293b !important; border: 2px solid #d1d5db; }
.ec-pay-btn--cash:hover { border-color: #9ca3af; background: #f9fafb; }

/* Payment method selector — estilo Saga Falabella */
.ec-payment-methods { display: flex; flex-direction: column; gap: 10px; padding: 16px; }
.ec-payment-option {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px; border: 2px solid #e5e7eb; border-radius: 12px;
    cursor: pointer; transition: all 0.2s; background: #fff;
}
.ec-payment-option:hover { border-color: #d1d5db; background: #fafbfc; }
.ec-payment-option--active { border-color: #16a34a; background: #f0fdf4; }
.ec-payment-option__radio {
    width: 20px; height: 20px; border-radius: 50%;
    border: 2px solid #d1d5db; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
}
.ec-payment-option--active .ec-payment-option__radio {
    border-color: #16a34a; background: #16a34a;
    box-shadow: inset 0 0 0 3px #fff;
}
.ec-payment-option__icon {
    width: 44px; height: 44px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ec-payment-option__text { flex: 1; }
.ec-payment-option__text strong { display: block; font-size: 14px; color: #1e293b; }
.ec-payment-option__text small { display: block; font-size: 12px; color: #6b7280; margin-top: 1px; }
.ec-payment-cards { display: flex; gap: 4px; align-items: center; }

.ec-payment-action-wrap { padding: 0 16px 16px; }
.ec-pay-btn--main {
    width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 24px; border: none; border-radius: 12px;
    font-size: 15px; font-weight: 700; cursor: pointer;
    background: #16a34a; color: #fff;
    transition: all 0.2s; box-shadow: 0 2px 8px rgba(22,163,74,0.25);
}
.ec-pay-btn--main:hover { background: #15803d; transform: translateY(-1px); }
.ec-pay-btn--main:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.ec-pay-btn--card { background: #1a56db; box-shadow: 0 2px 8px rgba(26,86,219,0.25); }
.ec-pay-btn--card:hover { background: #1e40af; }

.ec-paypal-wrap { padding: 8px 0; }

/* Invoice toggle */
.ec-invoice-toggle { display: flex; flex-direction: column; gap: 8px; }
.ec-toggle-card {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px; border: 2px solid #e5e7eb; border-radius: 10px;
    cursor: pointer; transition: all 0.2s; background: #fff;
}
.ec-toggle-card:hover { border-color: #d1d5db; }
.ec-toggle-card--active { border-color: #16a34a; background: #f0fdf4; }
.ec-toggle-card__radio {
    width: 18px; height: 18px; border-radius: 50%;
    border: 2px solid #d1d5db; flex-shrink: 0; transition: all 0.2s;
}
.ec-toggle-card__radio--on { border-color: #16a34a; background: #16a34a; box-shadow: inset 0 0 0 3px #fff; }
.ec-toggle-card__text { flex: 1; }
.ec-toggle-card__text strong { display: block; font-size: 13px; color: #1e293b; }
.ec-toggle-card__text small { display: block; font-size: 11px; color: #6b7280; }

@media (max-width: 576px) {
    .ec-payment-option { padding: 12px; gap: 10px; }
    .ec-payment-option__icon { width: 38px; height: 38px; }
    .ec-payment-option__text strong { font-size: 13px; }
    .ec-payment-option__text small { font-size: 11px; }
    .ec-pay-btn--main { font-size: 14px; padding: 13px 20px; }
}

/* Cash confirm input */
.ec-cash-input-wrap { padding: 0 4px 4px; }
.ec-cash-input-group {
    display: flex;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}
.ec-cash-prefix {
    padding: 0 12px;
    font-size: 1.3rem;
    font-weight: 700;
    color: #6b7280;
    background: #f3f4f6;
    border-right: 1px solid #d1d5db;
    line-height: 42px;
}
.ec-cash-input {
    flex: 1;
    border: none !important;
    outline: none !important;
    padding: 10px 12px;
    font-size: 1.3rem;
    font-weight: 600;
    color: #111;
    background: #fff;
    box-shadow: none !important;
}
.ec-cash-ok {
    padding: 10px 16px;
    background: #16a34a;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: background 0.15s;
}
.ec-cash-ok:hover { background: #15803d; }

/* FORMULARIOS CHECKOUT */
.ec-checkout-form { padding: 16px 20px; }
.ec-field { margin-bottom: 16px; }
.ec-field:last-child { margin-bottom: 0; }
.ec-field label {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}
.ec-field__input-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 0 12px;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.ec-field__input-wrap:focus-within {
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22,163,74,0.12);
}
.ec-field--error .ec-field__input-wrap { border-color: #f87171; }
/* Input dentro de wrapper — sin borde propio */
.ec-field__input-wrap .ec-field__input,
.ec-field__input-wrap .ec-field__select {
    flex: 1;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    padding: 10px 0 !important;
    font-size: 1.3rem !important;
}
/* Input/select directo (sin wrapper) — con borde propio */
.ec-field > .ec-field__input,
.ec-field > .ec-field__select,
.ec-field > select.ec-field__input,
.ec-field > textarea.ec-field__input,
.ec-field > input.ec-field__input {
    width: 100%;
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    padding: 10px 12px !important;
    font-size: 1.3rem !important;
    background: #f9fafb !important;
    color: #1f2937 !important;
    outline: none !important;
    transition: border-color .15s, box-shadow .15s !important;
}
.ec-field > .ec-field__input:focus,
.ec-field > .ec-field__select:focus,
.ec-field > select.ec-field__input:focus,
.ec-field > input.ec-field__input:focus,
.ec-field > textarea.ec-field__input:focus {
    border-color: hsl(var(--primary-h,250),var(--primary-s,50%),var(--primary-l,50%)) !important;
    box-shadow: 0 0 0 3px hsla(var(--primary-h,250),var(--primary-s,50%),var(--primary-l,50%),.12) !important;
    background: #fff !important;
}
.ec-field--error > .ec-field__input,
.ec-field--error > .ec-field__select { border-color: #f87171 !important; }

/* Delivery options */
.ec-delivery-options { display: flex; gap: 10px; flex-wrap: wrap; }
.ec-delivery-opt {
    flex: 1; min-width: 200px;
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px; border: 2px solid #e5e7eb; border-radius: 10px;
    cursor: pointer; transition: all .15s; background: #fff;
}
.ec-delivery-opt:hover { border-color: #94a3b8; }
.ec-delivery-opt--active {
    border-color: hsl(var(--primary-h,250),var(--primary-s,50%),var(--primary-l,50%));
    background: hsla(var(--primary-h,250),var(--primary-s,50%),95%,1);
}
.ec-delivery-opt__icon { font-size: 24px; flex-shrink: 0; }
.ec-delivery-opt__text { display: flex; flex-direction: column; }
.ec-delivery-opt__text strong { font-size: 13px; color: #1f2937; }
.ec-delivery-opt__text small { font-size: 11px; color: #6b7280; }

/* Override old input styles */
.ec-field__input,
.ec-field__select {
    font-size: 1.3rem !important;
    color: #111 !important;
    box-shadow: none !important;
    -webkit-appearance: none;
    appearance: none;
}
.ec-field__select { cursor: pointer; }
.ec-field__textarea { resize: vertical; min-height: 70px; }
.ec-field__error {
    display: block;
    margin-top: 5px;
    font-size: 1.1rem;
    color: #ef4444;
}

/* Botón continuar al pago */
.ec-pay-btn--continue {
    background: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
    color: #fff !important;
    font-size: 1.4rem;
    gap: 10px;
    height: 52px;
    border-radius: 12px;
    box-shadow: 0 4px 12px hsla(var(--primary-h), var(--primary-s), var(--primary-l), .3);
    text-transform: uppercase;
    letter-spacing: .04em;
}
.ec-pay-btn--continue:hover {
    background: hsl(var(--primary-h), var(--primary-s), calc(var(--primary-l) - 8%));
    box-shadow: 0 6px 16px hsla(var(--primary-h), var(--primary-s), var(--primary-l), .4);
    transform: translateY(-2px);
}
.ec-pay-btn--continue:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

/* Nota de seguridad — más prominente */
.ec-secure-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    margin: 8px 0 0;
    padding: 8px 12px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #f3f4f6;
}
.ec-secure-note svg { color: #16a34a; flex-shrink: 0; }

/* Items de resumen en checkout (readonly) */
.ec-co-items { padding: 0 24px; }
.ec-co-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}
.ec-co-item:last-child { border-bottom: none; }
.ec-co-item__img {
    width: 44px; height: 44px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
}
.ec-co-item__img img { width: 100%; height: 100%; object-fit: cover; }
.ec-co-item__info { flex: 1; min-width: 0; }
.ec-co-item__name { display: block; font-size: 1.2rem; font-weight: 600; color: #1e293b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ec-co-item__qty { font-size: 1.1rem; color: #9ca3af; }
.ec-co-item__price { font-size: 1.25rem; font-weight: 700; color: #1e293b; white-space: nowrap; }

/* Responsive checkout */
@media (max-width: 991px) {
    .ec-cart-item__subtotal-label { display: none; }
    .ec-pay-btn { font-size: 1.2rem; }
}
@media (max-width: 576px) {
    /* ── Cart item mobile: estilo Saga Falabella ── */
    .ec-cart-item {
        display: grid;
        grid-template-columns: 100px 1fr;
        grid-template-rows: auto auto auto;
        gap: 0 12px;
        padding: 16px 14px;
        position: relative;
        border-bottom: 1px solid #f1f5f9;
        background: #fff;
    }
    .ec-cart-item__img {
        grid-row: 1 / 4;
        grid-column: 1;
        width: 100px;
        height: 100px;
        border-radius: 12px;
        align-self: start;
        border: 1px solid #f0f0f0;
    }
    .ec-cart-item__img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 12px;
    }
    .ec-cart-item__info {
        grid-column: 2;
        grid-row: 1;
        padding-right: 30px;
    }
    .ec-cart-item__name {
        white-space: normal !important;
        overflow: hidden !important;
        text-overflow: unset !important;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        font-size: 13px;
        line-height: 1.35;
        font-weight: 600;
        color: #1e293b;
        margin-bottom: 2px;
    }
    .ec-cart-item__variant {
        font-size: 10px;
        padding: 1px 7px;
    }
    .ec-cart-item__price {
        font-size: 17px;
        font-weight: 800;
        color: #1e293b;
        display: block;
        margin-top: 4px;
        letter-spacing: -0.3px;
    }
    .ec-cart-item__qty {
        grid-column: 2;
        grid-row: 2;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 12px;
        margin-top: 10px;
    }
    .ec-cart-item__subtotal {
        grid-column: 2;
        grid-row: 3;
        text-align: left;
        margin-top: 6px;
    }
    .ec-cart-item__subtotal-label {
        display: inline !important;
        font-size: 11px;
        color: #9ca3af;
    }
    .ec-cart-item__subtotal strong {
        font-size: 15px;
        font-weight: 700;
        color: #16a34a;
    }
    .ec-cart-item__remove {
        position: absolute;
        top: 14px;
        right: 10px;
        width: 28px;
        height: 28px;
        padding: 0;
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    }
    .ec-cart-item__remove:hover { background: #fee2e2; border-color: #fca5a5; }
    .ec-cart-footer { flex-direction: column; gap: 10px; align-items: stretch; }
    .ec-btn-ghost { justify-content: center; }

    /* Qty selector compacto */
    .ec-cart-item .ec-qty-selector {
        transform: none;
        display: inline-flex;
    }
    .ec-cart-item .ec-qty-btn { width: 32px; height: 32px; font-size: 16px; }
    .ec-cart-item .ec-qty-input { width: 40px !important; height: 32px; font-size: 14px !important; padding: 4px 2px !important; }

    /* Stock warning */
    .ec-stock-warning { font-size: 10px; }

    /* Checkout card compact */
    .ec-checkout-card { border-radius: 12px; margin-bottom: 12px; }
    .ec-checkout-card__header { padding: 14px 16px; font-size: 14px; }
}

/* ================================================================
   FOOTER LINKS — reemplaza estilos inline
   ================================================================ */
.ec-footer-links {
    padding: 0;
    margin: 0;
    list-style: none;
    width: 100%;
}
.ec-footer-links li {
    width: 100%;
}
.ec-footer-links li a {
    display: block;
    width: 100%;
    padding: 4px 0;
    color: inherit;
    transition: color .2s;
}
.ec-footer-links li a:hover { color: #16a34a; }
.ec-footer-links__reclamaciones {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    text-decoration: none !important;
}
.ec-footer-links__reclamaciones i { font-size: 1.4rem; }

/* ================================================================
   PRODUCT DETAIL — botón notify + mobile bar (reemplaza inline styles)
   ================================================================ */
.ec-btn-notify--full {
    width: 100%;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Barra móvil sticky — WhatsApp icon button */
.ec-mobile-action-bar .ec-mob-wa-btn {
    flex: 0 0 auto;
    width: 50px;
    height: 50px;
    border-radius: 10px !important;
    padding: 0;
    justify-content: center;
    align-items: center;
    display: flex;
}
/* Barra móvil sticky — Agregar al carrito */
.ec-mobile-action-bar .ec-mob-cart-btn {
    flex: 1;
    min-height: 50px;
    border-radius: 10px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: #fff !important;
    background-color: hsl(var(--primary-h), var(--primary-s), var(--primary-l)) !important;
}
.ec-mobile-action-bar .ec-mob-cart-btn svg {
    stroke: #fff !important;
}
.ec-mobile-action-bar .ec-mob-cart-btn::before {
    display: none !important;
}
@media (max-width: 767px) {
    .ec-compare-bar { padding: 6px 10px !important; bottom: 76px !important; }
    .ec-compare-bar__label { display: none; }
    .ec-compare-bar__slots img { width: 32px !important; height: 32px !important; }
    .ec-compare-bar__open { font-size: 11px; padding: 4px 10px; }
    .ec-compare-bar__clear { font-size: 11px; padding: 4px 8px; }
}
@media (max-width: 360px) {
    .ec-mobile-action-bar .ec-mob-cart-btn { font-size: 13px; gap: 6px; }
    .ec-mobile-action-bar .ec-mob-wa-btn   { width: 44px; height: 44px; }
}

/* ================================================================
   QTY SELECTOR — touch targets mínimos en móvil
   ================================================================ */
@media (max-width: 575px) {
    .ec-qty-selector { gap: 2px; }
    .ec-qty-btn {
        min-width: 36px;
        min-height: 36px;
        font-size: 18px;
    }
    .ec-qty-input {
        min-width: 40px;
        height: 36px;
        font-size: 14px;
    }
}

/* ================================================================
   SECTION TITLES — escala tipográfica en móvil pequeño
   ================================================================ */
@media (max-width: 480px) {
    .ec-section-title   { font-size: 1.5rem !important; }
    .ec-section-header  { margin-bottom: 1rem !important; }
    h2.product-title    { font-size: 14px; height: auto; }
    .product-title a    { font-size: 14px; }
}

/* ================================================================
   NEWSLETTER BAR — mejora a 480px y 360px
   ================================================================ */
@media (max-width: 480px) {
    .ec-newsletter-bar__form {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    .ec-newsletter-bar__input { width: 100% !important; }
    .ec-newsletter-bar__btn   { width: 100%; justify-content: center; }
}

/* ================================================================
   FIX #4 — Header search: quitar min-width rígido en tablets
   ================================================================ */
@media (min-width: 992px) and (max-width: 1199px) {
    /* En tablets landscape el search-btn puede usar flex-grow en lugar de min-width fijo */
    #header_bar .web-search-btn {
        min-width: 280px !important;
        flex: 1;
    }
}

/* ================================================================
   FIX #6a — Mini-carrito: no desbordarse en teléfonos angostos
   ================================================================ */
@media (max-width: 767px) {
    .ec-minicart-dropdown {
        position: fixed !important;
        top: auto !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        min-width: 100vw !important;
        border-radius: 16px 16px 0 0 !important;
        max-height: 70vh !important;
        box-shadow: 0 -4px 24px rgba(0,0,0,.2) !important;
    }
    .ec-minicart-list {
        max-height: 40vh !important;
    }
}

/* ================================================================
   FIX #6b — Reviews distribution: flexbox en pantallas angostas
   ================================================================ */
@media (max-width: 480px) {
    .ec-reviews-dist {
        min-width: 0 !important;
        width: 100%;
    }
    .ec-reviews-avg {
        flex-direction: column;
        gap: 12px;
    }
}

/* ================================================================
   FIX #6c — Newsletter popup: nunca salirse de la pantalla
   ================================================================ */
.ec-nl-modal {
    max-width: min(640px, 92vw);
}
@media (max-width: 400px) {
    .ec-nl-modal { border-radius: 14px; }
    .ec-nl-body  { grid-template-columns: 1fr !important; }
    .ec-nl-left  { display: none; }          /* ocultar imagen en teléfonos muy pequeños */
}

/* ================================================================
   FIX #6d — Breakpoints para teléfonos 320-480px
   ================================================================ */
@media (max-width: 480px) {
    /* Checkout stepper — reducir padding */
    .ec-checkout-stepper { gap: 8px; padding: 12px 10px; }
    .ec-step__label      { font-size: 1.1rem; }

    /* Checkout card */
    .ec-checkout-card        { border-radius: 10px; }
    .ec-checkout-card__header{ padding: 12px 14px; font-size: 1.25rem; }

    /* Cart items en móvil angosto — heredan de @media 576px */

    /* Botones del carrito */
    .ec-cart-footer { flex-direction: column; gap: 8px; }
    .ec-btn-ghost   { justify-content: center; font-size: 1.2rem; }

    /* Total resumen */
    .ec-order-totals  { padding: 0 14px; }
    .ec-order-total   { padding: 12px 14px; }
    .ec-pay-btn--continue { font-size: 1.3rem; height: 46px; }

    /* Toast en móvil muy angosto */
    .ec-cart-toast { width: calc(100vw - 20px); }

    /* Product card grid: 2 columnas en 320-480 */
    .ec-product-card__title { font-size: 12.5px; line-height: 1.3; }
}

@media (max-width: 360px) {
    /* Teléfonos muy pequeños: 1 sola columna */
    .products-grid .col-6 { flex: 0 0 100%; max-width: 100%; }
    .ec-product-card__title { font-size: 13px; }
    .ec-price-current       { font-size: 13px; }
}

/* ================================================================
   FIX #7 — Footer bottom: apilar en móvil
   ================================================================ */
@media (max-width: 767px) {
    .container-footer.d-flex {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center;
        gap: 8px;
        padding-bottom: 1rem;
    }
    .footer-payments { max-width: 200px; }
    .copy-text       { margin-bottom: 0 !important; font-size: 1.2rem; }
}

/* ================================================================
   CART TOAST — notificación "agregado al carrito"
   ================================================================ */
#ec-cart-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
.ec-cart-toast {
    pointer-events: all;
    width: 320px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,.14), 0 2px 8px rgba(0,0,0,.08);
    overflow: hidden;
    transform: translateX(360px);
    opacity: 0;
    transition: transform .35s cubic-bezier(.22,.68,0,1.2), opacity .3s ease;
    border-left: 4px solid #16a34a;
}
.ec-cart-toast.ec-toast--updated { border-left-color: #2563eb; }
.ec-cart-toast.ec-toast--visible {
    transform: translateX(0);
    opacity: 1;
}
.ec-cart-toast.ec-toast--hiding {
    transform: translateX(360px);
    opacity: 0;
}
.ec-toast__header {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px 14px 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #16a34a;
}
.ec-cart-toast.ec-toast--updated .ec-toast__header { color: #2563eb; }
.ec-toast__header-icon {
    flex-shrink: 0;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: #16a34a;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ec-cart-toast.ec-toast--updated .ec-toast__header-icon { background: #2563eb; }
.ec-toast__header-icon svg { color: #fff; }
.ec-toast__header-text { flex: 1; }
.ec-toast__close {
    background: none;
    border: none;
    padding: 2px;
    cursor: pointer;
    color: #9ca3af;
    line-height: 1;
    margin-left: auto;
    border-radius: 4px;
    transition: color .2s, background .2s;
}
.ec-toast__close:hover { color: #374151; background: #f3f4f6; }
.ec-toast__body {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
}
.ec-toast__img {
    width: 56px; height: 56px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
}
.ec-toast__img img { width: 100%; height: 100%; object-fit: cover; }
.ec-toast__info { flex: 1; min-width: 0; }
.ec-toast__name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 3px;
}
.ec-toast__meta {
    font-size: 1.1rem;
    color: #64748b;
}
.ec-toast__meta strong { color: #1e293b; }
.ec-toast__actions {
    display: flex;
    gap: 8px;
    padding: 0 14px 12px;
}
.ec-toast__btn-cart {
    flex: 1;
    background: #16a34a;
    color: #fff !important;
    border: none;
    border-radius: 7px;
    padding: 7px 10px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: background .2s;
    text-decoration: none !important;
    display: block;
}
.ec-toast__btn-cart:hover { background: #15803d; color: #fff !important; }
.ec-toast__btn-continue {
    background: none;
    border: 1.5px solid #e2e8f0;
    border-radius: 7px;
    padding: 7px 10px;
    font-size: 1.2rem;
    color: #64748b;
    cursor: pointer;
    transition: border-color .2s, color .2s;
    white-space: nowrap;
    font-family: 'Poppins', sans-serif;
}
.ec-toast__btn-continue:hover { border-color: #94a3b8; color: #1e293b; }
.ec-toast__progress {
    height: 3px;
    background: #e5e7eb;
    position: relative;
    overflow: hidden;
}
.ec-toast__progress-bar {
    position: absolute;
    top: 0; left: 0;
    height: 100%;
    width: 100%;
    background: #16a34a;
    transform-origin: left;
    animation: ec-toast-progress linear forwards;
}
.ec-cart-toast.ec-toast--updated .ec-toast__progress-bar { background: #2563eb; }
@keyframes ec-toast-progress {
    from { transform: scaleX(1); }
    to   { transform: scaleX(0); }
}
@media (max-width: 576px) {
    #ec-cart-toast-container { top: 12px; right: 10px; left: 10px; }
    .ec-cart-toast { width: 100%; }
}

/* ================================================================
   PRODUCTOS DESTACADOS WIDGET — sidebar
   ================================================================ */
.ec-wp-widget {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e8edf4;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0,21,36,.06);
}
.ec-wp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 12px;
    border-bottom: 1px solid #f0f4f8;
    background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
}
.ec-wp-header__title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: .02em;
    color: #001524;
    text-transform: uppercase;
}
.ec-wp-star {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    flex-shrink: 0;
}
.ec-wp-nav {
    display: flex;
    gap: 4px;
}
.ec-wp-navbtn {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    width: 28px; height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748b;
    transition: background .2s, color .2s, border-color .2s;
    padding: 0;
    line-height: 1;
}
.ec-wp-navbtn:hover { background: #16a34a; border-color: #16a34a; color: #fff; }
/* Swiper vertical container */
.ec-wp-swiper {
    height: 312px; /* 3 cards × ~104px each */
    overflow: hidden;
}
.ec-wp-swiper .swiper-wrapper { flex-direction: column; }
/* Card */
.ec-wp-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid #f0f4f8;
    transition: background .2s;
}
.ec-wp-card:hover { background: #f8fafc; }
.ec-wp-card__img-wrap {
    position: relative;
    width: 62px; height: 62px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e8edf4;
    background: #f9fafb;
    display: block;
}
.ec-wp-card__img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}
.ec-wp-card:hover .ec-wp-card__img-wrap img { transform: scale(1.07); }
.ec-wp-card__badge {
    position: absolute;
    bottom: 3px; left: 3px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    font-size: .85rem;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 4px;
    letter-spacing: .02em;
    line-height: 1.4;
    pointer-events: none;
}
.ec-wp-card__body {
    flex: 1;
    min-width: 0;
}
.ec-wp-card__name {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.35;
    margin-bottom: 5px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color .2s;
}
.ec-wp-card__name:hover { color: #16a34a; }
.ec-wp-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}
.ec-wp-card__price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #001524;
}
.ec-wp-card__btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #16a34a;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 5px 8px;
    font-size: 1.1rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s, transform .15s;
    line-height: 1;
}
.ec-wp-card__btn:hover { background: #15803d; transform: scale(1.04); }
.ec-wp-card__btn:active { transform: scale(.97); }

/* =====================================================
   GUEST CHECKOUT UI
   ===================================================== */
.ec-guest-notice {
    background: #f0fdf4;
    border: 1.5px solid #86efac;
    border-radius: 8px;
    padding: 14px 16px 10px;
    margin-bottom: 16px;
}
.ec-guest-notice label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #166534;
    margin-bottom: 6px;
    font-size: 1.3rem;
}
.ec-field-badge-guest {
    display: inline-block;
    background: #16a34a;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    letter-spacing: .02em;
}
.ec-guest-login-hint {
    font-size: 1.2rem;
    color: #64748b;
    margin-top: 6px;
}
.ec-guest-login-hint a {
    color: #16a34a;
    font-weight: 600;
    text-decoration: underline;
}
.ec-guest-login-hint a:hover {
    color: #15803d;
}
.ec-field--error .ec-guest-notice,
.ec-guest-notice.ec-field--error {
    border-color: #f87171;
    background: #fff5f5;
}
.ec-field--error input[type="email"] {
    border-color: #f87171 !important;
    box-shadow: 0 0 0 3px rgba(248,113,113,.15);
}
.ec-field--error label {
    color: #dc2626 !important;
}

/* =====================================================
   QUICK VIEW BUTTON — en cards de producto
   ===================================================== */
.ec-product-card__img-wrap {
    position: relative;
    overflow: hidden;
    display: block;
}
.ec-btn-quickview {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    opacity: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,.95);
    color: #1e293b;
    border: none;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 1.2rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(0,0,0,.15);
    transition: opacity .22s ease, transform .22s ease, box-shadow .15s;
    z-index: 3;
    pointer-events: none;
}
.ec-product-card:hover .ec-btn-quickview,
.ec-product-card:focus-within .ec-btn-quickview {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}
.ec-btn-quickview:hover {
    background: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,.2);
}
@media (hover: none) {
    /* En touch no mostramos quick view — va directo al detalle */
    .ec-btn-quickview { display: none !important; }
}

/* =====================================================
   UBIGEO CASCADE — checkout
   ===================================================== */
.ec-ubigeo-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-bottom: 6px;
}
@media (max-width: 640px) {
    .ec-ubigeo-row {
        grid-template-columns: 1fr;
    }
}
.ec-ubigeo-row .ec-field {
    margin-bottom: 0;
}

/* =====================================================
   COUPON IN CHECKOUT
   ===================================================== */
.ec-coupon-card {
    margin-bottom: 12px;
}
.ec-coupon-form {
    padding: 4px 0 2px;
}
.ec-coupon-input-row {
    display: flex;
    gap: 8px;
    align-items: center;
}
.ec-coupon-code-input {
    flex: 1;
    text-transform: uppercase;
    letter-spacing: .05em;
    font-weight: 600;
}
.ec-coupon-apply-btn {
    background: #16a34a;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background .18s;
    min-width: 80px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.ec-coupon-apply-btn:hover:not(:disabled) { background: #15803d; }
.ec-coupon-apply-btn:disabled { background: #86efac; cursor: not-allowed; }
.ec-coupon-msg--error {
    color: #dc2626;
    font-size: 1.15rem;
    margin-top: 6px;
}
.ec-coupon-applied {
    padding: 4px 0;
}
.ec-coupon-applied__inner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f0fdf4;
    border: 1.5px solid #86efac;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 1.3rem;
}
.ec-coupon-applied__code {
    font-weight: 700;
    color: #166534;
    letter-spacing: .05em;
}
.ec-coupon-applied__disc {
    font-weight: 700;
    color: #16a34a;
}
.ec-coupon-remove {
    background: none;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    padding: 2px;
    display: inline-flex;
    align-items: center;
    border-radius: 4px;
    transition: color .15s;
}
.ec-coupon-remove:hover { color: #ef4444; }
.ec-spinner-sm {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: ec-spin .6s linear infinite;
}

/* =====================================================
   MOBILE MENU — rediseno profesional
   ===================================================== */

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0) !important;
    z-index: 9998;
    pointer-events: none;
    transition: background .3s ease;
}
body.mmenu-active .mobile-menu-overlay {
    background: rgba(0,0,0,.5) !important;
    pointer-events: auto;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.mobile-menu-container {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 300px !important;
    max-width: 88vw !important;
    z-index: 9999 !important;
    transform: translateX(-100%) !important;
    transition: transform .28s cubic-bezier(.4,0,.2,1) !important;
    overflow: hidden !important;
    background: #fff !important;
    color: #1e293b !important;
    box-shadow: none;
}
body.mmenu-active .mobile-menu-container {
    transform: translateX(0) !important;
    box-shadow: 6px 0 24px rgba(0,0,0,.15) !important;
}
[data-theme="dark"] .mobile-menu-container {
    background: #1e293b !important;
    color: #f1f5f9 !important;
}

.ec-mmenu {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: inherit;
}

.ec-mmenu__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
    flex-shrink: 0;
}
[data-theme="dark"] .ec-mmenu__head { border-color: #334155; }
.ec-mmenu__logo img { max-height: 36px; width: auto; display: block; }
.ec-mmenu__close {
    width: 36px; height: 36px;
    display: inline-flex; align-items: center; justify-content: center;
    border: none; background: #f1f5f9; border-radius: 50%; cursor: pointer;
    color: #475569; transition: background .15s, color .15s; flex-shrink: 0;
}
.ec-mmenu__close:hover { background: #e2e8f0; color: #1e293b; }
[data-theme="dark"] .ec-mmenu__close { background: #334155; color: #94a3b8; }

.ec-mmenu__user {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px;
    background: hsl(var(--primary-h),var(--primary-s),96%);
    border-bottom: 1px solid hsl(var(--primary-h),var(--primary-s),88%);
    flex-shrink: 0;
}
[data-theme="dark"] .ec-mmenu__user { background: #334155; border-color: #475569; }
.ec-mmenu__avatar {
    width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    background: hsl(var(--primary-h),var(--primary-s),45%);
    color: #fff; font-weight: 700; font-size: 1.6rem;
    border-radius: 50%; flex-shrink: 0;
}
.ec-mmenu__user-name { display: block; font-weight: 700; font-size: 1.35rem; color: #1e293b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
[data-theme="dark"] .ec-mmenu__user-name { color: #f1f5f9; }
.ec-mmenu__user-email { display: block; font-size: 1.15rem; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.ec-mmenu__guest {
    display: flex; gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    flex-shrink: 0;
}
[data-theme="dark"] .ec-mmenu__guest { border-color: #334155; }
.ec-mmenu__login-btn {
    flex: 1;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    background: hsl(var(--primary-h),var(--primary-s),45%);
    color: #fff !important; font-weight: 700; font-size: 1.3rem;
    padding: 8px 12px; border-radius: 8px; text-decoration: none !important;
    transition: background .15s;
}
.ec-mmenu__login-btn:hover { background: hsl(var(--primary-h),var(--primary-s),38%); }
.ec-mmenu__register-btn {
    display: inline-flex; align-items: center; justify-content: center;
    background: #f1f5f9; color: #475569 !important; font-weight: 600; font-size: 1.3rem;
    padding: 8px 14px; border-radius: 8px; text-decoration: none !important;
    transition: background .15s; white-space: nowrap;
}
.ec-mmenu__register-btn:hover { background: #e2e8f0; }
[data-theme="dark"] .ec-mmenu__register-btn { background: #334155; color: #94a3b8 !important; }

.ec-mmenu__nav { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 6px 0; }
.ec-mmenu__list { list-style: none; margin: 0; padding: 0; }
.ec-mmenu__list li { border-bottom: 1px solid #f8fafc; }
[data-theme="dark"] .ec-mmenu__list li { border-color: #334155; }
.ec-mmenu__list li:last-child { border-bottom: none; }

.ec-mmenu__link {
    display: flex !important;
    align-items: center; gap: 12px;
    padding: 13px 18px !important;
    font-size: 1.45rem !important; font-weight: 600 !important;
    color: #334155 !important; text-decoration: none !important;
    transition: background .12s, color .12s;
    background: none !important; border: none; width: 100%; cursor: pointer;
}
.ec-mmenu__link:hover { background: #f8fafc !important; color: hsl(var(--primary-h),var(--primary-s),40%) !important; }
[data-theme="dark"] .ec-mmenu__link { color: #e2e8f0 !important; }
[data-theme="dark"] .ec-mmenu__link:hover { background: #334155 !important; color: hsl(var(--primary-h),var(--primary-s),70%) !important; }
.ec-mmenu__item--active > .ec-mmenu__link { color: hsl(var(--primary-h),var(--primary-s),40%) !important; background: hsl(var(--primary-h),var(--primary-s),96%) !important; }
[data-theme="dark"] .ec-mmenu__item--active > .ec-mmenu__link { background: #334155 !important; color: hsl(var(--primary-h),var(--primary-s),70%) !important; }
.ec-mmenu__link svg { flex-shrink: 0; color: #94a3b8; }
.ec-mmenu__link:hover svg, .ec-mmenu__item--active > .ec-mmenu__link svg { color: hsl(var(--primary-h),var(--primary-s),45%); }
.ec-mmenu__link--has-sub { justify-content: flex-start; }
.ec-mmenu__chevron { margin-left: auto; display: inline-flex; align-items: center; color: #cbd5e1; transition: transform .2s; }
li.open > .ec-mmenu__link .ec-mmenu__chevron { transform: rotate(180deg); }

.ec-mmenu__sub { list-style: none; margin: 0; padding: 0; background: #f8fafc; display: none; }
[data-theme="dark"] .ec-mmenu__sub { background: #0f172a; }
li.open > .ec-mmenu__sub { display: block; }
.ec-mmenu__sub-link {
    display: block !important;
    padding: 10px 18px 10px 48px !important;
    font-size: 1.35rem !important;
    color: #475569 !important; text-decoration: none !important;
    transition: background .12s, color .12s;
    border-bottom: 1px solid #f1f5f9;
}
.ec-mmenu__sub li:last-child .ec-mmenu__sub-link { border-bottom: none; }
.ec-mmenu__sub-link:hover { background: #f1f5f9 !important; color: hsl(var(--primary-h),var(--primary-s),40%) !important; }
[data-theme="dark"] .ec-mmenu__sub-link { color: #94a3b8 !important; border-color: #1e293b; }
[data-theme="dark"] .ec-mmenu__sub-link:hover { background: #1e293b !important; }

.ec-mmenu__footer { padding: 14px 16px; border-top: 1px solid #f1f5f9; flex-shrink: 0; }
[data-theme="dark"] .ec-mmenu__footer { border-color: #334155; }
.ec-mmenu__wa {
    display: inline-flex; align-items: center; gap: 8px;
    color: #16a34a !important; font-weight: 700; font-size: 1.35rem;
    text-decoration: none !important; margin-bottom: 12px; transition: color .15s;
}
.ec-mmenu__wa:hover { color: #15803d !important; }
.ec-mmenu__social { display: flex; gap: 8px; margin-bottom: 10px; }
.ec-mmenu__social-link {
    width: 34px; height: 34px;
    display: inline-flex; align-items: center; justify-content: center;
    background: #f1f5f9; color: #475569 !important; border-radius: 8px;
    text-decoration: none !important; transition: background .15s, color .15s;
}
.ec-mmenu__social-link:hover { background: hsl(var(--primary-h),var(--primary-s),45%); color: #fff !important; }
[data-theme="dark"] .ec-mmenu__social-link { background: #334155; color: #94a3b8 !important; }
.ec-mmenu__logout {
    display: inline-flex; align-items: center; gap: 6px;
    background: none; border: 1.5px solid #e2e8f0; border-radius: 8px;
    padding: 7px 14px; font-size: 1.3rem; font-weight: 600; color: #64748b;
    cursor: pointer; transition: background .15s, border-color .15s, color .15s;
}
.ec-mmenu__logout:hover { background: #fef2f2; border-color: #fca5a5; color: #dc2626; }
[data-theme="dark"] .ec-mmenu__logout { border-color: #334155; color: #94a3b8; }

/* =====================================================
   FILTER BAR — mejoras UX (vista, chips, móvil)
   ===================================================== */

/* ── Sticky filter zone ────────────────────────────── */
.ec-filter-sticky-zone {
    position: relative;
    z-index: 10;
    background: #fff;
    padding: 8px 0 12px;
    margin-bottom: 8px;
}
[data-theme="dark"] .ec-filter-sticky-zone { background: var(--dm-bg, #0f172a); }

/* ── Mobile filter toggle button ───────────────────── */
.ec-filter-mob-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 1.35rem;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    width: 100%;
    margin-bottom: 6px;
    transition: border-color .15s, background .15s;
}
.ec-filter-mob-toggle:hover { border-color: hsl(var(--primary-h),var(--primary-s),var(--primary-l)); }
.ec-filter-mob-toggle--open { border-color: hsl(var(--primary-h),var(--primary-s),var(--primary-l)); background: hsl(var(--primary-h),var(--primary-s),97%); }
.ec-filter-mob-chevron { margin-left: auto; transition: transform .2s; color: #94a3b8; }
.ec-filter-mob-toggle--open .ec-filter-mob-chevron { transform: rotate(180deg); }
[data-theme="dark"] .ec-filter-mob-toggle { background: var(--dm-surface,#1e293b); border-color: var(--dm-border,#334155); color: var(--dm-text,#e2e8f0); }

.ec-filter-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: hsl(var(--primary-h),var(--primary-s),var(--primary-l));
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 9px;
}

/* ── Filter form wrapper (colapsable en móvil) ──────── */
.ec-filter-form-wrap { /* desktop: always visible */ }

@media (max-width: 767px) {
    .ec-filter-mob-toggle { display: flex; }
    .ec-filter-form-wrap {
        max-height: 0;
        overflow: hidden;
        transition: max-height .28s cubic-bezier(.4,0,.2,1);
    }
    .ec-filter-form-wrap--open {
        max-height: 300px;
    }
    .ec-filters {
        flex-wrap: wrap;
        padding: 10px 0 4px;
    }
    .ec-filter-group--price { flex-wrap: wrap; }
}

/* ── Active filter chips ────────────────────────────── */
.ec-active-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 6px 0 10px;
}
.ec-active-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: hsl(var(--primary-h),var(--primary-s),94%);
    border: 1px solid hsl(var(--primary-h),var(--primary-s),82%);
    color: hsl(var(--primary-h),var(--primary-s),30%);
    border-radius: 20px;
    padding: 4px 10px 4px 12px;
    font-size: 1.2rem;
    font-weight: 600;
    white-space: nowrap;
    animation: ec-chip-in .15s ease;
}
@keyframes ec-chip-in {
    from { opacity: 0; transform: scale(.85); }
    to   { opacity: 1; transform: scale(1); }
}
.ec-active-chip__label { line-height: 1; }
.ec-active-chip__remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: hsl(var(--primary-h),var(--primary-s),75%);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    transition: background .12s;
    flex-shrink: 0;
}
.ec-active-chip__remove:hover { background: hsl(var(--primary-h),var(--primary-s),40%); }
[data-theme="dark"] .ec-active-chip { background: #1e293b; border-color: #334155; color: #94a3b8; }

/* ── Results info bar ───────────────────────────────── */
.ec-results-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    padding: 8px 0 8px;
    border-bottom: 1px solid #f1f5f9;
}
[data-theme="dark"] .ec-results-bar { border-color: #334155; }
.ec-results-count {
    font-size: 1.3rem;
    color: #64748b;
    margin: 0;
}
.ec-results-count__range { font-weight: 700; color: #334155; }
.ec-results-count strong { color: hsl(var(--primary-h),var(--primary-s),35%); }
[data-theme="dark"] .ec-results-count { color: #94a3b8; }
[data-theme="dark"] .ec-results-count__range,
[data-theme="dark"] .ec-results-count strong { color: #e2e8f0; }

/* ── View toggle buttons ────────────────────────────── */
.ec-view-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}
.ec-view-btn {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    color: #94a3b8;
    transition: border-color .12s, color .12s, background .12s;
}
.ec-view-btn:hover { border-color: hsl(var(--primary-h),var(--primary-s),var(--primary-l)); color: hsl(var(--primary-h),var(--primary-s),45%); }
.ec-view-btn--active {
    background: hsl(var(--primary-h),var(--primary-s),var(--primary-l));
    border-color: hsl(var(--primary-h),var(--primary-s),var(--primary-l));
    color: #fff;
}
[data-theme="dark"] .ec-view-btn { background: var(--dm-surface,#1e293b); border-color: var(--dm-border,#334155); color: #64748b; }
[data-theme="dark"] .ec-view-btn--active { background: hsl(var(--primary-h),var(--primary-s),45%); color: #fff; border-color: transparent; }

/* ── List view product layout ───────────────────────── */
#ec-products-grid.ec-products-grid--list > .product-col-item {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
}
#ec-products-grid.ec-products-grid--list .ec-product-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
}
#ec-products-grid.ec-products-grid--list .ec-product-card__img-wrap {
    width: 150px;
    min-width: 150px;
    aspect-ratio: 1;
    border-radius: 8px 0 0 8px;
}
#ec-products-grid.ec-products-grid--list .ec-product-card__img {
    height: 100%;
    object-fit: cover;
}
#ec-products-grid.ec-products-grid--list .ec-product-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 14px 16px;
}
#ec-products-grid.ec-products-grid--list .ec-product-card__title {
    font-size: 1.5rem;
    -webkit-line-clamp: 2;
}
#ec-products-grid.ec-products-grid--list .ec-badges {
    top: 8px;
    left: 8px;
}
#ec-products-grid.ec-products-grid--list .ec-btn-quickview { display: none !important; }
#ec-products-grid.ec-products-grid--list .ec-btn-compare,
#ec-products-grid.ec-products-grid--list .ec-btn-wishlist { top: 8px; }

/* ── Grid loading pulse ─────────────────────────────── */
.ec-grid-loading { pointer-events: none; }
.ec-grid-loading .ec-product-card {
    opacity: .5;
    transition: opacity .2s;
}

@media (max-width: 575px) {
    #ec-products-grid.ec-products-grid--list .ec-product-card__img-wrap {
        width: 110px;
        min-width: 110px;
    }
    .ec-results-bar { padding: 6px 0; }
}

/* ── Sticky zone shadow when pinned ─────────────────── */
.ec-filter-sticky-zone {
    box-shadow: none;
    transition: box-shadow .2s;
}
.ec-filter-sticky-zone.is-stuck {
    box-shadow: 0 4px 12px rgba(0,0,0,.07);
}

/* ── Category pills: horizontal scroll on mobile ────── */
@media (max-width: 767px) {
    .ec-category-pills {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 4px;
    }
    .ec-category-pills::-webkit-scrollbar { display: none; }
    .ec-cat-pill { flex-shrink: 0; }
}


/* ══════════════════════════════════════════════════════
   PRODUCT CARD v3 - Premium Redesign 2026
   ══════════════════════════════════════════════════════ */

/* Grid entrance animation */
.product-col-item {
    animation: pcard-in .45s ease both;
}
@keyframes pcard-in {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Card base */
.pcard {
    position: relative;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,.05), 0 4px 14px rgba(0,0,0,.06);
    transition: box-shadow .3s cubic-bezier(.4,0,.2,1), transform .3s cubic-bezier(.4,0,.2,1);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #f1f5f9;
}
.pcard:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,.08), 0 16px 40px rgba(0,0,0,.12);
    transform: translateY(-5px);
    border-color: transparent;
}
/* Sin stock: sin opacidad — el badge "Agotado" ya lo indica */
.pcard--oos { opacity: 1; }

/* Image section */
.pcard__media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: #f8fafc;
    flex-shrink: 0;
}
/* Usar contain para mostrar el producto completo sin recorte */
.pcard__img-link {
    position: relative;
    display: block;
    height: 100%; width: 100%;
}
.pcard__img {
    width: 100%; height: 100%;
    object-fit: contain;
    padding: 6%;
    display: block;
    transition: opacity .35s ease, transform .5s cubic-bezier(.4,0,.2,1);
}
/* Imagen primaria: escala sutil en hover (solo si no hay imagen de hover) */
.pcard:hover .pcard__img--primary { transform: scale(1.04); }

/* ── Segunda imagen (hover swap) ──────────────────────────── */
.pcard__img--hover {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: contain;
    padding: 6%;
    opacity: 0;
    z-index: 2;
    transition: opacity .4s ease;
    pointer-events: none;
}
/* Cuando hay hover image: la primaria se atenúa, la secundaria aparece */
.pcard__img-link--has-hover:hover .pcard__img--primary {
    opacity: 0;
    transform: scale(1.02);
}
.pcard__img-link--has-hover:hover .pcard__img--hover { opacity: 1; }

/* Sin segunda imagen: solo scale */
.pcard__img-link:not(.pcard__img-link--has-hover):hover .pcard__img--primary {
    transform: scale(1.07);
}

.pcard--oos .pcard__img { filter: grayscale(25%); }

/* Badges */
.pcard__badges {
    position: absolute; top: 10px; left: 10px; z-index: 3;
    display: flex; flex-direction: column; gap: 4px; pointer-events: none;
}
.pbadge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 9px; border-radius: 6px;
    font-size: 1.0rem; font-weight: 800; letter-spacing: .05em;
    text-transform: uppercase; line-height: 1.4;
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.pbadge--new      { background: rgba(16,185,129,.88); color: #fff; }
.pbadge--hot      { background: rgba(239,68,68,.92); color: #fff; animation: badge-pulse 2.5s ease infinite; }
.pbadge--oos      { background: rgba(100,116,139,.82); color: #fff; }
.pbadge--variants { background: rgba(99,102,241,.88); color: #fff; }
@keyframes badge-pulse {
    0%,100% { box-shadow: 0 2px 8px rgba(239,68,68,.25); }
    50%     { box-shadow: 0 2px 16px rgba(239,68,68,.55); }
}

/* Wishlist glass button */
.pcard__wish {
    position: absolute; top: 10px; right: 10px; z-index: 3;
    width: 34px; height: 34px; border-radius: 50%;
    background: rgba(255,255,255,.82);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.6); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: #94a3b8; box-shadow: 0 2px 10px rgba(0,0,0,.1);
    transition: color .2s, background .2s, transform .2s, opacity .2s;
    opacity: 0; transform: scale(.8);
}
.pcard:hover .pcard__wish, .pcard__wish[aria-pressed="true"] { opacity: 1; transform: scale(1); }
.pcard__wish[aria-pressed="true"] { color: #ef4444; background: rgba(254,226,226,.9); }
.pcard__wish:hover { color: #ef4444; transform: scale(1.1); }

/* Hover overlay */
.pcard__overlay {
    position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
    padding: 10px;
    background: linear-gradient(to top, rgba(0,0,0,.65) 0%, rgba(0,0,0,.1) 60%, transparent 100%);
    display: flex; align-items: flex-end; gap: 6px;
    transform: translateY(105%);
    transition: transform .28s cubic-bezier(.4,0,.2,1);
}
.pcard:hover .pcard__overlay { transform: translateY(0); }

.pcard__quickview {
    flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 5px;
    background: rgba(255,255,255,.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border: none; border-radius: 8px; padding: 7px 10px;
    font-size: 1.15rem; font-weight: 600; color: #1e293b; cursor: pointer; white-space: nowrap;
    transition: background .15s, transform .15s;
}
.pcard__quickview:hover { background: #fff; transform: scale(1.02); }

.pcard__compare-mini {
    width: 32px; height: 32px; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.75); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border: none; border-radius: 8px; color: #475569; cursor: pointer; transition: background .15s;
}
.pcard__compare-mini:hover { background: #fff; color: hsl(var(--primary-h),var(--primary-s),40%); }
.pcard__compare-mini[aria-pressed="true"] { background: hsl(var(--primary-h),var(--primary-s),90%); color: hsl(var(--primary-h),var(--primary-s),40%); }

/* Body */
.pcard__body { display: flex; flex-direction: column; padding: 12px 14px 14px; flex: 1; gap: 3px; }

.pcard__cat {
    font-size: 10px; font-weight: 600;
    color: hsl(var(--primary-h),var(--primary-s),45%);
    text-transform: uppercase; letter-spacing: .06em; line-height: 1; text-decoration: none;
}

.pcard__title {
    font-size: 13px; font-weight: 500; color: #374151;
    line-height: 1.4; margin: 6px 0 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    min-height: 36px;
}
.pcard__title a { color: inherit; text-decoration: none; transition: color .15s; }
.pcard__title a:hover { color: hsl(var(--primary-h),var(--primary-s),38%); }

.pcard__desc {
    font-size: 1.2rem; color: #94a3b8; line-height: 1.4; margin: 0;
    display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}

.pcard__low-stock {
    display: flex; align-items: center; gap: 7px;
    font-size: 1.1rem; font-weight: 700; color: #ef4444; margin: 2px 0;
}
.pcard__stock-bar { flex: 1; height: 4px; background: #fee2e2; border-radius: 2px; overflow: hidden; }
.pcard__stock-fill { height: 100%; background: linear-gradient(90deg, #fca5a5, #ef4444); border-radius: 2px; }

.pcard__stock-pill { display: inline-flex; align-items: center; gap: 5px; font-size: 1.1rem; color: #10b981; font-weight: 600; margin: 0; }
.pcard__stock-dot { width: 7px; height: 7px; border-radius: 50%; background: #10b981; flex-shrink: 0; }

.pcard__price { display: flex; align-items: baseline; gap: 7px; margin-top: auto; padding-top: 8px; }
.pcard__price-current {
    font-size: 18px; font-weight: 700; line-height: 1; letter-spacing: -.01em;
    color: #1f2937;
}
.pcard__price-old { font-size: 1.25rem; color: #94a3b8; text-decoration: line-through; font-weight: 400; }
.pcard__price-discount {
    font-size: 1.1rem; font-weight: 700; color: #ef4444;
    background: #fee2e2; padding: 1px 7px; border-radius: 5px;
}

/* CTA Button */
.pcard__cta {
    display: flex; align-items: center; justify-content: center; gap: 7px;
    width: 100%; padding: 9px 18px; border-radius: 50px; border: none;
    background: hsl(var(--primary-h),var(--primary-s),var(--primary-l));
    color: #fff; font-size: 1.28rem; font-weight: 700; cursor: pointer; margin-top: 10px;
    position: relative; overflow: hidden;
    transition: opacity .15s, transform .15s;
}
.pcard__cta::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,.15) 0%, transparent 60%);
}
.pcard__cta:hover { opacity: .9; transform: scale(1.02); }
.pcard__cta:active { transform: scale(.97); }
.pcard__cta--added    { background: #10b981 !important; }
.pcard__cta--variants { background: #6366f1; display:flex; align-items:center; justify-content:center; gap:6px; text-decoration:none; }
.pcard__cta--variants:hover { background: #4f46e5; opacity:1; color:#fff; }
.pcard__cta-text { position: relative; }

/* Notify button */
.pcard__notify {
    display: flex; align-items: center; justify-content: center; gap: 7px;
    width: 100%; padding: 8px 18px; border-radius: 50px;
    border: 1.5px solid #e5e7eb; background: transparent; color: #64748b;
    font-size: 1.2rem; font-weight: 600; cursor: pointer; margin-top: 10px;
    transition: border-color .15s, color .15s, background .15s;
}
.pcard__notify:hover {
    border-color: hsl(var(--primary-h),var(--primary-s),55%);
    color: hsl(var(--primary-h),var(--primary-s),38%);
    background: hsl(var(--primary-h),var(--primary-s),97%);
}

/* List view */
#ec-products-grid.ec-products-grid--list > .product-col-item { flex: 0 0 100% !important; max-width: 100% !important; }
#ec-products-grid.ec-products-grid--list .pcard { flex-direction: row; border-radius: 12px; }
#ec-products-grid.ec-products-grid--list .pcard__media { width: 160px; min-width: 160px; aspect-ratio: auto; height: 160px; border-radius: 12px 0 0 12px; }
#ec-products-grid.ec-products-grid--list .pcard__body { flex: 1; padding: 14px 16px; justify-content: space-between; }
#ec-products-grid.ec-products-grid--list .pcard__price-current { font-size: 1.6rem; }
#ec-products-grid.ec-products-grid--list .pcard:hover { transform: translateY(-2px); }

/* Dark mode */
[data-theme="dark"] .pcard { background: var(--dm-surface, #1e293b); border-color: var(--dm-border, #334155); box-shadow: 0 2px 8px rgba(0,0,0,.3); }
[data-theme="dark"] .pcard:hover { box-shadow: 0 8px 32px rgba(0,0,0,.45); border-color: transparent; }
[data-theme="dark"] .pcard__media { background: #0f172a; }
[data-theme="dark"] .pcard__title { color: #e2e8f0; }
[data-theme="dark"] .pcard__desc  { color: #64748b; }
[data-theme="dark"] .pcard__price-current { color: hsl(var(--primary-h),var(--primary-s),62%); }
[data-theme="dark"] .pcard__notify { border-color: #334155; color: #94a3b8; }
[data-theme="dark"] .pcard__notify:hover { background: #1e293b; border-color: hsl(var(--primary-h),var(--primary-s),55%); }

/* Mobile */
@media (max-width: 575px) {
    .pcard { border-radius: 12px; }
    .pcard:hover { transform: none; }
    .pcard__body { padding: 10px 12px 12px; }
    .pcard__title { font-size: 1.25rem; }
    .pcard__price-current { font-size: 1.6rem; }
    .pcard__cta { font-size: 1.15rem; padding: 8px 14px; }
    .pcard__overlay { display: none; }
    .pcard__wish { opacity: 1; transform: scale(1); }
    #ec-products-grid.ec-products-grid--list .pcard__media { width: 110px; min-width: 110px; height: 110px; }
}

/* Skeleton shimmer */
.ec-grid-loading .pcard__media,
.ec-grid-loading .pcard__title,
.ec-grid-loading .pcard__price-current,
.ec-grid-loading .pcard__cta {
    background: linear-gradient(90deg, #f1f5f9 25%, #e8edf5 50%, #f1f5f9 75%) !important;
    background-size: 300% 100% !important;
    animation: sk-shimmer 1.4s ease infinite;
    color: transparent !important; border-color: transparent !important;
    pointer-events: none; border-radius: 8px;
}
.ec-grid-loading .pcard__media { border-radius: 0; }
@keyframes sk-shimmer {
    from { background-position: 200% center; }
    to   { background-position: -200% center; }
}

/* ── ESTANDARIZACIÓN DE IMÁGENES DE PRODUCTO ───────────────
   Todas las imágenes (principal + galería) usan el mismo
   aspect-ratio 1:1 con object-fit:contain para que se vean
   completas sin distorsión, independientemente de su tamaño
   original. Fondo blanco para que no se vea vacío.
   ─────────────────────────────────────────────────────────── */

/* Contenedor imagen principal — aspect-ratio cuadrado */
.product-single-carousel .product-item {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    overflow: hidden;
}

/* Imagen principal: ocupa todo el contenedor sin distorsión */
.product-single-carousel .product-single-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
    display: block;
}

/* Miniaturas — tamaño fijo cuadrado con object-fit:cover */
#carousel-custom-dots .owl-dot {
    overflow: hidden;
}
#carousel-custom-dots .owl-dot img {
    width: 100% !important;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    border-radius: 6px;
}

/* Responsivo: en móvil el carrusel no sea demasiado alto */
@media (max-width: 575px) {
    .product-single-carousel .product-item {
        aspect-ratio: 4 / 3;
    }
}

/* ── Mobile Checkout Optimization 2026 ── */
@media (max-width: 768px) {
    .checkout-container .col-lg-7,
    .checkout-container .col-lg-5 {
        padding: 0 12px;
    }

    /* Larger touch targets */
    .checkout-container input[type="text"],
    .checkout-container input[type="email"],
    .checkout-container input[type="tel"],
    .checkout-container input[type="number"],
    .checkout-container select,
    .checkout-container textarea {
        font-size: 16px !important; /* Prevents iOS zoom */
        padding: 14px 12px !important;
        min-height: 48px;
        border-radius: 8px;
    }

    .checkout-container .btn {
        min-height: 52px;
        font-size: 16px;
        border-radius: 10px;
        font-weight: 600;
    }

    /* Collapsible sections */
    .checkout-container .card {
        border-radius: 12px;
        margin-bottom: 12px;
        box-shadow: 0 1px 3px rgba(0,0,0,.1);
    }

    .checkout-container .card-header {
        padding: 16px;
        font-size: 15px;
        font-weight: 600;
    }

    .checkout-container .card-body {
        padding: 16px;
    }

    /* Better select dropdowns for ubigeo */
    .checkout-container select {
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%236b7280'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 12px center;
        padding-right: 36px !important;
    }

    /* Progress indicator for checkout steps */
    .checkout-steps {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-bottom: 20px;
        padding: 0 16px;
    }

    .checkout-steps .step {
        flex: 1;
        height: 4px;
        background: #e5e7eb;
        border-radius: 2px;
        transition: background .3s;
    }

    .checkout-steps .step.active {
        background: #2563eb;
    }

    .checkout-steps .step.completed {
        background: #16a34a;
    }

    /* Sticky order summary on mobile */
    .checkout-container .order-summary-mobile {
        position: sticky;
        bottom: 0;
        background: #fff;
        border-top: 1px solid #e5e7eb;
        padding: 12px 16px;
        box-shadow: 0 -4px 12px rgba(0,0,0,.1);
        z-index: 100;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .checkout-container .order-summary-mobile .total {
        font-size: 18px;
        font-weight: 700;
        color: #1f2937;
    }

    .checkout-container .order-summary-mobile .btn-pay {
        background: #2563eb;
        color: #fff;
        border: none;
        padding: 12px 24px;
        border-radius: 10px;
        font-weight: 600;
        font-size: 15px;
    }

    /* Form group spacing */
    .checkout-container .form-group {
        margin-bottom: 16px;
    }

    .checkout-container label {
        font-size: 13px;
        font-weight: 600;
        color: #374151;
        margin-bottom: 6px;
    }

    /* Ubigeo grid on mobile: 1 column instead of 3 */
    .checkout-container .ubigeo-row {
        flex-direction: column;
    }

    .checkout-container .ubigeo-row > div {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
    }

    /* Radio buttons and checkboxes - larger targets */
    .checkout-container input[type="radio"],
    .checkout-container input[type="checkbox"] {
        width: 20px;
        height: 20px;
        margin-right: 10px;
    }

    /* Payment method cards */
    .checkout-container .payment-method {
        padding: 16px;
        border: 2px solid #e5e7eb;
        border-radius: 12px;
        margin-bottom: 10px;
        cursor: pointer;
        transition: border-color .2s;
    }

    .checkout-container .payment-method.selected {
        border-color: #2563eb;
        background: #eff6ff;
    }

    /* Item summary compact */
    .checkout-container .cart-item-mobile {
        display: flex;
        gap: 12px;
        padding: 12px 0;
        border-bottom: 1px solid #f3f4f6;
    }

    .checkout-container .cart-item-mobile img {
        width: 60px;
        height: 60px;
        object-fit: cover;
        border-radius: 8px;
    }

    .checkout-container .cart-item-mobile .item-info {
        flex: 1;
    }

    .checkout-container .cart-item-mobile .item-name {
        font-size: 14px;
        font-weight: 500;
        color: #1f2937;
        line-height: 1.3;
    }

    .checkout-container .cart-item-mobile .item-price {
        font-size: 15px;
        font-weight: 700;
        color: #1f2937;
    }

    .checkout-container .cart-item-mobile .item-qty {
        font-size: 13px;
        color: #6b7280;
    }
}

/* Focus states for accessibility */
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Skip to content link */
.skip-to-content {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 10000;
    padding: 8px 16px;
    background: #2563eb;
    color: #fff;
    font-weight: 600;
}
.skip-to-content:focus {
    left: 8px;
    top: 8px;
}

/* ══ CHECKOUT WIZARD — Step-by-step ══ */
.ec-progress-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 24px;
    padding: 16px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.ec-progress-step {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 8px;
    transition: background .15s;
}
.ec-progress-step:hover { background: #f1f5f9; }
.ec-progress-num {
    width: 28px; height: 28px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700;
    background: #e5e7eb; color: #6b7280;
    transition: all .2s;
}
.ec-progress-step--active .ec-progress-num {
    background: hsl(var(--primary-h,250),var(--primary-s,50%),var(--primary-l,50%));
    color: #fff;
}
.ec-progress-step--done .ec-progress-num {
    background: #22c55e; color: #fff;
}
.ec-progress-label { font-size: 12px; font-weight: 600; color: #9ca3af; }
.ec-progress-step--active .ec-progress-label { color: #1f2937; }
.ec-progress-step--done .ec-progress-label { color: #16a34a; }
.ec-progress-line {
    flex: 1; height: 2px; background: #e5e7eb; margin: 0 4px;
    min-width: 20px; max-width: 60px; transition: background .2s;
}
.ec-progress-line--done { background: #22c55e; }

/* Step navigation buttons */
.ec-step-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    margin-top: 16px;
    border-top: 1px solid #f1f5f9;
}
.ec-step-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s;
    border: none;
    text-decoration: none;
}
.ec-step-btn--next {
    background: hsl(var(--primary-h,250),var(--primary-s,50%),var(--primary-l,50%));
    color: #fff;
}
.ec-step-btn--next:hover { filter: brightness(1.1); transform: translateY(-1px); }
.ec-step-btn--back {
    background: transparent;
    color: #6b7280;
}
.ec-step-btn--back:hover { color: #1f2937; background: #f1f5f9; }

/* Step summary (collapsed) */
.ec-step-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all .15s;
}
.ec-step-summary:hover { border-color: #94a3b8; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.ec-step-summary__num {
    width: 24px; height: 24px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700;
    background: #22c55e; color: #fff; flex-shrink: 0;
}
.ec-step-summary__info { flex: 1; min-width: 0; }
.ec-step-summary__info strong { display: block; font-size: 12px; color: #374151; }
.ec-step-summary__info span { font-size: 12px; color: #6b7280; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.ec-step-summary__edit { font-size: 12px; color: hsl(var(--primary-h,250),var(--primary-s,50%),var(--primary-l,50%)); font-weight: 600; flex-shrink: 0; }

/* Mobile: hide right panel until step 4 */
@media (max-width: 991px) {
    .ec-mobile-step4 { display: none !important; }
}
@media (max-width: 640px) {
    .ec-progress-label { display: none; }
    .ec-progress-bar { padding: 12px; }
    .ec-step-nav { flex-direction: column; gap: 8px; }
    .ec-step-btn { width: 100%; text-align: center; }
}
