/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.2.6
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */
[type="button"]:not(.iti__selected-country),
[type="submit"],
button:not(.iti__selected-country),
.wc-block-grid__product-add-to-cart.wp-block-button .wp-block-button__link {
  color: var(--e-global-color-primary);
  background-color: var(--e-global-color-accent);
  border-radius: 16px !important;
}
[type="button"]:not(.iti__selected-country):focus,
[type="submit"]:focus,
button:not(.iti__selected-country):focus,
[type="button"]:not(.iti__selected-country):hover,
[type="submit"]:hover,
button:not(.iti__selected-country):hover,
.wc-block-grid__product-add-to-cart.wp-block-button
  .wp-block-button__link:hover {
  color: var(--e-global-color-primary);
  background-color: var(--e-global-color-accent);
  outline: none;
}
button[name="apply_coupon"] {
  color: var(--e-global-color-primary) !important ;
  background-color: var(--e-global-color-accent) !important ;
  border-radius: 16px !important;
}
button[name="apply_coupon"]:hover {
  color: var(--e-global-color-primary) !important;
  background-color: var(--e-global-color-accent) !important ;
  outline: none;
}

.woocommerce-page input,
.woocommerce-page textarea,
.woocommerce-page select {
  background-color: #575b5f !important;
  border-radius: 16px !important;
  color: var(--e-global-color-primary) !important;
}
.woocommerce form .woocommerce-billing-fields .input-text,
.woocommerce form .woocommerce-billing-fields select {
  padding: 16px !important;
  min-height: 50px;
}
.woocommerce-page label,
.woocommerce-page input::placeholder,
.woocommerce-page textarea::placeholder {
  color: var(--e-global-color-primary) !important;
}
.woocommerce-page .wc-block-components-quantity-selector__button {
  color: var(--e-global-color-primary) !important;
  opacity: 1 !important;
}
.woocommerce-page .wc-blocks-components-select__container {
  border-radius: 16px !important;
}
.woocommerce-page .wc-blocks-components-select__container label {
  color: var(--e-global-color-primary) !important;
}
.woocommerce-page
  .wc-block-components-checkbox
  .wc-block-components-checkbox__mark {
  fill: var(--e-global-color-primary) !important;
}
/*.woocommerce-page .wc-block-components-checkout-place-order-button{
    color: var(--e-global-color-accent) !important;
    border-color: var(--e-global-color-accent) !important;
}
.woocommerce-page .wc-block-components-checkout-place-order-button:hover{
    color: var(--e-global-color-primary) !important;
    background-color: var(--e-global-color-accent) !important;
}*/
.woocommerce-page .wc-block-cart__submit-button,
.woocommerce-page .wc-block-components-totals-coupon__button {
  color: var(--e-global-color-primary) !important;
  border-radius: 16px !important;
  background-color: var(--e-global-color-accent) !important;
}
.woocommerce-account .woocommerce-MyAccount-content,
.woocommerce-account .woocommerce-MyAccount-navigation {
  float: unset !important;
  width: 100% !important;
}
/* ===== ACCOUNT INFO ROW STYLES ===== */
.account-info-row {
  background: #ffffff;
  border-radius: 16px;
  padding: 32px 40px;
  margin: 32px 0;
  color: #000000;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 120px;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}

/* Разделители */
.account-info-row .account-divider {
  position: absolute !important;
  width: 1px !important;
  height: 60px !important;
  background-color: #C9D8ED !important;
  background: #C9D8ED !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 100 !important;
  display: block !important;
  pointer-events: none !important;
  content: "" !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.account-divider-left {
  left: 33.33% !important;
}

.account-divider-right {
  right: 33.33% !important;
}

/* Секции */
.account-section {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0; /* Важно для правильного сжатия */
}

/* Секция пользователя */
.account-user {
  justify-content: flex-start;
  gap: 16px;
}

.user-avatar svg {
  width: 68px;
  height: 69px;
}

.avatar-fallback {
  width: 68px;
  height: 69px;
  background: #f0f0f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.user-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.user-name,
.user-joined {
  color: #000000;
  font-size: 16px;
  line-height: 1.2;
  margin: 0;
}

/* Секция баланса */
.account-balance {
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

.balance-title {
  color: #000000;
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 12px 0;
  white-space: nowrap;
}

.balance-content {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  height: 32px; /* Фиксированная высота для выравнивания */
}

.balance-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 24px;
}

.balance-icon svg {
  width: 24px;
  height: 24px;
  display: block;
}

.wallet-fallback {
  font-size: 20px;
  display: inline-block;
}

.balance-amount {
  color: #000000;
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
  margin: 0;
  white-space: nowrap;
  display: flex;
  align-items: center;
  height: 32px;
}

.top-up-btn {
  background-color: #8B5CF6 !important;
  color: #ffffff !important;
  border-radius: 16px !important;
  padding: 8px 16px !important;
  text-decoration: none !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  border: none !important;
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background-color 0.2s ease !important;
  background: #8B5CF6 !important;
  height: 32px !important;
  line-height: 1 !important;
  vertical-align: middle !important;
}

.top-up-btn:hover {
  background-color: #7C3AED !important;
  color: #ffffff !important;
}

.top-up-btn {
  background-color: #8b5cf6;
  color: #ffffff;
  border-radius: 16px;
  padding: 8px 16px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border: none;
  white-space: nowrap;
  display: inline-block;
  transition: background-color 0.2s ease;
}

.top-up-btn:hover {
  background-color: #7c3aed;
  color: #ffffff;
}

/* Секция выхода */
.account-logout {
  justify-content: flex-end;
}

.logout-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #000000;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s ease;
}

.logout-link:hover {
  opacity: 0.8;
}

.logout-icon svg {
  width: 24px;
  height: 24px;
}

/* Минимальные стили для предотвращения конфликтов */
.account-info-row * {
  box-sizing: border-box;
}

/* Агрессивная борьба с плагинами */
.account-info-row .rs-points-wrapper,
.account-info-row .woocs-wrapper,
.account-info-row [class*="rs-"],
.account-info-row [class*="woocs-"],
.account-info-row [id*="rs-"],
.account-info-row [id*="woocs-"] {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  display: inline !important;
  position: static !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Убираем все псевдоэлементы от плагинов */
.account-info-row [class*="rs-"]::before,
.account-info-row [class*="rs-"]::after,
.account-info-row [class*="woocs-"]::before,
.account-info-row [class*="woocs-"]::after {
  display: none !important;
  content: none !important;
}

/* Принудительно скрываем все элементы с синими цветами */
.account-info-row [style*="background-color: blue"],
.account-info-row [style*="background: blue"],
.account-info-row [style*="background-color: #"],
.account-info-row [style*="background: #"],
.account-info-row [style*="background-color: rgb("],
.account-info-row [style*="background: rgb("] {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
}

/* Скрываем пустые элементы, которые могут создавать артефакты */
.account-info-row div:empty:not(.account-divider),
.account-info-row span:empty,
.account-info-row p:empty {
  display: none !important;
}

/* Мобильная версия */
@media (max-width: 768px) {
  .account-info-row {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
  }

  .account-info-row .account-divider {
    display: none !important;
  }

  .account-section {
    width: 100%;
    justify-content: center;
  }
}

.account-navigation .woocommerce-MyAccount-navigation ul {
  list-style: none;
  gap: 16px 32px;
  display: flex;
  flex-wrap: wrap;
  padding-left: 0;
  /*margin-bottom: 32px;*/
    margin: 32px;
}
.account-navigation .woocommerce-MyAccount-navigation ul li a {
  color: var(--e-global-color-primary);
  padding: 5px;
}
.account-navigation .woocommerce-MyAccount-navigation ul li.is-active a {
  color: var(--e-global-color-accent);
  border-bottom: 1px solid;
  border-color: var(--e-global-color-accent);
}
.account-info-block {
  margin-bottom: 44px;
}

.account-content h2 {
  font-weight: 700;
  color: var(--e-global-color-primary);
}
.account-info-block form {
  background: #ffffff;
  padding: 32px;
  border-radius: 16px;
}
.account-info-block form label {
  display: none !important;
}
.woocommerce-billing-fields .select2-selection,
.account-info-block form .select2-selection,
.account-info-block form input {
  font-size: 18px;
  min-height: 59px;
  padding: 7px 20px;
  border: 1px solid #69727d;
  background-color: #ffffff !important;
  border-radius: 16px !important;
  color: #000000 !important;
}
.woocommerce-billing-fields
  .select2-container
  .select2-selection--single
  .select2-selection__rendered,
.account-info-block
  form
  .select2-container
  .select2-selection--single
  .select2-selection__rendered {
  color: #000000 !important;
}
.woocommerce .woocommerce-Button {
  background-color: var(--e-global-color-accent) !important;
  border-radius: 16px !important;
  padding: 13px !important;
  font-weight: 500;
  font-size: 16px;
  line-height: 26px;
  color: var(--e-global-color-primary) !important;
  text-align: center;
  min-height: 48px;
}
/* Стили для кнопки Top up перенесены в inline CSS */

.account-content .woocommerce-Button,
.account-content .woocommerce-button,
.order-again .button {
  background-color: var(--e-global-color-accent) !important;
  border-radius: 16px !important;
  padding: 8px 12px !important;
  font-weight: 500;
  font-size: 16px;
  line-height: 26px;
  color: var(--e-global-color-primary) !important;
  text-align: center;
}
.account-info-block form button[type="submit"] {
  background-color: var(--e-global-color-accent) !important;
  border-radius: 16px !important;
  padding: 8px 12px;
  font-weight: 500;
  font-size: 16px;
  line-height: 26px;
  color: #333948 !important;
  width: 232px;
  min-height: 52px;
  max-width: 100%;
}

.account-info-block form button[type="submit"] br {
    display: none!important;
}

.account-info-block form button[type="submit"]:hover {
  color: var(--e-global-color-primary) !important;
}
.account-info-block .woocommerce-address-fields #billing_first_name_field,
.account-info-block .woocommerce-address-fields #billing_last_name_field,
.account-info-block .woocommerce-address-fields #billing_phone_field,
.account-info-block .woocommerce-address-fields #billing_email_field {
  display: none;
}
.account-content {
  margin-bottom: 50px;
}

.woocommerce .account-content table.my_account_orders th,
.woocommerce .account-content table.my_account_orders td {
  border: none;
  padding: 20px;
}

.woocommerce .account-content table.my_account_orders thead th {
  background: #33373a;
  color: var(--e-global-color-primary) !important;
}
.woocommerce .account-content table.my_account_orders thead th:first-child {
  border-top-left-radius: 16px;
}
.woocommerce .account-content table.my_account_orders thead th:last-child {
  border-top-right-radius: 16px;
}

.woocommerce .account-content table.my_account_orders tbody th,
.woocommerce .account-content table.my_account_orders tbody td {
  background: #ffffff;
  color: #000000 !important;
}

.woocommerce
  .account-content
  table.my_account_orders
  tbody
  tr:last-child
  th:first-child {
  border-bottom-left-radius: 16px;
}
.woocommerce
  .account-content
  table.my_account_orders
  tbody
  tr:last-child
  td:last-child {
  border-bottom-right-radius: 16px;
}
.woocommerce
  .account-content
  table.my_account_orders
  .woocommerce-orders-table__cell-order-actions
  a {
  color: var(--e-global-color-primary) !important;
  display: flex;
  gap: 8px;
  align-items: center;
}

.woocommerce
  .account-content
  table.my_account_orders
  .woocommerce-orders-table__cell-order-actions
  a
  svg {
  width: 1.5em;
}
.button.add_to_cart_button {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 13px;
}
.key_library_grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.key_library_item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 350px;
}

.key_library_item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.key_library_item-content {
  position: absolute;
  bottom: 0;
  left: 0;
  text-align: center;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background: #1e1e1eb2;
  color: var(--e-global-color-primary);
}
.key_library_item-key {
  display: flex;
  gap: 8px;
}
.product-block .my_rewards_title {
  font-size: 28px !important;
  font-style: normal;
  font-weight: 400 !important;
  line-height: 134%;
}

.product-block .grid-product-buy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 30px;
  gap: 40px;
}

