/* === SINGLE PRODUCT – ОСНОВА + АՐՄՅԱՆՍԿИЙ ՇՐԻՖՏ === */

/* Армянский шрифт только для текста */
.tt-single-product,
.tt-single-product p,
.tt-single-product a,
.tt-single-product span,
.tt-single-product h1,
.tt-single-product h2,
.tt-single-product h3,
.tt-single-product h4,
.tt-single-product h5,
.tt-single-product h6,
.tt-single-product button,
.tt-single-product input,
.tt-single-product select,
.tt-single-product textarea,
.tt-single-product .price,
.tt-single-product .product_meta,
.tt-image-lightbox,
.tt-image-lightbox button,
.tt-image-lightbox span {
  font-family: "Noto Sans Armenian", system-ui, -apple-system, "Segoe UI",
    Roboto, Arial, sans-serif;
}

.tt-single-product *,
.tt-image-lightbox * {
  box-sizing: border-box;
}

.tt-single-product {
  padding: 40px 0;
}

.tt-single-product .tt-single-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: flex-start;
}

/* Левая колонка (галерея) */
.tt-single-product .tt-single-gallery {
  background: #ffffff;
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.06);
}

.tt-single-product .tt-gallery-inner {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 16px;
}

/* Колонка миниатюр */
.tt-single-product .tt-thumb-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.tt-single-product .tt-thumb-track {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 320px;
  overflow: hidden;
}

.tt-single-product .tt-thumb {
  border: 2px solid transparent;
  border-radius: 16px;
  padding: 0;
  background: transparent;
  cursor: pointer;
  line-height: 0;
  transition: border-color 0.18s ease, box-shadow 0.18s ease,
    transform 0.12s ease;
}

.tt-single-product .tt-thumb img {
  display: block;
  width: 76px;
  height: 76px;
  border-radius: 14px;
  object-fit: cover;
}

.tt-single-product .tt-thumb.is-active {
  border-color: #1e56a0;
  box-shadow: 0 8px 20px rgba(30, 86, 160, 0.35);
  transform: translateY(-1px);
}

.tt-single-product .tt-thumb-nav {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: none;
  background: #eef2ff;
  color: #111827;
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.tt-single-product .tt-thumb-nav:hover {
  background: #dbe2ff;
  box-shadow: 0 8px 18px rgba(30, 86, 160, 0.4);
  transform: translateY(-1px);
}

.tt-single-product .tt-thumb-nav[disabled] {
  opacity: 0.35;
  pointer-events: none;
}

/* Большое изображение */
.tt-single-product .tt-main-image-wrap {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: #f9fafb;
}

.tt-single-product .tt-main-image-btn {
  border: none;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: zoom-in;
  display: block;
  width: 100%;
}

.tt-single-product .tt-main-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22px;
  object-fit: cover;
}

/* WooCommerce SALE badge (если есть) */
.tt-single-product .onsale {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 5;
  background: #fbbf24;
  color: #111827;
  font-weight: 700;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(250, 204, 21, 0.5);
}

/* ПРАВАЯ КОЛОНКА (summary Woo) */
.tt-single-product .tt-single-summary-inner {
  background: #ffffff;
  border-radius: 24px;
  padding: 24px 28px 26px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.05);
}

/* Наш главный заголовок */
.tt-single-product .tt-main-product-title {
  font-size: 26px;
  line-height: 1.3;
  font-weight: 800;
  margin: 0 0 12px 0;
  color: #111827;
}

/* Если тема всё-таки выведет стандартный title через hook – прячем его */
.tt-single-product .tt-single-summary-inner .product_title {
  display: none !important;
}

/* Цена, описание, мета – армянский стиль */
.tt-single-product .tt-single-summary-inner .price {
  font-size: 24px;
  color: #047857;
  font-weight: 800;
  margin-bottom: 18px;
}

.tt-single-product
  .tt-single-summary-inner
  .woocommerce-product-details__short-description {
  font-size: 14px;
  color: #4b5563;
  margin-bottom: 18px;
}

/* Кнопка "Գնել" и вариации */
.tt-single-product .tt-single-summary-inner form.cart {
  margin-top: 6px;
}

.tt-single-product .tt-single-summary-inner .button.single_add_to_cart_button {
  border-radius: 999px;
  padding: 11px 24px;
  font-weight: 700;
  font-size: 15px;
}

/* Meta (SKU, категории) */
.tt-single-product .tt-single-summary-inner .product_meta {
  margin-top: 18px;
  font-size: 13px;
  color: #6b7280;
}

/* Низ страницы (таблицы, похожие товары и т.п.) */
.tt-single-product .tt-single-extra {
  margin-top: 40px;
}

/* === LIGHTBOX === */
.tt-image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
}

.tt-image-lightbox.is-open {
  display: flex;
}

.tt-image-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
}

.tt-image-lightbox__dialog {
  position: relative;
  z-index: 2;
  max-width: min(960px, 96vw);
  max-height: 90vh;
  background: #111827;
  border-radius: 24px;
  padding: 18px 52px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tt-lightbox__inner {
  max-width: 100%;
  max-height: 100%;
}

.tt-lightbox__image {
  display: block;
  max-width: 100%;
  max-height: 78vh;
  border-radius: 18px;
  object-fit: contain;
}

/* Навигация и закрытие */
.tt-lightbox__close,
.tt-lightbox__nav {
  position: absolute;
  border: none;
  border-radius: 999px;
  width: 34px;
  height: 34px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.85);
  color: #f9fafb;
  font-size: 20px;
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.tt-lightbox__close {
  top: 10px;
  right: 10px;
}

.tt-lightbox__prev {
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
}

.tt-lightbox__next {
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}

.tt-lightbox__close:hover,
.tt-lightbox__nav:hover {
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 0 0 0 1px rgba(249, 250, 251, 0.4);
}

/* === АДАПТИВ === */

@media (max-width: 1024px) {
  .tt-single-product .tt-single-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
}

@media (max-width: 768px) {
  .tt-single-product {
    padding: 24px 0 32px;
  }

  .tt-single-product .tt-single-gallery {
    padding: 14px;
    border-radius: 18px;
  }

  /* На мобиле делаем thumbs снизу горизонтально */
  .tt-single-product .tt-gallery-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .tt-single-product .tt-thumb-column {
    flex-direction: column-reverse;
  }

  .tt-single-product .tt-thumb-track {
    flex-direction: row;
    max-height: none;
    overflow-x: auto;
    overflow-y: visible;
    padding-bottom: 4px;
  }

  .tt-single-product .tt-thumb {
    flex: 0 0 auto;
  }

  .tt-single-product .tt-thumb img {
    width: 68px;
    height: 68px;
  }

  .tt-single-product .tt-thumb-nav {
    display: none; /* на мобиле скроллим пальцем */
  }

  .tt-single-product .tt-single-summary-inner {
    padding: 18px 16px 20px;
    border-radius: 18px;
  }

  .tt-single-product .tt-main-product-title {
    font-size: 22px;
  }

  .tt-single-product .tt-single-summary-inner .price {
    font-size: 20px;
  }

  .tt-image-lightbox__dialog {
    padding: 12px 46px;
    border-radius: 18px;
  }
}

@media (max-width: 480px) {
  .tt-image-lightbox__dialog {
    padding: 10px 40px;
  }

  .tt-lightbox__prev,
  .tt-lightbox__next {
    width: 30px;
    height: 30px;
  }
}
