/* =====================================================================
   Foxy Art Cup - базов слой (B1.1)
   Пренесен 1:1 от makets/final/assets/maket.css: токените (:root, палитра A
   „Лисица" - решение 2 от TASKS), базата, компонентите 3.5, header, мега,
   мобилно меню, side cart и футър. Палитра B „Теракота" НЕ се
   пренася. CSS-ът на отделните страници (хиро, магазин, продукт, количка,
   чекаут, блог, 404…) е в home/shop/product/cart/checkout/account/blog/pages.css.
   Петте забранени свойства - само на местата от PLAN 7 + REPORT „ЗА FABLE" т.24
   (всяко с коментар „разрешено").
   ===================================================================== */
/* ---------- 3.1 Палитра A „Лисица" (по подразбиране) ---------- */
:root {
  --c-bg: #FFFFFF;
  --c-surface: #FBF7F2;
  --c-text: #212121;
  --c-muted: #69727D;
  --c-border: #EDE4DA;
  --c-primary: #E4552A;
  --c-accent: #F5921E;
  --c-accent-hover: #D9780C;
  --c-accent-soft: #FFF1E3;
  --c-dark: #1F1A17;
  --c-on-accent: #FFFFFF;
  --c-sale: #D7263D;
  --c-ok: #2E7D4F;

  /* ---------- 3.3 Типография: 390px → 1024px с clamp() ---------- */
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --t-display: clamp(36px, calc(36px + 20 * (100vw - 390px) / 634), 56px);
  --t-h1: clamp(30px, calc(30px + 10 * (100vw - 390px) / 634), 40px);
  --t-h2: clamp(26px, calc(26px + 8 * (100vw - 390px) / 634), 34px);
  --t-h3: clamp(19px, calc(19px + 3 * (100vw - 390px) / 634), 22px);
  --t-h4: clamp(17px, calc(17px + 1 * (100vw - 390px) / 634), 18px);
  --t-lead: clamp(17px, calc(17px + 2 * (100vw - 390px) / 634), 19px);
  --t-body: 16px;
  --t-small: 14px;
  --t-eyebrow: 12px;
  --t-price: clamp(17px, calc(17px + 1 * (100vw - 390px) / 634), 18px);

  /* ---------- 3.4 Мрежа, отстояния, форми ---------- */
  --container: 1240px;
  --gutter: clamp(16px, calc(16px + 8 * (100vw - 390px) / 634), 24px);
  --sp-section: clamp(56px, calc(56px + 32 * (100vw - 390px) / 634), 88px);
  --sp-block: clamp(28px, calc(28px + 12 * (100vw - 390px) / 634), 40px);
  --gap-cards: clamp(12px, calc(12px + 12 * (100vw - 390px) / 634), 24px);
  --r-card: 16px;
  --r-img: 12px;
  --r-pill: 999px;
  --r-field: 10px;
  --r-hero: 24px;
  --shadow-hover: 0 10px 28px rgba(31, 26, 23, .10);
  --shadow-panel: 0 18px 48px rgba(31, 26, 23, .16);
  --ease: 180ms ease;
}

/* =====================================================================
   БАЗОВ СЛОЙ
   ===================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font);
  font-size: var(--t-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--c-primary); }
h1, h2, h3, h4 { margin: 0; color: var(--c-text); overflow-wrap: break-word; }
h1 { font-size: var(--t-h1); line-height: 1.1; font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: var(--t-h2); line-height: 1.15; font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: var(--t-h3); line-height: 1.25; font-weight: 700; }
h4 { font-size: var(--t-h4); line-height: 1.3; font-weight: 700; }
@media (max-width: 767px) { h1 { line-height: 1.15; } h2 { line-height: 1.2; } h3 { line-height: 1.3; } h4 { line-height: 1.35; } }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--c-accent-soft); color: var(--c-text); }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; border-radius: 4px; }
.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; } /* разрешено: достъпност, не съдържание */
.sr-only:focus { position: fixed; top: 8px; left: 8px; width: auto; height: auto; margin: 0; clip: auto; padding: 10px 16px; background: var(--c-dark); color: #fff; z-index: 999; border-radius: var(--r-field); }
svg[aria-hidden="true"] { flex: none; }

/* Контейнерът - ЕДИНСТВЕНОТО място с ширина на съдържание */
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }

