* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    font-family: "Outfit", sans-serif;
    scroll-behavior: smooth;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ----------------------------------- HEADER ----------------------------------*/
.header {
    background-color: #583c64;
    padding: 10px 0;
}

.header__menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
}

.header__content1, .header__content2 {
    display: flex;
    align-items: center;
    justify-content: center;
}

.header__logo {
    font-size: 2.5rem;
    font-family: "Pacifico", cursive;
}

.bx, .bx-search, .bx-user, .bx-cart {
    margin-left: 5px;
    font-size: 2.8rem;
}

.header__enlaces {
    background-color: #583c64;
    position: fixed;
    top: 0;
    left: 0;
    width: 75%;
    height: 70vh;
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding: 100px 20px 80px ;
    left: -100%;
    transition: left 0.5s ease;
}

.header__enlaces span {
    font-size: 2.5rem;
}


.header__enlaces.isActive {
    left: 0;
}

.header__link {
    color: #fff;
    font-size: 2rem;
    text-decoration: none; 
    position: relative;
    transition: border-bottom 0.2s ease;
}

.header__link::after, 
.header__link-active::after {
    content: ""; 
    position: absolute;
    left: 0;
    bottom: -3px; 
    width: 100%;
    height: 2px; 
    background-color: #fff;
    transform: scaleX(0);
    transform-origin: center; 
    transition: transform 0.4s ease; /
}
.header__link-active::after {
    transform: scaleX(1);
}

.header__link:hover::after {
    transform: scaleX(
        1
    ); 
}
 /* Modal buscador  */
.modal__search {
    z-index: 13;
    background: rgba(0, 0, 0, 0.459);
    position: fixed;
    height: 100%;
    right: 0;
    left: 0;
    top: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 500ms ease;
}

.modal__search.isActive {
    visibility: visible;
    opacity: 1;
}

.modal__search-box {
    min-height: 40vh;
    padding: 50px;
    background-color: #fdfcfc;
}

.modal__content-search {
    width: 100%;
    position: relative;
}

.search__icon-delete {
    font-size: 3.8rem;
    color: #4e4d4d;
    position: absolute;
    top: 0%;
    right: 5%;
    transform: translateX(50%);
}

.modal__input-box {
    width: 90%;
    position: relative;
    border-radius: 5px;
    margin: 25px auto;
    background-color: #f9f6f6;
}

.modal__input {
    width: 100%;
    padding: 17px;
    border-radius: 5px;
    font-size: 1.8rem;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    outline: none;
    padding-left: 40px;
}

.modal__input::placeholder {
    color: #3a3939;
}

.search__icon-inp {
    position: absolute;
    top: 50%;
    left: 5px;
    transform: translateY(-50%);
    color: #575555;
    font-size: 2.5rem;
}

.modal__content-filter {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 15px;
    max-height: 75vh;
    overflow-y: auto;
    padding-bottom: 35px;
    width: 100%;
    margin-top: 30px;
}

/* Modal menú  */
.modal {
    position: relative;
    background: rgba(34, 32, 32, 0.952);
    position: fixed;
    z-index: 12;
    height: 100%;
    right: 0;
    left: 0;
    top: 0;
    visibility: hidden;
    opacity: 0;
    transition: all 500ms ease;
}

.modal.isActive {
    opacity: 1;
    visibility: visible;
}

.modal__icon-delete {
    color: #fff;
    position: absolute;
    font-size: 4.3rem;
    top: 5%;
    right: 14%;
    transform: translateY(-50%);
}

.header__content1-text, .header__content2-text {
    display: none;
}


/* Icono de carrito (cantidad de productos)  */
.cart__item-box{
    position: relative;
}

#cart__item-count{
    display: grid;
    align-items: center;
    position: absolute;
    text-align: center;
    min-height: 22px;
    width: 22px;
    top: -10px;
    right: -10px;
    background-color: lightcoral;
    border-radius: 50%;
}

.your-custom-confirm-class {
    background-color: green;
    color: white;
}

.your-custom-cancel-class {
    background-color: red;
    color: white;
}


/* ------------------------------------- MAIN -------------------------------------- */
.main {
    background-color: #f5f1f1;
    text-align: center;
    font-size: 2rem;
}

.text-block {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
    padding: 10px;
}

.main__text {
    font-size: 2.5rem;
    margin: 0 20px;
    color: #3a3939;
    padding: 20px 0 0;
}


.main__banner {
    width: 100%;
    height: 238px;
} 

.main__banner img {
    width: 100%;
    height: 100%;
}

