/* Venta Ya Tienda · v8 aesthetic refresh.
   Presentation only: never touches checkout, payments, stock or order records.
   Works with v3–v7 POS markup and optional v4 touch-first layer. */
:root{
  --ink:#173126;--ink2:#365248;--muted:#708579;
  --paper:#f8f7f2;--card:#fffefa;--line:#e5e8e0;
  --lime:#d6f568;--green:#25834b;--darkgreen:#125536;
  --store-sol:#d6f568;--store-sol-ink:#173126;
  --shadow:0 17px 44px -34px rgba(17,49,29,.30);
}
*{scrollbar-color:#c9d9c5 transparent}
body{background:radial-gradient(ellipse at 72% -8%,#e7eedf 0%,transparent 32%),var(--paper);color:var(--ink);-webkit-tap-highlight-color:transparent}
.sidebar{background:linear-gradient(160deg,#10271e 0%,#0d2e24 63%,#10422d 100%);box-shadow:5px 0 24px -19px #0b3124;overflow-x:hidden;border-right:1px solid #ffffff14;isolation:isolate}
.sidebar::before,.sidebar::after{content:"";display:block;pointer-events:none;position:absolute;z-index:-1;width:310px;height:220px;border-radius:65%;opacity:.38;transform:rotate(-17deg)}
.sidebar::before{background:#22583a;bottom:-128px;left:-86px}.sidebar::after{background:#3e7944;bottom:-172px;left:68px}
.sidebar>*{position:relative;z-index:1}.logo{font-size:30px;gap:13px;letter-spacing:-.035em;line-height:1.06}.logo-icon{width:45px;height:45px;border-radius:14px;font-size:28px;background:var(--store-sol);color:var(--store-sol-ink);box-shadow:0 12px 22px #020d0825;flex:none}
.logo small{color:#d9e4db;font-size:10px;margin-top:7px;letter-spacing:.15em}
.store-mark{background:#ffffff08;border:1px solid #9ec1a532;border-radius:18px;box-shadow:inset 0 1px #ffffff0e;padding:15px 12px;margin-top:28px;margin-bottom:27px;min-width:0}
.store-mark strong{font-size:14px;letter-spacing:-.01em}.store-mark small{line-height:1.4;margin-top:4px;color:#b6cfbf}.store-letter{width:38px;height:38px;border-radius:12px;background:var(--store-sol);color:var(--store-sol-ink)}
.nav{gap:6px}.nav-item{transition:background-color .18s,transform .18s;min-height:50px;border-radius:13px;color:#d0e0d6;padding:12px;font-size:13px;gap:10px}
.nav-item>span:first-child{width:30px;height:30px;flex:none;display:grid;place-items:center;border-radius:9px;background:#ffffff0b;color:#c9e2cf;font-size:18px}
.nav-item:not(.active):hover{background:#ffffff12;color:#fff}.nav-item.active{background:var(--store-sol);color:var(--store-sol-ink);box-shadow:0 10px 25px -18px #001600;}
.nav-item.active>span:first-child{background:#14371f13;color:var(--store-sol-ink)}.nav-caption{color:#9dc4a8}.nav-more>summary{color:#b8d0c0}
.side-foot{margin-top:auto;padding-top:21px;border-color:#ffffff2c;color:#cae2ce;font-size:11px}.side-foot a{color:var(--store-sol);text-decoration-thickness:1px;text-underline-offset:4px}.offline-dot{box-shadow:0 0 0 4px #c2e96e12}
.main{padding:34px clamp(17px,2.5vw,43px) 85px;max-width:1740px}
.topbar{margin-bottom:24px;align-items:center}.topbar .kicker{font-size:11px;letter-spacing:.16em;color:#237f4d;font-weight:900}.topbar h1{font-size:clamp(31px,3.15vw,48px);letter-spacing:-.055em;line-height:1.06;color:#10281e;margin-top:5px}.top-hint{color:#718577;font-weight:600;margin-top:9px}
.top-actions .btn{border-radius:14px;background:#fffefa;border-color:#e4e9e1;box-shadow:0 8px 22px -19px #08230a;min-height:45px}
.top-actions .btn:hover{background:#f0f7e8}.top-actions .today{color:#819487;font-size:11px}
.notice{background:linear-gradient(125deg,#f0f9db 0%,#f2f8e8 72%,#e9f5cd 100%);border:1px solid #d4e8b4;border-radius:18px;box-shadow:0 6px 16px -20px #21582d;color:#32513b;margin-bottom:23px;padding:19px 49px 19px 62px;font-size:12px;line-height:1.65;max-width:none}
.notice::before{content:'✦';position:absolute;left:17px;top:50%;transform:translateY(-50%);width:32px;height:32px;display:grid;place-items:center;border-radius:11px;background:#dff4a0;color:#32662f;font-size:21px}
.notice b{color:#244529}.notice button{top:10px;right:13px;color:#456944;border-radius:9px;min-width:32px;min-height:32px}
.kpis{gap:15px;margin-bottom:24px}.kpi{border:1px solid #e3e9e0;border-radius:22px;box-shadow:0 20px 43px -37px #163925;background:linear-gradient(150deg,#fff,#fffefa);padding:21px 22px;min-height:116px;position:relative;overflow:hidden;display:grid!important;grid-template-columns:54px minmax(0,1fr)!important;grid-template-rows:auto auto auto;column-gap:15px;align-items:center}
.kpi::before{content:'▥';grid-column:1;grid-row:1/4;display:grid;place-items:center;width:53px;height:53px;border-radius:16px;background:#edf8de;color:#326d30;font:bold 28px Manrope,sans-serif}
.kpi:nth-child(2)::before{content:'⬡';background:#eef6e1;color:#477834;font-size:30px}.kpi:nth-child(3)::before{content:'!';background:#fff3e0;color:#aa6e18;font-size:23px;border:2px solid #ffe7c2}
.kpi span{grid-column:2!important;grid-row:1!important;font-size:12px!important;color:#607c6c;font-weight:800!important;line-height:1.35}
.kpi strong{grid-column:2!important;grid-row:2!important;justify-self:start!important;display:block;font:800 clamp(25px,2.3vw,33px)/1.15 Fraunces,Georgia,serif!important;color:#0d281b;letter-spacing:-.04em;margin:2px 0 0!important}
.kpi small{grid-column:2!important;grid-row:3!important;color:#849588;font-size:10px!important;line-height:1.5}
.checkout-layout{grid-template-columns:minmax(0,1fr) minmax(310px,355px);gap:18px;align-items:start;min-width:0}.sale-products,.checkout-layout>.sale-products>.panel{min-width:0}
.panel{border:1px solid #e3e9e0;border-radius:25px;background:#fffefa;box-shadow:0 18px 45px -38px rgba(10,38,23,.3)}
.checkout-layout .sale-products>.panel{padding:23px;min-height:505px;background:linear-gradient(180deg,#fffefa 0%,#fffefa 72%,#fdfdf9 100%)}
.quick-intro{margin-bottom:19px;gap:10px}.quick-intro h2{font-size:25px;color:#172e22}.quick-intro .eyebrow{font-size:10px;color:#40864b}.quick-add{border-radius:12px;min-height:44px}
.search-line{gap:10px;margin-bottom:19px}.search-line input{font-size:14px;min-height:56px!important;border:1px solid #dce4d9;border-radius:15px;background:#fdfefb;color:#274e3b;box-shadow:inset 0 1px 3px #17361c07;min-width:0;width:0;flex:1;padding:13px 17px}
.search-line input::placeholder{font-weight:600;color:#879b8c}.search-line input:focus{border-color:#7da76b;outline:3px solid #d6f56855}
.search-line .btn{min-height:56px!important;border-radius:14px;background:#e5f49e;border-color:#d6efa0;color:#244225;font-size:12px;box-shadow:none;padding:11px 17px}.search-line .btn:hover{background:#d6f568}
.chips{gap:8px;margin-bottom:16px}.chip{border-radius:100px;padding:10px 17px;min-height:41px;background:#fff;color:#52705e;border:1px solid #e2eadf}.chip.active{background:var(--store-sol);color:var(--store-sol-ink);border-color:var(--store-sol);box-shadow:0 6px 12px -11px #2d542c}
.product-grid{grid-template-columns:repeat(auto-fill,minmax(139px,1fr));gap:13px}
.product-card{background:#fff;border:1px solid #e8ebe4;border-radius:19px;min-height:201px;padding-bottom:13px;box-shadow:0 13px 31px -28px #19311b;transition:transform .16s,box-shadow .16s,border-color .16s;overflow:hidden;touch-action:manipulation}
.product-card:hover{border-color:#a7cf8f;box-shadow:0 17px 35px -23px #1f4f29;transform:translateY(-2px)}.product-card:active{transform:scale(.984)}.product-card:disabled{opacity:.56;transform:none}
.product-media{height:123px;background:linear-gradient(140deg,#eef5e5,#fafaf1);font-size:46px;border-radius:13px;margin:5px 5px 0;overflow:hidden}.product-media img{display:block;width:100%;height:100%;object-fit:cover;border-radius:12px}
.product-info{padding:11px 12px 0;gap:4px}.product-name{font-size:13px;line-height:1.3;color:#203d2c}.product-cat{color:#87978b;font-size:10px}.product-price{color:#102e1d;font-size:17px;line-height:1.3}.product-tag{font-size:10px}
/* Zero products is a useful onboarding state, not a row of fictitious merchandise. */
#posEmpty:not([hidden]){margin-top:18px;border:1px dashed #c8dcb7;background:linear-gradient(155deg,#f4faed,#fdfefa);border-radius:20px;padding:35px 20px 39px;color:#59715e;font-size:13px;min-height:195px;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:4px}
#posEmpty:not([hidden])::before{content:'✦';display:block;flex-basis:100%;font-size:35px;color:#8bb961;line-height:1.5}
#posEmpty .inline-link{color:#277e45;text-underline-offset:4px;min-height:42px;padding:8px 12px}
.cart-panel{top:18px;padding:23px 22px 20px;border-color:#dfe7dc;box-shadow:0 23px 48px -35px #0e311b;border-radius:25px;background:#fffefa;min-height:490px}
.cart-panel .section-heading{margin-bottom:8px}.cart-panel .section-heading h2{font-size:26px;color:#172b20;letter-spacing:-.03em}.cart-panel .section-heading h2::before{content:'🛒';display:inline-block;margin-right:10px;font:20px system-ui,sans-serif;vertical-align:2px;filter:saturate(.55)}
.cart-panel #clearCart{color:#789082;font-size:12px;min-height:38px}.cart-empty{padding:55px 8px 42px!important;display:block;text-align:center;line-height:1.2;color:#639352!important;font-size:58px!important}
.cart-empty::first-line{line-height:1.5}.cart-empty p{color:#263d2c!important;font:800 18px/1.3 Fraunces,Georgia,serif!important;margin:12px 0 8px}.cart-empty small{font-size:12px;color:#809083;line-height:1.55}
.cart-total{border-top:1px solid #e7ede4}.cart-total>div{align-items:center;margin-bottom:10px}.cart-total span{font-size:12px;color:#627a6c}.cart-total .grand{border:0;background:linear-gradient(125deg,#f0f7d7,#f5f9e7);padding:13px 13px;border-radius:14px;margin-top:16px}
.cart-total .grand span{color:#284936;font-weight:900}.cart-total .grand strong{font:900 29px/1.1 Fraunces,Georgia,serif;color:#172c1e}
.cart-panel #checkoutBtn{min-height:61px!important;border-radius:15px;background:var(--store-sol);color:var(--store-sol-ink);border-color:var(--store-sol);font-size:16px;font-weight:900;box-shadow:0 12px 20px -14px #2a5a2a}
.cart-panel #checkoutBtn:not(:disabled):hover{filter:brightness(.97);background:var(--store-sol)}
.cart-panel #checkoutBtn:disabled{opacity:.56;box-shadow:none}.cart-panel .fine-print{font-size:10px;color:#879b8c;line-height:1.45}
.btn{border-radius:13px;transition:background-color .15s,border-color .15s;min-height:43px}.btn-green{background:var(--store-sol);border-color:var(--store-sol);color:var(--store-sol-ink)}.btn-green:hover:not(:disabled){background:#c3eb58;border-color:#c3eb58;color:#183524}.btn-light{background:#fffefa}.btn-light:hover{background:#f5f9ef}
.stepper button{min-width:39px;min-height:39px;touch-action:manipulation}.pay-option{min-height:62px;touch-action:manipulation}
.orders-hero{border-radius:25px}.order-card{border-radius:21px}.orders-sheet{border-radius:20px}
.modal-card{border-radius:25px}.modal-total{border-radius:17px}.toast{border-radius:14px}
@media(max-width:1240px){.sidebar{width:226px}.main{padding:25px 20px 70px}.checkout-layout{grid-template-columns:minmax(0,1fr) minmax(300px,320px);gap:12px}.kpi{padding:17px 15px;column-gap:10px;grid-template-columns:46px minmax(0,1fr)!important}.kpi::before{width:46px;height:46px}.product-grid{grid-template-columns:repeat(auto-fill,minmax(126px,1fr))}.cart-panel{padding:19px}}
@media(max-width:920px){.sidebar{width:265px}.main{padding:18px 14px 96px}.topbar h1{font-size:35px}.checkout-layout{grid-template-columns:minmax(0,1fr) minmax(280px,310px)}}
@media(max-width:780px){
 .main{padding:15px 12px 160px}.topbar{margin-bottom:14px}.topbar h1{font-size:31px}.notice{padding:14px 39px 14px 52px;font-size:11px;margin-bottom:14px}.notice::before{width:29px;height:29px;left:12px;font-size:18px}
 #view-caja .kpis{gap:7px;margin-bottom:13px}.kpi{min-height:85px;padding:11px 10px;grid-template-columns:1fr!important;gap:0!important}.kpi::before{display:none}.kpi span,.kpi strong,.kpi small{grid-column:1!important}.kpi span{grid-row:1!important;font-size:9px!important}.kpi strong{grid-row:2!important;font-size:20px!important;line-height:1.2;margin:4px 0 2px!important}.kpi small{grid-row:3!important;font-size:9px!important}
 .checkout-layout{grid-template-columns:minmax(0,1fr)}.checkout-layout .sale-products>.panel{padding:15px;min-height:370px}.search-line input{min-height:50px!important;font-size:12px}.search-line .btn{min-height:50px!important;padding:9px 11px}.quick-intro{margin-bottom:12px}.quick-intro h2{font-size:21px}
 .product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.product-card{min-height:190px}.product-media{height:117px}.product-info{padding:8px 10px 0}.product-price{font-size:15px}
 .cart-panel{min-height:0}.cart-empty{padding:32px 8px!important}.cart-panel #checkoutBtn{min-height:62px!important}
}
@media(max-width:480px){.topbar h1{font-size:28px}.topbar .kicker{font-size:9px}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.cart-panel .section-heading h2{font-size:24px}.notice{padding-top:13px;padding-bottom:13px}.kpi{padding:10px 7px}.kpi span{font-size:8.5px!important}.kpi strong{font-size:18px!important}}
@media(pointer:coarse){.product-card,.nav-item,.chip,.btn{touch-action:manipulation}.chip,.btn{min-height:45px}.stepper button{min-width:44px;min-height:44px}}
@media(prefers-reduced-motion:reduce){.product-card,.nav-item,.btn{transition:none!important}}
