.coca-producto-modal[hidden] {
    display: none !important;
}

.coca-producto-modal {
    position: fixed;
    inset: 0;
    z-index: 13100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.coca-producto-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(4px);
}

.coca-producto-modal__panel {
    position: relative;
    z-index: 1;
    width: min(920px, 100%);
    max-height: min(90vh, 720px);
    overflow: auto;
    border-radius: 16px;
    background: #12141a;
    border: 1px solid rgba(153, 255, 0, 0.25);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
    color: #f4f6f8;
}

.coca-producto-modal__close {
    position: absolute;
    top: 0.65rem;
    right: 0.75rem;
    z-index: 2;
    width: 2.25rem;
    height: 2.25rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.coca-producto-modal__layout {
    display: grid;
    grid-template-columns: minmax(300px, 1.25fr) minmax(260px, 1fr);
    gap: 1.25rem;
    padding: 1.25rem;
    min-height: min(520px, 88vh);
    align-items: stretch;
}

.coca-producto-modal__media {
    display: flex;
    align-items: stretch;
    justify-content: center;
    min-height: 360px;
}

.coca-producto-modal__media-frame {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 340px;
    padding: 0.35rem;
    border-radius: 16px;
    border: 1px solid rgba(153, 255, 0, 0.28);
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(153, 255, 0, 0.12), transparent 70%),
        linear-gradient(165deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -12px 32px rgba(0, 0, 0, 0.35),
        0 12px 40px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.coca-producto-modal__media-shine {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.07) 0%,
        transparent 42%,
        transparent 58%,
        rgba(153, 255, 0, 0.05) 100%
    );
}

.coca-producto-modal__img {
    position: relative;
    z-index: 1;
    width: auto;
    height: auto;
    max-width: min(100%, 400px);
    max-height: min(480px, 62vh);
    object-fit: contain;
    border-radius: 10px;
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.45));
}

.coca-producto-modal__img[hidden] {
    display: none !important;
}

.coca-producto-modal__img-ph {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 200px;
    font-size: 4rem;
    opacity: 0.35;
}

.coca-producto-modal__img-ph[hidden] {
    display: none !important;
}

/* Coca Natural — imagen sobre fondo oscuro (sin screen blend) */
.coca-producto-modal--coca-natural .coca-producto-modal__media-frame {
    background:
        radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.92) 72%);
    border-color: rgba(153, 255, 0, 0.22);
    box-shadow:
        inset 0 0 24px rgba(0, 0, 0, 0.35),
        0 12px 40px rgba(0, 0, 0, 0.28);
}

.coca-producto-modal--coca-natural .coca-producto-modal__media-shine {
    background: radial-gradient(
        circle at 50% 45%,
        rgba(153, 255, 0, 0.14),
        transparent 68%
    );
}

.coca-producto-modal--coca-natural .coca-producto-modal__img {
    mix-blend-mode: normal;
    max-width: min(100%, 380px);
    max-height: min(480px, 62vh);
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.45));
}

.coca-producto-modal--customer-light.coca-producto-modal--coca-natural .coca-producto-modal__media-frame,
.customer-body .coca-producto-modal--customer-light.coca-producto-modal--coca-natural .coca-producto-modal__media-frame {
    background:
        radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.92) 72%);
    border-color: rgba(18, 86, 28, 0.28);
    box-shadow:
        inset 0 0 24px rgba(0, 0, 0, 0.35),
        0 10px 32px rgba(26, 38, 18, 0.18);
}

.coca-producto-modal--customer-light.coca-producto-modal--coca-natural .coca-producto-modal__media-shine,
.customer-body .coca-producto-modal--customer-light.coca-producto-modal--coca-natural .coca-producto-modal__media-shine {
    background: radial-gradient(
        circle at 50% 45%,
        rgba(150, 208, 50, 0.16),
        transparent 68%
    );
}

.coca-producto-modal--customer-light.coca-producto-modal--coca-natural .coca-producto-modal__img,
.customer-body .coca-producto-modal--customer-light.coca-producto-modal--coca-natural .coca-producto-modal__img {
    mix-blend-mode: normal;
    filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.42));
}

.coca-producto-modal__kicker {
    margin: 0 0 0.25rem;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #99ff00;
}

.coca-producto-modal__title {
    margin: 0 0 0.35rem;
    font-size: 1.35rem;
    line-height: 1.2;
}

.coca-producto-modal__sub {
    margin: 0 0 1rem;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.92rem;
}

.coca-producto-modal__body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.coca-producto-modal__intro {
    min-width: 0;
}

.coca-producto-modal__main {
    min-width: 0;
    width: 100%;
}

.coca-producto-modal__lead {
    margin: 0 0 0.65rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.coca-producto-modal__wizard-head {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-bottom: 0.75rem;
}

#producto-unidades-modal .coca-producto-modal__wizard-head {
    margin-top: 1rem;
    padding-inline: 0.65rem;
    align-self: stretch;
}

.coca-producto-modal__dots {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.coca-producto-modal__dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    transition: background 0.15s, transform 0.15s;
}

.coca-producto-modal__dot.is-active {
    background: #99ff00;
    transform: scale(1.15);
}

.coca-producto-modal__dot.is-done {
    background: rgba(153, 255, 0, 0.55);
}

.coca-producto-modal__panel-step[hidden] {
    display: none !important;
}

.coca-producto-modal__resumen {
    margin: 0 0 1rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
}

.coca-producto-modal__resumen > div {
    display: grid;
    grid-template-columns: 6.5rem 1fr;
    gap: 0.35rem 0.75rem;
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.coca-producto-modal__resumen > div:last-child {
    border-bottom: 0;
}

.coca-producto-modal__resumen dt {
    margin: 0;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.5);
}

.coca-producto-modal__resumen dd {
    margin: 0;
    font-weight: 600;
}

.coca-producto-modal__resumen-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin: 0 0 0.75rem;
    padding: 0.55rem 0.7rem;
    font-size: 0.95rem;
    border-radius: 0.65rem;
    background: rgba(153, 255, 0, 0.08);
}

.coca-producto-modal__resumen-total strong {
    font-size: 1.35rem;
    color: #99ff00;
}

