@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/manrope-latin.woff2') format('woff2');
}

:root {
  --sf-blue: #004799;
  --sf-blue-mid: #0a5dc2;
  --sf-blue-bright: #0c72e4;
  --sf-navy: #0e2e5c;
  --sf-lime: #84bd00;
  --sf-yellow: #ffd200;
  --sf-ice: #f3f6fb;
  --sf-bar: #e8f1ff;
  --sf-white: #ffffff;
  --sf-muted: #52637d;
  --sf-line: #e2e8f2;
  --sf-wa: #25d366;
  --sf-ok-bg: #e7f6ee;
  --sf-ok-ink: #0f7642;
  --sf-out-bg: #f1f4f9;
  --sf-out-ink: #64748b;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  color: var(--sf-navy);
  background: var(--sf-white);
  font-size: 16px;
  line-height: 1.45;
  font-synthesis: none;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

a,
button,
input {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid #63a4ff;
  outline-offset: 2px;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

[hidden] {
  display: none !important;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 10px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--sf-yellow);
  color: var(--sf-navy);
  font-weight: 800;
}

.skip:focus {
  left: 16px;
}

.wrap {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding-inline: 12px;
}

.ico {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Top Cintillo & Preheader */
.cintillo {
  background: var(--sf-blue);
  color: var(--sf-white);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.cintillo-inner {
  padding-block: 4px;
}

.cintillo b {
  color: var(--sf-yellow);
  font-weight: 800;
}

.preheader {
  display: none;
  background: var(--sf-blue);
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 600;
}

.preheader-inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  padding-block: 6px;
}

.preheader a:hover {
  text-decoration: underline;
}

/* Sticky San Fernando Header */
.mast {
  position: sticky;
  top: 0;
  z-index: 35;
  background: var(--sf-white);
  border-bottom: 1px solid var(--sf-line);
  box-shadow: 0 2px 12px rgba(0, 44, 102, 0.05);
}

.mast-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: 'brand search actions';
  align-items: center;
  gap: 6px;
  padding-block: 6px;
}

.brand {
  grid-area: brand;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.brand img {
  width: 66px;
  height: auto;
}

.brand-tag {
  display: none;
  font-size: 12px;
  font-weight: 700;
  color: var(--sf-blue);
}

.delivery-pill {
  grid-area: delivery;
  display: none;
  align-items: center;
  gap: 8px;
  color: var(--sf-blue);
  font-size: 13px;
  line-height: 1.25;
}

.delivery-pill small {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--sf-muted);
}

.delivery-pill b {
  font-weight: 700;
  color: var(--sf-navy);
}

.searchbar {
  grid-area: search;
  display: flex;
  align-items: center;
  min-width: 0;
  width: 100%;
  background: var(--sf-white);
  border: 1.5px solid #d5dfef;
  border-radius: 999px;
  padding: 2px 2px 2px 9px;
}

.searchbar:focus-within {
  border-color: var(--sf-blue);
}

.searchbar input {
  width: 100%;
  min-width: 0;
  height: 24px;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 12px;
  color: var(--sf-navy);
  outline: none;
}

.searchbar input::placeholder {
  color: #7d8da6;
}

.search-btn {
  display: grid;
  place-items: center;
  width: 26px;
  height: 24px;
  border-radius: 999px;
  background: #eff2f6;
  color: var(--sf-muted);
  flex-shrink: 0;
}

.search-btn .ico {
  width: 13px;
  height: 13px;
}

.mast-actions {
  grid-area: actions;
  display: flex;
  align-items: center;
  gap: 4px;
  justify-self: end;
}

.icon-link {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: var(--sf-blue);
}

.icon-link .ico {
  width: 17px;
  height: 17px;
}

.header-wa {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 28px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--sf-wa);
  color: var(--sf-white);
  font-size: 11px;
  font-weight: 800;
}

.header-wa .ico {
  width: 13px;
  height: 13px;
}

.user-loc-pill {
  grid-area: userloc;
  display: none;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--sf-ice);
  border: 1.5px solid #d5dfef;
  color: var(--sf-blue);
  font-size: 13px;
  line-height: 1.2;
  text-align: left;
  max-width: 230px;
}

.user-loc-pill span {
  min-width: 0;
}

.user-loc-pill small {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--sf-muted);
}

.user-loc-pill b {
  display: block;
  font-weight: 800;
  color: var(--sf-navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-loc-pill .chev {
  flex-shrink: 0;
  color: var(--sf-muted);
}

.mobile-bars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 12px 6px;
}

.mobile-user-loc,
.mobile-location-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  width: 100%;
  padding: 5px 8px;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 700;
  text-align: left;
}

