body.ecommerce {
    background: #f6f7f9;
    padding-bottom: 0;
}

.ecommerce .site-logo .site-logo-img {
    display: block;
    height: 42px;
    max-width: 220px;
    width: auto;
    object-fit: contain;
}

.ecommerce .reduce-header .site-logo .site-logo-img {
    height: 32px;
}

.store-shell .container {
    max-width: 1180px;
}

.mobile-bottom-nav {
    display: none;
}

.store-section-title {
    align-items: flex-end;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.store-section-title h2 {
    color: #333;
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}

.store-section-title p {
    color: #777;
    margin: 6px 0 0;
}

.store-product-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.store-product-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.04);
    min-width: 0;
    overflow: hidden;
}

.store-product-card-image {
    background: #f1f1f1;
    display: block;
    height: 240px;
    overflow: hidden;
}

.store-product-card-image img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.store-product-card-body {
    padding: 16px;
}

.store-product-card h3 {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 8px;
}

.store-product-card h3 a {
    color: #333;
}

.store-product-meta {
    color: #888;
    font-size: 13px;
    margin-bottom: 12px;
}

.store-product-card-footer {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.store-price {
    color: #e84d1c;
    font-size: 20px;
    font-weight: 700;
}

.store-cta {
    border-radius: 9px;
    font-weight: 600;
    padding: 10px 14px;
}

.store-mobile-panel {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.04);
    padding: 18px;
}

.store-category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.store-category-pill {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 999px;
    color: #555;
    display: inline-flex;
    font-weight: 600;
    padding: 9px 14px;
}

.store-sort-row {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 18px;
}

.store-sort-row .form-control {
    max-width: 230px;
}

.store-product-detail {
    align-items: flex-start;
    display: grid;
    gap: 26px;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
}

.store-product-detail-media,
.store-product-detail-info,
.store-product-tabs,
.checkout-modern-card,
.checkout-summary-modern {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.04);
}

.store-product-detail-media {
    overflow: hidden;
    padding: 16px;
}

.store-product-detail-media img {
    border-radius: 14px;
    max-height: 560px;
    object-fit: cover;
    width: 100%;
}

.store-product-detail-info {
    padding: 22px;
}

.store-product-detail-info h1 {
    color: #333;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 14px;
}

