/* ═══════════════════════════════════════════════════
   KAVE — Product Page V2 (Non-standard / Editorial)
   ═══════════════════════════════════════════════════ */

/* ═══ HERO — Full viewport ═══ */
.pv2-hero {
  min-height: 100vh;
  padding: 80px 0 0;
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--color-bg);
}

.pv2-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 40px var(--gutter) 0;
  gap: 40px;
}

/* ── Left: Product Info ── */
.pv2-info { max-width: 480px; }

.pv2-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-size: 10px;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--color-text-muted); font-weight: 500; margin-bottom: 20px;
}
.pv2-breadcrumb a { color: var(--color-text-muted); text-decoration: none; transition: color var(--duration-fast); }
.pv2-breadcrumb a:hover { color: var(--color-text); }
.pv2-breadcrumb .sep { opacity: 0.4; }

.pv2-name {
  font-family: var(--font-heading);
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1; font-weight: 400; letter-spacing: -1px; margin-bottom: 12px;
}

.pv2-category {
  font-family: var(--font-body); font-size: 12px;
  color: var(--color-text-muted); letter-spacing: 1.5px;
  text-transform: uppercase; font-weight: 500; margin-bottom: 20px;
}

.pv2-price { font-family: var(--font-body); font-size: 32px; font-weight: 600; letter-spacing: -0.3px; margin-bottom: 6px; }
.pv2-price small { font-size: 20px; opacity: 0.5; font-weight: 400; }

.pv2-price-note {
  font-family: var(--font-body); font-size: 11px;
  color: var(--color-text-muted); margin-bottom: 20px; line-height: 1.5;
}

.pv2-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pv2-tag {
  padding: 7px 14px; border: 1px solid var(--color-line);
  font-family: var(--font-body); font-size: 10px;
  letter-spacing: 1px; text-transform: uppercase; font-weight: 500;
  color: var(--color-text); display: flex; align-items: center; gap: 6px;
}
.pv2-tag .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--color-text); }

/* ── Right: Gallery Grid ── */
.pv2-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 80px);
  gap: 6px;
  align-self: flex-start;
}

.pv2-gallery-thumb {
  width: 80px; height: 80px; overflow: hidden;
  border: 2px solid transparent;
  transition: border-color var(--duration-fast), opacity var(--duration-fast);
  opacity: 0.6; background: #f0f0f0; cursor: pointer;
}
.pv2-gallery-thumb:first-child { border-color: var(--color-text); opacity: 1; }
.pv2-gallery-thumb:hover { opacity: 0.9; }
.pv2-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ── Center: Main Product Image ── */
.pv2-image-wrap {
  flex: 1; display: flex; align-items: flex-end; justify-content: flex-end;
  padding: 0 var(--gutter); position: relative; min-height: 0;
  pointer-events: none;
}

.pv2-main-image {
  position: absolute; bottom: -80px; right: 0;
  width: 70vw; max-width: none;
  object-fit: contain;
  transition: opacity 0.5s var(--ease), transform 0.8s var(--ease);
  will-change: transform, opacity;
  pointer-events: none;
}

.pv2-main-image.switching { opacity: 0; transform: scale(0.96); }

/* ── Scroll Indicator ── */
.pv2-scroll-dots {
  position: absolute; right: 32px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 12px; z-index: 5;
  pointer-events: auto;
}
.pv2-dot {
  width: 10px; height: 10px; border-radius: 50%;
  border: 1.5px solid var(--color-text); background: transparent;
  cursor: pointer; padding: 0;
  transition: background var(--duration-fast), transform var(--duration-fast);
}
.pv2-dot.active { background: var(--color-text); transform: scale(1.2); }
.pv2-dot:hover { background: rgba(17, 29, 41, 0.3); }

/* ── Bottom: CTA Bar ── */
.pv2-cta-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 24px var(--gutter) 28px;
  border-top: 1px solid var(--color-line);
}

