/* Product Detail Page Styles */

/* Disable scroll snap on product pages */
.product-detail-page,
.product-detail-page * {
  scroll-snap-align: none !important;
  scroll-snap-stop: normal !important;
}

.product-detail-page {
  background: #0d0907;
  color: #fffff0;
  width: 100%;
  padding-top: 0; /* Padding handled by body:not(.home-page) */
}

/* Product Not Found */
.product-not-found {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  min-height: 60vh;
}

.product-not-found__inner {
  text-align: center;
  max-width: 600px;
}

.product-not-found__inner h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
  color: #fffff0;
}

.product-not-found__inner p {
  font-size: 1.1rem;
  color: rgba(255, 255, 240, 0.7);
  margin-bottom: 2rem;
}

/* Breadcrumb removed - using global breadcrumb component */

/* Hero Section */
.product-hero {
  padding: 4rem 2rem;
}

.product-hero__inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.product-hero__content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.product-hero__title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 400;
  color: #fffff0;
  margin: 0;
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.2;
}

.product-hero__description {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: rgba(255, 255, 240, 0.75);
  line-height: 1.6;
  margin: 0;
}

.product-hero__ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.product-hero__image {
  position: relative;
  width: 100%;
  padding-top: 75%; /* 4:3 aspect ratio */
  overflow: hidden;
  background: #0d0907;
  border-radius: 12px;
}

.product-hero__image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-hero__image-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to bottom, transparent, rgba(13, 9, 7, 0.8));
  pointer-events: none;
}

/* Content Sections */
.product-content {
  padding: 4rem 2rem;
  background: rgba(255, 255, 240, 0.01);
}

.product-content__inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.product-section {
  background: rgba(255, 255, 240, 0.04);
  border: 1px solid rgba(255, 255, 240, 0.08);
  border-radius: 18px;
  padding: 2.5rem;
}

.product-section__title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 600;
  color: #FCC300;
  margin: 0 0 1.5rem 0;
  font-family: 'Playfair Display', Georgia, serif;
}

.product-section__content {
  color: rgba(255, 255, 240, 0.85);
  line-height: 1.8;
  font-size: 1.05rem;
}

.product-section__content p {
  margin: 0 0 1.25rem 0;
}

.product-section__content p:last-child {
  margin-bottom: 0;
}

.product-section__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product-section__list li {
  color: rgba(255, 255, 240, 0.85);
  line-height: 1.8;
  font-size: 1.05rem;
  padding-left: 1.75rem;
  position: relative;
}

.product-section__list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #FCC300;
  font-weight: bold;
  font-size: 1.2em;
}

.product-section__list--numbered {
  list-style: decimal;
  padding-left: 1.75rem;
}

.product-section__list--numbered li {
  padding-left: 0.5rem;
}

.product-section__list--numbered li::before {
  display: none;
}

/* Gallery Section */
.product-gallery {
  padding: 4rem 2rem;
}

.product-gallery__inner {
  max-width: 1400px;
  margin: 0 auto;
}

.product-gallery__title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 600;
  color: #fffff0;
  margin: 0 0 2rem 0;
  text-align: center;
  font-family: 'Playfair Display', Georgia, serif;
}

.product-gallery__slider {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.product-gallery__arrow {
  background: rgba(255, 255, 240, 0.1);
  border: 1px solid rgba(255, 255, 240, 0.2);
  color: #fffff0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
  z-index: 2;
}

.product-gallery__arrow:hover:not(:disabled) {
  background: rgba(252, 195, 0, 0.2);
  border-color: #FCC300;
  color: #FCC300;
}

.product-gallery__arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.product-gallery__viewport {
  flex: 1;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

.product-gallery__viewport::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.product-gallery__track {
  display: flex;
  gap: 1.5rem;
  padding: 0.5rem 0;
}

.product-gallery__slide {
  flex: 0 0 auto;
  width: 400px;
  height: 300px;
  border-radius: 12px;
  overflow: hidden;
  background: #0d0907;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.product-gallery__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Inspiration Book Modal */
.inspiration-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.inspiration-modal[aria-hidden="false"] {
  display: flex;
}

.inspiration-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 9, 7, 0.95);
  backdrop-filter: blur(8px);
}

.inspiration-modal__content {
  position: relative;
  z-index: 1;
  background: #0d0907;
  border: 1px solid rgba(255, 255, 240, 0.2);
  border-radius: 18px;
  padding: 2rem;
  max-width: 1200px;
  max-height: 90vh;
  overflow-y: auto;
  width: 100%;
}

.inspiration-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 240, 0.1);
  border: 1px solid rgba(255, 255, 240, 0.2);
  color: #fffff0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 2;
}

