/*
Theme Name: YourTheme
Theme URI: https://example.com/
Author: Sergey
Description: Clean WooCommerce theme (v2 header+hero)
Version: 1.1
Text Domain: yourtheme
*/

:root {
  --brand-pink: #41b883;
  --brand-yellow: #FFD333;
  --text: #000000;
  --muted: #5a5a5a;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
    font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    "Noto Sans",
    sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
}

.woocommerce .woocommerce-breadcrumb {padding:20px 0px 20px 0px!important;}

.site-header {
  border-bottom: 1px solid #eee;
}

.top-bar,
.bottom-bar {
  padding: 12px 0;
}

.top-bar .container,
.bottom-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  max-height: 48px;
  display: block;
}

.top-menu .menu,
.main-menu .menu {
  display: flex;
  gap: 24px;
  align-items: center;
  white-space: nowrap;
  justify-content: center;
}

.top-menu .menu a,
.main-menu .menu a {
  display: block;
  padding: 8px 0;
  font-weight: 300;
}

.top-menu .sub-menu,
.main-menu .sub-menu {
  position: absolute;
  background: #fff;
  border-radius: 8px;
  padding: 8px 0;
  display: none;
  min-width: 200px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
  z-index:999;
}

.main-menu li {
  position: relative;
}

.main-menu li:hover{
    color:white;
    background:#f2b83a;
}
.main-menu li.menu-item-has-children:hover > .sub-menu {
  display: block;
  background:#41b883;
}

.sub-menu li a {
  padding: 8px 14px!important;
  display: block;
}
.sub-menu li a:hover {
  background:#f2b83a;

}


.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.phone {
  font-weight: 700;
}

.cart a {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f2b83a;
  color:white;
  padding: 9px 14px;
  border-radius: 8px;
  font-weight: 300;
}
.cart a:hover{
    background:#ff5800;
}
.cart-icon {
  font-size: 18px;
  line-height: 1;
}

.bottom-bar {
  background: var(--brand-pink);
  padding: 10px 0;
}

.work-time {
  color: #3f3f3f;
  font-size: 14px;
}

.burger {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  padding: 8px;
  margin-right: 10px;
 
}

.burger span {
  display: block;
  height: 2px;
  width:30px;
  background: #000;
  margin: 3px 0;
  transition: .2s;
}

.nav-open .burger span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-open .burger span:nth-child(2) {
  opacity: 0;
}

.nav-open .burger span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .35);
  opacity: 0;
  transition: .2s;
}

.nav-open .mobile-nav__overlay {
  opacity: 1;
}

.mobile-nav__panel {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 86%;
  max-width: 360px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
  transform: translateX(-100%);
  transition: transform .2s ease;
  display: flex;
  flex-direction: column;
  z-index:999;
}

.nav-open .mobile-nav__panel {
  transform: translateX(0);
}

.mobile-nav__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid #eee;
}

.mobile-nav__close {
  background: transparent;
  border: 0;
  font-size: 20px;
  line-height: 1;
}

.mobile-nav__body {
  padding: 10px 8px 20px 8px;
  overflow: auto;
}

.mobile-nav__contacts {
  display: flex;
  gap: 10px;
  padding: 10px 8px;
}

.mobile-nav__contacts .cart-btn {
  background: var(--brand-yellow);
  padding: 8px 12px;
  border-radius: 6px;
  color: #000;
  text-decoration: none;
  font-weight: 700;
}

.mobile-nav__contacts .phone {
  font-weight: 700;
}

.menu.mobilemenu,
.menu.mobilemenu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu.mobilemenu > li > a {
  display: block;
  padding: 12px 12px;
  border-bottom: 1px solid #f1f1f1;
  color: #000;
  text-decoration: none;
  font-weight: 600;
}

.menu.mobilemenu .menu-item-has-children {
  position: relative;
}

.menu.mobilemenu .submenu-toggle {
  position: absolute;
  right: 6px;
  top: 8px;
  border: 0;
  background: transparent;
  font-size: 18px;
  line-height: 1.2;
  padding: 6px;
  cursor: pointer;
}

.menu.mobilemenu .menu-item-has-children > ul {
  display: none;
  padding-left: 12px;
  background: #fafafa;
}

.menu.mobilemenu .menu-item-has-children.is-open > ul {
  display: block;
}

