/* Vanesa.bg: втори UI слой (29.11.2026). Идва СЛЕД vanesa-ui.css и theme.css. */

/* ── Футър: две колони, акордеон на телефон, контраст AA върху Слива ── */
.site-foot--lean { --ft-text: #dcc6e0; --ft-strong: #f7eef1; --ft-line: rgb(247 238 241 / 0.18); padding-block: 1.75rem 1.25rem; background: var(--bar); color: var(--ft-text); border: 0; margin: 0; max-inline-size: none; }
.site-foot--lean .site-foot__about, .site-foot--lean small { color: var(--ft-text) !important; }
.site-foot--lean a { color: var(--ft-strong) !important; text-decoration: none; }
.site-foot--lean a:hover { text-decoration: underline; text-underline-offset: 0.25em; }
.site-foot--lean .site-foot__cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.site-foot--lean .site-foot__logo { max-block-size: 2.25rem; margin-block-end: 0.75rem; }
.site-foot--lean .site-foot__about { max-inline-size: 34ch; font-size: 0.9375rem; line-height: 1.5; }
.site-foot--lean .site-foot__about p { margin: 0; }
.site-foot--lean .site-foot__col--brand { margin-block-end: 0.75rem; }
.site-foot--lean .site-foot__contacts { display: flex; flex-wrap: wrap; gap: 0 1.25rem; list-style: none; margin: 0.5rem 0 0; padding: 0; overflow-wrap: normal; }
.site-foot--lean .site-foot__contacts a { display: inline-flex; align-items: center; gap: 0.5rem; min-block-size: 44px; font-size: 0.9375rem; }
.site-foot--lean .site-foot__group { border-block-start: 1px solid var(--ft-line); margin: 0; }
.site-foot--lean .site-foot__group:last-of-type { border-block-end: 1px solid var(--ft-line); }
.site-foot--lean .site-foot__heading { min-block-size: 48px; margin: 0; border: 0; font-family: var(--font-body); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ft-strong); }
.site-foot--lean .site-foot__links { margin: 0 0 0.5rem; padding: 0; list-style: none; }
.site-foot--lean .site-foot__links a { display: flex; align-items: center; min-block-size: 44px; padding-block: 0; font-size: 0.9375rem; }
.site-foot--lean .site-foot__links li:has(> a[aria-current="page"]) { border-inline-start-color: var(--accent); }
.site-foot--lean :is(a, button, summary):focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 4px; }
/* Долната лента е втората кутия след колоните (без собствен клас в селектора). */
.site-foot--lean .site-foot__cols + div { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 1.5rem; margin-block-start: 0.75rem; padding-block-start: 0.5rem; border: 0; font-size: 0.8125rem; }
.site-foot--lean .site-foot__cols + div small { flex: 1 1 100%; font-size: 0.8125rem; line-height: 1.4; margin-block-end: 0.25rem; }
.site-foot--lean .site-foot__cols + div ul { display: flex; flex-wrap: wrap; gap: 0 1.25rem; margin: 0; padding: 0; list-style: none; }
.site-foot--lean .site-foot__cols + div :is(a, button) { display: inline-flex; align-items: center; min-block-size: 44px; font-size: 0.8125rem; }
@media (min-width: 768px) {
  .site-foot--lean { padding-block: 2rem 1rem; }
  .site-foot--lean .site-foot__cols { grid-template-columns: minmax(16rem, 1.7fr) repeat(2, minmax(9rem, 1fr)); gap: 0 clamp(2rem, 5vw, 4.5rem); align-items: start; }
  .site-foot--lean .site-foot__col--brand { margin: 0; }
  .site-foot--lean .site-foot__group { border: 0 !important; }
  .site-foot--lean .site-foot__group > summary { pointer-events: none; min-block-size: 36px; }
  .site-foot--lean .site-foot__chevron { display: none; }
  .site-foot--lean .site-foot__group::details-content { content-visibility: visible; block-size: auto; }
  .site-foot--lean .site-foot__group > .site-foot__links { display: block; margin: 0; }
  .site-foot--lean .site-foot__links a { min-block-size: 40px; }
  .site-foot--lean .site-foot__cols + div { margin-block-start: 1rem; padding-block-start: 0.5rem; border-block-start: 1px solid var(--ft-line); }
  .site-foot--lean .site-foot__cols + div small { flex: 1 1 auto; margin: 0; }
}
@media (max-width: 767.98px) {
  .site-foot--lean .site-foot__top { display: none; }
  .site-foot--lean { padding-block-end: 1rem; }
}

