:root { --rep-plugin-primary:var(--rep-accent, #cc1b1b); --rep-plugin-primary-d:var(--rep-accent-d, #a81515); --rep-plugin-primary-bg:var(--rep-accent-bg, #fff0f0); --rep-plugin-text:var(--rep-text, #1a1a1a); --rep-plugin-text2:var(--rep-text2, #555); --rep-plugin-muted:var(--rep-muted, #999); --rep-plugin-border:var(--rep-border, #e0e0e0); --rep-plugin-surface:var(--rep-surface, #ffffff); --rep-plugin-bg:var(--rep-surface-alt, #f4f4f4); --rep-plugin-font:var(--rep-f, "DM Sans", system-ui, sans-serif); --rep-plugin-r:var(--rep-r, 10px); --rep-white:var(--rep-surface, #ffffff); --rep-primary:var(--rep-accent, #cc1b1b); --rep-primary-d:var(--rep-accent-d, #a81515); --rep-primary-bg:var(--rep-accent-bg, #fff0f0); --rep-text:#1a1a1a; --rep-text2:#555; --rep-muted:#999; --rep-border:#e0e0e0; --rep-f:"DM Sans", system-ui, sans-serif; --rep-r:10px; }
:where(:root) { --rep-container:1320px; --rep-gutter:16px; --rep-text:#1a1a1a; --rep-text2:#555; --rep-muted:#999; --rep-border:#e0e0e0; --rep-sh:0 2px 8px rgba(0, 0, 0, 0.08); --rep-sh-h:0 4px 18px rgba(0, 0, 0, 0.13); --rep-f:"DM Sans", system-ui, sans-serif; }
/* ↑ Valores por defecto con prioridad mínima: si el theme define estas variables, ganan las del theme.
   (Antes se declaraban en .rep-wrap como var(--x, …) de sí mismas: eso es un ciclo y CSS las invalida.) */
.rep-wrap { --rep-primary:var(--rep-accent, #cc1b1b); --rep-primary-d:var(--rep-accent-d, #a81515); --rep-primary-bg:var(--rep-accent-bg, #fff0f0); --rep-bg:var(--rep-surface-alt, #f4f4f4); --rep-white:var(--rep-surface, #fff); --rep-r:10px; box-sizing:border-box; width:100%; max-width:var(--rep-container); margin-left:auto; margin-right:auto; padding-left:var(--rep-gutter); padding-right:var(--rep-gutter); padding-top:12px; padding-bottom:40px; font-family:var(--rep-f); font-size:15px; color:var(--rep-text); -webkit-font-smoothing:antialiased; }
.rep-sc-tienda { padding-top:10px; }
.rep-wrap *, .rep-wrap ::after, .rep-wrap ::before { box-sizing:border-box; }
.rep-wrap :focus { outline:0; }
.rep-wrap :focus-visible { outline:2.5px solid var(--rep-primary); outline-offset:2px; border-radius:4px; }
.rep-wrap .rep-form-control:focus-visible, .rep-wrap .rep-srch-input:focus-visible { outline:0; border-color:var(--rep-primary); box-shadow:0 0 0 3px color-mix(in srgb, var(--rep-primary) 15%, transparent); }
.rep-wrap .rep-btn-add:focus-visible, .rep-wrap .rep-btn:focus-visible, .rep-wrap .rep-qb:focus-visible { outline:2.5px solid var(--rep-primary); outline-offset:2px; }
.rep-srch-wrap { position:relative; margin-bottom:16px; }
.rep-srch-ico { position:absolute; left:12px; top:50%; transform:translateY(-50%); color:var(--rep-muted); font-size:20px; pointer-events:none; }
.rep-srch-input { width:100%; background:var(--rep-white); border:1.5px solid var(--rep-border); border-radius:var(--rep-r); color:var(--rep-text); font-family:var(--rep-f); font-size:0.9rem; padding:10px 36px 10px 40px; outline:0; transition:border-color 0.2s; -webkit-appearance:none; }
.rep-srch-input:focus { border-color:var(--rep-primary); box-shadow:0 0 0 3px color-mix(in srgb, var(--rep-primary) 15%, transparent); }
.rep-srch-input::placeholder { color:var(--rep-muted); }
.rep-srch-clr { position:absolute; right:10px; top:50%; transform:translateY(-50%); background:0 0; border:none; color:var(--rep-muted); cursor:pointer; display:none; align-items:center; padding:2px; }
.rep-srch-clr .material-symbols-outlined { font-size:18px; }
.rep-cat-bar { display:flex; gap:6px; flex-wrap:wrap; margin-bottom:16px; overflow-x:auto; }
.rep-cat-btn { padding:6px 14px; border-radius:20px; border:1.5px solid var(--rep-border); background:var(--rep-white); font-family:var(--rep-f); font-size:0.8rem; font-weight:500; cursor:pointer; transition:all 0.15s; color:var(--rep-text2); white-space:nowrap; flex-shrink:0; }
.rep-cat-btn.on, .rep-cat-btn:hover { border-color:var(--rep-primary); background:var(--rep-primary-bg); color:var(--rep-primary); font-weight:600; }
.rep-grid { display:grid; gap:12px; grid-template-columns:repeat(2, 1fr); }
@media (min-width:480px) {
  .rep-grid { grid-template-columns:repeat(3, 1fr); }
}
@media (min-width:640px) {
  .rep-grid { grid-template-columns:repeat(4, 1fr); gap:16px; }
}
@media (min-width:960px) {
  .rep-grid { grid-template-columns:repeat(5, 1fr); }
}
@media (min-width:1200px) {
  .rep-grid { grid-template-columns:repeat(6, 1fr); }
}
.rep-prod-card { background:var(--rep-white, #fff); border-radius:var(--rep-r); overflow:hidden; box-shadow:
    0 2px 10px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(0, 0, 0, 0.04); transition:
    box-shadow 0.2s,
    transform 0.15s; display:flex; flex-direction:column; }
.rep-prod-card:hover { box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.16),
    0 0 0 1px rgba(0, 0, 0, 0.04); transform:translateY(-3px); }
.rep-prod-img { position:relative; padding-top:85%; background:#f8f8f8; overflow:hidden; cursor:pointer; }
.rep-prod-img img { position:absolute; inset:0; width:100%; height:100%; object-fit:contain; padding:8px; transition:transform 0.3s; }
.rep-prod-card:hover .rep-prod-img img { transform:scale(1.05); }
.rep-prod-img-ph { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; color:#ccc; }
.rep-prod-img-ph .material-symbols-outlined { font-size:36px; }
.rep-prod-body { padding:10px 10px 12px; display:flex; flex-direction:column; flex:1; justify-content:space-between; }
.rep-prod-click { cursor:pointer; flex:1; display:flex; flex-direction:column; }
.rep-prod-cat-row { display:flex; align-items:center; margin-bottom:4px; }
.rep-prod-cat { font-size:0.62rem; font-weight:700; color:var(--rep-primary); text-transform:uppercase; letter-spacing:0.07em; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; flex:1; min-width:0; }
.rep-prod-sku { font-size:0.62rem; color:var(--rep-muted); white-space:nowrap; flex-shrink:0; margin-left:6px; }
.rep-prod-nom { font-size:0.82rem; font-weight:500; line-height:1.4; color:var(--rep-text); margin-bottom:6px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; flex:1; }
.rep-prod-price { font-size:0.88rem; font-weight:700; color:var(--rep-primary); margin-bottom:8px; min-height:1.3em; }
.rep-prod-actions { margin-top:auto; }
.rep-sentinel { height:40px; display:flex; align-items:center; justify-content:center; grid-column:1/-1; color:var(--rep-muted); font-size:0.85rem; }
.rep-btn-add { width:100%; padding:9px 6px; background:var(--rep-primary); color:#fff; border:none; border-radius:6px; font-family:var(--rep-f); font-size:0.78rem; font-weight:700; cursor:pointer; transition:
    background 0.15s,
    transform 0.1s; display:flex; align-items:center; justify-content:center; gap:5px; }
.rep-btn-add:hover { background:var(--rep-primary-d); }
.rep-btn-add:active { transform:scale(0.97); }
.rep-btn-add .material-symbols-outlined { font-size:15px; }
.rep-qty-ctrl { display:none; align-items:center; gap:0; border-radius:8px; overflow:hidden; border:1.5px solid var(--rep-primary); }
.rep-qty-ctrl .rep-qb { width:34px; height:34px; border:none; background:var(--rep-primary-bg); color:var(--rep-primary); font-size:1.1rem; cursor:pointer; display:flex; align-items:center; justify-content:center; flex-shrink:0; transition:background 0.12s; user-select:none; font-weight:700; }
.rep-qty-ctrl .rep-qb:hover { background:var(--rep-primary); color:#fff; }
.rep-qty-n { flex:1; text-align:center; font-size:0.9rem; font-weight:700; color:var(--rep-text); background:var(--rep-white); }
.rep-btn { width:100%; padding:13px; background:var(--rep-primary); color:#fff; border:none; border-radius:var(--rep-r); font-family:var(--rep-f); font-size:0.95rem; font-weight:700; cursor:pointer; display:flex; align-items:center; justify-content:center; gap:8px; transition:background 0.15s, transform 0.1s; margin-top:10px; }
.rep-btn .material-symbols-outlined { font-size:14px; }
.rep-btn:hover:not(:disabled) { background:var(--rep-primary-d); text-decoration:none; }
.rep-btn:active { transform:scale(0.98); }
.rep-btn:disabled { opacity:0.4; cursor:not-allowed; }
.rep-btn-outline { background:#fff; color:var(--rep-primary); border:1.5px solid var(--rep-primary); }
.rep-btn-outline:hover:not(:disabled) { background:var(--rep-primary-bg); }
.rep-cart-wrap { display:flex; flex-direction:column; gap:20px; }
@media (min-width:800px) {
  .rep-cart-wrap { display:grid; grid-template-columns:1fr 300px; gap:28px; align-items:start; }
}
.rep-cart-main { min-width:0; }
.rep-cart-list { background:var(--rep-white, #fff); border-radius:var(--rep-r); box-shadow:0 2px 10px rgba(0, 0, 0, 0.08); overflow:hidden; }
.rep-cart-list .rep-ci { padding:12px 14px; }
.rep-cart-list .rep-ci:last-child { border-bottom:none; }
.rep-ci { display:flex; align-items:center; gap:10px; padding:12px 0; border-bottom:1px solid var(--rep-border); animation:repFi 0.2s; min-width:0; }
.rep-ci-info { flex:1; min-width:0; overflow:hidden; }
.rep-ci-right { flex-shrink:0; display:flex; flex-direction:column; align-items:flex-end; gap:8px; }
.rep-ci-top { display:flex; align-items:center; gap:8px; }
.rep-ci-drag { color:#d0d0d0; cursor:grab; display:flex; align-items:center; flex-shrink:0; touch-action:none; }
.rep-ci-drag:active { cursor:grabbing; }
.rep-ci-drag .material-symbols-outlined { font-size:20px; }
.rep-ci.dragging { opacity:0.4; }
.rep-ci.drag-over { border-top:2.5px solid var(--rep-primary); }
.rep-ci-img { width:52px; height:52px; border-radius:6px; object-fit:contain; background:#f5f5f5; flex-shrink:0; padding:4px; }
.rep-ci-nom { font-size:0.86rem; font-weight:600; line-height:1.35; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; max-width:100%; margin-bottom:3px; }
.rep-ci-meta { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.rep-ci-sku { font-size:0.68rem; color:var(--rep-muted); }
.rep-ci-precio { font-size:0.78rem; color:var(--rep-primary); font-weight:600; }
.rep-ci-sub { font-size:0.95rem; font-weight:700; }
.rep-ci-qctrl { display:flex; align-items:center; gap:4px; }
.rep-ci-qctrl .rep-qb { width:28px; height:28px; font-size:0.9rem; border:1.5px solid var(--rep-primary); background:var(--rep-primary-bg); color:var(--rep-primary); cursor:pointer; border-radius:4px; display:flex; align-items:center; justify-content:center; font-weight:700; transition:background 0.12s; }
.rep-ci-qctrl .rep-qb:hover { background:var(--rep-primary); color:#fff; }
.rep-ci-qctrl span { min-width:22px; text-align:center; font-weight:600; font-size:0.9rem; }
.rep-btn-del { background:0 0; border:none; color:#e53935; cursor:pointer; padding:2px; display:flex; align-items:center; transition:color 0.15s; }
.rep-btn-del:hover { color:#b71c1c; }
.rep-btn-del .material-symbols-outlined { font-size:18px; }
.rep-cart-side { min-width:0; display:none; }
@media (min-width:800px) {
  .rep-cart-side { display:block; }
  .rep-cart-btns { display:none !important; }
}
.rep-total-bar { box-shadow:0 2px 16px rgba(0, 0, 0, 0.1) !important; border:1px solid var(--rep-border); }
.rep-total-bar { background:var(--rep-white); border:1px solid var(--rep-border); border-radius:var(--rep-r); padding:16px; box-shadow:var(--rep-sh); }
.rep-trow { display:flex; justify-content:space-between; padding:4px 0; font-size:0.9rem; color:var(--rep-text2); }
.rep-trow.grand { font-size:1.15rem; font-weight:700; color:var(--rep-text); border-top:1px solid var(--rep-border); margin-top:8px; padding-top:12px; }
.rep-trow.grand span:last-child { color:var(--rep-primary); }
.rep-envio-opts { display:flex; flex-direction:column; gap:8px; }
.rep-envio-opt { display:flex; align-items:center; gap:12px; padding:12px; border:1.5px solid var(--rep-border); border-radius:8px; cursor:pointer; transition:0.2s; }
.rep-envio-opt input { display:none; }
.rep-envio-status { color:#aaa; font-size:22px; transition:0.2s; }
.rep-envio-status .ico-active { display:none; }
.rep-envio-opt:has(input:checked) { border-color:var(--rep-primary); background:var(--rep-primary-bg); }
.rep-envio-opt:has(input:checked) .rep-envio-status { color:var(--rep-primary); }
.rep-envio-opt:has(input:checked) .ico-default { display:none; }
.rep-envio-opt:has(input:checked) .ico-active { display:inline-block; }
.rep-envio-opt-title { display:block; font-weight:600; line-height:1; font-size:0.9rem; margin-top:3px; }
.rep-envio-opt-sub { display:block; font-size:0.8rem; opacity:0.7; }
.rep-dir-field { margin-top:10px; display:none; }
.rep-dir-label { font-size:0.84rem; font-weight:700; display:flex; align-items:center; gap:5px; margin-bottom:10px; }
.rep-dir-label .material-symbols-outlined { font-size:16px; color:var(--rep-muted); }
.rep-saved-addr-list { display:flex; flex-direction:column; gap:6px; margin-bottom:8px; }
.rep-sai { display:flex; align-items:center; gap:8px; padding:8px 10px; border:1.5px solid var(--rep-border); border-radius:8px; cursor:pointer; transition:all 0.15s; background:var(--rep-white); }
.rep-sai.sel, .rep-sai:hover { border-color:var(--rep-primary); background:var(--rep-primary-bg); }
.rep-sai-body { flex:1; min-width:0; }
.rep-sai-label { font-size:0.78rem; font-weight:700; color:var(--rep-text); }
.rep-sai-dir { font-size:0.72rem; color:var(--rep-text2); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.rep-sai-acts { display:flex; gap:2px; flex-shrink:0; }
.rep-sai-btn { background:0 0; border:none; cursor:pointer; color:var(--rep-muted); padding:4px; border-radius:4px; display:flex; align-items:center; transition:color 0.15s; }
.rep-sai-btn:hover { color:var(--rep-primary); }
.rep-sai-btn .material-symbols-outlined { font-size:16px; }
.rep-btn-new-addr { display:flex; align-items:center; justify-content:center; gap:5px; font-size:0.78rem; font-weight:600; color:var(--rep-primary); background:0 0; border:1.5px dashed rgba(204, 27, 27, 0.45); border-radius:8px; padding:8px; cursor:pointer; transition:all 0.15s; width:100%; margin-bottom:8px; font-family:var(--rep-f); }
.rep-btn-new-addr:hover { background:var(--rep-primary-bg); border-color:var(--rep-primary); }
.rep-btn-new-addr .material-symbols-outlined { font-size:16px; }
.rep-new-addr-form { display:none; background:var(--rep-bg); border-radius:8px; padding:12px; margin-bottom:8px; animation:repFi 0.2s; }
.rep-detalle-section { margin-top:12px; background:var(--rep-white); border:1px solid var(--rep-border); border-radius:var(--rep-r); overflow:hidden; }
.rep-detalle-toggle { width:100%; display:flex; align-items:center; gap:8px; padding:12px 14px; background:0 0; border:none; cursor:pointer; font-family:var(--rep-f); font-size:0.86rem; font-weight:600; color:var(--rep-text2); text-align:left; transition:background 0.15s; }
.rep-detalle-toggle:hover { background:var(--rep-bg); }
.rep-detalle-toggle .material-symbols-outlined:first-child { font-size:18px; color:var(--rep-primary); }
.rep-detalle-chevron { font-size:18px !important; margin-left:auto; transition:transform 0.2s; }
.rep-detalle-toggle.open .rep-detalle-chevron { transform:rotate(180deg); }
.rep-detalle-body { display:none; padding:0 14px 14px; animation:repFi 0.15s; }
.rep-detalle-body.open { display:block; }
.rep-nota-input { width:100%; border:1.5px solid var(--rep-border); border-radius:8px; padding:9px 12px; font-family:var(--rep-f); font-size:0.88rem; resize:vertical; min-height:80px; outline:0; transition:border-color 0.2s; background:var(--rep-white); display:block; }
.rep-nota-input:focus { border-color:var(--rep-primary); }
.rep-cart-btns { display:flex; gap:10px; margin-top:16px; }
.rep-cart-btns .rep-btn { flex:1; margin-top:0; }
.rep-cart-btns .rep-btn-del-all { flex:0 0 52px; width:52px; min-width:52px; margin-top:0; padding:0; }
.rep-ped-hdr { display:flex; align-items:center; justify-content:space-between; margin-bottom:14px; }
.rep-ped-title { font-size:1.05rem; font-weight:700; margin:0; }
.rep-ico-btn { background:0 0; border:none; cursor:pointer; color:var(--rep-muted); padding:6px; border-radius:6px; display:flex; align-items:center; transition:
    color 0.15s,
    background 0.15s; }
.rep-ico-btn:hover { color:var(--rep-primary); background:var(--rep-primary-bg); }
.rep-ico-btn .material-symbols-outlined { font-size:20px; }
.rep-filter-bar { display:flex; gap:6px; flex-wrap:wrap; margin-bottom:16px; }
.rep-filter-btn { padding:6px 14px; border-radius:20px; border:1.5px solid var(--rep-border); background:var(--rep-white); font-family:var(--rep-f); font-size:0.78rem; font-weight:600; cursor:pointer; transition:
    all 0.15s,
    opacity 0.2s; color:var(--rep-text2); display:none; align-items:center; gap:4px; }
.rep-filter-btn[data-estado=""] { display:inline-flex; }
.rep-filter-btn.visible { display:inline-flex; }
.rep-filter-btn.on, .rep-filter-btn:hover { border-color:var(--rep-primary); background:var(--rep-primary-bg); color:var(--rep-primary); }
.rep-ped-card { background:var(--rep-white); border:1px solid var(--rep-border); border-radius:var(--rep-r); margin-bottom:10px; box-shadow:var(--rep-sh); overflow:hidden; animation:repFi 0.2s; }
.rep-ped-head { display:grid; grid-template-columns:1fr auto auto auto 32px; align-items:center; gap:12px; padding:14px 16px; cursor:pointer; user-select:none; transition:background 0.15s; }
.rep-ped-head:hover { background:rgba(0, 0, 0, 0.02); }
.rep-ped-col { min-width:0; }
.rep-ped-col-envio { font-size:0.75rem; color:var(--rep-muted); white-space:nowrap; }
.rep-ped-col-total { white-space:nowrap; text-align:right; }
.rep-ped-col-chevron { display:flex; align-items:center; justify-content:center; }
.rep-ped-id { font-size:0.92rem; font-weight:700; }
.rep-ped-meta { font-size:0.7rem; color:var(--rep-muted); margin-top:1px; }
.rep-ped-total { font-size:0.95rem; font-weight:700; color:var(--rep-primary); }
.rep-chevron { transition:transform 0.22s; font-size:20px; color:var(--rep-muted); }
.rep-ped-card.open .rep-chevron { transform:rotate(180deg); }
.rep-ped-detail-meta span { display:flex; align-items:center; }
.rep-ped-card.open .rep-ped-detail-meta { display:flex; }
@media (max-width:560px) {
  .rep-ped-head { grid-template-columns:1fr auto auto 28px; }
  .rep-ped-col-envio { display:none; }
  .rep-ped-detail-meta { display:flex; }
  .rep-ped-total { font-size:0.88rem; }
  .rep-ped-id { font-size:0.86rem; }
}
.rep-estat { font-size:0.65rem; font-weight:700; text-transform:uppercase; letter-spacing:0.07em; padding:3px 10px; border-radius:20px; white-space:nowrap; }
.rep-estat.Pendiente { background:#e2f4f7; color:#1f6b7a; }
.rep-estat.Procesando { background:#e6ecfa; color:#34539c; }
.rep-estat.Entrega.parcial { background:#fde5d1; color:#994812; }
.rep-estat.Enviado { background:#e2f0fa; color:#2d6593; }
.rep-estat.Entregado { background:#dcf1e3; color:#276b45; }
.rep-estat.Anulado { background:#fbe4ec; color:#9d2a55; }
.rep-estat.Devuelto { background:#eee8fa; color:#5f45a0; }
.rep-ped-detail { display:none; border-top:1px solid var(--rep-border); padding:12px 16px 14px; }
.rep-ped-card.open .rep-ped-detail { display:block; }
.rep-ped-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:16px; }
.rep-ped-title { font-size:1.1rem; font-weight:700; margin:0; color:var(--rep-text); }
.rep-ped-detail-info { display:flex; flex-direction:column; gap:6px; margin-bottom:14px; font-size:0.82rem; color:var(--rep-text2); }
.rep-ped-detail-envio, .rep-ped-dir, .rep-ped-nota { display:flex; align-items:flex-start; gap:5px; }
.rep-ped-detail-envio .material-symbols-outlined, .rep-ped-dir .material-symbols-outlined, .rep-ped-nota .material-symbols-outlined { font-size:15px; margin-top:1px; opacity:0.6; flex-shrink:0; }
.rep-ped-items-list { list-style:none; margin:0 0 12px; padding:0; font-size:0.82rem; border:1px solid var(--rep-border); border-radius:8px; overflow:hidden; }
.rep-ped-items-hdr { display:flex; justify-content:space-between; align-items:center; padding:6px 10px; background:var(--rep-bg); font-size:0.7rem; font-weight:700; color:var(--rep-text2); text-transform:uppercase; letter-spacing:0.04em; border-bottom:1px solid var(--rep-border); }
.rep-ped-hdr-right { color:var(--rep-muted); }
.rep-ped-item { display:flex; align-items:center; gap:8px; padding:9px 10px; border-bottom:1px solid var(--rep-border); }
.rep-ped-item:last-of-type { border-bottom:none; }
.rep-ped-item-main { flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
.rep-ped-inom { color:var(--rep-text); font-weight:500; line-height:1.3; }
.rep-ped-isku { color:var(--rep-muted); font-size:0.7rem; font-family:monospace; }
/* Entregas parciales (5.5.07) */
.rep-ped-col-estado { display:flex; flex-direction:column; align-items:center; gap:4px; }
.rep-ped-avance { display:flex; align-items:center; gap:6px; font-size:0.68rem; color:#994812; white-space:nowrap; }
.rep-ped-avance-bar { width:42px; height:5px; border-radius:3px; background:#fde5d1; overflow:hidden; }
.rep-ped-avance-bar i { display:block; height:100%; background:#ec9a55; border-radius:3px; }
.rep-ped-ienv { font-size:0.72rem; color:#276b45; }
.rep-ped-ienv.falta { color:#994812; font-weight:600; }
.rep-ped-ienv s { color:var(--rep-muted); font-weight:400; }
.rep-ped-entregas { margin:0 0 12px; padding:8px 10px; border:1px solid var(--rep-border); border-radius:8px; font-size:0.8rem; }
.rep-ped-entregas-t { font-size:0.7rem; font-weight:700; color:var(--rep-text2); text-transform:uppercase; letter-spacing:0.04em; margin-bottom:4px; }
.rep-ped-entregas ol { margin:0; padding:0; list-style:none; }
.rep-ped-entregas li { padding:5px 0; border-top:1px solid var(--rep-border); overflow-wrap:anywhere; }
.rep-ped-entregas li:first-child { border-top:0; }
.rep-ped-ent-f, .rep-ped-ent-nota { color:var(--rep-muted); font-size:0.74rem; }
.rep-ped-item-right { display:flex; align-items:center; gap:10px; flex-shrink:0; white-space:nowrap; }
.rep-ped-iqty { color:var(--rep-text2); font-size:0.78rem; min-width:24px; text-align:right; }
.rep-ped-iunit { color:var(--rep-text2); font-size:0.78rem; min-width:60px; text-align:right; }
.rep-ped-isub { color:var(--rep-primary); font-weight:700; min-width:70px; text-align:right; }
.rep-ped-items-total { display:flex; justify-content:space-between; align-items:center; padding:9px 10px; border-top:2px solid var(--rep-border); font-weight:700; font-size:0.9rem; }
.rep-ped-items-total span:last-child { color:var(--rep-primary); }
.rep-ped-envio-dir { color:var(--rep-text2); font-weight:400; }
.rep-ped-nota { display:flex; align-items:flex-start; gap:5px; font-size:0.78rem; color:var(--rep-text2); margin-top:8px; background:var(--rep-bg); border-radius:6px; padding:7px 10px; }
.rep-ped-nota .material-symbols-outlined { font-size:15px; color:var(--rep-primary); flex-shrink:0; }
.rep-btn-cancel-ped { display:inline-flex; align-items:center; gap:4px; margin-top:12px; padding:7px 14px; border:1.5px solid var(--rep-primary); border-radius:6px; background:#fff; color:var(--rep-primary); font-family:var(--rep-f); font-size:0.78rem; font-weight:600; cursor:pointer; transition:all 0.15s; }
.rep-btn-cancel-ped:hover { background:var(--rep-primary); color:#fff; }
.rep-pagination { display:flex; align-items:center; justify-content:center; gap:4px; flex-wrap:wrap; padding:16px 0 4px; list-style:none; margin:0; }
.rep-pagination li { display:inline-flex; }
.rep-pg-btn { min-width:36px; height:36px; padding:0 8px; border:1.5px solid var(--rep-border); background:var(--rep-white); color:var(--rep-text2); border-radius:8px; font-family:var(--rep-f); font-size:0.84rem; font-weight:600; cursor:pointer; transition:all 0.15s; display:flex; align-items:center; justify-content:center; }
.rep-pagination .active .rep-pg-btn, .rep-pg-btn:hover:not(:disabled) { border-color:var(--rep-primary); color:var(--rep-primary); background:var(--rep-primary-bg); }
.rep-pagination .active .rep-pg-btn { background:var(--rep-primary); color:#fff; }
.rep-pg-btn:disabled { opacity:0.35; cursor:not-allowed; }
.rep-profile-hero { display:flex; align-items:center; gap:14px; padding-bottom:16px; margin-bottom:20px; border-bottom:1px solid var(--rep-border); background:0 0; border-radius:0; box-shadow:none; }
.rep-profile-avatar { width:44px; height:44px; border-radius:50%; background:var(--rep-primary); color:#fff; display:flex; align-items:center; justify-content:center; font-size:1.15rem; font-weight:700; flex-shrink:0; letter-spacing:-0.01em; }
.rep-profile-name { font-size:0.95rem; font-weight:700; margin-bottom:1px; color:var(--rep-text); line-height:1.3; }
.rep-profile-email { font-size:0.74rem; color:var(--rep-muted); }
.rep-profile-cols { display:grid; grid-template-columns:1fr; gap:24px; }
@media (min-width:640px) {
  .rep-profile-cols { grid-template-columns:1fr 340px; gap:32px; align-items:start; }
}
.rep-prof-section-title { font-size:0.82rem; font-weight:700; margin-bottom:12px; display:flex; align-items:center; gap:6px; }
.rep-prof-section-title .material-symbols-outlined { font-size:16px; color:var(--rep-primary); }
.rep-prof-summary { background:var(--rep-white); border:1px solid var(--rep-border); border-radius:var(--rep-r); padding:14px 16px; margin-bottom:4px; }
.rep-prof-summary-grid { display:grid; grid-template-columns:1fr 1fr; gap:6px 16px; }
.rep-prof-summary-label { font-size:0.7rem; color:var(--rep-muted); }
.rep-prof-summary-val { font-size:0.84rem; font-weight:600; color:var(--rep-text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.rep-prof-pending { background:#fff7e0; border:1px solid #f0d060; border-radius:8px; padding:10px 14px; font-size:0.8rem; color:#7a5900; display:flex; align-items:flex-start; gap:8px; margin-top:12px; }
.rep-readonly-row { display:flex; align-items:center; justify-content:space-between; padding:9px 12px; background:var(--rep-bg); border-radius:8px; margin-bottom:8px; }
.rep-readonly-label { font-size:0.78rem; color:var(--rep-muted); font-weight:600; }
.rep-readonly-val { font-size:0.88rem; color:var(--rep-text); font-weight:500; }
.rep-divider { border:none; border-top:1px solid var(--rep-border); margin:20px 0; }
.rep-btn-logout { width:100%; padding:12px; background:0 0; color:var(--rep-text2); border:1.5px solid var(--rep-border); border-radius:var(--rep-r); font-family:var(--rep-f); font-size:0.9rem; font-weight:600; cursor:pointer; display:flex; align-items:center; justify-content:center; gap:8px; transition:all 0.15s; margin-top:8px; text-decoration:none; }
.rep-btn-logout:hover { border-color:var(--rep-primary); color:var(--rep-primary); background:var(--rep-primary-bg); text-decoration:none; }
.rep-form-group { margin-bottom:12px; }
.rep-form-group label { display:block; font-size:0.72rem; font-weight:700; text-transform:uppercase; letter-spacing:0.06em; color:var(--rep-muted); margin-bottom:5px; }
.rep-form-control { width:100%; border:1.5px solid #bbb; border-radius:8px; padding:10px 12px; font-family:var(--rep-f); font-size:0.88rem; outline:0; background:var(--rep-white, #fff); color:var(--rep-text); transition:
    border-color 0.2s,
    box-shadow 0.2s; appearance:none; -webkit-appearance:none; }
.rep-form-control:focus { border-color:var(--rep-primary); box-shadow:0 0 0 3px color-mix(in srgb, var(--rep-primary) 12%, transparent); }
.rep-form-control::placeholder { color:var(--rep-muted); opacity:0.7; }
select.rep-form-control { background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 10px center; padding-right:30px; }
.rep-field-err { border-color:#e53e3e !important; }
.rep-field-ok { border-color:#22c55e !important; }
.rep-field-msg { font-size:0.74rem; margin-top:4px; display:none; font-weight:500; }
.rep-field-msg.err { color:#e53e3e; display:block; }
.rep-field-msg.ok { color:#16a34a; display:block; }
.rep-overlay { position:fixed; inset:0; z-index:99999; display:none; align-items:center; justify-content:center; padding:20px; }
.rep-overlay::before { content:""; position:absolute; inset:0; background:rgba(0, 0, 0, 0.6); }
.rep-overlay.open { display:flex; }
.rep-modal { background:#fff; border-radius:18px; padding:28px 22px 24px; max-width:340px; width:100%; text-align:center; box-shadow:0 12px 48px rgba(0, 0, 0, 0.28); animation:repSi 0.2s; font-family:var(--rep-plugin-font, "DM Sans", system-ui, sans-serif); color:#1a1a1a; position:relative; z-index:1; }
.rep-modal-ico { font-size:46px; margin-bottom:10px; }
.rep-modal-ico.ok { color:#22c55e; }
.rep-modal-ico.err { color:var(--rep-plugin-primary, #cc1b1b); }
.rep-modal-ico.warn { color:#f59e0b; }
.rep-modal-ico.info { color:#3b82f6; }
.rep-modal h2 { font-size:1.08rem; font-weight:700; margin-bottom:6px; }
.rep-modal p { font-size:0.86rem; color:var(--rep-text2); margin-bottom:20px; white-space:pre-line; line-height:1.55; }
.rep-modal-btns { display:flex; gap:8px; }
.rep-modal-btns .rep-btn { flex:1; margin-top:0; font-size:0.86rem; padding:11px; }
.rep-modal-btns .rep-btn.secondary { background:var(--rep-bg); color:var(--rep-text); border:1.5px solid var(--rep-border); }
.rep-modal-btns .rep-btn.danger { background:#e53e3e; }
.rep-modal-btns .rep-btn:not(.secondary):not(.danger) { background:var(--rep-plugin-primary, #cc1b1b); }
.rep-prod-overlay { position:fixed; inset:0; z-index:99998; display:none; align-items:center; justify-content:center; padding:16px; }
.rep-prod-overlay::before { content:""; position:absolute; inset:0; background:rgba(0, 0, 0, 0.52); backdrop-filter:blur(4px); -webkit-backdrop-filter:blur(4px); }
.rep-prod-overlay.open { display:flex; }
.rep-prod-modal { position:relative; z-index:1; background:var(--rep-white, #fff); width:100%; max-width:380px; border-radius:var(--rep-r, 10px); box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(0, 0, 0, 0.06); overflow:hidden; animation:repSi 0.22s cubic-bezier(0.34, 1.1, 0.64, 1); font-family:var(--rep-plugin-font, sans-serif); display:flex; flex-direction:column; max-height:calc(100dvh - 48px); }
.rep-pm-close { position:absolute; top:10px; right:10px; background:rgba(0, 0, 0, 0.18); border:none; border-radius:50%; width:30px; height:30px; cursor:pointer; display:flex; align-items:center; justify-content:center; color:#fff; z-index:10; transition:background 0.15s; }
.rep-pm-close:hover { background:rgba(0, 0, 0, 0.38); }
.rep-pm-close .material-symbols-outlined { font-size:18px; }
.rep-pm-slider { position:relative; background:#f8f8f8; overflow:hidden; user-select:none; width:100%; aspect-ratio:1 / 1.15; flex:0 1 auto; min-height:140px; }
/* Loading del modal: miniatura de fondo + spinner mientras llega la foto */
.rep-pm-slider { background-position:center; background-repeat:no-repeat; background-size:contain; }
.rep-pm-slider.is-loading::after { content:""; position:absolute; top:50%; left:50%; width:36px; height:36px; margin:-18px 0 0 -18px; box-sizing:border-box; border-radius:50%; border:3px solid rgba(0, 0, 0, 0.12); border-top-color:var(--rep-primary, #cc1b1b); background:rgba(255, 255, 255, 0.75); animation:repPmSpin 0.7s linear infinite; z-index:4; pointer-events:none; }
.rep-pm-slider.is-loading .rep-pm-slide-ph { visibility:hidden; }
@keyframes repPmSpin { to { transform:rotate(360deg); } }
.rep-pm-track { position:absolute; inset:0; display:flex; will-change:transform; transition:transform 0.26s ease; }
.rep-pm-slide { min-width:100%; height:100%; position:relative; flex-shrink:0; }
.rep-pm-slide img { position:absolute; inset:0; width:100%; height:100%; object-fit:contain; padding:8px; display:block; }
.rep-pm-slide-ph { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; color:#ccc; }
.rep-pm-slide-ph .material-symbols-outlined { font-size:48px; }
.rep-pm-dots { position:absolute; bottom:8px; left:50%; transform:translateX(-50%); display:flex; gap:5px; z-index:2; background:rgba(0,0,0,.18); padding:4px 7px; border-radius:20px; }
.rep-pm-dot { width:6px; height:6px; border-radius:50%; background:rgba(255,255,255,.7); cursor:pointer; border:none; padding:0; transition:all 0.22s; }
.rep-pm-dot.on { background:var(--rep-primary); width:16px; border-radius:3px; }
.rep-pm-nav { position:absolute; top:50%; transform:translateY(-50%); z-index:3; background:rgba(0,0,0,.28); border:none; border-radius:50%; width:28px; height:28px; display:flex; align-items:center; justify-content:center; cursor:pointer; color:#fff; transition:background .15s; padding:0; filter:drop-shadow(0 1px 3px rgba(0,0,0,.4)); }
.rep-pm-nav:hover { background:rgba(0,0,0,.5); }
.rep-pm-nav .material-symbols-outlined { font-size:18px; }
.rep-pm-nav-prev { left:6px; }
.rep-pm-nav-next { right:6px; }
.rep-pm-body { padding:12px 12px 16px; display:flex; flex-direction:column; flex:0 0 auto; min-width:0; justify-content:space-between; }
.rep-pm-cat-row { display:flex; align-items:center; margin-bottom:4px; }
.rep-pm-cat { font-size:0.62rem; font-weight:700; color:var(--rep-primary); text-transform:uppercase; letter-spacing:0.07em; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; flex:1; min-width:0; }
.rep-pm-sku { font-size:0.62rem; color:var(--rep-muted); white-space:nowrap; flex-shrink:0; margin-left:6px; }
.rep-pm-name { font-size:0.82rem; font-weight:500; line-height:1.4; color:var(--rep-text); margin-bottom:6px; flex:1; }
.rep-pm-price { font-size:0.88rem; font-weight:700; color:var(--rep-primary); margin-bottom:8px; min-height:1.3em; }
.rep-pm-actions { margin-top:auto; display:flex; align-items:center; gap:8px; width:100%; }
.rep-pm-qty-wrap { display:flex; align-items:center; gap:0; border-radius:8px; overflow:hidden; border:1.5px solid var(--rep-primary); }
.rep-pm-qty-wrap .rep-qb { width:34px; height:34px; border:none; background:var(--rep-primary-bg); color:var(--rep-primary); font-size:1.1rem; cursor:pointer; display:flex; align-items:center; justify-content:center; flex-shrink:0; transition:background 0.12s; font-weight:700; user-select:none; }
.rep-pm-qty-wrap .rep-qb:hover { background:var(--rep-primary); color:#fff; }
.rep-pm-qty-n { min-width:28px; text-align:center; font-size:0.9rem; font-weight:700; color:var(--rep-text); background:var(--rep-white); }
.rep-pm-btn-add { flex:1; width:100%; padding:9px 6px; background:var(--rep-primary); color:#fff; border:none; border-radius:6px; font-family:var(--rep-f); font-size:0.78rem; font-weight:700; cursor:pointer; display:flex; align-items:center; justify-content:center; gap:5px; transition:
    background 0.15s,
    transform 0.1s; }
.rep-pm-btn-add .material-symbols-outlined { font-size:15px; }
.rep-pm-btn-add:hover { background:var(--rep-primary-d); }
.rep-pm-btn-add:active { transform:scale(0.97); }
.rep-toasts { position:fixed; bottom:20px; left:50%; transform:translateX(-50%); z-index:999999; display:flex; flex-direction:column-reverse; align-items:center; gap:6px; pointer-events:none; width:max-content; max-width:calc(100vw - 32px); }
.rep-tm { background:#2b2b2b; color:#fff; padding:11px 16px 11px 10px; border-radius:12px; font-size:0.875rem; font-weight:500; line-height:1.4; box-shadow:0 4px 18px rgba(0,0,0,0.28); animation:repTmIn 0.22s cubic-bezier(0.34,1.56,0.64,1); display:flex; align-items:center; gap:10px; max-width:360px; pointer-events:auto; font-family:var(--rep-f); letter-spacing:0.01em; }
.rep-tm-ico { width:22px; height:22px; border-radius:50%; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.rep-tm-ico .material-symbols-outlined { font-size:14px; font-variation-settings:"FILL" 1; }
.rep-tm.s .rep-tm-ico { background:#22c55e; color:#fff; }
.rep-tm.e .rep-tm-ico { background:#ef4444; color:#fff; }
.rep-tm.i .rep-tm-ico { background:#3b82f6; color:#fff; }
.rep-tm.w .rep-tm-ico { background:#f59e0b; color:#1a1a1a; }
.rep-spin { display:inline-block; width:20px; height:20px; border:2.5px solid rgba(0, 0, 0, 0.1); border-top-color:var(--rep-primary); border-radius:50%; animation:repRot 0.7s linear infinite; vertical-align:middle; }
.rep-spin-lg { width:34px; height:34px; border-width:3px; }
.rep-empty { display:flex; flex-direction:column; align-items:center; justify-content:center; padding:50px 20px; color:var(--rep-muted); text-align:center; gap:12px; min-height:200px; }
.rep-sc-carrito .rep-cart-empty { width:100%; max-width:480px; margin:0 auto; }
.rep-sc-carrito .rep-cart-wrap:has(.rep-cart-empty:not([style*="display:none"])) { display:block; }
.rep-empty .material-symbols-outlined { font-size:48px; opacity:0.5; }
.rep-empty p { font-size:0.88rem; line-height:1.7; max-width:260px; margin:0; }
.rep-fly-particle { position:fixed; width:14px; height:14px; background:var(--rep-primary); border-radius:50%; pointer-events:none; z-index:9999; transform:translate(-50%, -50%); }
@keyframes repFi {
  from { opacity:0; transform:translateY(6px); }
  to { opacity:1; transform:none; }
}
@keyframes repSi {
  from { opacity:0; transform:scale(0.93); }
  to { opacity:1; transform:scale(1); }
}
@keyframes repRot {
  to { transform:rotate(360deg); }
}
@keyframes repTmIn {
  from { opacity:0; transform:translateY(10px) scale(0.93); }
  to { opacity:1; transform:none; }
}
@keyframes repSheetUp {
  from { opacity:0; transform:translateY(60px); }
  to { opacity:1; transform:none; }
}
.rep-profile-hero { flex-wrap:nowrap; align-items:center; }
.rep-hero-logout { display:flex; align-items:center; gap:5px; flex-shrink:0; padding:6px 12px; border-radius:6px; border:1px solid var(--rep-border); color:var(--rep-muted); text-decoration:none; font-size:0.76rem; font-weight:600; transition:all 0.15s; white-space:nowrap; background:0 0; margin-left:auto; }
.rep-hero-logout .material-symbols-outlined { font-size:16px; transition:transform 0.15s; }
.rep-hero-logout:hover { border-color:var(--rep-text2); color:var(--rep-text); background:var(--rep-bg); text-decoration:none; }
.rep-hero-logout:hover .material-symbols-outlined { transform:translateX(2px); }
@media (max-width:400px) {
  .rep-hero-logout-txt { display:none; }
}
.rep-cat-bar, .rep-filter-bar { flex-wrap:nowrap !important; overflow-x:auto !important; -webkit-overflow-scrolling:touch; scrollbar-width:none; padding-bottom:4px; gap:6px; }
.rep-cat-bar::-webkit-scrollbar, .rep-filter-bar::-webkit-scrollbar { display:none; }
.rep-cat-btn, .rep-filter-btn { flex-shrink:0 !important; }
.rep-nav { display:flex; align-items:center; gap:4px; list-style:none; margin:0; padding:0; }
.rep-nav-item { position:relative; }
.rep-nav-link { display:flex; flex-direction:column; align-items:center; gap:2px; padding:8px 14px; border-radius:8px; text-decoration:none; color:var(--rep-text2); font-size:0.7rem; font-weight:600; letter-spacing:0.03em; text-transform:uppercase; transition:all 0.15s; white-space:nowrap; position:relative; }
.rep-nav-link .material-symbols-outlined { font-size:22px; }
.rep-nav-link.active, .rep-nav-link:hover { color:var(--rep-primary); }
.rep-nav-link.active::after { content:""; position:absolute; bottom:0; left:50%; transform:translateX(-50%); width:20px; height:3px; background:var(--rep-primary); border-radius:2px; }
.rep-nav-badge { position:absolute; top:4px; right:6px; background:var(--rep-primary); color:#fff; font-size:0.58rem; font-weight:800; min-width:18px; height:18px; border-radius:9px; display:none; align-items:center; justify-content:center; padding:0 4px; line-height:1; transition:transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1); }
.rep-nav-badge.bump { transform:scale(1.4); }
.rep-nav-wrap { display:flex; justify-content:flex-end; align-items:center; padding:0 0 12px; margin-bottom:8px; border-bottom:1px solid var(--rep-border); }
@media (max-width:640px) {
  .rep-nav-wrap { display:none; }
  .rep-nav-bottom { position:fixed; bottom:0; left:0; right:0; z-index:9990; background:var(--rep-white); border-top:1px solid var(--rep-border); display:flex !important; box-shadow:0 -2px 12px rgba(0, 0, 0, 0.08); padding-bottom:env(safe-area-inset-bottom, 0); }
  .rep-nav-bottom .rep-nav-link { flex:1; padding:8px 4px; font-size:0.6rem; border-radius:0; }
  .rep-nav-bottom .rep-nav-link.active::after { width:100%; height:2px; }
  .rep-wrap { padding-bottom:72px; }
}
@media (min-width:641px) {
  .rep-nav-bottom { display:none !important; }
}
.rep-modal-ico { display:flex; align-items:center; justify-content:center; margin-bottom:10px; }
.rep-modal-ico .rep-m-ico-sym { font-size:52px; font-variation-settings:
    "FILL" 1,
    "wght" 400; line-height:1; }
.rep-modal-ico.ok .rep-m-ico-sym { color:#22c55e; }
.rep-modal-ico.err .rep-m-ico-sym { color:var(--rep-plugin-primary, #cc1b1b); }
.rep-modal-ico.warn .rep-m-ico-sym { color:#f59e0b; }
.rep-modal-ico.info .rep-m-ico-sym { color:#3b82f6; }
.rep-sc-carrito { display:block; min-height:100px; }
.rep-sc-carrito .rep-cart-list + *, .rep-sc-carrito .rep-detalle-section, .rep-sc-carrito .rep-envio-section, .rep-sc-carrito .rep-total-bar { box-shadow:0 1px 6px rgba(0, 0, 0, 0.07); }
.rep-sc-perfil .rep-prof-summary, .rep-sc-perfil .rep-sai { box-shadow:0 1px 6px rgba(0, 0, 0, 0.06); }
.rep-cart-wrap { display:flex; flex-direction:column; gap:20px; }
@media (min-width:800px) {
  .rep-cart-wrap { display:grid; grid-template-columns:1fr 300px; gap:28px; align-items:start; }
}
.rep-no-cat .rep-prod-cat { display:none !important; }
[data-rep-cart-badge] { display:inline-flex; align-items:center; justify-content:center; min-width:20px; height:20px; border-radius:10px; background:var(--rep-primary); color:#fff; font-size:0.62rem; font-weight:800; padding:0 5px; line-height:1; }
@media (min-width:800px) {
  .rep-cart-side { position:sticky; top:calc(var(--rep-hdr-h, 64px) + 16px); align-self:start; max-height:calc(100vh - var(--rep-hdr-h, 64px) - 32px); overflow-y:auto; }
  .rep-cart-side { top:16px; }
  body.has-sticky-header .rep-cart-side { top:calc(var(--rep-hdr-h, 64px) + 16px); }
}
.rep-envio-section { background:var(--rep-white); border:1px solid var(--rep-border); border-radius:var(--rep-r); padding:8px 10px; margin-top:10px; }
.rep-envio-header { display:flex; align-items:center; gap:6px; margin-bottom:6px; font-size:0.8rem; font-weight:700; color:var(--rep-text); }
.rep-envio-header .material-symbols-outlined { font-size:18px; color:var(--rep-primary); }
.rep-envio-req { margin-left:auto; font-size:0.64rem; font-weight:700; text-transform:uppercase; letter-spacing:0.08em; color:var(--rep-primary); background:var(--rep-primary-bg); padding:2px 8px; border-radius:10px; }
.rep-envio-opts { display:grid; grid-template-columns:1fr 1fr; gap:6px; }
@media (max-width:599px) {
  .rep-envio-opts { grid-template-columns:1fr; }
}
.rep-envio-opt { flex:1; display:flex; align-items:center; gap:7px; padding:6px 8px; border:2px solid var(--rep-border); border-radius:var(--rep-r); cursor:pointer; transition:
    border-color 0.15s,
    background 0.15s; background:var(--rep-white); position:relative; }
.rep-envio-opt input[type="radio"] { position:absolute; opacity:0; width:0; height:0; }
.rep-envio-ico { width:30px; height:30px; border-radius:6px; background:var(--rep-bg); display:flex; align-items:center; justify-content:center; flex-shrink:0; transition:background 0.15s; }
.rep-envio-ico .material-symbols-outlined { font-size:18px; color:var(--rep-muted); transition:color 0.15s; }
.rep-envio-opt-body { flex:1; min-width:0; }
.rep-envio-opt-title { display:block; font-size:0.82rem; font-weight:700; color:var(--rep-text); }
.rep-envio-opt-sub { display:block; font-size:0.7rem; color:var(--rep-muted); margin-top:1px; }
.rep-envio-check { flex-shrink:0; transition:color 0.15s; }
.rep-envio-check .material-symbols-outlined { font-size:20px; }
.rep-envio-check-empty { color:#d0d0d0; display:block; }
.rep-envio-check-full { color:var(--rep-primary); display:none; font-variation-settings:"FILL" 1; }
.rep-envio-opt:hover { border-color:var(--rep-primary); background:var(--rep-primary-bg); }
.rep-envio-opt:hover .rep-envio-ico { background:var(--rep-primary-bg); }
.rep-envio-opt:hover .rep-envio-ico .material-symbols-outlined { color:var(--rep-primary); }
.rep-envio-opt.selected { border-color:var(--rep-primary); background:var(--rep-primary-bg); }
.rep-envio-opt.selected .rep-envio-ico { background:var(--rep-primary); }
.rep-envio-opt.selected .rep-envio-ico .material-symbols-outlined { color:#fff; }
.rep-envio-opt.selected .rep-envio-check-empty { display:none; }
.rep-envio-opt.selected .rep-envio-check-full { display:block; }
.rep-envio-unica { display:flex; align-items:center; gap:12px; padding:12px 14px; background:var(--rep-bg); border-radius:8px; font-size:0.88rem; }
.rep-envio-unica .material-symbols-outlined { font-size:22px; color:var(--rep-primary); flex-shrink:0; }
.rep-envio-unica-title { font-weight:700; color:var(--rep-text); }
.rep-envio-unica-sub { font-size:0.76rem; color:var(--rep-muted); }
.rep-envio-alert { display:flex; align-items:center; gap:6px; margin-top:10px; font-size:0.78rem; font-weight:600; color:#b07800; background:#fff7e0; border:1px solid #f0d060; border-radius:6px; padding:7px 12px; animation:repFi 0.2s; }
.rep-envio-alert .material-symbols-outlined { font-size:16px; flex-shrink:0; }
.rep-filter-btn { position:relative; }
.rep-fb-count { display:inline-flex; align-items:center; justify-content:center; min-width:18px; height:18px; background:var(--rep-primary); color:#fff; font-size:0.58rem; font-weight:800; border-radius:9px; padding:0 4px; margin-left:4px; line-height:1; }
.rep-filter-btn.on .rep-fb-count { background:#fff; color:var(--rep-primary); }
.rep-filter-count { display:inline-flex; align-items:center; justify-content:center; min-width:16px; height:16px; background:var(--rep-border); color:var(--rep-text2); font-size:0.58rem; font-weight:800; border-radius:8px; padding:0 4px; line-height:1; transition:all 0.15s; }
.rep-filter-btn.on .rep-filter-count, .rep-filter-btn:hover .rep-filter-count { background:var(--rep-primary); color:#fff; }
.rep-btn-clr { background:0 0 !important; color:var(--rep-muted) !important; border:1px solid var(--rep-border) !important; font-size:0.78rem !important; padding:8px 12px !important; margin-top:8px; }
.rep-btn-clr:hover:not(:disabled) { background:var(--rep-bg) !important; color:var(--rep-primary) !important; border-color:var(--rep-primary) !important; }
.rep-btn-clr .material-symbols-outlined { font-size:15px; }
.rep-envio-opts { gap:8px; }
@media (max-width:480px) {
  .rep-envio-opt { padding:8px 10px; }
  .rep-envio-opt-title { font-size:0.78rem; }
  .rep-envio-opt-sub { font-size:0.68rem; }
  .rep-envio-ico { width:28px; height:28px; }
}
.rep-guia-perfil-btn { display:flex; align-items:center; justify-content:center; gap:8px; width:100%; padding:11px 16px; margin-top:16px; background:#eff6ff; border:1px solid #bfdbfe; border-radius:8px; color:#1e40af; font-size:0.82rem; font-weight:600; text-decoration:none; cursor:pointer; transition:all 0.2s; font-family:var(--rep-f, sans-serif); text-align:center; }
.rep-guia-perfil-btn:hover { background:#dbeafe; border-color:#93c5fd; text-decoration:none; color:#1e3a8a; }
.rep-guia-perfil-btn .material-symbols-outlined { font-size:18px; color:#3b82f6; }
#rep-prof-edit-form { background:var(--rep-white, #fff); border:1px solid var(--rep-border); border-radius:var(--rep-r); padding:16px 18px 18px; margin-top:14px; box-shadow:0 1px 6px rgba(0, 0, 0, 0.06); }
#rep-prof-edit-form .rep-prof-section-title { margin-bottom:14px; padding-bottom:10px; border-bottom:1px solid var(--rep-border); font-size:0.78rem; }
#rep-prof-edit-form .rep-form-grid { display:grid; grid-template-columns:1fr 1fr; gap:0 14px; }
@media (max-width:480px) {
  #rep-prof-edit-form .rep-form-grid { grid-template-columns:1fr; }
}
#rep-prof-edit-form .rep-form-group-full { grid-column:1/-1; }
#rep-prof-edit-form .rep-edit-actions { display:flex; gap:10px; margin-top:16px; padding-top:14px; border-top:1px solid var(--rep-border); }
#rep-prof-edit-form .rep-edit-actions .rep-btn { flex:1; margin:0; padding:10px 16px; font-size:0.84rem; }
#rep-prof-edit-form .rep-edit-actions .rep-btn-cancel { flex:0 0 auto; width:40px; min-width:40px; padding:10px; background:0 0; border:1px solid var(--rep-border); border-radius:8px; cursor:pointer; display:flex; align-items:center; justify-content:center; color:var(--rep-muted); transition:all 0.15s; font-family:var(--rep-f); }
#rep-prof-edit-form .rep-edit-actions .rep-btn-cancel:hover { border-color:var(--rep-text2); color:var(--rep-text); }
#rep-prof-edit-form .rep-edit-actions .rep-btn-cancel .material-symbols-outlined { font-size:18px; }
.rep-float { position:relative; margin-bottom:14px; }
.rep-float label { position:absolute; left:12px; top:50%; transform:translateY(-50%); font-size:0.88rem; font-weight:500; color:var(--rep-muted); pointer-events:none; transition:all 0.18s cubic-bezier(0.4, 0, 0.2, 1); background:0 0; padding:0 2px; line-height:1; text-transform:none; letter-spacing:normal; }
.rep-float input:focus ~ label, .rep-float input:not(:placeholder-shown) ~ label, .rep-float select ~ label, .rep-float textarea:focus ~ label, .rep-float textarea:not(:placeholder-shown) ~ label { top:0; transform:translateY(-50%); font-size:0.7rem; font-weight:700; color:var(--rep-muted); background:var(--rep-white, #fff); padding:0 4px; left:10px; }
.rep-float input:focus ~ label, .rep-float select:focus ~ label, .rep-float textarea:focus ~ label { color:var(--rep-primary); }
.rep-float .rep-form-control { padding-top:14px; padding-bottom:8px; }
.rep-float textarea.rep-form-control { padding-top:18px; min-height:88px; resize:vertical; }
.rep-float select.rep-form-control { padding-top:14px; padding-bottom:8px; }
.rep-float .rep-req { color:var(--rep-primary); margin-left:1px; }
.rep-addr-card { background:var(--rep-white, #fff); border:1px solid var(--rep-border); border-radius:var(--rep-r); padding:16px; margin-top:12px; box-shadow:0 2px 10px rgba(0, 0, 0, 0.07); animation:repFi 0.2s; }
.rep-photon-wrap { position:relative; }
.rep-photon-input { width:100%; box-sizing:border-box; }
.rep-photon-drop { display:none; position:absolute; left:0; right:0; top:calc(100% + 4px); background:#fff; border:1px solid var(--rep-border); border-radius:10px; box-shadow:0 6px 20px rgba(0, 0, 0, 0.12); z-index:999; max-height:240px; overflow-y:auto; list-style:none; margin:0; padding:4px 0; }
.rep-photon-drop li { padding:10px 14px; font-size:0.85rem; color:var(--rep-text); cursor:pointer; border-bottom:1px solid var(--rep-border); line-height:1.4; }
.rep-photon-drop li:last-child { border-bottom:none; }
.rep-photon-drop li:hover { background:var(--rep-bg); }
.rep-addr-card .rep-form-grid { display:grid; grid-template-columns:1fr 1fr; gap:0 12px; }
@media (max-width:420px) {
  .rep-addr-card .rep-form-grid { grid-template-columns:1fr; }
}
.rep-addr-card .rep-edit-actions { display:flex; gap:8px; margin-top:14px; padding-top:12px; border-top:1px solid var(--rep-border); }
.rep-addr-card .rep-edit-actions .rep-btn { flex:1; margin:0; font-size:0.84rem; padding:10px; }
.rep-addr-card .rep-edit-actions .rep-btn-cancel { flex:0 0 38px; width:38px; height:38px; padding:0; border:1px solid var(--rep-border); border-radius:8px; background:0 0; cursor:pointer; display:flex; align-items:center; justify-content:center; color:var(--rep-muted); transition:all 0.15s; font-family:var(--rep-f); }
.rep-addr-card .rep-btn-cancel:hover { border-color:var(--rep-text2); color:var(--rep-text); }
.rep-addr-card .rep-btn-cancel .material-symbols-outlined { font-size:18px; }
details[open] #rep-pass-chevron { transform:rotate(180deg); }
details summary::-webkit-details-marker { display:none; }
.rep-photon-wrap label { position:absolute; left:12px; top:50%; transform:translateY(-50%); font-size:0.88rem; font-weight:500; color:var(--rep-muted); pointer-events:none; transition:all 0.18s cubic-bezier(0.4, 0, 0.2, 1); background:0 0; padding:0 2px; line-height:1; text-transform:none; letter-spacing:normal; }
.rep-photon-wrap input:focus ~ label, .rep-photon-wrap input:not(:placeholder-shown) ~ label { top:0; transform:translateY(-50%); font-size:0.7rem; font-weight:700; color:var(--rep-muted); background:var(--rep-white, #fff); padding:0 4px; left:10px; }
.rep-photon-wrap input:focus ~ label { color:var(--rep-primary); }
.rep-photon-wrap .rep-form-control { padding-top:14px; padding-bottom:8px; }
.rep-georef-input { width:100%; box-sizing:border-box; }
@media print {
  .rep-btn, .rep-btn-add, .rep-btn-del, .rep-btn-refresh, .rep-cart-side, .rep-cat-bar, .rep-ci-drag, .rep-detalle-section, .rep-envio-section, .rep-filter-bar, .rep-guia-perfil-btn, .rep-ped-pagination, .rep-profile-hero .rep-hero-logout, .rep-qb, .rep-srch-wrap, .rep-toasts { display:none !important; }
  .rep-wrap { color:#000; background:#fff; padding:0; font-size:11pt; }
  .rep-ped-detail { display:block !important; }
  .rep-ped-card { box-shadow:none; border:1px solid #ccc; margin-bottom:12pt; break-inside:avoid; }
  .rep-ped-head { cursor:default; }
  .rep-chevron { display:none; }
  .rep-estat { border:1px solid #999; }
  .rep-cart-list { box-shadow:none; }
  .rep-ci { border-bottom:1px solid #eee; }
  .rep-prof-summary { box-shadow:none; border:1px solid #ccc; }
}
/* ── Skeleton loading (cards fantasma mientras carga el catálogo) ── */
@keyframes rep-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.rep-prod-card.rep-sk {
  pointer-events: none;
  box-shadow: none;
  border: 1.5px solid #eee;
}
.rep-sk-img {
  padding-top: 85%;
  background: linear-gradient(90deg, #f0f0f0 25%, #e4e4e4 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: rep-shimmer 1.4s infinite;
}
.rep-prod-body:has(.rep-sk-line) {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.rep-sk-line {
  height: 10px;
  border-radius: 4px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e4e4e4 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: rep-shimmer 1.4s infinite;
  width: 100%;
}
.rep-sk-short { width: 45%; }
.rep-sk-mid   { width: 65%; }

/* ── Recuperar contraseña ─────────────────────────── */
.rep-rp-card { width:100%; max-width:420px; margin:0 auto; background:var(--rep-white); border:1px solid var(--rep-border); border-radius:14px; box-shadow:var(--rep-sh); padding:32px 28px; text-align:center; }
.rep-rp-card h2 { font-size:1.2rem; font-weight:700; margin:6px 0 8px; color:var(--rep-text); }
.rep-rp-card form { text-align:left; margin-top:18px; }
.rep-rp-card .rep-btn { width:100%; justify-content:center; text-decoration:none; }
.rep-rp-ico { font-size:44px; color:var(--rep-primary); }
.rep-rp-ico--ok { color:#1a7a45; }
.rep-rp-ico--err { color:#b42318; }
.rep-rp-intro { font-size:.9rem; color:var(--rep-text2); line-height:1.6; margin:0 0 6px; }
.rep-rp-pie { font-size:.8rem; color:var(--rep-muted); margin-top:16px; text-align:center; }
.rep-rp-pie a { color:var(--rep-primary); }
.rep-rp-msg { font-size:.85rem; border-radius:8px; padding:10px 12px; margin:0 0 14px; text-align:left; }
.rep-rp-msg--err { background:#ffeaea; color:#b42318; }

/* ══════════════════════════════════════════════════════
   Mejoras UX — tienda, carrito, avisos (v5.1)
   --rep-bnav-h: alto de la barra inferior del theme en celular (0 si no hay)
══════════════════════════════════════════════════════ */

/* Saludo compacto en la tienda */
.rep-tienda-hola { margin:4px 0 14px; font-size:1rem; color:var(--rep-text2); }
.rep-tienda-hola strong { color:var(--rep-text); }

/* Categoría en las tarjetas: discreta, el protagonista es el precio */
.rep-prod-cat { color:var(--rep-muted); }

/* Cantidad escribible (tarjetas, ficha y carrito) */
.rep-qty-n, .rep-qty-input { -moz-appearance:textfield; appearance:textfield; border:none; outline:none; min-width:0; width:44px; height:34px; padding:0; text-align:center; font:700 0.95rem var(--rep-f); color:var(--rep-text); background:var(--rep-white); }
.rep-qty-n::-webkit-outer-spin-button, .rep-qty-n::-webkit-inner-spin-button,
.rep-qty-input::-webkit-outer-spin-button, .rep-qty-input::-webkit-inner-spin-button { -webkit-appearance:none; margin:0; }
.rep-qty-n:focus, .rep-qty-input:focus { background:var(--rep-primary-bg); }
.rep-ci-qctrl .rep-qty-input { width:44px; height:30px; border:1.5px solid var(--rep-border); border-radius:6px; }

/* Botones +/− cómodos para el dedo en pantallas táctiles */
@media (pointer:coarse), (max-width:799px) {
  .rep-qty-ctrl .rep-qb { width:40px; height:40px; }
  .rep-qty-n { height:40px; }
  .rep-ci-qctrl { gap:6px; }
  .rep-ci-qctrl .rep-qb { width:36px; height:36px; font-size:1rem; }
  .rep-ci-qctrl .rep-qty-input { height:36px; width:48px; }
  .rep-btn-del { min-width:36px; min-height:36px; }
}

/* Motivo por el que "Confirmar" está deshabilitado */
.rep-co-hint { margin:8px 0 0; font-size:0.78rem; color:var(--rep-text2); text-align:center; line-height:1.4; }
.rep-co-hint[hidden] { display:none !important; }

/* Carrito en celular: barra fija con total + Confirmar, arriba de la barra inferior */
.rep-btn-vaciar-m { display:none; }
@media (max-width:799px) {
  .rep-sc-carrito { padding-bottom:calc(120px + var(--rep-bnav-h, 0px)); }
  .rep-sc-carrito .rep-cart-btns { position:fixed; left:0; right:0; bottom:var(--rep-bnav-h, 0px); z-index:250; margin:0; padding:10px 16px max(10px, calc(env(safe-area-inset-bottom, 0px) - var(--rep-bnav-h, 0px) + 10px)); background:var(--rep-white); border-top:1px solid var(--rep-border); box-shadow:0 -6px 20px rgba(0,0,0,0.08); align-items:center; flex-wrap:wrap; gap:6px 12px; }
  .rep-sc-carrito .rep-cart-btns .rep-btn { flex:0 0 auto; width:auto; padding:12px 18px; margin:0; }
  .rep-mbar-info { flex:1; min-width:0; display:flex; flex-direction:column; line-height:1.25; }
  .rep-mbar-total { font-size:1.15rem; font-weight:800; color:var(--rep-text); }
  .rep-mbar-count { font-size:0.74rem; color:var(--rep-muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .rep-co-hint--m { flex-basis:100%; margin:0; text-align:right; }
  .rep-btn-vaciar-m { display:flex; width:max-content; align-items:center; gap:6px; margin:16px auto 0; padding:8px 12px; background:none; border:none; color:var(--rep-muted); font:600 0.82rem var(--rep-f); cursor:pointer; }
  .rep-btn-vaciar-m .material-symbols-outlined { font-size:18px; }
  .rep-sc-carrito:has(.rep-cart-empty[style*="flex"]) .rep-btn-vaciar-m { display:none; }
}

/* Barra de total en la tienda (celular) */
.rep-tbar { display:none; }
@media (max-width:799px) {
  .rep-tbar:not([hidden]) { position:fixed; left:12px; right:12px; bottom:calc(var(--rep-bnav-h, 0px) + 10px); z-index:250; display:flex; align-items:center; gap:12px; padding:12px 16px; border-radius:14px; background:var(--rep-primary); color:#fff; text-decoration:none; box-shadow:0 8px 24px rgba(0,0,0,0.22); animation:repTbarIn 0.22s ease-out; }
  .rep-tbar:hover { color:#fff; text-decoration:none; }
  .rep-tbar > .material-symbols-outlined { font-size:24px; }
  .rep-tbar-info { flex:1; min-width:0; display:flex; flex-direction:column; line-height:1.2; }
  .rep-tbar-info strong { font-size:1.05rem; }
  .rep-tbar-info span { font-size:0.74rem; opacity:0.85; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .rep-tbar-cta { display:flex; align-items:center; gap:4px; font-weight:700; font-size:0.88rem; white-space:nowrap; }
  .rep-tbar-cta .material-symbols-outlined { font-size:18px; }
  body.rep-has-cartbar .rep-sc-tienda { padding-bottom:calc(90px + var(--rep-bnav-h, 0px)); }
}
@keyframes repTbarIn { from { transform:translateY(16px); opacity:0; } to { transform:none; opacity:1; } }

/* Avisos: arriba de la barra inferior y de las barras fijas, nunca tapándolas */
.rep-toasts { bottom:calc(var(--rep-bnav-h, 0px) + 16px); }
@media (max-width:799px) {
  body.rep-has-cartbar .rep-toasts { bottom:calc(var(--rep-bnav-h, 0px) + 86px); }
  body:has(.rep-sc-carrito .rep-cart-btns[style*="flex"]) .rep-toasts { bottom:calc(var(--rep-bnav-h, 0px) + 92px); }
}

/* ── Mis Pedidos: acciones y celular ─────────────────── */
.rep-ped-acciones { display:flex; flex-wrap:wrap; gap:10px; margin-top:14px; }
.rep-ped-acciones .rep-btn-cancel-ped { margin-top:0; }
.rep-btn-repetir { display:inline-flex; align-items:center; gap:6px; padding:8px 16px; border:none; border-radius:6px; background:var(--rep-primary); color:#fff; font:700 0.82rem var(--rep-f); cursor:pointer; transition:background 0.15s; }
.rep-btn-repetir:hover { background:var(--rep-primary-d); }
.rep-btn-repetir:disabled { opacity:0.6; cursor:wait; }
.rep-btn-repetir .material-symbols-outlined { font-size:17px; }
.rep-ped-id { white-space:nowrap; }

@media (max-width:560px) {
  /* Encabezado en dos filas: número y total arriba; fecha y estado abajo */
  .rep-ped-head { grid-template-columns:1fr auto 24px; grid-template-areas:"id total chev" "id estado chev"; row-gap:6px; column-gap:10px; }
  .rep-ped-col-id { grid-area:id; }
  .rep-ped-col-total { grid-area:total; }
  .rep-ped-col-estado { grid-area:estado; justify-self:end; align-items:flex-end; }
  .rep-ped-col-chevron { grid-area:chev; }
  /* Productos: nombre arriba, cantidad × precio = subtotal abajo (sin columnas apretadas) */
  .rep-ped-items-hdr .rep-ped-hdr-right { display:none; }
  .rep-ped-item { flex-direction:column; align-items:stretch; gap:4px; }
  .rep-ped-item-right { justify-content:space-between; gap:8px; font-size:0.82rem; }
  .rep-ped-iqty { color:var(--rep-text2); }
  .rep-ped-iunit { flex:1; color:var(--rep-muted); }
  .rep-ped-acciones > button { flex:1 1 auto; justify-content:center; white-space:nowrap; padding-left:12px; padding-right:12px; }
}

/* ── Ítem del carrito: título protagonista, un solo monto (v5.1.1) ── */
.rep-cart-list .rep-ci { align-items:flex-start; gap:12px; }
.rep-ci .rep-ci-drag { align-self:center; }
.rep-ci-img, .rep-ci > .rep-ci-modal-trigger { width:64px !important; height:64px !important; }
.rep-ci-body { flex:1; min-width:0; display:flex; flex-direction:column; gap:4px; }
.rep-ci-head { display:flex; align-items:flex-start; gap:8px; }
.rep-ci-head .rep-ci-nom { flex:1; min-width:0; margin:0; font-size:0.95rem; font-weight:700; line-height:1.3; color:var(--rep-text); -webkit-line-clamp:2; line-clamp:2; cursor:pointer; }
.rep-ci-head .rep-ci-nom:hover { color:var(--rep-primary); }
.rep-ci-head .rep-btn-del { flex-shrink:0; margin:-4px -6px 0 0; }
.rep-ci-meta { gap:6px; }
.rep-ci-meta .rep-ci-sku { font-size:0.72rem; }
.rep-ci-meta .rep-ci-precio { font-size:0.75rem; font-weight:500; color:var(--rep-text2); }
.rep-ci-meta .rep-ci-precio::before { content:"·"; margin-right:6px; color:var(--rep-muted); }
.rep-ci-foot { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:4px; }
.rep-ci-foot .rep-ci-sub { font-size:1rem; font-weight:800; color:var(--rep-text); white-space:nowrap; }
@media (max-width:400px) {
  .rep-cart-list .rep-ci { gap:8px; padding:12px 10px; }
  .rep-ci-img, .rep-ci > .rep-ci-modal-trigger { width:52px !important; height:52px !important; }
  .rep-ci .rep-ci-drag { display:none; }
}
/* Código y precio unitario, chicos, sobre el subtotal (v5.1.3) */
.rep-ci-foot { align-items:flex-end; }
.rep-ci-total { display:flex; flex-direction:column; align-items:flex-end; gap:1px; min-width:0; text-align:right; }
.rep-ci-total .rep-ci-meta { gap:4px; justify-content:flex-end; flex-wrap:nowrap; white-space:nowrap; }
.rep-ci-total .rep-ci-sku, .rep-ci-total .rep-ci-precio { font-size:0.68rem; line-height:1.3; }
.rep-ci-total .rep-ci-precio::before { margin-right:4px; }
.rep-ci-head { margin-bottom:2px; }
/* Espacios más compactos y montos largos (v5.1.4) */
.rep-ci-body { gap:0; }
.rep-ci-head { margin-bottom:0; }
.rep-ci-head .rep-ci-nom { line-height:1.25; }
.rep-ci-head .rep-btn-del { margin-top:-6px; }
/* Si el subtotal (6, 7 o más dígitos) no entra junto a la cantidad, baja a la línea siguiente alineado a la derecha */
.rep-ci-foot { flex-wrap:wrap; row-gap:4px; margin-top:2px; }
.rep-ci-total { margin-left:auto; max-width:100%; }
.rep-ci-total .rep-ci-meta { flex-wrap:wrap; white-space:normal; }
.rep-ci-foot .rep-ci-sub { font-variant-numeric:tabular-nums; }

/* ══ Ítem del carrito — disposición final (v5.1.5) ═════════════
   Fila 1: [arrastrar] [imagen] [título · ✕]
   Fila 2: [arrastrar] [cantidad ............ código · c/u / SUBTOTAL]  ← ocupa todo el ancho
   Así los montos grandes tienen lugar sin chocar con la cantidad. */
.rep-cart-list .rep-ci {
  display:grid; grid-template-columns:auto 56px minmax(0,1fr);
  grid-template-areas:"drag img head" "drag foot foot";
  column-gap:12px; row-gap:8px; align-items:start;
}
.rep-cart-list .rep-ci > .rep-ci-drag { grid-area:drag; align-self:center; }
.rep-cart-list .rep-ci > .rep-ci-img,
.rep-cart-list .rep-ci > div.rep-ci-modal-trigger { grid-area:img; width:56px !important; height:56px !important; }
.rep-cart-list .rep-ci > .rep-ci-head { grid-area:head; align-self:center; display:flex; align-items:flex-start; gap:8px; margin:0; }
.rep-cart-list .rep-ci > .rep-ci-foot { grid-area:foot; display:flex; align-items:flex-end; justify-content:space-between; gap:12px; margin:0; flex-wrap:nowrap; }
.rep-cart-list .rep-ci-head .rep-btn-del { margin:-6px -6px 0 0; }
.rep-cart-list .rep-ci-total { margin-left:auto; min-width:0; display:flex; flex-direction:column; align-items:flex-end; gap:1px; text-align:right; }
.rep-cart-list .rep-ci-total .rep-ci-meta { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:0 4px; white-space:nowrap; }
.rep-cart-list .rep-ci-sub { font-size:1.05rem; font-weight:800; white-space:nowrap; font-variant-numeric:tabular-nums; letter-spacing:-0.01em; }
@media (max-width:400px) {
  .rep-cart-list .rep-ci { grid-template-columns:48px minmax(0,1fr); grid-template-areas:"img head" "foot foot"; column-gap:10px; padding:12px; }
  .rep-cart-list .rep-ci > .rep-ci-drag { display:none; }
  .rep-cart-list .rep-ci > .rep-ci-img,
  .rep-cart-list .rep-ci > div.rep-ci-modal-trigger { width:48px !important; height:48px !important; }
}
/* Quitar (✕): siempre en la esquina, fuera del flujo del título */
.rep-cart-list .rep-ci { position:relative; }
.rep-cart-list .rep-ci-head { padding-right:30px; }
.rep-cart-list .rep-ci-head .rep-btn-del { position:absolute; top:8px; right:6px; margin:0; }
/* Pantallas anchas: todo en una sola fila — imagen · título · cantidad · montos · ✕ */
@media (min-width:640px) {
  .rep-cart-list .rep-ci { grid-template-columns:auto 56px minmax(0,1fr) auto; grid-template-areas:"drag img head foot"; align-items:center; padding-right:48px; }
  .rep-cart-list .rep-ci > .rep-ci-head { padding-right:0; }
  .rep-cart-list .rep-ci > .rep-ci-foot { gap:20px; align-items:center; }
  .rep-cart-list .rep-ci-total { width:190px; min-width:0; } /* ancho fijo: las cantidades quedan alineadas entre productos */
  .rep-cart-list .rep-ci-head .rep-btn-del { top:50%; transform:translateY(-50%); right:10px; }
}
@media (min-width:768px) { :where(:root) { --rep-gutter:24px; } }

/* ── Pesos y dólares en el mismo carrito ── */
.rep-cart-total { white-space:pre-line; }
.rep-sc-carrito .rep-trow.grand { align-items:flex-start; }
.rep-sc-carrito .rep-trow.grand .rep-cart-total { text-align:right; }
.rep-cart-monedas { margin:10px 0 0; padding:9px 12px; border-radius:8px; background:#fff8e5; border:1px solid #f0d878; color:#6b5200; font-size:.82rem; line-height:1.45; }
.rep-cart-monedas[hidden] { display:none; }
.rep-cart-monedas--m { display:none; margin:12px 0 0; }
@media (max-width:799px) {
  .rep-cart-monedas--m:not([hidden]) { display:block; }
  .rep-sc-carrito .rep-mbar-total { line-height:1.2; }
  .rep-cart-mixto .rep-mbar-total { font-size:.95rem; }
}
[data-rep-cart-total] { white-space:pre-line; line-height:1.15; }

/* Checkbox y radio nativos en rojo */
input[type=checkbox], input[type=radio] { accent-color: #cc1b1b; }

/* ── App instalable / sin conexión ── */
.rep-pwa-box { display:flex; align-items:center; gap:12px; padding:12px 14px; margin-bottom:20px; border:1px solid var(--rep-border); border-radius:var(--rep-r); background:var(--rep-primary-bg); }
.rep-pwa-box[hidden] { display:none; }
.rep-pwa-zona { margin-top:24px; }
.rep-pwa-zona:not(:has(.rep-pwa-box:not([hidden]))) { display:none; }
.rep-pwa-zona .rep-pwa-box { margin-bottom:14px; }
.rep-pwa-box > .material-symbols-outlined { color:var(--rep-primary); font-size:24px; flex-shrink:0; }
.rep-pwa-txt { flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; font-size:0.78rem; color:var(--rep-muted); line-height:1.4; }
.rep-pwa-txt strong { font-size:0.86rem; color:var(--rep-text); }
.rep-pwa-txt [hidden] { display:none; }
.rep-pwa-btn { flex-shrink:0; padding:9px 18px; border:none; border-radius:var(--rep-r); background:var(--rep-primary); color:#fff; font-family:var(--rep-f); font-size:0.84rem; font-weight:700; cursor:pointer; }
.rep-pwa-btn[hidden] { display:none; }
/* 5.4.54 · Celular: ícono y texto arriba, botón abajo a todo el ancho (antes, 3 columnas apretadas) */
@media (max-width:600px) {
  .rep-pwa-box { display:grid; grid-template-columns:auto 1fr; align-items:start; gap:2px 12px; padding:14px; }
  .rep-pwa-box > .material-symbols-outlined { margin-top:1px; }
  .rep-pwa-txt { font-size:0.8rem; }
  .rep-pwa-btn { grid-column:1 / -1; width:100%; margin-top:12px; padding:11px 18px; }
}
.rep-offline-bar { display:flex; align-items:center; gap:8px; margin:0 0 12px; padding:10px 14px; border-radius:var(--rep-r); background:#fff4e5; color:#663c00; border:1px solid #ffd8a8; font-size:0.82rem; line-height:1.4; }
.rep-offline-bar[hidden] { display:none; }
.rep-offline-bar .material-symbols-outlined { font-size:18px; flex-shrink:0; }
.rep-offline-btn { margin-left:auto; flex-shrink:0; padding:6px 14px; border:none; border-radius:8px; background:#663c00; color:#fff; font-family:var(--rep-f); font-size:0.78rem; font-weight:700; cursor:pointer; text-decoration:none; }
/* ── Pedidos armados sin conexión ── */
.rep-cola { margin:0 0 12px; border:1px solid var(--rep-primary); border-radius:var(--rep-r); background:var(--rep-primary-bg); overflow:hidden; }
.rep-cola-cab { display:flex; align-items:center; gap:8px; padding:10px 14px; font-size:0.86rem; font-weight:700; color:var(--rep-text); }
.rep-cola-cab > .material-symbols-outlined { font-size:18px; color:var(--rep-primary); flex-shrink:0; }
.rep-cola-tit { flex:1; min-width:0; }
.rep-cola-nota { display:flex; align-items:center; flex-wrap:wrap; gap:8px; padding:8px 14px; border-top:1px solid var(--rep-border); font-size:0.78rem; color:var(--rep-muted); line-height:1.4; }
.rep-cola-item { display:flex; flex-direction:column; gap:4px; padding:12px 14px; border-top:1px solid var(--rep-border); font-size:0.84rem; color:var(--rep-text); }
.rep-cola-sub { font-size:0.76rem; color:var(--rep-muted); }
.rep-cola-est { font-size:0.82rem; }
.rep-cola-revisar .rep-cola-est, .rep-cola-error .rep-cola-est { color:#a14a00; font-weight:700; }
.rep-cola-enviado .rep-cola-est { color:#1a7a45; font-weight:700; }
.rep-cola-cambios { margin:2px 0 0; padding-left:18px; font-size:0.78rem; color:var(--rep-muted); }
.rep-cola-acc { display:flex; flex-wrap:wrap; gap:8px; margin-top:6px; }
.rep-cola-btn { padding:7px 14px; border:none; border-radius:8px; background:var(--rep-primary); color:#fff; font-family:var(--rep-f); font-size:0.78rem; font-weight:700; cursor:pointer; }
.rep-cola-btn.sec { background:transparent; color:var(--rep-text); border:1px solid var(--rep-border); }
@media print { .rep-pwa-box, .rep-offline-bar, .rep-cola { display:none !important; } }

/* Mis Pedidos para gestores y administradores (5.4.52): botón grande al panel; sus pedidos de prueba, ocultos */
.rep-gestor-panel { max-width:520px; margin:32px auto 20px; padding:36px 28px 26px; background:var(--rep-white, #fff); border:1px solid var(--rep-border); border-radius:16px; box-shadow:var(--rep-sh); text-align:center; display:flex; flex-direction:column; align-items:center; }
.rep-gestor-panel__ico { font-size:44px; color:var(--rep-primary); margin-bottom:10px; }
.rep-gestor-panel__tit { font-size:1.25rem; font-weight:700; margin:0 0 8px; color:var(--rep-text); }
.rep-gestor-panel__txt { font-size:.9rem; color:var(--rep-text2); margin:0 0 22px; line-height:1.55; }
.rep-btn.rep-gestor-panel__btn { width:auto; min-width:260px; padding:16px 30px; font-size:1.05rem; border-radius:12px; margin:0; text-decoration:none; }
.rep-btn.rep-gestor-panel__btn:hover { background:var(--rep-primary-d); color:#fff; }
.rep-gestor-panel__propios { margin-top:18px; background:none; border:0; padding:6px 8px; font:inherit; font-size:.82rem; color:var(--rep-muted); text-decoration:underline; cursor:pointer; }
.rep-gestor-panel__propios:hover { color:var(--rep-text); }
.rep-ped-propios { margin-top:8px; }
@media (max-width:480px) { .rep-gestor-panel { margin-top:16px; padding:28px 18px 20px; } .rep-btn.rep-gestor-panel__btn { min-width:0; width:100%; } }

/* ════════════════════════════════════════════════════════
   AVISOS — todos con el diseño de «Uso sin conexión» (5.4.55)
   Recuadro suave del color de acento, ícono a la izquierda, título en negrita + texto gris
   y botón sólido a la derecha. En el celular el botón baja a todo el ancho.
   Aplica a: avisos de conexión/versión/catálogo/sesión, pedidos sin enviar, cambios pendientes
   de perfil, falta de método de envío y «se generan 2 pedidos» (y la guía de uso, en el theme).
════════════════════════════════════════════════════════ */
.rep-offline-bar,
.rep-prof-pending,
.rep-envio-alert,
.rep-cart-monedas:not(.rep-cart-monedas--m):not([hidden]) {
  display:flex; align-items:center; gap:12px;
  padding:12px 14px; border:1px solid var(--rep-border); border-radius:var(--rep-r);
  background:var(--rep-primary-bg); color:var(--rep-muted);
  font-size:0.78rem; font-weight:400; line-height:1.4; text-align:left;
}
.rep-offline-bar { margin:0 0 12px; }
.rep-prof-pending { margin-top:12px; }
.rep-envio-alert { margin-top:10px; }
.rep-cart-monedas { margin:10px 0 0; }
.rep-offline-bar[hidden], .rep-cart-monedas[hidden] { display:none; }
.rep-offline-bar > .material-symbols-outlined,
.rep-prof-pending > .material-symbols-outlined,
.rep-envio-alert > .material-symbols-outlined,
.rep-cart-monedas > .material-symbols-outlined { color:var(--rep-primary); font-size:24px; flex-shrink:0; }
.rep-offline-txt, .rep-aviso-txt { flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
.rep-offline-txt strong, .rep-aviso-txt strong { font-size:0.86rem; font-weight:700; color:var(--rep-text); }
.rep-offline-txt [hidden] { display:none; }
.rep-offline-btn { margin-left:0; flex-shrink:0; padding:9px 18px; border:none; border-radius:var(--rep-r); background:var(--rep-primary); color:#fff; font-family:var(--rep-f); font-size:0.84rem; font-weight:700; cursor:pointer; text-decoration:none; text-align:center; }
.rep-offline-btn:hover { background:var(--rep-primary-d); color:#fff; }
/* Pedidos sin enviar: mismo recuadro, con las tarjetas adentro */
.rep-cola { border-color:var(--rep-border); }
.rep-cola-cab { padding:12px 14px; gap:12px; }
.rep-cola-cab > .material-symbols-outlined { font-size:24px; }
.rep-cola-cab .rep-cola-btn.sec { background:#fff; }
.rep-cola-btn { padding:9px 16px; border-radius:var(--rep-r); font-size:0.8rem; }
@media (max-width:799px) {
  .rep-cart-monedas--m:not([hidden]) { display:flex; align-items:center; gap:12px; padding:12px 14px; border:1px solid var(--rep-border); border-radius:var(--rep-r); background:var(--rep-primary-bg); color:var(--rep-muted); font-size:0.78rem; line-height:1.4; }
  .rep-cart-monedas--m > .material-symbols-outlined { color:var(--rep-primary); font-size:24px; flex-shrink:0; }
}
@media (max-width:600px) {
  .rep-offline-bar { display:grid; grid-template-columns:auto 1fr; align-items:start; gap:2px 12px; padding:14px; }
  .rep-offline-bar[hidden] { display:none; }
  .rep-offline-bar > .material-symbols-outlined { margin-top:1px; }
  .rep-offline-btn { grid-column:1 / -1; width:100%; margin-top:12px; padding:11px 18px; box-sizing:border-box; }
  .rep-cola-acc .rep-cola-btn { flex:1 1 auto; }
}

/* ── Recuperar contraseña (5.4.63): mismo diseño que el ingreso (wp-login.php) ── */
.rep-wrap.rep-sc-recuperar { display:block; min-height:0; padding:24px 16px; max-width:none; }
.rep-sc-recuperar .rep-rp-marco { width:100%; max-width:380px; margin:0 auto; box-sizing:border-box; text-align:center; }
.rep-sc-recuperar .rep-rp-logo { display:flex; align-items:center; justify-content:center; width:100%; max-width:280px; height:92px; margin:0 auto 20px; padding:14px 26px; box-sizing:border-box; background:#1a1a1a; border-radius:14px; box-shadow:0 4px 18px rgba(0,0,0,.12); text-decoration:none; }
.rep-sc-recuperar .rep-rp-logo img { display:block; margin:0 auto; width:auto; max-width:100%; max-height:100%; height:auto; }
.rep-sc-recuperar .rep-rp-logo span { font-size:1.4rem; font-weight:700; color:#fff; }
/* Con logo para fondo claro (5.5.05): sin placa */
.rep-sc-recuperar .rep-rp-logo--claro { height:84px; padding:0; background:none; box-shadow:none; border-radius:0; }
.rep-sc-recuperar .rep-rp-lema { margin:0 0 12px; color:#555; font-size:.9rem; line-height:1.5; }
.rep-sc-recuperar .rep-rp-card { max-width:none; border:none; border-radius:14px; box-shadow:0 4px 24px rgba(0,0,0,.08); padding:28px 24px 24px; background:#fff; }
.rep-sc-recuperar .rep-rp-card form { margin-top:0; }
.rep-sc-recuperar .rep-rp-card h2 { margin-top:8px; }
/* Etiqueta fija arriba del campo (como en el ingreso), no flotante */
.rep-sc-recuperar .rep-float { display:flex; flex-direction:column-reverse; margin-bottom:16px; }
.rep-sc-recuperar .rep-float label, .rep-sc-recuperar .rep-float input:focus ~ label, .rep-sc-recuperar .rep-float input:not(:placeholder-shown) ~ label {
  position:static; transform:none; pointer-events:auto; background:none; padding:0; margin:0 0 6px; text-align:left; line-height:1.4;
  font-size:.86rem; font-weight:600; color:#333; }
.rep-sc-recuperar .rep-float input:focus ~ label { color:#333; }
.rep-sc-recuperar .rep-form-control, .rep-sc-recuperar .rep-float .rep-form-control { box-sizing:border-box; width:100%; min-height:46px; padding:8px 12px; font-size:1rem; border:1.5px solid #e0e0e0; border-radius:10px; background:#fff; box-shadow:none; }
.rep-sc-recuperar .rep-form-control:focus { outline:none; border-color:var(--rep-primary); box-shadow:0 0 0 3px color-mix(in srgb, var(--rep-primary) 18%, transparent); }
.rep-sc-recuperar .rep-btn { min-height:46px; padding:0 18px; border-radius:10px; font-size:.95rem; margin-top:4px; }
/* Enlaces de abajo (5.5.04), iguales al ingreso: acción secundaria en color; «Volver a…» chico, gris y separado */
.rep-sc-recuperar .rep-rp-enlaces { display:flex; flex-direction:column; align-items:center; gap:0; margin:20px 0 0; }
.rep-sc-recuperar .rep-rp-enlaces a { display:inline-flex; align-items:center; gap:6px; text-decoration:none; }
.rep-sc-recuperar .rep-rp-enlaces a:not(.rep-rp-sec) { padding:8px 14px; border-radius:8px; color:var(--rep-primary); font-size:.88rem; font-weight:600; transition:background .15s; }
.rep-sc-recuperar .rep-rp-enlaces a:not(.rep-rp-sec):hover, .rep-sc-recuperar .rep-rp-enlaces a:not(.rep-rp-sec):focus-visible { background:color-mix(in srgb, var(--rep-primary) 8%, transparent); }
.rep-sc-recuperar .rep-rp-enlaces .rep-rp-sec { align-self:stretch; justify-content:center; margin-top:18px; padding-top:16px; border-top:1px solid #e3e3e3; color:#6b6b6b; font-size:.82rem; font-weight:500; }
.rep-sc-recuperar .rep-rp-enlaces a.rep-rp-sec:first-child { margin-top:0; }
.rep-sc-recuperar .rep-rp-enlaces .rep-rp-sec:hover, .rep-sc-recuperar .rep-rp-enlaces .rep-rp-sec:focus-visible { color:#1a1a1a; }
.rep-sc-recuperar .rep-rp-sec svg { width:16px; height:16px; flex-shrink:0; }
@media (max-width:640px) { .rep-wrap.rep-sc-recuperar { min-height:0; } .rep-sc-recuperar .rep-rp-card { padding:26px 20px 22px; } }
/* Texto de ayuda en una sola línea (en celulares angostos vuelve a partirse para no desbordar) */
@media (min-width:480px) { .rep-sc-recuperar .rep-rp-lema { white-space:nowrap; width:max-content; margin-left:50%; transform:translateX(-50%); } }

/* Aviso «Agregado al carrito» (5.4.67): compacto, nombre en una línea, sin repetir «Ver carrito» si ya está la barra */
.rep-tm-txt { display:flex; flex-direction:column; min-width:0; gap:1px; }
.rep-tm-txt strong { font-weight:700; font-size:.85rem; line-height:1.3; }
.rep-tm-sub { font-size:.78rem; opacity:.75; line-height:1.3; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.rep-tm-link { max-width:min(360px, calc(100vw - 32px)); padding:9px 14px 9px 10px; }
.rep-tm-action { margin-left:6px; font-size:.78rem; opacity:.8; white-space:nowrap; flex-shrink:0; }
@media (max-width:799px) { body.rep-has-cartbar .rep-tm-action { display:none; } }

/* Cantidades con unidad (productos que se piden en fracciones: metros, kilos…) */
.rep-prod-unit { font-weight:600; font-size:0.78rem; color:var(--rep-muted); }
.rep-qty-u { font-size:0.72rem; font-weight:600; color:var(--rep-muted); }
.rep-ci-qctrl .rep-qty-u { min-width:0; font-size:0.72rem; font-weight:600; }
