/* Я ПЕЛЬМЕНИ — compiled theme (from HTML prototypes v2) */
@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@600;700;800&family=Roboto+Flex:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0&display=swap');

:root {
  --yp-brand: #013388;
  --yp-brand-mid: #0194CF;
  --yp-brand-dark: #001f5b;
  --yp-cta: #FFEA00;
  --yp-cta-hover: #FFC531;
  --yp-accent: #FF7F02;
  --yp-ink: #191c1e;
  --yp-mute: #747683;
  --yp-page: #F7F9FB;
  --yp-white: #fff;
  --yp-shadow-card: 0 4px 20px rgba(1,51,136,.08);
  --yp-shadow-lift: 0 12px 32px rgba(1,51,136,.12);
  --yp-radius: 16px;
  --yp-max: 1400px;
  --yp-font-display: 'Hanken Grotesk', sans-serif;
  --yp-font-body: 'Roboto Flex', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; }
body.yp {
  margin: 0;
  background: var(--yp-page);
  color: var(--yp-ink);
  font-family: var(--yp-font-body);
  font-size: 15px;
  line-height: 1.45;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--yp-brand); }
img { max-width: 100%; height: auto; display: block; }
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  font-size: 22px;
  vertical-align: middle;
}
.ms-fill { font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24; }
.tabular { font-variant-numeric: tabular-nums; }
.press:active { transform: scale(0.96); }
.yp-wrap { max-width: var(--yp-max); margin: 0 auto; padding: 0 20px; }

/* Header */
.yp-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--yp-white);
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
}
.yp-header__util {
  border-bottom: 1px solid rgba(0,0,0,.05);
  font-size: 13px; color: var(--yp-mute);
}
.yp-header__util-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 36px;
}
.yp-header__util nav { display: flex; gap: 20px; align-items: center; }
.yp-header__util a:hover { color: var(--yp-brand); }
.yp-header__phone { font-weight: 600; color: var(--yp-brand) !important; }
.yp-header__main {
  display: flex; align-items: center; gap: 16px; height: 64px;
}
.yp-logo {
  flex-shrink: 0;
  font-family: var(--yp-font-display);
  font-size: 22px; font-weight: 800; letter-spacing: -0.02em;
  color: var(--yp-brand) !important;
}
.yp-btn-catalog {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 16px; border: 0; border-radius: var(--yp-radius);
  background: var(--yp-brand); color: #fff !important;
  font-size: 14px; font-weight: 600; cursor: pointer;
  box-shadow: var(--yp-shadow-card);
}
.yp-btn-catalog:hover { background: var(--yp-brand-dark); color: #fff !important; }
.yp-search { flex: 1; min-width: 0; }
.yp-search__box {
  display: flex; height: 44px; overflow: hidden;
  border: 2px solid var(--yp-brand); border-radius: var(--yp-radius); background: #fff;
}
.yp-search__box input {
  flex: 1; min-width: 0; border: 0; outline: none; padding: 0 16px;
  font-size: 15px; background: transparent; font-family: inherit;
}
.yp-search__box button {
  margin: 4px; border: 0; border-radius: 12px; padding: 0 16px;
  background: var(--yp-cta); color: var(--yp-ink);
  font-weight: 700; font-size: 14px; cursor: pointer; font-family: inherit;
}
.yp-search__box button:hover { background: var(--yp-cta-hover); }
.yp-header__icons { display: flex; gap: 4px; flex-shrink: 0; }
.yp-icon-link {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 72px; padding: 4px; border-radius: 12px;
  font-size: 11px; color: var(--yp-ink);
}
.yp-icon-link:hover { background: var(--yp-page); color: var(--yp-ink); }
.yp-badge {
  position: absolute; right: 12px; top: 4px;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px; background: var(--yp-accent);
  color: #fff; font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.yp-chips {
  border-top: 1px solid rgba(0,0,0,.05);
  overflow-x: auto; scrollbar-width: none;
}
.yp-chips::-webkit-scrollbar { display: none; }
.yp-chips__inner { display: flex; gap: 4px; padding: 8px 0; }
.yp-chip {
  flex-shrink: 0; padding: 6px 14px; border-radius: 999px;
  font-size: 13px; color: var(--yp-ink);
}
.yp-chip:hover { background: var(--yp-page); }
.yp-chip.is-active { background: rgba(1,51,136,.1); color: var(--yp-brand); font-weight: 600; }
.yp-chip.is-accent { margin-left: auto; color: var(--yp-accent); font-weight: 500; }

/* Promo */
.yp-promo {
  background: linear-gradient(90deg, var(--yp-brand), var(--yp-brand-mid));
  color: #fff;
}
.yp-promo__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 10px 0; font-size: 14px;
}
.yp-promo a {
  flex-shrink: 0; border-radius: 8px; padding: 4px 12px;
  background: var(--yp-cta); color: var(--yp-ink) !important;
  font-size: 12px; font-weight: 700;
}
.yp-promo a:hover { background: var(--yp-cta-hover); }

