@charset "UTF-8";

/* =====================================================
   TARJETA PRODUCTO
===================================================== */

.product-card{

    position:relative;

    display:flex;

    flex-direction:column;

    justify-content:space-between;

    width:100%;

    max-width:100%;

    min-width:0;

    background:#fff;

    border-radius:20px;

    padding:14px;

    border:1px solid #edf2f7;

    box-shadow:
        0 6px 18px rgba(15,23,42,.05);

    transition:
        transform .28s ease,
        box-shadow .28s ease,
        border-color .28s ease;

    overflow:hidden;

    isolation:isolate;
}

/* =====================================================
   EFECTO SUPERIOR
===================================================== */

.product-card::before{

    content:"";

    position:absolute;

    top:0;
    left:0;

    width:100%;

    height:4px;

    background:
        linear-gradient(
            90deg,
            #1e5cc8,
            #60a5fa
        );

    opacity:0;

    transition:.28s ease;
}

/* =====================================================
   HOVER
===================================================== */

.product-card:hover{

    transform:translateY(-5px);

    border-color:#d9e5ff;

    box-shadow:
        0 16px 30px rgba(15,23,42,.10);
}

.product-card:hover::before{

    opacity:1;
}

/* =====================================================
   LINK
===================================================== */

.product-card a{

    display:flex;

    flex-direction:column;

    align-items:center;

    text-align:center;

    width:100%;

    max-width:100%;

    min-width:0;

    height:100%;

    color:inherit;

    text-decoration:none;
}

/* =====================================================
   IMAGEN
===================================================== */

.product-card .img-box{

    width:100%;

    max-width:100%;

    min-width:0;

    aspect-ratio:1/1;

    background:
        linear-gradient(
            180deg,
            #ffffff,
            #f8fafc
        );

    border-radius:16px;

    display:flex;

    align-items:center;

    justify-content:center;

    margin-bottom:14px;

    overflow:hidden;

    position:relative;

    border:1px solid #f1f5f9;
}

/* =====================================================
   BRILLO
===================================================== */

.product-card .img-box::before{

    content:"";

    position:absolute;

    top:0;
    left:-120%;

    width:70%;
    height:100%;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,.55),
            transparent
        );

    transition:.7s ease;
}

.product-card:hover .img-box::before{

    left:140%;
}

/* =====================================================
   IMG
===================================================== */

.product-card .img-box img{

    width:auto;

    max-width:88%;

    max-height:88%;

    object-fit:contain;

    transition:
        transform .35s ease,
        filter .3s ease;
}

/* =====================================================
   HOVER IMG
===================================================== */

.product-card:hover .img-box img{

    transform:scale(1.05);
}

/* =====================================================
   TITULO
===================================================== */

.product-card h3{

    width:100%;

    max-width:100%;

    min-width:0;

    font-size:15px;

    font-weight:700;

    margin:6px 0 6px;

    line-height:1.4;

    color:#0f172a;

    word-break:break-word;

    display:-webkit-box;

    -webkit-line-clamp:2;

    -webkit-box-orient:vertical;

    overflow:hidden;
}

/* =====================================================
   SKU
===================================================== */

.product-card .sku{

    width:100%;

    max-width:100%;

    min-width:0;

    font-size:12px;

    color:#64748b;

    line-height:1.5;

    margin-bottom:12px;

    word-break:break-word;

    display:-webkit-box;

    -webkit-line-clamp:2;

    -webkit-box-orient:vertical;

    overflow:hidden;
}

/* =====================================================
   BOTON
===================================================== */

.product-card::after{

    content:"Ver producto";

    position:absolute;

    left:0;
    right:0;
    bottom:-50px;

    width:100%;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #1d4ed8
        );

    color:#fff;

    text-align:center;

    padding:12px;

    font-size:13px;

    font-weight:700;

    transition:.28s ease;
}

/* =====================================================
   SHOW BUTTON
===================================================== */

.product-card:hover::after{

    bottom:0;
}

/* =====================================================
   BADGES
===================================================== */

.badge{

    position:absolute;

    top:12px;
    left:12px;

    padding:5px 10px;

    font-size:10px;

    border-radius:999px;

    color:#fff;

    font-weight:700;

    z-index:4;

    max-width:calc(100% - 24px);
}

.badge.nuevo{

    background:
        linear-gradient(
            135deg,
            #0057D9,
            #2563eb
        );
}

.badge.oferta{

    background:
        linear-gradient(
            135deg,
            #ef4444,
            #dc2626
        );
}

/* =====================================================
   RATING
===================================================== */

.rating{

    display:flex;

    align-items:center;

    justify-content:center;

    flex-wrap:wrap;

    gap:4px;

    margin-top:6px;

    color:#f5a623;

    font-size:15px;

    width:100%;

    max-width:100%;
}

.rating .reviews{

    color:#64748b;

    font-size:11px;
}

/* =====================================================
   24"
===================================================== */

@media (min-width:1600px){

    .product-card{

        border-radius:26px;

        padding:22px;
    }

    .product-card h3{

        font-size:20px;
    }

    .product-card .sku{

        font-size:15px;
    }

    .product-card::after{

        padding:16px;

        font-size:16px;
    }
}

/* =====================================================
   LAPTOP
===================================================== */

@media (max-width:1200px){

    .product-card{

        border-radius:18px;
    }
}

/* =====================================================
   TABLET
===================================================== */

@media (max-width:992px){

    .product-card{

        border-radius:18px;

        padding:12px;
    }

    .product-card h3{

        font-size:14px;
    }

    .product-card .sku{

        font-size:11px;
    }
}

/* =====================================================
   MOVIL
===================================================== */

@media (max-width:768px){

    .product-card{

        border-radius:16px;

        padding:10px;
    }

    .product-card .img-box{

        border-radius:12px;

        margin-bottom:10px;
    }

    .product-card h3{

        font-size:13px;
    }

    .product-card .sku{

        font-size:11px;

        margin-bottom:8px;
    }

    .product-card::after{

        padding:10px;

        font-size:12px;
    }

    .rating{

        font-size:13px;
    }

    .rating .reviews{

        font-size:10px;
    }
}

/* =====================================================
   TELEFONOS
===================================================== */

@media (max-width:580px){

    .product-card{

        border-radius:14px;

        padding:10px;
    }

    .product-card h3{

        font-size:12px;
    }

    .product-card .sku{

        font-size:10px;
    }

    .product-card::after{

        padding:9px;

        font-size:11px;
    }

    .badge{

        top:8px;
        left:8px;

        font-size:9px;

        padding:4px 8px;
    }
}

/* =====================================================
   IPHONE PEQUEÑO
===================================================== */

@media (max-width:420px){

    .product-card{

        padding:12px;
    }

    .product-card h3{

        font-size:13px;
    }

    .product-card .sku{

        font-size:11px;
    }

    .product-card::after{

        position:relative;

        bottom:auto;

        margin-top:10px;

        border-radius:10px;
    }
}