:root{
    --bg:#0b0f0d;
    --bg-2:#111814;
    --card:#161f1a;
    --border:#243129;
    --green:#2f8f5b;
    --green-hover:#39a76a;
    --text:#f5f5f5;
    --muted:#8f9b93;
    
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    background:var(--bg);
    color:var(--text);
    font-family:Inter,Arial,sans-serif;
}

a{
    text-decoration:none;
    color:inherit;
}

.page-bg{
    position:fixed;
    inset:0;
    background:
        radial-gradient(circle at top,
        rgba(47,143,91,.15),
        transparent 45%);
    pointer-events:none;
}

.hero{
    padding:80px 40px 40px;
    text-align:center;
}

.hero-subtitle{
    color:var(--green);
    font-size:.85rem;
    letter-spacing:4px;
    margin-bottom:15px;
}

.hero h1,
.hero .hero-brand{
    font-size:6rem;
    font-weight:900;
    letter-spacing:-4px;
}

.hero-line{
    width:120px;
    height:4px;
    background:var(--green);
    margin:25px auto;
    border-radius:999px;
}

.catalog-layout{
    display:grid;
    grid-template-columns:260px 1fr;
    gap:40px;
    max-width:1700px;
    margin:auto;
    padding:0 30px 60px;
}

.sidebar{
    position:sticky;
    top:30px;
    height:fit-content;
}

.sidebar{
    width:280px;
    background:rgba(20,25,22,.85);
    border:1px solid rgba(255,255,255,.05);
    border-radius:24px;
    padding:24px;
    backdrop-filter:blur(20px);
}

.sidebar-list{
    display:flex;
    flex-direction:column;
    gap:6px;
}

.sidebar-item{
    width:100%;
    text-align:left;

    background:transparent;
    border:none;

    color:#b7c0ba;

    padding:12px 14px;

    border-radius:12px;

    cursor:pointer;

    transition:.2s;
}

.sidebar-item:hover{
    background:rgba(255,255,255,.05);
    color:white;
}

.sidebar-item.active{
    background:rgba(47,143,91,.15);
    color:#55d38d;
}

.search-wrapper{
    margin-bottom:26px;
}

.search-field{
    display:flex;
    align-items:center;
    gap:10px;
    border-bottom:2px solid var(--border);
    padding:8px 2px 12px;
    transition:border-color .2s ease;
}

.search-field:focus-within{
    border-color:#55d38d;
}

.search-icon{
    display:flex;
    color:var(--muted);
    transition:color .2s ease;
}

.search-icon svg{
    width:18px;
    height:18px;
}

.search-field:focus-within .search-icon{
    color:#55d38d;
}

.search-wrapper input{
    width:100%;
    background:none;
    border:none;
    color:white;
    padding:0;
    font-size:.95rem;
}

.search-wrapper input:focus{
    outline:none;
}

.search-suggestions{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:7px;
    margin-top:12px;
}

.search-suggestions-label{
    font-size:10px;
    font-weight:800;
    letter-spacing:.1em;
    text-transform:uppercase;
    color:var(--muted);
    margin-right:2px;
}

.search-suggestion-chip{
    font-size:11.5px;
    font-weight:700;
    padding:6px 12px;
    border-radius:999px;
    border:1px solid var(--border);
    background:rgba(255,255,255,.03);
    color:#c8d1cb;
    cursor:pointer;
    transition:border-color .2s ease,background .2s ease,color .2s ease;
}

.search-suggestion-chip:hover{
    color:white;
    border-color:rgba(85,211,141,.5);
    background:rgba(85,211,141,.1);
}

.sidebar-section{
    margin-bottom:24px;
}

.sidebar-section h3{
    font-size:.8rem;
    letter-spacing:2px;
    color:var(--muted);
    margin-bottom:10px;
}

.sidebar select{
    width:100%;
    background:var(--bg-2);
    color:white;
    border:1px solid var(--border);
    border-radius:14px;
    padding:14px;
}

.sidebar-button{
    width:100%;
    border:none;
    background:var(--green);
    color:white;
    border-radius:14px;
    padding:15px;
    font-weight:700;
    cursor:pointer;
}

.sidebar-button:hover{
    background:var(--green-hover);
}

.catalog-top{
    margin-bottom:20px;
}

.catalog-stats{
    color:var(--muted);
    font-size:.9rem;
}

.catalog-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:24px;
}

.jersey-card{
    display:block;
    transition:.25s;
}

.jersey-card:hover{
    transform:translateY(-6px);
}

.jersey-media{
    overflow:hidden;
    border-radius:18px;
    background:var(--card);
}

.jersey-media img{
    width:100%;
    height:430px;
    object-fit:cover;
    transition:.4s;
}

.jersey-card:hover .jersey-media img{
    transform:scale(1.03);
}

.jersey-body{
    padding-top:14px;
    text-align:center;
}

.jersey-title{
    font-size:.95rem;
    font-weight:600;
    line-height:1.4;
    color:white;
}

.load-more-container{
    display:flex;
    justify-content:center;
    margin-top:50px;
}

.primary-button{
    border:none;
    background:var(--green);
    color:white;
    padding:16px 34px;
    border-radius:14px;
    cursor:pointer;
    font-weight:700;
}

.primary-button:hover{
    background:var(--green-hover);
}

.empty-state{
    text-align:center;
    padding:80px 0;
}



.sidebar-list{
    display:flex;
    flex-direction:column;
    gap:6px;
}

.sidebar-item{
    width:100%;
    text-align:left;
    background:transparent;
    border:none;
    color:#b8b8b8;
    padding:10px 12px;
    border-left:2px solid transparent;
    cursor:pointer;
    transition:.25s;
    font-size:14px;
}

.sidebar-item:hover{
    color:white;
    background:rgba(255,255,255,.03);
    border-left:2px solid #27ae60;
}

.sidebar-item.active{
    color:white;
    border-left:2px solid #27ae60;
    background:rgba(255,255,255,.03);
}