.pv2-cta-main {
  position: relative; display: flex; align-items: center; justify-content: center;
  gap: 10px; padding: 18px 32px; background: var(--color-text); color: #fff;
  border: 2px solid var(--color-text); font-family: var(--font-body);
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 1.5px; text-decoration: none; overflow: hidden;
  isolation: isolate; transition: color var(--duration-slow) var(--ease); white-space: nowrap;
}
.pv2-cta-main::before {
  content: ''; position: absolute; inset: 0; background: #fff;
  transform: translateY(101%); transition: transform var(--duration-slow) var(--ease); z-index: -1;
}
.pv2-cta-main:hover::before { transform: translateY(0); }
.pv2-cta-main:hover { color: var(--color-text); }
.pv2-cta-main svg { width: 16px; height: 16px; }

.pv2-cta-wa {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 18px 28px; background: #25d366; color: #fff; border: none;
  font-family: var(--font-body); font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1.2px; text-decoration: none;
  transition: background var(--duration-base), transform var(--duration-base), box-shadow var(--duration-base);
  white-space: nowrap;
}
.pv2-cta-wa:hover { background: #1fb855; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3); }
.pv2-cta-wa svg { width: 16px; height: 16px; }

.pv2-cta-phone {
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--color-line); background: transparent;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-text); text-decoration: none; flex-shrink: 0;
  transition: background var(--duration-base) var(--ease), color var(--duration-base), border-color var(--duration-base);
}
.pv2-cta-phone:hover { background: var(--color-text); color: #fff; border-color: var(--color-text); }
.pv2-cta-phone svg { width: 18px; height: 18px; }

.pv2-scroll-hint {
  margin-left: auto; font-family: var(--font-body); font-size: 10px;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--color-text-muted);
  display: flex; align-items: center; gap: 8px; animation: pv2-bounce 2s ease infinite;
}
@keyframes pv2-bounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(4px)} }
.pv2-scroll-hint svg { width: 14px; height: 14px; }

/* ═══ TAB SECTION ═══ */
.pv2-tabs-bar {
  position: sticky; top: var(--header-h, 80px); z-index: 20;
  display: flex; align-items: center; gap: 0;
  padding: 0 var(--gutter); background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-line);
  transition: background 0.4s var(--ease);
}
.pv2-tabs-bar.pinned {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}

.pv2-tab {
  padding: 18px 24px; font-family: var(--font-body); font-size: 12px;
  font-weight: 500; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--color-text-muted); text-decoration: none; cursor: pointer;
  border: none; background: none;
  border-bottom: 2px solid transparent;
  transition: color var(--duration-fast), border-color var(--duration-fast); white-space: nowrap;
}
.pv2-tab:hover { color: var(--color-text); }
.pv2-tab.active { color: var(--color-text); border-bottom-color: var(--color-text); font-weight: 600; }

/* ── Tab Panels — switchable with fade ── */
.pv2-tab-panel {
  display: none;
  padding: 60px var(--gutter);
  animation: pv2FadeIn 0.5s var(--ease) forwards;
}

.pv2-tab-panel.active { display: block; }

@keyframes pv2FadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Two-column layout inside tabs ── */
.pv2-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.pv2-split-left { }
.pv2-split-right { }

/* Tab content text styles */
.pv2-tab-title {
  font-family: var(--font-heading);
  font-size: clamp(24px, 2.4vw, 36px);
  font-weight: 400; letter-spacing: -0.4px; margin-bottom: 24px;
}

.pv2-tab-text {
  font-family: var(--font-body); font-size: 15px;
  line-height: 1.75; color: var(--color-text); margin-bottom: 20px;
}
.pv2-tab-text:last-child { margin-bottom: 0; }

/* Spec grid */
.pv2-specs {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 0; border: 1px solid var(--color-line); margin: 32px 0;
}
.pv2-spec { padding: 20px; border-bottom: 1px solid var(--color-line); border-right: 1px solid var(--color-line); }
.pv2-spec:nth-child(3n) { border-right: none; }
.pv2-spec:nth-last-child(-n+3) { border-bottom: none; }
.pv2-spec-label { font-family: var(--font-body); font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: var(--color-text-muted); font-weight: 500; display: block; margin-bottom: 6px; }
.pv2-spec-value { font-family: var(--font-body); font-size: 15px; font-weight: 500; }

