/* Базовые стили */
.btn:not(.style-none).variant-primary, .button:not(.style-none).variant-primary, input[type=submit]:not(.style-none).variant-primary, .submit:not(.style-none).variant-primary, .action-button-mobile .action-icon .action-count {
  background-color: #000000
}
.widget_tag_cloud .tagcloud a:hover {
  text-decoration: underline;
}
.darkening-bg {
  position: relative;
}
.darkening-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3); /* Полупрозрачное затемнение */
  pointer-events: none; /* Отключаем события мыши */
  border-radius: 8px;
}
.popup-size-guide .popup-column > div {
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}
.page-header-inner {
  position: relative;
}
.page-header-inner .page-header-breadcrumbs {
  position: absolute;
  bottom: 0;
}
.wp-block-gallery.wp-block-gallery-custom {
  max-width: 650px;
  gap: 20px;
}
.wp-block-gallery-custom .wp-block-image {
  margin-bottom: 0 !important;
}
.woocommerce-form-coupon-toggle {
  margin-bottom: 30px;
}
.post-share .social-media {
  width: auto;
}
.post-share .post-share-follow {
  margin-left: 20px;
}
.footer-social-follow__inner {
  min-height: 26px;
  justify-content: flex-start;
}
@media screen and (min-width: 768.02px) {
  .footer-social-follow__inner {
    justify-content: center;
  }
}
.footer-social-follow__label {
  font-size: 0.875rem;
  font-weight: 600;
}
.footer-social-follow .social-media {
  width: auto;
}
.product .product-thumbnail .product-badge .badge {
  font-size: 12px;
}

/* Шапка */
.announcement .marquee-item {
  margin-inline-start: 0;
  margin-left: 0 !important;
}
.announcement .marquee-item p {
  text-transform: uppercase;
}
.announcement .marquee-item img {
  height: 28px;
  width: 28px;
  object-fit: cover;
}
.navigation.navigation-horizontal .menu .sub-menu .category-box .sub-categories li  a {
  justify-content: center;
}
.custom-button-dropdown .product-thumbnail img {
  height: 315px;
  object-fit: cover;
}
.custom-button-dropdown .product-body .product-title {
  height: 42px;
}
.navigation.navigation-horizontal .menu .menu-item-has-children.menu-link-brands > .sub-menu {
  max-height: 60vh;
  overflow-x: hidden;
  overflow-y: auto;
}
.navigation.navigation-horizontal .menu .menu-item-has-children.menu-link-brands .sub-menu .category-media img {
  width: 155px;
  height: 155px;
  object-fit: cover;
}
.navigation.navigation-horizontal .menu .menu-item-has-children.menu-link-brands .sub-menu .category-media img.mega-menu-deferred-img {
  background-color: rgb(var(--colors-gray-50, 249 250 251));
}

.drawer.categories-drawer .drawer-inner .drawer-inner-body {
  padding: 10px;
}
.drawer .drawer-inner .navigation.category-menu ul {
  gap: 7px;
}
.drawer .drawer-inner .navigation.category-menu ul li {
  min-height: 60px;
  height: auto;
  display: flex;
  align-items: center;
  border-radius: 8px;
  background: #f9f9f9;
}
.drawer .drawer-inner .navigation.category-menu a {
  justify-content: space-between;
  padding: 0 24px;
}
.drawer .drawer-inner .navigation.category-menu a img {
  width: 60px;
  height: 60px;
  object-fit: cover;
}

/* Главная */
#main-carousel .elementor-image-carousel-wrapper {
  padding-bottom: 18px;
}
#main-carousel .swiper-pagination {
  display: flex;
  align-items: center;
}
#main-carousel .swiper-pagination .swiper-pagination-bullet {
  flex: 1 1 0;
  width: auto;
  height: 3px;
  margin: 4px;
  border-radius: 8px;
}

/* Фильтр категорий: ссылка и «+» в одной строке */
.widget.widget_ferrano_product_categories .layered-nav-term-row {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 0.625rem;
}

.widget.widget_ferrano_product_categories .layered-nav-term-row > a {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
}

.widget.widget_ferrano_product_categories .layered-nav-term-row .toggle {
  flex: 0 0 auto;
  margin-inline-start: auto;
  cursor: pointer;
}

/* Фильтр атрибутов: аккордеон + облако меток */
.widget_ferrano_product_attributes .widget-title {
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0;
}

.widget_ferrano_product_attributes .widget-title::after {
  content: '+';
  flex: 0 0 auto;
  font-size: 1.125rem;
  line-height: 1;
  font-weight: 400;
}

.widget_ferrano_product_attributes.is-open .widget-title {
  margin-bottom: var(--widget-title-margin, 20px);
}

.widget_ferrano_product_attributes.is-open .widget-title::after {
  content: '-';
}

.widget_ferrano_product_attributes .gloria-attribute-widget-list {
  display: none;
  flex-wrap: wrap;
  gap: 0.375rem 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.widget_ferrano_product_attributes.is-open .gloria-attribute-widget-list {
  display: flex;
}

.widget_ferrano_product_attributes .gloria-attribute-widget-list li {
  margin: 0;
}

.widget_ferrano_product_attributes .gloria-attribute-widget-list li a {
  width: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  text-decoration: none;
}

.widget_ferrano_product_attributes .gloria-attribute-widget-list li a::before {
  display: none !important;
}

.widget_ferrano_product_attributes .gloria-attribute-widget-list.colors-disabled li a {
  padding: 0.25rem 0.625rem;
  border: 1px solid rgb(var(--colors-gray-300, 209 213 219));
  border-radius: var(--theme-radius, 4px);
}

.widget_ferrano_product_attributes .gloria-attribute-widget-list.colors-disabled li.active a {
  border-color: rgb(var(--colors-primary-background, 0 0 0));
  background: rgb(var(--colors-gray-50, 249 250 251));
}

.widget_ferrano_product_attributes .gloria-attribute-widget-list .count {
  margin-inline-start: 0;
  opacity: 0.7;
}

.widget_ferrano_product_attributes .gloria-attribute-widget-list.colors-enabled li a {
  padding: 0;
  border: 0;
}

/* Карточка товара: кнопка "Задать вопрос" */
.single-product-wrappe .product-actions a.question-button {
  padding: 5px 10px;
  border: 1px solid rgb(var(--colors-gray-200));
  background-color: rgb(var(--colors-gray-100), .5);
  border-radius: var(--theme-radius);
}
.single-product-wrappe .product-actions a.question-button:hover {
  border: 1px solid rgb(255, 22, 3, 0.5);
  /* color: inherit; — отключено */
}

/* Drawer «Напишите нам» (карточка товара) */
.drawer.contact-drawer {
  --drawer-translate-x: 100%;
  justify-content: flex-end;
}
.drawer.contact-drawer.active {
  --drawer-translate-x: 0;
}
.drawer.contact-drawer .drawer-inner {
  inset-inline-start: auto;
  inset-inline-end: 0;
  max-width: 420px;
}
.drawer.contact-drawer .drawer-inner-header.contact-drawer__header {
  justify-content: flex-end;
  border-bottom: 0;
  padding-block: 1rem 0;
}
.drawer.contact-drawer .drawer-inner-body.contact-drawer__body {
  padding-inline: var(--theme-drawer-padding);
  padding-block: 0 var(--theme-drawer-padding);
  gap: 0;
}
.drawer.contact-drawer .contact-drawer__title {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 4vw, 1.875rem);
  font-weight: 700;
  line-height: 1.2;
  color: rgb(var(--colors-drawer-color));
}
.drawer.contact-drawer .contact-drawer__subtitle {
  margin: 0 0 24px;
  font-size: var(--text-sm);
  line-height: 1.5;
  color: rgb(var(--colors-gray-500, 107 114 128));
}
.drawer.contact-drawer .contact-drawer__messengers {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}
.drawer.contact-drawer .contact-drawer__messenger {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 12px 16px;
  border: 1px solid rgb(var(--colors-gray-200, 229 231 235));
  border-radius: var(--theme-radius, 8px);
  background-color: rgb(var(--colors-drawer-background));
  color: rgb(var(--colors-drawer-color));
  text-decoration: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.drawer.contact-drawer .contact-drawer__messenger:hover {
  border-color: rgb(var(--colors-gray-300, 209 213 219));
  background-color: rgb(var(--colors-gray-50, 249 250 251));
}
.drawer.contact-drawer .contact-drawer__messenger i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  font-size: 24px;
  line-height: 1;
}
.drawer.contact-drawer .contact-drawer__messenger span {
  font-size: var(--text-base);
  font-weight: 500;
}
.drawer.contact-drawer .contact-drawer__footer {
  width: 100%;
  margin-top: auto;
}
.drawer.contact-drawer .contact-drawer__footer.close-button a.contact-drawer__close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: var(--theme-radius, 8px);
  background-color: #000000;
  color: #fff;
  font-size: var(--text-base);
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.drawer.contact-drawer .contact-drawer__footer.close-button a.contact-drawer__close-btn:hover {
  opacity: 0.9;
}

