.single_add_to_cart_button {
  position: relative;
  transition: all 0.3s ease;
}
.price_card {
  width: 100%;
}
.single_add_to_cart_button.loading {
  opacity: 0.7;
  padding-right: 2.618em !important;
}

.single_add_to_cart_button.loading::after {
  font-family: 'FontAwesome';
  content: '\f110';
  animation: fa-spin 2s infinite linear;
  position: absolute;
  right: 1em;
  top: 23%;
  transform: translateY(-50%);
}

.single_add_to_cart_button.added {
  background-color: #4caf50 !important;
  border-color: #4caf50 !important;
}

.single_add_to_cart_button.added i {
  animation: pulse 1s ease;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes fa-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(359deg);
  }
}

.hidden-attribute {
  display: none;
}

section.product-main-main {
  background: #ffffff;
}
.product_main {
  padding: 25px 0;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
}

.product_image {
  width: 47%;
  position: relative;
}

.main_image {
  height: 520px;
  border: 1px solid #e9e9e9;
  padding: 40px;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  background: #fff;
}

.main_image a {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.main_image a img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: all 0.3s ease;
}

/* Стили для стрелок галереи */
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #e9e9e9;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  opacity: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.main_image:hover .gallery-arrow {
  opacity: 1;
}

.gallery-arrow:hover {
  background: #fff;
  border-color: #e65100;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-50%) scale(1.05);
}

.gallery-arrow.left {
  left: 15px;
}

.gallery-arrow.right {
  right: 15px;
}

.gallery-arrow svg {
  transition: transform 0.3s ease;
  width: 18px;
  height: 18px;
}

.gallery-arrow:hover svg {
  transform: scale(1.1);
}

.gallery_image {
  margin-top: 20px;
  position: relative;
}

.gallery-thumbs-wrapper {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 10px 0;
  scrollbar-width: thin;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.gallery-thumbs-wrapper::-webkit-scrollbar {
  height: 4px;
}

.gallery-thumbs-wrapper::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 2px;
}

.gallery-thumbs-wrapper::-webkit-scrollbar-track {
  background-color: #f1f1f1;
  border-radius: 2px;
}

.gimage {
  flex: 0 0 auto;
  width: 110px;
  height: 110px;
  border: 2px solid #e9e9e9;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  background: #fff;
}

.gimage:hover {
  border-color: #e65100;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.gimage.active {
  border-color: #e65100;
  box-shadow: 0 0 0 2px rgba(230, 81, 0, 0.2);
  transform: translateY(-2px);
}
.gimage a {
  pointer-events: none;
}

.gimage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gimage:hover img {
  transform: scale(1.05);
}

/* Кнопки навигации для миниатюр */
.gallery-nav-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
}

.gallery-nav-btn {
  background: #f5f5f5;
  border: 1px solid #e9e9e9;
  border-radius: 6px;
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  color: #666;
}

.gallery-nav-btn:hover {
  background: #e65100;
  color: white;
  border-color: #e65100;
}

.gallery-nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Адаптивность для галереи */
@media (max-width: 768px) {
  .main_image {
    height: 400px;
    padding: 20px;
  }

  .gallery-arrow {
    width: 40px;
    height: 40px;
  }

  .gallery-arrow.left {
    left: 10px;
  }

  .gallery-arrow.right {
    right: 10px;
  }

  .gimage {
    width: 80px;
    height: 80px;
  }

  .gallery-thumbs-wrapper {
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .main_image {
    height: 350px;
    padding: 15px;
  }

  .gallery-arrow {
    width: 36px;
    height: 36px;
  }

  .gimage {
    width: 70px;
    height: 70px;
  }
}

.product_information {
  width: 47%;
}

.product_top_info {
  display: flex;
  justify-content: space-between;
}

.product_sku {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-regular);
  color: var(--text-light);
  line-height: 18px;
}

.product_share {
  display: flex;
  align-items: center;
  column-gap: 10px;
}

.product_share h5 {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-regular);
  color: var(--black);
  line-height: 24px;
}

.product_share a {
  color: var(--text-light);
  font-size: var(--font-size-sm);
}

