/* ========================= */
/* PRODUCTOS - GTEEK */
/* ========================= */

.active-link{
    color:var(--primary);
}

.usd-note{
    color:var(--muted-2);
    font-weight:bold;
    font-size:14px;
    white-space:nowrap;
}

.products-hero{
    min-height:72svh;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    padding:clamp(130px, 16vw, 160px) clamp(16px, 6vw, 8%) clamp(64px, 8vw, 90px);
    background:
        radial-gradient(circle at top, rgba(56,189,248,0.22), transparent 35%),
        linear-gradient(rgba(2,6,23,0.78), rgba(15,23,42,0.96)),
        url('https://images.unsplash.com/photo-1516321318423-f06f85e504b3?q=80&w=1600&auto=format&fit=crop');
    background-size:cover;
    background-position:center;
}

.products-hero-content{
    width:min(100%, 980px);
    margin-inline:auto;
}

.products-hero h2{
    color:var(--primary);
    font-size:clamp(34px, 7vw, 62px);
    line-height:1.12;
    margin-bottom:22px;
    text-wrap:balance;
}

.products-hero p{
    width:min(100%, 780px);
    margin:0 auto;
    color:var(--muted);
    font-size:clamp(17px, 2.4vw, 21px);
    line-height:1.7;
}

.products-hero-actions{
    display:flex;
    justify-content:center;
    align-items:center;
    flex-wrap:wrap;
    gap:16px;
    margin-top:34px;
}

.catalog-section{
    background:
        linear-gradient(180deg, rgba(2,6,23,0.2), rgba(2,6,23,0.55)),
        var(--bg);
}

.catalog-panel{
    width:min(100%, 1220px);
    margin:auto;
    padding:clamp(20px, 4vw, 34px);
    border-radius:28px;
    background:
        radial-gradient(circle at top left, rgba(56,189,248,0.16), transparent 35%),
        rgba(30,41,59,0.72);
    border:1px solid rgba(56,189,248,0.18);
    box-shadow:var(--shadow);
}

.catalog-controls{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:18px;
    flex-wrap:wrap;
    margin-bottom:20px;
}

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

.tab-btn,
.view-btn{
    border:1px solid rgba(255,255,255,0.12);
    background:rgba(255,255,255,0.06);
    color:var(--text);
    padding:12px 18px;
    border-radius:999px;
    font-weight:bold;
    cursor:pointer;
    transition:0.3s;
}

.tab-btn:hover,
.tab-btn.active,
.view-btn:hover,
.view-btn.active{
    color:var(--bg);
    background:var(--primary);
    border-color:var(--primary);
    box-shadow:0 12px 26px rgba(56,189,248,0.18);
}

.filters{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    flex:1;
    justify-content:flex-end;
}

.filters input,
.filters select{
    min-height:46px;
    border-radius:14px;
    border:1px solid rgba(255,255,255,0.12);
    background:rgba(2,6,23,0.45);
    color:var(--text);
    padding:0 14px;
    outline:none;
    font-size:15px;
}

.filters input{
    width:min(100%, 280px);
}

.filters select{
    width:min(100%, 220px);
}

.filters input::placeholder{
    color:var(--muted-2);
}

.view-toggle{
    display:flex;
    gap:8px;
}

.view-btn{
    width:46px;
    height:46px;
    padding:0;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:14px;
    font-size:18px;
}

.catalog-counter{
    margin:0 0 20px;
    color:var(--primary-soft);
    font-weight:bold;
    text-align:right;
    font-size:15px;
}

.products-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap:clamp(18px, 3vw, 26px);
}

.product-card{
    display:flex;
    flex-direction:column;
    min-width:0;
    overflow:hidden;
    border-radius:24px;
    background:rgba(15,23,42,0.88);
    border:1px solid rgba(255,255,255,0.08);
    box-shadow:0 16px 42px rgba(0,0,0,0.22);
    transition:0.3s;
}