/* ── Начална, карти, продукт, чекмедже (телефон първо) ── */
.product-card__meta:empty { display: none; }
.product-card__title, .product-card__name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card__media { background: #fff; }
.product-card__media img { aspect-ratio: 1 / 1; object-fit: contain; }
.gallery__strip { scroll-snap-type: x mandatory; overscroll-behavior-x: contain; }
.gallery__slide { scroll-snap-align: center; }
.nav-drawer__list { display: flex; flex-direction: column; }
.nav-drawer__item:has(> a[href*="podaratsi"]) { order: -1; background: var(--bar); border-radius: 12px; margin-block-end: 0.5rem; }
.nav-drawer__item:has(> a[href*="podaratsi"]) > a { color: #f7eef1; }
@media (max-width: 767.98px) {
  .dp-hero--type .dp-hero__stage { min-block-size: 0; padding-top: 0 !important; background-size: 56px 56px; }
  .dp-hero--type .dp-hero__copy { padding-block: calc(56px + 0.5rem) 1.25rem !important; gap: 0.75rem !important; }
  .dp-hero--type .dp-hero__copy > * { margin-block: 0 !important; }
  .dp-hero--type .dp-hero__title { font-size: clamp(1.75rem, 8vw, 2.25rem); line-height: 1.15; }
  .section { padding-block: 1.75rem; }
  .vn-gifts__tile { min-block-size: 8.5rem; }
  .dp-statement { padding-block: 2.5rem; }
}

/* ── Където са продуктите и снимките им, фонът е бял ── */
.section:has(.product-card), .section.collection { background: #fff; }
.section:has(.product-card) .product-card__media, .section:has(.product-card) .product-card__media img { background: #fff; }

/* ── Сърце за любими: по-малко и по-леко; зоната за докосване остава 44 px ── */
.product-card .list-btn--icon { inline-size: 32px; block-size: 32px; min-inline-size: 0; min-block-size: 0; padding: 0; inset-block-start: 0.5rem; inset-inline-end: 0.5rem; background: rgb(255 255 255 / 0.92); border: 1px solid rgb(75 10 87 / 0.14); box-shadow: none; border-radius: 50%; display: inline-grid; place-items: center; }
.product-card .list-btn--icon svg { inline-size: 16px; block-size: 16px; }
.product-card .list-btn--icon::after { content: ""; position: absolute; inset: -6px; }

/* ── Чипове с подкатегории под заглавието на категорията ── */
.cat-chips { margin-block: 0.75rem 0.5rem; }
.cat-chips__list { display: flex; gap: 0.5rem; list-style: none; margin: 0; padding: 0 0 0.25rem; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.cat-chips__list::-webkit-scrollbar { display: none; }
.cat-chips__list li { flex: 0 0 auto; scroll-snap-align: start; }
.cat-chips__link { display: inline-flex; align-items: center; min-block-size: 44px; padding-inline: 1.125rem; border: 1.5px solid var(--bar, #4b0a57); border-radius: 999px; background: transparent; color: var(--bar, #4b0a57); font-size: 0.9375rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.cat-chips__link:hover { background: var(--bar, #4b0a57); color: #f7eef1; }
.cat-chips__link:focus-visible { outline: 2px solid var(--accent, #e43d7f); outline-offset: 2px; }
@media (min-width: 768px) { .cat-chips__list { flex-wrap: wrap; overflow: visible; } }

/* ── Продукт: „Характеристики“ като таблица; „Допълнете подаръка“ с един продукт ── */
.vanesa-specs__table { display: block; margin: 0; border: 1px solid rgb(75 10 87 / 0.14); border-radius: 12px; overflow: hidden; background: #fff; }
.vanesa-specs__row { display: grid; grid-template-columns: minmax(6.5rem, 2fr) 3fr; gap: 1rem; padding: 0.75rem 1rem; margin: 0; border-block-end: 1px solid rgb(75 10 87 / 0.1); }
.vanesa-specs__row:last-child { border-block-end: 0; }
.vanesa-specs__row:nth-child(even) { background: #fbf6f8; }
.vanesa-specs__row dt { font-weight: 600; color: var(--bar, #4b0a57); }
.vanesa-specs__row dd { margin: 0; overflow-wrap: anywhere; }
.vanesa--product .shelf-section .grid__cell:nth-child(n+2) { display: none; }
.vanesa--product .shelf-section .grid--rail { display: block; overflow: visible; }
.vanesa--product .shelf-section .grid__cell { max-inline-size: 20rem; }

/* ── Банер за бисквитки (CMP): самият #sellanto-cmp е картата; бяла, розова горна линия, Lora, бутони пил ── */
#sellanto-cmp { background: #fff; color: #2a1430; border-block-start: 3px solid #e43d7f; border-radius: 14px; box-shadow: 0 12px 40px rgb(42 20 48 / 0.18); font-family: Manrope, system-ui, sans-serif; }
#sellanto-cmp .sl-cmp__inner { background: transparent; border: 0; box-shadow: none; padding: 0; }
#sellanto-cmp .sl-cmp__title { margin: 0 0 0.5rem; font-family: Lora, Georgia, serif; font-weight: 600; font-size: 1.25rem; line-height: 1.25; color: #4b0a57; }
#sellanto-cmp .sl-cmp__text { margin: 0 0 1rem; font-size: 0.9375rem; line-height: 1.5; color: #4a3a50; }
#sellanto-cmp .sl-cmp__text a { color: #4b0a57; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
#sellanto-cmp .sl-cmp__row small { color: #5d4a63; }
#sellanto-cmp .sl-cmp__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
#sellanto-cmp .sl-cmp__btn { min-block-size: 44px; padding-inline: 1.1rem; border: 1.5px solid #4b0a57; border-radius: 999px; background: transparent; color: #4b0a57; font: 600 0.9375rem Manrope, system-ui, sans-serif; cursor: pointer; }
#sellanto-cmp .sl-cmp__btn--solid { background: #4b0a57; color: #fff; }
#sellanto-cmp .sl-cmp__btn:focus-visible { outline: 2px solid #e43d7f; outline-offset: 2px; }
@media (max-width: 767.98px) {
  #sellanto-cmp { bottom: calc(72px + env(safe-area-inset-bottom)) !important; }
  #sellanto-cmp .sl-cmp__btn { flex: 1 1 calc(50% - 0.25rem); }
}

/* ── Филтри на всички ширини: тънък скролбар без стрелки, бутоните не се пречупват ── */
.facets .facet__values { scrollbar-width: thin; scrollbar-color: #c9b3ce transparent; padding-inline-end: 0.5rem; }
.facets .facet__values::-webkit-scrollbar { inline-size: 6px; }
.facets .facet__values::-webkit-scrollbar-button { display: none; }
.facets .facet__values::-webkit-scrollbar-track { background: transparent; }
.facets .facet__values::-webkit-scrollbar-thumb { background: #c9b3ce; border-radius: 999px; }
.facets .facets__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.facets .facets__actions > * { flex: 1 1 auto; justify-content: center; text-align: center; white-space: nowrap; padding-inline: 0.75rem; }

/* ── Категория на телефон: филтри и сортиране на един ред, залепени под шапката ── */
@media (max-width: 767.98px) {
  section.collection--rail { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); column-gap: 0.5rem; align-items: center; }
  section.collection--rail > .collection__results { display: contents; }
  section.collection--rail > .facets { grid-column: 1; grid-row: 1; inline-size: 100%; min-inline-size: 0; position: sticky; top: 106px; z-index: 20; background: #fff; padding-block: 0.5rem; }
  section.collection--rail .toolbar { grid-column: 2; grid-row: 1; min-inline-size: 0; position: sticky; top: 106px; z-index: 20; background: #fff; padding-block: 0.5rem; display: block; }
  section.collection--rail .toolbar__count, section.collection--rail .toolbar__view, section.collection--rail .toolbar__sort-label { display: none; }
  section.collection--rail .toolbar__sort { margin: 0; }
  section.collection--rail .toolbar__select { inline-size: 100%; min-inline-size: 0; max-inline-size: 100%; }
  section.collection--rail .grid--products { grid-column: 1 / -1; grid-row: 2; }

  /* Отвореният панел с филтри е на цял екран, над шапката и долната навигация. */
  section.collection--rail > .facets[open] { position: static; z-index: auto; }
  .facets[open] > summary { visibility: hidden; }
  .facets[open] .facets__scrim { z-index: 199; }
  .facets[open] .facets__panel { position: fixed !important; inset: 0 !important; block-size: 100dvh !important; max-block-size: none !important; z-index: 200 !important; border-radius: 0 !important; display: flex; flex-direction: column; }
  .facets .facet__values { max-block-size: 19rem !important; padding-inline-end: 0.75rem; }
  .facets .facet__values :is(a, label) { min-block-size: 44px; }
  .facets[open] .facets__actions { background: #f7eef1; padding-block-end: calc(0.75rem + env(safe-area-inset-bottom)); box-shadow: 0 -1px 0 rgb(75 10 87 / 0.12); }
}
