/* =====================================================================
   Home · Details — product page
   Quiet, Apple-style layout. Keeps legacy .gi-* class names so the
   page's JS (toggleLike / toggleDislike / toggleBookmark, bell
   subscriptions, review lightbox) keeps working unchanged.
   ===================================================================== */

:root {
  --hd-bg: #fbfbfd;
  --hd-surface: #ffffff;
  --hd-surface-alt: #f5f5f7;
  --hd-ink: #1d1d1f;
  --hd-ink-2: #4b4b4f;
  --hd-ink-3: #6e6e73;
  --hd-ink-4: #86868b;
  --hd-hairline: rgba(0, 0, 0, 0.09);
  --hd-hairline-soft: rgba(0, 0, 0, 0.05);
  --hd-accent: #0066cc;
  --hd-accent-ink: #004e9a;
  --hd-accent-soft: rgba(0, 102, 204, 0.08);
  --hd-positive: #1d7a3d;
  --hd-positive-soft: rgba(29, 122, 61, 0.10);
  --hd-danger: #e30613;
  --hd-radius-lg: 18px;
  --hd-radius-md: 12px;
  --hd-radius-sm: 8px;
  --hd-ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* --- Page shell ----------------------------------------------------- */

.gi-page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 32px 160px;
  background: var(--hd-bg);
  color: var(--hd-ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.gi-page .badge.bg-success { display: none !important; }

/* --- Hero ----------------------------------------------------------- */

.gi-page__hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: start;
  margin-bottom: 80px;
}

/* --- Gallery -------------------------------------------------------- */

.gi-gallery {
  position: sticky;
  top: 32px;
}

.gi-gallery__tag {
  margin-bottom: 16px;
}

.gi-gallery__tag-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--hd-ink-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gi-gallery__tag-text i { font-size: 0.625rem; opacity: 0.7; }

.gi-gallery__main {
  background: var(--hd-surface);
  border-radius: var(--hd-radius-lg);
  overflow: hidden;
  border: 1px solid var(--hd-hairline-soft);
}

.gi-gallery__empty {
  min-height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hd-ink-4);
  flex-direction: column;
  gap: 10px;
  background: var(--hd-surface-alt);
}

.gi-gallery__empty i { font-size: 3rem; opacity: 0.4; }
.gi-gallery__empty span { font-size: 0.875rem; font-weight: 500; }

/* Gallery CTA wrapper is retained to avoid breaking the partial, but
   hidden on desktop — the primary CTA now lives in the right column. */
.gi-gallery__cta-wrapper { display: none; }

/* The media stage brings its own black, rounded frame, so the generic card
   chrome around it would only double up. */
.gi-gallery__main--stage {
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
}

/* --- Media stage ----------------------------------------------------
   Web port of the mobile item-detail media (Chosen:
   features/home/components/OwnerReviews.tsx → ReviewMediaCarousel and
   ItemMediaCarouselItem). One square cover-fit slide at a time on a black
   frame, videos autoplaying with a play affordance until they start, and a
   dot rail whose active dot becomes a play pill on video slides.
   -------------------------------------------------------------------- */

.gi-media-stage {
  width: 100%;
  /* The app clamps the media box to 460pt tall; on the web the same intent is
     served by capping the square's width so it never becomes a wide banner. */
  max-width: 560px;
  margin-inline: auto;
}

.gi-media-stage__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 280px;
  overflow: hidden;
  border-radius: var(--hd-radius-lg);
  background: #111111;
  /* Horizontal drags are ours; vertical ones stay with the page. */
  touch-action: pan-y;
}

.gi-media-stage__track {
  display: flex;
  width: 100%;
  height: 100%;
  will-change: transform;
  transition: transform 0.38s var(--hd-ease);
}

.gi-media-stage.is-dragging .gi-media-stage__track { transition: none; }

.gi-media-stage__slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  background: #111111;
}

.gi-media-stage__media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gi-media-stage__image-btn {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  -webkit-appearance: none;
  appearance: none;
}