.product-card:hover{
    transform:translateY(-8px);
    border-color:rgba(56,189,248,0.55);
    box-shadow:0 18px 46px rgba(56,189,248,0.12);
}

.product-image{
    position:relative;
    min-height:190px;
    background:linear-gradient(135deg, rgba(56,189,248,0.12), rgba(2,6,23,0.4));
    overflow:hidden;
}

.product-image img{
    width:100%;
    height:220px;
    object-fit:cover;
    transition:0.3s;
}

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

.product-body{
    display:flex;
    flex-direction:column;
    flex:1;
    padding:22px;
}

.product-body h3{
    color:var(--text);
    font-size:clamp(19px, 3vw, 22px);
    line-height:1.25;
    margin-bottom:12px;
}

.product-description{
    color:var(--muted);
    line-height:1.6;
    margin-bottom:18px;
    flex:1;
}

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

.product-price{
    color:var(--primary);
    font-size:22px;
    font-weight:bold;
}

.product-stock{
    color:var(--muted-2);
    font-size:14px;
    text-align:right;
}

.product-actions{
    display:grid;
    grid-template-columns:1fr;
    gap:10px;
    margin-top:auto;
}

.product-actions .btn{
    width:100%;
    min-height:48px;
    padding:13px 18px;
    font-size:15px;
}

.products-grid.list-view{
    display:flex;
    flex-direction:column;
    gap:14px;
}

.products-grid.list-view .product-card{
    display:grid;
    grid-template-columns:140px 1fr;
    align-items:stretch;
}

.products-grid.list-view .product-image{
    min-height:100%;
}

.products-grid.list-view .product-image img{
    height:100%;
    min-height:145px;
}

.products-grid.list-view .product-body{
    display:grid;
    grid-template-columns:1fr auto;
    grid-template-areas:
        "title meta"
        "description actions";
    gap:10px 18px;
    padding:18px;
}

.products-grid.list-view .product-body h3{
    grid-area:title;
    margin-bottom:0;
}

.products-grid.list-view .product-description{
    grid-area:description;
    margin-bottom:0;
}

.products-grid.list-view .product-meta{
    grid-area:meta;
    flex-direction:column;
    align-items:flex-end;
    justify-content:flex-start;
    margin-bottom:0;
}

.products-grid.list-view .product-actions{
    grid-area:actions;
    align-self:end;
    min-width:170px;
}

.empty-state{
    margin-top:24px;
    text-align:center;
    padding:32px 18px;
    border-radius:20px;
    background:rgba(2,6,23,0.35);
    border:1px solid rgba(255,255,255,0.08);
}

.empty-state h3{
    color:var(--primary);
    margin-bottom:10px;
}

.empty-state p{
    color:var(--muted);
}

@media(max-width:900px){
    .products-grid.list-view .product-card{
        grid-template-columns:110px 1fr;
    }

    .products-grid.list-view .product-body{
        grid-template-columns:1fr;
        grid-template-areas:
            "title"
            "description"
            "meta"
            "actions";
    }

    .products-grid.list-view .product-meta{
        align-items:flex-start;
    }
}

@media(max-width:760px){
    .catalog-controls,
    .filters{
        align-items:stretch;
        flex-direction:column;
    }

    .tabs,
    .filters input,
    .filters select,
    .view-toggle{
        width:100%;
    }

    .tab-btn,
    .view-btn{
        flex:1;
    }

    .products-hero-actions .btn{
        width:100%;
    }
}

@media(max-width:640px){
    .products-hero{
        min-height:auto;
        padding-top:220px;
    }

    .catalog-counter{
        text-align:left;
    }

    .products-grid.list-view .product-card{
        grid-template-columns:1fr;
    }

    .products-grid.list-view .product-image img{
        height:200px;
    }

    .product-card:hover,
    .tab-btn:hover,
    .view-btn:hover{
        transform:none;
    }
}
