body.product-template:has(:not(.woocommerce-breadcrumb)) .site-main {
  padding: 0;
}
.product-type-variable .product_meta {
  display: none;
}

.site-content .woocommerce-breadcrumb {
  padding-left: 0 !important;
  max-width: 1500px !important;
}

.product__top {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-right: auto;
  margin-left: auto;
  margin-bottom: 20px;
  max-width: 1500px;
  background-color: #ffffff;
}

.product__top>div {
  border: 1px solid#ececec;
  padding: 10px 20px !important;
  display: flex;
  justify-content: center;
  align-items: center;
}

h1.product_title {
  font-size: 24px;
  font-weight: 600 !important;
  text-transform: none;
  line-height: 1.3em;
  color: #165ea0;
}

body .price ins {
  font-size: 21px;
  color: black;
}

.icon-box-wrapper {
  display: flex;
  align-items: center;
}

.icon-box-icon {
  width: 64px;
}

.icon-box-icon svg {
  fill: #165ea0;
}

.icon-box-title {
  margin: 0;
}

.icon-box-title {
  color: #155EA0;
}

.icon-box-description {
  font-size: 16px;
}

.product__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-right: auto;
  margin-left: auto;
  margin-bottom: 20px;
  max-width: 1500px;
  border: 1px solid #ececec;
  background-color: white;
  font-family: Roboto, sans-serif;
}

.single-product div.product .product_meta {
  margin-bottom: 0 !important;
  font-size: 16px;
}

.product__content-meta {
  padding: 10px;
  border-left: #ececec 1px solid;
}

/* Стили для кастомного блока количества */
.bb-quantity-selector {
  display: flex;
  align-items: center;
  margin: 20px 0;
  gap: 15px;
  border: 1px solid #D9D9D9;
  border-radius: 8px;
  padding: 0 0 0 10px;
  width: fit-content;
}

.bb-quantity-selector .quantity-label span {
  font-size: 14px;
  margin: 0;
}

.bb-quantity-selector .quantity-controls {
  display: flex;
  align-items: center;
  gap: 0;
}

.bb-quantity-selector .qty-btn {
  padding: 0;
  background: #ffffff;
  border-radius: 8px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 400;
  color: #000000;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
  outline: none;
}

.bb-quantity-selector .qty-btn:hover {
  background: #f8f9fa;
  color: #0d47a1;
}

.bb-quantity-selector .qty-btn:active {
  background: #e9ecef;
}

.bb-quantity-selector .qty-input {
  padding: 0;
  width: 40px;
  height: 40px;
  border: none;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  background: #155EA0;
  outline: none;
  -moz-appearance: textfield;
}

.bb-quantity-selector .qty-input::-webkit-outer-spin-button,
.bb-quantity-selector .qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Обновленные стили для wrapper__add-to-cart */
.wrapper__add-to-cart {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cart .single_add_to_cart_button {
  width: 100% !important;
  margin: 0 !important;
  padding: 12px 20px !important;
}

.pay-div {
  width: 100%;
}

/* Скрываем стандартные quantity inputs WooCommerce */
.product .summary .quantity.buttons_added,
.variations_form .quantity.buttons_added {
  display: none !important;
}

.single-product #page .product .woocommerce-product-gallery {
  width: 100% !important;
}

.product__desc {
  background-color: white;
  padding-top: 1em;
  padding-bottom: 2em;
}

.product__desc-wrapper {
  width: 1500px;
  margin-right: auto;
  margin-left: auto;
}

.desc__content {
  display: grid;
  grid-template-columns: 1fr 420px;
  border: 1px solid #ececec;
}

.desc__content-text {
  position: relative;
  overflow-y: auto;
  padding: 2em;
  background-image: url(/wp-content/uploads/2022/01/backgroundlayout2.png);
  background-position: center right;
}

.scroll-inner {
  height: 275px;
  overflow-y: scroll;
}

.desc__content-icons {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  background-image: url(/wp-content/uploads/2022/01/backgroundlayout2.png);
  background-position: center right;
  border-left: 1px solid #ececec;
}

.product__background-overlay {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  position: absolute;
  background-color: white;
  opacity: 0.55;
  z-index: 1;
}

.woocommerce-product-details__short-description {
  z-index: 2;
  position: relative;
}

.pad-1 {
  padding: 1rem !important;
}

.desc__content-icons p {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
  /* чтобы высота родителя позволяла вертикальное выравнивание */
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.3em;
  position: relative;
  z-index: 2;
}

.desc__content-icons p:nth-child(-n+3) {
  border-bottom: 1px solid #ccc;
  /* светло-серый бордер */
}

.desc__content-icons p img {
  width: 30%;
}


.pp-table tbody tr:nth-child(odd) td {
  background-color: #f6f6f6;
}

.pp-table tr {
  font-family: "Roboto", Sans-serif;
  font-size: 14px;
  font-weight: 500;
}

.pp-table td {
  border-style: solid;
  border-width: 1px;
  border-color: #e6e6e6;
  width: 50%;
}

.pp-table tbody td {
  vertical-align: middle;
}

body.woocommerce-page .quantity .minus,
body.woocommerce-page .quantity .plus {
  height: 29px !important;
}

.quantity.buttons_added {
  padding-right: 50px !important;
}

.single-product .quantity-nav {
  width: 50px !important;
}

