/* ============================================================
   LOU BE YOU — стили
   ============================================================ */

/* --- Шрифт Yoon SunShower -----------------------------------
   Положи файл шрифта в assets/fonts/ и он подхватится сам.
   Поддерживаются .woff2 / .woff / .otf / .ttf
   Пока файла нет — используется запасной рукописный шрифт. */
@font-face {
  font-family: "Yoon SunShower";
  src: url("../fonts/YoonSunShower.woff2") format("woff2"),
       url("../fonts/YoonSunShower.woff")  format("woff"),
       url("../fonts/YoonSunShower.otf")   format("opentype"),
       url("../fonts/YoonSunShower.ttf")   format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Палитра */
  --ivory:        #F6F0E5;
  --white-soft:   #FFFCF7;
  --moss:         #77745B;
  --moss-dark:    #5D5B46;
  --ink:          #25241F;
  --ink-soft:     #716C62;
  --border:       #DDD4C5;
  --caramel:      #A77B4F;

  --caramel-soft: #EDE0D0;
  --moss-tint:    #EFEDE4;
  --shadow-sm: 0 2px 10px rgba(37,36,31,.05);
  --shadow-md: 0 8px 28px rgba(37,36,31,.08);
  --shadow-lg: 0 20px 60px rgba(37,36,31,.14);

  /* Типографика */
  --font-display: "Yoon SunShower", "Gaegu", "Comic Sans MS", cursive;
  --font-body: "Quicksand", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;

  --wrap: 1240px;
  --header-h: 74px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

:focus-visible {
  outline: 2px solid var(--caramel);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.2; font-weight: 600; }

.display {
  font-family: var(--font-display);
  font-weight: normal;
  letter-spacing: .01em;
}

/* ============================================================
   КНОПКИ
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 28px;
  border-radius: var(--r-pill);
  font-weight: 600; font-size: .95rem;
  transition: background .2s, color .2s, transform .15s, box-shadow .2s;
  text-align: center;
}
.btn-primary { background: var(--moss); color: #fff; }
.btn-primary:hover { background: var(--moss-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { border: 1.5px solid var(--border); background: var(--white-soft); color: var(--ink); }
.btn-outline:hover { border-color: var(--moss); background: var(--moss-tint); }
.btn-caramel { background: var(--caramel); color: #fff; }
.btn-caramel:hover { background: #916A43; transform: translateY(-1px); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 36px; font-size: 1rem; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 600; font-size: .92rem; color: var(--moss);
}
.link-arrow svg { transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ============================================================
   ШАПКА
   ============================================================ */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(246,240,229,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  height: var(--header-h); position: relative;
  display: flex; align-items: center; gap: 20px;
}
.header .wrap { max-width: 1420px; }
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo img { width: 34px; height: 34px; object-fit: contain; }
.logo span { font-family: var(--font-display); font-size: 1.4rem; color: var(--ink); }

.nav {
  display: flex; gap: 60px; margin-left: 0;
  position: absolute; left: 50%; transform: translateX(-50%);
}
.nav a {
  font-size: .95rem; font-weight: 600; color: var(--ink);
  padding: 6px 0; position: relative;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px;
  background: var(--caramel); transition: width .22s;
}
.nav a:hover::after, .nav a.active::after { width: 100%; }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.header-contact-actions {
  display: flex; align-items: center; gap: 4px; margin-left: 38px;
}
.header-email-copy {
  height: 40px; max-width: 232px; display: flex; align-items: center; gap: 8px;
  padding: 0 12px; border-radius: var(--r-pill); color: var(--ink-soft);
  font-size: .78rem; font-weight: 600; transition: background .2s, color .2s;
}
.header-email-copy:hover { background: var(--moss-tint); color: var(--ink); }
.header-email-copy svg { width: 19px; height: 19px; flex-shrink: 0; }

.icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; position: relative;
  transition: background .2s;
}
.icon-btn:hover { background: var(--moss-tint); }
.icon-btn svg { width: 21px; height: 21px; }

.cart-badge {
  position: absolute; top: 3px; right: 2px;
  min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--caramel); color: #fff;
  border-radius: var(--r-pill);
  font-size: .68rem; font-weight: 700;
  display: grid; place-items: center;
  transform: scale(0); transition: transform .2s cubic-bezier(.34,1.56,.64,1);
}
.cart-badge.show { transform: scale(1); }