.coca-producto-modal__nav {
    display: flex;
    gap: 0.65rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.coca-producto-modal__nav-btn {
    flex: 1;
    min-height: 2.75rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
    border: 0;
}

.coca-producto-modal__nav-btn--ghost {
    background: rgba(255, 255, 255, 0.08);
    color: #f4f6f8;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.coca-producto-modal__nav-btn--ghost:hover {
    border-color: rgba(153, 255, 0, 0.35);
    color: #99ff00;
}

.coca-producto-modal__nav-btn--primary {
    background: #99ff00;
    color: #0a0c10;
}

.coca-producto-modal__nav-btn--primary:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.coca-producto-modal__nav-btn[hidden] {
    display: none !important;
}

.coca-producto-modal__step {
    margin: 0;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(153, 255, 0, 0.85);
}

.coca-producto-modal__back {
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.15rem 0;
}

.coca-producto-modal__back:hover {
    color: #99ff00;
}

.coca-producto-modal__hoja-sel {
    margin: 0 0 0.5rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.coca-producto-modal__gramajes[hidden] {
    display: none !important;
}

.coca-producto-modal__foot[hidden] {
    display: none !important;
}

.coca-producto-modal__empty {
    margin: 0;
    padding: 0.75rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.88rem;
}

.coca-producto-modal__opciones {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    max-height: min(42vh, 320px);
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.25rem;
    margin-bottom: 0.15rem;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: #99ff00 rgba(255, 255, 255, 0.06);
}

.coca-producto-modal__opciones::-webkit-scrollbar {
    width: 10px;
}

.coca-producto-modal__opciones::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
}

.coca-producto-modal__opciones::-webkit-scrollbar-track {
    margin: 4px 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 0 0 1px rgba(153, 255, 0, 0.12);
}

.coca-producto-modal__opciones::-webkit-scrollbar-thumb {
    min-height: 2rem;
    border-radius: 999px;
    border: 2px solid rgba(12, 20, 12, 0.9);
    background: linear-gradient(180deg, #c8f050 0%, #0d4214 100%);
    box-shadow: 0 0 8px rgba(153, 255, 0, 0.28);
}

.coca-producto-modal__opciones::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #d4ff66 0%, #7aad28 100%);
}

.coca-producto-modal__opcion {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    gap: 0.15rem 0.75rem;
    align-items: center;
    width: 100%;
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
    color: inherit;
    text-align: left;
    cursor: pointer;
    user-select: none;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.coca-producto-modal__opcion-input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.coca-producto-modal__opcion-mark {
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    background: transparent;
    flex-shrink: 0;
    grid-row: 1;
    grid-column: 1;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.coca-producto-modal__opcion--active {
    border-color: #99ff00;
    background: rgba(153, 255, 0, 0.12);
    box-shadow: inset 0 0 0 1px rgba(153, 255, 0, 0.18);
}

.coca-producto-modal__opcion--active .coca-producto-modal__opcion-mark {
    border-color: #99ff00;
    background: #99ff00;
    box-shadow: inset 0 0 0 3px #12141a;
}

.coca-producto-modal__opcion--agotado {
    opacity: 0.72;
}

.coca-producto-modal__opcion--agotado .coca-producto-modal__opcion-p {
    color: rgba(153, 255, 0, 0.75);
}

.coca-producto-modal__opcion-g {
    font-weight: 600;
    grid-row: 1;
    grid-column: 2;
}

.coca-producto-modal__opcion-p {
    font-weight: 700;
    color: #99ff00;
    grid-row: 1;
    grid-column: 3;
    white-space: nowrap;
}

/* Paso gramaje: precio a la izquierda, peso a la derecha */
.coca-producto-modal__opcion--peso .coca-producto-modal__opcion-p {
    grid-column: 2;
    justify-self: start;
    text-align: left;
}

.coca-producto-modal__opcion--peso .coca-producto-modal__opcion-g {
    grid-column: 3;
    text-align: right;
    justify-self: end;
    color: rgba(255, 255, 255, 0.88);
}

.coca-producto-modal__opcion-s {
    grid-column: 2 / -1;
    grid-row: 2;
    font-size: 0.78rem;
    color: #f87171;
}

.coca-producto-modal__stock-hint {
    margin: 0.35rem 0 0;
    font-size: 0.82rem;
    color: #fbbf24;
}

.coca-producto-modal__foot {
    display: none;
}

.coca-producto-modal__precio-v {
    font-size: 1.35rem;
    font-weight: 800;
    color: #99ff00;
}

.coca-producto-modal__add {
    flex: 1 1 180px;
    min-height: 2.75rem;
    border: 0;
    border-radius: 10px;
    background: #99ff00;
    color: #0a0c10;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
}

.coca-producto-modal__add:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.coca-producto-modal__error {
    margin: 0.75rem 0 0;
    color: #f87171;
    font-size: 0.88rem;
}

.coca-producto-modal__loading {
    position: absolute;
    inset: 0;
    z-index: 5;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(18, 20, 26, 0.92);
    border-radius: 16px;
    display: flex;
}

.coca-producto-modal__loading[hidden] {
    display: none !important;
    pointer-events: none;
}

.coca-producto-modal__spinner {
    width: 2rem;
    height: 2rem;
    border: 3px solid rgba(153, 255, 0, 0.2);
    border-top-color: #99ff00;
    border-radius: 50%;
    animation: coca-modal-spin 0.7s linear infinite;
}

@keyframes coca-modal-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Cliente: mismo modo oscuro que POS */
.coca-producto-modal--customer-dark .coca-producto-modal__panel,
.customer-body .coca-producto-modal--customer-dark .coca-producto-modal__panel {
    background: #12141a;
    color: #f4f6f8;
    border-color: rgba(153, 255, 0, 0.25);
}

.coca-producto-modal--customer-dark .coca-producto-modal__kicker,
.customer-body .coca-producto-modal--customer-dark .coca-producto-modal__kicker {
    color: #99ff00;
}

.coca-producto-modal--customer-dark .coca-producto-modal__sub,
.customer-body .coca-producto-modal--customer-dark .coca-producto-modal__sub {
    color: rgba(255, 255, 255, 0.65);
}

.coca-producto-modal--customer-dark .coca-producto-modal__opcion,
.customer-body .coca-producto-modal--customer-dark .coca-producto-modal__opcion {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
}

.coca-producto-modal--customer-dark .coca-producto-modal__opcion--active,
.customer-body .coca-producto-modal--customer-dark .coca-producto-modal__opcion--active {
    border-color: #99ff00;
    background: rgba(153, 255, 0, 0.12);
}

.coca-producto-modal--customer-dark .coca-producto-modal__opcion--active .coca-producto-modal__opcion-mark,
.customer-body .coca-producto-modal--customer-dark .coca-producto-modal__opcion--active .coca-producto-modal__opcion-mark {
    border-color: #99ff00;
    background: #99ff00;
    box-shadow: inset 0 0 0 3px #12141a;
}

.coca-producto-modal--customer-dark .coca-producto-modal__opcion-p,
.coca-producto-modal--customer-dark .coca-producto-modal__precio-v,
.customer-body .coca-producto-modal--customer-dark .coca-producto-modal__opcion-p,
.customer-body .coca-producto-modal--customer-dark .coca-producto-modal__precio-v {
    color: #99ff00;
}

.coca-producto-modal--customer-dark .coca-producto-modal__add,
.customer-body .coca-producto-modal--customer-dark .coca-producto-modal__add {
    background: #99ff00;
    color: #0a0c10;
}

.coca-producto-modal--customer-dark .coca-producto-modal__media-frame,
.customer-body .coca-producto-modal--customer-dark .coca-producto-modal__media-frame {
    border-color: rgba(153, 255, 0, 0.28);
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(153, 255, 0, 0.12), transparent 70%),
        linear-gradient(165deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -12px 32px rgba(0, 0, 0, 0.35),
        0 12px 40px rgba(0, 0, 0, 0.35);
}

.coca-producto-modal--customer-dark .coca-producto-modal__back,
.customer-body .coca-producto-modal--customer-dark .coca-producto-modal__back {
    color: rgba(255, 255, 255, 0.75);
}

.coca-producto-modal--customer-dark .coca-producto-modal__back:hover,
.customer-body .coca-producto-modal--customer-dark .coca-producto-modal__back:hover {
    color: #99ff00;
}

/* Cliente: modo claro (catálogo blanco) */
.coca-producto-modal--customer-light .coca-producto-modal__backdrop,
.customer-body .coca-producto-modal--customer-light .coca-producto-modal__backdrop {
    background: rgba(26, 38, 18, 0.42);
    backdrop-filter: blur(6px);
}

.coca-producto-modal--customer-light .coca-producto-modal__panel,
.customer-body .coca-producto-modal--customer-light .coca-producto-modal__panel {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbf5 100%);
    color: #1a2612;
    border: 1px solid rgba(18, 86, 28, 0.22);
    box-shadow:
        0 24px 64px rgba(26, 38, 18, 0.14),
        0 4px 16px rgba(18, 86, 28, 0.08);
}

.coca-producto-modal--customer-light .coca-producto-modal__close,
.customer-body .coca-producto-modal--customer-light .coca-producto-modal__close {
    background: rgba(26, 38, 18, 0.06);
    color: #4a5c42;
}

.coca-producto-modal--customer-light .coca-producto-modal__close:hover,
.customer-body .coca-producto-modal--customer-light .coca-producto-modal__close:hover {
    background: rgba(18, 86, 28, 0.12);
    color: #0d4214;
}

.coca-producto-modal--customer-light .coca-producto-modal__kicker,
.customer-body .coca-producto-modal--customer-light .coca-producto-modal__kicker {
    color: #12561c;
}

.coca-producto-modal--customer-light .coca-producto-modal__title,
.customer-body .coca-producto-modal--customer-light .coca-producto-modal__title {
    color: #1a2612;
    font-weight: 800;
}

.coca-producto-modal--customer-light .coca-producto-modal__sub,
.customer-body .coca-producto-modal--customer-light .coca-producto-modal__sub {
    color: #64748b;
}

.coca-producto-modal--customer-light .coca-producto-modal__lead,
.customer-body .coca-producto-modal--customer-light .coca-producto-modal__lead {
    color: #1a2612;
}

.coca-producto-modal--customer-light .coca-producto-modal__step,
.customer-body .coca-producto-modal--customer-light .coca-producto-modal__step {
    color: #12561c;
}

.coca-producto-modal--customer-light .coca-producto-modal__dot,
.customer-body .coca-producto-modal--customer-light .coca-producto-modal__dot {
    background: rgba(18, 86, 28, 0.18);
}

.coca-producto-modal--customer-light .coca-producto-modal__dot.is-active,
.customer-body .coca-producto-modal--customer-light .coca-producto-modal__dot.is-active {
    background: #12561c;
}

.coca-producto-modal--customer-light .coca-producto-modal__dot.is-done,
.customer-body .coca-producto-modal--customer-light .coca-producto-modal__dot.is-done {
    background: rgba(18, 86, 28, 0.55);
}

.coca-producto-modal--customer-light .coca-producto-modal__media-frame,
.customer-body .coca-producto-modal--customer-light .coca-producto-modal__media-frame {
    border: 1px solid rgba(18, 86, 28, 0.2);
    background:
        radial-gradient(ellipse 85% 65% at 50% 0%, rgba(18, 86, 28, 0.12), transparent 68%),
        linear-gradient(180deg, #ffffff 0%, #f4faf0 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        0 8px 28px rgba(18, 86, 28, 0.1);
}

.coca-producto-modal--customer-light .coca-producto-modal__media-shine,
.customer-body .coca-producto-modal--customer-light .coca-producto-modal__media-shine {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.85) 0%,
        transparent 45%,
        transparent 60%,
        rgba(18, 86, 28, 0.06) 100%
    );
}

.coca-producto-modal--customer-light .coca-producto-modal__img,
.customer-body .coca-producto-modal--customer-light .coca-producto-modal__img {
    filter: drop-shadow(0 8px 20px rgba(18, 86, 28, 0.15));
}

.coca-producto-modal--customer-light .coca-producto-modal__opciones,
.customer-body .coca-producto-modal--customer-light .coca-producto-modal__opciones {
    gap: 0.65rem;
    scrollbar-color: #0d4214 rgba(18, 86, 28, 0.12);
}

.coca-producto-modal--customer-light .coca-producto-modal__opciones::-webkit-scrollbar-track,
.customer-body .coca-producto-modal--customer-light .coca-producto-modal__opciones::-webkit-scrollbar-track {
    background: rgba(18, 86, 28, 0.08);
    box-shadow: inset 0 0 0 1px rgba(18, 86, 28, 0.16);
}

.coca-producto-modal--customer-light .coca-producto-modal__opciones::-webkit-scrollbar-thumb,
.customer-body .coca-producto-modal--customer-light .coca-producto-modal__opciones::-webkit-scrollbar-thumb {
    border-color: rgba(255, 255, 255, 0.9);
    background: linear-gradient(180deg, #1a6b24 0%, #12561c 100%);
    box-shadow: 0 0 6px rgba(18, 86, 28, 0.2);
}

.coca-producto-modal--customer-light .coca-producto-modal__opciones::-webkit-scrollbar-thumb:hover,
.customer-body .coca-producto-modal--customer-light .coca-producto-modal__opciones::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #177022 0%, #0d4214 100%);
}

.coca-producto-modal--customer-light .coca-producto-modal__opcion,
.customer-body .coca-producto-modal--customer-light .coca-producto-modal__opcion {
    border: 1.5px solid rgba(18, 86, 28, 0.16);
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(26, 38, 18, 0.04);
}

.coca-producto-modal--customer-light .coca-producto-modal__opcion:hover,
.customer-body .coca-producto-modal--customer-light .coca-producto-modal__opcion:hover {
    border-color: rgba(18, 86, 28, 0.32);
    background: #fafdf8;
}

.coca-producto-modal--customer-light .coca-producto-modal__opcion-mark,
.customer-body .coca-producto-modal--customer-light .coca-producto-modal__opcion-mark {
    border-color: rgba(18, 86, 28, 0.35);
}

.coca-producto-modal--customer-light .coca-producto-modal__opcion--active,
.customer-body .coca-producto-modal--customer-light .coca-producto-modal__opcion--active {
    border-color: #12561c;
    background: linear-gradient(180deg, rgba(18, 86, 28, 0.14) 0%, rgba(18, 86, 28, 0.06) 100%);
    box-shadow:
        0 4px 14px rgba(18, 86, 28, 0.12),
        inset 0 0 0 1px rgba(18, 86, 28, 0.2);
}

.coca-producto-modal--customer-light .coca-producto-modal__opcion--active .coca-producto-modal__opcion-mark,
.customer-body .coca-producto-modal--customer-light .coca-producto-modal__opcion--active .coca-producto-modal__opcion-mark {
    border-color: #12561c;
    background: #12561c;
    box-shadow: inset 0 0 0 3px #ffffff;
}

.coca-producto-modal--customer-light .coca-producto-modal__opcion-g,
.customer-body .coca-producto-modal--customer-light .coca-producto-modal__opcion-g {
    color: #1a2612;
}

.coca-producto-modal--customer-light .coca-producto-modal__opcion-p,
.coca-producto-modal--customer-light .coca-producto-modal__precio-v,
.customer-body .coca-producto-modal--customer-light .coca-producto-modal__opcion-p,
.customer-body .coca-producto-modal--customer-light .coca-producto-modal__precio-v {
    color: #12561c;
}

.coca-producto-modal--customer-light .coca-producto-modal__opcion--agotado .coca-producto-modal__opcion-p,
.customer-body .coca-producto-modal--customer-light .coca-producto-modal__opcion--agotado .coca-producto-modal__opcion-p {
    color: rgba(18, 86, 28, 0.55);
}

.coca-producto-modal--customer-light .coca-producto-modal__opcion--agotado,
.customer-body .coca-producto-modal--customer-light .coca-producto-modal__opcion--agotado {
    background: #fafafa;
    border-color: rgba(148, 163, 184, 0.35);
    opacity: 0.85;
}

.coca-producto-modal--customer-light .coca-producto-modal__opcion-s,
.customer-body .coca-producto-modal--customer-light .coca-producto-modal__opcion-s {
    color: #dc2626;
}

.coca-producto-modal--customer-light .coca-producto-modal__stock-hint,
.customer-body .coca-producto-modal--customer-light .coca-producto-modal__stock-hint {
    color: #b45309;
}

.coca-producto-modal--customer-light .coca-producto-modal__error,
.customer-body .coca-producto-modal--customer-light .coca-producto-modal__error {
    color: #dc2626;
}

.coca-producto-modal--customer-light .coca-producto-modal__resumen-total,
.customer-body .coca-producto-modal--customer-light .coca-producto-modal__resumen-total {
    color: #64748b;
    background: rgba(92, 134, 24, 0.1);
    border: 1px solid rgba(18, 86, 28, 0.12);
}

.coca-producto-modal--customer-light .coca-producto-modal__hoja-sel,
.customer-body .coca-producto-modal--customer-light .coca-producto-modal__hoja-sel {
    color: #64748b;
}

.coca-producto-modal--customer-light .coca-producto-modal__resumen,
.customer-body .coca-producto-modal--customer-light .coca-producto-modal__resumen {
    border: 1px solid rgba(18, 86, 28, 0.16);
    background: #f4faf0;
}

.coca-producto-modal--customer-light .coca-producto-modal__resumen > div,
.customer-body .coca-producto-modal--customer-light .coca-producto-modal__resumen > div {
    border-bottom-color: rgba(18, 86, 28, 0.1);
}

.coca-producto-modal--customer-light .coca-producto-modal__resumen dt,
.customer-body .coca-producto-modal--customer-light .coca-producto-modal__resumen dt {
    color: #64748b;
}

.coca-producto-modal--customer-light .coca-producto-modal__resumen dd,
.customer-body .coca-producto-modal--customer-light .coca-producto-modal__resumen dd {
    color: #1a2612;
}

.coca-producto-modal--customer-light .coca-producto-modal__resumen-total strong,
.customer-body .coca-producto-modal--customer-light .coca-producto-modal__resumen-total strong {
    color: #12561c;
}

.coca-producto-modal--customer-light .coca-producto-modal__nav,
.customer-body .coca-producto-modal--customer-light .coca-producto-modal__nav {
    border-top-color: rgba(18, 86, 28, 0.12);
}

.coca-producto-modal--customer-light .coca-producto-modal__nav-btn--ghost,
.customer-body .coca-producto-modal--customer-light .coca-producto-modal__nav-btn--ghost {
    background: #ffffff;
    color: #4a5c42;
    border: 1.5px solid rgba(18, 86, 28, 0.2);
}

.coca-producto-modal--customer-light .coca-producto-modal__nav-btn--ghost:hover,
.customer-body .coca-producto-modal--customer-light .coca-producto-modal__nav-btn--ghost:hover {
    border-color: rgba(18, 86, 28, 0.4);
    color: #0d4214;
    background: #f8fbf5;
}

.coca-producto-modal--customer-light .coca-producto-modal__nav-btn--primary,
.coca-producto-modal--customer-light .coca-producto-modal__add,
.customer-body .coca-producto-modal--customer-light .coca-producto-modal__nav-btn--primary,
.customer-body .coca-producto-modal--customer-light .coca-producto-modal__add {
    background: linear-gradient(180deg, #12561c 0%, #1a6b24 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(18, 86, 28, 0.28);
}

.coca-producto-modal--customer-light .coca-producto-modal__nav-btn--primary:hover:not(:disabled),
.coca-producto-modal--customer-light .coca-producto-modal__add:hover:not(:disabled),
.customer-body .coca-producto-modal--customer-light .coca-producto-modal__nav-btn--primary:hover:not(:disabled),
.customer-body .coca-producto-modal--customer-light .coca-producto-modal__add:hover:not(:disabled) {
    background: linear-gradient(180deg, #177022 0%, #177022 100%);
}

.coca-producto-modal--customer-light .coca-producto-modal__back,
.customer-body .coca-producto-modal--customer-light .coca-producto-modal__back {
    color: #64748b;
}

.coca-producto-modal--customer-light .coca-producto-modal__back:hover,
.customer-body .coca-producto-modal--customer-light .coca-producto-modal__back:hover {
    color: #12561c;
}

.coca-producto-modal--customer-light .coca-producto-modal__empty,
.customer-body .coca-producto-modal--customer-light .coca-producto-modal__empty {
    background: #f4faf0;
    color: #64748b;
    border: 1px solid rgba(18, 86, 28, 0.12);
}

.coca-producto-modal--customer-light .coca-producto-modal__loading,
.customer-body .coca-producto-modal--customer-light .coca-producto-modal__loading {
    background: rgba(255, 255, 255, 0.92);
    color: #1a2612;
}

.coca-producto-modal--customer-light .coca-producto-modal__spinner,
.customer-body .coca-producto-modal--customer-light .coca-producto-modal__spinner {
    border-color: rgba(18, 86, 28, 0.18);
    border-top-color: #12561c;
}

/* POS: botón ver detalles en tarjeta */
.producto-card--coca-modal {
    cursor: default;
}

.producto-card__ver-detalle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.45rem 0.65rem;
    border-radius: 8px;
    border: 1px solid rgba(153, 255, 0, 0.35);
    background: rgba(153, 255, 0, 0.08);
    color: #99ff00;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
}

.producto-card__precio-desde {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.55);
}

.customer-body .btn-coca-detalle {
    width: 100%;
    margin-top: auto;
    padding: 0.58rem 0.85rem;
    border-radius: 12px;
    border: 1px solid rgba(153, 255, 0, 0.35);
    background: rgba(153, 255, 0, 0.08);
    color: #99ff00;
    font-weight: 600;
    font-size: 0.82rem;
    line-height: 1.2;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.customer-body .btn-coca-detalle .ico,
.customer-body .btn-coca-detalle svg {
    flex-shrink: 0;
    width: 17px;
    height: 17px;
}

.customer-body .btn-coca-detalle span {
    flex: 0 1 auto;
}

/* Favoritos: botón detalle verde bosque oscuro (pisa el lime pálido de arriba) */
.customer-body #favoritos-products-grid .btn-coca-detalle,
.customer-body .customer-favoritos-grid .btn-coca-detalle {
    color: #f3f7ea !important;
    border: 1px solid rgba(20, 36, 8, 0.55) !important;
    background: linear-gradient(165deg, #1a2e0c 0%, #243f12 45%, #2d4d16 100%) !important;
    box-shadow:
        0 4px 14px rgba(18, 36, 8, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        inset 0 -2px 0 rgba(0, 0, 0, 0.22) !important;
}

.customer-body #favoritos-products-grid .btn-coca-detalle .ico,
.customer-body #favoritos-products-grid .btn-coca-detalle svg,
.customer-body .customer-favoritos-grid .btn-coca-detalle .ico,
.customer-body .customer-favoritos-grid .btn-coca-detalle svg {
    color: #f3f7ea !important;
}

.customer-body #favoritos-products-grid .btn-coca-detalle:hover,
.customer-body .customer-favoritos-grid .btn-coca-detalle:hover {
    color: #ffffff !important;
    background: linear-gradient(165deg, #223812 0%, #2d4d16 48%, #365a1a 100%) !important;
    border-color: rgba(20, 36, 8, 0.65) !important;
}

.customer-body .card-price--desde {
    font-size: 0.95rem;
    font-weight: 800;
    color: #5c8618;
}

/* ── Modal detalle producto (catálogo / POS) ── */
.producto-detalle-modal {
    --pdm-accent: #b8f045;
    --pdm-accent-dim: rgba(184, 240, 69, 0.14);
    --pdm-accent-border: rgba(184, 240, 69, 0.32);
    --pdm-surface: #181c24;
    --pdm-surface-2: #222830;
    --pdm-text: #f2f4f7;
    --pdm-muted: rgba(242, 244, 247, 0.62);
    --pdm-radius: 20px;
    --pdm-radius-sm: 14px;
}

.producto-detalle-modal--pos .producto-detalle-modal__fav-corner {
    display: none !important;
}

.producto-detalle-modal__fav-corner[hidden] {
    display: none !important;
}

.producto-detalle-modal__backdrop {
    background: rgba(8, 10, 14, 0.78);
    backdrop-filter: blur(10px);
}

.producto-detalle-modal__panel {
    width: min(940px, 100%);
    max-height: min(92vh, 760px);
    overflow: hidden;
    border-radius: var(--pdm-radius);
    background: var(--pdm-surface);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 0 0 1px rgba(184, 240, 69, 0.06),
        0 28px 80px rgba(0, 0, 0, 0.55);
    color: var(--pdm-text);
}

.producto-detalle-modal__close {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--pdm-text);
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s, transform 0.18s;
}

.producto-detalle-modal__close:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.22);
    transform: scale(1.04);
}

.producto-detalle-modal__layout {
    display: grid;
    grid-template-columns: minmax(280px, 1.15fr) minmax(280px, 1fr);
    min-height: min(540px, 92vh);
}

.producto-detalle-modal__head--media {
    display: flex;
    flex-direction: column;
    padding: 1rem 0.25rem 0;
}

.producto-detalle-modal__media-col {
    display: flex;
    flex-direction: column;
    padding: 1rem 0 1rem 1rem;
    background: linear-gradient(165deg, var(--pdm-surface-2) 0%, var(--pdm-surface) 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.producto-detalle-modal__media-frame {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 340px;
    padding: 0.5rem;
    border-radius: var(--pdm-radius-sm);
    background:
        radial-gradient(ellipse 90% 70% at 50% 20%, var(--pdm-accent-dim), transparent 65%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, transparent 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.producto-detalle-modal__media-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 30% 20%, rgba(184, 240, 69, 0.08), transparent 50%);
}

.producto-detalle-modal__img {
    position: relative;
    z-index: 1;
    width: auto;
    height: auto;
    max-width: min(100%, 400px);
    max-height: min(460px, 60vh);
    object-fit: contain;
    filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.45));
    transition: transform 0.35s ease;
}

.producto-detalle-modal__media-frame:hover .producto-detalle-modal__img {
    transform: scale(1.03);
}

.producto-detalle-modal__img[hidden],
.producto-detalle-modal__img-ph[hidden] {
    display: none !important;
}

.producto-detalle-modal__img-ph {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 200px;
    font-size: 3.5rem;
    opacity: 0.25;
}

/* Favorito — esquina de la imagen */
.producto-detalle-modal__fav-corner {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.65rem;
    height: 2.65rem;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: rgba(12, 14, 18, 0.72);
    backdrop-filter: blur(8px);
    color: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    transition: transform 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s;
}

.producto-detalle-modal__fav-corner:hover {
    transform: scale(1.08);
    background: rgba(12, 14, 18, 0.88);
}

.producto-detalle-modal__fav-corner.is-active {
    color: #ff6b8a;
    background: rgba(255, 107, 138, 0.18);
    box-shadow: 0 4px 20px rgba(255, 107, 138, 0.25);
}

.producto-detalle-modal__fav-corner.is-active .ico--favorite {
    fill: currentColor;
}

.producto-detalle-modal__stock-badge--media {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 4;
}

.producto-detalle-modal__stock-badge--title,
.producto-detalle-modal__stock-badge--desc {
    display: inline-flex;
    margin: 0.35rem 0 0;
    align-self: flex-start;
}

.producto-detalle-modal__stock-badge--desc {
    margin: 0.5rem 0 0.75rem;
}

.producto-detalle-modal__head--media .producto-detalle-modal__title {
    margin-bottom: 0;
}

.coca-producto-modal__intro .producto-detalle-modal__stock-badge--desc {
    margin: 0.35rem 0 0.65rem;
}

.producto-detalle-modal__stock-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
    backdrop-filter: blur(8px);
}

.producto-detalle-modal__stock-badge--ok {
    color: var(--pdm-accent);
    background: rgba(12, 14, 18, 0.72);
    border: 1px solid var(--pdm-accent-border);
}

.producto-detalle-modal__stock-badge--bad {
    color: #ff9a9a;
    background: rgba(12, 14, 18, 0.72);
    border: 1px solid rgba(255, 120, 120, 0.4);
}

/* Contenido */
.producto-detalle-modal__content {
    display: flex;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
}

.producto-detalle-modal__scroll {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 1.35rem 1.35rem 0.75rem;
    padding-top: 2.75rem;
}

.producto-detalle-modal__kicker {
    margin: 0 0 0.35rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--pdm-accent);
}

