/* ============================================================
   STAND SMITHS — Add-on Styles
   Slideshow (product modal) + Custom Plaque add-on
   ============================================================ */

/* ── Product Card Photo (real image instead of SVG) ─────────── */
.product-card__img img,
.modal__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Modal Image Slideshow ───────────────────────────────────── */
.slideshow {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  max-width: min(65vh, 640px);
  max-height: min(65vh, 640px);
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card2);
}
.slideshow__track {
  display: flex;
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}
.slideshow__slide {
  flex: 0 0 100%;
  height: 100%;
}
.slideshow__slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.slideshow__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  border: 1px solid var(--border);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
  z-index: 2;
  backdrop-filter: blur(4px);
}
.slideshow__arrow:hover { background: var(--yellow); color: #000; border-color: var(--yellow); }
.slideshow__arrow--prev { left: 10px; }
.slideshow__arrow--next { right: 10px; }

.slideshow__dots {
  position: absolute; bottom: 10px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px;
  z-index: 2;
}
.slideshow__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}
.slideshow__dot.active { background: var(--yellow); width: 20px; border-radius: 4px; }

.slideshow__counter {
  position: absolute; top: 10px; right: 10px;
  background: rgba(0,0,0,0.6);
  color: var(--white);
  font-size: 0.72rem;
  font-family: var(--font-heading);
  padding: 4px 10px;
  border-radius: 20px;
  z-index: 2;
  backdrop-filter: blur(4px);
}

/* Thumbnail strip below main slideshow */
.slideshow__thumbs {
  display: flex; gap: 8px;
  margin-top: 10px;
}
.slideshow__thumb {
  width: 52px; height: 52px;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.6;
  transition: var(--transition);
  flex-shrink: 0;
}
.slideshow__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slideshow__thumb:hover { opacity: 0.9; }
.slideshow__thumb.active { border-color: var(--yellow); opacity: 1; }

/* ── Custom Plaque Add-on ─────────────────────────────────────── */
.plaque-addon {
  background: rgba(255,215,0,0.04);
  border: 1px solid rgba(255,215,0,0.25);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 20px;
}
.plaque-toggle {
  display: flex; align-items: center; gap: 12px;
  cursor: pointer;
  user-select: none;
}
.plaque-toggle input[type="checkbox"] {
  width: 20px; height: 20px;
  accent-color: var(--yellow);
  cursor: pointer;
  flex-shrink: 0;
}
.plaque-toggle-text {
  display: flex; flex-direction: column;
  gap: 2px;
}
.plaque-toggle-text strong {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
}
.plaque-toggle-text span {
  font-size: 0.78rem;
  color: var(--yellow);
  font-weight: 600;
}
.plaque-input-wrap {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,215,0,0.2);
  display: none;
}
.plaque-input-wrap.open { display: block; animation: fadeIn 0.3s ease; }
.plaque-input-wrap input {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  width: 100%;
  transition: border-color var(--transition);
}
.plaque-input-wrap input:focus { border-color: var(--yellow); }
.plaque-char-count {
  font-size: 0.72rem;
  color: var(--silver-dim);
  text-align: right;
  margin-top: 4px;
}
.plaque-preview {
  margin-top: 12px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #2a2416, #1a1710);
  border: 1px solid rgba(255,215,0,0.3);
  border-radius: 6px;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--yellow);
  min-height: 20px;
}

/* Plaque note shown in cart items */
.cart-item__plaque {
  font-size: 0.75rem;
  color: var(--yellow);
  margin-top: 4px;
  font-style: italic;
}

@media (max-width: 900px) {
  .slideshow__thumbs { flex-wrap: wrap; }
}