/* Переключатель языка */
.lang { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px; border-radius: var(--r-pill);
  border: 1.5px solid var(--border); background: var(--white-soft);
  font-size: .82rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; transition: border-color .2s;
}
.lang-name { white-space: nowrap; text-transform: none; letter-spacing: 0; }
.lang-btn [data-lang-flag] { display: flex; align-items: center; gap: 8px; }
.lang-btn:hover { border-color: var(--moss); }
.flag-icon {
  display: block; width: 28px; height: 18px; border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(37,36,31,.14); overflow: hidden; position: relative;
}
.flag-vi { background: #da251d; }
.flag-vi::after { content: "★"; color: #ffdf00; font-size: 11px; position: absolute; inset: 1px 0 0; text-align: center; line-height: 17px; }
.flag-ru { background: linear-gradient(#fff 0 33.33%, #1c57a7 33.33% 66.66%, #d52b1e 66.66%); }
.flag-en {
  background:
    linear-gradient(90deg, transparent 42%, #fff 42% 58%, transparent 58%),
    linear-gradient(transparent 35%, #fff 35% 65%, transparent 65%),
    linear-gradient(90deg, transparent 46%, #c8102e 46% 54%, transparent 54%),
    linear-gradient(transparent 43%, #c8102e 43% 57%, transparent 57%),
    linear-gradient(33deg, transparent 44%, #fff 44% 50%, #c8102e 50% 53%, #fff 53% 59%, transparent 59%),
    linear-gradient(-33deg, transparent 44%, #fff 44% 50%, #c8102e 50% 53%, #fff 53% 59%, transparent 59%),
    #21468b;
}
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--white-soft); border: 1px solid var(--border);
  border-radius: var(--r-md); box-shadow: var(--shadow-md);
  padding: 6px; min-width: 170px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.lang.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu button {
  display: flex; align-items: center; justify-content: flex-start; gap: 10px; width: 100%;
  padding: 10px 12px; border-radius: var(--r-sm);
  font-size: .9rem; font-weight: 600; transition: background .15s;
}
.lang-menu button:hover { background: var(--moss-tint); }
.lang-menu button.active { background: var(--moss-tint); color: var(--caramel); }

.burger { display: none; }

/* Мобильное меню */
.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0; z-index: 99;
  background: var(--ivory);
  padding: 28px 24px;
  transform: translateX(100%); transition: transform .3s ease;
  overflow-y: auto;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav a {
  display: block; padding: 16px 0;
  font-size: 1.25rem; font-weight: 600;
  border-bottom: 1px solid var(--border);
}

/* ============================================================
   ГЛАВНАЯ — ГЕРОЙ
   ============================================================ */
.hero { position: relative; overflow: hidden; }
.hero-bg {
  position: relative; min-height: 620px;
  display: flex; align-items: center;
  background: linear-gradient(105deg, #EFE7D8 0%, #E6DECB 55%, #DDD2BB 100%);
}
.hero-photo {
  position: absolute; inset: 0; width: 100%;
  background: url("../img/hero-tshirt.webp") center 34%/cover no-repeat;
}
.hero-photo::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(239,231,216,.96) 0%, rgba(239,231,216,.9) 27%, rgba(239,231,216,.56) 43%, rgba(239,231,216,0) 63%);
}
.hero .wrap { position: relative; z-index: 2; width: 100%; padding-top: 60px; padding-bottom: 60px; }
.hero-content { max-width: 460px; }
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.9rem, 6vw, 4.6rem);
  line-height: 1.02; color: var(--ink); margin-bottom: 22px;
}
.hero-title span { display: block; }
.hero-title span:empty { display: none; }
.hero-text {
  font-size: 1.06rem; color: var(--ink-soft);
  max-width: 380px; margin-bottom: 30px;
}
.hero-proof { display: flex; align-items: center; gap: 14px; margin-top: 30px; }
.avatars { display: flex; }
.avatars i {
  width: 34px; height: 34px; border-radius: 50%;
  border: 2.5px solid var(--ivory); margin-left: -11px;
  background-image: url("../img/customer-avatars.png");
  background-size: 300% 100%; background-position: left center;
}
.avatars i:first-child { margin-left: 0; }
.avatars i:nth-child(2) { background-position: center center; }
.avatars i:nth-child(3) { background-position: right center; }
.stars { color: var(--caramel); font-size: .85rem; letter-spacing: 2px; }
.proof-text { font-size: .84rem; color: var(--ink-soft); line-height: 1.35; }

/* Карточки в герое */
.hero-cards {
  position: absolute; right: 34px; top: 50%; transform: translateY(-50%);
  z-index: 3; display: flex; flex-direction: column; gap: 24px; width: 390px;
}
.hero-card {
  background: var(--white-soft); border-radius: var(--r-lg);
  padding: 25px 26px; min-height: 180px; box-shadow: var(--shadow-md);
  display: flex; gap: 24px; align-items: center;
  transition: transform .22s, box-shadow .22s;
  color: inherit;
}
.hero-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.hero-card-img {
  width: 108px; height: 108px; flex-shrink: 0;
  border-radius: var(--r-sm); overflow: visible; background: transparent;
}
.hero-card-img img {
  width: 100%; height: 100%; object-fit: contain;
  transform: scale(1.48); transform-origin: center bottom;
  filter: drop-shadow(0 10px 12px rgba(37,36,31,.12));
}
.hero-card h3 { font-family: var(--font-body); font-size: .94rem; line-height: 1.38; font-weight: 700; margin-bottom: 13px; }
.hero-card p { font-size: .9rem; color: var(--ink-soft); margin: 0 0 11px; line-height: 1.45; }
.hero-card .link-arrow { font-size: .9rem; }

/* Рваный край */
.torn-edge {
  height: 46px; margin-top: -27px; position: relative; z-index: 4;
  background: var(--ivory);
  border-radius: 50% 48% 0 0 / 72% 82% 0 0;
}

/* ============================================================
   ПРЕИМУЩЕСТВА
   ============================================================ */
.usp { padding: 46px 0 54px; }
.usp-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.usp-item { text-align: center; padding: 0 22px; }
.usp-item + .usp-item { border-left: 1px solid var(--border); }
.usp-item svg { width: 26px; height: 26px; color: var(--moss); margin: 0 auto 12px; }
.usp-moon { display: block; color: var(--moss); font-size: 2.15rem; line-height: 26px; margin: 0 auto 12px; }
.usp-item h3 { font-size: 1rem; margin-bottom: 6px; }
.usp-item p { font-size: .86rem; color: var(--ink-soft); margin: 0; line-height: 1.5; }

/* ============================================================
   СЕКЦИИ
   ============================================================ */
.section { padding: 60px 0; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; margin-bottom: 34px;
}
.section-title { font-family: var(--font-display); font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.section-sub { color: var(--ink-soft); margin: 8px 0 0; font-size: .98rem; }

/* Коллекции на главной */
.coll-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.collection-carousel { position: relative; }
.collection-carousel .coll-row {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; padding: 6px 2px 18px;
}
.collection-carousel .coll-row::-webkit-scrollbar { display: none; }
.collection-carousel .coll-card { flex: 0 0 232px; scroll-snap-align: start; }
.carousel-btn {
  position: absolute; z-index: 4; top: 50%; transform: translateY(-58%);
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--white-soft); border: 1px solid var(--border);
  box-shadow: var(--shadow-md); font-size: 2rem; line-height: 1;
}
.carousel-btn:hover { background: #fff; transform: translateY(-58%) scale(1.05); }
.carousel-prev { left: -22px; }
.carousel-next { right: -22px; }
.coll-card {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  background: var(--caramel-soft); aspect-ratio: 1/1;
  display: flex; align-items: flex-end;
  transition: transform .25s, box-shadow .25s;
}
.coll-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.coll-card img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; padding: 9% 11% 25%;
  transition: transform .35s;
}
.coll-card[data-c="fix"] img, .coll-card[href*="fix"] img { object-fit: cover; padding: 0; object-position: center 62%; transform: scale(2.2); }
.coll-card[data-c="fix"]:hover img, .coll-card[href*="fix"]:hover img { transform: scale(2.3); }
.coll-hit {
  position: absolute; top: 12px; left: 12px; z-index: 4;
  padding: 6px 12px; border-radius: var(--r-pill);
  background: var(--caramel); color: #fff; font-size: .72rem; font-weight: 700;
  box-shadow: 0 5px 14px rgba(97,67,40,.18);
}
.coll-card:hover img { transform: scale(1.05); }
.coll-card-label {
  position: relative; z-index: 2; width: 100%;
  padding: 34px 14px 14px; text-align: center;
  background: linear-gradient(transparent, rgba(255,252,247,.94) 45%);
}
.coll-card-label strong { display: block; font-size: .95rem; font-weight: 700; }
.coll-card-label small { font-size: .76rem; color: var(--ink-soft); }

/* Баннер */
.banner {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  width: 100%; margin: 0; min-height: 490px; display: flex; align-items: center;
  background: linear-gradient(100deg, #33322B 0%, #45443A 60%, #56543F 100%);
}
.banner-photo {
  position: absolute; inset: 0; width: 100%;
  background: url("../img/lifestyle-banner.png") center 32%/cover no-repeat;
  opacity: 1;
}
.banner-photo::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(37,36,31,.86) 0%, rgba(37,36,31,.68) 30%, rgba(37,36,31,.18) 62%, transparent 82%);
}
.banner-content { position: relative; z-index: 2; padding: 52px 48px; max-width: 520px; }
.banner-content h2 {
  font-family: var(--font-display); color: var(--white-soft);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.12; margin-bottom: 24px;
}
.banner .btn { background: var(--white-soft); color: var(--ink); }
.banner .btn:hover { background: #fff; }

/* ============================================================
   КАРТОЧКА ТОВАРА
   ============================================================ */
.products {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
}
.card {
  background: var(--white-soft); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
  display: flex; flex-direction: column; text-align: left;
  transition: transform .22s, box-shadow .22s, border-color .22s;
  color: inherit;
}

.product-page { padding-top: 44px; padding-bottom: 70px; }
.product-page .modal-box {
  width: 100%; min-width: 0; max-width: none; max-height: none; overflow: visible;
  border: 1px solid var(--border); box-shadow: var(--shadow-md);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--caramel-soft); }
.card-media {
  position: relative; aspect-ratio: 1/1; background: var(--ivory);
  display: grid; place-items: center; overflow: hidden;
}
.card-media img {
  width: 100%; height: 100%; object-fit: cover; padding: 0;
  transition: transform .35s;
}
.card:hover .card-media img { transform: scale(1.06); }

.badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  padding: 5px 12px; border-radius: var(--r-pill);
  font-size: .72rem; font-weight: 700; letter-spacing: .02em;
}
.badge-many { background: var(--moss); color: #fff; }
.badge-count { background: var(--white-soft); color: var(--ink); border: 1px solid var(--border); }
.badge-low { background: var(--caramel); color: #fff; }
.badge-out { background: #C4BEB2; color: #fff; }
.badge-sale { right: 12px; left: auto; background: var(--caramel); color: #fff; }
.badge-hit { right: 12px; left: auto; background: var(--caramel); color: #fff; }

.card-body { padding: 16px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.card-cat {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .09em;
  color: var(--ink-soft); font-weight: 700; margin-bottom: 7px;
}
.card-title { font-size: .98rem; font-weight: 600; line-height: 1.35; margin-bottom: 5px; }
.card-quote {
  font-family: var(--font-display); font-size: 1rem;
  color: var(--caramel); margin-bottom: 12px;
}
.card-foot { margin-top: auto; display: flex; align-items: baseline; gap: 9px; }
.price { font-size: 1.06rem; font-weight: 700; }
.price-old { font-size: .85rem; color: var(--ink-soft); text-decoration: line-through; }

/* ============================================================
   ФИЛЬТРЫ МАГАЗИНА
   ============================================================ */
.page-head { padding: 46px 0 28px; text-align: center; }
.page-title { font-family: var(--font-display); font-size: clamp(2.2rem, 4.6vw, 3.2rem); }
.page-sub { color: var(--ink-soft); margin-top: 8px; }
.breadcrumbs {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 14px; color: var(--ink-soft); font-size: .84rem;
}
.breadcrumbs a { color: var(--moss); font-weight: 700; }
.breadcrumbs a:hover { color: var(--caramel); }
.breadcrumbs-product { justify-content: flex-start; margin: 22px 0 -20px; }
.breadcrumbs-shop { justify-content: flex-start; }
.shop-topline {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; margin-bottom: 18px;
}
.category-switch { margin-bottom: 0; }

.toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 30px;
  padding-bottom: 20px; border-bottom: 1px solid var(--border);
}
.filter-panel {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px; align-items: end; margin-bottom: 20px;
  padding: 22px; border: 1px solid var(--border); border-radius: var(--r-lg);
  background: rgba(255,252,247,.76);
}
.filter-panel label { display: grid; gap: 7px; min-width: 0; }
.filter-panel label > span {
  font-size: .73rem; text-transform: uppercase; letter-spacing: .07em;
  font-weight: 700; color: var(--ink-soft);
}
.filter-panel .select { width: 100%; min-width: 0; border-radius: var(--r-sm); }
.filter-reset { padding: 10px 16px; background: var(--moss-tint); white-space: nowrap; }
.shop-toolbar { padding-top: 2px; }
.catalog-update { padding: 10px 18px; }
.chips { display: flex; gap: 9px; flex-wrap: wrap; }
.chip {
  padding: 9px 20px; border-radius: var(--r-pill);
  border: 1.5px solid var(--border); background: var(--white-soft);
  font-size: .9rem; font-weight: 600;
  transition: all .18s;
}
.chip:hover { border-color: var(--moss); }
.chip.active { background: var(--moss); border-color: var(--moss); color: #fff; }
.toolbar-right { display: flex; align-items: center; gap: 12px; }
.count { font-size: .88rem; color: var(--ink-soft); }
.select {
  padding: 9px 16px; border-radius: var(--r-pill);
  border: 1.5px solid var(--border); background: var(--white-soft);
  font-size: .9rem; font-weight: 600; cursor: pointer;
}

.empty-state { text-align: center; padding: 70px 20px; color: var(--ink-soft); }
.empty-state img { width: 110px; margin: 0 auto 20px; opacity: .55; }

/* ============================================================
   МОДАЛКА ТОВАРА
   ============================================================ */
.modal {
  position: fixed; inset: 0; z-index: 200;
  display: none; align-items: center; justify-content: center;
  padding: 24px;
}
.modal.open { display: flex; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(37,36,31,.5); backdrop-filter: blur(3px);
  animation: fade .22s ease;
}
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }
.modal-box {
  position: relative; z-index: 2;
  background: var(--white-soft); border-radius: var(--r-lg);
  width: 100%; max-width: 980px; max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: pop .26s cubic-bezier(.34,1.4,.64,1);
}
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98) } to { opacity: 1; transform: none } }
.modal-close {
  position: absolute; top: 16px; right: 16px; z-index: 5;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--ivory); display: grid; place-items: center;
  transition: background .18s;
}
.modal-close:hover { background: var(--border); }

.pd { display: grid; grid-template-columns: 1fr 1fr; min-width: 0; }
.pd-media { min-width: 0; background: var(--ivory); padding: 34px; }
.pd-main {
  aspect-ratio: 1/1; display: grid; place-items: center;
  background: var(--white-soft); border-radius: var(--r-md); overflow: hidden;
}
.pd-main img { width: 100%; height: 100%; object-fit: cover; padding: 0; }
.pd-thumbs { display: flex; gap: 10px; margin-top: 14px; }
.pd-thumb {
  width: 66px; height: 66px; border-radius: var(--r-sm);
  border: 2px solid transparent; background: var(--white-soft);
  overflow: hidden; padding: 5px; transition: border-color .18s;
}
.pd-thumb img { width: 100%; height: 100%; object-fit: contain; }
.pd-thumb.active { border-color: var(--caramel); }

.pd-info { min-width: 0; padding: 40px 36px 36px; }
.pd-cat {
  font-size: .74rem; text-transform: uppercase; letter-spacing: .09em;
  color: var(--ink-soft); font-weight: 700; margin-bottom: 10px;
}
.pd-title { font-size: 1.5rem; line-height: 1.28; margin-bottom: 8px; overflow-wrap: anywhere; }
.pd-quote { font-family: var(--font-display); font-size: 1.3rem; color: var(--caramel); margin-bottom: 18px; }
.pd-price { display: flex; align-items: baseline; gap: 11px; margin-bottom: 8px; }
.pd-price .price { font-size: 1.6rem; }
.pd-stock { margin-bottom: 22px; }

.field { margin-bottom: 20px; }
.field-label {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .84rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--ink-soft); margin-bottom: 10px;
}
.field-label button { font-size: .78rem; color: var(--caramel); font-weight: 700; text-transform: none; letter-spacing: 0; }
.field-label button:hover { text-decoration: underline; }
.opts { display: flex; gap: 8px; flex-wrap: wrap; }
.opt {
  min-width: 46px; padding: 10px 16px; border-radius: var(--r-sm);
  border: 1.5px solid var(--border); background: var(--white-soft);
  font-size: .9rem; font-weight: 600; transition: all .18s;
}
.opt:hover { border-color: var(--moss); }
.opt.active { background: var(--moss); border-color: var(--moss); color: #fff; }

/* Цвет — кружком */
.opt-color {
  min-width: 0; width: 44px; height: 44px; padding: 0;
  border-radius: 50%; display: grid; place-items: center;
}
.opt-color i {
  width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid rgba(37,36,31,.14); display: block;
}
.opt-color.active { background: transparent; border-color: var(--caramel); border-width: 2px; }
.field-label em { font-size: .82rem; color: var(--ink); font-weight: 600; }

.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--border); border-radius: var(--r-pill); overflow: hidden; }
.qty button { width: 42px; height: 44px; font-size: 1.2rem; transition: background .15s; }
.qty button:hover { background: var(--moss-tint); }
.qty input {
  width: 52px; height: 44px; text-align: center; border: none;
  background: transparent; font-weight: 700; -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.pd-actions { display: flex; gap: 12px; margin: 24px 0; }
.pd-actions .btn { flex: 1; }

.accordion { border-top: 1px solid var(--border); }
.acc-head {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 16px 0; font-weight: 700; font-size: .93rem; text-align: left;
}
.acc-head svg { transition: transform .22s; flex-shrink: 0; }
.acc-item.open .acc-head svg { transform: rotate(180deg); }
.acc-body { display: none; padding-bottom: 18px; font-size: .92rem; color: var(--ink-soft); }
.acc-item.open .acc-body { display: block; }
.acc-item + .acc-item { border-top: 1px solid var(--border); }

.similar { min-width: 0; padding: 30px 36px 36px; border-top: 1px solid var(--border); }
.similar h3 { font-family: var(--font-display); font-size: 1.35rem; margin-bottom: 18px; }
.similar-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.similar-card { min-width: 0; text-align: left; transition: transform .2s; }
.similar-card:hover { transform: translateY(-3px); }
.similar-card .sc-media {
  aspect-ratio: 1/1; background: var(--ivory); border-radius: var(--r-md);
  overflow: hidden; margin-bottom: 9px;
}
.similar-card img { width: 100%; height: 100%; object-fit: contain; padding: 12%; }
.similar-card strong { display: block; font-size: .8rem; font-weight: 600; line-height: 1.35; margin-bottom: 3px; overflow-wrap: anywhere; }
.similar-card span { font-size: .82rem; font-weight: 700; color: var(--caramel); }

/* Таблица размеров */
.size-table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: .9rem; }
.size-table th, .size-table td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--border); }
.size-table th { font-weight: 700; background: var(--moss-tint); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.size-note { font-size: .85rem; color: var(--ink-soft); margin-top: 14px; }

/* ============================================================
   КОРЗИНА
   ============================================================ */
.cart-layout { display: grid; grid-template-columns: 1fr 370px; gap: 34px; align-items: start; }

.cart-list { background: var(--white-soft); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.cart-row { display: flex; gap: 18px; padding: 20px; align-items: center; }
.cart-row + .cart-row { border-top: 1px solid var(--border); }
.cart-thumb {
  width: 92px; height: 92px; flex-shrink: 0; border-radius: var(--r-md);
  background: var(--ivory); overflow: hidden;
}
.cart-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 10%; }
.cart-info { flex: 1; min-width: 0; }
.cart-info h3 { font-size: .98rem; font-weight: 600; margin-bottom: 5px; }
.cart-meta { font-size: .84rem; color: var(--ink-soft); }
.cart-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 11px; }
.cart-line-total { font-weight: 700; font-size: 1.02rem; }
.remove-btn { font-size: .82rem; color: var(--ink-soft); transition: color .18s; }
.remove-btn:hover { color: var(--caramel); text-decoration: underline; }

.summary {
  background: var(--white-soft); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 26px; position: sticky; top: 96px;
}
.summary h2 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 20px; }
.sum-row { display: flex; justify-content: space-between; padding: 9px 0; font-size: .95rem; }
.sum-row.total {
  border-top: 1px solid var(--border); margin-top: 12px; padding-top: 16px;
  font-size: 1.2rem; font-weight: 700;
}
.free-hint {
  background: var(--moss-tint); border-radius: var(--r-sm);
  padding: 11px 14px; font-size: .85rem; color: var(--ink-soft); margin: 14px 0;
}