.producto-detalle-modal__title {
    margin: 0 0 0.85rem;
    font-size: clamp(1.25rem, 2.5vw, 1.55rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--pdm-text);
}

.producto-detalle-modal__precio-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    margin: 0 0 1rem;
    padding: 1rem 1.1rem;
    border-radius: var(--pdm-radius-sm);
    background: var(--pdm-accent-dim);
    border: 1px solid var(--pdm-accent-border);
}

.producto-detalle-modal__precio-main {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.producto-detalle-modal__precio-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--pdm-muted);
}

.producto-detalle-modal__precio-val {
    font-size: clamp(1.5rem, 4vw, 1.85rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--pdm-accent);
}

.producto-detalle-modal__precio-old {
    opacity: 0.5;
    font-size: 0.85em;
    margin-right: 0.35rem;
    text-decoration: line-through;
}

.producto-detalle-modal__precio-uni {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--pdm-muted);
    text-align: right;
}

.producto-detalle-modal__desc {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--pdm-muted);
}

.producto-detalle-modal__facts {
    list-style: none;
    margin: 0 0 0.85rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.producto-detalle-modal__fact {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.55rem 0.65rem;
    border-radius: 10px;
    background: var(--pdm-accent-dim);
    border: 1px solid var(--pdm-accent-border);
}

.producto-detalle-modal__fact-k {
    flex: 0 0 auto;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--pdm-muted);
}