/* Store switcher */
.yp-switcher {
  position: sticky; top: 100px; z-index: 40;
  background: rgba(255,255,255,.95); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0,0,0,.05);
}
.yp-switcher__inner {
  display: flex; align-items: center; gap: 12px; padding: 10px 0; font-size: 14px;
}
.yp-switcher__label { color: var(--yp-mute); }
.yp-switcher__tabs {
  display: inline-flex; border-radius: 12px; background: var(--yp-page); padding: 4px;
}
.yp-switcher__tab {
  border: 0; border-radius: 8px; padding: 6px 14px;
  font-size: 14px; font-weight: 500; background: transparent;
  cursor: pointer; font-family: inherit; color: var(--yp-ink);
}
.yp-switcher__tab.is-active {
  background: var(--yp-brand); color: #fff; font-weight: 600;
}

/* Main */
.yp-main { padding: 20px 0 64px; }

/* Hero */
.yp-hero { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.yp-hero__banner {
  position: relative; min-height: 320px; overflow: hidden;
  border-radius: var(--yp-radius);
  background: linear-gradient(135deg, var(--yp-brand), var(--yp-brand-mid));
  box-shadow: var(--yp-shadow-card); color: #fff;
}
.yp-hero__banner-body {
  position: relative; z-index: 1; height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 32px;
}
.yp-hero__banner h1 {
  margin: 0; font-family: var(--yp-font-display);
  font-size: 36px; font-weight: 800; line-height: 1.15;
}
.yp-hero__banner p { margin: 8px 0 0; max-width: 28rem; opacity: .9; }
.yp-hero__banner .yp-btn {
  margin-top: 20px; align-self: flex-start;
}
.yp-hero__side { display: flex; flex-direction: column; gap: 16px; }
.yp-hero__tile {
  flex: 1; position: relative; overflow: hidden;
  border-radius: var(--yp-radius); background: #fff; padding: 20px;
  box-shadow: var(--yp-shadow-card); display: flex; flex-direction: column; justify-content: space-between;
  min-height: 140px; transition: box-shadow .2s;
}
.yp-hero__tile:hover { box-shadow: var(--yp-shadow-lift); color: inherit; }
.yp-hero__tile-label {
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .04em; color: var(--yp-accent);
}
.yp-hero__tile h2 {
  margin: 0; font-family: var(--yp-font-display);
  font-size: 20px; font-weight: 700; color: var(--yp-brand);
}
.yp-hero__tile p { margin: 4px 0 0; font-size: 13px; color: var(--yp-mute); }
.yp-hero__tile .material-symbols-outlined {
  position: absolute; bottom: 16px; right: 16px;
  font-size: 48px; color: rgba(1,51,136,.15);
}

/* Buttons */
.yp-btn {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: var(--yp-radius); padding: 12px 20px;
  background: var(--yp-cta); color: var(--yp-ink) !important;
  font-size: 14px; font-weight: 700; border: 0; cursor: pointer;
  font-family: inherit; transition: background .15s;
}
.yp-btn:hover { background: var(--yp-cta-hover); color: var(--yp-ink) !important; }
.yp-btn--block { width: 100%; justify-content: center; border-radius: 12px; padding: 10px; }

/* Category strip */
.yp-cat-strip { margin-top: 32px; overflow-x: auto; scrollbar-width: none; }
.yp-cat-strip::-webkit-scrollbar { display: none; }
.yp-cat-strip__inner { display: flex; gap: 12px; padding-bottom: 4px; }
.yp-cat-pill {
  flex-shrink: 0; width: 96px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  border-radius: var(--yp-radius); background: #fff; padding: 12px;
  box-shadow: var(--yp-shadow-card); text-align: center; font-size: 12px; font-weight: 500;
}
.yp-cat-pill:hover { box-shadow: var(--yp-shadow-lift); color: inherit; }
.yp-cat-pill__icon {
  width: 56px; height: 56px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(1,51,136,.1); color: var(--yp-brand);
}
.yp-cat-pill__icon .material-symbols-outlined { font-size: 28px; }

/* Section */
.yp-section { margin-top: 40px; }
.yp-section__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin-bottom: 16px;
}
.yp-section__head h2 {
  margin: 0; font-family: var(--yp-font-display);
  font-size: 24px; font-weight: 700;
}
.yp-section__head a { font-size: 14px; font-weight: 600; color: var(--yp-brand); }
.yp-section__head a:hover { text-decoration: underline; }