.section { padding-block: var(--sp-section); }
.section--surface { background: var(--c-surface); }
.section--tight { padding-block: var(--sp-block); }
.stack > * + * { margin-top: 16px; }
.muted { color: var(--c-muted); }

/* ---------- .entry-content (гола разметка от редактора) ---------- */
.entry-content { font-size: var(--t-body); line-height: 1.7; }
.entry-content > * + * { margin-top: 1em; }
.entry-content h2 { margin-top: 1.6em; }
.entry-content h3 { margin-top: 1.4em; }
.entry-content h4 { margin-top: 1.2em; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li + li { margin-top: .4em; }
.entry-content li::marker { color: var(--c-primary); }
.entry-content a { color: var(--c-primary); }
.entry-content strong, .entry-content b { font-weight: 700; }
.entry-content blockquote { margin: 1.4em 0; padding: 18px 22px; border-left: 3px solid var(--c-accent); background: var(--c-surface); border-radius: 0 var(--r-img) var(--r-img) 0; font-size: var(--t-lead); }
.entry-content blockquote p + p { margin-top: .6em; }
.entry-content figure { margin: 1.4em 0; }
.entry-content figure img, .entry-content > img { border-radius: var(--r-img); }
.entry-content figcaption { margin-top: 8px; font-size: var(--t-small); color: var(--c-muted); }
.entry-content hr { border: 0; border-top: 1px solid var(--c-border); margin: 2em 0; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 15px; } /* разрешено: таблицата е в колоната на .entry-content */
.entry-content th, .entry-content td { padding: 10px 12px; border-bottom: 1px solid var(--c-border); text-align: left; vertical-align: top; }
.entry-content th { background: var(--c-surface); font-weight: 700; }
.entry-content code { background: var(--c-surface); padding: 2px 6px; border-radius: 6px; font-size: .92em; }
.table-scroll { overflow-x: auto; }

/* =====================================================================
   3.5 КОМПОНЕНТИ
   ===================================================================== */
.eyebrow { display: inline-block; font-size: var(--t-eyebrow); line-height: 1.2; text-transform: uppercase; letter-spacing: .16em; font-weight: 600; color: var(--c-accent); }
.lead { font-size: var(--t-lead); line-height: 1.55; color: var(--c-muted); }

.sec-head { display: grid; gap: 10px; margin-bottom: var(--sp-block); }
.sec-head--center { text-align: center; justify-items: center; }
.sec-head--row { grid-template-columns: 1fr auto; align-items: end; gap: 10px 24px; }
.sec-head--row > .btn { grid-column: 2; grid-row: 1 / span 3; align-self: end; }
@media (max-width: 767px) { .sec-head--row { grid-template-columns: 1fr; } .sec-head--row > .btn { grid-column: 1; grid-row: auto; justify-self: start; } }

/* Бутони */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 26px; border-radius: var(--r-pill); border: 1.5px solid transparent; font-family: var(--font); font-size: 15px; font-weight: 600; line-height: 1.4; text-decoration: none; text-align: center; transition: background var(--ease), color var(--ease), border-color var(--ease), transform var(--ease); cursor: pointer; }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--c-accent); color: var(--c-on-accent); }
.btn-primary:hover { background: var(--c-accent-hover); color: var(--c-on-accent); }
.btn-dark { background: var(--c-dark); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }
.btn-outline { background: transparent; color: var(--c-text); border-color: var(--c-text); }
.btn-outline:hover { background: var(--c-text); color: #fff; }
.btn-light { background: #fff; color: var(--c-text); }
.btn-light:hover { background: var(--c-accent-soft); color: var(--c-text); }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-block { display: flex; width: 100%; } /* разрешено: бутон, не текстов блок */
.btn[disabled], .btn.is-disabled { background: var(--c-border); color: var(--c-muted); border-color: transparent; cursor: not-allowed; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--c-primary); text-decoration: none; }
.link-arrow svg { width: 16px; height: 16px; transition: transform var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* Чипове */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: var(--r-pill); background: var(--c-accent-soft); color: var(--c-primary); font-size: 13px; font-weight: 600; line-height: 1.5; text-decoration: none; white-space: nowrap; border: 1px solid transparent; transition: background var(--ease), color var(--ease); }
.chip svg { width: 16px; height: 16px; }
.chip small { font-weight: 500; opacity: .75; }
a.chip:hover { background: var(--c-accent); color: #fff; }
.chip-active, .chip-active:hover { background: var(--c-accent); color: #fff; }
.chip-plain { background: #fff; color: var(--c-text); border-color: var(--c-border); }

/* Баджове (върху снимка - position:absolute разрешено) */
.badge-sale, .badge-new, .badge-out { display: inline-block; padding: 4px 10px; border-radius: var(--r-pill); font-size: 12px; font-weight: 700; line-height: 1.4; }
.badge-sale { background: var(--c-sale); color: #fff; }
.badge-new { background: var(--c-dark); color: #fff; }
.badge-out { background: #8A8F96; color: #fff; }

/* Икони в кръг */
.icon-circle { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--c-accent-soft); color: var(--c-primary); flex: none; } /* декоративно - размерът е на кръга, не на текст */
.icon-circle svg { width: 22px; height: 22px; }

/* ---------- Продуктова карта ---------- */
.grid-prod { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap-cards); }
@media (max-width: 1279px) { .grid-prod--shop { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1023px) { .grid-prod { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) { .grid-prod, .grid-prod--shop { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card-prod { display: grid; grid-template-rows: auto 1fr; background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-card); padding: 10px; transition: box-shadow var(--ease), transform var(--ease); }
.card-prod:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.card-prod__img { position: relative; display: block; aspect-ratio: 1 / 1; border-radius: var(--r-img); overflow: hidden; background: var(--c-surface); } /* разрешено: overflow само на снимката */
.card-prod__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.card-prod:hover .card-prod__img img { transform: scale(1.03); }
.card-prod__img .badge-sale, .card-prod__img .badge-out { position: absolute; top: 10px; left: 10px; } /* разрешено: бадж върху снимка */
.card-prod__noimg { display: grid; place-items: center; width: 100%; height: 100%; color: var(--c-muted); }
.card-prod__noimg svg { width: 40px; height: 40px; }
.card-prod__body { display: grid; grid-template-rows: 1fr auto auto; gap: 8px; padding: 12px 6px 6px; }
.card-prod__title { font-size: 15px; line-height: 1.4; font-weight: 600; }
.card-prod__title a { text-decoration: none; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-size: var(--t-price); font-weight: 800; line-height: 1.2; color: var(--c-text); }
.price del { font-size: 14px; font-weight: 500; color: var(--c-muted); }
.price ins { text-decoration: none; color: var(--c-text); }
.card-prod .btn { padding-block: 9px; }
@media (max-width: 767px) { .card-prod { padding: 8px; } .card-prod .btn { padding: 10px 6px; font-size: 12.5px; letter-spacing: -.01em; } .card-prod__body { padding: 10px 2px 2px; } .card-prod__title { font-size: 14px; } }

/* ---------- Категорийна карта (стек в една клетка на грида - без absolute) ---------- */
.grid-cat { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap-cards); }
@media (max-width: 1023px) { .grid-cat { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card-cat { display: grid; border-radius: var(--r-card); text-decoration: none; color: #fff; isolation: isolate; }
.card-cat > * { grid-area: 1 / 1; }
.card-cat__img { width: 100%; height: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-card); transition: filter 300ms ease; }
.card-cat__shade { border-radius: var(--r-card); background: linear-gradient(180deg, rgba(31,26,23,0) 38%, rgba(31,26,23,.55) 62%, rgba(31,26,23,.9) 100%); }
.card-cat__body { align-self: end; display: grid; gap: 8px; justify-items: start; padding: 18px; }
.card-cat__body h3 { color: #fff; font-size: 22px; text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.card-cat__body p { font-size: 14px; line-height: 1.5; color: rgba(255,255,255,.88); }
.card-cat .btn { margin-top: 6px; }
.card-cat:hover { color: #fff; }
.card-cat:hover .card-cat__img { filter: brightness(1.06) saturate(1.05); }
@media (max-width: 767px) { .card-cat__body { padding: 12px; gap: 6px; } .card-cat__body h3 { font-size: 18px; } .card-cat__body p { font-size: 13px; line-height: 1.45; } .card-cat .btn { padding: 7px 12px; font-size: 13px; } .card-cat .btn svg { display: none; } .card-cat__img { aspect-ratio: 3 / 4; } }

/* ---------- USP ---------- */
.usp-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap-cards); }
@media (max-width: 1023px) { .usp-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.usp { display: grid; gap: 12px; align-content: start; }
.usp h3 { font-size: var(--t-h4); }
.usp p { font-size: 15px; line-height: 1.55; color: var(--c-muted); }
.usp--row { grid-template-columns: auto 1fr; column-gap: 16px; }
.usp--row .icon-circle { grid-row: span 2; }
@media (max-width: 767px) { .usp-row .usp p { font-size: 14px; } }

/* ---------- Акордеон ---------- */
.acc { display: grid; gap: 10px; }
.acc__item { background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-img); border-left: 3px solid transparent; transition: border-color var(--ease); }
.acc__item.is-open { border-left-color: var(--c-accent); }
.acc__btn { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; background: none; border: 0; text-align: left; font-size: 18px; font-weight: 700; line-height: 1.4; } /* разрешено: бутон на цял ред */
.acc__btn svg { width: 20px; height: 20px; color: var(--c-primary); transition: transform var(--ease); }
.acc__item.is-open .acc__btn svg { transform: rotate(180deg); }
.acc__panel { padding: 0 18px 18px; color: var(--c-text); }
.acc__panel[hidden] { display: none; }
.acc__panel p + p, .acc__panel p + ul, .acc__panel ul + p { margin-top: .6em; }
.acc__panel ul { padding-left: 1.2em; }

/* ---------- Отзиви (карусел scroll-snap) ---------- */
.carousel { display: grid; gap: 18px; }
.carousel__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * var(--gap-cards)) / 3); gap: var(--gap-cards); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > * { scroll-snap-align: start; }
@media (max-width: 1023px) { .carousel__track { grid-auto-columns: calc((100% - var(--gap-cards)) / 2); } }
@media (max-width: 767px) { .carousel__track { grid-auto-columns: 100%; } }
.carousel__nav { display: flex; align-items: center; justify-content: center; gap: 14px; }
.dots { display: flex; gap: 8px; }
.dots button { width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 0; background: var(--c-border); transition: background var(--ease), transform var(--ease); }
.dots button[aria-current="true"] { background: var(--c-accent); transform: scale(1.2); }
.arrow { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--c-border); background: #fff; color: var(--c-text); transition: background var(--ease), color var(--ease); }
.arrow:hover { background: var(--c-dark); color: #fff; border-color: var(--c-dark); }
.arrow svg { width: 20px; height: 20px; }
.review { display: grid; gap: 14px; align-content: start; background: var(--c-surface); border-radius: var(--r-card); padding: 24px; }
.stars { display: flex; gap: 3px; color: var(--c-accent); }
.stars svg { width: 18px; height: 18px; fill: currentColor; }
.review blockquote { margin: 0; font-size: 16px; line-height: 1.6; }
.review footer { display: grid; line-height: 1.35; }
.review footer strong { font-weight: 600; }
.review footer span { font-size: var(--t-small); color: var(--c-muted); }

/* ---------- Форми ---------- */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 16px; }
.form .is-wide { grid-column: 1 / -1; }
@media (max-width: 767px) { .form { grid-template-columns: 1fr; } .form .is-half { grid-column: 1 / -1; } }
.field { display: grid; gap: 6px; align-content: start; }
.field label, .label { font-size: 14px; font-weight: 500; }
.field label .req { color: var(--c-sale); }
.input, .field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="password"], .field input[type="search"], .field input[type="number"], .field select, .field textarea, .select2-selection {
  width: 100%; padding: 13px 14px; border: 1px solid var(--c-border); border-radius: var(--r-field); background: #fff; font-size: 16px; line-height: 1.4; transition: border-color var(--ease), box-shadow var(--ease);
} /* разрешено: полето запълва клетката на грида */
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { outline: none; border-color: var(--c-accent); box-shadow: 0 0 0 1px var(--c-accent); }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--c-sale); }
.field__error { font-size: 13px; color: var(--c-sale); display: flex; gap: 6px; align-items: center; }
.field__error svg { width: 15px; height: 15px; }
.field__hint { font-size: 13px; color: var(--c-muted); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--c-accent); flex: none; }
@media (max-width: 767px) { .form .btn-primary { width: 100%; } }

/* Съобщения (Woo .woocommerce-message / -error / -info) */
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: var(--r-img); background: var(--c-surface); border: 1px solid var(--c-border); font-size: 15px; }
.notice svg { width: 20px; height: 20px; margin-top: 2px; }
.notice ul { padding-left: 1.1em; }
.notice--error, .woocommerce-NoticeGroup .woocommerce-error { background: #FDECEE; border-color: #F5C2C8; color: #8A1426; }
.woocommerce-NoticeGroup { margin-bottom: 20px; }
.woocommerce-NoticeGroup .woocommerce-error { list-style: none; display: grid; gap: 4px; padding: 14px 18px 14px 46px; border: 1px solid #F5C2C8; border-radius: var(--r-img); font-size: 15px; background-image: none; }
.notice--ok { background: #E9F5EE; border-color: #BFE0CC; color: #1E5A38; }

/* Количество */
.qty { display: inline-flex; align-items: center; border: 1px solid var(--c-border); border-radius: var(--r-pill); background: #fff; }
.qty button { display: grid; place-items: center; width: 40px; height: 44px; border: 0; background: none; color: var(--c-text); }
.qty button svg { width: 16px; height: 16px; }
.qty input { width: 40px; border: 0; text-align: center; font-weight: 700; font-size: 15px; background: none; -moz-appearance: textfield; } /* разрешено: числово поле в контрола */
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty--sm button { width: 32px; height: 34px; }
.qty--sm input { width: 30px; font-size: 14px; }

/* ---------- Хиро на вътрешна страница ---------- */
.page-head { background: var(--c-surface); padding-block: 56px 40px; }
.page-head h1 { margin-top: 8px; }
.page-head .lead { margin-top: 12px; }
@media (max-width: 767px) { .page-head { padding-block: 32px 28px; } }
.crumbs { display: flex; flex-wrap: wrap; gap: 4px 0; list-style: none; font-size: 14px; color: var(--c-muted); }
.crumbs li + li::before { content: "/"; margin: 0 8px; color: var(--c-border); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--c-primary); }

/* 12-колонна мрежа за центрирано съдържание (вместо max-width) */
.grid12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-cards); }
.col-8c { grid-column: 3 / span 8; }
.col-6c { grid-column: 4 / span 6; }
.col-8l { grid-column: 1 / span 8; }
@media (max-width: 1023px) { .col-8c, .col-6c, .col-8l { grid-column: 1 / -1; } }

/* Странициране */
.pag { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: var(--sp-block); list-style: none; }
.pag a, .pag span { display: inline-grid; place-items: center; min-width: 44px; padding: 10px 14px; border-radius: var(--r-pill); border: 1px solid var(--c-border); background: #fff; font-weight: 600; font-size: 15px; line-height: 1.4; text-decoration: none; }
.pag a:hover { border-color: var(--c-text); color: var(--c-text); }
.pag .is-current { background: var(--c-dark); border-color: var(--c-dark); color: #fff; }
.pag svg { width: 18px; height: 18px; }

/* =====================================================================
   HEADER + МЕГА + МОБИЛНО МЕНЮ + SIDE CART
   ===================================================================== */
.top-lenta { background: var(--c-surface); color: var(--c-text); font-size: var(--t-small); font-weight: 500; }
.top-lenta .container { display: flex; align-items: center; justify-content: center; gap: 10px; height: 36px; } /* разрешено: height на .top-lenta (PLAN 7) */
.top-lenta span { white-space: nowrap; }
.top-lenta i { font-style: normal; color: var(--c-accent); }
@media (max-width: 767px) {
  .top-lenta { font-size: 12px; }
  .top-lenta .container { display: block; line-height: 36px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; } /* разрешено: ЕДИН ред с многоточие на 390 (PLAN 3.4) */
  .top-lenta span { display: inline; }
}

.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--c-border); }
.site-header__in { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; padding-block: 14px; position: relative; }
.site-logo { display: block; }
.site-logo img { height: 52px; width: auto; } /* декоративно: логото, не текст */
.nav > ul { display: flex; justify-content: center; gap: 6px; list-style: none; }
.nav a, .nav button { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: var(--r-pill); border: 0; background: none; font-size: 16px; font-weight: 600; line-height: 1.4; text-decoration: none; color: var(--c-text); transition: background var(--ease), color var(--ease); }
.nav a:hover, .nav button:hover, .nav button[aria-expanded="true"] { background: var(--c-accent-soft); color: var(--c-primary); }
.nav a[aria-current="page"] { color: var(--c-primary); }
.nav button svg { width: 18px; height: 18px; transition: transform var(--ease); }
.nav button[aria-expanded="true"] svg { transform: rotate(180deg); }
.header-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: none; color: var(--c-text); text-decoration: none; transition: background var(--ease); }
.icon-btn:hover { background: var(--c-accent-soft); color: var(--c-primary); }
.icon-btn svg { width: 22px; height: 22px; }
.cart-count { position: absolute; top: 2px; right: 0; min-width: 20px; padding: 0 5px; border-radius: 10px; background: var(--c-accent); color: #fff; font-size: 11px; font-weight: 800; line-height: 20px; text-align: center; } /* разрешено: бадж върху икона (position) */
.burger { display: none; }
.header-search { display: none; padding-bottom: 14px; }
.header-search.is-open { display: block; }
.search-form { display: flex; align-items: center; gap: 8px; border: 1px solid var(--c-border); border-radius: var(--r-pill); padding: 4px 4px 4px 18px; background: #fff; }
.search-form svg { width: 20px; height: 20px; color: var(--c-muted); }
.search-form input { flex: 1; min-width: 0; border: 0; padding: 10px 4px; font-size: 16px; background: none; outline: none; }
@media (max-width: 1023px) {
  .nav, .header-actions .hide-m { display: none; }
  .burger { display: inline-grid; }
  .site-header__in { grid-template-columns: auto 1fr; gap: 8px; padding-block: 10px; }
  .header-actions { justify-content: flex-end; gap: 0; }
  .site-logo img { height: 40px; }
}

/* Мега панел (position:absolute разрешено - PLAN 7) */
.mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--c-border); border-radius: 0 0 var(--r-card) var(--r-card); box-shadow: var(--shadow-panel); padding: 28px 0 22px; z-index: 40; }
.mega[hidden] { display: none; }
/* „Компактно" (избрано 28.09): 4 колони, до 4 подкатегории + „Всички (N)" - редът не расте с броя линкове */
.mega__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px var(--gap-cards); }
.mega__col { display: grid; grid-template-columns: 48px 1fr; gap: 2px 12px; align-content: start; }
.mega__thumb { grid-row: span 2; width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--c-surface); } /* декоративно: кръгла миниатюра */
.mega__title { font-size: 15px; font-weight: 700; line-height: 1.3; text-decoration: none; align-self: center; min-height: 48px; display: flex; align-items: center; }
.mega__title:hover { color: var(--c-primary); }
.mega__subs { grid-column: 2; list-style: none; display: grid; gap: 2px; }
.mega__subs a { font-size: 14px; color: var(--c-muted); text-decoration: none; line-height: 1.5; }
.mega__subs a:hover, .mega__subs .mega__all { color: var(--c-primary); }
.mega__subs .mega__all { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.mega__all svg { width: 14px; height: 14px; }
.mega__foot { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--c-border); }
@media (max-width: 1023px) { .mega { display: none !important; } }

