.product-title-section {
  text-align: center;
  margin-top: 6rem;
  margin-bottom: 2rem;
}

.table-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: #111;
}

.product-detail {
  padding: 4rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.product-detail-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.product-detail img {
  width: 100%;
  border-radius: 8px;
}

.product-info {
  background: #f9f9f9;
  padding: 2rem;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
}

.product-info h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.product-info p {
  font-size: 1rem;
  color: #444;
  margin-bottom: 1rem;
}

.product-info span {
  font-size: 1.2rem;
  font-weight: bold;
  color: #000;
}

.product-card span {
  display: block;
  margin-top: 0.5rem;
}

#product-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: cover;
  border-radius: 8px;
}

.product-detail-layout {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem;
}

.visuals {
  position: relative;
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 0;
}

.closeups {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 1rem;
}

.closeup-img {
  width: 25vw;
  height: 25vw;
  max-width: 500px;
  max-height: 250px;
  background-color: #f0f0f0;
  border-radius: 8px;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.closeup-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.closeup-block {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.closeup-title {
  color: #333;
  font-weight: 500;
  text-transform: none;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
}

.price-calculator {
  margin-top: 1.5rem;
  background: rgba(255, 255, 255, 0.2);
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  font-weight: 600;
  text-align: center;
  font-size: 1.2rem;
  backdrop-filter: blur(6px);
}


@media (min-width: 768px) {
  .product-detail-layout {
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
  }
}

/*Table configurator*/
.table-configurator {
  background: #f9f9f9;
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid #ddd;
  flex: 1;
  max-width: 400px;
  margin-left: 2rem;
}

.table-configurator h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.config-option {
  margin-bottom: 1rem;
}

.color-options {
  display: flex;
  gap: 1rem;
}

.color-btn {
  width: 40px;
  height: 40px;
  border: 2px solid #ccc;
  border-radius: 50%;
  background-size: cover;
  cursor: pointer;
}

.color-btn.active {
  position: relative;
  transform: scale(1.08);
  transition: all 0.25s ease;
  box-shadow: 0 0 0 3px #fff, 0 0 12px rgba(0, 0, 0, 0.4);
  outline: 2px solid #000;
}

.color-btn.active::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.6);
  animation: pulseRing 1s ease-out;
}

@keyframes pulseRing {
  from {
    opacity: 0.8;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(1.4);
  }
}

.color-btn:hover {
  transform: scale(1.05);
  transition: transform 0.15s ease-in-out;
}

/* Placeholder visuals */
.placeholder-container {
  width: 100%;
  height: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #777;
  background: #f7f7f7;
  border-radius: 8px;
  border: 1px dashed #ccc;
}

.placeholder-container img.placeholder-image {
  max-width: 200px;
  opacity: 0.5;
  margin-bottom: 1rem;
}

.placeholder-container .placeholder-text {
  font-size: 1.2rem;
  font-weight: 500;
  color: #555;
}

#product-model {
  width: 100%;
  max-width: 800px;
  height: 500px;
  margin: 0 auto;
  position: relative;
}

#product-model iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
  display: block;
}

#product-model img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  max-width: 800px;
  max-height: 500px;
  margin: 0 auto;
}

.view-3d-btn {
  position: absolute;
  top: 50%;
  right: 7rem;
  transform: translateY(-50%);
  background: #111;
  color: #fff;
  border: none;
  padding: 1.4rem 2.8rem;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.25rem;
  font-weight: 700;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 10;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.view-3d-btn:hover {
  background: #333;
  transform: translateY(-50%) scale(1.05);
}

@media (max-width: 1024px) {
  .view-3d-btn {
    position: static;
    transform: none;
    display: block;
    margin: 2rem auto 0 auto;
  }
}

/* Fullscreen modal */
.sketchfab-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  z-index: 5000;
  justify-content: center;
  align-items: center;
}

.sketchfab-modal.active {
  display: flex;
}

.sketchfab-modal iframe {
  width: 90%;
  height: 80%;
  border: none;
  border-radius: 8px;
}

.close-sketchfab {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-sketchfab:hover {
  color: #ccc;
}

.fade-image {
  opacity: 0;
  transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
  transform: scale(0.98);
}

.fade-image[style*="opacity: 1"] {
  transform: scale(1);
}

#product-visuals-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 800px;
  margin: 0;
}

@media (min-width: 1800px) {
  #product-visuals-container {
    margin-left: 8vw;
  }
}

