/* =========================================================
   SEEI STUDIO — TIENDA
========================================================= */

.sr-only{
    position:absolute;
    width:1px;
    height:1px;
    padding:0;
    margin:-1px;
    overflow:hidden;
    clip:rect(0,0,0,0);
    white-space:nowrap;
    border:0;
}

.shop-hero{
    position:relative;
    min-height:680px;
    padding:calc(var(--header-height) + 90px) 8% 90px;
    display:flex;
    align-items:center;
    overflow:hidden;
    color:#fff;
    background:
        linear-gradient(110deg,rgba(24,38,51,.88),rgba(24,38,51,.28)),
        url('../assets/images/tienda/tienda-hero.jpg') center/cover no-repeat;
}

.shop-hero-overlay{
    position:absolute;
    inset:0;
    background:
        radial-gradient(circle at 75% 28%,rgba(176,188,164,.26),transparent 32%),
        linear-gradient(180deg,transparent 55%,rgba(16,28,38,.24));
}

.shop-hero-content{
    position:relative;
    z-index:1;
    width:min(720px,100%);
}

.shop-hero h1{
    margin:16px 0 22px;
    font-size:clamp(3.8rem,7.4vw,6.7rem);
    font-weight:300;
    line-height:1;
    letter-spacing:-4px;
}

.shop-hero p{
    width:min(620px,100%);
    color:rgba(255,255,255,.9);
    font-size:1.05rem;
    line-height:1.8;
}

.shop-hero-button{
    min-height:52px;
    margin-top:34px;
    padding:14px 28px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border:1px solid rgba(255,255,255,.82);
    border-radius:999px;
    color:#fff;
    font-size:.8rem;
    font-weight:600;
    letter-spacing:1.4px;
    text-decoration:none;
    transition:transform .25s ease,background .25s ease,color .25s ease;
}

.shop-hero-button:hover{
    color:var(--dark);
    background:#fff;
    transform:translateY(-3px);
}

.shop-lead{
    width:min(720px,100%);
    margin:16px auto 0;
    color:var(--text);
    line-height:1.8;
}

.shop-toolbar{
    margin-top:42px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:22px;
}

.shop-filters{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}

.shop-filter{
    min-height:44px;
    padding:10px 18px;
    border:1px solid var(--border);
    border-radius:999px;
    color:var(--dark);
    background:#fff;
    font:inherit;
    font-size:.78rem;
    font-weight:500;
    cursor:pointer;
    transition:background .25s ease,color .25s ease,border-color .25s ease;
}

.shop-filter:hover,
.shop-filter.active{
    border-color:var(--primary);
    color:#fff;
    background:var(--primary);
}

.shop-search input{
    width:min(300px,100%);
    min-height:46px;
    padding:11px 18px;
    border:1px solid var(--border);
    border-radius:999px;
    outline:none;
    background:#fff;
    font:inherit;
}

.shop-search input:focus{
    border-color:var(--primary);
    box-shadow:0 0 0 4px rgba(108,133,158,.12);
}

.shop-products{
    padding:0 5% 110px;
}

.shop-grid{
    width:min(1380px,100%);
    margin-inline:auto;
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:24px;
}

.product-card{
    overflow:hidden;
    border:1px solid var(--border);
    border-radius:26px;
    background:#fff;
    box-shadow:0 16px 40px rgba(31,45,58,.08);
    transition:transform .3s ease,box-shadow .3s ease;
}

.product-card:hover{
    transform:translateY(-7px);
    box-shadow:0 24px 54px rgba(31,45,58,.14);
}

.product-card[hidden]{
    display:none !important;
}

.product-image-button{
    position:relative;
    width:100%;
    aspect-ratio:4 / 5;
    overflow:hidden;
    padding:0;
    border:0;
    background:#edf1ef;
    cursor:pointer;
}

.product-image-button img{
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
    transition:transform .55s ease;
}

.product-card:hover .product-image-button img{
    transform:scale(1.045);
}