.mobile-user-loc .ico,
.mobile-location-bar .ico {
  width: 14px;
  height: 14px;
}

.mobile-user-loc span,
.mobile-location-bar span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-user-loc {
  background: #f3f7ff;
  color: var(--sf-navy);
  border: 1px solid #d5dfef;
}

.mobile-user-loc .ico:first-child {
  color: var(--sf-blue);
}

.mobile-location-bar {
  background: var(--sf-bar);
  color: var(--sf-blue);
  border: 1px solid #cfe0fa;
}

.mobile-user-loc .arrow,
.mobile-location-bar .arrow {
  margin-left: auto;
  width: 13px;
  height: 13px;
}

/* Hero Mosaic */
.hero-mosaic {
  display: grid;
  gap: 10px;
  padding-block: 10px 8px;
}

.hero-main {
  display: grid;
  gap: 12px;
  padding: 15px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, #004799 0%, #0a63cf 55%, #0e78eb 100%);
  color: var(--sf-white);
  overflow: hidden;
}

.hero-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #cbe3ff;
}

.hero-main h1 {
  margin-top: 4px;
  font-size: clamp(1.38rem, 6.2vw, 2.5rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.hero-yellow-tag {
  display: inline-block;
  margin-top: 8px;
  padding: 5px 10px;
  border-radius: 7px;
  background: var(--sf-yellow);
  color: #082d63;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.hero-sub {
  margin-top: 7px;
  font-size: 13px;
  line-height: 1.38;
  color: #e4f0ff;
  max-width: 38ch;
}

.hero-main-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 11px;
}

.hero-side {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
}

.hero-card {
  display: grid;
  grid-template-columns: 1fr 88px;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 13px;
  overflow: hidden;
}

.hero-card-dark {
  background: linear-gradient(135deg, #072959 0%, #0d4596 100%);
  color: var(--sf-white);
}

.hero-card-dark h2 {
  font-size: 15.5px;
  font-weight: 800;
  line-height: 1.15;
}

.hero-card-dark em {
  font-style: normal;
  color: var(--sf-yellow);
}

.hero-badges {
  list-style: none;
  padding: 0;
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hero-badges li {
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

.hero-badges b {
  display: block;
  color: var(--sf-yellow);
  font-weight: 800;
}

.hero-card-promo {
  background: linear-gradient(135deg, #0a58bd 0%, #00428f 100%);
  color: var(--sf-white);
}

.promo-pill {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--sf-yellow);
  color: #082d63;
  font-size: 11px;
  font-weight: 800;
}

.hero-card-promo h2 {
  margin-top: 5px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.18;
}

.hero-card-promo p {
  margin-top: 3px;
  font-size: 12px;
  color: #dceaff;
}

.promo-btn {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-top: 8px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--sf-white);
  color: var(--sf-blue);
  font-size: 11px;
  font-weight: 800;
}

.hero-card-thumb {
  width: 88px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--sf-white);
}

/* Section Headers */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-size: clamp(1.2rem, 4.6vw, 1.85rem);
  font-weight: 800;
  color: var(--sf-blue);
  letter-spacing: -0.02em;
}

.shelf-sub {
  margin-top: 3px;
  font-size: 13px;
  color: var(--sf-muted);
}

.see-all {
  flex-shrink: 0;
  padding: 4px 2px;
  font-size: 13px;
  font-weight: 700;
  color: var(--sf-blue);
  white-space: nowrap;
}

/* "Comprar por categorías" Strip */
.categories {
  padding-block: 14px 16px;
}

.filters {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  padding-bottom: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.filters::-webkit-scrollbar {
  display: none;
}

.cat-card {
  flex: 0 0 auto;
  width: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 6px;
  border-radius: 12px;
  background: var(--sf-ice);
  border: 2px solid transparent;
  text-align: center;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.cat-card:active {
  transform: scale(0.97);
}

.cat-card[aria-pressed='true'] {
  border-color: var(--sf-blue);
  background: #e9f1fe;
}

.cat-plate {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--sf-white);
  border: 1.5px solid #dce5f4;
  padding: 4px;
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 5px 12px rgba(13, 30, 66, 0.08);
}

.cat-plate img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1.16);
}

.cat-card b {
  font-size: 12px;
  font-weight: 700;
  color: var(--sf-blue);
}

