/* =========================================================
   PREMIUM ECOMMERCE UI
========================================================= */

:root{

    /* COLORS */
    --primary:#00bfa6;
    --primary-dark:#009688;

    --secondary:#111827;
    --accent:#7c3aed;

    --danger:#ef4444;

    --text:#1f2937;
    --text-light:#6b7280;

    --white:#ffffff;

    --bg:#f5f7fb;
    --bg-card:#ffffff;

    --border:#e5e7eb;

    /* SHADOWS */
    --shadow-sm:0 4px 12px rgba(0,0,0,.05);
    --shadow-md:0 10px 30px rgba(0,0,0,.08);
    --shadow-lg:0 20px 50px rgba(0,0,0,.12);

    /* EFFECTS */
    --radius:18px;
    --transition:.35s cubic-bezier(.4,0,.2,1);
}


/* =========================================================
   HEADER
========================================================= */

.headerRegister,
.header-primary{
    background:
    linear-gradient(135deg,#00bfa6 0%,#009688 100%);

    color:#fff;

    border:none;

    box-shadow:0 4px 20px rgba(0,150,136,.25);
}

.headerUpdate{
    background:
    linear-gradient(135deg,#3b82f6 0%,#2563eb 100%);
}

/* =========================================================
   SIDEBAR
========================================================= */

.app-sidebar{
    background:#0f172a;
    box-shadow:4px 0 20px rgba(0,0,0,.08);
}

.app-sidebar__user-avatar{
    width:52px;
    height:52px;

    border-radius:50%;

    border:3px solid rgba(255,255,255,.15);

    object-fit:cover;
}

.app-sidebar__toggle{
    display:flex;
    justify-content:center;
    align-items:center;

    font-size:16pt;

    transition:var(--transition);
}

.app-sidebar__toggle:hover{
    transform:scale(1.08);
}

.app-sidebar__toggle::before{
    display:none;
}

/* =========================================================
   UTILITIES
========================================================= */

.textcenter{ text-align:center; }
.textright{ text-align:right; }
.textleft{ text-align:left; }

.required{
    color:#ef4444;
    font-weight:700;
}

/* =========================================================
   LOADING
========================================================= */

#divLoading{
    position:fixed;
    inset:0;

    display:none;
    justify-content:center;
    align-items:center;

    z-index:9999;

    backdrop-filter:blur(6px);

    background:rgba(255,255,255,.55);
}

#divLoading img{
    width:70px;
    height:70px;

    animation:float 1.5s infinite ease-in-out;
}

@keyframes float{
    0%,100%{ transform:translateY(0); }
    50%{ transform:translateY(-10px); }
}

/* =========================================================
   PRODUCT CARD
========================================================= */

.block2{
    position:relative;

    height:100%;

    overflow:hidden;

    display:flex;
    flex-direction:column;

    background:rgba(255,255,255,.85);

    backdrop-filter:blur(12px);

    border:1px solid rgba(255,255,255,.35);

    border-radius:var(--radius);

    box-shadow:var(--shadow-sm);

    transition:var(--transition);
}

.block2:hover{
    transform:translateY(-10px);

    box-shadow:var(--shadow-lg);
}

/* glow effect */
.block2::before{
    content:"";

    position:absolute;
    inset:0;

    background:
    linear-gradient(
        135deg,
        rgba(255,255,255,.15),
        transparent
    );

    pointer-events:none;
}

/* IMAGE */

.block2-pic{
    position:relative;

    width:100%;
    height:300px;

    overflow:hidden;

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

    background:
    linear-gradient(
        180deg,
        #ffffff 0%,
        #f3f4f6 100%
    );
}

.block2-pic img{
    max-width:100%;
    max-height:100%;

    object-fit:contain;

    transition:transform .6s ease;
}

.block2:hover .block2-pic img{
    transform:scale(1.08);
}

/* BUTTON */

