﻿body {
    margin: 0;
    padding: 0;
}

h3.h3 {
    text-align: center;
    margin: 1em;
    text-transform: capitalize;
    font-size: 1.7em;
}


/********************* Shopping Demo-3 **********************/
.product-grid3 {
    font-family: Roboto,sans-serif;
    text-align: center;
    position: relative;
    z-index: 1
}

    .product-grid3:before {
        content: "";
        height: 81%;
        width: 100%;
        background: #fff;
        border: 1px solid rgba(0,0,0,.1);
        opacity: 0;
        position: absolute;
        top: 0;
        left: 0;
        z-index: -1;
        transition: all .5s ease 0s
    }

    .product-grid3:hover:before {
        opacity: 1;
        height: 100%
    }

    .product-grid3 .product-image3 {
        position: relative
    }

        .product-grid3 .product-image3 a {
            display: block
        }

        .product-grid3 .product-image3 img {
            width: 100%;
            height: auto
        }

    .product-grid3 .pic-1 {
        opacity: 1;
        transition: all .5s ease-out 0s
    }

    .product-grid3:hover .pic-1 {
        opacity: 0
    }

    .product-grid3 .pic-2 {
        position: absolute;
        top: 0;
        left: 0;
        opacity: 0;
        transition: all .5s ease-out 0s
    }

    .product-grid3:hover .pic-2 {
        opacity: 1
    }

    .product-grid3 .social {
        width: 120px;
        padding: 0;
        margin: 0 auto;
        list-style: none;
        opacity: 0;
        position: absolute;
        right: 0;
        left: 0;
        bottom: -23px;
        transform: scale(0);
        transition: all .3s ease 0s
    }

    .product-grid3:hover .social {
        opacity: 1;
        transform: scale(1)
    }

    .product-grid3:hover .product-discount-label, .product-grid3:hover .product-new-label, .product-grid3:hover .title {
        opacity: 0
    }

    .product-grid3 .social li {
        display: inline-block
    }

        .product-grid3 .social li a {
            color: #e67e22;
            background: #fff;
            font-size: 18px;
            line-height: 50px;
            width: 50px;
            height: 50px;
            border: 1px solid rgba(0,0,0,.1);
            border-radius: 50%;
            margin: 0 2px;
            display: block;
            transition: all .3s ease 0s
        }

            .product-grid3 .social li a:hover {
                background: #e67e22;
                color: #fff
            }

    .product-grid3 .product-discount-label, .product-grid3 .product-new-label {
        background-color: #e67e22;
        color: #fff;
        font-size: 17px;
        padding: 2px 10px;
        position: absolute;
        right: 10px;
        top: 10px;
        transition: all .3s
    }

    .product-grid3 .product-content {
        z-index: -1;
        padding: 15px;
        text-align: left
    }

    .product-grid3 .title {
        font-size: 14px;
        text-transform: capitalize;
        margin: 0 0 7px;
        transition: all .3s ease 0s
    }

        .product-grid3 .title a {
            color: #414141
        }

    .product-grid3 .price {
        color: #000;
        font-size: 16px;
        letter-spacing: 1px;
        font-weight: 600;
        margin-right: 2px;
        display: inline-block
    }

        .product-grid3 .price span {
            color: #909090;
            font-size: 14px;
            font-weight: 500;
            letter-spacing: 0;
            text-decoration: line-through;
            text-align: left;
            display: inline-block;
            margin-top: -2px
        }

    .product-grid3 .rating {
        padding: 0;
        margin: -22px 0 0;
        list-style: none;
        text-align: right;
        display: block
    }

        .product-grid3 .rating li {
            color: #ffd200;
            font-size: 13px;
            display: inline-block
        }

            .product-grid3 .rating li.disable {
                color: #dcdcdc
            }
/*Container with Text & Imagen*/
.mainContainer {
    width: 100%;
    background-color: var(--primary-color);
    padding: 20px 20px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    margin-top: -8px;
}

/*Container de los Productos*/
.inContainer {
    height: 100%;
    padding-bottom: 60px;
}
/*Texto Principal*/
h1.display-4 {
    font-family: 'Fredoka', sans-serif;
    font-weight: 600; /* SemiBold */
    color: white;
}

/*Imagen Ilustrativo*/
.hero-img {
    max-width: 300px;
    height: auto;
    margin-top: 1rem;
}
/*Texto Productos*/
.textTienda {
    justify-content: left;
}

