* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #f9f9f9;
  color: #333;
}

.page-wrapper {

  margin: 0 auto;
  padding: 20px;
}

.product-card {

  width: 100%;
  background: transparent;
}

/* ══════════════════════════════════════ */
/* ОСНОВНОЙ БЛОК - ГАЛЕРЕЯ + ИНФОРМАЦИЯ */
/* ══════════════════════════════════════ */
.product-page__image-main {
  border: unset;
}
.product-main {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
}

/* ──────────────── ГАЛЕРЕЯ ──────────────── */

.product-gallery-container {
  position: relative;
  width: 100%;
  min-height: 515px;
  height: auto;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.content-bottom {
  padding-top: 20px;
}
.gallery-border-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.gallery-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.gallery-content .product-page__image-main {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-content img,
.gallery-content .product-page__image-main-carousel img {
  max-width: 100%;
  max-height: 100%;
  height: auto;
  width: auto;
  object-fit: contain;
  cursor: default;
  user-select: none;
}

.gallery-content img:hover,
.gallery-content .product-page__image-main-carousel img:hover {
  transform: none !important;
}

.owl-carousel .owl-stage {
  touch-action: manipulation;
  height: 100%;
}

/* Скрытие стандартных стрелок owl-carousel */
.product-page__image-main-carousel .owl-nav,
.product-page__image-main-carousel .owl-prev,
.product-page__image-main-carousel .owl-next {
  display: none !important;
}

.product-page__image-main-carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.product-page__image-addit .owl-nav,
.product-page__image-addit .owl-prev,
.product-page__image-addit .owl-next {
  display: none !important;
}

.product-gallery {
  position: relative;
  flex: 1;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: #fff;
  min-height: 400px;
}

.product-gallery img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

/* Кнопки действий в галерее */
.gallery-actions {
  position: absolute;
  top: 15px;
  right: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #777;
  font-size: 20px;
  transition: color 0.2s;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-btn:hover {
  color: #00a8cc;
}

/* Кнопки навигации в выемках */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 25px;
  height: 60px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-btn.prev { left: 2px; }
.nav-btn.next { right: 2px; }

/* Иконки стрелок */
.arrow {
  width: 9px;
  height: 9px;
  border-top: 2px solid #a0a0a0;
  border-right: 2px solid #a0a0a0;
  display: inline-block;
  transition: all 0.2s;
}

.arrow.left {
  transform: rotate(-135deg);
}

.arrow.right {
  transform: rotate(45deg);
  border-color: #00a8cc;
}

.nav-btn:hover .arrow.left {
  border-color: #00a8cc;
}

.nav-btn:hover .arrow.right {
  border-color: #0089a3;
}

/* Старые стрелки (для совместимости) */
.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 48px;
  background: #fff;
  border: 1px solid #e5e5e5;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #777;
  font-size: 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: all 0.2s;
}

.nav-arrow:hover {
  border-color: #00a8cc;
  color: #00a8cc;
}

.nav-arrow.prev {
  left: -16px;
  border-radius: 0 24px 24px 0;
  border-left: none;
}

.nav-arrow.next {
  right: -16px;
  border-radius: 24px 0 0 24px;
  border-right: none;
}

/* ──────────────── ИНФОРМАЦИЯ О ТОВАРЕ ──────────────── */

.product-info {
  flex: 1.5;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.product-title {
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.3;
  margin-bottom: 10px;
  color: #333;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #888;
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
  margin-bottom: 20px;
}

.stock-status {
  color: #00a8cc;
  font-weight: 600;
  text-transform: uppercase;
}

/* ──────────────── ДЕТАЛЬ ТОВАРА (Параметры + Купить) ──────────────── */

.product-details {
  display: flex;
  gap: 20px;
}

.options-col {
  flex: 1;
  border-right: 1px solid #eee;
  padding-right: 20px;
}

div#tab-specification > div > div {
  /* background-color: red; */
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  min-width: 300px;
  max-width: 500px;
}

div#tab-specification > div > div {
  margin-bottom: 20px;
}


.buy-col {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.section-subtitle {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 15px;
}

.option-group {
  margin-bottom: 5px;
}

/* Скрытие опций после 4-й */
.option-group.collapsible.collapsed {
  display: none !important;
}

.expand-btn {
  color: #00a8cc;
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
  font-weight: 600;
  display: inline-block;
  margin-top: 8px;
}

.option-label {
  font-size: 13px;
  color: #777;
  margin-bottom: 6px;
  display: block;
}

/* Custom Select */
.custom-select {
  position: relative;
  display: block;
}

.custom-select-trigger {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px 16px;
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  color: #333;
  transition: all 0.2s;
  user-select: none;
}

.custom-select-trigger:hover {
  border-color: #00a8cc;
}

.custom-select-trigger.active {
  border-color: #00a8cc;
  box-shadow: 0 0 0 3px rgba(0, 168, 204, 0.1);
}

.color-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #ddd;
  flex-shrink: 0;
}

.select-text {
  flex: 1;
  font-weight: 500;
}

.select-arrow {
  color: #999;
  font-size: 12px;
  transition: transform 0.2s;
}

.custom-select-trigger.active .select-arrow {
  transform: rotate(180deg);
}

.custom-select-options {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #dcdcdc;
  border-top: none;
  border-radius: 0 0 8px 8px;
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-top: -1px;
}

.custom-select-options.show {
  display: block;
}

.custom-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
  transition: background 0.2s;
}