/* Форма заказа */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: .85rem; font-weight: 700; color: var(--ink-soft); }
.form-field label i { color: var(--caramel); font-style: normal; }
.form-field input, .form-field textarea, .form-field select {
  padding: 13px 15px; border-radius: var(--r-sm);
  border: 1.5px solid var(--border); background: var(--white-soft);
  transition: border-color .18s;
}
.form-field input:focus, .form-field textarea:focus { border-color: var(--moss); outline: none; }
.form-field textarea { resize: vertical; min-height: 90px; }
.form-error { color: #B4523C; font-size: .86rem; margin-top: 10px; display: none; }
.form-error.show { display: block; }

.pay-note {
  background: var(--moss-tint); border-radius: var(--r-md);
  padding: 16px 18px; font-size: .89rem; color: var(--ink-soft); margin: 20px 0;
}

/* ============================================================
   О LOU
   ============================================================ */
.about-hero { text-align: center; padding: 60px 0 40px; }
.about-hero img { width: 170px; margin: 0 auto 26px; }
.about-lead {
  font-family: var(--font-display); font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  color: var(--caramel); max-width: 620px; margin: 0 auto 34px; line-height: 1.4;
}
.about-body { max-width: 660px; margin: 0 auto; }
.about-body p { margin: 0 0 20px; font-size: 1.03rem; color: var(--ink-soft); }
.about-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 46px 0; }
.about-gallery div { aspect-ratio: 1/1; background: var(--white-soft); border-radius: var(--r-lg); overflow: hidden; }
.about-gallery img { width: 100%; height: 100%; object-fit: contain; padding: 12%; }

