/**
 * WooCommerce parts (step 22/5–6): product page (gallery, add to cart, notices) and product cards.
 * Values measured on the Elementor Pro product page and loop grids (2026-10-01).
 */

/* ---------- Gallery: full column width, no float (WooCommerce default is 48% floated) ---------- */
.woocommerce div.product .marsi-product-images div.images,
.marsi-product-images .woocommerce-product-gallery {
	float: none;
	width: 100%;
	margin: 0 0 32px;
}

.marsi-product-images .woocommerce-product-gallery img {
	display: block;
	width: 100%;
	height: auto;
}

/* ---------- Single product add to cart: quantity pill + full-width pill button ----------
 * Prefixed with ".woocommerce div.product" to outrank WooCommerce's own form.cart rules (2em bottom margin,
 * 4px quantity margin, floats). */
.woocommerce div.product .marsi-atc form.cart {
	display: flex;
	flex-wrap: wrap; /* one-word label „Ajánlatkérésbe”: the button goes under the quantity rather than being cut */
	gap: 10px;
	margin: 0;
	padding: 0;
}

.woocommerce div.product .marsi-atc form.cart div.quantity {
	float: none;
	margin: 0;
}

.woocommerce div.product .marsi-atc form.cart .quantity .qty {
	width: 3.631em;
	height: 100%;
	box-sizing: border-box;
	padding: 0 16% 0 6%;
	font-family: "Mohave", sans-serif;
	font-size: 14px;
	font-weight: 600;
	line-height: 21px;
	text-align: center;
	text-transform: uppercase;
	vertical-align: top;
	color: #272727;
	background-color: transparent;
	border: 1px solid #272727;
	border-radius: 100px;
}

.woocommerce div.product .marsi-atc form.cart .quantity .qty:focus {
	color: #bdaf82;
	border-color: #bdaf82;
	outline: none;
}

.woocommerce div.product .marsi-atc form.cart button.single_add_to_cart_button {
	float: none;
	flex: 1 0 auto;
	margin: 0;
	white-space: nowrap;
	padding: 5%;
	font-family: "Mohave", sans-serif;
	font-size: 16px;
	font-weight: 500;
	line-height: 16px;
	text-align: center;
	text-transform: uppercase;
	color: #272727;
	background-color: transparent;
	border: 1px solid #272727;
	border-radius: 100px;
	transition: color 0.3s, border-color 0.3s;
}

.woocommerce div.product .marsi-atc form.cart button.single_add_to_cart_button:hover,
.woocommerce div.product .marsi-atc form.cart button.single_add_to_cart_button:focus-visible {
	color: #bdaf82;
	background-color: transparent;
	border-color: #bdaf82;
}

/* ---------- Product cards (related products, equipment grid) ---------- */
.marsi-grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	grid-auto-rows: 1fr; /* Pro's "equal height": every row as tall as the tallest card */
	column-gap: 30px;
	row-gap: 60px;
}