.custom-option:last-child {
  border-bottom: none;
}

.custom-option:hover {
  background: #f9f9f9;
}

.custom-option.selected {
  background: #f0f7ff;
  color: #00a8cc;
  font-weight: 600;
}

.option-color-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #ddd;
  flex-shrink: 0;
}

.option-text {
  flex: 1;
}

/* Hidden select для форм */
.select-input {
  width: 100%;
  padding: 10px 16px;
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  outline: none;
  background: #fff;
  font-size: 14px;
  color: #333;
  transition: border-color 0.2s;
  cursor: pointer;
}

.select-input:hover {
  border-color: #00a8cc;
}

.select-input:focus {
  border-color: #00a8cc;
  box-shadow: 0 0 0 3px rgba(0, 168, 204, 0.1);
}

.color-select-hidden {
  display: none;
}

/* Теги выбора (Кнопки) */
.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  padding: 0px 14px;
  border: 1px solid #dcdcdc;
  border-radius: 6px;
  font-size: 13px;
  background: #fff;
  cursor: pointer;
  color: #333;
  transition: all 0.2s;
}

.tag:hover {
  border-color: #00a8cc;
  color: #00a8cc;
}

.tag.active {
  background: #00a8cc;
  color: #fff;
  border-color: #00a8cc;
}

.more-link {
  color: #00a8cc;
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
  display: inline-block;
  margin-top: 5px;
  font-weight: 600;
}

.more-link:hover {
  opacity: 0.8;
}

/* ──────────────── ЦЕНА И ПОКУПКА ──────────────── */

.price-main {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #333;
}

