/*СТИЛИ КАСТОМНОЙ СТРАНИЦЫ ТОВАРА  */
.sp-wrapper {
  max-width: 1200px;
  margin: 130px auto 0;
  padding: 30px 20px;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #333;
}

.woocommerce .woocommerce-breadcrumb {
	margin-bottom: 20px !important;
}
/* ============ ВЕРХНЯЯ ЧАСТЬ: 2 колонки ============ */
.sp-top {
  display: flex;
  gap: 40px;
  margin-bottom: 40px;	
}

/* Картинка товара — фиксированная ширина */
.sp-image {
  flex: 0 0 420px;
  max-width: 420px;
	align-self: center !important;
}

.sp-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  background: #f5f5f5;
}

/* Правая колонка — занимает оставшееся пространство */
.sp-info {
  flex: 1;
  min-width: 0; /* Предотвращает выход за flex-контейнер */
}

/* ============ БЕЙДЖ НОВИНКА ============ */
.sp-badge-new {
  display: inline-block;
  background: #346e9b;
  color: #fff;
  padding: 2px 16px 4px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}

/* ============ НАЗВАНИЕ ТОВАРА ============ */
.sp-title {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 12px 0;
  line-height: 1.3;
}

/* ============ СЕРДЕЧКО YITH WISHLIST ============ */
/* Переопределяем стили плагина YITH, чтобы сердечко выглядело как на макете */
.sp-wishlist {
  margin-bottom: 16px;
}

/* Убираем стандартные стили ссылки YITH */
.sp-wishlist .yith-wcwl-add-to-wishlist {
  margin: 0 !important;
}

.sp-wishlist .yith-wcwl-add-to-wishlist a,
.sp-wishlist .yith-wcwl-add-to-wishlist span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  text-decoration: none !important;
  font-size: 20px;
  background: #fff;
  transition: all 0.3s ease;
}
.yith-wcwl-add-to-wishlist-button__label {
  display: none;
}
/* Когда товар добавлен в вишлист — сердечко оранжевое */
.sp-wishlist .yith-wcwl-add-to-wishlist .yith-wcwl-wishlistexistsbrowse a,
.sp-wishlist .yith-wcwl-add-to-wishlist .yith-wcwl-wishlistaddedbrowse a,
.sp-wishlist .yith-wcwl-add-to-wishlist .delete_item {
  color: #f59f0a !important;
  border-color: #f59f0a !important;
}

/* ============ БЛОК АТРИБУТОВ 2×2 ============ */
.sp-attributes {
  background: #f8f9fa;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 20px;
}

.sp-attr-row {
  display: flex;
  gap: 20px;
}

.sp-attr-row + .sp-attr-row {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e8e8e8;
}

.sp-attr-item {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.sp-attr-label {
  font-size: 12px;
  color: #888;
  margin-bottom: 2px;
  text-transform: none;
}

.sp-attr-value {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a2e;
}

/* ============ БЛОК ВАРИАЦИЙ (ВЫБОР УПАКОВКИ) ============ */

.sp-variations-block {
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding-top: 20px;
  margin-bottom: 16px;
  overflow: hidden;
}

.sp-variations-title {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 14px;
}

.sp-variations-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 0;
}
.sp-variations-table thead tr {
  border: 0 !important;
  background-color: transparent;
}
.sp-variations-table thead td {
  border-bottom: 1px solid #f0f0f0;
  background-color: transparent;
}
.sp-variations-table thead th {
  font-size: 12px;
  color: #888;
  font-weight: 500;
  text-align: left;
  padding: 0 8px 10px;
  /* border-bottom: 1px solid #eee; */
  border: 0;
}

.sp-variations-table thead th:nth-child(2),
.sp-variations-table thead th:nth-child(3) {
  text-align: center;
}
table tr {
  border-bottom: none;
}
.sp-var-row td {
  padding: 12px 8px;
  border-right: none; /* Удаляет вертикальные border */
  border-left: none;
  background-color: transparent; /* Убирает заливку */
  vertical-align: middle;
}
.sp-var-row th {
  background-color: transparent;
}
.sp-var-row:last-child td {
  border-bottom: none;
}

/* Название упаковки */
.sp-var-name {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a2e;
}