/* Основной контейнер */
.bb_container {
  max-width: 1500px;
  margin: 1rem auto;
  padding: 0 15px;
}

/* Ряды */
.bb_row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

/* Колонки */
.bb_col {
  padding: 0 15px;
}

/* Система классов для ширины (6 колонок) */
.bb_w-1 {
  width: 16.66%;
}

.bb_w-2 {
  width: 33.33%;
}

.bb_w-3 {
  width: 50%;
}

.bb_w-4 {
  width: 66.66%;
}

.bb_w-5 {
  width: 83.33%;
}

.bb_w-6 {
  width: 100%;
}

/* Дополнительные классы для ширины */
.bb_w-1-2 {
  width: 50%;
}

.bb_w-1-3 {
  width: 33.33%;
}

.bb_w-1-6 {
  width: 16.66%;
}

/* Классы для фиксированной ширины */
.bb_w-fixed {
  width: 420px;
}

.bb_w-auto {
  width: calc(100% - 420px);
}

/* Система классов для фона */
.bb_bg-primary {
  background-color: #3498db;
}

.bb_bg-primary-light {
  background-color: #5dade2;
}

.bb_bg-primary-dark {
  background-color: #2980b9;
}

.bb_bg-secondary {
  background-color: #2ecc71;
}

.bb_bg-secondary-light {
  background-color: #58d68d;
}

.bb_bg-secondary-dark {
  background-color: #27ae60;
}

.bb_bg-dark {
  background-color: #34495e;
}

.bb_bg-light {
  background-color: #ecf0f1;
}

.bb_bg-warning {
  background-color: #f39c12;
}

.bb_bg-danger {
  background-color: #e74c3c;
}

.bb_bg-info {
  background-color: #1abc9c;
}

/* Дополнительные утилиты */
.bb_p-1 {
  padding: 0.5rem;
}

.bb_p-2 {
  /*padding: 1rem;*/
}

.bb_p-3 {
  padding: 1.5rem;
}

.bb_p-4 {
  padding: 2rem;
}

.bb_p-5 {
  padding: 2.5rem;
}

.bb_m-1 {
  margin: 0.5rem;
}

.bb_m-2 {
  margin: 1rem;
}

.bb_m-3 {
  margin: 1.5rem;
}

.bb_m-4 {
  margin: 2rem;
}

.bb_m-5 {
  margin: 2.5rem;
}

.bb_text-center {
  text-align: center;
}

.bb_text-left {
  text-align: left;
}

.bb_text-right {
  text-align: right;
}

.bb_text-white {
  color: white;
}

.bb_text-dark {
  color: #333;
}

.bb_rounded {
  border-radius: 0.25rem;
}