/* Product Shelf */
.shelf {
  background: var(--sf-ice);
  padding-block: 18px 24px;
}

.shelf-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.stock-toggle,
.refresh-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--sf-white);
  border: 1.5px solid #d5dfef;
  color: var(--sf-blue);
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
}

.stock-toggle[aria-pressed='true'] {
  background: var(--sf-blue);
  border-color: var(--sf-blue);
  color: var(--sf-white);
}

.refresh-btn:active {
  transform: scale(0.97);
}

.empty-search {
  margin-top: 16px;
  padding: 18px;
  border-radius: 14px;
  background: var(--sf-white);
  border: 1px solid var(--sf-line);
  color: var(--sf-muted);
  font-weight: 600;
}

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

.product {
  display: flex;
  flex-direction: column;
  background: var(--sf-white);
  border: 1.5px solid var(--sf-line);
  border-radius: 13px;
  overflow: hidden;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
}

.product.is-available {
  border-color: #cfe4d8;
  box-shadow: 0 6px 18px rgba(15, 118, 66, 0.06);
}

.product.is-out {
  background: #fafbfd;
}

.product-media {
  position: relative;
  background: var(--sf-white);
  padding: 8px 8px 0;
}

.stock-badge {
  position: absolute;
  top: 7px;
  right: 7px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.stock-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.stock-badge.available {
  background: var(--sf-ok-bg);
  color: var(--sf-ok-ink);
  border: 1px solid #bce4cd;
}

.stock-badge.out {
  background: var(--sf-out-bg);
  color: var(--sf-out-ink);
  border: 1px solid #dce3ee;
}

.product-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  background: var(--sf-white);
}

.product.is-out .product-photo {
  opacity: 0.52;
  filter: grayscale(35%);
}

.product-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  padding: 8px 10px 12px;
}

.product-body small {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--sf-muted);
}

.product-body h3 {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--sf-blue);
}

.product.is-out .product-body h3 {
  color: #4f6079;
}

.product-body p {
  font-size: 11.5px;
  line-height: 1.35;
  color: var(--sf-muted);
}

/* Contact & Store Location Cards */
.service {
  display: grid;
  gap: 14px;
  padding-block: 20px 28px;
}

.order,
.location {
  background: var(--sf-white);
  border: 1.5px solid var(--sf-line);
  border-radius: 15px;
  padding: 16px 14px;
}

.order {
  border-top: 5px solid var(--sf-blue);
}

.location {
  background: linear-gradient(180deg, #ffffff 0%, #f3f7ff 100%);
  border-top: 5px solid var(--sf-yellow);
}

.eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sf-blue);
}

.order h2,
.location h2 {
  margin-top: 3px;
  font-size: clamp(1.22rem, 5vw, 1.9rem);
  font-weight: 800;
  color: var(--sf-blue);
}

.order > p:not(.eyebrow),
.location > p:not(.eyebrow) {
  margin-top: 7px;
  font-size: 13.5px;
  color: var(--sf-muted);
}

.location .location-address {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--sf-bar);
  border: 1px solid #cddff9;
  color: var(--sf-navy);
  font-size: 14.5px;
}

.location .location-address strong {
  font-weight: 800;
}

.contact-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.loc-change-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--sf-bar);
  border: 1.5px solid #c9dbf7;
  color: var(--sf-blue);
  font-size: 13.5px;
  font-weight: 800;
}

.zone-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 18px;
}

.zone-card {
  display: grid;
  gap: 12px;
  padding: 15px 16px;
  border-radius: 14px;
  background: var(--sf-ice);
  border: 1.5px solid var(--sf-line);
  transition: border-color 0.16s ease, background 0.16s ease, opacity 0.16s ease;
}

.zone-card.is-priority {
  background: #eef9f3;
  border: 2px solid #16a34a;
  box-shadow: 0 8px 22px rgba(22, 163, 74, 0.12);
}

.zone-card.is-far {
  background: #f2f4f7;
  border-color: #dde3ec;
  opacity: 0.78;
}

.zone-card.is-far:hover {
  opacity: 1;
}

.zone-badges {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.zone-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--sf-bar);
  color: var(--sf-blue);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.zone-card.is-far .zone-badge {
  background: #e3e7ee;
  color: #5b6678;
}

.zone-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
}

.zone-status.near {
  background: #16a34a;
  color: var(--sf-white);
}

.zone-status.far {
  background: #dce1e9;
  color: #556070;
}