.sp-per-liter {
  font-size: 12px;
  font-weight: 400;
  color: #999;
  margin-left: 4px;
}

/* Цена */
.sp-var-price {
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: #1a1a2e;
}

/* Счётчик количества */
.sp-var-qty {
  text-align: center;
  white-space: nowrap;
}

.sp-qty-btn {
  width: 32px !important;
  height: 32px !important;
  border: none;
  border-radius: 6px !important;
  padding: 0 !important;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  line-height: 1;
}

.sp-qty-minus {
  color: #666 !important;
}

.sp-qty-minus,
.sp-qty-plus {
  border: none !important;
}
.sp-qty-minus:hover {
  background-color: transparent !important;
}
.sp-qty-plus {
  background: #f59f0a !important;
  color: #fff !important;
}

/* :hover {
  background: #e08e00;
} */

.sp-qty-input {
  width: 48px !important;
  height: 32px;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  margin: 0 6px;
  -moz-appearance: textfield;
  /* Убираем стрелки у input[type=number] */
}

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

/* Строка вариации, которой нет в наличии */
.sp-var-row.sp-out-of-stock {
  opacity: 0.5;
}

.sp-no-stock-text {
  font-size: 13px;
  color: #999;
}

/* Статус наличия */
.sp-stock-status {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 500;
}

.sp-in-stock {
  color: #2ecc71;
}

.sp-out-stock {
  color: #e74c3c;
}

/* ============ КНОПКА «В КОРЗИНУ» ============ */
.sp-add-to-cart-btn {
  display: block;
  width: 100%;
  margin-top: 16px;
/* 	margin-bottom: 20px !important; */
  padding: 14px 0;
  background: #f59f0a !important;
  color: #fff !important;
  font-size: 16px;
  font-weight: 700;
  border: none !important;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s;
}

.sp-add-to-cart-btn:hover {
  background: #e08e00 !important;
}

/* Состояние загрузки */
.sp-add-to-cart-btn.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* ============ БЛОК АКЦИЯ ============ */
.sp-promo-block {
  border: 2px solid #f59f0a;
  border-radius: 10px;
  padding: 16px 20px;
  background: #fff9ee;
}

.sp-promo-title {
  font-size: 16px;
  font-weight: 700;
  color: #f59f0a;
  margin-bottom: 6px;
}

.sp-promo-text {
  font-size: 14px;
  color: #555;
  line-height: 1.5;
}

/* ============ СЕКЦИИ: ХАРАКТЕРИСТИКИ, ОПИСАНИЕ ============ */
.sp-section {
  margin-bottom: 36px;
}

.sp-section-title {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 16px;
  padding-bottom: 10px;
}

/* Таблица характеристик */
.sp-chars-table {
  width: 100%;
  border-collapse: collapse;
}
.sp-chars-table td {
  background-color: transparent !important;
  border: none !important;
}
.sp-chars-table tr {
  border-bottom: 1px solid #f0f0f0;
  background-color: transparent !important;
}

.sp-chars-table tr:last-child {
  border-bottom: none;
}

.sp-char-label {
  padding: 14px 20px 14px 0;
  font-size: 14px;
  color: #888;
  width: 140px;
  vertical-align: top;
}

.sp-char-value {
  padding: 14px 0;
  font-size: 15px;
  font-weight: 600;
  color: #1a1a2e;
}

.sp-char-value a {
  color: #f59f0a;
  text-decoration: none;
}

.sp-char-value a:hover {
  text-decoration: underline;
}

/* Описание */
.sp-description {
  font-size: 15px;
  line-height: 1.7;
  color: #444;
}

.sp-description h3,
.sp-description h4,
.sp-description strong {
  color: #1a1a2e;
}

@media (max-width: 768px) {
  .sp-top {
    flex-direction: column;
    gap: 20px;
  }

  .sp-image {
    flex: none;
    max-width: 100%;
  }

  .sp-attr-row {
    flex-direction: column;
    gap: 10px;
  }

  .sp-attr-row + .sp-attr-row {
    margin-top: 10px;
    padding-top: 10px;
  }

  .sp-title {
    font-size: 22px;
  }
}
.sp-promo-block {
  margin-top: 20px;
  background-color: #f1f5f9;
  border: 1px solid #1f6193;
}
.sp-promo-title {
  color: #1f6193;
}