/* Zona Tienda / Entradas — layout aparte del sitio de marca */

.commerce-body {
    background: #f4f8fa;
}

.cm-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: #fff;
    border-bottom: 2px solid var(--eg-magenta);
    box-shadow: 0 8px 24px rgba(10, 75, 110, 0.06);
}

.cm-header__inner {
    width: min(100% - 28px, 1180px);
    margin: 0 auto;
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.cm-header__left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.cm-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
    color: var(--eg-blue);
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--eg-line);
    background: var(--eg-paper);
    white-space: nowrap;
    transition: border-color .15s, color .15s, background .15s;
}
.cm-back:hover {
    border-color: var(--eg-cyan);
    color: var(--eg-magenta);
    background: #fff;
}
.cm-back i { font-size: 11px; }

.cm-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    min-width: 0;
}
.cm-logo__mark {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: transparent;
    display: grid;
    place-items: center;
    padding: 0;
    flex-shrink: 0;
    overflow: hidden;
}
.cm-logo__mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cm-logo__text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    line-height: 1.15;
    min-width: 0;
}
.cm-logo__text strong {
    font-family: var(--font-display);
    font-size: 15px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--eg-blue);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cm-logo__text span {
    font-size: 11px;
    font-weight: 800;
    color: var(--eg-magenta);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.cm-tabs {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 0;
    background: transparent;
    border: 0;
}
.cm-tabs a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    color: var(--eg-muted);
    padding: 10px 22px;
    border-radius: 999px;
    border: 1px solid var(--eg-line);
    background: var(--eg-paper);
    transition: background .15s, color .15s, box-shadow .15s;
}
.cm-tabs a i { font-size: 12px; }
.cm-tabs a:hover {
    color: var(--eg-blue);
    background: rgba(255,255,255,.7);
}
.cm-tabs a.is-active {
    background: #fff;
    color: var(--eg-magenta);
    border-color: var(--eg-cyan);
    box-shadow: 0 4px 12px rgba(10, 75, 110, 0.12);
}
@media (min-width: 901px) {
    .cm-tabs a + a {
        margin-left: 34px;
    }
}

.cm-header__right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cm-link {
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    color: var(--eg-blue);
    padding: 8px 10px;
}
.cm-link:hover { color: var(--eg-magenta); }

.cm-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    background: var(--eg-magenta);
    padding: 10px 16px;
    border-radius: 999px;
    white-space: nowrap;
    transition: background .15s, transform .15s;
}
.cm-login:hover {
    background: var(--eg-magenta-dark);
    color: #fff;
}

.cm-cart {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--eg-line);
    background: #fff;
    color: var(--eg-blue);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: border-color .15s, color .15s;
}

.cm-whatsapp {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 120;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.cm-whatsapp__message {
    position: relative;
    display: block;
    padding: 11px 15px;
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.16);
    color: #0a4b6e;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
}
.cm-whatsapp__message::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -7px;
    width: 12px;
    height: 12px;
    border-top: 1px solid #dbe3ef;
    border-right: 1px solid #dbe3ef;
    background: #fff;
    transform: translateY(-50%) rotate(45deg);
}
.cm-whatsapp__message strong { color: #d82781; }
.cm-whatsapp__icon {
    position: relative;
    display: grid;
    width: 56px;
    height: 56px;
    place-items: center;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #25d366;
    box-shadow: 0 8px 22px rgba(37, 211, 102, 0.36);
    color: #fff;
    font-size: 30px;
    transition: transform .18s ease;
}
.cm-whatsapp:hover .cm-whatsapp__icon { transform: scale(1.08); }
.cm-cart:hover {
    border-color: var(--eg-cyan);
    color: var(--eg-magenta);
}
.cm-cart__badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--eg-magenta);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    display: grid;
    place-items: center;
}

.cm-main {
    min-height: calc(100vh - 64px - 56px);
}

/* En commerce el page-hero no necesita compensar header absoluto */
.commerce-body .page-hero {
    padding: 42px 0 36px;
}
.commerce-body .cart-container,
.commerce-body .checkout-container {
    padding-top: 28px;
}
.commerce-body .buy-wrap {
    padding: 28px 16px 48px;
    max-width: 1112px;
}
.commerce-body .buy-summary {
    top: 88px;
}
.commerce-body .mis-entradas-page {
    min-height: auto;
    padding-top: 28px;
}