/* Promise banner */
.pv2-promise {
  background: var(--color-text); color: #fff;
  padding: 28px 32px; margin: 32px 0;
  display: flex; align-items: center; gap: 24px;
}
.pv2-promise-icon { width: 48px; height: 48px; flex-shrink: 0; filter: invert(1); }
.pv2-promise h4 { font-family: var(--font-heading); font-size: 18px; font-weight: 400; margin-bottom: 4px; }
.pv2-promise p { font-family: var(--font-body); font-size: 13px; opacity: 0.65; line-height: 1.5; margin: 0; }

.pv2-promise-btn {
  margin-left: auto; flex-shrink: 0;
  padding: 12px 20px; background: #fff; color: var(--color-text);
  font-family: var(--font-body); font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px; text-decoration: none;
  border: none; cursor: pointer;
  transition: transform var(--duration-base), box-shadow var(--duration-base);
  white-space: nowrap;
}
.pv2-promise-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }

/* ── Tab Image Gallery (right side) ── */
.pv2-img-gallery {
  display: grid;
  gap: 6px;
  line-height: 0;
}

/* 1 image */
.pv2-img-gallery[data-count="1"] { grid-template-columns: 1fr; }
/* 2 images side by side — tall vertical */
.pv2-img-gallery[data-count="2"] { grid-template-columns: 1fr 1fr; }
.pv2-img-gallery[data-count="2"] .pv2-gallery-img img { aspect-ratio: 3 / 4; }
/* 3 images: top full, bottom 2 */
.pv2-img-gallery[data-count="3"] { grid-template-columns: 1fr 1fr; }
.pv2-img-gallery[data-count="3"] .pv2-gallery-img:first-child { grid-column: 1 / -1; }
/* 4 images: 2x2 */
.pv2-img-gallery[data-count="4"] { grid-template-columns: 1fr 1fr; }

.pv2-gallery-img {
  position: relative; overflow: hidden;
  cursor: pointer; display: block;
}

.pv2-gallery-img img {
  width: 100%; height: 100%;
  aspect-ratio: 4 / 3; object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease), filter 0.4s var(--ease);
}

.pv2-gallery-img:hover img {
  transform: scale(1.05);
  filter: brightness(0.92);
}

/* Hover overlay — like hero PLAY */
.pv2-gallery-img::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(17, 29, 41, 0);
  transition: background 0.4s var(--ease);
  z-index: 1;
}
.pv2-gallery-img:hover::after {
  background: rgba(17, 29, 41, 0.15);
}

.pv2-gallery-img .view-label {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  z-index: 2; pointer-events: none;
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-size: 9px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px; color: var(--color-text);
  opacity: 0;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.pv2-gallery-img:hover .view-label {
  opacity: 1; transform: translate(-50%, -50%) scale(1);
}

/* 4+ images: overlay on 4th */
.pv2-img-overlay {
  position: relative;
}
.pv2-img-overlay .overlay-more {
  position: absolute; inset: 0; z-index: 3;
  background: rgba(17, 29, 41, 0.6);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px;
  color: #fff; font-family: var(--font-body);
  cursor: pointer;
  transition: background 0.3s var(--ease);
}
.pv2-img-overlay .overlay-more:hover { background: rgba(17, 29, 41, 0.75); }
.pv2-img-overlay .overlay-more .more-count { font-size: 24px; font-weight: 600; }
.pv2-img-overlay .overlay-more .more-text { font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 500; }

/* ── Lightbox ── */
.pv2-lightbox {
  position: fixed; inset: 0; z-index: 9998;
  background: rgba(17, 29, 41, 0.92);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.pv2-lightbox.active { opacity: 1; visibility: visible; }
.pv2-lightbox img {
  max-width: 90vw; max-height: 85vh; object-fit: contain;
  transition: transform 0.5s var(--ease);
}
.pv2-lightbox .lb-close {
  position: absolute; top: 24px; right: 24px;
  width: 48px; height: 48px; border-radius: 50%;
  background: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 5;
}
.pv2-lightbox .lb-close span {
  position: absolute; width: 20px; height: 2px; background: var(--color-text);
}
.pv2-lightbox .lb-close span:nth-child(1) { transform: rotate(45deg); }
.pv2-lightbox .lb-close span:nth-child(2) { transform: rotate(-45deg); }

.pv2-lightbox .lb-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,0.9); backdrop-filter: blur(8px);
  border: none; cursor: pointer; z-index: 5;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--duration-fast), transform var(--duration-fast);
}
.pv2-lightbox .lb-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.pv2-lightbox .lb-arrow svg { width: 18px; height: 18px; color: var(--color-text); }
.pv2-lightbox .lb-prev { left: 24px; }
.pv2-lightbox .lb-next { right: 24px; }

