/* storefront.css — единственный стиль нового storefront Minecraft Market.
   Mobile-first; без Bootstrap/jQuery. Цвета — из логотипа (logo-header.svg),
   текстуры — фирменные файлы /image/new-images/. */
:root {
  --sf-green: #009345;
  --sf-green-dark: #006838;
  --sf-green-light: #37b34a;
  --sf-lime: #8bc53f;
  --sf-bg: #f2f3f5;
  --sf-card: #fff;
  --sf-text: #1c1c1c;
  --sf-muted: #6b7280;
  --sf-line: #e3e5e8;
  --sf-red: #e53935;
  --sf-radius: 10px;
  --sf-container: 1440px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body.sf { margin: 0; min-width: 320px; overflow-x: hidden; background: var(--sf-bg); color: var(--sf-text);
  font: 14px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--sf-lime); outline-offset: 2px; }
.sf-container { width: 100%; max-width: var(--sf-container); margin: 0 auto; padding: 0 12px; }
@media (min-width: 900px) { .sf-container { padding: 0 24px; } }

/* ---------- preview ---------- */
.sf-preview-bar { background: #ffe08a; color: #3b2f00; text-align: center; font-size: 13px; padding: 6px 12px; }
.sf-preview-bar a { color: #3b2f00; font-weight: 700; }

/* ---------- header ---------- */
.sf-header { background: #262626 url(/image/new-images/header-dark.png); color: #fff; }
.sf-header__bar { display: grid; grid-template-columns: 44px 1fr auto; grid-template-areas: "burger logo cart" "search search search";
  align-items: center; gap: 8px 10px; padding-top: 8px; padding-bottom: 10px; }
.sf-burger { grid-area: burger; width: 44px; height: 44px; margin-left: -8px; background: none; border: 0; padding: 10px;
  display: flex; flex-direction: column; justify-content: center; gap: 5px; cursor: pointer; }
.sf-burger span { display: block; height: 3px; background: #fff; border-radius: 2px; transition: transform .2s, opacity .2s; }
.sf-burger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.sf-burger.is-open span:nth-child(2) { opacity: 0; }
.sf-burger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.sf-logo { grid-area: logo; display: flex; align-items: center; }
.sf-logo img { height: 44px; width: auto; }
.sf-search { grid-area: search; display: flex; height: 44px; background: #fff; border-radius: 8px; overflow: hidden; }
.sf-search input { flex: 1; min-width: 0; border: 0; padding: 0 14px; font-size: 16px; color: var(--sf-text); outline: none; }
.sf-search input::placeholder { color: #9ca3af; }
.sf-search button { width: 56px; border: 0; background: var(--sf-green); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.sf-search button:hover { background: var(--sf-green-dark); }
.sf-header__account { display: none; }
.sf-cart { grid-area: cart; position: relative; display: flex; align-items: center; gap: 6px; padding: 4px 4px 4px 6px; border-radius: 8px; color: #fff; text-decoration: none; }
.sf-cart:hover { background: rgba(255, 255, 255, .08); }
.sf-cart__badge { position: absolute; top: -3px; left: 24px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--sf-green); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.sf-cart__total { font-size: 13px; font-weight: 600; white-space: nowrap; }
@media (min-width: 900px) {
  .sf-header__bar { grid-template-columns: auto 1fr auto auto; grid-template-areas: "logo search account cart"; gap: 24px; padding-top: 10px; padding-bottom: 10px; }
  .sf-burger { display: none; }
  .sf-logo img { height: 56px; }
  .sf-search { width: 100%; max-width: 640px; justify-self: center; }
  .sf-header__account { display: flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-size: 14px; font-weight: 600; padding: 6px 8px; border-radius: 8px; }
  .sf-header__account:hover { background: rgba(255, 255, 255, .08); }
  .sf-cart__total { font-size: 14px; }
}
.sf-nav { display: none; background: #e9ebee url(/image/new-images/menu-pattern.jpg); border-bottom: 1px solid var(--sf-line); }
.sf-nav__inner { display: flex; gap: 2px; overflow-x: auto; }
.sf-nav a { padding: 12px 14px; color: var(--sf-text); text-decoration: none; text-transform: uppercase; font-weight: 700; font-size: 12.5px; letter-spacing: .02em; white-space: nowrap; }
.sf-nav a:hover { color: var(--sf-green-dark); }
@media (min-width: 900px) { .sf-nav { display: block; } }
.sf-mobile-menu { background: #1f1f1f; border-top: 1px solid #333; }
.sf-mobile-menu__inner { display: flex; flex-direction: column; padding-top: 4px; padding-bottom: 10px; }
.sf-mobile-menu a { padding: 13px 4px; color: #fff; text-decoration: none; font-size: 15px; border-bottom: 1px solid #333; }
.sf-mobile-menu__phone { color: var(--sf-lime) !important; font-weight: 700; }

/* ---------- main ---------- */
.sf-main { padding: 12px 0 8px; }
.sf-breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; padding: 0; font-size: 13px; color: var(--sf-muted); }
.sf-breadcrumbs li + li::before { content: "›"; margin-right: 6px; }
.sf-breadcrumbs a { color: var(--sf-muted); text-decoration: none; }
.sf-breadcrumbs a:hover { color: var(--sf-green-dark); }
.sf-page-title { margin: 4px 0 10px; font-size: 22px; font-weight: 800; line-height: 1.2; }
@media (min-width: 900px) { .sf-page-title { font-size: 28px; } }

/* hero — компактный, товары сразу под ним */
.sf-hero { position: relative; display: flex; align-items: center; min-height: 140px; margin-bottom: 12px; border-radius: 14px; overflow: hidden;
  background: #2f5d3a center / cover no-repeat; }
.sf-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 18, 8, .8) 0%, rgba(8, 18, 8, .5) 55%, rgba(8, 18, 8, .15) 100%); }
.sf-hero__content { position: relative; max-width: 560px; padding: 14px 14px; color: #fff; }
@media (max-width: 599px) { .sf-hero .sf-hero__text { display: none; } .sf-hero .sf-btn { min-height: 38px; padding: 0 14px; font-size: 13px; } }
.sf-hero__title { margin: 0 0 6px; font-size: 17px; line-height: 1.2; font-weight: 800; text-transform: uppercase; letter-spacing: .01em; }
.sf-hero__text { margin: 0 0 12px; font-size: 13px; opacity: .92; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 900px) {
  .sf-hero { min-height: 220px; margin-bottom: 16px; }
  .sf-hero__content { max-width: 640px; padding: 28px 32px; }
  .sf-hero__title { font-size: 24px; }
  .sf-hero__text { font-size: 15px; }
}

/* buttons */
.sf-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 10px; border: 2px solid transparent;
  font-weight: 700; font-size: 14px; text-decoration: none; cursor: pointer; transition: background .15s, color .15s; }
.sf-btn--primary { background: var(--sf-green); color: #fff; }
.sf-btn--primary:hover { background: var(--sf-green-dark); }
.sf-btn--outline { background: #fff; color: var(--sf-green-dark); border-color: var(--sf-green); }
.sf-btn--outline:hover { background: #eaf7ee; }

/* chips */
.sf-chips { display: flex; gap: 8px; margin: 0 -12px; padding: 4px 12px 10px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.sf-chips::-webkit-scrollbar { display: none; }
.sf-chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border-radius: 999px;
  background: #fff; border: 1px solid var(--sf-line); color: var(--sf-text); text-decoration: none; font-weight: 600; font-size: 13.5px; white-space: nowrap; }
.sf-chip:hover { border-color: var(--sf-green); }
.sf-chip__count { color: var(--sf-muted); font-weight: 500; font-size: 12px; }
.sf-chip.is-active { background: var(--sf-green); border-color: var(--sf-green); color: #fff; }
.sf-chip.is-active .sf-chip__count { color: rgba(255, 255, 255, .8); }
@media (min-width: 900px) { .sf-chips { margin: 0; padding-left: 0; padding-right: 0; flex-wrap: wrap; } }

/* toolbar */
.sf-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 6px 0 10px; }
.sf-toolbar__title { margin: 0; font-size: 18px; font-weight: 800; }
.sf-toolbar__count { margin-left: 4px; color: var(--sf-muted); font-weight: 500; font-size: 14px; }
.sf-sort { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--sf-muted); }
.sf-sort span { display: none; }
.sf-sort select { min-height: 36px; padding: 0 8px; border: 1px solid var(--sf-line); border-radius: 8px; background: #fff; font-size: 14px; color: var(--sf-text); }
@media (min-width: 600px) { .sf-sort span { display: inline; } }
@media (min-width: 900px) { .sf-toolbar__title { font-size: 22px; } }

/* feed: 2 → 3 → 4 → 5 → 6 карточек в ряд */
.sf-feed { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sf-feed-section.is-loading .sf-feed { opacity: .55; transition: opacity .15s; }
@media (min-width: 600px) { .sf-feed { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } }
@media (min-width: 900px) { .sf-feed { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 1180px) { .sf-feed { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 1400px) { .sf-feed { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

/* product card */
.sf-card { position: relative; display: flex; flex-direction: column; background: var(--sf-card); border: 1px solid var(--sf-line); border-radius: var(--sf-radius); overflow: hidden; transition: box-shadow .15s; }
.sf-card:hover { box-shadow: 0 6px 18px rgba(0, 0, 0, .08); }
.sf-card__media { position: relative; display: block; aspect-ratio: 1 / 1; padding: 6px; background: #fff; }
.sf-card__media img { display: block; width: 100%; height: 100%; object-fit: contain; }
.sf-badge { position: absolute; left: 8px; bottom: 8px; padding: 5px 7px; border-radius: 7px; background: var(--sf-red); color: #fff; font-weight: 700; font-size: 12px; line-height: 1; }
.sf-card__body { flex: 1; display: flex; flex-direction: column; gap: 3px; padding: 6px 56px 10px 10px; }
.sf-card__price { font-weight: 800; font-size: 16px; line-height: 1.2; }
.sf-price-old { margin-left: 4px; color: #9ca3af; font-weight: 400; font-size: 12.5px; }
.sf-card__name { color: var(--sf-text); text-decoration: none; font-size: 13px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sf-card__name:hover { color: var(--sf-green-dark); }
.sf-rating { font-size: 12px; color: var(--sf-muted); }
.sf-rating__star { color: #f5a623; }
.sf-card__buy { position: absolute; right: 8px; bottom: 8px; width: 42px; height: 42px; border: 0; border-radius: 9px; background: var(--sf-green); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: background .15s, transform .1s; }
.sf-card__buy:hover { background: var(--sf-green-dark); }
.sf-card__buy:active { transform: scale(.94); }
.sf-card__buy.is-busy { opacity: .6; pointer-events: none; }
.sf-card__buy.is-done { background: var(--sf-green-dark); }
@media (min-width: 900px) { .sf-card__price { font-size: 17px; } .sf-card__name { font-size: 13.5px; } }

/* feed footer, empty, seo text */
.sf-feed__footer { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 16px 0 6px; }
.sf-feed__shown { margin: 0; color: var(--sf-muted); font-size: 13px; }
.sf-more { min-width: 220px; }
.sf-empty { padding: 30px 12px; text-align: center; color: var(--sf-muted); }
.sf-seo { margin: 18px 0 8px; padding: 14px 16px; background: #fff; border: 1px solid var(--sf-line); border-radius: var(--sf-radius); font-size: 14px; color: #374151; }
.sf-seo__text { max-height: 9em; overflow: hidden; }
.sf-seo.is-open .sf-seo__text { max-height: none; }
.sf-link { padding: 6px 0 0; background: none; border: 0; color: var(--sf-green-dark); font-weight: 700; font-size: 14px; cursor: pointer; }

/* ---------- footer: трава с животными + земля ---------- */
.sf-footer { margin-top: 24px; color: #fff; }
.sf-footer__grass { height: 110px; background: url(/image/new-images/footer-before-mobile.png) repeat-x center bottom; }
.sf-footer__body { background: #4a3524 url(/image/new-images/footer-pattern-mobile.jpg) repeat-x center top; }
.sf-footer__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 14px; padding-top: 30px; padding-bottom: 14px; }
.sf-footer__brand, .sf-footer__social { grid-column: 1 / -1; }
.sf-footer__brand img { display: block; height: 64px; width: auto; margin-bottom: 12px; }
.sf-footer__contacts { display: flex; flex-direction: column; gap: 6px; font-style: normal; font-size: 14px; }
.sf-footer__contacts a { color: var(--sf-lime); text-decoration: none; }
.sf-footer h3 { margin: 0 0 10px; font-size: 14px; text-transform: uppercase; letter-spacing: .03em; color: var(--sf-lime); }
.sf-footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sf-footer__col a { color: #fff; text-decoration: none; font-size: 13px; opacity: .9; }
@media (min-width: 700px) { .sf-footer__col a { font-size: 14px; } }
.sf-footer__col a:hover { opacity: 1; text-decoration: underline; }
.sf-footer__social-links { display: flex; gap: 10px; }
.sf-footer__social-links a { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 8px; background: var(--sf-green); }
.sf-footer__social-links a:hover { background: var(--sf-green-light); }
.sf-footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 18px; border-top: 1px solid rgba(255, 255, 255, .15); font-size: 12.5px; }
.sf-footer__bottom img { height: 36px; width: auto; }
@media (min-width: 700px) {
  .sf-footer__grass { background-image: url(/image/new-images/footer-before.png); }
  .sf-footer__body { background-image: url(/image/new-images/footer-pattern.jpg); }
  .sf-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 28px; padding-top: 44px; }
  .sf-footer__brand, .sf-footer__social { grid-column: auto; }
}

/* toast */
.sf-toast { position: fixed; left: 50%; bottom: 20px; z-index: 50; max-width: calc(100% - 24px); transform: translateX(-50%); padding: 12px 18px; border-radius: 10px;
  background: #1f1f1f; color: #fff; font-size: 14px; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
.sf-toast.is-error { background: var(--sf-red); }

/* ---------- страница товара ---------- */
.sf-muted { color: var(--sf-muted); font-weight: 400; }
.sf-req { color: var(--sf-red); }
.sf-product__grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.sf-gallery__strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: #fff; border: 1px solid var(--sf-line); border-radius: 14px; }
.sf-gallery__strip::-webkit-scrollbar { display: none; }
.sf-gallery__item { position: relative; flex: 0 0 100%; margin: 0; aspect-ratio: 1 / 1; scroll-snap-align: start; display: flex; align-items: center; justify-content: center; padding: 12px; }
.sf-gallery__item img { width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; }
.sf-gallery__item .sf-badge { left: 12px; bottom: 12px; font-size: 14px; }
.sf-gallery__thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.sf-gallery__thumbs::-webkit-scrollbar { display: none; }
.sf-gallery__thumb { flex: 0 0 64px; width: 64px; height: 64px; padding: 3px; background: #fff; border: 2px solid var(--sf-line); border-radius: 10px; cursor: pointer; }
.sf-gallery__thumb.is-active { border-color: var(--sf-green); }
.sf-gallery__thumb img { display: block; width: 100%; height: 100%; object-fit: contain; }
.sf-product__title { margin: 0 0 8px; font-size: 20px; line-height: 1.25; font-weight: 800; }
.sf-product__meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 12px; font-size: 13px; color: var(--sf-muted); }
.sf-product__meta .sf-rating { color: var(--sf-text); text-decoration: none; font-size: 14px; }
.sf-attrs-short { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; font-size: 13.5px; }
.sf-attrs-short dt { color: var(--sf-muted); }
.sf-attrs-short dd { margin: 0; }
.sf-buy { padding: 16px; background: #fff; border: 1px solid var(--sf-line); border-radius: 14px; }
.sf-buy__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.sf-price--big { font-size: 28px; font-weight: 800; }
.sf-buy .sf-price-old { font-size: 15px; margin: 0; }
.sf-badge--inline { position: static; }
.sf-buy__stock { margin-bottom: 12px; font-size: 14px; font-weight: 600; }
.sf-buy__stock.is-in { color: var(--sf-green-dark); }
.sf-buy__stock.is-out { color: var(--sf-red); }
.sf-options fieldset { margin: 0 0 12px; padding: 0; border: 0; }
.sf-options legend { margin-bottom: 6px; font-weight: 700; font-size: 14px; }
.sf-options label { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 14px; }
.sf-options input[type="text"], .sf-options textarea { width: 100%; padding: 10px; border: 1px solid var(--sf-line); border-radius: 8px; font: inherit; }
.sf-options fieldset.is-error legend { color: var(--sf-red); }
.sf-buy__row { display: flex; align-items: center; gap: 10px; }
.sf-qty { display: flex; align-items: center; height: 46px; border: 1px solid var(--sf-line); border-radius: 10px; overflow: hidden; }
.sf-qty button { width: 40px; height: 100%; border: 0; background: #f3f4f6; font-size: 20px; cursor: pointer; }
.sf-qty input { width: 52px; height: 100%; border: 0; text-align: center; font-size: 16px; font-weight: 700; -moz-appearance: textfield; }
.sf-qty input::-webkit-outer-spin-button, .sf-qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.sf-buy__btn { flex: 1; min-height: 46px; font-size: 15px; }
.sf-anchors { display: flex; gap: 8px; margin: 18px 0 -4px; overflow-x: auto; scrollbar-width: none; }
.sf-anchors::-webkit-scrollbar { display: none; }
.sf-anchors a { flex: 0 0 auto; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--sf-line); color: var(--sf-text); text-decoration: none; font-weight: 600; font-size: 13.5px; white-space: nowrap; }
.sf-product__sections { display: grid; gap: 14px; margin-top: 14px; }
.sf-panel { padding: 16px; background: #fff; border: 1px solid var(--sf-line); border-radius: 14px; }
.sf-panel h2 { margin: 0 0 12px; font-size: 18px; }
.sf-panel h3 { margin: 12px 0 6px; font-size: 15px; }
.sf-prose { font-size: 14.5px; line-height: 1.55; color: #374151; overflow-wrap: anywhere; }
.sf-prose img, .sf-prose iframe, .sf-prose table { max-width: 100%; height: auto; }
.sf-attrs { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0; }
.sf-attrs div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--sf-line); font-size: 14px; }
.sf-attrs dt { color: var(--sf-muted); }
.sf-attrs dd { margin: 0; }
.sf-reviews { display: grid; gap: 12px; }
.sf-review { padding-bottom: 12px; border-bottom: 1px solid var(--sf-line); }
.sf-review header { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 6px; font-size: 13px; }
.sf-review__stars { color: #f5a623; letter-spacing: 1px; }
.sf-review time { color: var(--sf-muted); }
.sf-review p { margin: 0; font-size: 14px; line-height: 1.5; }
.sf-related { margin-top: 18px; }
.sf-related h2 { margin: 0 0 12px; font-size: 20px; }
.sf-related__strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(160px, 1fr); gap: 10px; padding-bottom: 6px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
.sf-related__strip::-webkit-scrollbar { display: none; }
.sf-related__strip .sf-card { scroll-snap-align: start; }
.sf-sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--sf-line); box-shadow: 0 -6px 20px rgba(0, 0, 0, .08); }
.sf-sticky-buy .sf-price { font-size: 20px; font-weight: 800; }
.sf-sticky-buy .sf-btn { min-width: 160px; }
body.sf--product { padding-bottom: 76px; }
body.sf--product .sf-toast { bottom: 90px; }
.sf-lightbox { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0, 0, 0, .88); }
.sf-lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.sf-lightbox__close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
@media (min-width: 900px) {
  .sf-product__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
  .sf-gallery { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; }
  .sf-gallery__strip { grid-column: 2; grid-row: 1; }
  .sf-gallery__thumbs { grid-column: 1; grid-row: 1; flex-direction: column; margin: 0; overflow: visible; }
  .sf-product__title { font-size: 26px; }
  .sf-buy { position: sticky; top: 12px; }
  .sf-attrs { grid-template-columns: 1fr 1fr; column-gap: 32px; }
  .sf-related__strip { grid-auto-columns: minmax(200px, 1fr); }
  .sf-sticky-buy { display: none; }
  body.sf--product { padding-bottom: 0; }
  body.sf--product .sf-toast { bottom: 20px; }
}
@media (min-width: 1180px) { .sf-product__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 340px; } }

/* ---------- корзина ---------- */
.sf-cart__grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.sf-cart__items { display: grid; gap: 10px; }
.sf-cart-item { display: grid; grid-template-columns: 88px 1fr; gap: 12px; padding: 12px; background: #fff; border: 1px solid var(--sf-line); border-radius: 14px; }
.sf-cart-item.is-nostock { border-color: #f6c5c5; }
.sf-cart-item__img img { display: block; width: 88px; height: 88px; object-fit: contain; border-radius: 8px; }
.sf-cart-item__name { display: block; margin-bottom: 4px; color: var(--sf-text); text-decoration: none; font-weight: 600; font-size: 14px; line-height: 1.3; }
.sf-cart-item__opt { font-size: 12.5px; color: var(--sf-muted); }
.sf-cart-item__warn { font-size: 12.5px; color: var(--sf-red); }
.sf-cart-item__row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 8px; }
.sf-qty--sm { height: 38px; }
.sf-qty--sm button { width: 34px; font-size: 18px; }
.sf-qty--sm input { width: 44px; font-size: 15px; }
.sf-cart-item__price { margin-left: auto; font-size: 15px; }
.sf-cart-item__price .sf-muted { font-size: 12px; }
.sf-cart-item__remove { width: 36px; height: 36px; border: 0; border-radius: 8px; background: #f3f4f6; color: var(--sf-muted); font-size: 15px; cursor: pointer; }
.sf-cart-item__remove:hover { background: #fee2e2; color: var(--sf-red); }
.sf-cart__summary { display: grid; gap: 10px; padding: 16px; background: #fff; border: 1px solid var(--sf-line); border-radius: 14px; }
.sf-cart__line { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.sf-cart__line.is-total { padding-top: 8px; border-top: 1px solid var(--sf-line); font-size: 18px; }
.sf-cart__checkout { width: 100%; min-height: 48px; font-size: 15px; }
.sf-cart__checkout.is-disabled { pointer-events: none; opacity: .5; }
.sf-cart__continue { text-align: center; color: var(--sf-green-dark); text-decoration: none; font-weight: 600; font-size: 14px; }
.sf-cart__warn { margin: 0; font-size: 13px; color: var(--sf-red); }
.sf-cart-empty { display: grid; gap: 14px; justify-items: center; padding: 40px 16px; text-align: center; background: #fff; border: 1px solid var(--sf-line); border-radius: 14px; }
[data-sf="cart-page"].is-loading [data-sf="cart-body"] { opacity: .55; }
@media (min-width: 900px) {
  .sf-cart__grid { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
  .sf-cart__summary { position: sticky; top: 12px; }
}

/* ---------- поиск, 404, информационные страницы ---------- */
.sf-notfound { display: grid; gap: 14px; justify-items: center; padding: 36px 16px 28px; text-align: center; }
.sf-notfound h1 { margin: 0; font-size: 24px; }
.sf-notfound p { margin: 0; color: var(--sf-muted); }
.sf-notfound .sf-search { width: 100%; max-width: 520px; border: 1px solid var(--sf-line); }
.sf-page { max-width: 900px; }
.sf-page .sf-prose { padding: 16px; background: #fff; border: 1px solid var(--sf-line); border-radius: 14px; }
@media (min-width: 900px) { .sf-page .sf-prose { padding: 24px; font-size: 15px; } }

/* ---------- оформление заказа ---------- */
.sf-checkout__grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.sf-checkout__form { display: grid; gap: 14px; }
.sf-step h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 17px; }
.sf-step__num { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--sf-green); color: #fff; font-size: 13px; }
.sf-fields { display: grid; gap: 10px; }
.sf-field { position: relative; display: flex; flex-direction: column; gap: 4px; }
.sf-field > span { font-size: 13px; color: var(--sf-muted); }
.sf-field small { font-weight: 400; }
.sf-field input, .sf-field textarea { min-height: 46px; padding: 10px 12px; border: 1px solid var(--sf-line); border-radius: 10px; background: #fff; font: inherit; font-size: 16px; }
.sf-field textarea { min-height: 64px; resize: vertical; }
.sf-field input:focus, .sf-field textarea:focus { border-color: var(--sf-green); outline: none; }
.sf-field.is-error input { border-color: var(--sf-red); }
.sf-suggest { position: absolute; left: 0; right: 0; top: 100%; z-index: 30; overflow: hidden; background: #fff; border: 1px solid var(--sf-line); border-radius: 10px; box-shadow: 0 8px 24px rgba(0, 0, 0, .12); }
.sf-suggest button { display: block; width: 100%; padding: 10px 12px; border: 0; background: none; text-align: left; font-size: 14px; cursor: pointer; }
.sf-suggest button:hover { background: #eaf7ee; }
.sf-suggest__empty { padding: 10px 12px; color: var(--sf-muted); font-size: 14px; }
.sf-delivery { display: grid; gap: 10px; margin-top: 12px; }
.sf-delivery__status { margin: 0; color: var(--sf-muted); font-size: 14px; }
.sf-delivery__types { display: grid; gap: 8px; }
.sf-dtype { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "r name" "r meta"; column-gap: 10px; padding: 12px; border: 2px solid var(--sf-line); border-radius: 12px; background: #fff; cursor: pointer; }
.sf-dtype input { grid-area: r; align-self: center; width: 18px; height: 18px; accent-color: var(--sf-green); }
.sf-dtype__name { grid-area: name; font-weight: 700; font-size: 14.5px; }
.sf-dtype__meta { grid-area: meta; font-size: 13px; color: var(--sf-muted); }
.sf-dtype.is-active { border-color: var(--sf-green); background: #f3fbf5; }
.sf-points { display: grid; gap: 8px; }
.sf-points__search { min-height: 42px; padding: 8px 12px; border: 1px solid var(--sf-line); border-radius: 10px; font: inherit; font-size: 15px; }
.sf-points__list { display: grid; gap: 6px; max-height: 420px; overflow: auto; padding-right: 2px; }
.sf-point { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border: 2px solid var(--sf-line); border-radius: 10px; background: #fff; cursor: pointer; }
.sf-point input { width: 18px; height: 18px; accent-color: var(--sf-green); }
.sf-point__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sf-point__addr { font-size: 14px; font-weight: 600; }
.sf-point__meta { font-size: 12px; color: var(--sf-muted); }
.sf-point__price { font-size: 14px; white-space: nowrap; }
.sf-point.is-active { border-color: var(--sf-green); background: #f3fbf5; }
.sf-courier { display: grid; gap: 10px; }
.sf-pay { margin: 0 0 12px; font-size: 14px; color: #374151; }
.sf-summary { display: grid; gap: 12px; padding: 16px; background: #fff; border: 1px solid var(--sf-line); border-radius: 14px; }
.sf-summary__title { margin: 0; font-size: 17px; }
.sf-summary__items { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-height: 260px; overflow: auto; }
.sf-summary__items li { display: grid; grid-template-columns: 48px 1fr auto; gap: 10px; align-items: center; font-size: 13.5px; }
.sf-summary__items img { width: 48px; height: 48px; object-fit: contain; border: 1px solid var(--sf-line); border-radius: 8px; }
.sf-summary__name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sf-summary__edit { font-size: 13px; color: var(--sf-green-dark); text-decoration: none; font-weight: 600; }
.sf-coupon { display: grid; gap: 6px; }
.sf-coupon__form { display: flex; gap: 8px; }
.sf-coupon__form input { flex: 1; min-width: 0; min-height: 42px; padding: 8px 12px; border: 1px solid var(--sf-line); border-radius: 10px; font: inherit; font-size: 15px; }
.sf-coupon__form .sf-btn { min-height: 42px; padding: 0 14px; }
.sf-coupon__applied { font-size: 14px; }
.sf-coupon__msg { margin: 0; font-size: 13px; color: var(--sf-red); }
.sf-summary__lines { display: grid; gap: 6px; }
.sf-summary__delivery { margin: 0; font-size: 13px; color: var(--sf-muted); }
.sf-summary__submit { width: 100%; min-height: 48px; font-size: 15px; }
.sf-summary__error { margin: 0; color: var(--sf-red); font-size: 14px; }
.sf-summary__legal { margin: 0; font-size: 12px; color: var(--sf-muted); }
.sf-summary__legal a { color: var(--sf-green-dark); }
.sf-sticky-buy--checkout { display: flex; }
body.sf--checkout { padding-bottom: 76px; }
body.sf--checkout .sf-toast { bottom: 90px; }
.sf-success { display: grid; gap: 14px; justify-items: center; max-width: 640px; margin: 0 auto; padding: 32px 16px; text-align: center; background: #fff; border: 1px solid var(--sf-line); border-radius: 14px; }
.sf-success__icon { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: var(--sf-green); color: #fff; font-size: 34px; }
.sf-success h1 { margin: 0; font-size: 24px; }
.sf-success__lead { margin: 0; color: #374151; }
.sf-success__facts { width: 100%; margin: 0; display: grid; gap: 8px; text-align: left; }
.sf-success__facts div { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--sf-line); font-size: 14px; }
.sf-success__facts dt { color: var(--sf-muted); }
.sf-success__facts dd { margin: 0; font-weight: 600; text-align: right; }
@media (min-width: 600px) { .sf-fields--row { grid-template-columns: minmax(0, 1fr) 90px 90px; } .sf-delivery__types { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) {
  .sf-checkout__grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
  .sf-summary { position: sticky; top: 12px; }
  .sf-sticky-buy--checkout { display: none; }
  body.sf--checkout { padding-bottom: 0; }
  body.sf--checkout .sf-toast { bottom: 20px; }
}
