body {
    background: #181818;
    color: #f5f5f5;
}

.card-bg {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    color: #222;
}

.cart-table {
    border-collapse: collapse;
    background: transparent;
}

.cart-table th,
.cart-table td {
    vertical-align: middle !important;
    text-align: center;
    padding: 12px 16px;
}

.cart-table th {
    color: #fff;
    font-weight: bold;
    background: #222;
    border: none;
    font-size: 1.1rem;
    padding: 12px 16px;
}

.cart-table tr {
    background: #fff;
}

.cart-table td {
    padding: 16px 16px;
    background: #fff;
}

.cart-table th:nth-child(2),
.cart-table td:nth-child(2) {
    width: 160px;
    text-align: center;
}

.cart-table th:nth-child(3),
.cart-table td:nth-child(3) {
    width: 120px;
    text-align: right;
}

.cart-table th:nth-child(4),
.cart-table td:nth-child(4) {
    width: 60px;
    text-align: right;
}

.cart-table .quantity-cell {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    min-width: 120px;
}

.btn-group-horizontal {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 4px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    width: auto;
    margin: 0;
    justify-content: center;
    min-width: 100px;
    box-shadow: 0 1px 4px #ffe06633;
    border: 1px solid #eee;
    background: #f9f9f9;
}

.item_image {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 16px;
    background: #eee;
    border: 2px solid #ffe066;
    box-shadow: 0 2px 8px #ffe06622;
}

.item-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: #222;
    margin-bottom: 2px;
}

.item-desc {
    font-size: 1rem;
    color: #888;
    margin-bottom: 0;
}

.qty-btn {
    font-size: 1.3rem !important;
    background: #ffe066 !important;
    color: #222 !important;
    border: 1px solid #ffe066 !important;
    border-radius: 8px !important;
    margin: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 4px #ffe06633;
}

.qty-btn:hover,
.qty-btn:focus {
    background: #222 !important;
    color: #ffe066 !important;
    box-shadow: 0 2px 8px;
}

.btn-sm.btn-danger.cursor-pointer {
    background: #ffe066 !important;
    color: #222 !important;
    border-radius: 8px;
    padding: 8px;
    transition: background 0.2s, color 0.2s;
    font-size: 1.2rem;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-sm.btn-danger.cursor-pointer:hover {
    background: #e74c3c !important;
    color: #fff !important;
}

.price-cell {
    font-weight: bold;
    color: #222 !important;
    /* Cambia a negro para mejor contraste */
    font-size: 1.2rem;
    background: #ffe0661a;
    padding: 8px 12px;
    border-radius: 8px;
}

.order-type-tab {
    border-radius: 16px !important;
    font-weight: bold;
    font-size: 1.1rem;
    padding: 18px 0 10px 0;
    margin: 0 6px;
    background: #222;
    color: #fff;
    border: 2px solid #222;
    box-shadow: 0 2px 8px #00000022;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    min-width: 120px;
    text-align: center;
}

.btn-check:checked + .order-type-tab,
.order-type-tab:hover,
.order-type-tab:focus {
    background: #ffe066 !important;
    color: #222 !important;
    border: 2px solid #ffe066 !important;
    box-shadow: 0 4px 16px #ffe06644;
}

.order-type-tab span {
    margin-top: 4px;
}

.form-control,
.form-select {
    border: 2px solid #eee !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: #222 !important;
}

.form-control:focus,
.form-select:focus {
    border-color: #ffe066 !important;
    box-shadow: 0 0 0 2px #ffe06633;
}

.form-floating label {
    color: #888 !important;
}

.table-summary td {
    font-size: 1.1rem;
    color: #222;
}

.table-summary .total-row td {
    font-size: 1.4rem;
    font-weight: bold;
    color: #222;
}

.table-summary .divider-row td {
    border-top: 2px solid #ffe066;
}

.checkout-btn {
    background: #ffe066 !important;
    color: #222 !important;
    font-weight: bold !important;
    font-size: 1.2rem !important;
    border-radius: 12px !important;
    border: none !important;
    box-shadow: 0 2px 8px #ffe06644;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.checkout-btn:hover,
.checkout-btn:focus {
    background: #222 !important;
    color: #ffe066 !important;
    box-shadow: 0 4px 16px;
}

.cart-empty-message {
    color: #888 !important;
}

.modern-select-group {
    box-shadow: 0 2px 8px #ffe06633;
    border-radius: 14px;
    overflow: hidden;
    background: #f8f9fa;
    border: 2px solid #ffe066;
    margin-bottom: 18px;
}

.modern-select {
    font-size: 1.1rem;
    padding: 14px 18px;
    border: none !important;
    background: #fff !important;
    color: #222 !important;
    border-radius: 0 14px 14px 0 !important;
    transition: border-color 0.2s;
    box-shadow: none !important;
}

.modern-select:focus {
    border-color: #e67a2c !important;
    box-shadow: 0 0 0 2px #ffe06644;
}

.input-group-text.bg-dark {
    background: #222 !important;
    color: #ffe066 !important;
    font-weight: bold;
    border-radius: 14px 0 0 14px !important;
    border: none !important;
    font-size: 1.1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 80px;
    padding: 12px 0;
}

.btn-sm.text-center.w-100 {
    width: 40px;
    text-align: center;
    font-size: 1.1rem;
    margin: 2px 0;
    background: transparent;
    border: none;
    color: #222;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-table tr td:first-child {
    padding-left: 18px;
}

.cart-table tr td:last-child {
    padding-right: 18px;
}

@media (max-width: 768px) {
    .card-bg {
        padding: 8px !important;
        overflow: visible !important;
    }

    .cart-table th,
    .cart-table td {
        font-size: 0.95rem;
        padding: 6px 4px;
    }

    .item_image {
        width: 80px;
        height: 80px;
        margin-right: 8px !important;
    }

    .item-name {
        font-size: 1rem;
    }

    .item-desc {
        font-size: 0.9rem;
    }

    .btn-group-horizontal {
        width: 90px;
        gap: 2px;
    }

    .qty-btn,
    .btn-sm.text-center.w-100 {
        width: 28px;
        height: 28px;
        font-size: 1rem !important;
    }

    .price-cell {
        font-size: 1rem;
        padding: 4px 6px;
    }

    .table-summary td {
        font-size: 1rem;
    }

    .table-summary .total-row td {
        font-size: 1.1rem;
    }

    .checkout-btn {
        font-size: 1rem !important;
        padding: 10px 0 !important;
    }

    .container {
        padding-left: 2px !important;
        padding-right: 2px !important;
    }

    .row {
        flex-direction: column;
    }

    .col-md-8,
    .col-md-4 {
        width: 100%;
        max-width: 100%;
    }

    .table-responsive {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .cart-table {
        min-width: 480px;
    }
}

@media (max-width: 480px) {
    .item_image {
        width: 56px;
        height: 56px;
    }

    .btn-group-horizontal {
        width: 70px;
    }

    .qty-btn,
    .btn-sm.text-center.w-100 {
        width: 22px;
        height: 22px;
        font-size: 0.85rem !important;
    }

    .checkout-btn {
        font-size: 0.95rem !important;
    }
}