.pv2-lightbox .lb-counter {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-body); font-size: 12px; color: rgba(255,255,255,0.7);
  letter-spacing: 2px;
}

/* Hide ნახვა on static images */
.pv2-gallery-img.static .view-label { display: none; }
.pv2-gallery-img.static::after { display: none; }
.pv2-gallery-img.static { cursor: default; }
.pv2-gallery-img.static:hover img { transform: none; filter: none; }

/* Warranty / Delivery list */
.pv2-info-list { list-style: none; margin: 24px 0 0; padding: 0; }
.pv2-info-item {
  display: flex; gap: 16px; padding: 20px 0;
  border-bottom: 1px solid var(--color-line); align-items: flex-start;
}
.pv2-info-item:last-child { border-bottom: none; }
.pv2-info-icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(17, 29, 41, 0.05);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.pv2-info-icon svg { width: 18px; height: 18px; color: var(--color-text); }
.pv2-info-item h4 { font-family: var(--font-body); font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.pv2-info-item p { font-family: var(--font-body); font-size: 13px; color: var(--color-text-muted); line-height: 1.5; margin: 0; }

/* ═══ SALES MANAGER ═══ */
.pv2-manager { background: var(--color-text); color: #fff; padding: 48px var(--gutter); }
.pv2-manager-inner { max-width: 960px; margin: 0 auto; display: flex; align-items: center; gap: 28px; }
.pv2-manager-img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,0.2); flex-shrink: 0; }
.pv2-manager-text { flex: 1; }
.pv2-manager-text h3 { font-family: var(--font-heading); font-size: 22px; font-weight: 400; margin-bottom: 2px; }
.pv2-manager-text .role { font-family: var(--font-body); font-size: 12px; opacity: 0.6; margin-bottom: 6px; }
.pv2-manager-text .status { display: flex; align-items: center; gap: 6px; font-family: var(--font-body); font-size: 11px; color: #34c759; font-weight: 500; }
.pv2-manager-text .status .dot { width: 6px; height: 6px; border-radius: 50%; background: #34c759; }
.pv2-manager-actions { display: flex; gap: 10px; }
.pv2-mgr-btn {
  padding: 14px 24px; font-family: var(--font-body); font-size: 11px;
  font-weight: 600; text-transform: uppercase; letter-spacing: 1.2px;
  text-decoration: none; display: flex; align-items: center; gap: 8px;
  transition: background var(--duration-base), transform var(--duration-base), box-shadow var(--duration-base);
  white-space: nowrap;
}
.pv2-mgr-btn.white { background: #fff; color: var(--color-text); border: none; }
.pv2-mgr-btn.white:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,0.15); }
.pv2-mgr-btn.green { background: #25d366; color: #fff; border: none; }
.pv2-mgr-btn.green:hover { background: #1fb855; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(37,211,102,0.3); }
.pv2-mgr-btn svg { width: 14px; height: 14px; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 960px) {
  .pv2-top { flex-direction: column; gap: 24px; padding-top: 28px; }
  .pv2-gallery-grid { grid-template-columns: repeat(4, 64px); gap: 6px; }
  .pv2-gallery-thumb { width: 64px; height: 64px; }
  .pv2-scroll-dots { right: 20px; }
  .pv2-cta-bar { flex-wrap: wrap; }
  .pv2-scroll-hint { display: none; }
  .pv2-split { grid-template-columns: 1fr; gap: 32px; }
  .pv2-specs { grid-template-columns: 1fr 1fr; }
  .pv2-spec:nth-child(3n) { border-right: 1px solid var(--color-line); }
  .pv2-spec:nth-child(2n) { border-right: none; }
  .pv2-manager-inner { flex-direction: column; text-align: center; }
  .pv2-manager-actions { justify-content: center; }
  .pv2-promise { flex-direction: column; text-align: center; }
  .pv2-promise-btn { margin-left: 0; margin-top: 12px; }
}

@media (max-width: 760px) {
  .pv2-hero { min-height: auto; padding-top: 60px; }
  .pv2-top { padding-top: 20px; }
  .pv2-name { font-size: 36px; }
  .pv2-price { font-size: 26px; }
  .pv2-gallery-grid { grid-template-columns: repeat(4, 56px); }
  .pv2-gallery-thumb { width: 56px; height: 56px; }
  .pv2-scroll-dots { display: none; }

  .pv2-image-wrap {
    position: relative;
    order: -1;
    padding: 0;
    min-height: auto;
    display: block;
  }

  .pv2-main-image {
    position: relative !important;
    bottom: auto !important;
    right: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    object-fit: contain;
    padding: 0 var(--gutter);
  }

  .pv2-hero {
    min-height: auto;
    padding-top: 60px;
    overflow: visible;
  }

  .pv2-cta-bar { padding: 20px var(--gutter); }
  .pv2-tab { padding: 14px 16px; font-size: 11px; }
  .pv2-tab-panel { padding: 40px var(--gutter); }
  .pv2-specs { grid-template-columns: 1fr; }
  .pv2-spec { border-right: none !important; }
  .pv2-spec:last-child { border-bottom: none; }
  .pv2-img-gallery { grid-template-columns: 1fr !important; }
  .pv2-img-gallery .pv2-gallery-img:first-child { grid-column: auto; }
  .pv2-manager-actions { flex-direction: column; width: 100%; }
  .pv2-mgr-btn { justify-content: center; }
}

@media (max-width: 480px) {
  .pv2-name { font-size: 30px; }
  .pv2-cta-main, .pv2-cta-wa { padding: 16px 20px; font-size: 11px; }
  .pv2-cta-phone { width: 46px; height: 46px; }
}


/* ── Single-project "products used" carousel (Phase 4). The .card cosmetics come
   from products.css (enqueued alongside on single project); these rules give the
   .also-* wrappers the homepage carousel layout. product-v2.js drives the drag/nav. ── */
.also-interested { position: relative; overflow: hidden; padding: 60px 0 90px; }
.also-carousel { position: relative; }
.also-track {
  display: flex; gap: 28px; padding: 0 var(--gutter) 10px;
  scroll-padding-left: var(--gutter); overflow-x: auto; overflow-y: hidden;
  -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory;
  scrollbar-width: none; cursor: grab; user-select: none;
}
.also-track::-webkit-scrollbar { display: none; }
.also-track.dragging { cursor: grabbing; scroll-snap-type: none; }
.also-track.dragging * { pointer-events: none; }
.also-nav { display: flex; gap: 12px; justify-content: flex-end; align-items: center; padding: 20px var(--gutter) 0; }
.also-track .card { flex: 0 0 calc((100vw - 120px - 56px) / 3.2); scroll-snap-align: start; }
@media (max-width: 960px) { .also-track .card { flex-basis: calc((100vw - 80px - 28px) / 2.1); } }
@media (max-width: 560px) { .also-track .card { flex-basis: 78%; } }

/* ── Single-project wrapper polish (Phase 4): the .project-* wrappers reuse pv2
   styling; these give the client-logo a round framed badge + the gallery/body
   their own section rhythm. ── */
.project-head-logo img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; box-shadow: 0 2px 10px rgba(0,0,0,0.15); }
.project-gallery,
.project-body { padding: 0 var(--gutter); max-width: 1100px; margin-inline: auto; }
