/* Listo Dist · agregados a la base de Listo Krom (solo para las maquetas) */
.ld-role { display: flex; align-items: center; gap: 8px; margin: 0; }
.ld-role .form-select { width: auto; min-width: 118px; }
.ld-shoe { display: block; width: 100%; height: auto; }
.ld-thumb { width: 64px; height: 40px; flex: none; border-radius: 8px; background: var(--fe-bg); display: grid; place-items: center; padding: 3px; }
.ld-thumb-lg { width: 100%; aspect-ratio: 2 / 1; height: auto; border-radius: 12px; padding: 12px; }
.ld-dot { width: 14px; height: 14px; border-radius: 50%; display: inline-block; border: 1px solid rgba(0,0,0,.15); vertical-align: -2px; }
.ld-muted { color: var(--fe-text-muted); }
.ld-num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ld-cost { color: var(--fe-violet); }
body.no-cost .ld-cost, body.no-cost .ld-cost-col { display: none !important; }

/* Grilla color × talle */
.ld-grid { border-collapse: separate; border-spacing: 4px; width: 100%; }
.ld-grid th { font-size: 12px; font-weight: 600; color: var(--fe-text-muted); text-align: center; padding: 2px 4px; white-space: nowrap; }
.ld-grid th.ld-grid-color { text-align: left; min-width: 120px; }
.ld-grid td { text-align: center; padding: 0; }
.ld-cell { min-width: 44px; height: 40px; border-radius: 8px; background: var(--fe-green-bg); color: var(--fe-green); font-weight: 600; display: grid; place-items: center; font-size: 13px; }
.ld-cell.low { background: var(--fe-orange-bg); color: var(--fe-orange); }
.ld-cell.zero { background: var(--fe-gray-bg); color: var(--fe-text-muted); font-weight: 400; }
.ld-cell small { display: block; font-size: 10px; font-weight: 500; line-height: 1; opacity: .8; }
.ld-qty { width: 48px; height: 40px; text-align: center; padding: 0; font-weight: 600; }
.ld-qty.on { border-color: var(--fe-blue-600); background: var(--fe-blue-50); }
.ld-scroll { overflow-x: auto; }

/* Pedido */
.ld-order { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; align-items: start; }
.ld-models { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ld-model-btn { border: 1px solid var(--fe-border); background: #fff; border-radius: 12px; padding: 10px; text-align: left; transition: border-color .12s; }
.ld-model-btn:hover, .ld-model-btn.on { border-color: var(--fe-blue-600); box-shadow: 0 0 0 2px var(--fe-blue-100); }
.ld-model-btn .n { font-weight: 600; font-size: 13px; margin-top: 6px; }
.ld-model-btn .p { font-size: 12px; color: var(--fe-text-muted); }
.ld-cart { position: sticky; top: 80px; }
.ld-cart-line { border-bottom: 1px solid var(--fe-border); padding: 10px 0; }
.ld-sizes { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.ld-sizes span { font-size: 11px; background: var(--fe-bg); border-radius: 6px; padding: 1px 6px; }
.ld-total { font-size: 26px; font-weight: 700; }
.ld-eq { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.ld-eq div { background: var(--fe-bg); border-radius: 8px; padding: 6px 8px; font-size: 12px; }
.ld-eq b { display: block; font-size: 13px; white-space: nowrap; }

/* Línea de tiempo del contenedor */
.ld-steps { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-top: 10px; }
.ld-steps div { height: 6px; border-radius: 3px; background: var(--fe-gray-bg); }
.ld-steps div.done { background: var(--fe-blue-600); }
.ld-steps div.now { background: var(--fe-orange); }
.ld-steps-l { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; font-size: 10.5px; color: var(--fe-text-muted); margin-top: 4px; }

/* Barras simples */
.ld-bar { height: 8px; border-radius: 4px; background: var(--fe-gray-bg); overflow: hidden; }
.ld-bar > div { height: 100%; background: var(--fe-blue-600); border-radius: 4px; }
.ld-bars { display: flex; align-items: flex-end; gap: 8px; height: 160px; padding-top: 8px; }
.ld-bars .c { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; }
.ld-bars .b { width: 100%; max-width: 44px; display: flex; flex-direction: column-reverse; border-radius: 6px 6px 0 0; overflow: hidden; }
.ld-bars .b span { display: block; }
.ld-bars .l { font-size: 11px; color: var(--fe-text-muted); }

/* WhatsApp */
.ld-phone { max-width: 360px; margin: 0 auto; background: #e5ddd5; border-radius: 28px; padding: 16px 12px; border: 8px solid #111827; }
.ld-bubble { background: #fff; border-radius: 10px; padding: 8px; margin-bottom: 10px; font-size: 13px; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.ld-bubble .ld-thumb-lg { background: #f3f4f6; }

/* Revisión */
.ld-review { border: 2px dashed var(--fe-border-strong); border-radius: 12px; padding: 14px 16px; margin-top: 24px; background: #fff; }
.ld-review.ok { border-color: var(--fe-green); background: var(--fe-green-bg); }
.ld-review.chg { border-color: var(--fe-orange); background: var(--fe-orange-bg); }
.ld-review textarea { font-size: 14px; }

@media (max-width: 1199.98px) { .ld-order { grid-template-columns: minmax(0, 1fr); } .ld-cart { position: static; } }
@media (max-width: 575.98px) { .ld-role .form-select { min-width: 0; } .ld-eq { grid-template-columns: minmax(0, 1fr); } .ld-steps-l { display: none; } }

.fe-quick a.fe-quick-btn { text-decoration: none; color: inherit; }
.fe-quick a.fe-quick-btn.primary { color: #fff; }
.ld-search { position: relative; }
.ld-search > i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--fe-text-muted); }
.ld-search > input { padding-left: 36px; }

/* Cobro en varias monedas */
.ld-payrow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) 110px; gap: 10px; align-items: start; margin-bottom: 10px; }
.ld-payrow-l { display: flex; flex-direction: column; padding-top: 6px; }
.ld-payrow [data-eq] { padding-top: 10px; }
.ld-fill { display: block; border: 0; background: none; padding: 3px 0 0; font-size: 12.5px; color: var(--fe-blue-600); font-weight: 600; text-align: right; width: 100%; }
.ld-fill:hover { text-decoration: underline; }
.ld-left { border-top: 1px solid var(--fe-border); padding-top: 10px; }
@media (max-width: 575.98px) { .ld-payrow { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); } .ld-payrow [data-eq] { grid-column: 2; padding-top: 0; } }

/* Arqueo por moneda: una fila por moneda que entra en cualquier ancho */
.ld-arq-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) 170px; gap: 12px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--fe-border); }
.ld-arq-row:last-child { border-bottom: 0; }
.ld-arq-m { font-weight: 700; font-size: 15px; padding-top: 14px; }
.ld-arq-d b { font-size: 17px; white-space: nowrap; }
.ld-arq-c [data-dif] { margin-top: 3px; font-weight: 600; }
@media (max-width: 575.98px) { .ld-arq-row { grid-template-columns: 48px minmax(0, 1fr); } .ld-arq-c { grid-column: 2; } }

