/* sushiap.ru — живой хедер, футер, карточки и заказ */
:root {
  --sa-red: #c41e3a;
  --sa-red-dark: #9b1630;
  --sa-gold: #e8c36a;
  --sa-ink: #1c1c28;
  --sa-muted: #6b6b7b;
  --sa-paper: #fffaf6;
  --sa-foot: #16161f;
  --sa-foot-2: #1f1f2b;
  --sa-radius: 16px;
  --sa-shadow: 0 10px 30px rgba(28, 28, 40, .12);
}

html { scroll-behavior: smooth; }

body.d-flex.flex-column {
  background: #f7f4ef;
}

/* ---------- Top bar ---------- */
#oct-top-bar,
.oct-top-bar {
  background: linear-gradient(90deg, #9b1630 0%, #c41e3a 55%, #d4482a 100%) !important;
  color: #fff !important;
  min-height: 42px;
  box-shadow: 0 1px 0 rgba(255,255,255,.08);
}
#oct-top-bar .container,
.oct-top-bar .container {
  max-width: 1280px;
}
#oct-top-bar .row {
  min-height: 42px;
  flex-wrap: nowrap;
  gap: 8px;
}
#oct-top-bar a,
#oct-top-bar span,
#oct-top-bar .list-inline-item,
#oct-top-bar .list-inline-item a {
  color: #fff !important;
  font-weight: 600;
  font-size: 13px;
}
#oct-top-bar .dropdown-menu a { color: #1c1c28 !important; }
.sa-top-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  white-space: nowrap;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .01em;
}
.sa-top-chip a { color: #fff !important; text-decoration: none; }
a.sa-top-chip.sa-sister {
  background: #fff;
  color: #c41e3a !important;
  font-weight: 800;
}
.sa-header-sister {
  display: inline-block;
  margin-top: 4px;
  color: #c41e3a !important;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.sa-header-sister:hover { text-decoration: underline; }
a.sa-top-chip.sa-app {
  background: #e8c36a;
  color: #1c1c28 !important;
}
.sa-app-banner {
  background: linear-gradient(90deg, #9b1630 0%, #c41e3a 60%, #d4482a 100%);
  color: #fff;
  z-index: 1035;
}
.sa-app-banner-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.sa-app-banner-text {
  font-weight: 700;
  font-size: 14px;
  flex: 1;
  min-width: 220px;
}
.sa-app-banner-cta {
  display: inline-flex;
  align-items: center;
  background: #fff;
  color: #c41e3a !important;
  font-weight: 800;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 999px;
  white-space: nowrap;
}
.sa-app-banner-x {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}
@media (max-width: 640px) {
  .sa-app-banner-text { font-size: 13px; }
}

/* ---------- Header ---------- */
#oct-header {
  position: sticky;
  top: 0;
  z-index: 1040;
  background: rgba(255,250,246,.96) !important;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(28,28,40,.06);
  box-shadow: 0 8px 24px rgba(28,28,40,.06);
}
#oct-header .container {
  max-width: 1280px;
}
#oct-header .container > .row.align-items-center {
  display: grid !important;
  grid-template-columns: 150px minmax(240px, 1fr) auto auto;
  align-items: center;
  min-height: 76px;
  gap: 10px 16px;
  margin: 0 !important;
}
#oct-header #logo,
#oct-header .col-sm-4,
#oct-header .col-sm-5,
#oct-header .col-sm-3 {
  flex: none !important;
  width: auto !important;
  max-width: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
#oct-header #logo {
  max-width: 150px !important;
}
#oct-header #logo img,
#oct-header #logo .img-fluid {
  max-height: 56px !important;
  width: auto !important;
  height: 56px !important;
  object-fit: contain;
}
#oct-header #logo a {
  display: flex;
  align-items: center;
}
#oct-header .header-search {
  min-width: 0;
  width: 100%;
}
@media (min-width: 768px) {
  #oct-header .header-search {
    display: block !important;
  }
}
#oct-header #search .form-control,
#oct-header #input_search {
  height: 48px;
  border-radius: 999px !important;
  border: 1px solid rgba(28,28,40,.12) !important;
  background: #fff !important;
  padding-left: 18px !important;
  padding-right: 52px !important;
  box-shadow: 0 2px 10px rgba(28,28,40,.04);
}
#oct-header #search .form-control:focus {
  border-color: var(--sa-red) !important;
  box-shadow: 0 0 0 4px rgba(196,30,58,.12) !important;
}
#oct-header #sc-search-button {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50% !important;
  background: var(--sa-red) !important;
  color: #fff !important;
  border: 0 !important;
}
#oct-header #cart,
#oct-header .header-buttons-cart {
  height: 48px !important;
  min-width: 118px;
  border-radius: 14px !important;
  background: var(--sa-red) !important;
  color: #fff !important;
  flex-direction: row !important;
  gap: 8px;
  padding: 0 14px !important;
  box-shadow: 0 8px 18px rgba(196,30,58,.28);
}
#oct-header #cart svg path { stroke: #fff !important; }
#oct-header #cart span { color: #fff !important; }
#oct-header .header-buttons-cart-quantity {
  background: #fff !important;
  color: var(--sa-red) !important;
  border-radius: 999px;
  min-width: 22px;
  font-weight: 800;
}
.sa-header-phone {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.15;
  padding-right: 8px;
  white-space: nowrap;
}
.sa-header-phone a {
  color: var(--sa-ink) !important;
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
}
.sa-header-phone small {
  color: var(--sa-muted);
  font-size: 11px;
  font-weight: 600;
}

