/* MERCIFUL CRUNCHY — Home/Shop Page Styles */

/* Flyer Section */
.flyer-slot {
  margin-top: 16px;
}

.flyer-placeholder {
  display: flex;
  justify-content: center;
}

.flyer-placeholder img {
  width: 100%;
  max-width: 350px;
  height: 220px;
  border-radius: 10px;
  object-fit: contain;
  background: #fff;
  box-shadow: var(--shadow);
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  align-items: center;
  margin-top: 20px;
  padding: 28px;
  background: linear-gradient(90deg, #fff, #fff6ed);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

.hero-video,
.hero-video-fallback {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.hero h1 {
  margin: 0 0 8px 0;
  color: #1f2937;
  font-size: 2rem;
}

.hero p {
  margin: 8px 0;
  color: var(--muted);
  line-height: 1.6;
}

.hero-copy {
  font-size: 1.05rem;
  max-width: 56ch;
  padding-left: 12px;
  border-left: 3px solid color-mix(in srgb, var(--accent) 45%, transparent);
}

/* Products Section */
.products {
  margin-top: 28px;
}

.products h2 {
  margin-top: 0;
  color: #1f2937;
  font-size: 1.75rem;
  margin-bottom: 16px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.product {
  background: var(--card);
  border-radius: 10px;
  padding: 12px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.product:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

.product img {
  width: 100%;
  height: 130px;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 8px;
  background: #fff;
  border: 1px solid #f3e9e0;
  cursor: pointer;
}

.product h3 {
  margin: 10px 0 6px 0;
  color: #1f2937;
  font-size: 1rem;
}

.price {
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.product p {
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 8px;
}

.product .actions {
  margin-top: auto;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.product .actions .btn {
  flex: 1;
  min-width: 100px;
}

/* Quantity Selector */
.qty-selector {
  margin: 12px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.qty-btn {
  min-width: 32px;
  padding: 6px;
  font-size: 16px;
  font-weight: bold;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  cursor: pointer;
  transition: all 150ms ease;
}

.qty-btn:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.qty-display {
  min-width: 40px;
  text-align: center;
  font-weight: bold;
  font-size: 14px;
}

/* Info Cards */
.info-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}

.info-card {
  background: var(--card);
  padding: 16px;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.info-card h3 {
  margin-top: 0;
  color: var(--accent);
}

.order-steps {
  margin: 10px 0 0;
  padding-left: 0;
  list-style: none;
  counter-reset: order-step;
  display: grid;
  gap: 10px;
}

.step-item {
  counter-increment: order-step;
  position: relative;
  background: color-mix(in srgb, var(--card) 90%, var(--accent) 10%);
  border: 1px solid color-mix(in srgb, var(--accent) 18%, #ffffff);
  border-radius: 10px;
  padding: 10px 12px 10px 46px;
  color: #1f2937;
  line-height: 1.5;
}

.step-item::before {
  content: counter(order-step);
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
}

.value-copy {
  margin: 8px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--card) 92%, var(--accent) 8%);
  border: 1px solid #f3e9e0;
  color: #374151;
  line-height: 1.65;
}

.footer-copy {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Gallery */
.gallery {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.gallery img {
  width: 48%;
  border-radius: 8px;
  object-fit: cover;
  height: 200px;
}

/* Responsive */
@media (max-width: 768px) {
  .flyer-placeholder img {
    max-width: 100%;
    height: 180px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }

  .product img {
    height: 120px;
  }

  .info-cards {
    grid-template-columns: 1fr;
  }

  .gallery {
    flex-direction: column;
  }

  .gallery img {
    width: 100%;
  }
}

/* Image Viewer Modal */
.image-modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 150ms ease, visibility 150ms ease;
  z-index: 50;
}

.image-modal.open {
  opacity: 1;
  visibility: visible;
}

.image-modal-content {
  position: relative;
  max-width: min(92vw, 900px);
  max-height: 85vh;
  background: #fff;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.25);
  display: grid;
  gap: 10px;
}

.image-modal img {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}

.image-modal-caption {
  font-size: 0.95rem;
  color: #374151;
}

.image-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: none;
  background: #111827;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  cursor: pointer;
}

.no-scroll {
  overflow: hidden;
}