/* Ficha de producto en el pedido (estilo tienda) */
.ld-pdp { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px; }
.ld-pdp-media { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; align-items: start; }
.ld-pdp-thumbs { display: flex; flex-direction: column; gap: 8px; }
.ld-pdp-th { border: 1px solid var(--fe-border); background: #f1f2f4; border-radius: 8px; padding: 6px 4px; height: 60px; display: grid; place-items: center; }
.ld-pdp-th.on { border: 2px solid var(--fe-blue-600); }
.ld-pdp-main { background: #f1f2f4; border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; min-height: 300px; }
.ld-pdp-main > :first-child { padding: 32px 24px 20px; margin: auto; width: 100%; max-width: 460px; box-sizing: content-box; }
.ld-pdp-th > *, .ld-pdp-color > * { width: 100%; }
.ld-pdp-band { background: #d9f99d; color: #1a2e05; text-align: center; font-weight: 700; font-size: 13px; padding: 7px 8px; }
.ld-par { position: relative; width: 100%; aspect-ratio: 2 / 1.25; }
.ld-par > div { position: absolute; width: 82%; }
.ld-par > div:first-child { left: 0; top: 0; }
.ld-par > div:last-child { right: 0; bottom: 0; transform: scaleX(-1); }
.ld-pdp-title { font-size: 22px; font-weight: 800; line-height: 1.2; margin: 0 0 4px; letter-spacing: -.3px; }
.ld-pdp-label { font-weight: 700; margin: 16px 0 8px; }
.ld-pdp-label > span { font-weight: 400; }
.ld-pdp-colors { display: flex; flex-wrap: wrap; gap: 8px; }
.ld-pdp-color { width: 72px; height: 60px; border: 1px solid var(--fe-border-strong); border-radius: 8px; background: #f1f2f4; padding: 6px; display: grid; place-items: center; }
.ld-pdp-color.on { border: 2px solid var(--fe-blue-600); box-shadow: 0 0 0 2px var(--fe-blue-100); }
.ld-pdp-sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.ld-size { position: relative; width: 50px; height: 50px; border: 1px solid var(--fe-border-strong); border-radius: 6px; background: #fff; font-weight: 700; font-size: 16px; color: var(--fe-text); }
.ld-size:hover:not(:disabled) { border-color: var(--fe-blue-600); }
.ld-size.on { border: 2px solid var(--fe-blue-600); background: var(--fe-blue-50); }
.ld-size.out { color: #b6bdc9; background: linear-gradient(to top right, transparent calc(50% - 1px), #c9cfd8 50%, transparent calc(50% + 1px)), #f7f8fa; cursor: not-allowed; }
.ld-size em { position: absolute; top: -8px; right: -8px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--fe-green); color: #fff; font-style: normal; font-size: 11px; display: grid; place-items: center; padding: 0 5px; }
.ld-pdp-buy { border: 1px solid var(--fe-border); border-radius: 12px; padding: 16px; margin-top: 18px; }
.ld-pdp-price { font-size: 30px; font-weight: 800; letter-spacing: -.5px; }
.ld-pdp-qty { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ld-feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); border: 1px solid var(--fe-border); border-radius: 12px; margin-top: 20px; }
.ld-feats > div { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 16px 8px; border-left: 1px solid var(--fe-border); }
.ld-feats > div:first-child { border-left: 0; }
.ld-feats i { font-size: 26px; color: var(--fe-text); }
.ld-feats b { font-size: 13.5px; }
.ld-feats span { font-size: 12.5px; color: var(--fe-text-2); }
.ld-quick summary { font-weight: 600; font-size: 13.5px; color: var(--fe-blue-600); cursor: pointer; }
@media (max-width: 1599.98px) { .ld-pdp { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 767.98px) { .ld-feats { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ld-feats > div:nth-child(4) { border-left: 0; } .ld-feats > div:nth-child(n+4) { border-top: 1px solid var(--fe-border); } }
@media (max-width: 575.98px) { .ld-pdp-media { grid-template-columns: minmax(0, 1fr); } .ld-pdp-thumbs { flex-direction: row; order: 2; } .ld-pdp-th { flex: 1; } .ld-pdp-main { min-height: 200px; } }

/* Fotos reales de producto */
.ld-img { display: block; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.ld-thumb .ld-img, .ld-pdp-th .ld-img, .ld-pdp-color .ld-img { max-height: 100%; }
.ld-pdp-main > .ld-img { height: 340px; padding: 24px; box-sizing: border-box; max-width: none; }
.ld-model-btn .ld-thumb { height: 96px !important; background: #f4f5f7; }
.ld-thumb-lg .ld-img { height: 160px; }
.ld-model-btn .ld-thumb { display: block; height: 110px !important; overflow: hidden; padding: 6px; }
.ld-model-btn .ld-thumb .ld-img { height: 100%; }
.ld-thumb { overflow: hidden; }
.ld-thumb:has(> .ld-img) { display: block; }
.ld-thumb > .ld-img { height: 100%; width: 100%; }

/* Buscador del pedido (diseño de Listo Sabra) */
.fe-pos-scan input { text-transform: none; }
.fe-pos-scan input:focus { border-color: var(--fe-blue-600); }
.ld-hint { font-size: 13px; margin-top: 6px; min-height: 20px; }
.ld-chip { display: inline-block; background: var(--fe-blue-100); color: var(--fe-blue-600); font-weight: 600; border-radius: 12px; padding: 1px 9px; font-size: 12px; }
.ld-tchip { display: inline-block; margin-top: 4px; background: var(--fe-green-bg); color: var(--fe-green); font-weight: 600; border-radius: 6px; padding: 1px 6px; font-size: 11.5px; }
.ld-top { position: fixed; right: 24px; bottom: 24px; z-index: 1030; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--fe-blue-600); color: #fff; font-size: 20px; box-shadow: var(--fe-shadow-lg); }
.ld-top:hover { background: #1a52a6; }
#p-cats .btn { font-weight: 500; }
.fe-search-item .ld-thumb { flex: none; padding: 2px; }

/* Pedido: cantidades editables por talle y foto emergente */
.ld-steps-cart { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ld-sz { display: inline-flex; align-items: center; gap: 2px; background: var(--fe-bg); border: 1px solid var(--fe-border); border-radius: 8px; padding: 2px; font-size: 12.5px; }
.ld-sz b { padding-left: 2px; }
.ld-sz button { width: 24px; height: 24px; border: 0; border-radius: 6px; background: #fff; color: var(--fe-blue-600); font-weight: 700; line-height: 1; }
.ld-sz button:hover { background: var(--fe-blue-100); }
.ld-sz input { width: 34px; border: 0; background: transparent; text-align: center; font-weight: 600; padding: 0; -moz-appearance: textfield; }
.ld-sz input::-webkit-inner-spin-button, .ld-sz input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.ld-cart-name { color: var(--fe-text); text-decoration: none; }
.ld-cart-name:hover { color: var(--fe-blue-600); text-decoration: underline; }
.ld-pop { position: fixed; z-index: 2000; width: 240px; background: #fff; border: 1px solid var(--fe-border); border-radius: 12px; box-shadow: var(--fe-shadow-lg); padding: 10px; pointer-events: none; animation: fe-in .12s ease; }
.ld-pop-img { background: #f4f5f7; border-radius: 8px; height: 150px; padding: 8px; }
.ld-pop-img .ld-img, .ld-pop-img .ld-shoe { height: 100%; }
@media (max-width: 767.98px) { .ld-sz button { width: 32px; height: 32px; } .ld-sz input { width: 40px; font-size: 15px; } }