@media (min-width: 1200px) and (max-width: 1799px) {
  #product-visuals-container {
    padding-left: 3rem;
  }
}

.offer-request-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 3000;
  backdrop-filter: blur(4px);
}

.offer-form {
  position: relative;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
  border-radius: 12px;
  padding: 2rem;
  max-width: 400px;
  width: 90%;
  color: #111;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.offer-form h3 {
  margin-bottom: 1.5rem;
  color: #111;
}

.offer-form input {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

.submit-offer-btn {
  background: linear-gradient(145deg, #fff, #e8e8e8);
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 0.8rem 1.5rem;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  font-weight: 600;
}

.submit-offer-btn:hover {
  background: linear-gradient(145deg, #f3f3f3, #ddd);
  transform: translateY(-2px);
}

.close-offer-modal {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #111;
  cursor: pointer;
}

.offer-btn {
  background: #111;
  color: #fff;
  padding: 1rem 2rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: transform 0.3s ease, background 0.3s ease;
}

.offer-request {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.offer-request .offer-btn {
  width: 100%;
  max-width: 250px;
  text-align: center;
}

.offer-btn:hover {
  background: #333;
  transform: translateY(-2px);
}

.thank-you-form {
  text-align: center;
  padding: 2.5rem 2rem;
}

.thank-you-form h3 {
  font-size: 1.8rem;
  color: #ccc;
  margin-bottom: 1rem;
}

.thank-you-form p {
  font-size: 1.1rem;
  color: #ccc;
  margin-bottom: 1.5rem;
}

#thank-you-ok {
  background: linear-gradient(145deg, #fff, #e8e8e8);
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

#thank-you-ok:hover {
  background: linear-gradient(145deg, #f2f2f2, #ddd);
  transform: translateY(-2px);
}

.thank-you-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 3000;
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.thank-you-modal.active {
  display: flex;
  opacity: 1;
}

#offer-request-modal {
  z-index: 3000;
}

#thank-you-modal {
  z-index: 4000;
}

/* ===== GDPR NOTICE ===== */

.gdpr-note {
  margin: 14px 0 12px;
  padding: 12px 14px;
  border-left: 3px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 6px;

  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.95);
}

.gdpr-note a {
  color: #ffffff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.gdpr-note a:hover {
  opacity: 0.8;
}

.gdpr-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;

  padding: 12px 14px;
  margin-bottom: 18px;

  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;

  font-size: 0.9rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.95);

  cursor: pointer;
}

.gdpr-checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  cursor: pointer;
  accent-color: #ffffff;
}

.gdpr-checkbox span {
  flex: 1;
}

.gdpr-checkbox input:invalid {
  outline: 2px solid rgba(255, 80, 80, 0.8);
  outline-offset: 2px;
}

.gdpr-note i {
  margin-right: 8px;
  opacity: 0.9;
}

@media (max-width: 480px) {
  .gdpr-note,
  .gdpr-checkbox {
    font-size: 0.95rem;
  }
}

@keyframes zoom {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

 @media (max-width: 600px) {
  .closeups {
    flex-direction: column;
    align-items: center;
  }

  .closeup-img {
    width: 60vw;
    height: 60vw;
  }
}

@media (max-width: 768px) {
  .submit-offer-btn {
    color: #111 !important;
  }
}

@media (max-width: 768px) {
  .product-detail-layout {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  #product-model { width: 100%; height: auto; }
  .table-configurator { width: 100%; max-width: 600px; margin: 0 auto; }
  .closeups { width: 100%; justify-content: center; }
}

/* 1400px+ — Slight expansion only */
@media (min-width: 1400px) {
  .product-detail {
    max-width: 1200px;
  }

  #product-model {
    max-width: 900px;
  }

  .closeup-img {
    max-width: 420px;
    max-height: 280px;
  }
}

/* 1600px+ — Gentle breathing room */
@media (min-width: 1600px) {
  .product-detail {
    max-width: 1300px;
  }

  .product-detail-layout {
    gap: 2.5rem;
  }

  #product-model {
    max-width: 950px;
  }
}

/* 1800px+ — Centered but wider */
@media (min-width: 1800px) {
  .product-detail {
    max-width: 1400px;
  }

  #product-visuals-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  #product-model {
    max-width: 1000px;
    height: auto;
  }
}

/* 2000px+ — Ultra-wide screens, very soft adjustments */
@media (min-width: 2000px) {
  .product-detail {
    max-width: 1500px;
  }

  #product-visuals-container {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}