/* Мобилно меню (цял екран) */
.menu-panel { position: fixed; inset: 0; z-index: 100; background: #fff; display: grid; grid-template-rows: auto 1fr auto; transform: translateX(-100%); visibility: hidden; transition: transform 250ms ease, visibility 250ms; }
.menu-panel.is-open, .menu-panel:target { transform: none; visibility: visible; }
.menu-panel__top { display: flex; align-items: center; justify-content: space-between; padding: 10px var(--gutter); border-bottom: 1px solid var(--c-border); }
.menu-panel__top img { height: 40px; width: auto; }
.menu-panel__body { overflow-y: auto; padding: 8px var(--gutter) 24px; }
.m-acc { list-style: none; }
.m-acc > li { border-bottom: 1px solid var(--c-border); }
.m-acc__row { display: flex; align-items: center; justify-content: space-between; }
.m-acc__row a { flex: 1; padding: 14px 0; font-size: 17px; font-weight: 700; text-decoration: none; }
.m-acc__row button { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; color: var(--c-primary); }
.m-acc__row button svg { width: 20px; height: 20px; transition: transform var(--ease); }
.m-acc__row button[aria-expanded="true"] svg { transform: rotate(180deg); }
.m-acc__subs { list-style: none; padding: 0 0 12px 12px; display: grid; gap: 2px; }
.m-acc__subs[hidden] { display: none; }
.m-acc__subs a { display: block; padding: 8px 0; font-size: 15px; color: var(--c-muted); text-decoration: none; }
.m-links { list-style: none; margin-top: 12px; }
.m-links a { display: flex; align-items: center; gap: 10px; padding: 12px 0; font-size: 17px; font-weight: 600; text-decoration: none; }
.m-links svg { width: 20px; height: 20px; color: var(--c-primary); }
.menu-panel__foot { display: grid; gap: 8px; padding: 16px var(--gutter) 24px; background: var(--c-surface); }
.menu-panel__foot a { display: flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; }
.menu-panel__foot svg { width: 18px; height: 18px; color: var(--c-primary); }

/* Side cart (фиксиран панел отдясно) */
.overlay { position: fixed; inset: 0; background: rgba(31,26,23,.45); z-index: 90; opacity: 0; visibility: hidden; transition: opacity 250ms, visibility 250ms; }
.overlay.is-open { opacity: 1; visibility: visible; }
.sidecart { position: fixed; top: 0; right: 0; bottom: 0; z-index: 95; width: min(420px, 100%); background: #fff; display: grid; grid-template-rows: auto 1fr auto; box-shadow: var(--shadow-panel); transform: translateX(100%); visibility: hidden; transition: transform 250ms ease, visibility 250ms; } /* разрешено: side cart (PLAN 4.1 - 420px) */
.sidecart.is-open, .sidecart:target { transform: none; visibility: visible; }
.sidecart__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--c-border); }
.sidecart__head h2 { font-size: 20px; }
.sidecart__items { overflow-y: auto; padding: 8px 20px; list-style: none; }
.sc-row { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--c-border); }
.sc-row img { width: 72px; height: 72px; border-radius: var(--r-img); object-fit: cover; }
.sc-row__name { font-size: 15px; font-weight: 600; line-height: 1.4; text-decoration: none; }
.sc-row__meta { font-size: 13px; color: var(--c-muted); line-height: 1.45; margin-top: 2px; }
.sc-row__line { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 14px; font-weight: 700; }
.sc-row__x { align-self: start; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 0; background: none; color: var(--c-muted); }
.sc-row__x:hover { background: var(--c-surface); color: var(--c-sale); }
.sc-row__x svg { width: 18px; height: 18px; }
.sidecart__foot { display: grid; gap: 10px; padding: 18px 20px 22px; border-top: 1px solid var(--c-border); background: var(--c-surface); }
.sidecart__sum { display: flex; justify-content: space-between; font-size: 17px; font-weight: 800; }
.sidecart__foot .muted { font-size: 13px; }
.sidecart__foot .link-center { text-align: center; font-weight: 600; font-size: 15px; }
.empty-state { display: grid; justify-items: center; gap: 14px; padding: 48px 20px; text-align: center; }
.empty-state > svg { width: 48px; height: 48px; color: var(--c-muted); }
#prazno .empty-state > svg { width: 56px; height: 56px; }
.sidecart.is-empty .sidecart__items, .sidecart.is-empty .sidecart__foot { display: none; }
.sidecart:not(.is-empty) .sidecart__empty { display: none; }
.sidecart.is-empty { grid-template-rows: auto 1fr; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer { background: var(--c-dark); color: rgba(255,255,255,.80); font-size: 15px; }
.site-footer a { color: rgba(255,255,255,.80); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer h4 { color: #fff; margin-bottom: 14px; }
.footer-fb { padding-block: 48px 40px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-fb__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin-bottom: 20px; }
.footer-fb__head h4 { margin: 0; }
.footer-fb__head a { color: var(--c-accent); font-weight: 700; }
.fb-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.fb-grid a { display: block; border-radius: var(--r-img); overflow: hidden; aspect-ratio: 1 / 1; } /* разрешено: снимки */
.fb-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease, opacity var(--ease); }
.fb-grid a:hover img { transform: scale(1.05); opacity: .9; }
@media (max-width: 767px) { .fb-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px var(--gap-cards); padding-block: 48px; }
@media (max-width: 1023px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 767px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; padding-block: 36px; } }
.footer-col ul { list-style: none; display: grid; gap: 8px; }
.footer-logo { display: grid; place-items: center; width: 116px; aspect-ratio: 1; background: #fff; border-radius: 50%; margin-bottom: 16px; } /* декоративно: кръгът около логото */
.footer-logo img { width: 72px; height: auto; } /* диагоналът на логото (≈97px) < кръга 116px → нищо не излиза */
.footer-about { line-height: 1.6; margin-bottom: 16px; }
.footer-contacts li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contacts svg { width: 18px; height: 18px; margin-top: 3px; color: var(--c-accent); }
.social { display: flex; gap: 8px; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; }
.social a:hover { background: var(--c-accent); }
.social svg { width: 18px; height: 18px; }
.footer-news { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 32px; align-items: center; padding: 28px 32px; margin-bottom: 48px; border-radius: var(--r-card); background: rgba(255,255,255,.06); }
.footer-news h4 { margin-bottom: 4px; }
.footer-news form { display: flex; gap: 8px; }
.footer-news input { flex: 1; min-width: 0; padding: 13px 18px; border-radius: var(--r-pill); border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: #fff; font-size: 16px; }
.footer-news input::placeholder { color: rgba(255,255,255,.55); }
@media (max-width: 767px) { .footer-news { grid-template-columns: 1fr; padding: 22px 18px; } .footer-news form { flex-direction: column; } }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-block: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: 14px; }
.footer-bottom a { color: #fff; font-weight: 600; }

/* =====================================================================
   ЛЕПИЛО ЗА WORDPRESS / WOOCOMMERCE (няма го в макета - разметката идва от ядрото)
   ===================================================================== */
/* Текстът само за екранни четци на WP/Woo (напр. описанието до бутона „Добави")
   се крие като .sr-only - разрешено: достъпност, не съдържание */
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { position: fixed; top: 8px; left: 8px; width: auto; height: auto; margin: 0; clip: auto; padding: 10px 16px; background: var(--c-dark); color: #fff; z-index: 999; border-radius: var(--r-field); }

/* Woo съобщенията рисуват .notice от макета (3.5 Форма / Съобщения) */
.woocommerce-message, .woocommerce-info, .woocommerce-error { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; padding: 14px 18px; margin: 0 0 20px; border-radius: var(--r-img); background: var(--c-surface); border: 1px solid var(--c-border); font-size: 15px; list-style: none; }
.woocommerce-message { background: #E9F5EE; border-color: #BFE0CC; color: #1E5A38; }
.woocommerce-error { display: grid; gap: 4px; background: #FDECEE; border-color: #F5C2C8; color: #8A1426; }
.woocommerce-message .button, .woocommerce-info .button { order: 2; margin-left: auto; font-weight: 700; color: inherit; }

/* Woo AJAX „Добави": бутонът показва, че работи; линкът „View cart", който Woo
   лепи след бутона, е излишен - side cart-ът се отваря сам (PLAN 4.1) */
.add_to_cart_button.loading { opacity: .6; pointer-events: none; }
.card-prod .added_to_cart { display: none; }
.sidecart.is-busy .sidecart__items, .sidecart.is-busy .sidecart__foot { opacity: .55; pointer-events: none; transition: opacity var(--ease); }

/* Лентата на WP за логнат админ: sticky хедърът да не влиза под нея */
@media (min-width: 783px) { .admin-bar .site-header { top: 32px; } }

/* FiboSearch рисува своя форма в .header-search - стилизира се само обвивката (PLAN 2.9) */
.header-search .dgwt-wcas-search-wrapp { margin-inline: auto; }

/* Банерът за бисквитки (S1.1, без макет - токените на base.css). Разрешено:
   position:fixed на .cookie-bar (TASKS S1, едничкото ново изключение). */
.cookie-bar { position: fixed; left: 0; right: 0; bottom: 16px; z-index: 85; pointer-events: none; }
.cookie-bar__box { display: flex; align-items: center; gap: 16px 24px; padding: 18px 22px; background: var(--c-dark); color: #fff; border-radius: var(--r-card); box-shadow: var(--shadow-panel); pointer-events: auto; }
.cookie-bar__text { margin: 0; flex: 1 1 auto; font-size: 15px; line-height: 1.5; }
.cookie-bar__text a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.cookie-bar__btns { display: flex; gap: 10px; flex: 0 0 auto; }
.cookie-bar .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.cookie-bar .btn-ghost:hover { background: #fff; color: var(--c-dark); border-color: #fff; }
@media (max-width: 767px) {
  .cookie-bar { bottom: 12px; }
  .cookie-bar__box { flex-direction: column; align-items: stretch; padding: 16px; gap: 14px; }
  .cookie-bar__btns { flex-direction: column; }
}
