/********************************************************
  FONT: URBANIST (300–800)
********************************************************/

/********************************************************
  GLOBAL RESET & BASIS
********************************************************/
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  font-family: "Urbanist", system-ui, -apple-system, sans-serif;
}

#mm-store * {
  box-sizing: border-box;
}

#mm-store {
  --bg: #f3f4f5;
  --card: #ffffff;
  --border: #dcdcdc;

  --text: #1b1b1b;
  --muted: #6f6f6f;

  --header-bg: #333333;
  --header-text: #ffffff;

  --primary: #c62828;
  --primary-dark: #8e0000;

  --secondary-btn: #b0b0b0;
  --secondary-btn-hover: #9a9a9a;

  --chip: #eeeeee;

  background: var(--bg);
  color: var(--text);
  padding-bottom: 4rem;
}

/********************************************************
  LAYOUT CONTAINER
********************************************************/
#mm-shop-root {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2.5rem 3rem;
}

/* Option B: Hero + Filter etwas schmaler, Produkte breit */
#mm-store .mm-hero,
#mm-store .mm-filter-box {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.mm-product-grid {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}/********************************************************
  5. HEADER – FINAL KORREKT FÜR DEIN TEMPLATE
********************************************************/

/* Globale Fallback Farbvariablen (falls Theme sie nicht liefert) */
:root {
    --header-bg: #2b2b2b;
    --header-text: #ffffff;
    --primary: #e53935;
}
/* Entfernt gelbe Fokus-Hervorhebung für Header-Buttons */
.mm-icon-btn:focus,
.mm-icon-btn:focus-visible,
.mm-icon-btn:active {
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}


/********************************************************
  5.0 HEADER – DURCHGEZOGEN + STICKY
********************************************************/

#mm-shop-header {
    width: 100%;
    background: var(--header-bg, #2b2b2b); /* Vollbreite dunkler Hintergrund */
    color: var(--header-text, #ffffff);
    position: sticky;
    top: 0;
    left: 0;
    z-index: 9999;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}


/********************************************************
  5.1 HEADER TOP – LOGO LINKS, ICONS RECHTS
********************************************************/

.mm-header-top {
    max-width: 1400px;
    margin: 0 auto;
    height: 68px;
    padding: 0 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;

    /* WICHTIG: Hintergrund nicht hier, sondern am Header selbst */
    background: transparent !important;
}

/* Logo */
.mm-logo img {
    width: 170px;
    height: auto;
}

/* Icon Container (rechts) */
.mm-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Icon Buttons */
.mm-icon-btn {
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
}

.mm-icon-btn svg {
    stroke: #ffffff;
    stroke-width: 1.6;
    transition: opacity .2s;
}

.mm-icon-btn:hover svg {
    opacity: .7;
}

/* Warenkorb Badge */
.mm-cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--primary);
    color: #ffffff;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    font-size: 10px;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
}


/********************************************************
  5.2 NAVIGATION – EIGENE ZEILE UNTER DEM HEADER
********************************************************/

.mm-shop-nav {
    width: 100%;
    background: var(--header-bg, #2b2b2b); /* Vollbreite Hintergrund */
    border-top: 1px solid rgba(255,255,255,0.06);
}

/* Navigation innen eingerückt */
.mm-nav-links {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2.5rem;
    list-style: none;
    display: flex;
    gap: 2.2rem;
    align-items: center;
    box-sizing: border-box;
}

/* Links */
.mm-nav-links a {
    display: block;
    padding: 14px 0;
    color: var(--header-text, #ffffff);
    text-decoration: none;
    font-size: .95rem;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: border-color .2s, color .2s;
}

/* Hover & active */
.mm-nav-links a:hover,
.mm-nav-links a.active {
    border-bottom-color: var(--primary);
    color: #ffffff;
}


/********************************************************
  HERO – PREMIUM UND LESBAR
********************************************************/
#mm-store .mm-hero {
  margin: 2.5rem auto 2rem;
  padding: 2.8rem 3rem;
  border-radius: 14px;
  background: linear-gradient(135deg, #1e1e1e, #0f0f0f);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(0,0,0,0.26);
}

#mm-store .mm-hero h1 {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.8rem;
}

#mm-store .mm-hero p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.5;
  opacity: 0.9;
}

/********************************************************
  FILTERBOX – DÜNNER, TECHNISCHER
********************************************************/
#mm-store .mm-filter-box {
  background: var(--card);
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 1.6rem 1.9rem 1.8rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

#mm-store .search-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 1.4rem;
}

