/* Базовые стили */
.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;
}