.sidebar-section{
    margin-bottom:28px;
}

.sidebar-section h3{
    font-size:12px;
    letter-spacing:3px;
    color:#888;
    margin-bottom:12px;
}

.sidebar{
    background:rgba(10,10,10,.7);
    border:1px solid rgba(255,255,255,.05);
    border-radius:18px;
    padding:25px;
    backdrop-filter:blur(15px);
}

/* PRODUCT PAGE */

.product-page{
    max-width:1400px;
    margin:auto;
    padding:40px;
}

.breadcrumb{
    margin-bottom:30px;
}

.breadcrumb a{
    color:#fff;
    text-decoration:none;
    opacity:.8;
}

.breadcrumb a:hover{
    opacity:1;
}

.product-detail{
    display:grid;
    grid-template-columns:1.1fr .9fr;
    gap:60px;
    align-items:start;
}

.gallery{
    display:flex;
    flex-direction:column;
    gap:20px;
}

.main-photo{
    background:#111;
    border-radius:18px;
    overflow:hidden;
}

.main-photo img{
    width:100%;
    aspect-ratio:4/5;
    object-fit:contain;
    display:block;
}

.thumbs{
    display:flex;
    gap:12px;
    flex-wrap:wrap;
}

.thumb{
    width:90px;
    height:90px;
    border:none;
    cursor:pointer;
    border-radius:12px;
    overflow:hidden;
    opacity:.6;
}

.thumb.is-active{
    opacity:1;
}

.thumb img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.product-info{
    display:flex;
    flex-direction:column;
    gap:24px;
}

.product-info h1{
    font-size:42px;
    margin:0;
}

.product-year{
    opacity:.7;
    font-size:18px;
}

.all-sizes{
    font-size:18px;
    font-weight:600;
}

.actions{
    display:flex;
    gap:15px;
    flex-wrap:wrap;
}

.related-section{
    margin-top:80px;
}

.related-title{
    margin-bottom:25px;
}

@media(max-width:900px){

    .product-detail{
        grid-template-columns:1fr;
    }

    .product-page{
        padding:20px;
    }

}

.cart-icon{

    position:fixed;

    top:65px;
    right:25px;

    width:68px;
    height:68px;

    border-radius:20px;

    background:rgba(20,25,22,.92);

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

    backdrop-filter:blur(20px);

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

    color:white;

    font-size:30px;

    transition:.25s;

    z-index:9999;

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

.cart-icon:hover{

    transform:translateY(-3px);

    border-color:rgba(47,143,91,.5);

    box-shadow:
        0 15px 40px rgba(47,143,91,.15);
}

#cartCount{

    position:absolute;

    top:-8px;
    right:-8px;

    min-width:26px;
    height:26px;

    padding:0 7px;

    border-radius:999px;

    background:var(--green);

    color:white;

    font-size:12px;

    font-weight:700;

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

    border:2px solid var(--bg);
}

/* ==========================
   CART V2
========================== */

.cart-layout{

    max-width:1500px;

    margin:auto;

    padding:0 40px 80px;

    display:grid;

    grid-template-columns:420px 1fr;

    gap:35px;

    align-items:start;
}

.cart-right{

    height:auto !important;

    align-self:start;
}

.cart-panel,
.summary-panel{

    background:linear-gradient(160deg, rgba(22,31,26,.97), rgba(10,14,12,.98));

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

    border-radius:24px;

    box-shadow:0 24px 48px rgba(0,0,0,.28);
}

.cart-panel{

    padding:25px;
}

.cart-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:25px;
}

.cart-header h2{

    font-size:28px;
}

.cart-header span{

    color:#55d38d;

    font-weight:700;
}

.summary-panel{

    padding:40px;

    height:fit-content;

    align-self:start;
}

.summary-panel h2{

    font-size:42px;

    margin-bottom:20px;
}

.summary-divider{

    width:120px;

    height:3px;

    background:var(--green);

    border-radius:999px;

    margin-bottom:40px;
}

.summary-box{

    position:relative;

    overflow:hidden;

    isolation:isolate;

    border-radius:24px;

    border:1px solid rgba(85,211,141,.22);

    background:
        radial-gradient(90% 70% at 50% -12%, rgba(85,211,141,.16), transparent 62%),
        linear-gradient(145deg, rgba(22,34,28,.96), rgba(8,13,10,.98));

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.055),
        0 24px 52px rgba(0,0,0,.24);

    display:flex;

    flex-direction:column;

    justify-content:center;

    align-items:center;

    text-align:center;

    padding:38px clamp(24px, 5vw, 48px);

    gap:18px;

    width:100%;

    height:auto !important;

    min-height:0 !important;

    align-self:start;
}

.summary-box::before{

    content:"";

    position:absolute;

    inset:0;

    z-index:-1;

    pointer-events:none;

    background:linear-gradient(115deg, rgba(255,255,255,.035), transparent 35%);
}

.summary-box > *{

    position:relative;
}

.summary-box svg{

    color:#55d38d;

    filter:drop-shadow(0 8px 14px rgba(38,198,122,.22));
}

.summary-box h3{

    max-width:680px;

    margin:0;

    font-size:clamp(32px, 4vw, 42px);

    line-height:1.08;

    letter-spacing:-.035em;
}

.summary-box h4{

    max-width:500px;

    margin:0;

    color:#b8c5bd;

    font-size:15px;

    font-weight:600;

    line-height:1.55;
}

.checkout-button{

    margin-top:6px;

    width:320px;

    height:65px;

    font-size:18px;

    border-radius:18px;
}

.checkout-details{

    width:min(100%, 560px);

    display:flex;

    flex-direction:column;

    gap:18px;

    text-align:left;

    padding:4px 0 0;
}

/* La regla display:flex de arriba debe dejar de aplicar cuando JS oculta el formulario. */
.checkout-details[hidden]{

    display:none !important;
}

.address-grid{

    display:grid;

    grid-template-columns:repeat(2, minmax(0, 1fr));

    gap:12px;
}

