@charset "UTF-8";
/* =========================================================================
   ИМПРЕСИЯ - theme.css (редизайн 2026)
   Единственият stylesheet на сайта. Написан от нулата - не наследява нищо
   от старата купена тема (style.css / settings.css / product.css и др.).
   Включва собствен layout слой, който замества Bootstrap CSS, за да
   работят и страниците, които още не сме предизайнвали (кошница, поръчка,
   акаунт, идеи), без да зависим от 120KB чужд CSS.

   СЪДЪРЖАНИЕ
     01. Токени
     02. Reset и база
     03. Layout (container / grid / utilities)
     04. Типография
     05. Бутони
     06. Форми
     07. Таблици
     08. Хедър (топ лента / навигация / мега-меню / мини-кошница)
     09. Начална страница (hero / доверие / категории / марки)
     10. Продуктова карта и решетки
     11. Листинг (странична лента / филтри / пагинация)
     12. Продуктова страница
     13. Кошница, поръчка, акаунт
     14. Футър
     15. Помощни класове от стария код
     16. Responsive
   ========================================================================= */

@import url('webfonts/fonts.css');

/* ---------- 01. Токени ---------- */
:root {
  /* Основна палитра: топла хартия + керемидено (от логото) + дълбоко зелено (от логото) */
  --ink:            #241C17;
  --ink-soft:       #4A3F37;
  --muted:          #857567;
  --muted-2:        #A89684;

  --paper:          #FFFFFF;
  --paper-2:        #FBF8F4;
  --paper-3:        #F4EDE4;
  --line:           #E7DCCE;
  --line-strong:    #D8C9B6;

  --accent:         #D4501E;
  --accent-ink:     #B33F14;
  --accent-soft:    #FBE9E0;
  --accent-softer:  #FDF4EF;

  --green:          #2E6F4E;
  --green-soft:     #E4F0E8;
  --gold:           #C8912B;
  --danger:         #C0392B;

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(36,28,23,.06);
  --shadow-sm: 0 2px 8px rgba(36,28,23,.06);
  --shadow:    0 8px 28px rgba(36,28,23,.10);
  --shadow-lg: 0 18px 48px rgba(36,28,23,.16);

  --font-display: 'Rubik', 'Segoe UI', sans-serif;
  --font-body:    'Inter', 'Segoe UI', sans-serif;

  --gutter: 14px;
  --container: 1260px;
  --ease: cubic-bezier(.2,.7,.3,1);
}

/* ---------- 02. Reset и база ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
body, html { overflow-x: hidden; } /* нищо да не разпъва страницата встрани */

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; border: 0; vertical-align: middle; }
svg { vertical-align: middle; }

a { color: var(--accent-ink); text-decoration: none; transition: color .15s var(--ease); }
a:hover, a:focus { color: var(--accent); text-decoration: none; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }

::selection { background: var(--accent-soft); color: var(--ink); }

/* ---------- 03. Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}
.container-fluid { width: 100%; padding-inline: 20px; }

.row {
  display: flex;
  flex-wrap: wrap;
  margin-inline: calc(var(--gutter) * -1);
}
.row > [class*="col-"] { padding-inline: var(--gutter); width: 100%; }

/* 12-колонна решетка - същите имена на класове като Bootstrap 3,
   за да продължат да работят страниците, които още не сме пипали. */
.col-xs-1  { width: 8.3333%; }  .col-xs-2  { width: 16.6667%; }
.col-xs-3  { width: 25%; }      .col-xs-4  { width: 33.3333%; }
.col-xs-5  { width: 41.6667%; } .col-xs-6  { width: 50%; }
.col-xs-7  { width: 58.3333%; } .col-xs-8  { width: 66.6667%; }
.col-xs-9  { width: 75%; }      .col-xs-10 { width: 83.3333%; }
.col-xs-11 { width: 91.6667%; } .col-xs-12 { width: 100%; }

@media (min-width: 768px) {
  .col-sm-1  { width: 8.3333%; }  .col-sm-2  { width: 16.6667%; }
  .col-sm-3  { width: 25%; }      .col-sm-4  { width: 33.3333%; }
  .col-sm-5  { width: 41.6667%; } .col-sm-6  { width: 50%; }
  .col-sm-7  { width: 58.3333%; } .col-sm-8  { width: 66.6667%; }
  .col-sm-9  { width: 75%; }      .col-sm-10 { width: 83.3333%; }
  .col-sm-11 { width: 91.6667%; } .col-sm-12 { width: 100%; }
  .col-sm-push-7 { order: 2; }
  .col-sm-pull-5 { order: 1; }
}
@media (min-width: 992px) {
  .col-md-1  { width: 8.3333%; }  .col-md-2  { width: 16.6667%; }
  .col-md-3  { width: 25%; }      .col-md-4  { width: 33.3333%; }
  .col-md-5  { width: 41.6667%; } .col-md-6  { width: 50%; }
  .col-md-7  { width: 58.3333%; } .col-md-8  { width: 66.6667%; }
  .col-md-9  { width: 75%; }      .col-md-10 { width: 83.3333%; }
  .col-md-11 { width: 91.6667%; } .col-md-12 { width: 100%; }
}
@media (min-width: 1200px) {
  .col-lg-3 { width: 25%; } .col-lg-4 { width: 33.3333%; }
  .col-lg-6 { width: 50%; } .col-lg-8 { width: 66.6667%; }
  .col-lg-12 { width: 100%; }
}

.clearfix::after, .clear { content: ''; display: block; clear: both; }
.clear { height: 0; }
.pull-right { float: right; }
.pull-left  { float: left; }
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }
.full-width  { width: 100%; }

.list-unstyled { list-style: none; padding: 0; margin: 0; }
.list-inline   { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.img-responsive { display: block; max-width: 100%; height: auto; }
.img-rounded { border-radius: var(--radius-sm); }
.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;
}
.hidden { display: none !important; }
@media (max-width: 767px) { .hidden-xs { display: none !important; } }
@media (min-width: 768px) and (max-width: 991px) { .hidden-sm { display: none !important; } }
@media (min-width: 992px) { .hidden-md { display: none !important; } }

.spacer10 { height: 10px; }

/* Секции */
.section { padding: 56px 0; }
.section--tight { padding: 36px 0; }
.section--paper { background: var(--paper-2); }

/* ---------- 04. Типография ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.015em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(26px, 3vw, 36px); }
h2 { font-size: clamp(21px, 2.2vw, 27px); }
h3 { font-size: 18px; }
h4 { font-size: 16px; }
h5 { font-size: 14px; }
p { margin: 0 0 1em; }
strong, b { font-weight: 650; color: var(--ink); }
small { font-size: 12.5px; }

/* Заглавие на секция с "мазка" отдолу - лек фирмен акцент */
.s-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}
.s-title {
  position: relative;
  margin: 0;
  padding-bottom: 12px;
}
.s-title::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 46px; height: 4px;
  border-radius: var(--radius-pill);
  background: var(--accent);
}
.s-title--center { text-align: center; }
.s-title--center::after { left: 50%; transform: translateX(-50%); }
.s-link {
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 14px;
}
.s-link i { transition: transform .15s var(--ease); }
.s-link:hover i { transform: translateX(3px); }