.product_name {
  margin: 15px 0;
  font-size: var(--font-size-xxl);
  font-weight: var(--font-weight-medium);
  color: var(--black);
}

.product_main_content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  border-bottom: 1px solid var(--light-gray);
  padding-bottom: 12px;
}

.product_sidebar_attributes {
  width: 42%;
}

.product_sidebar_attributes h4 {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-regular);
  color: var(--text-light);
  line-height: 24px;
  margin-bottom: 5px;
}

.attribute_name {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--black);
  line-height: 24px;
}

.attribute_value {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-regular);
  color: var(--text-light);
  line-height: 24px;
}

.show-more-button {
  margin-top: 30px;
}

.show-more-button button {
  text-decoration: underline;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-regular);
  color: var(--primary-color);
}

.product_calc {
  width: 57%;
  border-radius: 10px;
  border: 1px solid var(--light-gray);
  padding: 10px;
}

.product_calc form.cart {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  flex-wrap: wrap;
}

.calc_label {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-regular);
  color: var(--text-light);
  line-height: 24px;
}

.calc_label b {
  color: var(--black);
}

.qib-button-wrapper {
  border: 1px solid var(--light-gray);
  border-radius: 6px;
}

.qib-button-wrapper button.qib-button {
  background: var(--white) !important;
  border: none !important;
  border-radius: 6px !important;
}

.qib-button-wrapper .quantity input.input-text.qty.text {
  width: 100% !important;
  border: none !important;
  background: var(--white) !important;
  padding: 0 10px !important;
  font-size: var(--font-size-sm) !important;
  font-weight: var(--font-weight-regular) !important;
  line-height: 24px !important;
  color: var(--text-light) !important;
}

.qty-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 3px 0;
  border-radius: 6px;
  border: 1px solid var(--light-gray);
}

.product_main_content .xvo-qty {
  display: none !important;
}

.xvo-qty {
  order: 0 !important;
}

.minus-btn,
.xvo-minus-btn,
.plus-btn,
.xvo-plus-btn {
  padding: 6px 12px 8px;
  cursor: pointer;
  font-size: 20px;
  line-height: 20px;
  width: 41px;
}

.qty-control input {
  width: 100%;
  margin-left: 16px;
  text-align: center;
  border: none;
  background: var(--white);
  padding: 0 10px;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-regular);
  line-height: 24px;
  color: var(--text-light);
}

body .qib-button-wrapper {
  width: 100% !important;
  justify-content: space-between !important;
}

.quantity.wqpmb_quantity {
  width: 100% !important;
}

.price_card {
  margin-top: 5px;
}

.price_card article {
  border: 1px solid var(--light-gray);
  border-radius: 6px;
  padding: 8px 16px;
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  line-height: 24px;
  color: var(--black);
  display: flex;
  align-items: center;
  column-gap: 5px;
}

.price_card article del {
  order: 2;
  margin-left: auto;
  color: var(--text-light);
  font-size: var(--font-size-sm);
}

.price_card article ins {
  order: 0;
  text-decoration: none;
}

.price_card p {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-regular);
  color: var(--text-light);
  line-height: 24px;
}

.price_total h4 {
  border: 1px solid var(--light-gray);
  border-radius: 6px;
  padding: 8px 16px;
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  line-height: 24px;
  color: var(--black);
  display: flex;
  align-items: center;
  column-gap: 5px;
}

.price_total {
  width: 100%;
  margin-top: 5px;
}

.price_total p {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-regular);
  color: var(--text-light);
  line-height: 24px;
}

.single_add_to_cart_button {
  margin-top: 15px;
  background: var(--primary-color);
  color: var(--white);
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-medium);
  line-height: 24px;
  padding: 8px 28px;
  border-radius: 6px;
  /* transition: ; */
}

.product_info {
  margin-top: 15px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--light-gray);
}

.product_info li {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-regular);
  line-height: 24px;
  color: var(--text-light);
}

.product_info li b {
  color: var(--black);
  font-weight: var(--font-weight-medium);
}