.address-field{

    display:flex;

    flex-direction:column;

    min-width:0;

    grid-column:1 / -1;

    gap:6px;

    padding-bottom:9px;

    border:0;

    border-bottom:1.5px solid rgba(255,255,255,.16);

    border-radius:0;

    background:none;

    box-shadow:none;

    transition:border-color .25s ease;
}

.address-field--half{

    grid-column:span 1;
}

.address-field:focus-within{

    border-color:#55d38d;

    background:none;

    box-shadow:none;
}

.address-field label,
.payment-method > span{

    color:#dce8e0;

    font-size:11px;

    font-weight:800;

    letter-spacing:.08em;

    text-transform:uppercase;
}

.address-field label span{

    color:#83948a;

    font-weight:600;

    text-transform:none;
}

.checkout-details input{

    width:100%;

    min-height:28px;

    padding:3px 0 0;

    border:0;

    outline:none;

    background:transparent;

    color:white;

    font:inherit;

    transition:color .25s;
}

.checkout-details input::placeholder{

    color:#87918b;
}

.checkout-details input:focus{

    box-shadow:none;
}

.payment-method{

    display:flex;

    flex-direction:column;

    gap:11px;
}

.payment-options{

    display:grid;

    grid-template-columns:repeat(2, minmax(0, 1fr));

    gap:12px;
}

.payment-option{

    position:relative;

    min-height:48px;

    border:1.5px solid rgba(255,255,255,.16);

    border-radius:999px;

    background:transparent;

    color:var(--muted);

    font:inherit;

    font-weight:800;

    cursor:pointer;

    transition:border-color .22s ease, color .22s ease, background .22s ease;
}

.payment-option:hover{

    border-color:rgba(85,211,141,.55);

    color:white;
}

.payment-option.is-selected{

    border-color:#55d38d;

    color:#55d38d;

    background:rgba(85,211,141,.08);
}

.checkout-details.is-complete{

    pointer-events:none;

    animation:checkout-details-out .45s cubic-bezier(.22,1,.36,1) forwards;
}

.checkout-button[hidden]{

    display:none;
}

.checkout-button.is-visible{

    animation:checkout-button-in .45s cubic-bezier(.22,1,.36,1) both;
}

.summary-box.is-ready{

    flex:0 0 auto;

    justify-content:flex-start;

    gap:12px;

    max-height:310px !important;

    padding:26px 34px;

    height:310px !important;

    min-height:0 !important;
}

.summary-box.is-ready svg{

    width:60px;

    height:60px;
}

.summary-box.is-ready .checkout-button{

    display:inline-flex !important;

    align-items:center;

    justify-content:center;

    visibility:visible !important;

    opacity:1 !important;

    flex:0 0 auto;

    margin-top:2px;
}

.summary-box.is-ready > svg{

    display:block !important;

    flex:0 0 auto;
}

.summary-panel.is-ready{

    height:auto !important;

    min-height:0 !important;

    align-self:start !important;
}

@keyframes checkout-details-out{

    to{

        opacity:0;

        transform:translateY(-14px) scale(.97);
    }
}

@keyframes checkout-button-in{

    from{

        opacity:0;

        transform:translateY(16px) scale(.96);
    }

    to{

        opacity:1;

        transform:translateY(0) scale(1);
    }
}

@media(max-width:768px){

    .cart-panel{

        padding:18px 16px;
    }

    .cart-header{

        gap:10px;

        margin-bottom:20px;
    }

    .cart-header h2{

        font-size:24px;

        letter-spacing:-.01em;
    }

    .cart-header span{

        font-size:11px;

        font-weight:800;

        letter-spacing:.04em;

        white-space:nowrap;

        padding:6px 12px;

        border-radius:999px;

        background:rgba(85,211,141,.1);

        border:1px solid rgba(85,211,141,.28);
    }

    .summary-panel{

        padding:24px 16px;
    }

    .summary-panel h2{

        font-size:26px;

        margin-bottom:14px;
    }

    .summary-divider{

        width:64px;

        margin-bottom:22px;
    }

    .summary-box{

        padding:26px 16px;

        border-radius:20px;
    }

    .summary-box svg{

        width:44px;

        height:44px;
    }

    .summary-box h3{

        font-size:22px;
    }

    .summary-box h4{

        font-size:13px;
    }

    .checkout-details{

        padding:12px 8px;

        border-radius:16px;
    }

    .address-grid{

        grid-template-columns:1fr;
    }

    .address-field--half{

        grid-column:span 1;
    }

    .summary-box.is-ready{

        height:auto !important;

        max-height:none !important;

        padding:24px 16px;
    }
}

.secondary-button{

    width:100%;

    margin-top:20px;

    background:transparent;

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

    color:white;

    padding:16px;

    border-radius:14px;

    cursor:pointer;
}

.secondary-button:hover{

    border-color:rgba(47,143,91,.5);
}

.cart-item{

    display:flex;

    flex-wrap:wrap;

    align-items:center;

    gap:12px 20px;

    background:rgba(20,25,22,.85);

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

    border-radius:18px;

    padding:15px;

    margin-bottom:15px;

    transition:transform .25s ease, border-color .25s ease;
}


.cart-item img{

    width:110px;

    height:140px;

    object-fit:cover;

    border-radius:14px;

    display:block;

    background:#111;
}

.cart-item:hover{

    border-color:rgba(47,143,91,.35);

    transform:translateY(-2px);
}

.cart-item-actions{
    flex:1 1 100%;
    display:flex;
    flex-direction:row;
    align-items:center;
    justify-content:space-between;
    order:3;
}

.qty-stepper{
    display:flex;
    align-items:center;
    gap:10px;
    background:rgba(255,255,255,.05);
    border:1px solid rgba(255,255,255,.08);
    border-radius:999px;
    padding:5px;
}

