.main-section {
    height: auto;
    padding: 5vh;
    position: relative;
}
.cart-container {
    margin: auto;
}
h1 {
    font-size: 32px;
    margin-bottom: 20px;
}
hr {
    margin-bottom: 20px;
}
.cart-item {
    height: auto;
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
}
.checkbox-item-wrapper {
    display: flex;
    align-items: center;
    width: 45%;
}
.select-item {
    margin-right: 15px;
    width: 20px;
    height: 20px;
}
img{
    height: 10vh;
    width: 10vh;
    margin-right: 4vh;
    background-position: center;
    background-size: cover;
}
  
.item-details {
    line-height: 1.4;
}
  
.item-details h3 {
    font-size: 1rem;
}
  
.price-per-box {
    font-weight: bold;
}
  
.quantity-price-wrapper {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-right: 2vh;
    gap: 10vh;
}
.quantity-control {
    display: flex;
    align-items: center;
    gap: 8px;
}
  
.qty-btn {
    padding: 5px 10px;
    background-color: #ddd;
    border: none;
    cursor: pointer;
}
  
.qty-number {
    min-width: 20px;
    text-align: center;
}
  
.item-price {
    font-size: 16px;
    font-weight: 900;
}
  
.remove-btn {
    background-color: #e60000;
    color: white;
    border: none;
    padding: 8px 14px;
    cursor: pointer;
    border-radius: 5px;
}
  
.cart-footer {
    height: auto;
    width: 95%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #ddd;
    padding: 15px 20px;
    border-radius: 8px;
    position: fixed;
    bottom: 0;
    background-color: white;
    z-index: 1;
}
.row {
    display: flex;
    align-items: center;
    gap: 2vh;
}
.row2 {
    display: flex;
    align-items: center;
    gap: 1vh;
}
.row2 span {
    font-weight: 900;
}
.checkout {
    height: 5vh;
    width: 14vh;
    background-color: green;
    color: white;
    border-radius: 4px;
    border: none;
    cursor: pointer;
}
  
.select-all {
    width: 20px;
    height: 20px;
}
  
.delete-selected {
    background-color: #e60000;
    color: white;
    border: none;
    padding: 8px 14px;
    cursor: pointer;
    border-radius: 5px;
}
.remove-btn:hover,
.delete-selected:hover {
  background-color: #b30000;
  color: white;
}

.remove-btn:hover,
.delete-selected:hover {
  background-color: #cc0000;
}
.popup-container {
    display: none;
}
.modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.modal-container.hidden {
    display: none;
}
.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    text-align: center;
}
.modal-content h3 {
    margin-bottom: 1rem;
    color: #333;
}
.modal-content p {
    margin-bottom: 1.5rem;
    color: #666;
}
.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}
.modal-buttons button {
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
}
.cancel-btn {
    background-color: #e0e0e0;
    color: #333;
}
.cancel-btn:hover {
    background-color: #d0d0d0;
}
.confirm-delete-btn {
    background-color: #dc3545;
    color: white;
}
.confirm-delete-btn:hover {
    background-color: #c82333;
}
.btn-container {
    margin-top: 9vh;
    padding-left: 33vh;
    display: flex;
    gap: 1vh;
}
.btn-container button {
    text-decoration: none;
    width: 10vh;
    height: 4vh;
    border: none;
    cursor: pointer;
    border-radius: 4px;
}
.cancel {
    background-color: #e60000;
    color: white;
}
.yes {
    background-color: green;
    color: white;
}
input[type="checkbox"] {
    accent-color: green;
}
.no-products {
    display: flex;
    flex-direction: column;
    align-items: center;   /* horizontal center */
    justify-content: center; /* vertical center kung may height */
    text-align: center;
    margin: 40px 0;
  }
  
  .no-products i {
    font-size: 48px; /* adjust as needed */
    margin-top: 10px;
    color: #000000;     /* optional: para mas subtle */
  }

@media (max-width:767px) {
    .main-section {
        padding: 1vh;
        margin-bottom: 10vh;
    }
    h1 {
        font-size: 1.4rem;
        margin-bottom: 1vh;
    }
    .cart-item {
        padding: 1vh;
        width: 100%;
        position: relative;
    }
    .checkbox-item-wrapper {
        width: 100%;
        height: auto;
        align-items: start;
    }
    img {
        margin-right: 10px;
    }
    .item-details {
        line-height: .5;
        position: absolute;
        top: 3vh;
        left: 15vh;
    }
      
    .item-details h3 {
        margin-top: 1vh;
        font-size: .7rem;
        width: max-content;

    }
    .select-item {
        margin-right: 5px;
        width: 15px;
        height: 15px;
        align-self: center;
    }
    .quantity-price-wrapper {
        width: 100%;
        gap: 1vh;
        margin-right: 1vh;
    }
    .quantity-control {
        position: absolute;
        right: 2vh;
        bottom: 2.5vh;
    }
    .quantity {
        display: none;
    }
    .qty-btn {
        padding: 1px 5px;
    }
      
    .qty-number {
        min-width: 10px;
    }
    span {
        font-size: .7rem;
    }
    .item-price {
        font-size: 10px;
        width: max-content;
        position: absolute;
        left: 15vh;
        bottom: 2.5vh;
    }
    .total {
        display: none;
    }
    .total {
        display: none;
    }
    .select-all {
        width: 15px;
        height: 15px;
    }
    .remove-btn {
        padding: 4px 10px;
        font-size: .7rem;
    }
    .modal-container {
        width: 100%;
    }
    .btn-container {
        display: flex;
        gap: 1vh;
        padding-left: 15vh;
    }
    .no-products i {
        font-size: 3rem;
        left: 30%;
    }
    .no-products {
        left: 30%;
        top: 250%;
    }
    .cart-footer {
        height: 13vh;
        align-items: start;
        padding: 1vh;
    }
    .delete-selected {
        padding: 1vh;
        font-size: .7rem;
        width: max-content;
        position: absolute;
        bottom: 1vh;
        right: 17vh;
        height: 4vh;
    }
    .checkout {
        padding: 1vh;
        font-size: .7rem;
        position: absolute;
        bottom: 1vh;
        right: 1vh;
        height: 4vh;
        width: max-content;
    }
    .row2 p {
        font-size: .7rem;
        position: absolute;
        right: 27%;
        top: 1vh;
    }
    #total-amount {
        position: absolute;
        right: 2vh;
        top: 1vh;
    }
    .out-of-stock-message {
        font-size: .6rem;
        position: absolute;
        top: 2px;
    }
    .stock-error {
        position: absolute;
        top: 0;
        right: 0;
    }
}

/* Alert Messages */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-weight: 500;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}