/* ================================================================
   Design 5 — Full-Width Gallery
   Immersive gallery slider + structured product details grid
   ================================================================ */

body.products-show_gallery {
  background: #0c0c0d;
}

.product-gallery-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

/* Back link */
.gallery-back {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 1.25rem 2rem 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: color 0.2s;
}

.gallery-back:hover { color: rgba(255, 255, 255, 0.8); }

/* ---- Gallery stage ---- */
.gallery-stage {
  position: relative;
  width: 100%;
  height: 420px;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  margin: 1rem 2rem 0;
  border: 1px solid #27272a;
}

.gallery-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.3s;
}

.gallery-stage img[hidden] {
  display: none;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.55);
  color: white;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  backdrop-filter: blur(6px);
}

.gallery-arrow:hover {
  background: rgba(0, 0, 0, 0.8);
  border-color: rgba(255, 255, 255, 0.25);
}

.gallery-arrow.prev { left: 1rem; }
.gallery-arrow.next { right: 1rem; }

.gallery-counter {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(0, 0, 0, 0.5);
  padding: 4px 14px;
  border-radius: 100px;
  backdrop-filter: blur(6px);
}

.gallery-thumb-strip {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  overflow-x: auto;
}

.gallery-thumb-strip img {
  width: 72px;
  height: 54px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.4;
  flex-shrink: 0;
  transition: all 0.2s;
}

.gallery-thumb-strip img:hover,
.gallery-thumb-strip img.active {
  opacity: 1;
  border-color: #6366f1;
}

/* ---- Product info grid ---- */
.gallery-info-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  padding: 2rem;
}

@media (max-width: 860px) {
  .gallery-info-grid {
    grid-template-columns: 1fr;
  }
  .gallery-stage {
    height: 280px;
    margin: 1rem 1rem 0;
    border-radius: 12px;
  }
  .gallery-thumb-strip { padding: 0.5rem 1rem; }
  .gallery-info-grid { padding: 1.5rem 1rem; }
}

/* Left column */
.gallery-main-info h1 {
  font-size: 1.75rem;
  font-weight: 800;
  color: #f1f1f3;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.gallery-main-info .gallery-game-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #818cf8;
  background: rgba(99, 102, 241, 0.1);
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}

.gallery-description {
  color: #a1a1aa;
  font-size: 0.9375rem;
  line-height: 1.8;
}

.gallery-description li { list-style: disc; margin-left: 1.25rem; padding: 3px 0; }
.gallery-description ul { margin-bottom: 1rem; }
.gallery-description h2,
.gallery-description h3 { color: #f1f1f3; font-size: 1.1rem; font-weight: 700; margin: 1.5rem 0 0.75rem; }

/* Highlights grid */
.gallery-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #27272a;
}

.gallery-highlight {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  padding: 0.75rem;
  background: #18181b;
  border-radius: 10px;
  border: 1px solid #27272a;
}

.gallery-highlight svg {
  flex-shrink: 0;
  margin-top: 2px;
  opacity: 0.5;
}

.gallery-highlight .gh-text {
  font-size: 0.8125rem;
  color: #d4d4d8;
}

.gallery-highlight .gh-label {
  font-size: 0.6875rem;
  color: #71717a;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Right column — purchase sidebar */
.gallery-purchase-sidebar {
  position: sticky;
  top: 80px;
}

.gallery-purchase-card {
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 16px;
  padding: 1.5rem;
}

.gallery-purchase-card .gpc-header {
  font-size: 1.125rem;
  font-weight: 700;
  color: #f1f1f3;
  margin-bottom: 1rem;
}

.gallery-variant-list {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin-bottom: 1rem;
}

.gallery-variant-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 0.875rem;
  border: 1px solid #27272a;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.8125rem;
  color: #d4d4d8;
  transition: all 0.2s;
}

.gallery-variant-option:hover {
  border-color: #3f3f46;
}

.gallery-variant-option.selected {
  border-color: #6366f1;
  background: rgba(99, 102, 241, 0.06);
  color: #f1f1f3;
}

.gallery-variant-option input[type="radio"] {
  accent-color: #6366f1;
}

.gallery-variant-option .gv-price {
  font-weight: 700;
  color: #4ade80;
}

.gallery-purchase-card label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #71717a;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}

.gallery-purchase-card input[type="email"],
.gallery-purchase-card input[type="text"] {
  width: 100%;
  padding: 0.625rem 0.75rem;
  background: #27272a;
  border: 1px solid #3f3f46;
  border-radius: 8px;
  color: #f1f1f3;
  font-size: 0.8125rem;
  margin-bottom: 0.75rem;
}

.gallery-purchase-card input:focus {
  outline: none;
  border-color: #6366f1;
}

.gallery-submit-btn {
  width: 100%;
  padding: 0.75rem;
  background: #6366f1;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.gallery-submit-btn:hover {
  background: #4f46e5;
}

.gallery-submit-btn img {
  height: 20px;
  vertical-align: middle;
}