.zone-meta h3 {
  margin-top: 7px;
  font-size: 17px;
  font-weight: 800;
  color: var(--sf-navy);
}

.zone-card.is-far .zone-meta h3 {
  color: #4b5565;
}

.zone-phone {
  margin-top: 2px;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--sf-blue);
}

.zone-card.is-far .zone-phone {
  color: #5c6778;
}

.zone-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.zone-actions .btn {
  min-height: 44px;
  padding: 9px 14px;
  font-size: 14.5px;
}

.zone-card.is-far .btn.wa {
  background: #8795a8;
  color: var(--sf-white);
}

.zone-card.is-far .btn.pale {
  background: #ffffff;
  border-color: #d2d8e2;
  color: #556070;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 15.5px;
  font-weight: 800;
}

.btn.blue {
  background: var(--sf-blue);
  color: var(--sf-white);
}

.btn.wa {
  background: var(--sf-wa);
  color: var(--sf-white);
}

.btn.pale {
  background: var(--sf-white);
  border: 1.5px solid #cbd9f1;
  color: var(--sf-blue);
}

.location-link,
.phone-number {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 52px;
  margin-top: 12px;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 15.5px;
  font-weight: 800;
}

.location-link {
  background: var(--sf-blue);
  color: var(--sf-white);
}

.phone-number {
  justify-content: flex-start;
  background: var(--sf-white);
  border: 1.5px solid #cbd9f1;
  color: var(--sf-navy);
  font-size: 17px;
}

/* Deep Blue San Fernando Footer */
.sf-footer {
  background: var(--sf-blue);
  color: var(--sf-white);
  padding: 20px 0 calc(26px + env(safe-area-inset-bottom));
}

.sf-footer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}

.sf-footer-brand {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.sf-footer-brand img {
  width: 90px;
  height: auto;
  filter: brightness(0) invert(1);
}

.sf-footer-brand-info {
  min-width: 0;
  text-align: right;
}

.sf-footer-brand p {
  margin-top: 0;
  font-size: 12px;
  line-height: 1.35;
  color: #dcebff;
}

.sf-footer-heading {
  margin-top: 3px !important;
  font-weight: 800;
  color: var(--sf-white) !important;
}

.sf-footer-brand a[data-catalog-call] {
  display: inline-block;
  margin-left: 4px;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--sf-yellow);
}

.sf-footer-col {
  display: grid;
  align-content: start;
  gap: 5px;
}

.sf-footer-col h3 {
  font-size: 13.5px;
  font-weight: 800;
  margin-bottom: 2px;
}

.sf-footer-col a {
  font-size: 12.5px;
  color: #dbeaff;
}

.sf-footer-col a:hover {
  text-decoration: underline;
}

.sf-footer-team {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.sf-footer-team h3 {
  margin-bottom: 0;
}

.footer-login {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--sf-white) !important;
  font-size: 12.5px !important;
  font-weight: 700;
}

.sf-footer-bottom {
  margin-top: 14px;
  padding-top: 12px;
  padding-right: 54px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  text-align: left;
  font-size: 11.5px;
  color: #cde0ff;
}

/* Floating WhatsApp Button */
.wa-fab {
  position: fixed;
  right: 12px;
  bottom: 14px;
  z-index: 38;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--sf-wa);
  color: var(--sf-white);
  box-shadow: 0 10px 24px rgba(10, 48, 26, 0.3);
}

.wa-fab .ico {
  width: 24px;
  height: 24px;
}

/* San Fernando Style Dialogs */
.sf-dialog {
  width: min(500px, calc(100vw - 20px));
  max-height: 90dvh;
  margin: auto;
  padding: 16px 14px;
  border: 0;
  border-radius: 18px;
  background: var(--sf-white);
  color: var(--sf-navy);
  box-shadow: 0 24px 70px rgba(7, 26, 66, 0.34);
  overflow-y: auto;
}

.sf-dialog-wide {
  width: min(580px, calc(100vw - 20px));
}

.sf-dialog::backdrop {
  background: rgba(11, 30, 66, 0.56);
  backdrop-filter: blur(3px);
}

.sf-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.sf-dialog-head h2 {
  font-size: 17px;
  font-weight: 800;
  color: var(--sf-blue);
}

.sf-dialog-sub {
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--sf-muted);
}

.sf-dialog-close {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--sf-ice);
  color: var(--sf-navy);
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
}

.sf-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.sf-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 7px 10px;
  border-radius: 10px;
  border: 1.5px solid #d5dfef;
  background: var(--sf-white);
  color: var(--sf-muted);
  font-size: 13px;
  font-weight: 700;
}

