/*
 * Makerique Boutique theme for OpenCart 4
 * Copyright (c) 2026 Heliopsy. All Rights Reserved.
 * https://makerique.com
 * SPDX-License-Identifier: LicenseRef-Proprietary
 * Proprietary and confidential. Unauthorized copying, distribution, or
 * modification of this file, by any means, is strictly prohibited.
 */

/* ──────────────────────────────────────────────────────────────────
   Makerique Boutique — homepage sections (admin-managed)
   New CSS only. Auto-loaded via the stylesheet event's components/ glob.
   Consumed by common/home.twig section iteration (ADMIN.md §9).
   ────────────────────────────────────────────────────────────────── */

/* Placeholder slot for newarrivals / bestsellers / collections —
   a lightweight, module-ready row (brief §3: don't overbuild). */
.mr-section-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  padding: 2rem 1.25rem;
  text-align: center;
  border: 1px dashed var(--mr-border, #e5e0da);
  border-radius: var(--mr-radius, 14px);
  background: var(--mr-surface-2, #faf7f4);
}

.mr-section-slot-hint {
  margin: 0;
  font-size: .95rem;
}

/* A module rendered into the position replaces the hint visually. */
.mr-section-slot:has(> *:not(.mr-section-slot-hint)) .mr-section-slot-hint {
  display: none;
}

/* Newsletter CTA */
.mr-newsletter {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-radius: var(--mr-radius, 14px);
  background: var(--mr-surface-2, #faf7f4);
  border: 1px solid var(--mr-border, #e5e0da);
}

.mr-newsletter h2 {
  margin-top: 0;
}

.mr-newsletter p {
  color: var(--mr-muted, #6b6259);
  margin-bottom: 1.5rem;
}

.mr-newsletter-form {
  display: flex;
  gap: .6rem;
  max-width: 460px;
  margin-inline: auto;
}

.mr-newsletter-form .form-control {
  flex: 1 1 auto;
  /* The panel is --mr-surface-2; a "filled" form style also paints inputs
     --mr-surface-2 with a transparent border, which makes the field vanish into
     the panel. Force a contrasting surface + visible border here (this selector
     outranks the customizer's .form-control rule) so the input is always
     legible whatever the chosen form style. */
  background: var(--mr-surface, #fff);
  border: 1px solid var(--mr-border, #e5e0da);
  color: var(--mr-text, #2b2723);
}

@media (max-width: 480px) {
  .mr-newsletter-form {
    flex-direction: column;
  }
}