.qty-btn{
    width:26px;
    height:26px;
    border:none;
    border-radius:50%;
    background:rgba(255,255,255,.08);
    color:white;
    font-size:15px;
    font-weight:800;
    line-height:1;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    transition:background .2s ease;
}

.qty-btn:hover{
    background:var(--green);
}

.qty-value{
    min-width:16px;
    text-align:center;
    font-size:13px;
    font-weight:800;
    color:white;
    font-variant-numeric:tabular-nums;
}

.cart-remove{

    width:42px;

    height:42px;

    border:none;

    border-radius:50%;

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

    color:white;

    cursor:pointer;

    transition:.25s;


    flex-shrink:0;
}

.cart-remove:hover{

    background:#a53b3b;
}





.cart-info{

    min-width:0;

    flex:1;
}

.cart-info h3{

    font-size:18px;

    margin-bottom:8px;

    color:white;

    overflow-wrap:break-word;
}

.cart-info p{

    color:var(--muted);

    font-size:14px;

    margin-bottom:4px;
}

.checkout-button{

    background:var(--green) !important;

    color:white !important;

    border:none;

    cursor:pointer;

    transition:.25s;
}

.checkout-button:hover{

    background:var(--green-hover) !important;

    transform:translateY(-2px);
    
}

.cart-breadcrumb{

    max-width:1500px;

    margin:0 auto 30px;

    padding:0 40px;
}

.cart-breadcrumb a{

    display:inline-flex;

    align-items:center;

    gap:8px;

    padding:12px 18px;

    border-radius:14px;

    background:rgba(20,25,22,.85);

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

    color:white;

    transition:.25s;
}

.cart-breadcrumb a:hover{

    border-color:rgba(47,143,91,.4);

    background:rgba(47,143,91,.08);

    transform:translateX(-2px);
}

@media(max-width:768px){

    .hero{
        padding:40px 20px 20px;
    }

    .hero h1{
        font-size:3rem;
        letter-spacing:-2px;
    }

    .catalog-layout{

        display:flex;
        flex-direction:column;

        padding:0 15px 40px;

        gap:20px;
    }

    .sidebar{

        width:100%;

        position:relative;

        top:auto;

        padding:15px;
    }

    .sidebar-section{

        margin-bottom:15px;
    }

    .sidebar-list{

        flex-direction:row;

        overflow-x:auto;

        gap:10px;

        padding-bottom:5px;
    }

    .sidebar-item{

        white-space:nowrap;

        min-width:max-content;
    }

    .catalog-grid{

        grid-template-columns:repeat(2,1fr);

        gap:14px;
    }

    .jersey-media img{

        height:240px;
    }

    .jersey-title{

        font-size:.8rem;
    }
}

@media(max-width:768px){

    .cart-page{

        padding:15px;
    }

    .cart-layout{

        display:flex;

        flex-direction:column;

        gap:20px;
    }

    .cart-item{

        flex-wrap:wrap;

        gap:12px;

        padding:12px;
    }

    .cart-item img{

        width:80px;

        height:100px;
    }

    .cart-link{

        gap:14px;
    }

    .cart-info h3{

        font-size:15px;
    }

    .checkout-button{

        width:100%;
    }

    .order-card{

        position:relative;

        top:auto;
    }
}

.cart-link{

    display:flex;

    align-items:center;

    gap:18px;

    flex:1;

    min-width:0;

    text-decoration:none;

    color:inherit;

    cursor:pointer;
}

.cart-link:hover .cart-info h3{

    color:var(--green);
}
.cart-item{

    cursor:pointer;
}

.jersey-price{

    margin-top:8px;

    color:#55d38d;

    font-size:18px;

    font-weight:700;
}

.product-price{

    font-size:34px;

    font-weight:800;

    color:#55d38d;
}

.cart-price{

    color:#55d38d !important;

    font-size:18px !important;

    font-weight:700;
}

.product-price{

    display:inline-flex;

    align-items:center;

    padding:10px 18px;

    border-radius:14px;

    background:rgba(47,143,91,.12);

    border:1px solid rgba(47,143,91,.25);

    color:#55d38d;

    font-size:32px;

    font-weight:800;

    width:fit-content;
}

.jersey-body{

    padding-top:14px;

    text-align:center;

    display:flex;

    flex-direction:column;

    align-items:center;
}

.jersey-price{

    margin-top:10px;

    padding:8px 14px;

    border-radius:999px;

    background:rgba(47,143,91,.12);

    border:1px solid rgba(47,143,91,.25);

    color:#55d38d;

    font-size:15px;

    font-weight:700;

    letter-spacing:.5px;
}

/* ==========================
   TOP SLIDER BANNER
========================== */

.top-banner{
    width:100%;
    height:42px;
    overflow:hidden;
    background:#111814;
    border-bottom:1px solid rgba(255,255,255,.06);
    display:flex;
    align-items:center;
    position:relative;
    z-index:9999;
}

.top-banner-track{
    display:flex;
    align-items:center;
    gap:80px;
    white-space:nowrap;
    min-width:max-content;
    animation:bannerScroll 25s linear infinite;
}

.top-banner-track span{
    color:#55d38d;
    font-size:13px;
    font-weight:700;
    letter-spacing:1px;
    text-transform:uppercase;
}

@keyframes bannerScroll{
    from{
        transform:translateX(0);
    }
    to{
        transform:translateX(-50%);
    }
}
.product-option {
    margin-top: 18px;
}

.product-option label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #bfc4cf;
    text-transform: uppercase;
}

.product-option select {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.05);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    outline: none;
    transition: .25s;
    cursor: pointer;
}

.product-option select:hover {
    border-color: rgba(255,255,255,.25);
}

.product-option select:focus {
    border-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(255,255,255,.12);
}

.product-option option {
    background: #121212;
    color: white;
}

.size-chip-group{
    display:flex;
    flex-wrap:wrap;
    gap:9px;
}

