/* ==========================================================================
   HeySpark — Shop Template Styles
   Vibrant, product-focused, browsable.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Poppins:wght@500;600;700;800&display=swap');

:root {
  --primary: #d32f2f;
  --primary-light: color-mix(in srgb, var(--primary) 80%, white);
  --primary-dark: color-mix(in srgb, var(--primary) 85%, black);
  --secondary: #1a1a2e;
  --accent: #d32f2f;
  --font-heading: 'Poppins', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --bg-pop: #f8fafc;
}

/* Hero */
.hero-shop {
  background: linear-gradient(180deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  padding: var(--space-20) 0 var(--space-16);
}

.hero-shop-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-shop-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--space-16);
  }
}

.hero-shop h1 {
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: var(--space-6);
}

.hero-shop .hero-sub {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-8);
  max-width: 620px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  background: rgba(34, 197, 94, 0.12);
  color: #166534;
  border: 1px solid rgba(34, 197, 94, 0.22);
  font-size: var(--font-size-sm);
  font-weight: 700;
  margin-bottom: var(--space-5);
}

.hero-pill svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.hero-media {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  aspect-ratio: 4/5;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-sticker {
  position: absolute;
  top: var(--space-6);
  left: var(--space-6);
  background: var(--primary);
  color: #fff;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-full);
  font-weight: 800;
  box-shadow: var(--shadow-md);
}

/* Featured products */
.featured-shop {
  background: #fff;
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 640px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); }
}

.product-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #fff;
  transition: all var(--transition-base);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(124, 58, 237, 0.25);
}

.product-image {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-pop);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.product-info {
  padding: var(--space-5);
}

.product-info h3 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-2);
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-4);
}

.price {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--primary);
}

.stock {
  font-size: var(--font-size-xs);
  font-weight: 700;
  color: #166534;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.2);
  padding: 2px var(--space-3);
  border-radius: var(--radius-full);
}

/* Categories */
.categories-shop {
  background: var(--bg-pop);
}

.category-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .category-grid { grid-template-columns: repeat(3, 1fr); }
}

.category-card {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  position: relative;
  min-height: 220px;
  border: 1px solid var(--border);
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05);
  transform: scale(1.02);
}

.category-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.1) 0%, rgba(15, 23, 42, 0.75) 100%);
}

.category-label {
  position: absolute;
  left: var(--space-6);
  bottom: var(--space-6);
  z-index: 1;
  color: #fff;
}

.category-label h3 {
  color: #fff;
  margin-bottom: var(--space-1);
}

.category-label p {
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--font-size-sm);
}

/* Reviews */
.reviews-shop {
  background: #fff;
}

.review-card-shop {
  background: var(--bg-pop);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
}

.review-card-shop .stars { margin-bottom: var(--space-3); }
.review-card-shop .review-text {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.review-card-shop .review-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.review-card-shop .review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
}

/* Gallery */
.gallery-shop {
  background: var(--bg-pop);
}

.gallery-grid-shop {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

@media (min-width: 768px) {
  .gallery-grid-shop {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gallery-item {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 1;
  border: 1px solid var(--border-light);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-item:hover img { transform: scale(1.06); }

/* Contact */
.contact-shop {
  background: #fff;
}

.contact-shop .contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
}

@media (min-width: 1024px) {
  .contact-shop .contact-grid { grid-template-columns: 1fr 1fr; }
}

.contact-form {
  background: var(--bg-pop);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
}

.contact-form h3 { margin-bottom: var(--space-2); }
.contact-form p { color: var(--text-light); font-size: var(--font-size-sm); margin-bottom: var(--space-6); }

@media (prefers-reduced-motion: no-preference) {
  .fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .fade-up.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Auto shop hero overrides */
.hero-shop { color: #e2e8f0; }
.hero-shop h1 { color: #ffffff; }
.hero-shop .hero-sub { color: #cbd5e1; }
.hero-shop .hero-pill { background: rgba(211, 47, 47, 0.12); color: #ef5350; border: 1px solid rgba(211, 47, 47, 0.25); }
.hero-shop .hero-pill svg { color: #ef5350; }
.hero-shop .btn-primary { background: #d32f2f; color: #fff; border-color: #d32f2f; }
.hero-shop .btn-primary:hover { background: #b71c1c; border-color: #b71c1c; }
.hero-shop .btn-secondary { border-color: #475569; color: #e2e8f0; }
.hero-shop .btn-secondary:hover { background: rgba(255,255,255,0.06); border-color: #94a3b8; }