.bb_shadow {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.bb_h-100 {
  height: 100%;
}

/* Система классов для фоновых изображений */
.bb_bg-img {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* Примеры фоновых изображений с использованием градиентов */
.bb_bg-gradient-1 {
  background-image: linear-gradient(to right, #3498db, #2ecc71);
}

.bb_bg-gradient-2 {
  background-image: linear-gradient(to bottom, #e74c3c, #f39c12);
}

.bb_bg-gradient-3 {
  background-image: linear-gradient(45deg, #9b59b6, #3498db);
}

.bb_bg-pattern-1 {
  background-image: repeating-linear-gradient(45deg, #3498db, #3498db 10px, #2980b9 10px, #2980b9 20px);
}

.bb_bg-pattern-2 {
  background-image: radial-gradient(circle, #3498db, #2ecc71);
}

/* Модификаторы для фоновых изображений */
.bb_bg-img-cover {
  background-size: cover;
}

.bb_bg-img-contain {
  background-size: contain;
}

.bb_bg-img-repeat {
  background-repeat: repeat;
  background-size: auto;
}

.bb_bg-img-no-repeat {
  background-repeat: no-repeat;
}

.bb_bg-img-center {
  background-position: center;
}

.bb_bg-img-top {
  background-position: top;
}

.bb_bg-img-bottom {
  background-position: bottom;
}

.bb_bg-img-fixed {
  background-attachment: fixed;
}

.bb_box_title {
  font-size: 20px;
  color: #165ea0;
  border-bottom: 1px solid #d8d8d8;
  padding: 0.5em;
}

.bb_box_title.bb_table_subtitle {
  font-size: 16px;
  text-align: left;
}

.bb_linear-gradientblue {
  background: linear-gradient(40deg, #fff 60%, #edf7fd 100%);
}

.bb_border-right {
  border-left: 1px solid #ececec;
}

.bb_list-check ul {
  list-style: none;
  margin: 0;
  padding: 0.5em 2em 2em;
}

.bb_list-check li:not(:last-child) {
  margin-bottom: 10px;
  border-bottom-style: dashed;
  border-bottom-width: 1px;
  border-bottom-color: #dadada;
}

.bb_list-check li {
  color: #165ea0;
  font-family: "Roboto", Sans-serif;
  font-size: 16px;
  font-weight: 500;
  position: relative;
  padding-left: 28px;
  list-style: none;
}

.bb_list-check li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 18px;
  height: 18px;

  background-color: #3aae2e;

  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z'/%3E%3C/svg%3E");
  mask-repeat: no-repeat;
  mask-size: contain;
  mask-position: center;

  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  -webkit-mask-position: center;
}

.bb_video-grid {
  display: flex;
  flex-wrap: wrap;
}

.bb_video-item {
  padding: 7px;
  width: 50%;
}

.bb_video-item:only-child {
  width: 100%;
}

.bb_video-item img,
.bb_video-item video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

/* Стили для табов - Desktop версия */
.bb_product_tabs {
  margin-top: 2rem;
  background-color: white;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
}

/* Контейнер для каждого таба (кнопка + контент)
   На desktop игнорируем обертку через display: contents */
.bb_tab_item {
  display: contents;
}

.bb_tab_button {
  font-weight: 400;
  order: 1;
  margin-right: 5px;
  margin-bottom: 10px;
  border-top-right-radius: 6px;
  border-top-left-radius: 6px;
  border: 1px solid #D9D9D9;
  padding: 10px 20px;
  background: none;
  cursor: pointer;
  font-size: 16px;
  color: #165ea0;
  transition: all 0.3s ease;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.bb_tab_button:hover {
  color: #165ea0;
  font-weight: 600;
}

.bb_tab_button.active {
  background-color: #016BB2;
  border: 1px solid #016BB2;
  color: #fff;
}

/* Стрелка в кнопке таба (скрыта на desktop) */
.bb_tab_arrow {
  display: none;
}

.bb_tab_content {
  order: 2;
  display: none;
  min-height: 200px;
  border: 1px solid #ececec;
  width: 100%;
  animation: fadeIn 0.3s ease-in-out;
}

#description-tab.bb_tab_content.active {
  display: flex;
  flex-direction: column;
}

.bb_tab_content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Стили для контента в табах */
.bb_tab_content h1,
.bb_tab_content h2,
.bb_tab_content h3,
.bb_tab_content h4,
.bb_tab_content h5,
.bb_tab_content h6 {
  color: #165ea0;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.bb_tab_content h1 {
  font-size: 1.8rem;
}

.bb_tab_content h2 {
  font-size: 1.5rem;
}

.bb_tab_content h3 {
  font-size: 1.3rem;
}

.bb_tab_content p {
  margin-bottom: 1rem;
  line-height: 1.6;
  color: #333;
}

.bb_tab_content ul,
.bb_tab_content ol {
  margin-bottom: 1rem;
  padding-left: 2rem;
}

.bb_tab_content li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.bb_tab_content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}

.bb_tab_content table th,
.bb_tab_content table td {
  padding: 0.75rem;
  border: 1px solid #ddd;
  text-align: left;
}

.bb_tab_content table th {
  background-color: #f8f9fa;
  font-weight: 600;
  color: #165ea0;
}

.bb_tab_content table tr:nth-child(even) {
  background-color: #f8f9fa;
}

.product__content-gallery {
  position: relative;
  display: flex;
}

.product__content-summary {
  padding: 1rem;
}

.content__summary-title {
  font-weight: 600;
}

.product-warrantly {
  position: absolute;
  left: 10px;
}

.bb-single-product-price {
  display: flex;
  flex-direction: column;
}

.bb-single-product-price del {
  color: #ff0000;
  font-size: 20px;
}

.bb-single-product-price ins {
  color: #008004;
  font-size: 24px;
  line-height: 20px;
}

.bb-single-product-price .price bdi {
  color: #008004;
  font-size: 24px;
  line-height: 20px;
  font-weight: 700;
  font-family: 'Roboto';
}

.product__titlebox {
  margin-bottom: 1em;
}

.product-price .additional-discount {
  margin-left: 0 !important;
}

.product-template .product-price .discount-badge {
  margin-left: 0 !important;
}

/* Бейдж "YOU SAVED" - экономия при покупке */
.you-saved-badge {
  line-height: 1;
  background-color: #ECECEC;
  display: inline-block;
  margin-top: 8px;
  padding: 2px 3px;
  border: 1px solid #15803d;
  border-radius: 8px;
  color: #15803d;
  font-size: 14px;
  font-weight: 600;
  font-family: Roboto, sans-serif;
}

.you-saved-badge .woocommerce-Price-currencySymbol {
  font-weight: 600;
}

/* Мобильная адаптация бейджа */
@media (max-width: 768px) {
  .you-saved-badge {
    font-size: 12px;
    padding: 4px 12px;
  }
}

.woocommerce-variation-price {
  display: none !important;
}

/* Общие стили для всех блоков с кнопками выбора параметров */
.product__selector-buttons {
  display: grid;
  gap: 10px;
  align-items: baseline;
}

/* Модификаторы для разного количества кнопок */
.product__selector-buttons--2 {
  grid-template-columns: repeat(2, 1fr);
}

.product__selector-buttons--3 {
  grid-template-columns: repeat(3, 1fr);
}

.product__selector-buttons--4 {
  grid-template-columns: repeat(4, 1fr);
}

.product__selector-buttons--5 {
  grid-template-columns: repeat(5, 1fr);
}

.product__selector-buttons--6 {
  grid-template-columns: repeat(6, 1fr);
}

/* Специальная раскладка для EG4 Inverter Option */
.product__selector-buttons.product__selector-buttons--eg4-special {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  width: 100%;
}

/* Первые 2 кнопки занимают по 1 колонке, потом пропускаем одну */
.product__selector-buttons--eg4-special .product__selector-button:nth-child(1) {
  grid-column: 1;
}

.product__selector-buttons--eg4-special .product__selector-button:nth-child(2) {
  grid-column: 2;
}

/* Последние 3 кнопки центрируем и занимают 70% ширины */
.product__selector-buttons--eg4-special .product__selector-button:nth-child(3) {
  grid-column: 1;
}

.product__selector-buttons--eg4-special .product__selector-button:nth-child(4) {
  grid-column: 2;
}

.product__selector-buttons--eg4-special .product__selector-button:nth-child(5) {
  grid-column: 3;
}

/* Раскладка для Battery Option и Configuration (30% ширины кнопок, по 2 в ряд) */
.product__selector-buttons--35percent {
  display: grid;
  grid-template-columns: repeat(3, 30%);
  gap: 10px; 
}
.product__selector-buttons--45percent {
  display: grid;
  grid-template-columns: repeat(2, 45%);
  gap: 10px; 
}
.product__selector-buttons--50percent {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.product__selector-button {
  padding: 12px 5px;
  border: 1px solid #D9D9D9;
  border-radius: 8px;
  background: #ffffff;
  color: #155EA0;
  font-size: 14px;
  font-weight: 400;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  font-family: Roboto, sans-serif;
}

.product__selector-button.dashed {
  border: #D9D9D9 dashed !important;
}

.product__selector-button:hover {
  border-color: #155EA0;
  color: #155EA0;
}

.product__selector-button.active {
  opacity: 1;
  border-color: #155EA0;
  background: #155EA0;
  color: #ffffff;
}

.product__selector-button .tb {
  display: inline-block;
  font-weight: 600;
}

/* Стили для заголовков блоков */
.product__system-selector-title p {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 5px !important;
}

.product__system-selector-title span {
  color: #ff0000;
}

/* Стили для контейнера системного селектора */
.product__system-selector {
  margin-bottom: 20px;
  border-radius: 8px;
  background: #ffffff;
}

/* Скрытие стандартного селекта вариаций */
.variations_form .variations {
  display: none !important;
}

/* Стили для кнопок вариаций */
.variation-selector {
  position: relative;
}

.variation-selector.active {
  border-color: #155EA0;
  background: #155EA0;
  color: #ffffff;
}

/* Стили для группированных вариаций */
.variation-group {
  margin-bottom: 25px;
  gap: 2em;
  grid-template-columns: 80px 1fr;
  display: grid;
  align-items: center;
}
.variation-group:not(:last-child) {
  border-bottom: 1px solid #A4A4A4;
  padding-bottom: 25px;
}

.variation-group:last-child {
  margin-bottom: 0;
}

.variation-group-title {
  text-align: center;
  align-self: center;
}

.variation-group-title h4 {
  font-size: 16px;
  font-weight: 600;
  color: #165ea0;
  margin: 0;
  padding: 0;
  text-transform: none;
}

.group-title {
  font-size: 14px;
  color: #008004;
}
.group-title span {
  font-weight: 600;
}

/* Скрытие оригинального SKU в метаданных для вариативных товаров */
.product-template .product_meta .sku_wrapper {
  display: none !important;
}

/* Стили для SKU в titlebox */
.sku-wrapper {
  margin-top: 10px;
  font-size: 16px;
}

.sku-wrapper strong {
  color: #333;
}

.sku-wrapper .sku {
  font-weight: 400;
}

.addons_header {
  font-weight: 600;
}

#addon_container {
  flex-direction: column;
}

.addon_box {
  margin-right: 0;
  margin-top: 0;
  margin-bottom: 16px;
  width: 100%;
  background-color: white;
}

ul.addon_list {
  border-radius: 8px;
}

ul.addon_list li.addon_list_item {
  height: auto !important;
  min-height: auto !important;
  max-height: none !important;
  padding: 0.75rem !important;
}

.addon_list_item label {
  display: flex;
  align-items: center;
}

.addon--product-title {
  flex-grow: 1;
  font-size: 14px;
  font-weight: 600;
  align-content: center;
}

figure.addon_list_item_figure {
  width: 4rem !important;
  margin-left: 10px;
}

.woocommerce-product-details__short-description {
  font-size: 14px !important;
}

/* Стили для кнопки Buy Now */
.bb-buy-now-button {
  background: #3AAE2E !important;
  color: white !important;
  border: none !important;
  padding: 12px 20px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  border-radius: 4px !important;
  cursor: pointer !important;
  width: 100% !important;
  margin-top: 10px !important;
  transition: background-color 0.3s ease !important;
  text-align: center !important;
  display: inline-block !important;
  text-transform: uppercase !important;
}

.bb-buy-now-button:hover {
  background: #218838 !important;
  color: white !important;
  text-decoration: none !important;
}

.bb-buy-now-button:disabled {
  background: #6c757d !important;
  cursor: not-allowed !important;
}

/* Обновленные стили для кнопки Buy Now в новой структуре */
.bb-buy-now-button {
  width: 100% !important;
  margin: 0 !important;
}

.product .cart .single_add_to_cart_button {
  padding: 0 !important;
  border-radius: 4px;
  background-color: #008004 !important;
}

.woocommerce-variation-add-to-cart .bb-buy-now-button {
  margin-top: 20px !important;
}

/* Стили для модального окна с видео */
.bb_video_modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
}

.bb_video_modal_content {
  position: relative;
  margin: 5% auto;
  padding: 0;
  width: 90%;
  max-width: 900px;
}

.bb_video_close {
  position: absolute;
  top: -55px;
  right: 0;
  color: #fff;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10;
}

.bb_video_container {
  position: relative;
  padding-bottom: 56.25%;
  /* 16:9 */
  height: 0;
  overflow: hidden;
}

.bb_video_container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.woocommerce-variation-availability {
  display: none;
}


/* Обертка для изоляции стилей секции Downloads & Specifications */
.bb-downloads-specs * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.bb-downloads-specs {
  font-family: Roboto, sans-serif;
  background-color: #fff;
}

.bb-downloads-specs .downloads-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  grid-auto-flow: column;
  align-items: start;
  column-gap: 5px;
  row-gap: 0px;
  margin: 0 auto;
}

.bb-downloads-specs.single-table .downloads-container {
  grid-template-columns: 1fr;
}

.bb-downloads-specs .column {
  display: contents;
}

.bb-downloads-specs .download-table {
  border: 1px solid #a4a4a4;
  border-radius: 8px;
  overflow: hidden;
  padding: 5px;
  margin-bottom: 20px;
}

.bb-downloads-specs .table-header {
  background-color: #fff;
}

.bb-downloads-specs .table-header h2 {
  font-size: 24px;
  font-weight: 500;
  margin: 0;
}

.bb-downloads-specs .table-body {
  padding: 0;
}

.bb-downloads-specs .table-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 4px;
  min-height: 25px;
}

.bb-downloads-specs .table-row:last-child {
  border-bottom: none;
}

.bb-downloads-specs .table-row:nth-child(odd) {
  background-color: #f5f5f5;
  padding: 1px 3px;
}

.bb-downloads-specs .table-row:nth-child(even) {
  background-color: #fff;
  padding: 1px 3px !important;
}

.bb-downloads-specs .row-key {
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

.bb-downloads-specs .row-value {
  font-size: 14px;
  font-weight: 400;
  color: #666;
}

.bb-downloads-specs .download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background-color: #3171ab;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s;
}

.bb-downloads-specs .download-btn:hover {
  background-color: #265a8f;
}

.bb-downloads-specs .download-btn img {
  width: 14px;
  height: 14px;
}

.bb-downloads-specs .mobile-tabs {
  display: none;
}

.bb-downloads-specs .table-single {
  column-count: 2;
}

.bb-downloads-specs .table-short-single {
  margin: 0 auto 20px auto;
  width: 60%;
}

.product-price-summary {
  display: grid;
  gap: 16px;
  grid-template-columns: 200px 1fr;
  border-bottom: 1px solid #a4a4a4;
  padding-bottom: 7px;
  background-color: #ffffff;
  /* Smooth transition when fixed state changes */
  transition: box-shadow 0.3s ease;
}

/* Состояние когда элемент зафиксирован вверху (fixed) */
.product-price-summary.is-fixed {
  position: fixed;
  top: 0;
  left: auto;
  z-index: 10;
  padding-top: 10px;
  padding-bottom: 10px;
  /* Hardware acceleration для плавности */
  transform: translateZ(0);
  will-change: transform;
}

/* Placeholder для предотвращения прыжков контента */
.product-price-summary-placeholder {
  display: none;
}

.product-price-summary-placeholder.active {
  display: block;
}

.product__summary {
  display: grid;
  grid-auto-flow: column;
  gap: 10px;
}

.summary-container-box {
  background-color: #F4F4F4;
  border: 1px solid #D9D9D9;
  min-height: 92px;
  border-radius: 8px;
  font-family: Roboto, sans-serif;
  text-align: center;
  padding: 8px;
}
.summary-top-params {
  margin-bottom: 5px;
}
.summary-params p {
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
}
.summary-params p span {
  font-weight: 600;
  color: #008004;
}
.summary-params p:first-child {
  font-size: 14px;
  font-weight: 400;
}
.summary-container-compare a {
  color: #0073E6;
  font-size: 12px;
  font-style: italic;
  text-decoration: underline;
  display: flex;
  align-items: center;
}
.summary-container-compare a:after {
  content: '';
  background-image: url("/wp-content/themes/shoptimizer-child/template-parts/product/assets/images/Info.png");
  width: 9px;
  height: 9px;
  background-size: contain;
  display: inline-block;
  margin-left: 3px;
}
.summary-container-compare {
  display: flex;
  justify-content: center;
  margin-top: 5px;
}

.stock.available-on-backorder {
  border: none !important;
  padding-top: 0 !important;
}

.stock.available-on-preorder {
  border: 0 !important;
  padding-top: 0 !important;
}

/* ========================================
   Табы Grid-Tied / Off-Grid
   ======================================== */
.product__options-tabs-wrapper {
  margin: 1rem 0;
}

.product__options-tabs-nav {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  border-bottom: 2px solid #E5E5E5;
}

.product__options-tab {
  flex: 1;
  padding: 12px 20px;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #A3A3A3;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: -2px;
  font-family: Roboto, sans-serif;
}

.product__options-tab:hover {
  color: #155EA0;
}

.product__options-tab.active {
  color: #000;
  border-bottom-color: #000;
  font-weight: 600;
}

/* Контент табов */
.product__options-tab-content {
  display: none;
}

.product__options-tab-content.active {
  display: block;
}

/* ========================================
   Social Share - кнопка и выпадающее меню
   ======================================== */

.bb-social-share {
  position: absolute;
  z-index: 10;
  top: 0.875em;
  right: 3em;
}

.bb-share-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  padding: 0;
  border: none;
  background: #fff;
  cursor: pointer;
}

.bb-share-trigger img {
  max-width: 18px;
  height: 18px;
}

.bb-share-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 200px;
  margin-top: 8px;
  padding: 8px 0;
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
}

.bb-share-dropdown.show {
  display: block;
  animation: bbShareFadeIn 0.2s ease-out;
}

@keyframes bbShareFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bb-share-dropdown-header {
  padding: 8px 16px 12px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 4px;
}

.bb-share-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  transition: background-color 0.2s ease;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
}

