/* =====================================================================
   SALERM BG v4 - Компоненти и секции (по salerm.com/fr)
   ===================================================================== */

/* ============ HEADER ============ */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--surface-alt);
  border-bottom: 1px solid transparent;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.header.is-stuck {
  background: var(--paper);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(22,22,22,0.05);
}

.header__bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 74px;
}
.header__side { display: flex; align-items: center; gap: 1.25rem; }
.header__side--right { justify-content: flex-end; }
.account-link { margin-left: -10px; }

.header__salon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-label);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}
.header__salon svg { width: 16px; height: 16px; }

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  color: var(--ink);
}
.brand__word {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.brand__sub {
  font-family: var(--font-label);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 4px;
  padding-left: 0.42em;
}

.header__icons { display: flex; align-items: center; gap: 0.9rem; }
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--tap);
  height: var(--tap);
  color: var(--ink);
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn .cart-btn__count, .icon-btn .fav-count {
  position: absolute;
  transform: translate(11px, -11px);
  min-width: 16px; height: 16px;
  display: grid; place-items: center;
  background: var(--ink); color: #fff;
  font-family: var(--font-label);
  font-size: 0.6rem; font-weight: 700;
  border-radius: 999px;
}
.header__lang {
  font-family: var(--font-label);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 0.3rem;
}

/* nav ред */
.header__nav-row { border-top: 1px solid var(--line); }
.header.is-stuck .header__nav-row { border-top-color: var(--line); }
.nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2.4rem;
  min-height: 46px;
  align-items: center;
}
.nav__link {
  font-family: var(--font-label);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 0.3rem 0;
  position: relative;
}
.nav__link::after {
  content: "";
  position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur) var(--ease);
}
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav__link--boxed {
  border: 1px solid var(--ink);
  padding: 0.5rem 1rem;
}
.nav__link--boxed::after { display: none; }
.nav__link--boxed:hover { background: var(--ink); color: #fff; }

.nav-toggle, .header__salon-m { display: none; }

@media (max-width: 900px) {
  .header__bar { grid-template-columns: auto 1fr auto; min-height: 60px; }
  .header__side--left .header__salon span { display: none; }
  .header__nav-row { display: none; }
  .nav-toggle { display: inline-flex; }
  .js-hide-sm { display: none !important; }
  .brand__word { font-size: 1.5rem; }
  .brand__sub { font-size: 0.5rem; letter-spacing: 0.34em; }
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: clamp(520px, 78vh, 760px);
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 15% 30%; /* снимката от salerm.com 2800px: лицето е на ~48% - на десктоп отива вдясно от текста */
  z-index: 0;
  animation: hero-zoom 18s var(--ease-out) both;
}
@keyframes hero-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
@media (max-width: 900px) { .hero__bg { object-position: 48% 28%; } } /* на телефон - лицето в средата */
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(12,10,9,0.72) 0%, rgba(12,10,9,0.42) 32%, rgba(12,10,9,0.1) 62%, rgba(12,10,9,0) 82%);
  z-index: 1;
}
.hero__inner {
  position: relative; z-index: 2;
  max-width: 600px;
  text-align: left;
  padding-block: 2.5rem;
}
.hero__eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0;
  margin-bottom: 1rem;
  color: rgba(255,255,255,0.85);
}
.hero__title {
  font-size: var(--fs-display);
  color: #fff;
  font-weight: 500;
  line-height: 1.08;
  margin-bottom: 1.35rem;
  overflow-wrap: break-word;
  hyphens: auto;
}
.hero__lead {
  font-size: var(--fs-lead);
  font-weight: 400;
  line-height: 1.7;
  color: rgba(255,255,255,0.92);
  margin: 0 0 2.25rem;
  max-width: 34ch;
}
@media (max-width: 900px) {
  .hero { min-height: 74vh; align-items: center; }
  .hero::after {
    background: linear-gradient(90deg, rgba(12,10,9,0.78) 0%, rgba(12,10,9,0.5) 45%, rgba(12,10,9,0.2) 100%);
  }
  .hero__inner { padding-block: 2rem; max-width: 26rem; }
  .hero__lead { max-width: 36ch; text-wrap: balance; } /* телефон: на два реда (Емануил, 27.10) */
}
@media (max-width: 380px) { .hero__lead { font-size: 0.95rem; } } /* малък телефон (SE): пак на два реда */

/* ============ PROMO БЛОКОВЕ (salerm.com: заглавие над висока снимка) ============ */
.promo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
}
.promo--single { grid-template-columns: 1fr; }
.promo-card {
  display: flex;
  flex-direction: column;
  text-align: center;
}
.promo-card__eyebrow {
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--ink-muted);
  margin-bottom: 0.5rem;
}
.promo-card__title {
  font-size: var(--fs-h3);
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: 0.7rem;
}
.promo-card__text {
  font-size: var(--fs-body);
  color: var(--ink-soft);
  max-width: 34ch;
  margin: 0 auto 1.5rem;
}
.promo-card__cta { margin-bottom: 2.25rem; }
.promo-card__media {
  margin-top: auto;
  aspect-ratio: 3 / 4;
  width: 100%;
  overflow: hidden;
  background: var(--surface-alt-2);
}
.promo-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}
.promo-card:hover .promo-card__media img { transform: scale(1.03); }

