.cbo-wrapper {
    width: 100%;
    margin: 0 auto;
    padding: 2rem 1rem;
    background: linear-gradient(120deg, #fff7f2, #ffffff);
    box-sizing: border-box;
}

.cbo-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: 700;
    color: #7c2d12;
}

.cbo-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
    gap: 1.5rem;
}

/* Menú de productos */

.cbo-menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1rem;
}

.cbo-product {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.cbo-product-image img,
.cbo-placeholder-thumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.cbo-placeholder-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    background: repeating-linear-gradient(
        45deg,
        #fde68a,
        #fde68a 10px,
        #fef3c7 10px,
        #fef3c7 20px
    );
    color: #78350f;
    font-size: 0.9rem;
    text-align: center;
}

.cbo-product-body {
    padding: 0.75rem 0.9rem 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.cbo-product-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
}

.cbo-product-category {
    font-size: 0.8rem;
    color: #9a3412;
}

.cbo-product-desc {
    font-size: 0.85rem;
    color: #4b5563;
    min-height: 2.2em;
}

.cbo-product-price span {
    font-weight: 700;
    color: #c2410c;
}

.cbo-product-price small {
    color: #6b7280;
}

.cbo-product-actions {
    margin-top: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.cbo-label-qty {
    font-size: 0.8rem;
    color: #6b7280;
}

.cbo-product-actions .cbo-qty {
    width: 70px;
    padding: 0.25rem 0.35rem;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    text-align: center;
    font-size: 0.9rem;
}

.cbo-product-actions .cbo-add-to-cart {
    background: #f97316;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.15s ease;
}

.cbo-product-actions .cbo-add-to-cart:hover {
    background: #ea580c;
    box-shadow: 0 4px 10px rgba(249,115,22,0.4);
    transform: translateY(-1px);
}

.cbo-added-msg {
    font-size: 0.8rem;
    color: #16a34a;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.cbo-added-visible {
    opacity: 1;
}

/* Carrito + formulario */

.cbo-cart-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cbo-cart {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    padding: 0.9rem;
}

.cbo-cart h3 {
    margin-top: 0;
    margin-bottom: 0.6rem;
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
}

.cbo-cart-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.cbo-cart-table th,
.cbo-cart-table td {
    border-bottom: 1px solid #f3f4f6;
    padding: 0.35rem;
    vertical-align: middle;
}

.cbo-cart-table th {
    text-align: left;
    font-weight: 600;
    color: #4b5563;
}

.cbo-cart-total-label {
    text-align: right;
    font-weight: 600;
    color: #111827;
}

.cbo-cart-total-value {
    font-weight: 700;
    color: #16a34a;
}

.cbo-cart-qty-control {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.cbo-cart-qty-control button {
    background: #f9fafb;
    border: none;
    width: 26px;
    height: 26px;
    font-size: 0.9rem;
    cursor: pointer;
}

.cbo-cart-qty-control button:hover {
    background: #e5e7eb;
}

.cbo-cart-qty-input {
    width: 40px;
    border: none;
    text-align: center;
    font-size: 0.85rem;
    padding: 0;
    outline: none;
}

.cbo-remove-item {
    background: transparent;
    border: none;
    color: #b91c1c;
    font-size: 0.85rem;
    cursor: pointer;
}

/* Formulario */

.cbo-customer-form {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    padding: 1rem;
}

.cbo-form-title {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
}

.cbo-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 0.75rem;
}

.cbo-form-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cbo-form-field-full {
    grid-column: 1 / -1;
}

.cbo-form-field label {
    font-size: 0.8rem;
    color: #4b5563;
}

.cbo-form-field input,
.cbo-form-field select,
.cbo-form-field textarea {
    width: 100%;
    padding: 0.4rem 0.6rem;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    font-size: 0.9rem;
    box-sizing: border-box;
}

.cbo-form-field textarea {
    resize: vertical;
}

.cbo-info-text {
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: #6b7280;
}

.cbo-btn-whatsapp {
    margin-top: 0.85rem;
    width: 100%;
    background: #22c55e;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    box-shadow: 0 6px 16px rgba(34,197,94,0.45);
    transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.15s ease;
}

.cbo-btn-whatsapp::before {
    content: "🟢";
}

.cbo-btn-whatsapp:hover {
    background: #16a34a;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(34,197,94,0.55);
}

/* Responsive */

@media (max-width: 960px) {
    .cbo-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .cbo-form-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .cbo-wrapper {
        padding: 1.5rem 0.75rem;
    }
}
