/**
 * ProductComposer - Hero & Slider Styles
 * Designed for 16:9 Desktop Showcase & Responsive Devices
 */

.hero-section {
  position: relative;
  padding: clamp(2rem, 5vw, 4.5rem) 0 clamp(3rem, 6vw, 5.5rem);
  overflow: hidden;
  z-index: 10;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.25fr;
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
}

/* ===================================================
   HERO LEFT: CONTENT & VALUE PROPOSITION
   =================================================== */

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-eyebrow-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-title {
  font-size: clamp(2.3rem, 4.2vw, 3.8rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: #ffffff;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.4vw, 1.22rem);
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 580px;
}

.hero-subtitle strong {
  color: #ffffff;
  font-weight: 600;
}

/* Feature Check Pills */
.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 0.25rem 0 0.5rem;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #cbd5e1;
}

.highlight-item svg {
  width: 17px;
  height: 17px;
  color: #38bdf8;
  flex-shrink: 0;
}

/* CTA Group */
.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.hero-trust-bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.trust-item span.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #a78bfa;
  font-size: 0.75rem;
}

/* ===================================================
   HERO RIGHT: INTERACTIVE PRODUCT CARDS SLIDER
   =================================================== */

.hero-slider-showcase {
  position: relative;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7),
              0 0 40px rgba(121, 82, 179, 0.15);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  overflow: hidden;
}

/* Glow decoration inside showcase */
.hero-slider-showcase::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(217, 70, 239, 0.25), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* Showcase Header Bar */
.showcase-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.showcase-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mac-dots {
  display: flex;
  gap: 6px;
}

