/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

:root {
  --sb-ink: #16120f;
  --sb-ice: #faf7f1; /* тёплая бумага из логотипа */
  --sb-slate: #2a2420;
  --sb-orange: #f2762e; /* икринка: единственный акцент */
  --sb-orange-deep: #d9631f;
  --sb-cyan: var(--sb-orange); /* legacy-имена оставлены, цвет один */
  --sb-blue: var(--sb-orange-deep);
  --sb-gold: #f2762e;
}

body.sb-body {
  font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
  background: var(--sb-ice);
  color: var(--sb-ink);
  min-height: 100vh;
  overflow-x: hidden;
  padding-bottom: 80px;
  accent-color: var(--sb-orange); /* радио и чекбоксы в фирменный оранжевый */
}

.brand-display {
  font-family: "Bebas Neue", "Space Grotesk", sans-serif;
  color: var(--sb-ink);
  letter-spacing: 0.12em;
}

.sb-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.sb-chip {
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: rgba(15, 23, 42, 0.75);
}

.sb-button {
  background: var(--sb-orange);
  color: var(--sb-ink);
  font-weight: 600;
}

.sb-muted {
  color: rgba(15, 23, 42, 0.6);
}

.sb-input {
  background: #fdfbf7;
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: var(--sb-ink);
}

.sb-input:focus-visible {
  outline: none;
  border-color: rgba(242, 118, 46, 0.45);
  box-shadow: 0 0 0 3px rgba(242, 118, 46, 0.18);
}

.sb-hero-pattern {
  background-image: radial-gradient(circle at 20% 20%, rgba(242, 118, 46, 0.25), transparent 55%),
    radial-gradient(circle at 80% 0%, rgba(242, 118, 46, 0.2), transparent 45%),
    linear-gradient(135deg, #ffffff 0%, #fbf4ec 100%);
}

/* Hero: фасад в Аликанте. Десктоп — почти во весь экран, телефон — компактный. */
.sb-hero {
  position: relative;
  isolation: isolate;
  min-height: min(82vh, 720px);
  display: flex;
  align-items: flex-end;
  background: #16120f;
  color: #faf7f1;
  overflow: hidden;
}

.sb-hero-media,
.sb-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  z-index: -2;
}

.sb-hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(22, 18, 15, 0.1) 0%, rgba(22, 18, 15, 0.15) 45%, rgba(22, 18, 15, 0.82) 100%);
}

.sb-hero-content {
  padding-top: 48px;
  padding-bottom: 56px;
  max-width: 1280px;
}

.sb-hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(250, 247, 241, 0.8);
}

.sb-hero-title {
  margin-top: 12px;
  font-family: "Archivo Black", "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 5vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: 0.01em;
  max-width: 14ch;
}

.sb-hero-subtitle {
  margin-top: 16px;
  font-size: clamp(0.95rem, 1.4vw, 1.2rem);
  color: rgba(250, 247, 241, 0.88);
  max-width: 44ch;
}

/* Статус «открыто / закрыто до 14:00» в hero и уведомление в чекауте */
.sb-hero-status {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: rgba(22, 18, 15, 0.55);
  color: var(--sb-ice);
}

.sb-hero-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
}

.sb-hero-status--closed::before {
  background: var(--sb-orange);
}

/* Заказ со стола (QR ?mesa=N) */
.sb-table-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 14px;
  padding: 8px 16px;
  background: var(--sb-ink);
  color: var(--sb-ice);
  font-size: 0.875rem;
  font-weight: 600;
}

.sb-table-bar-leave {
  color: rgba(250, 247, 241, 0.7);
  font-weight: 400;
  text-decoration: underline;
}

.sb-table-card {
  border: 2px solid var(--sb-orange);
}

.sb-table-badge {
  font-family: "Archivo Black", "Space Grotesk", sans-serif;
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.sb-table-leave {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--sb-orange-deep);
  text-decoration: underline;
}