@media (max-width: 820px) {
  .promo { grid-template-columns: 1fr; gap: 3rem; max-width: 460px; margin-inline: auto; }
  .promo-card__media { aspect-ratio: 4 / 5; }
}

/* ============ SALON БАНЕР ============ */
.salon {
  position: relative;
  color: var(--ink);
  background: #e8e5e4; /* фонът на снимката */
  overflow: hidden;
  isolation: isolate;
}
.salon__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 100% 30%; /* снимката на клиента (28.10): моделът вдясно, текстът в празното вляво */
  background: none;
  z-index: -1;
}
.salon__inner {
  max-width: min(640px, 55%);
  padding-block: clamp(4rem, 10vw, 8rem);
}
.salon__title { color: var(--ink); font-size: var(--fs-h2); margin-bottom: 1.25rem; }
.salon__text { font-weight: 400; color: var(--ink-soft); margin-bottom: 2rem; }
/* телефон: цялата снимка (3:1) отгоре, текстът под нея - моделът не е под текста */
@media (max-width: 720px) {
  .salon__bg { position: static; display: block; height: auto; aspect-ratio: 3 / 1; object-position: 50% 50%; }
  .salon__inner { max-width: none; }
}

/* ============ ЦЕННОСТИ ============ */
.values { text-align: center; }
.values__head { max-width: 760px; margin: 0 auto clamp(2.5rem, 6vw, 4.5rem); }
.values__title {
  font-size: var(--fs-h2);
  margin-bottom: 0.75rem;
}
.values__sub { font-size: var(--fs-lead); color: var(--ink-soft); }
.values__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 4vw, 3.5rem);
  text-align: center;
}
.value { max-width: 34ch; margin: 0 auto; }
.value__icon {
  width: 42px; height: 42px;
  margin: 0 auto 1.1rem;
  color: var(--ink);
}
.value__icon svg { width: 100%; height: 100%; }
.value__title {
  font-family: var(--font-body);
  font-size: var(--fs-lead);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0;
  color: var(--ink);
  margin-bottom: 0.6rem;
}
.value__text { font-weight: 400; font-size: var(--fs-body); line-height: 1.7; }
.values__cta { margin-top: clamp(2.5rem, 6vw, 4rem); }

@media (max-width: 860px) { .values__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .values__grid { grid-template-columns: 1fr; } }
.value__text a { text-decoration: underline; text-underline-offset: 2px; }
/* 5 карти (Марката, „Защо да купите“): последният ред в средата, не вляво */
@media (min-width: 861px) {
  .values__grid--center { display: flex; flex-wrap: wrap; justify-content: center; }
  .values__grid--center > .value { flex: 0 0 calc((100% - 2 * clamp(1.5rem, 4vw, 3.5rem)) / 3); margin: 0; }
}

/* ============ СЕКЦИОННИ ЗАГЛАВИЯ ============ */
.sec-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(2.5rem, 6vw, 4rem);
}
.sec-head h2 { font-size: var(--fs-h2); }

/* ============ БЛОГ КАРТИ ============ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3.5vw, 3rem);
}
.post {
  background: var(--paper);
  display: flex;
  flex-direction: column;
}
.post__media { aspect-ratio: 600 / 546; overflow: hidden; } /* като снимките - без отрязани глави */
.post__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform var(--dur-slow) var(--ease); }
.post:hover .post__media img { transform: scale(1.04); }
.post__body { padding: 1.75rem; display: flex; flex-direction: column; gap: 0.9rem; flex: 1; }
.post__cat {
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--ink-muted);
}
.post__title { font-size: var(--fs-h4); line-height: 1.3; }
.post__more { margin-top: auto; }

@media (max-width: 860px) { .blog-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }

/* ============ ПРЕСА / МЕНЦИИ ============ */