.block2-btn{
    position:absolute;
    left:50%;
    top:50%;

    transform:
    translate(-50%,20px);

    opacity:0;

    padding:12px 22px;

    border-radius:999px;

    background:
    linear-gradient(
        135deg,
        #111827,
        #1f2937
    );

    color:#fff;

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

    letter-spacing:.5px;

    transition:var(--transition);

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

.block2:hover .block2-btn{
    opacity:1;
    transform:translate(-50%,-50%);
}

/* CONTENT */

.block2-txt{
    flex:1;

    display:flex;
    flex-direction:column;
    justify-content:space-between;

    padding:18px;
}

.js-name-b2{
    min-height:50px;

    overflow:hidden;

    color:var(--text);

    font-size:15px;
    font-weight:600;
    line-height:1.5;

    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
}

/* PRICE */

.stext-105{
    margin-top:12px;

    color:var(--primary-dark);

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

/* =========================================================
   PRODUCT DETAIL
========================================================= */

.sec-product-detail{
    padding:60px 0;
}

.wrap-pic-w{
    background:#fff;

    border-radius:24px;

    padding:30px;

    box-shadow:var(--shadow-md);
}

.wrap-pic-w img{
    width:100%;
    max-height:480px;

    object-fit:contain;
}

/* title */

.js-name-detail{
    font-size:34px;
    font-weight:700;
    line-height:1.2;

    color:#111827;

    margin-bottom:15px;
}

/* price */

.mtext-106{
    display:block;

    margin-bottom:18px;

    font-size:34px;
    font-weight:800;

    color:var(--primary-dark);
}

/* description */

.stext-102{
    color:var(--text-light);

    line-height:1.9;
}

/* button add cart */

.size-101{
    height:52px;

    border:none;
    border-radius:14px;

    padding:0 28px;

    background:
    linear-gradient(
        135deg,
        #00bfa6,
        #009688
    );

    color:#fff;

    font-weight:600;

    transition:var(--transition);

    box-shadow:
    0 10px 25px rgba(0,150,136,.25);
}

.size-101:hover{
    transform:translateY(-2px);

    box-shadow:
    0 16px 35px rgba(0,150,136,.35);
}

/* =========================================================
   SLIDER HERO
========================================================= */

.section-slide .item-slick1{
    position:relative;

    height:520px;
    min-height:520px;

    background-size:cover;
    background-position:center;
}

.section-slide .item-slick1::before{
    content:"";

    position:absolute;
    inset:0;

    background:
    linear-gradient(
        rgba(0,0,0,.25),
        rgba(0,0,0,.45)
    );
}

/* =========================================================
   TITLES
========================================================= */

.ltext-101,
.ltext-103,
.section-title{
    font-weight:700;
    letter-spacing:-.5px;
}

/* =========================================================
   ERROR PAGE
========================================================= */

.page-error{
    min-height:100vh;

    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
}

.page-error h1{
    font-size:120px;
    font-weight:800;

    background:
    linear-gradient(
        135deg,
        #ef4444,
        #dc2626
    );

    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
}

/* =========================================================
   GRID
========================================================= */

.isotope-grid{
    display:flex;
    flex-wrap:wrap;
}

.isotope-item{
    width:20%;
    flex:0 0 20%;
    max-width:20%;

    padding:12px;
}

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

@media(max-width:1200px){

    .isotope-item{
        width:25%;
        flex:0 0 25%;
        max-width:25%;
    }
}

@media(max-width:992px){

    .isotope-item{
        width:33.33%;
        flex:0 0 33.33%;
        max-width:33.33%;
    }

    .section-slide .item-slick1{
        height:420px;
        min-height:420px;
    }
}

@media(max-width:768px){

    .isotope-item{
        width:50%;
        flex:0 0 50%;
        max-width:50%;
    }

    .section-slide .item-slick1{
        height:320px;
        min-height:320px;
    }

    .js-name-detail{
        font-size:28px;
    }

    .mtext-106{
        font-size:28px;
    }

    .wrap-pic-w{
        padding:20px;
    }
}

@media(max-width:576px){

    .isotope-item{
        width:100%;
        flex:0 0 100%;
        max-width:100%;
    }

    .section-slide .item-slick1{
        height:240px;
        min-height:240px;
    }

    .section-slide h2{
        font-size:30px !important;
    }

    .section-slide span{
        font-size:14px !important;
    }

    .block2-pic{
        height:240px;
    }

    .js-name-detail{
        font-size:24px;
    }

    .mtext-106{
        font-size:24px;
    }
}

/* =========================================================
   CART PREMIUM UI
========================================================= */

.table-shopping-cart{
    width:100%;
    border-collapse:separate;
    border-spacing:0 14px;
}

.table-shopping-cart tr{
    background:var(--bg-card);
    box-shadow:var(--shadow-sm);
    border-radius:var(--radius);

    transition:var(--transition);
}

.table-shopping-cart tr:hover{
    transform:scale(1.01);
    box-shadow:var(--shadow-md);
}

.table_head{
    background:transparent !important;
    box-shadow:none !important;
}

.table_head th{
    padding:15px;
    font-size:13px;
    text-transform:uppercase;
    color:var(--text-light);
    letter-spacing:1px;
}

/* CELDAS */
.table-shopping-cart td{
    padding:18px;
    vertical-align:middle;
}

/* PRODUCT IMAGE */
.table-shopping-cart .column-1 img{
    width:70px;
    height:70px;

    border-radius:14px;

    object-fit:cover;

    box-shadow:var(--shadow-sm);
}

/* PRODUCT NAME */
.table-shopping-cart .column-2{
    font-weight:600;
    color:var(--text);
}

/* PRICE */
.table-shopping-cart .column-3,
.table-shopping-cart .column-5{
    font-weight:700;
    color:var(--primary-dark);
}

/* QUANTITY CONTROL */
.wrap-num-product{
    display:flex;
    align-items:center;

    background:#f9fafb;

    border-radius:999px;

    overflow:hidden;

    box-shadow:inset 0 0 0 1px var(--border);
}

.btn-num-product-down,
.btn-num-product-up{
    width:38px;
    height:38px;

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

    cursor:pointer;

    transition:var(--transition);
}

.btn-num-product-down:hover,
.btn-num-product-up:hover{
    background:var(--primary);
    color:#fff;
}

.num-product{
    width:60px;

    border:none;
    outline:none;

    text-align:center;

    background:transparent;

    font-weight:600;
}

/* REMOVE BUTTON */
.how-itemcart1{
    cursor:pointer;
    transition:var(--transition);
}

.how-itemcart1:hover{
    transform:scale(1.1);
    opacity:.8;
}

/* SUMMARY BOX */
.bor10{
    background:var(--bg-card);

    border-radius:var(--radius);

    box-shadow:var(--shadow-md);

    border:none !important;
}

/* TOTAL TEXT */
#subTotalCompra,
#totalCompra{
    font-size:20px;
    font-weight:800;
    color:var(--primary-dark);
}

/* CHECKOUT BUTTON */
#btnComprar{
    background:linear-gradient(135deg,var(--primary),var(--primary-dark));

    border-radius:14px;

    font-weight:600;

    box-shadow:0 12px 25px rgba(0,150,136,.25);

    transition:var(--transition);
}