.sb-closed-notice {
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--sb-tint, #fde8da);
  color: var(--sb-orange-deep);
  font-size: 0.875rem;
}

.sb-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding: 14px 26px;
  border-radius: 999px;
  background: #f2762e;
  color: #16120f;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, background 0.15s ease;
}

.sb-hero-cta:hover {
  background: #ff8a45;
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .sb-hero {
    min-height: 240px;
  }

  .sb-hero-content {
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .sb-hero-eyebrow {
    font-size: 0.65rem;
    letter-spacing: 0.24em;
  }

  .sb-hero-title {
    margin-top: 6px;
    font-size: 1.75rem;
  }

  .sb-hero-subtitle {
    display: none;
  }

  .sb-hero-shade {
    background: linear-gradient(180deg, rgba(22, 18, 15, 0.15) 0%, rgba(22, 18, 15, 0.45) 40%, rgba(22, 18, 15, 0.88) 100%);
  }

  .sb-hero-cta {
    margin-top: 14px;
    padding: 10px 18px;
    font-size: 0.85rem;
  }
}

.sb-menu-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  width: 100%;
  min-width: 0;
}

@media (max-width: 1024px) {
  .sb-menu-grid {
    grid-template-columns: 1fr;
  }

  .sb-menu-sidebar {
    display: none;
  }
}

.sb-menu-sidebar {
  position: sticky;
  top: 96px;
  align-self: start;
}

.sb-category-bar {
  display: none;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  position: sticky;
  top: var(--sb-header-h, 72px);
  background: var(--sb-ice);
  z-index: 8;
  padding: 4px 0;
  isolation: isolate;
}

.sb-category-bar::-webkit-scrollbar {
  display: none;
}

.sb-category-track {
  display: flex;
  gap: 10px;
  padding: 0 6px;
  width: max-content;
  align-items: center;
}

.sb-category-chip {
  display: inline-flex;
  flex: 0 0 auto;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f3ede3;
  color: var(--sb-ink);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 180ms ease, color 180ms ease;
}

.sb-category-chip.is-active {
  background: #fde8da;
  color: var(--sb-ink);
  box-shadow: inset 0 0 0 1px rgba(242, 118, 46, 0.4);
}

.sb-category-chip:active {
  transform: scale(0.98);
}

.sb-category-chip:focus-visible {
  outline: 2px solid rgba(242, 118, 46, 0.45);
  outline-offset: 2px;
}

@media (max-width: 1024px) {
  .sb-category-bar {
    display: block;
    padding: 4px 6px;
    position: sticky;
    top: var(--sb-header-h, 64px);
  }

  .sb-catalog-stack > :not([hidden]) ~ :not([hidden]) {
    margin-top: 12px;
  }
}

@media (max-width: 1024px) {
  .sb-category-bar::before,
  .sb-category-bar::after {
    content: \"\";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 24px;
    pointer-events: none;
    z-index: 1;
  }

  .sb-category-bar::before {
    left: 0;
    background: linear-gradient(90deg, var(--sb-ice) 0%, rgba(250, 247, 241, 0) 100%);
  }

  .sb-category-bar::after {
    right: 0;
    background: linear-gradient(270deg, var(--sb-ice) 0%, rgba(250, 247, 241, 0) 100%);
  }
}

.sb-catalog-stack {
  min-width: 0;
}

@media (max-width: 640px) {
  .sb-category-section .grid {
    grid-template-columns: 1fr;
  }

  .sb-product-card {
    width: 100%;
    max-width: 100%;
    grid-template-columns: 96px 1fr;
    gap: 12px;
    border-radius: 16px;
    box-shadow: 0 6px 12px rgba(15, 23, 42, 0.08);
  }

  .sb-product-image {
    width: 96px;
    height: 96px;
    border-radius: 14px;
  }

  .sb-product-body {
    min-width: 0;
  }
}

