/* ========= HEADER NEGOCIO ========= */
.business-header {
    color: white;
    padding: 2.5rem 0 2rem 0;
    margin-bottom: 0.5rem;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}
.business-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.75));
}
.business-header > .container {
    position: relative;
    z-index: 1;
}

.business-info-card {
    border-radius: 18px;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
    padding: 0.75rem 1rem;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    display: inline-block;
    margin-right: 6px;
}
.status-dot.open { background-color: #22c55e; }
.status-dot.closed { background-color: #ef4444; }

.pill-chip {
    border-radius: 999px;
    background-color: #f3f4f6;
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.store-closed-banner {
    border-radius: 12px;
    border: 1px dashed #f97316;
    background: #fff7ed;
}

/* =====================================================
 *  CATEGORÍAS – PÍLDORAS TIPO “CHIP” MORADO
 * ===================================================== */
.category-scroll-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}
.category-scroll-wrapper::-webkit-scrollbar {
    width: 0;
    height: 0;
    background: transparent;
}
.category-scroll-wrapper::-webkit-scrollbar-track { background: transparent; }
.category-scroll-wrapper::-webkit-scrollbar-thumb { background: transparent; }

.category-pill {
    white-space: nowrap;
    border-radius: 999px;
    padding: 0.35rem 0.95rem 0.35rem 0.65rem;
    border: 1px solid #9ea4af;
    background-color: #ffffff;
    font-size: 0.96rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    cursor: pointer;
    transition: all 0.18s ease-in-out;
    color: #111827;
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.04);
}

.category-pill img {
    width: 39px;
    height: 39px;
    border-radius: 999px;
    object-fit: cover;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 2px #f3f4f6;
}

.category-pill:hover {
    border-color: rgba(99, 102, 241, 0.7);
    transform: translateY(-1px);
}

.category-pill.active {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #ffffff;
    border-color: transparent;
}

.category-pill[data-category-filter="all"] {
    padding: 0.35rem 0.9rem;
}

/* ========= LISTADO PRODUCTOS ========= */
.category-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* ✅ PARCHE: ahora la disposición la maneja .vx-menu-row */
.product-list-card {
    border-radius: 18px;
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    padding: 0.75rem 1rem;
    position: relative;
    overflow: hidden;
}

/* (Legacy - por compatibilidad si alguna vista aún los usa) */
.product-thumb-wrapper { flex: 0 0 auto; }
.product-thumb {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 14px;
}
.product-main {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.product-name {
    font-size: 0.98rem;
    font-weight: 600;
    margin-bottom: .15rem;
}
.product-description {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: .25rem;
}
.product-description.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: .35rem;
}
.product-price {
    font-weight: 700;
    font-size: 0.95rem;
    color: #111827;
}

/* ============================
   ✅ NUEVO LAYOUT (como tu mockup)
   - Izq: imagen + precio
   - Der: info + acciones (nota + agregar)
============================ */
.vx-menu-row{
    display:flex;
    gap: 14px;
    align-items: stretch;
}

.vx-menu-left{
    flex: 0 0 92px;
    width: 92px;
    display:flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.vx-menu-thumb-wrap{
    width: 92px;
    height: 92px;
    border-radius: 16px;
    overflow:hidden;
    background:#f3f4f6;
    box-shadow: 0 12px 26px rgba(15,23,42,.08);
}

.vx-menu-thumb-wrap img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display:block;
}

.vx-menu-price{
    font-weight: 900;
    font-size: 1.45rem;
    letter-spacing: .01em;
    color: #0f172a;
    line-height: 1;
    padding-left: 2px;
    white-space: nowrap;
}

.vx-menu-right{
    flex: 1 1 auto;
    min-width: 0;
    display:flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    padding: 2px 0;
}

.vx-menu-title{
    font-weight: 900;
    font-size: 1.05rem;
    color:#0f172a;
    line-height: 1.15;
}

.vx-menu-desc{
    margin: 4px 0 0 0;
    color:#6b7280;
    font-size: .9rem;
    line-height: 1.25;
}

.vx-menu-actions{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap: 12px;
}

/* ✅ Botón Nota circular dorado (mockup) */
.vx-note-mini-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(250, 204, 21, .55);
    background: rgba(250, 204, 21, .35);
    color: #5a4300;
    font-weight: 900;
    box-shadow: 0 12px 22px rgba(0,0,0,.08);
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease;
}
.vx-note-mini-btn:hover{
    transform: translateY(-1px);
    background: rgba(250, 204, 21, .50);
    border-color: rgba(250, 204, 21, .70);
    box-shadow: 0 16px 30px rgba(0,0,0,.12);
}
.vx-note-mini-btn i{
    color:#7a5b00;
    font-size: 1.05rem;
}

