/*
Theme Name: EC Catering Theme
Theme URI: https://ec-restaurant.ru/
Author: Custom build
Description: Lightweight WordPress theme with coded header, menu locations, header settings and WooCommerce cart support.
Version: 0.1.32
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: ec-catering
*/

/* REM base for fluid layout. At 1920px viewport: 1rem ≈ 0.9846px. */
html { font-size: calc(1vw / 19.5) !important; }
@media (max-width: 767px) {
  html { font-size: calc(1vw / 3.9) !important; }
}

:root {
  /* 1608rem gives ≈1583px content width on a 1920px viewport with the REM formula above. */
  --ec-container: min(1608rem, calc(100vw - 32rem));

  /* Global project palette. Use these variables in every theme/plugin/widget block. */
  --ec-color-accent: #BB9C69;
  --ec-color-accent-hover: #A9874D;
  --ec-color-text: #222222;
  --ec-color-muted: rgba(34, 34, 34, .68);
  --ec-color-line: #F0F0F0;
  --ec-color-soft: #F9F7F2;
  --ec-color-white: #ffffff;
  --ec-color-gray-button: #F0F0F0;
  --ec-color-gray-button-hover: #E8E8E8;

  /* Backward-compatible aliases used by earlier theme sections. */
  --ec-text: var(--ec-color-text);
  --ec-muted: var(--ec-color-muted);
  --ec-line: var(--ec-color-line);
  --ec-topbar: var(--ec-color-line);
  --ec-warm: var(--ec-color-soft);
  --ec-gold: var(--ec-color-accent);
  --ec-gold-dark: var(--ec-color-accent-hover);
  --ec-white: var(--ec-color-white);
  --ec-shadow: 0 14rem 40rem rgba(0, 0, 0, .08);
}

* { box-sizing: border-box; }
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

/* overflow-x:hidden creates a scroll container in some browsers and breaks
   position:sticky descendants. clip keeps horizontal overflow suppressed
   without changing the vertical scroll container. */
@supports (overflow: clip) {
  html,
  body {
    overflow-x: clip;
  }
}
body {
  margin: 0;
  color: var(--ec-text);
  background: #fff;
  font-family: "Mulish", Arial, Helvetica, sans-serif;
  font-size: 16rem;
  line-height: 1.45;
  font-weight: 400;
}
a { color: inherit; }
img { max-width: 100%; height: auto; }
button,
input,
select,
textarea { font: inherit; }

:where(h1, h2, h3, h4, h5, h6, p, figure, blockquote) {
  margin-block-start: 0;
  margin-block-end: 0;
}

:where(h1, h2, h3, h4, h5, h6) {
  color: var(--ec-text);
  font-family: "Philosopher", Georgia, serif;
  font-weight: 400;
  letter-spacing: .02em;
}

h1 {
  display: block;
  margin: 0 0 24rem;
  font-size: 56rem;
  line-height: 1.08;
}
h2 {
  margin: 0 0 20rem;
  font-size: 44rem;
  line-height: 1.12;
}
h3 {
  margin: 0 0 16rem;
  font-size: 32rem;
  line-height: 1.18;
}
h4 { margin: 0 0 14rem; font-size: 24rem; line-height: 1.22; }
h5 { margin: 0 0 12rem; font-size: 20rem; line-height: 1.28; }
h6 { margin: 0 0 10rem; font-size: 16rem; line-height: 1.3; }
p { margin: 0 0 16rem; }

.entry-content :where(ul, ol) {
  margin-block-start: 0;
  margin-block-end: 16rem;
  padding-inline-start: 24rem;
}