/* Трохи */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  font-size: 12.5px;
  color: var(--muted);
}
.breadcrumb > li + li::before {
  content: '/';
  margin-right: 8px;
  color: var(--line-strong);
}
.breadcrumb > li { display: flex; align-items: center; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb > .active { color: var(--ink); font-weight: 500; }

/* ---------- 05. Бутони ---------- */
.but, .btn, button.but, input.but, a.but {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
  transition: background .16s var(--ease), transform .16s var(--ease), box-shadow .16s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.but:hover, .btn:hover, .but:focus, .btn:focus {
  background: var(--accent-ink);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.but:active, .btn:active { transform: translateY(0); }

.but--ghost, .btn-link {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.but--ghost:hover, .btn-link:hover {
  background: var(--paper-3);
  color: var(--ink);
  border-color: var(--line-strong);
}
.but--dark { background: var(--ink); }
.but--dark:hover { background: #3A2C23; }
.but--block, .btn-block { width: 100%; }
.but--sm { padding: 9px 16px; font-size: 13px; }
.but[disabled], .btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: #fff; }

/* ---------- 06. Форми ---------- */
input[type="text"], input[type="email"], input[type="password"], input[type="tel"],
input[type="number"], input[type="search"], input[type="url"], select, textarea,
.form-control, .frminput {
  width: 100%;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23857567' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus, .form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-softer);
  outline: none;
}
input::placeholder, textarea::placeholder { color: var(--muted-2); }
label { display: inline-block; font-size: 13.5px; font-weight: 500; color: var(--ink); margin-bottom: 6px; }
.form-group { margin-bottom: 18px; }
.help-block { font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.input-group { display: flex; }
.input-group .form-control { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.input-group-addon {
  display: flex; align-items: center;
  padding: 0 14px;
  background: var(--paper-3);
  border: 1px solid var(--line-strong);
  border-left: 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 13px; color: var(--muted);
}
input[type="checkbox"], input[type="radio"] { width: auto; accent-color: var(--accent); }

.formPanel {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.formField { margin-bottom: 16px; }

/* Съобщения */
.alert {
  position: relative;
  border-radius: var(--radius-sm);
  padding: 14px 44px 14px 16px;
  margin-bottom: 20px;
  font-size: 14px;
  border: 1px solid transparent;
}
.alert-success { background: var(--green-soft); border-color: #C6E2D0; color: #1E4E36; }
.alert-danger, .alert-error, .msg_err { background: #FBE9E7; border-color: #F3C7C1; color: #8E2A1D; }
.alert .close {
  position: absolute; top: 8px; right: 10px;
  background: none; border: 0; font-size: 22px; line-height: 1;
  color: inherit; opacity: .5; cursor: pointer;
}
.alert .close:hover { opacity: 1; }
.msg_ok { background: var(--green-soft); border: 1px solid #C6E2D0; color: #1E4E36; border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 16px; }
.msg_err { border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 16px; }
.attention { color: var(--danger); font-size: 13px; }

/* ---------- 07. Таблици ---------- */
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; }

.table, .cart-contents {
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 14px;
}
.table thead th, .cart-contents thead th {
  background: var(--paper-3);
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink);
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.table td, .cart-contents td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.table tbody tr:last-child td, .cart-contents tbody tr:last-child td { border-bottom: 0; }
.cart-contents img { border-radius: var(--radius-xs); background: var(--paper-3); }

/* ---------- 08. Хедър ---------- */
.header-wrapper { position: relative; z-index: 100; background: var(--paper); }

/* Бисквитки */
.cookiebar {
  position: fixed;
  left: 20px; right: 20px; bottom: 20px;
  z-index: 450;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  max-width: 760px;
  margin-inline: auto;
  background: var(--ink);
  color: #E9E0D6;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 16px 22px;
  font-size: 13.5px;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.cookiebar p { margin: 0; line-height: 1.5; }
.cookiebar a { color: #F2C4A8; text-decoration: underline; text-underline-offset: 2px; }
.cookiebar a:hover { color: #fff; }
.cookiebar .but { flex: none; }
.cookiebar.is-hidden { opacity: 0; transform: translateY(12px); }

/* Топ лента */
.top-info-bar {
  background: var(--ink);
  color: #C9BCB0;
  font-size: 12.5px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.top-info-bar .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 42px; }
.topList { display: flex; align-items: center; gap: 22px; list-style: none; margin: 0; padding: 0; }
.topList li { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.topList a { color: #C9BCB0; }
.topList a:hover { color: #fff; }
.topList i {
  font-size: 12px;
  color: var(--accent);
  background: none !important;
  padding: 0;
  width: auto;
}
.functionList { display: flex; align-items: center; gap: 20px; list-style: none; margin: 0; padding: 0; }
.functionList > li { display: flex; align-items: center; gap: 8px; }
.functionList a { color: #C9BCB0; font-size: 12.5px; }
.functionList a:hover { color: #fff; }
.functionList i { color: var(--muted-2); background: none !important; padding: 0; font-size: 13px; }

/* Търсене */
#searchbox { display: flex; position: relative; }
#searchbox input[type="text"] {
  width: 210px;
  height: 34px;
  padding: 0 40px 0 14px;
  font-size: 13px;
  color: #fff;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-pill);
}
#searchbox input[type="text"]::placeholder { color: #9A8B7E; }
#searchbox input[type="text"]:focus {
  background: rgba(255,255,255,.14);
  border-color: var(--accent);
  box-shadow: none;
}
#searchbox input[type="submit"] {
  position: absolute;
  right: 0; top: 0;
  width: 38px; height: 34px;
  padding: 0;
  font-size: 0;
  color: transparent;
  background: transparent;
  border: 0;
  border-radius: var(--radius-pill);
  cursor: pointer;
}
#searchbox::after {
  content: '\f002';
  font-family: FontAwesome;
  position: absolute;
  right: 14px; top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: var(--muted-2);
  pointer-events: none;
}

/* Навигация */
#menuBar {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
#menuBar.is-stuck {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  box-shadow: var(--shadow);
  animation: navDrop .25s var(--ease);
}
@keyframes navDrop { from { transform: translateY(-100%); } to { transform: translateY(0); } }
#menuBar .container {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 76px;
}
.navbar-header { display: flex; align-items: center; gap: 12px; }
.navbar-brand { display: inline-flex; align-items: center; padding: 0; }
.navbar-brand img { height: 38px; width: auto; }
.navbar-collapse { flex: 1; display: flex; justify-content: flex-end; }

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.navbar-nav > li { position: relative; }
.navbar-nav > li > a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  padding: 12px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.navbar-nav > li > a:hover,
.navbar-nav > li.open > a { background: var(--paper-3); color: var(--accent-ink); }
/* иконките, идващи от админа, се крият - менюто е чисто текстово */
.navbar-nav > li > a > i { display: none; }
.navbar-nav > li > a.dropdown-toggle::after {
  content: '\f107';
  font-family: FontAwesome;
  font-size: 13px;
  color: var(--muted-2);
}

/* Падащи менюта */
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px;
  list-style: none;
  margin: 0;
  z-index: 300;
}
.dropdown.open > .dropdown-menu { display: block; }
.dropdown-menu-right { left: auto; right: 0; }
.dropdown-menu > li > a {
  display: block;
  padding: 9px 14px;
  font-size: 13.5px;
  color: var(--ink-soft);
  border-radius: var(--radius-xs);
}
.dropdown-menu > li > a:hover { background: var(--paper-3); color: var(--accent-ink); }

/* Мега-меню с категориите - две нива */
.megaDropMenu { position: static; }
.megaDropMenu > .dropdown-menu {
  left: 50%;
  transform: translateX(-50%);
  width: min(1000px, calc(100vw - 40px));
  padding: 0;
  overflow: hidden;
}
.megawrap { display: grid; grid-template-columns: 290px minmax(0, 1fr); min-height: 380px; }

.megatabs { list-style: none; margin: 0; padding: 10px; background: var(--paper-2); border-right: 1px solid var(--line); }
.megatab > a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink);
}
.megatab > a > i:first-child { color: var(--accent); width: 17px; text-align: center; font-size: 14px; flex: none; }
.megatab > a > span { flex: 1; min-width: 0; }
.megatab__chev { color: var(--muted-2); font-size: 13px; opacity: 0; transition: opacity .12s var(--ease); }
.megatab.is-active > a { background: var(--paper); box-shadow: var(--shadow-xs); color: var(--accent-ink); }
.megatab.is-active .megatab__chev { opacity: 1; }

.megapanels { position: relative; padding: 22px 26px; }
.megapanel { display: none; }
.megapanel.is-active { display: block; animation: megaFade .16s var(--ease); }
@keyframes megaFade { from { opacity: 0; transform: translateX(4px); } to { opacity: 1; transform: none; } }
.megapanel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.megapanel__head h3 { font-size: 16px; margin: 0; }
.megapanel__all { font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.megapanel__links { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 26px; }
.megapanel__links li { break-inside: avoid; }
.megapanel__links a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink-soft);
}
.megapanel__links a:hover { color: var(--accent-ink); }
.megapanel__links em { font-style: normal; font-size: 11px; color: var(--muted-2); }

/* Мини-кошница в хедъра */
.cart-dropdown { position: relative; }
.shop-cart {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 44px;
  padding: 0 18px;
  background: var(--accent);
  color: #fff !important;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
}
.shop-cart:hover { background: var(--accent-ink); color: #fff !important; }
.shop-cart .badge {
  min-width: 21px;
  height: 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.24);
  color: #fff;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 600;
  padding: 0 6px;
}
.top-info-bar .shop-cart { height: 30px; padding: 0 12px; font-size: 12.5px; }

#basketbox {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 330px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
  z-index: 300;
  text-align: left;
}
#basketbox.open { display: block; }
.shortbasket a { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.shortbasket a:last-child { border-bottom: 0; }
.shortbasket h4 { font-size: 13px; margin: 0 0 3px; font-weight: 500; }
.shortbasket .price { color: var(--accent-ink); font-weight: 600; font-size: 13px; }

/* Мобилен бутон за меню */
.navbar-toggle {
  display: none;
  width: 44px; height: 44px;
  background: var(--paper-3);
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}
.navbar-toggle .icon-bar { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ---------- 09. Начална страница ---------- */
.hero { padding: 26px 0 0; }
.hero__grid {
  display: grid;
  grid-template-columns: 276px 1fr;
  gap: 24px;
  align-items: stretch;
}

/* Лява колона с категориите */
.hero__cats {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 0;
  overflow: hidden;
}
.hero__cats-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink);
  margin: 0;
  padding: 12px 20px 14px;
  border-bottom: 1px solid var(--line);
}
.hero__cats-title i { color: var(--accent); }
.hero__cats ul { list-style: none; margin: 6px 0 0; padding: 0; }
.hero__cats li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 20px;
  font-size: 13.5px;
  line-height: 1.35;
  color: var(--ink-soft);
  border-left: 3px solid transparent;
  transition: background .14s var(--ease), border-color .14s var(--ease), color .14s var(--ease);
}
.hero__cats li a > i:first-child { color: var(--accent); width: 17px; text-align: center; font-size: 14px; flex: none; }
.hero__cats li a span { flex: 1; min-width: 0; }
.hero__cats li a .chev { color: var(--line-strong); font-size: 13px; opacity: 0; transition: opacity .14s var(--ease), transform .14s var(--ease); }
.hero__cats li a:hover {
  background: var(--accent-softer);
  border-left-color: var(--accent);
  color: var(--accent-ink);
}
.hero__cats li a:hover .chev { opacity: 1; transform: translateX(2px); }

/* Сцената вдясно */
.hero__stage {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(150deg, #2C221C 0%, #4A3226 55%, #7A3F1E 100%);
  min-height: 440px;
  display: flex;
  align-items: center;
  isolation: isolate;
}
/* Декор: "капки боя" - тихи, не пречат на текста */
.hero__art { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero__art span { position: absolute; border-radius: 50%; }
.hero__art .b1 { width: 340px; height: 340px; right: -70px; top: -110px; background: radial-gradient(circle at 35% 35%, #E4622B, #C0400F); opacity: .92; }
.hero__art .b2 { width: 190px; height: 190px; right: 190px; bottom: -70px; background: var(--green); opacity: .5; }
.hero__art .b3 { width: 120px; height: 120px; right: 40px; bottom: 60px; background: var(--gold); opacity: .75; }
.hero__art .ring {
  position: absolute;
  right: 70px; top: 34%;
  width: 320px; height: 320px;
  border: 22px solid rgba(255,255,255,.055);
  border-radius: 46% 54% 60% 40% / 52% 45% 55% 48%;
  transform: rotate(-14deg);
}
.hero__content { position: relative; padding: 56px 60px; max-width: 610px; }
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.16);
  color: #F5DCCB;
  font-size: 12.5px;
  font-weight: 500;
  border-radius: var(--radius-pill);
  padding: 7px 15px;
  margin-bottom: 20px;
}
.hero__content h1 {
  color: #fff;
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  text-wrap: balance;
}
.hero__content p { color: #DCCCBE; font-size: 15.5px; line-height: 1.65; margin: 0 0 28px; max-width: 470px; }
.hero__content p strong { color: #fff; font-weight: 600; }
.hero__cta { background: #fff; color: var(--ink) !important; }
.hero__cta:hover { background: var(--accent); color: #fff !important; }

/* Лента с доверие */
.trust { border-bottom: 1px solid var(--line); padding: 30px 0; }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.trust__item { display: flex; align-items: center; gap: 14px; }
.trust__item > i {
  flex: none;
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft);
  color: var(--accent-ink);
  border-radius: 50%;
  font-size: 17px;
}
.trust__item strong { display: block; font-family: var(--font-display); font-size: 13.5px; font-weight: 600; color: var(--ink); }
.trust__item span { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.45; }

/* Плочки с групите категории */
.cattiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.cattile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  padding: 26px 16px 22px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
}
.cattile:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent-soft); }
.cattile__icon {
  width: 58px; height: 58px;
  display: flex; align-items: center; justify-content: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent);
  font-size: 21px;
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.cattile:hover .cattile__icon { background: var(--accent); border-color: var(--accent); color: #fff; }
.cattile__title {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
}

/* Марки */
.brands { background: var(--paper-2); }
.brandrow { display: flex; align-items: center; justify-content: center; gap: 56px; flex-wrap: wrap; }
.brandbox img {
  max-height: 64px; width: auto;
  filter: grayscale(1);
  opacity: .55;
  transition: filter .2s var(--ease), opacity .2s var(--ease);
}
.brandbox:hover img { filter: none; opacity: 1; }

/* ---------- 10. Продуктова карта ---------- */
.pgrid {
  display: grid;
  grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
  gap: 22px;
}
.pgrid--3 { --cols: 3; }
.pgrid--4 { --cols: 4; }

.pcard {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
}
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }

.pcard__media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  background: var(--paper-2);
  overflow: hidden;
}
.pcard__media img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 16px;
  transition: transform .3s var(--ease);
}
.pcard:hover .pcard__media img { transform: scale(1.04); }

/* Етикети (НОВО, Промо...) - малки, в горния ляв ъгъл, не пипат снимката */
.pcard__flags {
  position: absolute;
  top: 12px; left: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  z-index: 2;
  pointer-events: none;
}
.pcard__flag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #fff;
  background: var(--green);
  border-radius: var(--radius-xs);
  padding: 4px 9px;
  line-height: 1.25;
  box-shadow: var(--shadow-xs);
}

.pcard__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
  padding: 16px 18px 18px;
}
.pcard__brand { height: 16px; display: flex; align-items: center; }
.pcard__brand img { max-height: 16px; width: auto; opacity: .55; }
.pcard__title {
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--ink);
  margin: 0;
  /* максимум 3 реда, за да са картите с еднаква височина */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pcard__title a { color: inherit; }
.pcard__title a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.pcard:hover .pcard__title { color: var(--accent-ink); }

.pcard__foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.pcard__price {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.pcard__go {
  flex: none;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--paper-3);
  color: var(--ink);
  font-size: 13px;
  transition: background .16s var(--ease), color .16s var(--ease);
}
.pcard:hover .pcard__go { background: var(--accent); color: #fff; }

.pcard--soldout .pcard__media img { opacity: .5; }
.pcard__soldout {
  position: absolute;
  inset: auto 0 0 0;
  background: rgba(36,28,23,.82);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  text-align: center;
  padding: 6px;
  z-index: 2;
}

/* Празен резултат */
.empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 70px 20px;
  color: var(--muted);
  background: var(--paper-2);
  border-radius: var(--radius);
}
.empty i { font-size: 32px; color: var(--line-strong); display: block; margin-bottom: 14px; }

/* Заглавна секция върху снимка - с тъмен слой за контраст */
.page-cover {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 74px 0 60px;
  margin-bottom: 34px;
}
.page-cover::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,15,12,.35) 0%, rgba(20,15,12,.75) 100%);
}
.page-cover .container { position: relative; z-index: 1; }
.page-cover h1 { color: #fff; margin: 0; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.page-cover .breadcrumb, .page-cover .breadcrumb a { color: rgba(255,255,255,.8); }
.page-cover .breadcrumb > .active { color: #fff; }
.page-cover .breadcrumb > li + li::before { color: rgba(255,255,255,.45); }

/* ---------- 11. Листинг ---------- */
.page-head { background: var(--paper-2); border-bottom: 1px solid var(--line); padding: 22px 0 28px; }
.page-head h1 { margin: 0; }
.page-head--slim { background: transparent; border-bottom: 0; padding: 18px 0 0; }

.cat-descr { margin-top: 12px; color: var(--muted); font-size: 13.5px; max-width: 820px; }
/* Описанията в админа често са копирани от Word и носят inline стилове
   (background:white, Times New Roman, фиксирани размери). Изчистваме ги,
   за да изглежда текстът като част от сайта. */
.cat-descr [style] {
  background: none !important;
  background-color: transparent !important;
  font-family: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
  color: inherit !important;
}
.cat-descr p { margin: 0 0 .7em; }
.cat-descr p:last-child { margin-bottom: 0; }
.cat-descr--clamp { max-height: 4.4em; overflow: hidden; }
.cat-descr-toggle {
  display: inline-block; margin-top: 8px;
  font-size: 12.5px; font-weight: 600; color: var(--accent-ink); cursor: pointer;
}
.cat-descr-toggle:hover { color: var(--accent); }

.listing { padding: 34px 0 70px; }
.listing__grid { display: grid; grid-template-columns: 258px 1fr; gap: 34px; align-items: start; }

.sidebar { position: sticky; top: 20px; }
.sidebar__block { padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.sidebar__block:last-of-type { border-bottom: 0; }
.sidebar__block h3 {
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink);
  margin: 0 0 14px;
}
/* Пълно дърво с категориите */
.ctree { list-style: none; margin: 0; padding: 0; }
.ctree__group + .ctree__group { border-top: 1px solid var(--line); }
.ctree__toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 0;
  background: none;
  border: 0;
  text-align: left;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink);
  cursor: pointer;
}
.ctree__toggle > i:first-child { color: var(--accent); width: 16px; text-align: center; font-size: 13px; flex: none; }
.ctree__toggle > span { flex: 1; min-width: 0; }
.ctree__chev { color: var(--muted-2); font-size: 12px; transition: transform .16s var(--ease); }
.ctree__toggle:hover { color: var(--accent-ink); }
.ctree__group.is-open > .ctree__toggle { color: var(--accent-ink); font-weight: 600; }
.ctree__group.is-open .ctree__chev { transform: rotate(180deg); }

.ctree__subs { list-style: none; margin: 0 0 10px; padding: 0 0 0 26px; display: none; }
.ctree__group.is-open > .ctree__subs { display: block; }
.ctree__subs li a {
  display: block;
  padding: 5px 0;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--muted);
}
.ctree__subs li a:hover { color: var(--accent-ink); }
.ctree__subs li.active a { color: var(--accent-ink); font-weight: 600; }
.ctree__all a { font-weight: 600; color: var(--ink-soft) !important; }

