* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Lora", serif;
  color: #1f1f1f;
  background: #f6f4ef;
}

.product-detail-section {
  padding: 7rem 1rem 4rem;
}

.detail-container {
  max-width: 1320px;
  margin: 0 auto;
}

.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

/* Desktop Layout */
@media (min-width: 1024px) {
  .product-detail-layout {
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 420px);
    gap: 3rem;
  }
}

/* Galerie */
.product-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .product-gallery {
    grid-template-columns: 80px minmax(0, 1fr);
    align-items: start;
  }
}

.product-thumbs {
  display: flex;
  gap: 0.75rem;
  order: 2;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: thin;
}

@media (min-width: 768px) {
  .product-thumbs {
    order: 1;
    flex-direction: column;
    overflow: visible;
  }
}

.thumb-btn {
  flex: 0 0 72px;
  width: 72px;
  height: 92px;
  border: 1px solid transparent;
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: border-color 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
  opacity: 0.8;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.thumb-btn:hover,
.thumb-btn.active {
  border-color: #b58288;
  opacity: 1;
  transform: translateY(-1px);
}

.thumb-btn:focus,
.thumb-btn:focus-visible {
  outline: none;
  box-shadow: none;
}

.thumb-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-main-image-wrap {
  order: 1;
  position: relative;
  background: #ece7de;
  overflow: hidden;
  width: 100%;
  margin: 0;
}

@media (min-width: 768px) {
  .product-main-image-wrap {
    order: 2;
  }
}

@media (min-width: 1024px) {
  .product-main-image-wrap {
    max-width: 640px;
  }
}

.product-main-image {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-drag: none;
  user-select: none;
  cursor: zoom-in;
  transition: transform 0.35s ease;
}

.product-main-image:hover {
  transform: scale(1.01);
}

.product-main-image:focus,
.product-main-image:active {
  outline: none;
  background: transparent;
}

/* Edlere Pfeile */
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 1px solid rgba(90, 74, 60, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #3f342d;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 8px 24px rgba(40, 30, 20, 0.08);
}

.gallery-nav span {
  font-size: 1rem;
  line-height: 1;
  transform: translateY(-1px);
}

.gallery-nav:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(90, 74, 60, 0.18);
  box-shadow: 0 12px 30px rgba(40, 30, 20, 0.14);
}

.gallery-nav:active {
  transform: translateY(-50%) scale(0.96);
}

.gallery-nav:focus,
.gallery-nav:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(169, 108, 115, 0.14), 0 12px 30px rgba(40, 30, 20, 0.12);
}

.gallery-prev {
  left: 1rem;
}

.gallery-next {
  right: 1rem;
}

/* Rechte Spalte */
.product-info {
  padding-top: 0.5rem;
}

.product-eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8b7f74;
}

.product-title {
  margin: 0 0 1rem;
  font-family: "Playfair Display", serif;
  font-size: 1.65rem;
  line-height: 1.15;
  font-weight: 400;
}

.product-price {
  margin: 0 0 1.25rem;
  font-size: 1.35rem;
}

.product-subtitle {
  margin: 0 0 1.25rem;
  color: #5d574f;
  font-size: 1rem;
  line-height: 1.6;
}

.product-description {
  margin-bottom: 1.5rem;
}

.product-description p {
  margin: 0;
  color: #4f4a43;
  line-height: 1.8;
  font-size: 0.98rem;
}

.candle-description {
  white-space: pre-line;
}

.product-meta {
  margin-bottom: 2rem;
}

.meta-box {
  border: 1px solid #ddd5ca;
  background: #fbfaf7;
}

/* Button oben */
.meta-toggle {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 1rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font: inherit;
  color: #1f1f1f;
  cursor: pointer;
}

.meta-toggle span:first-child {
  font-size: 1rem;
  font-weight: 500;
}

/* Pfeil */
.meta-arrow {
  font-size: 1.2rem;
  line-height: 1;
  transition: transform 0.25s ease;
}

.meta-toggle[aria-expanded="true"] .meta-arrow {
  transform: rotate(180deg);
}

/* Inhalt geschlossen/offen */
.meta-panel {
  padding: 0 1.1rem 1rem;
  border-top: 1px solid #e7dfd4;
}

.meta-note {
  margin: 0 0 0.85rem;
  color: #5d574f;
  font-size: 0.92rem;
  line-height: 1.6;
}

.meta-panel ul {
  margin: 0;
  padding-left: 1.1rem;
  color: #4f4a43;
  line-height: 1.8;
  font-size: 0.95rem;
}


.product-actions {
  margin-top: 1rem;
}

.btn-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.4rem;
  min-width: 220px;
  border: 1px solid #a96c73;
  background: transparent;
  color: #8f4f57;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.25s ease;
}

.btn-contact:hover {
  background: #a96c73;
  color: #fff;
}

/* Mobile */
@media (max-width: 767px) {
  .product-detail-section {
    padding: 1.5rem 0 4rem;
  }

  .detail-container {
    max-width: 100%;
  }

  .product-main-image-wrap {
    width: 100%;
    border-radius: 0;
  }

  .product-info {
    padding: 0 1rem;
  }

  .btn-contact {
    width: 100%;
  }

  .gallery-nav {
    width: 42px;
    height: 42px;
  }

  .gallery-prev {
    left: 0.75rem;
  }

  .gallery-next {
    right: 0.75rem;
  }
}

/* Größere Screens */
@media (min-width: 768px) {
  .product-title {
    font-size: 2rem;
  }

  .product-price {
    font-size: 1.6rem;
  }
}

/* Lightbox */
.image-lightbox {
  position: fixed;
  inset: 0;
  background: #ffffff;
  display: none;
  z-index: 9999;
}

.image-lightbox.active {
  display: block;
}

.lightbox-inner {
  position: relative;
  width: 100vw;
  height: 100vh;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.lightbox-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  background: #ffffff;
  touch-action: auto;
}

/* Nur noch X sichtbar */
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(90, 74, 60, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: #2f2925;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  z-index: 10;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.lightbox-close:hover {
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
}

.lightbox-close:active {
  transform: scale(0.96);
}

.lightbox-close:focus,
.lightbox-close:focus-visible {
  outline: none;
}

@media (max-width: 768px) {
  .image-lightbox {
    padding: 0;
  }

  .lightbox-close {
    top: 0.75rem;
    right: 0.75rem;
    width: 42px;
    height: 42px;
  }
}