.size-chip{
    display:inline-flex;
    align-items:center;
    gap:5px;
    padding:11px 16px;
    border-radius:11px;
    border:1px solid rgba(255,255,255,.12);
    background:rgba(255,255,255,.05);
    color:#e7ece9;
    font-size:14px;
    font-weight:700;
    cursor:pointer;
    transition:border-color .2s ease,background .2s ease,color .2s ease;
}

.size-chip:hover{
    border-color:rgba(85,211,141,.5);
    color:#fff;
}

.size-chip.is-active{
    color:#08130d;
    background:#55d38d;
    border-color:#55d38d;
}

.size-chip .size-plus{
    font-size:13px;
    font-weight:800;
    color:#55d38d;
}

.size-chip.is-active .size-plus{
    color:#08130d;
}

.mobile-buy-bar{
    display:none;
}

@media(max-width:768px){
    .mobile-buy-bar{
        display:flex;
        align-items:center;
        justify-content:space-between;
        gap:14px;
        position:fixed;
        left:0;
        right:0;
        bottom:0;
        z-index:40;
        padding:14px 18px;
        padding-bottom:calc(14px + env(safe-area-inset-bottom));
        background:rgba(11,15,13,.92);
        backdrop-filter:blur(14px);
        border-top:1px solid rgba(255,255,255,.08);
        box-shadow:0 -12px 30px rgba(0,0,0,.35);
    }

    .mobile-buy-price{
        font-size:18px;
        font-weight:800;
        color:#55d38d;
        white-space:nowrap;
    }

    .mobile-buy-bar .primary-button{
        width:auto;
        flex:0 0 auto;
        padding:13px 26px;
    }

    .product-page{
        padding-bottom:150px;
    }
}

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

@media(max-width:768px){
    .mobile-bottom-nav{
        display:flex;
        align-items:stretch;
        justify-content:space-around;
        position:fixed;
        left:0;
        right:0;
        bottom:0;
        z-index:50;
        padding:8px 6px;
        padding-bottom:calc(8px + env(safe-area-inset-bottom));
        background:rgba(11,15,13,.94);
        backdrop-filter:blur(14px);
        border-top:1px solid rgba(255,255,255,.08);
        box-shadow:0 -12px 30px rgba(0,0,0,.35);
    }

    /* En producto.html ya hay una barra de compra fija abajo; si el nav
       quedara pegado al piso, una taparía a la otra. */
    .mobile-bottom-nav.is-stacked{
        bottom:64px;
    }

    .catalog-layout{
        padding-bottom:80px;
    }

    .cart-page{
        padding-bottom:80px;
    }
}

.bottom-nav-item{
    flex:1;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:2px;
    padding:6px 4px;
    border:none;
    background:none;
    color:var(--muted);
    font-size:10px;
    font-weight:700;
    text-decoration:none;
    cursor:pointer;
    -webkit-tap-highlight-color:transparent;
}

.bottom-nav-item.is-active{
    color:#55d38d;
}

.bottom-nav-icon{
    position:relative;
    display:flex;
    line-height:1;
}

.bottom-nav-icon svg{
    width:21px;
    height:21px;
}

.bottom-nav-badge{
    position:absolute;
    top:-6px;
    right:-11px;
    min-width:15px;
    height:15px;
    padding:0 4px;
    border-radius:999px;
    background:#55d38d;
    color:#08130d;
    font-size:9px;
    font-weight:800;
    display:flex;
    align-items:center;
    justify-content:center;
}

#customTextInput{
    width:100%;
    padding:12px;
    border:1px solid rgba(255,255,255,.15);
    border-radius:10px;
    background:#111;
    color:#fff;
    font-size:14px;
    margin-top:6px;
}

#customTextInput:focus{
    outline:none;
    border-color:#d4af37;
}

/* ==========================
   FILTER SYSTEM
========================== */

.catalog-layout{
    grid-template-columns:280px minmax(0,1fr);
    align-items:start;
    overflow:visible;
}

.catalog-layout.filters-has-team{
    grid-template-columns:280px minmax(0,1fr);
}

.catalog-area{
    min-width:0;
}

.sidebar{
    --team-panel-width:240px;
    --team-panel-gap:14px;
    --sidebar-team-shift:-218px;
    position:sticky;
    transition:
        transform .46s cubic-bezier(.22,1,.36,1),
        border-color .28s ease,
        box-shadow .28s ease;
    will-change:transform;
}

.sidebar.has-team-panel{
    transform:translateX(var(--sidebar-team-shift));
    border-color:rgba(85,211,141,.16);
    box-shadow:0 18px 56px rgba(0,0,0,.34);
}

.filter-actions{
    display:grid;
    grid-template-columns:1fr;
    gap:12px;
    margin-bottom:0;
}

.sidebar.filters-open .filter-actions{
    grid-template-columns:minmax(0,1fr) minmax(118px,.92fr);
    gap:12px;
    margin-bottom:20px;
}

.filter-clear[hidden],
.filters-panel[hidden],
.team-panel[hidden]{
    display:none !important;
}

.sidebar-button{
    min-height:48px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border:1px solid rgba(255,255,255,.08);
    border-radius:16px;
    padding:14px 18px;
    font-size:13px;
    font-weight:800;
    color:white;
    cursor:pointer;
    transition:
        transform .24s ease,
        border-color .24s ease,
        box-shadow .24s ease,
        background .24s ease,
        opacity .24s ease;
    box-shadow:0 10px 22px rgba(0,0,0,.18);
}

#filtersToggle{
    background:rgba(85,211,141,.08);
    border:1.5px solid transparent;
    background-image:
        linear-gradient(rgba(10,14,12,.9), rgba(10,14,12,.9)),
        linear-gradient(135deg, #7CF0B2, #2f8f5b);
    background-origin:border-box;
    background-clip:padding-box, border-box;
    color:#8ff2bd;
    box-shadow:0 0 0 1px rgba(85,211,141,.08), 0 8px 20px rgba(47,143,91,.16);
}