/* Формы */
.wpcf7-acceptance .wpcf7-list-item {
  margin: 0;
}
.wpcf7-acceptance input[type=checkbox] {
  position: relative;
  top: 3px;
}
.wpcf7 form .wpcf7-response-output {
  margin: 20px 0 10px;
}
.wpcf7 form .wpcf7-not-valid-tip {
  font-size: 12px;
}
.wpcf7 form .wpcf7-response-output {
  font-size: 14px;
}
#commentform input[type=checkbox] {
  position: relative;
  top: 2px;
}

/* Сайдбары и виджеты */
.widget_ferrano_blog_widget .post-listing .post-header {
  width: 218px;
}

/* Шорткод Бренды */
.brands-page .brands__top {
  display: none;
}
.brands-page .brands__top__list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.brands-page .brands__top__list.is-hidden {
  display: none;
}
.brands-page .brands__top__link {
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  color: inherit;
}
.brands-page .brands__content {
  display: grid;
  grid-template-columns: repeat(5, calc(20% - 16px));
  gap: 20px;
}
.brands-page .brands__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  scroll-margin-top: 24px;
}
.brands-page .brands__list__icon {
  font-size: 24px;
  margin-bottom: 14px;
  line-height: 1.2;
  font-weight: 700;
  text-transform: uppercase;
}
.brands-page .brands__link {
  display: inline-flex;
  margin-bottom: 0.25rem;
  padding: 2px 0;
  font-size: 18px;
  text-decoration: none;
  color: inherit;
}
.brands-page .brands__link:hover {
  text-decoration: underline;
}


/* Подвал */
body.page-contacts .page-header {
  margin-bottom: 0;
}
body.page-contacts .footer {
  margin-top: 0;
}

/* Корзина */
.cart-wrapper.for-woocoomerce .shop_table tbody tr td.product-price,
.cart-wrapper.for-woocoomerce .shop_table tbody tr td.product-subtotal {
  white-space: nowrap;
}

/* Скрыть кнопку корзины на изображении в карточке листинга */
.product .product-thumbnail > a.add-to-cart {
  display: none !important;
}

/* Блок товара в листинге: точки вместо стрелок в галерее */
.product-slideshow .slideshow-arrow {
  display: none !important;
}

.product-slideshow .slideshow-dots {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 6;
  display: flex;
  gap: 5px;
  cursor: pointer;
  pointer-events: auto;
}

.product-slideshow .slideshow-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 100%;
  background: rgba(0, 0, 0, 0.25);
  transition: background-color 0.2s ease;
}

.product-slideshow .slideshow-dot.is-active {
  background: #000;
}

/* Карточка товара: метка бренда в meta */
.single-product-wrappe .product-brand-pill__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 6px;
  background: #f2f2f2;
  border-radius: 999px;
  text-decoration: none;
  color: #111;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
}

.single-product-wrappe .product-brand-pill__badge {
  display: flex;
  flex-shrink: 0;
  line-height: 0;
}

.single-product-wrappe .product-brand-pill__badge-icon {
  display: block;
  width: 16px;
  height: 16px;
}

.single-product-wrappe .product-brand-pill__chevron {
  color: #bbb;
  font-size: 18px;
  line-height: 1;
  margin-left: 2px;
}

.single-product-wrappe .product-meta .product-tags a {
  font-size: var(--product-brand-size, 13px);
  font-weight: var(--product-brand-weight, 600);
  color: var(--product-brand-color, rgb(var(--colors-gray-500)));
  text-decoration: none;
}

/* Карточка товара: оригинальный товар */
.single-product-wrappe .product-meta .product-original-badge {
  flex: 0 0 100%;
  width: 100%;
}

.single-product-wrappe .product-original-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  margin-left: 3px;
}

.single-product-wrappe .product-original-badge__icon {
  display: block;
  width: auto;
  height: 24px;
  flex-shrink: 0;
}

.single-product-wrappe .product-original-badge__text {
  position: relative;
  top: -1px;
  font-size: 14px;
  color: rgb(var(--colors-gray-500, 120 120 120));
}

.single-product-wrappe .product-original-badge__info {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 1px solid rgb(var(--colors-gray-400, 160 160 160));
  border-radius: 50%;
  background: transparent;
  color: rgb(var(--colors-gray-500, 120 120 120));
  font-size: 11px;
  font-weight: 600;
  font-family: inherit;
  line-height: 1;
  cursor: pointer;
}

.single-product-wrappe .product-original-badge__info::before {
  content: "i";
  font-style: italic;
}

.single-product-wrappe .product-original-badge__tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  z-index: 20;
  width: max-content;
  max-width: 220px;
  padding: 8px 12px;
  border-radius: 6px;
  background: #2b2b2b;
  color: #fff;
  font-size: 13px;
  font-weight: 400;
  font-style: normal;
  line-height: 1.3;
  text-align: center;
  white-space: normal;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.single-product-wrappe .product-original-badge__tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  border: 6px solid transparent;
  border-top-color: #2b2b2b;
  transform: translateX(-50%);
}