.product-block {
  background: #131313;
  padding: 30px;
  border-radius: 20px;
  height: auto;
  margin: -10px 0 30px;
  width: 100%;
}

.product-block .price {
  text-align: right;
  margin: 0px 0 30px;
  font-size: 24px;
  color: var(--e-global-color-primary);
}

.button-qty {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  width: 100%;
}

.count-box-pr {
  border-radius: 16px;
  border: 1px solid #959595;
  background: #131313;
  padding: 20px 24px;
}

.product-block .single_add_to_cart_button {
  width: 100%;
  border-radius: 16px !important;
  padding: 15px !important;
  margin-top: 25px !important;
  color: var(--e-global-color-primary) !important;
  background: var(--e-global-color-accent) !important;
}

.count-box-pr .quantity .qty {
  width: 100%;
}

.count-box-pr .quantity span {
  color: var(--e-global-color-primary);
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 142%; /* 22.72px */
  text-transform: uppercase;
  float: left;
  width: 50%;
}

.button-qty button {
  font-size: 16px;
  font-weight: 400;
  padding: 12px 15px;
  margin: 0 6px;
  border-radius: 16px;
  border: 2px solid #c7c7c7;
  background: #ededed;
  backdrop-filter: blur(38.5px);
  color: #fff;
  cursor: pointer;
  width: 100%;
}