.sb-category-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 14px;
  color: var(--sb-ink);
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.sb-category-item:hover {
  background: #f3ede3;
  transform: translateX(4px);
}

.sb-category-item.is-active {
  background: #fde8da;
  color: var(--sb-ink);
  font-weight: 600;
}

.sb-product-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  transition: transform 200ms ease, box-shadow 200ms ease;
  cursor: pointer; /* весь блок открывает попап товара */
}

.sb-product-card:focus-visible {
  outline: 2px solid var(--sb-orange);
  outline-offset: 3px;
}

.sb-product-image {
  height: 120px;
  width: 120px;
  border-radius: 18px;
  overflow: hidden;
  background: transparent; /* фото с прозрачным фоном — прямо на белой карточке */
  transition: transform 240ms ease;
}

.sb-product-body {
  display: flex;
  flex-direction: column;
}

.sb-like {
  height: 32px;
  width: 32px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: var(--sb-orange-deep);
  background: #f0f9ff;
}

.sb-tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: #fde8da;
  color: #0284c7;
  font-size: 11px;
  font-weight: 600;
}

.sb-tag-primary {
  background: #fde8da;
  color: var(--sb-orange-deep);
}

.sb-lang-switch {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: #f3ede3;
}

.sb-lang-link {
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: #6b625a;
  text-decoration: none;
}

.sb-lang-link.is-active {
  background: #fde8da;
  color: var(--sb-ink);
}

.sb-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sb-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sb-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Логотип B4 «Хаси»: знак + двухстрочное название (Space Grotesk / Archivo Black) */
.sb-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--sb-ink);
  text-decoration: none;
}

.sb-logo-mark {
  width: 44px;
  height: 44px;
  flex: none;
  display: block;
}

.sb-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.sb-logo-sushi {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.44em;
  margin-right: -0.44em;
}

.sb-logo-boss {
  font-family: "Archivo Black", "Arial Black", Impact, sans-serif;
  font-size: 24px;
  line-height: 0.95;
  margin-top: 2px;
}

.sb-checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}

.sb-checkout-card {
  padding: 20px 24px;
  border-radius: 20px;
  color: var(--sb-ink);
}

.sb-checkout-actions {
  display: flex;
  justify-content: flex-end;
}

.sb-section-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 14px;
}

.sb-field {
  display: grid;
  gap: 8px;
}

.sb-label {
  font-size: 13px;
  color: #9a9088;
}

.sb-field-hint {
  font-size: 12px;
  color: #ef4444;
}

.sb-phone {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  align-items: center;
}

.sb-phone-select {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 10px 28px 10px 12px;
  border-radius: 12px;
  background: #f3ede3;
  color: var(--sb-ink);
  font-size: 14px;
  border: 1px solid #e8e1d6;
  background-image: linear-gradient(45deg, transparent 50%, #9a9088 50%),
    linear-gradient(135deg, #9a9088 50%, transparent 50%),
    linear-gradient(to right, transparent, transparent);
  background-position: calc(100% - 16px) 50%, calc(100% - 12px) 50%, 0 0;
  background-size: 4px 4px, 4px 4px, 100% 100%;
  background-repeat: no-repeat;
  cursor: pointer;
}

.sb-code-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
}

.sb-code-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
}

.sb-code-card {
  position: relative;
  margin: 60px auto;
  max-width: 520px;
  background: #ffffff;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.2);
}

.sb-code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.sb-code-header h3 {
  font-size: 20px;
  font-weight: 600;
}

.sb-code-close {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: none;
  background: #f3ede3;
  font-size: 22px;
  cursor: pointer;
}

.sb-code-search {
  margin-bottom: 14px;
}

.sb-code-list {
  max-height: 360px;
  overflow: auto;
  border-top: 1px solid #e8e1d6;
}