.bb-share-item:hover {
  background-color: #f5f5f5;
  color: #333;
}

.bb-share-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.bb-share-divider {
  height: 1px;
  background-color: #e0e0e0;
  margin: 4px 0;
}

/* успешное копирование */
.bb-copy-link.copied span {
  color: #28a745;
}

/* Цвета иконок соцсетей */
.bb-share-item[data-network="facebook"] svg { fill: #1877F2; }
.bb-share-item[data-network="twitter"] svg { fill: #000000; }
.bb-share-item[data-network="tiktok"] svg { fill: #000000; }
.bb-share-item[data-network="linkedin"] svg { fill: #0A66C2; }
.bb-share-item[data-network="reddit"] svg { fill: #FF4500; }
.bb-share-item[data-action="copy"] svg { fill: #666666; }

/* Loading spinner для кнопки Add to Cart */
.single_add_to_cart_button.loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.single_add_to_cart_button.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: bb-spin 0.8s linear infinite;
}

@keyframes bb-spin {
  to { transform: rotate(360deg); }
}

/* z-index для слайда корзины поверх overlay */
.basket-open #header-new-section .header__in-basket {
  z-index: 9999;
}

/* Скрываем drawer overlay когда открыт наш слайд корзины */
body.basket-open.drawer-open::before {
  display: none !important;
}

#header-new-section .header__in-basket-image {
  flex: 0 0 65px !important;
  align-content: center;
  background-color: #F4F4F4;
}

#header-new-section .header__in-basket-name {
  font-size: 12px !important;
  font-weight: 600 !important;
  height: auto !important;
  margin-bottom: 0 !important;
}

#header-new-section .header__in-basket-price {
  font-size: 12px !important;
  color: #008004 !important;
  font-weight: 600 !important;
  margin-bottom: 10px !important;
}

#header-new-section .header__in-basket-price del {
  font-size: 11px !important;
  color: #000000 !important;
  font-weight: 400 !important;
}

