:root{--ink:#162235;--muted:#718096;--line:#e4eaf1;--blue:#2563eb;--dark:#0f1d33;--bg:#f6f8fb}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:15px/1.5 Inter,system-ui,sans-serif}.topline{background:var(--dark);color:#cbd5e1;text-align:center;padding:8px;font-size:12px}.header{height:78px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:25px;padding:0 max(20px,calc((100% - 1180px)/2))}.brand{font-size:20px;font-weight:900;color:var(--blue);text-decoration:none;white-space:nowrap}.brand span{color:var(--ink);margin-left:6px}.search{display:flex;flex:1;max-width:620px;margin:auto}.search input{height:44px;flex:1;background:#f0f3f7;border:0;border-radius:12px 0 0 12px;padding:0 16px;outline:0}.search button{width:48px;border:0;background:var(--blue);color:#fff;border-radius:0 12px 12px 0;font-size:23px}.cart{position:relative;border:0;background:transparent;font-size:22px}.cart b{position:absolute;right:-9px;top:-7px;background:var(--blue);color:#fff;font-size:11px;min-width:19px;height:19px;border-radius:50%;padding:2px}nav{background:#fff;border-bottom:1px solid var(--line);padding:13px max(20px,calc((100% - 1180px)/2));display:flex;gap:30px}nav a{color:#536176;text-decoration:none;font-weight:700;font-size:14px}nav a:hover{color:var(--blue)}main{max-width:1180px;margin:auto;padding:28px 20px 70px}.hero{padding:55px 50px;border-radius:25px;background:linear-gradient(120deg,#0f1d33,#183869);color:#fff;margin-bottom:28px}.hero h1{font-size:clamp(34px,5vw,63px);line-height:1;margin:0;max-width:600px}.hero p{color:#cbd5e1;max-width:530px;margin:20px 0}.primary{background:var(--blue);color:#fff;border:0;padding:13px 18px;border-radius:10px;font-weight:800;cursor:pointer}.section-head{display:flex;justify-content:space-between;align-items:end;margin:30px 0 17px}.section-head h1,.section-head h2{margin:0;font-size:30px;letter-spacing:-.04em}.grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.card{background:#fff;border:1px solid var(--line);border-radius:17px;overflow:hidden;box-shadow:0 5px 20px #172b4507}.photo{height:190px;background:linear-gradient(135deg,#eaf0ff,#d9e5ff);display:grid;place-items:center;font-size:54px;font-weight:900;color:#aec3f4}.photo img{height:100%;width:100%;object-fit:cover}.card-body{padding:15px}.card h3{margin:5px 0 8px;font-size:16px}.card h3 a{color:var(--ink);text-decoration:none}.small{color:var(--muted);font-size:12px}.price{font-size:20px;font-weight:900}.row{display:flex;justify-content:space-between;align-items:center;gap:10px}.add{border:0;background:#eaf0ff;color:var(--blue);padding:9px 11px;border-radius:9px;font-weight:800;cursor:pointer}.directory{display:grid;grid-template-columns:repeat(4,1fr);gap:17px}.directory a{background:#fff;border:1px solid var(--line);border-radius:16px;padding:22px;text-decoration:none;color:var(--ink)}.directory strong{font-size:18px}.detail{display:grid;grid-template-columns:1fr 1fr;gap:42px;background:#fff;border:1px solid var(--line);border-radius:24px;padding:28px}.detail .photo{height:470px;border-radius:17px}.detail h1{font-size:42px;line-height:1.05;margin:10px 0}.features{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:18px 0}.features div{background:#f4f6f9;border-radius:10px;padding:10px}.drawer{position:fixed;right:-440px;top:0;height:100vh;width:min(430px,100%);background:#fff;z-index:5;transition:.25s;padding:25px;box-shadow:-8px 0 30px #0002}.drawer.open{right:0}.drawer-head{display:flex;justify-content:space-between;border-bottom:1px solid var(--line)}.drawer-head button{border:0;background:transparent;font-size:30px}.drawer-item{display:flex;gap:10px;padding:16px 0;border-bottom:1px solid var(--line)}.drawer-item img{width:60px;height:60px;object-fit:cover;border-radius:8px;background:#edf2ff}.drawer-item div{flex:1}.qty button{border:0;background:#edf2f7;width:25px;height:25px;border-radius:5px}.cart-total{display:flex;justify-content:space-between;font-size:19px;font-weight:900;border-top:2px solid var(--ink);padding:18px 0;margin-top:25px}.full{width:100%}.note{color:var(--muted);font-size:12px;text-align:center}#overlay{display:none;position:fixed;inset:0;background:#0b172b66;z-index:4}#overlay.open{display:block}.empty{text-align:center;border:1px dashed #bdc8d8;border-radius:15px;padding:50px;color:var(--muted)}footer{text-align:center;padding:30px;color:var(--muted);background:#fff;border-top:1px solid var(--line)}@media(max-width:850px){.grid,.directory{grid-template-columns:repeat(2,1fr)}.detail{grid-template-columns:1fr}.detail .photo{height:350px}}@media(max-width:560px){.header{gap:12px}.brand span{display:none}.search input{min-width:0}nav{gap:17px;overflow:auto}.hero{padding:35px 25px}.grid{grid-template-columns:1fr 1fr;gap:10px}.photo{height:145px}.card-body{padding:11px}.detail{padding:16px}.detail h1{font-size:32px}.features{grid-template-columns:1fr}}

.gallery{width:100%;max-width:620px}.gallery-main{position:relative;display:flex;align-items:center;justify-content:center;min-height:430px;border-radius:24px;overflow:hidden;background:#eef3fa}.gallery-main img{display:block;width:100%;height:430px;object-fit:contain}.gallery-nav{position:absolute;top:50%;transform:translateY(-50%);width:42px;height:42px;border:0;border-radius:50%;background:rgba(6,16,38,.78);color:#fff;font-size:32px;line-height:1;cursor:pointer;transition:transform .16s ease,background .16s ease}.gallery-nav:hover{background:#1768ff;transform:translateY(-50%) scale(1.05)}.gallery-nav.prev{left:16px}.gallery-nav.next{right:16px}.gallery-count{position:absolute;right:16px;bottom:14px;padding:6px 10px;border-radius:999px;background:rgba(6,16,38,.78);color:#fff;font-size:12px;font-weight:700}.gallery-thumbs{display:flex;gap:10px;overflow-x:auto;padding:14px 2px 4px}.thumb{flex:0 0 72px;height:72px;padding:3px;border:2px solid transparent;border-radius:12px;background:#eef3fa;cursor:pointer;transition:border-color .16s ease,transform .16s ease}.thumb:hover{transform:translateY(-2px)}.thumb.active{border-color:#1768ff}.thumb img{width:100%;height:100%;object-fit:cover;border-radius:8px}.gallery-empty{display:grid;place-items:center;min-height:430px;border-radius:24px;background:#eef3fa;color:#70809a;font-weight:700}@media(max-width:700px){.gallery-main,.gallery-main img,.gallery-empty{min-height:300px;height:300px}.gallery-nav{width:36px;height:36px;font-size:27px}.thumb{flex-basis:60px;height:60px}}

/* Presentación final de imágenes: proporción preservada, sin deformación y máximo visual de 800×800. */
.card .photo{width:100%;aspect-ratio:1 / 1;height:auto;min-height:0;display:flex;align-items:center;justify-content:center;overflow:hidden;background:#eef3fa;border-radius:18px}
.card .photo img{display:block;width:100%;height:100%;max-width:800px;max-height:800px;object-fit:contain;object-position:center;background:#eef3fa}
.detail .gallery{width:100%;max-width:800px;margin:0 auto}
.detail .gallery-main{width:100%;aspect-ratio:1 / 1;min-height:0;height:auto;max-width:800px;max-height:800px;display:flex;align-items:center;justify-content:center;overflow:hidden;background:#eef3fa;border-radius:24px}
.detail .gallery-main img{display:block;width:100%;height:100%;max-width:800px;max-height:800px;object-fit:contain;object-position:center;background:#eef3fa}
.detail .gallery-empty{width:100%;aspect-ratio:1 / 1;min-height:0;height:auto;max-width:800px;max-height:800px}
.drawer-item .photo{width:64px;height:64px;min-height:0;aspect-ratio:1 / 1;display:flex;align-items:center;justify-content:center;overflow:hidden;background:#eef3fa}
.drawer-item .photo img{width:100%;height:100%;object-fit:contain;max-width:800px;max-height:800px}
@media(max-width:700px){.detail .gallery-main,.detail .gallery-empty{width:100%;height:auto;min-height:0;aspect-ratio:1 / 1}.detail .gallery-main img{width:100%;height:100%}}

/* Cuenta de cliente y autenticación */
body.modal-open{overflow:hidden}.header-actions{display:flex;align-items:center;gap:10px}.account-button{display:inline-flex;align-items:center;gap:8px;border:1px solid #d7e0ef;background:#fff;color:#14213d;border-radius:999px;padding:10px 14px;font-weight:700;cursor:pointer}.account-button:hover{border-color:#1768ff;color:#1768ff}.modal-backdrop{position:fixed;inset:0;z-index:80;display:grid;place-items:center;padding:20px;background:rgba(9,21,43,.58);backdrop-filter:blur(8px)}.modal-backdrop[hidden]{display:none}.account-modal{position:relative;width:min(100%,560px);max-height:min(90vh,760px);overflow:auto;padding:34px;border-radius:28px;background:#fff;box-shadow:0 24px 80px rgba(9,21,43,.28)}.modal-close{position:absolute;top:16px;right:18px;border:0;background:transparent;color:#71809a;font-size:30px;cursor:pointer}.account-kicker{color:#1768ff;font-size:11px;font-weight:800;letter-spacing:.16em}.account-modal h2{margin:8px 0;font-size:30px;color:#0b1730}.muted{color:#70809a;line-height:1.55}.auth-tabs{display:flex;gap:8px;margin:24px 0 18px;border-bottom:1px solid #e4eaf3}.auth-tab{border:0;background:transparent;padding:12px 14px;color:#70809a;font-weight:800;cursor:pointer;border-bottom:3px solid transparent}.auth-tab.active{color:#1768ff;border-bottom-color:#1768ff}.auth-message{min-height:22px;margin:8px 0 14px;font-size:14px;font-weight:700}.auth-message.error{color:#c33b52}.auth-message.success{color:#15815c}.auth-message.loading{color:#1768ff}.auth-form{display:grid;gap:14px}.auth-form[hidden]{display:none}.auth-form label{display:grid;gap:7px;color:#263957;font-size:13px;font-weight:800}.auth-form input,.auth-form select{width:100%;box-sizing:border-box;border:1px solid #d7e0ef;border-radius:12px;background:#fbfcfe;padding:12px 13px;color:#14213d;font:inherit;outline:none}.auth-form input:focus,.auth-form select:focus{border-color:#1768ff;box-shadow:0 0 0 3px rgba(23,104,255,.12)}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.field-help{float:right;color:#8693a8;font-size:11px;font-weight:500}.full{width:100%}.secondary{border:1px solid #d7e0ef;border-radius:12px;padding:12px 16px;background:#f5f8fc;color:#14213d;font-weight:800;cursor:pointer}.secondary:hover{border-color:#1768ff;color:#1768ff}.profile-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:24px 0}.profile-grid>div{display:grid;gap:5px;padding:13px;border:1px solid #e4eaf3;border-radius:14px;background:#f8fafd}.profile-grid span{font-size:11px;color:#70809a;text-transform:uppercase;letter-spacing:.06em}.profile-grid b{font-size:13px;color:#14213d;overflow-wrap:anywhere}@media(max-width:700px){.header-actions{gap:5px}.account-button{padding:9px 10px}.account-button span:last-child{display:none}.account-modal{padding:28px 20px;border-radius:22px}.form-grid,.profile-grid{grid-template-columns:1fr}}

/* Navegación y experiencia móvil */
.mobile-menu-button,.mobile-menu{display:none}
@media (max-width:700px){
  .topline{font-size:11px;padding:7px 12px}.header{height:auto;min-height:64px;padding:10px 14px;display:grid;grid-template-columns:1fr auto;gap:10px}.brand{font-size:18px}.header-actions,.desktop-nav{display:none!important}.search{grid-column:1/-1;grid-row:2;width:100%;order:3}.search input{height:42px;font-size:14px}.search button{height:42px;width:42px}.mobile-menu-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid #d9e0eb;background:#fff;color:#15233b;border-radius:10px;padding:9px 11px;font-weight:800;font-size:13px}.mobile-menu-button:active{transform:scale(.97)}.mobile-menu[hidden]{display:none}.mobile-menu{display:block;margin:0 12px 12px;padding:8px;background:#fff;border:1px solid #e3e8f0;border-radius:14px;box-shadow:0 12px 28px rgba(21,35,59,.12)}.mobile-menu>a{display:block;padding:12px 10px;color:#17243a;font-weight:700;border-bottom:1px solid #edf0f5}.mobile-menu-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding-top:8px}.mobile-menu-actions button{border:1px solid #dce3ed;background:#f7f9fc;border-radius:10px;padding:12px 8px;color:#15233b;font-weight:800}.mobile-menu-actions b{background:#2769e8;color:#fff;border-radius:999px;padding:2px 6px;margin-left:3px}.hero{margin:14px 12px;padding:30px 20px;border-radius:22px}.hero h1{font-size:34px;line-height:1.02}.section-head{padding:0 14px}.section-head h1,.section-head h2{font-size:25px;line-height:1.08}.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:0 12px}.card{border-radius:14px}.card .photo{height:auto;aspect-ratio:1}.card-body{padding:10px}.card h3{font-size:14px;line-height:1.2}.card .price{font-size:14px}.card .add{padding:7px 8px;font-size:11px}.detail{grid-template-columns:1fr;gap:22px;padding:0 14px}.gallery-main{height:min(82vw,420px);min-height:260px;border-radius:16px}.gallery-thumbs{gap:6px}.thumb{flex-basis:58px;height:58px;border-radius:8px}.detail h1{font-size:30px;line-height:1.05}.detail .primary{width:100%;min-height:48px}.account-modal{width:calc(100% - 24px);max-height:90vh;overflow:auto;padding:24px 18px;border-radius:18px}.form-grid{grid-template-columns:1fr}.drawer{width:min(100%,390px);padding:18px}.drawer-head h2{font-size:22px}.drawer-item{grid-template-columns:56px 1fr auto;gap:8px}.drawer-item img{width:56px;height:56px}.profile-grid{grid-template-columns:1fr}.directory{grid-template-columns:1fr;padding:0 14px}.directory a{padding:16px}.features{grid-template-columns:1fr 1fr}
}
@media (max-width:380px){.grid{gap:7px;padding:0 9px}.card .photo{aspect-ratio:1}.card-body{padding:8px}.card h3{font-size:13px}.hero h1{font-size:29px}.brand span{display:none}}
@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

.detail-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:16px 0 22px}.detail-actions .primary{margin:0}.ra-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid #8b5cf6;background:#f5f0ff;color:#6d28d9;border-radius:10px;padding:13px 18px;font-weight:800;cursor:pointer;transition:.18s ease}.ra-button:hover{background:#6d28d9;color:#fff;transform:translateY(-1px)}.ra-button:focus-visible{outline:3px solid #8b5cf655;outline-offset:2px}@media(max-width:560px){.detail-actions{display:grid;grid-template-columns:1fr}.detail-actions .primary,.detail-actions .ra-button{width:100%;min-height:48px}}

/* Presentación de precios especiales vigentes */
.price-offer{display:inline-flex;flex-direction:column;align-items:flex-start;gap:2px;line-height:1.15}.special-price{color:#d62839}.normal-price{color:#718096;font-size:12px;font-weight:600}.special-dates{color:#718096;font-size:10px;font-weight:600;white-space:nowrap}.product-price{margin:14px 0}.product-price .price-offer .special-price{font-size:28px}.product-price .normal-price{font-size:15px}.product-price .special-dates{font-size:12px}@media(max-width:560px){.card .price-offer{max-width:100%}.card .special-dates{font-size:9px}.card .normal-price{font-size:10px}.product-price .price-offer .special-price{font-size:23px}.drawer-item .price-offer{display:inline-flex}.drawer-item .special-dates{font-size:9px}}

/* Historial de compras e-commerce */
.purchase-history{margin:24px 0}.history-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.history-head h3{margin:0;color:#14213d;font-size:18px}.history-head .secondary{padding:8px 11px;font-size:12px}.purchase-list{display:grid;gap:12px}.purchase-card{border:1px solid #e4eaf3;border-radius:16px;padding:14px;background:#f8fafd;color:#14213d}.purchase-card-head{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:6px}.purchase-card-head strong{color:#1768ff}.purchase-card-head span{font-size:12px;color:#70809a}.purchase-products{display:grid;gap:6px;margin:12px 0;padding-top:10px;border-top:1px solid #e4eaf3}.purchase-product{display:flex;justify-content:space-between;gap:12px;font-size:12px;color:#263957}.purchase-total{display:flex;justify-content:space-between;gap:12px;padding-top:10px;border-top:1px solid #d7e0ef;color:#14213d}@media(max-width:560px){.purchase-product{display:grid;gap:2px}.purchase-product span:last-child{font-weight:800}.history-head{align-items:flex-start}}


.account-section-selector{display:grid;gap:7px;margin:22px 0 14px;color:#263957;font-size:13px;font-weight:800}.account-section-selector select{width:100%;box-sizing:border-box;border:1px solid #d7e0ef;border-radius:12px;background:#fbfcfe;padding:12px 13px;color:#14213d;font:inherit;outline:none}.account-section-selector select:focus{border-color:#1768ff;box-shadow:0 0 0 3px rgba(23,104,255,.12)}.purchase-product-info{display:flex;align-items:center;gap:9px;min-width:0}.purchase-product-info>span{display:grid;gap:2px;min-width:0}.purchase-product-info small{color:#70809a;font-size:11px}.purchase-product-image{width:44px;height:44px;flex:0 0 44px;object-fit:contain;border-radius:8px;background:#eef3fa;border:1px solid #e4eaf3}@media(max-width:560px){.purchase-product-info{align-items:flex-start}.purchase-product-image{width:38px;height:38px;flex-basis:38px}}
.purchase-product-link{color:#14213d;text-decoration:none}.purchase-product-link:hover{color:#1768ff;text-decoration:underline}

/* Carrito: desplazamiento únicamente en la lista de productos */
.drawer{height:100vh;max-height:100vh;box-sizing:border-box;display:flex;flex-direction:column;overflow:hidden}.drawer-head,.drawer>.cart-total,.drawer>.delivery-form,.drawer>#finishRequest,.drawer>.note{flex:0 0 auto}.drawer>#cartItems{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;padding-right:5px;overscroll-behavior:contain}.drawer>#cartItems::-webkit-scrollbar{width:7px}.drawer>#cartItems::-webkit-scrollbar-thumb{background:#bdc8d8;border-radius:999px}.drawer>#cartItems{scrollbar-width:thin;scrollbar-color:#bdc8d8 transparent}

/* Selector empresarial de modalidad y fechas de entrega */
.delivery-form{padding:18px 0 8px;margin-top:10px;border-top:1px solid var(--line)}.delivery-heading{padding:14px 15px;margin-bottom:12px;border:1px solid #dbe5f2;border-radius:16px;background:linear-gradient(135deg,#f3f7fc,#fff)}.delivery-kicker{display:block;margin-bottom:5px;color:#1768ff;font-size:10px;font-weight:900;letter-spacing:.14em}.delivery-heading h3{margin:0;color:#14213d;font-size:17px;line-height:1.25}.delivery-heading p{margin:6px 0 0;color:#70809a;font-size:12px;line-height:1.45}.delivery-field{display:grid;gap:7px;margin:10px 0;padding:11px 13px;border:1px solid #dbe5f2;border-radius:14px;background:#fff;color:#263957}.delivery-field:focus-within{border-color:#1768ff;box-shadow:0 0 0 3px rgba(23,104,255,.11)}.delivery-label{font-size:12px;font-weight:900;color:#263957}.delivery-field input,.delivery-field select,.delivery-field textarea{width:100%;box-sizing:border-box;border:1px solid #d7e0ef;border-radius:10px;background:#f8fafd;padding:10px 11px;color:#14213d;font:inherit;outline:none}.delivery-field input:focus,.delivery-field select:focus,.delivery-field textarea:focus{border-color:#1768ff;background:#fff}.delivery-field input{min-height:42px}.delivery-field small{color:#70809a;font-size:11px;line-height:1.35}.delivery-mode-field{background:#f5f8ff;border-color:#bfcff0}.delivery-mode-field select{font-weight:800;background:#fff;cursor:pointer}

/* Carrito integralmente desplazable: todos los detalles pertenecen al mismo scroll */
.drawer{height:100dvh;max-height:100dvh;display:block;overflow-y:auto;overflow-x:hidden;box-sizing:border-box;padding-bottom:24px;overscroll-behavior:contain}.drawer>#cartItems{display:block;max-height:none;overflow:visible;padding-right:0}.drawer>.drawer-head{position:sticky;top:0;z-index:3;background:#fff;padding-bottom:12px}.drawer>.cart-total{margin-top:18px}.drawer>.delivery-form{margin-bottom:12px}.drawer>#finishRequest{margin-bottom:8px}.drawer>.note{padding-bottom:8px}
.drawer::-webkit-scrollbar{width:8px}.drawer::-webkit-scrollbar-thumb{background:#aebbd0;border-radius:999px}.drawer{scrollbar-width:thin;scrollbar-color:#aebbd0 transparent}
@media(max-width:560px){.drawer{height:100dvh;max-height:100dvh;padding:16px 18px 26px}.drawer>.drawer-head{margin-bottom:4px}}

.profile-address{min-height:42px;box-sizing:border-box;padding:11px;border:1px solid #d7e0ef;border-radius:10px;background:#f4f7fb;color:#263957;font-size:13px;line-height:1.45;overflow-wrap:anywhere}

/* Solo se muestra el bloque correspondiente al método de entrega seleccionado */
#deliveryDateLabel[hidden],#pickupDateLabel[hidden],#deliveryAddressLabel[hidden]{display:none!important}

/* Entrega independiente por comercio */
.pickup-delivery-sections{margin:10px 0}.pickup-commerce-section{margin:12px 0;padding:12px;border:1px solid #cddbf0;border-radius:16px;background:#f8faff;box-shadow:0 5px 14px rgba(24,54,100,.06)}.pickup-commerce-title{display:flex;align-items:center;gap:8px;margin-bottom:10px;color:#14213d;font-size:13px;font-weight:900}.pickup-commerce-title::before{content:'COMERCIO';padding:4px 7px;border-radius:999px;background:#1768ff;color:#fff;font-size:8px;letter-spacing:.08em}.pickup-commerce-section .delivery-field{margin:8px 0;background:#fff}.pickup-commerce-section input,.pickup-commerce-section select{cursor:pointer}

/* La modalidad de cada comercio controla sus campos sin interferencias de estilos previos */
.commerce-delivery-section [hidden],.commerce-delivery-section .delivery-pickup-fields[aria-hidden="true"],.commerce-delivery-section .delivery-address-field[aria-hidden="true"]{display:none!important}
.commerce-delivery-section .delivery-pickup-fields[aria-hidden="false"]{display:block!important}
.commerce-delivery-section .delivery-address-field[aria-hidden="false"]{display:block!important}

/* Ocultamiento definitivo de campos alternos por comercio */
.commerce-delivery-section .is-delivery-hidden{display:none!important;visibility:hidden!important;height:0!important;min-height:0!important;margin:0!important;padding:0!important;overflow:hidden!important}

/* Bloques del carrito agrupados por comercio */
.commerce-delivery-sections{display:flex;flex-direction:column;gap:16px}
.commerce-delivery-section{display:flex;flex-direction:column;gap:12px;border:1px solid #dbe4f0;border-radius:16px;background:#fff;padding:14px;box-shadow:0 8px 20px rgba(15,35,70,.06)}
.pickup-commerce-title{font-weight:800;color:#102b55;font-size:14px;padding-bottom:8px;border-bottom:1px solid #e8eef6}
.commerce-cart-products{display:flex;flex-direction:column;gap:8px}
.commerce-products-heading{font-size:11px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:#64748b}
.commerce-cart-item{margin:0!important;padding:8px 0!important;border-bottom:1px solid #edf1f6!important}
.commerce-cart-item:last-child{border-bottom:0!important}
.commerce-cart-item .photo{width:48px!important;height:48px!important;min-width:48px!important}
.commerce-cart-item-info{min-width:0;flex:1}
.commerce-cart-item-info strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.commerce-delivery-options{display:flex;flex-direction:column;gap:10px;border-top:1px solid #e8eef6;padding-top:10px}
.delivery-home-panel,.delivery-pickup-panel{display:flex;flex-direction:column;gap:10px}
@media(max-width:480px){.commerce-delivery-section{padding:11px}.commerce-cart-item .qty{font-size:12px}.commerce-cart-item .qty button{padding:3px 6px}}

/* Modal y checkout Wompi */
.payment-modal{position:relative;width:min(520px,calc(100vw - 28px));max-height:min(720px,calc(100dvh - 28px));overflow:auto;background:#fff;border-radius:24px;padding:32px;box-shadow:0 24px 80px rgba(15,23,42,.28);color:#13233f}.payment-modal h2{margin:8px 0 10px;font-size:clamp(24px,5vw,32px);line-height:1.1}.payment-modal .modal-close{position:absolute;right:18px;top:14px}.payment-select-label{display:flex;flex-direction:column;gap:8px;margin:22px 0 14px;font-weight:700;color:#1f3154}.payment-select-label select{width:100%;padding:13px 14px;border:1px solid #cbd5e1;border-radius:12px;background:#f8fafc;color:#15213a;font:inherit}.payment-amount{margin:14px 0;padding:16px 18px;border-radius:14px;background:#eef5ff;color:#0b56c9;font-size:20px;font-weight:800}.wompi-checkout-container{margin-top:18px;padding:16px;border:1px solid #dbe5f4;border-radius:14px;background:#f8fbff}.payment-modal .auth-message{min-height:22px;margin:10px 0}.payment-modal .auth-message.loading{color:#315eaa}.payment-modal .auth-message.error{color:#b42318}@media(max-width:560px){.payment-modal{padding:25px 20px;border-radius:18px}}

/* Transporte por comercio en el carrito */
.commerce-freight{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 11px;border:1px solid #dbe5f2;border-radius:10px;background:#f7faff;color:#52637d;font-size:12px}.commerce-freight b{color:#14213d;font-size:13px}

/* Encabezado público personalizado por comercio */
.commerce-branding{width:min(1180px,calc(100% - 40px));margin:22px auto 8px;padding:18px 22px;border:1px solid #dbe5f2;border-radius:20px;background:linear-gradient(135deg,#f7faff 0%,#eef4fc 100%);box-shadow:0 10px 26px rgba(21,35,59,.08)}
.commerce-branding[hidden]{display:none}
.commerce-branding-inner{display:flex;align-items:center;gap:18px;min-width:0}
.commerce-logo,.commerce-logo-fallback{width:82px;height:82px;flex:0 0 82px;border-radius:16px;border:1px solid #d7e0ef;background:#fff;object-fit:contain;box-shadow:0 6px 16px rgba(21,35,59,.08)}
.commerce-logo-fallback{display:grid;place-items:center;color:#1768ff;font-size:34px;font-weight:900;background:linear-gradient(135deg,#e8f0ff,#fff)}
.commerce-branding-copy{min-width:0;display:grid;gap:5px}
.commerce-branding-copy .small{color:#1768ff;font-size:10px;font-weight:900;letter-spacing:.14em}
.commerce-branding-copy h1{margin:0;color:#14213d;font-size:26px;line-height:1.1}
.commerce-meta{display:flex;flex-wrap:wrap;gap:12px;color:#526581;font-size:13px}
.commerce-sites{color:#70809a;font-size:12px;line-height:1.45;overflow-wrap:anywhere}
.commerce-sites b{color:#263957}
@media(max-width:700px){.commerce-branding{width:calc(100% - 24px);margin:14px 12px 6px;padding:14px}.commerce-branding-inner{align-items:flex-start;gap:12px}.commerce-logo,.commerce-logo-fallback{width:64px;height:64px;flex-basis:64px;border-radius:13px}.commerce-logo-fallback{font-size:27px}.commerce-branding-copy h1{font-size:21px}.commerce-meta{display:grid;gap:3px;font-size:12px}.commerce-sites{font-size:11px}}