.single-product-wrappe .product-original-badge__info:hover .product-original-badge__tooltip,
.single-product-wrappe .product-original-badge__info:focus-visible .product-original-badge__tooltip,
.single-product-wrappe .product-original-badge__info.is-open .product-original-badge__tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Цена и наличие — в зоне «В корзину» */
.single-product-wrappe .single_variation_wrap > .product-price-wrapper {
  margin-top: 0.625rem;
  margin-bottom: 0.625rem;
}

@media screen and (min-width: 1024.02px) {
  .single-product-wrappe .single_variation_wrap > .product-price-wrapper {
    margin-top: 1rem;
    margin-bottom: 1rem;
  }
}

.single-product-wrappe form.cart .product-price-wrapper {
  margin-top: 0.625rem;
  margin-bottom: 0.625rem;
}

.single-product-wrappe .product-price-wrapper .ferrano-product-base-price {
  display: block;
}

.single-product-wrappe .product-price-wrapper > .single_variation {
  display: none;
  margin: 0;
}
.woocommerce-variation-price+.woocommerce-variation-availability {
  margin-top: 0;
}

@media screen and (min-width: 1024.02px) {
  .single-product-wrappe form.cart .product-price-wrapper {
    margin-bottom: 1rem;
  }
}

/* «Товар в корзине у N чел.» внутри .product-actions */
.single-product-wrappe.style-1 .product-meta {
  padding-bottom: 0;
  border-bottom: unset;
}
.single-product-wrappe .product-actions .product-cart-activity {
  flex-basis: 100%;
  width: 100%;
  margin-bottom: 0;
}

@media screen and (min-width: 1024.02px) {
  .single-product-wrappe .product-actions .product-cart-activity {
    margin-bottom: 0;
  }
}

/* Галерея товара: бейдж скидки, избранное и копирование ссылки */
.single-product-wrappe .product-media {
  position: relative;
}

.single-product-wrappe .product-gallery-sale-badge {
  position: absolute;
  top: 0.625rem;
  left: 0.625rem;
  z-index: 3;
  pointer-events: none;
  text-transform: uppercase;
}

.single-product-wrappe .product-gallery-actions {
  position: absolute;
  top: 0.625rem;
  right: 0.625rem;
  z-index: 3;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  pointer-events: none;
}

.single-product-wrappe .product-gallery-actions > * {
  pointer-events: auto;
}

.single-product-wrappe .product-gallery-actions a,
.single-product-wrappe .product-gallery-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 50%;
  background-color: rgb(var(--colors-background, 255 255 255));
  color: rgb(var(--colors-foreground, 0 0 0));
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  text-decoration: none;
  transition: color var(--theme-ease-time-fast, 0.2s) ease, background-color var(--theme-ease-time-fast, 0.2s) ease;
}

.single-product-wrappe .product-gallery-actions a:hover,
.single-product-wrappe .product-gallery-actions button:hover,
.single-product-wrappe .product-gallery-actions a.is-in-wishlist {
  color: rgb(var(--colors-primary-background));
}

.single-product-wrappe .product-gallery-actions svg {
  width: 1.125rem;
  height: auto;
  flex-shrink: 0;
}

/* Оформление заказа */
body.woocommerce-cart ul.woocommerce-shipping-methods {
  width: fit-content;
  margin-left: auto;
}
body.woocommerce-cart .woocommerce-shipping-destination {
  margin-top: 1rem;
}
.checkout-wrapper .order-review-wrapper .woocommerce-checkout-review-order .shop_table tfoot tr th,
body.woocommerce-cart .cart_totals .shop_table tr th {
  vertical-align: baseline;
}
.checkout-wrapper .order-review-wrapper .woocommerce-checkout-review-order .shop_table tfoot tr td,
body.woocommerce-cart .cart_totals .shop_table tr td {
  width: fit-content;
  text-align: end;
}
.checkout-wrapper .order-review-wrapper .woocommerce-checkout-review-order .shop_table tfoot tr td li,
body.woocommerce-cart .cart_totals .shop_table tr td li {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px;
}
.checkout-wrapper .order-review-wrapper .woocommerce-checkout-review-order .shop_table tfoot tr td li input.shipping_method,
body.woocommerce-cart .cart_totals .shop_table tr td li input.shipping_method {
  flex: 0 0 auto;
  margin-top: 0.25rem;
}
.checkout-wrapper .order-review-wrapper .woocommerce-checkout-review-order .shop_table tfoot tr td li > label,
body.woocommerce-cart .cart_totals .shop_table tr td li > label {
  text-align: left;
  width: auto;
  flex: 1 1 0;
  min-width: 0;
}
.checkout-wrapper .order-review-wrapper .woocommerce-checkout-review-order .shop_table tfoot tr td li .cdek-office-info,
body.woocommerce-cart .cart_totals .shop_table tr td li .cdek-office-info {
  flex: 0 0 100%;
}
.checkout-wrapper .order-review-wrapper .woocommerce-checkout-review-order .shop_table tfoot tr td li .open-pvz-btn,
body.woocommerce-cart .cart_totals .shop_table tr td li .open-pvz-btn {
  flex: 0 0 100%;
  width: 0;
}
.checkout-wrapper .order-review-wrapper .woocommerce-checkout-review-order .shop_table tfoot tr td li:last-child label,
body.woocommerce-cart .cart_totals .shop_table tr td li:last-child label {
  margin-bottom: 0;
}

/* Страница «Оплатить заказ» из личного кабинета */
.checkout-pay-wrapper .order-review-wrapper {
  width: 100%;
  max-width: 640px;
  margin-inline: auto;
}

.checkout-pay-wrapper .order-review-wrapper > h3 {
  font-size: var(--text-2xl);
  margin-bottom: 0.625rem;
}

.checkout-pay-wrapper .wc_payment_methods label img {
  max-height: 24px;
  width: auto;
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* ============================================================
   Личный кабинет (My Account) — редизайн
   ============================================================ */

.my-account-inner {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  align-items: start;
}

@media (max-width: 782px) {
  .my-account-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ---------- Сайдбар навигации ---------- */
.woocommerce-MyAccount-navigation {
  background-color: rgb(var(--colors-gray-50, 249 250 251));
  border: 1px solid rgb(var(--colors-gray-200, 229 231 235));
  border-radius: var(--theme-radius, 8px);
  padding: 10px;
}

@media (min-width: 783px) {
  .woocommerce-MyAccount-navigation {
    position: sticky;
    top: 24px;
  }
}

.woocommerce-MyAccount-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.woocommerce-MyAccount-navigation-link {
  margin: 0;
}

.woocommerce-MyAccount-navigation-link a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: calc(var(--theme-radius, 8px) - 2px);
  color: #171717;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.3;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease;
}

.woocommerce-MyAccount-navigation-link a svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  opacity: .6;
  transition: opacity .18s ease;
}

.woocommerce-MyAccount-navigation-link:not(.is-active) a:hover {
  background-color: rgb(var(--colors-gray-100, 243 244 246));
}

.woocommerce-MyAccount-navigation-link.is-active a {
  background-color: rgb(var(--colors-black, 0 0 0));
  color: rgb(var(--colors-white, 255 255 255));
}

