/* Product Page Styles */

/* Simple scroll animations for product pages - no JS required */
.section {
  animation: sectionFadeIn 0.8s ease forwards;
}

.feature-item {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.feature-item:nth-child(1) { animation-delay: 0.1s; }
.feature-item:nth-child(2) { animation-delay: 0.2s; }
.feature-item:nth-child(3) { animation-delay: 0.3s; }
.feature-item:nth-child(4) { animation-delay: 0.4s; }
.feature-item:nth-child(5) { animation-delay: 0.5s; }
.feature-item:nth-child(6) { animation-delay: 0.6s; }

.floor-plan-card {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.floor-plan-card:nth-child(1) { animation-delay: 0.1s; }
.floor-plan-card:nth-child(2) { animation-delay: 0.3s; }

.tech-spec-card {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.tech-spec-card:nth-child(1) { animation-delay: 0.1s; }
.tech-spec-card:nth-child(2) { animation-delay: 0.2s; }
.tech-spec-card:nth-child(3) { animation-delay: 0.3s; }
.tech-spec-card:nth-child(4) { animation-delay: 0.4s; }

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

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

/* Breadcrumbs */
.breadcrumbs-section {
  background: var(--color-dark-grey);
  padding: 20px 0;
  margin-top: 80px;
}

.breadcrumb {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 10px;
  flex-wrap: wrap;
}

.breadcrumb-item {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: '/';
  margin-right: 10px;
  color: var(--color-text-muted);
}

.breadcrumb-item a {
  color: var(--color-light-grey);
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
  color: var(--color-gold);
}

.breadcrumb-item.active {
  color: var(--color-gold);
}

/* Product Hero */
.product-hero {
  padding: 60px 0;
  background: var(--color-dark);
}

.product-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.product-hero-image {
  position: relative;
}

.main-product-image {
  width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.product-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--color-gold);
  color: var(--color-dark);
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
}

.product-hero-content h1 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.product-subtitle {
  display: block;
  font-size: 1.5rem;
  color: var(--color-gold);
  font-weight: 400;
  margin-top: 10px;
}

.product-price {
  background: rgba(201, 169, 106, 0.1);
  border: 2px solid var(--color-gold);
  border-radius: 15px;
  padding: 25px;
  margin: 30px 0;
}

.price-tag {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
}

.price-from {
  font-size: 1rem;
  color: var(--color-text-muted);
}

.price-amount {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-gold);
}

.price-vat {
  font-size: 1rem;
  color: var(--color-text-muted);
}

.price-note {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.product-quick-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 30px 0;
}

.spec-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.spec-item i {
  font-size: 1.5rem;
  color: var(--color-gold);
  margin-top: 5px;
}

.spec-item strong {
  display: block;
  color: var(--color-white);
  margin-bottom: 5px;
  font-size: 0.95rem;
}

.spec-item span {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.product-cta-buttons {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

/* Floor Plans */
.floor-plans-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 50px;
}

.floor-plan-card {
  background: var(--color-dark-grey);
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease;
}

.floor-plan-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-gold);
}

.floor-plan-image {
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.floor-plan-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.floor-plan-content {
  padding: 30px;
}

.floor-plan-content h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--color-gold);
}

.floor-plan-content > p {
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

.floor-plan-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.floor-plan-features li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 10px;
}

.floor-plan-features li:last-child {
  border-bottom: none;
}

.floor-plan-features i {
  color: var(--color-gold);
  font-size: 0.9rem;
}

/* Tech Specs */
.tech-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.tech-spec-card {
  background: rgba(255, 255, 255, 0.03);
  padding: 30px;
  border-radius: 15px;
  border: 1px solid rgba(201, 169, 106, 0.2);
}

.tech-spec-card h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: var(--color-gold);
  display: flex;
  align-items: center;
  gap: 10px;
}

.tech-spec-card h3 i {
  font-size: 1.5rem;
}

.tech-spec-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tech-spec-card li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--color-text-muted);
}

.tech-spec-card li:last-child {
  border-bottom: none;
}

