/* ------------------------------------------------------------------ шрифты */
@font-face { font-family: "Cormorant"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(../fonts/cormorant-garamond-cyrillic-500-normal.woff2) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Cormorant"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(../fonts/cormorant-garamond-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+2000-206F,U+20AC,U+2122,U+2212; }
@font-face { font-family: "Cormorant"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(../fonts/cormorant-garamond-cyrillic-600-normal.woff2) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Cormorant"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(../fonts/cormorant-garamond-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+2000-206F,U+20AC,U+2122,U+2212; }
@font-face { font-family: "Cormorant"; font-style: italic; font-weight: 500; font-display: swap;
  src: url(../fonts/cormorant-garamond-cyrillic-500-italic.woff2) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Cormorant"; font-style: italic; font-weight: 500; font-display: swap;
  src: url(../fonts/cormorant-garamond-latin-500-italic.woff2) format("woff2"); unicode-range: U+0000-00FF,U+2000-206F,U+20AC,U+2122,U+2212; }
@font-face { font-family: "Cormorant"; font-style: italic; font-weight: 600; font-display: swap;
  src: url(../fonts/cormorant-garamond-cyrillic-600-italic.woff2) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Cormorant"; font-style: italic; font-weight: 600; font-display: swap;
  src: url(../fonts/cormorant-garamond-latin-600-italic.woff2) format("woff2"); unicode-range: U+0000-00FF,U+2000-206F,U+20AC,U+2122,U+2212; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/manrope-cyrillic-400-normal.woff2) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/manrope-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+2000-206F,U+20AC,U+20BD,U+2122,U+2212; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(../fonts/manrope-cyrillic-500-normal.woff2) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(../fonts/manrope-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+2000-206F,U+20AC,U+20BD,U+2122,U+2212; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(../fonts/manrope-cyrillic-600-normal.woff2) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(../fonts/manrope-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+2000-206F,U+20AC,U+20BD,U+2122,U+2212; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(../fonts/manrope-cyrillic-700-normal.woff2) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(../fonts/manrope-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+2000-206F,U+20AC,U+20BD,U+2122,U+2212; }

/* ------------------------------------------------------------------ токены */
:root {
  --paper: #fbf6f1;
  --paper-2: #f6ede6;
  --card: #fffdfb;
  --blush: #f4dcd8;
  --blush-2: #ecc6c1;
  --rose: #c27b84;
  --rose-deep: #a45d68;
  --plum: #3b2a30;
  --ink: #4b3a40;
  --muted: #8d7b80;
  --line: #ead9d2;
  --sage: #9fb19a;
  --sage-soft: #e5ece1;
  --gold: #c9a27a;
  --danger: #b4505c;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(59, 42, 48, .04), 0 12px 32px -14px rgba(122, 76, 86, .22);
  --serif: "Cormorant", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1180px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* без синей подсветки при тапе — нажатия видны по собственным состояниям кнопок */
* { -webkit-tap-highlight-color: transparent; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-color: var(--blush-2); text-underline-offset: 3px; }
a:hover { color: var(--rose-deep); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--plum); letter-spacing: .005em; line-height: 1.12; margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
main { flex: 1; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ------------------------------------------------------------------ шапка */
.site-head {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px dashed var(--blush-2);
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 12px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--plum); min-width: 0; }
.logo-mark { width: 34px; height: 34px; flex: none; color: var(--rose); }
.logo-text { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 25px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.head-actions { display: flex; align-items: center; gap: 4px; }
.icon-link {
  position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px;
  border-radius: 50%; color: var(--plum); text-decoration: none; transition: background .2s;
}
.icon-link:hover { background: var(--blush); color: var(--plum); }
.icon-link svg { width: 23px; height: 23px; }
.badge-count {
  position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--rose); color: #fff; font-size: 11px; font-weight: 700;
  display: grid; place-items: center; line-height: 1; box-shadow: 0 0 0 2px var(--paper);
  transform: scale(1); transition: transform .25s cubic-bezier(.3,1.6,.5,1);
}
.badge-count.pop { transform: scale(1.3); }

/* ------------------------------------------------------------------ hero */
.hero { padding: 54px 0 34px; text-align: center; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto; height: 420px; z-index: -1;
  background: radial-gradient(closest-side, rgba(244, 220, 216, .9), transparent 70%) 20% 40% / 55% 100% no-repeat,
              radial-gradient(closest-side, rgba(229, 236, 225, .9), transparent 70%) 85% 30% / 45% 90% no-repeat;
}
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--rose-deep); font-size: 13px; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; }
.hero-kicker::before, .hero-kicker::after { content: ""; width: 26px; border-top: 1.5px dashed currentColor; }
.hero h1 { font-size: clamp(42px, 7vw, 76px); font-style: italic; margin: 14px 0 12px; }
.hero p { max-width: 560px; margin: 0 auto; color: var(--muted); font-size: 17px; }
.stitch-divider { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--blush-2); margin: 26px auto 0; }
.stitch-divider::before, .stitch-divider::after { content: ""; flex: 0 1 120px; border-top: 2px dashed currentColor; }
.stitch-divider svg { width: 26px; height: 26px; color: var(--rose); }

/* ------------------------------------------------------------------ сетка товаров */
.section { padding: 18px 0 64px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.section-head h2 { font-size: 34px; font-style: italic; }
.section-head .count { color: var(--muted); font-size: 14px; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 22px; }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; } }

.card { position: relative; display: flex; flex-direction: column; animation: rise .5s both; }
.card:nth-child(4n+2) { animation-delay: .05s } .card:nth-child(4n+3) { animation-delay: .1s } .card:nth-child(4n+4) { animation-delay: .15s }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.card-media {
  position: relative; display: block; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden;
  background: var(--paper-2); isolation: isolate;
}
.card-media::after { content: ""; position: absolute; inset: 7px; border: 1.5px dashed rgba(255,255,255,.75); border-radius: 16px; opacity: 0; transition: opacity .3s; pointer-events: none; }
.card:hover .card-media::after { opacity: 1; }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; transition: opacity .45s, transform .9s cubic-bezier(.2,.7,.2,1); }
.card-media img.alt { opacity: 0; }
@media (hover: hover) {
  .card:hover .card-media img.alt { opacity: 1; }
  .card:hover .card-media img { transform: scale(1.035); }
}
.card-media[data-images] { touch-action: pan-y; }
/* фото листаются и лайкаются как в Instagram: без синей подсветки тапа, выделения и «перетаскивания» картинок */
.card, .card a, .card-media, .card-media img, [data-gallery], [data-gallery] figure, [data-gallery] img {
  -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; -webkit-user-drag: none; }