#header-new-section .header__in-basket-view {
  display: flex;
  justify-content: center;
  padding-top: 4px;
  padding-bottom: 4px;
  margin-right: -30px !important;
  margin-left: -30px !important;
  background-color: #008004 !important;
  text-transform: none !important;
}

#header-new-section .header__in-basket-view  svg {
  width: 20px;
  height: auto;
  margin-right: 5px;
}

#header-new-section .header__in-basket-footer {
  text-align: center;
  margin-top: 5px !important;
  font-size: 10px;
}

#header-new-section .header__in-basket-footer a {
  color: #155EA0 !important;
}

/* Блок Regular Price / Sale Savings */
#header-new-section .header__in-basket-pricing {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

#header-new-section .header__in-basket-pricing-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 5px;
  color: #484646;
}

#header-new-section .header__in-basket-pricing-row:last-child {
  margin-bottom: 0;
}

#header-new-section .header__in-basket-savings {
  color: #15803D;
}

#header-new-section .bb-savings-total {
  font-weight: 600;
  color: #15803D;
}

#header-new-section .header__in-basket-total {
  display: flex !important;
  justify-content: space-between !important;
  padding: 0 !important;
  font-size: 12px !important;
  border: none !important;
  color: #484646 !important;
  text-align: left !important;
}