.button-qty button:hover {
  border: 2px solid var(--e-global-color-accent);
}

.info-product-buy {
  border-radius: 15px;
  height: 160px;
  background: var(--e-global-color-accent);
  margin-bottom: 25px;
  background-position: 90% 50%;
  background-repeat: no-repeat;
}

.info-product-buy span {
  color: #fff;
  font-size: 46px;
  font-style: normal;
  font-weight: 400;
  line-height: 142%;
  padding: 80px 0 0 20px;
  display: block;
}

.product-block .qib-button-wrapper {
  border: initial;
  float: right;
  width: 50%;
  margin: 0;
  padding: 0;
  display: block;
}

.my_rewards_title {
  margin: 0 !important;
}

.product-block .price br {
  display: none;
}

.product-block form .quantity-wrap {
  display: flex;
  justify-content: space-between;
}
.product-block form .quantity {
  height: 60px;
}

.product-block .added_to_cart.wc-forward {
  display: none;
}
body .woocs-style-1-dropdown,
body .woocs-style-1-dropdown .woocs-style-1-dropdown-menu,
body .woocs-style-1-dropdown:hover {
  background-color: var(--e-global-color-accent) !important;
  color: var(--e-global-color-primary) !important;
  padding: 5px 3px !important;
  border-radius: 16px;
}
body .woocs-style-1-dropdown .woocs-style-1-dropdown-menu li,
body .woocs-style-1-dropdown .woocs-style-1-dropdown-menu li:hover {
  background-color: var(--e-global-color-accent) !important;
  color: var(--e-global-color-primary) !important;
  padding: 5px 10px !important;
  border-radius: 16px;
}
.wc-block-components-checkout-place-order-button {
  width: 100% !important;
}
.woocommerce-checkout #shipping-option,
.wp-block-woocommerce-checkout-order-summary-totals-block
  .wp-block-woocommerce-checkout-order-summary-shipping-block {
  display: none;
}
.woocommerce.wp-block-group.alignwide {
  margin-inline: 0 !important;
}
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-color: var(--e-global-color-accent);
  outline: none !important;
  color: #000000 !important;
  /*background: #131313;*/
}
.woocommerce-message::before,
.woocommerce-info::before {
  color: var(--e-global-color-accent);
}
.woocommerce-message a.button,
.woocommerce-page #payment #place_order {
  border-radius: 16px !important;
  padding: 15px !important;
  color: var(--e-global-color-primary) !important;
  background: var(--e-global-color-accent) !important;
}
.wp-post-image.woocommerce-placeholder,
.wc-block-components-notices__snackbar {
  display: none !important;
}