.producto-detalle-modal__fact-v {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--pdm-text);
    text-align: right;
    line-height: 1.35;
}

.producto-detalle-modal__facts[hidden] {
    display: none !important;
}

.producto-detalle-modal__formas-block {
    margin-bottom: 0.75rem;
}

.producto-detalle-modal__formas-label {
    margin: 0 0 0.55rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--pdm-muted);
}

.producto-detalle-modal__opciones {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    max-height: 220px;
    overflow-y: auto;
    padding-right: 0.15rem;
}

.producto-detalle-modal .coca-producto-modal__opcion {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    transition: border-color 0.18s, background 0.18s, transform 0.15s;
}

.producto-detalle-modal .coca-producto-modal__opcion:hover:not(.coca-producto-modal__opcion--agotado) {
    border-color: var(--pdm-accent-border);
    background: rgba(184, 240, 69, 0.06);
}

.producto-detalle-modal .coca-producto-modal__opcion--active {
    border-color: var(--pdm-accent);
    background: var(--pdm-accent-dim);
    box-shadow: 0 0 0 1px rgba(184, 240, 69, 0.2);
}

.producto-detalle-modal .coca-producto-modal__opcion-p {
    font-weight: 700;
    color: var(--pdm-accent);
}

.producto-detalle-modal__opciones--single {
    display: none;
}