/* ============ NEWSLETTER ============ */
.newsletter {
  background: var(--dark);
  color: #E9E5DE;
  text-align: center;
}
.newsletter__inner {
  max-width: 620px;
  margin: 0 auto;
  padding-block: clamp(3.5rem, 8vw, 6rem);
}
.newsletter__title { color: #fff; font-size: var(--fs-h3); margin-bottom: 1rem; }
.newsletter__text { font-weight: 400; color: rgba(255,255,255,0.78); margin-bottom: 2rem; }
.newsletter__form { display: flex; flex-direction: column; gap: 1rem; align-items: center; }
.newsletter__form input[type="email"] {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  padding: 1rem 1.1rem;
  font-family: var(--font-label);
  font-size: var(--fs-small);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.newsletter__form input::placeholder { color: rgba(255,255,255,0.55); }
.newsletter__check {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: var(--fs-small);
  color: rgba(255,255,255,0.7);
  text-align: left;
  line-height: 1.5;
}
.newsletter__check a { text-decoration: underline; }
.newsletter__status { max-width: 460px; margin: 0 auto 1.25rem; color: #fff; background: rgba(255, 255, 255, 0.08); text-align: left; }
#newsletter { scroll-margin-top: 0; }

/* ============ ФУТЪР ============ */
.footer {
  background: var(--surface-alt);
  border-top: 1px solid var(--line);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}
.footer__brand .brand__word { font-size: 1.6rem; color: var(--ink); }
.footer__brand p { font-weight: 400; font-size: var(--fs-body); margin: 1rem 0 1.5rem; max-width: 40ch; }
.footer__social { display: flex; gap: 0.75rem; }
.footer__social a {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.footer__social a:hover { background: var(--ink); color: #fff; }
.footer__social svg { width: 16px; height: 16px; }
.footer__col h2 {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ink);
  margin-bottom: 1.1rem;
}
.footer__col ul { display: flex; flex-direction: column; gap: 0; }
.footer__col li { padding-block: 0.15rem; }
.footer__col li > a { display: inline-block; padding-block: 0.55rem; }
.footer__col a, .footer__col li { font-weight: 400; font-size: var(--fs-body); }
.footer__col a:hover { color: var(--ink); text-decoration: underline; }
.footer__hours { margin-top: 1.25rem; font-size: var(--fs-small); font-weight: 400; }
.footer__hours b { font-weight: 600; color: var(--ink); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.75rem;
  font-size: var(--fs-small);
  font-weight: 400;
  color: var(--ink-muted);
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
.footer__legal a { display: inline-block; padding-block: 0.7rem; }
.footer__legal a:hover { color: var(--ink); text-decoration: underline; }
.footer__legal .vitrina-credit { display: inline-flex; align-items: center; gap: 0.5rem; }
.vitrina-credit img { border-radius: 50%; flex: none; }
.vitrina-credit span { text-decoration: underline; text-underline-offset: 3px; }
.footer__legal .vitrina-credit:hover { text-decoration: none; }

@media (max-width: 860px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) { .footer__top { grid-template-columns: 1fr; } }

/* ============ CART DRAWER / MOBILE NAV / OVERLAY ============ */
.overlay {
  position: fixed; inset: 0;
  background: rgba(15,13,11,0.5);
  opacity: 0; visibility: hidden;
  transition: opacity var(--dur-sheet) var(--ease-sheet), visibility var(--dur-sheet);
  z-index: 90;
}
.overlay.is-open { opacity: 1; visibility: visible; }

.drawer, .mnav {
  position: fixed; top: 0; right: 0;
  height: 100dvh;
  width: min(400px, 90vw);
  background: var(--paper);
  z-index: 100;
  transform: translateX(100%);
  transition: transform var(--dur-sheet) var(--ease-sheet);
  display: flex; flex-direction: column;
}
.mnav { right: 0; left: auto; transform: translateX(100%); width: min(360px, 88vw); }
.drawer.is-open, .mnav.is-open { transform: none; }

.drawer__head, .mnav__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.drawer__head h2, .mnav__head .brand__word { font-size: var(--fs-h4); }
.drawer__body { padding: 1.5rem; overflow-y: auto; flex: 1; }
.cart-line { display: grid; grid-template-columns: 56px 1fr auto; gap: 1rem; align-items: center; }
.cart-line__img { width: 56px; height: 56px; overflow: hidden; background: var(--surface-alt); }
.cart-line__img img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.cart-line__name { font-weight: 600; font-size: var(--fs-small); color: var(--ink); }
.cart-line__meta { font-size: var(--fs-small); color: var(--ink-muted); }
.cart-line__price { font-family: var(--font-price); font-size: var(--fs-body); font-weight: 500; color: var(--ink); white-space: nowrap; }
.drawer__foot { padding: 1rem 1.5rem; border-top: 1px solid var(--line); }
/* Колко остава до безплатна доставка (страничната кошница и /koshnitsa/) */
.free-ship { margin-bottom: 1.5rem; padding: 0.9rem 1rem; background: rgba(31, 122, 61, 0.07); }
.free-ship__text { font-size: var(--fs-body); line-height: 1.5; margin-bottom: 0.6rem; color: var(--ink); }
.free-ship__text b { font-weight: 600; color: var(--ticker-bg); }
.free-ship__bar { height: 6px; background: rgba(31, 122, 61, 0.15); border-radius: 3px; overflow: hidden; }
.free-ship__bar span { display: block; height: 100%; background: var(--ticker-bg); }
.cart_totals .free-ship { margin-bottom: 1.5rem; }
.drawer__row { display: flex; justify-content: space-between; font-size: var(--fs-small); margin-bottom: 0.6rem; }
.drawer__row--total { align-items: baseline; font-size: var(--fs-body); font-weight: 500; color: var(--ink); margin: 0 0 0.75rem; }
.drawer__row--total span:last-child { font-family: var(--font-price); font-size: 1.125rem; font-weight: 600; }
/* Страничната кошница: "Добавете към поръчката" + ред доверие */
.upsells { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.upsells__title { font-size: var(--fs-h4); margin-bottom: 1rem; }
.upsells__list { display: grid; gap: 1rem; }
.upsell { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 0.9rem; align-items: center; }
.upsell__img { width: 56px; height: 56px; overflow: hidden; background: var(--surface-alt); }
.upsell__img img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.upsell__name { display: block; font-size: var(--fs-small); font-weight: 500; line-height: 1.35; color: var(--ink); }
.upsell__price { font-family: var(--font-price); font-size: var(--fs-body); font-weight: 500; color: var(--ink); }
.upsell__add { min-height: var(--tap); padding: 0 0.9rem; border: 1px solid var(--ink); font-family: var(--font-label); font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.06em; color: var(--ink); white-space: nowrap; }
.upsell__add:hover { background: var(--ink); color: #fff; }
.upsell__add:disabled { opacity: 0.5; }
.drawer__trust { margin-top: 0.6rem; font-size: var(--fs-label); line-height: 1.4; color: var(--ink-muted); text-align: center; }
.drawer__note { font-size: var(--fs-small); color: var(--ink-muted); margin-top: 0.75rem; text-align: center; }

.mnav__links { display: flex; flex-direction: column; padding: 1rem 1.5rem; }
.mnav__links a {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-label);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}
.mnav__foot { margin-top: auto; padding: 1.5rem; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 0.5rem; font-size: var(--fs-small); }


/* =====================================================================
   МОБИЛНА ОПТИМИЗАЦИЯ (v5)
   ===================================================================== */
@media (max-width: 900px) {
  .header__bar { grid-template-columns: auto 1fr auto; min-height: 56px; }
  .header__side--left { gap: 0; }
  .header__salon svg { width: 20px; height: 20px; }
  .header__icons { gap: 0.35rem; }
  .brand__word { font-size: 1.35rem; }
  .brand__sub { font-size: 0.46rem; letter-spacing: 0.3em; margin-top: 3px; }

  .hero__title { font-size: clamp(2rem, 1.35rem + 4.6vw, 2.9rem); line-height: 1.15; }

  .salon__inner { padding-block: clamp(2.5rem, 10vw, 4rem); text-align: left; }

  .value { max-width: 40ch; }


  .newsletter__inner { padding-inline: 0.5rem; }
  .newsletter__check { font-size: var(--fs-small); }

  .btn { padding: 0.95rem 1.9rem; font-size: var(--fs-label); }
  .link-more { font-size: var(--fs-label); }
}

@media (max-width: 560px) {
  :root { --gutter: 1.25rem; }
  .hero { min-height: 78vh; }
  .hero__inner { padding-bottom: 2.75rem; }
  .hero .btn { display: flex; width: 100%; }
  .promo { gap: 2.5rem; }
  .footer__social a { width: 42px; height: 42px; }
  .footer__bottom { flex-direction: column; gap: 0.6rem; }
  .breadcrumbs { padding-block: 1rem; }
}

/* по-плавен тъч скрол + без хоризонтално разливане */
html, body { max-width: 100%; }

/* ============ СТРАНИЧНА КОШНИЦА (WooCommerce) ============ */
.widget_shopping_cart_content { display: contents; }
.mini-cart { display: grid; gap: 1.25rem; }
.mini-cart .cart-line { align-items: start; }
.cart-line__name { display: block; line-height: 1.35; }
.cart-line__name:hover { text-decoration: underline; }
.cart-line__meta { margin-top: 0.2rem; }
.cart-line__remove { display: inline-block; margin-top: 0.35rem; font-size: var(--fs-small); color: var(--ink-muted); text-decoration: underline; }
.cart-line__remove:hover { color: var(--ink); }
.cart-line__price { white-space: nowrap; }
.drawer__continue { margin-top: 0.5rem; }
.cart-continue { margin-top: 0.75rem; }
.checkout-back { margin-bottom: 1.25rem; font-size: var(--fs-small); }
.checkout-back a { text-decoration: underline; text-underline-offset: 2px; }
.drawer__link { display: block; margin-top: 0.4rem; text-align: center; font-size: var(--fs-small); text-decoration: underline; color: var(--ink-soft); }
.drawer__empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.25rem; text-align: center; }
.widget_shopping_cart_content.blockUI, .drawer .blockOverlay { cursor: wait; }

/* ============ НАЙ-ПРОДАВАНИ ============ */
.top-sales__inner { display: grid; grid-template-columns: minmax(220px, 1fr) 3fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.top-sales__intro { padding-top: 0.5rem; }
.top-sales__title { font-size: var(--fs-h2); margin-bottom: 1.25rem; }
.top-sales__text { font-weight: 400; margin-bottom: 2rem; max-width: 30ch; }
.top-sales__rail { min-width: 0; }
.top-sales__track {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3 * 1.25rem) / 4);
  column-gap: 1.25rem;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.top-sales__track::-webkit-scrollbar { display: none; }
.top-sales__track > .product { scroll-snap-align: start; }
.top-sales__nav { display: flex; align-items: center; gap: 0.5rem; margin-top: 1.5rem; }
.top-sales__bar { flex: 1; height: 3px; background: var(--line); overflow: hidden; margin-right: 0.75rem; }
.top-sales__bar span { display: block; height: 100%; background: var(--ink); transition: transform var(--dur-fast) linear; }
.top-sales__nav .icon-btn { border: 1px solid var(--line-strong); }
.top-sales__nav .icon-btn:disabled { opacity: 0.3; cursor: default; }
@media (max-width: 1000px) {
  .top-sales__inner { grid-template-columns: 1fr; }
  .top-sales__text { max-width: none; }
  .top-sales__track { grid-auto-columns: calc((100% - 2 * 1rem) / 3); column-gap: 1rem; }
}
@media (max-width: 720px) {
  .top-sales__intro .btn { display: none; }
  .top-sales__track { grid-auto-columns: 62%; }
}

/* ============ ПОДМЕНЮ "ПРОДУКТИ" ============ */
.nav__item { position: relative; }
.nav__caret { width: 10px; height: 10px; margin-left: 0.3rem; vertical-align: 1px; display: inline-block; }
.nav__sub {
  position: absolute; top: calc(100% + 0.7rem); left: 50%;
  min-width: 250px; padding: 0.5rem 0;
  background: var(--paper); border: 1px solid var(--line);
  box-shadow: 0 14px 30px rgba(17, 17, 17, 0.06);
  opacity: 0; visibility: hidden; transform: translate(-50%, -4px) scale(0.97); transform-origin: 50% 0;
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), visibility var(--dur-fast);
  z-index: 70;
}
.nav__sub::before { content: ""; position: absolute; left: 0; right: 0; top: -0.8rem; height: 0.8rem; }
.nav__item:hover .nav__sub, .nav__item:focus-within .nav__sub { opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1); }
.nav__sub a {
  display: block; padding: 0.7rem 1.4rem;
  font-family: var(--font-label); font-size: var(--fs-label); font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft);
}
.nav__sub a:first-child { border-bottom: 1px solid var(--line); margin-bottom: 0.35rem; color: var(--ink); }
.nav__sub a:hover, .nav__sub a:focus-visible { background: var(--surface-alt); color: var(--ink); }

.mnav__links { overflow-y: auto; }
.mnav__group summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  padding: 0.9rem 0; border-bottom: 1px solid var(--line);
  font-family: var(--font-label); font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink);
}
.mnav__group summary::-webkit-details-marker { display: none; }
.mnav__group summary::after { content: "+"; font-size: 1.1rem; font-weight: 400; line-height: 1; }
.mnav__group[open] summary::after { content: "-"; }
.mnav__sub { display: flex; flex-direction: column; }
.mnav__links .mnav__sub a { display: block; padding: 0.75rem 0 0.75rem 1rem; font-size: var(--fs-label); letter-spacing: 0.1em; color: var(--ink-soft); }