.woocommerce-MyAccount-navigation-link.is-active a svg {
  opacity: 1;
}

/* ---------- Контентная область ---------- */
.my-account-content {
  min-width: 0;
}

/* Приветственный блок на «Консоли» */
.woocommerce-MyAccount-content > p:first-of-type {
  background-color: rgb(var(--colors-gray-50, 249 250 251));
  border: 1px solid rgb(var(--colors-gray-200, 229 231 235));
  border-radius: var(--theme-radius, 8px);
  padding: 18px 20px;
  margin-bottom: 14px;
  font-size: 15px;
}

.woocommerce-MyAccount-content > p a {
  color: rgb(var(--colors-black, 0 0 0));
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgb(var(--colors-gray-300, 209 213 219));
  transition: text-decoration-color .18s ease;
}

.woocommerce-MyAccount-content > p a:hover {
  text-decoration-color: currentColor;
}

/* ---------- Таблица заказов ---------- */
.woocommerce-orders-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid rgb(var(--colors-gray-200, 229 231 235));
  border-radius: var(--theme-radius, 8px);
  overflow: hidden;
  font-size: 14px;
}

.woocommerce-orders-table__header {
  background-color: rgb(var(--colors-gray-50, 249 250 251));
  color: rgb(var(--colors-gray-500, 107 114 128));
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  padding: 13px 18px;
  border-bottom: 1px solid rgb(var(--colors-gray-200, 229 231 235));
}

.woocommerce-orders-table__row {
  transition: background-color .15s ease;
}

.woocommerce-orders-table__row:hover {
  background-color: rgb(var(--colors-gray-50, 249 250 251));
}

.woocommerce-orders-table__row:not(:last-child) .woocommerce-orders-table__cell {
  border-bottom: 1px solid rgb(var(--colors-gray-200, 229 231 235));
}

.woocommerce-orders-table__cell {
  padding: 16px 18px;
  vertical-align: middle;
  color: #171717;
}

.woocommerce-orders-table__cell-order-number a {
  font-weight: 700;
  color: #111;
  text-decoration: none;
}

.woocommerce-orders-table__cell-order-number a:hover {
  text-decoration: underline;
}

.woocommerce-orders-table__cell-order-date time {
  color: rgb(var(--colors-gray-500, 107 114 128));
}

.woocommerce-orders-table__cell-order-total {
  font-weight: 600;
  white-space: nowrap;
}

/* Цветные статусы заказа (точка + цвет текста) */
.woocommerce-orders-table__cell-order-status {
  font-weight: 600;
  white-space: nowrap;
}

.woocommerce-orders-table__cell-order-status::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 8px;
  background-color: currentColor;
  vertical-align: middle;
}

