/* Morze Aniołów – Aukcje
   Kolory: zmień poniżej (każdy podkład ma własny kolor). */
.ma-wrap {
	--ma-price-bg: rgba(26, 31, 60, .66);   /* cena na zdjęciu (przezroczysta granatowa) */
	--ma-title-bg: #1a1f3c;                  /* tytuł – granat ze strony */
	--ma-date-bg: #d4af37;                   /* pozostały czas – złoto ze strony */
	--ma-value-bg: #f7efd2;                  /* wartość produktu – jasne złoto */
	--ma-bid-bg: #e09900;                    /* licytuj – bursztyn jak nagłówek strony */
	--ma-bid-hover: #c58500;
	--ma-text: #555;
	--ma-head-font: "Roboto Slab", Georgia, serif;
}

/* ---------- Siatka: 4 lub 6 kolumn (PC), 2/3 (tablet), 1 (telefon) ---------- */
.ma-wrap.ma-grid-cards {
	display: grid !important;
	gap: 24px;
	margin: 24px 0 40px;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}
.ma-wrap.ma-grid-cards.ma-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }

@media (max-width: 1100px) {
	.ma-wrap.ma-grid-cards,
	.ma-wrap.ma-grid-cards.ma-cols-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
	.ma-wrap.ma-grid-cards,
	.ma-wrap.ma-grid-cards.ma-cols-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
	.ma-wrap.ma-grid-cards,
	.ma-wrap.ma-grid-cards.ma-cols-6 { grid-template-columns: 1fr; gap: 22px; }
}

/* ---------- Karta ---------- */
.ma-wrap .ma-card {
	display: flex !important;
	flex-direction: column;
	background: #fff;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 5px 18px rgba(26, 31, 60, .14);
	transition: transform .25s ease, box-shadow .25s ease;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
}
.ma-wrap .ma-card { position: relative !important; cursor: pointer; }
.ma-wrap .ma-card .ma-title a::after { content: ""; position: absolute; inset: 0; z-index: 3; }
.ma-wrap .ma-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(26, 31, 60, .22); }

/* 1. Zdjęcie + cena wywoławcza na przezroczystości */
.ma-wrap .ma-photo {
	position: relative;
	display: block !important;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: linear-gradient(135deg, #f7efd2, #d3ecf2);
	text-decoration: none !important;
}
.ma-wrap .ma-photo img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	display: block;
	margin: 0 !important;
	transition: transform .4s ease;
}
.ma-wrap .ma-card:hover .ma-photo img { transform: scale(1.05); }
.ma-wrap .ma-noimg { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 56px; }