.sb-code-option {
  width: 100%;
  display: grid;
  grid-template-columns: 32px 80px 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px 6px;
  border: none;
  background: transparent;
  text-align: left;
  border-bottom: 1px solid #e8e1d6;
  cursor: pointer;
  color: var(--sb-ink);
}

.sb-code-option:hover {
  background: #fdfbf7;
}

.sb-code-option.is-hidden {
  display: none;
}

.sb-code-flag {
  font-size: 18px;
}

.sb-code-code {
  font-weight: 600;
  color: #16120f;
}

.sb-code-name {
  color: #6b625a;
}

@media (max-width: 640px) {
  .sb-code-card {
    margin: 40px 16px;
    padding: 20px;
  }
}

.sb-input-with-icon {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sb-input-icon {
  font-size: 14px;
  color: #9a9088;
}

.sb-input-plain {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: 14px;
  color: var(--sb-ink);
}

.sb-address-button {
  text-align: left;
  width: 100%;
  background: #fdfbf7;
  border: 1px solid #e8e1d6;
  cursor: pointer;
}

.sb-address-button span {
  color: #9a9088;
}

.sb-delivery-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
}

.sb-delivery-card {
  position: relative;
  margin: 40px auto;
  max-width: 980px;
  background: #ffffff;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.2);
}

.sb-delivery-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.sb-delivery-tab {
  flex: 0 0 160px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #cbd5f5;
  background: #fff;
  font-weight: 600;
  color: #6b625a;
  cursor: pointer;
}

.sb-delivery-tab.is-active {
  border-color: var(--sb-orange);
  color: var(--sb-orange);
}

.sb-delivery-body {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  align-items: start;
}

.sb-delivery-search {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.sb-pickup-list {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.sb-pickup-option {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid #e8e1d6;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.sb-pickup-option.is-active {
  border-color: var(--sb-orange);
  box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.18);
}

.sb-pickup-name {
  font-size: 14px;
  font-weight: 600;
  color: #16120f;
}

.sb-pickup-address {
  font-size: 13px;
  color: #6b625a;
}

.sb-address-results {
  margin-top: 10px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 20px 30px rgba(15, 23, 42, 0.1);
  overflow-y: auto;
  max-height: 220px;
}

.sb-address-result {
  width: 100%;
  padding: 12px 14px;
  border: none;
  background: transparent;
  text-align: left;
  font-size: 14px;
  color: var(--sb-ink);
  border-bottom: 1px solid #e8e1d6;
  cursor: pointer;
}

.sb-address-result:last-child {
  border-bottom: none;
}

.sb-address-result:hover {
  background: #fdfbf7;
}

.sb-delivery-confirm {
  width: 100%;
  padding: 12px 16px;
  border-radius: 14px;
  border: none;
  background: #e8e1d6;
  color: #9a9088;
  font-weight: 600;
  margin-top: 12px;
}

.sb-delivery-confirm:disabled {
  cursor: not-allowed;
}

.sb-delivery-confirm.is-active {
  background: var(--sb-orange);
  color: var(--sb-ink);
  cursor: pointer;
}

.sb-map {
  width: 100%;
  height: 360px;
  border-radius: 16px;
  border: 1px solid #e8e1d6;
  overflow: hidden;
}

@media (max-width: 1024px) {
  .sb-delivery-card {
    margin: 24px 16px;
    padding: 20px;
  }

  .sb-delivery-body {
    grid-template-columns: 1fr;
  }
}

.sb-consents {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  font-size: 13px;
  color: #6b625a;
}

.sb-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.sb-consent input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--sb-orange);
}

.sb-consent a {
  color: var(--sb-orange);
  text-decoration: none;
}

.sb-time-select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.sb-radio-group {
  display: grid;
  gap: 10px;
  font-size: 14px;
  color: #334155;
}