#filtersToggle:hover,
#filtersToggle.active{
    background-image:
        linear-gradient(rgba(85,211,141,.14), rgba(85,211,141,.14)),
        linear-gradient(135deg, #9CFCC7, #39a76a);
    color:#c3f8dc;
    box-shadow:0 0 0 1px rgba(85,211,141,.2), 0 12px 28px rgba(47,143,91,.28);
    transform:translateY(-2px);
}

.filter-clear{
    background:linear-gradient(135deg,rgba(214,162,76,.2),rgba(93,66,35,.52));
    border-color:rgba(214,162,76,.34);
    color:#ffe0a6;
    opacity:0;
    pointer-events:none;
    transform:translateY(7px) scale(.97);
    box-shadow:0 10px 22px rgba(128,80,22,.12);
}

.filter-clear.is-visible{
    opacity:1;
    pointer-events:auto;
    transform:translateY(0) scale(1);
}

.filter-clear:hover{
    background:linear-gradient(135deg,rgba(231,177,85,.28),rgba(118,77,35,.62));
    border-color:rgba(245,191,95,.54);
    color:#fff2d4;
    transform:translateY(-2px) scale(1);
}

.filters-panel{
    opacity:0;
    max-height:0;
    overflow:hidden;
    transform:translateY(-8px);
    transition:
        max-height .26s cubic-bezier(.22,1,.36,1),
        opacity .2s ease,
        transform .24s cubic-bezier(.22,1,.36,1);
    will-change:max-height,opacity,transform;
}

.filters-panel.is-visible{
    opacity:1;
    max-height:none;
    transform:translateY(0);
    overflow:visible;
}

.sidebar.has-team-panel .filters-panel{
    transform:translateY(0);
}

.filter-choice-panel{
    display:flex;
    flex-direction:column;
    gap:14px;
    margin-bottom:20px;
}

.filter-choice-panel.is-refreshing{
    animation:filterContentIn .3s cubic-bezier(.22,1,.36,1) both;
}

.filter-mode-buttons{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
}

.filter-mode-button{
    min-height:66px;
    width:100%;
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    justify-content:center;
    gap:4px;
    text-align:left;
    padding:12px 14px;
    border:1px solid rgba(255,255,255,.08);
    border-left:3px solid rgba(255,255,255,.2);
    border-radius:12px;
    background:
        linear-gradient(145deg,rgba(255,255,255,.05),rgba(255,255,255,.015)),
        rgba(10,14,12,.8);
    color:#ecf8f0;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.05),0 14px 26px rgba(0,0,0,.16);
}

.fmb-name{
    font-size:15px;
    font-weight:800;
}

.fmb-count{
    font-size:11.5px;
    font-weight:700;
    color:var(--muted);
    font-variant-numeric:tabular-nums;
}

/* Un color distinto por tarjeta: Countries (celeste), Leagues (verde,
   el acento principal del sitio), Sport Clothes (naranja), NBA (violeta). */