.inspiration-modal__close:hover {
  background: rgba(252, 195, 0, 0.2);
  border-color: #FCC300;
  color: #FCC300;
}

.inspiration-modal__title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 600;
  color: #FCC300;
  margin: 0 0 2rem 0;
  text-align: center;
  font-family: 'Playfair Display', Georgia, serif;
}

.inspiration-modal__gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.inspiration-modal__image {
  border-radius: 12px;
  overflow: hidden;
  background: #0d0907;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.inspiration-modal__image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Button Styles (reuse from products page) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  font-family: inherit;
}

.btn span {
  position: relative;
  z-index: 2;
}

.btn-gold {
  background: #FCC300;
  color: #0d0907;
}

.btn-gold:hover {
  background: #0d0907;
  color: #fffff0;
  border-color: #FCC300;
}

.btn-outline-gold {
  background: transparent;
  color: #FCC300;
  border-color: #FCC300;
  position: relative;
  overflow: hidden;
}

.btn-outline-gold::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: #FCC300;
  transition: left 0.4s ease;
  z-index: 1;
}

.btn-outline-gold:hover {
  border-color: #FCC300;
  color: #0d0907;
}

.btn-outline-gold:hover::before {
  left: 0;
}

.btn-outline-gold span {
  position: relative;
  z-index: 2;
  transition: color 0.3s ease;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
  .product-hero__inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .product-hero__image {
    order: -1; /* Image first on mobile */
  }

  .product-hero__ctas {
    flex-direction: column;
  }

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

  .product-content__inner {
    gap: 2rem;
  }

  .product-section {
    padding: 2rem;
  }

  .product-gallery__slider {
    flex-direction: column;
  }

  .product-gallery__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
  }

  .product-gallery__arrow--left {
    left: 1rem;
  }

  .product-gallery__arrow--right {
    right: 1rem;
  }

  .product-gallery__slide {
    width: 100%;
    max-width: 100%;
  }

  .inspiration-modal__gallery {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .product-hero {
    padding: 3rem 1rem;
  }

  .product-content {
    padding: 3rem 1rem;
  }

  .product-gallery {
    padding: 3rem 1rem;
  }

  /* Breadcrumb removed - using global breadcrumb component */

  .product-section {
    padding: 1.5rem;
  }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(13, 9, 7, 0.95);
  backdrop-filter: blur(12px);
  padding: 2rem;
}

.lightbox[aria-hidden="false"] {
  display: flex;
}

.lightbox__close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: rgba(255, 255, 240, 0.1);
  border: 1px solid rgba(255, 255, 240, 0.2);
  color: #fffff0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 2;
  line-height: 1;
}

.lightbox__close:hover {
  background: rgba(252, 195, 0, 0.2);
  border-color: #FCC300;
  color: #FCC300;
}

.lightbox__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 240, 0.1);
  border: 1px solid rgba(255, 255, 240, 0.2);
  color: #fffff0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 2;
  line-height: 1;
}

.lightbox__arrow:hover:not(:disabled) {
  background: rgba(252, 195, 0, 0.2);
  border-color: #FCC300;
  color: #FCC300;
}

.lightbox__arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.lightbox__arrow--left {
  left: 2rem;
}

.lightbox__arrow--right {
  right: 2rem;
}

.lightbox__stage {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__img {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.lightbox__counter {
  position: absolute;
  bottom: -3rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 240, 0.8);
  font-size: 0.9rem;
  background: rgba(13, 9, 7, 0.7);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  backdrop-filter: blur(8px);
}

/* Lightbox trigger cursor */
.lightbox-trigger {
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.lightbox-trigger:hover {
  opacity: 0.9;
}

@media (max-width: 768px) {
  .lightbox {
    padding: 1rem;
  }

  .lightbox__close {
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }

  .lightbox__arrow {
    width: 44px;
    height: 44px;
    font-size: 1.5rem;
  }

  .lightbox__arrow--left {
    left: 1rem;
  }

  .lightbox__arrow--right {
    right: 1rem;
  }

  .lightbox__img {
    max-height: 85vh;
  }

  .lightbox__counter {
    bottom: -2.5rem;
    font-size: 0.85rem;
  }
}