.filter-checks { display: flex; flex-direction: column; gap: 10px; max-height: 260px; overflow-y: auto; padding-right: 4px; }
.fcheck {
  display: flex; align-items: center; gap: 9px;
  font-size: 13.5px; font-weight: 400; color: var(--ink-soft);
  cursor: pointer; margin: 0;
}
.fcheck input { margin: 0; flex: none; }
.fcheck span { flex: 1; min-width: 0; }
.fcheck em { font-style: normal; font-size: 12px; color: var(--muted-2); }
.price-range { display: flex; align-items: center; gap: 10px; }
.price-range input { width: 0; flex: 1; padding: 9px 11px; font-size: 13px; }
.price-range span { color: var(--muted-2); }
.filter-clear {
  display: block; text-align: center; margin-top: 12px;
  font-size: 12.5px; color: var(--muted);
}
.filter-clear:hover { color: var(--danger); }

.listing__main { min-width: 0; }
.toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding-bottom: 18px; margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.toolbar__count { font-size: 13.5px; color: var(--muted); }
.toolbar__sort { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); margin: 0; }
.toolbar__sort select { width: auto; padding: 8px 34px 8px 12px; font-size: 13px; }
.but.filters-toggle { display: none; }

/* Пагинация */
.pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 38px; }
.pagination a, .pagination span {
  min-width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  color: var(--ink-soft);
  border: 1px solid transparent;
}
.pagination a:hover { background: var(--paper-3); color: var(--ink); }
.pagination .active { background: var(--accent); color: #fff; font-weight: 600; }
.pagination .dots { color: var(--muted-2); min-width: auto; padding: 0 2px; }

/* ---------- 12. Продуктова страница ---------- */
.product { padding: 24px 0 20px; }
.product__grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 48px; align-items: start; }

