/* ============================================================
   hero-v2.css  —  Photocart Homepage Premium UX v2.0
   LOAD LAST. Wins cascade over stage1-premium.css.
   ============================================================ */

/* ── Design tokens ─────────────────────────────────────────── */
:root {
  --h2-hero-bg-start:   #fffdf9;
  --h2-hero-bg-mid:     #fff8ee;
  --h2-hero-bg-end:     #fff4e2;
  --h2-gold:            #c9934a;
  --h2-gold-deep:       #a0711e;
  --h2-gold-light:      #f5d89a;
  --h2-cream:           #f7f0e3;
  --h2-text:            #1a1410;
  --h2-text-muted:      #5e4e36;
  --h2-text-subtle:     #9a8672;
  --h2-border:          rgba(201, 147, 74, 0.18);
  --h2-showcase-radius: 24px;
  --h2-transition:      0.55s cubic-bezier(0.23, 1, 0.32, 1);
}

/* ── HERO: Force display and warm background ───────────────── */
.pc-hero-desktop {
  display: block !important;      /* Override stage1-premium.css hide */
  position: relative;
  overflow: hidden;
  padding: 80px 0 88px;
  background:
    radial-gradient(ellipse 900px 400px at 8% 0%,  rgba(201, 147, 74, 0.22), transparent 55%),
    radial-gradient(ellipse 600px 300px at 92% 80%, rgba(201, 147, 74, 0.10), transparent 55%),
    linear-gradient(160deg, var(--h2-hero-bg-start) 0%, var(--h2-hero-bg-mid) 50%, var(--h2-hero-bg-end) 100%);
  color: var(--h2-text);
  border-bottom: 1px solid rgba(201, 147, 74, 0.16);
}

/* Subtle dot grid texture */
.pc-hero-desktop::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(201, 147, 74, 0.14) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  opacity: 0.55;
}

/* ── HERO INNER: 40 / 60 grid ──────────────────────────────── */
.pc-hero-desktop-inner {
  position: relative;
  z-index: 1;
  width: min(100% - 32px, 1240px);
  max-width: 1240px;
  margin: 0 auto;
  display: grid !important;
  grid-template-columns: minmax(0, 42fr) minmax(0, 58fr) !important;
  gap: 52px;
  align-items: center;
}

/* ── HERO COPY (left column) ───────────────────────────────── */
.pc-hero-copy {
  max-width: none;
}

/* Kicker badge */
.pc-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(201, 147, 74, 0.12);
  border: 1px solid rgba(201, 147, 74, 0.32);
  color: var(--h2-gold-deep);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Heading */
.pc-hero-desktop h1 {
  margin: 0;
  color: var(--h2-text);
  font-family: "Playfair Display", serif;
  font-size: clamp(2.5rem, 4.2vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  max-width: 14ch;
}

/* Subtitle */
.pc-hero-subtext {
  margin: 22px 0 0;
  color: var(--h2-text-muted);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.7;
  max-width: 520px;
}

/* ── CTAs ──────────────────────────────────────────────────── */
.pc-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
  overflow: visible !important; /* undo overflow:clip from stage1 */
}

/* Primary CTA — Upload Your Photo */
.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: 14px;
  background: linear-gradient(135deg, #c9934a 0%, #e8b46a 55%, #c9934a 100%);
  background-size: 200% auto;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: none;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: background-position var(--h2-transition), transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 8px 28px rgba(201, 147, 74, 0.38), 0 2px 8px rgba(201, 147, 74, 0.25);
}

.btn-hero-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--rx, 50%) var(--ry, 50%), rgba(255,255,255,0.35) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.btn-hero-primary:hover {
  background-position: right center;
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(201, 147, 74, 0.48), 0 4px 12px rgba(201, 147, 74, 0.3);
}

.btn-hero-primary:hover::after { opacity: 1; }

.btn-hero-primary:active { transform: translateY(0); }

/* Ripple effect on click */
.btn-hero-primary .ripple-ring {
  position: absolute;
  border-radius: 50%;
  width: 10px;
  height: 10px;
  background: rgba(255,255,255,0.4);
  transform: scale(0);
  pointer-events: none;
  animation: heroRipple 0.6s linear;
}

@keyframes heroRipple {
  to { transform: scale(30); opacity: 0; }
}

/* Secondary CTA — Explore Designs */
.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 14px;
  background: transparent;
  color: var(--h2-gold-deep);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1.5px solid rgba(201, 147, 74, 0.55);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.25s, border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.btn-hero-secondary:hover {
  background: rgba(201, 147, 74, 0.08);
  border-color: var(--h2-gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(201, 147, 74, 0.15);
}

/* ── TRUST BAR ─────────────────────────────────────────────── */
.hero-trust-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 20px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--h2-border);
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--h2-text-muted);
  white-space: nowrap;
}