#header-new-section .header__in-basket-button {
  justify-content: space-between !important;
  font-size: 14px !important;
  font-weight: 600 !important;
}

/* Слайд корзины: селектор количества и кнопка удаления */
.header__in-basket-quantity {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 10px;
  justify-content: space-between;
}

.bb-cart-qty-selector {
  display: flex;
  align-items: center;
  border: 1px solid #DEDEDE !important;
  border-radius: 4px;
  
}

.bb-cart-qty-btn {
  width: 20px;
  height: 18px;
  border: none;
  color: black !important;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.bb-cart-qty-btn:hover:not(:disabled) {
  background: #e0e0e0;
}

.bb-cart-qty-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.bb-cart-qty-input {
  background: #BBBBBB !important;
  width: 16px;
  height: 18px !important;
  text-align: center;
  border: none;
  font-size: 12px;
  -moz-appearance: textfield;
}

.bb-cart-qty-input::-webkit-inner-spin-button,
.bb-cart-qty-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.bb-cart-remove-item {
  background: none;
  border: none;
  color: #999;
  font-size: 11px;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s;
}

.bb-cart-remove-item:hover {
  color: #d9534f;
}

/* Слайд корзины: layout с фиксированным футером */
#header-new-section .header__in-basket-body {
  display: flex;
  flex-direction: column;
  height: 100%;
}

