/* Sala: flat, lightweight surfaces. No new scripts, fonts or image requests. */
@media screen {
  html:has(.sala-ui) { background: #101113; }
  body.sala-ui { background: #101113 !important; color: #eeeef0; }
  .sala-ui::before, .sala-ui::after { background: none !important; }
  .sala-ui .topbar { background: #141517 !important; box-shadow: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
  .sala-ui .topbar-row { min-height: 60px; }
  .sala-ui .main { width: min(100%, 1080px); max-width: 1080px; padding: 26px 28px 48px; }
  .sala-ui .tb-title { font: 600 18px 'Barlow', sans-serif; letter-spacing: -.02em; text-transform: none; }
  .sala-ui .tb-badge { background: #303136; color: #c5c5ca; border: 0; box-shadow: none; border-radius: 4px; }
  .sala-ui :is(.card, #searchCard, #cartCard, .hw-wrap, .sent-order, .prod-shell, .vc, .stock-banner, .no-stock) { background: #1b1c20 !important; border: 0 !important; border-radius: 8px !important; box-shadow: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; animation: none !important; }
  .sala-ui :is(.card, .sent-order):hover { transform: none !important; box-shadow: none !important; }
  .sala-ui .stock-banner { padding: 16px 20px; margin-bottom: 20px; }
  .sala-ui .stock-dot { box-shadow: none; }
  .sala-ui .stock-text { font: 500 13px 'Barlow', sans-serif; letter-spacing: 0; }
  .sala-ui .stock-text.ok { color: #b1c8b9; }
  .sala-ui :is(.stock-sub, .stock-updated) { color: #a3a4ad !important; font: 400 11px/1.6 'Barlow', sans-serif; }
  .sala-ui #searchCard { padding: 20px !important; }
  .sala-ui #searchCard > div:nth-child(2) { font: 600 13px 'Barlow', sans-serif !important; letter-spacing: 0 !important; text-transform: none; }
  .sala-ui #styleInput { background: #141518 !important; border-color: #3a3b42 !important; border-radius: 5px !important; font: 400 14px 'Barlow', sans-serif !important; letter-spacing: 0 !important; min-height: 44px; }
  .sala-ui #styleInput::placeholder { color: #999aa5; }
  .sala-ui .btn { border-radius: 5px !important; font: 500 12px/1.4 'Barlow', sans-serif !important; text-transform: none; letter-spacing: 0 !important; box-shadow: none !important; }
  .sala-ui .btn-red { background: #e9e9eb !important; border-color: #e9e9eb !important; color: #17181a !important; transform: none !important; }
  .sala-ui .btn-red :is(svg, i) { stroke: currentColor !important; }
  .sala-ui .btn-red:hover { background: #fff !important; }
  .sala-ui .btn-outline-w { background: #2b2c31 !important; border-color: transparent !important; }
  .sala-ui .hw-wrap { padding: 20px; }
  .sala-ui .hw-tabs { gap: 24px; border-bottom: 1px solid #34353b; margin-bottom: 20px; }
  .sala-ui .hw-tab { padding: 0 0 14px; font: 500 14px 'Barlow', sans-serif; text-transform: none; letter-spacing: 0; color: #a3a4ae; border-bottom-color: transparent; }
  .sala-ui .hw-tab.active { color: #fff; border-bottom-color: #e1e1e6; }
  .sala-ui .hw-tab span { color: #b9bbc5 !important; }
  .sala-ui .hw-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
  .sala-ui .hw-box { padding: 16px 12px; border: 0; border-radius: 5px; background: #24252a; }
  .sala-ui .hw-box-label { font: 500 12px/1.5 'Barlow', sans-serif; text-transform: none; letter-spacing: 0; color: #c8c9d1; min-height: 18px; margin-bottom: 12px; }
  .sala-ui .hw-box-qty { gap: 8px; }
  .sala-ui .hw-big-btn { width: 36px; height: 38px; background: #303138; color: #d8d9df; border: 0; border-radius: 5px; font-size: 20px; }
  .sala-ui .hw-big-btn:hover { background: #41424a; color: #fff; }
  .sala-ui .hw-box-input { min-width: 0; height: 38px; background: transparent; border: 0; border-radius: 0 !important; font: 600 24px 'Barlow', sans-serif; color: #f0f0f3; font-variant-numeric: tabular-nums; }
  .sala-ui .hw-total-bar { border-top: 1px solid #34353b; padding-top: 18px; margin-top: 20px; gap: 14px; }
  .sala-ui .hw-total-txt { font: 500 12px 'Barlow', sans-serif; text-transform: none; color: #b1b2bc; letter-spacing: 0; }
  .sala-ui .hw-total-num { font: 600 25px 'Barlow', sans-serif; color: #f0f0f3; }
  .sala-ui .hw-group-label { font: 500 12px 'Barlow', sans-serif; color: #c4c5ce !important; text-transform: none; }
  .sala-ui .hw-sep { border-color: #34353b; }
  .sala-ui .prod-hero { background: transparent; border-bottom-color: #34353b; }
  .sala-ui .prod-name { font: 600 clamp(22px, 4vw, 30px)/1.2 'Barlow', sans-serif !important; text-transform: none; letter-spacing: -.02em; }
  .sala-ui .size-item { background: #24252a !important; border: 1px solid transparent !important; box-shadow: none !important; border-radius: 6px !important; transform: none !important; animation: none !important; }
  .sala-ui .size-item.has-qty { border-color: #aaaebd !important; background: #30323a !important; }
  .sala-ui .size-num { font-family: 'Barlow', sans-serif; }
  .sala-ui .prod-bin-badge { background: #30333d !important; color: #c3cde0; border: 0; border-radius: 5px !important; }
  .sala-ui .hbg-btn { border: 0; border-radius: 5px; background: transparent; color: #c5c6cd; }
  .sala-ui .hbg-btn:hover { background: #292a30; }
  .sala-ui .hbg-menu { background: #222327 !important; border: 0 !important; border-radius: 8px !important; padding: 8px !important; box-shadow: 0 12px 35px rgba(0,0,0,.35) !important; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .sala-ui .hbg-item { font: 500 13px 'Barlow', sans-serif; text-transform: none; letter-spacing: 0; color: #d3d4dc; border-radius: 5px !important; }
  .sala-ui .hbg-item:hover { background: #34353b; }
  .sala-ui .hbg-item[style*="display:none"], .sala-ui .hbg-item[style*="display: none"] { display: none !important; }
  .sala-ui .hbg-greeting { font-family: 'Barlow', sans-serif; text-transform: none; letter-spacing: 0; }
}
@media screen and (max-width: 600px) {
  .sala-ui .main { padding: 18px 14px 40px; }
  .sala-ui .stock-banner { align-items: flex-start; padding: 14px 16px; }
  .sala-ui .hw-wrap { padding: 16px; }
  .sala-ui .hw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .sala-ui .hw-box { padding: 14px 8px; }
  .sala-ui .hw-box-label { min-height: 36px; margin-bottom: 8px; }
  .sala-ui .hw-box-qty { gap: 4px; }
  .sala-ui .hw-big-btn { width: 32px; min-width: 32px; height: 40px; }
  .sala-ui .hw-box-input { width: 40px; font-size: 22px; }
  .sala-ui .hw-total-bar { align-items: flex-start; flex-direction: column; }
  .sala-ui .hw-actions { flex-wrap: wrap; width: 100%; gap: 10px; }
  .sala-ui .hw-actions .btn-red { flex: 1; padding: 12px !important; }
  .sala-ui #searchCard { padding: 16px !important; }
  .sala-ui #searchCard > div:nth-child(3) { flex-wrap: wrap; }
  .sala-ui #searchCard > div:nth-child(3) > div { flex-basis: 100% !important; }
  .sala-ui #searchCard > div:nth-child(3) > .btn { flex: 1; min-height: 42px; }
}
@media screen {
  .sala-ui .hw-box-label { white-space: normal; }
}
@media screen {
  .sala-ui .sala-section-heading { font: 600 16px 'Barlow', sans-serif; letter-spacing: -.01em; margin: 0; }
}
@media screen {
  .sala-ui .hw-box { background: #24252a !important; border: 0 !important; border-radius: 6px !important; box-shadow: none !important; }
  .sala-ui #hwGrandTotal { color: #f0f0f3 !important; }
}
/* Dense quantity rows with stable touch targets. */
@media screen {
  .sala-ui #salaConnBtn { color: #b7bbc1 !important; gap: 7px !important; padding: 8px 6px !important; font-size: 12px !important; }
  .sala-ui #salaConnBtn::before { display: none; }
  .sala-ui #salaConnBtn .connection-icon { color: #97b4a1; flex-shrink: 0; }
  .sala-ui #salaConnBtn.offline .connection-icon { color: #dd9696; }
  .sala-ui #salaConnBtn.reconnecting .connection-icon { color: #d9bd87; }
  .sala-ui .hw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .sala-ui #hwp_zapatillas .hw-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .sala-ui #hwp_zapatillas .hw-box { grid-column: span 2; }
  .sala-ui #hwp_zapatillas .hw-box:nth-child(n+4) { grid-column: span 3; }
  .sala-ui .hw-box { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; padding: 12px !important; min-width: 0; min-height: 68px; transition: background .12s; }
  .sala-ui .hw-box.has-qty { background: #30323a !important; }
  .sala-ui .hw-box-label { min-height: 0; margin: 0; text-align: left; flex: 1; min-width: 0; font-size: 13px; }
  .sala-ui .hw-box-qty { flex-shrink: 0; gap: 0; background: #17181c; border-radius: 6px; }
  .sala-ui .hw-big-btn { width: 40px; height: 44px; background: transparent; border-radius: 5px; }
  .sala-ui .hw-box-input { width: 42px; height: 44px; padding: 4px 0; background: transparent !important; border: 0 !important; font: 600 20px 'Barlow', sans-serif !important; }
  .sala-ui .hw-tab { min-height: 44px; }
  .sala-ui .hw-group-hd { margin: 20px 0 10px; }
  .sala-ui .hw-group-total { font: 600 15px 'Barlow', sans-serif; color: #c3c5d0; }
  .sala-ui .hw-legacy-note { color: #d1bd98; font-size: 12px; line-height: 1.5; margin: 0 0 12px; }
  .sala-ui #salaTop3Content:empty { display: none !important; }
}
@media screen and (max-width: 900px) {
  .sala-ui #hwp_zapatillas .hw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sala-ui #hwp_zapatillas .hw-box, .sala-ui #hwp_zapatillas .hw-box:nth-child(n+4) { grid-column: auto; }
  .sala-ui #hwp_zapatillas .hw-box:last-child { grid-column: 1 / -1; }
}
@media screen and (max-width: 600px) {
  .sala-ui .main { padding: 12px 12px 24px; }
  .sala-ui .stock-banner { padding: 12px 14px; margin-bottom: 12px; gap: 4px; }
  .sala-ui .stock-updated { width: 100%; padding-left: 15px; }
  .sala-ui #searchCard { padding: 14px !important; margin-bottom: 12px !important; }
  .sala-ui .hw-wrap { padding: 12px; }
  .sala-ui .hw-tabs { margin-bottom: 12px; }
  .sala-ui .hw-grid, .sala-ui #hwp_zapatillas .hw-grid { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .sala-ui .hw-box { min-height: 62px; padding: 9px 10px !important; gap: 8px; }
  .sala-ui .hw-box-label { min-height: 0; margin: 0; font-size: 13px; }
  .sala-ui .hw-big-btn { width: 42px; min-width: 42px; height: 44px; }
  .sala-ui .hw-box-input { width: 38px; }
  .sala-ui .hw-total-bar { margin-top: 12px; padding-top: 12px; gap: 8px; }
  .sala-ui .hw-total-txt { display: none; }
  .sala-ui .hw-actions { gap: 8px; }
  .sala-ui .hw-actions .btn { min-height: 44px; }
}
/* Clear operational typography and plain primary actions. */
@media screen {
  .sala-ui #appContent { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif; }
  .sala-ui #appContent :is(div, span, strong, small, label, button, input, h1, h2, h3) { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif !important; }
  .sala-ui #searchCard > div:nth-child(2) { font-size: 15px !important; font-weight: 600 !important; line-height: 1.5 !important; color: #f1f3f7 !important; text-transform: none !important; }
  .sala-ui #styleInput { font-size: 16px !important; font-weight: 500 !important; letter-spacing: .01em !important; color: #f4f5f7 !important; }
  .sala-ui #styleInput::placeholder { font-size: 14px !important; color: #b5bdca !important; opacity: 1; }
  .sala-ui #searchCard .btn { font-size: 14px !important; font-weight: 600 !important; min-height: 46px; padding: 11px 18px !important; }
  .sala-ui .btn-red { min-height: 46px; padding: 12px 22px !important; font-size: 14px !important; font-weight: 600 !important; line-height: 1.5 !important; letter-spacing: 0 !important; border-radius: 7px !important; background: #f0f2f5 !important; color: #1c2028 !important; border: 0 !important; box-shadow: none !important; justify-content: center; }
  .sala-ui .btn-red:hover { background: #fff !important; }
  .sala-ui .btn-red:active { background: #d9dfe7 !important; }
  .sala-ui .size-label { font-size: 12px !important; font-weight: 600 !important; color: #d0d5df !important; letter-spacing: .02em; }
  .sala-ui .size-num { font-size: 28px !important; font-weight: 600 !important; color: #fff; }
  .sala-ui .size-bin-chip { background: #3a495d !important; color: #f4f7ff !important; border: 0 !important; padding: 6px 10px !important; border-radius: 5px !important; font-size: 13px !important; font-weight: 600 !important; line-height: 1.4; letter-spacing: 0 !important; }
  .sala-ui .prod-bin-badge, .sala-ui .cart-bin { background: #3a495d !important; color: #f4f7ff !important; border: 0 !important; border-radius: 5px !important; font-size: 13px !important; font-weight: 600 !important; letter-spacing: 0 !important; padding: 6px 10px !important; }
  .sala-ui .prod-meta, .sala-ui .prod-kicker span, .sala-ui .cart-sc { color: #c4cbd7 !important; font-size: 13px !important; line-height: 1.5; letter-spacing: 0 !important; }
  .sala-ui .prod-name { font-weight: 600 !important; }
  .sala-ui .qty-input, .sala-ui .qty-val { color: #fff !important; font-size: 20px !important; font-weight: 600 !important; }
  .sala-ui .qty-btn { color: #e3e8f1 !important; min-height: 36px; }
  .sala-ui .cart-group-hd { font-size: 15px !important; font-weight: 600 !important; line-height: 1.5; text-transform: none; letter-spacing: 0; flex-wrap: wrap; border-bottom-color: #424650; }
  .sala-ui .cart-row { grid-template-columns: 70px max-content minmax(0, 1fr) auto; gap: 10px; padding: 12px 0; }
  .sala-ui .cart-row > div { justify-self: end; }
  .sala-ui .cart-size { font-size: 14px; font-weight: 600; color: #f2f4f8; }
  .sala-ui .del-btn { color: #c5cbd5 !important; min-width: 30px; min-height: 36px; }
  .sala-ui #cartFooter { color: #c4cbd7 !important; font-size: 13px !important; line-height: 1.6; }
  .sala-ui #cartFooter strong { color: #f3f5f8; }
  .sala-ui .hw-box-label { color: #e0e4ec !important; font-size: 13px !important; }
  .sala-ui .hw-group-label, .sala-ui .hw-total-txt { color: #d2d7e1 !important; }
  .sala-ui .hw-tab { font-size: 14px; }
}
@media screen and (max-width: 600px) {
  .sala-ui .cart-row { grid-template-columns: 48px max-content minmax(0, 1fr) 24px; gap: 6px; }
  .sala-ui .cart-bin { font-size: 12px !important; padding: 5px 7px !important; }
  .sala-ui .cart-sc { font-size: 12px !important; }
  .sala-ui .cart-row .qty-btn { width: 28px !important; }
  .sala-ui .hw-box-label { font-size: 12px !important; }
}