.hero-trust-item i {
  font-size: 1rem;
  color: var(--h2-gold);
  flex-shrink: 0;
}

.hero-trust-item .trust-stars {
  display: flex;
  align-items: center;
  gap: 2px;
  color: #d4a017;
  font-size: 0.78rem;
}

/* ── HERO SHOWCASE (right column) ──────────────────────────── */
.hero-showcase {
  position: relative;
  width: 100%;
  max-width: 580px;
  height: 420px;
  border-radius: var(--h2-showcase-radius);
  overflow: hidden;
  background: linear-gradient(145deg, rgba(255,250,240,0.9), rgba(255,240,210,0.7));
  border: 1px solid rgba(201, 147, 74, 0.25);
  box-shadow:
    0 32px 80px rgba(160, 113, 30, 0.18),
    0 8px 24px rgba(160, 113, 30, 0.10),
    inset 0 1px 0 rgba(255,255,255,0.75);
  cursor: pointer;
}

/* Glassmorphism inner overlay */
.hero-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.25) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(201,147,74,0.12), transparent 50%);
  pointer-events: none;
  z-index: 10;
}

/* Gradient border glow */
.hero-showcase::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--h2-showcase-radius) + 1px);
  background: linear-gradient(135deg, rgba(201,147,74,0.5), rgba(255,255,255,0.1), rgba(201,147,74,0.3));
  z-index: 0;
  pointer-events: none;
}

/* Slide track */
.showcase-track {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 1;
}

/* Individual slides */
.showcase-slide {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity var(--h2-transition), transform var(--h2-transition);
  pointer-events: none;
}

.showcase-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.showcase-slide.is-prev {
  opacity: 0;
  transform: scale(0.97);
}

/* Slide media */
.showcase-slide img,
.showcase-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}

/* Slide overlay with title */
.showcase-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 20px 18px;
  background: linear-gradient(to top, rgba(20, 14, 5, 0.72) 0%, transparent 100%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 4px;
  pointer-events: none;
}

.showcase-caption-title {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
  line-height: 1.3;
}

.showcase-caption-sub {
  color: rgba(255,255,255,0.78);
  font-size: 0.78rem;
  font-weight: 500;
}

/* Skeleton shimmer */
.showcase-skeleton {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  background: linear-gradient(145deg, #f7efe0, #f0e2c4);
  z-index: 2;
  transition: opacity 0.4s;
}

.showcase-skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.55) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: showcaseShimmer 1.5s infinite;
}

@keyframes showcaseShimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.showcase-skeleton.is-hidden { opacity: 0; pointer-events: none; }

/* Placeholder (no items) */
.showcase-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
  z-index: 2;
}

.showcase-placeholder i {
  font-size: 3rem;
  color: var(--h2-gold);
  opacity: 0.6;
}

.showcase-placeholder p {
  font-size: 1rem;
  font-weight: 600;
  color: var(--h2-text-muted);
}

/* Dot indicators */
.showcase-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 12;
}

.showcase-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.5);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: width 0.3s, background 0.3s;
  flex-shrink: 0;
}

.showcase-dot.is-active {
  width: 20px;
  background: #fff;
}

/* Type badge (VIDEO / IMAGE / GIF label) */
.showcase-type-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 12;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(15,15,15,0.68);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
  pointer-events: none;
}

/* Reflection overlay */
.showcase-reflection {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 35%;
  background: linear-gradient(180deg, rgba(255,255,255,0.12), transparent);
  border-radius: var(--h2-showcase-radius) var(--h2-showcase-radius) 0 0;
  z-index: 8;
  pointer-events: none;
}

/* Hover pause indicator */
.hero-showcase:hover .showcase-pause-hint {
  opacity: 1;
}

.showcase-pause-hint {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 12;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(15,15,15,0.55);
  color: rgba(255,255,255,0.85);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.3s;
  backdrop-filter: blur(6px);
  pointer-events: none;
}

/* ── MOBILE HERO SLIDER hide (we use desktop hero universally) */
.mobile-hero-slider {
  display: none !important;
}

/* ── SECTION HEADERS: Desktop keeps existing style ─────────── */

/* Acrylic / Paper section titles — shortened copy applied via HTML */