.gi-media-stage__image-btn:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: -4px;
}

/* Video affordance — dim wash, big play button and "Video" pill, all of which
   fade out once playback is under way. */
.gi-media-stage__scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.18);
  pointer-events: none;
}

.gi-media-stage__play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 72px;
  height: 72px;
  margin: -36px 0 0 -36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 0 4px; /* nudges the triangle to the optical centre */
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s var(--hd-ease), background 0.2s var(--hd-ease);
  z-index: 3;
}

.gi-media-stage__play:hover { background: rgba(0, 0, 0, 0.7); transform: scale(1.06); }
.gi-media-stage__play:focus-visible { outline: 2px solid #ffffff; outline-offset: 3px; }

.gi-media-stage__badge {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 980px;
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  pointer-events: none;
  z-index: 3;
}

.gi-media-stage__badge i { font-size: 0.5625rem; }

.gi-media-stage__slide.is-playing .gi-media-stage__scrim,
.gi-media-stage__slide.is-playing .gi-media-stage__play,
.gi-media-stage__slide.is-playing .gi-media-stage__badge {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--hd-ease), visibility 0s linear 0.25s;
}

/* Arrows — a pointer affordance the touch app does not need. */
.gi-media-stage__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #ffffff;
  font-size: 0.875rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s var(--hd-ease), background 0.2s var(--hd-ease);
  z-index: 4;
}

.gi-media-stage__nav--prev { inset-inline-start: 12px; }
.gi-media-stage__nav--next { inset-inline-end: 12px; }

.gi-media-stage:hover .gi-media-stage__nav,
.gi-media-stage__nav:focus-visible { opacity: 1; }

.gi-media-stage__nav:hover { background: rgba(0, 0, 0, 0.68); }
.gi-media-stage__nav:focus-visible { outline: 2px solid #ffffff; outline-offset: 2px; }
.gi-media-stage__nav[disabled] { opacity: 0 !important; pointer-events: none; }

/* Chevrons follow the writing direction, as the lightbox arrows do. */
[dir="rtl"] .gi-media-stage__nav i { transform: scaleX(-1); }

/* Dot rail */
.gi-media-stage__dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  padding: 8px;
  border-radius: 980px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: bottom 0.25s var(--hd-ease);
  z-index: 4;
}

/* The browser's own video controls own the bottom of a video slide — the app's
   controls fade out on their own, these do not. Sit above them. */
.gi-media-stage.has-video-slide .gi-media-stage__dots { bottom: 58px; }

.gi-media-stage__dot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 10px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.gi-media-stage__dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 980px;
  background: rgba(255, 255, 255, 0.45);
  transition: width 0.2s var(--hd-ease), height 0.2s var(--hd-ease), background 0.2s var(--hd-ease);
}