.cm-footer {
    background: #041c2b;
    color: rgba(255,255,255,.7);
    padding: 18px 0;
    font-size: 13px;
}
.cm-footer__inner {
    width: min(100% - 28px, 1180px);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.cm-footer a {
    color: var(--eg-cyan);
    font-weight: 700;
    text-decoration: none;
}
.cm-footer a:hover { text-decoration: underline; }

@media (max-width: 900px) {
    .cm-header__inner {
        flex-wrap: wrap;
        padding: 10px 0;
        min-height: auto;
    }
    .cm-back span { display: none; }
    .cm-logo__text strong { font-size: 13px; }
    .cm-tabs {
        order: 3;
        width: 100%;
        justify-content: stretch;
        gap: 10px;
    }
    .cm-tabs a {
        flex: 1;
        justify-content: center;
    }
    .cm-header__right { margin-left: auto; }
    .cm-whatsapp {
        right: 14px;
        bottom: 14px;
        gap: 7px;
    }
    .cm-whatsapp__message {
        padding: 9px 11px;
        font-size: 10px;
    }
    .cm-whatsapp__icon {
        width: 48px;
        height: 48px;
        font-size: 26px;
    }
}

/* Cuenta del cliente */
.acc-shell {
    width: min(100% - 28px, 980px);
    margin: 0 auto;
    padding: 28px 0 56px;
}
.acc-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    flex-wrap: wrap;
    padding: 28px;
    border-radius: 22px;
    color: #fff;
    background:
        radial-gradient(1200px 220px at 90% -40%, rgba(216, 39, 129, .45), transparent 60%),
        linear-gradient(135deg, #08344d 0%, #0a4b6e 48%, #0e6a8f 100%);
    box-shadow: 0 18px 40px rgba(10, 75, 110, .22);
}
.acc-hero h1 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(26px, 4vw, 34px);
    letter-spacing: .03em;
    text-transform: uppercase;
}
.acc-hero p {
    margin: 8px 0 0;
    color: rgba(255,255,255,.82);
    font-size: 14px;
    max-width: 46ch;
    line-height: 1.45;
}
.acc-stats {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.acc-stat {
    min-width: 108px;
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.16);
}
.acc-stat span {
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    opacity: .75;
}
.acc-stat strong {
    display: block;
    margin-top: 4px;
    font-size: 22px;
    font-weight: 800;
}
.acc-list {
    display: grid;
    gap: 16px;
    margin-top: 22px;
}
.acc-order {
    background: #fff;
    border: 1px solid #e4edf3;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(10, 75, 110, .07);
}
.acc-order__body {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px;
    padding: 20px 22px 8px;
}
.acc-order__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 10px;
}
.acc-code {
    font-size: 20px;
    font-weight: 800;
    color: #0a4b6e;
    letter-spacing: .04em;
}
.acc-date {
    margin-left: auto;
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
}
.acc-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
}
.acc-badge--ok { background: #dcfce7; color: #166534; }
.acc-badge--wait { background: #fef3c7; color: #92400e; }
.acc-badge--off { background: #fee2e2; color: #991b1b; }
.acc-badge--info { background: #e0f2fe; color: #075985; }
.acc-order__entrega {
    margin: 0 0 14px;
    color: #334155;
    font-size: 14px;
    font-weight: 700;
}
.acc-thumbs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.acc-thumb {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    overflow: hidden;
    background: #f1f5f9;
    display: grid;
    place-items: center;
    color: #94a3b8;
}
.acc-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.acc-thumb__more {
    font-size: 12px;
    font-weight: 800;
    color: #0a4b6e;
}
.acc-order__total {
    text-align: right;
    min-width: 120px;
}
.acc-order__total span {
    display: block;
    font-size: 11px;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.acc-order__total strong {
    display: block;
    margin-top: 4px;
    font-size: 26px;
    color: #d82781;
}
.acc-order__foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 14px 22px 16px;
    background: #f7fafc;
    border-top: 1px solid #eef3f7;
}
.acc-items {
    margin: 0;
    padding: 0;
    list-style: none;
    color: #64748b;
    font-size: 13px;
}
.acc-items li + li { margin-top: 3px; }
.acc-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.acc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    padding: 10px 14px;
    border-radius: 12px;
}
.acc-btn--primary { background: #0a4b6e; color: #fff; }
.acc-btn--primary:hover { background: #08344d; color: #fff; }
.acc-btn--ghost { background: #fff; color: #0a4b6e; border: 1px solid #d5e2ea; }
.acc-btn--ghost:hover { border-color: #4ac2e5; color: #d82781; }
.acc-empty {
    margin-top: 22px;
    padding: 48px 24px;
    text-align: center;
    background: #fff;
    border-radius: 20px;
    border: 1px dashed #cfe0ea;
}
.acc-empty h2 { margin: 0 0 8px; color: #0a4b6e; }
.acc-empty p { margin: 0 0 18px; color: #64748b; }
.acc-pickup {
    margin-top: 18px;
    padding: 22px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid #e4edf3;
    text-align: center;
}
.acc-pickup img { height: 56px; max-width: 100%; }
.acc-pickup strong {
    display: block;
    margin: 10px 0 4px;
    font-size: 28px;
    letter-spacing: .08em;
    color: #0a4b6e;
}
.acc-detail {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 16px;
    margin-top: 18px;
}
.acc-panel {
    background: #fff;
    border: 1px solid #e4edf3;
    border-radius: 20px;
    padding: 20px;
}
.acc-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px dashed #eef3f7;
    font-size: 14px;
}
.acc-line:last-child { border-bottom: 0; }
.acc-prod {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}
.acc-prod:last-child { border-bottom: 0; }
@media (max-width: 760px) {
    .acc-order__body,
    .acc-detail { grid-template-columns: 1fr; }
    .acc-order__total,
    .acc-date { text-align: left; margin-left: 0; }
}
