:root{font-family:Manrope,system-ui,sans-serif;color:#20242a;background:#f5f6f7;font-synthesis:none}*{box-sizing:border-box}body{margin:0}.d-none{display:none!important}button,input,select,textarea{font:inherit}.store-header{position:fixed;z-index:20;top:0;right:0;left:0;display:flex;justify-content:flex-end;gap:8px;padding:max(12px,env(safe-area-inset-top)) 16px 10px;background:linear-gradient(180deg,rgba(0,0,0,.35),transparent)}.store-header button{border:0}.icon-button,.cart-button{position:relative;display:grid;place-items:center;width:42px;height:42px;border-radius:15px;color:#20242a;background:rgba(255,255,255,.94);box-shadow:0 7px 20px rgba(0,0,0,.12)}.cart-button span{position:absolute;top:-4px;right:-4px;display:grid;place-items:center;min-width:19px;height:19px;padding:0 4px;border:2px solid #fff;border-radius:50%;color:#fff;background:#ff6500;font-size:10px;font-weight:900}.install-button{padding:0 13px;border-radius:14px;color:#fff;background:#ff6500;font-size:12px;font-weight:900}.store-cover{height:220px;background:linear-gradient(135deg,#ff8a3d,#ff4d00) center/cover}.store-identity{position:relative;display:flex;align-items:flex-end;gap:14px;margin:-48px 14px 0;padding:18px;border-radius:24px;background:#fff;box-shadow:0 16px 38px rgba(23,28,36,.13)}.store-logo{display:grid;flex:0 0 74px;place-items:center;width:74px;height:74px;overflow:hidden;border:5px solid #fff;border-radius:22px;color:#ff6500;background:#fff1e7;font-size:30px;box-shadow:0 8px 22px rgba(0,0,0,.1)}.store-logo img{width:100%;height:100%;object-fit:cover}.store-identity span{color:#ff6500;font-size:10px;font-weight:900;letter-spacing:.08em}.store-identity h1{margin:4px 0 2px;font-size:22px;line-height:1.05}.store-identity p{margin:0;color:#757d88;font-size:12px}.catalog-shell{max-width:1100px;margin:auto;padding:20px 14px 100px}.catalog-search{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:9px;padding:4px 14px;border:1px solid #e2e5e9;border-radius:16px;background:#fff}.catalog-search i{color:#ff6500}.catalog-search input{padding:12px 0;border:0;outline:0}.category-strip{display:flex;gap:8px;overflow-x:auto;padding:13px 0;scrollbar-width:none}.category-strip button{flex:0 0 auto;padding:8px 12px;border:1px solid #e0e3e7;border-radius:999px;background:#fff;font-size:11px;font-weight:800}.category-strip button.active{border-color:#ff6500;color:#fff;background:#ff6500}.product-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.product-card{overflow:hidden;border:1px solid #e3e6e9;border-radius:20px;background:#fff}.product-image{display:grid;place-items:center;height:140px;color:#afb5bd;background:#eef0f2 center/cover;font-size:30px}.product-body{display:flex;min-height:155px;flex-direction:column;padding:13px}.product-body>span{color:#ff6500;font-size:9px;font-weight:900}.product-body h2{margin:4px 0;font-size:15px}.product-body p{display:-webkit-box;overflow:hidden;margin:0;color:#747c87;font-size:11px;-webkit-line-clamp:2;-webkit-box-orient:vertical}.product-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:auto;padding-top:10px}.product-bottom strong{font-size:17px}.product-bottom button{display:grid;place-items:center;width:36px;height:36px;border:0;border-radius:13px;color:#fff;background:#ff6500}.empty{grid-column:1/-1;padding:32px 18px;border-radius:20px;color:#7d8590;background:#fff;text-align:center}.cart-drawer,.checkout-modal{position:fixed;z-index:60;inset:0;visibility:hidden}.cart-drawer.open{visibility:visible}.cart-backdrop,.checkout-backdrop{position:absolute;inset:0;width:100%;height:100%;border:0;background:rgba(15,18,22,.44)}.cart-drawer>section{position:absolute;right:0;bottom:0;left:0;max-height:88vh;overflow:auto;padding:20px 17px calc(20px + env(safe-area-inset-bottom));border-radius:28px 28px 0 0;background:#fff;transform:translateY(105%);transition:.25s}.cart-drawer.open>section{transform:none}.cart-head{display:flex;align-items:center;justify-content:space-between}.cart-head span{color:#ff6500;font-size:10px;font-weight:900}.cart-head h2{margin:3px 0;font-size:23px}.cart-head button{display:grid;place-items:center;width:38px;height:38px;border:0;border-radius:13px;background:#f0f2f4}.cart-items{display:grid;margin:14px 0}.cart-item{display:grid;grid-template-columns:1fr auto;gap:8px;padding:12px 0;border-bottom:1px solid #edf0f2}.cart-item span{display:grid}.cart-item small{color:#7c848e}.cart-item-controls{display:flex;align-items:center;gap:7px}.cart-item-controls button{width:27px;height:27px;border:0;border-radius:9px;background:#f1f3f5}.cart-total{display:flex;justify-content:space-between;padding:15px 0;font-size:18px}.checkout-button{width:100%;padding:14px;border:0;border-radius:15px;color:#fff;background:#ff6500;font-weight:900}.checkout-button:disabled{background:#c8cbd0}.checkout-modal{visibility:visible}.checkout-modal form{position:absolute;right:12px;bottom:12px;left:12px;max-width:520px;max-height:92vh;overflow:auto;margin:auto;padding:20px;border-radius:25px;background:#fff}.checkout-modal label{display:block;margin:12px 0 5px;font-size:12px;font-weight:900}.checkout-modal input,.checkout-modal select,.checkout-modal textarea{width:100%;padding:12px;border:1px solid #dfe3e7;border-radius:13px}.checkout-modal textarea{min-height:70px}#checkout-message{font-size:12px;font-weight:800}.success-order{padding:25px;border-radius:20px;background:#e5faef;text-align:center}.success-order i{font-size:40px;color:#079967}@media(min-width:700px){.store-cover{height:320px}.store-identity{max-width:1070px;margin:-55px auto 0}.product-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.cart-drawer>section{top:0;right:0;bottom:0;left:auto;width:420px;max-height:none;border-radius:0;transform:translateX(105%)}}

.product-image{position:relative}.product-image>span{position:absolute;top:9px;left:9px;padding:5px 7px;border-radius:999px;color:#fff;background:rgba(20,23,28,.78);font-size:8px;font-weight:900;letter-spacing:.06em}.delivery-price-note{display:flex;align-items:center;gap:10px;margin-top:12px;padding:12px;border-radius:15px;color:#086b4d;background:#e8faf2}.delivery-price-note>i{display:grid;place-items:center;width:38px;height:38px;border-radius:13px;color:#fff;background:#08a06f;font-size:18px}.delivery-price-note span{display:grid}.delivery-price-note small{color:#4c7667;font-size:10px}.checkout-breakdown{display:grid;gap:7px;margin:15px 0;padding:13px;border-radius:15px;background:#f4f5f7}.checkout-breakdown>span,.checkout-breakdown>strong{display:flex;justify-content:space-between;gap:12px}.checkout-breakdown>span{color:#6d7580;font-size:12px}.checkout-breakdown>strong{padding-top:8px;border-top:1px solid #dfe3e7;font-size:16px}.delivery-order-created{display:flex;align-items:center;gap:10px;margin:14px 0;padding:12px;border-radius:14px;color:#086b4d;background:#fff}.delivery-order-created>i{font-size:24px}.delivery-order-created span{display:grid;text-align:left}.delivery-order-created small{color:#597469;font-size:10px}
.payment-direct-note {
  margin: -4px 0 8px;
  color: #53615a;
  font-size: .78rem;
  line-height: 1.35;
}
.payment-direct-note i { color: #079447; }

.payment-method-group {
  min-width: 0;
  margin: 14px 0 0;
  padding: 0;
  border: 0;
}

.payment-method-group legend {
  width: 100%;
  margin: 0 0 7px;
  padding: 0;
  color: #20242a;
  font-size: 12px;
  font-weight: 900;
}

.payment-method-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.payment-method-option {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 17px;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 64px;
  padding: 10px;
  border: 1.5px solid #dfe3e7;
  border-radius: 16px;
  color: #22272d;
  background: #fff;
  text-align: left;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.payment-method-option > i:first-child {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  color: #636b76;
  background: #f0f2f4;
  font-size: 17px;
}

.payment-method-option span {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.payment-method-option strong {
  overflow: hidden;
  font-size: 12px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payment-method-option small {
  color: #747c87;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.25;
}

.payment-method-check {
  visibility: hidden;
  color: #079967;
  font-size: 16px;
}

.payment-method-option.is-selected {
  border-color: #ff6500;
  background: #fff7f1;
  box-shadow: 0 0 0 1px rgba(255, 101, 0, .08);
}

.payment-method-option.is-selected > i:first-child {
  color: #fff;
  background: #ff6500;
}

.payment-method-option.is-selected .payment-method-check {
  visibility: visible;
}

.payment-method-option:disabled {
  cursor: not-allowed;
  color: #69717c;
  background: #f4f5f6;
  opacity: 1;
}

.payment-method-option:disabled > i:first-child {
  color: #89909a;
  background: #e6e8eb;
}

.payment-availability-note {
  margin: 7px 2px 0;
  color: #67707b;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
}

#checkout-message:not(:empty) {
  margin: 10px 0;
  padding: 10px 12px;
  border-radius: 12px;
  color: #49515a;
  background: #f1f3f5;
  line-height: 1.4;
}

#checkout-submit-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  touch-action: manipulation;
}

#checkout-submit-button[aria-busy="true"] {
  background: #d95600;
}

.checkout-button-spinner {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border: 2px solid rgba(255, 255, 255, .45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: checkout-button-spin .72s linear infinite;
}

@keyframes checkout-button-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .checkout-button-spinner { animation-duration: 1.5s; }
}

.payment-method-option:focus-visible,
#checkout-submit-button:focus-visible {
  outline: 3px solid rgba(34, 121, 255, .28);
  outline-offset: 2px;
}

.delivery-location-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 10px;
}

.delivery-location-actions button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 46px;
  padding: 10px;
  border: 1px solid #ffb98d;
  border-radius: 14px;
  color: #b74700;
  background: #fff7f1;
  font-size: 12px;
  font-weight: 900;
}

