:root{--bg:#080808;--card:#141414;--line:#2b2b2b;--orange:#ff9800;--orange2:#ff6a00;--text:#f7f7f7;--muted:#aaa;--ok:#18c66a}*{box-sizing:border-box}body{margin:0;background:linear-gradient(#050505,#0e0e0e);color:var(--text);font-family:Inter,system-ui,Arial,sans-serif;padding-bottom:88px}.top{position:sticky;top:0;z-index:20;background:#090909eF;backdrop-filter:blur(12px);border-bottom:1px solid #222}.brand{display:flex;align-items:center;gap:12px;padding:10px 16px}.brand img{width:54px;height:54px;object-fit:contain}.brand b{font-size:18px}.brand small{display:block;color:var(--orange)}.status{margin:0 14px 12px;padding:12px 14px;border:1px solid #3a2c10;border-radius:16px;background:#171109;display:none}.status.show{display:block}.status strong{color:var(--orange)}.wrap{max-width:1100px;margin:auto;padding:16px}.hero{padding:18px;border:1px solid #2b2418;background:linear-gradient(135deg,#171717,#161008);border-radius:22px;display:flex;justify-content:space-between;gap:16px;align-items:center}.hero h1{margin:0 0 5px;font-size:24px}.hero p{margin:0;color:var(--muted)}.install{border:0;border-radius:14px;padding:11px 14px;background:var(--orange);font-weight:800}.search{display:flex;gap:10px;margin:16px 0}.search input{width:100%;padding:14px 16px;border-radius:16px;border:1px solid var(--line);background:#111;color:white;font-size:16px}.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px}.product{border:1px solid var(--line);background:var(--card);border-radius:18px;padding:14px}.product .code{font-size:12px;color:var(--orange)}.product h3{font-size:15px;min-height:42px;margin:7px 0}.product .cat{font-size:12px;color:var(--muted)}.price{font-size:22px;font-weight:900;margin:10px 0}.stock{font-size:12px;color:#8ee9b6}.product button,.primary{width:100%;border:0;background:linear-gradient(90deg,var(--orange2),var(--orange));color:#080808;font-weight:900;border-radius:12px;padding:11px}.bottom{position:fixed;bottom:0;left:0;right:0;z-index:25;background:#0a0a0af2;border-top:1px solid #242424;display:flex;justify-content:center}.bottom nav{width:min(600px,100%);display:grid;grid-template-columns:repeat(4,1fr)}.bottom button{background:none;border:0;color:#bbb;padding:10px 4px;font-size:12px}.bottom button span{display:block;font-size:21px}.drawer{position:fixed;inset:0;z-index:40;background:#0008;display:none}.drawer.show{display:block}.panel{position:absolute;right:0;top:0;bottom:0;width:min(440px,100%);background:#111;border-left:1px solid #333;padding:18px;overflow:auto}.close{float:right;border:0;background:#222;color:white;border-radius:10px;padding:8px 11px}.cartline{display:grid;grid-template-columns:1fr auto;gap:8px;padding:12px 0;border-bottom:1px solid #242424}.muted{color:var(--muted)}.field{margin:10px 0}.field input,.field select,.field textarea{width:100%;padding:12px;border-radius:12px;border:1px solid #333;background:#171717;color:white}.loginbox{padding:16px;border:1px solid #333;border-radius:16px;margin-top:14px}.badge{display:inline-block;background:var(--orange);color:#000;border-radius:999px;padding:2px 8px;font-size:12px;font-weight:900}@media(max-width:600px){.hero{align-items:flex-start;flex-direction:column}.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.product{padding:11px}.product h3{font-size:14px}.price{font-size:18px}}
.google-msg{padding:11px 12px;border-radius:12px;background:#191919;color:#ccc;font-size:14px}.google-msg.error{border:1px solid #6d2a2a;background:#211111;color:#ffb6b6}#googleBtn{min-height:44px;display:flex;align-items:center;margin-top:12px}

/* ===== Catálogo visual ===== */
.product{padding:0;overflow:hidden;display:flex;flex-direction:column;min-height:100%;transition:transform .18s ease,border-color .18s ease,opacity .18s ease}
.product:active{transform:scale(.99)}
.product-media{position:relative;aspect-ratio:4/3;background:radial-gradient(circle at 50% 35%,#2a2a2a,#101010);border-bottom:1px solid #292929;overflow:hidden}
.product-media img{width:100%;height:100%;display:block;object-fit:contain;background:#fff;padding:8px}
.product-media.no-image:after{content:'EGLH';position:absolute;inset:0;display:grid;place-items:center;color:#555;font-size:28px;font-weight:900;letter-spacing:2px}
.product-body{padding:12px;display:flex;flex-direction:column;flex:1}
.product-body h3{min-height:auto;line-height:1.25;margin:7px 0 8px}
.product-body .price{margin-top:auto}
.stock-tag{position:absolute;top:9px;right:9px;background:#b4232b;color:#fff;border:1px solid #dc4650;border-radius:999px;padding:5px 8px;font-size:10px;font-weight:900;letter-spacing:.7px;box-shadow:0 4px 12px #0008}
.product.is-out{filter:saturate(.25);opacity:.62;background:#101010}
.product.is-out .product-media img{filter:grayscale(1);opacity:.65}
.product.is-out .stock.empty{color:#d77b80}
.product button:disabled{cursor:not-allowed;background:#343434;color:#8d8d8d;border:1px solid #464646}

/* ===== Cuenta / Google ===== */
.account-panel{background:linear-gradient(180deg,#111 0%,#0b0b0b 100%);padding:22px 18px 30px}
.account-head{padding:28px 2px 18px;display:grid;grid-template-columns:74px 1fr;gap:14px;align-items:center}
.account-head img{width:74px;height:74px;object-fit:contain;border-radius:18px;background:#050505;border:1px solid #322415;padding:4px;box-shadow:0 10px 30px #0008}
.account-head .eyebrow{font-size:11px;font-weight:900;letter-spacing:1.2px;color:var(--orange)}
.account-head h2{font-size:24px;line-height:1.08;margin:5px 0 8px}
.account-head p{margin:0;color:#b8b8b8;font-size:14px;line-height:1.45}
.professional-login{margin-top:4px;padding:18px;background:linear-gradient(145deg,#191919,#111);border:1px solid #343434;border-radius:22px;box-shadow:0 20px 45px #0006}
.login-benefits{display:grid;gap:11px;margin-bottom:16px}
.login-benefits>div{display:flex;align-items:center;gap:10px;color:#e8e8e8;font-size:14px}
.login-benefits span{width:22px;height:22px;display:grid;place-items:center;border-radius:50%;background:#1b3a28;color:#7fe7a8;font-weight:900;font-size:12px}
.login-separator{display:flex;align-items:center;gap:10px;color:#777;font-size:11px;text-transform:uppercase;letter-spacing:1px;margin:14px 0}
.login-separator:before,.login-separator:after{content:'';height:1px;background:#313131;flex:1}
#googleBtn{min-height:48px;display:flex;align-items:center;justify-content:center;margin-top:0}
#googleBtn>div{max-width:100%}
.google-msg{width:100%;text-align:center}
.login-note{margin:14px 0 0;text-align:center;color:#777;font-size:11px;line-height:1.4}

@media(max-width:600px){
  .product-media{aspect-ratio:1/1}
  .product-body{padding:10px}
  .product .code{font-size:11px}
  .product-body h3{font-size:13px;min-height:48px}
  .product-body .cat{font-size:11px}
  .product-body .price{font-size:19px;margin:8px 0 5px}
  .product-body .stock{font-size:11px;min-height:16px}
  .product-body button{margin-top:7px}
  .account-head{grid-template-columns:64px 1fr;padding-top:22px}
  .account-head img{width:64px;height:64px}
  .account-head h2{font-size:21px}
}


/* ===== Cuenta V3 compacta / profesional ===== */
#accountDrawer .panel.account-panel{width:min(420px,100%);padding:14px 16px 28px;background:linear-gradient(180deg,#101010 0%,#090909 100%);overflow-x:hidden}
#accountDrawer .close{position:sticky;top:0;float:none;margin-left:auto;display:block;z-index:3;width:44px;height:44px;padding:0;border-radius:14px;font-size:20px;background:#202020;border:1px solid #2d2d2d}
#accountDrawer .account-head{display:flex;align-items:center;gap:12px;padding:10px 0 14px;border-bottom:1px solid #242424}
#accountDrawer .account-head img{flex:0 0 auto;width:54px!important;height:54px!important;max-width:54px!important;max-height:54px!important;object-fit:contain;border-radius:13px;background:#070707;border:1px solid #3c2a14;padding:3px;box-shadow:none}
#accountDrawer .account-head>div{min-width:0}
#accountDrawer .account-head .eyebrow{display:block;font-size:10px;line-height:1.2;font-weight:900;letter-spacing:1.15px;color:#ff9d13;margin-bottom:4px}
#accountDrawer .account-head h2{margin:0 0 4px;font-size:19px;line-height:1.15;font-weight:850;letter-spacing:-.2px}
#accountDrawer .account-head p{margin:0;font-size:12.5px;line-height:1.35;color:#a9a9a9}
#accountDrawer .professional-login{margin-top:14px;padding:15px;border-radius:18px;background:#141414;border:1px solid #303030;box-shadow:0 12px 30px #0005}
#accountDrawer .login-benefits{display:grid;grid-template-columns:1fr;gap:8px;margin:0 0 13px}
#accountDrawer .login-benefits>div{display:flex;align-items:center;gap:8px;font-size:12.5px;line-height:1.25;color:#dedede}
#accountDrawer .login-benefits span{flex:0 0 19px;width:19px;height:19px;font-size:11px;background:#173321;color:#7ce7a5}
#accountDrawer .login-separator{margin:10px 0 11px;font-size:9px;letter-spacing:1.1px;color:#727272}
#accountDrawer #googleBtn{width:100%;min-height:52px;margin:0;display:flex;align-items:center;justify-content:center;overflow:hidden;border-radius:12px}
#accountDrawer #googleBtn>div,#accountDrawer #googleBtn iframe{max-width:100%!important}
#accountDrawer .login-note{margin:11px 2px 0;font-size:10.5px;line-height:1.35;color:#777;text-align:center}
#accountDrawer .google-msg{font-size:12px;padding:11px;border-radius:11px}
@media(max-width:600px){
  #accountDrawer .panel.account-panel{padding:10px 14px 24px}
  #accountDrawer .account-head{padding-top:6px;gap:10px}
  #accountDrawer .account-head img{width:48px!important;height:48px!important;max-width:48px!important;max-height:48px!important}
  #accountDrawer .account-head h2{font-size:18px}
  #accountDrawer .account-head p{font-size:12px}
  #accountDrawer .professional-login{padding:14px}
}

/* ===== Mayorista V4 · cantidades, carrito y checkout ===== */
.qty-picker{display:grid;grid-template-columns:42px 1fr 42px;gap:7px;align-items:center;margin:10px 0 7px}.qty-picker .qty-btn{width:42px;height:40px;padding:0;border-radius:11px;background:#252525;color:#fff;border:1px solid #3a3a3a;font-size:22px;line-height:1}.qty-input{width:100%;height:40px;border-radius:11px;border:1px solid #3a3a3a;background:#0e0e0e;color:#fff;text-align:center;font-size:16px;font-weight:900}.add-btn{margin-top:0!important}.badge.pop{animation:badgePop .35s ease}@keyframes badgePop{50%{transform:scale(1.45)}}
.icon-close{width:42px!important;height:42px!important;padding:0!important;border-radius:12px!important;background:#1d1d1d!important;border:1px solid #303030!important;display:grid!important;place-items:center!important;color:#ddd!important}.icon-close svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}.icon-close:hover{background:#282828!important;color:#fff!important}.cart-panel{display:flex;flex-direction:column;height:100%;max-height:100vh}.cart-panel h2{margin:2px 0 12px}.cart-scroll{overflow-y:auto;overscroll-behavior:contain;padding-right:4px;flex:1;min-height:120px}.cartline{display:grid;grid-template-columns:62px 1fr 42px;gap:11px;align-items:center;padding:11px 0;border-bottom:1px solid #292929}.cart-thumb{width:62px;height:62px;border-radius:13px;overflow:hidden;background:#fff;border:1px solid #333}.cart-thumb img{width:100%;height:100%;object-fit:contain}.cart-copy{min-width:0}.cart-copy b{display:block;font-size:14px;line-height:1.25}.cart-sub{color:#fff;font-weight:900;margin-top:4px}.cart-remove{width:38px!important;height:38px!important;border-radius:50%!important;background:#211515!important;color:#ff8d8d!important;border:1px solid #4a2424!important;padding:0!important;font-size:25px!important;font-weight:300!important;display:grid;place-items:center}.cart-remove:hover{background:#371919!important}.cart-footer{position:sticky;bottom:0;background:linear-gradient(180deg,rgba(17,17,17,0),#111 18%);padding-top:24px}.cart-total-row{display:flex;justify-content:space-between;align-items:center;padding:13px 0;font-size:18px;border-top:1px solid #303030}.cart-total-row strong{font-size:25px}.empty-cart{min-height:180px;display:grid;place-items:center;align-content:center;color:#888;text-align:center}.empty-cart span{font-size:38px;opacity:.5}.modal{position:fixed;inset:0;z-index:60;background:#000b;display:none;align-items:center;justify-content:center;padding:16px;backdrop-filter:blur(5px)}.modal.show{display:flex}.modal-card{position:relative;width:min(520px,100%);max-height:92vh;overflow-y:auto;background:linear-gradient(180deg,#171717,#0e0e0e);border:1px solid #343434;border-radius:22px;padding:22px;box-shadow:0 30px 80px #000c}.modal-card .close{position:absolute;right:14px;top:14px}.modal-card .eyebrow{color:var(--orange);font-size:10px;letter-spacing:1.3px;font-weight:900}.modal-card h2{padding-right:54px;margin:6px 0 8px}.modal-card .field{margin:10px 0}.small-note{font-size:11px;line-height:1.45}.status-action{margin-top:9px;border:1px solid #6b4a16;background:#251a0b;color:#ffb03a;border-radius:10px;padding:8px 10px;font-weight:800}.admin-link{display:block;margin:12px 0;padding:11px 12px;border-radius:12px;text-decoration:none;background:#271a08;border:1px solid #5b3d0c;color:#ffad27;font-weight:900}
@media(max-width:600px){.qty-picker{grid-template-columns:38px 1fr 38px}.qty-picker .qty-btn{width:38px;height:38px}.cartline{grid-template-columns:56px 1fr 38px}.cart-thumb{width:56px;height:56px}.modal-card{padding:18px 14px 20px;border-radius:18px}}

/* V10 · checkout + buscador + reventa */
.search{display:flex;gap:9px;align-items:stretch;margin:18px 0 16px}
.search input{flex:1;min-width:0;min-height:60px;border:2.5px solid #fff;border-radius:16px;background:#111;color:white;font-size:17px;font-weight:700;padding:15px 18px;box-shadow:0 0 0 2px rgba(255,255,255,.11)}
.search input:focus{outline:none;border-color:#fff;box-shadow:0 0 0 4px rgba(255,255,255,.23),0 10px 24px #0009}
.search button{flex:0 0 auto;border:0;border-radius:15px;background:#ff9800;color:#070707;padding:0 22px;font-size:15px;font-weight:900;cursor:pointer}
#products{scroll-margin-top:100px}
.payment-choice{display:grid;gap:9px;padding:13px;background:#161616;border:1px solid #373737;border-radius:15px;margin:10px 0}
.payment-choice strong{font-size:14px;margin-bottom:2px}
.payment-choice label{display:flex;align-items:center;gap:10px;border:1px solid #383838;border-radius:11px;padding:11px 12px;font-size:13px;cursor:pointer;background:#202020}
.payment-choice input{accent-color:#ff9800;width:19px;height:19px;flex:0 0 19px}
.payment-choice label:has(input:checked){border-color:#ff9800;background:#281b0b;color:#fff}
.payment-choice em{font-style:normal;color:#83ecb2;font-weight:900;margin-left:auto;font-size:12px}
.cart-subtotal-row,.cart-discount-row,.checkout-total-box>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:6px 0;font-size:13px}
.cart-discount-row,#coDiscountRow{color:#84e8ae;font-weight:900}.cart-discount-row[hidden],#coDiscountRow[hidden]{display:none!important}
.cart-footer .cart-total-row{margin-top:8px}.checkout-total-box{border:1px solid #383838;background:#111;border-radius:14px;padding:10px 14px;margin-bottom:12px}
.checkout-total-box .checkout-grand{border-top:1px solid #454545;margin-top:8px;padding-top:12px;font-size:17px;font-weight:900}
.checkout-grand strong{font-size:25px}
.reseller-tools{border:1px solid #734710;background:linear-gradient(135deg,#211a11,#121212);border-radius:17px;padding:16px;margin:12px 0 16px;display:grid;gap:12px}
.reseller-tools[hidden]{display:none!important}.reseller-tools>div:first-child{display:grid;gap:4px}
.reseller-tools b{color:#ffbd65;font-size:16px}.reseller-tools span{color:#ccc;font-size:12.5px;line-height:1.4}
.reseller-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.reseller-controls label{font-weight:900;font-size:12px}.reseller-controls input{width:92px;min-height:43px;border:1px solid #777;border-radius:11px;padding:8px;background:#111;color:#fff;font-size:17px;font-weight:900;text-align:center}
.reseller-controls button{border:0;border-radius:11px;padding:12px 16px;background:#ff9800;color:#111;font-weight:900;cursor:pointer}
.reseller-tools small{color:#79e9ae;font-size:12px}.reseller-note{color:#a9b8a0;font-size:10px;line-height:1.4;min-height:30px}
.share-product{background:#202020!important;color:#ffbd65!important;border:1px solid #ff9800!important;padding:9px!important;margin:8px 0!important;font-size:12px;cursor:pointer}
.reseller-share-preview{border-radius:14px;overflow:hidden;background:#0f0f0f;border:1px solid #3a3a3a;margin:14px 0}
.reseller-share-photo{background:#fff;height:230px;display:flex;align-items:center;justify-content:center}.reseller-share-photo img{max-width:100%;max-height:100%;object-fit:contain}
.reseller-share-name{padding:15px;font-weight:900;line-height:1.3;font-size:15px}.reseller-share-cost{display:flex;justify-content:space-between;align-items:center;padding:12px 15px 18px;color:#ffb03b}
.reseller-share-cost strong{font-size:29px;color:#fff}.reseller-share-cost small{font-size:10px;letter-spacing:1px}
@media(max-width:600px){.search input{min-height:58px;font-size:16px;padding:11px 13px}.search button{padding:0 15px}.reseller-tools{padding:13px}.payment-choice em{font-size:11px}}

/* Promoción global: visible sin revelar el margen mayorista del comprador */
.promo-tag{display:inline-block;margin:4px 0 3px;padding:4px 7px;border-radius:7px;background:#c62828;color:#fff;font-size:11px;font-weight:900;letter-spacing:.02em}
.promo-before{color:#999;text-decoration:line-through;font-size:13px;margin-top:3px}
.promo-cart{color:#f5b350;font-size:11.5px;font-weight:800;margin:4px 0}

/* V12 — Navegación por rubros del stock de CssVenta y propuestas de revendedores */
.category-browser{margin:11px 0 15px;background:linear-gradient(125deg,#191919,#0b0b0b);border:1px solid #353535;border-radius:20px;padding:14px 14px 13px;box-shadow:0 10px 35px rgba(0,0,0,.2)}
.category-head{display:flex;gap:10px;align-items:center;justify-content:space-between;margin-bottom:12px}
.category-head>div{display:grid;gap:3px}.category-head strong{font-size:17px;color:#fff}.category-head span{color:#aaa;font-size:12px}
.category-head button{border:1px solid #5a4524;background:#231a0e;color:#ffb748;border-radius:11px;font-weight:900;padding:10px 13px;cursor:pointer;flex-shrink:0}
.category-chips{display:flex;gap:9px;overflow-x:auto;scroll-snap-type:x proximity;overscroll-behavior-x:contain;padding:2px 2px 9px;scrollbar-width:thin}
.category-option{min-width:0;border:1px solid #3d3d3d;background:#171717;color:#eee;border-radius:13px;padding:12px 10px;cursor:pointer;display:flex;align-items:center;gap:9px;text-align:left;font-weight:800}
.category-option.compact{flex:0 0 auto;scroll-snap-align:start;padding:11px 13px;white-space:nowrap}
.category-emoji{font-size:21px}.category-name{font-size:13px}.category-option small{font-size:11px;color:#bbb;margin-left:auto}
.category-option.selected{color:#101010;background:#ff9800;border-color:#ff9800;box-shadow:0 5px 20px rgba(255,152,0,.18)}.category-option.selected small{color:#282018}
.category-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:8px;border-top:1px solid #333;padding-top:13px;margin-top:5px}
.category-grid[hidden]{display:none!important}.category-option:focus-visible{outline:2px solid white;outline-offset:2px}
.results-line{display:flex;align-items:center;justify-content:space-between;margin:13px 0 9px;color:#c1c1c1;font-size:12px;font-weight:700}
#categoryClear{border:1px solid #8b6329;background:#2d2010;border-radius:10px;padding:8px 12px;color:#ffcb7b;font-weight:800}
.load-more-wrap{display:flex;justify-content:center;padding:20px 0 32px}.load-more-products{min-width:230px;border:1px solid #ff9800;border-radius:14px;padding:14px 25px;background:#221809;color:#ffb341;font-size:14px;font-weight:900;cursor:pointer}
.load-more-products[hidden]{display:none!important}.load-more-products:disabled{opacity:.5}
.suggest-category{margin:6px 0 10px!important;width:100%;font-size:12px!important;font-weight:800;background:#1b291e!important;color:#91e6ab!important;border:1px solid #39704b!important;border-radius:9px!important;padding:8px!important;cursor:pointer}
.category-suggestion-pending{display:block;padding:8px 0;color:#89d9a0;font-size:11px;font-weight:700}
.field-label{font-weight:800;font-size:12px;color:#eee;display:block;margin:14px 0 7px}.category-suggest-select{width:100%;min-height:48px;background:#111;color:#fff;border:1px solid #555;border-radius:12px;padding:12px;font:inherit}
.category-suggest-message{font-size:12px;color:#93e3ab;font-weight:800;min-height:24px;margin:12px 0}
.category-modal-card{max-width:470px}.catalog-empty{padding:28px;text-align:center}
@media(max-width:650px){.category-browser{border-radius:17px;padding:12px 11px}.category-head{align-items:flex-start}.category-head strong{font-size:15px}.category-head button{padding:9px 10px;font-size:11px}.category-option.compact{padding:10px 11px}.category-name{font-size:12px}.category-option small{font-size:10px}.category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.category-grid .category-option{padding:10px;flex-wrap:wrap}.category-grid .category-option small{flex-basis:100%}}

/* V13: tarjeta compartida con imagen real y enlace; lectura clara en el celular. */
.reseller-share-modal{max-width:520px;max-height:min(94dvh,950px);overflow-y:auto}
.reseller-share-generated{width:100%;height:auto;max-height:420px;object-fit:contain;display:block;background:#101010}
.share-pending{padding:64px 12px;text-align:center;color:#ddd;font-size:14px}
.reseller-buy-link{display:block;text-align:center;border-radius:12px;background:#2d210e;border:1px solid #ff9800;color:#ffc36e!important;font-weight:800;padding:11px;margin:12px 0;text-decoration:none}
.reseller-share-url-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;margin-bottom:12px}
.reseller-share-url-row input{width:100%;min-width:0;background:#0b0b0b;border:1px solid #464646;border-radius:10px;color:#ddd;padding:12px;font-size:12px}
.reseller-share-url-row button{background:#ff9800;border:0;border-radius:10px;padding:10px 12px;font-size:12px;font-weight:900;cursor:pointer}
.shared-product-highlight{outline:3px solid #ff9800;outline-offset:3px;box-shadow:0 0 30px rgba(255,152,0,.36)}
@media(max-width:600px){.reseller-share-modal{padding:15px}.reseller-share-generated{max-height:310px}.reseller-share-url-row button{padding:8px;font-size:11px}}

/* V14: vidrieras de revendedores, respuesta en móvil y PC */
#installBtn[hidden],#storefrontBanner[hidden],#resellerStoreCartNote[hidden]{display:none!important}
.storefront-banner{border:1px solid #ff9800;border-radius:20px;padding:14px;background:linear-gradient(120deg,#241b0d,#111);display:grid;grid-template-columns:48px 1fr auto;gap:13px;align-items:center;margin:12px 0}
.storefront-symbol{width:46px;height:46px;border-radius:12px;background:#ff9800;color:#111;display:grid;place-items:center;font-size:22px}
.storefront-banner strong{font-size:18px;color:#ffbe5e}.storefront-banner p{font-size:12px;line-height:1.45;color:#c8bca9;margin:4px 0 0}
.storefront-banner button{border:1px solid #68512d;background:#181108;color:#ffca85;border-radius:12px;padding:11px;font-weight:800;cursor:pointer}
.storefront-cart-note{border:1px solid #5d4620;background:#1c160d;color:#ffcf86;border-radius:10px;padding:10px;font-size:12px}
.reseller-payment-choice em{display:none!important}.reseller-payment-choice::after{content:'Mismo precio final con efectivo o transferencia en esta tienda.';display:block;font-size:11px;color:#cdbd9d;margin-top:4px}
.reseller-store-links{display:flex;gap:7px;flex-wrap:wrap;align-items:center}
.reseller-store-links input{min-width:145px;flex:1;max-width:100%;background:#0a0a0a;border:1px solid #575049;border-radius:11px;color:#ddd;padding:12px;font-size:12px}
.reseller-store-links button{background:#201909;border:1px solid #c98220;border-radius:11px;color:#ffd296;font-weight:900;padding:11px;cursor:pointer}
.storefront-error{padding:25px;border:1px solid #a95353;background:#241313;border-radius:18px;grid-column:1/-1}.storefront-error a{color:#ffc063}
.resale-sales-modal{max-width:560px}.reseller-sales-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:15px 0}
.reseller-sales-totals>div{padding:11px;border:1px solid #534022;background:#1b160e;border-radius:11px}
.reseller-sales-totals span{display:block;font-size:11px;color:#c5b89f}.reseller-sales-totals b{display:block;font-size:17px;color:#ffca71;margin-top:6px}
.reseller-sale-row{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #333;padding:11px 0;gap:10px}
.reseller-sale-row small,.reseller-sale-row span{display:block;color:#999;font-size:11px;margin-top:3px}.reseller-sale-row strong{color:#8feeaa;white-space:nowrap}
@media(max-width:700px){.storefront-banner{grid-template-columns:40px 1fr;padding:12px}.storefront-symbol{width:40px;height:40px}.storefront-banner strong{font-size:15px}.storefront-banner button{grid-column:1/-1;width:100%}.reseller-sales-totals{grid-template-columns:1fr}.reseller-store-links input,.reseller-store-links button{flex:1 1 100%}}

/* V19: identificación visual de tiendas de revendedores (no mayorista general) */
body.public-reseller-store{--orange:#a58aff;--accent:#a58aff;--primary:#a58aff;}
body.public-reseller-store .storefront-banner{border-color:#a58aff;background:linear-gradient(125deg,#21182f,#0f1014);grid-template-columns:48px 1fr;}
body.public-reseller-store .storefront-banner strong{color:#d7c6ff;}
body.public-reseller-store .storefront-banner p{color:#d0c3df;}
body.public-reseller-store .storefront-banner button{display:none!important;}
body.public-reseller-store #pricingStatus{border-color:#8e71d8!important;color:#dbcaff!important;background:#211831!important;}
body.public-reseller-store .primary, body.public-reseller-store .add-btn, body.public-reseller-store #categoryChips .selected{background:#8665e6!important;color:#fff!important;border-color:#8665e6!important;}
body.public-reseller-store .payment-choice input[type=radio]{accent-color:#9c7af6;}
body.public-reseller-store .storefront-cart-note{display:none!important;}

/* V20: identidad de tienda pública y panel exclusivo para el revendedor */
body.public-reseller-store .hero{display:none!important}
body.public-reseller-store .top .brand b{font-size:clamp(14px,3.9vw,18px);letter-spacing:.03em}
body.public-reseller-store .top .brand small{color:#b9a1ee}
body.public-reseller-store #pricingStatus{display:none!important}
body.public-reseller-store .storefront-banner{margin:16px 0 23px;grid-template-columns:48px minmax(0,1fr);padding:20px 18px;gap:16px}
body.public-reseller-store .storefront-banner strong{display:block;font-size:clamp(25px,6.2vw,33px);line-height:1.1;color:#f1eaff}
body.public-reseller-store .storefront-banner p{font-size:13px;max-width:36ch}
.storefront-eyebrow{display:block;font-size:10px;letter-spacing:.14em;color:#af9bde;font-weight:900;margin-bottom:6px}
#resellerOwnerOrders[hidden],#storefrontOwnerOrders[hidden],#resellerOrdersNav[hidden],#resellerOrderDetail[hidden]{display:none!important}
body.public-reseller-store #storefrontOwnerOrders:not([hidden]){display:block!important;grid-column:2;justify-self:start;border:1px solid #8665e6;background:#241b37;color:#efe6ff;padding:10px 15px;border-radius:12px;font-weight:800}
.reseller-order-tabs{display:flex;gap:7px;overflow-x:auto;margin:14px 0 12px}
.reseller-order-tabs button{border:1px solid #53446b;background:#17131d;color:#d0c5df;border-radius:12px;padding:10px 12px;font-size:12px;font-weight:800;white-space:nowrap;cursor:pointer}
.reseller-order-tabs .is-selected{background:#8665e6;color:white;border-color:#8665e6}
.reseller-order-row{display:flex;justify-content:space-between;text-align:left;width:100%;gap:12px;padding:15px 11px;border:1px solid #3a3347;border-radius:14px;background:#19161e;color:#eee;margin:8px 0;cursor:pointer}
.reseller-order-row>span{display:grid;gap:6px;min-width:0}
.reseller-order-row b{font-size:13px;overflow-wrap:anywhere}
.reseller-order-row small{font-size:11px;color:#bab0c7}
.reseller-order-status{display:inline-block;width:max-content;max-width:100%;font-size:11px;font-weight:800;font-style:normal;border-radius:8px;padding:5px 8px;background:#30263c;color:#d8c5ff}
.reseller-order-status.accepted,.reseller-order-status.preparing{background:#45351b;color:#ffe0a6}
.reseller-order-status.ready_pickup,.reseller-order-status.ready_dispatch{background:#143c35;color:#8af2d0}
.reseller-order-status.dispatched{background:#1d3452;color:#a8d5ff}
.reseller-order-status.delivered{background:#163e26;color:#a4f5b8}
.reseller-order-status.cancelled{background:#4c2529;color:#ffb6b6}
.reseller-order-earning{font-weight:800;color:#a9f3bd;font-size:12px;text-align:right;white-space:nowrap}
.reseller-order-earning small{display:block;margin-top:7px}
.reseller-order-detail{border:1px solid #6d58a0;border-radius:16px;background:#17121f;margin:18px 0 5px;padding:17px;max-height:55vh;overflow-y:auto}
.reseller-detail-head{display:flex;justify-content:space-between;align-items:center;gap:10px}.reseller-detail-head h3{font-size:16px;margin:0;overflow-wrap:anywhere}.reseller-detail-head button{border:1px solid #645576;color:#e2d6ed;background:#251d32;border-radius:9px;padding:8px}
.reseller-order-detail p{font-size:12px;margin:10px 0}.reseller-detail-items{margin:14px 0;border-top:1px solid #40354c}
.reseller-detail-items>div{border-bottom:1px solid #40354c;padding:12px 0;display:grid;gap:5px}.reseller-detail-items small{color:#b3a7be;font-size:11px}.reseller-detail-items strong{color:#e7def5;font-size:13px}
.reseller-detail-totals{border-top:1px solid #605173;padding-top:8px}.reseller-detail-totals>div{display:flex;justify-content:space-between;gap:12px;padding:7px 0;font-size:12px}.reseller-detail-totals>div:last-child{color:#b6ffcb;font-weight:800}
@media(max-width:600px){.bottom nav:has(#resellerOrdersNav:not([hidden])) button{font-size:10px;padding-left:2px;padding-right:2px}.reseller-order-row{flex-wrap:wrap}.reseller-order-earning{text-align:left}.reseller-order-earning small{display:inline;margin-left:8px}.reseller-sales-totals{grid-template-columns:1fr}.reseller-order-detail{max-height:48vh}}

/* V21: interfaz accesible para tiendas independientes. */
[hidden]{display:none!important}
.recruit-card{display:flex;align-items:center;justify-content:space-between;gap:16px;border-radius:20px;padding:20px;background:linear-gradient(120deg,#fc8b12,#ffbb4c);color:#17100a;margin:16px 0}
.recruit-card strong{font-size:22px}.recruit-card p{max-width:550px;margin:8px 0 0;font-weight:600}.recruit-card button{border:0;padding:14px 18px;background:#151515;color:#fff;border-radius:13px;font-weight:900;white-space:nowrap}
.reseller-setup{background:#161616;border:1px solid #ff9800;border-radius:20px;padding:20px;margin:16px 0}.reseller-setup h2{margin:0 0 7px}.reseller-setup p{color:#bbb}.setup-grid{display:grid;grid-template-columns:2fr 1fr 1.5fr;gap:12px;margin:17px 0}.setup-grid label{display:grid;gap:7px;font-weight:750}.setup-grid input,.setup-grid select{width:100%;box-sizing:border-box;background:#090909;color:#fff;border:1px solid #444;border-radius:11px;padding:13px;min-height:48px}.setup-grid input[type=color]{padding:5px}
.pick-store-product{border:1px solid #ff9800;border-radius:10px;background:#261907;color:#ffb449;padding:10px;width:100%;font-weight:850;margin:9px 0}
.welcome-overlay{position:fixed;inset:0;background:#000b;z-index:1000;display:grid;place-items:center;padding:20px}.welcome-box{background:linear-gradient(140deg,#2a180b,#111 65%);border:2px solid #ff9800;color:#fff;padding:32px 24px;border-radius:24px;max-width:430px;position:relative;box-shadow:0 18px 60px #000c}.welcome-box h2{font-size:29px;line-height:1.1;margin:10px 0}.welcome-box p{font-size:18px;line-height:1.5}.welcome-box .primary{width:100%;min-height:54px;font-size:17px}.welcome-box small{display:block;margin-top:14px;color:#aaa}.welcome-close{position:absolute;right:13px;top:13px;background:#333;color:#fff;border:0;border-radius:50%;width:35px;height:35px}
.collector-choice{margin:10px 0;padding:14px;background:#201a12;border:1px solid #b8832e;border-radius:14px}.collector-choice label{display:block;margin-top:9px;font-size:16px}
body.public-reseller-store{/* V46: --store-theme pertenece a la tienda autenticada, nunca fijarlo aqui */}body.public-reseller-store .hero,body.public-reseller-store .recruit-card,body.public-reseller-store #resellerTools,body.public-reseller-store .category-browser .category-grid{display:none!important}
body.public-reseller-store #mainStoreTitle{color:var(--store-theme);font-size:20px}body.public-reseller-store .storefront-banner{border-color:var(--store-theme)}body.public-reseller-store .product{border-radius:18px}body.public-reseller-store .product .code,body.public-reseller-store .product .reseller-note{display:none}body.public-reseller-store .product .add-btn{background:var(--store-theme);color:#111;font-size:17px;min-height:50px}body.public-reseller-store .product h3{font-size:17px;line-height:1.35}body.public-reseller-store .product .stock{font-size:13px}
@media(max-width:700px){.recruit-card{flex-direction:column;align-items:stretch}.recruit-card button{width:100%}.setup-grid{grid-template-columns:1fr}body.public-reseller-store #products{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}body.public-reseller-store .product-body{padding:10px}body.public-reseller-store .product h3{font-size:15px}body.public-reseller-store .product .price{font-size:21px}}
@media(max-width:390px){body.public-reseller-store #products{grid-template-columns:1fr}}