#btnComprar:hover{
    transform:translateY(-3px);

    box-shadow:0 18px 35px rgba(0,150,136,.35);
}
/* =========================================================
   CART FINAL FIX (MODAL STYLE REAL + CLEAN SPACING)
========================================================= */

/* CONTENEDOR GENERAL (efecto modal real) */
.wrap-table-shopping-cart{
    padding: 16px;
    background: rgba(255,255,255,.45);
    backdrop-filter: blur(16px);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

/* TABLA BASE */
.table-shopping-cart{
    width:100%;
    border-collapse:separate;
    border-spacing:0 16px; /* separación real entre productos */
    background: transparent;
}

/* FILA COMO CARD REAL (MEJOR QUE TABLE ROW) */
.table-shopping-cart tbody tr{
    display: table-row;
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(229,231,235,.7);
    border-radius: var(--radius);

    box-shadow: var(--shadow-sm);

    transition: var(--transition);
}

/* HOVER SUAVE SIN SALTO BRUSCO */
.table-shopping-cart tbody tr:hover{
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* CELDAS MÁS AIREADAS (ESTO ARREGLA EL “ALTO ENTRE PRODUCTOS”) */
.table-shopping-cart td{
    padding: 22px 18px;
    vertical-align: middle;
}

/* IMAGEN MÁS PREMIUM */
.table-shopping-cart .column-1 img{
    width: 78px;
    height: 78px;
    border-radius: 16px;
    object-fit: cover;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

/* NOMBRE PRODUCTO */
.table-shopping-cart .column-2{
    font-weight: 600;
    color: var(--text);
    font-size: 15px;
}

/* PRECIOS */
.table-shopping-cart .column-3,
.table-shopping-cart .column-5{
    font-weight: 800;
    color: var(--primary-dark);
}

/* CANTIDAD (MEJOR CENTRADO) */
.wrap-num-product{
    display:flex;
    align-items:center;
    justify-content:center;

    background: #f3f4f6;
    border-radius: 999px;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px var(--border);
}

/* BOTONES + - */
.btn-num-product-down,
.btn-num-product-up{
    width: 38px;
    height: 38px;
    font-weight: 700;
}

/* INPUT */
.num-product{
    width: 55px;
    font-size: 15px;
    font-weight: 600;
    text-align:center;
}

/* ELIMINAR */
.how-itemcart1{
    transition: var(--transition);
}

.how-itemcart1:hover{
    transform: scale(1.12);
    opacity: .7;
}

/* TOTAL (ESTILO MODAL CONSISTENTE) */
.bor10{
    background: rgba(255,255,255,.88) !important;
    backdrop-filter: blur(16px);
    border: 1px solid rgba(229,231,235,.6) !important;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

/* TOTAL TEXTO MÁS CLARO Y PREMIUM */
#subTotalCompra,
#totalCompra{
    font-size: 22px;
    font-weight: 900;
    color: var(--primary-dark);
}

/* BOTÓN FINAL */
#btnComprar{
    border-radius: 14px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 12px 25px rgba(0,150,136,.25);
}

#btnComprar:hover{
    transform: translateY(-3px);
    box-shadow: 0 18px 35px rgba(0,150,136,.35);
}


/* ============================================
   OFERTAS - 5 CARDS POR FILA
   ============================================ */

.product-grid-5 {
    display: flex;
    flex-wrap: wrap;
    margin-right: -10px;
    margin-left: -10px;
}

.col-item-5 {
    flex: 0 0 20%;
    max-width: 20%;
    padding-right: 10px;
    padding-left: 10px;
}

.badge-oferta {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #e74c3c;
    color: #fff;
    padding: 5px 12px;
    border-radius: 15px;
    font-weight: 700;
    font-size: 12px;
    z-index: 10;
}

.precio-oferta {
    color: #e74c3c;
    font-weight: 700;
    font-size: 15px;
    display: block;
}

.precio-original {
    text-decoration: line-through;
    color: #999;
    font-size: 12px;
    display: block;
}

.ahorro-badge {
    font-size: 11px;
    color: #27ae60;
    font-weight: 600;
}

@media (max-width: 1200px) {
    .col-item-5 { flex: 0 0 25%; max-width: 25%; }
}
@media (max-width: 992px) {
    .col-item-5 { flex: 0 0 33.333%; max-width: 33.333%; }
}
@media (max-width: 768px) {
    .col-item-5 { flex: 0 0 50%; max-width: 50%; }
}
@media (max-width: 576px) {
    .col-item-5 { flex: 0 0 100%; max-width: 100%; }
}

/* =========================================================
   SIDECART LATERAL MODERNIZADO
========================================================= */

.wrap-header-cart{
    width:420px;
    max-width:100%;
    
    background:#ffffff;
    padding:25px;
    
    overflow-y:auto;

    /* Sombra suave en lugar de borde */
    box-shadow: -8px 0 35px rgba(0,0,0,.12);

    border-radius:0 20px 20px 0;

    transition:all .3s ease;
}

/* ITEMS */
.header-cart-wrapitem{
    display:flex;
    flex-direction:column;
    gap:15px;
}

/* CARD PRODUCTO */
.header-cart-item{
    display:flex;
    align-items:center;
    gap:14px;

    padding:12px;
    border-radius:16px;

    background:#fdfdfd;
    border:1px solid #eee;

    transition:.3s ease;
}

.header-cart-item:hover{
    box-shadow:0 8px 18px rgba(0,0,0,.08);
}

/* IMAGEN */
.header-cart-item-img{
    width:75px;
    height:75px;

    border-radius:14px;

    overflow:hidden;

    flex-shrink:0;

    cursor:pointer;

    background:#fff;

    box-shadow:0 2px 8px rgba(0,0,0,.06);
    transition:.3s ease;
}

.header-cart-item-img:hover{
    transform:scale(1.05);
}

.header-cart-item-img img{
    width:100%;
    height:100%;
    object-fit:cover;
}

/* TEXTO */
.header-cart-item-txt{
    flex:1;
}

.header-cart-item-name{
    display:block;

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

    color:#111827;

    margin-bottom:6px;

    line-height:1.4;
}

/* PRECIO */
.header-cart-item-info{
    display:inline-block;
    padding:5px 12px;
    border-radius:999px;

    background:#e0f7f4;
    color:#009688;

    font-size:13px;
    font-weight:700;
}

/* TOTAL */
.header-cart-total{
    margin-top:25px;

    padding:18px;

    border-radius:16px;

    background:#f0fdfb;

    text-align:center;

    font-size:24px;
    font-weight:800;

    color:#009688;

    box-shadow:0 4px 12px rgba(0,0,0,.05);
}

/* BOTONES */
.header-cart-buttons{
    display:flex;
    gap:12px;

    margin-top:18px;
}

.header-cart-buttons a{
    flex:1;

    height:48px;

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

    border-radius:12px;

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

    transition:.3s ease;
}

/* BOTON CARRITO */
.header-cart-buttons a:first-child{
    background:#f3f4f6;
    color:#111827;
}

/* BOTON PAGO */
.header-cart-buttons a:last-child{
    background:linear-gradient(135deg,#00bfa6,#009688);
    color:#fff;
}

/* EMPTY CART */
.empty-cart{
    padding:50px 20px;
    text-align:center;
    color:#9ca3af;
}

.empty-cart i{
    font-size:60px;
    margin-bottom:15px;
    opacity:.4;
}

/* RESPONSIVE */
@media(max-width:576px){
    .wrap-header-cart{
        width:100%;
        padding:20px;
        border-radius:0;
    }

    .header-cart-buttons{
        flex-direction:column;
    }

    .header-cart-item-img{
        width:72px;
        height:72px;
    }
}

/* CSS PARA EL FORMULARIO DE PROCESAR PAGO*/
/* =========================================================
   CHECKOUT PREMIUM UI
========================================================= */

/* ===== BODY ===== */

body{
    font-family:'Poppins',sans-serif;

    background:
    linear-gradient(
        180deg,
        #f8fafc 0%,
        #eef2f7 100%
    );

    color:var(--text);
}

/* ===== TITLES ===== */

h4,
.mtext-109{
    font-weight:700;
    color:#111827;
    letter-spacing:-.3px;
}

/* ===== CONTAINERS ===== */

.bor10{
    background:
    rgba(255,255,255,.88);
    backdrop-filter:blur(14px);
    border-radius:20px;
    border:1px solid rgba(229,231,235,.7);
    padding:32px;
    box-shadow:
    0 10px 35px rgba(0,0,0,.06);
    transition:var(--transition);
}

.bor10:hover{
    transform:translateY(-4px);
    box-shadow:
    0 18px 40px rgba(0,0,0,.10);
}

/* ===== INPUTS ===== */

input.form-control,
select.form-control,
.js-select2{
    height:52px;
    border-radius:14px;
    border:1px solid #dbe2ea;
    background:#fff;
    padding:0 18px;
    font-size:14px;
    transition:var(--transition);
}

/* FOCUS */

input.form-control:focus,
select.form-control:focus{
    border-color:var(--primary);
    box-shadow:
    0 0 0 4px rgba(20,184,166,.14);
    outline:none;
}

/* ===== BUTTONS ===== */

.btn-primary,
#btnComprar{
    height:52px;
    border:none;
    border-radius:14px;
    background:
    linear-gradient(
        135deg,
        var(--primary),
        var(--primary-dark)
    );
    color:#fff;
    font-size:14px;
    font-weight:600;
    transition:var(--transition);
    box-shadow:
    0 12px 24px rgba(20,184,166,.25);

    cursor:pointer;
}

.btn-primary:hover,
#btnComprar:hover{
    transform:translateY(-3px);
    box-shadow:
    0 18px 35px rgba(20,184,166,.35);
}

