/* Product Detail Page Styles */

.product-page {
  padding-top: 20px;
  background: #ffffff;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
  font-size: 14px;
  color: #5f6368;
}

.breadcrumbs a:hover {
  color: #111111;
}

.breadcrumbs .sep {
  color: #d1d1d1;
}

.breadcrumbs .current {
  color: #111111;
  font-weight: 500;
}

/* Product Essential */
.product-essential {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  margin-bottom: 80px;
}

/* Gallery */
.product-gallery {
  position: relative;
  padding: 18px;
  border: 1px solid #eef1f6;
  border-radius: 16px;
  background: #f8fafc;
  box-shadow: 0 18px 60px rgba(20, 24, 31, 0.06);
}

.main-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 22px;
  background: #ffffff;
  border: 1px solid #eef1f6;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.main-image-wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.badge-360 {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.96);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid #eef1f6;
  box-shadow: 0 10px 26px rgba(16, 32, 57, 0.08);
  z-index: 5;
}

.zoom-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #eef1f6;
  box-shadow: 0 10px 26px rgba(16, 32, 57, 0.08);
  z-index: 5;
}

.zoom-btn img {
  width: 20px;
  height: 20px;
}

.thumb-carousel {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 12px;
  padding: 12px 12px;
  border: 1px solid #eef1f6;
  border-radius: 14px;
  background: #ffffff;
}

.thumb-list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 92px;
  gap: 14px;
  min-width: 0;
  overflow-x: auto;
  scroll-behavior: smooth;
  justify-content: center;
}

.thumb-list::-webkit-scrollbar {
  display: none;
}