.ma-wrap .ma-price {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
	padding: 9px 14px;
	background: var(--ma-price-bg);
	color: #fff !important;
	backdrop-filter: blur(2px);
}
.ma-wrap .ma-price small { font-size: 12px; opacity: .92; color: #fff !important; }
.ma-wrap .ma-price b {
	font-family: "Lato", Arial, sans-serif !important;
	font-size: 25px;
	font-weight: 900;
	letter-spacing: .01em;
	color: #fff !important;
	white-space: nowrap;
}


/* 2. Tytuł */
.ma-wrap .ma-title {
	margin: 0 !important;
	padding: 12px 14px !important;
	background: var(--ma-title-bg);
	min-height: 5.6em;
	display: flex;
	align-items: center;
}
.ma-wrap .ma-title a {
	font-family: var(--ma-head-font) !important;
	color: #fff !important;
	text-decoration: none !important;
	font-size: 15.5px !important;
	line-height: 1.3 !important;
	font-weight: 700 !important;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* 3. Pozostały czas – pasek na górze zdjęcia (20% przezroczystości) */
.ma-wrap .ma-top {
	position: absolute;
	top: 0; left: 0; right: 0;
	padding: 8px 12px;
	text-align: center;
	font-size: 14px;
	font-weight: 800;
	background: rgba(212, 175, 55, .8);
	color: #1a1f3c !important;
}
.ma-wrap .ma-top.is-off { background: rgba(207, 207, 214, .8); }

/* 4. Zajawka */
.ma-wrap .ma-excerpt {
	flex: 1;
	margin: 0 !important;
	padding: 12px 14px !important;
	font-size: 14px !important;
	line-height: 1.5 !important;
	color: var(--ma-text) !important;
	background: #fff;
}

/* 5. Wartość produktu */
.ma-wrap .ma-value {
	background: var(--ma-value-bg);
	color: #4d3a00 !important;
	padding: 9px 14px;
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 8px;
}
.ma-wrap .ma-value small { font-size: 12.5px; color: #4d3a00 !important; }
.ma-wrap .ma-value b {
	font-family: var(--ma-head-font); font-size: 16px; font-weight: 800; color: #4d3a00 !important; white-space: nowrap; }

/* 6. Licytuj */
.ma-wrap .ma-bid {
	display: block !important;
	text-align: center;
	background: #1877f2;
	color: #fff !important;
	padding: 13px 14px;
	font-size: 15px;
	font-weight: 800;
	text-decoration: none !important;
	transition: background .2s ease;
}
.ma-wrap a.ma-bid:hover { background: #1465d0; }
.ma-wrap .ma-bid.is-off { background: #8d99a4; cursor: default; }

/* Zakończone */
.ma-wrap .ma-card.is-ended .ma-photo img { filter: grayscale(.6); opacity: .88; }
.ma-wrap .ma-card.is-ended .ma-title { background: #4a4d63; }

/* ---------- Puste / paginacja ---------- */
.ma-wrap.ma-empty {
	text-align: center; background: #f7efd2; border-radius: 16px;
	padding: 40px 24px; margin: 24px 0 40px; color: #1a1f3c;
}
.ma-wrap.ma-empty span { font-size: 44px; }
.ma-wrap.ma-empty p { margin: 10px 0 0; font-size: 17px; }
.ma-wrap.ma-empty-simple { color: #8a99a6; }

.ma-wrap.ma-pager { text-align: center; margin: 10px 0 30px; }
.ma-wrap.ma-pager .page-numbers {
	display: inline-block; min-width: 38px; padding: 8px 12px; margin: 0 3px;
	border-radius: 10px; background: #f7efd2; color: #1a1f3c !important;
	text-decoration: none !important; font-weight: 600;
}
.ma-wrap.ma-pager .page-numbers.current,
.ma-wrap.ma-pager .page-numbers:hover { background: #1a1f3c; color: #fff !important; }

/* ---------- Pojedyncza aukcja ---------- */
.ma-wrap.ma-single {
	background: #fff; border-radius: 16px;
	box-shadow: 0 5px 18px rgba(26, 31, 60, .12);
	padding: 22px 24px; margin: 0 0 26px;
}
.ma-wrap.ma-single .ma-badge {
	display: inline-block; padding: 6px 14px; border-radius: 999px;
	font-size: 13px; font-weight: 700; margin-bottom: 14px; color: #fff;
}
.ma-wrap.ma-single .ma-badge-live { background: #d4af37; color: #4a3500; }
.ma-wrap.ma-single .ma-badge-end { background: #5d6d7a; }
.ma-wrap .ma-info { list-style: none !important; margin: 0 0 12px !important; padding: 0 !important; display: grid; gap: 8px; }
.ma-wrap .ma-info li {
	list-style: none !important; display: flex; align-items: center; gap: 10px;
	background: #f7efd2; border-radius: 10px; padding: 9px 14px !important; margin: 0 !important;
	font-size: 15px; color: #555;
}
.ma-wrap .ma-info .ma-lbl { flex: 1; }
.ma-wrap .ma-info strong { color: #1a1f3c; white-space: nowrap; }
.ma-wrap .ma-donor { margin: 6px 0 14px; font-size: 15px; color: #555; }
.ma-wrap .ma-donor a { color: #1a1f3c !important; font-weight: 700; text-decoration: underline !important; }
.ma-wrap.ma-single .ma-btn {
	display: inline-block; background: #e09900; color: #1a1f3c !important;
	padding: 12px 22px; border-radius: 999px; font-weight: 800; text-decoration: none !important;
}
.ma-wrap.ma-single .ma-btn:hover { background: #c58500; }
