/* ===========================
   PROJECT DETAIL PAGE
   =========================== */

.project-page {
  padding-top: var(--header-h, 80px);
  background: var(--black);
  min-height: 100vh;
}

/* Breadcrumbs */
.breadcrumbs {
  padding: 24px 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  gap: 8px;
}
.breadcrumbs a {
  color: rgba(255,255,255,0.5);
  transition: color 0.3s;
}
.breadcrumbs a:hover { color: var(--accent); opacity: 1; }
.breadcrumbs span:last-child { color: var(--white); }

/* ===== GALLERY ===== */
.project-gallery-section {
  margin-bottom: 40px;
  max-width: var(--max-w, 1200px);
  margin-left: auto;
  margin-right: auto;
  padding: 0 32px;
}

.project-gallery-swiper {
  width: 100%;
  aspect-ratio: 16/9;
  background: #111;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.project-gallery-swiper .swiper-slide {
  overflow: hidden;
}

.project-gallery-swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25,1,0.5,1);
}

.project-gallery-swiper .swiper-slide-active img {
  animation: gallery-zoom-in 0.8s cubic-bezier(0.25,1,0.5,1) forwards;
}

@keyframes gallery-zoom-in {
  from { transform: scale(1.08); opacity: 0.7; }
  to { transform: scale(1); opacity: 1; }
}

.swiper-pagination {
  bottom: 16px !important;
}
.swiper-pagination-bullet {
  background: rgba(255,255,255,0.5) !important;
  width: 8px;
  height: 8px;
  opacity: 1 !important;
}
.swiper-pagination-bullet-active {
  background: var(--accent) !important;
  width: 24px;
  border-radius: 4px !important;
}

/* Gallery nav arrows */
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  z-index: 10;
  cursor: pointer;
  transition: all 0.3s;
}
.gallery-nav:hover {
  background: var(--accent);
}
.gallery-prev { left: 20px; }
.gallery-next { right: 20px; }
.gallery-nav svg { width: 22px; height: 22px; }

/* Thumbnails */
.gallery-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.gallery-thumbs::-webkit-scrollbar { display: none; }

.thumb {
  flex: 0 0 120px;
  height: 90px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s;
  opacity: 0.5;
}
.thumb.active {
  border-color: var(--accent);
  opacity: 1;
}
.thumb:hover { opacity: 0.8; }
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== PROJECT DETAIL ===== */
.project-detail {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  padding: 40px 0 60px;
}

.project-detail h1 {
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.project-description {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin-bottom: 40px;
}

/* Specs table */
.project-specs-table .spec-row {
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 0.9rem;
}
.spec-key { color: rgba(255,255,255,0.5); }
.spec-val { color: var(--white); font-weight: 400; }

/* Price */
.project-price-block {
  margin-top: 32px;
  padding: 24px;
  background: rgba(34,165,241,0.08);
  border: 1px solid rgba(34,165,241,0.2);
  border-radius: 12px;
}
.price-label {
  display: block;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.price-value {
  font-size: 2rem;
  font-weight: 300;
  color: var(--accent);
}

/* Features */
.project-features {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 32px;
}
.project-features h3 {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 24px;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
}
.feature-item:last-child { border-bottom: none; }

/* ===== ORDER COMPACT (in right column) ===== */
.order-compact {
  margin-top: 20px;
  padding: 28px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
}
.order-compact h3 {
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 20px;
}
.order-compact h3 span { color: var(--accent); }

.order-compact .form-group { margin-bottom: 10px; }
.order-compact .form-group input {
  width: 100%;
  padding: 14px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--white);
  font-size: 0.85rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.3s;
}
.order-compact .form-group input::placeholder { color: rgba(255,255,255,0.3); }
.order-compact .form-group input:focus { border-color: var(--accent); }

.btn-order {
  width: 100%;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  font-size: 0.88rem;
  background: #25D366;
  border-radius: 8px;
}
.btn-order:hover {
  background: #1da851;
  box-shadow: 0 8px 30px rgba(37,211,102,0.3);
}

/* Back link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  transition: color 0.3s;
}
.back-link:hover { color: var(--accent); opacity: 1; }

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
  .project-detail {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .project-gallery-swiper { aspect-ratio: 16/9; }
}

@media (max-width: 768px) {
  .project-page { padding-top: 56px; }
  .project-gallery-section { padding: 0; }
  .project-gallery-swiper { aspect-ratio: 16/10; border-radius: 0; }
  .gallery-nav { width: 36px; height: 36px; }
  .gallery-prev { left: 10px; }
  .gallery-next { right: 10px; }
  .thumb { flex: 0 0 90px; height: 68px; }

  .project-detail { padding: 24px 0 40px; }
  .project-detail h1 { font-size: 1.6rem; }
  .project-description { font-size: 0.9rem; margin-bottom: 24px; }
  .project-specs-table .spec-row { padding: 12px 0; font-size: 0.82rem; }
  .price-value { font-size: 1.5rem; }
  .project-features { padding: 24px 20px; }

  .project-order { padding: 50px 0; }
  .order-left h2 { font-size: 1.4rem; }
  .order-left p { font-size: 0.85rem; }
}

@media (max-width: 480px) {
  .project-gallery-swiper { aspect-ratio: 4/3; }
  .gallery-thumbs { gap: 6px; }
  .thumb { flex: 0 0 75px; height: 56px; border-radius: 6px; }
  .project-detail h1 { font-size: 1.3rem; }
}
