/* ── Product show page ────────────────────────────────────────────── */

/* Image gallery / slider */
.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.product-gallery-main {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f5f5f5;
  overflow: hidden;
  position: relative;
}

.product-gallery-main-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.product-gallery-thumbs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: thin;
  scrollbar-color: #ddd transparent;
}

.product-gallery-thumbs::-webkit-scrollbar {
  height: 4px;
}

.product-gallery-thumbs::-webkit-scrollbar-thumb {
  background: #ddd;
}

.product-gallery-thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  flex-shrink: 0;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.65;
  transition: opacity 0.15s, border-color 0.15s;
}

.product-gallery-thumb:hover {
  opacity: 0.85;
}

.product-gallery-thumb.active {
  border-color: #111;
  opacity: 1;
}

/* Price fallback */
.product-price--soon,
.product-show-price--soon {
  color: #aaa;
  font-style: italic;
}



.product-show {
  padding-top: 2.5rem;
  padding-bottom: 4rem;
}

.product-layout {
  gap: 0;
}

/* Image column */
.product-image-col {
  padding-right: 2rem;
  margin-bottom: 2rem;
}

.product-show-image-wrap {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #f5f5f5;
  overflow: hidden;
}

.product-show-image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e8e8e8 0%, #f5f5f5 50%, #e8e8e8 100%);
}

/* Info column */
.product-info-col {
  padding-left: 1rem;
}

.product-meta-tag {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 0.75rem;
}

.product-show-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: #111;
  line-height: 1.25;
  margin-bottom: 0.6rem;
}

.product-show-price {
  font-size: 1.4rem;
  font-weight: 500;
  color: #111;
  margin-bottom: 1.75rem;
}

/* Variant selectors */
.variant-group {
  margin-bottom: 1.25rem;
}

.variant-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 0.5rem;
}

.variant-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.variant-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.9rem;
  border: 1px solid #ddd;
  font-size: 0.825rem;
  color: #444;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.variant-chip:hover {
  border-color: #111;
  color: #111;
}

.variant-chip.selected,
.variant-chip:has(input:checked) {
  border-color: #111;
  color: #111;
  font-weight: 500;
}

.variant-chip.unavailable {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.variant-radio {
  display: none;
}

/* Add to cart */
.add-to-cart-wrap {
  margin-top: 1.75rem;
  margin-bottom: 2rem;
}

.btn-add-to-cart {
  width: 100%;
  padding: 0.85rem 1.5rem;
  background: #111;
  color: #fff;
  border: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-add-to-cart:hover {
  background: #333;
}

/* Description */
.product-description {
  border-top: 1px solid #ebebeb;
  padding-top: 1.5rem;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #555;
  line-height: 1.7;
}

.product-orientation {
  font-size: 0.8rem;
  color: #aaa;
  margin-top: 1rem;
}

/* Back link */
.product-back {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid #ebebeb;
}

.back-link {
  font-size: 0.85rem;
  color: #888;
  text-decoration: none;
  letter-spacing: 0.03em;
}

.back-link:hover {
  color: #111;
}

/* Mobile */
@media (max-width: 767px) {
  .product-image-col {
    padding-right: 0;
  }

  .product-info-col {
    padding-left: 0;
    padding-top: 1.5rem;
  }

  .product-show-title {
    font-size: 1.4rem;
  }
}

/* ── Phase 3: confidence bullets / FAQ / shipping snippet ────────── */
.product-confidence {
  margin: 1.5rem 0 0;
  padding: 1rem 1.1rem;
  border: 1px solid #eee;
  border-radius: 10px;
  background: #fafafa;
}
.product-confidence-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
}
.product-confidence-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: #222;
}
.product-confidence-icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #111;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
}

.product-shipping-snippet {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: #444;
}
.product-shipping-list { margin: 0; padding: 0; }
.product-shipping-row {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  border-bottom: 1px solid #eee;
}
.product-shipping-row dt { font-weight: 500; color: #111; margin: 0; }
.product-shipping-row dd { margin: 0; text-align: right; color: #555; }
.product-shipping-row:last-child { border-bottom: none; }

.product-faq {
  margin: 2rem 0 0;
  border-top: 1px solid #eee;
  padding-top: 1.25rem;
}
.product-faq-heading {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #111;
  margin-bottom: 0.75rem;
}
.product-faq-item {
  border-bottom: 1px solid #eee;
  padding: 0.6rem 0;
}
.product-faq-q {
  font-weight: 500;
  cursor: pointer;
  font-size: 0.95rem;
  color: #111;
  list-style: none;
}
.product-faq-q::-webkit-details-marker { display: none; }
.product-faq-q::before {
  content: "+";
  display: inline-block;
  width: 18px;
  font-weight: 600;
  color: #888;
}
details[open] .product-faq-q::before { content: "−"; }
.product-faq-a {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #444;
  line-height: 1.55;
  padding-left: 18px;
}

/* ── Phase 5 B — sticky mobile add-to-cart bar ─────────────────────
   Hidden on desktop. Pure HTML5 form="..." attribute — no JS. */
.sticky-mobile-cta { display: none; }

@media (max-width: 575.98px) {
  .sticky-mobile-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0.85rem calc(env(safe-area-inset-bottom, 0) + 0.55rem);
    background: #fff;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -6px 16px rgba(0,0,0,0.06);
  }
  .sticky-mobile-cta-meta { flex: 1; min-width: 0; }
  .sticky-mobile-cta-price {
    font-size: 0.95rem; font-weight: 600; color: #111;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .sticky-mobile-cta-secure { font-size: 0.7rem; color: #888; }
  .sticky-mobile-cta-btn {
    padding: 0.65rem 1.1rem;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    min-height: 44px;
  }
  .sticky-mobile-cta-btn:active { opacity: 0.85; }

  /* Pad the page bottom so the sticky bar doesn't cover the last content. */
  .product-show { padding-bottom: 72px; }
}