/* Упрощенные стили для разделителей */
.account-info-row .account-divider {
  position: absolute;
  width: 1px;
  height: 60px;
  background-color: #c9d8ed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: block;
  visibility: visible;
  opacity: 1;
}

@media (max-width: 1200px) {
  .account-info-row {
    zoom: 0.8;
  }
}

@media (max-width: 768px) {
  .account-info-row {
    flex-direction: column !important;
    gap: 20px !important;
    height: auto !important;
    padding: 20px !important;
  }

  .account-info-row::before,
  .account-info-row::after,
  .account-info-row .account-divider {
    display: none !important;
  }
}

/* Эмуляция стилей Elementor для совместимости */
.elementor-widget-woocommerce-my-account
  .e-my-account-tab
  .woocommerce-MyAccount-content {
  float: unset !important;
  padding: 0 !important;
  width: 100% !important;
}

.elementor-widget-woocommerce-my-account
  .e-my-account-tab
  .woocommerce-MyAccount-navigation {
  float: unset !important;
  width: 100% !important;
}

.elementor-widget-woocommerce-my-account .e-my-account-tab {
  color: #69727d;
  font-family: inherit;
}

/* Дополнительные стили для белого фона и черного текста в аккаунте */
.account-info-row {
  background: #ffffff !important;
  color: #000000 !important;
}