.menu.mobilemenu .menu-item-has-children > ul > li > a {
  display: block;
  padding: 10px 12px;
  border-bottom: 1px solid #eee;
  text-decoration: none;
  color: #333;
}

.hero {
  position: relative;
}

.hero-banner {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

.hero-banner img {
  width: 100%;
  display: block;
}

.hero-text {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, .9);
  padding: 20px 28px;
  border-radius: 10px;
  text-align: center;
  min-width: 260px;
}

.hero-text h2 {
  margin: 0 0 8px;
  font-size: 42px;
  line-height: 1.1;
  color: #E60000;
  font-weight: 800;
  letter-spacing: .4px;
}

.hero-text h2 span {
  color: #000;
}

.hero-text p {
  margin: 0;
  color: #666;
  font-size: 14px;
}

@media (max-width: 1024px) {
  .top-menu {
    display: none;
  }
}

@media (max-width: 768px) {
  .burger {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap:wrap;
    
  }

  .top-menu,
  .main-menu {
    display: none;
  }

  .header-right .phone {
    display: none;
  }

  .work-time {
    display: none;
  }

  .hero-text h2 {
    font-size: 30px;
  }
}

@media (max-width: 575px) {
  .logo img {
    max-height: 42px;
  }

  .cart a {
    padding: 6px 10px;
  }

  .hero-text {
    padding: 14px 18px;
  }

  .hero-text h2 {
    font-size: 22px;
  }
}

/* Иконки по умолчанию скрыты на десктопе */
.phone-icon { display:none; }

/* Выровнять элементы в верхней полосе */
.top-bar .container { display:flex; align-items:center; }
.logo { margin-left:8px; }
.header-right { margin-left:auto; display:flex; align-items:center; gap:14px; }

/* Стиль SVG, чтобы не прыгали */
.header-right svg { display:block; width:24px; height:24px }

/* Мобильная компоновка (≤768) */
@media (max-width:768px){
  /* слева: бургер + лого, справа: трубка + корзина-иконка */
  .phone { display:none; }          /* прячем текстовый телефон */
  .phone-icon { display:inline-flex; }

  /* корзина — только иконка; без жёлтой плашки и текста */
  .cart a { background:transparent; padding:0; border-radius:0; }
  .cart .cart-label, .cart .cart-count { display:none; }
  .cart .cart-svg { display:block; }

  /* немного уплотнить шапку */
  .top-bar { padding:10px 0; }
  .logo img { max-height:36px; }
  .header-right { gap:12px; }
}

/* Десктоп возвращаем прежний вид корзины */
@media (min-width:769px){
  .cart .cart-svg { display:none; } /* svg скрыт, видна жёлтая кнопка */
}


/* === FOOTER (как в оригинале) === */
:root{
  --f-line:#41b883;    /* тонкая линия */
  --f-text:#222;
  --f-muted:#777;
}

