/* ============================================================
   mamakupi.css — глобальний шар перевизначення стандартних класів OC3.
   Підключається в header.twig одразу після stylesheet.css і діє
   на всіх сторінках. Сторінкові файли (mamakupi-category.css тощо)
   містять лише унікальну верстку конкретних сторінок.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400&family=Nunito+Sans:ital,opsz,wght@0,6..12,400;0,6..12,500;1,6..12,400&display=swap');

/* ── CSS-змінні дизайн-системи ──────────────────────────────── */
:root {
	--mk-max-width: 1600px;
	--mk-max-width-checkout: 1376px;

	/* Фони */
	--mk-page-bg: #fbfbf9;
	--mk-white: #fff;
	--mk-brand-bg: #d0dd91;
	--mk-brand-bg-light: rgba(208, 221, 145, 0.12);

	/* Текст */
	--mk-fg-primary: #1d1d15;
	--mk-fg-secondary: #5b5b49;
	--mk-fg-tertiary: #7c7c65;
	--mk-fg-brand: #465400;
	--mk-fg-brand-alt: #889937;
	--mk-brand-text: #5d6c12;
	--mk-price: #738325;
	--mk-orange: #d1532a;
	--mk-orange-light: #F5855E;

	/* Бордери */
	--mk-border: #e8e8e3;
	--mk-border-tertiary: #f4f4f0;
	--mk-brand-border: #dfe9af;

	/* Бейджі */
	--mk-badge-new: rgba(124, 207, 0, 0.2);
	--mk-badge-sale: rgba(97, 95, 255, 0.2);
}

a:focus {
	outline: none;
}

/* ── Breadcrumbs ─────────────────────────────────────────────── */
.breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	margin: 0;
	padding: 0;
	list-style: none;
	background: none;
	border: none;
	border-radius: 0;
}

.breadcrumb > li {
	display: inline-flex;
	align-items: center;
	padding: 0;
	position: static;
	text-shadow: none;
	white-space: normal;
}

/* скидаємо стрілку-ромб з ванільного stylesheet.css */
.breadcrumb > li::after {
	display: none;
}

.breadcrumb > li + li::before {
	content: '/';
	margin: 0 2px;
	font-size: 16px;
	line-height: 20px;
	color: var(--mk-fg-tertiary);
	padding: 0;
}

.breadcrumb > li a,
.breadcrumb > li span {
	display: inline-flex;
	padding: 4px 10px;
	font-size: 16px;
	line-height: 20px;
	color: var(--mk-fg-secondary);
	text-decoration: none;
	border-radius: 999px;
}

.breadcrumb > li a:hover {
	color: var(--mk-orange);
	text-decoration: none;
}

/* ── Pagination ──────────────────────────────────────────────── */
.pagination {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
	border-radius: 0;
}

.pagination > li {
	display: inline-flex;
}

.pagination > li > a,
.pagination > li > span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 8px 14px;
	border: 0;
	border-radius: 999px !important;
	background: transparent;
	font-size: 16px;
	line-height: 20px;
	color: var(--mk-fg-secondary);
	text-decoration: none;
}

.pagination > li > a:hover {
	background: var(--mk-brand-bg-light);
	color: var(--mk-fg-secondary);
	text-decoration: none;
}

.pagination > .active > span {
	background: var(--mk-brand-bg-light);
	border: 1px solid var(--mk-brand-border);
	color: var(--mk-brand-text);
}

.pagination > li:first-child > a,
.pagination > li:last-child > a,
.pagination > li:nth-last-child(2) > a {
	min-width: 44px;
	height: 44px;
	padding: 10px;
	border: 1px solid var(--mk-border);
	background: var(--mk-white);
	font-size: 18px;
}

/* Ховаємо кнопки пагінації без тексту (OpenCart може генерувати порожній text_last/text_first) */
.pagination > li:has(> a:empty) {
	display: none;
}

/* ── Product card ────────────────────────────────────────────── */
.mk-product-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.mk-product-card__badges {
	position: absolute;
	top: 20px;
	left: -8px;
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: 6px;
	pointer-events: none;
}

.mk-product-card__badge {
	padding: 4px 6px;
	border: 1px solid rgba(255, 255, 255, 0.5);
	border-radius: 14px;
	font-size: 9px;
	font-weight: 500;
	line-height: 12px;
	text-transform: uppercase;
	color: rgba(0, 0, 0, 0.7);
	white-space: nowrap;
}

