/* Items */

#bottomSheet {
    height: auto !important;
    max-height: 90vh;
    overflow-y: auto;
    background: white;
    max-width: 900px;
    width: 100%;
    margin: auto;
    border-radius: 12px 12px 0px 0px;
    box-shadow: 0px -2px 10px rgba(0, 0, 0, 0.2);
}

.product-widget {
    border: 1px solid rgb(224, 224, 224);
    border-radius: 14px;
    background: white;
    margin: 5px 4px;
    text-align: left;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 400px;
    box-sizing: border-box;
    max-width: 400px !important;
}

.product-widget:hover {
    transform: scale(1.05);
}

.product-widget img {
    border-radius: 12px;
    max-width: 100%;
    height: 150px;
    width: 180px;
    margin-right: 8px;
    cursor: pointer;
}

.product-widget h3 {
    color: #000;
    font-size: 14px;
    margin: 5px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    max-height: 42px;
    line-height: 21px;
    font-weight: 600;
}

@media (max-width: 429px) {
    .product-widget {
        max-width: 350px !important;
    }
}

.product-title {
    color: #000;
    font-size: 14px;
    font-weight: bold;
    margin-top: 8px;
    margin-bottom: 0;
    /* height: 42px; */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-height: 1.4em;
    text-overflow: ellipsis;
    white-space: normal;
}

.product-description {
    color: #000;
    font-size: 11px;
    margin: 5px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    max-height: 45px;
    line-height: 15px;
    font-weight: 500;
}

.product-price {
    font-size: 15px;
    color: black;
    font-weight: bold;
    margin-bottom: 0px;
}

.product-price-old {
    font-size: 12px;
    color: rgb(155, 155, 155);
    text-decoration: line-through;
    margin-bottom: 0px;
}

.add-to-cart-button {
    border: 2px var(--bs-main-color) solid;
    border-radius: 12px;
    background-color: transparent;
    color: var(--bs-main-color);
    padding: 0px;
    cursor: pointer;
    font-weight: bold;
    font-size: 12px;
    transition: background-color 0.3s;
    margin-left: 2px;
    height: 35px;
    width: 35px;
}

.add-to-cart-button.expanded {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0px 10px;
    width: auto !important;
}

.add-to-cart-button.expanded:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #ccc;
    color: #666; 
    border: 1px solid #999;
  }

.add-to-cart-favorite {
    border: 2px var(--bs-main-color) solid;
    border-radius: 12px;
    background-color: transparent;
    color: var(--bs-main-color);
    padding: 0px;
    cursor: pointer;
    font-weight: bold;
    font-size: 12px;
    transition: background-color 0.3s;
    margin-left: 2px;
    height: 35px;
    width: 35px;
}

.redirect-action {
    border: 1px gainsboro solid !important;
    border-radius: 8px;
    background-color: transparent;
    color: black;
    padding: 6px 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 12px;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.redirect-action-blur {
    border: 1px solid;
    border-radius: 12px;
    background-color: transparent;
    padding: 6px 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 12px;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.redirect-action:hover {
    transform: scale(1.05);
    color: black;
}

.redirect-action-blur:hover {
    transform: scale(1.05);
    color: white;
}

.redirect-action.no-hover:hover {
    transform: scale(1) !important;
}

.add-to-cart-button:hover {
    background-color: var(--bs-main-color);
    transform: scale(1.05);
    border: none;
    color: white;
}

.add-to-cart-button.expanded:hover {
    background-color: var(--bs-main-color);
    transform: scale(1.05);
    border: none;
    color: white;
}

.add-to-cart-favorite:hover {
    background-color: var(--bs-main-color);
    transform: scale(1.05);
    border: none;
    color: white;
}

.add-to-cart-button.active {
    background-color: var(--bs-main-color);
    border: none;
    color: white;
}

.add-to-cart-favorite.active {
    background-color: var(--bs-main-color);
    border: none;
    color: white;
}

.priceRow {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Modals */
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    /* Ajusta la altura según tus necesidades */
}

/* Estilo CSS para el botón de cierre (×) */
.modal-header .btn-close {
    font-size: 22px !important;
}

/* Items Modal */

.modal-body.product {
    text-align: left;
    display: inline-block;
    vertical-align: top;
}

.modal-body.product img {
    border-radius: 12px;
    max-width: 100%;
    height: auto;
    width: 512px;
    cursor: pointer;
}

.modal-body.product h3 {
    color: #000;
    font-size: 14px;
    margin: 5px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    max-height: 42px;
    line-height: 21px;
    font-weight: 600;
}

.modal-body.product .modal-description {
    color: #000;
    font-size: 14px;
    margin: 5px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    max-height: 45px;
    line-height: 15px;
    font-weight: 500;
}

.modal-body.product .modal-price {
    font-size: 15px;
    color: black;
    font-weight: bold;
    margin-bottom: 0px;
}

.modal-body.product .modal-price-old {
    font-size: 12px;
    color: rgb(155, 155, 155);
    text-decoration: line-through;
    margin-bottom: 0px;
}

.modal-body.product .modal-price-toppings {
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 0px;
}

.row {
    display: flex;
    justify-content: flex-start;
}

.list-group-item input[type="checkbox"]:checked {
    background: #67ce14 !important;
}

/* Button Category */

.btn-category {
    display: inline-block;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: bold;
    color: white;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    border: none;
    border-radius: 12px;
    background-color: rgb(207, 207, 207);
    transition: all 0.15s ease-in;
    margin: 5px 0px;
    white-space: nowrap;
}

.btn-category:hover {
    transform: scale(1.05);
    background-color: var(--bs-main-color);
}

.btn-category.active {
    transform: scale(1.05);
    background-color: var(--bs-main-color);
}

.close-session:hover {
    color: red;
}

.country-flag {
    max-width: 25px;
    max-height: 15px;
    margin-right: 5px;
}

.clock-overlay {
    position: absolute;
    top: 0;
    right: 0;
    margin: 8px;
    color: white;
    padding: 6px;
    border-radius: 12px;
    background-color: var(--bs-info);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.clock-overlay:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 125px;
    right: 3px;
    max-width: 100px;
    background-color: #333;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    transform: translateY(-100%);
    opacity: 1;
    transition: opacity 0.2s ease;
}

.clock-overlay::after {
    content: "";
    opacity: 0;
}

.product-discount {
    background-color: var(--bs-main-color);
}

.modal-discount {
    background-color: var(--bs-main-color);
}

.category-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.category-products {
    display: flex;

}

.sticky-container {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 5px 0;
    margin-bottom: 10px;
    will-change: transform;
    background-color: white;
}

#listCategoryButton {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: thin;
}

#listCategoryButton::-webkit-scrollbar {
    height: 6px;
}

#listCategoryButton::-webkit-scrollbar-thumb {
    background-color: #aaa;
    border-radius: 3px;
}

.btn-category.active {
    background-color: var(--bs-main-color);
    color: white;
}