.sf-tab[aria-selected='true'] {
  background: var(--sf-blue);
  border-color: var(--sf-blue);
  color: var(--sf-white);
}

.sf-dialog-body {
  margin-top: 11px;
}

.gps-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--sf-bar);
  border: 1.5px solid #bfd7fa;
  color: var(--sf-blue);
  font-size: 13px;
  font-weight: 800;
}

.gps-feedback {
  margin-top: 6px;
  padding: 6px 10px;
  border-radius: 9px;
  background: #eef9f3;
  color: #0f7642;
  font-size: 12.5px;
  font-weight: 700;
}

.gps-feedback.is-error {
  background: #fef2f2;
  color: #b91c1c;
}

.sf-manual-box {
  margin-top: 10px;
  padding: 12px;
  border-radius: 12px;
  border: 1.5px solid var(--sf-line);
  background: var(--sf-white);
}

.sf-manual-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--sf-navy);
}

.sf-field {
  display: grid;
  gap: 4px;
  margin-top: 9px;
}

.sf-field span {
  font-size: 12px;
  font-weight: 700;
  color: var(--sf-muted);
}

.sf-field input,
.sf-field select {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 9px;
  border: 1.5px solid #cfd9ea;
  background: var(--sf-white);
  font: inherit;
  font-size: 14px;
  color: var(--sf-navy);
}

.sf-field input:focus,
.sf-field select:focus {
  outline: none;
  border-color: var(--sf-blue);
}

.sf-save-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  margin-top: 12px;
  padding: 9px 14px;
  border-radius: 10px;
  background: var(--sf-blue);
  color: var(--sf-white);
  font-size: 14.5px;
  font-weight: 800;
}

.sf-pickup-addr {
  margin-top: 6px;
  font-size: 14px;
  color: var(--sf-navy);
}

.sf-maps-inline {
  display: inline-block;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 800;
  color: var(--sf-blue);
}

.sf-dialog-foot {
  margin-top: 10px;
  text-align: center;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--sf-blue);
}

.wa-modal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--sf-bar);
}

.wa-saved-chip {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--sf-navy);
}

.wa-edit-loc {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--sf-blue);
  text-decoration: underline;
}

.wa-zone-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