.woocommerce-orders-table__row--status-completed .woocommerce-orders-table__cell-order-status { color: #16a34a; }
.woocommerce-orders-table__row--status-processing .woocommerce-orders-table__cell-order-status { color: #2563eb; }
.woocommerce-orders-table__row--status-on-hold .woocommerce-orders-table__cell-order-status { color: #d97706; }
.woocommerce-orders-table__row--status-pending .woocommerce-orders-table__cell-order-status { color: rgb(var(--colors-gray-500, 107 114 128)); }
.woocommerce-orders-table__row--status-cancelled .woocommerce-orders-table__cell-order-status,
.woocommerce-orders-table__row--status-failed .woocommerce-orders-table__cell-order-status { color: #dc2626; }
.woocommerce-orders-table__row--status-refunded .woocommerce-orders-table__cell-order-status { color: #7c3aed; }

/* Кнопки действий в таблице заказов */
.woocommerce-orders-table__cell-order-actions {
  text-align: right;
  white-space: nowrap;
}

.woocommerce-orders-table__cell-order-actions .button,
.woocommerce-orders-table__cell-order-actions .woocommerce-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 999px;
  background-color: rgb(var(--colors-black, 0 0 0));
  color: rgb(var(--colors-white, 255 255 255));
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgb(var(--colors-black, 0 0 0));
  transition: opacity .18s ease;
  margin-left: 8px;
}

.woocommerce-orders-table__cell-order-actions .button:hover,
.woocommerce-orders-table__cell-order-actions .woocommerce-button:hover {
  opacity: .8;
}

.woocommerce-orders-table__cell-order-actions .button.cancel {
  background-color: transparent;
  color: #dc2626;
  border-color: rgb(var(--colors-gray-300, 209 213 219));
}

/* ---------- Мобильная адаптация таблицы заказов ---------- */
@media (max-width: 767px) {
  .woocommerce-orders-table.shop_table_responsive,
  .woocommerce-orders-table.shop_table_responsive thead,
  .woocommerce-orders-table.shop_table_responsive tbody,
  .woocommerce-orders-table.shop_table_responsive tr,
  .woocommerce-orders-table.shop_table_responsive td {
    display: block;
  }

  .woocommerce-orders-table.shop_table_responsive thead {
    display: none;
  }

  .woocommerce-orders-table.shop_table_responsive tr {
    padding: 16px 18px;
  }

  .woocommerce-orders-table.shop_table_responsive tr:not(:last-child) {
    border-bottom: 1px solid rgb(var(--colors-gray-200, 229 231 235));
  }

  .woocommerce-orders-table.shop_table_responsive .woocommerce-orders-table__cell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
    border-bottom: none !important;
  }

  .woocommerce-orders-table.shop_table_responsive .woocommerce-orders-table__cell::before {
    content: attr(data-title);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: rgb(var(--colors-gray-500, 107 114 128));
  }

  .woocommerce-orders-table.shop_table_responsive .woocommerce-orders-table__cell-order-actions {
    justify-content: flex-end;
    padding-top: 12px;
  }

  .woocommerce-orders-table.shop_table_responsive .woocommerce-orders-table__cell-order-actions::before {
    display: none;
  }
}

/* ---------- Пустое состояние (нет заказов) ---------- */
.woocommerce-MyAccount-content .woocommerce-notice,
.woocommerce-MyAccount-content .woocommerce-info {
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
  padding: 22px 20px;
  border: 1px dashed rgb(var(--colors-gray-300, 209 213 219));
  border-radius: var(--theme-radius, 8px);
  background-color: rgb(var(--colors-gray-50, 249 250 251));
  color: rgb(var(--colors-gray-500, 107 114 128));
  font-size: 14px;
}

.woocommerce-MyAccount-content .woocommerce-notice .button,
.woocommerce-MyAccount-content .woocommerce-info .button {
  margin-left: auto;
  padding: 9px 18px;
  border-radius: 999px;
  background-color: rgb(var(--colors-black, 0 0 0));
  color: rgb(var(--colors-white, 255 255 255));
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
}

/* ---------- Мобильный слайдер табов брендов/категорий на главной ----------
   Виджет "Товары с табами" (module-tab-content / tab-wrapper.responsive-tab)
   выводит до нескольких десятков ссылок-табов (бренды/категории). На
   десктопе они спокойно переносятся строками, но на мобильном это
   превращается в стену переносящихся ссылок ещё до самой сетки товаров.
   Ниже — превращаем список в горизонтальный свайп-слайдер с плашками. */
@media (max-width: 767px) {
  .module-header .module-tab-content {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 12px;
  }

  .module-header .module-tab-content .entry-title {
    margin: 0;
  }

  .module-header .tab-wrapper.responsive-tab {
    position: relative;
    width: 100%;
    flex: 100% !important;
  }

  .tab-wrapper.responsive-tab ul.tab-list {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 8px !important;
    /* Break out to the right only — lets the row scroll under the viewport
       edge as a "there's more" hint. The left edge stays inside the page's
       own gutter instead of also breaking out, so the first pill lines up
       with the heading above it rather than touching the screen edge. */
    margin: 0 -16px 0 0;
    padding: 2px 28px 2px 4px;
  }

  .tab-wrapper.responsive-tab ul.tab-list::-webkit-scrollbar {
    display: none;
    height: 0;
  }

  .tab-wrapper.responsive-tab ul.tab-list li {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .tab-wrapper.responsive-tab ul.tab-list a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 16px !important;
    border-radius: 999px;
    border: 1.5px solid rgb(var(--colors-gray-200, 229 231 235));
    background-color: rgb(var(--colors-white, 255 255 255));
    white-space: nowrap;
    font-size: 13px !important;
    font-weight: 600 !important;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.12s ease;
  }

  .tab-wrapper.responsive-tab ul.tab-list a:active {
    transform: scale(0.96);
  }

  .tab-wrapper.responsive-tab ul.tab-list a.active {
    background-color: rgb(var(--colors-black, 0 0 0));
    border-color: rgb(var(--colors-black, 0 0 0));
    color: rgb(var(--colors-white, 255 255 255)) !important;
  }

  /* The theme's own mobile fallback for this widget is a plain native
     <select> next to the tab list (base.min.css shows it below 1024px,
     hides the <ul>). We're replacing that with the slider above instead of
     stacking both — the bare unstyled dropdown was rendering directly
     underneath it as a second, redundant control. */
  .tab-wrapper.responsive-tab select {
    display: none !important;
  }
}

/* Header navbar row (custom buttons/menu/categories drawer) should only
   show on the front page, not on shop/category/product/etc.

   Needs #masthead in the selector: media.css has its own mobile fallback
   rule "@media (max-width:1024px) #masthead .header-row.header-navbar
   {display:block!important}" (it repurposes this row as the mobile nav
   bar below 1024px). That selector's ID gives it higher specificity than
   a plain body-class selector, so without matching the ID here it wins
   on mobile and the row stays visible on non-home pages too. */
body:not(.home) #masthead .header-row.header-navbar {
  display: none !important;
}

/* On the front page it's shown in its normal spot in the header (below the
   topbar/main row) and scrolls away with the page like a regular element —
   no sticky/fixed positioning.

   The theme markup itself carries Tailwind-style "hidden lg:block" utility
   classes, which hide this row below the 1024px breakpoint (helpers.css:
   .hidden{display:none!important} always, .lg\:block only from 1024.02px
   up), and media.css also forces it visible below 1024px as a mobile-menu
   fallback (see the #masthead note above). We just need `display: block`
   here to guarantee it's shown on the home page at every width; we
   deliberately do NOT set position here so it stays in normal document
   flow (static/relative, as the theme default), i.e. it is not pinned to
   the header and does follow the page when scrolling. */
body.home #masthead .header-row.header-navbar {
  display: block !important;
}
/* Delivery date beneath each product in the “Your cart” widget. */
.cart-products .ms-mini-cart-delivery,
.widget_shopping_cart .ms-mini-cart-delivery,
.woocommerce-mini-cart .ms-mini-cart-delivery {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 6px;
	color: #555;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: -.01em;
}

.cart-products .ms-mini-cart-delivery svg,
.widget_shopping_cart .ms-mini-cart-delivery svg,
.woocommerce-mini-cart .ms-mini-cart-delivery svg {
	flex: 0 0 14px;
	width: 14px;
	height: 14px;
	color: #111;
}

@media (max-width: 767px) {
	.cart-products .ms-mini-cart-delivery,
	.widget_shopping_cart .ms-mini-cart-delivery,
	.woocommerce-mini-cart .ms-mini-cart-delivery {
		font-size: 12px;
		line-height: 1.4;
	}
}
/* Editorial black-and-white treatment for Ferrano's real side-cart markup. */
.drawer.cart-drawer { --mastore-drawer-ink:#111; --mastore-drawer-paper:#fff; --mastore-drawer-line:rgba(255,255,255,.18); color:#fff; }
.drawer.cart-drawer > .drawer-inner,.drawer.cart-drawer > .cart-wrapper,.drawer.cart-drawer .drawer-inner,.drawer.cart-drawer .cart-wrapper { background:#111!important; color:#fff; }
.drawer.cart-drawer .drawer-inner-header,.drawer.cart-drawer .drawer-header { padding:24px 24px 18px; border-bottom:1px solid var(--mastore-drawer-line); background:#111; }
.drawer.cart-drawer .drawer-inner-header .entry-title,.drawer.cart-drawer .drawer-header .entry-title { color:#fff!important; font-size:12px; font-weight:800; letter-spacing:.16em; text-transform:uppercase; }
.drawer.cart-drawer .cart-products { padding:14px 16px 2px; }
.drawer.cart-drawer .cart-products .products.listing { display:grid; gap:10px; }
.drawer.cart-drawer .cart-products .product.product-list { margin:0; padding:12px; border:1px solid rgba(255,255,255,.72); border-radius:14px; background:#111; box-shadow:0 12px 28px rgba(0,0,0,.2); transition:transform .28s cubic-bezier(.16,1,.3,1),background-color .28s ease,box-shadow .28s ease; }
.drawer.cart-drawer .cart-products .product.product-list:hover { transform:translateY(-2px); background:#1b1b1b; box-shadow:0 16px 34px rgba(0,0,0,.34); }
.drawer.cart-drawer .cart-products .product-inner { align-items:flex-start; gap:11px; }
.drawer.cart-drawer .cart-products .product-thumbnail { flex:0 0 76px; width:76px; border:1px solid #fff; border-radius:10px; overflow:hidden; background:#fff; }
.drawer.cart-drawer .cart-products .product-thumbnail img { display:block; width:100%; aspect-ratio:.82; object-fit:cover; }
.drawer.cart-drawer .cart-products .product-body { min-width:0; padding:2px 0; }
.drawer.cart-drawer .cart-products .product-title { margin:0 0 7px; font-size:13px; font-weight:700; line-height:1.28; letter-spacing:-.02em; }
.drawer.cart-drawer .cart-products .product-title a,.drawer.cart-drawer .cart-products .product-price-cart .price { color:#fff!important; text-decoration:none; }
.drawer.cart-drawer .cart-products .product-price-cart { display:flex; align-items:baseline; gap:7px; color:rgba(255,255,255,.6); font-size:11px; font-weight:600; }
.drawer.cart-drawer .cart-products .product-price-cart .price { font-size:14px; font-weight:850; letter-spacing:-.02em; }
.drawer.cart-drawer .cart-products .product-remove .remove { display:grid; place-items:center; width:28px; height:28px; border:1px solid rgba(255,255,255,.6); border-radius:50%; color:#fff!important; transition:background-color .22s ease,color .22s ease,transform .22s ease; }
.drawer.cart-drawer .cart-products .product-remove .remove:hover { background:#fff; color:#111!important; transform:rotate(90deg); }
.drawer.cart-drawer .cart-products .ms-mini-cart-delivery-row { display:block; margin-top:11px; padding:9px 10px; border-radius:9px; background:#fff; }
.drawer.cart-drawer .cart-products .ms-mini-cart-delivery { display:flex; align-items:center; gap:8px; margin:0; color:#111; font-size:11px; font-weight:750; letter-spacing:.01em; }
.drawer.cart-drawer .cart-products .ms-mini-cart-delivery svg { flex:0 0 14px; width:14px; height:14px; color:#111; }
.drawer.cart-drawer .cart-products .ms-mini-cart-delivery__copy { display:grid; gap:2px; min-width:0; }
.drawer.cart-drawer .cart-products .ms-mini-cart-delivery__brand { color:#666; font-size:9px; font-weight:850; letter-spacing:.13em; line-height:1; text-transform:uppercase; }
.drawer.cart-drawer .cart-products .ms-mini-cart-delivery__text { color:#111; line-height:1.22; }
.drawer.cart-drawer .cart-prices { margin:0 16px; padding:18px 0; border-bottom:1px solid var(--mastore-drawer-line); }
.drawer.cart-drawer .cart-prices .woocommerce-mini-cart__total { display:flex; justify-content:space-between; gap:16px; margin:0; color:#fff; font-size:14px; font-weight:800; }
.drawer.cart-drawer .cart-prices strong { color:rgba(255,255,255,.58); font-size:10px; letter-spacing:.14em; text-transform:uppercase; }
.drawer.cart-drawer .cart-buttons { display:grid; gap:8px; padding:16px; }
.drawer.cart-drawer .cart-buttons .button { display:flex; align-items:center; justify-content:center; min-height:48px; border:1px solid #fff!important; border-radius:0; background:#fff!important; color:#111!important; font-size:11px; font-weight:800; letter-spacing:.13em; text-transform:uppercase; transition:transform .22s ease,background-color .22s ease,color .22s ease; }
.drawer.cart-drawer .cart-buttons .button.style-outline { background:transparent!important; color:#fff!important; }
.drawer.cart-drawer .cart-buttons .button:hover { transform:translateY(-2px); background:transparent!important; color:#fff!important; }
.drawer.cart-drawer .cart-buttons .button.style-outline:hover { background:#fff!important; color:#111!important; }
.drawer.cart-drawer .close-button a { border:1px solid var(--mastore-drawer-line); border-radius:50%; color:#fff!important; transition:background-color .22s ease,color .22s ease,transform .22s ease; }
.drawer.cart-drawer .close-button a:hover { background:#fff; color:#111!important; transform:rotate(90deg); }
@media(max-width:767px){.drawer.cart-drawer .drawer-inner-header,.drawer.cart-drawer .drawer-header{padding:18px 18px 14px}.drawer.cart-drawer .cart-products{padding:12px 14px 2px}.drawer.cart-drawer .cart-products .product.product-list{padding:10px;border-radius:12px}.drawer.cart-drawer .cart-products .product-thumbnail{flex-basis:70px;width:70px}.drawer.cart-drawer .cart-products .ms-mini-cart-delivery-row{margin-top:9px;padding:8px 9px}.drawer.cart-drawer .cart-buttons{padding:14px;padding-bottom:max(14px,env(safe-area-inset-bottom))}}
@media(prefers-reduced-motion:reduce){.drawer.cart-drawer *,.drawer.cart-drawer *::before,.drawer.cart-drawer *::after{transition:none!important}}
/* Curated recommendation shelf at the bottom of the black side cart. */
.drawer.cart-drawer .drawer-products {
  margin: 18px 14px 14px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 16px;
  background: #181818;
}

.drawer.cart-drawer .drawer-products::before {
  content: 'Добавьте к заказу';
  display: block;
  margin: 0 0 11px;
  color: #fff;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .15em;
  line-height: 1.2;
  text-transform: uppercase;
}

.drawer.cart-drawer .drawer-products .products.listing {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.drawer.cart-drawer .drawer-products .product.product-list {
  margin: 0;
  border: 1px solid transparent;
  border-radius: 11px;
  background: #fff;
  overflow: hidden;
  transition: transform .24s cubic-bezier(.16, 1, .3, 1), border-color .24s ease, box-shadow .24s ease;
}

.drawer.cart-drawer .drawer-products .product.product-list:hover {
  border-color: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .32);
  transform: translateY(-3px);
}

.drawer.cart-drawer .drawer-products .product-inner { display: block; }
.drawer.cart-drawer .drawer-products .product-thumbnail { width: 100%; background: #f4f4f4; }
.drawer.cart-drawer .drawer-products .product-thumbnail img { display: block; width: 100%; aspect-ratio: .92; object-fit: cover; }
.drawer.cart-drawer .drawer-products .product-body { min-width: 0; padding: 8px 9px 10px; }
.drawer.cart-drawer .drawer-products .product-title { display: -webkit-box; overflow: hidden; margin: 0 0 6px; color: #111; font-size: 11px; font-weight: 750; line-height: 1.25; letter-spacing: -.02em; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.drawer.cart-drawer .drawer-products .product-title a { color: inherit !important; text-decoration: none; }
.drawer.cart-drawer .drawer-products .price { display: block; color: #111 !important; font-size: 12px; font-weight: 850; letter-spacing: -.02em; }
.drawer.cart-drawer .drawer-products .price del { color: #808080; font-size: 10px; font-weight: 600; }
.drawer.cart-drawer .drawer-products .price ins { color: #111; text-decoration: none; }

@media (max-width: 767px) {
  .drawer.cart-drawer .drawer-products { margin: 14px 12px 12px; padding: 12px; border-radius: 14px; }
  .drawer.cart-drawer .drawer-products .products.listing { gap: 7px; }
  .drawer.cart-drawer .drawer-products .product-body { padding: 7px 8px 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .drawer.cart-drawer .drawer-products .product.product-list { transition: none; }
}
/* Final specificity pass: keep the totals visually attached to the cart item. */
.drawer.cart-drawer .cart-products { padding: 14px 0 2px; }
.drawer.cart-drawer .cart-products .product.product-list { width: 100%; }
.drawer.cart-drawer .cart-prices { margin: 10px 0 0 !important; padding: 14px 0 !important; }
.drawer.cart-drawer .cart-buttons { padding: 12px 0 0 !important; }
.drawer.cart-drawer .drawer-products { margin: 14px 24px 0 !important; }
.drawer.cart-drawer .drawer-products .product.product-list { min-width: 0; }
.drawer.cart-drawer .drawer-products .product-thumbnail img { object-position: center 38%; }

@media (max-width: 767px) {
  .drawer.cart-drawer .cart-products { padding-top: 12px; }
  .drawer.cart-drawer .cart-prices { margin-top: 8px !important; padding: 12px 0 !important; }
  .drawer.cart-drawer .cart-buttons { padding-top: 10px !important; }
  .drawer.cart-drawer .drawer-products { margin: 12px 18px 0 !important; }
}
/* Compact circular image for the actual cart line; recommendations stay rectangular. */
.drawer.cart-drawer .cart-products > .products.listing > .product.product-list .product-thumbnail {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border: 1px solid #fff;
  border-radius: 50%;
  background: #fff;
}

.drawer.cart-drawer .cart-products > .products.listing > .product.product-list .product-thumbnail .product-media,
.drawer.cart-drawer .cart-products > .products.listing > .product.product-list .product-thumbnail a,
.drawer.cart-drawer .cart-products > .products.listing > .product.product-list .product-thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

.drawer.cart-drawer .cart-products > .products.listing > .product.product-list .product-thumbnail img {
  aspect-ratio: 1;
  object-fit: cover;
}

@media (max-width: 767px) {
  .drawer.cart-drawer .cart-products > .products.listing > .product.product-list .product-thumbnail {
    flex-basis: 58px;
    width: 58px;
    height: 58px;
  }
}
/* Clear add-to-order control in every recommendation card. */
.drawer.cart-drawer .drawer-products .drawer-products__add {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 31px;
  margin-top: 8px;
  padding: 6px 7px;
  border: 1px solid #111 !important;
  border-radius: 7px;
  background: #111 !important;
  color: #fff !important;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .07em;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
  transition: transform .2s cubic-bezier(.16, 1, .3, 1), background-color .2s ease, color .2s ease;
}

.drawer.cart-drawer .drawer-products .drawer-products__add:hover,
.drawer.cart-drawer .drawer-products .drawer-products__add:focus-visible {
  background: #fff !important;
  color: #111 !important;
  transform: translateY(-2px);
}

.drawer.cart-drawer .drawer-products .drawer-products__add:focus-visible { outline: 2px solid #111; outline-offset: 2px; }
.drawer.cart-drawer .drawer-products .drawer-products__add.added { background: #fff !important; color: #111 !important; }

@media (prefers-reduced-motion: reduce) {
  .drawer.cart-drawer .drawer-products .drawer-products__add { transition: none; }
}
/* Recommendation rows with a stable nested grid: image | details | action. */
.drawer.cart-drawer .drawer-products { padding: 12px; }
.drawer.cart-drawer .drawer-products::before { margin-bottom: 9px; }
.drawer.cart-drawer .drawer-products .products.listing { display: grid; grid-template-columns: 1fr; gap: 7px; }
.drawer.cart-drawer .drawer-products .product.product-list { display: flex !important; align-items: center; min-height: 70px; margin: 0; padding: 8px; border-radius: 12px; }
.drawer.cart-drawer .drawer-products .product-inner { display: flex !important; flex: 1 1 auto; align-items: center; min-width: 0; gap: 8px; }
.drawer.cart-drawer .drawer-products .product-thumbnail { flex: 0 0 52px; width: 52px; height: 52px; margin: 0; border: 1px solid #e4e4e4; border-radius: 50%; overflow: hidden; }
.drawer.cart-drawer .drawer-products .product-thumbnail .product-media,.drawer.cart-drawer .drawer-products .product-thumbnail a,.drawer.cart-drawer .drawer-products .product-thumbnail img { display: block; width: 100%; height: 100%; border-radius: inherit; }
.drawer.cart-drawer .drawer-products .product-thumbnail img { aspect-ratio: 1; object-fit: cover; }
.drawer.cart-drawer .drawer-products .product-body { display: grid !important; grid-template-columns: minmax(0, 1fr) 74px; grid-template-rows: minmax(0, 1fr) auto; flex: 1 1 auto; align-items: center; min-width: 0; min-height: 52px; padding: 0; column-gap: 8px; }
.drawer.cart-drawer .drawer-products .product-title { grid-column: 1; grid-row: 1; display: -webkit-box; overflow: hidden; align-self: end; margin: 0 0 3px; font-size: 10px; line-height: 1.18; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.drawer.cart-drawer .drawer-products .price { grid-column: 1; grid-row: 2; display: block; align-self: start; font-size: 11px; }
.drawer.cart-drawer .drawer-products .drawer-products__add { grid-column: 2; grid-row: 1 / span 2; align-self: stretch; width: 74px; min-height: 48px; margin: 0; padding: 5px; border-radius: 8px; font-size: 8px; line-height: 1.2; }

@media (max-width: 767px) {
  .drawer.cart-drawer .drawer-products { padding: 10px; }
  .drawer.cart-drawer .drawer-products .product.product-list { min-height: 66px; padding: 7px; }
  .drawer.cart-drawer .drawer-products .product-thumbnail { flex-basis: 48px; width: 48px; height: 48px; }
  .drawer.cart-drawer .drawer-products .product-body { grid-template-columns: minmax(0, 1fr) 68px; min-height: 48px; }
  .drawer.cart-drawer .drawer-products .drawer-products__add { width: 68px; min-height: 44px; font-size: 7.5px; }
}

/* Keep recommendation rows compact when a product name is long. */
.drawer.cart-drawer .drawer-products .product-title {
  display:block;
  overflow:hidden;
  margin-bottom:3px;
  white-space:nowrap;
  text-overflow:ellipsis;
}

/* The link itself must own the ellipsis; otherwise inline text is clipped. */
.drawer.cart-drawer .drawer-products .product-title,
.drawer.cart-drawer .drawer-products .product-title a {
  min-width:0;
  width:100%;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.drawer.cart-drawer .drawer-products .product-title a {
  display:block!important;
}

.drawer.cart-drawer .drawer-inner-header .entry-title,
.drawer.cart-drawer .drawer-header .entry-title {
  color:#111!important;
  opacity:1!important;
  text-shadow:none!important;
}

/* Cap every recommendation label at the visual length of “Свитшот MANTO ONE”. */
.drawer.cart-drawer .drawer-products {
  align-self:stretch;
  box-sizing:border-box;
}

.drawer.cart-drawer .drawer-products .product-title {
  max-width:17ch!important;
}
/* Light editorial layer for the side cart: white surfaces, black hierarchy. */
.drawer.cart-drawer {
  --mastore-drawer-ink: #111;
  --mastore-drawer-paper: #fff;
  --mastore-drawer-line: #d9d9d9;
  color: #111;
}

.drawer.cart-drawer > .drawer-inner,
.drawer.cart-drawer > .cart-wrapper,
.drawer.cart-drawer .drawer-inner,
.drawer.cart-drawer .cart-wrapper {
  background:#fff!important;
  color:#111!important;
}

.drawer.cart-drawer .drawer-inner-header,
.drawer.cart-drawer .drawer-header {
  background:#fff!important;
  border-bottom:1px solid #d9d9d9!important;
}

.drawer.cart-drawer .drawer-inner-header .entry-title,
.drawer.cart-drawer .drawer-header .entry-title,
.drawer.cart-drawer .cart-products .product-title a,
.drawer.cart-drawer .cart-products .product-price-cart .price,
.drawer.cart-drawer .cart-prices .woocommerce-mini-cart__total,
.drawer.cart-drawer .cart-products .product-remove .remove {
  color:#111!important;
}

.drawer.cart-drawer .close-button a,
.drawer.cart-drawer .cart-products .product-remove .remove {
  border-color:#111!important;
  color:#111!important;
}

.drawer.cart-drawer .close-button a:hover,
.drawer.cart-drawer .cart-products .product-remove .remove:hover {
  background:#111!important;
  color:#fff!important;
}

.drawer.cart-drawer .cart-products .product.product-list {
  background:#fff!important;
  border-color:#111!important;
  box-shadow:none!important;
}

.drawer.cart-drawer .cart-products .product.product-list:hover {
  background:#fafafa!important;
  box-shadow:0 12px 26px rgba(17,17,17,.08)!important;
}

.drawer.cart-drawer .cart-products .product-thumbnail {
  border-color:#d9d9d9!important;
  background:#f6f6f6!important;
}

.drawer.cart-drawer .cart-products .product-price-cart,
.drawer.cart-drawer .cart-prices strong {
  color:#555!important;
}

.drawer.cart-drawer .cart-prices {
  border-bottom-color:#111!important;
}

.drawer.cart-drawer .cart-buttons .button {
  border-color:#111!important;
  background:#111!important;
  color:#fff!important;
}

.drawer.cart-drawer .cart-buttons .button.style-outline {
  background:#fff!important;
  color:#111!important;
}

.drawer.cart-drawer .cart-buttons .button:hover {
  background:#fff!important;
  color:#111!important;
  transform:translateY(-2px);
}

.drawer.cart-drawer .cart-buttons .button.style-outline:hover {
  background:#111!important;
  color:#fff!important;
}

.drawer.cart-drawer .drawer-products {
  background:#f7f7f7!important;
  border-color:#111!important;
}

.drawer.cart-drawer .drawer-products::before {
  color:#111!important;
}

.drawer.cart-drawer .drawer-products .product.product-list {
  background:#fff!important;
  border-color:#d9d9d9!important;
  box-shadow:none!important;
}

.drawer.cart-drawer .drawer-products .product.product-list:hover {
  border-color:#111!important;
  box-shadow:0 10px 22px rgba(17,17,17,.10)!important;
}

.drawer.cart-drawer .drawer-products .product-thumbnail {
  border-color:#d9d9d9!important;
  background:#f3f3f3!important;
}

.drawer.cart-drawer .drawer-products .product-title,
.drawer.cart-drawer .drawer-products .product-title a,
.drawer.cart-drawer .drawer-products .price,
.drawer.cart-drawer .drawer-products .price ins {
  color:#111!important;
}

.drawer.cart-drawer .drawer-products .drawer-products__add {
  border-color:#111!important;
  background:#111!important;
  color:#fff!important;
}

.drawer.cart-drawer .drawer-products .drawer-products__add:hover,
.drawer.cart-drawer .drawer-products .drawer-products__add:focus-visible,
.drawer.cart-drawer .drawer-products .drawer-products__add.added {
  background:#fff!important;
  color:#111!important;
}

@media (prefers-reduced-motion:reduce) {
  .drawer.cart-drawer *,
  .drawer.cart-drawer *::before,
  .drawer.cart-drawer *::after { transition:none!important; }
}
@media (min-width: 1024.02px) {
  .single-product-wrappe .product-actions {
    justify-content: flex-start;
    gap: 1.30rem;
  }
  .checkout-wrapper>*.order-review-wrapper,
  .cart-wrapper.for-woocoomerce>*.cart-collaterals {
      width: 35%;
  }
  .checkout-wrapper .order-review-wrapper .woocommerce-checkout-review-order .shop_table tfoot tr td li > label,
  body.woocommerce-cart .cart_totals .shop_table tr td li > label {
    white-space: nowrap;
  }
}

@media(max-width: 1024px) {
  .action-button .action-link .action-icon {
    color: #000000;
  }
  .header.header-color-style-2 .header-main {
    --main-background: #FFFFFF;
  }
  .header-color-style-2 .brand a .light, .header-color-style-4 .brand a .light {
    display: block;
  }
  .header-color-style-2 .brand a .dark, .header-color-style-4 .brand a .dark {
    display: none;
  }
  .brands-page .brands__content {
    grid-template-columns: repeat(3, calc(33.33% - 13.333px));
  }
}

@media(max-width: 1023px) {
  
}

@media (max-width: 767px) {
  .single-product-wrappe .product-original-badge {
    margin-top: 0;
  }
  .brands-page .brands__top {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 24px;
  }
  .brands-page .brands__content {
    grid-template-columns: 100%;
  }
  .single-product-wrappe .product-actions {
    margin-top: 2rem;
    margin-bottom: 2rem;
  }
  .single-product-wrappe .product-actions a {
    padding: 5px 10px;
  }
  .main-cat-list .category-box.style-1 {
    padding: 10px;
  }
  .mobile-menu .mobile-menu-inner {
    padding-inline: 10px;
  }
  .drawer .drawer-inner .drawer-contact {
    margin-top: 20px;
  }
}

/* v12: cookie banner must not cover bottom mobile menu */
@media screen and (max-width: 1023.98px) {
  .gdpr.style-2,
  .gdpr.gdpr-show.style-2,
  .gdpr.fixed-bottom {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px) + 10px) !important;
    left: 12px !important;
    right: 12px !important;
    max-width: none !important;
    z-index: 95 !important;
  }
  .mobile-menu {
    z-index: 100 !important;
    pointer-events: auto !important;
  }
  .mobile-menu a,
  .mobile-menu .toggle-button {
    pointer-events: auto !important;
  }
}

/* mobile: back-to-top above chat FAB */
@media screen and (max-width: 1023.98px) {
  body .back-to-top {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px) + 78px) !important;
    right: 14px !important;
    z-index: 10050 !important;
  }
}
@media screen and (max-width: 480px) {
  body .back-to-top {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px) + 74px) !important;
    right: 12px !important;
  }
}

/* mobile: hide header action-menu (burger) */
@media screen and (max-width: 1023.98px) {
  .action-button.action-menu {
    display: none !important;
  }
}

/* mobile logo true-center v2 — single logo, actions stay right */
@media screen and (max-width: 1023.98px) {
  .header-main .header-inner {
    position: relative !important;
    justify-content: flex-end !important;
  }
  /* hide burger column completely */
  .header-main .header-inner > .column.block.lg\:hidden {
    display: none !important;
    width: 0 !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }
  /* only the brand column — do NOT match other flex-1 cols */
  .header-main .header-inner > .column:has(> .brand) {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: 42% !important;
    z-index: 3;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  /* right actions stay on the right */
  .header-main .header-inner > .column.justify-end,
  .header-main .header-inner > .column.inline-flex.items-center.justify-end {
    margin-left: auto !important;
    margin-right: 0 !important;
    flex: 0 0 auto !important;
    position: relative !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    z-index: 4;
  }
  .header-main .brand {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }
  .header-main .brand a {
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
  }
  /* NEVER force display:block on both light+dark logo imgs */
}