
/* MMfdK. Konsumbereich – Produktraster */

/* Der bestehende Mercato-Container soll die verfügbare
   Breite nutzen. */
.mrc-catalog-shell {
	width: 100% !important;
	max-width: none !important;
}

/* Responsive Raster: unter 1000 px auto-fit */
.mrc-catalog-grid {
	display: grid;
	grid-template-columns: repeat(
		auto-fit,
		minmax(min(100%, 170px), 1fr)
	);
	gap: 1.5rem;
	align-items: start;
}

/* Ab 1000 px: vier feste Spalten */
@media (min-width: 1000px) {
	.mrc-catalog-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* Ab 1300 px: fünf feste Spalten */
@media (min-width: 1400px) {
	.mrc-catalog-grid {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}
}

/* Ab 1600 px: sechs feste Spalten */
@media (min-width: 1800px) {
	.mrc-catalog-grid {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}
}

/* Bildcontainer ohne erzwungenes Seitenverhältnis */
.mrc-product-card-media {
	aspect-ratio: auto !important;
	height: auto !important;
}

/* Ursprüngliche Bildproportionen erhalten */
.mrc-product-card-media img {
	display: block;
	width: 100%;
	height: auto !important;
	object-fit: contain !important;
}




/* MMfdK. Konsumbereich – Schritt 2 */

/* Weißer Hintergrund der Mercato-Shopfläche */
.mrc-page,
.mrc-catalog-shell,
.mrc-catalog-panel,
.mrc-wrap {
	background: transparent !important;
	box-shadow: none !important;
}

/* Produktkarten ohne Hintergrund und Rahmen */
.mrc-catalog-grid .mrc-product-card {
	background: transparent !important;
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	padding: 0 !important;
}

/* Bildflächen ohne Hintergrund und Rahmen */
.mrc-catalog-grid .mrc-product-card-media {
	background: transparent !important;
	border: none !important;
	border-radius: 0 !important;
}

/* Abstände der Produktkarten zunächst erhalten */


/* MMfdK. Konsumbereich – Farben */

.mrc-catalog-shell,
.mrc-catalog-shell .mrc-product-card,
.mrc-catalog-shell .mrc-product-card-meta,
.mrc-catalog-shell .mrc-product-card-title {
	color: black !important;
}

/* Preise weiß */
.mrc-catalog-shell .mrc-price {
	color: white !important;
}


/* Schriftgröße Versand/Availability */
.mrc-product-card-meta { font-size: 1rem !important; line-height: 1.3rem; }


/* 1) äußeres Shop-Padding weg */
.mrc-wrap {
	padding: 0 !important;
}



/* MMfdK. – Nur Collection und Sort anzeigen */

/* Availability, Type, Min price und Max price ausblenden */
.mrc-filter-grid > .mrc-filter-field:nth-child(2),
.mrc-filter-grid > .mrc-filter-field:nth-child(3),
.mrc-filter-grid > .mrc-filter-field:nth-child(4),
.mrc-filter-grid > .mrc-filter-field:nth-child(5) {
	display: none !important;
}



/* ================================================
   MMfdK. – eigene Typografie aus mrc-products.php
   Die Mercato-Standardregeln bleiben in PHP,
   diese individuellen Werte stehen hier zuletzt.
   ================================================ */

/* Produkttitel: Univers Next Pro, halbfett */
.mrc-product-card h2 {
    font-family: univers-next-pro, sans-serif;
    font-size: 1.3rem;
    line-height: 1.7rem;
    font-weight: 600;
    font-style: normal;
    margin: 0;
}

/* Preisgröße und Gewicht; die weiße Farbe steht bereits oben */
.mrc-price {
    font-size: 1.3rem;
    font-weight: 600;
    margin-top: 6px !important;
}

/* Mengenfeld: bisherige individuelle Werte */
.mrc-product-card-actions input[type="number"] {
    width: 58px;
    font-size: 1.3rem;
}

/* Sonstige bisherige individuelle Mercato-Anpassungen */
.mrc-wrap {
    border: 0 !important;
}
.mrc-mini-cart-empty {
    color: black;
}

.mrc-product-card-actions {
	margin-bottom: 2rem;
}

.mrc-catalog-header { margin-bottom: 2rem; }


.mrc-kicker,
.mrc-button {
    font-weight: 600;
}





/* ==========================================
   MMfdK. – Filtergestaltung
   ========================================== */

/* Mehr Abstand zwischen den drei Zeilen */
.mrc-filter-panel {
	margin-bottom: 2rem; 
	font-size: 1rem;
}

.mrc-filter-grid {
	margin-bottom: 1rem;
}

/* Abstand zwischen Beschriftung und Auswahlfeld */
.mrc-filter-field {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	line-height: 2rem;
}

/* Beschriftungen */
.mrc-filter-field label {
	font-weight: 400;
}

/* Schwarze Auswahlfelder */
.mrc-filter-panel select {
	box-sizing: border-box;
	appearance: auto;
	background: #111;
	color: white;
	border: 1px solid transparent;
	border-radius: 6px;
	min-height: 40px;
	padding: 0 18px;
	font-family: univers-next-pro, sans-serif;
	font-size: 1rem;
	font-weight: 400;
	cursor: pointer;
}

.mrc-filter-panel select option {
	background: #111;
	color: white;
}

/* Kein zusätzlicher weißer Fokusrand */
.mrc-filter-panel select:focus,
.mrc-filter-panel select:focus-visible {
	outline: none;
	box-shadow: none;
}

/* Filter anwenden wie die schwarzen Auswahlfelder */
.mrc-filter-actions button[type="submit"] {
	appearance: none;
	background: #111;
	color: white;
	border: 1px solid transparent;
	border-radius: 6px;
	min-height: 40px;
	padding: 0 18px;
	letter-spacing: normal;
	text-transform: none;
	cursor: pointer;
	font: 600 1rem/1 univers-next-pro, sans-serif;
}

/* Auch Zurücksetzen ohne Fettschrift */
.mrc-filter-actions a {
	letter-spacing: normal;
	text-transform: none;
	font: 600 1rem/1 univers-next-pro, sans-serif;
}

/* Etwas Luft zwischen den beiden Aktionen */
.mrc-filter-actions button {
	margin-right: 0.75rem;
	font: 600 1rem/1 univers-next-pro, sans-serif;
}

/* Farben der Einträge im Auswahlmenü */
.mrc-filter-panel select,
.mrc-filter-panel select option {
	background-color: #111;
	color: #fff;
	font-weight: 400;
	color-scheme: dark;
}


/* ================================================
   MMfdK. – Ergänzung für einzelne Produktseiten
   Diese Regeln ANS ENDE der vorhandenen
   styles/mercato-custom.css anhängen.
   ================================================ */

body.mrc-detail-page {
	margin: 0;
	padding: 0;
	min-height: 0;
	background: transparent;
	color: #111;
	font-family: univers-next-pro, sans-serif;
	line-height: 1.3;
}

.mrc-detail-page .mrc-detail-main {
	width: 100%;
	max-width: none;
	box-sizing: border-box;
	border: 0;
	box-shadow: none;
	padding: 0;
	margin: 0;
	background: transparent;
}

.mrc-detail-page .mrc-product-header {
	align-items: start;
	margin-bottom: 2rem;
}
.mrc-detail-page .mrc-product-header h1 {
	font-family: univers-next-pro, sans-serif;
	font-size: clamp(2rem, 3.2vw, 3rem);
	font-weight: 600;
	line-height: 1.08;
	color: #111;
	margin: 0;
}
.mrc-detail-page .mrc-kicker { color: #111; }
.mrc-detail-page .mrc-detail-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
	gap: clamp(1.5rem, 4vw, 4rem);
	align-items: start;
}
.mrc-detail-page .mrc-detail-visual,
.mrc-detail-page .mrc-detail-purchase { min-width: 0; }
.mrc-detail-page .mrc-product-media {
	max-width: none;
	background: transparent;
	border: 0;
	border-radius: 0;
	margin: 0;
}
.mrc-detail-page .mrc-product-image {
	display: block;
	aspect-ratio: auto;
	height: auto;
	width: 100%;
	object-fit: contain;
}
.mrc-detail-page .mrc-detail-purchase .mrc-price,
.mrc-detail-page .mrc-related-products .mrc-price {
	color: white !important;
	font-size: 1.3rem;
	font-weight: 600;
}
.mrc-detail-page .mrc-detail-purchase .mrc-price { margin: 0 0 .9rem !important; }
.mrc-detail-page .mrc-shipping,
.mrc-detail-page .mrc-description,
.mrc-detail-page .mrc-detail-purchase label {
	color: #111;
	font-family: univers-next-pro, sans-serif;
}
.mrc-detail-page .mrc-shipping { margin-bottom: 0rem; font-size: 1rem; line-height: 1.3rem; }
.mrc-detail-page .mrc-description { margin: 1.25rem 0 3rem 0; }
.mrc-detail-page .mrc-product-cart-label { color: #111; }
.mrc-detail-page .mrc-related-products { border-top: 0; }
.mrc-detail-page .mrc-related-card {
	background: transparent;
	border: 0;
	border-radius: 0;
	padding: 0;
	color: #111;
}
.mrc-detail-page .mrc-button,
.mrc-detail-page .mrc-cart-button {
	background: #111;
	color: #fff;
	border-radius: 6px;
	font: 600 1rem/1 univers-next-pro, sans-serif;
}
.mrc-detail-page .mrc-button-secondary {
	color: #111;
	background: transparent;
	border: 1px solid #111;
	border-radius: 6px;
	font: 600 1rem/1 univers-next-pro, sans-serif;
}
.mrc-detail-page .mrc-form input,
.mrc-detail-page .mrc-form select {
	font-family: univers-next-pro, sans-serif;
	font-size: 1.1rem;
}
.mrc-detail-page .mrc-form input[type="number"] { width: 4.5rem; }
@media (max-width: 800px) {
	.mrc-detail-page .mrc-detail-layout { grid-template-columns: 1fr; }
}


/* ================================================
   MMfdK. – einheitliche Warenkorb-Gestaltung
   Grundlage: .mrc-mini-cart aus mrc-products.php
   Die Box der Detailseite liegt bereits vor dem Titel.
   ================================================ */

/* Gleiche Basis für beide Boxen (Mercato-Originalwerte) */
.mrc-mini-cart,
.mrc-detail-page .mrc-product-cart {
    align-items: center;
    background: var(--pw-inputs-background, #f8f8f8);
    border: 1px solid #ddd;
    border-radius: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
    min-width: min(100%, 320px);
    padding: 12px;
    box-sizing: border-box;
}

.mrc-mini-cart-copy,
.mrc-detail-page .mrc-product-cart-copy {
    display: grid;
    gap: 2px;
    font-size: 1rem;
    padding-right: 2rem;
}

.mrc-mini-cart-label,
.mrc-detail-page .mrc-product-cart-label {
    color: #111;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mrc-mini-cart-total,
.mrc-detail-page .mrc-product-cart-total {
    font-size: 18px;
    font-weight: 700;
}

.mrc-mini-cart form,
.mrc-detail-page .mrc-product-cart form {
    margin: 0;
}

/* Detailseite: dieselben Vanilla-Button-Regeln wie in
   mrc-products.php; überschreibt das dort abweichende
   font-weight: 400 aus den alten Detailseiten-Regeln. */
.mrc-detail-page .mrc-product-cart .mrc-button {
    background: var(--pw-text-color, #111);
    border: 1px solid transparent;
    border-radius: 6px;
    color: var(--pw-blocks-background, #fff);
    cursor: pointer;
    display: inline-flex;
    min-height: 40px;
    padding: 0 18px;
    text-decoration: none;
    align-items: center;
    justify-content: center;
    font: 600 1rem/1 univers-next-pro, sans-serif;
}

.mrc-detail-page .mrc-product-cart .mrc-button-secondary {
    background: transparent;
    border-color: var(--pw-text-color, #111);
    color: var(--pw-text-color, #111);
    font: 600 1rem/1 univers-next-pro, sans-serif;
}

/* Detailseite: eigener Platz oberhalb des Produkttitels. */
.mrc-detail-page .mrc-product-cart {
    width: fit-content;
    max-width: 100%;
    margin: 0 0 2rem auto;
}

@media (max-width: 720px) {
    .mrc-detail-page .mrc-product-cart {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        justify-content: flex-start;
    }
}


/* ===============================================
   MMfdK. – Einheitliche Bedienelemente: 42 px
   =============================================== */

/* Buttons auf Übersicht und Produktdetailseite,
   inklusive der beiden Warenkorb-Boxen. */
.mrc-page .mrc-button,
.mrc-page .mrc-button-secondary {
    box-sizing: border-box;
    height: 42px;
    min-height: 42px;
    padding-top: 0;
    padding-bottom: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font: 600 1rem/1 univers-next-pro, sans-serif;
}

/* Übersicht: Mengenfeld und Hinzufügen-Button
   in einer Zeile, beide exakt 42 px hoch. */
.mrc-catalog-grid .mrc-card-purchase-form {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}
.mrc-catalog-grid .mrc-card-purchase-form label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}
.mrc-catalog-grid .mrc-card-purchase-form input[type="number"] {
    box-sizing: border-box;
    height: 42px;
    min-height: 42px;
    padding-top: 0;
    padding-bottom: 0;
}
.mrc-catalog-grid .mrc-card-purchase-form .mrc-cart-button {
    height: 42px;
    min-height: 42px;
}

/* Detail: Warenkorb-Button und Kasse in Zeile 1,
   Rücklink darunter in Zeile 2. */
.mrc-detail-page .mrc-detail-purchase .mrc-actions {
    display: grid;
    grid-template-columns: max-content max-content;
    align-items: center;
    justify-content: start;
    gap: 10px;
}
.mrc-detail-page .mrc-detail-purchase .mrc-actions > .mrc-detail-add-button {
    grid-column: 1;
    grid-row: 1;
}
.mrc-detail-page .mrc-detail-purchase .mrc-actions > .mrc-detail-checkout-button {
    grid-column: 2;
    grid-row: 1;
}
.mrc-detail-page .mrc-detail-purchase .mrc-actions > .mrc-detail-back-button {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: start;
}
.mrc-detail-page .mrc-detail-purchase .mrc-actions .mrc-button,
.mrc-detail-page .mrc-detail-purchase .mrc-actions .mrc-button-secondary {
    box-sizing: border-box;
    height: 42px;
    min-height: 42px;
    padding: 0 14px;
    white-space: nowrap;
    font: 600 1rem/1 univers-next-pro, sans-serif;
}
@media (max-width: 600px) {
    .mrc-detail-page .mrc-detail-purchase .mrc-actions {
        grid-template-columns: max-content max-content;
        max-width: 100%;
    }
    .mrc-detail-page .mrc-detail-purchase .mrc-actions > .mrc-detail-back-button {
        white-space: normal;
        height: auto;
        min-height: 42px;
        text-align: center;
    }
}


/* Zurück-Links wie auf den Produktseiten: transparenter Hintergrund,
   schwarze Kontur und Schrift. Nur für die Success-Seite. */
body.mrc-success-page a.mrc-success-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: fit-content;
    max-width: 100%;
    height: 42px;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid #111;
    border-radius: 6px;
    background: transparent;
    color: #111;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    font: 600 1rem/1 univers-next-pro, sans-serif;
}

/* =========================================================
   MMfdK. – BESTELLBESTÄTIGUNG (Success-Seite)
   ========================================================= */

/* Mercato / Mehr Muetter fuer die Kunst - Bestellabschluss */
body.mrc-success-page { margin: 0; padding: 0; min-height: 0; background: transparent; color: #000; }
body.mrc-success-page .mrc-success-content {
    width: 100%; max-width: 100%; margin: 30px 0 90px; padding: 0;
    background: transparent; border: 0; box-shadow: none;
    font-family: inherit; font-size: 1.3rem; line-height: 1.4;
}
.mrc-success-content * { box-sizing: border-box; }
.mrc-success-titleline { display:flex; gap:20px; justify-content:space-between; align-items:flex-start; flex-wrap:wrap; padding-bottom: 2rem; }
.mrc-success-kicker { margin:0 0 7px; font-size:.85rem; font-weight:600; text-transform:uppercase; letter-spacing:.05em; }
.mrc-success-content h1 { margin:0 0 18px; font-size:clamp(1.7rem, 3vw, 2.5rem); font-weight:600; line-height:1.12; color:#000; }
.mrc-success-content h2 { font-size:1.45rem; font-weight:600; margin:34px 0 12px; }
.mrc-success-content p { margin:0 0 15px; }
.mrc-success-lead { max-width:760px; }
.mrc-success-orderref { margin-top:12px !important; }
.mrc-success-summary { margin-top:25px; }
.mrc-success-table-wrap { width:100%; overflow-x:auto; }
.mrc-success-content table { border-collapse:collapse; width:100%; min-width:520px; margin:0; font:inherit; }
.mrc-success-content th, .mrc-success-content td { border-bottom:1px solid rgba(0,0,0,.28); padding:12px 10px 12px 0; text-align:left; vertical-align:top; }
.mrc-success-content th { font-size:1rem; font-weight:600; }
.mrc-success-content th:not(:first-child), .mrc-success-content td:not(:first-child) { text-align:right; }
.mrc-success-content tr td:last-child, .mrc-success-content tr th:last-child { padding-right:0; }
.mrc-success-variant { display:block; font-size:1rem; opacity:.75; }
.mrc-success-grand td { font-weight:600; }
.mrc-success-instructions, .mrc-success-message { background:rgba(255,255,255,.65); padding:12px 15px; margin:18px 0; }
@media (max-width:700px) {
    body.mrc-success-page .mrc-success-content { margin-top:20px; margin-bottom:100px; }
    .mrc-success-titleline { flex-direction:column; align-items:flex-start; gap:8px; }
    body.mrc-success-page a.mrc-success-back {
        width: 100%;
        height: auto;
        min-height: 42px;
        padding-top: 8px;
        padding-bottom: 8px;
        white-space: normal;
    }
    .mrc-success-content th, .mrc-success-content td { padding-top:10px; padding-bottom:10px; }
}


/* =========================================================
   MMfdK. – Mercato Storefront Page (mrc-page)
   Nur Inhaltsseiten mit body.mrc-content-page.
   Kein Eingriff in #logo, #magenta, #wrapper_content oder Footer.
   ========================================================= */
body.mrc-content-page .mrc-mmfdk-content {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    color: #000;
    font-family: univers-next-pro, sans-serif;
    font-size: 1.3rem;
    line-height: 1.7rem;
}

body.mrc-content-page .mrc-mmfdk-content-title {
    margin: 0 0 2rem;
    padding: 0;
    color: #000;
    font-family: univers-next-pro, sans-serif;
	font-size: 2.8rem;
	line-height: 3.2rem;
    font-weight: 400;
}

body.mrc-content-page .mrc-mmfdk-content-body {
    color: #000;
    font: inherit;
    overflow-wrap: break-word;
}

body.mrc-content-page .mrc-mmfdk-content-body p {
    margin: 0 0 1.3rem;
}

/* Überschriften wie in main.css – ausschließlich auf mrc-page-Inhaltsseiten. */
body.mrc-content-page .mrc-mmfdk-content-body h2,
body.mrc-content-page .mrc-mmfdk-content-body h3 {
    color: #000;
    font-family: univers-next-pro, sans-serif;
    font-weight: 400;
    margin-top: 0;
    margin-bottom: 1rem;
}

body.mrc-content-page .mrc-mmfdk-content-body h2 {
    font-size: 2.8rem;
    line-height: 3.2rem;
}

body.mrc-content-page .mrc-mmfdk-content-body h3,
body.mrc-content-page .mrc-mmfdk-content-body h2.h2_wie_h3,
body.mrc-content-page .mrc-mmfdk-content-body .h2_wie_h3 h2 {
    font-size: 2rem;
    line-height: 2.2rem;
}

@media only screen and (max-width: 430px) {
    body.mrc-content-page .mrc-mmfdk-content-body h2.h2_wie_h3,
    body.mrc-content-page .mrc-mmfdk-content-body .h2_wie_h3 h2 {
        font-size: 1.8rem;
        line-height: 2rem;
    }
}

body.mrc-content-page .mrc-mmfdk-content-body ul,
body.mrc-content-page .mrc-mmfdk-content-body ol {
    margin: 0 0 1.3rem;
    padding-left: 1.5em;
}

body.mrc-content-page .mrc-mmfdk-content-body li {
    margin-bottom: 0.4rem;
}

body.mrc-content-page .mrc-mmfdk-content-body a {
    color: #000;
    text-decoration: underline;
}



/* =========================================================
   Mini-Shop-Navi
   ========================================================= */

.mrc-legal-nav { margin-top: 8rem; }
body.mrc-page:has(.mrc-catalog-shell) .mrc-legal-nav { margin-top: 6rem; }
.mrc-legal-nav-links { display: inline-block;
	padding-top: 2rem;
	border-top: 2px solid black; }
.mrc-legal-withdrawal { display: block; }

