@import url("/css/main.css");

/* Main */

.main-wrapper {
    grid-area: main;
    background-color: #f5f5f5;
    padding-top: 8rem;
    padding-bottom: 10rem;
}

/* main banner */

.main {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 10rem 2rem;
}

.product-card {
    display: flex;
    flex-direction: column;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    min-width: 10rem;
    transition: transform 0.3s ease;
    position: relative;
}

.product-btn-favorite {
    position: absolute;
    border: none;
    padding: 1.4rem;
    background-color: transparent;
    cursor: pointer;
    right: 0;
    top: 0;
}
.product-btn-favorite svg path {
    fill: #e7e6e6;
}

.product-card:hover {
    transform: scale(1.05);
}
.product-card-left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    width: 100%;
}

.product-image {
    border-radius: 10px;
    background-color: #f8f8f8;
    padding: 1rem;
    display: flex;
    justify-content: center;
}

.product-image img {
    object-fit: cover;
    height: 9.2rem;
    width: auto;
}
.product-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
    color: #a38c6d;
}

.product-description {
    font-size: 1.2rem;
    color: #777;
    margin-bottom: 5px;
    width: 15rem; /* Ajusta el ancho del contenedor */
    overflow: hidden; /* Oculta el contenido desbordado */
    white-space: nowrap; /* Evita el salto de línea */
    text-overflow: ellipsis; /* Añade "..." al final del texto */
    word-wrap: break-word; /* Permite el ajuste de palabras largas */
}

.product-rating {
    color: #ffd700;
    font-size: 14px;
    margin-bottom: 5px;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-size: 16px;
    font-weight: bold;
    color: #444;
}

.product-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 2rem 0 1rem 0;
}

.quantity-btn {
    width: 25px;
    height: 25px;
    border: 1px solid #ccc;
    border-radius: 50%;
    background-color: white;
    font-size: 18px;
    cursor: pointer;
}

.quantity {
    font-size: 16px;
}

.add-to-cart-btn {
    border: none;
    border-radius: 2rem;
    background-color: #5a4d4a;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Footer */

.footer-nav {
    grid-area: footer-nav;
    background-color: #f5f5f5bb;

    backdrop-filter: blur(20px);
    z-index: 200;
    position: fixed;
    width: 100%;
    bottom: 0;
    display: flex;
    justify-content: space-between;
    padding: 1rem 2rem;
}

.footer-nav-item {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.3rem 1rem 0.5rem 1rem;
    border-radius: 1rem;
}

.footer-nav-icon {
    position: relative;
}

.numerito {
    position: absolute;
    background-color: #695757;
    color: #ffffff;
    width: 1.8rem;
    font-size: 1rem;
    border-radius: 1rem;
    top: -8px;
    left: 10px;
    text-align: center;
}
.footer-nav-item p {
    font-size: 1.2rem;
    color: #000;
}
.footer-nav-item svg path {
    fill: #4c4c4c;
}

.footer-nav-item--active {
    background-color: #695757;
}

.footer-nav-item--active svg path {
    fill: #fff;
}

.footer-nav-item--active p {
    color: #fff;
    font-size: 1.2rem;
}