.account-info-row h3,
.account-info-row span,
.account-info-row div {
  color: #000000 !important;
}

.account-info-row svg {
  fill: #000000 !important;
  color: #000000 !important;
}

.account-info-row svg path {
  fill: #000000 !important;
  stroke: #000000 !important;
}

/* Стили для полей ввода - белый фон, черный текст */
.woocommerce-page input,
.woocommerce-page textarea,
.woocommerce-page select {
  background-color: #ffffff !important;
  color: #000000 !important;
}

.woocommerce-page input::placeholder,
.woocommerce-page textarea::placeholder {
  color: #666666 !important;
}

/* Стили для выпадающих списков */
.select2-dropdown,
.select2-results,
.select2-results__option {
  background-color: #ffffff !important;
  color: #000000 !important;
}

.select2-results__option--highlighted {
  background-color: #f0f0f0 !important;
  color: #000000 !important;
}

/* Цвет разделителей */
.account-info-row .account-divider {
  background-color: #c9d8ed;
}

.woocommerce-checkout .payment_method_my_points_gateway     label {
    color: #000000 !important;
}

/* Checkout Table */
.woocommerce-checkout-review-order-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
    font-family: "Nunito", sans-serif;
}

.woocommerce-checkout-review-order-table thead {
    background: #f7f7fa;
}

.woocommerce-checkout-review-order-table th {
    text-align: left;
    padding: 16px 20px;
    font-weight: 700;
    font-size: 15px;
    color: #333;
    border-bottom: 2px solid #eee;
}

.woocommerce-checkout-review-order-table td {
    padding: 16px 20px;
    font-size: 15px;
    color: #444;
    border-bottom: 1px solid #f0f0f5;
}

.woocommerce-checkout-review-order-table tbody tr:last-child td {
    border-bottom: none;
}

.woocommerce-checkout-review-order-table tfoot th {
    text-align: left;
    padding: 14px 20px;
    font-size: 15px;
    color: #333;
    background: #fafafe;
}

.woocommerce-checkout-review-order-table tfoot td {
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 600;
    color: #111;
    background: #fafafe;
}