/* Grid: 5 Spalten auf Desktop */
#mm-store .filter-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem 1.2rem;
}

#mm-store .filter-group label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.8rem;
  font-weight: 700;
}

/* Selects */
#mm-store select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  border: 1px solid #cfcfcf;
  background: #ffffff;
  font-size: 0.92rem;
  color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}

#mm-store select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(198,40,40,0.25);
  outline: none;
}

/* Such-Buttons */
#mm-store .search-actions {
  margin-top: 1.8rem;
  display: flex;
  gap: 1rem;
}

#mm-store .btn {
  padding: 0.8rem 2rem;
  border-radius: 8px;
  border: none;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

#mm-store .btn-primary {
  background: var(--primary);
  color: #ffffff;
}

#mm-store .btn-primary:hover {
  background: var(--primary-dark);
}

#mm-store .btn-secondary {
  background: var(--secondary-btn);
  color: #ffffff;
}

#mm-store .btn-secondary:hover {
  background: var(--secondary-btn-hover);
}

/********************************************************
  PRODUKTGRID – BREITER (OPTION B)
********************************************************/
.mm-product-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.7rem;
}

/********************************************************
  PRODUKTKARTE – MARKENNAME, SAISON-BADGE, BUTTON ROT
********************************************************/
.mm-product-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
  transition: transform .2s, box-shadow .2s;
}

.mm-product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

.mm-product-card__inner {
  padding: 1.45rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Header: Marke + Saison-Badge */
.mm-product-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: row;
  gap: 0.3rem;
  margin-bottom: 0.6rem;
}

/* Markenname normal, grau */
.mm-product-card__brand,
.mm-product-card__header .mm-brand {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
}

/* Saison-Badge (Chip-Style) */
.mm-badge--saison,
.mm-badge.mm-badge--saison {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.65rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 500;
  color: #ffffff;
}

/* Saisonfarben */
.mm-badge--saison.is-winter {
  background: #2563eb;
}
.mm-badge--saison.is-sommer {
  background: #f97316;
}
.mm-badge--saison.is-ganzjahr {
  background: #16a34a;
}

/* Titel & Dimension */
.mm-product-card__name {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.2rem;
}

.mm-product-card__dimension {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
}

/* Info-Box (Lastindex, DOT, usw.) */
.mm-product-card__info-box {
  margin-top: 0.8rem;
  background: #f3f4f6;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem 1.4rem;
  font-size: 0.8rem;
}

.mm-product-card__info-label {
  color: var(--muted);
}

.mm-product-card__info-value {
  color: var(--text);
  font-weight: 600;
}

/* Features: Runflat, 3PMSF – mehr Abstand nach oben */
.mm-product-card__features {
  margin-top: 0.9rem; /* wichtiger Abstand */
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.mm-chip {
  background: var(--chip);
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text);
}

/* Verfügbarkeit */
.mm-product-card__availability {
  margin-top: 0.9rem;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  font-size: 0.8rem;
}

/* Footer: Preis & Button */
.mm-product-card__footer {
  margin-top: auto;
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mm-product-card__price {
  font-size: 1.05rem;
  font-weight: 700;
}

.mm-product-card__price-unit {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Card-Button ROT */
.mm-btn--primary,
.mm-product-card .mm-btn--primary {
  background: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 0.65rem 1.4rem;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background .2s;
}

.mm-btn--primary:hover,
.mm-product-card .mm-btn--primary:hover {
  background: var(--primary-dark);
}

/********************************************************
  RESPONSIVE
********************************************************/
@media (max-width: 1024px) {
  #mm-store .mm-header-inner {
    padding: 0 1.5rem;
  }

  #mm-store .mm-nav-links {
    padding: 0 1.5rem;
    gap: 1.5rem;
  }

  #mm-store .mm-hero,
  #mm-store .mm-filter-box {
    padding: 2.1rem 1.8rem;
  }

  #mm-store .filter-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  #mm-store #mm-shop-header {
    position: static;
  }

  #mm-store .mm-header-inner {
    height: auto;
    padding: 0.75rem 1.25rem;
  }

  #mm-store .mm-nav-links {
    padding: 0 1.25rem;
    gap: 1rem;
    font-size: 0.9rem;
  }

  #mm-store .mm-hero,
  #mm-store .mm-filter-box {
    margin-top: 1.5rem;
    padding: 1.8rem 1.4rem;
  }

  #mm-store .filter-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mm-product-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  #mm-store .filter-grid {
    grid-template-columns: 1fr;
  }
}