/* Product grid / card */
.yp-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.yp-card {
  display: flex; flex-direction: column;
  border-radius: var(--yp-radius); background: #fff; padding: 8px;
  box-shadow: var(--yp-shadow-card); transition: box-shadow .2s;
}
.yp-card:hover { box-shadow: var(--yp-shadow-lift); }
.yp-card__img {
  position: relative; aspect-ratio: 1; overflow: hidden;
  border-radius: 12px; background: var(--yp-page);
}
.yp-card__img img {
  width: 100%; height: 100%; object-fit: cover;
  outline: 1px solid rgba(0,0,0,.1); outline-offset: -1px;
}
.yp-card__body {
  display: flex; flex-direction: column; gap: 6px;
  padding: 12px 8px 8px; flex: 1;
}
.yp-card__price {
  display: flex; align-items: baseline; gap: 8px;
}
.yp-card__price-now {
  font-size: 18px; font-weight: 700; line-height: 1;
}
.yp-card__price-old {
  font-size: 12px; color: var(--yp-mute); text-decoration: line-through;
}
.yp-card__title {
  margin: 0; font-size: 13px; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 2.5em;
}
.yp-card__meta { font-size: 12px; color: var(--yp-mute); }

/* Wholesale strip */
.yp-wholesale {
  margin-top: 40px; overflow: hidden; border-radius: var(--yp-radius);
  background: linear-gradient(90deg, var(--yp-brand), var(--yp-brand-mid));
  color: #fff; padding: 32px; box-shadow: var(--yp-shadow-card);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
}
.yp-wholesale h2 {
  margin: 0; font-family: var(--yp-font-display); font-size: 24px; font-weight: 700;
}
.yp-wholesale p { margin: 8px 0 0; opacity: .9; max-width: 36rem; }