.main__content-grid {
    padding: 30px 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.main__product {
    text-align: center;
    border: 2px solid #b19bbb;
    border-radius: 8px;
    color: #000;
}

.main__product{
    transition: transform 0.3s ease;
    &:hover {
      transform: scale(1.01);
    }
}

.main__info-subtitle,
.main__info-price,
.main__info-categoria {
    font-size: 1.8rem;
}

.main__product img {
    width: 100%;
    height: 65%;
    border-radius: 6px 6px 0 0;
}

.main__info {
    padding: 20px 0;
}

.main__info-add {
    padding: 8px 0;
    border-radius: 8px;
    width: 60%;
    background-color: #583c64;
    cursor: pointer;
    border: none;
    font-size: 1.5rem;
    color: #fff;
}

.main__icons {
    padding: 25px 0 85px;
    background-color: #f5f1f1;
}

.main__icons h2 {
    text-align: center;
    font-size: 3rem;
    padding: 25px 0 50px;
    font-weight: lighter;
}

.main__icon-box {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.icon__box {
    width: 100%;
    max-width: 280px;
    padding: 40px;
    text-align: center;
    font-size: 2rem;
    border-radius: 8px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.bx-gift, .bx-donate-heart, .bxs-plane-alt, .bx-time {
    font-size: 4rem;
}

/* Modal carrito  */
#search-icon,
.search__icon-delete,
#icon-cart,
.cart__deleted,
.cart__btn-minus,
.cart__btn-plus {
    cursor: pointer;
}

.cart__modal {
    background: rgba(0, 0, 0, 0.705);
    position: fixed;
    z-index: 14;
    height: 100vh;
    right: 0;
    left: 0;
    top: 0;
    opacity: 0; /* oculta sin perder su espacio */
    visibility: hidden; /* sale de su espacio  */
    transition: all 500ms ease;
}

.cart__modal.isActive {
    opacity: 1;
    visibility: visible;
}

.card__content {
    position: fixed;
    background-color: #f1eded;
    width: 100%;
    max-width: 420px;
    height: 100vh;
    right: 0;
    transform: translateX(110%);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.card__content.active {
    transform: translateX(0);
}

.cart__head {
    font-size: 2.5rem;
    border-bottom: 1px solid rgb(163, 161, 161);
}
.cart__head, .cart__footer {
    padding: 20px 25px;
    color: #000;
    border-top: 1px solid rgb(163, 161, 161);
}

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

.close {
    cursor: pointer;
    background-color: #e7e3e3;
}

.close:hover {
    background-color: #d8d3d3;
}

.cart__body {
    min-height: calc(100vh - 155px);
    overflow-y: scroll;
    color: #000;
    font-size: 3rem;
}

.cart__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.8rem;
    gap: 20px;
    color: #000;
}

.cart__button {
    background-color: #000;
    color: #fff;
    padding: 10px 40px;
    font-size: 1.5rem;
    font-family: "Outfit", sans-serif;
    border-radius: 5px;
    border: 1px solid rgb(73, 70, 70);
    cursor: pointer;
}

.cart__button.active {
    cursor: not-allowed;
    opacity: 0.5;
}

.cart-footer #cart-total, .cart__button-total {
    color: #000;
}

.cart__button-total {
    font-weight: bold;
}

.cart__button:hover {
    background-color: #1a1919;
}

.cart__item {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 20px 20px;
    border-bottom: 1px solid rgb(221, 219, 219);
}
.cart__column-img {
    width: 25%;
    height: 115px;
    border-radius: 5px;
}

.cart__column-info {
    width: 70%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: 1.5rem;
}

.cart__deleted-box {
    min-height: 10px;
    width: 40px;
}

.cart__deleted {
    padding: 8px;
    color: #000;
    border-radius: 50%;
}

.cart__deleted:hover {
    background-color: lightcoral;
    transition: 0.3s;
    color: #fff;
}

.cart__description-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.cart__content-details {
    display: flex;
    gap: 20px;
}

.cart__content-details2 {
    display: flex;
    gap: 50px;
}
.cart__gropu-btn {
    width: 50%;
    display: flex;
    justify-content: space-between;
}

.cart__btn-minus, .cart__btn-plus, .cart__btn-inp {
    padding: 4px 10px;
    width: 100%;
    font-size: 1.5rem;
    font-weight: bold;
}






/* ------------------------------------ FOOTER --------------------- */
.footer {
    background-color: #252424;
    color: #fff;
    padding: 20px 0 0;
    text-align: center;
    font-size: 1.7rem;
}

.footer__info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 20px;
}

.footer__content2, .footer__box-icons{
    padding-top: 15px;
}

.footer__icon {
    font-size: 3.5rem;
    margin-left: 10px;
}

.footer__info-text {
    text-align: center;
    padding: 20px 0 0;
    font-size: 1.5rem;
}

.footer__info-text span {
    font-family: "Pacifico", cursive;
    font-size: 1.7rem;
}