.gi-media-stage__dot.is-active::before { background: #ffffff; }

/* The active dot on a video slide grows into a play pill — the app's cue that
   this slide moves. */
.gi-media-stage__dot.is-video.is-active::before { width: 18px; height: 10px; }

.gi-media-stage__dot i {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.375rem;
  color: #111111;
  opacity: 0;
}

.gi-media-stage__dot.is-video.is-active i { opacity: 1; }
.gi-media-stage__dot:focus-visible { outline: 2px solid #ffffff; outline-offset: 1px; border-radius: 980px; }

/* Media source chip */
.gi-media-stage__source {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  z-index: 4;
}

.gi-media-stage__source-chip {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(20, 20, 22, 0.55);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  backdrop-filter: blur(10px) saturate(140%);
  font-size: 0.8125rem;
  cursor: pointer;
  transition: background 0.15s var(--hd-ease), transform 0.15s var(--hd-ease);
}

.gi-media-stage__source-chip:hover,
.gi-media-stage__source.is-open .gi-media-stage__source-chip {
  background: rgba(20, 20, 22, 0.78);
  transform: scale(1.05);
}

.gi-media-stage__source-chip:focus-visible { outline: 2px solid #ffffff; outline-offset: 2px; }

.gi-media-stage__source-pop {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  min-width: 220px;
  max-width: min(300px, calc(100vw - 2rem));
  padding: 12px 14px;
  border-radius: var(--hd-radius-md);
  background: var(--hd-surface);
  color: var(--hd-ink);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18), 0 2px 6px rgba(0, 0, 0, 0.08);
  font-size: 0.8125rem;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.15s var(--hd-ease), transform 0.15s var(--hd-ease);
  pointer-events: none;
}

.gi-media-stage__source-pop[hidden] { display: none; }

.gi-media-stage__source.is-open .gi-media-stage__source-pop {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.gi-media-stage__source-title { font-weight: 600; margin-bottom: 6px; }

.gi-media-stage__source-url {
  color: var(--hd-ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  direction: ltr;
  unicode-bidi: plaintext;
  margin-bottom: 8px;
}

.gi-media-stage__source-open {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 980px;
  background: var(--hd-accent);
  color: #ffffff;
  font-weight: 500;
  text-decoration: none;
}

.gi-media-stage__source-open:hover { background: var(--hd-accent-ink); color: #ffffff; }

/* --- Product info column ------------------------------------------- */

.gi-product { padding-top: 4px; }

.gi-product__owner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--hd-ink-3);
  margin-bottom: 16px;
}

.gi-product__owner a {
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.gi-product__owner-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--hd-hairline);
}

.gi-product__owner-placeholder {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--hd-surface-alt);
  color: var(--hd-ink-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
}

.gi-product__owner span {
  color: var(--hd-ink);
  font-weight: 600;
  font-size: 0.9375rem;
}

.gi-product__owner a:hover span {
  color: var(--hd-accent);
}

/* Lead recommendation — the reviewer's words open the column, ahead of
   anything the item says about itself. Set like a headline standfirst:
   larger and darker than the item description that follows. */
.gi-product__quote {
  margin: 0 0 24px;
}

.gi-product__quote-text {
  margin: 0;
  font-size: 1.3125rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.5;
  color: var(--hd-ink);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.gi-product__quote-text.is-clamped {
  display: -webkit-box;
  -webkit-line-clamp: 8;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gi-product__quote-author {
  margin-top: 8px;
  font-size: 0.875rem;
  color: var(--hd-ink-3);
}

.gi-product__quote-more {
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--hd-accent);
  cursor: pointer;
}

.gi-product__quote-more:hover { color: var(--hd-accent-ink); }

.gi-product__quote-more:focus-visible {
  outline: 2px solid var(--hd-accent);
  outline-offset: 2px;
}

.gi-product__title {
  font-size: 2.25rem;
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.1;
  color: var(--hd-ink);
  margin: 0 0 12px;
}

.gi-product__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8125rem;
  color: var(--hd-ink-4);
  margin: 0 0 28px;
}

.gi-product__meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.55;
}

.gi-product__meta i { font-size: 0.75rem; opacity: 0.75; }

/* Price ------------------------------------------------------------- */

.gi-product__price-section {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 14px;
  margin: 0 0 28px;
}

.gi-product__price-label {
  flex-basis: 100%;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hd-ink-4);
  margin-bottom: 2px;
}

.gi-product__price {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--hd-ink);
  line-height: 1.1;
}

.gi-product__price--regular {
  font-weight: 600;
}

.gi-product__price-original {
  font-size: 1rem;
  font-weight: 400;
  color: var(--hd-ink-4);
  text-decoration: line-through;
  text-decoration-color: var(--hd-ink-4);
}

.gi-product__discount-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--hd-positive-soft);
  color: var(--hd-positive);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.01em;
}

.gi-product__discount-badge i { font-size: 0.625rem; }

/* Description ------------------------------------------------------- */

.gi-product__description {
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--hd-ink-2);
  margin: 0 0 32px;
}

/* Primary CTA (moved into right column) ----------------------------- */

.gi-product__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 28px;
  background: var(--hd-accent);
  color: #ffffff;
  border-radius: 980px;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s var(--hd-ease), transform 0.15s var(--hd-ease);
  margin-bottom: 20px;
}

