/* ABHITA product page — sharing, related, gallery, FAQ, discovery polish */

/* —— Share —— */
.product-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 8px 0 10px;
}

.product-title-row .product-title {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
}

.abhita-product-share-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 99px;
  border: 1px solid var(--rim, #253045);
  background: var(--s3, #182035);
  color: var(--t2, #8fa0c0);
  font-family: var(--mono, monospace);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.abhita-product-share-btn:hover {
  border-color: var(--cyan, #00e5ff);
  color: var(--cyan, #00e5ff);
}

.abhita-product-share-ico {
  font-size: 13px;
  line-height: 1;
}

.abhita-share-sheet {
  position: fixed;
  inset: 0;
  z-index: 5200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}

.abhita-share-sheet[hidden] {
  display: none !important;
}

.abhita-share-sheet:not([hidden]) {
  pointer-events: auto;
}

.abhita-share-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.abhita-share-sheet-panel {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  background: var(--s2, #121a28);
  border: 1px solid var(--rim, #253045);
  border-radius: 16px 16px 0 0;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.45);
  animation: abhitaShareUp 0.22s ease;
}

@media (min-width: 640px) {
  .abhita-share-sheet {
    align-items: center;
    padding: 20px;
  }
  .abhita-share-sheet-panel {
    border-radius: 16px;
    max-width: 360px;
  }
}

@keyframes abhitaShareUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.abhita-share-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.abhita-share-sheet-head h3 {
  font-family: var(--mono, monospace);
  font-size: 12px;
  color: var(--t2, #8fa0c0);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.abhita-share-sheet-close {
  border: 0;
  background: transparent;
  color: var(--t2, #8fa0c0);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}

.abhita-share-sheet-actions {
  display: grid;
  gap: 8px;
}

.abhita-share-action {
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--rim, #253045);
  background: var(--s3, #182035);
  color: var(--text, #edf1ff);
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
}

.abhita-share-action:hover {
  border-color: var(--lime, #b8ff00);
}

.abhita-share-toast {
  position: fixed;
  left: 50%;
  bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%) translateY(8px);
  z-index: 5300;
  max-width: min(92vw, 360px);
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(18, 26, 40, 0.96);
  border: 1px solid var(--rim, #253045);
  color: var(--text, #edf1ff);
  font-size: 13px;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}

.abhita-share-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

body.abhita-share-open {
  overflow: hidden;
}

body.sticky-cta-active .abhita-share-toast.is-visible {
  bottom: calc(108px + env(safe-area-inset-bottom, 0px));
}

/* —— Hero specs / swatches —— */
.specs-row--swatches {
  gap: 10px;
}

.spec-swatch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 99px;
  background: var(--s3, #182035);
  border: 1px solid var(--rim, #253045);
  font-size: 12px;
}

.spec-swatch-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.spec-swatch strong {
  color: var(--text, #edf1ff);
  font-weight: 600;
}

/* —— Gallery —— */
.gallery-main {
  touch-action: pan-y pinch-zoom;
}

.gallery-swipe-hint {
  position: absolute;
  top: 10px;
  left: 10px;
  font-family: var(--mono, monospace);
  font-size: 9px;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  pointer-events: none;
  z-index: 2;
}

@media (min-width: 721px) {
  .gallery-swipe-hint {
    display: none;
  }
}

/* —— Related products —— */
.related-section .related-track-wrap {
  margin-top: 16px;
  overflow: hidden;
}

.related-track {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 640px) {
  .related-track {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 719px) {
  .related-track--carousel {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
    scrollbar-width: none;
  }
  .related-track--carousel::-webkit-scrollbar {
    display: none;
  }
  .related-track--carousel .related-card {
    flex: 0 0 42vw;
    max-width: 168px;
    scroll-snap-align: start;
  }
}

/* —— FAQ —— */
.prod-faq-list details {
  border-bottom: 1px solid var(--rim, #253045);
}

.prod-faq-list details:last-child {
  border-bottom: 0;
}

.prod-faq-q {
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.4;
  padding: 14px 0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.prod-faq-q::-webkit-details-marker {
  display: none;
}

.prod-faq-q::after {
  content: '+';
  color: var(--t3, #4a5a78);
  font-family: var(--mono, monospace);
  font-size: 14px;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.prod-faq-list details[open] .prod-faq-q::after {
  transform: rotate(45deg);
}

.prod-faq-a {
  margin: 0 0 14px;
  padding: 0 0 4px;
  color: var(--t2, #8fa0c0);
  font-size: 14px;
  line-height: 1.65;
  max-width: 62ch;
}

/* —— Story / trust —— */
.story-grid {
  display: grid;
  gap: 12px;
}

@media (min-width: 640px) {
  .story-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.story-card {
  padding: 16px 14px;
  border-radius: 14px;
  background: rgba(18, 26, 40, 0.72);
  border: 1px solid rgba(37, 48, 69, 0.65);
}

.story-card h3 {
  font-size: 13px;
  font-family: var(--mono, monospace);
  color: var(--cyan, #00e5ff);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.story-card p {
  margin: 0;
  font-size: 14px;
  color: var(--t2, #8fa0c0);
  line-height: 1.6;
}

.trust-brand--polish .trust-item {
  padding: 12px 0;
  border-bottom: 1px dashed rgba(37, 48, 69, 0.5);
}

.trust-brand--polish .trust-item:last-child {
  border-bottom: 0;
}

/* —— Typography rhythm (mobile) —— */
/* —— Fullscreen viewer —— */
.abhita-product-viewer {
  position: fixed;
  inset: 0;
  z-index: 5500;
  display: flex;
  align-items: center;
  justify-content: center;
}

.abhita-product-viewer[hidden] {
  display: none !important;
}

.abhita-viewer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 10, 0.94);
}

.abhita-viewer-panel {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0) env(safe-area-inset-bottom, 0)
    env(safe-area-inset-left, 0);
}

.abhita-viewer-stage {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 52px 56px;
}

.abhita-viewer-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.abhita-viewer-video {
  max-width: 100%;
  max-height: 85vh;
}

.abhita-viewer-close {
  position: absolute;
  top: calc(12px + env(safe-area-inset-top, 0px));
  right: calc(12px + env(safe-area-inset-right, 0px));
  z-index: 3;
  border: 0;
  background: rgba(18, 26, 40, 0.85);
  color: var(--text, #edf1ff);
  font-size: 28px;
  line-height: 1;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
}

.abhita-viewer-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  border: 0;
  background: rgba(18, 26, 40, 0.75);
  color: var(--text, #edf1ff);
  font-size: 28px;
  width: 44px;
  height: 56px;
  border-radius: 10px;
  cursor: pointer;
}

.abhita-viewer-nav--prev {
  left: calc(8px + env(safe-area-inset-left, 0px));
}

.abhita-viewer-nav--next {
  right: calc(8px + env(safe-area-inset-right, 0px));
}

.abhita-viewer-dots {
  position: absolute;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}

.abhita-viewer-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.abhita-viewer-dot.is-active {
  background: var(--lime, #b8ff00);
}

.abhita-viewer-counter {
  position: absolute;
  top: calc(16px + env(safe-area-inset-top, 0px));
  left: calc(16px + env(safe-area-inset-left, 0px));
  font-family: var(--mono, monospace);
  font-size: 11px;
  color: var(--t2, #8fa0c0);
  z-index: 3;
}

body.abhita-viewer-open {
  overflow: hidden;
}

body.sticky-cta-active.abhita-viewer-open .sticky-product-cta {
  display: none !important;
}

/* —— Review photos —— */
.review-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}

.review-photo-thumb {
  border: 1px solid var(--rim, #253045);
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
  width: 72px;
  height: 72px;
  cursor: pointer;
  background: var(--s3, #182035);
}

.review-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-title {
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 6px;
}

.related-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--t3, #4a5a78);
  font-family: var(--mono, monospace);
  font-size: 11px;
}

/* —— Dynamic timeline —— */
.abhita-safeux-timeline--steps {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: grid;
  gap: 4px;
}

.abhita-safeux-timeline--steps li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11px;
  color: var(--t2, #8fa0c0);
  line-height: 1.4;
}

.abhita-safeux-timeline--steps li::before {
  content: '•';
  color: var(--cyan, #00e5ff);
  flex-shrink: 0;
}

.abhita-safeux-timeline-step {
  font-family: var(--mono, monospace);
  letter-spacing: 0.03em;
}

/* —— Trust + category —— */
.abhita-trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 14px;
}

.abhita-trust-chip {
  font-size: 10px;
  font-family: var(--mono, monospace);
  color: var(--t3, #4a5a78);
  padding: 4px 9px;
  border-radius: 99px;
  border: 1px solid rgba(37, 48, 69, 0.45);
  background: rgba(13, 18, 25, 0.55);
  letter-spacing: 0.03em;
  box-shadow: none;
}

@media (max-width: 720px) {
  .abhita-trust-strip {
    margin-bottom: 12px;
  }
  .abhita-trust-chip {
    font-size: 9px;
    padding: 3px 8px;
  }
}

.abhita-category-link {
  margin-top: 8px;
  font-size: 13px;
}

.abhita-category-link-a {
  color: var(--cyan, #00e5ff);
  text-decoration: none;
  font-family: var(--mono, monospace);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.abhita-category-link-a:hover {
  color: var(--lime, #b8ff00);
}

.abhita-recent-section {
  margin-top: 0;
}

@media (max-width: 720px) {
  .abhita-viewer-nav {
    display: none;
  }
  .abhita-viewer-stage {
    padding: 40px 12px 48px;
  }
}

@media (max-width: 720px) {
  .prod-section-title {
    font-size: clamp(24px, 6vw, 32px);
    line-height: 1.08;
  }
  .prod-section-lead {
    font-size: 14px;
    line-height: 1.6;
  }
  .prod-section {
    margin: 36px 0;
  }
  .prod-section--primary {
    margin: 32px 0 40px;
  }
}