.producto-detalle-modal__formas-block--hidden {
    display: none;
}

.producto-detalle-modal__formas-block--single {
    display: none;
}

.producto-detalle-modal__uni {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--pdm-muted);
    margin-top: 0.1rem;
}

.producto-detalle-modal__stock-hint {
    margin: 0 0 0.5rem;
    font-size: 0.82rem;
    color: var(--pdm-muted);
}

.producto-detalle-modal__error {
    margin: 0.5rem 0 0;
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
    font-size: 0.85rem;
    color: #ffb4b4;
    background: rgba(255, 90, 90, 0.12);
    border: 1px solid rgba(255, 120, 120, 0.25);
}

.producto-detalle-modal__error[hidden],
.producto-detalle-modal__stock-hint[hidden],
.producto-detalle-modal__desc[hidden],
.producto-detalle-modal__precio-hero[hidden] {
    display: none !important;
}

/* Footer CTA */
.producto-detalle-modal__footer {
    flex-shrink: 0;
    padding: 0.85rem 1.35rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.15));
}

#producto-unidades-modal .producto-detalle-modal__footer.coca-producto-modal__nav {
    display: flex;
    align-items: stretch;
    gap: 0.65rem;
    margin-top: 0;
    padding-top: 0.85rem;
}

#producto-unidades-modal .producto-detalle-modal__footer .coca-producto-modal__nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
}

#producto-unidades-modal .producto-detalle-modal__footer .coca-producto-modal__nav-btn .producto-detalle-modal__cta-ico {
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
}

#producto-unidades-modal #producto-unidades-modal-add.producto-detalle-modal__cta {
    flex: 1 1 auto;
    min-width: 0;
    gap: 0.4rem;
    padding: 0 0.9rem;
    font-size: 0.88rem;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

#producto-unidades-modal #producto-unidades-modal-add .producto-detalle-modal__cta-text {
    overflow: hidden;
    text-overflow: ellipsis;
}

.producto-detalle-modal__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: 100%;
    min-height: 3.1rem;
    padding: 0 1.25rem;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #c8f04a 0%, #a8e020 100%);
    color: #1a2208;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(184, 240, 69, 0.28);
    transition: transform 0.18s, box-shadow 0.18s, filter 0.18s;
}

.producto-detalle-modal__cta:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 12px 32px rgba(184, 240, 69, 0.38);
    filter: brightness(1.04);
}

.producto-detalle-modal__cta:active:not(:disabled) {
    transform: translateY(0);
}

.producto-detalle-modal__cta:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
}

.producto-detalle-modal__cta-ico {
    flex-shrink: 0;
}

.producto-detalle-modal__loading {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: rgba(12, 14, 18, 0.88);
    backdrop-filter: blur(6px);
    font-size: 0.9rem;
    color: var(--pdm-muted);
}

.producto-detalle-modal__loading[hidden] {
    display: none !important;
}

.producto-detalle-modal__spinner {
    width: 2rem;
    height: 2rem;
    border: 3px solid rgba(184, 240, 69, 0.2);
    border-top-color: var(--pdm-accent);
    border-radius: 50%;
    animation: pdm-spin 0.75s linear infinite;
}

@keyframes pdm-spin {
    to { transform: rotate(360deg); }
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Tema claro — cliente (jade del catálogo) */
.coca-producto-modal--customer-light.producto-detalle-modal,
.customer-body .coca-producto-modal--customer-light.producto-detalle-modal {
    --pdm-accent: #5c8618;
    --pdm-accent-dim: rgba(92, 134, 24, 0.12);
    --pdm-accent-border: rgba(92, 134, 24, 0.32);
    --pdm-surface: #fafcf7;
    --pdm-surface-2: #f0f4ea;
    --pdm-text: #1a2612;
    --pdm-muted: rgba(26, 38, 18, 0.62);
}

.coca-producto-modal--customer-dark.producto-detalle-modal,
.customer-body .coca-producto-modal--customer-dark.producto-detalle-modal {
    --pdm-accent: #b8f045;
    --pdm-accent-dim: rgba(184, 240, 69, 0.14);
    --pdm-accent-border: rgba(184, 240, 69, 0.32);
    --pdm-surface: #181c24;
    --pdm-surface-2: #222830;
    --pdm-text: #f2f4f7;
    --pdm-muted: rgba(242, 244, 247, 0.62);
}

.customer-body .coca-producto-modal--customer-dark .producto-detalle-modal__panel,
.customer-body #producto-unidades-modal.coca-producto-modal--customer-dark .producto-detalle-modal__panel {
    background: var(--pdm-surface);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--pdm-text);
}

.customer-body .coca-producto-modal--customer-dark .producto-detalle-modal__title,
.customer-body .coca-producto-modal--customer-dark .producto-detalle-modal__kicker,
.customer-body .coca-producto-modal--customer-dark .producto-detalle-modal__precio-hero,
.customer-body .coca-producto-modal--customer-dark .producto-detalle-modal__formas-label {
    color: var(--pdm-text);
}

.customer-body .coca-producto-modal--customer-dark .producto-detalle-modal__close {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: var(--pdm-text);
}

.customer-body .coca-producto-modal--customer-dark .producto-detalle-modal__opcion,
.customer-body #producto-unidades-modal.coca-producto-modal--customer-dark .coca-producto-modal__opcion {
    background: var(--pdm-surface-2);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--pdm-text);
}

.customer-body .coca-producto-modal--customer-dark .producto-detalle-modal__opcion--active,
.customer-body #producto-unidades-modal.coca-producto-modal--customer-dark .coca-producto-modal__opcion--active {
    border-color: var(--pdm-accent-border);
    background: var(--pdm-accent-dim);
}

.customer-body .coca-producto-modal__panel {
    border-color: rgba(92, 134, 24, 0.28);
}

.customer-body .coca-producto-modal__media {
    border-color: rgba(92, 134, 24, 0.28);
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(92, 134, 24, 0.12), transparent 70%),
        linear-gradient(165deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.customer-body .coca-producto-modal__media-shine {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.07) 0%,
        transparent 42%,
        transparent 58%,
        rgba(92, 134, 24, 0.06) 100%
    );
}

.customer-body .card-price--desde {
    color: #5c8618;
}

.coca-producto-modal--customer-light .producto-detalle-modal__panel,
.customer-body .coca-producto-modal--customer-light .producto-detalle-modal__panel {
    border-color: rgba(92, 134, 24, 0.18);
    box-shadow:
        0 0 0 1px rgba(92, 134, 24, 0.08),
        0 28px 64px rgba(26, 38, 18, 0.14);
}

.coca-producto-modal--customer-light .producto-detalle-modal__backdrop,
.customer-body .coca-producto-modal--customer-light .producto-detalle-modal__backdrop {
    background: rgba(26, 38, 18, 0.45);
}

.coca-producto-modal--customer-light .producto-detalle-modal__close,
.customer-body .coca-producto-modal--customer-light .producto-detalle-modal__close {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(92, 134, 24, 0.22);
    color: #1a2612;
}

.coca-producto-modal--customer-light .producto-detalle-modal__media-col,
.customer-body .coca-producto-modal--customer-light .producto-detalle-modal__media-col {
    border-right-color: rgba(18, 86, 28, 0.1);
}

.coca-producto-modal--customer-light .producto-detalle-modal__media-frame,
.customer-body .coca-producto-modal--customer-light .producto-detalle-modal__media-frame {
    border-color: rgba(18, 86, 28, 0.15);
    background:
        radial-gradient(ellipse 90% 70% at 50% 20%, rgba(18, 86, 28, 0.1), transparent 65%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.3) 100%);
}