.mac-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.mac-dot.red { background: #ef4444; }
.mac-dot.yellow { background: #f59e0b; }
.mac-dot.green { background: #10b981; }

.showcase-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #f1f5f9;
  letter-spacing: 0.01em;
}

.showcase-status {
  font-size: 0.75rem;
  color: var(--accent-magenta);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(217, 70, 239, 0.1);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(217, 70, 239, 0.25);
}

/* Slider Controls Toolbar */
.slider-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.slider-filter-tabs {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(0, 0, 0, 0.25);
  padding: 0.25rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.filter-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-tab.active, .filter-tab:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.slider-nav-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.slider-arrow-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.slider-arrow-btn:hover {
  background: var(--primary);
  border-color: var(--primary-light);
  transform: scale(1.08);
}

.slider-arrow-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.play-pause-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.play-pause-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.play-pause-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* ===================================================
   SLIDER VIEWPORT & CARD STYLES
   =================================================== */

.slider-viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  touch-action: pan-y;
  padding: 1rem 0.5rem 1.5rem;
  cursor: grab;
  user-select: none;
}

.slider-viewport:active {
  cursor: grabbing;
}

.slider-track {
  display: flex;
  gap: 1.25rem;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}

/* INDIVIDUAL PRODUCT CARD */
.product-card-wrapper {
  flex: 0 0 200px;
  position: relative;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.product-card {
  width: 100%;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  transition: all 0.25s ease;
  cursor: pointer;
  z-index: 2;
}

/* Hover state */
.product-card-wrapper:hover .product-card {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

/* Upper Image Section */
.card-image-box {
  background: #f1f3f5;
  height: 148px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 0.5rem;
}

/* Variant arrows on stacked product cards */
.card-variant-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(40, 40, 40, 0.7);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.85;
  transition: all 0.2s ease;
  z-index: 3;
}

.card-variant-arrow:hover {
  background: rgba(20, 20, 20, 0.95);
  opacity: 1;
  transform: translateY(-50%) scale(1.15);
}

.card-variant-arrow.prev {
  left: 6px;
}

.card-variant-arrow.next {
  right: 6px;
}

.card-variant-arrow svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* Lower Content Section */
.card-body {
  padding: 0.85rem 0.85rem 0.95rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.65rem;
  background: #ffffff;
}

.card-title {
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.35;
  color: #1e293b;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.7em;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-sku-pill {
  font-size: 0.72rem;
  font-weight: 600;
  color: #475569;
  background: #f1f5f9;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  letter-spacing: 0.02em;
  font-family: var(--font-mono);
}

/* ===================================================
   MAGENTA VARIANT HIGHLIGHT & STACKED CARDS EFFECT
   (variable products, as in the ProductComposer admin)
   =================================================== */

.product-card-wrapper.has-stack .product-card {
  border: 2px solid #d946ef;
  box-shadow: 0 6px 20px rgba(217, 70, 239, 0.22);
}

/* Pseudo stack layers behind the card */
.product-card-wrapper.has-stack::before,
.product-card-wrapper.has-stack::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  pointer-events: none;
  transition: transform 0.3s ease;
}

/* First stack layer (medium offset) */
.product-card-wrapper.has-stack::before {
  z-index: 1;
  transform: translate(3px, 3px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

/* Second stack layer (further offset) */
.product-card-wrapper.has-stack::after {
  z-index: 0;
  transform: translate(6px, 6px);
  border-color: #cbd5e1;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
}

.product-card-wrapper.has-stack:hover::before {
  transform: translate(5px, 5px) scale(0.99);
}

.product-card-wrapper.has-stack:hover::after {
  transform: translate(10px, 10px) scale(0.98);
}

/* Bottom Progress Bar & Pagination */
.slider-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.slider-progress-track {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.slider-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary-light), var(--accent-magenta));
  border-radius: 4px;
  transition: width 0.1s linear;
}

.slider-counter {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.slider-hint {
  font-size: 0.75rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.slider-hint svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* ===================================================
   RESPONSIVE DESIGN (Adaptive for 16:9, Tablets, Phones)
   =================================================== */

@media (max-width: 1200px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    align-items: center;
  }

  .hero-subtitle {
    margin: 0 auto;
  }

  .hero-highlights, .hero-cta-group, .hero-trust-bar {
    justify-content: center;
  }

  .product-card-wrapper {
    flex: 0 0 190px;
  }
}

@media (max-width: 640px) {
  .hero-section {
    padding: 1.5rem 0 3rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-slider-showcase {
    padding: 1rem 0.75rem;
  }

  .product-card-wrapper {
    flex: 0 0 165px;
  }

  .card-image-box {
    height: 125px;
  }

  .card-title {
    font-size: 0.78rem;
  }

  /* Status tabs stay reachable on phones, in a compact, scrollable row */
  .slider-toolbar {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .slider-filter-tabs {
    overflow-x: auto;
    max-width: 100%;
  }

  .filter-tab {
    white-space: nowrap;
    padding: 0.3rem 0.6rem;
    font-size: 0.72rem;
  }
}

/* ===================================================
   NEUTRAL DEMO ARTWORK (inline SVG, fictitious products)
   Variant colors are driven by --v / --vd on the <svg>.
   =================================================== */
.demo-art {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 135px;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.10));
}

.demo-art .v {
  fill: var(--v, #64748b);
  transition: fill 0.25s ease;
}

.demo-art .vd {
  fill: var(--vd, #475569);
  transition: fill 0.25s ease;
}

.product-card-wrapper:hover .card-image-box .demo-art {
  transform: scale(1.06);
}

@media (max-width: 640px) {
  .demo-art {
    max-height: 110px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .demo-art,
  .demo-art .v,
  .demo-art .vd,
  .product-card-wrapper,
  .product-card-wrapper.has-stack::before,
  .product-card-wrapper.has-stack::after {
    transition: none;
  }

  .product-card-wrapper:hover .card-image-box .demo-art {
    transform: none;
  }
}

/* Search above the cards (title or SKU, also variant SKUs) */
.slider-searchbar {
  margin: 0.6rem 0 0.25rem;
}

.slider-search-input {
  width: 100%;
  padding: 0.45rem 0.8rem;
  border: 1px solid #64748b;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.25);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.8rem;
}

.slider-search-input::placeholder {
  color: var(--text-muted);
}

.slider-search-input:focus-visible {
  outline: 2px solid var(--accent-magenta);
  outline-offset: 2px;
}

/* Marked card (click), as in the product overview of the plugin */
.product-card-wrapper.is-selected .product-card {
  outline: 3px solid var(--accent-magenta);
  outline-offset: 2px;
}

.slider-no-results {
  margin: 1.5rem 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