.product_alert {
  margin-top: 15px;
}
.product_alert h5 {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  line-height: 24px;
  color: var(--secondary-color);
}

.price_flex {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.price_flex .price_card {
  order: 2;
}

.packages-qty {
  order: 1 !important;
}

.tab-content {
  display: none;
  overflow: hidden;
}

.description_tabs {
  border-bottom: 1px solid #e9e9e9;
  margin-bottom: 35px;
}
.description_tabs .container {
  position: relative;
  display: flex;
  align-items: center;
  column-gap: 30px;
}

.description_tabs button {
  position: relative;
  padding: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: var(--font-size-md);
  color: var(--text-light);
  font-weight: var(--font-weight-regular);
}

/* Индикатор для нижней линии */
.indicator {
  position: absolute;
  bottom: -2px;
  left: 0;
  height: 3px;
  background: var(--primary-color);
  transition: left 0.3s ease, width 0.3s ease;
  z-index: 1;
}

/* Активный таб */
.description_tabs button.active {
  color: var(--primary-color);
}

.tab-content h3 {
  font-size: 16px;
  font-weight: 600;
  color: #222222;
  margin-bottom: 5px;
}
.tab-content p {
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 30px;
  font-weight: 400;
  color: #555555;
  word-break: keep-all;
  width: 98%;
}

.product_recommend h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #222222;
}

.products {
  display: flex;
  flex-direction: column;
}
.recommend_product {
  border: 1px solid #e9e9e9;
  padding: 20px;

  transition: 0.2s ease-in-out;
}
.recommend_product:hover {
  border: 1px solid #e65100;
}

.recommend_product a {
  display: flex;
  align-items: center;
}

.recommend_product a img {
  width: 40%;
  height: 110px;
  object-fit: cover;
}

.recommend_text {
  width: max-content;
  padding-left: 10px;
}
.recommend_text h3 {
  font-size: 14px;
  font-weight: 500;
  color: #222222;
  margin-bottom: 5px;
}
.recommend_text span {
  font-size: 14px;
  font-weight: 600;
  color: #1d2029;
}

.description_main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.tabs {
  width: 63%;
}

.description_ads {
  width: 27%;
}

/* quick menu */
.xoo-qv-container {
  max-width: 425px !important;
  max-height: max-content !important;
  padding: 25px !important;
}

.xoo-qv-prev,
.xoo-qv-nxt {
  display: none !important;
}

.xoo-qv-images {
  display: none !important;
}

.xoo-qv-summary {
  width: 100% !important;
}

.xoo-qv-summary p.price {
  display: none !important;
}

.xoo-qv-summary .wc-compare-wrap {
  display: none !important;
}

/* .xoo-qv-summary .qib-button-wrapper {
	display: none !important;
} */

.xoo-qv-summary .wc-favorites-wrap {
  display: none !important;
}

.xoo-qv-summary .product_meta {
  display: none !important;
}

.xoo-qv-summary .xoo-qv-plink {
  display: none !important;
}
@media (max-width: 992px) {
  .product_name {
    font-size: var(--font-size-xl);
  }

  .product_main_content {
    flex-direction: column-reverse;
    row-gap: 15px;
  }

  .product_sidebar_attributes {
    width: 100%;
  }

  .product_calc {
    width: 100%;
  }

  .tabs {
    width: 50%;
  }
  .description_ads {
    width: 44%;
  }

  .main_image {
    height: auto;
  }
}

@media (max-width: 768px) {
  .product_main {
    flex-direction: column;
  }

  .product_image {
    width: 100%;
  }

  .product_information {
    width: 100%;
  }

  .product_calc {
    width: 100%;
  }

  .product_sidebar_attributes {
    width: 100%;
  }

  .main_image {
    height: 500px;
    padding: 20px;
  }

  .gimage {
    width: 90px;
    height: 90px;
  }

  .gimage img {
    height: 100%;
  }

  .description_main {
    flex-direction: column;
  }

  .tabs {
    width: 100%;
  }

  .description_ads {
    width: 100%;
  }

  .recommend_text {
    width: 100%;
  }

  .recommend_product a img {
    width: 150px;
  }
}