.coca-producto-modal--customer-light .producto-detalle-modal__fav-corner,
.customer-body .coca-producto-modal--customer-light .producto-detalle-modal__fav-corner {
    background: rgba(255, 255, 255, 0.92);
    color: #12561c;
    box-shadow: 0 4px 16px rgba(26, 38, 18, 0.12);
}

.coca-producto-modal--customer-light .producto-detalle-modal__fav-corner.is-active,
.customer-body .coca-producto-modal--customer-light .producto-detalle-modal__fav-corner.is-active {
    color: #e8456a;
    background: rgba(255, 255, 255, 0.95);
}

.coca-producto-modal--customer-light .producto-detalle-modal__stock-badge--ok,
.customer-body .coca-producto-modal--customer-light .producto-detalle-modal__stock-badge--ok {
    color: #12561c;
    background: rgba(255, 255, 255, 0.92);
}

.coca-producto-modal--customer-light .producto-detalle-modal .coca-producto-modal__opcion,
.customer-body .coca-producto-modal--customer-light .producto-detalle-modal .coca-producto-modal__opcion {
    border-color: rgba(18, 86, 28, 0.15);
    background: rgba(255, 255, 255, 0.65);
}

.coca-producto-modal--customer-light .producto-detalle-modal__footer,
.customer-body .coca-producto-modal--customer-light .producto-detalle-modal__footer {
    border-top-color: rgba(18, 86, 28, 0.12);
    background: linear-gradient(180deg, transparent, rgba(18, 86, 28, 0.04));
}

.coca-producto-modal--customer-light .producto-detalle-modal__cta,
.customer-body .coca-producto-modal--customer-light .producto-detalle-modal__cta {
    background: linear-gradient(135deg, #177022 0%, #1a6b24 100%);
    color: #fff;
    box-shadow: 0 8px 24px rgba(18, 86, 28, 0.28);
}

/* Catálogo cliente — modal producto compacto en móvil */
@media (max-width: 768px) {
    .customer-body #coca-producto-modal,
    .customer-body #producto-unidades-modal {
        padding: 0.65rem;
        align-items: center;
        justify-content: center;
    }

    .customer-body #coca-producto-modal .coca-producto-modal__panel,
    .customer-body #producto-unidades-modal .producto-detalle-modal__panel {
        width: min(calc(100% - 0.5rem), 19.5rem);
        max-width: 19.5rem;
        max-height: min(68dvh, 34rem);
        margin: 0 auto;
        border-radius: 1rem;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        box-shadow:
            0 16px 40px rgba(26, 38, 18, 0.18),
            0 4px 12px rgba(26, 38, 18, 0.08);
    }

    .customer-body #coca-producto-modal .coca-producto-modal__layout {
        display: grid;
        grid-template-columns: 6.75rem minmax(0, 1fr);
        grid-template-areas:
            "media intro"
            "main main";
        align-items: start;
        min-height: 0 !important;
        flex: 1 1 auto;
        column-gap: 0.85rem;
        row-gap: 0.85rem;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0.7rem 0.85rem 0.75rem;
    }

    .customer-body #coca-producto-modal .coca-producto-modal__body {
        display: contents;
    }

    .customer-body #coca-producto-modal .coca-producto-modal__media {
        grid-area: media;
        min-height: 0 !important;
        align-items: flex-start;
        justify-content: center;
        overflow: visible;
        padding-top: 0;
    }

    .customer-body #coca-producto-modal .coca-producto-modal__intro {
        grid-area: intro;
        min-width: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-self: stretch;
        padding-top: 0.1rem;
        gap: 0.1rem;
    }

    .customer-body #coca-producto-modal .coca-producto-modal__main {
        grid-area: main;
        min-width: 0;
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 0.15rem;
        padding-top: 0.15rem;
        border-top: 1px solid rgba(26, 38, 18, 0.08);
    }

    .customer-body #coca-producto-modal.coca-producto-modal--customer-dark .coca-producto-modal__main {
        border-top-color: rgba(255, 255, 255, 0.1);
    }

    .customer-body #coca-producto-modal .coca-producto-modal__media-frame {
        min-height: 0 !important;
        max-height: none;
        width: 6.75rem;
        height: 6.75rem;
        margin: 0;
        padding: 0.35rem;
        flex: 0 0 auto;
        overflow: visible;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .customer-body #coca-producto-modal .coca-producto-modal__img {
        max-height: 5.85rem;
        max-width: 5.85rem;
        width: auto;
        height: auto;
        object-fit: contain;
        object-position: center;
    }

    .customer-body #coca-producto-modal.coca-producto-modal--coca-natural .coca-producto-modal__img,
    .customer-body #coca-producto-modal.coca-producto-modal--customer-light.coca-producto-modal--coca-natural .coca-producto-modal__img {
        max-height: 5.85rem;
        max-width: 5.85rem;
    }

    .customer-body #coca-producto-modal .coca-producto-modal__kicker {
        font-size: 0.62rem;
        margin: 0 0 0.1rem;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .customer-body #coca-producto-modal .coca-producto-modal__title {
        font-size: 1.08rem;
        margin: 0;
        line-height: 1.2;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .customer-body #coca-producto-modal .coca-producto-modal__sub {
        margin: 0.2rem 0 0;
        font-size: 0.76rem;
        line-height: 1.35;
        color: var(--text-secondary, #64748b);
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .customer-body #coca-producto-modal .coca-producto-modal__stock-hint,
    .customer-body #coca-producto-modal .coca-producto-modal__hoja-sel {
        font-size: 0.76rem;
        line-height: 1.4;
    }

    .customer-body #coca-producto-modal .coca-producto-modal__wizard-head {
        margin-bottom: 0.45rem;
        gap: 0.3rem;
        width: 100%;
    }

    .customer-body #coca-producto-modal .coca-producto-modal__step {
        font-size: 0.68rem;
    }

    .customer-body #coca-producto-modal .coca-producto-modal__lead {
        margin-bottom: 0.4rem;
        font-size: 0.8rem;
    }

    .customer-body #coca-producto-modal .coca-producto-modal__opciones {
        max-height: min(28vh, 11rem);
        gap: 0.35rem;
        width: 100%;
    }

    .customer-body #coca-producto-modal .coca-producto-modal__opcion {
        padding: 0.55rem 0.65rem;
        width: 100%;
    }

    .customer-body #coca-producto-modal .coca-producto-modal__resumen,
    .customer-body #coca-producto-modal .coca-producto-modal__resumen-total,
    .customer-body #coca-producto-modal .coca-producto-modal__nav {
        width: 100%;
    }

    .customer-body #coca-producto-modal .coca-producto-modal__nav {
        position: sticky;
        bottom: 0;
        margin-top: 0.35rem;
        padding-top: 0.45rem;
        padding-bottom: 0.35rem;
        background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.96) 32%);
    }

    .customer-body #coca-producto-modal.coca-producto-modal--customer-dark .coca-producto-modal__nav {
        background: linear-gradient(180deg, transparent 0%, rgba(18, 20, 26, 0.94) 32%);
    }

    .customer-body #coca-producto-modal .coca-producto-modal__close {
        top: 0.35rem;
        right: 0.4rem;
        width: 1.85rem;
        height: 1.85rem;
        font-size: 1.05rem;
    }

    /* Layout: imagen (izq) + nombre (der); unidades/precio/CTA a ancho completo debajo */
    .customer-body #producto-unidades-modal .producto-detalle-modal__panel {
        max-width: 22rem;
        width: min(calc(100% - 0.5rem), 22rem);
        max-height: min(88dvh, 40rem);
    }

    .customer-body #producto-unidades-modal .producto-detalle-modal__layout {
        display: grid;
        grid-template-columns: 6.5rem minmax(0, 1fr);
        grid-template-areas:
            "media intro"
            "main main";
        column-gap: 0.85rem;
        row-gap: 0.65rem;
        align-items: start;
        min-height: 0 !important;
        padding: 0.7rem 0.85rem 0.75rem;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .customer-body #producto-unidades-modal .producto-detalle-modal__media-col {
        display: contents;
    }

    .customer-body #producto-unidades-modal .producto-detalle-modal__media-frame {
        grid-area: media;
        flex: 0 0 auto !important;
        min-height: 0 !important;
        height: 6.5rem;
        max-height: none;
        width: 6.5rem;
        margin: 0;
        padding: 0.35rem;
        overflow: visible;
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border-right: none;
        border-bottom: none;
    }

    .customer-body #producto-unidades-modal .producto-detalle-modal__img {
        max-height: 5.6rem;
        max-width: 5.6rem;
        width: auto;
        height: auto;
        object-fit: contain;
        object-position: center;
    }

    .customer-body #producto-unidades-modal .producto-detalle-modal__head--media {
        grid-area: intro;
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-width: 0;
        height: auto;
        min-height: 6.5rem;
        padding: 0.1rem 0 0;
    }

    .customer-body #producto-unidades-modal .producto-detalle-modal__head--media .producto-detalle-modal__kicker {
        font-size: 0.62rem;
        margin: 0 0 0.15rem;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .customer-body #producto-unidades-modal .producto-detalle-modal__head--media .producto-detalle-modal__title {
        font-size: 1.08rem;
        line-height: 1.2;
        margin: 0;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .customer-body #producto-unidades-modal .producto-detalle-modal__stock-badge--desc {
        margin-top: 0.3rem;
        font-size: 0.58rem;
        max-width: 100%;
    }

    .customer-body #producto-unidades-modal #producto-unidades-modal-add.producto-detalle-modal__cta {
        min-height: 2.65rem;
        font-size: 0.84rem;
        gap: 0.35rem;
        padding: 0 0.75rem;
    }

    .customer-body #producto-unidades-modal .producto-detalle-modal__content {
        grid-area: main;
        min-height: 0;
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 0.15rem;
        padding-top: 0.35rem;
        border-top: 1px solid rgba(26, 38, 18, 0.08);
    }

    .customer-body #producto-unidades-modal.coca-producto-modal--customer-dark .producto-detalle-modal__content {
        border-top-color: rgba(255, 255, 255, 0.1);
    }

    .customer-body #producto-unidades-modal .producto-detalle-modal__desc {
        margin: 0 0 0.55rem;
        font-size: 0.82rem;
        line-height: 1.5;
        color: var(--pdm-muted);
    }

    .customer-body #producto-unidades-modal .producto-detalle-modal__scroll {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        padding: 0.15rem 0 0.25rem;
        -webkit-overflow-scrolling: touch;
    }

    .customer-body #producto-unidades-modal .producto-detalle-modal__formas-block {
        width: 100%;
        margin: 0.15rem 0 0.35rem;
    }

    .customer-body #producto-unidades-modal .producto-detalle-modal__formas-label {
        font-size: 0.8rem;
        font-weight: 700;
        margin: 0 0 0.4rem;
    }

    .customer-body #producto-unidades-modal .producto-detalle-modal__opciones,
    .customer-body #producto-unidades-modal .coca-producto-modal__opciones {
        width: 100%;
        max-height: min(32vh, 12rem);
        gap: 0.35rem;
    }

    .customer-body #producto-unidades-modal .coca-producto-modal__opcion {
        width: 100%;
        padding: 0.55rem 0.65rem;
    }

    .customer-body #producto-unidades-modal .producto-detalle-modal__precio-hero {
        width: 100%;
        margin: 0.45rem 0 0.35rem;
        padding: 0.55rem 0.7rem;
        order: 0;
    }

    .customer-body #producto-unidades-modal .producto-detalle-modal__footer {
        width: 100%;
        margin-top: 0.35rem;
        padding-top: 0.45rem;
        position: sticky;
        bottom: 0;
        background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.96) 28%);
    }

    .customer-body #producto-unidades-modal.coca-producto-modal--customer-dark .producto-detalle-modal__footer {
        background: linear-gradient(180deg, transparent 0%, rgba(18, 20, 26, 0.94) 28%);
    }

    .customer-body #producto-unidades-modal .producto-detalle-modal__cta {
        width: 100%;
        min-height: 2.75rem;
        font-size: 0.92rem;
    }

    .customer-body #producto-unidades-modal .producto-detalle-modal__img-ph {
        min-height: 0;
        font-size: 2.25rem;
    }

    .customer-body #producto-unidades-modal .producto-detalle-modal__fav-corner {
        width: 1.9rem;
        height: 1.9rem;
        top: 0.2rem;
        right: 0.2rem;
    }

    .customer-body #producto-unidades-modal .producto-detalle-modal__stock-badge--media {
        display: none;
    }

    .customer-body #producto-unidades-modal .producto-detalle-modal__facts {
        margin-bottom: 0.55rem;
        gap: 0.35rem;
    }

    .customer-body #producto-unidades-modal .producto-detalle-modal__fact {
        padding: 0.48rem 0.6rem;
    }

    .customer-body #producto-unidades-modal .producto-detalle-modal__fact-k {
        font-size: 0.62rem;
    }

    .customer-body #producto-unidades-modal .producto-detalle-modal__fact-v {
        font-size: 0.78rem;
    }

    .customer-body #producto-unidades-modal .producto-detalle-modal__precio-val {
        font-size: 1.3rem;
    }

    .customer-body #producto-unidades-modal .producto-detalle-modal__stock-hint {
        margin: 0 0 0.35rem;
        font-size: 0.76rem;
        line-height: 1.4;
    }

    .customer-body #producto-unidades-modal .producto-detalle-modal__close {
        top: 0.35rem;
        right: 0.35rem;
        width: 1.85rem;
        height: 1.85rem;
    }
}