.f-site{background:#fff;color:var(--f-text);}
.f-sep{
  border:0;border-top:2px solid var(--f-line);
  margin:28px 0 22px;
}

.f-grid{
  display:grid;
  grid-template-columns: 1.1fr 1.1fr 1fr; /* чуть шире первые две колонки */
  gap:40px 48px;
  align-items:start;
}

.f-title{
  margin:0 0 14px;
  font-size:20px; font-weight:700; letter-spacing:.2px;
}

.f-menu{margin:0; padding:0; list-style:none;}
.f-menu li+li{margin-top:10px;}
.f-menu a{color:var(--f-text); text-decoration:none;}
.f-menu a:hover{text-decoration:underline;}

.f-contacts{font-style:normal; margin:0; padding:0;}
.f-row{
  display:grid; grid-template-columns: 20px 90px 1fr;
  align-items:center; column-gap:10px;
  margin:0 0 8px;
}
.f-ic{width:20px; text-align:center; opacity:.9;}
.f-label{color:var(--f-muted); font-size:14px;}
.f-link,.f-text{font-size:16px; color:var(--f-text); text-decoration:none;}
.f-link:hover{text-decoration:underline;}

.f-hours{margin:10px 0 0; color:var(--f-muted); font-size:14px;}

.f-bottom{
  display:flex; flex-wrap:wrap; justify-content:space-between; row-gap:8px;
  margin-top:18px; padding:16px 0 34px; border-top:1px solid #f0f0f0;
}
.f-legal,.f-copy{color:var(--f-muted); font-size:13.5px;}

/* Адаптив под 768 / 575 */
@media (max-width: 992px){
  .f-grid{grid-template-columns: 1fr 1fr;}
}
@media (max-width: 575px){
  .f-grid{grid-template-columns: 1fr; gap:22px;}
  .f-title{margin-bottom:10px;}
  .f-row{grid-template-columns: 20px 80px 1fr;}
  .f-bottom{flex-direction:column; align-items:flex-start;}
}

.p-extra{margin:16px 0 8px;}
.p-extra__title{margin:0 0 8px;font-size:16px;font-weight:700;}
.p-extra__list{margin:0;padding:0;list-style:none;color:#F24F3A;}
.p-extra__list li{margin:4px 0;}
.p-extra__list li span{color:#F24F3A;margin-right:6px;}

.card-extra{margin:10px 0 0; font-size:14px; color:#444;}
.card-extra__row{margin:4px 0; color:#F24F3A; font-style:italic;}
.card-extra__row em{font-style:normal; color:#F24F3A; margin-right:6px;}

/* Плашка скидки */
.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-family: inherit;
}

.badge-top {
  background: #ff9900;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  padding: 3px 8px;
  border-radius: 2px 2px 0 0;
  text-transform: uppercase;
}

.badge-bottom {
  background: #feca2f;
  color: #000;
  font-size: 13px;
  padding: 3px 8px;
  border-radius: 0 0 2px 2px;
}

/* Карточка товара — контейнер */
.card-product{
  position: relative;
  display: block;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}

/* Картинка сверху */
.card-product__thumb{ display:block; position:relative; }
.card-product__img{ width:100%; height:auto; display:block; }

/* Тело */
.card-product__body{ padding:14px 0px;}

.card-product__title{
  font-size:20px!important; font-weight:500; margin:8px 0 10px;
}

.card-product__title a{ color:#111; text-decoration:none; }
.card-product__title a:hover{color:#f2b83a!important; }

.card-product__excerpt{
  color:#333; line-height:1.5; margin:0 0 8px;
}

/* ACF-поля */
.card-extra{ margin:8px 0 10px; font-size:14px; }
.card-extra__row{ margin:4px 0; color:#F24F3A; font-style:italic; }
.card-extra__row em{ font-style:normal; font-weight:600; color:#F24F3A; margin-right:6px; }

/* Строка покупки: цена слева, qty справа */
.card-product__buy{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  align-items:center;
  margin-top:6px;
}
.card-product__price{
  font-size:22px; font-weight:500; color:#F24F3A;
}
.card-product__price del{ font-size:14px; color:#999; font-weight:400; margin-right:6px; display:block; }
.card-product__price ins{ text-decoration:none; }

/* Количество */
.card-product__form{ display:flex; align-items:center; gap:12px; justify-self:end; }
.card-product .quantity{ display:inline-flex; align-items:center; border:1px solid #eee; border-radius:8px; }
.card-product .qty{
  width:48px; height:40px; border:0; text-align:center; font-weight:600; background:#fff;
}
.card-product .quantity .minus,
.card-product .quantity .plus{ display:none; } /* если плагин добавляет, скрываем — используем стандартный input */

/* Кнопка */
.card-product__btn{
  background:#ff7a00; color:#fff; border-radius:8px;
  padding:10px 18px; font-weight:700; border:0; cursor:pointer;
}
.card-product__btn:hover{ filter:brightness(.95); }

/* Плашка скидки */
.product-badge{ position:absolute; top:10px; left:10px; z-index:5; display:flex; flex-direction:column; }
.badge-top{ background:#ff9900; color:#fff; font-weight:700; font-size:13px; padding:3px 8px; border-radius:2px 2px 0 0; text-transform:uppercase; }
.badge-bottom{ background:#feca2f; color:#000; font-size:13px; padding:3px 8px; border-radius:0 0 2px 2px; }

/* Мобилки — кнопка на всю ширину */
@media (max-width:575px){
  .card-product__buy{ grid-template-columns: 1fr; }
  .card-product__form{ justify-self:stretch; }
  .card-product__btn{ width:100%; text-align:center; }
}
.qtybox{ display:inline-flex; align-items:center; gap:8px; }
.qtybtn{ width:34px; height:34px; border:1px solid #eee; border-radius:8px; background:#fff; font-size:20px; line-height:1; }

.card-product__price ins {color:#ff5800;
    font-size: 22px;
    font-weight: 500;
    line-height: 1;
}

.woocommerce ul.products li.product .button {
    display: block;
    margin: 0px;
    background: #ff7a00;
    color: white;
    font-size: 16px;
    font-weight:300;
}
    
    .woocommerce ul.products li.product, .woocommerce-page ul.products li.product {
        width:30%;
        margin:1%;
    }
    
/* Главная: секции категорий */
.home-cat { padding: 28px 0 36px; }
.home-cat + .home-cat { border-top: 1px solid #f0f0f0; }

.home-cat__head { display:flex; justify-content: center;margin-bottom: 16px; }
.home-cat__title {
  font-size: 28px; font-weight: 400; margin: 0; text-transform:uppercase;
}

/* сетка WooCommerce уже задаёт .products; добавим отступы */
.home-cat { padding:28px 0 36px; }
.home-cat + .home-cat { border-top:1px solid #f0f0f0; }
.home-cat__head{ display:flex; justify-content:center; margin-bottom:16px; }
.home-cat__title{ font-size:28px; font-weight:400; text-transform:uppercase; margin:0; }
@media (max-width:575px){ .home-cat__title{ font-size:22px; } }

.home-cat__footer{ text-align:center; margin-top:18px; }
.btn-more{
  display:inline-block; background:#ff7a00; color:#fff; font-weight:700;
  padding:10px 18px; border-radius:8px; text-decoration:none;
}
.btn-more:hover{ filter:brightness(.95); }

/* адаптив */
@media (max-width: 992px){
  .home-cat__title { font-size: 24px; }
}
@media (max-width: 575px){
  .home-cat__grid .product { padding: 6px; }
}


/* === HOW-ORDER block === */
.how-order{
  background:#eab33a; /* жёлтый из референса */
  color:#fff;
  padding:32px 0 40px;
  margin-left:  calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.how-order__title{
  margin:0 0 22px;
  text-align:center;
  font-weight:700;
  letter-spacing:.5px;
  text-transform:uppercase;
  font-size:32px;
}
.how-order__grid{
  display:grid;
  grid-template-columns: repeat(4,1fr);
  gap:38px 42px;
  margin:0; padding:0; list-style:none;
}
.how-order__item{ text-align:center; }
.how-order__icon{ position:relative;  margin:0 auto 12px; }
.how-order__icon img{ width:50%; }
.how-order__shadow{
  position:absolute; left:50%; bottom:-6px; transform:translateX(-50%);
  width:90px; height:16px; border-radius:50%;
  background:rgba(0,0,0,.18); filter:blur(2px);
}
.how-order__step{
  margin:8px 0 6px;
  font-size:18px; font-weight:700;
}
.how-order__text{
  margin:0; font-size:15px; line-height:1.55; color:#fff;
  max-width:300px; margin-left:auto; margin-right:auto;
}

/* tablet */
@media (max-width: 992px){
  .how-order__title{ font-size:28px; }
  .how-order__grid{ grid-template-columns: repeat(2,1fr); gap:28px 24px; }
}
/* mobile */
@media (max-width: 575px){
  .how-order{ padding:26px 0 30px; }
  .how-order__title{ font-size:22px; letter-spacing:.3px; }
  .how-order__grid{ grid-template-columns: 1fr; gap:22px; }
  .how-order__icon{ width:84px; height:84px; margin-bottom:10px; }
  .how-order__shadow{ width:70px; height:14px; bottom:-4px; }
  .how-order__step{ font-size:16px; }
  .how-order__text{ font-size:14px; }
}
/* Базовая сетка товаров */
.woocommerce ul.products,
.woocommerce-page ul.products,
.home-cat__grid{
  display:grid !important;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 40px;
  margin: 0;
  padding: 0;
}

/* Сбрасываем старые ширины от Woo */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product{
  width:auto !important;
  margin:0 !important;
  float:none !important;
  clear:none !important;
}

/* Адаптив: 1240 / 992 / 768 / 575 */
@media (max-width: 1240px){
  .woocommerce ul.products,
  .woocommerce-page ul.products,
  .home-cat__grid{ grid-template-columns: repeat(4, minmax(0,1fr)); }
}
@media (max-width: 992px){
  .woocommerce ul.products,
  .woocommerce-page ul.products,
  .home-cat__grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .home-cat__title{ font-size:24px; }
}
@media (max-width: 575px){
  .woocommerce ul.products,
  .woocommerce-page ul.products,
  .home-cat__grid{ grid-template-columns: 1fr; gap:14px; }
  .home-cat__grid .product{ padding:0; } /* аккуратнее с внутренними отступами */
}
/* ===== About (Главная) ===== */
.about{ padding: 28px 0 16px; color:#111; }
.about__bar{ height:14px; background:#eab33a; margin-bottom:16px; }
.about__title{
  margin:0 0 14px; font-weight:700; letter-spacing:.5px;
  font-size:28px; color:#eab33a; text-transform:uppercase;
}
.about__lead{
  margin:0 0 18px; font-size:18px; line-height:1.5;
}
.about__lead strong{ font-weight:700; }

.about__grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 40px;
}
.about__col p{ margin:0 0 14px; line-height:1.7; color:#333; }

/* tablet */
@media (max-width: 992px){
  .about{ padding:24px 0 10px; }
  .about__title{ font-size:24px; margin-bottom:12px; }
  .about__lead{ font-size:16px; margin-bottom:16px; }
  .about__grid{ grid-template-columns: 1fr; gap:16px; }
}

/* mobile */
@media (max-width: 575px){
  .about__bar{ height:12px; margin-bottom:12px; }
  .about__title{ font-size:20px; letter-spacing:.3px; }
  .about__lead{ font-size:15px; }
  .about__col p{ margin-bottom:12px; }
}
/* когда используем grid на списке товаров — глушим clearfix-псевдоэлементы */
.woocommerce ul.products.grid::before,
.woocommerce ul.products.grid::after,
.woocommerce ul.products.columns-4::before,
.woocommerce ul.products.columns-4::after {
  content: none !important;
  display: none !important;
}

.fs-catnav { margin: 12px 0 24px; }
.fs-catnav__row { margin-bottom: 10px; }
.fs-catnav__list { display:flex; flex-wrap:wrap; gap:14px 18px; padding:0; margin:0; list-style:none; justify-content: center;}
.fs-catnav__btn{
  display:inline-block; padding:10px 16px; border-radius:12px;
  background:#41b883; color:white; text-decoration:none; line-height:1;
  transition:transform .12s ease, background .12s ease, box-shadow .12s ease;
  box-shadow:0 1px 0 rgba(0,0,0,.04) inset; white-space:nowrap;
}
.fs-catnav__btn:hover{ transform:translateY(-1px); box-shadow:0 4px 12px rgba(0,0,0,.08); }
.fs-catnav__btn.is-active{ background:#41b883; font-weight:600; }
@media (max-width:640px){ .fs-catnav__btn{ padding:9px 14px; border-radius:10px; } }


/* === Desktop: center main nav in the pink bar like foodboxdelivery === */
@media (min-width: 993px){
  .bottom-bar .container{
    position: relative;
    justify-content: flex-start; /* container becomes the anchor for absolute centering */
  }
  /* Center the main menu horizontally in the bar */
  .bottom-bar .main-menu{
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    white-space: nowrap;
  }
  /* Keep the work-time aligned to the right edge */
  .bottom-bar .work-time{
    margin-left: auto;
    padding-left: 16px;
  }
  /* Make sure dropdowns overlay correctly */
  .bottom-bar .main-menu .sub-menu{
    z-index: 1000;
  }
}


/* === Fix dropdown menu style === */
@media (min-width: 993px){
  .main-menu > li.menu-item-has-children > ul.sub-menu {
    background: #f38d83; /* same pink as bar */
    padding: 8px 0;
    border-radius: 0 0 6px 6px;
    min-width: 200px;
  }
  .main-menu > li.menu-item-has-children > ul.sub-menu > li > a {
    display: block;
    padding: 10px 18px;
    color: #fff;
    background: none;
    text-decoration: none;
    white-space: nowrap;
    transition: background .15s ease;
  }
  .main-menu > li.menu-item-has-children > ul.sub-menu > li > a:hover {
    background: rgba(255,255,255,0.15);
  }
}


/* === Desktop dropdown like foodboxdelivery === */
@media (min-width: 993px){
  .bottom-bar { overflow: visible; }
  .bottom-bar .main-menu ul,
  .bottom-bar .main-menu li{ list-style:none; margin:0; padding:0; }
  .bottom-bar .main-menu > ul > li{ position:relative; }
  .bottom-bar .main-menu > ul > li > .sub-menu{
    position:absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 220px;
    background: #41b883;             /* теплый розовый, как в баре */
    border-radius: 8px;
    padding: 10px 0;
    box-shadow: 0 12px 30px rgba(0,0,0,.15);
    z-index: 1002;
    display: none;
    overflow: auto;
  }
  .bottom-bar .main-menu > ul > li:hover > .sub-menu{ display:block; }
  .bottom-bar .main-menu .sub-menu li{ position:relative; }
  .bottom-bar .main-menu .sub-menu a{
    display:block;
    padding: 12px 18px;
    color:#fff;
    text-decoration:none;
    white-space: nowrap;
  }
  .bottom-bar .main-menu .sub-menu a:hover{
    background: rgba(255,255,255,.12);
  }
  /* caret spacing similar to reference */
  .bottom-bar .main-menu > ul > li.menu-item-has-children > a{ padding-right: 18px; }
  .bottom-bar .main-menu > ul > li.menu-item-has-children > a:after{
    content:"";
    border: 4px solid transparent;
    border-top-color: currentColor;
    display:inline-block;
    margin-left:6px;
    vertical-align: middle;
    transform: translateY(-1px);
  }
}


/* === Fix dropdown attach + full background first-level items === */
@media (min-width: 993px){
  /* Прижать подменю прямо к низу розовой панели */
  .bottom-bar .main-menu > ul > li > .sub-menu{
    top: 100%; /* ровно под элементом */
    margin-top: 0;
  }

  /* Первый уровень — ссылка занимает всю область */
  .bottom-bar .main-menu > ul > li > a{
    display: block;
    padding: 14px 20px;
    height: 100%;
    background: transparent;
    color: #000;
  }
  .bottom-bar .main-menu > ul > li:hover > a,
  .bottom-bar .main-menu > ul > li.current-menu-item > a,
  .bottom-bar .main-menu > ul > li.current-menu-ancestor > a{
    background: #d86d64; /* закрашиваем полностью */
    color: #fff;
  }
}


/* === Tighter dropdown + full-width first-level hover === */
@media (min-width: 993px){
  /* 1) Подменю вплотную к нижней границе верхнего бара */
  .bottom-bar .main-menu > ul > li > .sub-menu{
    top: 100%;         /* было 100% + 8px */
    margin-top: 0;
  }

  /* 2) Закрашиваем весь hit-area первого уровня */
  .bottom-bar .main-menu > ul > li > a{
    display: block;
    padding: 12px 16px;
    border-radius: 8px;
  }
  /* актив/hover у всего пункта, а не только у текста */
  .bottom-bar .main-menu > ul > li:hover > a,
  .bottom-bar .main-menu > ul > li.current-menu-item > a,
  .bottom-bar .main-menu > ul > li.current-menu-ancestor > a{
    background: #e98e86;
    color: #fff;
  }

  /* 3) Чтобы при открытом подменю фон сохранялся,
        даже если курсор уходит в dropdown */
  .bottom-bar .main-menu > ul > li:hover{
    z-index: 1003;
  }
}


/* === Fix: highlight only on hover + seamless radius between top item and dropdown === */
@media (min-width: 993px){
  /* сбрасываем постоянную подсветку активных пунктов */
  .bottom-bar .main-menu > ul > li > a{
    background: transparent;
    color: inherit;
  }
  .bottom-bar .main-menu > ul > li.current-menu-item > a,
  .bottom-bar .main-menu > ul > li.current-menu-ancestor > a{
    background: transparent;
    color: inherit;
  }

  /* ховер первого уровня красит всю область и убирает нижние радиусы,
     чтобы слиться с выпадающим меню */
  .bottom-bar .main-menu > ul > li:hover > a{
    background:#41b883;
    color: #fff;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }

  /* радиусы у подменю чтобы визуально было одним блоком */
  .bottom-bar .main-menu > ul > li > .sub-menu{
    border-radius: 8px;
  }
  .bottom-bar .main-menu > ul > li:hover > .sub-menu{
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
  }
}


/* === Final fixes: no radius on dropdown + on top of product cards === */
@media (min-width: 993px){
  /* подменю без скругления, тень чуть сильнее */
  .bottom-bar .main-menu > ul > li > .sub-menu{
    border-radius: 0 !important;
    box-shadow: 0 16px 40px rgba(0,0,0,.18);
    z-index: 99999; /* поверх всего контента страницы */
  }

  /* сам хедер и розовая полоса образуют верхний стек */
  .site-header,
  .bottom-bar{
    position: relative;
    z-index: 100000;
    overflow: visible;
  }

  /* карточки товаров не должны забираться выше хедера */
  .woocommerce ul.products li.product{ position: relative; z-index: 1 !important; }
  .woocommerce ul.products li.product:hover{ z-index: 1 !important; }
}


/* === Desktop header layout like foodboxdelivery === */
@media (min-width: 993px){
  .top-bar .container{
    position: relative;
    align-items: center;
    min-height: 68px;
  }
  .top-bar .logo img{ max-height: 56px; }
  .top-bar .top-menu .menu{ gap: 28px; }
  .top-bar .phone{
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    white-space: nowrap;
    font-weight: 700;
    z-index: 5;
  }
  .top-bar .header-right{ margin-left: auto; gap: 16px; }
  .top-bar .cart a{ padding: 10px 16px; border-radius: 12px; }
}


/* === Desktop header: grid layout to center phone exactly like foodboxdelivery === */
@media (min-width: 993px){
  .top-bar .container{
    display: grid;
    grid-template-columns: auto 1fr auto; /* logo | menu | cart */
    align-items: center;
    gap: 24px;
    min-height: 72px;
    position: relative;
  }
  .top-bar .logo{ grid-column: 1; }
  .top-bar .top-menu{ grid-column: 2; z-index: 1; }
  .top-bar .header-right{ grid-column: 3; justify-self: end; }
  /* phone spans всю ширину сетки, но центрируется сам по себе */
  .top-bar .phone{
    grid-column: 1 / -1;
    justify-self: center;
    position: static;   /* отменяем абсолют */
    transform: none;    /* сброс */
    margin: 0;
    white-space: nowrap;
    font-weight: 700;
    z-index: 2;         /* над меню, но под выпадашками нижней полосы */
  }
  /* Размер логотипа и интервалы меню */
  .top-bar .logo img{ max-height: 80px; }
  .top-bar .top-menu .menu{ gap: 45px; }
}
/* фикс наезда work-time в ширине 994–1172px */
@media (min-width: 994px) and (max-width: 1172px){
  .bottom-bar .container{
    display: flex;
    align-items: center;
  }
  .bottom-bar .main-menu{
    position: static;
    left: auto;
    transform: none;
    margin: 0 auto;      /* визуальный центр */
    white-space: nowrap;
  }
  .bottom-bar .main-menu > ul{ gap: 18px; }  /* чуть компактнее пункты */
  .bottom-bar .work-time{
    margin-left: 16px;
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

#fs-cart-modal-wrap { position: fixed; inset: 0; z-index: 9999; display:none; }
#fs-cart-modal-wrap.is-open { display:block; }

.fs-modal-overlay{ position:absolute; inset:0; background:rgba(0,0,0,.45); }

.fs-modal{
  position:absolute; left:50%; top:50%;
  transform:translate(-50%,-50%);
  background:#fff; width:min(920px, calc(100% - 24px));
  padding:26px; border-radius:14px;
}

.fs-modal__close{ position:absolute; right:14px; top:10px; border:0; background:transparent; font-size:26px; cursor:pointer; }
.fs-modal__title{ font-weight:700; margin-bottom:14px; }

.fs-modal__row{ display:flex; gap:18px; align-items:flex-start; }
.fs-modal__img img{ width:110px; height:auto; border-radius:10px; }
.fs-modal__info{ flex:1; }
.fs-modal__name{ font-weight:700; margin-bottom:6px; }
.fs-modal__excerpt{ opacity:.85; line-height:1.35; }

.fs-modal__right{ display:flex; flex-direction:column; gap:10px; align-items:flex-end; min-width:180px; }
.fs-modal__qty{ display:flex; gap:10px; align-items:center; }
.fs-modal__qty button{ width:36px; height:36px; border:1px solid #f2b83a; background:#fff; border-radius:8px; cursor:pointer; }
.fs-modal__qty input{ width:44px; text-align:center; border:1px solid #eee; height:36px; border-radius:8px; }

.fs-modal__actions{ display:flex; gap:18px; justify-content:center; margin-top:18px; }
.fs-modal__actions .button.alt{
  background:#ff6a00!important;
  border:none;
  color:#fff;
  padding:14px 28px;
  border-radius:10px;
  font-weight:600;
  transition:.2s ease;
}

.fs-modal__actions .button.alt:hover{
  background:#e85f00;
  color:#fff;
}

.fs-modal__actions .button{
  background:#e9e9e9;
  border:none;
  color:#222;
  padding:14px 28px;
  border-radius:10px;
  font-weight:500;
  transition:.2s ease;
}

.fs-modal__actions .button:hover{
  background:#dcdcdc;
}

.fs-modal__actions{
  display:flex;
  gap:20px;
  justify-content:center;
  margin-top:25px;
}

@media (max-width: 600px){

  /* модалка компактнее */
  .fs-modal{
    width: calc(100% - 24px);
    padding: 18px;
    border-radius: 14px;
  }

  .fs-modal__row{
    display: grid;
    grid-template-columns: 64px 1fr;
    grid-template-areas:
      "img info"
      "right right";
    gap: 12px;
    align-items: start;
  }

  .fs-modal__img{ grid-area: img; }
  .fs-modal__img img{
    width: 64px;
    border-radius: 10px;
  }

  .fs-modal__info{ grid-area: info; min-width: 0; }
  .fs-modal__name{
    font-size: 16px;
    margin-bottom: 6px;
  }

  /* ограничиваем описание, чтобы не тянуло вниз */
  .fs-modal__excerpt{
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.35;
  }

  /* блок qty+price уходит ниже, как в рефе */
  .fs-modal__right{
    grid-area: right;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-width: 0;
    margin-top: 6px;
  }

  .fs-modal__price{
    font-size: 18px;
    font-weight: 700;
  }

  /* кнопки одна под другой */
  .fs-modal__actions{
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
  }

  .fs-modal__actions .button,
  .fs-modal__actions .button.alt{
    width: 100%;
    text-align: center;
    padding: 14px 18px;
    border-radius: 12px;
  }
}
/* Плашка "Товар добавлен в корзину" */
.woocommerce-message{
  background:#fff3e6;              /* светлый фон */
  border:2px solid #ff6a00;        /* рамка в цвет бренда */
  color:#222;
  border-radius:10px;
  padding:16px 20px;
}

/* Иконка */
.woocommerce-message::before{
  color:#ff6a00;
}

/* Кнопка внутри */
.woocommerce-message .button{
  background:#ff6a00;
  color:#fff;
  border:none;
  border-radius:8px;
  padding:10px 18px;
}

.woocommerce-message .button:hover{
  background:#e85f00;
  color:#fff;
}
/* фикс иконки */
.woocommerce-message{
  position: relative;
  padding-left: 52px; /* увеличили отступ */
}

/* сама галочка */
.woocommerce-message::before{
  left: 18px;
  top: 40%;
  transform: translateY(-50%);
  font-size: 18px;
}

/* Кнопка оформить заказ (Woo Blocks) */
.wc-block-components-checkout-place-order-button,
.wc-block-components-button.wp-element-button{
  background:#ff7a00 !important;
  border:none !important;
  color:#fff !important;
  border-radius:10px;
  padding:14px 24px;
  font-weight:600;
  transition:.2s ease;
}

/* hover */
.wc-block-components-checkout-place-order-button:hover,
.wc-block-components-button.wp-element-button:hover{
  background:#e86f00 !important;
  color:#fff !important;
}
/* Скрыть блок "Новинки в магазине" на странице пустой корзины */
.woocommerce-cart .cart-empty + .return-to-shop + .cross-sells,
.woocommerce-cart .cart-empty ~ .cross-sells{
  display:none !important;
}


.woocommerce #payment #place_order, .woocommerce-page #payment #place_order {
   background:#ff7a00 !important;
}