.product-card {
    transition: transform 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

    .product-card:hover {
        transform: translateY(-5px);
    }

.product-img {
    object-fit: contain;
    height: 200px;
    width: 100%;
    border-bottom: 1px solid #ddd;
}
/*Nombre del Producto*/
.card-title {
    font-size: 1.1rem;
    color: black !important;
    font-family: Fredoka;
    font-weight: 600;
}
/*Precio*/
.card-price {
    color: var(--secondary-light-color);
    font-size: 1rem;
}

/*Button de Detalle*/
.btnDetalle {
    background-color: #16A085;
    border-radius: 10px;
    padding: 8px;
    color: white;
    border: none;
    transition: background-color 0.3s ease;
}

.btnDetalle:hover {
    background-color: #007d7d; /* a darker teal on hover */
    color: white;
    text-decoration: none;
}

/*Button ShoppingCart*/
.btnShopping {
    background-color: var(--secondary-light-color);
}

    .btnShopping:hover {
        background-color: orange; /* a darker teal on hover */
        color: white;
        text-decoration: none;
    }

    /*Controlers Minus & Plus*/
.cart-control {
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
}

.qty-wrapper {
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: all 0.3s ease;
    display: flex;
    gap: 5px;
}

/* Show on hover */
.card:hover .qty-wrapper {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/*Buttones*/
.btn-circle {
    width: 30px;
    height: 30px;
    border-radius: 20%;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    transition: 0.3s;
}

.btn-cirle:hover{
    filter: brightness(1.15);
    transform: scale(1.05);
}

/*Button Minus*/
.btn-minus {
    background-color: #2C3E50;
    color: white;
}

    .btn-minus:hover {
        background-color: #000000; /* a darker teal on hover */
        color: white;
        text-decoration: none;
    }

/*Button PLus*/
.btn-plus {
    background-color: #2C3E50;
    color: white;
}

    .btn-plus:hover {
        background-color: #6200ea; /* a darker teal on hover */
        color: white;
        text-decoration: none !important;
    }

    .btn-plus:focus,
    .btn-plus:focus-visible {
        outline: none !important;
        box-shadow: none !important;
        border-color: white !important;
        background-color: #6200ea !important;
        color: white !important;
    }

    /*Disponsible Agotado*/
.agotado {
    color: red;
    font-weight: 700;
    text-transform: uppercase;
}



/*Media Querys*/
@media only screen and (max-width:1200px) {
    .product-grid3 .rating {
        margin: 0
    }
}

@media only screen and (max-width:990px) {
    .product-grid3 {
        margin-bottom: 30px
    }

        .product-grid3 .rating {
            margin: -22px 0 0
        }
}

@media only screen and (max-width:359px) {
    .product-grid3 .rating {
        margin: 0
    }
}

/*1920 x 1080 screens*/
/* base responsive typography (rem based) */
:root {
    --base-font: 16px;
}

html {
    font-size: 16px;
}

body {
    font-family: 'Fredoka', sans-serif;
}

/* keep baseline */

h1.display-4 {
    /* scale between 28px and 48px depending on viewport width */
    font-size: clamp(1.75rem, 1.6vw + 1rem, 3rem);
    line-height: 1.05;
}

/* card title scales nicely */
.card-title {
    font-size: clamp(1rem, 0.9vw + 0.2rem, 1.25rem);
}

/* hero image for large screens */
.hero-img {
    max-width: 420px; /* larger on big screens */
}

/* product image - make taller on large screens, maintain aspect with object-fit */
.product-img {
    object-fit: contain; /* or cover depending on style */
    height: 200px; /* default */
    width: 100%;
    border-bottom: 1px solid #ddd;
}

/* spacing on large screens */
@media (min-width: 1400px) {
    .mainContainer {
        padding: 40px 80px;
        min-height: 380px;
    }

    .product-img {
        height: 260px;
    }

    .product-card {
        border-radius: 14px;
    }

    .card-body {
        padding: 20px;
    }

    .inContainer {
        padding-bottom: 80px;
    }

    .btnDetalle, .btnShopping {
        padding: 10px 12px;
    }
}

/* ultra wide screens */
@media (min-width: 1800px) {
    html {
        font-size: 17px;
    }
    /* small global scale up for ultra-wide */
    .hero-img {
        max-width: 520px;
    }

    .product-img {
        height: 300px;
    }

    .card-title {
        font-size: 1.35rem;
    }

    .product-card {
        transform-origin: center top;
    }
}

/* improve perceived spacing on medium-large screens */
@media (min-width: 1200px) and (max-width:1799px) {
    .mainContainer {
        padding: 30px 60px;
    }

    .product-img {
        height: 230px;
    }
}