/* POS — móvil genérico */
@media (max-width: 720px) {
    body:not(.customer-body) .coca-producto-modal,
    body:not(.customer-body) .producto-detalle-modal {
        padding: 0;
        align-items: flex-end;
    }

    body:not(.customer-body) .coca-producto-modal__panel,
    body:not(.customer-body) .producto-detalle-modal__panel {
        width: 100%;
        max-height: min(94dvh, calc(100dvh - env(safe-area-inset-top, 0px)));
        border-radius: 1.25rem 1.25rem 0 0;
        border-bottom: none;
    }

    body:not(.customer-body) .producto-detalle-modal__layout {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    body:not(.customer-body) .producto-detalle-modal__media-frame {
        min-height: 0;
        max-height: 240px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .producto-detalle-modal__img,
    .producto-detalle-modal__cta,
    .producto-detalle-modal__fav-corner,
    .producto-detalle-modal__close {
        transition: none;
    }

    .producto-detalle-modal__spinner {
        animation: none;
    }
}

/* Legacy hooks — ocultos si quedaran en DOM */
.producto-detalle-modal__actions,
.producto-detalle-modal__fav:not(.producto-detalle-modal__fav-corner),
.producto-detalle-modal__title-row,
.producto-detalle-modal__formas-head {
    display: none !important;
}

.producto-card--producto-detalle {
    cursor: pointer;
}

.producto-card--producto-detalle:hover {
    transform: translateY(-2px);
}

.producto-card__meta {
    margin: 0.15rem 0 0.25rem;
}

.producto-card__meta-chip {
    display: inline-flex;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #99ff00;
    border: 1px solid rgba(153, 255, 0, 0.35);
    background: rgba(153, 255, 0, 0.08);
}

.producto-card__desc {
    margin: 0 0 0.35rem;
    font-size: 0.72rem;
    line-height: 1.35;
    opacity: 0.78;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.producto-card__media--detalle {
    cursor: zoom-in;
    position: relative;
}

.producto-card__img-hint {
    position: absolute;
    left: 50%;
    bottom: 0.45rem;
    z-index: 3;
    transform: translateX(-50%) translateY(0.25rem);
    padding: 0.22rem 0.6rem;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(0, 0, 0, 0.72);
    border: 1px solid rgba(153, 255, 0, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.producto-card__media--detalle:hover .producto-card__img-hint,
.producto-card__media--detalle:focus-visible .producto-card__img-hint {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ── Modal unidades (2 pasos): cliente, pulido visual ── */

/* Resumen unificado (desktop + móvil) */
.customer-body #producto-unidades-modal .coca-producto-modal__wizard-head {
    margin: 0 0 0.85rem;
    padding: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.65rem;
}

.customer-body #producto-unidades-modal .coca-producto-modal__dots {
    gap: 0.35rem;
}

.customer-body #producto-unidades-modal .coca-producto-modal__dot {
    width: 0.48rem;
    height: 0.48rem;
    background: rgba(18, 86, 28, 0.18);
}

.customer-body #producto-unidades-modal .coca-producto-modal__dot.is-active {
    width: 1.15rem;
    border-radius: 999px;
    background: linear-gradient(90deg, #80bf28, #6a981f);
    box-shadow: 0 0 0 3px rgba(128, 191, 40, 0.18);
    transform: none;
}

.customer-body #producto-unidades-modal .coca-producto-modal__dot.is-done {
    background: #80bf28;
}

.customer-body #producto-unidades-modal .coca-producto-modal__step {
    margin: 0;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #5a8218;
}

.customer-body #producto-unidades-modal .producto-detalle-modal__formas-label {
    margin: 0 0 0.55rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #3d5230;
}

.customer-body #producto-unidades-modal .producto-detalle-modal__head--media .producto-detalle-modal__stock-badge--desc {
    align-self: flex-start;
    margin: 0.45rem 0 0;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(18, 86, 28, 0.18);
    background: #fff;
    color: #12561c;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.customer-body #producto-unidades-modal .coca-producto-modal__opcion {
    border-radius: 14px;
    border: 1.5px solid rgba(18, 86, 28, 0.14);
    background: #fff;
    padding: 0.75rem 0.9rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.customer-body #producto-unidades-modal .coca-producto-modal__opcion:hover {
    border-color: rgba(106, 152, 31, 0.45);
    box-shadow: 0 6px 18px rgba(26, 38, 18, 0.08);
    transform: translateY(-1px);
}