.delivery-location-actions button:first-child {
  border-color: #9bd8c2;
  color: #087457;
  background: #edfbf6;
}

.delivery-location-actions button:disabled {
  opacity: .65;
}

.delivery-location-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 9px;
  padding: 10px 12px;
  border-radius: 13px;
  color: #68717c;
  background: #f2f4f6;
  font-size: 11px;
  font-weight: 800;
}

.delivery-location-status.selected {
  color: #087457;
  background: #e7f9f2;
}

.checkout-delivery-map-panel {
  overflow: hidden;
  margin-top: 10px;
  border: 1px solid #e1e5e9;
  border-radius: 17px;
  background: #eef1f3;
}

.checkout-delivery-map {
  width: 100%;
  height: 250px;
}

.checkout-delivery-map-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  background: #fff;
}

.checkout-delivery-map-footer span {
  color: #68717c;
  font-size: 10px;
  font-weight: 800;
}

.checkout-delivery-map-footer button {
  flex: 0 0 auto;
  padding: 9px 11px;
  border: 0;
  border-radius: 11px;
  color: #fff;
  background: #ff6500;
  font-size: 11px;
  font-weight: 900;
}

@media (max-width: 420px) {
  .delivery-location-actions {
    grid-template-columns: 1fr;
  }
  .checkout-delivery-map {
    height: 220px;
  }
}