.gi-product__cta:hover {
  background: var(--hd-accent-ink);
  color: #ffffff;
  text-decoration: none;
}

.gi-product__cta:active { transform: scale(0.99); }

.gi-product__cta i { font-size: 0.875rem; }

/* --- Actions container -------------------------------------------- */

.gi-product__actions {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 0 0 8px;
}

/* --- Group 1: Reactions toolbar (like / dislike / save) ----------- */

.gi-product__reactions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: var(--hd-surface-alt);
  border-radius: 980px;
  align-self: flex-start;
}

.gi-reaction-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding-block: 0;
  padding-inline: 16px;
  background: transparent;
  border: none;
  border-radius: 980px;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--hd-ink-2);
  cursor: pointer;
  transition:
    background 0.2s var(--hd-ease),
    color 0.2s var(--hd-ease),
    transform 0.15s var(--hd-ease);
}

.gi-reaction-btn:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--hd-ink);
}

.gi-reaction-btn:active { transform: scale(0.96); }

.gi-reaction-btn i {
  font-size: 0.9375rem;
  transition: transform 0.2s var(--hd-ease), color 0.2s var(--hd-ease);
}

.gi-reaction-btn.active {
  background: var(--hd-surface);
  color: var(--hd-ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.gi-reaction-btn--like.active { color: var(--hd-danger); }
.gi-reaction-btn--like.active i { color: var(--hd-danger); transform: scale(1.08); }

.gi-reaction-btn--dislike.active { color: var(--hd-ink); }

.gi-reaction-btn--bookmark.active { color: var(--hd-accent); }
.gi-reaction-btn--bookmark.active i { color: var(--hd-accent); }

/* --- Group 2: Notifications (quiet card) -------------------------- */

.gi-product__notify {
  padding-block: 16px;
  padding-inline: 18px;
  background: var(--hd-surface);
  border: 1px solid var(--hd-hairline-soft);
  border-radius: var(--hd-radius-md);
}

.gi-product__notify-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--hd-ink-3);
  letter-spacing: 0.01em;
  margin-bottom: 10px;
}

.gi-product__notify-header i {
  font-size: 0.8125rem;
  color: var(--hd-ink-3);
}

.gi-product__notify-options {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gi-notify-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding-block: 10px;
  padding-inline: 4px;
  background: transparent;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--hd-ink);
  text-align: start;
  cursor: pointer;
  transition: background 0.2s var(--hd-ease);
}

.gi-notify-btn:hover { background: var(--hd-hairline-soft); }

.gi-notify-btn__text { flex: 1 1 auto; }

.gi-notify-btn__check {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--hd-hairline);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  transition: background 0.2s var(--hd-ease), border-color 0.2s var(--hd-ease);
}

.gi-notify-btn__check i {
  font-size: 0.6875rem;
  color: #ffffff;
  opacity: 0;
  transition: opacity 0.15s var(--hd-ease);
}

.gi-notify-btn.is-subscribed .gi-notify-btn__check {
  background: var(--hd-accent);
  border-color: var(--hd-accent);
  animation: hd-bell 0.6s ease-out;
}

.gi-notify-btn.is-subscribed .gi-notify-btn__check i { opacity: 1; }

@keyframes hd-bell {
  0%   { transform: rotate(0); }
  20%  { transform: rotate(-14deg); }
  40%  { transform: rotate(11deg); }
  60%  { transform: rotate(-7deg); }
  80%  { transform: rotate(4deg); }
  100% { transform: rotate(0); }
}

/* --- Group 3: Owner QR code (quiet card) -------------------------- */

.gi-product__qr {
  padding-block: 16px;
  padding-inline: 18px;
  background: var(--hd-surface);
  border: 1px solid var(--hd-hairline-soft);
  border-radius: var(--hd-radius-md);
}

.gi-product__qr-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--hd-ink-3);
  letter-spacing: 0.01em;
  margin-bottom: 12px;
}

.gi-product__qr-header i {
  font-size: 0.8125rem;
  color: var(--hd-ink-3);
}