/* Catalog layout */
.yp-catalog { display: grid; grid-template-columns: 260px 1fr; gap: 24px; margin-top: 16px; }
.yp-filters {
  background: #fff; border-radius: var(--yp-radius); padding: 20px;
  box-shadow: var(--yp-shadow-card); align-self: start;
}
.yp-filters h3 {
  margin: 0 0 12px; font-family: var(--yp-font-display); font-size: 16px; font-weight: 700;
}
.yp-filters ul { list-style: none; margin: 0; padding: 0; }
.yp-filters li { margin: 0 0 8px; }
.yp-filters a { font-size: 14px; color: var(--yp-ink); }
.yp-filters a:hover, .yp-filters a.is-active { color: var(--yp-brand); font-weight: 600; }
.yp-catalog__toolbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; gap: 12px; flex-wrap: wrap;
}
.yp-catalog__toolbar h1 {
  margin: 0; font-family: var(--yp-font-display); font-size: 28px; font-weight: 800;
}
.yp-catalog .yp-grid { grid-template-columns: repeat(4, 1fr); }

/* Product page */
.yp-product {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
  background: #fff; border-radius: var(--yp-radius); padding: 24px;
  box-shadow: var(--yp-shadow-card);
}
.yp-product__gallery img {
  width: 100%; border-radius: 12px; background: var(--yp-page);
}
.yp-product__info h1 {
  margin: 0 0 12px; font-family: var(--yp-font-display);
  font-size: 28px; font-weight: 800;
}
.yp-product__price {
  font-size: 32px; font-weight: 800; margin: 16px 0;
}

/* Footer */
.yp-footer {
  border-top: 1px solid rgba(0,0,0,.05); background: #fff;
  margin-top: auto;
}
.yp-footer__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 32px; padding: 48px 0; font-size: 14px;
}
.yp-footer__brand {
  font-family: var(--yp-font-display); font-size: 18px; font-weight: 700; color: var(--yp-brand);
}
.yp-footer p { margin: 8px 0 0; color: var(--yp-mute); }
.yp-footer h4 { margin: 0 0 12px; font-size: 14px; font-weight: 600; }
.yp-footer ul { list-style: none; margin: 0; padding: 0; }
.yp-footer li { margin: 0 0 8px; color: var(--yp-mute); }
.yp-footer a:hover { color: var(--yp-brand); }

/* Mobile nav */
.yp-mobile-bar {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  background: #fff; border-top: 1px solid rgba(0,0,0,.08);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
}
.yp-mobile-bar__inner {
  display: flex; justify-content: space-around;
}
.yp-mobile-bar a {
  display: flex; flex-direction: column; align-items: center;
  font-size: 10px; gap: 2px; padding: 4px 8px; color: var(--yp-mute);
}
.yp-mobile-bar a.is-active, .yp-mobile-bar a:hover { color: var(--yp-brand); }

/* Pagination / alerts — keep OC defaults lightly styled */
.yp .pagination { justify-content: center; margin-top: 24px; }
.yp .alert { border-radius: 12px; }

@media (max-width: 1100px) {
  .yp-grid { grid-template-columns: repeat(4, 1fr); }
  .yp-catalog .yp-grid { grid-template-columns: repeat(3, 1fr); }
  .yp-header__util nav a:not(.yp-header__phone) { display: none; }
}
@media (max-width: 900px) {
  .yp-hero { grid-template-columns: 1fr; }
  .yp-hero__side { flex-direction: row; }
  .yp-catalog { grid-template-columns: 1fr; }
  .yp-filters { display: none; }
  .yp-product { grid-template-columns: 1fr; }
  .yp-footer__grid { grid-template-columns: 1fr 1fr; }
  .yp-header__icons .yp-icon-link span:last-child { display: none; }
  .yp-icon-link { width: 44px; }
  .yp-btn-catalog span:last-child { display: none; }
}
@media (max-width: 640px) {
  .yp-grid, .yp-catalog .yp-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .yp-header__util { display: none; }
  .yp-switcher { top: 64px; }
  .yp-mobile-bar { display: block; }
  .yp-main { padding-bottom: 88px; }
  .yp-footer__grid { grid-template-columns: 1fr; gap: 24px; }
  .yp-hero__banner { min-height: 240px; }
  .yp-hero__banner h1 { font-size: 24px; }
  .yp-chip.is-accent { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