.woocommerce-checkout-review-order-table .order-total th,
.woocommerce-checkout-review-order-table .order-total td {
    font-size: 17px;
    font-weight: 800;
    color: #7d4dff;
    border-top: 2px solid #e0e0f5;
}


/* Минималистичная таблица заказа */
.woocommerce-table.woocommerce-table--order-details {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
}

/* Заголовки */
.woocommerce-table--order-details thead th {
    background: #fff;
    color: #1f2233;
    font-weight: 700;
    font-size: 15px;
    padding: 14px 18px;
    border: none;
    border-block-start: none!important;
}

.table thead:first-child tr:first-child th {
    border-block-start: none!important;
}

/* Ячейки */
.woocommerce-table--order-details td {
    padding: 14px 18px;
    font-size: 15px;
    color: #333;
    border: none;
}

/* Подвал */
.woocommerce-table--order-details tfoot th,
.woocommerce-table--order-details tfoot td {
    background: #fff;
    padding: 14px 18px;
    font-weight: 700;
    color: #1f2233;
    border: none;
}

/* Последняя строка (итог) */
.woocommerce-table--order-details tfoot tr:last-child td,
.woocommerce-table--order-details tfoot tr:last-child th {
    color: #7d4dff; /* фиолетовый из макета */
    font-weight: 800;
    font-size: 16px;
}


.woocommerce-order-overview {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
}

.woocommerce-notice {
    background: white;
    padding: 20px;
    border-radius: 10px;
    font-size: 24px;
    color: #9c6ade;
}

.woocommerce-customer-details address {
    padding: 20px;
    background: white;
    border: none;
    border-radius: 20px;
}

.account-info-row > div:nth-child(3)::before
{
    height: 103px !important;
    width: 1px !important;
}

.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce #respond input#submit, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce a.button, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce button.button, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce input.button {
    display: flex!important;
    align-items: center!important;
    justify-content: center!important;
}

.account-content h2 {
    padding: 0 0px!important;
}

.account-info-row > div:last-child a {
    position: relative;
    z-index: 1!important;
}

/* Сетка каталога */
ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Карточка товара */
ul.products li.product {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    width: 100% !important;
    padding: 10px!important;
}

ul.products:before{
    display: none!important;
}

ul.products li.product:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.12);
}

/* Ссылка и изображение */
ul.products li.product a.woocommerce-LoopProduct-link {
    display: block;
    padding: 20px;
    text-decoration: none;
    color: inherit;
}

ul.products li.product img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

ul.products li.product:hover img {
    transform: scale(1.05);
}

/* Заголовок */
ul.products li.product h2.woocommerce-loop-product__title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 10px 0 5px;
    color: #222;
    transition: color 0.3s ease;
}

ul.products li.product:hover h2.woocommerce-loop-product__title {
    color: var(--e-global-color-accent, #0073e6);
}

/* Цена */
ul.products li.product .price {
    font-size: 1rem;
    font-weight: bold;
    color: #444;
    margin-bottom: 15px;
    display: block;
}

/* Кнопка */
ul.products li.product .tt-loop-actions .button {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    background: var(--e-global-color-accent, #0073e6);
    color: #fff !important;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 12px;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease;
}

ul.products li.product .tt-loop-actions .button:hover {
    background: #005bb5;
    transform: translateY(-2px);
}

ul.products li.product .tt-loop-actions svg {
    flex-shrink: 0;
}


.woocommerce table.shop_table {
    background: white!important;
}

.e-atc-qty-button-holder {
    display: flex!important;
    flex-direction: column!important;
}

.woocommerce-page label {
    color: black!important;
}

.woocommerce-info {
    background-color: black !important;
}

.woocommerce-error li:first-child {
    display: block!important;
    color: black!important;
}

.woocommerce-notices-wrapper .woocommerce-error li:first-child {
    display: block!important;
    color: black!important;
}

.woocommerce form .form-row .input-text, .woocommerce form .form-row select {
    padding-left: 30px !important;
}