#header-new-section .header__in-basket-items {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

#header-new-section .header__in-basket-actions {
  flex-shrink: 0;
  padding-top: 15px;
  margin-top: auto;
}

/* Блок купона в слайде корзины */
.header__in-basket-coupon {
  margin-bottom: 15px !important;
  border-top: 1px solid #bcbcbc !important;
  border-bottom: 1px solid #bcbcbc !important;
  padding-top: 15px !important;
  padding-bottom: 15px !important;
}

.bb-coupon-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.bb-coupon-header.has-coupon {
  cursor: default;
}

.bb-coupon-title {
  font-size: 12px;
  font-weight: 600;
  color: #484646;
}

.bb-coupon-toggle {
  font-size: 18px;
  font-weight: 300;
  color: #484646;
  transition: transform 0.3s;
  line-height: 1;
}

.bb-coupon-header.active .bb-coupon-toggle {
  transform: rotate(45deg);
}

.bb-coupon-form {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.bb-coupon-input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 12px;
  outline: none;
}

.bb-coupon-input:focus {
  border-color: #008004;
}

.bb-coupon-apply {
  padding: 8px 15px;
  background-color: #008004;
  color: #000;
  border: none;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.bb-coupon-apply:hover {
  color: #000;
}

.bb-coupon-apply:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.bb-coupon-applied {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding: 8px 10px;
  background-color: #f0f9f0;
  border-radius: 4px;
}

.bb-coupon-code-title {
  color: #000000;
}

.bb-coupon-code {
  font-size: 12px;
  font-weight: 600;
  color: #008004;
}

.bb-coupon-discount {
  font-size: 12px;
  color: #008004;
  font-weight: 600;
  margin-left: auto;
  margin-right: 10px;
}

.bb-coupon-remove {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #999;
  line-height: 1;
  padding: 0;
  transition: color 0.2s;
}

.bb-coupon-remove:hover {
  color: #d9534f;
}

.bb-coupon-error {
  color: #dc3545;
  font-size: 11px;
  margin-top: 5px;
}

/* Скрытие блока купона когда корзина пуста */
.header__in-basket-coupon.bb-hidden {
  display: none;
}

@media (max-width: 1024px) {

  /* Исправление скролла слайда корзины */
  #header-new-section .header__in-basket {
    overflow: hidden;
  }

  #header-new-section .header__in-basket-body {
    max-height: 100vh;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
  }

  .product-price-summary {
    grid-template-columns: 110px 1fr;
  }
  .product__summary {
    grid-auto-flow: row;
    gap: 5px;
  }
  .product__selector-buttons.product__selector-buttons--eg4-special {
    grid-template-columns: repeat(3, 1fr);
  }
  .product__selector-button {
    font-size: 13px;
    padding: 10px 6px;
  }
  .summary-container-box {
    display: flex;
    gap: 10px;
    min-height: auto;
    justify-content: space-around;
  }
  .summary-top-params {
    margin-bottom: 0;
  }
  .summary-params p {
    font-size: 16px;
  }
  .summary-params p:first-child {
    font-size: 12px;
  }
  .summary-container-compare {
    margin-top: 0;
  }

  .bb_w-1,
  .bb_w-2,
  .bb_w-3,
  .bb_w-4,
  .bb_w-1-3,
  .bb_w-1-6 {
    width: 50%;
  }

  .bb_w-auto,
  .bb_w-fixed {
    width: 100%;
  }

  .product__top {
    display: none;
  }

  .product__content {
    display: block;
    grid-template-columns: 1fr;
    margin-left: 1em;
    margin-right: 1em;
    gap: 4em;
  }

  .product__titlebox {
    display: flex;
    flex-direction: column;
    border-top: 15px solid #f8f8f8;
    margin-left: -10px;
    margin-right: -10px;
    padding: 10px;
  }

  .product__titlebox h1.product_title {
    font-size: 1em !important;
    color: black;
  }

  .product-price ins {
    font-size: 20px !important;
    font-weight: 600 !important;
  }

  .product-price del {
    font-size: 1.1em !important;
    font-weight: 500 !important;
  }

  .product__desc-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    width: auto;
    margin-right: 1em;
    margin-left: 1em;
  }

  .desc__content {
    display: grid;
    grid-template-columns: 1fr;
  }

  .desc__content-specs {
    grid-template-columns: 1fr;
  }

  .desc__content-icons p:nth-child(-n+3) {
    padding-bottom: 1em;
  }

  .desc__content-youtube p {
    flex-direction: column;
  }

  .product-warrantly.mobile {
    display: block;
    padding-left: 1em;
  }

  .icon-box-title {
    font-size: 1.3em;
  }

  .icon-box-description {
    font-size: 0.5em;
  }
  
  .bb_tabs_navigation {
    flex-direction: column;
  }

  .bb_tab_button {
    border-bottom: 1px solid #ececec;
    font-weight: 600;
  }

  .bb_tab_button:last-child {
    border-bottom: none;
  }

  .bb_tabs_content {}

  #battery-specs.bb_tab_content.active {
    flex-direction: column;
    width: calc(100vw - 2rem);
  }
  
  .product-price-summary.is-fixed {
    top: 54px;
  }
}