.sb-radio {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sb-counter {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.sb-counter-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid #e8e1d6;
  background: #fff;
  font-size: 20px;
  color: var(--sb-ink);
  cursor: pointer;
}

.sb-counter-value {
  min-width: 20px;
  text-align: center;
  font-weight: 600;
}

.sb-promo {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.sb-checkout-summary {
  position: sticky;
  top: 120px;
}

.sb-summary-card {
  padding: 20px 22px;
  border-radius: 20px;
}

.sb-summary-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  font-size: 14px;
  color: var(--sb-ink);
}

.sb-summary-title {
  font-weight: 600;
}

.sb-summary-meta {
  font-size: 12px;
  color: #9a9088;
}

.sb-summary-qty {
  color: #6b625a;
}

.sb-summary-price {
  font-weight: 600;
  color: #16120f;
}

.sb-summary-divider {
  height: 1px;
  background: #e8e1d6;
  margin: 8px 0 12px;
}

.sb-summary-total {
  font-weight: 600;
  font-size: 16px;
}

.sb-summary-list {
  display: grid;
  gap: 10px;
  font-size: 13px;
  color: #6b625a;
  margin: 14px 0 18px;
}

.sb-summary-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.sb-summary-alert {
  display: none;
  align-items: center;
  gap: 10px;
  background: #f3ede3;
  color: #6b625a;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
  margin-bottom: 12px;
}

.sb-summary-alert.is-visible {
  display: flex;
}

.sb-summary-alert-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  background: #ef4444;
  color: #fff;
  font-size: 12px;
}

.sb-summary-pay {
  width: 100%;
  padding: 12px 16px;
  border-radius: 14px;
  border: none;
  background: #e8e1d6;
  color: #9a9088;
  font-weight: 600;
  margin-bottom: 12px;
  cursor: not-allowed;
  transition: background 0.2s, color 0.2s;
}

.sb-summary-pay:not(:disabled) {
  background: var(--sb-cyan);
  color: var(--sb-ink);
  cursor: pointer;
}

.sb-summary-pay:not(:disabled):hover {
  background: var(--sb-blue);
}

.sb-input:invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.sb-summary-back {
  display: block;
  text-align: center;
  color: var(--sb-orange);
  font-weight: 600;
  text-decoration: none;
}

@media (max-width: 1024px) {
  .sb-checkout-grid {
    grid-template-columns: 1fr;
  }

  .sb-checkout-summary {
    position: static;
  }
}

.sb-header-search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  position: relative;
}

.sb-search-icon {
  position: absolute;
  left: 14px;
  font-size: 14px;
  color: rgba(15, 23, 42, 0.45);
  pointer-events: none;
}

@media (min-width: 768px) {
  .sb-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }

  .sb-header-search {
    max-width: 420px;
  }
}
.sb-product-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 12px;
}

.sb-add-button {
  height: 32px;
  width: 32px;
  border-radius: 999px;
  border: none;
  background: var(--sb-orange);
  color: var(--sb-ink);
  font-weight: 700;
  box-shadow: 0 8px 14px rgba(242, 118, 46, 0.18);
  transition: transform 200ms ease, filter 200ms ease;
}

.sb-category-section,
#menu {
  scroll-margin-top: 120px;
}

.sb-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
}

.sb-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
}

.sb-modal-card {
  position: relative;
  margin: 40px auto;
  max-width: 560px;
  background: #ffffff;
  border-radius: 28px;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.2);
  overflow: hidden;
}

.sb-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  height: 36px;
  width: 36px;
  border-radius: 50%;
  border: none;
  background: #fde8da;
  color: #0284c7;
  font-size: 24px;
}

.sb-modal-image img {
  width: 100%;
  height: 280px;
  object-fit: contain; /* фото квадратные, без полей — показываем целиком */
  padding: 16px 16px 0;
  display: block;
}

.sb-modal-body {
  padding: 20px 24px;
  color: #16120f;
}

.sb-modal-title {
  font-size: 22px;
  font-weight: 700;
}

.sb-modal-price {
  font-size: 20px;
  font-weight: 600;
  margin-top: 8px;
}