/* Галерия */
.gallery { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 14px; align-items: start; min-width: 0; }

/* Лента с миниатюри + бутони ИЗВЪН нея (иначе се скролват заедно с тях) */
.gallery__rail { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.gallery__navbtn {
  display: none;
  flex: none;
  width: 100%;
  height: 28px;
  padding: 0;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-size: 12px;
  cursor: pointer;
  transition: background .14s var(--ease), color .14s var(--ease), opacity .14s var(--ease);
}
.gallery__navbtn:hover { background: var(--paper-3); color: var(--accent); }
.gallery__navbtn.is-off { opacity: .35; pointer-events: none; }

.gallery__thumbs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 460px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  min-width: 0;
}
.gallery__thumbs::-webkit-scrollbar { width: 4px; }
.gallery__thumbs::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 4px; }
.gallery__thumbs .prodthumb {
  flex: none;
  width: 100%;
  height: 84px;
  object-fit: contain;
  padding: 6px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color .15s var(--ease);
}
.gallery__thumbs .prodthumb:hover { border-color: var(--line-strong); }
.gallery__thumbs .prodthumb.active { border-color: var(--accent); border-width: 2px; }

.gallery__stage img.prodphoto { max-width: 100%; max-height: 100%; width: auto; object-fit: contain; padding: 20px; }
/* elevateZoom добавя свои елементи; на тесни екрани те разпъваха страницата */
.zoomContainer, .zoomWindowContainer, .zoomLens { max-width: 100%; }
@media (max-width: 991px) { .zoomContainer, .zoomWindowContainer, .zoomLens { display: none !important; } }

#photoleft, #photoright {
  display: none;
  position: absolute; top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  z-index: 3;
}
#photoleft { left: 12px; }
#photoright { right: 12px; }
#photoleft::before, #photoright::before {
  font-family: FontAwesome;
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink); font-size: 16px;
}
#photoleft::before { content: '\f104'; }
#photoright::before { content: '\f105'; }
#photoleft:hover, #photoright:hover { background: #fff; }

/* Информация */
.product__head { margin-bottom: 22px; }
.product__brand { display: inline-flex; margin-bottom: 14px; }
.product__brand img { max-height: 30px; width: auto; }
.product__head h1 { font-size: clamp(22px, 2.4vw, 30px); margin: 0 0 6px; }
.product__subtitle { font-size: 15px; font-weight: 400; color: var(--muted); margin: 0; font-family: var(--font-body); }

/* Панел за поръчка */
.orderbox {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 24px;
}
.orderbox > select#pp { margin-bottom: 16px; }
.orderbox .field-label { font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); display: block; margin-bottom: 8px; }

/* Избор на цвят / шаблон */
.colsel { display: block; }
.colsel__label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  margin-bottom: 10px;
}
.colsel__hint { display: block; font-size: 11.5px; color: var(--muted-2); margin-top: 10px; }

#colorsbox { display: flex; flex-wrap: wrap; gap: 8px; min-height: 32px; }
.colsel__loading { font-size: 12.5px; color: var(--muted-2); }
#colorsbox span {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--line-strong);
  cursor: pointer;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: box-shadow .14s var(--ease), transform .14s var(--ease);
}
#colorsbox span:hover { transform: scale(1.14); box-shadow: 0 0 0 2px var(--accent); z-index: 2; }
#colorsbox span.colactive { box-shadow: 0 0 0 3px var(--ink); }

/* Шаблоните са рисунки, не цветове - показваме ги като по-големи плочки */
#colorsbox.colorsbox--shablon { gap: 10px; }
#colorsbox.colorsbox--shablon span {
  width: 76px; height: 76px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background-color: var(--paper);
  box-shadow: none;
}
#colorsbox.colorsbox--shablon span:hover { transform: translateY(-2px) scale(1.03); box-shadow: var(--shadow-sm); border-color: var(--accent); }
#colorsbox.colorsbox--shablon span.colactive { border-color: var(--accent); border-width: 2px; box-shadow: 0 0 0 2px var(--accent-soft); }

/* Категории на шаблоните */
.shabloncats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.shabloncat {
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  padding: 7px 15px;
  font-family: var(--font-body);
  font-size: 12.5px;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background .14s var(--ease), border-color .14s var(--ease), color .14s var(--ease);
}
.shabloncat:hover { border-color: var(--accent); color: var(--accent-ink); }
.shabloncat.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Избраният цвят/шаблон - показва се СЛЕД мострите и само когато има избор */
.colsel__chosen { display: none; align-items: center; gap: 9px; margin-top: 14px; font-size: 13px; }
.colsel__chosen.is-set { display: flex; }
#selectedcolbg {
  width: 26px; height: 26px;
  flex: none;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--line-strong);
  background-size: cover;
  background-position: center;
}
#selectedcoltitle { color: var(--ink); font-weight: 500; }

