/* ============================================================
   Совместимость: визуальный ре-скин реальной WooCommerce-логики
   карточки товара (вариации, корзина, wishlist, характеристики)
   под дизайн верстки. Хуки/JS не трогаем.
   ============================================================ */

.product__info .product-info__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.product__info .product-info__title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 30px;
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--text);
  margin: 0;
}

.product-info__status {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1.5px solid var(--orange);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--orange);
}
.status-badge img {
  width: 14px;
  height: 14px;
}
.product-info__sku {
  font-size: 13px;
  color: var(--text-gray);
}

/* variations table -> compact swatch block */
.product__info .variations {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 18px;
}
.product__info .variations tr {
  display: block;
  margin-bottom: 14px;
}
.product__info .variations th.label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-gray);
  padding-bottom: 8px;
}
.product__info .variations td.value {
  display: block;
}
.product__info .variable-items-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.product__info .variable-item {
  border: 1.5px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s ease;
  min-width: 48px;
  min-height: 48px;
}
.product__info .variable-item .variable-item-contents {
  /* у плагина woo-variation-swatches .variable-item-contents { width:100%; height:100% },
     а .variable-item (li) сам без явной высоты — проценты от auto-родителя схлопываются
     в 0, из-за этого картинка фасовки становилась невидимой. Фиксируем явно. */
  width: auto !important;
  height: auto !important;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product__info .variable-item.selected,
.product__info .variable-item:hover {
  border-color: var(--orange);
}
.product__info .variable-item-image {
  width: 32px !important;
  height: 32px !important;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}
.product__info .variable-item-span-button {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.product__info .reset_variations_alert,
.product__info .woocommerce-variation-description {
  display: none;
}

/* purchase row: price already styled via price-list-separated; style qty + buttons */
.product__info .product-purchase {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
}
.product__info .product-price {
  width: 100%;
}
.product__info .quantity {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: 30px;
  overflow: hidden;
}
.product__info .quantity-btn {
  background: transparent;
  border: none;
  width: 38px;
  height: 40px;
  font-size: 18px;
  color: var(--text);
  cursor: pointer;
}
.product__info .quantity-input {
  width: 44px;
  border: none;
  text-align: center;
  font-size: 15px;
  -moz-appearance: textfield;
}
.product__info .quantity-input::-webkit-outer-spin-button,
.product__info .quantity-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.product__info .btn--cart {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 30px;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  border: 1.5px solid var(--orange);
  color: #fff;
  background: var(--orange);
  cursor: pointer;
}
.product__info .btn--cart:hover {
  background: var(--orange-dark);
  color: #fff;
}
.product__info .btn--cart img {
  /* исходный svg имеет fill="white" (не перекрашивается через css), поэтому
     прячем растровую иконку и рисуем свою через mask-image, которая красится
     через background-color */
  display: none;
}
.product__info .btn--cart {
  position: relative;
  padding-left: 44px;
}
.product__info .btn--cart::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background-color: #fff;
  -webkit-mask-image: url("../../images/add_to_cart.svg");
  mask-image: url("../../images/add_to_cart.svg");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  transition: background-color 0.15s ease;
}
.product__info .btn--cart:hover::before {
  background-color: #fff;
}

.product__order {
  display: inline-flex;
}

/* additional-information tab: attribute table */
.tabs__panel table.woocommerce-product-attributes,
.tabs__panel table.shop_attributes {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}
.tabs__panel table.woocommerce-product-attributes th,
.tabs__panel table.woocommerce-product-attributes td {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 14px;
}
.tabs__panel table.woocommerce-product-attributes th {
  width: 220px;
  color: var(--text-gray);
  font-weight: 600;
}
.tabs__panel table.woocommerce-product-attributes td p {
  margin: 0;
}

.tabs__panel .payment-methods {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.tabs__panel .payment-method {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-gray);
}
.tabs__panel .payment-method img {
  width: 40px;
  height: 40px;
}

@media (max-width: 480px) {
  .product__info .product-purchase {
    flex-direction: column;
    align-items: stretch;
  }
  .product__order {
    width: 100%;
  }
}