.sb-modal-tags {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.sb-modal-description {
  margin-top: 12px;
  color: #6b625a;
  font-size: 14px;
}

.sb-modal-footer {
  padding: 16px 24px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sb-qty {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fdfbf7;
  border-radius: 999px;
  padding: 6px 12px;
}

.sb-qty button {
  height: 32px;
  width: 32px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #fff;
  font-size: 16px;
}

.sb-modal-form .sb-button {
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
}

.sb-modal-open {
  overflow: hidden;
}

.sb-cart-bar {
  position: fixed;
  right: 32px;
  bottom: 32px;
  background: var(--sb-ink);
  color: #faf7f1;
  padding: 16px 28px;
  border-radius: 999px;
  min-width: 280px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 18px 30px rgba(22, 18, 15, 0.3);
  font-size: 16px;
  font-weight: 600;
  z-index: 50;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.sb-toast-text {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.sb-toast-price {
  color: var(--sb-orange);
  font-size: 20px;
  font-weight: 700;
}

.sb-toast-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  width: 28px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.2);
  font-size: 16px;
}

.sb-drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
}

.sb-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.sb-drawer-panel {
  position: absolute;
  top: 20px;
  right: 20px;
  bottom: 20px;
  width: 420px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.2);
  display: flex;
  flex-direction: column;
}

.sb-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #e8e1d6;
  font-size: 18px;
  font-weight: 600;
}

.sb-drawer-close {
  height: 36px;
  width: 36px;
  border-radius: 50%;
  border: none;
  background: #fde8da;
  color: #0284c7;
  font-size: 22px;
  cursor: pointer;
}

.sb-drawer-body {
  padding: 16px 24px;
  overflow: auto;
  flex: 1;
}

.sb-drawer-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #e8e1d6;
}

.sb-drawer-thumb {
  height: 64px;
  width: 64px;
  border-radius: 16px;
  overflow: hidden;
  background: #f3ede3;
}

.sb-drawer-thumb-placeholder {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #9a9088;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.sb-drawer-title {
  font-size: 14px;
  font-weight: 600;
  color: #16120f;
}

.sb-drawer-price {
  font-size: 14px;
  color: #6b625a;
  margin-top: 6px;
}

.sb-drawer-qty {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sb-qty-btn {
  height: 28px;
  width: 28px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #fdfbf7;
  font-size: 16px;
  cursor: pointer;
}

.sb-qty-count {
  min-width: 18px;
  text-align: center;
  font-weight: 600;
}

.sb-drawer-footer {
  padding: 16px 24px 24px;
  border-top: 1px solid #e8e1d6;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sb-drawer-total {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 600;
}

.sb-drawer-order {
  width: 100%;
  text-align: center;
}

@media (max-width: 480px) {
  .sb-drawer-panel {
    top: 16px;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    border-radius: 24px 24px 0 0;
  }
}


.sb-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.14);
}

.sb-product-card:hover .sb-product-image {
  transform: scale(1.04);
}

.sb-product-card:hover .sb-add-button {
  transform: scale(1.05);
  filter: brightness(1.05);
}

/* Legal pages */
.sb-legal {
  padding: 40px 0 80px;
  color: var(--sb-ink);
}

.sb-legal h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.sb-legal h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 8px;
}

.sb-legal p,
.sb-legal li {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #374151;
  margin-bottom: 8px;
}

.sb-legal ul {
  padding-left: 20px;
  list-style: disc;
}

.sb-legal a {
  color: var(--sb-cyan);
  text-decoration: underline;
}