/* Уголемяване при посочване */
#colzoom {
  display: none;
  position: absolute;
  width: 190px; height: 190px;
  border-radius: var(--radius);
  border: 3px solid #fff;
  box-shadow: var(--shadow-lg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 400;
  pointer-events: none;
  overflow: hidden;
}
#colzoom .title {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: rgba(36,28,23,.86);
  color: #fff;
  font-size: 11.5px;
  line-height: 1.35;
  text-align: center;
  padding: 6px 8px;
}

/* Долен ред на панела: количество + цена + бутони */
.orderbox .foot {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.quantfld {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 4px;
}
.quantfld input { width: 46px !important; text-align: center; border: 0; padding: 6px 0; font-weight: 600; background: transparent; }
.quantfld input:focus { box-shadow: none; }
.quantfld .lbl {
  position: absolute; top: -20px; left: 0;
  font-size: 11px; color: var(--muted); background: none; width: auto;
}
.quantfld .up, .quantfld .down {
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--muted); border-radius: var(--radius-xs);
  font-size: 11px;
}
.quantfld .up:hover, .quantfld .down:hover { background: var(--paper-3); color: var(--accent); }
#pricebox {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
  margin-left: auto;
  white-space: nowrap;
}
.orderbox .actions { display: flex; gap: 10px; width: 100%; }
.orderbox .actions .but { flex: 1; }
button[name="gofav"] { background: transparent; color: var(--ink); border-color: var(--line-strong); flex: 0 0 auto !important; }
button[name="gofav"]:hover { background: var(--paper-3); color: var(--accent-ink); }
/* Потвърждение/грешка при добавяне в кошницата - точно над бутоните */
.addnotice {
  display: none;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--green-soft);
  border: 1px solid #C6E2D0;
  color: #1E4E36;
  font-size: 13.5px;
  line-height: 1.35;
}
.addnotice.is-shown { display: flex; animation: noticeIn .22s var(--ease); }
@keyframes noticeIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.addnotice > i { font-size: 16px; color: var(--green); flex: none; }
.addnotice > span { flex: 1; min-width: 0; }
.addnotice a { font-weight: 600; color: #1E4E36; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.addnotice a:hover { color: var(--green); }
.addnotice--error { background: #FBE9E7; border-color: #F3C7C1; color: #8E2A1D; }
.addnotice--error > i { color: var(--danger); }

/* лек акцент върху количката в хедъра */
.shop-cart.is-bumped { animation: cartBump .55s var(--ease); }
@keyframes cartBump {
  0%, 100% { transform: scale(1); }
  30%      { transform: scale(1.12); }
  60%      { transform: scale(0.97); }
}

.notavail {
  background: var(--paper-3);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  padding: 16px;
  margin-bottom: 20px;
}

/* Блокове с информация */
.pblock { margin-bottom: 26px; }
.pblock__title {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--font-display);
  font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .05em;
  color: var(--ink);
  padding-bottom: 10px; margin: 0 0 14px;
  border-bottom: 1px solid var(--line);
}
.pblock__title i { color: var(--accent); }
.item-info { font-size: 14px; line-height: 1.75; color: var(--ink-soft); }
.item-info ul { padding-left: 20px; }
.item-info li { margin-bottom: 6px; }

/* Препоръчани продукти - хоризонтална лента */
.linkeditems { display: flex; flex-direction: column; gap: 2px; }
.linkeditems > a { display: block; }
.linkeditems .item {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  transition: background .15s var(--ease);
}
.linkeditems a:hover .item { background: var(--paper-2); }
.linkeditems .item img {
  width: 60px; height: 60px;
  object-fit: contain;
  background: var(--paper-2);
  border-radius: var(--radius-xs);
}
.linkeditems .item h4 {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
  margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.linkeditems a:hover .item h4 { color: var(--accent-ink); }
.linkeditems .item .price {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.linkeditems .item.inbasket { background: var(--green-soft); }
.linkeditems .item .clear { display: none; }

.product__more { padding: 10px 0 40px; font-size: 14px; line-height: 1.75; }
.product__more img { border-radius: var(--radius-sm); }
.similar { border-top: 1px solid var(--line); padding: 40px 0 70px; }

/* ---------- 13. Кошница, поръчка, акаунт ---------- */

/* --- Празна кошница --- */
.cart-empty {
  text-align: center;
  padding: 70px 24px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.cart-empty > i { font-size: 40px; color: var(--line-strong); display: block; margin-bottom: 18px; }
.cart-empty h2 { margin: 0 0 8px; }
.cart-empty p { color: var(--muted); margin-bottom: 24px; }

/* --- Оформление на кошницата --- */
.cart-layout { display: grid; grid-template-columns: minmax(0,1fr) 350px; gap: 34px; align-items: start; }
.cart-items { min-width: 0; }
.cart-items__head {
  display: grid;
  grid-template-columns: 88px minmax(0,1fr) 132px 100px 34px;
  gap: 16px;
  align-items: center;
  padding: 0 4px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
}
.cart-items__head > span:first-child { grid-column: 1 / 3; }
.cart-items__head > span:nth-child(2) { text-align: center; }
.cart-items__head > span:nth-child(3) { text-align: right; }

.citem {
  display: grid;
  grid-template-columns: 88px minmax(0,1fr) 132px 100px 34px;
  gap: 16px;
  align-items: center;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
}
.citem__media {
  position: relative;
  display: block;
  width: 88px; height: 88px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.citem__media img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.citem__swatch {
  position: absolute; top: 6px; left: 6px;
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--line-strong);
}
.citem__info { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.citem__title { font-size: 14px; font-weight: 500; color: var(--ink); line-height: 1.4; }
.citem__title:hover { color: var(--accent-ink); }
.citem__variant { font-size: 12.5px; color: var(--muted); }
.citem__unit { font-size: 12.5px; color: var(--muted); }

.citem__qty {
  display: inline-flex;
  align-items: center;
  justify-self: center;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 3px;
}
.citem__qty input {
  width: 48px;
  text-align: center;
  border: 0;
  padding: 6px 0;
  font-weight: 600;
  background: transparent;
  -moz-appearance: textfield;
}
.citem__qty input::-webkit-outer-spin-button,
.citem__qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.citem__qty input:focus { box-shadow: none; }
.qstep {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-xs);
  color: var(--muted);
  font-size: 10px;
  cursor: pointer;
  user-select: none;
}
.qstep:hover { background: var(--paper-3); color: var(--accent); }

.citem__sum {
  text-align: right;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.citem__remove {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--muted-2);
  font-size: 14px;
}
.citem__remove:hover { background: #FBE9E7; color: var(--danger); }

.cart-continue {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-size: 13.5px;
  font-weight: 600;
}

/* --- Обобщение (кошница и поръчка) --- */
.cart-aside { position: sticky; top: 20px; }
.cart-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.cart-card h2 { font-size: 17px; margin: 0 0 18px; }
.crow {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  font-size: 14px;
  color: var(--ink-soft);
}
.crow > span:last-child { font-weight: 600; color: var(--ink); white-space: nowrap; }
.crow i.fa-info-circle { color: var(--muted-2); font-size: 12px; cursor: help; }
.crow--disc > span:last-child { color: var(--green); }
.crow__free { color: var(--green); font-weight: 600; font-size: 12.5px; }
.crow--total {
  margin-top: 6px;
  padding-top: 16px;
  border-top: 1px solid var(--line-strong);
  font-family: var(--font-display);
  font-size: 16px;
}
.crow--total > span:last-child { font-size: 22px; font-weight: 600; }
.crow__sub { display: block; text-align: right; font-size: 12px; color: var(--muted); }

/* Индикатор за безплатна доставка */
.freeship {
  margin: 16px 0;
  padding: 14px;
  background: var(--paper);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: 13px;
}
.freeship p { margin: 0 0 8px; color: var(--ink-soft); }
.freeship strong { color: var(--accent-ink); }
.freeship__bar { height: 6px; background: var(--paper-3); border-radius: var(--radius-pill); overflow: hidden; }
.freeship__bar > span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--accent), #E8763F);
  border-radius: var(--radius-pill);
  transition: width .3s var(--ease);
}
.freeship--done {
  border-style: solid;
  border-color: #C6E2D0;
  background: var(--green-soft);
  color: #1E4E36;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 9px;
}
.freeship--done i { color: var(--green); }

/* Купон */
.coupon { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 20px; }
.coupon input { flex: 1; min-width: 0; padding: 10px 12px; font-size: 13px; }
.coupon__note { flex: 1 0 100%; font-size: 12.5px; display: flex; align-items: center; gap: 6px; }
.coupon__note--ok { color: var(--green); }
.coupon__note--err { color: var(--danger); }

.cart-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.cart-edit {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  font-size: 12.5px;
  font-weight: 600;
}

/* --- Завършване на поръчката --- */
.checkout-intro { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.checkout-intro h2 { font-size: 20px; margin-bottom: 20px; }
.checkout-choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 22px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
  transition: border-color .15s var(--ease), transform .15s var(--ease), box-shadow .15s var(--ease);
}
.choice:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.choice > i { font-size: 20px; color: var(--accent); margin-bottom: 4px; }
.choice strong { font-family: var(--font-display); font-size: 14.5px; color: var(--ink); }
.choice span { font-size: 12.5px; color: var(--muted); }
.choice--primary { border-color: var(--accent-soft); background: var(--accent-softer); }

.checkout { display: grid; grid-template-columns: minmax(0,1fr) 350px; gap: 34px; align-items: start; }
.checkout__main { min-width: 0; }
.checkout__aside { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 16px; }

.fblock {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 18px;
}
.fblock__title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  margin: 0 0 6px;
}
.fblock__step {
  flex: none;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 600;
}
.fblock__hint { font-size: 12.5px; color: var(--muted); margin: 0 0 18px; padding-left: 40px; }

.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fgrid .form-group { margin: 0; }
.form-group--wide { grid-column: 1 / -1; }

/* Начин на плащане */
.payopts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 8px; }
.payopt { display: block; margin: 0; cursor: pointer; }
.payopt input { position: absolute; opacity: 0; pointer-events: none; }
.payopt__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px;
  background: var(--paper-2);
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color .15s var(--ease), background .15s var(--ease);
}
.payopt__body > i { font-size: 18px; color: var(--muted); margin-bottom: 4px; }
.payopt__body strong { font-family: var(--font-display); font-size: 14.5px; color: var(--ink); }
.payopt__body em { font-style: normal; font-size: 12.5px; color: var(--muted); }
.payopt:hover .payopt__body { border-color: var(--line-strong); }
.payopt input:checked + .payopt__body { border-color: var(--accent); background: var(--accent-softer); }
.payopt input:checked + .payopt__body > i { color: var(--accent); }
.payopt input:focus-visible + .payopt__body { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Артикули в обобщението на поръчката */
.oitems { margin-bottom: 16px; padding-bottom: 8px; border-bottom: 1px solid var(--line); max-height: 300px; overflow-y: auto; }
.oitem { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.oitem__media {
  position: relative;
  flex: none;
  width: 46px; height: 46px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  overflow: hidden;
}
.oitem__media img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.oitem__media em {
  position: absolute; top: -6px; right: -6px;
  min-width: 19px; height: 19px;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-pill);
  font-style: normal;
  font-size: 10.5px;
  font-weight: 600;
  padding: 0 5px;
}
.oitem__title {
  flex: 1;
  min-width: 0;
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--ink-soft);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.oitem__sum { font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; }

.checkout-submit {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.checkout-submit .fcheck { margin-bottom: 16px; align-items: flex-start; }
.checkout-submit .fcheck input { margin-top: 3px; }

/* --- Успешна поръчка --- */
.ordersuccess {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  padding: 50px 24px;
}
.ordersuccess__icon {
  width: 76px; height: 76px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
  background: var(--green-soft);
  color: var(--green);
  border-radius: 50%;
  font-size: 30px;
}
.ordersuccess h1 { margin-bottom: 12px; }
.ordersuccess__lead { font-size: 16px; color: var(--ink); }
.ordersuccess p { color: var(--muted); }
.ordersuccess__acts { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }

/* --- Мини-кошница в хедъра --- */
.minicart { font-size: 14px; }
.minicart__empty { text-align: center; padding: 22px 10px; color: var(--muted); }
.minicart__empty i { display: block; font-size: 24px; color: var(--line-strong); margin-bottom: 10px; }
.minicart__empty p { margin: 0; font-size: 13px; }
.minicart__head {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.minicart__items { max-height: 300px; overflow-y: auto; }
.minicart__item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}
.minicart__item:hover { color: var(--accent-ink); }
.minicart__media {
  position: relative;
  flex: none;
  width: 48px; height: 48px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  overflow: hidden;
}
.minicart__media img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.minicart__swatch {
  position: absolute; top: 3px; left: 3px;
  width: 13px; height: 13px;
  border-radius: 50%;
  border: 2px solid #fff;
}
.minicart__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.minicart__title {
  font-size: 12.5px;
  line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.minicart__meta { font-size: 11.5px; color: var(--muted); }
.minicart__sum { font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.minicart__foot { padding-top: 14px; }
.minicart__total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.minicart__total span { font-size: 13px; color: var(--muted); }
.minicart__total strong { font-family: var(--font-display); font-size: 18px; color: var(--ink); }
.minicart__acts { display: flex; gap: 8px; }
.minicart__acts .but { flex: 1; padding: 10px 12px; }

/* --- Акаунт / история --- */
.pageTitleInfo { padding: 22px 0 6px; }
.pageTitleInfo h1 { margin: 0; }
.pageslinks, .pgnav { display: flex; gap: 8px; justify-content: center; margin-top: 26px; font-size: 13.5px; }
.cart-buttons, .btnArea { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.euprice { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }
.price-old { text-decoration: line-through; color: var(--muted-2); font-weight: 400; margin-right: 6px; }

/* Модал (логин/регистрация) */
.modal {
  display: none;
  position: fixed; inset: 0;
  background: rgba(36,28,23,.55);
  z-index: 500;
  overflow-y: auto;
  padding: 40px 20px;
}
.modal.in, .modal.open { display: block; }
.modal-dialog { max-width: 460px; margin: 0 auto; }
.modal-content {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 30px;
}

/* Панели (акордеони от стария код) */
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  overflow: hidden;
}
.panel-heading { padding: 14px 18px; background: var(--paper-2); cursor: pointer; }
.panel-title { font-size: 13.5px; margin: 0; font-family: var(--font-display); font-weight: 600; }
.panel-body { padding: 18px; font-size: 14px; }
.panel-collapse { display: none; }
.panel-collapse.in { display: block; }

/* Медиен блок */
.media { display: flex; gap: 14px; }
.media-left { flex: none; }
.media-body { flex: 1; min-width: 0; }
.media-heading { font-size: 14px; margin: 0 0 5px; }

/* ---------- 14. Футър ---------- */
.site-footer { background: var(--ink); color: #B5A597; margin-top: 60px; }
.site-footer__main { padding: 56px 0 40px; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.site-footer__brand > img { height: 42px; width: auto; margin-bottom: 18px; }
/* ВРЕМЕННО: в колона 1 от админа идва и второ (бяло) лого като картинка -
   крием го, за да не се дублира. Ще се реши, когато изберем финално лого. */
.site-footer__brand .footerInfo img { display: none; }
.site-footer p { font-size: 13.5px; line-height: 1.75; color: #B5A597; margin: 0 0 1em; }
.footerTitle h4 {
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #fff;
  margin: 0 0 16px;
}
/* Всеки елемент е на свой ред. Иконка и текст се подравняват в самата
   връзка - ако сложим inline-flex и на обвивката .lnk, редовете се
   подреждат по два на ред. */
.footerInfo .lnk {
  display: flex;
  margin-bottom: 10px;
  font-size: 13.5px;
  color: #B5A597;
  align-items: flex-start;
  gap: 10px;
}
.footerInfo .lnk a {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.4;
  color: #B5A597;
}
.footerInfo .lnk a:hover { color: #fff; }
.footerInfo .lnk i { flex: none; width: 15px; text-align: center; font-size: 13px; line-height: 1.55; color: var(--accent) !important; }
.footerInfo img { border-radius: var(--radius-sm); }
.copyRight {
  border-top: 1px solid rgba(255,255,255,.09);
  padding: 20px 0;
}
.copyRight .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.copyRightText p { font-size: 12.5px; color: #8B7B6D; margin: 0; }

/* Бутон "нагоре" */
#backToTop {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink);
  color: #fff;
  border-radius: 50%;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  z-index: 400;
}
#backToTop.visible { opacity: 1; visibility: visible; transform: translateY(0); }
#backToTop:hover { background: var(--accent); color: #fff; }

/* ---------- 15. Помощни класове от стария код ---------- */
.but.red, .red { background: var(--danger); }
.orange { color: var(--accent-ink); }
.green-button { background: var(--green); }
.trademark img { max-width: 100%; height: auto; }
.photobox { display: inline-block; margin: 0 6px 6px 0; }
.photobox img { border-radius: var(--radius-xs); }
.abox { background: var(--paper-2); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.respvideo { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: var(--radius); }
.respvideo iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.proddocs a { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; margin-right: 16px; }
.details { font-size: 14px; }
.details th, .details td { padding: 8px 12px; border-bottom: 1px solid var(--line); }
.colgroup, .colgroup2 { margin-bottom: 16px; }
.col1 { float: left; width: 26px; height: 26px; border-radius: var(--radius-xs); margin: 0 8px 6px 0; background-size: cover; }
.col2 { float: left; font-size: 11.5px; line-height: 1.25; margin: 0 14px 6px 0; color: var(--muted); }
.colpick, .colpick2 { display: flex; align-items: center; gap: 8px; font-size: 12.5px; padding: 4px 0; cursor: pointer; }
.colpick span, .colpick2 span { width: 22px; height: 22px; border-radius: 50%; background-size: cover; flex: none; }


/* ---------- 17. Идеи и Детско ателие ---------- */

/* Табове за категориите */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.tabs a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  transition: background .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease);
}
.tabs a i { color: var(--muted-2); font-size: 13px; }
.tabs a:hover { border-color: var(--line-strong); color: var(--accent-ink); }
.tabs a.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.tabs a.active i { color: #fff; }

/* Търсене и подреждане в лявата колона */
.idei-search { display: flex; gap: 8px; }
.idei-search input { flex: 1; min-width: 0; padding: 9px 12px; font-size: 13px; }
.idei-search .but { padding: 9px 14px; }
.idei-sort { display: flex; flex-direction: column; gap: 9px; }

/* Последно разгледани */
.lastview { display: flex; flex-direction: column; gap: 10px; }
.lastview__item { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); }
.lastview__item img {
  flex: none;
  width: 62px; height: 44px;
  object-fit: cover;
  border-radius: var(--radius-xs);
  background: var(--paper-3);
}
.lastview__item span {
  font-size: 12.5px;
  line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.lastview__item:hover span { color: var(--accent-ink); }
.lastview__link {
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--ink-soft);
  padding: 5px 0;
  border-bottom: 1px dashed var(--line);
  display: block;
}
.lastview__link:last-child { border-bottom: 0; }

/* Карти за видео/статии */
.icards { display: grid; grid-template-columns: 1fr; gap: 18px; }
.icard {
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  gap: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .18s var(--ease), border-color .18s var(--ease);
}
.icard:hover { box-shadow: var(--shadow); border-color: transparent; }
.icard__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  background: var(--paper-3);
  overflow: hidden;
}
.icard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s var(--ease); }
.icard:hover .icard__media img { transform: scale(1.04); }
.icard__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.92);
  color: var(--accent);
  border-radius: 50%;
  font-size: 16px;
  padding-left: 3px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s var(--ease);
}
.icard:hover .icard__play { transform: scale(1.08); }
.icard__pdf {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--danger);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .05em;
  border-radius: var(--radius-xs);
  padding: 4px 9px;
}
.icard__body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 20px 0; }
.icard__meta { display: flex; align-items: center; gap: 14px; font-size: 12px; color: var(--muted); }
.icard__time { display: inline-flex; align-items: center; gap: 5px; }
.icard__title { font-size: 17px; margin: 0; line-height: 1.3; }
.icard__title a { color: var(--ink); }
.icard:hover .icard__title a { color: var(--accent-ink); }
.icard__intro {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.icard__cta {
  margin-top: auto;
  padding-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.icard:hover .icard__cta i { transform: translateX(3px); }
.icard__cta i { transition: transform .15s var(--ease); }

/* Брошури */
.bcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.bcard {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .18s var(--ease), transform .18s var(--ease);
}
.bcard:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.bcard__media { display: block; aspect-ratio: 1 / 1; background: var(--paper-3); }
.bcard__media img { width: 100%; height: 100%; object-fit: cover; }
.bcard__body { display: flex; flex-direction: column; gap: 12px; padding: 18px; flex: 1; }
.bcard__title { font-size: 14.5px; margin: 0; line-height: 1.35; }
.bcard__title a { color: var(--ink); }
.bcard__body .but { margin-top: auto; align-self: flex-start; }
.bcard__body .but em { font-style: normal; opacity: .6; font-size: 12px; }

/* Карти за детското ателие */
.wcards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.wcard {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .18s var(--ease), transform .18s var(--ease), border-color .18s var(--ease);
}
.wcard:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: transparent; }
.wcard__media { display: block; aspect-ratio: 4 / 3; background: var(--paper-3); overflow: hidden; }
.wcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s var(--ease); }
.wcard:hover .wcard__media img { transform: scale(1.05); }
.wcard__body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 20px; flex: 1; }
.wcard__date { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); }
.wcard__title { font-size: 15px; margin: 0; line-height: 1.35; }
.wcard__title a { color: var(--ink); }
.wcard__title a::after { content: ''; position: absolute; inset: 0; }
.wcard:hover .wcard__title a { color: var(--accent-ink); }
.wcard__intro {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* Статия / занимание */
.article { max-width: 820px; margin: 0 auto; }
.article__head { margin-bottom: 26px; }
.article__head h1 { margin: 0 0 12px; }
.article__meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.article__meta span { display: inline-flex; align-items: center; gap: 7px; }
.article__cover { margin-bottom: 26px; border-radius: var(--radius); overflow: hidden; background: var(--paper-3); }
.article__cover img { width: 100%; height: auto; display: block; }
.article__body { font-size: 15.5px; line-height: 1.8; color: var(--ink-soft); }
.article__body h2 { font-size: 21px; margin: 32px 0 14px; }
.article__body h3 { font-size: 17px; margin: 26px 0 12px; }
.article__body p { margin: 0 0 1.15em; }
.article__body img { border-radius: var(--radius-sm); margin: 8px 0; }
.article__body ul, .article__body ol { padding-left: 22px; margin: 0 0 1.15em; }
.article__body li { margin-bottom: 7px; }
.article__body a { text-decoration: underline; text-underline-offset: 2px; }
.article__gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 26px 0; }
.article__gallery a { display: block; aspect-ratio: 1 / 1; border-radius: var(--radius-sm); overflow: hidden; background: var(--paper-3); }
.article__gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s var(--ease); }
.article__gallery a:hover img { transform: scale(1.06); }
.article .but { margin-top: 32px; }