.customer-body #producto-unidades-modal .coca-producto-modal__opcion--active,
.customer-body #producto-unidades-modal .coca-producto-modal__opcion[aria-selected="true"] {
    border-color: #6a981f;
    background: linear-gradient(135deg, #f3faea 0%, #e8f5d6 100%);
    box-shadow: 0 0 0 3px rgba(128, 191, 40, 0.16), 0 8px 20px rgba(26, 38, 18, 0.08);
}

.customer-body #producto-unidades-modal .producto-detalle-modal__resumen-step {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.customer-body #producto-unidades-modal .producto-detalle-modal__resumen-card {
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    border-radius: 1rem;
    border: 1px solid rgba(18, 86, 28, 0.14);
    background: linear-gradient(165deg, #f7fbf2 0%, #eef7e4 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.customer-body #producto-unidades-modal .producto-detalle-modal__precio-hero {
    margin: 0;
    padding: 0.95rem 1rem 0.85rem;
    border: 0;
    border-radius: 0;
    border-bottom: 1px solid rgba(18, 86, 28, 0.1);
    background: linear-gradient(135deg, rgba(128, 191, 40, 0.16) 0%, rgba(106, 152, 31, 0.08) 100%);
    align-items: center;
}

.customer-body #producto-unidades-modal .producto-detalle-modal__precio-label {
    color: #5a8218;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
}

.customer-body #producto-unidades-modal .producto-detalle-modal__precio-val {
    color: #12561c;
    font-size: clamp(1.55rem, 3.2vw, 1.9rem);
    font-weight: 900;
    letter-spacing: -0.03em;
}

.customer-body #producto-unidades-modal .producto-detalle-modal__precio-uni {
    color: #4a5c42;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.28rem 0.6rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(18, 86, 28, 0.12);
}

.customer-body #producto-unidades-modal .producto-detalle-modal__facts {
    margin: 0;
    gap: 0;
    background: transparent;
}

.customer-body #producto-unidades-modal .producto-detalle-modal__fact {
    margin: 0;
    padding: 0.72rem 1rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    border-bottom: 1px solid rgba(18, 86, 28, 0.08);
}

.customer-body #producto-unidades-modal .producto-detalle-modal__fact:last-child {
    border-bottom: 0;
}

.customer-body #producto-unidades-modal .producto-detalle-modal__fact-k {
    color: #64785a;
    font-size: 0.66rem;
}

.customer-body #producto-unidades-modal .producto-detalle-modal__fact-v {
    color: #1a2612;
    font-size: 0.88rem;
    font-weight: 800;
}

.customer-body #producto-unidades-modal .producto-detalle-modal__stock-hint {
    margin: 0.15rem 0 0;
    font-size: 0.78rem;
    font-weight: 600;
    color: #64785a;
}

.customer-body #producto-unidades-modal .producto-detalle-modal__footer {
    margin-top: auto;
    padding: 0.85rem 0 0;
    border-top: 1px solid rgba(18, 86, 28, 0.1);
    background: transparent;
    gap: 0.55rem;
}

.customer-body #producto-unidades-modal .coca-producto-modal__nav-btn--ghost {
    min-height: 2.85rem;
    padding: 0 1rem;
    border-radius: 12px;
    font-weight: 700;
}

.customer-body #producto-unidades-modal #producto-unidades-modal-add.producto-detalle-modal__cta,
.customer-body #producto-unidades-modal .coca-producto-modal__nav-btn--primary {
    min-height: 2.85rem;
    border-radius: 12px;
    background: linear-gradient(180deg, #177022 0%, #12561c 100%);
    color: #fff;
    box-shadow: 0 8px 22px rgba(18, 86, 28, 0.28);
}

.customer-body #producto-unidades-modal #producto-unidades-modal-add.producto-detalle-modal__cta:hover:not(:disabled),
.customer-body #producto-unidades-modal .coca-producto-modal__nav-btn--primary:hover:not(:disabled) {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.customer-body #producto-unidades-modal .producto-detalle-modal__close {
    top: 0.75rem;
    right: 0.75rem;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 999px;
    border: 1px solid rgba(18, 86, 28, 0.16);
    background: rgba(255, 255, 255, 0.92);
    color: #3d5230;
    box-shadow: 0 4px 14px rgba(26, 38, 18, 0.1);
}

.customer-body #producto-unidades-modal .producto-detalle-modal__close:hover {
    background: #fff;
    border-color: rgba(18, 86, 28, 0.28);
    color: #12561c;
}

.customer-body #producto-unidades-modal.coca-producto-modal--customer-dark .producto-detalle-modal__resumen-card {
    background: linear-gradient(165deg, rgba(168, 224, 74, 0.1) 0%, rgba(18, 26, 14, 0.92) 100%);
    border-color: rgba(168, 224, 74, 0.22);
}

.customer-body #producto-unidades-modal.coca-producto-modal--customer-dark .producto-detalle-modal__precio-hero {
    background: linear-gradient(135deg, rgba(168, 224, 74, 0.18) 0%, rgba(128, 191, 40, 0.08) 100%);
    border-bottom-color: rgba(168, 224, 74, 0.14);
}

.customer-body #producto-unidades-modal.coca-producto-modal--customer-dark .producto-detalle-modal__precio-val {
    color: #d4ff6a;
}

.customer-body #producto-unidades-modal.coca-producto-modal--customer-dark .producto-detalle-modal__fact-v {
    color: #f0ffe0;
}

.customer-body #producto-unidades-modal.coca-producto-modal--customer-dark .producto-detalle-modal__fact {
    border-bottom-color: rgba(168, 224, 74, 0.1);
}

/* Desktop: layout compacto sin hueco vacío */
@media (min-width: 769px) {
    .customer-body #producto-unidades-modal .producto-detalle-modal__panel {
        width: min(calc(100% - 1.5rem), 52rem);
        max-width: 52rem;
        max-height: min(88dvh, 36rem);
        overflow: hidden;
        border-radius: 1.35rem;
        border: 1px solid rgba(18, 86, 28, 0.14);
        box-shadow:
            0 24px 64px rgba(26, 38, 18, 0.18),
            0 8px 20px rgba(26, 38, 18, 0.08);
    }

    .customer-body #producto-unidades-modal .producto-detalle-modal__layout {
        min-height: 0;
        height: 100%;
        max-height: min(88dvh, 36rem);
        grid-template-columns: minmax(240px, 0.95fr) minmax(280px, 1.05fr);
    }

    .customer-body #producto-unidades-modal .producto-detalle-modal__media-col {
        padding: 1.1rem 1rem 1.15rem 1.15rem;
        background: linear-gradient(165deg, #f4faf0 0%, #eef6e6 48%, #f8fbf5 100%);
        border-right: 1px solid rgba(18, 86, 28, 0.1);
    }

    .customer-body #producto-unidades-modal .producto-detalle-modal__media-frame {
        flex: 1 1 auto;
        min-height: 12rem;
        max-height: none;
        border-radius: 1.1rem;
        background:
            radial-gradient(ellipse 80% 60% at 50% 18%, rgba(128, 191, 40, 0.14), transparent 62%),
            #ffffff;
        border: 1px solid rgba(18, 86, 28, 0.1);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
    }

    .customer-body #producto-unidades-modal .producto-detalle-modal__img {
        max-height: min(280px, 42vh);
        filter: drop-shadow(0 12px 24px rgba(26, 38, 18, 0.16));
    }

    .customer-body #producto-unidades-modal .producto-detalle-modal__head--media {
        padding: 0.85rem 0.15rem 0;
        gap: 0.2rem;
    }

    .customer-body #producto-unidades-modal .producto-detalle-modal__kicker {
        color: #5a8218;
        font-weight: 800;
        letter-spacing: 0.08em;
    }

    .customer-body #producto-unidades-modal .producto-detalle-modal__title {
        color: #152012;
        font-size: clamp(1.2rem, 2.4vw, 1.45rem);
        line-height: 1.18;
    }

    .customer-body #producto-unidades-modal .producto-detalle-modal__content {
        display: flex;
        flex-direction: column;
        min-height: 0;
        height: 100%;
        padding: 1rem 1.15rem 0.95rem;
        background: linear-gradient(180deg, #ffffff 0%, #fbfdf8 100%);
    }

    .customer-body #producto-unidades-modal .producto-detalle-modal__scroll {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        gap: 0.55rem;
        padding-right: 0.15rem;
    }

    .customer-body #producto-unidades-modal .coca-producto-modal__opciones {
        display: flex;
        flex-direction: column;
        gap: 0.45rem;
    }
}

@media (max-width: 768px) {
    .customer-body #producto-unidades-modal .producto-detalle-modal__resumen-card {
        border-radius: 0.9rem;
    }

    .customer-body #producto-unidades-modal .producto-detalle-modal__precio-hero {
        padding: 0.75rem 0.85rem;
    }

    .customer-body #producto-unidades-modal .producto-detalle-modal__fact {
        padding: 0.62rem 0.85rem;
    }

    .customer-body #producto-unidades-modal .coca-producto-modal__wizard-head {
        margin-bottom: 0.55rem;
    }
}