.filter-mode-button[data-action="countries"]{ border-left-color:rgba(103,216,255,.6); }
.filter-mode-button[data-action="countries"]:hover,
.filter-mode-button[data-action="countries"].active{
    border-left-color:#67d8ff;
    background:linear-gradient(145deg,rgba(103,216,255,.16),rgba(255,255,255,.02)),rgba(12,18,15,.9);
}
.filter-mode-button[data-action="countries"].active .fmb-name{ color:#bdeeff; }

.filter-mode-button[data-action="clubs"]{ border-left-color:rgba(85,211,141,.65); }
.filter-mode-button[data-action="clubs"]:hover,
.filter-mode-button[data-action="clubs"].active{
    border-left-color:#55d38d;
    background:linear-gradient(145deg,rgba(85,211,141,.18),rgba(255,255,255,.02)),rgba(12,18,15,.9);
}
.filter-mode-button[data-action="clubs"].active .fmb-name{ color:#c3f3da; }

.filter-mode-button[data-action="sportclothes"]{ border-left-color:rgba(245,167,66,.6); }
.filter-mode-button[data-action="sportclothes"]:hover,
.filter-mode-button[data-action="sportclothes"].active{
    border-left-color:#f5a742;
    background:linear-gradient(145deg,rgba(245,167,66,.18),rgba(255,255,255,.02)),rgba(12,18,15,.9);
}
.filter-mode-button[data-action="sportclothes"].active .fmb-name{ color:#ffddac; }

.filter-mode-button[data-action="nba"]{ border-left-color:rgba(192,132,252,.6); }
.filter-mode-button[data-action="nba"]:hover,
.filter-mode-button[data-action="nba"].active{
    border-left-color:#c084fc;
    background:linear-gradient(145deg,rgba(192,132,252,.18),rgba(255,255,255,.02)),rgba(12,18,15,.9);
}
.filter-mode-button[data-action="nba"].active .fmb-name{ color:#e9d3ff; }

.filter-back{
    width:fit-content;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:38px;
    border:1px solid rgba(255,255,255,.1);
    background:linear-gradient(145deg,rgba(255,255,255,.075),rgba(255,255,255,.025));
    color:#cdd8d1;
    border-radius:999px;
    padding:9px 15px;
    font-size:13px;
    font-weight:800;
    cursor:pointer;
    transition:
        transform .24s ease,
        border-color .24s ease,
        background .24s ease,
        color .24s ease;
}

.filter-back:hover{
    color:white;
    border-color:rgba(85,211,141,.52);
    background:linear-gradient(145deg,rgba(85,211,141,.16),rgba(255,255,255,.045));
}

.filter-scroll-list{
    display:flex;
    flex-flow:row wrap;
    align-content:flex-start;
    gap:8px;
    max-height:330px;
    overflow-y:auto;
    padding:2px 5px 6px 0;
    scrollbar-width:thin;
    scrollbar-color:rgba(85,211,141,.45) transparent;
}

.filter-scroll-list .sidebar-item{
    flex:0 0 auto;
    min-height:36px;
    width:auto;
    border:1px solid rgba(255,255,255,.09);
    border-radius:999px;
    background:rgba(255,255,255,.035);
    color:#c0c9c3;
    padding:8px 14px;
    font-size:12.5px;
    font-weight:700;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.025);
    transition:
        border-color .22s ease,
        background .22s ease,
        color .22s ease;
}

.filter-scroll-list .sidebar-item:hover{
    color:white;
    border-color:rgba(85,211,141,.5);
    background:rgba(85,211,141,.1);
}

.filter-scroll-list .sidebar-item.active{
    color:#08130d;
    font-weight:800;
    border-color:#55d38d;
    background:#55d38d;
}

.filter-scroll-list::-webkit-scrollbar,
.type-checklist::-webkit-scrollbar{
    width:7px;
}

.filter-scroll-list::-webkit-scrollbar-track,
.type-checklist::-webkit-scrollbar-track{
    background:rgba(255,255,255,.03);
    border-radius:20px;
}

.filter-scroll-list::-webkit-scrollbar-thumb,
.type-checklist::-webkit-scrollbar-thumb{
    background:rgba(85,211,141,.38);
    border-radius:20px;
}

.price-filter{
    padding-top:18px;
    padding-bottom:2px;
    border-top:1px solid rgba(255,255,255,.075);
}

.price-filter h3{
    font-size:12px;
    letter-spacing:3px;
    color:#8c9991;
    margin-bottom:16px;
}

.price-slider{
    position:relative;
    height:30px;
    margin:0 6px;
}

/* El input (invisible) queda pegado exactamente donde está la línea
   decorativa — así el círculo, que se dibuja centrado sobre esa línea por
   default, se levanta un alto fijo y predecible con translateY, sin
   depender de cómo cada navegador calcule el centrado. */
.price-slider-track{
    position:absolute;
    left:0;
    right:0;
    bottom:0;
    height:4px;
    border-radius:4px;
    background:#243129;
}

.price-slider-fill{
    position:absolute;
    bottom:0;
    height:4px;
    border-radius:4px;
    background:linear-gradient(90deg, #2f8f5b, #55d38d);
    box-shadow:0 0 8px rgba(85,211,141,.5);
}

.price-slider input[type="range"]{
    position:absolute;
    left:0;
    bottom:0;
    width:100%;
    height:4px;
    margin:0;
    background:none;
    pointer-events:none;
    -webkit-appearance:none;
    appearance:none;
    z-index:1;
}

.price-slider input[type="range"]::-webkit-slider-runnable-track{
    height:4px;
    background:transparent;
}

.price-slider input[type="range"]::-moz-range-track{
    height:4px;
    background:transparent;
    border:none;
}

.price-slider input[type="range"]::-webkit-slider-thumb{
    -webkit-appearance:none;
    appearance:none;
    pointer-events:auto;
    width:20px;
    height:20px;
    border-radius:50%;
    background:radial-gradient(circle at 34% 28%, #ffffff, #eafff4 55%, #cdf3de 100%);
    border:none;
    box-shadow:
        0 0 0 4px rgba(85,211,141,.2),
        0 6px 14px rgba(0,0,0,.4),
        inset 0 1px 1px rgba(255,255,255,.9);
    cursor:grab;
    /* Chrome/Edge alinean el círculo por el borde de arriba con la pista
       por default, no centrado — esto lo centra de verdad: (alto de la
       pista 4px - alto del círculo 20px) / 2. */
    margin-top:-8px;
    transition:box-shadow .15s ease;
}

.price-slider input[type="range"]::-moz-range-thumb{
    pointer-events:auto;
    width:20px;
    height:20px;
    border-radius:50%;
    background:radial-gradient(circle at 34% 28%, #ffffff, #eafff4 55%, #cdf3de 100%);
    border:none;
    box-shadow:
        0 0 0 4px rgba(85,211,141,.2),
        0 6px 14px rgba(0,0,0,.4);
    cursor:grab;
    transition:box-shadow .15s ease;
}

.price-slider input[type="range"]:hover::-webkit-slider-thumb{
    transform:scale(1.12);
    box-shadow:
        0 0 0 6px rgba(85,211,141,.28),
        0 8px 18px rgba(0,0,0,.45),
        inset 0 1px 1px rgba(255,255,255,.9);
}

.price-slider input[type="range"]:hover::-moz-range-thumb{
    transform:scale(1.12);
}

.price-slider input[type="range"]:active::-webkit-slider-thumb{
    cursor:grabbing;
    transform:scale(1.2);
    box-shadow:
        0 0 0 7px rgba(85,211,141,.32),
        0 8px 20px rgba(0,0,0,.5),
        inset 0 1px 1px rgba(255,255,255,.9);
}

.price-slider input[type="range"]:active::-moz-range-thumb{
    cursor:grabbing;
    transform:scale(1.2);
}

.price-slider-labels{
    display:flex;
    justify-content:space-between;
    margin-top:12px;
    font-size:12px;
    font-weight:800;
    color:#c8d1cb;
    font-variant-numeric:tabular-nums;
}

.type-checklist{
    display:flex;
    flex-direction:column;
    gap:9px;
    max-height:430px;
    overflow-y:auto;
    padding-top:18px;
    padding-right:5px;
    border-top:1px solid rgba(255,255,255,.075);
    scrollbar-width:thin;
    scrollbar-color:rgba(85,211,141,.45) transparent;
}

.filters-panel.is-visible .type-checklist{
    animation:filterContentIn .34s cubic-bezier(.22,1,.36,1) .04s both;
}

.type-checklist h3{
    font-size:12px;
    letter-spacing:3px;
    color:#8c9991;
    margin-bottom:4px;
}

.type-chip-cloud{
    display:flex;
    flex-flow:row wrap;
    gap:8px;
}

.type-chip{
    font-family:inherit;
    font-size:12px;
    font-weight:700;
    padding:8px 14px;
    border-radius:999px;
    border:1px solid rgba(255,255,255,.1);
    background:rgba(255,255,255,.03);
    color:#c0c9c3;
    cursor:pointer;
    transition:
        color .2s ease,
        background .2s ease,
        border-color .2s ease;
}

.type-chip:hover{
    color:white;
    border-color:rgba(85,211,141,.45);
    background:rgba(85,211,141,.1);
}

.type-chip.active{
    color:#08130d;
    font-weight:800;
    border-color:#55d38d;
    background:#55d38d;
}

.team-panel{
    position:absolute;
    top:0;
    left:calc(100% + var(--team-panel-gap));
    width:var(--team-panel-width);
    max-height:620px;
    overflow:hidden;
    opacity:0;
    pointer-events:none;
    transform:translateX(-12px) scale(.985);
    background:rgba(9,12,10,.9);
    border:1px solid rgba(255,255,255,.08);
    border-radius:18px;
    padding:18px;
    backdrop-filter:blur(18px);
    box-shadow:0 18px 48px rgba(0,0,0,.36),inset 0 1px 0 rgba(255,255,255,.035);
    transition:
        opacity .3s ease,
        transform .42s cubic-bezier(.22,1,.36,1),
        border-color .24s ease;
    z-index:5;
}

.team-panel.is-visible{
    opacity:1;
    pointer-events:auto;
    transform:translateX(0) scale(1);
    border-color:rgba(85,211,141,.22);
}

.team-panel h3{
    color:#55d38d;
    font-size:12px;
    letter-spacing:3px;
    margin:16px 0 12px;
    text-transform:uppercase;
}

.team-panel-title{
    display:flex;
    align-items:center;
    gap:8px;
    font-size:11px;
    font-weight:800;
    letter-spacing:.08em;
    text-transform:uppercase;
    color:#55d38d;
    margin:14px 0 10px;
}

.team-panel-title .dot{
    width:7px;
    height:7px;
    border-radius:50%;
    background:#55d38d;
    box-shadow:0 0 8px rgba(85,211,141,.7);
}

.team-scroll-list{
    max-height:500px;
}

@keyframes filterContentIn{
    from{
        opacity:0;
        transform:translateY(8px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

@media(max-width:1100px){
    .sidebar{
        --team-panel-width:230px;
        --sidebar-team-shift:-205px;
    }
}

@media(max-width:900px){
    .catalog-layout.filters-has-team{
        grid-template-columns:1fr;
    }

    .sidebar.has-team-panel{
        transform:none;
    }

    .team-panel{
        position:static;
        width:100%;
        max-height:620px;
        margin-top:14px;
        transform:translateY(-8px);
    }

    .team-panel.is-visible{
        transform:translateY(0);
    }
}

@media(max-width:768px){
    .sidebar{
        max-width:520px;
        margin:0 auto;
        padding:22px;
        border-radius:20px;
    }

    .search-wrapper{
        margin-bottom:22px;
    }

    .search-wrapper input{
        min-height:38px;
    }

    .sidebar.filters-open .filter-actions{
        grid-template-columns:1fr 1fr;
        gap:10px;
        margin-bottom:18px;
    }

    .sidebar-button{
        min-height:46px;
        padding:12px 11px;
        border-radius:14px;
        font-size:12px;
        white-space:nowrap;
    }

    .filter-mode-buttons{
        gap:10px;
    }

    .filter-mode-button{
        min-height:56px;
        padding:11px 12px;
    }

    .filter-choice-panel{
        gap:12px;
        margin-bottom:16px;
    }

    .filter-scroll-list{
        gap:7px;
        max-height:250px;
    }

    .type-checklist{
        max-height:245px;
        padding-top:16px;
    }

    .sidebar.has-team-panel .type-checklist{
        display:none;
    }

    .team-panel{
        padding:16px;
        max-height:360px;
        margin-top:12px;
    }

    .team-scroll-list{
        max-height:275px;
    }
}

@media(max-width:430px){
    .catalog-layout{
        padding-left:12px;
        padding-right:12px;
    }

    .sidebar{
        padding:18px;
    }

    .sidebar.filters-open .filter-actions{
        grid-template-columns:1fr;
    }

    .sidebar-button,
    .filter-mode-button{
        width:100%;
    }

  
}

.team-panel-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-bottom:14px;
}

.team-panel-header h3{
    margin:0;
    color:var(--accent);
    font-size:14px;
    text-transform:uppercase;
    letter-spacing:.12em;
}

.team-back{
    padding:8px 14px;
    border-radius:10px;
    cursor:pointer;
}

/* Cart totals summary */
.cart-totals{
    margin-top:18px;
    padding:18px 20px;
    border:1px solid rgba(255,255,255,.08);
    border-radius:16px;
    background:rgba(255,255,255,.03);
}

.cart-totals-row{
    display:flex;
    justify-content:space-between;
    font-size:15px;
    color:var(--muted);
    padding:5px 0;
}

.cart-totals-total{
    margin-top:6px;
    padding-top:12px;
    border-top:1px solid rgba(255,255,255,.08);
    color:var(--text);
    font-size:19px;
    font-weight:700;
}

.cart-shipping-hint{
    margin-top:10px;
    font-size:13px;
    color:#55d38d;
}

/* Add-to-cart toast */
.cart-toast{
    position:fixed;
    left:50%;
    bottom:28px;
    z-index:999;
    padding:14px 22px;
    border-radius:14px;
    background:rgba(15,18,16,.95);
    border:1px solid rgba(85,211,141,.35);
    color:var(--text);
    font-size:14px;
    font-weight:600;
    box-shadow:0 18px 40px rgba(0,0,0,.35);
    transform:translate(-50%, 16px);
    opacity:0;
    pointer-events:none;
    transition:opacity .25s ease, transform .25s ease;
}

.cart-toast.is-visible{
    opacity:1;
    transform:translate(-50%, 0);
}

/* Shipping address field validation */
.address-field.is-invalid{
    border-color:rgba(230,90,90,.75);
}

.address-field.is-invalid label{
    color:#e88a8a;
}