.cart-controls {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.quantity-counter {
  display: flex;
  border: 1px solid #dcdcdc;
  border-radius: 6px;
  overflow: hidden;
  background: #f5f5f5;
  flex-shrink: 0;
}

.quantity-btn {
  width: 32px;
  height: 38px;
  border: none;
  background: #eee;
  cursor: pointer;
  font-size: 16px;
  color: #555;
  transition: all 0.2s;
}

.quantity-btn:hover {
  background: #ddd;
}

.quantity-btn.btn-plus {
  background: #00a8cc;
  color: #fff;
}

.quantity-btn.btn-plus:hover {
  background: #0089a3;
}

.quantity-input {
  width: 40px;
  border: none;
  text-align: center;
  font-size: 14px;
  background: #fff;
  outline: none;
  font-weight: 600;
}

.btn-add-to-cart {
  flex: 1;
  min-width: 140px;
  background: #00a8cc;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
  padding: 9px 14px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-add-to-cart:hover {
  background: #0089a3;
}

.btn-add-to-cart:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* ──────────────── ТАБЛИЦА ОПТОВЫХ ЦЕН ──────────────── */
main {
  background-color: #ffffff;
}
.opt-info {
  padding-top: 15px;
}

.opt-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #333;
  margin-bottom: 8px;
  line-height: 1.2;
}

.opt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.opt-table tr:nth-child(odd) {
  background: #f9f9f9;
}

.opt-table tr:nth-child(even) {
  background: #fff;
}

.opt-table td {
  padding: 6px 8px;
  color: #555;
  border-bottom: 1px solid #eee;
}

.opt-table tr:last-child td {
  border-bottom: none;
}

.opt-table td:last-child {
  text-align: right;
  font-weight: 600;
  color: #333;
}

/* ══════════════════════════════════════ */
/* ТАБЫ (ВЛАДКИ) */
/* ══════════════════════════════════════ */

.tabs-container {
  display: flex;
  border: 1px solid #e5e5e5;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  background: #fff;
  margin-top: 0;
}

.tab-btn {
  flex: 1;
  padding: 15px 20px;
  border: none;
  background: transparent;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #333;
  transition: all 0.2s;
  border-bottom: 3px solid transparent;
}

.tab-btn:hover {
  background: #f5f5f5;
}

.tab-btn.active {
  background: #00a8cc;
  color: #fff;
  border-bottom-color: #00a8cc;
}

.badge {
  background: transparent;
  color: inherit;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.tab-btn.active .badge {
  background: rgba(255,255,255,0.3);
  color: #fff;
}

/* ──────────────── КОНТЕНТ ТАБОВ ──────────────── */

.tabs-content {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-top: none;
  border-radius: 0 0 8px 8px;
  padding: 25px;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.tab-pane h3 {
  font-size: 16px;
  margin-bottom: 12px;
  color: #333;
  font-weight: 700;
}

.tab-pane p {
  font-size: 14px;
  line-height: 1.6;
  color: #666;
  margin-bottom: 12px;
}

.tab-pane p:last-child {
  margin-bottom: 0;
}

.faq-item {
  margin-bottom: 15px;
  padding-bottom: 12px;
  border-bottom: 1px dashed #eee;
}

.faq-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.faq-item strong {
  display: block;
  font-size: 14px;
  color: #333;
  margin-bottom: 4px;
  font-weight: 700;
}

.faq-item p {
  font-size: 13px;
  color: #666;
  margin-bottom: 0;
}

/* ══════════════════════════════════════ */
/* ХЛЕБНЫЕ КРОШКИ */
/* ══════════════════════════════════════ */

.breadcrumb-h1 {
  margin-bottom: 25px;
}

.breadcrumb-h1 h1 {
  font-size: 24px;
  font-weight: 700;
  color: #222;
  margin-top: 10px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  font-size: 12px;
  margin-bottom: 12px;
  list-style: none;
}

.breadcrumb li {
  display: inline;
}



.breadcrumb a {
  color: #00a8cc;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}
.owl-carousel.owl-drag .owl-item {
  height: 100%;
  margin: auto;
  display: flex;
}
.owl-carousel .owl-stage-outer {
  overflow: hidden;
  height: 100%;
}

/* ══════════════════════════════════════ */
/* ДОПОЛНИТЕЛЬНЫЕ СТИЛИ */
/* ══════════════════════════════════════ */

.form-control {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #dcdcdc;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.form-control:focus {
  border-color: #00a8cc;
}

textarea.form-control {
  resize: vertical;
  min-height: 80px;
}

.hidden {
  display: none !important;
}

.quantity-btn {

  height: 100% !important;
}

.product-gallery-container > svg {
  display:none;
}
.product-gallery-container {

  border: solid 1px #e5e5e5;
  border-radius: 12px;
}


/* ══════════════════════════════════════ */
/* АДАПТИВНОСТЬ */
/* ══════════════════════════════════════ */

@media (max-width: 991px) {
  .product-main {
    flex-direction: column;
  }

  .product-gallery {
    min-height: 300px;
  }

  .product-details {
    flex-direction: column;
  }

  .options-col {
    border-right: none;
    border-bottom: 1px solid #eee;
    padding-right: 0;
    padding-bottom: 20px;
  }

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

  .tabs-content {
    padding: 16px;
  }
  .product-gallery-container {
    min-height: 300px;
    max-width: 370px;
    margin: auto;
  }
}

@media (max-width: 600px) {
  .product-title {
    font-size: 16px;
  }

  .price-main {
    font-size: 24px;
  }

  .cart-controls {
    flex-direction: column;
  }

  .btn-add-to-cart {
    min-width: auto;
    width: 100%;
  }

  .product-info {
    padding: 16px;
  }

  .product-gallery {
    padding: 20px 10px;
  }
  .quantity-counter {

    max-width: 100px;
  }

  .cart-controls {
    flex-direction: row;
    display: flex;
  }
  .tabs-container {
    display: flex;

    flex-wrap: wrap;
  }
  .product-thumb__cart .btn {
    font-size: .9em;
    background-color: #00a8cc;
    border-radius: 5px;
    padding: 0px 10px 0px 10px;
    width: 100%;
    margin-top: 10px;
  }
  .product-thumb__cart .qty-switch {
    width: 120px !important;
    margin: auto;
  }
}


@media (max-width: 1199px) {
  .product-gallery-container {

    min-height: 300px;

  }
}