.store-product-detail-price {
    align-items: baseline;
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.store-product-detail-price strong {
    color: #e84d1c;
    font-size: 30px;
}

.store-product-detail-price del {
    color: #999;
    font-size: 18px;
}

.store-stock-badge {
    background: #eef9f0;
    border-radius: 999px;
    color: #2f8d46;
    display: inline-flex;
    font-weight: 700;
    margin-bottom: 16px;
    padding: 7px 12px;
}

.store-product-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.store-product-detail-actions .btn {
    border-radius: 10px;
    padding: 12px 18px;
}

.store-product-detail-actions .store-add-btn {
    flex: 1 1 auto;
    min-width: max-content;
}

.store-product-detail-actions .store-add-btn .store-add-btn-inner {
    justify-content: center;
    min-height: 1.25em;
    width: 100%;
}

.store-product-detail-actions > .btn.btn-default {
    flex: 0 1 auto;
}

.store-product-tabs {
    margin-top: 22px;
    padding: 20px;
}

.store-product-tabs .datasheet {
    width: 100%;
}

.checkout-modern {
    display: grid;
    gap: 22px;
    grid-template-columns: minmax(0, 1fr) 330px;
}

.checkout-modern-card {
    margin-bottom: 16px;
    overflow: hidden;
}

.checkout-modern-card .panel-heading {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 16px 18px;
}

.checkout-modern-card .panel-title a {
    color: #333;
    display: block;
    font-size: 18px;
    font-weight: 700;
}

.checkout-modern-card .panel-body {
    padding: 18px;
}

.checkout-modern-card .form-control {
    border-radius: 9px;
    min-height: 44px;
}

.checkout-option {
    align-items: flex-start;
    border: 1px solid #eee;
    border-radius: 12px;
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    padding: 12px;
}

.checkout-option input {
    margin-top: 3px;
}

.checkout-confirm-item {
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
    display: grid;
    gap: 12px;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    padding: 12px 0;
}

.checkout-confirm-item:first-child {
    padding-top: 0;
}

.checkout-confirm-item img {
    border-radius: 10px;
    height: 64px;
    object-fit: cover;
    width: 64px;
}

.checkout-confirm-item h3 {
    font-size: 16px;
    margin: 0 0 5px;
}

.checkout-confirm-item p {
    color: #888;
    margin: 0;
}

.checkout-confirm-item strong {
    color: #e84d1c;
}

.checkout-summary-modern {
    padding: 18px;
    position: sticky;
    top: 20px;
}

.checkout-summary-modern h2 {
    font-size: 22px;
    margin: 0 0 16px;
}

.checkout-summary-line {
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    padding: 11px 0;
}

.checkout-summary-line strong {
    color: #333;
}

.checkout-summary-total {
    border-bottom: 0;
}

.checkout-summary-total strong {
    color: #e84d1c;
    font-size: 24px;
}

@media (max-width: 991px) {
    body.ecommerce {
        padding-bottom: 74px;
    }

    .pre-header {
        display: none;
    }

    .header {
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
        position: sticky;
        top: 0;
        z-index: 1000;
    }

    .header > .container {
        align-items: center;
        display: flex;
        min-height: 62px;
    }

    .header .site-logo {
        flex: 1;
        margin: 0;
        padding: 0;
    }

    .header .mobi-toggler,
    .header .top-cart-block {
        display: none !important;
    }

    .header .top-cart-info {
        display: none;
    }

    .header .top-cart-content-wrapper {
        display: none !important;
    }

    .header .header-navigation {
        background: #fff;
        border-top: 1px solid #eee;
        display: none !important;
        float: none;
        left: 0;
        padding: 12px 15px;
        position: absolute;
        right: 0;
        top: 62px;
        width: 100%;
    }

    .header .header-navigation ul,
    .header .header-navigation li {
        display: block;
        float: none;
    }

    .header .header-navigation li a {
        border-radius: 10px;
        display: block;
        padding: 13px 12px;
    }

    .header .menu-search {
        display: none !important;
    }

    .mobile-bottom-nav {
        align-items: center;
        background: #fff;
        border-top: 1px solid #e9e9e9;
        bottom: 0;
        box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08);
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        left: 0;
        min-height: 68px;
        position: fixed;
        right: 0;
        z-index: 1100;
    }

    .mobile-bottom-nav a {
        color: #777;
        font-size: 12px;
        font-weight: 600;
        text-align: center;
    }

    .mobile-bottom-nav i {
        display: block;
        font-size: 19px;
        margin-bottom: 4px;
    }

    .mobile-bottom-nav a.active,
    .mobile-bottom-nav a:focus,
    .mobile-bottom-nav a:hover {
        color: #e84d1c;
    }

    .brands,
    .pre-footer {
        display: none;
    }

    .store-product-detail,
    .checkout-modern {
        display: block;
    }

    .checkout-summary-modern {
        margin-top: 18px;
        position: static;
    }
}

@media (max-width: 767px) {
    .main {
        padding-top: 18px;
    }

    .breadcrumb {
        background: transparent;
        margin-bottom: 14px;
        padding-left: 0;
    }

    .title-wrapper {
        padding: 22px 0;
    }

    .title-wrapper h1 {
        font-size: 26px;
    }

    .store-section-title {
        align-items: flex-start;
        display: block;
    }

    .store-section-title h2 {
        font-size: 24px;
    }

    .store-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .store-product-card-image {
        height: 165px;
    }

    .store-product-card-body {
        padding: 12px;
    }

    .store-product-card h3 {
        font-size: 15px;
    }

    .store-product-card-footer {
        align-items: flex-start;
        display: block;
    }

    .store-price {
        display: block;
        font-size: 18px;
        margin-bottom: 10px;
    }

    .store-cta {
        display: block;
        width: 100%;
    }

    .store-mobile-panel {
        margin-bottom: 16px;
        padding: 14px;
    }

    .store-sort-row {
        align-items: flex-start;
        display: block;
    }

    .store-sort-row .form-control {
        max-width: none;
        width: 100%;
    }

    .store-product-detail-media,
    .store-product-detail-info,
    .store-product-tabs {
        border-radius: 14px;
        margin-bottom: 14px;
        padding: 14px;
    }

    .store-product-detail-info h1 {
        font-size: 24px;
    }

    .store-product-detail-price strong {
        font-size: 28px;
    }

    .store-product-detail-actions {
        display: block;
    }

    .store-product-detail-actions .btn {
        display: block;
        margin-bottom: 10px;
        width: 100%;
    }

    .checkout-modern-card .panel-heading,
    .checkout-modern-card .panel-body {
        padding: 14px;
    }

    .checkout-modern-card .btn,
    .checkout-summary-modern .btn {
        display: block;
        margin-bottom: 10px;
        width: 100%;
    }

    .checkout-confirm-item {
        grid-template-columns: 58px minmax(0, 1fr);
    }

    .checkout-confirm-item strong {
        grid-column: 1 / -1;
        text-align: right;
    }
}