@supports (padding: max(0px)) {
  .checkout-modal form {
    right: max(10px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
    left: max(10px, env(safe-area-inset-left));
    max-height: calc(100dvh - max(20px, env(safe-area-inset-top)) - max(20px, env(safe-area-inset-bottom)));
  }
}

@media (max-width: 350px) {
  .payment-method-option {
    grid-template-columns: 30px minmax(0, 1fr) 14px;
    gap: 6px;
    padding: 8px;
  }
  .payment-method-option > i:first-child {
    width: 30px;
    height: 30px;
  }
}

.pickup-order-location {
  display: grid;
  gap: 10px;
  margin: 14px 0;
  padding: 12px;
  border: 1px solid #cdeede;
  border-radius: 18px;
  background: #fff;
  text-align: left;
}

.pickup-order-location-copy {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
}

.pickup-order-location-copy > span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 15px;
  color: #fff;
  background: #ff6500;
  font-size: 20px;
}

.pickup-order-location-copy > div { display: grid; min-width: 0; gap: 2px; }
.pickup-order-location-copy small { color: #e85700; font-size: 8px; font-weight: 900; letter-spacing: .1em; }
.pickup-order-location-copy strong { color: #20242a; font-size: 14px; overflow-wrap: anywhere; }
.pickup-order-location-copy p {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  margin: 0;
  color: #68717c;
  font-size: 10px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.pickup-order-location-copy p i { flex: 0 0 auto; color: #ff6500; }

.pickup-order-map {
  height: 240px;
  overflow: hidden;
  border: 1px solid #e1e5e9;
  border-radius: 15px;
  background: #eef1f3;
}

.pickup-order-map iframe { width: 100%; height: 100%; border: 0; }

.pickup-order-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.pickup-order-actions a {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  border-radius: 13px;
  color: #087457;
  background: #e7f9f2;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.pickup-order-actions a.checkout-button { color: #fff; background: #ff6500; }
.success-order > .checkout-button { margin-top: 3px; }

@media (max-width: 420px) {
  .pickup-order-map { height: 210px; }
  .pickup-order-actions { grid-template-columns: 1fr; }
}

/* Catálogo jerárquico: categoría → subcategoría → productos. */
.category-strip,
.subcategory-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.category-strip::-webkit-scrollbar,
.subcategory-strip::-webkit-scrollbar {
  display: none;
}

.subcategory-strip {
  margin: -4px 0 8px;
  padding: 2px 0 8px;
}

.category-strip button,
.subcategory-strip button {
  flex: 0 0 auto;
  max-width: min(78vw, 310px);
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid #dfe3e7;
  border-radius: 14px;
  color: #343a42;
  background: #fff;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
  overflow-wrap: anywhere;
  scroll-snap-align: start;
  text-align: left;
  white-space: normal;
}

.subcategory-strip button {
  border-color: #ffd7be;
  color: #a64000;
  background: #fff7f1;
}

.category-strip button.active,
.subcategory-strip button.active {
  border-color: #ff6500;
  color: #fff;
  background: #ff6500;
  box-shadow: 0 6px 16px rgba(255, 101, 0, .2);
}

.category-strip button:focus-visible,
.subcategory-strip button:focus-visible {
  outline: 3px solid rgba(255, 101, 0, .3);
  outline-offset: 2px;
}

.catalog-path {
  margin: 0 0 12px;
  color: #68717c;
  font-size: 11px;
  font-weight: 800;
}

.product-body > span {
  display: -webkit-box;
  overflow: hidden;
  min-height: 2.4em;
  line-height: 1.2;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

@media (max-width: 420px) {
  .category-strip button,
  .subcategory-strip button {
    min-height: 42px;
    font-size: 12px;
  }
}