.product-badge{
    position:absolute;
    top:16px;
    left:16px;
    padding:8px 11px;
    border-radius:999px;
    color:#fff;
    background:var(--primary);
    font-size:.65rem;
    font-weight:600;
    letter-spacing:1px;
}

.product-card-body{
    padding:22px;
}

.product-category{
    color:var(--secondary);
    font-size:.68rem;
    font-weight:600;
    letter-spacing:1.7px;
    text-transform:uppercase;
}

.product-card h3{
    margin:8px 0 10px;
    color:var(--dark);
    font-size:1.15rem;
}

.product-card p{
    min-height:72px;
    color:var(--text);
    font-size:.84rem;
    line-height:1.7;
}

.product-card-bottom{
    margin-top:22px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
}

.product-card-bottom strong{
    color:var(--dark);
    font-size:1rem;
}

.product-card-bottom button{
    padding:0;
    border:0;
    color:var(--primary);
    background:transparent;
    font:inherit;
    font-size:.75rem;
    font-weight:600;
    cursor:pointer;
}

.shop-empty{
    width:min(1380px,100%);
    margin:42px auto 0;
    padding:34px;
    border:1px dashed var(--border);
    border-radius:20px;
    color:var(--text);
    background:#fff;
    text-align:center;
}

.shop-future{
    padding:0 5% 100px;
}

.shop-future-card{
    width:min(1380px,100%);
    margin-inline:auto;
    padding:70px;
    display:grid;
    grid-template-columns:1.1fr .9fr;
    gap:60px;
    border-radius:32px;
    color:#fff;
    background:
        linear-gradient(120deg,rgba(34,51,68,.96),rgba(103,126,151,.9)),
        url('../assets/images/tienda/tienda-hero.jpg') center/cover no-repeat;
}

.shop-future-card h2{
    margin:12px 0 18px;
    font-size:clamp(2.2rem,4vw,3.8rem);
}

.shop-future-card p{
    color:rgba(255,255,255,.86);
    line-height:1.8;
}

.shop-future-card ul{
    margin:0;
    padding:0;
    display:grid;
    gap:14px;
    list-style:none;
}

.shop-future-card li{
    padding:16px 18px;
    border:1px solid rgba(255,255,255,.2);
    border-radius:16px;
    background:rgba(255,255,255,.08);
    backdrop-filter:blur(8px);
}

/* MODAL */

.product-modal{
    position:fixed;
    inset:0;
    z-index:7000;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:24px;
    opacity:0;
    visibility:hidden;
    transition:opacity .25s ease,visibility .25s ease;
}

.product-modal.active{
    opacity:1;
    visibility:visible;
}

.product-modal-backdrop{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    border:0;
    background:rgba(13,23,32,.9);
    backdrop-filter:blur(8px);
    cursor:pointer;
}

.product-modal-dialog{
    position:relative;
    z-index:1;
    width:min(960px,100%);
    max-height:calc(100dvh - 42px);
    overflow:auto;
    display:grid;
    grid-template-columns:.95fr 1.05fr;
    border-radius:28px;
    background:#fff;
    box-shadow:0 30px 80px rgba(0,0,0,.4);
    transform:translateY(18px) scale(.98);
    transition:transform .25s ease;
}

.product-modal.active .product-modal-dialog{
    transform:translateY(0) scale(1);
}

.product-modal-close{
    position:absolute;
    top:16px;
    right:16px;
    z-index:3;
    width:42px;
    height:42px;
    border:0;
    border-radius:50%;
    color:var(--dark);
    background:#eef2f2;
    font-size:1.8rem;
    cursor:pointer;
}

.product-modal-media{
    min-height:620px;
    background:#eef2f0;
}

.product-modal-media img{
    width:100%;
    height:100%;
    display:block;
    object-fit:cover;
}

.product-modal-content{
    padding:70px 54px;
    display:flex;
    flex-direction:column;
    justify-content:center;
}

.product-modal-content > span{
    color:var(--secondary);
    font-size:.72rem;
    font-weight:600;
    letter-spacing:1.8px;
    text-transform:uppercase;
}

