/* ========================================= */
/* North Legacy - PRODUCTS */
/* PARTE 1 */
/* ========================================= */

/* RESET */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

/* ========================================= */
/* FONDO */
/* ========================================= */

body{

    color:#111;

    background:#fff;

    overflow-x:hidden;

    /* GRID */

    background-image:
    linear-gradient(rgba(0,0,0,.025) 1px,transparent 1px),
    linear-gradient(90deg,rgba(0,0,0,.025) 1px,transparent 1px);

    background-size:42px 42px;
}

/* ========================================= */
/* HERO */
/* ========================================= */

.products-hero{

    position:relative;

    min-height:62vh;

    display:flex;

    flex-direction:column;

    justify-content:center;

    align-items:center;

    text-align:center;

    padding:140px 20px 110px;

    overflow:hidden;
}

/* GLOW */

.products-hero::before{

    content:"";

    position:absolute;

    top:-260px;

    left:50%;

    transform:translateX(-50%);

    width:850px;

    height:850px;

    background:

    radial-gradient(

        circle,

        rgba(201,168,87,.09),

        transparent 70%

    );

    filter:blur(60px);

    pointer-events:none;
}

/* TAG */

.products-tag{

    display:inline-block;

    color:#C9A857;

    font-size:.82rem;

    font-weight:700;

    letter-spacing:7px;

    text-transform:uppercase;

    margin-bottom:22px;

    animation:fadeUp .8s ease;
}

/* TITULO */

.products-hero h1{

    font-size:clamp(3.5rem,8vw,6rem);

    font-weight:700;

    letter-spacing:-3px;

    line-height:1;

    margin-bottom:26px;

    color:#111;

    animation:fadeUp 1s ease;
}

/* SUB */

.products-hero p{

    max-width:640px;

    color:#666;

    font-size:1.02rem;

    line-height:1.9;

    animation:fadeUp 1.2s ease;
}

/* LINEA */

.products-line{

    width:90px;

    height:2px;

    background:#C9A857;

    border-radius:999px;

    margin-top:45px;

    animation:fadeUp 1.4s ease;
}

/* ========================================= */
/* ANIMACIONES */
/* ========================================= */

