/* =========================================================
   RESET
========================================================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Poppins',sans-serif;
    background:#f5f7fb;
    color:#0f172a;
    overflow-x:hidden;
}

img{
    max-width:100%;
    display:block;
}

button,
input,
select{
    font-family:'Poppins',sans-serif;
}

button{
    cursor:pointer;
}

/* =========================================================
   SCROLL
========================================================= */

::-webkit-scrollbar{
    width:10px;
    height:8px;
}

::-webkit-scrollbar-thumb{
    background:linear-gradient(180deg,#7c3aed,#4f46e5);
    border-radius:999px;
}

/* =========================================================
   SIDEBAR
========================================================= */

.sidebar-pro{
    position:fixed;
    top:0;
    left:0;
    width:88px;
    height:100vh;
    background:#ffffff;
    border-right:1px solid #edf2f7;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:16px;
    padding:20px 0;
    z-index:1000;
}

.sidebar-logo{
    width:58px;
    height:58px;
    border-radius:22px;
    background:linear-gradient(135deg,#8b5cf6,#4f46e5);
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    box-shadow:0 12px 30px rgba(79,70,229,.25);
}

.sidebar-logo img{
    width:34px;
    height:34px;
    object-fit:contain;
}

.sidebar-btn{
    width:54px;
    height:54px;
    border:none;
    border-radius:18px;
    background:#f8fafc;
    color:#64748b;
    font-size:20px;
    cursor:pointer;
    transition:.25s ease;
    position:relative;
}

.sidebar-btn:hover,
.sidebar-btn.active{
    background:linear-gradient(135deg,#8b5cf6,#4f46e5);
    color:#fff;
    transform:translateY(-2px);
}

.sidebar-cart span{
    position:absolute;
    top:-6px;
    right:-4px;
    background:#ff4d6d;
    color:#fff;
    font-size:11px;
    font-weight:800;
    min-width:22px;
    height:22px;
    border-radius:999px;
    display:flex;
    align-items:center;
    justify-content:center;
}

/* =========================================================
   MAIN
========================================================= */

.main-wrapper{
    margin-left:88px;
    width:calc(100% - 88px);
    padding:24px;
}

/* =========================================================
   HEADER
========================================================= */

.header-pro{
    display:flex;
    align-items:center;
    gap:20px;
    margin-bottom:22px;
}

.header-brand{
    display:flex;
    align-items:center;
    gap:14px;
    cursor:pointer;
    flex-shrink:0;
}

.header-brand img{
    width:56px;
    height:56px;
    object-fit:contain;
    border-radius:18px;
}

.header-brand h1{
    font-size:34px;
    font-weight:900;
    line-height:1;
}

.header-brand p{
    color:#64748b;
    font-size:13px;
}

.search-container{
    flex:1;
    height:60px;
    background:#fff;
    border-radius:22px;
    display:flex;
    align-items:center;
    position:relative;
    overflow:hidden;
    border:1px solid #edf2f7;
    box-shadow:0 8px 25px rgba(15,23,42,.04);
}

.search-container i{
    position:absolute;
    left:18px;
    color:#64748b;
}

.search-container input{
    flex:1;
    height:100%;
    border:none;
    outline:none;
    padding:0 16px 0 46px;
    font-size:15px;
    background:transparent;
    min-width:0;
}

.search-container button{
    width:120px;
    height:100%;
    border:none;
    background:linear-gradient(135deg,#8b5cf6,#4f46e5);
    color:#fff;
    font-weight:800;
    cursor:pointer;
    flex-shrink:0;
}

#resultadosBusqueda{
    position:absolute;
    top:68px;
    left:0;
    right:0;
    background:#fff;
    border-radius:18px;
    box-shadow:0 18px 45px rgba(15,23,42,.14);
    overflow:hidden;
    z-index:3000;
}

.resultado-item{
    display:flex;
    align-items:center;
    gap:12px;
    padding:12px;
    cursor:pointer;
    border-bottom:1px solid #f1f5f9;
}

.resultado-item:hover{
    background:#f8fafc;
}

.resultado-item img{
    width:52px;
    height:52px;
    object-fit:contain;
    background:#f8fafc;
    border-radius:12px;
}

.resultado-info strong{
    display:block;
    font-size:13px;
}

.resultado-info span,
.resultado-vacio{
    font-size:12px;
    color:#64748b;
}

.resultado-vacio{
    padding:16px;
}

.header-actions{
    display:flex;
    align-items:center;
    gap:12px;
    flex-shrink:0;
}

.header-actions button,
.user-account{
    height:52px;
    padding:0 18px;
    border:none;
    border-radius:16px;
    background:#fff;
    font-weight:700;
    color:#0f172a;
    cursor:pointer;
    display:flex;
    align-items:center;
    gap:10px;
    text-decoration:none;
    box-shadow:0 8px 25px rgba(15,23,42,.04);
    white-space:nowrap;
}

.btn-cart{
    position:relative;
}

.btn-cart b{
    background:#ff4d6d;
    color:#fff;
    border-radius:999px;
    min-width:22px;
    height:22px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:11px;
}

/* =========================================================
   TOP MENU
========================================================= */

.top-categories-wrapper{
    overflow:hidden;
    margin-bottom:22px;
}

.top-categories{
    background:#fff;
    border-radius:20px;
    padding:0 26px;
    min-height:58px;
    display:flex;
    align-items:center;
    gap:32px;
    overflow-x:auto;
    overflow-y:hidden;
    scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
}

.top-categories::-webkit-scrollbar{
    display:none;
}

.top-categories a{
    text-decoration:none;
    color:#475569;
    font-weight:700;
    white-space:nowrap;
    flex-shrink:0;
    transition:.25s ease;
}

.top-categories a:hover{
    color:#7c3aed;
}

/* =========================================================
   HERO
========================================================= */

.hero-market{
    margin-bottom:28px;
}

.hero-main{
    position:relative;
    min-height:320px;
    border-radius:32px;
    overflow:hidden;
    padding:34px 46px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    background:linear-gradient(135deg,#7c3aed,#4f46e5);
    color:#fff;
}

.hero-orange{
    background:linear-gradient(135deg,#ff5a00,#ff8a3d);
}

.hero-purple{
    background:linear-gradient(135deg,#7c3aed,#4f46e5);
}

.hero-green{
    background:linear-gradient(135deg,#059669,#22c55e);
}

.hero-content{
    max-width:520px;
    z-index:2;
}

.hero-tag{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:9px 16px;
    background:rgba(255,255,255,.15);
    border:1px solid rgba(255,255,255,.15);
    border-radius:999px;
    font-weight:700;
    margin-bottom:18px;
    backdrop-filter:blur(10px);
}

.hero-content h2{
    font-size:48px;
    line-height:.98;
    letter-spacing:-.05em;
    margin-bottom:14px;
    font-weight:900;
}

.hero-content h2 strong{
    color:#ffe066;
}

.hero-content p{
    font-size:16px;
    color:#e2e8f0;
    margin-bottom:22px;
}

.hero-content button{
    height:52px;
    padding:0 24px;
    border:none;
    border-radius:16px;
    background:#fff;
    color:#4f46e5;
    font-weight:800;
    cursor:pointer;
    display:flex;
    align-items:center;
    gap:10px;
    font-size:14px;
}

/* =========================================================
   HERO VISUAL
========================================================= */

.hero-visual{
    position:relative;
    width:360px;
    height:280px;
    flex-shrink:0;
}

.hero-stage{
    position:absolute;
    inset:0;
    border-radius:50%;
    background:radial-gradient(circle,rgba(255,255,255,.16),transparent 70%);
}

.hero-product{
    position:absolute;
    border-radius:28px;
    backdrop-filter:blur(12px);
    border:1px solid rgba(255,255,255,.15);
    box-shadow:0 20px 40px rgba(0,0,0,.18);
    transform:scale(.82);
}

.hero-phone{
    width:140px;
    height:260px;
    right:30px;
    top:34px;
    background:linear-gradient(180deg,#111827,#374151);
}

.hero-watch{
    width:100px;
    height:100px;
    left:48px;
    top:28px;
    background:linear-gradient(135deg,#f59e0b,#ef4444);
}

.hero-headphones{
    width:120px;
    height:120px;
    left:110px;
    bottom:36px;
    background:linear-gradient(135deg,#22c55e,#14b8a6);
}

.hero-shoes{
    width:150px;
    height:82px;
    right:110px;
    bottom:30px;
    background:linear-gradient(135deg,#ec4899,#8b5cf6);
}

.hero-floating{
    position:absolute;
    display:flex;
    align-items:center;
    gap:12px;
    background:rgba(255,255,255,.12);
    border:1px solid rgba(255,255,255,.12);
    padding:12px 14px;
    border-radius:18px;
    backdrop-filter:blur(12px);
}

.hero-floating i{
    font-size:18px;
}

.hero-floating b{
    display:block;
    font-size:13px;
}

.hero-floating span{
    font-size:11px;
    color:#e2e8f0;
}

.hero-free{
    left:0;
    bottom:0;
}

.hero-limit{
    right:0;
    top:0;
}

.hero-arrow{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    width:48px;
    height:48px;
    border:none;
    border-radius:50%;
    background:rgba(255,255,255,.16);
    color:#fff;
    cursor:pointer;
    backdrop-filter:blur(10px);
    z-index:5;
}

.hero-prev{
    left:18px;
}

.hero-next{
    right:18px;
}

.hero-dots{
    position:absolute;
    bottom:20px;
    left:50%;
    transform:translateX(-50%);
    display:flex;
    gap:10px;
}

.hero-dots span{
    width:10px;
    height:10px;
    border-radius:50%;
    background:rgba(255,255,255,.35);
    cursor:pointer;
}

.hero-dots span.active{
    background:#fff;
}

/* =========================================================
   SECTION
========================================================= */

.section-header,
.products-top{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:20px;
}

.section-header h2,
.products-top h2{
    font-size:34px;
    font-weight:900;
}

.section-header p,
.products-top p{
    color:#64748b;
    margin-top:4px;
}

.section-header a{
    text-decoration:none;
    color:#7c3aed;
    font-weight:800;
}

/* =========================================================
   CATEGORIES
========================================================= */

.categories-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:18px;
    margin-bottom:32px;
}

.category-card{
    border:none;
    background:#fff;
    border-radius:26px;
    padding:22px;
    display:flex;
    align-items:center;
    gap:16px;
    cursor:pointer;
    transition:.25s ease;
    box-shadow:0 10px 30px rgba(15,23,42,.05);
}

.category-card:hover{
    transform:translateY(-4px);
}

.category-card span{
    font-size:34px;
}

.category-card h3{
    font-size:18px;
    font-weight:800;
}

.category-card p{
    color:#64748b;
    font-size:13px;
}

/* =========================================================
   PRODUCTS
========================================================= */

.products-actions{
    display:flex;
    align-items:center;
    gap:14px;
}

.products-actions select{
    height:50px;
    border:none;
    border-radius:16px;
    padding:0 18px;
    font-weight:700;
    background:#fff;
    color:#0f172a;
}

.view-toggle{
    display:flex;
    background:#fff;
    border-radius:16px;
    padding:4px;
}

.view-toggle button{
    border:none;
    background:transparent;
    height:42px;
    padding:0 16px;
    border-radius:12px;
    cursor:pointer;
    font-weight:700;
    color:#475569;
}

.view-toggle button.active{
    background:#7c3aed;
    color:#fff;
}

.products-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:22px;
}

.products-grid.compact{
    grid-template-columns:1fr;
}

/* =========================================================
   PRODUCT CARD
========================================================= */

.product-card{
    background:#fff;
    border-radius:28px;
    overflow:hidden;
    box-shadow:0 10px 30px rgba(15,23,42,.05);
    transition:.25s ease;
}

.product-card:hover{
    transform:translateY(-6px);
}

.product-img{
    position:relative;
    height:230px;
    background:#f8fafc;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:16px;
}

.product-img img{
    width:100%;
    height:100%;
    object-fit:contain;
}

.badge-product{
    position:absolute;
    top:14px;
    left:14px;
    background:linear-gradient(135deg,#8b5cf6,#4f46e5);
    color:#fff;
    font-size:11px;
    font-weight:800;
    padding:8px 12px;
    border-radius:999px;
}

.badge-stock{
    position:absolute;
    top:14px;
    right:14px;
    background:#dcfce7;
    color:#16a34a;
    font-size:11px;
    font-weight:800;
    padding:8px 12px;
    border-radius:999px;
}

.badge-stock.out{
    background:#fee2e2;
    color:#dc2626;
}

.product-body{
    padding:18px;
}

.product-title{
    font-size:18px;
    font-weight:800;
    line-height:1.3;
    margin-bottom:14px;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
    min-height:48px;
}

.product-meta{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    margin-bottom:16px;
}

.product-price{
    font-size:26px;
    font-weight:900;
    background:linear-gradient(135deg,#ff6b00,#ff2d55);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
}

.product-stock{
    font-size:12px;
    font-weight:700;
    color:#16a34a;
}

.product-actions{
    display:grid;
    grid-template-columns:1fr 48px;
    gap:10px;
}

.btn-add{
    border:none;
    border-radius:16px;
    background:linear-gradient(135deg,#8b5cf6,#4f46e5);
    color:#fff;
    font-weight:800;
    cursor:pointer;
    height:48px;
}

.btn-add:disabled{
    opacity:.55;
    cursor:not-allowed;
}

.btn-view{
    border:none;
    border-radius:16px;
    background:#f1f5f9;
    cursor:pointer;
    font-size:16px;
    height:48px;
}

/* =========================================================
   COMPACT PRODUCT
========================================================= */

.products-grid.compact .product-card{
    display:grid;
    grid-template-columns:190px 1fr;
}

.products-grid.compact .product-img{
    height:100%;
    min-height:180px;
}

.products-grid.compact .product-title{
    min-height:auto;
}

/* =========================================================
   FLASH
========================================================= */

.flash-zone{
    margin-top:38px;
    background:linear-gradient(135deg,#111827,#1e293b);
    border-radius:30px;
    padding:32px;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    flex-wrap:wrap;
}

.flash-title strong{
    font-size:28px;
    display:block;
}

.flash-title span{
    color:#cbd5e1;
}

.flash-time{
    display:flex;
    gap:12px;
}

.flash-time div{
    width:72px;
    height:72px;
    border-radius:20px;
    background:rgba(255,255,255,.08);
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
}

.flash-time b{
    font-size:22px;
}

.flash-time small{
    color:#cbd5e1;
}

.flash-products{
    display:flex;
    gap:18px;
    flex-wrap:wrap;
}

.flash-products b{
    color:#facc15;
}

.flash-zone button{
    height:54px;
    padding:0 22px;
    border:none;
    border-radius:16px;
    background:#fff;
    color:#111827;
    font-weight:800;
}

/* =========================================================
   BENEFITS
========================================================= */

.benefits-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:18px;
    margin:38px 0;
}

.benefit-card{
    background:#fff;
    border-radius:24px;
    padding:24px;
    display:flex;
    gap:16px;
    align-items:flex-start;
    box-shadow:0 10px 30px rgba(15,23,42,.04);
}

.benefit-card i{
    font-size:26px;
    color:#7c3aed;
}

.benefit-card h3{
    font-size:18px;
    margin-bottom:6px;
}

.benefit-card p{
    color:#64748b;
    font-size:14px;
}

/* =========================================================
   FOOTER
========================================================= */

.footer-market{
    display:grid;
    grid-template-columns:2fr 1fr 1fr 1fr;
    gap:30px;
    padding:30px 0 100px;
}

.footer-market h3,
.footer-market h4{
    margin-bottom:14px;
}

.footer-market p,
.footer-market a{
    color:#64748b;
    text-decoration:none;
    display:block;
    margin-bottom:10px;
}

/* =========================================================
   BOTTOM NAV
========================================================= */

.bottom-nav{
    display:none;
}

/* =========================================================
   RESPONSIVE TABLET
========================================================= */

@media(max-width:1100px){

    .header-pro{
        flex-wrap:wrap;
    }

    .search-container{
        order:3;
        flex-basis:100%;
    }

    .products-grid{
        grid-template-columns:repeat(3,1fr);
    }

    .categories-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .benefits-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .hero-visual{
        opacity:.65;
    }
}

/* =========================================================
   RESPONSIVE MOBILE
========================================================= */

@media(max-width:860px){

    .sidebar-pro{
        display:none;
    }

    .main-wrapper{
        margin-left:0;
        width:100%;
        padding:14px;
        padding-bottom:90px;
    }

    .header-pro{
        flex-direction:column;
        align-items:stretch;
        gap:14px;
        margin-bottom:16px;
    }

    .header-brand{
        justify-content:center;
    }

    .header-brand h1{
        font-size:28px;
    }

    .header-brand p{
        font-size:12px;
    }

    .search-container{
        height:54px;
        border-radius:18px;
    }

    .search-container input{
        font-size:14px;
    }

    .search-container button{
        width:90px;
        font-size:14px;
    }

    .header-actions{
        width:100%;
        overflow-x:auto;
        padding-bottom:4px;
        gap:10px;
        scrollbar-width:none;
    }

    .header-actions::-webkit-scrollbar{
        display:none;
    }

    .header-actions button,
    .user-account{
        min-width:max-content;
        flex-shrink:0;
        height:48px;
        padding:0 16px;
        border-radius:14px;
        font-size:14px;
    }

    .top-categories-wrapper{
        overflow:hidden;
        margin-bottom:18px;
    }

    .top-categories{
        overflow-x:auto;
        overflow-y:hidden;
        white-space:nowrap;
        gap:26px;
        padding:0 20px;
        min-height:54px;
        border-radius:18px;
        scroll-behavior:smooth;
        -webkit-overflow-scrolling:touch;
    }

    .top-categories::-webkit-scrollbar{
        display:none;
    }

    .top-categories a{
        flex-shrink:0;
        white-space:nowrap;
        font-size:15px;
    }

    .hero-main{
        min-height:auto;
        padding:34px 26px;
        border-radius:28px;
        flex-direction:column;
        align-items:flex-start;
        justify-content:center;
    }

    .hero-content{
        max-width:100%;
        width:100%;
    }

    .hero-content h2{
        font-size:42px;
        line-height:1;
        letter-spacing:-.04em;
        margin-bottom:14px;
        max-width:100%;
        word-break:normal;
    }

    .hero-content p{
        font-size:15px;
        line-height:1.5;
    }

    .hero-content button{
        height:52px;
        border-radius:16px;
        font-size:14px;
    }

    .hero-visual{
        display:none;
    }

    .hero-arrow{
        width:48px;
        height:48px;
    }

    .products-grid{
        grid-template-columns:repeat(2,1fr);
        gap:14px;
    }

    .categories-grid{
        grid-template-columns:repeat(2,1fr);
        gap:14px;
    }

    .benefits-grid{
        grid-template-columns:1fr;
    }

    .footer-market{
        grid-template-columns:1fr;
        gap:20px;
    }

    .section-header,
    .products-top{
        align-items:flex-start;
        flex-direction:column;
        gap:12px;
    }

    .section-header h2,
    .products-top h2{
        font-size:26px;
    }

    .products-actions{
        width:100%;
        overflow-x:auto;
        padding-bottom:4px;
        scrollbar-width:none;
    }

    .products-actions::-webkit-scrollbar{
        display:none;
    }

    .products-actions select,
    .view-toggle{
        flex-shrink:0;
    }

    .bottom-nav{
        position:fixed;
        left:0;
        right:0;
        bottom:0;
        height:72px;
        background:#fff;
        border-top:1px solid #e2e8f0;
        display:flex;
        justify-content:space-around;
        align-items:center;
        z-index:999;
    }

    .bottom-nav button{
        border:none;
        background:transparent;
        display:flex;
        flex-direction:column;
        align-items:center;
        justify-content:center;
        gap:4px;
        font-size:11px;
        color:#64748b;
        font-weight:700;
    }

    .bottom-nav button.active{
        color:#7c3aed;
    }
}

/* =========================================================
   RESPONSIVE SMALL MOBILE
========================================================= */

@media(max-width:560px){

    .main-wrapper{
        padding:10px;
        padding-bottom:90px;
    }

    .header-brand h1{
        font-size:24px;
    }

    .header-brand p{
        font-size:11px;
    }

    .top-categories{
        gap:22px;
        padding:0 16px;
    }

    .top-categories a{
        font-size:14px;
    }

    .hero-main{
        padding:28px 20px;
        border-radius:24px;
    }

    .hero-content h2{
        font-size:32px;
        line-height:1.05;
    }

    .hero-content p{
        font-size:14px;
    }

    .hero-tag{
        font-size:13px;
        padding:8px 14px;
    }

    .hero-arrow{
        width:42px;
        height:42px;
    }

    .hero-prev{
        left:12px;
    }

    .hero-next{
        right:12px;
    }

    .hero-dots{
        bottom:14px;
    }

    .products-grid{
        grid-template-columns:repeat(2,1fr);
        gap:10px;
    }

    .products-grid.compact{
        grid-template-columns:1fr;
    }

    .products-grid.compact .product-card{
        grid-template-columns:120px 1fr;
    }

    .product-card{
        border-radius:20px;
    }

    .product-img{
        height:140px;
        padding:10px;
    }

    .product-body{
        padding:12px;
    }

    .product-title{
        font-size:13px;
        line-height:1.35;
        min-height:36px;
    }

    .product-meta{
        display:block;
        margin-bottom:12px;
    }

    .product-price{
        font-size:16px;
    }

    .product-stock{
        display:none;
    }

    .product-actions{
        grid-template-columns:1fr 42px;
        gap:8px;
    }

    .btn-add{
        height:42px;
        font-size:13px;
        border-radius:12px;
    }

    .btn-view{
        height:42px;
        border-radius:12px;
    }

    .badge-product,
    .badge-stock{
        font-size:10px;
        padding:6px 10px;
    }

    .categories-grid{
        grid-template-columns:1fr 1fr;
        gap:10px;
    }

    .category-card{
        padding:14px;
        border-radius:20px;
        gap:10px;
    }

    .category-card span{
        font-size:26px;
    }

    .category-card h3{
        font-size:14px;
    }

    .category-card p{
        font-size:11px;
    }

    .flash-zone{
        padding:22px;
        border-radius:24px;
    }

    .flash-time{
        flex-wrap:wrap;
    }

    .flash-time div{
        width:58px;
        height:58px;
    }

    .flash-title strong{
        font-size:22px;
    }
}
/* SLIDER MÁS ORGANIZADO */
.hero-main{
    min-height:285px !important;
    padding:34px 70px !important;
}

.hero-content{
    max-width:560px !important;
    padding-left:10px;
}

.hero-content h2{
    font-size:42px !important;
    line-height:1.05 !important;
    max-width:560px;
}

.hero-content p{
    font-size:15px !important;
    max-width:520px;
}

.hero-visual{
    width:320px !important;
    height:240px !important;
    transform:scale(.9);
    margin-right:30px;
}

.hero-arrow{
    width:44px !important;
    height:44px !important;
}

.hero-prev{
    left:18px !important;
}

.hero-next{
    right:18px !important;
}

.hero-dots{
    bottom:16px !important;
}

@media(max-width:860px){
    .hero-main{
        min-height:260px !important;
        padding:30px 24px 56px !important;
    }

    .hero-content h2{
        font-size:32px !important;
    }
}
.btn-register-header{
    background:linear-gradient(135deg,#8b5cf6,#4f46e5) !important;
    color:#fff !important;
}
.paginacion-productos{
    width:100%;
    margin:34px 0 16px;
    display:flex;
    justify-content:center;
    align-items:center;
    gap:12px;
    flex-wrap:wrap;
}

.paginacion-productos .page-btn,
.paginacion-productos .page-number{
    min-height:44px;
    border:none;
    border-radius:16px;
    padding:0 18px;
    background:linear-gradient(135deg,#7c3aed,#5b21e6);
    color:#fff;
    font-weight:900;
    cursor:pointer;
    box-shadow:0 10px 22px rgba(124,58,237,.18);
}

.paginacion-productos .page-number{
    min-width:44px;
    padding:0 14px;
    border-radius:14px;
}

.paginacion-productos .page-number.active{
    background:#111827;
}

.paginacion-productos button:disabled{
    background:#e5e7eb;
    color:#94a3b8;
    cursor:not-allowed;
    box-shadow:none;
}

.page-numbers{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    justify-content:center;
}

@media(max-width:520px){
    .paginacion-productos{
        gap:8px;
    }

    .paginacion-productos .page-btn{
        width:100%;
    }
}

/* =========================================================
   FIX FINAL WEBVIEW / APP ANDROID
   Ajuste especial para pantallas móviles pequeñas
   Mantiene la web estable dentro de Android WebView
========================================================= */

@media(max-width:860px){

    html,
    body{
        width:100%;
        max-width:100%;
        overflow-x:hidden !important;
        background:#f5f7fb;
    }

    body{
        padding:0 !important;
    }

    .main-wrapper{
        width:100% !important;
        max-width:100% !important;
        margin-left:0 !important;
        padding:10px 10px 88px !important;
        overflow-x:hidden !important;
    }

    .header-pro{
        width:100% !important;
        max-width:100% !important;
        display:flex !important;
        flex-direction:column !important;
        align-items:stretch !important;
        gap:12px !important;
        margin:0 0 14px !important;
        overflow:hidden !important;
    }

    .header-brand{
        width:100% !important;
        display:flex !important;
        justify-content:center !important;
        align-items:center !important;
        gap:10px !important;
        padding:4px 6px 0 !important;
        overflow:hidden !important;
    }

    .header-brand img{
        width:58px !important;
        height:58px !important;
        min-width:58px !important;
        border-radius:16px !important;
        object-fit:contain !important;
    }

    .header-brand h1{
        font-size:26px !important;
        line-height:1 !important;
        letter-spacing:-.04em !important;
        max-width:190px !important;
        white-space:nowrap !important;
        overflow:hidden !important;
        text-overflow:ellipsis !important;
    }

    .header-brand p{
        font-size:11px !important;
        line-height:1.1 !important;
        white-space:nowrap !important;
        overflow:hidden !important;
        text-overflow:ellipsis !important;
        max-width:190px !important;
    }

    .header-actions{
        width:100% !important;
        max-width:100% !important;
        display:flex !important;
        flex-wrap:nowrap !important;
        overflow-x:auto !important;
        overflow-y:hidden !important;
        gap:8px !important;
        padding:2px 0 8px !important;
        -webkit-overflow-scrolling:touch !important;
        scrollbar-width:none !important;
    }

    .header-actions::-webkit-scrollbar{
        display:none !important;
    }

    .header-actions button,
    .header-actions .user-account{
        height:46px !important;
        min-width:max-content !important;
        flex:0 0 auto !important;
        padding:0 14px !important;
        border-radius:16px !important;
        font-size:13px !important;
        gap:8px !important;
        box-shadow:0 8px 18px rgba(15,23,42,.05) !important;
    }

    .header-actions i{
        font-size:15px !important;
    }

    .btn-cart b{
        min-width:20px !important;
        height:20px !important;
        font-size:10px !important;
    }

    .search-container{
        width:100% !important;
        max-width:100% !important;
        height:48px !important;
        border-radius:16px !important;
        order:2 !important;
        overflow:hidden !important;
    }

    .search-container i{
        left:14px !important;
        font-size:17px !important;
    }

    .search-container input{
        width:100% !important;
        min-width:0 !important;
        font-size:13px !important;
        padding:0 10px 0 42px !important;
    }

    .search-container button{
        width:78px !important;
        min-width:78px !important;
        font-size:13px !important;
        padding:0 !important;
    }

    #resultadosBusqueda{
        top:52px !important;
        left:0 !important;
        right:0 !important;
        border-radius:16px !important;
        max-height:320px !important;
        overflow:auto !important;
    }

    .top-categories-wrapper{
        width:100% !important;
        max-width:100% !important;
        overflow:hidden !important;
        margin-bottom:14px !important;
    }

    .top-categories{
        width:100% !important;
        max-width:100% !important;
        min-height:50px !important;
        padding:0 16px !important;
        gap:24px !important;
        border-radius:18px !important;
        overflow-x:auto !important;
        overflow-y:hidden !important;
        white-space:nowrap !important;
        -webkit-overflow-scrolling:touch !important;
    }

    .top-categories a{
        font-size:14px !important;
        flex:0 0 auto !important;
        white-space:nowrap !important;
    }

    .hero-market{
        width:100% !important;
        margin-bottom:24px !important;
        overflow:hidden !important;
    }

    .hero-main{
        width:100% !important;
        max-width:100% !important;
        min-height:330px !important;
        padding:28px 18px 56px !important;
        border-radius:26px !important;
        overflow:hidden !important;
        display:flex !important;
        align-items:flex-start !important;
        justify-content:center !important;
    }

    .hero-content{
        width:100% !important;
        max-width:100% !important;
        padding-left:0 !important;
        overflow:hidden !important;
    }

    .hero-tag{
        max-width:100% !important;
        font-size:13px !important;
        padding:8px 14px !important;
        margin-bottom:16px !important;
    }

    .hero-content h2{
        font-size:31px !important;
        line-height:1.08 !important;
        letter-spacing:-.05em !important;
        max-width:100% !important;
        margin-bottom:14px !important;
        overflow-wrap:break-word !important;
        word-break:normal !important;
    }

    .hero-content p{
        font-size:14px !important;
        line-height:1.45 !important;
        max-width:94% !important;
        margin-bottom:20px !important;
    }

    .hero-content button{
        height:48px !important;
        padding:0 18px !important;
        border-radius:16px !important;
        font-size:13px !important;
        max-width:100% !important;
    }

    .hero-visual{
        display:none !important;
    }

    .hero-arrow{
        width:42px !important;
        height:42px !important;
        top:52% !important;
        z-index:10 !important;
    }

    .hero-prev{
        left:10px !important;
    }

    .hero-next{
        right:10px !important;
    }

    .hero-dots{
        bottom:18px !important;
    }

    .section-header,
    .products-top{
        width:100% !important;
        max-width:100% !important;
        display:flex !important;
        flex-direction:column !important;
        align-items:flex-start !important;
        gap:12px !important;
        margin-bottom:16px !important;
        overflow:hidden !important;
    }

    .section-header h2,
    .products-top h2{
        width:100% !important;
        max-width:100% !important;
        font-size:30px !important;
        line-height:1.12 !important;
        letter-spacing:-.05em !important;
        overflow-wrap:break-word !important;
    }

    .section-header p,
    .products-top p{
        font-size:14px !important;
    }

    .products-actions{
        width:100% !important;
        max-width:100% !important;
        display:flex !important;
        flex-wrap:nowrap !important;
        align-items:center !important;
        gap:8px !important;
        overflow-x:auto !important;
        padding-bottom:8px !important;
        -webkit-overflow-scrolling:touch !important;
        scrollbar-width:none !important;
    }

    .products-actions::-webkit-scrollbar{
        display:none !important;
    }

    .products-actions select{
        height:44px !important;
        min-width:155px !important;
        border-radius:15px !important;
        padding:0 14px !important;
        font-size:13px !important;
        flex:0 0 auto !important;
    }

    .view-toggle{
        height:44px !important;
        flex:0 0 auto !important;
        border-radius:15px !important;
    }

    .view-toggle button{
        height:36px !important;
        padding:0 12px !important;
        font-size:13px !important;
        white-space:nowrap !important;
    }
}

@media(max-width:480px){

    .main-wrapper{
        padding:8px 8px 84px !important;
    }

    .header-brand{
        justify-content:flex-start !important;
        padding-left:4px !important;
    }

    .header-brand img{
        width:52px !important;
        height:52px !important;
        min-width:52px !important;
        border-radius:15px !important;
    }

    .header-brand h1{
        font-size:24px !important;
        max-width:185px !important;
    }

    .header-brand p{
        font-size:10px !important;
        max-width:185px !important;
    }

    .header-actions button,
    .header-actions .user-account{
        height:44px !important;
        font-size:12px !important;
        padding:0 13px !important;
    }

    .search-container{
        height:46px !important;
    }

    .search-container input{
        font-size:12px !important;
    }

    .search-container button{
        width:74px !important;
        min-width:74px !important;
        font-size:12px !important;
    }

    .top-categories{
        min-height:48px !important;
        padding:0 14px !important;
        gap:22px !important;
    }

    .top-categories a{
        font-size:13px !important;
    }

    .hero-main{
        min-height:310px !important;
        padding:24px 18px 54px !important;
        border-radius:24px !important;
    }

    .hero-content h2{
        font-size:28px !important;
        line-height:1.08 !important;
    }

    .hero-content p{
        font-size:13px !important;
    }

    .hero-content button{
        height:46px !important;
        font-size:12px !important;
    }

    .hero-arrow{
        width:38px !important;
        height:38px !important;
    }

    .products-top h2,
    .section-header h2{
        font-size:27px !important;
    }

    .products-grid{
        grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
        gap:9px !important;
        width:100% !important;
        max-width:100% !important;
    }

    .product-card{
        min-width:0 !important;
        border-radius:18px !important;
        overflow:hidden !important;
    }

    .product-img{
        height:132px !important;
        padding:8px !important;
    }

    .product-body{
        padding:10px !important;
    }

    .product-title{
        font-size:12px !important;
        line-height:1.3 !important;
        min-height:34px !important;
        margin-bottom:10px !important;
    }

    .product-price{
        font-size:15px !important;
    }

    .btn-add{
        height:40px !important;
        font-size:11px !important;
        border-radius:12px !important;
    }

    .btn-view{
        height:40px !important;
        border-radius:12px !important;
    }

    .product-actions{
        grid-template-columns:1fr 38px !important;
        gap:6px !important;
    }

    .badge-product,
    .badge-stock{
        top:8px !important;
        font-size:9px !important;
        padding:5px 8px !important;
    }

    .badge-product{
        left:8px !important;
    }

    .badge-stock{
        right:8px !important;
    }

    .bottom-nav{
        height:66px !important;
        padding-bottom:2px !important;
    }

    .bottom-nav button{
        font-size:10px !important;
    }
}

@supports(padding:max(0px)){
    @media(max-width:860px){
        .main-wrapper{
            padding-bottom:max(90px, env(safe-area-inset-bottom)) !important;
        }

        .bottom-nav{
            padding-bottom:env(safe-area-inset-bottom) !important;
            height:calc(66px + env(safe-area-inset-bottom)) !important;
        }
    }
}

@media(max-width:860px){
    html,
    body{
        width:100%;
        max-width:100%;
        overflow-x:hidden !important;
        background:#f5f7fb;
    }

    body{
        padding-top:0 !important;
    }

    .main-wrapper{
        padding-top:0 !important;
    }

    .header-pro{
        margin-top:0 !important;
    }
}

/* =========================================================
   FIX DEFINITIVO MI TIENDA - WEBVIEW ANDROID / MOBILE
   Reglas finales. Deben quedar al final del archivo.
========================================================= */

@media(max-width:860px){
    html,
    body{
        width:100% !important;
        max-width:100% !important;
        overflow-x:hidden !important;
        background:#f5f7fb !important;
        padding-top:0 !important;
    }

    .main-wrapper{
        margin-left:0 !important;
        width:100% !important;
        max-width:100% !important;
        padding:6px 12px 86px !important;
        overflow-x:hidden !important;
    }

    .header-pro{
        width:100% !important;
        max-width:100% !important;
        display:flex !important;
        flex-direction:column !important;
        align-items:stretch !important;
        gap:9px !important;
        margin:0 0 12px !important;
        padding:0 !important;
        overflow:hidden !important;
    }

    .header-brand{
        width:100% !important;
        display:flex !important;
        justify-content:flex-start !important;
        align-items:center !important;
        gap:10px !important;
        margin:0 !important;
        padding:0 2px !important;
        overflow:hidden !important;
    }

    .header-brand img{
        width:50px !important;
        height:50px !important;
        min-width:50px !important;
        border-radius:15px !important;
        object-fit:contain !important;
    }

    .header-brand h1{
        font-size:23px !important;
        line-height:1 !important;
        letter-spacing:-.04em !important;
        max-width:210px !important;
        white-space:nowrap !important;
        overflow:hidden !important;
        text-overflow:ellipsis !important;
    }

    .header-brand p{
        font-size:10px !important;
        line-height:1.15 !important;
        max-width:210px !important;
        white-space:nowrap !important;
        overflow:hidden !important;
        text-overflow:ellipsis !important;
    }

    .header-actions{
        width:100% !important;
        max-width:100% !important;
        display:flex !important;
        flex-wrap:nowrap !important;
        overflow-x:auto !important;
        overflow-y:hidden !important;
        gap:8px !important;
        padding:0 0 7px !important;
        -webkit-overflow-scrolling:touch !important;
        scrollbar-width:none !important;
    }

    .header-actions::-webkit-scrollbar{
        display:none !important;
    }

    .header-actions button,
    .header-actions .user-account,
    .user-account{
        height:44px !important;
        min-width:max-content !important;
        flex:0 0 auto !important;
        padding:0 13px !important;
        border-radius:15px !important;
        font-size:12px !important;
        gap:8px !important;
        white-space:nowrap !important;
        box-shadow:0 8px 18px rgba(15,23,42,.05) !important;
    }

    .header-actions i{
        font-size:15px !important;
    }

    .btn-cart b{
        min-width:20px !important;
        height:20px !important;
        font-size:10px !important;
    }

    .search-container{
        width:100% !important;
        max-width:100% !important;
        height:46px !important;
        border-radius:16px !important;
        order:2 !important;
        overflow:hidden !important;
    }

    .search-container i{
        left:14px !important;
        font-size:17px !important;
    }

    .search-container input{
        width:100% !important;
        min-width:0 !important;
        font-size:12px !important;
        padding:0 8px 0 42px !important;
    }

    .search-container button{
        width:74px !important;
        min-width:74px !important;
        font-size:12px !important;
        padding:0 !important;
    }

    #resultadosBusqueda{
        top:50px !important;
        left:0 !important;
        right:0 !important;
        border-radius:16px !important;
        max-height:320px !important;
        overflow:auto !important;
    }

    .top-categories-wrapper{
        width:100% !important;
        max-width:100% !important;
        margin-bottom:13px !important;
        overflow:hidden !important;
    }

    .top-categories{
        width:100% !important;
        max-width:100% !important;
        min-height:48px !important;
        padding:0 14px !important;
        gap:22px !important;
        border-radius:18px !important;
        overflow-x:auto !important;
        overflow-y:hidden !important;
        white-space:nowrap !important;
        -webkit-overflow-scrolling:touch !important;
        scrollbar-width:none !important;
    }

    .top-categories::-webkit-scrollbar{
        display:none !important;
    }

    .top-categories a{
        font-size:13px !important;
        flex:0 0 auto !important;
        white-space:nowrap !important;
    }

    .hero-market{
        width:100% !important;
        margin-bottom:22px !important;
        overflow:hidden !important;
    }

    .hero-main{
        width:100% !important;
        max-width:100% !important;
        min-height:255px !important;
        padding:22px 18px 50px !important;
        border-radius:24px !important;
        overflow:hidden !important;
        display:flex !important;
        align-items:flex-start !important;
        justify-content:center !important;
    }

    .hero-content{
        width:100% !important;
        max-width:100% !important;
        padding-left:0 !important;
        overflow:hidden !important;
    }

    .hero-tag{
        max-width:100% !important;
        font-size:12px !important;
        padding:7px 13px !important;
        margin-bottom:14px !important;
    }

    .hero-content h2{
        font-size:27px !important;
        line-height:1.08 !important;
        letter-spacing:-.05em !important;
        max-width:100% !important;
        margin-bottom:12px !important;
        overflow-wrap:break-word !important;
        word-break:normal !important;
    }

    .hero-content p{
        font-size:13px !important;
        line-height:1.4 !important;
        max-width:96% !important;
        margin-bottom:18px !important;
    }

    .hero-content button{
        height:44px !important;
        padding:0 17px !important;
        border-radius:15px !important;
        font-size:12px !important;
        max-width:100% !important;
    }

    .hero-visual{
        display:none !important;
    }

    .hero-arrow{
        width:38px !important;
        height:38px !important;
        top:52% !important;
        z-index:10 !important;
    }

    .hero-prev{
        left:10px !important;
    }

    .hero-next{
        right:10px !important;
    }

    .hero-dots{
        bottom:16px !important;
    }

    .section-header,
    .products-top{
        width:100% !important;
        max-width:100% !important;
        display:flex !important;
        flex-direction:column !important;
        align-items:flex-start !important;
        gap:10px !important;
        margin-bottom:14px !important;
        overflow:hidden !important;
    }

    .section-header h2,
    .products-top h2{
        width:100% !important;
        max-width:100% !important;
        font-size:24px !important;
        line-height:1.12 !important;
        letter-spacing:-.04em !important;
        overflow-wrap:break-word !important;
    }

    .section-header p,
    .products-top p{
        font-size:13px !important;
    }

    .products-actions{
        width:100% !important;
        max-width:100% !important;
        display:flex !important;
        flex-wrap:nowrap !important;
        align-items:center !important;
        gap:8px !important;
        overflow-x:auto !important;
        padding-bottom:8px !important;
        -webkit-overflow-scrolling:touch !important;
        scrollbar-width:none !important;
    }

    .products-actions::-webkit-scrollbar{
        display:none !important;
    }

    .products-actions select{
        height:42px !important;
        min-width:150px !important;
        border-radius:15px !important;
        padding:0 13px !important;
        font-size:12px !important;
        flex:0 0 auto !important;
    }

    .view-toggle{
        height:42px !important;
        flex:0 0 auto !important;
        border-radius:15px !important;
        padding:3px !important;
    }

    .view-toggle button{
        height:36px !important;
        padding:0 11px !important;
        font-size:12px !important;
        white-space:nowrap !important;
    }

    .products-grid{
        grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
        gap:10px !important;
        width:100% !important;
        max-width:100% !important;
    }

    .product-card{
        min-width:0 !important;
        border-radius:18px !important;
        overflow:hidden !important;
    }

    .product-img{
        height:132px !important;
        padding:8px !important;
    }

    .product-body{
        padding:10px !important;
    }

    .product-title{
        font-size:12px !important;
        line-height:1.3 !important;
        min-height:34px !important;
        margin-bottom:10px !important;
    }

    .product-meta{
        display:block !important;
        margin-bottom:10px !important;
    }

    .product-price{
        font-size:15px !important;
    }

    .product-stock{
        display:none !important;
    }

    .product-actions{
        grid-template-columns:1fr 38px !important;
        gap:6px !important;
    }

    .btn-add{
        height:40px !important;
        font-size:11px !important;
        border-radius:12px !important;
    }

    .btn-view{
        height:40px !important;
        border-radius:12px !important;
    }

    .badge-product,
    .badge-stock{
        top:8px !important;
        font-size:9px !important;
        padding:5px 8px !important;
    }

    .badge-product{
        left:8px !important;
    }

    .badge-stock{
        right:8px !important;
    }

    .categories-grid,
    .benefits-grid{
        grid-template-columns:1fr !important;
    }

    .bottom-nav{
        height:66px !important;
        padding-bottom:2px !important;
        z-index:9999 !important;
    }

    .bottom-nav button{
        font-size:10px !important;
    }
}

/* Vista Lista corregida */
.products-grid.compact{
    display:flex !important;
    flex-direction:column !important;
    grid-template-columns:none !important;
    gap:14px !important;
}

.products-grid.compact .product-card{
    display:flex !important;
    flex-direction:row !important;
    align-items:center !important;
    width:100% !important;
    min-height:160px !important;
    overflow:hidden !important;
}

.products-grid.compact .product-img{
    width:150px !important;
    min-width:150px !important;
    height:150px !important;
    min-height:150px !important;
    padding:12px !important;
}

.products-grid.compact .product-body{
    flex:1 !important;
    min-width:0 !important;
    padding:14px !important;
}

.products-grid.compact .product-title{
    min-height:auto !important;
    font-size:16px !important;
    line-height:1.25 !important;
    margin-bottom:10px !important;
    -webkit-line-clamp:2 !important;
}

.products-grid.compact .product-meta{
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:10px !important;
    margin-bottom:12px !important;
}

.products-grid.compact .product-price{
    font-size:20px !important;
}

.products-grid.compact .product-actions{
    grid-template-columns:1fr 44px !important;
    gap:8px !important;
}

@media(max-width:560px){
    .products-grid.compact .product-card{
        min-height:135px !important;
        border-radius:18px !important;
    }

    .products-grid.compact .product-img{
        width:112px !important;
        min-width:112px !important;
        height:132px !important;
        min-height:132px !important;
        padding:8px !important;
    }

    .products-grid.compact .product-body{
        padding:10px !important;
    }

    .products-grid.compact .product-title{
        font-size:12px !important;
        line-height:1.25 !important;
    }

    .products-grid.compact .product-price{
        font-size:15px !important;
    }

    .products-grid.compact .product-actions{
        grid-template-columns:1fr 38px !important;
        gap:6px !important;
    }
}

@supports(padding:max(0px)){
    @media(max-width:860px){
        .main-wrapper{
            padding-bottom:max(86px, env(safe-area-inset-bottom)) !important;
        }

        .bottom-nav{
            padding-bottom:env(safe-area-inset-bottom) !important;
            height:calc(66px + env(safe-area-inset-bottom)) !important;
        }
    }
}

