/* Футър, вариант „Зелен“ (04.11.2026). Самостоятелен файл; надделява над общите правила за .store-footer. */
footer.store-footer--green {
  --footer-ground: #1b4d2a;
  --footer-ink: #fff8e9;
  --footer-soft: #e3ead9;
  --footer-rule: rgba(255, 248, 233, .32);
  --footer-orange: #f07d1c;
  background: var(--footer-ground) !important;
  color: var(--footer-ink);
  border-top: 0;
  font-family: Inter, Arial, sans-serif;
}
.store-footer--green a { color: var(--footer-ink) !important; text-decoration: none; }
.store-footer--green a:hover { text-decoration: underline; text-underline-offset: 4px; }
.store-footer--green a:focus-visible, .store-footer--green button:focus-visible { outline: 3px solid #ffb257; outline-offset: 4px; border-radius: 4px; }
.store-footer--green i { flex: 0 0 18px; text-align: center; color: var(--footer-ink); }

/* Десктоп: лого | Пазаруване | Полезно | Контакти, с вертикални разделители. */
.store-footer--green .store-footer__grid {
  display: grid; grid-template-columns: 150px minmax(150px, 170px) minmax(140px, 160px) minmax(0, 1fr);
  gap: 0; padding-block: 14px 10px;
}
.store-footer--green .store-footer__brand { display: flex; align-items: center; justify-content: center; padding: 0 20px 0 0; border-right: 1px solid var(--footer-rule); }
.store-footer--green .store-footer__brand p { display: none; }
.store-footer--green .store-footer__brand a { display: block; line-height: 0; }
/* Логото има празни полета около себе си и зелен надпис: изрязваме полетата и го очертаваме със светъл ореол, за да се чете на зелено. */
.store-footer--green .store-footer__brand img {
  width: 116px; height: 92px; object-fit: cover; object-position: center;
  filter: drop-shadow(0 0 1px var(--footer-ink)) drop-shadow(0 0 2px var(--footer-ink)) drop-shadow(0 0 6px rgba(255, 248, 233, .55));
}
.store-footer--green .store-footer__section { display: block; min-width: 0; padding: 0 22px; }
.store-footer--green .store-footer__section--contact { border-left: 1px solid var(--footer-rule); }
.store-footer--green h2 { margin: 0 0 2px; font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--footer-ink) !important; }
.store-footer--green .store-footer__toggle { width: 100%; display: block; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; text-transform: inherit; letter-spacing: inherit; }
.store-footer--green .store-footer__toggle span { font: inherit; }
.store-footer--green .store-footer__content { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
.store-footer--green .store-footer__content[hidden] { display: none; }
.store-footer--green .store-footer__content a, .store-footer--green .store-footer__content span { font-size: 14px; line-height: 1.4; }
.store-footer--green .store-footer__content a { min-height: 26px; display: inline-flex; align-items: center; gap: 10px; }
.store-footer--green .store-footer__content > span { display: flex; align-items: flex-start; gap: 10px; padding: 2px 0; color: var(--footer-soft); }
.store-footer--green .store-footer__content > span i { margin-top: 3px; }
.store-footer--green .store-footer__section--contact h2 { display: none; }
.store-footer--green .store-footer__section--contact .store-footer__content { flex-direction: column; align-items: flex-start; gap: 3px; }
.store-footer--green .store-footer__content .store-footer__phone { font-size: 21px; font-weight: 800; letter-spacing: .01em; white-space: nowrap; min-height: 28px; line-height: 1.2; }
.store-footer--green .store-footer__content .store-footer__phone i { font-size: 17px; flex-basis: 18px; }
/* Капсулата е подравнена с иконите отдолу: иконата ѝ стои в същата 18px колона. */
.store-footer--green .store-footer__content .store-footer__email { background: var(--footer-orange); color: var(--footer-ink) !important; font-weight: 700; border-radius: 999px; padding: 3px 14px 3px 8px; margin-left: -8px; min-height: 26px; white-space: nowrap; }
.store-footer--green .store-footer__section--contact .store-footer__content > span { max-width: 100%; }
.store-footer--green .store-footer__content .store-footer__email:hover { text-decoration: none; background: #ff9a3d; }

/* Долен ред: © | Разработен от … (ляво) и Общи условия | Поверителност | Настройки за бисквитки (дясно). */
.store-footer--green .store-footer__bottom { display: flex; flex-wrap: wrap; justify-content: flex-start; align-items: center; gap: 2px 0; padding-block: 4px 6px; color: var(--footer-soft) !important; font-size: 12px; text-align: left; border-top: 1px solid var(--footer-rule); }
.store-footer--green .store-footer__copyright { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0 10px; margin-right: auto; padding-right: 24px; }
.store-footer--green .store-footer__credit { display: inline-flex; align-items: center; gap: 10px; }
.store-footer--green .store-footer__credit a { font-weight: 700; }
.store-footer--green .store-footer__sep { color: var(--footer-rule); }
.store-footer--green .store-footer__legal { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0; }
.store-footer--green .store-footer__legal a, .store-footer--green .meta-preferences { min-height: 28px; display: inline-flex; align-items: center; padding: 0 14px; color: var(--footer-ink); font: inherit; font-size: 12px; text-decoration: none; }
.store-footer--green .store-footer__legal a + a::before, .store-footer--green .meta-preferences::before { content: "|"; margin-right: 14px; color: var(--footer-rule); }
.store-footer--green .store-footer__legal a:first-child { padding-left: 0; }
.store-footer--green .meta-preferences { margin: 0; padding: 0 0 0 14px; background: transparent; border: 0; cursor: pointer; }
.store-footer--green .meta-preferences:hover { text-decoration: underline; text-underline-offset: 4px; }
.store-footer--green .store-footer__mobile-phone, .store-footer--green .store-footer__contact-mobile { display: none; }

/* Таблет: същите 4 колони, по-плътно (контактите остават една под друга, както на десктоп). */
@media (min-width: 768px) and (max-width: 1050px) {
  .store-footer--green .store-footer__grid { grid-template-columns: 112px max-content max-content minmax(0, 1fr); }
  /* Старото правило в storefront.css разпъва логото и контактите на цял ред под 960px — тук не. */
  .store-footer--green .store-footer__brand, .store-footer--green .store-footer__section--contact { grid-column: auto; }
  .store-footer--green .store-footer__brand { padding-right: 14px; }
  .store-footer--green .store-footer__brand img { width: 96px; height: 76px; }
  .store-footer--green .store-footer__section { padding: 0 16px; }
  .store-footer--green .store-footer__content .store-footer__phone { font-size: 19px; }
  .store-footer--green .store-footer__legal a:first-child { padding-left: 0; }
  .store-footer--green .store-footer__copyright { padding-right: 12px; gap: 0 8px; }
  .store-footer--green .store-footer__credit { gap: 8px; }
  .store-footer--green .store-footer__legal a, .store-footer--green .meta-preferences { padding: 0 9px; }
  .store-footer--green .store-footer__legal a + a::before, .store-footer--green .meta-preferences::before { margin-right: 9px; }
  .store-footer--green .meta-preferences { padding-right: 0; }
}

/* Телефон: лого, бутон за обаждане, три сгъваеми реда, компактен долен блок. */
@media (max-width: 767px) {
  .store-footer--green .store-footer__grid { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0 12px; padding-block: 8px 0; }
  .store-footer--green .store-footer__brand { flex: 0 0 auto; justify-content: center; padding: 0; border: 0; margin: 0; }
  .store-footer--green .store-footer__brand img { width: 64px; height: 50px; }
  .store-footer--green .store-footer__mobile-phone { flex: 1 1 0; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; background: var(--footer-ink); color: var(--footer-ground) !important; font-size: 16px; font-weight: 800; border-radius: 12px; margin: 0; white-space: nowrap; }
  .store-footer--green .store-footer__section { flex: 1 1 100%; }
  .store-footer--green .store-footer__mobile-phone + .store-footer__section { margin-top: 8px; }
  .store-footer--green .store-footer__mobile-phone i { color: var(--footer-ground); }
  .store-footer--green .store-footer__section { padding: 0; border-top: 0; border-bottom: 1px solid var(--footer-rule); }
  .store-footer--green .store-footer__section--contact { border-left: 0; }
  .store-footer--green .store-footer__section h2, .store-footer--green .store-footer__section--contact h2 { display: block; margin: 0; text-transform: none; letter-spacing: 0; }
  .store-footer--green .store-footer__toggle { min-height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 15px; font-weight: 700; color: var(--footer-ink); cursor: pointer; }
  .store-footer--green .store-footer__toggle::after { content: ""; width: 9px; height: 9px; margin-right: 6px; border-right: 2px solid var(--footer-ink); border-bottom: 2px solid var(--footer-ink); transform: rotate(45deg); transition: transform .2s; }
  .store-footer--green .store-footer__toggle[aria-expanded="true"]::after { transform: rotate(-135deg); }
  .store-footer--green .store-footer__contact-desktop { display: none; }
  .store-footer--green .store-footer__contact-mobile { display: inline; }
  .store-footer--green .store-footer__content { padding: 0 0 8px; }
  .store-footer--green .store-footer__section--contact .store-footer__content { flex-direction: column; align-items: flex-start; gap: 0; padding-left: 8px; }
  .store-footer--green .store-footer__content a { min-height: 42px; font-size: 15px; }
  .store-footer--green .store-footer__content > span { padding: 5px 0; font-size: 14px; }
  .store-footer--green .store-footer__content .store-footer__phone { display: none; }
  .store-footer--green .store-footer__content .store-footer__email { margin: 2px 0 4px -8px; min-height: 36px; }
  /* Долу: два реда — „© … · Разработен от …“ и „Общи условия | Поверителност | Настройки за бисквитки“. */
  .store-footer--green .store-footer__bottom { border-top: 0; flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: center; text-align: center; gap: 0; padding: 6px 0 4px; font-size: 11px; }
  .store-footer--green .store-footer__copyright { flex: 1 1 100%; display: block; margin: 0 0 2px; padding: 0; line-height: 1.4; }
  .store-footer--green .store-footer__credit { display: inline; }
  .store-footer--green .store-footer__sep { display: inline; margin: 0 4px; }
  /* Правните връзки и „Настройки за бисквитки“ на един ред (бутонът е отделен елемент, добавен от скрипта). */
  .store-footer--green .store-footer__legal { display: contents; }
  .store-footer--green .store-footer__legal a, .store-footer--green .meta-preferences { min-height: 30px; font-size: 11px; padding: 0 4px; }
  .store-footer--green .store-footer__legal a::before, .store-footer--green .store-footer__legal a + a::before, .store-footer--green .meta-preferences::before { content: none; }
  .store-footer--green .store-footer__legal a::after { content: "|"; margin-left: 8px; color: var(--footer-rule); }
  .store-footer--green .meta-preferences { padding: 0 4px; margin: 0; }
}

/* Тесен таблет: долу два подредени реда вместо пренасяне с висяща черта. */
@media (min-width: 768px) and (max-width: 900px) {
  .store-footer--green .store-footer__copyright { flex: 1 1 100%; padding-right: 0; }
}
/* Много тесен телефон: „Разработен от …“ и „Настройки за бисквитки“ на свои редове, без висящи черти. */
@media (max-width: 360px) {
  .store-footer--green .store-footer__credit { display: block; }
  .store-footer--green .store-footer__copyright .store-footer__sep { display: none; }
  .store-footer--green .store-footer__legal a:last-child::after { content: none; }
  .store-footer--green .meta-preferences { flex: 1 1 100%; justify-content: center; margin-top: -4px; }
}

/* Адресът води към навигация в Google Maps (09.11.2026): изглежда като останалите редове, подчертава се при посочване. */
.store-footer--green .store-footer__content .store-footer__address { align-items: flex-start; min-height: 0; padding: 2px 0; color: var(--footer-soft) !important; font-size: 14px; line-height: 1.4; }
.store-footer--green .store-footer__content .store-footer__address i { margin-top: 3px; }
.store-footer--green .store-footer__content .store-footer__address span:not(.sr-only) { text-decoration: underline; text-decoration-color: var(--footer-rule); text-underline-offset: 3px; }
.store-footer--green .store-footer__content .store-footer__address:hover span:not(.sr-only) { text-decoration-color: currentColor; }
@media (max-width: 767px) {
  .store-footer--green .store-footer__content .store-footer__address { min-height: 0; padding: 5px 0; font-size: 14px; }
}