/* ============ ЛЕНТА СЪС СЪОБЩЕНИЯ ============ */
/* неподвижна, тъмна, бели букви (2026-10-21, клиентът); малко по-светла от хедъра (#222), за да се отличава */
.ticker { background: #333; color: #fff; }
.ticker__list { display: flex; flex-wrap: wrap; justify-content: center; margin: 0; padding: 0.3rem 1rem; list-style: none; }
.ticker__list li {
  display: flex; align-items: center; white-space: nowrap; min-height: 20px;
  font-family: var(--font-label); font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.02em;
}
.ticker__list li:not(:last-child)::after { content: ""; width: 3px; height: 3px; margin: 0 1.25rem; border-radius: 50%; background: rgba(255, 255, 255, 0.6); }
/* телефон: двете съобщения не се събират на един ред - две половини една до друга с тънка черта между тях */
@media (max-width: 600px) {
  .ticker__list { display: grid; grid-template-columns: 3fr 2fr; padding: 0.45rem 0.75rem; }
  .ticker__list li { justify-content: center; padding: 0 0.6rem; white-space: normal; text-align: center; text-wrap: balance; line-height: 1.3; font-size: clamp(9.5px, 2.85vw, 11px); }
  .ticker__list li + li { border-left: 1px solid rgba(255, 255, 255, 0.25); }
  .ticker__list li::after { display: none; }
}

/* ============ ТЪМЕН ХЕДЪР (като salerm.com) ============ */
.header, .header.is-stuck { background: var(--dark); border-bottom-color: transparent; }
.header.is-stuck { box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25); }
.header .brand, .header .header__salon, .header .icon-btn, .header .nav__link { color: #fff; }
.header .brand__sub { color: rgba(255, 255, 255, 0.6); }
.header__nav-row, .header.is-stuck .header__nav-row { border-top-color: rgba(255, 255, 255, 0.12); }
.header .nav__link::after { background: #fff; }
.header .nav__link--boxed { border-color: #fff; }
.header .nav__link--boxed:hover { background: #fff; color: var(--ink); }
.header .icon-btn .cart-btn__count, .header .icon-btn .fav-count { background: #fff; color: var(--ink); }
.header :focus-visible { outline-color: #fff; }
.header .nav__sub :focus-visible { outline-color: var(--ink); }

/* Мобилен хедър: профил вляво, лого в центъра, кошница и меню вдясно. "За фризьори" е в менюто. */
@media (max-width: 900px) {
  .header__bar { grid-template-columns: 1fr auto 1fr; }
  .header__salon { display: none; }
  .nav-toggle { margin-right: -10px; }
}



/* Плаващ хедър след главната секция (като при Starlink): карта с отстъп и заоблени ъгли */
.header { transition: top var(--dur) var(--ease), margin-left var(--dur) var(--ease), margin-right var(--dur) var(--ease), border-radius var(--dur) var(--ease), background var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.header.is-floating {
  top: 12px; margin-inline: 12px; border-radius: 12px;
  background: var(--dark);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.header.is-floating .header__bar { min-height: 60px; }
.header.is-floating .header__nav-row { border-top-color: rgba(255, 255, 255, 0.08); }
.admin-bar .header.is-floating { top: calc(32px + 12px); }
@media (max-width: 782px) { .admin-bar .header.is-floating { top: calc(46px + 12px); } }
@media (prefers-reduced-motion: reduce) { .header { transition: none; } }
@media (max-width: 600px) { .admin-bar .header.is-floating { top: 12px; } }

/* ============ HERO БУТОНИ ============ */
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn--outline-light { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: #fff; }
.btn--outline-light:hover { --btn-bg: #fff; --btn-fg: var(--ink); }
@media (max-width: 720px) { .hero__actions { flex-direction: column; } .hero__actions .btn { width: 100%; } }

/* ============ РАЗГЛЕДАЙ ПО КАТЕГОРИЯ ============ */
.cat-grid { --cat-gap: clamp(0.75rem, 2vw, 1.5rem); display: flex; flex-wrap: wrap; justify-content: center; gap: var(--cat-gap); }
.cat-grid > .cat-tile { flex: 0 0 calc((100% - 4 * var(--cat-gap)) / 5); }
.cat-tile { display: flex; flex-direction: column; background: var(--paper); transition: box-shadow var(--dur) var(--ease); }
.cat-tile:hover { box-shadow: 0 12px 30px rgba(17, 17, 17, 0.08); }
.cat-tile__media { aspect-ratio: 4 / 3; background: #fff; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.cat-tile__media img { width: 100%; height: 100%; object-fit: contain; padding: 6%; background: transparent; /* снимките от salerm.com са на бял фон - без сив квадрат около тях */ transition: transform var(--dur-slow) var(--ease); }
.cat-tile:hover .cat-tile__media img { transform: scale(1.05); }
.cat-tile__name { padding: 1rem 1.1rem 0.2rem; font-family: var(--font-display); font-size: var(--fs-h4); color: var(--ink); }
.cat-tile__count { padding: 0 1.1rem 1.1rem; font-size: var(--fs-small); color: var(--ink-muted); }
.cat-tiles__cta { display: flex; justify-content: center; margin-top: clamp(1.5rem, 3vw, 2.5rem); }
@media (max-width: 1000px) { .cat-grid > .cat-tile { flex-basis: calc((100% - var(--cat-gap)) / 2); } }
@media (max-width: 420px) { .cat-tile__name { font-size: 1rem; padding: 0.8rem 0.8rem 0.15rem; } .cat-tile__count { padding: 0 0.8rem 0.8rem; } }

/* ============ ТЪРСЕНЕ ============ */
.header__search { border-top: 1px solid rgba(255, 255, 255, 0.12); padding-block: 0.9rem; }
.search-form, .mnav__search { display: flex; gap: 0.5rem; }
.search-form input, .mnav__search input {
  flex: 1; min-width: 0; min-height: var(--tap); padding: 0.7rem 1rem;
  border: 1px solid var(--line-strong); background: var(--paper); font-size: var(--fs-body);
}
.search-form { max-width: 640px; margin-inline: auto; }
.search-form .btn { --btn-bg: #fff; --btn-fg: var(--ink); --btn-bd: #fff; padding-inline: 1.5rem; }
.mnav__search { padding: 0.5rem 0 1rem; }
.mnav__search .btn { padding-inline: 1.1rem; }
.search-summary { font-size: var(--fs-body); margin-bottom: 0.5rem; }
.search-summary a { margin-left: 0.75rem; text-decoration: underline; color: var(--ink-muted); }

/* ============ ЛЮБИМИ ============ */
.fav-link { position: relative; }
.fav-btn {
  position: absolute; top: 0.6rem; right: 0.6rem; z-index: 2;
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.9); color: var(--ink); cursor: pointer;
  transition: transform var(--dur-fast) var(--ease);
}
.fav-btn svg { width: 18px; height: 18px; }
.fav-btn:hover { transform: scale(1.08); }
.fav-btn[aria-pressed="true"] { color: #B3261E; }
.fav-btn[aria-pressed="true"] svg { fill: currentColor; }
.pdp__head { display: flex; align-items: flex-start; gap: 1rem; }
.pdp__head .pdp__title { flex: 1; }
.pdp__head .fav-btn { position: static; flex: none; margin-top: 0.35rem; border: 1px solid var(--line); background: var(--paper); width: 44px; height: 44px; }
.fav-empty { text-align: center; display: grid; justify-items: center; gap: 1.25rem; padding-block: 2rem; }
.mnav__links [data-fav-count] { margin-left: 0.4rem; color: var(--ink-muted); }

/* ============ POPUP С ОТСТЪПКА ============ */
.offer { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 16px; }
.offer[hidden] { display: none; }
.offer__backdrop { position: absolute; inset: 0; background: rgba(15, 13, 11, 0.55); }
.offer__box {
  position: relative; width: min(440px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto;
  background: var(--paper); padding: clamp(1.75rem, 5vw, 2.5rem); text-align: center;
  animation: offer-in var(--dur) var(--ease);
}
@keyframes offer-in { from { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) { .offer__box { animation: none; } }
.offer__close { position: absolute; top: 0.5rem; right: 0.5rem; }
.offer__title { font-size: var(--fs-h3); line-height: 1.2; margin-bottom: 0.9rem; }
.offer__text { font-weight: 400; font-size: var(--fs-body); margin-bottom: 1.25rem; }
.offer__form { display: grid; gap: 0.9rem; text-align: left; }
.offer__form input[type=email] { min-height: var(--tap); padding: 0.8rem 1rem; border: 1px solid var(--line-strong); font-size: var(--fs-body); }
.offer__form input[type=email]:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.offer__hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.offer__consent { display: flex; gap: 0.6rem; align-items: flex-start; font-size: var(--fs-small); line-height: 1.5; color: var(--ink-soft); }
.offer__consent input { margin-top: 0.2rem; flex: none; width: 16px; height: 16px; }
.offer__consent a { text-decoration: underline; }
.offer__error { font-size: var(--fs-small); color: #B3261E; }
.offer__code {
  font-family: var(--font-label); font-size: 1.4rem; font-weight: 700; letter-spacing: 0.1em;
  padding: 0.9rem; margin-bottom: 1rem; border: 1px dashed var(--ink); color: var(--ink); user-select: all;
}

/* ============ БЪРЗО ДОБАВЯНЕ (прозорец за избор на вариант) ============ */
.quick__box { text-align: left; }
.quick__title { font-size: var(--fs-h3); line-height: 1.25; margin: 0 2rem 1.25rem 0; }
.quick__form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.75rem; } /* minmax(0, ...) - дългите имена на нюансите да не разпъват прозореца */
.quick__form label { font-family: var(--font-label); font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); }
.quick__form select {
  appearance: none; -webkit-appearance: none;
  width: 100%; min-width: 0; text-overflow: ellipsis;
  min-height: var(--tap); padding: 0 2.5rem 0 1rem;
  font-family: var(--font-body); font-size: var(--fs-body); color: var(--ink);
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23111' stroke-width='1.5'%3E%3Cpath d='m2 4 4 4 4-4'/%3E%3C/svg%3E") no-repeat right 1rem center;
  border: 1px solid var(--line-strong);
}
.quick__form select:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.quick__price { font-family: var(--font-price); font-weight: 500; font-size: 1.25rem; color: var(--ink); min-height: 1.5em; }
.quick__more { justify-self: center; font-size: var(--fs-small); color: var(--ink-muted); text-decoration: underline; text-underline-offset: 2px; }

/* ============ ХЕДЪР (2026-10-21, клиентът): логото на Salerm Cosmetics най-вляво (беше „Salerm Bulgaria“ + „Официални представители“) ============ */
.header .header__bar { grid-template-columns: auto 1fr; gap: 1.5rem; }
.header .brand--logo { align-items: flex-start; justify-content: center; } /* .brand е колона с центриране - тук логото е до левия край */
.brand__logo { display: block; width: auto; height: 40px; background: none; } /* бялото лого е на прозрачен фон (base.css слага фон на всички снимки) */
.header .account-link { margin-left: 0; }
@media (max-width: 900px) {
  .header .header__bar { grid-template-columns: minmax(0, 1fr) auto; gap: 0.75rem; min-height: 64px; }
  .brand__logo { height: 30px; }
  .header__icons { gap: 0; }
}

/* ============ ХЕДЪР НА ДЕСКТОП ============ */
.header .nav__link--boxed { border-color: rgba(255, 255, 255, 0.5); padding: 0.55rem 1.1rem; transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.header .nav__link--boxed:hover { border-color: #fff; }
.header__nav-row, .header.is-stuck .header__nav-row { border-top-color: rgba(255, 255, 255, 0.08); }
/* 901-1239 px (таблет и малък лаптоп): менюто е бутон, както на телефон - без втори ред с празно място */
@media (min-width: 901px) and (max-width: 1239px) {
  .header__nav-row { display: none; }
  .header .nav-toggle { display: inline-flex; margin-right: -10px; }
}
/* от 1240 px: един ред - логото вляво, менюто до иконите вдясно */
@media (min-width: 1240px) {
  .header { --bar-h: 80px; }
  .header.is-floating { --bar-h: 64px; }
  .header .header__bar, .header.is-floating .header__bar { min-height: var(--bar-h); }
  .header__nav-row { position: absolute; top: 0; left: 0; right: 0; border-top: 0; pointer-events: none; }
  /* иконите са 4 x ~45px: менюто спира 2.5rem преди тях */
  .header .nav { min-height: var(--bar-h); justify-content: flex-end; flex-wrap: nowrap; gap: 2rem; margin-right: calc(4 * 45px + 3 * 0.9rem + 2.5rem); }
  .header .nav > * { pointer-events: auto; }
}
/* 1240-1359 px: по-сбито меню, за да се събере на един ред с логото */
@media (min-width: 1240px) and (max-width: 1359px) {
  .header .nav { gap: 1.35rem; margin-right: calc(4 * 45px + 3 * 0.6rem + 1.75rem); }
  .header .nav__link { font-size: 0.6875rem; letter-spacing: 0.1em; }
  .header .nav__link--boxed { padding: 0.5rem 0.85rem; }
  .header__icons { gap: 0.6rem; }
}

/* ============ ХЕДЪР (1.0.114-1.0.115) ============
   Винаги плътно черен (#222), и при плаващия хедър - полупрозрачният изглеждаше сив над светлите секции (Емануил). */
.header, .header.is-stuck, .header.is-floating { background: var(--dark); }
.header.is-stuck { box-shadow: none; }
.header.is-floating { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); }
/* вместо линия: лек преход надолу, само когато под хедъра има съдържание */
.header::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 14px; pointer-events: none;
  background: linear-gradient(rgba(0, 0, 0, 0.14), transparent);
  opacity: 0; transition: opacity var(--dur) var(--ease);
}
.header.is-stuck:not(.is-floating)::after { opacity: 1; }
.header__nav-row, .header.is-stuck .header__nav-row { border-top-color: transparent; }

/* Телефон: първият екран (хедър + лента + снимката с бутоните) е точно видимата част при отваряне.
   --hero-top = височината над снимката, мери се в main.js; svh = екранът с видими ленти на браузъра. */
@media (max-width: 900px) {
  .hero { min-height: calc(100svh - var(--hero-top, 140px) + 2px); } /* +2px: без светла линия от закръгляне */
}
/* Десктоп (2026-10-21, Емануил): снимката стига до долния край на екрана - под нея не се вижда светлата секция */
@media (min-width: 901px) {
  .hero { min-height: max(520px, calc(100svh - var(--hero-top, 112px) + 2px)); } /* +2px: без светла линия от закръгляне (--hero-top е закръглен нагоре) */
}
/* Телефон с пръст (iOS 26 Safari): lvh свършва над плаващата долна лента - снимката стига до самия ръб, зад лентата
   (същото като на демото Prima Style, потвърдено на iPhone на Емануил). */
@media (max-width: 767px) and (pointer: coarse) {
  .hero { min-height: calc(100lvh + 84px - var(--hero-top, 140px)); }
}
/* Телефон: иконите малко по-тесни (40px), за да има място за логото */
@media (max-width: 600px) {
  .header .header__icons .icon-btn { width: 40px; min-width: 40px; }
}

/* Телефон и имейл (футър, менюто, Контакти): поле за натискане поне 44px (одит 2026-10-15: бяха 18-21px) */
.footer__col a[href^="tel:"], .footer__col a[href^="mailto:"], .mnav__foot a, .contact-info dd a {
  display: inline-flex; align-items: center; min-height: 44px;
}

/* ============ БИСКВИТКИ (inc/consent.php, assets/js/consent.js) ============
   Лента отдолу, без тъмен фон: сайтът се ползва и докато е отворена. */
.consent {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 110;
  background: var(--paper); border-top: 1px solid var(--line-strong);
  box-shadow: 0 -10px 40px rgba(17, 17, 17, 0.08);
  padding: 1.1rem var(--gutter) calc(1.1rem + env(safe-area-inset-bottom));
  max-height: 85dvh; overflow-y: auto;
}
.consent[hidden] { display: none; }
.consent__inner {
  max-width: var(--container-wide); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.6rem 2.5rem; align-items: center;
}
.consent__title { font-size: var(--fs-h4); grid-column: 1; }
.consent__text { grid-column: 1; font-size: var(--fs-small); line-height: 1.55; font-weight: 400; color: var(--ink-soft); }
.consent__text a { text-decoration: underline; text-underline-offset: 2px; color: var(--ink); }
.consent__prefs { grid-column: 1; display: grid; gap: 0.75rem; margin-top: 0.4rem; }
.consent__opt { display: flex; gap: 0.75rem; align-items: flex-start; }
.consent__opt input { flex: none; width: 20px; height: 20px; margin-top: 0.1rem; accent-color: var(--ink); }
.consent__opt label { font-size: var(--fs-small); line-height: 1.5; font-weight: 400; color: var(--ink-soft); cursor: pointer; }
.consent__opt label b { display: block; color: var(--ink); font-weight: 600; }
.consent__opt input:disabled + label { cursor: default; }
.consent__actions { grid-column: 2; grid-row: 1 / span 3; display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; justify-content: flex-end; max-width: 420px; }
.consent__actions .btn { padding-inline: 1.4rem; }
.consent__more {
  min-height: var(--tap); padding: 0 0.5rem; font-family: var(--font-label); font-size: var(--fs-label);
  font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 3px;
}
.consent__more[hidden], .consent__actions .btn[hidden] { display: none; }
@media (max-width: 860px) {
  .consent { padding-top: 1rem; }
  .consent__inner { grid-template-columns: 1fr; }
  .consent__actions { grid-column: 1; grid-row: auto; max-width: none; justify-content: stretch; display: grid; grid-template-columns: 1fr 1fr; }
  .consent__actions .btn { padding: 0.75rem 0.5rem; width: 100%; letter-spacing: 0.06em; }
  .consent__title { font-size: var(--fs-body); }
  .consent__text { font-size: 0.75rem; }
  .consent__more { grid-column: 1 / -1; justify-self: center; }
}
.footer__legal button.footer__consent { display: inline-block; padding-block: 0.7rem; font-size: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; }
.footer__legal button.footer__consent:hover { color: var(--ink); text-decoration: underline; }