/* ===== PAYMENT RADIO ===== */

.methodpago{
    accent-color:var(--primary);
    transform:scale(1.15);
    margin-right:8px;
}

.divmetodpago img{
    margin-left:10px;
    vertical-align:middle;
}

/* ===== PURCHASE SUMMARY ===== */

.flex-w.flex-t.bor12{
    padding:20px;
    border-radius:16px;
    background:#f8fafc;
    border:1px solid #edf2f7;
}

/* TOTALS */

#subTotalCompra,
#totalCompra{
    font-size:22px;
    font-weight:800;
    color:var(--primary-dark);
}

/* ===== MODAL ===== */

.modal-content{
    border:none;
    border-radius:22px;
    overflow:hidden;
    box-shadow:
    0 20px 50px rgba(0,0,0,.15);
}

.modal-header{
    border-bottom:1px solid #eef2f7;
    padding:22px 25px;
}

.modal-header h5{
    font-weight:700;
    color:#111827;
}

/* ===== BREADCRUMB ===== */

.bread-crumb{
    color:var(--text-light);
}

.bread-crumb a{
    color:var(--primary-dark);
    font-weight:600;
    text-decoration:none;
    transition:var(--transition);
}

.bread-crumb a:hover{
    color:var(--primary);
}

/* ===== MOBILE ===== */

@media(max-width:768px){

    .bor10{
        padding:22px;
    }

    #btnComprar{
        width:100%;
    }

    input.form-control,
    select.form-control{
        height:48px;
    }
}

/* ============================================
   OFERTAS - 5 CARDS POR FILA
   ============================================ */

.product-grid-5 {
    display: flex;
    flex-wrap: wrap;
    margin-right: -10px;
    margin-left: -10px;
}

.col-item-5 {
    flex: 0 0 20%;   /* 5 columnas = 100 / 5 = 20% */
    max-width: 20%;
    padding-right: 10px;
    padding-left: 10px;
}




.badge-oferta {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #e65540;
    color: #fff;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 3px;
    z-index: 10;
}
.precio-original {
    text-decoration: line-through;
    color: #999;
    font-size: 13px;
    margin-left: 8px;
}
.precio-oferta {
    color: #e65540;
    font-weight: bold;
}
.ahorro-badge {
    display: block;
    font-size: 12px;
    color: #27ae60;
    font-weight: 500;
    margin-top: 2px;
}