[data-gallery] figure { touch-action: manipulation; }
.card-media:focus, .card-media:focus-visible, .card a:focus:not(:focus-visible) { outline: none; }
.card-media.scrub img.alt { display: none; }
.card-media.zoomed { cursor: zoom-out; }
.card-media.zoomed::after { opacity: 0 !important; }
/* полоска кадров: тонкие отрезки, следующий плавно наполняется «ветерком» по мере ведения */
.card-dots { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 2; display: flex; gap: 5px; opacity: 0; transition: opacity .3s; pointer-events: none; }
.card-dots i { position: relative; flex: 1; height: 3px; border-radius: 3px; overflow: hidden; background: rgba(255,255,255,.38);
  box-shadow: 0 0 0 .5px rgba(59,42,48,.10), 0 1px 4px rgba(59,42,48,.18); transition: height .25s, background .3s; }
.card-dots i::after { content: ""; position: absolute; inset: 0; border-radius: inherit; transform-origin: left center;
  transform: scaleX(var(--p, 0)); transition: transform .18s ease-out;
  background: linear-gradient(100deg, rgba(255,255,255,.55) 0%, #fff 35%, #ffe9ee 55%, #fff 75%, rgba(255,255,255,.6) 100%);
  background-size: 240% 100%; animation: breeze 2.4s linear infinite; }
.card-dots i.back::after { transform-origin: right center; }
.card-dots i.on { background: rgba(255,255,255,.95); box-shadow: 0 0 8px rgba(255,255,255,.85), 0 1px 4px rgba(59,42,48,.2); }
.card-dots i.on::after { --p: 1; opacity: .9; }
.card-media.hovered .card-dots i, .card-media.touched .card-dots i { height: 4px; }
.card-dots i.puff { animation: puff .5s cubic-bezier(.2,.8,.3,1.4); }
@keyframes breeze { from { background-position: 120% 0; } to { background-position: -120% 0; } }
@keyframes puff { 0% { transform: scaleY(1); } 35% { transform: scaleY(2.2); filter: drop-shadow(0 0 4px #fff); } 100% { transform: scaleY(1); } }
.card-media img.swap { animation: swapfade .35s ease-out; }
@keyframes swapfade { from { opacity: .55; filter: blur(1.5px); } to { opacity: 1; filter: none; } }
@media (prefers-reduced-motion: reduce) { .card-dots i::after, .card-dots i.puff, .card-media img.swap { animation: none; } }
.card-media.hovered .card-dots, .card-media.touched .card-dots { opacity: 1; }
.card-media.zoomed .card-dots { opacity: 0; }
.card-media .placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: var(--blush-2); }
.card-media .placeholder svg { width: 40%; height: 40%; }
.card.soldout .card-media img { filter: saturate(.55) brightness(1.04); }
.card-body { padding: 12px 4px 0; display: flex; flex-direction: column; gap: 2px; }
.card-title { font-family: var(--serif); font-size: 21px; font-weight: 600; color: var(--plum); text-decoration: none; line-height: 1.2; }
.card-title::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-price { font-weight: 600; font-size: 15px; color: var(--ink); }
.card-price s, .price s { color: var(--muted); font-weight: 400; margin-left: 6px; font-size: .9em; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: .02em; background: var(--card); color: var(--plum);
  box-shadow: 0 2px 10px -4px rgba(59,42,48,.25);
}
.pill.rose { background: var(--rose); color: #fff; }
.pill.sage { background: var(--sage-soft); color: #546a4f; }
.pill.muted { background: rgba(255,253,251,.92); color: var(--muted); }
.card .pill { position: absolute; left: 12px; top: 12px; z-index: 2; }
.fav-btn {
  position: absolute; right: 10px; top: 10px; z-index: 3; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: rgba(255, 253, 251, .9); display: grid; place-items: center; color: var(--rose);
  box-shadow: 0 4px 14px -6px rgba(59,42,48,.35); transition: transform .2s;
}
.fav-btn:hover { transform: scale(1.08); }
.fav-btn svg { width: 21px; height: 21px; }
.fav-btn svg path { fill: transparent; transition: fill .2s; }
.fav-btn.on svg path { fill: currentColor; }
.fav-btn.on { animation: heart .45s; }
@keyframes heart { 30% { transform: scale(1.25); } 60% { transform: scale(.92); } }

.empty {
  text-align: center; padding: 70px 20px; border: 2px dashed var(--blush-2); border-radius: 28px;
  background: var(--card); max-width: 560px; margin: 10px auto;
}
.empty svg { width: 58px; height: 58px; color: var(--rose); margin: 0 auto 14px; }
.empty h2 { font-size: 30px; font-style: italic; margin-bottom: 6px; }
.empty p { color: var(--muted); margin: 0 0 22px; }

/* ------------------------------------------------------------------ кнопки и поля */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px;
  padding: 0 28px; border-radius: 999px; border: 1.5px solid var(--plum); background: var(--plum); color: #fff;
  font-weight: 600; font-size: 15px; letter-spacing: .02em; text-decoration: none; transition: transform .15s, background .2s, box-shadow .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: #4e3740; color: #fff; box-shadow: 0 10px 24px -12px rgba(59,42,48,.6); }
.btn:active { transform: scale(.98); }
.btn svg { width: 19px; height: 19px; }
.btn.rose { background: var(--rose); border-color: var(--rose); }
.btn.rose:hover { background: var(--rose-deep); border-color: var(--rose-deep); }
.btn.ghost { background: transparent; color: var(--plum); }
.btn.ghost:hover { background: var(--blush); color: var(--plum); box-shadow: none; }
.btn.small { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn.block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: .45; pointer-events: none; }
.btn.loading { pointer-events: none; opacity: .75; }
.btn.loading::after { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.link-btn { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; text-decoration-color: var(--blush-2); text-underline-offset: 3px; font-size: 14px; }
.link-btn:hover { color: var(--danger); }

.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label, .label { font-size: 13px; font-weight: 600; color: var(--plum); letter-spacing: .02em; }
.field .hint { font-size: 13px; color: var(--muted); }
.input, .field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: var(--radius-sm); border: 1.5px solid var(--line);
  background: var(--card); transition: border-color .2s, box-shadow .2s; font-size: 16px;
}
.field textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 4px rgba(194,123,132,.15); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%233b2a30' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 560px) { .row-2 { grid-template-columns: 1fr; } }
.req { color: var(--rose); }

.alert { padding: 14px 18px; border-radius: var(--radius-sm); background: #fbe9e9; color: var(--danger); border: 1px solid #f1cfd2; font-size: 15px; margin-bottom: 18px; }
.alert.ok { background: var(--sage-soft); color: #4c6347; border-color: #d4dfcf; }

/* ------------------------------------------------------------------ страница товара */
.crumbs { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 14px; padding: 22px 0 18px; }
.crumbs a { text-decoration: none; }
.product { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 54px; align-items: start; padding-bottom: 60px; }
@media (max-width: 880px) { .product { grid-template-columns: 1fr; gap: 26px; } }

.gallery { position: relative; display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; }
@media (max-width: 880px) { .gallery { grid-template-columns: 1fr; margin: 0 -20px; } }
.gallery-track {
  grid-column: 2; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  border-radius: var(--radius); aspect-ratio: 3 / 4; background: var(--paper-2); overscroll-behavior-x: contain;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track figure { margin: 0; flex: 0 0 100%; scroll-snap-align: center; position: relative; cursor: zoom-in; }
.gallery-track img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 880px) { .gallery-track { grid-column: 1; border-radius: 0; } }
.gallery-thumbs { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: 10px; max-height: 100%; overflow-y: auto; scrollbar-width: none; }
.gallery-thumbs button { padding: 0; border: 1.5px solid transparent; border-radius: 12px; overflow: hidden; aspect-ratio: 3/4; background: var(--paper-2); flex: none; opacity: .65; transition: opacity .2s, border-color .2s; }
.gallery-thumbs button.on { opacity: 1; border-color: var(--rose); border-style: dashed; padding: 3px; }
.gallery-thumbs button.on img { border-radius: 8px; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 880px) { .gallery-thumbs { display: none; } }
.gallery-nav { position: absolute; top: 50%; translate: 0 -50%; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,253,251,.9); display: grid; place-items: center; color: var(--plum); box-shadow: var(--shadow); opacity: 0; transition: opacity .2s; }
.gallery-nav svg { width: 20px; height: 20px; }
.gallery-nav.prev { left: calc(76px + 14px + 14px); } .gallery-nav.next { right: 14px; }
.gallery:hover .gallery-nav:not([disabled]) { opacity: 1; }
.gallery-nav[disabled] { opacity: 0 !important; pointer-events: none; }
@media (max-width: 880px), (hover: none) { .gallery-nav { display: none; } }
.gallery-dots { display: none; justify-content: center; gap: 7px; padding-top: 12px; }
.gallery-dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--blush-2); transition: all .25s; }
.gallery-dots span.on { width: 22px; border-radius: 4px; background: var(--rose); }
@media (max-width: 880px) { .gallery-dots { display: flex; } }
.gallery-counter { position: absolute; right: 14px; bottom: 14px; padding: 4px 10px; border-radius: 999px; background: rgba(59,42,48,.55); color: #fff; font-size: 12px; font-weight: 600; pointer-events: none; display: none; }
@media (max-width: 880px) { .gallery-counter { display: block; right: 34px; } }

.p-info { position: sticky; top: 92px; }
@media (max-width: 880px) { .p-info { position: static; } }
.p-info h1 { font-size: clamp(36px, 4.4vw, 50px); font-style: italic; margin-bottom: 10px; }
.p-info .price { font-size: 24px; font-weight: 600; color: var(--plum); margin-bottom: 8px; }
.limited { display: flex; align-items: center; gap: 8px; color: var(--rose-deep); font-size: 14px; font-weight: 500; margin-bottom: 26px; }
.limited svg { width: 18px; height: 18px; }
.sizes-label { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.sizes { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.size {
  min-width: 56px; height: 48px; padding: 0 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card);
  font-weight: 600; transition: all .15s; position: relative;
}
.size:hover { border-color: var(--rose); }
.size.on { border-color: var(--plum); background: var(--plum); color: #fff; }
.size[disabled] { color: #c7b9bc; background: transparent; border-style: dashed; cursor: not-allowed; text-decoration: line-through; }
.size-custom { display: inline-flex; align-items: center; gap: 8px; flex-basis: 100%; justify-content: center; border-style: dashed; border-color: var(--rose); color: var(--rose-deep); }
.size-custom svg { width: 18px; height: 18px; flex: none; }
.size-custom b { font-weight: 600; margin-left: auto; }
.size-custom.on { border-style: solid; }
.size-custom.on b, .size-custom.on { color: #fff; }
.stock-note { min-height: 22px; font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.stock-note.warn { color: var(--rose-deep); }
.buy-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 6px; }
@media (max-width: 420px) { .buy-row { grid-template-columns: 1fr; } }
.fav-square { width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--card); color: var(--rose); display: grid; place-items: center; transition: border-color .2s; }
.fav-square:hover { border-color: var(--rose); }
.fav-square svg { width: 22px; height: 22px; }
.fav-square svg path { fill: transparent; transition: fill .2s; }
.fav-square.on svg path { fill: currentColor; }
.soldout-box { padding: 18px 20px; border-radius: var(--radius-sm); border: 1.5px dashed var(--blush-2); color: var(--muted); margin-bottom: 18px; background: var(--card); }
.p-desc { margin-top: 30px; color: var(--ink); }
.p-desc p { margin: 0 0 12px; }
details.acc { border-top: 1px dashed var(--blush-2); }
details.acc:last-of-type { border-bottom: 1px dashed var(--blush-2); }
details.acc summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 16px 2px; cursor: pointer; font-weight: 600; color: var(--plum); }
details.acc summary::-webkit-details-marker { display: none; }
details.acc summary::after { content: "+"; font-size: 22px; font-weight: 400; color: var(--rose); transition: transform .25s; }
details.acc[open] summary::after { transform: rotate(45deg); }
details.acc .acc-body { padding: 0 2px 16px; color: var(--ink); font-size: 15px; }
details.acc .acc-body p { margin: 0 0 10px; }
.perks { display: grid; gap: 10px; margin-top: 22px; }
.perk { display: flex; gap: 12px; align-items: center; color: var(--muted); font-size: 14px; }
.perk svg { width: 20px; height: 20px; color: var(--rose); flex: none; }

/* лайтбокс */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(251, 246, 241, .98); display: flex; flex-direction: column; animation: fade .25s; }
@keyframes fade { from { opacity: 0; } }
.lightbox-track { flex: 1; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.lightbox-track::-webkit-scrollbar { display: none; }
.lightbox-track figure { margin: 0; flex: 0 0 100%; scroll-snap-align: center; display: grid; place-items: center; padding: 60px 16px 70px; }
.lightbox-track img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 12px; }
.lightbox-close { position: absolute; top: 14px; right: 14px; z-index: 2; }
.lightbox-count { position: absolute; bottom: 24px; left: 50%; translate: -50% 0; font-size: 14px; color: var(--muted); font-weight: 600; }
.lightbox .gallery-nav { opacity: 1; display: grid; }
.lightbox .gallery-nav.prev { left: 16px; }
@media (hover: none) { .lightbox .gallery-nav { display: none; } }

/* ------------------------------------------------------------------ корзина / оформление */
.page-title { padding: 34px 0 22px; }
.page-title h1 { font-size: clamp(38px, 5vw, 54px); font-style: italic; }
.page-title p { color: var(--muted); margin: 6px 0 0; }
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start; padding-bottom: 70px; }
@media (max-width: 900px) { .cart-layout { grid-template-columns: 1fr; gap: 24px; } }
.lines { display: flex; flex-direction: column; }
.line { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 18px; padding: 18px 0; border-bottom: 1px dashed var(--blush-2); align-items: center; }
.line:first-child { padding-top: 0; }
.line-img { width: 96px; aspect-ratio: 3/4; border-radius: 14px; overflow: hidden; background: var(--paper-2); display: block; }
.line-img img { width: 100%; height: 100%; object-fit: cover; }
.line-title { font-family: var(--serif); font-size: 21px; font-weight: 600; color: var(--plum); text-decoration: none; line-height: 1.2; }
.line-meta { color: var(--muted); font-size: 14px; margin: 3px 0 10px; }
.line-warn { color: var(--danger); font-size: 13px; margin-top: 6px; }
.line-price { font-weight: 600; text-align: right; white-space: nowrap; }
.line.unavailable .line-img, .line.unavailable .line-title { opacity: .5; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: var(--card); }
.qty button { width: 36px; height: 36px; border: 0; background: none; font-size: 18px; color: var(--plum); border-radius: 50%; }
.qty button:hover { background: var(--blush); }
.qty button[disabled] { opacity: .3; pointer-events: none; }
.qty span { min-width: 26px; text-align: center; font-weight: 600; font-size: 15px; }
.line-actions { display: flex; align-items: center; gap: 16px; }
@media (max-width: 520px) {
  .line { grid-template-columns: 80px minmax(0,1fr); }
  .line-img { width: 80px; }
  .line-price { grid-column: 2; text-align: left; }
}
.summary { background: var(--card); border-radius: 26px; padding: 26px; box-shadow: var(--shadow); position: sticky; top: 92px; border: 1px solid var(--line); }
.summary::before { content: ""; position: absolute; inset: 8px; border: 1.5px dashed var(--blush); border-radius: 20px; pointer-events: none; }
.summary > * { position: relative; }
.summary h2 { font-size: 28px; font-style: italic; margin-bottom: 16px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; color: var(--ink); font-size: 15px; }
.sum-row.total { border-top: 1px dashed var(--blush-2); margin-top: 10px; padding-top: 16px; font-size: 19px; font-weight: 700; color: var(--plum); }
.sum-row .muted { color: var(--muted); }
.summary .btn { margin-top: 18px; }
.summary .fine { font-size: 13px; color: var(--muted); text-align: center; margin: 14px 0 0; }
.mini-lines { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.mini-line { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; font-size: 14px; }
.mini-line img, .mini-line .ph { width: 52px; aspect-ratio: 3/4; object-fit: cover; border-radius: 10px; background: var(--paper-2); }
.mini-line b { display: block; font-family: var(--serif); font-size: 17px; color: var(--plum); line-height: 1.15; }
.mini-line small { color: var(--muted); }
.form-card { background: var(--card); border-radius: 26px; padding: 30px; border: 1px solid var(--line); }
@media (max-width: 520px) { .form-card { padding: 22px 18px; border-radius: 22px; } .summary { padding: 22px 18px; } }
.form-card h2 { font-size: 26px; font-style: italic; margin: 0 0 18px; }
.form-card h2:not(:first-child) { margin-top: 12px; }
.choice { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.choice label { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; transition: border-color .2s, background .2s; }
.choice label:has(input:checked) { border-color: var(--rose); background: #fdf3f1; }
.choice input { accent-color: var(--rose); width: 18px; height: 18px; margin: 0; flex: none; }
.choice .c-name { flex: 1; font-weight: 500; }
.choice .c-price { color: var(--muted); font-size: 14px; white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ------------------------------------------------------------------ заказ / оплата */
.order-wrap { max-width: 760px; margin: 0 auto; padding: 30px 0 70px; }
.order-hero { text-align: center; margin-bottom: 28px; }
.order-hero .bow { width: 64px; height: 64px; color: var(--rose); margin: 0 auto 8px; }
.order-hero h1 { font-size: clamp(36px, 5vw, 50px); font-style: italic; }
.order-hero p { color: var(--muted); margin: 8px 0 0; }
.status-line { display: flex; justify-content: center; margin-top: 14px; }
.pay-card { background: var(--card); border-radius: 28px; padding: 30px; border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; grid-template-columns: 250px 1fr; gap: 30px; align-items: center; margin-bottom: 24px; position: relative; }
.pay-card::before { content: ""; position: absolute; inset: 9px; border: 1.5px dashed var(--blush); border-radius: 21px; pointer-events: none; }
.pay-card > * { position: relative; }
@media (max-width: 640px) { .pay-card { grid-template-columns: 1fr; padding: 24px 20px; text-align: center; } }
.qr-box { background: #fff; border-radius: 20px; padding: 14px; box-shadow: 0 6px 24px -12px rgba(59,42,48,.35); width: 100%; max-width: 250px; margin: 0 auto; aspect-ratio: 1; display: grid; place-items: center; }
.qr-box svg, .qr-box img { width: 100%; height: 100%; }
.pay-amount { font-family: var(--serif); font-size: 44px; font-weight: 600; color: var(--plum); line-height: 1; margin: 6px 0 12px; }
.pay-card h2 { font-size: 28px; font-style: italic; }
.pay-steps { margin: 0 0 18px; padding: 0; list-style: none; counter-reset: s; text-align: left; }
.pay-steps li { counter-increment: s; position: relative; padding-left: 34px; margin-bottom: 9px; font-size: 15px; }
.pay-steps li::before { content: counter(s); position: absolute; left: 0; top: 1px; width: 23px; height: 23px; border-radius: 50%; background: var(--blush); color: var(--rose-deep); font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.pay-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 640px) { .pay-actions { justify-content: center; } }
.copy-list { display: grid; gap: 8px; margin: 16px 0 0; text-align: left; }
.copy-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0 10px; padding: 10px 14px; border-radius: 12px; background: var(--paper); font-size: 14px; }
.copy-item span { color: var(--muted); font-size: 12px; grid-column: 1; }
.copy-item b { grid-column: 1; }
.copy-item button { grid-column: 2; grid-row: 1 / span 2; }
.copy-item b { font-weight: 600; color: var(--plum); word-break: break-all; }
.copy-item button { border: 0; background: none; color: var(--rose-deep); font-weight: 600; font-size: 13px; padding: 4px 6px; border-radius: 8px; flex: none; }
.copy-item button:hover { background: var(--blush); }
.notice-card { background: var(--card); border: 1.5px dashed var(--blush-2); border-radius: 24px; padding: 26px; text-align: center; margin-bottom: 24px; }
.notice-card h2 { font-size: 28px; font-style: italic; margin-bottom: 6px; }
.notice-card p { color: var(--muted); margin: 0; }
.order-details { background: var(--card); border-radius: 24px; padding: 26px; border: 1px solid var(--line); }
.order-details h2 { font-size: 24px; font-style: italic; margin-bottom: 14px; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 6px 14px; font-size: 15px; margin-top: 16px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; }
@media (max-width: 480px) { .kv { grid-template-columns: 1fr; } .kv dd { margin-bottom: 8px; } }

/* ------------------------------------------------------------------ о мастерской / подвал */
.about { padding: 10px 0 70px; }
.about-card { display: grid; grid-template-columns: 120px 1fr; gap: 30px; align-items: center; padding: 38px; border-radius: 32px; background: linear-gradient(135deg, #f8e6e2, #f6eee6 55%, #edf1e8); position: relative; overflow: hidden; }
.about-card::before { content: ""; position: absolute; inset: 10px; border: 2px dashed rgba(255,255,255,.85); border-radius: 24px; pointer-events: none; }
.about-card svg { width: 110px; height: 110px; color: var(--rose); }
.about-card h2 { font-size: 34px; font-style: italic; margin-bottom: 8px; }
.about-card p { margin: 0; max-width: 680px; }
@media (max-width: 640px) { .about-card { grid-template-columns: 1fr; text-align: center; padding: 30px 22px; } .about-card svg { margin: 0 auto; width: 80px; height: 80px; } }
.site-foot { border-top: 1px dashed var(--blush-2); padding: 30px 0 40px; color: var(--muted); font-size: 14px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot-links a { text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.foot-links svg { width: 17px; height: 17px; color: var(--rose); }

/* ------------------------------------------------------------------ тост */
.toast-host { position: fixed; left: 50%; bottom: 22px; translate: -50% 0; z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: calc(100% - 32px); max-width: 420px; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 18px; border-radius: 18px; background: var(--plum); color: #fff; font-size: 14px; box-shadow: 0 14px 34px -14px rgba(59,42,48,.7); animation: toast-in .35s cubic-bezier(.2,1.3,.5,1); width: 100%; }
.toast.err { background: var(--danger); }
.toast a { color: #fff; font-weight: 700; margin-left: auto; text-decoration: underline; text-decoration-color: rgba(255,255,255,.4); white-space: nowrap; }
.toast.out { opacity: 0; translate: 0 8px; transition: all .3s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px) scale(.96); } }

.skeleton { background: linear-gradient(90deg, var(--paper-2), #fbf1ec, var(--paper-2)); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 14px; }
@keyframes shimmer { to { background-position: -200% 0; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* СДЭК: город, цена, пункты выдачи */
.cdek-box { margin: 4px 0 6px; }
.cdek-city { position: relative; }
.cdek-suggest { position: absolute; z-index: 5; left: 0; right: 0; top: 100%; margin-top: 4px; background: var(--card); border: 1.5px solid var(--line); border-radius: 14px; box-shadow: 0 14px 30px -18px rgba(59,42,48,.45); overflow: hidden; }
.cdek-suggest button { display: block; width: 100%; text-align: left; padding: 11px 14px; background: none; border: 0; border-bottom: 1px solid var(--line); font: inherit; font-size: 14px; color: var(--plum); cursor: pointer; }
.cdek-suggest button:last-child { border-bottom: 0; }
.cdek-suggest button:hover, .cdek-suggest button:focus { background: var(--blush); outline: none; }
.cdek-quote { margin: -4px 0 14px; padding: 10px 14px; border-radius: 12px; background: var(--blush); color: var(--plum); font-size: 14px; font-weight: 500; }
.cdek-quote.warn { color: var(--rose-deep); }
.cdek-points { margin-top: 8px; max-height: 320px; overflow-y: auto; display: grid; gap: 6px; padding-right: 2px; }
.cdek-point { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; transition: border-color .15s, background .15s; }
.cdek-point:hover { border-color: var(--rose); }
.cdek-point.on { border-color: var(--plum); background: var(--blush); }
.field .cdek-point input { flex: none; width: 18px; height: 18px; min-height: 0; margin: 2px 0 0; padding: 0; border: 0; box-shadow: none; accent-color: var(--plum); }
.cdek-point > span { flex: 1; min-width: 0; text-align: left; }
.cdek-point b { display: block; font-weight: 600; font-size: 14px; color: var(--plum); }
.cdek-point small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.cdek-empty { margin: 6px 2px; font-size: 13px; color: var(--muted); }
.cdek-empty.warn { color: var(--rose-deep); }

/* ------------------------------------------------------------------ сердечко: «Нравится» с сочным откликом */
.fav-btn.like { width: auto; min-width: 40px; height: 40px; padding: 0 12px 0 10px; border-radius: 999px; display: inline-flex; align-items: center; gap: 5px; }
.fav-btn.like .like-n { font-size: 13px; font-weight: 700; color: var(--rose-deep); font-variant-numeric: tabular-nums; }
.fav-btn.like .like-n:empty { display: none; }
.fav-btn.like:has(.like-n:empty) { padding: 0; width: 40px; justify-content: center; }
.like-big { position: relative; display: flex; align-items: center; gap: 14px; width: 100%; margin: 12px 0 4px; padding: 12px 18px 12px 12px;
  border: 1.5px dashed var(--rose); border-radius: 18px; background: var(--card); color: var(--plum); cursor: pointer; text-align: left;
  transition: border-color .2s, background .25s, transform .15s; -webkit-tap-highlight-color: transparent; }
.like-big:hover { background: #fdf3f2; }
.like-big:active { transform: scale(.98); }
.like-big .lb-heart { position: relative; flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--blush); color: var(--rose); }
.like-big .lb-heart svg { width: 24px; height: 24px; }
.like-big .lb-heart svg path { fill: transparent; transition: fill .2s; }
.like-big .lb-text { flex: 1; display: grid; gap: 1px; }
.like-big .lb-text b { font-size: 16px; }
.like-big .lb-text small { font-size: 13px; color: var(--muted); }
.like-big .lb-count { font-size: 22px; font-weight: 700; color: var(--rose-deep); font-variant-numeric: tabular-nums; }
.like-big.on { border-style: solid; border-color: var(--rose); background: linear-gradient(135deg, #fbe9e7, #fdf4ef); }
.like-big.on .lb-heart { background: var(--rose); color: #fff; }
.like-big.on .lb-heart svg path { fill: currentColor; }
/* «дышащее» сердце — приглашение нажать, пока не нажато */
.like-big:not(.on) .lb-heart { animation: likeinvite 3.2s ease-in-out 1.5s infinite; }
@keyframes likeinvite { 0%, 80%, 100% { transform: scale(1); } 85% { transform: scale(1.14); } 90% { transform: scale(.96); } 95% { transform: scale(1.08); } }
/* поп: сжатие и отскок */
.like-pop { animation: likepop .55s cubic-bezier(.17,.89,.32,1.49); }
@keyframes likepop { 0% { transform: scale(1); } 15% { transform: scale(.72); } 45% { transform: scale(1.32); } 70% { transform: scale(.94); } 100% { transform: scale(1); } }
.like-unpop { animation: likeunpop .3s ease; }
@keyframes likeunpop { 0% { transform: scale(1); } 50% { transform: scale(.85); } 100% { transform: scale(1); } }
/* частицы */
.like-fx { position: fixed; z-index: 9999; pointer-events: none; left: 0; top: 0; }
.like-fx i { position: absolute; left: 0; top: 0; font-style: normal; font-size: var(--s, 14px); color: var(--c, #c27b84); opacity: 0;
  animation: likefly .8s cubic-bezier(.15,.7,.3,1) forwards; animation-delay: var(--d, 0s); }
@keyframes likefly { 0% { opacity: 1; transform: translate(-50%, -50%) scale(.3) rotate(0deg); }
  70% { opacity: 1; } 100% { opacity: 0; transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(1) rotate(var(--r)); } }
.like-fx b { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); font-size: 15px; font-weight: 800; color: var(--rose-deep);
  animation: likeplus .9s ease-out forwards; }
@keyframes likeplus { 0% { opacity: 0; transform: translate(-50%, -30%) scale(.6); } 20% { opacity: 1; transform: translate(-50%, -90%) scale(1.15); }
  100% { opacity: 0; transform: translate(-50%, -190%) scale(1); } }
.like-ring { position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--rose); opacity: 0; pointer-events: none; animation: likering .6s ease-out; }
@keyframes likering { 0% { opacity: .9; transform: scale(.6); } 100% { opacity: 0; transform: scale(1.7); } }
/* счётчик «прокручивается» */
.like-tick { display: inline-block; animation: liketick .35s ease; }
@keyframes liketick { 0% { transform: translateY(60%); opacity: 0; } 100% { transform: none; opacity: 1; } }
/* большое сердце при двойном тапе по фото */
.dbl-heart { position: absolute; left: 50%; top: 50%; z-index: 5; width: 120px; height: 120px; margin: -60px 0 0 -60px; color: #fff; pointer-events: none;
  filter: drop-shadow(0 8px 24px rgba(194,123,132,.7)); animation: dblheart .9s cubic-bezier(.17,.89,.32,1.3) forwards; }
.dbl-heart svg { width: 100%; height: 100%; } .dbl-heart svg path { fill: currentColor; }
@keyframes dblheart { 0% { opacity: 0; transform: scale(.2); } 20% { opacity: 1; transform: scale(1.15); } 35% { transform: scale(.95); } 50% { transform: scale(1); }
  80% { opacity: 1; } 100% { opacity: 0; transform: scale(1.1) translateY(-20px); } }
.toast.love { background: linear-gradient(135deg, #c27b84, #a85c67); color: #fff; }
.toast.love a { color: #fff; }
@media (prefers-reduced-motion: reduce) {
  .like-big .lb-heart, .like-pop, .like-unpop, .like-fx i, .like-fx b, .like-ring, .like-tick, .dbl-heart { animation: none !important; }
  .like-fx, .dbl-heart { display: none; }
}