/* Texto de la nota dentro del modal */
.vx-note-modal-text{
    text-align:left;
    white-space: normal;
    line-height: 1.35;
    color:#3f2f00;
}

/* ✅ Botón "Agregar" estilo píldora degradada */
.btn-add {
    border-radius: 999px;
    font-size: 0.85rem;
    padding: 0.45rem 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: none;
    outline: none;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
}

/* Degradado + sombra tipo sidebar */
.btn-add-primary {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: #ffffff;
    transition: transform 0.12s ease, filter 0.15s ease;
}

/* Círculo para el ícono, imitando el menú lateral */
.btn-add-primary i {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.btn-add-primary:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
    color: #ffffff;
}

.btn-add-primary:active {
    transform: translateY(0);
}

/* Ajuste fino para acciones en esta nueva card */
.vx-menu-actions .btn-add{
    padding: .65rem 1.05rem;
    font-weight: 900;
    white-space: nowrap;
}

/* Mobile: que no se rompa */
@media (max-width: 420px){
    .vx-menu-left{ flex-basis: 84px; width:84px; }
    .vx-menu-thumb-wrap{ width:84px; height:84px; border-radius: 14px; }
    .vx-menu-price{ font-size: 1.25rem; }
    .vx-note-mini-btn{ width: 42px; height: 42px; }
    .vx-menu-actions .btn-add{ padding: .6rem .95rem; }
}

/* ========= Alerts ========= */
.alert-fixed {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    min-width: 300px;
}

/* ===========================
   MODAL VARIACIONES
   =========================== */
.variation-modal-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
    align-items: center;
}

.variation-modal-thumb-wrapper { flex: 0 0 auto; }

.variation-modal-thumb {
    width: 88px;
    height: 88px;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
}

.variation-modal-main { flex: 1 1 auto; }

.variation-modal-title-main {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 0.1rem;
}

.variation-modal-price {
    font-weight: 700;
    color: #16a34a;
    margin-bottom: 0.25rem;
}

.variation-modal-description {
    font-size: 0.9rem;
    color: #4b5563;
    margin-bottom: 0;
}

/* Card de cada grupo de opciones */
.variation-section {
    border-radius: 18px;
    background-color: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    padding: 0.9rem 1rem 1rem;
    margin-bottom: 1rem;
    border: none;
}

.variation-title {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: .1rem;
    color: #495057;
}

.variation-subtitle {
    font-size: 0.82rem;
    color: #6b7280;
}

/* Badges “REQUERIDO” / “Opcional” */
.variation-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.18rem 0.6rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.variation-badge-required { background: #a855f7; color: #fff; }
.variation-badge-optional { background: #cffafe; color: #0369a1; }

/* Contador de selección */
.selection-counter {
    font-size: 0.75rem;
    margin-left: 8px;
}
.selection-counter.normal { color: #6b7280; }
.selection-counter.limit-reached { color: #dc2626; font-weight: 700; }

/* Opciones */
.variation-options .form-check {
    margin-bottom: 6px;
    padding-left: 0;
}
.variation-options .form-check-input {
    margin-left: 0;
    margin-right: 0.45rem;
    border-color: #c4b5fd;
    width: 18px;
    height: 18px;
    border-radius: 6px;
}
.variation-options .form-check-input:checked {
    background-color: #a855f7;
    border-color: #a855f7;
}
.variation-options .form-check-input:focus {
    box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.35);
    border-color: #a855f7;
}

.variation-options .form-check-label {
    font-size: 0.9rem;
    color: #111827;
}

/* Resumen de precio */
.price-summary {
    border-radius: 16px;
    border: 2px solid #22c55e;
    background: #ecfdf3 !important;
}

/* Redondeo modal */
.modal-content { border-radius: 22px; }

.option-disabled { opacity: 0.6; pointer-events: none; }

.variation-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 5px;
    display: none;
}

/* ==== BOTONES FOOTER MODAL ==== */
.modal-footer {
    border-top: none;
    padding-top: 0.25rem;
    gap: .5rem;
}

.modal-footer .btn-primary {
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #ffffff;
    font-weight: 600;
    font-size: .9rem;
    padding: 0.55rem 1.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
}

.modal-footer .btn-primary:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
    color: #ffffff;
}

.modal-footer .btn-primary:active {
    transform: translateY(0);
}

.modal-footer .btn-primary:disabled,
.modal-footer .btn-primary.disabled {
    opacity: .6;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.modal-footer .btn-secondary,
.modal-footer .btn-outline-secondary {
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    color: #111827;
    font-weight: 500;
    font-size: .9rem;
    padding: 0.55rem 1.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
}

.modal-footer .btn-secondary:hover,
.modal-footer .btn-outline-secondary:hover {
    background: #eef2ff;
    border-color: #6366f1;
    color: #111827;
}