.thumb {
  height: 64px;
  border: 1px solid #e6edf5;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: #f8fafc;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.thumb.active {
  border-color: #2e74ff;
  box-shadow: 0 0 0 1px rgba(46, 116, 255, 0.35);
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.carousel-nav {
  width: 40px;
  height: 40px;
  border: 1px solid #eef1f6;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #5f6368;
  font-size: 0;
  line-height: 0;
  transition: background 160ms ease, border-color 160ms ease, opacity 160ms ease;
}

.carousel-nav::before {
  font-size: 18px;
  line-height: 1;
  font-weight: 600;
  content: "\2039";
}

.carousel-nav.next::before {
  content: "\203A";
}

.carousel-nav:hover {
  background: #f5f5f7;
  border-color: #dfe1e5;
}

.carousel-nav:active {
  opacity: 0.78;
}

/* Info Section */
.product-info .eyebrow {
  color: #2e74ff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.product-info h1 {
  font-size: 36px;
  margin-bottom: 8px;
}

.product-info .subtitle {
  font-size: 18px;
  color: #5f6368;
  margin-bottom: 20px;
}

.product-info .description {
  font-size: 16px;
  line-height: 1.6;
  color: #3c4043;
  margin-bottom: 30px;
}

.price-box {
  margin-bottom: 30px;
}

.price-box .price {
  font-size: 32px;
  font-weight: 600;
  color: #2e74ff;
}

.config-group {
  margin-bottom: 25px;
}

.config-group .label {
  font-weight: 600;
  margin-bottom: 12px;
  font-size: 14px;
}

.swatches {
  display: flex;
  gap: 12px;
}

.swatch {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 1px #e8e8e8;
  cursor: pointer;
  position: relative;
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.swatch.active {
  box-shadow: 0 0 0 2px #2e74ff;
}

.swatch:hover {
  transform: translateY(-1px);
}

.swatch:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #2e74ff, 0 0 0 5px rgba(46, 116, 255, 0.18);
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.feature-tags span {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f5f5f7;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 13px;
  color: #5f6368;
}

.feature-tags img {
  width: 16px;
  height: 16px;
}

.purchase-actions {
  display: flex;
  gap: 15px;
  margin-bottom: 40px;
}

.quantity-selector {
  display: flex;
  align-items: center;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  height: 48px;
}

.qty-btn {
  width: 40px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.qty-input {
  width: 50px;
  border: none;
  text-align: center;
  font-weight: 600;
  -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

.purchase-actions .btn {
  height: 48px;
  flex: 1;
  font-weight: 600;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.add-to-cart {
  background: #2e74ff;
  color: #ffffff;
  border: none;
}

.add-to-cart img {
  filter: brightness(0) invert(1);
  width: 18px;
}

.buy-now {
  border: 1px solid #2e74ff;
  color: #2e74ff;
  background: transparent;
}

.trust-badges {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 25px 0;
  border-top: 1px solid #f1f1f1;
  border-bottom: 1px solid #f1f1f1;
  margin-bottom: 30px;
}

.trust-badges .badge {
  display: flex;
  align-items: center;
  gap: 12px;
}

.trust-badges img {
  width: 24px;
  height: 24px;
  opacity: 0.7;
}

.trust-badges span {
  font-size: 13px;
  color: #5f6368;
  font-weight: 500;
}

.meta-info {
  font-size: 13px;
  color: #9aa0a6;
}

.share-box {
  margin-top: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.share-box a {
  color: #5f6368;
}

/* Tabs */
.product-tabs {
  margin-bottom: 80px;
}

.tabs-nav {
  display: flex;
  justify-content: center;
  border-bottom: 1px solid #e8e8e8;
  margin-bottom: 40px;
}

.tab-btn {
  padding: 15px 40px;
  font-size: 16px;
  font-weight: 600;
  color: #5f6368;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.tab-btn.active {
  color: #111111;
  border-bottom-color: #111111;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.content-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 80px;
}

.content-block.reverse .text {
  order: 2;
}

.content-block.reverse .media {
  order: 1;
}

.content-block h3 {
  font-size: 32px;
  margin-bottom: 20px;
}

.content-block p {
  font-size: 16px;
  line-height: 1.7;
  color: #5f6368;
  margin-bottom: 20px;
}

.content-block .media img {
  width: 100%;
  border-radius: 12px;
}

.feature-list {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 30px;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #2e74ff;
}

.feature-list li::before {
  content: "✓";
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 80px;
}

.feature-card {
  text-align: center;
  padding: 30px 20px;
  background: #f8fafc;
  border-radius: 12px;
}

.feature-card img {
  width: 40px;
  height: 40px;
  margin: 0 auto 20px;
}

.feature-card h4 {
  font-size: 16px;
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 14px;
  color: #5f6368;
  line-height: 1.5;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
}

.spec-table td {
  padding: 15px 20px;
  border-bottom: 1px solid #f1f1f1;
  font-size: 14px;
}

.spec-table td:nth-child(odd) {
  color: #9aa0a6;
  width: 20%;
}

.spec-table td:nth-child(even) {
  font-weight: 500;
  width: 30%;
}

/* FAQ */
.faq-panel {
  position: relative;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 32px;
  box-shadow: none;
  overflow: hidden;
}

.faq-panel::before {
  content: none;
}

.faq-panel__header {
  max-width: 720px;
  margin-bottom: 24px;
}

.faq-panel__eyebrow {
  margin: 0 0 10px;
  color: #6b7280;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.faq-panel h2 {
  margin: 0 0 10px;
  font-size: 32px;
  line-height: 1.1;
  color: #111111;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.faq-panel__intro {
  margin: 0;
  max-width: 680px;
  color: #4b5563;
  font-size: 16px;
  line-height: 1.7;
}

.faq-list {
  display: grid;
  gap: 0;
  border-top: 1px solid #e5e7eb;
}

.faq-item {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  overflow: hidden;
  transition: background-color 180ms ease, border-color 180ms ease;
}

.faq-item:last-child {
  border-bottom: 0;
}

.faq-item:hover {
  border-color: #d1d5db;
  background: #fafafa;
  box-shadow: none;
}

.faq-item.is-open {
  background: #ffffff;
  border-color: #111111;
}

.faq-question {
  width: 100%;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
  color: #111111;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.45;
  background: transparent;
}

.faq-question span:first-child {
  flex: 1;
  min-width: 0;
}

.faq-question:focus-visible {
  outline: 2px solid #111111;
  outline-offset: 6px;
}

.faq-icon {
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 1.5px;
  background: #111111;
  transform: translate(-50%, -50%);
  transition: transform 180ms ease, opacity 180ms ease;
}

.faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item.is-open .faq-icon::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg) scaleX(0.2);
}

.faq-answer {
  height: 0;
  overflow: hidden;
  transition: height 220ms ease;
  will-change: height;
}

.faq-answer__inner {
  padding: 0 0 24px;
}

.faq-answer__inner p {
  margin: 0;
  max-width: 720px;
  color: #4b5563;
  font-size: 15px;
  line-height: 1.8;
}

@media (prefers-reduced-motion: reduce) {
  .faq-item,
  .faq-icon::before,
  .faq-icon::after,
  .faq-answer {
    transition: none;
  }
}

/* Scenarios */
.scenarios, .stands-out {
  margin-bottom: 80px;
}

.scenarios h3, .stands-out h3 {
  font-size: 28px;
  text-align: center;
  margin-bottom: 40px;
}

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.scenario-card {
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.scenario-card:hover {
  transform: translateY(-5px);
}

.scenario-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
}

.scenario-card h4 {
  padding: 20px 20px 10px;
  font-size: 16px;
}

.scenario-card p {
  padding: 0 20px 20px;
  font-size: 13px;
  color: #5f6368;
  line-height: 1.5;
}

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

.highlight-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 30px;
  background: #f8fafc;
  border-radius: 12px;
}

.highlight-item img {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.highlight-item h4 {
  font-size: 16px;
  margin-bottom: 8px;
}

.highlight-item p {
  font-size: 14px;
  color: #5f6368;
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 1024px) {
  .product-essential {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .content-block {
    gap: 40px;
  }
  
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .breadcrumbs {
    display: none;
  }

  .faq-list {
    gap: 12px;
  }

  .faq-panel {
    padding: 24px 18px;
    border-radius: 18px;
  }

  .faq-panel h2 {
    font-size: 28px;
  }

  .faq-panel__intro {
    font-size: 15px;
    line-height: 1.7;
  }

  .faq-question {
    padding: 18px 18px;
    gap: 16px;
    font-size: 15px;
  }

  .faq-answer__inner {
    padding: 0 18px 18px;
  }

  .faq-answer__inner p {
    font-size: 14px;
    line-height: 1.75;
  }

  .product-info h1 {
    font-size: 28px;
  }

  .purchase-actions {
    flex-wrap: wrap;
    gap: 12px;
  }

  .quantity-selector {
    flex: 0 0 140px;
  }

  .purchase-actions .btn {
    flex: 1 1 calc(50% - 12px);
    min-width: 160px;
  }
  
  .content-block {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .content-block.reverse .text {
    order: 1;
  }
  
  .content-block.reverse .media {
    order: 2;
  }
  
  .feature-list {
    justify-content: center;
  }
  
  .scenario-grid, .highlight-grid {
    grid-template-columns: 1fr;
  }
  
  .spec-table td {
    display: block;
    width: 100% !important;
  }
  
  .spec-table td:nth-child(odd) {
    padding-bottom: 0;
    border-bottom: none;
  }
}

@media (max-width: 480px) {
  .swatches {
    gap: 14px;
  }

  .swatch {
    width: 40px;
    height: 40px;
  }

  .purchase-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .quantity-selector {
    width: 100%;
    height: 48px;
    justify-content: space-between;
  }

  .qty-btn {
    width: 44px;
  }

  .qty-input {
    flex: 1;
    width: auto;
  }

  .purchase-actions .btn {
    width: 100%;
    min-width: 0;
    flex: none;
  }
  
  .tab-btn {
    padding: 10px 15px;
    font-size: 14px;
  }

  .thumb {
    height: 58px;
  }
  
  .thumb-list {
    grid-auto-columns: 82px;
    justify-content: start;
  }
}

/* Zoom Magnifier */
.main-image-container {
  position: relative;
  cursor: zoom-in;
}

#zoomLens {
  position: absolute;
  border: 1px solid #d4d4d4;
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.4);
  display: none;
  pointer-events: none;
}

#zoomResult {
  position: absolute;
  top: 0;
  left: 105%;
  width: 400px;
  height: 400px;
  border: 1px solid #d4d4d4;
  background-repeat: no-repeat;
  display: none;
  z-index: 100;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

@media (max-width: 1100px) {
  #zoomResult {
    display: none !important; /* Disable side zoom on smaller screens */
  }
}