@media (max-width: 768px) {
  .bb-single-product-price .price bdi {
    font-size: 20px;
  }
  .bb-downloads-specs .table-short-single {
    width: 100%;
  }
  .bb-downloads-specs .table-single {
    column-count: 1;
  }
  .bb-downloads-specs .mobile-tabs {
    display: flex;
    gap: 12px;
    max-width: 1400px;
    margin: 0 auto 5px;
  }

  .bb-downloads-specs .tab-button {
    flex: 1;
    font-size: 20px;
    font-weight: 500;
    border: 1px solid #a4a4a4;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    background-color: #fff;
    color: #3171ab;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .bb-downloads-specs .tab-button.active {
    background-color: #3171ab;
    color: #fff;
    border-color: #3171ab;
  }

  .bb-downloads-specs .tab-arrow {
    width: 11px;
    height: 6px;
  }

  .bb-downloads-specs .column {
    display: none;
  }

  .bb-downloads-specs .column.active {
    display: grid;
  }

  .bb-downloads-specs .downloads-container {
    grid-template-columns: 1fr;
  }

  .bb-downloads-specs .column {
    width: 100%;
  }

  .bb-downloads-specs .table-row {
    gap: 12px;
  }

  .bb-downloads-specs .row-key {
    flex: 0 0 40%;
  }

  .bb-downloads-specs .row-value {
    flex: 0 0 35%;
  }

  .bb-downloads-specs .download-btn {
    flex: 0 0 25%;
    justify-content: center;
  }
  .product-warrantly {
    display: none;
  }

  .bb_row {
    flex-direction: column;
  }

  .bb_w-1,
  .bb_w-2,
  .bb_w-3,
  .bb_w-4,
  .bb_w-5,
  .bb_w-6,
  .bb_w-1-2,
  .bb_w-1-3,
  .bb_w-1-6,
  .bb_w-auto,
  .bb_w-fixed {
    width: 100%;
  }

  .bb_p-2 {
    padding: 1rem 0;
  }

  .bb_border-right {
    border: none;
  }

  .bb_video-item {
    width: 100%;
  }
  
  .bb_container {
    width: 100%;
    padding: 0 15px;
  }
  
  .bb_product_tabs {
    margin-top: 1rem;
    display: block;
    width: 100%;
  }
  
  .bb_tab_item {
    display: block;
    margin-bottom: 10px;
  }

  .bb_tab_button {
    order: unset;
    font-size: 16px !important;
    padding: 0.75rem 1rem;
    margin-right: 0;
    margin-bottom: 0;
    width: 100%;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-bottom: 1px solid #ececec;
    display: flex;
    justify-content: center;
  }

  .bb_tab_button:last-child {
    border-bottom: none;
  }
  
  .bb_tab_arrow {
    display: inline-block;
    width: 12px;
    height: 8px;
    background-image: url('/wp-content/themes/shoptimizer-child/template-parts/product/assets/images/arrow_down.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: background-image 0.2s ease;
  }
  
  .bb_tab_button.active .bb_tab_arrow {
    background-image: url('/wp-content/themes/shoptimizer-child/template-parts/product/assets/images/arrow_up.png');
  }

  .bb_tab_content {
    order: unset;
    border: none;
    border-bottom: 1px solid #ececec;
    min-height: auto;
    padding: 1rem;
    animation: none;
  }

  .bb_tabs_content {}

  .bb_tab_content h1 {
    font-size: 1.5rem;
  }

  .bb_tab_content h2 {
    font-size: 1.3rem;
  }

  .bb_tab_content h3 {
    font-size: 1.1rem;
  }

  .bb_tab_content table {
    font-size: 14px;
  }

  .bb_tab_content table th,
  .bb_tab_content table td {
    padding: 0.5rem;
  }
  
  .product__selector-buttons {
    grid-template-columns: 1fr 1fr;
    gap: 8px !important;
  }
  
  .variation-group {
    grid-template-columns: 1fr;
    gap: 1em;
  }
  .variation-group-title {
    justify-self: center;
  }
  .variation-group-title img {
    max-height: 60px;
  }

  .variation-group-title h4 {
    font-size: 14px;
    margin-bottom: 8px;
  }
  
  .bb-quantity-selector {
    flex-direction: column;
    gap: 10px;
    padding: 0;
    width: 100%;
    border: none;
    align-items: flex-start;
  }

  .bb-quantity-selector .quantity-controls {
    justify-self: center;
    border: 1px solid #D9D9D9;
    border-radius: 4px;
  }

  .bb-quantity-selector .qty-btn {
    width: 50px;
    height: 50px;
    font-size: 24px;
  }

  .bb-quantity-selector .qty-input {
    width: 50px;
    height: 50px;
    font-size: 18px;
  }
  
  .product__options-tabs-nav {
    gap: 0;
  }

  .product__options-tab {
    padding: 10px 12px;
    font-size: 14px;
  }

  .bb-social-share {
    right: 3em;
  }

  .bb-share-dropdown {
    right: -46px;
    min-width: 180px;
  }
  .woocommerce-product-gallery.woocommerce-product-gallery--with-images {
    overflow: visible !important;
  }
}

/* Loading state для кнопок Add to Cart на deals */
.custom-add-to-cart.loading {
  pointer-events: none;
  opacity: 0.6;
  position: relative;
}

.custom-add-to-cart.loading::after {
  content: '';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: translateY(-50%) rotate(360deg); }
}