.gi-product__qr-body {
  display: flex;
  align-items: center;
  gap: 16px;
}

.gi-qr-preview {
  flex: 0 0 auto;
  width: 120px;
  height: 120px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  background: #ffffff;
  border: 1px solid var(--hd-hairline-soft);
  border-radius: var(--hd-radius-sm, 10px);
}

.gi-qr-preview canvas {
  display: block;
  border-radius: 4px;
}

.gi-qr-info {
  flex: 1 1 auto;
  min-width: 0;
}

.gi-qr-hint {
  margin: 0 0 12px;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--hd-ink-2);
}

.gi-qr-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding-inline: 18px;
  background: var(--hd-accent);
  color: #ffffff;
  border: none;
  border-radius: 980px;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.2s var(--hd-ease), transform 0.15s var(--hd-ease);
}

.gi-qr-download-btn:hover { filter: brightness(0.94); }
.gi-qr-download-btn:active { transform: scale(0.97); }

.gi-qr-download-btn:disabled {
  opacity: 0.55;
  cursor: default;
}

.gi-qr-download-btn i { font-size: 0.875rem; }

/* --- Section scaffolding ------------------------------------------- */

.gi-section-title,
.gi-specs__title {
  font-size: 1.625rem;
  font-weight: 600;
  letter-spacing: -0.018em;
  color: var(--hd-ink);
  margin: 0;
}

.gi-specs,
.gi-reviews,
.gi-sections,
.gi-coupons {
  margin-bottom: 72px;
}

.gi-reviews__header,
.gi-sections__header,
.gi-specs__header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--hd-hairline);
}

/* Hide the legacy decorative bubbles next to section headers */
.gi-reviews__icon,
.gi-sections__icon { display: none; }

/* Undo the colored heading variants */
.gi-section-title--reviews,
.gi-section-title--product { color: var(--hd-ink); }

/* --- Specs — Apple-style highlights panel -------------------------- */
/* A hairline-gridded panel of stacked label/value cards.
   1px gaps on a hairline background produce crisp dividers between
   tiles without doubled borders. Each tile stacks a small uppercase
   label above a prominent value — same rhythm apple.com uses on its
   product highlight strips. */

.gi-specs__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--hd-hairline-soft);
  border: 1px solid var(--hd-hairline-soft);
  border-radius: var(--hd-radius-lg);
  overflow: hidden;
  box-shadow: none;
}

.gi-specs__item {
  flex: none;
  min-width: 0;
  max-width: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 10px;
  padding: 22px 24px;
  text-align: start;
  border: none;
  background: var(--hd-surface);
  transition: background 0.2s var(--hd-ease);
}

.gi-specs__item:hover { background: var(--hd-bg); }

/* Hide the decorative icon tiles entirely */
.gi-specs__icon { display: none; }

.gi-specs__label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hd-ink-4);
  margin: 0;
  line-height: 1;
}

.gi-specs__value {
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--hd-ink);
  margin: 0;
  letter-spacing: -0.012em;
  line-height: 1.3;
  min-width: 0;
  word-wrap: break-word;
}

.gi-specs__value a.hd-inline-link,
.gi-specs__value .hd-inline-link {
  color: var(--hd-accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--hd-ease);
}

.gi-specs__value a.hd-inline-link:hover,
.gi-specs__value .hd-inline-link:hover {
  color: var(--hd-accent-ink);
  border-bottom-color: currentColor;
  text-decoration: none;
}

/* --- Reviews ------------------------------------------------------- */

.gi-reviews {
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
}

/* Each card now carries a full media stage, so give it room: two columns on
   desktop instead of three narrow tiles. */
.gi-reviews__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 20px;
  align-items: start;
}

.gi-review {
  background: var(--hd-surface);
  border: 1px solid var(--hd-hairline-soft);
  border-radius: var(--hd-radius-md);
  padding: 24px;
  box-shadow: none;
  transition: border-color 0.2s var(--hd-ease),
              transform 0.2s var(--hd-ease);
}

