/* Поштучный конструктор нанесения — тестовая страница.
   Вид — как обычная страница товара (product.preview.html) + конструктор.
   Без border-radius, оранжевый #EF7F30 только для акцентов. */

/* ── Страница товара ── */
.ga-product-page { background: #ffffff; min-height: 100vh; padding: 24px 32px 80px; width: 100vw; margin-left: calc(-50vw + 50%); box-sizing: border-box; }
.ga-product-container { max-width: 1200px; margin: 0 auto; }
.ga-breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 13px; font-weight: 400; color: #909090; margin-bottom: 24px; }
.ga-breadcrumbs a { color: #909090; text-decoration: none; }
.ga-breadcrumbs a:hover { color: #EF7F30; }
.ga-breadcrumbs__sep { color: #e8e8e8; }
.ga-product-layout { display: grid; grid-template-columns: 1fr 480px; gap: 48px; align-items: start; }

.ga-gallery { position: relative; min-width: 0; }
.ga-gallery__main { width: 100%; max-height: 500px; overflow: hidden; margin-bottom: 12px; display: flex; align-items: center; justify-content: center; position: relative; background: #fff; }
.ga-gallery__main img { width: 100%; max-height: 500px; object-fit: contain; }
.ga-gallery__counter { position: absolute; bottom: 12px; right: 12px; font-size: 12px; color: #909090; background: rgba(255,255,255,0.85); padding: 2px 10px; line-height: 1.6; }
.ga-gallery__thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 8px 0; }
.ga-gallery__thumb { width: 56px; height: 56px; cursor: pointer; border: 1px solid transparent; opacity: 0.5; transition: all .2s; flex-shrink: 0; }
.ga-gallery__thumb:hover, .ga-gallery__thumb.active { border-color: #EF7F30; opacity: 1; }
.ga-gallery__thumb img { width: 100%; height: 100%; object-fit: contain; display: block; background: #fff; }

.ga-product-info { display: flex; flex-direction: column; gap: 16px; }
.ga-meta { font-size: 13px; color: #909090; }
.ga-title { font-size: 28px; font-weight: 800; color: #000; margin: 0; line-height: 1.2; }
.ga-price-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.ga-price { font-weight: 800; font-size: 28px; color: #000; }
.ga-stock { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #333; }
.ga-stock__dot { width: 8px; height: 8px; background: #4CAF50; display: inline-block; }
.ga-stock--out .ga-stock__dot { background: #909090; }

/* ── Селектор Цвет/Размер (как на обычной странице товара) ── */
.ga-sku-rows { display: flex; flex-direction: column; gap: 0; position: relative; z-index: 10; }
.ga-sku-trigger { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #e8e8e8; cursor: pointer; font-size: 13px; color: #909090; font-family: inherit; background: transparent; border-left: none; border-right: none; border-top: none; width: 100%; text-align: left; }
.ga-sku-trigger:hover { color: #000; }
.ga-sku-trigger__label { font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.ga-sku-trigger__val { font-weight: 500; color: #000; margin: 0 8px; }
.ga-sku-trigger__arrow { font-size: 8px; transition: transform .25s; color: #909090; }
.ga-sku-trigger.open .ga-sku-trigger__arrow { transform: rotate(180deg); }
.ga-sku-panel { max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease; display: flex; flex-wrap: wrap; gap: 4px; padding: 0; box-sizing: content-box; }
.ga-sku-trigger.open + .ga-sku-panel { padding: 12px 0 8px; }
.ga-sku-option { font-size: 13px; padding: 6px 12px; color: #909090; background: transparent; border: 1px solid #e8e8e8; cursor: pointer; font-family: inherit; transition: all .2s; }
.ga-sku-option:hover { color: #000; border-color: #000; }
.ga-sku-option.selected { color: #fff; background: #000; border-color: #000; }
.ga-sku-option.disabled { opacity: .25; cursor: not-allowed; }

.ga-trust { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.ga-trust__item { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #909090; }
.ga-trust__item svg { width: 18px; height: 18px; flex-shrink: 0; color: #EF7F30; }

/* ── Табы ── */
.ga-tabs { max-width: 1200px; margin: 48px auto 0; }
.ga-tabs__nav { display: flex; border-bottom: 1px solid #e8e8e8; }
.ga-tabs__tab { padding: 16px 24px; font-size: 14px; font-weight: 400; color: #909090; background: transparent; border: none; border-bottom: 2px solid transparent; cursor: pointer; font-family: inherit; margin-bottom: -1px; }
.ga-tabs__tab:hover { color: #000; }
.ga-tabs__tab.active { color: #000; font-weight: 800; border-bottom-color: #EF7F30; }
.ga-tabs__panel { display: none; padding: 24px 0; font-size: 15px; line-height: 1.7; color: #000; }
.ga-tabs__panel.active { display: block; }
.ga-tabs__panel h3 { font-weight: 800; font-size: 16px; margin: 24px 0 12px; }
.ga-tabs__panel h3:first-child { margin-top: 0; }
.ga-tabs__panel ul { margin: 8px 0 0; padding-left: 20px; }
.ga-tabs__panel li { margin-bottom: 6px; }
.ga-features { width: 100%; border-collapse: collapse; }
.ga-features td { padding: 8px 12px; border-bottom: 1px solid #e8e8e8; font-size: 14px; vertical-align: top; }
.ga-features td:first-child { color: #909090; width: 260px; font-weight: 600; }

.ga-product-meta { max-width: 1200px; margin: 20px auto 0; font-size: 13px; color: #909090; }
.ga-product-meta__label { font-weight: 800; color: #000; margin-right: 6px; }
.ga-product-meta__link { color: #909090; text-decoration: none; }
.ga-product-meta__link:hover { color: #EF7F30; }

/* ── Конструктор нанесения ── */
.oasis-cn { border-top: 2px solid #EF7F30; padding-top: 20px; margin-top: 8px; }
.oasis-cn__section-title { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: #909090; margin-bottom: 14px; font-weight: 800; }
.oasis-cn__tools { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.oasis-cn__qty { display: flex; align-items: center; }
.oasis-cn__qty button { width: 44px; height: 44px; border: 1px solid #d0d0d0; background: #fff; font-size: 20px; color: #000; cursor: pointer; }
.oasis-cn__qty button:hover { background: #f5f5f5; }
.oasis-cn__qty input { width: 72px; height: 44px; border: 1px solid #d0d0d0; border-left: none; border-right: none; text-align: center; font-size: 16px; color: #000; -moz-appearance: textfield; }
.oasis-cn__qty input::-webkit-outer-spin-button, .oasis-cn__qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.oasis-cn__qty-label { margin-left: 10px; color: #333; font-size: 14px; }

.oasis-cn__logo-btn { flex: 1; min-width: 180px; text-align: center; padding: 12px 16px; border: 1px solid #d0d0d0; background: #fff; color: #000; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.oasis-cn__logo-btn:hover { background: #f5f5f5; }
.oasis-cn__logo-btn input { display: none; }
.oasis-cn__logo-preview { margin-bottom: 14px; }
.oasis-cn__logo-preview img { max-width: 140px; max-height: 140px; border: 1px solid #e0e0e0; background: #fff; }

.oasis-cn__widget { margin-bottom: 4px; }
.oasis-cn__widget-error { font-size: 13px; color: #c00; padding: 12px; border: 1px solid #e0e0e0; }

.oasis-cn__summary { border-top: 1px solid #e8e8e8; margin-top: 12px; padding-top: 12px; }
.oasis-cn__summary-row { display: flex; justify-content: space-between; font-size: 14px; color: #333; padding: 5px 0; }
.oasis-cn__summary-total { display: flex; justify-content: space-between; font-size: 20px; font-weight: 800; color: #000; border-top: 1px solid #e8e8e8; margin-top: 8px; padding-top: 12px; }
.oasis-cn__submit { display: block; width: 100%; margin-top: 16px; padding: 16px 20px; background: #EF7F30; color: #fff; font-size: 16px; font-weight: 800; border: none; cursor: pointer; font-family: inherit; }
.oasis-cn__submit:hover { background: #d96e20; }

.oasis-cn__preview { margin-top: 16px; border: 1px dashed #d0d0d0; padding: 14px; }
.oasis-cn__preview-title { font-size: 12px; font-weight: 700; color: #333; margin-bottom: 8px; }
.oasis-cn__preview pre { font-size: 11px; line-height: 1.5; color: #333; white-space: pre-wrap; word-break: break-all; max-height: 260px; overflow: auto; margin: 0; }

/* ── Переключатель «Фото / Схема нанесений» ── */
.oasis-gallery-toggle { display: flex; gap: 0; margin-bottom: 12px; border-bottom: 1px solid #e8e8e8; }
.oasis-gallery-toggle__btn { padding: 10px 16px; font-size: 13px; font-weight: 600; color: #909090; background: transparent; border: none; border-bottom: 2px solid transparent; cursor: pointer; font-family: inherit; margin-bottom: -1px; text-transform: uppercase; letter-spacing: .5px; }
.oasis-gallery-toggle__btn:hover { color: #000; }
.oasis-gallery-toggle__btn.active { color: #000; border-bottom-color: #EF7F30; }

/* ── Схема нанесений (векторная) ── */
.oasis-scheme { margin-bottom: 12px; }
.oasis-scheme__views { display: flex; gap: 0; margin-bottom: 12px; border-bottom: 1px solid #e8e8e8; }
.oasis-scheme__view-btn { padding: 10px 16px; font-size: 13px; font-weight: 600; color: #909090; background: transparent; border: none; border-bottom: 2px solid transparent; cursor: pointer; font-family: inherit; margin-bottom: -1px; text-transform: uppercase; letter-spacing: .5px; }
.oasis-scheme__view-btn:hover { color: #000; }
.oasis-scheme__view-btn.active { color: #000; border-bottom-color: #EF7F30; }
.oasis-scheme__stage { position: relative; }
.oasis-scheme__stage svg { width: 100%; height: auto; display: block; background: #fff; border: 1px solid #e8e8e8; }
/* Пунктиры зон — из самого файла; при выборе меняется только цвет штриха.
   pointer-events:none — клики ловит невидимый слой .oasis-scheme__click */
#oasis-scheme-stage path[data-zone] { pointer-events: none; }
#oasis-scheme-stage path[data-zone].active { stroke: #EF7F30; }
/* Невидимый клик-слой по зонам (без отрисовки) */
.oasis-scheme__clicks { position: absolute; inset: 0; z-index: 2; }
.oasis-scheme__click { position: absolute; box-sizing: border-box; cursor: pointer; }
.oasis-scheme__click:hover { background: rgba(239, 127, 48, 0.08); }
.oasis-scheme__maket-host { position: absolute; box-sizing: border-box; pointer-events: none; z-index: 3; }
.oasis-scheme__logo { position: absolute; border: 1px dashed #EF7F30; background: rgba(255,255,255,0.4); box-sizing: border-box; cursor: move; overflow: hidden; z-index: 4; pointer-events: auto; }
.oasis-scheme__logo img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.oasis-scheme__logo-handle { position: absolute; right: -6px; bottom: -6px; width: 12px; height: 12px; background: #EF7F30; cursor: nwse-resize; z-index: 5; pointer-events: auto; }

/* ── Responsive ── */
@media (max-width: 1024px) { .ga-product-layout { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 900px) { .ga-product-page { padding: 16px 16px 80px; } .ga-title { font-size: 22px; } .ga-tabs__tab { padding: 12px 16px; font-size: 13px; } }
@media (max-width: 576px) {
  .ga-title { font-size: 18px; }
  .ga-price { font-size: 24px; }
  .ga-product-info { gap: 14px; }
  .ga-gallery__thumb { width: 48px; height: 48px; }
  .ga-tabs__nav { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .ga-tabs__nav::-webkit-scrollbar { display: none; }
  .ga-tabs__tab { white-space: nowrap; padding: 12px; font-size: 12px; }
  .ga-features td:first-child { width: 140px; }
}