@keyframes fadeUp{

    from{

        opacity:0;

        transform:translateY(35px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

/* ========================================= */
/* RESPONSIVE */
/* ========================================= */

@media(max-width:768px){

    body{

        background-size:28px 28px;

    }

    .products-hero{

        min-height:52vh;

        padding:120px 20px 90px;

    }

    .products-tag{

        letter-spacing:4px;

        font-size:.75rem;

    }

    .products-hero h1{

        font-size:2.8rem;

        letter-spacing:-1px;

    }

    .products-hero p{

        font-size:.95rem;

    }

}

/* ========================================= */
/* COLLECTION TABS */
/* ========================================= */

.collections{

    max-width:1500px;
    margin:auto;
    padding:20px 30px 120px;

}

/* MENU */

.collection-menu{

    display:flex;
    justify-content:center;
    align-items:center;
    gap:45px;
    flex-wrap:wrap;

    border-bottom:1px solid rgba(0,0,0,.08);

    padding-bottom:18px;

    margin-bottom:70px;

}

.collection-tab{

    position:relative;

    background:none;
    border:none;

    font-size:.95rem;

    letter-spacing:2px;

    text-transform:uppercase;

    color:#666;

    cursor:pointer;

    transition:.3s;

    padding-bottom:15px;

}

.collection-tab:hover{

    color:#111;

}

.collection-tab.active{

    color:#111;
    font-weight:700;

}

.collection-tab.active::after{

    content:"";

    position:absolute;

    left:0;
    bottom:-19px;

    width:100%;
    height:2px;

    background:#C9A857;

}

/* ========================================= */
/* CONTENIDO */
/* ========================================= */

.collection-content{

    display:none;

    animation:fadeCollection .45s ease;

}

.collection-content.active{

    display:block;

}

/* ========================================= */
/* GRID */
/* ========================================= */

.product-grid{

    display:grid;

    grid-template-columns:repeat(5,1fr);

    gap:35px;

}



/* ========================================= */
/* ANIMACION */
/* ========================================= */

@keyframes fadeCollection{

    from{

        opacity:0;
        transform:translateY(20px);

    }

    to{

        opacity:1;
        transform:translateY(0);

    }

}

/* ========================================= */
/* RESPONSIVE */
/* ========================================= */

@media(max-width:1200px){

    .product-grid{

        grid-template-columns:repeat(4,1fr);

    }

}

@media(max-width:900px){

    .product-grid{

        grid-template-columns:repeat(3,1fr);

    }

}

@media(max-width:768px){

    .collection-menu{

        gap:25px;

    }

    .collection-tab{

        font-size:.8rem;

        letter-spacing:1px;

    }

    .product-grid{

        grid-template-columns:repeat(2,1fr);

    }

}

@media(max-width:520px){

    .product-grid{

        grid-template-columns:1fr;

    }

}

/* ========================================= */
/* FINAL */
/* ========================================= */

.products-end{

    max-width:800px;

    margin:100px auto 140px;

    padding:70px 40px;

    text-align:center;

    border-radius:30px;

    background:linear-gradient(
        135deg,
        #111,
        #1d1d1d
    );

    border:1px solid rgba(201,168,87,.18);

    box-shadow:
        0 20px 60px rgba(0,0,0,.15);

    color:white;

}

.end-text{

    font-size:clamp(2rem,4vw,3rem);

    font-weight:700;

    line-height:1.15;

    margin-bottom:20px;

    letter-spacing:-1px;

}

.end-sub{

    color:rgba(255,255,255,.75);

    line-height:1.9;

    font-size:1rem;

}

.end-sub span{

    display:inline-block;

    margin-top:24px;

    color:#C9A857;

    letter-spacing:5px;

    font-weight:700;

    text-transform:uppercase;

}

/* ========================================= */
/* RESPONSIVE */
/* ========================================= */

@media(max-width:768px){

    .products-end{

        margin:70px 20px 100px;

        padding:55px 30px;

    }

    .end-text{

        font-size:2rem;

    }

}

/* ========================================= */
/* PRODUCT CARD */
/* ========================================= */

.product-card{

    position:relative;

    overflow:hidden;

    background:#fff;

    border-radius:20px;

    border:1px solid rgba(0,0,0,.06);

    box-shadow:
        0 10px 30px rgba(0,0,0,.06);

    cursor:pointer;

    transition:
        transform .35s ease,
        box-shadow .35s ease,
        border-color .35s ease;

}

.product-card:hover{

    transform:translateY(-10px);

    border-color:rgba(201,168,87,.35);

    box-shadow:
        0 25px 60px rgba(0,0,0,.12);

}

/* ========================================= */
/* IMAGEN */
/* ========================================= */

.product-image{

    position:relative;

    overflow:hidden;

    aspect-ratio:1/1;

    background:
        linear-gradient(
            180deg,
            #fafafa,
            #f2f2f2
        );

}

.product-image img{

    width:100%;

    height:100%;

    object-fit:cover;

    transition:
        transform .6s ease,
        filter .4s ease;

}

.product-card:hover img{

    transform:scale(1.08);

    filter:brightness(1.03);

}

/* ========================================= */
/* OFERTA */
/* ========================================= */

.product-badge{

    position:absolute;

    top:18px;

    right:18px;

    background:#111;

    color:#fff;

    padding:8px 15px;

    border-radius:999px;

    font-size:.75rem;

    font-weight:700;

    letter-spacing:1px;

    z-index:5;

    box-shadow:
        0 10px 25px rgba(0,0,0,.18);

}

/* ========================================= */
/* INFO */
/* ========================================= */

.product-info{

    padding:26px;

}

.product-title{

    font-size:1.12rem;

    font-weight:700;

    color:#111;

    line-height:1.5;

    letter-spacing:.3px;

    min-height:54px;

}

.product-price{

    margin-top:22px;

    display:flex;

    align-items:center;

    gap:12px;

}

.old-price{

    color:#999;

    text-decoration:line-through;

    font-size:.95rem;

}

.new-price{

    font-size:1.35rem;

    font-weight:800;

    color:#C9A857;

    letter-spacing:.4px;

}

/* ========================================= */
/* BOTON */
/* ========================================= */

.add-cart{

    position:absolute;

    left:15px;

    right:15px;

    bottom:15px;

    width:calc(100% - 30px);

    border:none;

    border-radius:14px;

    background:#111;

    color:#fff;

    padding:16px;

    font-size:.82rem;

    font-weight:700;

    letter-spacing:2px;

    text-transform:uppercase;

    cursor:pointer;

    opacity:0;

    transform:translateY(25px);

    transition:
        all .35s ease;

}

.product-card:hover .add-cart{

    opacity:1;

    transform:translateY(0);

}

.add-cart:hover{

    background:#C9A857;

    color:#111;

}

/* ========================================= */
/* PLACEHOLDER */
/* ========================================= */

.product-img.placeholder{

    display:flex;

    justify-content:center;

    align-items:center;

    width:100%;

    height:100%;

    color:#888;

    font-weight:700;

    letter-spacing:3px;

    background:
        linear-gradient(
            135deg,
            #fafafa,
            #efefef
        );

}

/*======================================
COLLECTION
======================================*/

.collection-body{

    display:flex;
    justify-content:center;
    align-items:center;

    min-height:420px;

    padding:20px;

}

.collection-placeholder{

    position:relative;

    width:100%;
    max-width:760px;

    background:#fff;

    border:1px solid rgba(201,168,87,.18);

    border-radius:24px;

    padding:42px;

    text-align:center;

    box-shadow:
    0 15px 45px rgba(0,0,0,.08);

    overflow:hidden;

}

.collection-placeholder::before{

    content:"";

    position:absolute;

    top:0;
    left:50%;

    transform:translateX(-50%);

    width:100px;
    height:3px;

    background:#C9A857;

}

.collection-placeholder h2{

    color:#111;
    font-size:2.3rem;
    font-weight:700;

    line-height:1.2;

    margin:0 0 14px;

}

.collection-placeholder p{

    color:#666;

    max-width:560px;

    margin:0 auto;

    line-height:1.8;

    white-space:pre-line;

}

.collection-placeholder strong{

    display:block;

    margin-top:20px;

    color:#C9A857;

    letter-spacing:4px;

    font-size:.85rem;

    text-transform:uppercase;

}



/*======================================
COUNTDOWN
======================================*/

.collection-countdown{

    display:flex;

    justify-content:center;

    gap:12px;

    flex-wrap:wrap;

    margin:24px 0;

}

.time-box{

    width:82px;

    height:82px;

    background:#111;

    color:#fff;

    border-radius:16px;

    display:flex;

    flex-direction:column;

    justify-content:center;

    align-items:center;

    border:1px solid rgba(201,168,87,.25);

    transition:.25s;

}

.time-box:hover{

    transform:translateY(-4px);

}

.time-box span{

    font-size:1.7rem;

    font-weight:700;

    line-height:1;

}

.time-box small{

    margin-top:8px;

    color:#bbb;

    font-size:.68rem;

    letter-spacing:2px;

}