/* Product Details Page Styles - Exact from Vite Original */
@import '../variables.css';

.product-page {
  max-width: 1440px;
  margin: 0 auto;
  padding: 40px 40px 20px;
  min-height: 100vh;
}

@media (max-width: 1024px) {
  .product-page {
    padding: 40px 20px 20px;
  }
}

/* ==========================================================================
   Hero & Viewer Section
   ========================================================================== */
.product-hero {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 80px;
  align-items: center;
}

@media (max-width: 1024px) {
  .product-hero {
    grid-template-columns: 1fr;
    gap: 60px;
  }
}

/* Viewer */
.product-viewer {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeUp 0.8s ease-out;
}

.product-viewer__display {
  width: 100%;
  max-width: 80vw;
  aspect-ratio: 4 / 3;
  background: #000;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid rgba(155, 61, 255, 0.1);
}

.product-viewer__display::before {
  content: '';
  position: absolute;
  width: 60%;
  height: 60%;
  background: #9B3DFF;
  filter: blur(80px);
  opacity: 0.15;
  z-index: 0;
  pointer-events: none;
  animation: pulseGlow 4s infinite;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 20px rgba(155, 61, 255, 0.2); }
  50% { box-shadow: 0 0 40px rgba(155, 61, 255, 0.5); }
  100% { box-shadow: 0 0 20px rgba(155, 61, 255, 0.2); }
}

.product-viewer__canvas-container {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  cursor: grab;
  z-index: 1;
}

.product-viewer__canvas-container:active {
  cursor: grabbing;
}

.product-viewer__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
  border-radius: 20px;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

.product-viewer__loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #9B3DFF;
  font-size: 14px;
  background: rgba(10, 10, 10, 0.7);
  z-index: 10;
  pointer-events: none;
}

.product-viewer__spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(155, 61, 255, 0.2);
  border-top-color: #9B3DFF;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Tabs */
.product-viewer__tabs {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  background: rgba(255, 255, 255, 0.05);
  padding: 8px;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 80vw;
  flex-wrap: wrap;
  justify-content: center;
}

.product-viewer__tab {
  background: transparent;
  color: #AAA;
  border: none;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-family: Arial, sans-serif;
}

.product-viewer__tab:hover {
  color: #FFF;
  background: rgba(255, 255, 255, 0.1);
}

.product-viewer__tab--active {
  background: #9B3DFF !important;
  color: #FFF !important;
}

/* Product Info */
.product-info {
  display: flex;
  flex-direction: column;
  animation: fadeUp 0.8s ease-out 0.2s backwards;
}

.product-info__badge {
  color: #9B3DFF;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.product-info__badge::before {
  content: '';
  width: 30px;
  height: 2px;
  background: #9B3DFF;
}

.product-info__title {
  font-size: 52px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
  background: linear-gradient(180deg, #FFFFFF 0%, #B0B0B0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  width: min-content;
  max-width: 100%;
}

@media (max-width: 1024px) {
  .product-info__title {
    font-size: 28px;
  }
}

.product-info__price {
  font-size: 32px;
  font-weight: 700;
  color: #9B3DFF;
  margin-top: 8px;
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .product-info__price {
    font-size: 28px;
  }
}

.product-info__desc {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 40px;
  font-weight: 300;
}

.product-info__specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 50px;
}

.spec-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s;
}

.spec-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.spec-card .label {
  font-size: 16px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.spec-card .value {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}

/* ==========================================================================
   Section Base & Benefits
   ========================================================================== */
.section-block {
  padding: 20px 0;
  max-width: 1440px;
  margin: 20px auto;
}

.section-block__header {
  font-size: 28px;
  margin-bottom: 60px;
  color: #fff;
  text-align: center;
  font-weight: 500;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

@media (max-width: 900px) {
  .benefits-grid {
    grid-template-columns: 1fr;
  }
}

.benefit-card {
  background: rgba(255, 255, 255, 0.03);
  padding: 40px;
  border-radius: 8px;
  transition: transform 0.3s;
}

.benefit-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.05);
}

.benefit-card h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: #fff;
}

.benefit-card p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  font-size: 18px;
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */
.accordion {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.accordion__item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.accordion__button {
  width: 100%;
  padding: 25px 0;
  text-align: left;
  background: none;
  border: none;
  color: #fff;
  gap: 3px;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: Arial, sans-serif;
  transition: color 0.2s;
}

.accordion__button:hover {
  color: #9B3DFF;
}

.accordion__icon {
  font-size: 22px;
  font-weight: 400;
  color: #fff;
  flex-shrink: 0;
  transition: color 0.2s;
}

.accordion__button:hover .accordion__icon {
  color: #9B3DFF;
}

.accordion__item--open .accordion__button,
.accordion__item--open .accordion__icon {
  color: #9B3DFF;
}

.accordion__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out, opacity 0.3s;
  opacity: 0;
}

.accordion__item--open .accordion__content {
  max-height: 500px;
  opacity: 1;
}

.accordion__content p {
  padding-bottom: 25px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  font-size: 18px;
}

/* ==========================================================================
   Order / Form Section
   ========================================================================== */
.form-card {
  max-width: 800px;
  margin: 0 auto 100px;
  background: #0e0e0e;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.order-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.order-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 600px) {
  .order-form__row {
    grid-template-columns: 1fr;
  }
}

.order-form__group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.order-form__label {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.5);
}

.order-form__input,
.order-form__textarea {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 14px 18px;
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  transition: all 0.2s ease;
}

.order-form__input:focus,
.order-form__textarea:focus {
  outline: none;
  border-color: #9B3DFF;
  background: rgba(155, 61, 255, 0.05);
  box-shadow: 0 0 15px rgba(155, 61, 255, 0.2);
}

.order-form__submit {
  width: 100%;
  margin-top: 10px;
}

/* Captcha Placeholder & Container */
.order-form__captcha {
  margin-top: 6px;
  margin-bottom: 10px;
}

.captcha-box {
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 340px;
  user-select: none;
  transition: border-color 0.2s;
  cursor: pointer;
}

.captcha-box:hover {
  border-color: rgba(155, 61, 255, 0.4);
}

.captcha-box__left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.captcha-box__checkbox {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.captcha-box.is-checked .captcha-box__checkbox {
  background: #9B3DFF;
  border-color: #9B3DFF;
}

.captcha-box__check-icon {
  display: none;
  color: #fff;
}

.captcha-box.is-checked .captcha-box__check-icon {
  display: block;
}

.captcha-box__label {
  font-size: 14px;
  font-family: Arial, sans-serif;
  color: #fff;
  font-weight: 500;
}

.captcha-box__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  opacity: 0.7;
}

.captcha-box__brand-icon {
  width: 24px;
  height: 24px;
}

.captcha-box__brand-text {
  font-size: 9px;
  font-family: Arial, sans-serif;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.captcha-box__status {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 6px;
  font-family: Arial, sans-serif;
}
