/* ------------------------------------------------------------------
   «Мягкий модерн» — общий слой поверх site.css (выбран владельцем 02.10.2026,
   макет newantique-ref/concepts/j-soft-modern.html).
   Пастель «глазури», крупные скругления, стеклянная шапка, гротеск Onest
   и курсивная Lora для акцентов, коралловый стикер «1 экз.».
   Подключается на всех страницах после site/cart/content.css.
   ------------------------------------------------------------------ */

:root {
  --paper: #F7F3EE;
  --card: #FFFFFF;
  --mat: #EFE7DF;
  --ink: #26211E;
  --body: #5E5650;
  --muted: #8A8079;
  --taupe: #A39689;
  --taupe-deep: #7A6F66;
  --line: rgba(38, 33, 30, 0.09);
  --line-strong: rgba(38, 33, 30, 0.18);

  --font-display: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-seal: "Lora", Georgia, serif;
  --font-accent: "Lora", Georgia, serif;

  --ls-xl: -0.04em;
  --ls-l: -0.032em;
  --ls-m: -0.025em;
  --ls-s: -0.012em;

  --blush: #F1DFD6;  --blush-2: #E8CFC3;
  --sage: #E1E7DA;   --sage-2: #CFD9C6;
  --sky: #DEE6EF;    --sky-2: #C9D6E6;
  --butter: #F4EAD6; --butter-2: #EBDCBE;
  --lilac: #EAE1EC;  --lilac-2: #DCCDE0;
  --cobalt: #2E4A9E; --cobalt-soft: #E4E9F7;
  --coral: #E8775A;

  --r-xl: 40px; --r-lg: 28px; --r-md: 20px; --r-sm: 14px;
  --radius: 999px;
  --shadow-soft: 0 1px 2px rgba(38,33,30,.04), 0 12px 32px -12px rgba(38,33,30,.12);
  --shadow-lift: 0 2px 4px rgba(38,33,30,.05), 0 24px 48px -18px rgba(38,33,30,.22);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

body { background: var(--paper); color: var(--body); font-size: 16px; }
/* два очень бледных пятна света, чтобы слоновая кость не была плоской */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 600px at 8% -5%, rgba(241,223,214,.7), transparent 60%),
    radial-gradient(800px 600px at 100% 20%, rgba(222,230,239,.6), transparent 60%);
}
.serif, em.serif { font-family: var(--font-accent); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }

/* ---------- кнопки: пилюли ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font-weight: 600; font-size: 16px; border: 1px solid var(--ink);
  transition: background .25s var(--ease), transform .12s var(--ease), box-shadow .25s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn:hover { background: #000; box-shadow: 0 10px 24px -10px rgba(0,0,0,.45); }
.btn.ghost { background: rgba(255,255,255,.7); border-color: var(--line-strong); color: var(--ink); }
.btn.ghost:hover { background: #fff; box-shadow: none; }
.btn .arr { transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

/* ---------- верхняя строка ---------- */
.topbar { background: transparent; border-bottom: 0; font-size: 13px; color: var(--body); letter-spacing: 0; }
.topbar .wrap { min-height: 40px; }