/* Footer */
.sb-footer {
  padding: 24px 0 96px;
  background: linear-gradient(180deg, rgba(250, 247, 241, 0) 0%, #f3ede3 100%);
}

.sb-footer-shell {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 24px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
  padding: 28px;
}

.sb-footer-brand {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.sb-footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 30px;
  line-height: 1;
}

.sb-footer-brand p {
  color: #7b8494;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sb-footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding: 24px 0;
}

.sb-footer-block {
  min-height: 132px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: #fdfbf7;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sb-footer-label {
  color: #8a94a6;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sb-footer-block strong {
  color: var(--sb-ink);
  font-size: 20px;
  font-weight: 700;
}

.sb-footer-time {
  color: #334155;
  font-size: 18px;
  font-weight: 600;
}

.sb-footer-status {
  color: #0f9f7a !important;
}

.sb-footer-phones,
.sb-footer-address {
  font-size: 15px;
}

.sb-footer-phones {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sb-footer-phones a,
.sb-footer-address a {
  color: #334155;
  text-decoration: none;
}

.sb-footer-instagram {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sb-order-instagram {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  color: var(--sb-ink);
  text-decoration: none;
}

.sb-order-instagram svg {
  flex: none;
  color: var(--sb-orange);
}

.sb-order-instagram > span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sb-order-instagram:hover strong {
  color: var(--sb-orange-deep);
}

.sb-footer-phones a:hover,
.sb-footer-address a:hover,
.sb-footer-bottom a:hover {
  color: var(--sb-blue);
}

.sb-payment-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}

.sb-card-brand {
  height: 36px;
  min-width: 54px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.sb-card-mastercard {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sb-card-mastercard span {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: block;
}

.sb-card-mastercard span:first-child {
  background: #eb001b;
  margin-right: -8px;
}

.sb-card-mastercard span:last-child {
  background: #f79e1b;
  mix-blend-mode: multiply;
}

.sb-card-visa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1a4fb5;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.sb-card-wallet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 0 8px;
  color: #000000;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.sb-card-wallet svg {
  flex: none;
}

.sb-payment-badges {
  flex-wrap: wrap;
}

.sb-footer-map {
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: #eef2f7;
}

.sb-footer-map iframe {
  display: block;
  width: 100%;
  height: 220px;
  border: 0;
}

.sb-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding-top: 22px;
  color: #7b8494;
  font-size: 13px;
}

.sb-footer-bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.sb-footer-bottom a {
  color: #6b625a;
  text-decoration: none;
}

@media (max-width: 900px) {
  .sb-footer-shell {
    border-radius: 0;
    margin: 0 -24px;
    padding: 24px;
  }

  .sb-footer-brand,
  .sb-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

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

@media (max-width: 640px) {
  .sb-footer {
    padding-bottom: 112px;
  }

  .sb-footer-grid {
    grid-template-columns: 1fr;
  }

  .sb-footer-block {
    min-height: auto;
  }

  .sb-footer-map iframe {
    height: 190px;
  }
}

.sb-prelaunch-body {
  padding-bottom: 0;
}

.sb-prelaunch {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(250, 247, 241, 0.88)),
    radial-gradient(circle at 50% 0%, rgba(242, 118, 46, 0.2), transparent 42%);
}

.sb-prelaunch-panel {
  width: min(100%, 420px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 32px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

.sb-prelaunch-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 30px;
  line-height: 1;
}

.sb-prelaunch-mark {
  width: 22px;
  height: 22px;
  display: inline-block;
  border: 5px solid #d1d5db;
  border-radius: 999px;
  background: #ef4444;
  box-shadow: inset 0 0 0 4px #ffffff;
}

.sb-prelaunch-panel h1 {
  margin: 6px 0 0;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
}

.sb-prelaunch-panel p {
  margin: 0;
  color: rgba(15, 23, 42, 0.62);
}

.sb-prelaunch-alert {
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff1f2;
  color: #be123c;
  font-size: 14px;
  font-weight: 600;
}

.sb-prelaunch-form {
  display: grid;
  gap: 12px;
}

.sb-prelaunch-form .sb-input,
.sb-prelaunch-form .sb-button {
  width: 100%;
  min-height: 46px;
  border-radius: 8px;
  padding: 0 14px;
}

.sb-prelaunch-form .sb-button {
  cursor: pointer;
}

/* Шапка: тёплая бумага, почти непрозрачная, чтобы hero не просвечивал при скролле */
.sb-site-header {
  background: rgba(250, 247, 241, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: rgba(22, 18, 15, 0.08);
}

/* ── Правки по чек-листу тестировщика ───────────────────────────── */

/* Обязательные поля и галочки: красная звёздочка */
.sb-required::after {
  content: " *";
  color: #e5484d;
  font-weight: 700;
}

.sb-pets-hint {
  margin: -4px 0 10px;
  color: rgba(15, 23, 42, 0.6);
}

/* Поиск: лупа и крестик одного размера, симметрично по краям поля */
.sb-search-icon {
  left: 16px;
  width: 18px;
  height: 18px;
  top: 50%;
  transform: translateY(-50%);
}

.sb-search-input {
  padding-left: 44px !important;
  padding-right: 44px !important;
}

.sb-search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.sb-search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(15, 23, 42, 0.45);
  cursor: pointer;
}

.sb-search-clear:hover {
  background: rgba(15, 23, 42, 0.06);
  color: var(--sb-ink);
}

.sb-search-clear.hidden {
  display: none;
}

/* Телефон: шрифт полей ≥16px — иначе iOS сам приближает страницу при фокусе */
@media (max-width: 767px) {
  input.sb-input,
  select.sb-input,
  textarea.sb-input,
  .sb-input input,
  .sb-input textarea {
    font-size: 16px !important;
  }

  /* Кнопка корзины — по центру экрана */
  .sb-cart-bar {
    left: 50%;
    right: auto;
    bottom: 16px;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 420px;
    min-width: 0;
    padding: 14px 22px;
  }
}

/* Заглушка в окне товара без фото */
.sb-modal-image-placeholder {
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: #94a3b8;
}

.sb-modal-image-placeholder.hidden {
  display: none;
}

/* Аллергены — заметная светло-красная плашка */
.sb-allergens {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fde8e8;
  border: 1px solid #f8c4c4;
  color: #8a1c1c;
  font-size: 13px;
  line-height: 1.45;
}

.sb-allergens.hidden {
  display: none;
}

.sb-allergens-label {
  font-weight: 700;
  color: #b42318;
}

/* Счётчик «− N +» на карточке товара */
.sb-card-cart {
  display: flex;
  align-items: center;
}

.sb-stepper-form {
  display: inline-flex;
  margin: 0;
}

.sb-stepper {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
}

.sb-stepper-btn {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 999px;
  background: var(--sb-orange);
  color: var(--sb-ink);
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sb-stepper-btn:active {
  transform: scale(0.92);
}

.sb-stepper-count {
  min-width: 22px;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--sb-ink);
}

.sb-stepper-form button[disabled],
.sb-stepper-form button[aria-busy="true"] {
  opacity: 0.6;
}

/* Доставка / самовывоз — два больших переключателя */
.sb-delivery-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.sb-delivery-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1.5px solid rgba(15, 23, 42, 0.12);
  background: #fdfbf7;
  color: var(--sb-ink);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.sb-delivery-option.is-active {
  border-color: var(--sb-orange);
  background: #fff4ec;
  box-shadow: 0 0 0 3px rgba(242, 118, 46, 0.15);
}

.sb-delivery-option-icon {
  font-size: 20px;
  line-height: 1;
}

.sb-delivery-option-title {
  font-size: 15px;
  font-weight: 700;
}

.sb-delivery-option-sub {
  font-size: 12px;
  color: rgba(15, 23, 42, 0.55);
}

.sb-pickup-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff4ec;
  font-size: 14px;
}

.sb-pickup-info.hidden {
  display: none;
}

.sb-pickup-info-label {
  font-size: 12px;
  color: rgba(15, 23, 42, 0.55);
}

.sb-field.hidden {
  display: none;
}
