@import "card-js/card-js.min.css";

/* Other configs in the page */
body {
    display: flex;
    flex-direction: column;
    font-family: "Poppins", sans-serif;
    word-wrap: break-word;
    margin: 0;
    padding: 0;
}

.main-content {
    flex: 1;
}

/* It for the products cards */
.max-image-card {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
}

@media (max-width: 425px) {
    .max-image-card {
        height: 100px;
    }
}

/* style for show more products */
.custom-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100% !important;
}

/* This works like that: if a one card have a more content that other card, same cards should have the same dimentions */
.card {
    height: 100%;
}

.card-body {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* More rezizable cards for phones */
@media (max-width: 576px) {
    .card-title {
        font-size: 15px;
    }
}

/* * Custom col-xs-6, col-md-6 and col-sm-4 for the products in index and showProducts,
   * the normal col don't work to show 2 or 3 products per row in moviles */
@media (max-width: 344px) {
    .custom-xs-6 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
    .max-image-card {
        height: 150px;
    }
}

@media (max-width: 767px) {
    .custom-md-4 {
        flex: 0 0 33%;
        max-width: 33%;
    }
    .custom-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 576px) {
    .custom-sm-4 {
        flex: 0 0 33%;
        max-width: 33%;
    }
    .custom-sm-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Custom validations for products cards */

/* * In moviles products buttons */
@media only screen and (max-device-width: 991px) {
    .custom-hover-button {
        background-color: #fff !important;
        color: #000 !important;
    }

    .custom-hover-button:hover {
        border-color: transparent;
    }
}

/* ? In some specific cases, like a tablet or when the shopping cart don't show more in the view */
@media only screen and (max-device-width: 1880px) and (min-device-width: 992px) {
    .custom-hover-button {
        background-color: #0096cb;
        color: #fff;
    }
    .custom-hover-button:hover {
        background-color: #0096cb;
        border-color: transparent;
        /* Un asco usar css */
        color: #fff !important;
    }

    .change-color {
        animation: changeColor 0.5s forwards;
    }

    /* Animación para cambiar el color al pulsar */
    @keyframes changeColor {
        0% {
            background-color: #0096cb;
            border-color: #000;
        } /* Color original */
        50% {
            background-color: #ffffff;
            color: #000;
        } /* Cambio a blanco */
        100% {
            background-color: #0096cb;
        } /* Volver al color original */
    }
}

/* * styles products for PC */
@media (pointer: fine) and (min-width: 992px) {
    .custom-hover-button {
        background-color: #0096cb;
        color: #fff;
    }
    .custom-hover-color:hover {
        color: #0096cb;
        border-color: #000;
    }
    .custom-hover-button:hover {
        color: #0096cb;
        border-color: #000;
    }
}

/* Custom things for modify in the backend */
.custom-hidden-color {
    background-color: #0096cb;
    color: #fff;
}

.custom-bg-color {
    background-color: #0096cb;
    color: #fff;
}

.custom-text-color {
    color: #0096cb;
}

.bg-grey {
    background-color: #f7f8fa !important;
}

/* When the page scrolls, the navigation bar performs a small transaction and then moves with the scroll */
/* it's just for the aesthetic */
.navscroll {
    background-color: transparent;
    transition: background-color 200ms, color 200ms;
}

.navscroll.transition-white {
    background-color: white;
    border-bottom: groove;
    color: black;
}

/* It's for the responsive navbar, align and adjust the image */
.navbar {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    flex: 1;
    margin: 0 10px;
}

.navbar-brand img {
    max-width: 100%;
    height: auto;
    margin: 10px 0px 12px;
}

.navbar-toggler {
    margin: 0 10px;
    padding: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* The second navbar for the categories, for the scrolling vertically*/
.nav-scroller .nav {
    color: rgba(255, 255, 255, 0.75);
}

.nav-scroller .nav-link {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    font-size: 0.875rem;
    color: #6c757d;
}

@media (hover: hover) and (pointer: fine) {
    .nav-scroller .nav-link:hover {
        color: #03ace0;
    }
}

.nav-scroller .active {
    font-weight: 500;
    color: #343a40;
}

.nav-scroller {
    position: relative;
    z-index: 2;
    height: 2.75rem;
    overflow-y: hidden;
    border-top: groove;
}

.nav-scroller .nav {
    display: flex;
    flex-wrap: nowrap;
    padding-bottom: 1rem;
    margin-top: -1px;
    overflow-x: auto;
    text-align: center;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

/* * Navbar buttons */
@media (hover: hover) and (pointer: fine) {
    .nav-btn:hover {
        background-color: #e3e3e3;
        border-radius: 2%;
        transition: background-color 200ms;
    }
}

.dropdown-item {
    background-color: inherit !important;
}

/* * The search button in small dispositives */
#search-btn {
    position: fixed;
    top: 38%;
    right: 0.15em;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 10px;
    border-radius: 112px;
    color: #fff;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    z-index: 1025;
}

@media (max-width: 900px) and (min-width: 750px) {
    #search-btn {
        right: auto !important;
        left: 0.6em !important;
    }
}

#search-btn:hover {
    background-color: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

/* Footer style */
.footer-title {
    font-size: 22px;
    line-height: 1.3;
    text-align: start;
    font-family: sans-serif !important;
    font-weight: 800;
    font-style: normal;
}

.footer-list {
    list-style: none;
}

.footer-list li {
    padding-top: 2%;
    padding-bottom: 2%;
}

.footer-list a {
    text-decoration: none;
    color: #000;
}

@media (hover: hover) and (pointer: fine) {
    .footer-list li:hover {
        background-color: #ebebeb;
        transition: background-color 500ms;
    }
}

.footer-social-networks {
    display: inline-block;
    padding-right: 5%;
}

.footer-social-networks a {
    text-decoration: none;
    color: #000;
}

.footer-links {
    border-right: groove;
}

.footer-policy {
    border-right: groove;
}

/* WhatsApp float icon */
.float-wa-icon {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1000;
}

.float-wa-icon a {
    text-decoration: none;
}

.float-wa-icon i {
    font-size: 2.1em;
    color: #fff;
    background-color: #25d366;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

@media (hover: hover) and (pointer: fine) {
    .float-wa-icon a:hover i {
        transform: scale(1.2);
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    }
}

/* Custom message when hover in whatsapp icon */
.tooltip-wa-container {
    position: relative;
    display: inline-block;
}

.tooltip-wa {
    position: absolute;
    background-color: #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    color: #000;
    padding: 7px;
    height: 40px;
    width: 200px;
    border-radius: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    top: 54%;
    transform: translateY(-50%);
    left: 75px;
    font-family: "Poppins", sans-serif;
    font-size: 15px;
    text-align: center;
}

/* Shopping cart icon */
.float-sc-icon {
    position: fixed;
    top: 45%;
    z-index: 1000;
    background-color: #fff;
    border-radius: 25%;
    width: 75px;
    height: 75px;
    right: -35px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
}

.float-sc-icon a {
    text-decoration: none;
}

.float-sc-icon img {
    position: sticky;
    width: 30px;
    height: 30px;
    margin-top: 22px;
    margin-left: 7px;
    transition: transform 0.3s;
    display: inline-block;
}

@media (hover: hover) and (pointer: fine) {
    .float-sc-icon img:hover {
        transform: translateX(-15px) scale(1.2);
    }
}

/* -Custom message when hover in shopping cart */
.tooltip-sc-container {
    position: relative;
    display: inline-block;
}

.tooltip-sc {
    position: absolute;
    background-color: #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    color: #000;
    padding: 7px;
    height: 40px;
    width: 200px;
    border-radius: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    top: 70%;
    transform: translateY(-50%);
    right: 50px;
    font-family: "Poppins", sans-serif;
    font-size: 15px;
    text-align: center;
}

.cart-count {
    top: -0.7rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    font-weight: bold;
    color: black;
    background: transparent;
}