/* ---------- шапка: стеклянная пилюля, прилипает ---------- */
.header {
  position: sticky; top: 10px; z-index: 50;
  background: transparent; border: 0;
  padding: 0 clamp(.5rem, 2vw, 1.5rem);
  margin-bottom: 14px;
}
.header .wrap {
  min-height: 72px; gap: 20px;
  padding: 0 12px 0 22px;
  border-radius: 999px;
  background: rgba(255,255,255,.62);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
          backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(255,255,255,.75);
  box-shadow: 0 8px 24px -14px rgba(38,33,30,.22);
  grid-template-columns: auto minmax(200px, 1fr) auto auto;
}
.logo { gap: 12px; }
.logo .seal {
  width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%;
  background: conic-gradient(from 200deg, var(--blush-2), var(--sky-2), var(--sage-2), var(--butter-2), var(--blush-2));
  box-shadow: inset 0 0 0 6px rgba(255,255,255,.65);
}
.logo .word { font-family: var(--font-body); font-size: 19px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.logo .word em { font-family: var(--font-accent); font-style: italic; font-weight: 400; font-size: 21px; }
.logo .word small { display: block; text-transform: none; letter-spacing: 0; font-size: 12px; color: var(--taupe-deep); margin-top: 1px; font-weight: 400; }

.header .search-top {
  height: 46px; min-height: 46px; padding: 0 6px 0 18px;
  border: 0; border-radius: 999px; background: rgba(255,255,255,.8);
}
.header .search-top input { height: 46px; font-size: 15px; }
.header .search-top:focus-within { box-shadow: 0 0 0 2px var(--cobalt-soft); }

.header .cart-link {
  width: auto; min-width: 0; height: 46px; min-height: 46px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0 18px 0 16px; border: 0; border-radius: 999px;
  background: var(--ink); color: #fff; font-weight: 600; font-size: 15px;
}
.header .cart-link:hover { background: #000; color: #fff; }
.header .cart-link .cart-count {
  position: static; min-width: 22px; height: 22px; line-height: 22px; border-radius: 11px;
  background: var(--coral); color: #fff; font-size: 12px; font-weight: 700;
}
.header .cart-link:not(.has-items) .cart-count { display: none; }
.header .contacts .phone { font-size: 15px; }

/* меню разделов — ряд пилюль под шапкой */
.navbar { background: transparent; border: 0; }
.navbar .wrap { gap: 6px; justify-content: flex-start; }
.navbar a {
  min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px;
  font-size: 14.5px; color: var(--body); letter-spacing: 0;
  transition: background .2s, color .2s;
}
.navbar a:hover { background: rgba(255,255,255,.85); color: var(--ink); }
.navbar a.is-active { background: var(--ink); color: #fff; }

@media (max-width: 1050px) {
  .header .wrap { grid-template-columns: auto minmax(160px, 1fr) auto; }
}
@media (max-width: 700px) {
  .header { top: 6px; }
  .header .wrap { border-radius: 26px; padding: 10px 10px 10px 14px; }
  .header .cart-link .cart-label { display: none; }
  .header .cart-link { padding: 0 14px; justify-self: end; width: auto; }
  .logo .seal { width: 30px; height: 30px; }
  .logo .word small { display: none; }
}

/* ---------- заголовок страницы ---------- */
.page-head { border-bottom: 0; }
.page-head h1 { font-weight: 600; }
.crumbs { color: var(--muted); }

/* ---------- карточка товара в сетке ---------- */
.card {
  --tone: var(--blush-2);
  padding: 10px 10px 16px; border-radius: 30px;
  background: var(--card); box-shadow: var(--shadow-soft);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.card.t-blush { --tone: var(--blush-2); } .card.t-butter { --tone: var(--butter-2); }
.card.t-sky { --tone: var(--sky-2); } .card.t-sage { --tone: var(--sage-2); } .card.t-lilac { --tone: var(--lilac-2); }
@media (hover: hover) { .card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); } }

/* Любительское фото на сером фоне «вплавляется» в пастельную подложку:
   multiply окрашивает серый в тон, яркость вытягивает белизну фарфора, виньетка растворяет края. */
.card .mat { border-radius: 22px; overflow: hidden; background: radial-gradient(120% 100% at 50% 30%, #fff 0%, var(--tone) 72%); isolation: isolate; }
.card .mat .frame { aspect-ratio: 1 / 1.12; background: transparent; }
.card .mat img {
  object-fit: cover; mix-blend-mode: multiply;
  filter: brightness(1.14) contrast(1.05) saturate(1.04);
  transform: scale(1.06);
  transition: transform .9s var(--ease), opacity .4s ease;
}
@media (hover: hover) { .card:hover .mat img { transform: scale(1.11); } }
.card .mat::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(110% 90% at 50% 42%, transparent 58%, var(--tone) 100%);
  opacity: .7;
}
.card .frame::before { font-family: var(--font-accent); font-style: italic; content: "Сф"; }
.imgfx .card .frame:not(.is-loaded) { background-color: transparent; }

/* стикер «1 экз.» — круглая наклейка, на наведении выпрямляется */
.sticker {
  position: absolute; z-index: 3; top: 12px; left: 12px;
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-content: center; text-align: center;
  background: var(--coral); color: #fff;
  font-size: 11.5px; font-weight: 600; line-height: 1.05;
  transform: rotate(-8deg);
  box-shadow: 0 6px 16px -6px rgba(232,119,90,.7);
  transition: transform .5s var(--ease);
}
.sticker b { display: block; font-size: 17px; font-weight: 700; }
.sticker.is-sold { width: auto; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--ink); box-shadow: none; transform: none; font-size: 12px; }
@media (hover: hover) { .card:hover .sticker:not(.is-sold) { transform: rotate(0) translateY(-2px); } }
.sold-stamp { display: none; }

.card .body { padding: 14px 8px 0; }
.card .meta { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted); }
.card .meta > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card .lot { font-size: 12px; color: var(--muted); }
.card .card-link {
  margin-top: 4px; font-size: 17px; font-weight: 500; line-height: 1.3; letter-spacing: -0.01em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em;
}
.card:hover .card-link { text-decoration: none; }
.card .price-row { margin-top: auto; padding-top: 12px; align-items: center; flex-wrap: nowrap; }
.card .price { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.card .price .cur { font-weight: 600; }
.card .badge.is-sold { color: var(--muted); }

.card .card-tools { margin: 0 0 0 auto; padding: 0; border: 0; flex-wrap: nowrap; }
.card .card-tools .card-add {
  min-height: 40px; padding: 0 15px; border-radius: 999px;
  background: var(--cobalt-soft); color: var(--cobalt);
  font: 600 13.5px/1 var(--font-body); white-space: nowrap;
  transition: background .25s, color .25s;
}
.card .card-tools .card-add::before { content: "+"; margin-right: 5px; font-size: 15px; }
.card .card-tools .card-add:hover { text-decoration: none; }
@media (hover: hover) { .card:hover .card-tools .card-add:not(.is-added) { background: var(--cobalt); color: #fff; } }
.card .card-tools .card-add.is-added { background: var(--sage); color: var(--ink); }
.card .card-tools .card-add.is-added::before { content: "✓"; }
.card .card-tools .card-add.card-similar::before { content: none; }
.card .card-tools .card-add.card-similar::after { content: " →"; }

@media (max-width: 650px) {
  .card { padding: 6px 6px 12px; border-radius: 22px; }
  .card .mat { border-radius: 17px; }
  .sticker { width: 42px; height: 42px; font-size: 10px; top: 8px; left: 8px; }
  .sticker b { font-size: 14px; }
  .card .body { padding: 10px 4px 0; }
  .card .meta .lot { display: none; }
  .card .card-link { font-size: 15px; }
  .card .price-row { flex-wrap: wrap; gap: 8px; }
  .card .price { font-size: 17px; }
  .card .card-tools { margin: 0; width: 100%; }
  .card .card-tools .card-add-form, .card .card-tools .card-add { width: 100%; justify-content: center; }
}

/* ---------- подвал: светлый, скруглённый сверху ---------- */
.footer {
  margin-top: 104px; padding: 56px 0 28px;
  background: #EFE8E1; color: var(--body);
  border-radius: 48px 48px 0 0;
}
.footer h3 { color: var(--ink); font-weight: 600; font-size: 14px; letter-spacing: 0; }
.footer a:hover { color: var(--ink); }
.footer-seal {
  display: block; width: 44px; height: 44px; border-radius: 50%;
  background: conic-gradient(from 200deg, var(--blush-2), var(--sky-2), var(--sage-2), var(--butter-2), var(--blush-2));
  box-shadow: inset 0 0 0 7px rgba(255,255,255,.65);
}
.footer-brand p { color: var(--ink); font-size: 18px; font-weight: 600; }
.footer-brand p em { font-family: var(--font-accent); font-style: italic; font-weight: 400; }
.footer-brand small { color: var(--body); }
.footer-hours { color: var(--body); }
.footer .legal { border-top-color: var(--line); color: var(--muted); }

/* ---------- нижняя панель на телефоне ---------- */
@media (max-width: 700px) {
  .tabbar { background: rgba(255,255,255,.82); border-top: 0; box-shadow: 0 -8px 24px -16px rgba(38,33,30,.25); }
  .tabbar .cart-count { background: var(--coral); }
}

/* «Вы смотрели» */
.seen-img { border-radius: 18px; }
.sf-toast { border-radius: 18px; }


/* ---------- логотип SOV-FAR (02.10.2026) ---------- */
:root { --brand: #6B1424; }
.brand {
  display: block; font-family: "Playfair Display", Georgia, serif; font-weight: 700;
  font-size: 27px; line-height: 1; letter-spacing: 0.01em; color: var(--brand);
}
.logo .seal { display: none; }
.logo .word { line-height: 1; }
.logo .word small {
  display: block; margin-top: 5px; font-family: "Playfair Display", Georgia, serif; font-weight: 700;
  font-size: 9.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brand); white-space: nowrap;
}
.brand-lg { font-size: 40px; }
.footer-brand p { margin-top: 12px; font-size: 15px; }
@media (max-width: 700px) {
  .brand { font-size: 23px; }
  .logo .word small { display: block; font-size: 7.5px; letter-spacing: 0.13em; white-space: nowrap; }
}


/* ---------- логотип-коллаж в шапке (как на боевом сайте) ---------- */
.header .wrap { padding-top: 4px; padding-bottom: 4px; }
.logo-img { display: block; width: 122px; height: auto; mix-blend-mode: multiply; }
.logo-img-footer { width: 240px; }

@media (max-width: 700px) {
  .logo-img { width: 104px; }
  .header .wrap { padding-top: 8px; padding-bottom: 10px; }
}

/* Разделы каталога на странице завода */
.mk-chip { display:inline-flex; align-items:center; padding:7px 14px; border-radius:999px; background:#fff; border:1px solid rgba(46,74,158,.18); color:#2E4A9E; font-size:14px; text-decoration:none; }
.mk-chip:hover { background:#2E4A9E; color:#fff; }

/* Уведомление о cookie */
.cookie-note { position:fixed; z-index:60; left:16px; right:16px; bottom:16px; max-width:560px; margin:0 auto; display:flex; gap:14px; align-items:center; padding:12px 14px 12px 18px; border-radius:18px; background:rgba(255,255,255,.94); backdrop-filter:blur(12px); box-shadow:0 10px 30px rgba(42,36,32,.16); font-size:14px; line-height:1.4; }
.cookie-note[hidden] { display:none; }
.cookie-note p { margin:0; flex:1; }
.cookie-note .btn { flex:none; padding:9px 16px; }
@media (max-width: 760px) { .cookie-note { bottom:calc(76px + env(safe-area-inset-bottom, 0px)); } }