.gi-review:hover {
  transform: none;
  border-color: var(--hd-hairline);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.gi-review__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.gi-review__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: none;
  border: 1px solid var(--hd-hairline-soft);
}

.gi-review__avatar-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--hd-surface-alt);
  color: var(--hd-ink-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9375rem;
  flex-shrink: 0;
  box-shadow: none;
}

.gi-review__name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--hd-ink);
  margin: 0;
}

.gi-review__content {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--hd-ink-2);
  margin: 0 0 16px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* The review's media renders in the same stage as the hero gallery — one
   square slide, autoplaying video, dot rail. Inside a card it fills the card's
   width instead of centring at the hero cap. */
.gi-review__stage {
  margin-bottom: 16px;
}

.gi-review__stage .gi-media-stage {
  max-width: none;
}

.gi-review__link {
  font-size: 0.875rem;
  color: var(--hd-accent);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s var(--hd-ease);
}

.gi-review__link:hover {
  color: var(--hd-accent-ink);
  text-decoration: none;
  gap: 10px;
}

.gi-review__link-arrow {
  font-size: 0.625rem;
  transition: transform 0.2s var(--hd-ease);
}

.gi-review__link:hover .gi-review__link-arrow { transform: translateX(3px); }

/* Add review CTA (influencer) */

.gi-add-review {
  text-align: start;
  margin-top: 24px;
}

.gi-add-review__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: transparent;
  color: var(--hd-accent);
  border: 1px solid var(--hd-accent);
  border-radius: 980px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s var(--hd-ease), color 0.2s var(--hd-ease);
}

.gi-add-review__btn:hover {
  background: var(--hd-accent);
  color: #ffffff;
  text-decoration: none;
}

.gi-add-review__btn i { font-size: 0.75rem; }

/* --- Sections (Learn more about product) --------------------------- */

.gi-sections__grid {
  display: grid;
  gap: 16px;
}

.gi-section-card {
  background: var(--hd-surface);
  border: 1px solid var(--hd-hairline-soft);
  border-radius: var(--hd-radius-md);
  overflow: hidden;
  box-shadow: none;
  transition: border-color 0.2s var(--hd-ease);
}

.gi-section-card:hover {
  transform: none;
  border-color: var(--hd-hairline);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.gi-section-card__header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--hd-hairline-soft);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--hd-ink);
  letter-spacing: -0.01em;
}

.gi-section-card__body {
  padding: 20px 24px 24px;
}

.gi-section-card__description {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--hd-ink-2);
  margin: 0 0 16px;
}

/* --- Coupons ------------------------------------------------------- */

.gi-coupons {
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
}

.gi-coupons__title {
  font-size: 1.625rem;
  font-weight: 600;
  letter-spacing: -0.018em;
  color: var(--hd-ink);
  margin: 0 0 20px;
  text-align: start;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--hd-hairline);
}

/* --- Lightbox (unchanged hook, refined visuals) -------------------- */

.gi-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.gi-lightbox.active { display: flex; }

.gi-lightbox__stage {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 90%;
  max-height: 90%;
}

.gi-lightbox__img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--hd-radius-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.gi-lightbox__close {
  position: absolute;
  top: 20px;
  inset-inline-end: 20px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  border-radius: 50%;
  color: #ffffff;
  font-size: 1.125rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s var(--hd-ease);
  z-index: 2;
}

.gi-lightbox__close:hover { background: rgba(255, 255, 255, 0.22); }

.gi-lightbox__close:focus-visible,
.gi-lightbox__nav:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

/* Prev / next navigation */
.gi-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  border-radius: 50%;
  color: #ffffff;
  font-size: 1.125rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s var(--hd-ease);
  z-index: 2;
}

.gi-lightbox__nav:hover { background: rgba(255, 255, 255, 0.22); }

.gi-lightbox__nav--prev { inset-inline-start: 20px; }
.gi-lightbox__nav--next { inset-inline-end: 20px; }