.marsi-grid--termekek {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1200px) {
	.marsi-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.marsi-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.marsi-card {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.marsi-card * {
	word-break: break-word;
}

/* Elementor containers wrap on mobile; Pro's loop item did, which gives the button row its extra height there. */
@media (max-width: 767px) {
	.marsi-card {
		flex-wrap: wrap;
	}
}

.marsi-card__image {
	display: block;
}

.marsi-card__image img {
	display: block;
	width: 100%;
	height: auto;
}

.marsi-card__title-row {
	min-height: 50px;
}

.marsi-card .marsi-card__title {
	margin: 0;
	padding: 0;
	font-family: "Mohave", sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1;
	color: #272727;
}

.marsi-card__title a {
	color: inherit;
	text-decoration: none;
}

/* Button row + WooCommerce's "Kosár" link (moved under the row by shop.js), as Pro's add-to-cart container. */
.marsi-card__cart {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.marsi-card__cart > form {
	flex: 0 0 100%;
}

.marsi-card .marsi-card__form,
.woocommerce div.product .marsi-card form.cart {
	margin: 0;
	padding: 0;
}

/* Related products sit inside div.product, where WooCommerce floats form.cart buttons. */
.woocommerce div.product .marsi-card form.cart .button {
	float: none;
}

.marsi-card .marsi-card__form a.button {
	display: block;
	width: 100%;
	box-sizing: border-box;
	margin: 0;
	padding: 5%;
	font-family: "Mohave", sans-serif;
	font-size: 14px;
	font-weight: 600;
	line-height: 14px;
	text-align: center;
	text-transform: uppercase;
	text-decoration: none;
	color: #272727;
	background-color: transparent;
	border: 1px solid #272727;
	border-radius: 100px;
	transition: color 0.3s, border-color 0.3s;
}

.marsi-card .marsi-card__form a.button:hover,
.marsi-card .marsi-card__form a.button:focus-visible {
	color: #bdaf82;
	background-color: transparent;
	border-color: #bdaf82;
}

.marsi-card .added_to_cart,
.marsi-atc .added_to_cart {
	font-family: "Mohave", sans-serif;
	font-size: 14px;
	font-weight: 400;
	color: #bdaf82;
}

/* ---------- Card with quantity (equipment page): quantity pill + button in one row ---------- */
/* The button label is one long word („Ajánlatkérésbe”, 2026-10-06): when it does not fit next to the quantity,
   the button moves under it at full width instead of breaking the word. */
.marsi-card--qty .marsi-card__form {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	gap: 10px;
}

.marsi-card--qty .marsi-card__form .quantity {
	display: block;
	float: none;
	margin: 0;
}

.marsi-card--qty .marsi-card__form .quantity .qty {
	width: 3.631em;
	height: 100%;
	box-sizing: border-box;
	margin: 0;
	padding: 0 16% 0 6%;
	font-family: "Mohave", sans-serif;
	font-size: 14px;
	font-weight: 600;
	line-height: 21px;
	text-align: center;
	text-transform: uppercase;
	color: #272727;
	background-color: transparent;
	border: 1px solid #272727;
	border-radius: 100px;
}

.marsi-card--qty .marsi-card__form .quantity .qty:focus {
	color: #bdaf82;
	border-color: #bdaf82;
	outline: none;
}

.marsi-card--qty .marsi-card__form a.button {
	flex: 1 0 auto;
	width: auto;
	margin-left: 0;
}

.marsi-card .marsi-card__form a.button {
	white-space: nowrap;
}

@media (max-width: 767px) {
	.marsi-card .marsi-card__form a.button {
		padding-right: 8px;
		padding-left: 8px;
	}
}

/* ---------- Category filter (equipment page) ----------
 * Desktop: vertical list. ≤880px: one horizontal row that scrolls; it starts at the left edge so every item can be
 * reached (Pro centred it, which cut off "Mind" and the first categories). */
.marsi-filter {
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	flex-shrink: 0;
	align-items: flex-start;
	justify-content: center;
	gap: 20px;
	-ms-overflow-style: none;
	scrollbar-width: none;
}

.marsi-filter::-webkit-scrollbar {
	display: none;
}

.marsi-filter.e-scroll {
	cursor: grabbing;
}

.marsi-filter .e-filter-item {
	display: flex;
	flex-basis: content;
	flex-grow: 0;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	box-sizing: initial;
	width: initial;
	max-width: calc(100% - 24px);
	margin: 0;
	padding: 8px;
	overflow: hidden;
	overflow-wrap: break-word;
	white-space: initial;
	text-align: start;
	font-family: var(--e-global-typography-0bd3a85-font-family), sans-serif;
	font-size: var(--e-global-typography-0bd3a85-font-size);
	font-weight: var(--e-global-typography-0bd3a85-font-weight);
	line-height: normal;
	text-transform: var(--e-global-typography-0bd3a85-text-transform);
	color: #272727;
	background-color: transparent;
	border: 0 solid #272727;
	border-radius: 0;
	cursor: pointer;
}

.marsi-filter .e-filter-item:hover,
.marsi-filter .e-filter-item:focus,
.marsi-filter .e-filter-item[aria-pressed="true"] {
	color: #bdaf82;
	background-color: transparent;
	border-color: #bdaf82;
}

.marsi-filter .e-filter-item:focus:not(:focus-visible) {
	outline: none;
}

@media (max-width: 880px) {
	.elementor-element.elementor-element-64c24c2 {
		width: 100%;
		max-width: 100%;
	}

	.marsi-filter {
		flex-direction: row;
		flex-wrap: nowrap;
		justify-content: flex-start;
		gap: 30px;
		overflow-x: scroll;
	}

	.marsi-filter .e-filter-item {
		white-space: nowrap;
		border-bottom-width: 1px;
	}
}

@media (max-width: 767px) {
	.marsi-filter {
		gap: 25px;
	}
}

/* ---------- Pagination (equipment page) ---------- */
.marsi-pagination {
	margin-top: 50px;
	text-align: center;
	font-family: var(--e-global-typography-text-font-family), sans-serif;
	font-size: var(--e-global-typography-text-font-size);
	font-weight: var(--e-global-typography-text-font-weight);
}

.marsi-pagination .page-numbers {
	color: var(--e-global-color-text);
	text-decoration: none;
}

.marsi-pagination .page-numbers:not(:first-child) {
	margin-left: 5px;
}

.marsi-pagination .page-numbers:not(:last-child) {
	margin-right: 5px;
}

.marsi-pagination a.page-numbers:hover,
.marsi-pagination .page-numbers.current {
	color: var(--e-global-color-primary);
}

/* ---------- Added-to-list notice (assets/shop.js, 2026-10-06) ---------- */
.marsi-toast {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 9990;
	display: flex;
	align-items: center;
	gap: 14px;
	box-sizing: border-box;
	max-width: min(440px, calc(100vw - 32px));
	padding: 14px 8px 14px 16px;
	font-family: "Mohave", sans-serif;
	font-size: 16px;
	line-height: 1.35;
	color: #272727;
	background: #fff;
	border-left: 4px solid #bdaf82;
	border-radius: 6px;
	box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
}

.marsi-toast.is-visible {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: opacity 0.25s ease-out, transform 0.25s ease-out, visibility 0s;
}

.marsi-toast__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #bdaf82;
}

.marsi-toast__icon {
	width: 15px;
	height: 15px;
	fill: #fff;
}

.marsi-toast__text {
	flex: 1 1 auto;
	min-width: 0;
	overflow-wrap: anywhere;
}

.marsi-toast__text strong {
	font-weight: 600;
}

.marsi-toast .marsi-toast__open {
	flex: 0 0 auto;
	min-height: 44px;
	padding: 0 10px;
	font-family: "Mohave", sans-serif;
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	text-decoration: underline;
	text-underline-offset: 3px;
	color: #272727;
	background: transparent;
	border: 0;
	cursor: pointer;
}

.marsi-toast .marsi-toast__x {
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	padding: 0;
	font-size: 24px;
	line-height: 1;
	color: #272727;
	background: transparent;
	border: 0;
	cursor: pointer;
}

.marsi-toast .marsi-toast__open:hover,
.marsi-toast .marsi-toast__open:focus-visible,
.marsi-toast .marsi-toast__x:hover,
.marsi-toast .marsi-toast__x:focus-visible {
	color: #bdaf82;
	background: transparent;
}

@media (max-width: 767px) {
	.marsi-toast {
		right: 16px;
		bottom: 16px;
		left: 16px;
		flex-wrap: wrap;
		max-width: none;
	}

	.marsi-toast__text {
		flex-basis: calc(100% - 46px - 44px - 28px);
	}

	.marsi-toast .marsi-toast__open {
		order: 3;
		margin-left: 46px;
		padding: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.marsi-toast,
	.marsi-toast.is-visible {
		transform: none;
		transition: none;
	}
}