.respvideo {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink);
  margin-bottom: 26px;
}
.respvideo iframe, .respvideo video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* ---------- 18. Лайтбокс ---------- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 600;
  background: rgba(20,15,12,.92);
  align-items: center;
  justify-content: center;
  padding: 40px 70px;
}
.lightbox.is-open { display: flex; }
.lightbox__stage { margin: 0; max-width: 100%; max-height: 100%; display: flex; }
.lightbox__stage img {
  max-width: 100%;
  max-height: calc(100vh - 80px);
  object-fit: contain;
  border-radius: var(--radius-sm);
}
.lightbox__close {
  position: absolute;
  top: 18px; right: 22px;
  width: 42px; height: 42px;
  background: rgba(255,255,255,.12);
  border: 0;
  border-radius: 50%;
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background .15s var(--ease);
}
.lightbox__close:hover { background: rgba(255,255,255,.24); }
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px; height: 46px;
  background: rgba(255,255,255,.12);
  border: 0;
  border-radius: 50%;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  transition: background .15s var(--ease);
}
.lightbox__nav:hover { background: rgba(255,255,255,.24); }
.lightbox__nav--prev { left: 18px; }
.lightbox__nav--next { right: 18px; }
.lightbox__count {
  position: absolute;
  bottom: 20px; left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.7);
  font-size: 13px;
}