@media (max-width: 420px) {
    .store-product-grid {
        grid-template-columns: 1fr;
    }

    .store-product-card-image {
        height: 240px;
    }
}

.store-flash-alert {
    margin-top: 12px;
}

.store-flash-alert .alert {
    border-radius: 10px;
    margin-bottom: 0;
}

.store-add-to-cart-form {
    display: inline-block;
}

/* Tarjetas: boton a ancho del footer */
.store-product-card-footer .store-add-to-cart-form .btn {
    width: 100%;
}

/* Detalle: form a ancho de columna */
.store-product-detail-info .store-add-to-cart-form {
    display: block;
    max-width: 100%;
    width: 100%;
}

.store-product-card-footer .store-add-to-cart-form {
    flex: 1;
}

.mobile-bottom-nav a {
    position: relative;
}

.mobile-nav-badge {
    align-items: center;
    background: #e84d1c;
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: 10px;
    font-weight: 700;
    height: 18px;
    justify-content: center;
    line-height: 1;
    min-width: 18px;
    padding: 0 5px;
    position: absolute;
    right: 18px;
    top: 6px;
}

/* Mini carrito: lista con scroll nativo (evita slimScroll sobre .scroller con panel oculto) */
.header .top-cart-content .store-mini-cart-items {
    margin: 0;
    max-height: 220px;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0 8px;
}

/* Mini carrito (escritorio): z-index alto para no quedar tapado por el nav; clic + hover */
@media (min-width: 992px) {
    .ecommerce.store-shell .header .top-cart-block {
        position: relative;
        z-index: 10020;
    }

    .header .top-cart-content-wrapper {
        margin-top: -12px;
        padding-top: 12px;
    }

    .header .top-cart-block:hover .top-cart-content,
    .header .top-cart-block.is-open .top-cart-content,
    .header .top-cart-content-wrapper:hover .top-cart-content {
        display: block !important;
    }
}

.header .top-cart-block .fa-shopping-cart {
    cursor: pointer;
}

/* Estado de carga al agregar al carrito */
.store-add-btn {
    min-height: 44px;
    min-width: 108px;
    overflow: hidden;
    position: relative;
}

.store-add-btn-inner {
    align-items: center;
    display: inline-flex;
    gap: 8px;
    justify-content: center;
    position: relative;
}

.store-add-btn-label {
    display: inline-flex;
    transition: opacity 0.15s ease;
}

/* Loader centrado sobre el boton; oculto por defecto (sin display:none por conflictos con flex/theme) */
.store-add-btn-loader {
    align-items: center;
    display: inline-flex !important;
    gap: 6px;
    justify-content: center;
    left: 50%;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    visibility: hidden;
    white-space: nowrap;
}

.store-add-to-cart-form.is-submitting .store-add-btn-loader {
    opacity: 1;
    visibility: visible;
}

/* Label oculto con opacity para no colapsar el boton al mostrar el loader */
.store-add-to-cart-form.is-submitting .store-add-btn-label {
    opacity: 0;
    pointer-events: none;
}

.store-add-to-cart-form.is-submitting .store-add-btn {
    cursor: progress;
    opacity: 0.92;
}

.store-product-card-footer .store-add-btn {
    padding-left: 10px;
    padding-right: 10px;
}

.store-add-to-cart-form.is-submitting {
    pointer-events: none;
}

.cart-card-modern.is-cart-syncing {
    opacity: 0.76;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

/* Toastr: encima del header/nav movil y alineado con la marca */
#toast-container {
    z-index: 100060;
}

#toast-container > .toast {
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.2);
}

#toast-container > .toast-success {
    background-color: #e84d1c;
    background-image: none !important;
}

#toast-container > .toast-error {
    background-color: #c0392b;
    background-image: none !important;
}

#toast-container > .toast-warning {
    background-color: #d68910;
    background-image: none !important;
}

#toast-container > .toast-info {
    background-color: #34495e;
    background-image: none !important;
}

.toast-progress {
    background-color: rgba(255, 255, 255, 0.45) !important;
}
