/* =============================================
   PRODUCT DETAIL PAGE
   ============================================= */

/* Full-height split layout */
.pd-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - var(--header-height, 72px));
}

/* Left: Info Panel */
.pd-info {
  padding: clamp(2rem, 4vw, 4rem);
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
  display: flex;
  align-items: flex-start;
  background: #ffffff;
  overflow-y: auto;
}

.pd-info__inner {
  max-width: 560px;
  width: 100%;
  margin: 0 auto;
}

/* Breadcrumb */
.pd-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--color-muted, #6b7a8d);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.pd-breadcrumb a {
  color: var(--color-muted, #6b7a8d);
  text-decoration: none;
  transition: color 0.2s ease;
}

.pd-breadcrumb a:hover {
  color: var(--color-primary, #1c4e80);
}

.pd-breadcrumb__sep {
  opacity: 0.5;
}

/* Title */
.pd-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: #0d1b2a;
  margin: 0 0 1rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* 360 View Button - Professional Look */
.pd-360 {
  margin-bottom: 2rem;
}

.pd-360__btn {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.85rem 1.75rem;
  background: linear-gradient(135deg, #f8fbff 0%, #edf4fe 100%);
  border: 1px solid #d0e1f7;
  border-radius: 16px;
  color: #1c497d;
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 600;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
}

.pd-360__btn::after {
  content: "SANAL TUR";
  position: absolute;
  top: 0;
  right: 0;
  background: #1c4e80;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 0 0 0 8px;
  letter-spacing: 0.05em;
  opacity: 0.9;
}

.pd-360__btn:hover {
  background: #ffffff;
  border-color: #1c4e80;
  color: #1c4e80;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 24px -10px rgba(28, 78, 128, 0.25);
}

.pd-360__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 54px;
  height: 40px;
  background: rgba(28, 78, 128, 0.06);
  border-radius: 10px;
  transition: all 0.4s ease;
}

.pd-360__btn:hover .pd-360__icon {
  background: #1c4e80;
  color: #fff;
  transform: rotateY(180deg);
}

.pd-360__text {
  line-height: 1.4;
  letter-spacing: -0.01em;
}

/* Tags */
.pd-tags {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.pd-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: rgba(28, 78, 128, 0.06);
  border: 1px solid rgba(28, 78, 128, 0.1);
  color: var(--color-primary, #1c4e80);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Specs Table */
.pd-specs {
  margin-bottom: 2rem;
}

.pd-specs__header {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 2px solid #0d1b2a;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #0d1b2a;
}

.pd-specs__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(13, 27, 42, 0.08);
  gap: 1rem;
  transition: background 0.2s ease;
}

.pd-specs__row:hover {
  background: rgba(28, 78, 128, 0.02);
}

.pd-specs__label {
  font-size: 0.82rem;
  color: #3a4a5c;
  line-height: 1.4;
  flex: 1;
}

.pd-specs__value {
  font-size: 0.85rem;
  font-weight: 600;
  color: #0d1b2a;
  text-align: right;
  white-space: nowrap;
}

/* Divider */
.pd-divider {
  width: 48px;
  height: 3px;
  background: #0d1b2a;
  margin: 2rem 0;
  border-radius: 3px;
}

/* Meta (Status, Origin) */
.pd-meta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.pd-meta__item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.pd-meta__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted, #6b7a8d);
  min-width: 70px;
}

.pd-meta__value {
  font-size: 0.92rem;
  font-weight: 600;
  color: #0d1b2a;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.pd-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

/* Render Button */
.pd-render-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.8rem;
  background: #0d1b2a;
  color: #fff;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-bottom: 2.5rem;
}

.pd-render-btn:hover {
  background: #1c4e80;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -8px rgba(13, 27, 42, 0.4);
}

.pd-render-btn svg {
  flex-shrink: 0;
}

/* Prev/Next Navigation */
.pd-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(13, 27, 42, 0.08);
}

.pd-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-muted, #6b7a8d);
  text-decoration: none;
  transition: color 0.25s ease, transform 0.25s ease;
}

.pd-nav__link:hover {
  color: #0d1b2a;
}

.pd-nav__link--prev:hover {
  transform: translateX(-4px);
}

.pd-nav__link--next:hover {
  transform: translateX(4px);
}

.pd-nav__link--next {
  margin-left: auto;
}

/* Right: Visual Panel */
.pd-visual {
  height: 100%;
  background: #ffffff; /* Same as info panel */
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem;
}

.pd-visual__inner {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: min(85vh, 800px);
  position: sticky;
  top: calc(var(--header-height, 72px) + 2rem);
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 30px 60px -15px rgba(0,0,0,0.15), 0 10px 20px -5px rgba(0,0,0,0.1);
  background: #f1f5f9;
}

.pd-visual__header {
  position: absolute;
  top: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.8rem 2.8rem;
  background: rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  text-align: center;
  pointer-events: none;
  white-space: nowrap;
}

.pd-visual__title {
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 700;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.pd-visual__subtitle {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 2px;
}

.pd-visual:hover .pd-visual__header {
  transform: translateX(-50%) translateY(-5px);
  background: rgba(0, 0, 0, 0.3);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.35);
}

.pd-visual__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.pd-visual:hover .pd-visual__img {
  transform: scale(1.04);
}

.pd-visual__zoom {
  position: absolute;
  top: clamp(5rem, 10vw, 7rem);
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.pd-visual__zoom:hover {
  background: rgba(0, 0, 0, 0.75);
  transform: scale(1.1);
}

/* Fullscreen Overlay */
.pd-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(13, 27, 42, 0.98);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(20px);
  animation: pd-overlay-in 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.pd-overlay[hidden] {
  display: none;
}

.pd-overlay__content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pd-visual__header--overlay {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    pointer-events: none;
}

@keyframes pd-overlay-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.pd-overlay__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 100;
}

.pd-overlay__close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.pd-overlay__img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
}

/* Mobile Responsive */
@media (max-width: 900px) {
  .pd-layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .pd-visual {
    position: relative;
    top: auto;
    height: auto;
    order: -1;
    /* Image first on mobile */
  }

  .pd-visual {
    padding: 1.25rem;
  }

  .pd-visual__inner {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    min-height: auto;
    border-radius: 12px;
  }

  .pd-visual__header {
    padding: 0.6rem 2rem;
    top: 1.5rem;
    bottom: auto;
    transform: translateX(-50%);
    gap: 2px;
  }

  .pd-visual__title {
    font-size: 1.25rem;
  }

  .pd-visual__subtitle {
    font-size: 0.65rem;
  }

  .pd-info {
    padding: 2rem 1.5rem 3rem;
    padding-top: 2rem;
  }

  .pd-info__inner {
    max-width: 100%;
  }

  .pd-title {
    font-size: 2rem;
  }

  .pd-specs__label {
    font-size: 0.75rem;
  }

  .pd-specs__value {
    font-size: 0.78rem;
  }

  .pd-nav {
    flex-direction: column;
    gap: 0.75rem;
  }

  .pd-nav__link--next {
    margin-left: 0;
    justify-content: flex-end;
  }
}