/* ---------- 19. Вградено съдържание в текста (видеа, iframe-ове) ---------- */
/* Видеата се вграждат от админа с фиксирани width/height (обикновено
   560x315) и излизаха извън колоната. Атрибутите width/height са само
   "presentational hints" и всяко CSS правило ги бие - затова тук няма
   нужда нито от !important, нито от JS обвивки. */
.item-info iframe[src*="youtube"],
.item-info iframe[src*="youtu.be"],
.item-info iframe[src*="vimeo"],
.article__body iframe[src*="youtube"],
.article__body iframe[src*="youtu.be"],
.article__body iframe[src*="vimeo"],
.product__more iframe[src*="youtube"],
.product__more iframe[src*="youtu.be"],
.product__more iframe[src*="vimeo"],
.abox iframe[src*="youtube"],
.cat-descr iframe[src*="youtube"] {
  display: block;
  width: 100%;
  max-width: 640px;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--ink);
  margin: 16px 0;
}

/* Всичко останало, вградено в съдържанието, поне да не разпъва страницата */
.item-info iframe,
.item-info embed,
.item-info object,
.item-info video,
.article__body iframe,
.article__body embed,
.article__body object,
.article__body video,
.product__more iframe,
.product__more video,
.abox iframe,
.cat-descr iframe {
  max-width: 100%;
}