/* Chevrons follow the writing direction */
[dir="rtl"] .gi-lightbox__nav i { transform: scaleX(-1); }

.gi-lightbox__counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 14px;
  border-radius: 980px;
  background: rgba(0, 0, 0, 0.5);
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  z-index: 2;
}

@media (max-width: 480px) {
  .gi-lightbox__nav {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  .gi-lightbox__nav--prev { inset-inline-start: 10px; }
  .gi-lightbox__nav--next { inset-inline-end: 10px; }
}

/* --- Sticky mobile CTA --------------------------------------------- */

.gi-sticky-cta {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-top: 1px solid var(--hd-hairline);
  z-index: 1000;
  align-items: center;
  gap: 12px;
}

.gi-sticky-cta__price {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  flex: 0 0 auto;
}

.gi-sticky-cta__price-now {
  font-size: 1rem;
  font-weight: 600;
  color: var(--hd-ink);
}

.gi-sticky-cta__price-was {
  font-size: 0.75rem;
  color: var(--hd-ink-4);
  text-decoration: line-through;
}

.gi-sticky-cta__btn {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 20px;
  background: var(--hd-accent);
  color: #ffffff;
  border-radius: 980px;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
  transition: background 0.2s var(--hd-ease);
}

.gi-sticky-cta__btn:hover,
.gi-sticky-cta__btn:focus {
  background: var(--hd-accent-ink);
  color: #ffffff;
  text-decoration: none;
}

.gi-sticky-cta__btn i { font-size: 0.75rem; }

/* --- Focus rings --------------------------------------------------- */

.gi-product__cta:focus-visible,
.gi-reaction-btn:focus-visible,
.gi-notify-btn:focus-visible,
.gi-add-review__btn:focus-visible,
.gi-sticky-cta__btn:focus-visible,
.hd-inline-link:focus-visible {
  outline: 2px solid var(--hd-accent);
  outline-offset: 2px;
}

/* --- Responsive ---------------------------------------------------- */

@media (max-width: 1024px) {
  .gi-page { padding: 32px 24px 140px; }

  .gi-page__hero {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 56px;
  }

  .gi-gallery { position: static; }

  .gi-product__title { font-size: 2rem; }
}

@media (max-width: 768px) {
  .gi-page { padding: 24px 16px 132px; }

  .gi-product__title { font-size: 1.6875rem; }
  .gi-product__quote-text { font-size: 1.1875rem; }
  .gi-product__price { font-size: 1.75rem; }

  .gi-section-title,
  .gi-specs__title,
  .gi-coupons__title { font-size: 1.375rem; }

  .gi-specs,
  .gi-reviews,
  .gi-sections,
  .gi-coupons { margin-bottom: 56px; }

  .gi-specs__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .gi-specs__item {
    padding: 18px 18px;
    gap: 8px;
  }

  .gi-specs__value { font-size: 1rem; }

  .gi-reviews__grid { grid-template-columns: 1fr; }

  .gi-product__actions { gap: 16px; }
  .gi-reaction-btn { height: 38px; padding-inline: 12px; font-size: 0.8125rem; }

  .gi-sticky-cta { display: flex; }
}

@media (max-width: 480px) {
  .gi-product__cta { padding: 13px 22px; }
  .gi-product__reactions { align-self: stretch; justify-content: space-between; }
  .gi-reaction-btn { flex: 1 1 0; padding-inline: 6px; }
  .gi-reaction-btn .gi-reaction-btn__label { display: none; }
  .gi-reaction-btn i { font-size: 1rem; }
  .gi-product__notify { padding: 14px; }

  .gi-specs__grid { grid-template-columns: 1fr; }
  .gi-specs__item { padding: 16px 18px; }
}

/* --- RTL ----------------------------------------------------------- */

[dir="rtl"] .gi-review__link { flex-direction: row-reverse; }
[dir="rtl"] .gi-review__link-arrow { transform: scaleX(-1); }
[dir="rtl"] .gi-review__link:hover .gi-review__link-arrow {
  transform: scaleX(-1) translateX(3px);
}