/* ── MOBILE SECTION HEADERS: 45% space reduction ───────────── */
@media (max-width: 768px) {
  .section-header .subtitle,
  .section-header > span.subtitle {
    font-size: 0.68rem !important;
    letter-spacing: 0.12em !important;
    margin-bottom: 8px !important;
  }

  .section-header h2,
  .section-header > h2 {
    font-size: 1.45rem !important;
    margin-bottom: 10px !important;
    line-height: 1.25 !important;
  }

  .section-header p,
  .section-header > p {
    font-size: 0.84rem !important;
    margin-bottom: 0 !important;
  }

  /* Halve vertical section padding */
  #acrylic-posters,
  #paper-posters {
    padding-top: 36px !important;
    padding-bottom: 36px !important;
  }

  #acrylic-posters .section-header,
  #paper-posters .section-header {
    margin-bottom: 22px !important;
  }

  /* Hero mobile: single column */
  .pc-hero-desktop {
    padding: 48px 0 44px !important;
  }

  .pc-hero-desktop-inner {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }

  .pc-hero-desktop h1 {
    font-size: clamp(2rem, 9vw, 2.8rem) !important;
    max-width: none !important;
  }

  .hero-showcase {
    height: 240px !important;
    max-width: 100% !important;
  }

  .hero-trust-bar {
    gap: 6px 14px !important;
  }

  .hero-trust-item {
    font-size: 0.75rem !important;
  }
}

/* Tablet breakpoint */
@media (max-width: 1100px) and (min-width: 769px) {
  .pc-hero-desktop {
    display: block !important;
    padding: 60px 0 68px !important;
  }

  .pc-hero-desktop-inner {
    grid-template-columns: 1fr 1fr !important;
    gap: 32px !important;
  }

  .pc-hero-desktop h1 {
    font-size: clamp(2rem, 5vw, 3.2rem) !important;
    max-width: none !important;
  }

  .hero-showcase {
    height: 360px !important;
  }
}

/* ── SCROLL-REVEAL ANIMATION ───────────────────────────────── */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-animate {
  opacity: 0;
  animation: fadeSlideUp 0.7s var(--h2-transition) forwards;
}

.hero-animate-d1 { animation-delay: 0.05s; }
.hero-animate-d2 { animation-delay: 0.15s; }
.hero-animate-d3 { animation-delay: 0.25s; }
.hero-animate-d4 { animation-delay: 0.38s; }
.hero-animate-d5 { animation-delay: 0.50s; }
.hero-animate-d6 { animation-delay: 0.60s; }

/* ── PRODUCT PAGE: Sticky Gallery (Flipkart pattern) ───────── */
@media (min-width: 1024px) {
  .product-layout-split {
    align-items: flex-start !important;
    display: grid !important;
  }

  /* Left gallery: sticky */
  .gallery-scroll {
    position: sticky !important;
    top: calc(var(--navbar-height, 72px) + 16px) !important;
    max-height: calc(100vh - var(--navbar-height, 72px) - 32px) !important;
    overflow-y: auto !important;
    /* Thin scrollbar */
    scrollbar-width: thin;
    scrollbar-color: rgba(201,147,74,0.3) transparent;
  }

  .gallery-scroll::-webkit-scrollbar { width: 4px; }
  .gallery-scroll::-webkit-scrollbar-track { background: transparent; }
  .gallery-scroll::-webkit-scrollbar-thumb { background: rgba(201,147,74,0.3); border-radius: 2px; }

  /* Right details: scrolls normally */
  .product-sticky-details {
    position: static !important;
    top: auto !important;
    max-height: none !important;
    overflow-y: visible !important;
  }
}

/* Mobile/tablet: both columns flow normally */
@media (max-width: 1023px) {
  .gallery-scroll {
    position: static !important;
    max-height: none !important;
    overflow-y: visible !important;
  }

  .product-sticky-details {
    position: static !important;
  }
}

/* ── MICRO-INTERACTION: Card hover zoom in product grid ─────── */
.product-card {
  transition: transform 0.28s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.28s !important;
}

.product-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 20px 48px rgba(0,0,0,0.13) !important;
}

.product-card .product-image img,
.product-card .product-image video {
  transition: transform 0.45s cubic-bezier(0.23, 1, 0.32, 1) !important;
}

.product-card:hover .product-image img,
.product-card:hover .product-image video {
  transform: scale(1.05) !important;
}

/* ── CATEGORY CARD hover polish ─────────────────────────────── */
.category-card {
  transition: transform 0.3s cubic-bezier(0.23,1,0.32,1), box-shadow 0.3s !important;
}

.category-card:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 24px 56px rgba(0,0,0,0.12) !important;
}

/* ── GLASS MARQUEE: ensure visibility on light bg ───────────── */
.glass-marquee-section {
  background: rgba(250,245,237,0.6);
}