/* Широки таблици от админа - да се скролват вътре в себе си */
.item-info table,
.article__body table,
.product__more table {
  max-width: 100%;
  display: block;
  overflow-x: auto;
}

/* Обвивката, която старият JS добавяше - вече не е нужна, но ако остане
   някъде в съдържанието, да не чупи оформлението. */
.video-responsive { max-width: 100%; }

/* ---------- 16. Responsive ---------- */
@media (max-width: 1200px) {
  .megaDropMenu > .dropdown-menu { grid-template-columns: repeat(4, 1fr); }
  .cattiles { grid-template-columns: repeat(4, 1fr); }
  .hero__grid { grid-template-columns: 250px 1fr; }
}

@media (max-width: 991px) {
  .navbar-toggle { display: flex; }
  #menuBar .container { min-height: 66px; gap: 14px; }
  .navbar-header { flex: 1; }
  .navbar-collapse {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 10px 20px 18px;
    max-height: 78vh;
    overflow-y: auto;
  }
  .navbar-collapse.in { display: block; }
  .navbar-nav { flex-direction: column; align-items: stretch; gap: 0; }
  .navbar-nav > li > a { border-radius: var(--radius-sm); padding: 13px 14px; }
  .dropdown-menu, .megaDropMenu > .dropdown-menu {
    position: static;
    transform: none;
    width: 100%;
    box-shadow: none;
    border: 0;
    border-radius: 0;
    padding: 0 0 8px 14px;
    background: transparent;
  }
  .megawrap { grid-template-columns: 1fr; min-height: 0; }
  .megatabs { border-right: 0; border-bottom: 1px solid var(--line); padding: 6px; }
  .megapanels { padding: 16px; }
  .megapanel__links { columns: 1; }
  .megaDropMenu > .dropdown-menu { width: 100%; }

  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__stage { min-height: 360px; }
  .hero__content { padding: 40px 34px; }

  .trust__grid { grid-template-columns: 1fr 1fr; }
  .cattiles { grid-template-columns: repeat(3, 1fr); }

  .listing__grid { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; }
  .but.filters-toggle { display: inline-flex; margin-bottom: 16px; }
  .sidebar--collapsible { display: none; }
  .sidebar--collapsible.open { display: block; }

  .product__grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .pgrid, .pgrid--3, .pgrid--4 { --cols: 3; }

  .cart-layout, .checkout { grid-template-columns: minmax(0, 1fr); }
  .cart-aside, .checkout__aside { position: static; }
  .checkout-choices { grid-template-columns: 1fr; }

  .wcards { grid-template-columns: repeat(3, 1fr); }
  .bcards { grid-template-columns: repeat(2, 1fr); }
  .article__gallery { grid-template-columns: repeat(3, 1fr); }

  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 767px) {
  body { font-size: 14.5px; }
  .top-info-bar .container { flex-direction: column; align-items: stretch; gap: 8px; padding-block: 10px; }
  .topList { justify-content: center; gap: 14px; font-size: 12px; }
  .functionList { justify-content: center; }
  #searchbox input[type="text"] { width: 100%; }
  #searchbox { flex: 1; }

  .hero { padding-top: 16px; }
  .hero__content { padding: 32px 24px; }
  .hero__art .b1 { width: 220px; height: 220px; right: -60px; top: -80px; }
  .hero__art .ring { display: none; }

  .trust__grid { grid-template-columns: 1fr; gap: 14px; }
  .cattiles { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cattile { padding: 20px 12px 18px; }

  .pgrid, .pgrid--3, .pgrid--4 { --cols: 2; gap: 14px; }
  .pcard__body { padding: 12px 14px 14px; gap: 8px; }
  .pcard__title { font-size: 12.5px; -webkit-line-clamp: 2; }
  .pcard__price { font-size: 14.5px; }

  #colorsbox.colorsbox--shablon span { width: 64px; height: 64px; }
  #colzoom { width: 150px; height: 150px; }

  /* На телефон галерията е една колона: първо голямата снимка, отдолу
     хоризонтална лента с миниатюри. minmax(0,1fr) пази решетката да не се
     разпъва по-широко от екрана заради съдържанието си. */
  .gallery { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .gallery__rail { order: 2; flex-direction: row; align-items: center; gap: 6px; min-width: 0; }
  .gallery__navbtn { width: 30px; height: 56px; }
  .gallery__navbtn i { transform: rotate(-90deg); }
  .gallery__thumbs {
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    max-height: none;
    flex: 1;
    min-width: 0;
    padding-bottom: 4px;
  }
  .gallery__thumbs::-webkit-scrollbar { height: 4px; width: auto; }
  .gallery__thumbs .prodthumb { width: 64px; height: 64px; flex: none; }
  .gallery__stage { height: 320px; order: 1; }

  .s-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .s-link { padding-bottom: 0; }

  .site-footer__grid { grid-template-columns: 1fr; gap: 26px; }
  .site-footer { margin-top: 40px; }
  .brandrow { gap: 32px; }

  .table, .cart-contents { display: block; overflow-x: auto; }

  /* Кошница на телефон - редът се пренарежда в две колони */
  .cart-items__head { display: none; }
  .citem {
    grid-template-columns: 72px minmax(0,1fr) 34px;
    grid-template-areas: 'media info remove' 'media qty sum';
    row-gap: 10px;
  }
  .citem__media { grid-area: media; width: 72px; height: 72px; }
  .citem__info { grid-area: info; }
  .citem__qty { grid-area: qty; justify-self: start; }
  .citem__sum { grid-area: sum; align-self: center; }
  .citem__remove { grid-area: remove; align-self: start; }

  .fgrid, .payopts { grid-template-columns: 1fr; }
  .fblock { padding: 20px 18px; }
  .fblock__hint { padding-left: 0; }

  .icard { grid-template-columns: 1fr; gap: 0; }
  .icard__body { padding: 16px 18px 20px; }
  .icard__media { aspect-ratio: 16 / 9; }
  .wcards { grid-template-columns: 1fr 1fr; gap: 14px; }
  .bcards { grid-template-columns: 1fr 1fr; gap: 14px; }
  .article__gallery { grid-template-columns: 1fr 1fr; }
  .tabs a { padding: 9px 15px; font-size: 12.5px; }
  .item-info iframe[src*="youtube"],
  .article__body iframe[src*="youtube"],
  .product__more iframe[src*="youtube"] { max-width: 100%; }
  .cookiebar { left: 10px; right: 10px; bottom: 10px; padding: 14px 16px; gap: 12px; font-size: 13px; }
  .page-cover { padding: 46px 0 38px; }
  .lightbox { padding: 20px 12px; }
  .lightbox__nav { width: 38px; height: 38px; }
  .lightbox__nav--prev { left: 6px; }
  .lightbox__nav--next { right: 6px; }
}

/* една колона само на много тесни екрани - на обичайния телефон (>=360px)
   две колони се четат по-добре при разглеждане на продукти */
@media (max-width: 359px) {
  .pgrid, .pgrid--3, .pgrid--4 { --cols: 1; }
  .cattiles { grid-template-columns: 1fr; }
}

@media print {
  .header-wrapper, .site-footer, #backToTop, .sidebar { display: none; }
}