/* Tablet & Desktop */
@media (min-width: 640px) {
  .wrap {
    padding-inline: 16px;
  }

  .cintillo {
    font-size: 12.5px;
  }

  .cintillo-inner {
    padding-block: 7px;
  }

  .mast-top {
    gap: 10px;
    padding-block: 8px;
  }

  .brand img {
    width: 96px;
  }

  .searchbar {
    max-width: 340px;
    padding: 3px 3px 3px 14px;
  }

  .searchbar input {
    height: 30px;
    font-size: 14px;
  }

  .search-btn {
    width: 34px;
    height: 30px;
  }

  .search-btn .ico {
    width: 17px;
    height: 17px;
  }

  .mast-actions {
    gap: 8px;
  }

  .icon-link {
    width: 40px;
    height: 40px;
  }

  .icon-link .ico {
    width: 22px;
    height: 22px;
  }

  .header-wa {
    gap: 7px;
    min-height: 40px;
    padding: 8px 14px;
    font-size: 13.5px;
  }

  .header-wa .ico {
    width: 20px;
    height: 20px;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 20px;
  }

  .product {
    border-radius: 16px;
  }

  .product-media {
    padding: 12px 12px 0;
  }

  .stock-badge {
    top: 12px;
    right: 12px;
    gap: 6px;
    padding: 6px 12px;
    font-size: 12.5px;
  }

  .stock-badge::before {
    width: 8px;
    height: 8px;
  }

  .product-body {
    gap: 5px;
    padding: 12px 16px 18px;
  }

  .product-body small {
    font-size: 11.5px;
  }

  .product-body h3 {
    font-size: 1.28rem;
  }

  .product-body p {
    font-size: 14.5px;
  }

  .categories {
    padding-block: 20px 26px;
  }

  .filters {
    gap: 12px;
    margin-top: 16px;
    padding-bottom: 6px;
  }

  .cat-card {
    flex: 1 1 0;
    min-width: 130px;
    gap: 10px;
    padding: 14px 10px;
    border-radius: 14px;
  }

  .cat-plate {
    width: 84px;
    height: 84px;
    padding: 6px;
  }

  .cat-card b {
    font-size: 14.5px;
  }

  .hero-mosaic {
    gap: 14px;
    padding-block: 16px 12px;
  }

  .hero-main {
    gap: 16px;
    padding: 22px 20px;
    border-radius: 18px;
  }

  .hero-kicker {
    font-size: 13px;
  }

  .hero-yellow-tag {
    margin-top: 12px;
    padding: 7px 14px;
    font-size: 14px;
  }

  .hero-sub {
    margin-top: 10px;
    font-size: 15px;
  }

  .hero-side {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .hero-card {
    grid-template-columns: 1fr 112px;
    gap: 12px;
    padding: 16px;
    border-radius: 16px;
  }

  .hero-card-thumb {
    width: 112px;
    height: 92px;
    border-radius: 12px;
  }

  .hero-card-dark h2 {
    font-size: 18px;
  }

  .hero-card-promo h2 {
    font-size: 17px;
  }

  .hero-card-promo p {
    font-size: 13px;
  }

  .promo-btn {
    min-height: 36px;
    margin-top: 10px;
    padding: 6px 14px;
    font-size: 12px;
  }

  .zone-grid {
    grid-template-columns: 1fr 1fr;
  }

  .sf-dialog {
    width: min(540px, calc(100vw - 24px));
    padding: 24px 22px;
    border-radius: 22px;
  }

  .sf-dialog-head h2 {
    font-size: 20px;
  }

  .sf-dialog-sub {
    font-size: 14px;
  }

  .sf-tabs {
    margin-top: 18px;
    gap: 10px;
  }

  .sf-tab {
    min-height: 52px;
    font-size: 14.5px;
    border-radius: 12px;
  }

  .sf-dialog-body {
    margin-top: 16px;
  }

  .gps-btn {
    min-height: 46px;
    font-size: 14.5px;
    border-radius: 12px;
  }

  .sf-manual-box {
    margin-top: 14px;
    padding: 16px;
    border-radius: 14px;
  }

  .sf-field {
    margin-top: 12px;
    gap: 6px;
  }

  .sf-field input,
  .sf-field select {
    min-height: 46px;
    font-size: 15px;
  }

  .sf-save-btn {
    min-height: 48px;
    margin-top: 16px;
    font-size: 15.5px;
    border-radius: 12px;
  }
}

@media (min-width: 900px) {
  .preheader {
    display: block;
  }

  .mast-top {
    grid-template-columns: auto auto auto minmax(0, 1fr) auto;
    grid-template-areas: 'brand delivery userloc search actions';
    gap: 12px;
  }

  .searchbar {
    max-width: 310px;
    justify-self: end;
  }

  .brand img {
    width: 112px;
  }

  .delivery-pill {
    display: inline-flex;
  }

  .user-loc-pill {
    display: inline-flex;
  }

  .mobile-bars {
    display: none;
  }

  .hero-mosaic {
    grid-template-columns: 1.55fr 1fr;
    gap: 16px;
    padding-block: 22px 16px;
  }

  .hero-main {
    grid-template-columns: 1fr 1.05fr;
    align-items: center;
    padding: 28px 30px;
  }

  .hero-side {
    grid-template-columns: 1fr;
  }

  .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .service {
    grid-template-columns: 1.45fr 0.75fr;
    align-items: start;
    gap: 24px;
  }

  .sf-footer {
    padding: 34px 0;
  }

  .sf-footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 0.9fr;
    gap: 24px;
  }

  .sf-footer-brand {
    grid-column: auto;
    display: block;
    padding-bottom: 0;
    border-bottom: 0;
  }

  .sf-footer-brand img {
    width: 124px;
  }

  .sf-footer-brand-info {
    text-align: left;
  }

  .sf-footer-brand p {
    margin-top: 12px;
    font-size: 14.5px;
  }

  .sf-footer-brand a[data-catalog-call] {
    display: block;
    margin-left: 0;
    margin-top: 4px;
    font-size: 16px;
  }

  .sf-footer-col {
    gap: 8px;
  }

  .sf-footer-col h3 {
    font-size: 15.5px;
  }

  .sf-footer-col a {
    font-size: 14.5px;
  }

  .sf-footer-team {
    grid-column: auto;
    display: grid;
    justify-content: start;
    align-content: start;
    padding-top: 0;
    border-top: 0;
  }

  .footer-login {
    padding: 9px 15px;
    font-size: 14px !important;
  }

  .sf-footer-bottom {
    margin-top: 26px;
    padding-top: 16px;
    padding-right: 0;
    text-align: center;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