/* ============================================================
   ПОДВАЛ
   ============================================================ */
.footer { background: var(--white-soft); border-top: 1px solid var(--border); margin-top: 70px; padding: 54px 0 0; }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr repeat(4, 1fr) 1.7fr;
  gap: 32px; padding-bottom: 40px;
}
.footer-brand .logo { margin-bottom: 14px; }
.footer-brand p { font-size: .88rem; color: var(--ink-soft); margin: 0 0 18px; max-width: 220px; }
.socials { display: flex; gap: 9px; }
.socials a {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid var(--border); display: grid; place-items: center;
  transition: all .18s;
}
.socials a:hover { background: var(--moss); border-color: var(--moss); color: #fff; }
.socials svg { width: 17px; height: 17px; }

.footer-col h4 {
  font-size: .8rem; text-transform: uppercase; letter-spacing: .09em;
  margin-bottom: 15px; color: var(--ink);
}
.footer-col a { display: block; font-size: .88rem; color: var(--ink-soft); padding: 5px 0; transition: color .18s; }
.footer-col a:hover { color: var(--caramel); }

.footer-news h4 { font-family: var(--font-display); font-size: 1.3rem; text-transform: none; letter-spacing: 0; margin-bottom: 8px; }
.footer-news p { font-size: .86rem; color: var(--ink-soft); margin: 0 0 15px; }
.news-form { display: flex; gap: 8px; }
.news-form input {
  flex: 1; padding: 12px 16px; border-radius: var(--r-pill);
  border: 1.5px solid var(--border); background: var(--ivory);
  font-size: .88rem;
}
.news-form input:focus { border-color: var(--moss); outline: none; }
.news-form button {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%;
  background: var(--moss); color: #fff; display: grid; place-items: center;
  transition: background .18s;
}
.news-form button:hover { background: var(--moss-dark); }
.news-done { font-size: .86rem; color: var(--moss); font-weight: 600; margin-top: 10px; display: none; }
.news-done.show { display: block; }

.footer-bottom {
  border-top: 1px solid var(--border); padding: 20px 0;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .82rem; color: var(--ink-soft);
}
.footer-bottom nav { display: flex; gap: 22px; }

/* ============================================================
   УВЕДОМЛЕНИЕ
   ============================================================ */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translate(-50%, 130%);
  z-index: 300; background: var(--moss-dark); color: #fff;
  padding: 14px 26px; border-radius: var(--r-pill);
  font-size: .92rem; font-weight: 600; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 10px;
  transition: transform .35s cubic-bezier(.34,1.4,.64,1);
}
.toast.show { transform: translate(-50%, 0); }

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (max-width: 1400px) {
  .header-email-copy { width: 160px; max-width: 160px; }
  .header-email-copy span { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

@media (max-width: 1100px) {
  .hero-cards { display: none; }
  .hero-photo { width: 100%; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.6fr; }
  .footer-col:nth-child(4), .footer-col:nth-child(5) { display: none; }
  .coll-row { grid-template-columns: repeat(3, 1fr); }
  .similar-row { grid-template-columns: repeat(3, 1fr); }
  .filter-panel { grid-template-columns: repeat(3, 1fr); }
  .header-email-copy span { display: none; }
  .header-email-copy { width: 40px; padding: 0; justify-content: center; }
}

@media (max-width: 1240px) {
  .nav { display: none; }
  .burger { display: grid; }
}

@media (max-width: 900px) {
  .cart-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .pd { grid-template-columns: 1fr; }
  .pd-media { padding: 24px; }
  .pd-info { padding: 26px 24px 30px; }
  .similar { padding: 24px; }
  .usp-grid { grid-template-columns: repeat(2, 1fr); gap: 26px 0; }
  .usp-item:nth-child(3) { border-left: none; }
  .about-gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .wrap { padding: 0 18px; }
  :root { --header-h: 64px; }

  .hero-bg { min-height: auto; flex-direction: column; }
  .hero-photo {
    position: relative; width: 100%; height: 300px; order: -1;
    background-position: center center;
  }
  .hero-photo::before {
    background: linear-gradient(0deg, #EFE7D8 0%, rgba(239,231,216,.35) 40%, transparent 100%);
  }
  .hero .wrap { padding-top: 26px; padding-bottom: 46px; }
  .hero-content { max-width: none; text-align: center; }
  .hero-text { margin-left: auto; margin-right: auto; }
  .hero-proof { justify-content: center; }

  .section { padding: 44px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .coll-row { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .collection-carousel .coll-card { flex-basis: min(72vw, 250px); }
  .carousel-btn { width: 40px; height: 40px; }
  .carousel-prev { left: -10px; }
  .carousel-next { right: -10px; }
  .products { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .card-body { padding: 13px 14px 16px; }
  .card-title { font-size: .88rem; }
  .card-quote { font-size: .9rem; margin-bottom: 9px; }

  .banner { width: 100%; min-height: auto; }
  .banner-photo { position: relative; width: 100%; height: 380px; background-position: center 32%; }
  .banner-photo::before { background: linear-gradient(0deg, #33322B 0%, transparent 70%); }
  .banner { flex-direction: column; }
  .banner-content { padding: 26px 24px 34px; }

  .modal { padding: 0; align-items: flex-end; }
  .modal-box { max-height: 94vh; border-radius: var(--r-lg) var(--r-lg) 0 0; }
  .similar-row { grid-template-columns: repeat(2, 1fr); }

  .toolbar { flex-direction: column; align-items: stretch; }
  .filter-panel { grid-template-columns: repeat(2, 1fr); padding: 16px; gap: 12px; }
  .filter-reset { grid-column: 1 / -1; }
  .catalog-update { width: 100%; }
  .chips { overflow-x: auto; padding-bottom: 4px; flex-wrap: nowrap; }
  .chip { flex-shrink: 0; }
  .toolbar-right { justify-content: space-between; }
  .shop-topline { align-items: flex-start; }
  .shop-topline .count { padding-top: 8px; white-space: nowrap; }

  .header .logo span { display: none; }
  .header-contact-actions { margin-left: 6px; gap: 0; }

  .cart-row { flex-wrap: wrap; }
  .cart-thumb { width: 72px; height: 72px; }
  .cart-actions { flex-direction: row; width: 100%; justify-content: space-between; align-items: center; }

  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand, .footer-news { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
  .usp-grid { grid-template-columns: 1fr 1fr; }
  .usp-item { border-left: none !important; padding: 0 10px; }
  .about-gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 420px) {
  .header .wrap { padding-left: 10px; padding-right: 10px; }
  .header-inner { gap: 4px; }
  .header .logo img { width: 30px; height: 30px; }
  .header-contact-actions { margin-left: 2px; }
  .header-contact-actions .icon-btn, .header-email-copy, .burger { width: 36px; height: 36px; }
  .lang-btn { gap: 5px; padding: 6px 8px; font-size: .75rem; }
  .lang-btn [data-lang-flag] { gap: 6px; }
  .flag-icon { width: 23px; height: 15px; }
}

@media (max-width: 340px) {
  .header .logo { display: none; }
}

@media (max-width: 520px) {
  .products { grid-template-columns: 1fr; }
  .shop-topline { gap: 10px; }
  .category-switch { gap: 6px; }
  .category-switch .chip { padding: 8px 12px; font-size: .82rem; }
}