/* ---------- Mega menu ---------- */
.sc-megamenu {
  background: #fff !important;
  border-bottom: 1px solid rgba(28,28,40,.06);
}
.sc-megamenu nav {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 12px;
}
.sc-megamenu-list {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 4px 2px;
  overflow: visible !important;
  justify-content: flex-start !important;
}
.sc-megamenu-list-item {
  flex: 0 0 auto !important;
  max-width: none !important;
}
.sc-megamenu-list-item > a {
  padding: 8px 12px !important;
  border-radius: 999px;
  white-space: nowrap !important;
}
.sc-megamenu-list-item > a span {
  padding-left: 0 !important;
  font-weight: 700 !important;
  font-size: 13.5px !important;
  color: var(--sa-ink) !important;
}
.sc-megamenu-list-item:hover > a,
.sc-megamenu-list-item > a:hover {
  background: rgba(196,30,58,.08);
}
.sc-megamenu-list-item:hover > a span { color: var(--sa-red) !important; }
.sc-megamenu .sc-btn-icon-chevron { display: none !important; }

/* ---------- Product cards / photos ---------- */
.sc-module-img {
  background: linear-gradient(180deg, #fff 0%, #f4efe8 100%);
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}
.sc-module-img img,
.sc-module-img .img-fluid {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
}
.sc-module-img img[src*="lazy-image"],
.sc-module-img img[srcset*="lazy-image"] {
  object-fit: contain;
  background: repeating-linear-gradient(45deg, #f3eee7, #f3eee7 8px, #efe8de 8px, #efe8de 16px);
}
.sa-card-premium {
  position: relative;
  outline: 2px solid rgba(196,30,58,.18);
  border-radius: 20px;
  box-shadow: 0 12px 28px rgba(196,30,58,.12);
}
.sa-badge-set {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 3;
  background: linear-gradient(90deg, #c41e3a, #e05a2b);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(196,30,58,.3);
}
.sc-module-cart-btn,
.sc-btn-primary.sc-module-cart-btn {
  background: var(--sa-red) !important;
  border-color: var(--sa-red) !important;
  border-radius: 12px !important;
  font-weight: 800 !important;
}
.sc-module-cart-btn:hover {
  background: var(--sa-red-dark) !important;
}

/* ---------- Promo strip ---------- */
.sa-promo {
  max-width: 1280px;
  margin: 12px auto 0;
  padding: 0 12px;
}
.sa-promo-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(100deg, #1c1c28, #3a1822 55%, #c41e3a);
  color: #fff;
  border-radius: 18px;
  padding: 14px 18px;
  box-shadow: var(--sa-shadow);
}
.sa-promo-inner strong { color: var(--sa-gold); }
.sa-promo-cta {
  background: #fff;
  color: var(--sa-red) !important;
  font-weight: 800;
  border-radius: 999px;
  padding: 10px 16px;
  text-decoration: none !important;
}

/* ---------- Footer ---------- */
footer.oct-footer,
.oct-footer {
  background: var(--sa-foot) !important;
  color: #ece8e2 !important;
  margin-top: 48px !important;
  padding: 0 !important;
  border-top: 4px solid var(--sa-red);
}
.oct-footer a { color: #f3eee6 !important; text-decoration: none; }
.oct-footer a:hover { color: var(--sa-gold) !important; }
.oct-footer .text-muted { color: #c8c2b8 !important; }
.sa-footer {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 20px 20px;
}
.sa-footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
  gap: 28px;
}
.sa-footer h4 {
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.sa-footer ul { list-style: none; padding: 0; margin: 0; }
.sa-footer li { margin: 0 0 8px; font-size: 14px; }
.sa-brand-name {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}
.sa-brand-name span { color: var(--sa-gold); }
.sa-footer-phone {
  display: inline-block;
  font-size: 22px;
  font-weight: 800;
  color: #fff !important;
  margin: 8px 0;
}
.sa-order-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  background: var(--sa-red);
  color: #fff !important;
  font-weight: 800;
  border-radius: 999px;
  padding: 12px 18px;
  box-shadow: 0 8px 18px rgba(196,30,58,.35);
}
.sa-copy {
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 28px;
  padding: 16px 0 8px;
  text-align: center;
  color: #9a948c;
  font-size: 13px;
}

/* ---------- Sticky order bar ---------- */
.sa-sticky-order {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 16px;
  z-index: 1080;
  display: flex;
  align-items: center;
  gap: 14px;
  background: #1c1c28;
  color: #fff;
  border-radius: 999px;
  padding: 10px 10px 10px 18px;
  box-shadow: 0 16px 40px rgba(0,0,0,.28);
  max-width: calc(100vw - 24px);
}
.sa-sticky-order a {
  background: var(--sa-red);
  color: #fff !important;
  text-decoration: none;
  font-weight: 800;
  border-radius: 999px;
  padding: 10px 16px;
  white-space: nowrap;
}
.sa-sticky-order b { color: var(--sa-gold); }

#overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(28,28,40,.35);
  z-index: 1030;
  pointer-events: none;
}
#overlay.active { display: block; pointer-events: auto; }

/* ---------- Cart drawer ---------- */
.sa-cart-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(28,28,40,.45);
  z-index: 13000;
  align-items: stretch;
  justify-content: flex-end;
}
.sa-cart-overlay.open { display: flex; }
.sa-cart-panel {
  width: min(420px, 100%);
  background: #fffaf6;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: -16px 0 40px rgba(0,0,0,.22);
}
.sa-cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(28,28,40,.08);
  font-size: 18px;
  color: #1c1c28;
}
.sa-cart-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #f3eee7;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}
.sa-cart-body {
  flex: 1;
  overflow: auto;
  padding: 12px 16px 20px;
}
.sa-cart-empty { color: #6b6b7b; padding: 24px 8px; text-align: center; font-weight: 650; }
.sa-cart-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 10px;
  padding: 12px 0;
  border-bottom: 1px solid #f3e8ea;
}
.sa-cart-name { font-weight: 800; color: #1c1c28; }
.sa-cart-qty, .sa-cart-sum { color: #c41e3a; font-weight: 700; }
.sa-cart-del {
  grid-column: 1 / -1;
  justify-self: start;
  border: 0;
  background: none;
  color: #9b1630;
  cursor: pointer;
  padding: 0;
  font-size: 13px;
}
.sa-cart-foot { padding: 14px 16px 20px; border-top: 1px solid rgba(28,28,40,.08); }
.sa-cart-free { font-size: 13px; color: #6b6b7b; margin-bottom: 8px; }
.sa-cart-free.ok { color: #166534; font-weight: 700; }
.sa-cart-total { font-size: 20px; font-weight: 800; color: #c41e3a; margin-bottom: 12px; }
.sa-cart-cta {
  display: block;
  text-align: center;
  background: #c41e3a;
  color: #fff !important;
  font-weight: 800;
  border-radius: 999px;
  padding: 14px 16px;
  text-decoration: none !important;
}
.sa-cart-cta-lite {
  background: #fff;
  color: #c41e3a !important;
  border: 2px solid #c41e3a;
  margin-top: 8px;
}
.yf-drawer-overlay.open { display: flex !important; }
.yf-drawer .yf-cart-sidebar { display: flex !important; width: 100% !important; }
@media (min-width: 993px) {
  .yf-drawer-overlay { align-items: stretch; justify-content: flex-end; }
  .yf-drawer {
    width: 400px;
    max-height: 100vh;
    height: 100%;
    border-radius: 20px 0 0 20px;
    transform: translateX(100%);
  }
  .yf-drawer-overlay.open .yf-drawer { transform: translateX(0); }
}
@media (max-width: 640px) {
  .sa-cart-panel { width: 100%; border-radius: 20px 20px 0 0; height: auto; max-height: 88vh; align-self: flex-end; }
}

@media (max-width: 991px) {
  .sa-footer-grid { grid-template-columns: 1fr 1fr; }
  .sa-header-phone { display: none !important; }
  #oct-header .container > .row.align-items-center {
    grid-template-columns: 120px minmax(140px, 1fr) auto;
    min-height: 64px;
  }
  #oct-header #logo img { height: 44px !important; max-height: 44px !important; }
  .sc-megamenu-list {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scrollbar-width: none;
  }
  .sc-megamenu-list::-webkit-scrollbar { display: none; }
}
@media (max-width: 767px) {
  #oct-header .container > .row.align-items-center {
    grid-template-columns: 1fr auto !important;
  }
  #oct-header #logo { grid-column: 1; grid-row: 1; }
  #oct-header .col-sm-5 {
    grid-column: 1 / span 2;
    grid-row: 2;
    width: 100% !important;
  }
  #oct-header .col-sm-3 { grid-column: 2; grid-row: 1; }
  #oct-header #cart { min-width: 96px; height: 42px !important; }
  .sa-footer-grid { grid-template-columns: 1fr; }
  .sa-sticky-order { width: calc(100vw - 16px); justify-content: space-between; }
  #oct-top-bar .sa-top-chip:nth-child(n+3) { display: none; }
}