.tech-spec-card strong {
  color: var(--color-white);
  margin-right: 10px;
}

/* Process Timeline - Override style-new.css */
.product-hero ~ * .process-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
  max-width: 100%;
  position: static;
}

.product-hero ~ * .timeline-item {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  opacity: 0;
  grid-template-columns: unset !important;
  gap: 0 !important;
  margin-bottom: 20px !important;
  direction: ltr !important;
  animation: fadeInUp 0.6s ease forwards;
}

/* Opóźnienia dla kolejnych elementów */
.product-hero ~ * .timeline-item:nth-child(1) {
  animation-delay: 0.1s;
}

.product-hero ~ * .timeline-item:nth-child(2) {
  animation-delay: 0.2s;
}

.product-hero ~ * .timeline-item:nth-child(3) {
  animation-delay: 0.3s;
}

.product-hero ~ * .timeline-item:nth-child(4) {
  animation-delay: 0.4s;
}

.product-hero ~ * .timeline-number {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-dark);
  box-shadow: 0 10px 30px rgba(201, 169, 106, 0.3);
  margin-bottom: 20px;
  margin-top: 0;
}

.product-hero ~ * .timeline-content {
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.9), rgba(37, 37, 37, 0.8));
  padding: 30px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  width: 100%;
  margin-bottom: 20px;
  order: -1;
}

.product-hero ~ * .timeline-content h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--color-gold);
}

.product-hero ~ * .timeline-content p {
  color: var(--color-text-muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Light Theme */
body.light-theme .breadcrumbs-section {
  background: #f5f5f5;
}

body.light-theme .breadcrumb-item {
  color: #666;
}

body.light-theme .breadcrumb-item a {
  color: #333;
}

body.light-theme .breadcrumb-item.active {
  color: var(--color-gold);
}

body.light-theme .product-hero {
  background: #fff;
}

body.light-theme .product-badge {
  background: var(--color-gold);
  color: #fff;
}

body.light-theme .product-hero-content h1 {
  color: #1a1a1a;
}

body.light-theme .spec-item {
  background: #f9f9f9;
  border-color: #e0e0e0;
}

body.light-theme .spec-item strong {
  color: #1a1a1a;
}

body.light-theme .spec-item span {
  color: #666;
}

body.light-theme .floor-plan-card {
  background: #fff;
  border-color: #e0e0e0;
}

body.light-theme .floor-plan-content h3 {
  color: var(--color-gold);
}

body.light-theme .floor-plan-content > p {
  color: #666;
}

body.light-theme .floor-plan-features li {
  border-bottom-color: #e0e0e0;
  color: #333;
}

body.light-theme .tech-spec-card {
  background: #fff;
  border-color: rgba(201, 169, 106, 0.3);
}

body.light-theme .tech-spec-card li {
  border-bottom-color: #e0e0e0;
  color: #666;
}

body.light-theme .tech-spec-card strong {
  color: #1a1a1a;
}

body.light-theme .product-hero ~ * .timeline-content {
  background: #fff;
  border-color: #e0e0e0;
}

body.light-theme .product-hero ~ * .timeline-content h3 {
  color: var(--color-gold);
}

body.light-theme .product-hero ~ * .timeline-content p {
  color: #666;
}

/* Product Video Section */
.product-video-wrapper {
  display: flex;
  justify-content: center;
  margin: 0 auto;
}

.product-video-wrapper iframe {
  border-radius: 12px;
  max-width: 100%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

body.light-theme .product-video-wrapper iframe {
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

body.light-theme .product-video-section {
  background: #f5f5f5 !important;
}

/* Responsive */
@media (max-width: 992px) {
  .product-hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .product-quick-specs {
    grid-template-columns: 1fr;
  }

  .floor-plans-grid,
  .tech-specs-grid {
    grid-template-columns: 1fr;
  }

  .product-cta-buttons {
    flex-direction: column;
  }

  .product-cta-buttons .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .product-hero-content h1 {
    font-size: 1.6rem;
  }

  .product-subtitle {
    font-size: 1.2rem;
  }

  .price-amount {
    font-size: 2rem;
  }
}