.mk-product-card__badge--new {
	background: linear-gradient(90deg, var(--mk-badge-new) 0%, var(--mk-badge-new) 100%), var(--mk-page-bg);
}

.mk-product-card__badge--sale {
	background: linear-gradient(90deg, var(--mk-badge-sale) 0%, var(--mk-badge-sale) 100%), var(--mk-page-bg);
}

.mk-product-card__image-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 240 / 340;
	border: 1px solid var(--mk-border);
	border-radius: 26px;
	overflow: hidden;
	background: #f7f7f4;
}

.mk-product-card__image-wrap img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
	display: block;
	transition: transform 0.3s ease;
}

.mk-product-card:hover .mk-product-card__image-wrap img {
	transform: scale(1.02);
}

.mk-product-card__body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding-top: 8px;
}

.mk-product-card__name {
	display: -webkit-box;
	height: 40px;
	margin: 0;
	overflow: hidden;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	font-size: 16px;
	line-height: 20px;
	color: var(--mk-fg-secondary);
	text-decoration: none;
}

.mk-product-card__name:hover {
	color: var(--mk-fg-secondary);
	text-decoration: none;
}

.mk-product-card__options {
	display: flex;
	align-items: flex-start;
	gap: 4px;
	width: 100%;
	min-height: 36px;
}

.mk-product-card__colors {
	display: flex;
	align-items: center;
	padding: 6px 0;
	flex-shrink: 0;
}

.mk-product-card__swatch {
	display: inline-block;
	width: 18px;
	height: 18px;
	border: 1px solid rgba(0, 0, 0, 0.3);
	border-radius: 999px;
	background: var(--mk-swatch-color, #ccc);
	box-shadow: 0 0 2px rgba(0, 0, 0, 0.14);
	flex-shrink: 0;
	cursor: pointer;
}

.mk-product-card__colors .mk-product-card__swatch:not(:first-child) {
	margin-left: -12px;
}

.mk-product-card__swatch.is-active {
	box-shadow: 0 0 0 2px var(--mk-white), 0 0 0 3px #c0d074;
}

.mk-product-card__swatch--multicolor {
	background: linear-gradient(135deg, #f1c40f 0%, #e74c3c 33%, #3498db 66%, #2ecc71 100%);
}

.mk-product-card__sizes {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex: 1;
	min-width: 0;
	padding: 8px 0;
	overflow: hidden;
}

.mk-product-card__size {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 37px;
	height: 20px;
	padding: 0 4px;
	margin-left: -8px;
	border: 1px solid var(--mk-border-tertiary);
	border-radius: 20px;
	background: var(--mk-page-bg);
	font-size: 16px;
	line-height: 20px;
	color: var(--mk-fg-primary);
	white-space: nowrap;
}

.mk-product-card__size:first-child {
	margin-left: 0;
}

.mk-product-card__size--ellipsis {
	min-width: auto;
	padding: 0 6px;
	border: 0;
	background: transparent;
	color: var(--mk-fg-secondary);
}

.mk-product-card__footer {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
}

.mk-product-card__price {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 44px;
}

.mk-product-card__price-old {
	font-size: 14px;
	font-weight: 500;
	line-height: 16px;
	color: var(--mk-fg-tertiary);
	text-decoration: line-through;
}

.mk-product-card__price-current {
	font-size: 18px;
	line-height: 22px;
	color: var(--mk-price);
}

.mk-product-card__cart {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 10px;
	border: 1px solid var(--mk-brand-border);
	border-radius: 999px;
	background: var(--mk-brand-bg-light);
	cursor: pointer;
	flex-shrink: 0;
	text-decoration: none;
}

.mk-product-card__cart svg {
	width: 20px;
	height: 20px;
}

.mk-product-card__cart:hover {
	background: rgba(208, 221, 145, 0.24);
}

@media (max-width: 575px) {
	.mk-product-card__image-wrap {
		aspect-ratio: 203 / 290;
		border-radius: 24px;
	}

	.mk-product-card__name {
		font-size: 14px;
		font-weight: 500;
		line-height: 16px;
		height: 32px;
	}
}

.mk-html-module h2 {
	font-size: 40px;
	margin-bottom: 24px;
}
@media (max-width: 575px) {
	.mk-html-module h2 {
		font-size: 28px;
	}
}

.mk-html-module p,
.mk-html-module .mk-brand__feature {
	font-size: 18px;
}