.screen-reader-text,
.ec-skip-link {
  position: absolute;
  width: 1rem;
  height: 1rem;
  padding: 0;
  margin: -1rem;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.ec-skip-link:focus {
  z-index: 100000;
  left: 16rem;
  top: 16rem;
  width: auto;
  height: auto;
  padding: 12rem 16rem;
  background: #fff;
  clip: auto;
  box-shadow: var(--ec-shadow);
}

.ec-header {
  width: 100%;
  background: var(--ec-white);
  position: sticky;
  top: 0;
  z-index: 1000;
}

body.admin-bar .ec-header { top: 0; }

.ec-header__inner {
  width: var(--ec-container);
  margin: 0 auto;
}

.ec-topbar {
  height: 36rem;
  background: var(--ec-topbar);
  overflow: hidden;
}

.ec-topbar .ec-header__inner {
  height: 36rem;
  display: flex;
  align-items: center;
}

.ec-header-menu ul {
  display: flex;
  align-items: center;
  gap: 44rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ec-topbar a {
  text-decoration: none;
  font-size: 15rem;
  line-height: 1.2;
  font-weight: 400;
  color: var(--ec-text);
  transition: color .18s ease;
}

.ec-topbar a:hover { color: var(--ec-gold-dark); }

.ec-header-main {
  height: 92rem;
  background: #fff;
  border-bottom: 1rem solid #fafafa;
}

.ec-header-main .ec-header__inner {
  height: 92rem;
  display: grid;
  grid-template-columns: 430rem 62rem 151rem 130rem 176rem 24rem 96rem 48rem 250rem 56rem 118rem;
  column-gap: 0;
  align-items: center;
}

.ec-brand-group {
  grid-column: 1;
  display: flex;
  align-items: center;
  gap: 17rem;
  min-width: 0;
}

.ec-brand {
  display: flex;
  align-items: center;
  flex: 0 0 128rem;
  width: 128rem;
  text-decoration: none;
  min-width: 0;
}

.ec-brand__logo {
  display: block;
  width: 128rem;
  height: auto;
}

.ec-brand-text {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  min-width: 0;
  width: 285rem;
  font-size: 15rem;
  line-height: 1.42;
  color: var(--ec-text);
}

.ec-brand-text__title {
  display: block;
  font-size: 15rem;
  line-height: 1.2;
  font-weight: 700;
}

.ec-brand-text__description {
  display: block;
  font-size: 15rem;
  line-height: 1.42;
  font-weight: 400;
}

.ec-rating {
  grid-column: 3;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.ec-rating img {
  display: block;
  width: 151rem;
  height: 50rem;
  object-fit: contain;
}

.ec-question {
  grid-column: 5;
  width: 180rem;
  font-size: 15rem;
  line-height: 1.35;
  font-weight: 400;
  color: var(--ec-text);
  white-space: normal;
}

.ec-socials {
  grid-column: 7;
  display: flex;
  align-items: center;
  gap: 10rem;
}

.ec-socials__item {
  width: 46rem;
  height: 46rem;
  border-radius: 999rem;
  background: var(--ec-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform .18s ease, background-color .18s ease;
}

.ec-socials__item:hover {
  transform: translateY(-1rem);
  background: var(--ec-gold-dark);
}

.ec-socials__item img,
.ec-socials__item svg {
  display: block;
  width: 20rem;
  height: 20rem;
}

.ec-socials__item {
  color: #fff;
}

.ec-phone-block {
  grid-column: 9;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7rem;
  min-width: 0;
}

.ec-phone-block__phone {
  font-size: 27rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: .2rem;
  text-decoration: none;
  color: var(--ec-text);
  white-space: nowrap;
}

.ec-phone-block__callback {
  font-size: 14rem;
  line-height: 1.15;
  text-decoration: underline;
  text-underline-offset: 3rem;
  color: var(--ec-gold-dark);
  text-transform: uppercase;
  white-space: nowrap;
}

.ec-phone-block__callback:hover { color: #7c602e; }

.ec-cart {
  grid-column: 11;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  justify-self: stretch;
  width: 100%;
  gap: 18rem;
  text-decoration: none;
  color: #5f6b7a;
  min-width: 0;
}

.ec-cart__total {
  font-size: 18rem;
  line-height: 1;
  font-weight: 700;
  color: #697586;
  white-space: nowrap;
}

.ec-cart__icon-wrap {
  position: relative;
  width: 35rem;
  height: 35rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ec-cart__icon-wrap img {
  width: 34rem;
  height: 34rem;
  object-fit: contain;
}

.ec-cart__count {
  position: absolute;
  right: -2rem;
  top: -3rem;
  min-width: 17rem;
  height: 17rem;
  padding: 0 4rem;
  border-radius: 999rem;
  background: #0b0b0b;
  color: #fff;
  font-size: 10rem;
  line-height: 17rem;
  font-weight: 700;
  text-align: center;
}

.ec-cart:hover .ec-cart__total { color: var(--ec-gold-dark); }

.ec-main-nav-wrap {
  position: relative;
  top: auto;
  z-index: 999;
  height: 48rem;
  background: #fff;
  border-top: 1rem solid var(--ec-line);
  border-bottom: 1rem solid var(--ec-line);
}

.ec-main-nav {
  width: var(--ec-container);
  height: 48rem;
  margin: 0 auto;
}

.ec-main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ec-main-nav > div > ul,
.ec-main-nav > ul {
  height: 48rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18rem;
}

.ec-main-nav a {
  display: flex;
  align-items: center;
  gap: 7rem;
  height: 48rem;
  text-decoration: none;
  text-transform: uppercase;
  color: var(--ec-muted);
  font-size: 16rem;
  line-height: 1;
  font-weight: 500;
  white-space: nowrap;
  transition: color .18s ease;
}

.ec-main-nav a:hover,
.ec-main-nav .current-menu-item > a,
.ec-main-nav .current_page_item > a {
  color: var(--ec-gold-dark);
}

.ec-main-nav .menu-item-has-children {
  position: relative;
}

.ec-main-nav .menu-item-has-children > a::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 4rem solid transparent;
  border-right: 4rem solid transparent;
  border-top: 5rem solid currentColor;
  margin-left: 3rem;
}

.ec-main-nav .sub-menu {
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 270rem;
  padding: 10rem 0;
  background: #fff;
  box-shadow: var(--ec-shadow);
  border: 1rem solid #eee;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8rem);
  transition: opacity .18s ease, visibility .18s ease, transform .18s ease;
}

.ec-main-nav .menu-item-has-children:hover > .sub-menu,
.ec-main-nav .menu-item-has-children:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.ec-main-nav .sub-menu a {
  height: auto;
  min-height: 42rem;
  padding: 11rem 16rem;
  font-size: 14rem;
  line-height: 1.25;
  text-transform: none;
  color: var(--ec-text);
  white-space: normal;
}

.ec-mobile-toggle {
  display: none;
  width: 44rem;
  height: 44rem;
  border: 0;
  border-radius: 50%;
  background: var(--ec-gold);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}

.ec-mobile-toggle__lines,
.ec-mobile-toggle__lines::before,
.ec-mobile-toggle__lines::after {
  display: block;
  width: 20rem;
  height: 2rem;
  background: #fff;
  border-radius: 2rem;
  position: relative;
  transition: transform .2s ease, opacity .2s ease;
}

.ec-mobile-toggle__lines::before,
.ec-mobile-toggle__lines::after {
  content: '';
  position: absolute;
  left: 0;
}

.ec-mobile-toggle__lines::before { top: -7rem; }
.ec-mobile-toggle__lines::after { top: 7rem; }

body.ec-mobile-menu-open .ec-mobile-toggle__lines { background: transparent; }
body.ec-mobile-menu-open .ec-mobile-toggle__lines::before { transform: translateY(7rem) rotate(45deg); }
body.ec-mobile-menu-open .ec-mobile-toggle__lines::after { transform: translateY(-7rem) rotate(-45deg); }

.ec-mobile-overlay {
  display: none;
}

.ec-mobile-panel {
  display: none;
}

.site-main {
  width: 100%;
}

.entry-content > *:first-child { margin-top: 0; }
.entry-content > *:last-child { margin-bottom: 0; }

.ec-page-shell {
  width: var(--ec-container);
  margin: 0 auto;
  padding: 48rem 0;
}

.ec-page-shell h1 { margin-top: 0; }


.ec-footer {
  position: relative;
  overflow: hidden;
  background: #222222;
  color: #fff;
  font-family: "Mulish", Arial, sans-serif;
}

.ec-footer__inner {
  position: relative;
  width: var(--ec-container);
  min-height: 553rem;
  margin: 0 auto;
  padding: 76rem 0 72rem;
}

.ec-footer__content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 330rem 300rem 270rem 260rem;
  justify-content: space-between;
  column-gap: 72rem;
}

.ec-footer__brand {
  max-width: 330rem;
}

.ec-footer__logo {
  display: inline-flex;
  width: 148rem;
  margin-bottom: 31rem;
  text-decoration: none;
}

.ec-footer__logo img {
  display: block;
  width: 148rem;
  height: auto;
}

.ec-footer__description,
.ec-footer__requisites {
  color: #fff;
  font-size: 17rem;
  line-height: 1.42;
  font-weight: 500;
}

.ec-footer__description {
  margin-bottom: 24rem;
}

.ec-footer__title {
  margin: 8rem 0 24rem;
  color: #fff;
  font-size: 18rem;
  line-height: 1.16;
  font-weight: 800;
}

.ec-footer-menu {
  display: flex;
  flex-direction: column;
  gap: 5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ec-footer-menu a {
  display: inline-flex;
  width: fit-content;
  color: #fff;
  font-size: 16rem;
  line-height: 1.45;
  font-weight: 400;
  text-decoration: none;
  transition: color .18s ease, opacity .18s ease;
}

.ec-footer-menu a:hover,
.ec-footer-menu .current-menu-item > a {
  color: #BB9C69;
}

.ec-footer__watermark {
  position: absolute;
  z-index: 1;
  left: -30rem;
  right: auto;
  bottom: 0;
  width: 1590rem;
  max-width: none;
  height: auto;
  pointer-events: none;
  user-select: none;
}

.ec-footer__bottom {
  position: relative;
  z-index: 2;
  min-height: 78rem;
  border-top: 1rem solid rgba(255, 255, 255, .15);
}

.ec-footer__bottom-inner {
  width: var(--ec-container);
  min-height: 78rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32rem;
}

.ec-footer__copyright {
  color: #fff;
  font-size: 16rem;
  line-height: 1.35;
  font-weight: 500;
}

.ec-footer__legal {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 34rem;
  flex-wrap: wrap;
}

.ec-footer__legal a {
  color: var(--ec-gold);
  font-size: 14rem;
  line-height: 1.2;
  font-weight: 500;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 5rem;
  text-decoration-thickness: 1rem;
  transition: color .18s ease;
}

.ec-footer__legal a:hover {
  color: #fff;
}

@media (max-width: 1700px) {
  .ec-header-main .ec-header__inner {
    grid-template-columns: 415rem 48rem 145rem 104rem 165rem 18rem 92rem 36rem 235rem 42rem 110rem;
  }
  .ec-brand-group { gap: 16rem; }
  .ec-brand,
  .ec-brand__logo { width: 122rem; flex-basis: 122rem; }
  .ec-brand-text { width: 276rem; }
}

@media (max-width: 1500px) {
  .ec-header-main .ec-header__inner {
    grid-template-columns: 388rem 34rem 145rem 70rem 150rem 14rem 86rem 26rem 218rem 30rem 100rem;
  }
  .ec-brand,
  .ec-brand__logo { width: 116rem; flex-basis: 116rem; }
  .ec-brand-text { width: 255rem; font-size: 14rem; }
  .ec-brand-text__title,
  .ec-brand-text__description { font-size: 14rem; }
  .ec-rating img { width: 145rem; height: 48rem; }
  .ec-question { font-size: 14rem; }
  .ec-socials { gap: 8rem; }
  .ec-socials__item { width: 43rem; height: 43rem; }
  .ec-socials__item img, .ec-socials__item svg { width: 20rem; height: 20rem; }
  .ec-phone-block__phone { font-size: 25rem; }
  .ec-cart { gap: 12rem; }
  .ec-cart__total { font-size: 16rem; }
}

@media (max-width: 1260px) {
  .ec-rating,
  .ec-question {
    display: none;
  }
  .ec-header-main .ec-header__inner {
    grid-template-columns: minmax(340rem, 1fr) 96rem 245rem 110rem auto;
    column-gap: 20rem;
  }
  .ec-brand-group { grid-column: 1; }
  .ec-socials { grid-column: 2; }
  .ec-phone-block { grid-column: 3; }
  .ec-cart { grid-column: 4; }
  .ec-mobile-toggle { grid-column: 5; }
}

@media (max-width: 1024px) {
  .ec-topbar,
  .ec-main-nav-wrap,
  .ec-brand-text,
  .ec-socials,
  .ec-phone-block__callback {
    display: none;
  }

  .ec-header-main,
  .ec-header-main .ec-header__inner {
    height: 72rem;
  }

  .ec-header-main .ec-header__inner {
    display: flex;
    justify-content: space-between;
    gap: 14rem;
  }

  .ec-brand,
  .ec-brand__logo { width: 116rem; flex-basis: 116rem; }
  .ec-phone-block { margin-left: auto; }
  .ec-phone-block__phone { font-size: 23rem; }
  .ec-cart { display: none; }
  .ec-mobile-toggle { display: inline-flex; flex: 0 0 auto; }

  body.ec-mobile-menu-open {
    overflow: hidden;
  }

  .ec-mobile-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1001;
    background: rgba(34, 34, 34, .58);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .24s ease, visibility .24s ease;
  }

  body.ec-mobile-menu-open .ec-mobile-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .ec-mobile-panel {
    display: flex;
    flex-direction: column;
    position: fixed;
    z-index: 1002;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(326rem, calc(100vw - 44rem));
    max-width: 100%;
    height: 100dvh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 24rem 18rem 30rem 20rem;
    background: #fff;
    box-shadow: -18rem 0 46rem rgba(34, 34, 34, .16);
    transform: translate3d(100%, 0, 0);
    opacity: 1;
    visibility: hidden;
    transition: transform .28s ease, visibility .28s ease;
    overscroll-behavior: contain;
  }

  body.ec-mobile-menu-open .ec-mobile-panel {
    visibility: visible;
    transform: translate3d(0, 0, 0);
  }

  .ec-mobile-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16rem;
    padding-bottom: 18rem;
    margin-bottom: 6rem;
    border-bottom: 1rem solid var(--ec-line);
  }

  .ec-mobile-panel__title {
    color: var(--ec-text);
    font-family: "Philosopher", Georgia, serif;
    font-size: 30rem;
    line-height: 1.1;
    font-weight: 400;
  }

  .ec-mobile-close {
    position: relative;
    flex: 0 0 auto;
    width: 42rem;
    height: 42rem;
    border: 1rem solid var(--ec-line);
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    padding: 0;
  }

  .ec-mobile-close span::before,
  .ec-mobile-close span::after {
    content: '';
    position: absolute;
    left: 11rem;
    top: 20rem;
    width: 20rem;
    height: 2rem;
    border-radius: 2rem;
    background: var(--ec-text);
  }

  .ec-mobile-close span::before { transform: rotate(45deg); }
  .ec-mobile-close span::after { transform: rotate(-45deg); }

  .ec-mobile-panel ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .ec-mobile-panel li {
    position: relative;
  }

  .ec-mobile-panel a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 48rem;
    padding: 13rem 48rem 13rem 0;
    border-bottom: 1rem solid var(--ec-line);
    text-decoration: none;
    color: var(--ec-text);
    font-size: 16rem;
    line-height: 1.25;
    font-weight: 600;
    overflow-wrap: anywhere;
  }

  .ec-submenu-toggle {
    position: absolute;
    top: 0;
    right: 0;
    width: 48rem;
    height: 48rem;
    border: 0;
    border-bottom: 1rem solid var(--ec-line);
    background: transparent;
    cursor: pointer;
    padding: 0;
  }

  .ec-submenu-toggle span {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 9rem;
    height: 9rem;
    border-right: 2rem solid var(--ec-text);
    border-bottom: 2rem solid var(--ec-text);
    transform: translate(-50%, -65%) rotate(45deg);
    transition: transform .2s ease;
  }

  .ec-mobile-panel .is-submenu-open > .ec-submenu-toggle span {
    transform: translate(-50%, -35%) rotate(225deg);
  }

  .ec-mobile-panel .sub-menu {
    max-height: 0;
    overflow: hidden;
    padding-left: 14rem;
    opacity: 0;
    transform: translateY(-4rem);
    transition: max-height .28s ease, opacity .22s ease, transform .28s ease;
  }

  .ec-mobile-panel .is-submenu-open > .sub-menu {
    max-height: 900rem;
    opacity: 1;
    transform: translateY(0);
  }

  .ec-mobile-panel .sub-menu a {
    min-height: 42rem;
    padding-top: 10rem;
    padding-bottom: 10rem;
    font-size: 14rem;
    font-weight: 500;
    color: var(--ec-muted);
  }

  .ec-mobile-panel__contacts {
    margin-top: 22rem;
    padding-top: 20rem;
    border-top: 1rem solid var(--ec-line);
    display: flex;
    align-items: flex-start;
    gap: 24rem;
    min-width: 0;
  }

  .ec-mobile-panel__contacts .ec-socials {
    grid-column: auto;
    display: flex;
    flex: 0 0 auto;
    gap: 10rem;
  }

  .ec-mobile-panel__contacts .ec-socials__item {
    width: 46rem;
    height: 46rem;
    flex: 0 0 46rem;
    color: #fff !important;
  }

  .ec-mobile-panel__contacts .ec-socials__item img,
  .ec-mobile-panel__contacts .ec-socials__item svg {
    width: 20rem;
    height: 20rem;
  }

  .ec-socials__svg,
  .ec-socials__svg path {
    fill: currentColor;
  }

  .ec-mobile-panel__contacts .ec-phone-block {
    grid-column: auto;
    flex: 1 1 auto;
    min-width: 0;
    margin-left: 0;
    gap: 8rem;
  }

  .ec-mobile-panel__contacts .ec-phone-block__phone {
    font-size: 16rem;
    line-height: 1.2;
    white-space: nowrap;
  }

  .ec-mobile-panel__contacts .ec-phone-block__callback {
    display: inline-flex;
    max-width: 160rem;
    font-size: 14rem;
    line-height: 1.2;
    white-space: normal;
  }


  .ec-footer__inner {
    min-height: auto;
    padding: 48rem 0 56rem;
  }

  .ec-footer__content {
    grid-template-columns: 1fr;
    row-gap: 34rem;
  }

  .ec-footer__brand {
    max-width: none;
  }

  .ec-footer__title {
    margin: 0 0 16rem;
    font-size: 20rem;
  }

  .ec-footer-menu {
    gap: 8rem;
  }

  .ec-footer-menu a,
  .ec-footer__description,
  .ec-footer__requisites {
    font-size: 14rem;
  }

  .ec-footer__bottom-inner {
    min-height: 92rem;
    padding: 20rem 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 14rem;
  }

  .ec-footer__legal {
    justify-content: flex-start;
    gap: 18rem;
  }

  .ec-footer__watermark {
    width: 100%;
    left: 0;
    opacity: .62;
  }
}

@media (max-width: 560px) {
  :root { --ec-container: calc(100vw - 24rem); }
  body { font-size: 15rem; }
  h1 { font-size: 38rem; line-height: 1.08; margin-bottom: 18rem; }
  h2 { font-size: 32rem; line-height: 1.12; margin-bottom: 16rem; }
  h3 { font-size: 24rem; line-height: 1.18; margin-bottom: 14rem; }
  .ec-header-main,
  .ec-header-main .ec-header__inner { height: 66rem; }
  .ec-header-main .ec-header__inner { gap: 10rem; }
  .ec-brand,
  .ec-brand__logo { width: 98rem; flex-basis: 98rem; }
  .ec-phone-block__phone { font-size: 17rem; letter-spacing: 0; }
  .ec-cart__icon-wrap { width: 34rem; height: 34rem; }
  .ec-cart__icon-wrap img { width: 30rem; height: 30rem; }
  .ec-mobile-toggle { width: 40rem; height: 40rem; }
  .ec-mobile-panel { width: min(326rem, calc(100vw - 32rem)); padding: 22rem 18rem 28rem 20rem; }
  .ec-mobile-panel__contacts { gap: 18rem; }
  .ec-mobile-panel__contacts .ec-phone-block__phone { font-size: 15rem; }

  .ec-footer__logo,
  .ec-footer__logo img {
    width: 132rem;
  }
}


/* =========================================================
   WooCommerce cart drawer
   ========================================================= */

.ec-cart__svg {
  display: block;
  width: 34rem;
  height: 34rem;
  color: var(--ec-gold, #BB9C69);
  flex: 0 0 auto;
}

html.ec-mini-cart-open,
body.ec-mini-cart-open {
  overflow: hidden;
}

.ec-mini-cart {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, visibility .22s ease;
}

.ec-mini-cart.is-active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.ec-mini-cart__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: rgba(18, 18, 18, .44);
  cursor: pointer;
  opacity: 0;
  transition: opacity .22s ease;
}

.ec-mini-cart.is-active .ec-mini-cart__overlay {
  opacity: 1;
}

.ec-mini-cart__drawer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(440rem, 100%);
  display: flex;
  flex-direction: column;
  background: #fbfaf7;
  box-shadow: -14rem 0 40rem rgba(0, 0, 0, .15);
  transform: translate3d(100%, 0, 0);
  transition: transform .3s cubic-bezier(.22, 1, .36, 1);
  overflow: hidden;
}

.ec-mini-cart.is-active .ec-mini-cart__drawer {
  transform: translate3d(0, 0, 0);
}

.ec-mini-cart__head {
  flex: 0 0 auto;
  min-height: 92rem;
  padding: 24rem 26rem 20rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20rem;
  border-bottom: 1rem solid #e8e1d5;
  background: #fbfaf7;
}

.ec-mini-cart__title {
  margin: 0 0 5rem;
  font-family: "Philosopher", Georgia, serif;
  font-size: 30rem;
  line-height: 1.05;
  font-weight: 400;
  color: #222;
}

.ec-mini-cart__count-label {
  display: block;
  font-size: 13rem;
  line-height: 1.25;
  color: #77736d;
}

.ec-mini-cart__close {
  width: 34rem;
  height: 34rem;
  padding: 0;
  margin: -3rem -5rem 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #222;
  font: 300 32rem/1 Arial, sans-serif;
  text-align: center;
  cursor: pointer;
  box-shadow: none;
}

.ec-mini-cart__close:hover,
.ec-mini-cart__close:focus {
  background: transparent;
  color: var(--ec-gold-dark, #9f7f4d);
  outline: none;
  box-shadow: none;
}

.ec-mini-cart__content {
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 0 26rem 26rem;
}

.ec-mini-cart__content .woocommerce-mini-cart {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ec-mini-cart__content .woocommerce-mini-cart-item {
  position: relative;
  min-height: 88rem;
  margin: 0;
  padding: 18rem 30rem 18rem 82rem;
  border-bottom: 1rem solid #ebe5db;
  list-style: none;
  color: #222;
}

.ec-mini-cart__content .woocommerce-mini-cart-item::before,
.ec-mini-cart__content .woocommerce-mini-cart-item::after {
  display: none !important;
}

.ec-mini-cart__content .woocommerce-mini-cart-item > a:not(.remove) {
  display: block;
  color: #222;
  font-size: 14rem;
  line-height: 1.35;
  font-weight: 600;
  text-decoration: none;
}

.ec-mini-cart__content .woocommerce-mini-cart-item > a:not(.remove):hover {
  color: var(--ec-gold-dark, #9f7f4d);
}

.ec-mini-cart__content .woocommerce-mini-cart-item img {
  position: absolute;
  left: 0;
  top: 18rem;
  float: none !important;
  width: 62rem !important;
  height: 62rem !important;
  margin: 0 !important;
  object-fit: cover;
  background: #fff;
}

.ec-mini-cart__content .woocommerce-mini-cart-item a.remove,
.ec-mini-cart__content .woocommerce-mini-cart-item a.remove_from_cart_button {
  position: absolute;
  top: 15rem;
  right: 0;
  z-index: 2;
  width: 24rem;
  height: 24rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: transparent !important;
  color: #9b9387 !important;
  font: 400 22rem/1 Arial, sans-serif;
  text-decoration: none;
}

.ec-mini-cart__content .woocommerce-mini-cart-item a.remove:hover,
.ec-mini-cart__content .woocommerce-mini-cart-item a.remove_from_cart_button:hover {
  background: #efe9df !important;
  color: #222 !important;
}

.ec-mini-cart__content .woocommerce-mini-cart-item .quantity {
  display: block;
  margin-top: 8rem;
  color: #77736d;
  font-size: 13rem;
  line-height: 1.25;
  font-weight: 500;
}

.ec-mini-cart__content .woocommerce-mini-cart__total {
  margin: auto 0 0;
  padding: 20rem 0 18rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20rem;
  border-top: 1rem solid #ded5c7;
  color: #222;
  font-size: 15rem;
  line-height: 1.3;
}

.ec-mini-cart__content .woocommerce-mini-cart__total strong {
  font-weight: 600;
}

.ec-mini-cart__content .woocommerce-mini-cart__total .woocommerce-Price-amount {
  font-size: 18rem;
  font-weight: 700;
  white-space: nowrap;
}

.ec-mini-cart__content .woocommerce-mini-cart__buttons {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10rem;
}

.ec-mini-cart__content .woocommerce-mini-cart__buttons .button {
  min-height: 48rem;
  margin: 0 !important;
  padding: 13rem 12rem !important;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1rem solid var(--ec-gold, #BB9C69) !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #222 !important;
  font-family: "Mulish", Arial, sans-serif;
  font-size: 11.5rem !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
  letter-spacing: .5rem;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none !important;
  box-shadow: none !important;
}

.ec-mini-cart__content .woocommerce-mini-cart__buttons .button.checkout {
  background: var(--ec-gold, #BB9C69) !important;
  color: #fff !important;
}

.ec-mini-cart__content .woocommerce-mini-cart__buttons .button:hover {
  border-color: var(--ec-gold-dark, #9f7f4d) !important;
  background: var(--ec-gold-dark, #9f7f4d) !important;
  color: #fff !important;
}

.ec-mini-cart__content .woocommerce-mini-cart__empty-message,
.ec-mini-cart__content .woocommerce-mini-cart__empty,
.ec-mini-cart__empty {
  margin: auto 0;
  padding: 50rem 0;
  color: #77736d;
  font-size: 16rem;
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 767px) {
  .ec-mini-cart__drawer {
    width: min(92vw, 420rem);
  }

  .ec-mini-cart__head {
    min-height: 78rem;
    padding: 20rem 20rem 16rem;
  }

  .ec-mini-cart__title {
    font-size: 26rem;
  }

  .ec-mini-cart__content {
    padding: 0 20rem 22rem;
  }

  .ec-mini-cart__content .woocommerce-mini-cart__buttons {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1200px) {
  .ec-cart__svg { width: 30rem; height: 30rem; }
}