.product-modal-content h2{
    margin:10px 0 18px;
    font-size:clamp(2.2rem,4vw,3.6rem);
    line-height:1.05;
}

.product-modal-content > p{
    color:var(--text);
    line-height:1.8;
}

.product-modal-content > strong{
    margin-top:22px;
    color:var(--dark);
    font-size:1.3rem;
}

.product-modal-status{
    margin-top:24px;
    padding:17px 18px;
    border-radius:16px;
    background:#f3f6f4;
}

.product-modal-status span{
    display:block;
    color:var(--dark);
    font-weight:600;
}

.product-modal-status small{
    color:var(--text);
}

.product-modal-contact,
.product-modal-cart{
    min-height:50px;
    margin-top:14px;
    padding:13px 22px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:999px;
    font:inherit;
    font-size:.78rem;
    font-weight:600;
    letter-spacing:1px;
    text-align:center;
}

.product-modal-contact{
    color:#fff;
    background:var(--primary);
    text-decoration:none;
}

.product-modal-cart{
    flex-direction:column;
    gap:2px;
    border:1px solid var(--border);
    color:#8c979d;
    background:#edf1f1;
    cursor:not-allowed;
}

.product-modal-cart small{
    font-size:.62rem;
    letter-spacing:0;
}

body.product-modal-open{
    overflow:hidden;
}

.reveal{
    opacity:0;
    transform:translateY(28px);
    transition:opacity .65s ease,transform .65s ease;
}

.reveal.visible{
    opacity:1;
    transform:translateY(0);
}

@media (max-width:1100px){
    .shop-grid{
        grid-template-columns:repeat(3,minmax(0,1fr));
    }

    .shop-future-card{
        grid-template-columns:1fr;
        gap:34px;
    }
}

@media (max-width:820px){
    .shop-toolbar{
        align-items:stretch;
        flex-direction:column;
    }

    .shop-search input{
        width:100%;
    }

    .shop-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

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

    .product-modal-media{
        min-height:0;
        aspect-ratio:4 / 3;
    }

    .product-modal-content{
        padding:38px 30px;
    }
}

@media (max-width:560px){
    .shop-hero{
        min-height:560px;
        padding:calc(var(--header-height) + 60px) 18px 60px;
    }

    .shop-hero h1{
        font-size:clamp(3.2rem,15vw,4.8rem);
        letter-spacing:-3px;
    }

    .shop-hero p{
        font-size:.94rem;
    }

    .shop-filters{
        flex-wrap:nowrap;
        overflow-x:auto;
        padding-bottom:5px;
        scrollbar-width:none;
    }

    .shop-filters::-webkit-scrollbar{
        display:none;
    }

    .shop-filter{
        flex:0 0 auto;
    }

    .shop-products{
        padding:0 16px 70px;
    }

    .shop-grid{
        grid-template-columns:1fr;
    }

    .product-card p{
        min-height:0;
    }

    .shop-future{
        padding:0 16px 64px;
    }

    .shop-future-card{
        padding:46px 22px;
        border-radius:24px;
    }

    .product-modal{
        padding:12px;
    }

    .product-modal-dialog{
        border-radius:22px;
    }

    .product-modal-media{
        aspect-ratio:1 / 1;
    }

    .product-modal-content{
        padding:32px 20px 24px;
    }
}

/* v2.3.1: catálogo más compacto e imágenes sin recorte */
.shop-grid{
    width:min(1180px,100%);
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:18px;
}
.product-card{border-radius:20px;}
.product-image-button{
    aspect-ratio:1 / 1;
    background:#f3f5f3;
}
.product-image-button img{
    object-fit:contain;
    object-position:center;
    padding:10px;
    box-sizing:border-box;
}
.product-card-body{padding:18px;}
.product-card p{
    min-height:0;
    display:-webkit-box;
    overflow:hidden;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
}
.product-card-bottom{margin-top:16px;}
@media(max-width:1050px){.shop-grid{grid-template-columns:repeat(3,minmax(0,1fr));}}
@media(max-width:780px){.shop-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:520px){.shop-grid{grid-template-columns:1fr;max-width:380px;}}
