/*
Theme Name: Marketly | WooCommerce Divi Theme
Theme URI: https://marketly.divi-layouts-pro.com/
Description: Marketly is a modern, conversion-focused Divi 5 child theme for WooCommerce stores. Four homepage styles (marketplace, fashion, minimal, tech), a complete shop experience — product cards with quick view and wishlist, mini cart drawer, live search, filters, sticky add to cart — and a full demo store importable in one click.
Author: Divi Layouts Pro
Author URI: https://www.elegantthemes.com/marketplace/author/divi-layouts/
Template: Divi
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: woocommerce, e-commerce, shop, store, fashion, electronics, modern, minimal
Text Domain: marketly
*/

/* =========================================================================
   1. DESIGN TOKENS
   Every module is styled in the Divi Builder; these variables only feed
   the store components rendered by the theme (product cards, drawer…).
   ========================================================================= */

:root {
	--mk-blue: var(--gcid-primary-color, #2f5bff);
	--mk-blue-dark: #1f43d6;
	--mk-surface: var(--gcid-secondary-color, #f4f5f8);
	--mk-ink: var(--gcid-heading-color, #0f1115);
	--mk-body: var(--gcid-body-color, #4b5563);
	--mk-deep: var(--gcid-marketly-deep, #0b0d12);
	--mk-lime: var(--gcid-marketly-lime, #d9ff5c);
	--mk-coral: var(--gcid-marketly-coral, #ff5c39);
	--mk-sand: var(--gcid-marketly-sand, #f3efe8);
	--mk-line: var(--gcid-marketly-line, #e6e8ee);
	--mk-muted: var(--gcid-marketly-muted, #8a93a3);
	--mk-tint: var(--gcid-marketly-tint, #e9eeff);
	--mk-white: #ffffff;
	--mk-star: #f5a623;
	--mk-success: #1c9c5b;

	--mk-font-heading: var(--et_global_heading_font, "Plus Jakarta Sans"), "Helvetica Neue", Arial, sans-serif;
	--mk-font-body: var(--et_global_body_font, "DM Sans"), "Helvetica Neue", Arial, sans-serif;

	--mk-radius-sm: 10px;
	--mk-radius: 16px;
	--mk-radius-lg: 20px;
	--mk-radius-xl: 24px;

	--mk-shadow-xs: 0 1px 3px rgba(15, 17, 21, 0.08);
	--mk-shadow-sm: 0 8px 20px -10px rgba(15, 17, 21, 0.22);
	--mk-shadow: 0 18px 40px -18px rgba(15, 17, 21, 0.28);
	--mk-shadow-lg: 0 32px 60px -28px rgba(15, 17, 21, 0.35);

	--mk-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--mk-transition: 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

/* =========================================================================
   2. BASE
   ========================================================================= */

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}

html.mk-locked {
	overflow: hidden;
}

::selection {
	background: var(--mk-lime);
	color: var(--mk-ink);
	text-shadow: none;
}

/* Divi's mobile menu: show a close icon while the menu is open. */
.mobile_nav.opened .mobile_menu_bar:before {
	content: "\4d";
}

/* Accent word inside headings, e.g. <em class="mk-em">everything</em>. */
.mk-em {
	font-style: normal;
	color: var(--mk-blue);
}

.mk-em-lime {
	color: var(--mk-lime);
}

.mk-em-coral {
	color: var(--mk-coral);
}

/* Highlighted word: a lime marker stroke behind the text. */
.mk-mark {
	position: relative;
	white-space: nowrap;
	background-image: linear-gradient(120deg, var(--mk-lime), var(--mk-lime));
	background-repeat: no-repeat;
	background-size: 100% 0.38em;
	background-position: 0 88%;
	padding: 0 0.08em;
}

/* Outlined (hollow) word. */
.mk-outline {
	-webkit-text-stroke: 1.5px currentColor;
	color: transparent;
}

/* =========================================================================
   3. LAYOUT HELPERS
   Effects the Design tab cannot produce. Classes are added to modules from
   Advanced > CSS ID & Classes.
   ========================================================================= */

/* Subtle film grain on dark sections. */
.mk-grain {
	position: relative;
}

.mk-grain::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
	opacity: 0.06;
	mix-blend-mode: overlay;
	pointer-events: none;
	z-index: 0;
}

/* Only the section's rows sit above the grain: Divi's own background layers
   (pattern, mask, parallax, video) and the Visual Builder's hover UI must keep
   their absolute positioning, otherwise the section resizes on hover in the
   builder. */
.mk-grain > .et_pb_row {
	position: relative;
	z-index: 1;
}

/* Lift on hover (cards, category tiles, promo blocks). */
.mk-lift {
	transition: transform var(--mk-transition), box-shadow var(--mk-transition);
}

.mk-lift:hover {
	transform: translateY(-4px);
	box-shadow: var(--mk-shadow);
}

/* Scroll reveal for loop items (see initReveal in marketly.js). Modules use
   the Design tab animation; this covers product cards, category cards and
   blog posts, which are rendered by WooCommerce / WordPress loops. */
@keyframes mk-reveal {
	from {
		opacity: 0;
		translate: 0 18px;
	}

	to {
		opacity: 1;
		translate: none;
	}
}

.mk-reveal-ready .et_pb_shop:not(.mk-products-carousel) ul.products > li.product:not(.mk-in),
.mk-reveal-ready .mk-categories .mk-category:not(.mk-in),
.mk-reveal-ready .mk-blog .et_pb_post:not(.mk-in) {
	opacity: 0;
}

.mk-reveal-ready .mk-in {
	animation: mk-reveal 0.7s var(--mk-ease) both;
}

/* Slow zoom on hover for image modules (add the class to the Image module). */
.mk-zoom {
	overflow: hidden;
}

.mk-zoom img {
	transition: transform 0.9s var(--mk-ease);
}

.mk-zoom:hover img {
	transform: scale(1.05);
}

/* Category / promo cards: everything is clickable. */
.mk-category-card,
.mk-promo-card {
	cursor: pointer;
}

/* Scrolling text strip. */
.mk-marquee {
	overflow: hidden;
	width: 100%;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.mk-marquee-track {
	display: inline-flex;
	align-items: center;
	white-space: nowrap;
	line-height: 1.15;
	animation: mk-marquee 34s linear infinite;
	will-change: transform;
}

.mk-marquee-item {
	font-family: var(--mk-font-heading);
	font-weight: 700;
	font-size: 15px;
	line-height: 1.15;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: inherit;
	padding: 0 32px;
	position: relative;
}

.mk-marquee-item::after {
	content: "";
	position: absolute;
	right: -4px;
	top: 50%;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: currentColor;
	opacity: 0.6;
	transform: translateY(-50%);
}

.mk-marquee-item em {
	font-style: normal;
	color: var(--mk-blue);
}

.mk-marquee-dark .mk-marquee-item {
	color: var(--mk-white);
}

.mk-marquee-dark .mk-marquee-item em {
	color: var(--mk-lime);
}

.mk-marquee-large .mk-marquee-item {
	font-size: clamp(32px, 6vw, 84px);
	letter-spacing: -0.03em;
	text-transform: none;
	padding: 0 40px;
}

.mk-marquee-large .mk-marquee-item::after {
	width: 12px;
	height: 12px;
	right: -6px;
}

@keyframes mk-marquee {
	from {
		transform: translateX(0);
	}

	to {
		transform: translateX(-50%);
	}
}

@media (prefers-reduced-motion: reduce) {
	.mk-marquee-track {
		animation: none;
	}

	.mk-lift,
	.mk-zoom img {
		transition: none;
	}

	/* Divi entrance animations: show the modules straight away. */
	.et-db #et-boc .et-l [data-animation-style],
	.et-db #et-boc .et-l .et_animated {
		animation: none !important;
		opacity: 1 !important;
		transform: none !important;
	}
}

/* Sticky header: frosted glass, compact once the page has scrolled. */
.mk-header {
	-webkit-backdrop-filter: blur(14px) saturate(160%);
	backdrop-filter: blur(14px) saturate(160%);
	transition: padding var(--mk-transition), background-color var(--mk-transition), box-shadow var(--mk-transition);
}

body.mk-scrolled .mk-header.et_pb_sticky {
	box-shadow: 0 10px 30px -14px rgba(15, 17, 21, 0.25);
}

/* Header row: keep the logo, the menu and the icons on one line. */
.mk-header .et_pb_menu__logo-wrap {
	flex-shrink: 0;
}

/* Top-level links: colour eases in and a short underline grows from the left
   on hover, then leaves to the right (also shown under the current page).
   Divi's dropdown chevron uses ::after, so the underline is the ::before. */
.mk-header .et_pb_menu__menu > nav > ul > li > a,
.et-db #et-boc .et-l .mk-header .et_pb_menu__menu > nav > ul > li > a {
	position: relative;
	padding-top: 10px;
	padding-bottom: 10px;
	opacity: 1;
	transition: color var(--mk-transition), opacity var(--mk-transition);
}

.mk-header .et_pb_menu__menu > nav > ul > li > a::before,
.et-db #et-boc .et-l .mk-header .et_pb_menu__menu > nav > ul > li > a::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 4px;
	height: 2px;
	border-radius: 2px;
	background: var(--mk-blue);
	transform: scaleX(0);
	transform-origin: right center;
	transition: transform var(--mk-transition);
}

.mk-header .et_pb_menu__menu > nav > ul > li > a:hover::before,
.mk-header .et_pb_menu__menu > nav > ul > li.current-menu-item > a::before,
.mk-header .et_pb_menu__menu > nav > ul > li.current-menu-ancestor > a::before,
.et-db #et-boc .et-l .mk-header .et_pb_menu__menu > nav > ul > li > a:hover::before,
.et-db #et-boc .et-l .mk-header .et_pb_menu__menu > nav > ul > li.current-menu-item > a::before,
.et-db #et-boc .et-l .mk-header .et_pb_menu__menu > nav > ul > li.current-menu-ancestor > a::before {
	transform: scaleX(1);
	transform-origin: left center;
}

.mk-header .et_pb_menu__menu > nav > ul > li.menu-item-has-children > a::before,
.et-db #et-boc .et-l .mk-header .et_pb_menu__menu > nav > ul > li.menu-item-has-children > a::before {
	right: 20px;
}

.mk-header .et_pb_menu .et_pb_menu__wrap {
	justify-content: center;
}

/* Desktop navigation centred in the header, whatever the logo and icon widths.
   The Menu module and its inner container are positioned by Divi, which would
   centre the links on the module (logo + menu) instead of the whole row, so
   they are made static here and the row becomes the reference. */
@media (min-width: 981px) {
	.mk-header .et_pb_row,
	.et-db #et-boc .et-l .mk-header .et_pb_row {
		position: relative;
	}

	.mk-header .et_pb_menu,
	.mk-header .et_pb_menu .et_pb_menu_inner_container,
	.et-db #et-boc .et-l .mk-header .et_pb_menu,
	.et-db #et-boc .et-l .mk-header .et_pb_menu .et_pb_menu_inner_container {
		position: static;
	}

	.mk-header .et_pb_menu__menu,
	.et-db #et-boc .et-l .mk-header .et_pb_menu__menu {
		position: absolute;
		left: 50%;
		top: 50%;
		width: max-content;
		white-space: nowrap;
		transform: translate(-50%, -50%);
	}
}

.mk-header .et_pb_menu__menu > nav > ul > li.menu-item-has-children > a::after {
	font-size: 12px;
	top: 12px;
}

/* Dropdowns: a floating card with a small arrow; links get a blue dot and
   slide to the right on hover. */
.mk-header .et_pb_menu .nav li ul,
.mk-header .et_pb_menu .et-menu-nav .nav li ul,
.et-db #et-boc .et-l .mk-header .et_pb_menu .nav li ul {
	width: 236px;
	margin-top: 4px;
	padding: 10px;
	border: 1px solid var(--mk-line);
	border-top-width: 1px;
	border-radius: 16px;
	background: var(--mk-white);
	box-shadow: 0 30px 60px -24px rgba(15, 17, 21, 0.35), 0 2px 8px rgba(15, 17, 21, 0.06);
}

.mk-header .et_pb_menu .nav li ul::before,
.et-db #et-boc .et-l .mk-header .et_pb_menu .nav li ul::before {
	content: "";
	position: absolute;
	top: -7px;
	left: 26px;
	width: 12px;
	height: 12px;
	border-top: 1px solid var(--mk-line);
	border-left: 1px solid var(--mk-line);
	border-radius: 3px 0 0 0;
	background: var(--mk-white);
	transform: rotate(45deg);
}

/* Invisible bridge over the gap between the parent link and the card, so the
   hover state survives the trip down. */
.mk-header .et_pb_menu .nav li ul::after,
.et-db #et-boc .et-l .mk-header .et_pb_menu .nav li ul::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: -14px;
	height: 14px;
}

/* Nested (third-level) dropdowns open to the side: no arrow. */
.mk-header .et_pb_menu .nav li ul li ul::before,
.et-db #et-boc .et-l .mk-header .et_pb_menu .nav li ul li ul::before {
	display: none;
}

.mk-header .et_pb_menu .nav li ul li,
.et-db #et-boc .et-l .mk-header .et_pb_menu .nav li ul li {
	display: block;
	width: 100%;
	float: none;
	padding: 0;
	margin: 0;
}

.mk-header .et_pb_menu .nav li ul li a,
.et-db #et-boc .et-l .mk-header .et_pb_menu .nav li ul li a,
.et-db #et-boc .et-l .mk-header .et_pb_menu .nav li ul.sub-menu li a {
	position: relative;
	display: flex;
	align-items: center;
	width: auto;
	margin: 0;
	padding: 9px 14px 9px 24px;
	border-radius: 10px;
	background-color: transparent;
	font-size: 14.5px;
	line-height: 1.35;
	opacity: 1;
	transition: color var(--mk-transition), transform var(--mk-transition), opacity var(--mk-transition);
}

.mk-header .et_pb_menu .nav li ul li a::before,
.et-db #et-boc .et-l .mk-header .et_pb_menu .nav li ul li a::before {
	content: "";
	position: absolute;
	left: 10px;
	top: 50%;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--mk-blue);
	opacity: 0;
	transform: translateY(-50%) scale(0.4);
	transition: opacity var(--mk-transition), transform var(--mk-transition);
}

.mk-header .et_pb_menu .nav li ul li a:hover,
.et-db #et-boc .et-l .mk-header .et_pb_menu .nav li ul li a:hover,
.et-db #et-boc .et-l .mk-header .et_pb_menu .nav li ul li:hover > a,
.et-db #et-boc .et-l .mk-header .et_pb_menu .nav li ul li.current-menu-item > a {
	background-color: transparent;
	opacity: 1;
	transform: translateX(4px);
}

.mk-header .et_pb_menu .nav li ul li a:hover::before,
.et-db #et-boc .et-l .mk-header .et_pb_menu .nav li ul li a:hover::before,
.et-db #et-boc .et-l .mk-header .et_pb_menu .nav li ul li:hover > a::before,
.et-db #et-boc .et-l .mk-header .et_pb_menu .nav li ul li.current-menu-item > a::before {
	opacity: 1;
	transform: translateY(-50%) scale(1);
}

/* Mobile menu: full width of the screen. The header section becomes the
   containing block, so the intermediate wrappers lose their positioning. */
@media (max-width: 980px) {
	.mk-header .et_pb_row,
	.mk-header .et_pb_column,
	.mk-header .et_pb_menu,
	.mk-header .et_pb_menu_inner_container,
	.mk-header .et_pb_menu__wrap,
	.et-db #et-boc .et-l .mk-header .et_pb_row,
	.et-db #et-boc .et-l .mk-header .et_pb_column,
	.et-db #et-boc .et-l .mk-header .et_pb_menu,
	.et-db #et-boc .et-l .mk-header .et_pb_menu_inner_container,
	.et-db #et-boc .et-l .mk-header .et_pb_menu__wrap {
		position: static;
	}

	.mk-header .et_mobile_menu,
	.et-db #et-boc .et-l .mk-header .et_mobile_menu {
		left: 0;
		right: 0;
		top: 100%;
		width: 100%;
		margin: 0;
		padding: 12px 24px 20px;
		border-top: 1px solid var(--mk-line);
		box-shadow: 0 30px 50px -30px rgba(15, 17, 21, 0.3);
	}

	.mk-header .et_mobile_menu li a,
	.et-db #et-boc .et-l .mk-header .et_mobile_menu li a {
		padding: 12px 0;
		border-color: var(--mk-line);
	}

	/* Parent items: no grey background, a chevron toggle, collapsed children. */
	.mk-header .et_mobile_menu li.menu-item-has-children,
	.et-db #et-boc .et-l .mk-header .et_mobile_menu li.menu-item-has-children {
		position: relative;
	}

	.mk-header .et_mobile_menu li.menu-item-has-children > a,
	.et-db #et-boc .et-l .mk-header .et_mobile_menu li.menu-item-has-children > a,
	.et-db #et-boc .et-l .mk-header .et_mobile_menu .menu-item-has-children > a {
		padding-right: 48px;
		background-color: transparent;
		font-weight: 600;
	}

	.mk-header .et_mobile_menu li li a,
	.et-db #et-boc .et-l .mk-header .et_mobile_menu li li a {
		padding-left: 16px;
		font-weight: 500;
	}

	.mk-submenu-toggle {
		position: absolute;
		top: 6px;
		right: 0;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 36px;
		height: 36px;
		padding: 0;
		border: 0;
		border-radius: 50%;
		background: var(--mk-surface);
		color: var(--mk-ink);
		cursor: pointer;
		transition: background-color var(--mk-transition), color var(--mk-transition);
	}

	.mk-submenu-toggle::before {
		content: "";
		width: 7px;
		height: 7px;
		margin-top: -3px;
		border-right: 2px solid currentColor;
		border-bottom: 2px solid currentColor;
		transform: rotate(45deg);
		transition: transform var(--mk-transition);
	}

	.mk-header .et_mobile_menu li.is-open > .mk-submenu-toggle {
		background: var(--mk-ink);
		color: var(--mk-white);
	}

	.mk-header .et_mobile_menu li.is-open > .mk-submenu-toggle::before {
		margin-top: 3px;
		transform: rotate(-135deg);
	}

	.mk-header .et_mobile_menu li.mk-collapsible > ul,
	.et-db #et-boc .et-l .mk-header .et_mobile_menu li.mk-collapsible > ul {
		display: none !important;
	}

	.mk-header .et_mobile_menu li.mk-collapsible.is-open > ul,
	.et-db #et-boc .et-l .mk-header .et_mobile_menu li.mk-collapsible.is-open > ul {
		display: block !important;
	}
}

/* Announcement bar. */
.mk-announcement .mk-marquee-item {
	font-size: 12px;
	letter-spacing: 0.1em;
	padding: 0 24px;
}

/* =========================================================================
   4. BLOG
   Divi styles the fonts, borders and images of the Blog module from the
   Design tab. These rules only fix what it does not expose.
   ========================================================================= */

.mk-blog .et_pb_post {
	overflow: hidden;
	transition: transform var(--mk-transition), box-shadow var(--mk-transition);
}

.mk-blog .et_pb_post:hover {
	transform: translateY(-4px);
	box-shadow: var(--mk-shadow);
}

.mk-blog .et_pb_post .et_pb_image_container {
	margin: 0;
}

.mk-blog .et_pb_post .entry-featured-image-url,
.et-db #et-boc .et-l .mk-blog .et_pb_post .entry-featured-image-url {
	margin-bottom: 20px;
}

.mk-blog .et_pb_post .entry-featured-image-url img {
	transition: transform 0.9s var(--mk-ease);
}

.mk-blog .et_pb_post:hover .entry-featured-image-url img {
	transform: scale(1.04);
}

.mk-blog .et_pb_post .entry-title,
.mk-blog .et_pb_post .post-meta,
.mk-blog .et_pb_post .post-content {
	padding-left: 26px;
	padding-right: 26px;
}

.mk-blog .et_pb_post .post-meta,
.et-db #et-boc .et-l .mk-blog .et_pb_post .post-meta {
	margin-top: 25px;
	margin-bottom: 8px;
}

.mk-blog .et_pb_post .entry-title,
.et-db #et-boc .et-l .mk-blog .et_pb_post .entry-title {
	margin-bottom: 0;
	padding-bottom: 0;
}

.mk-blog .et_pb_post .post-content,
.et-db #et-boc .et-l .mk-blog .et_pb_post .post-content {
	padding-bottom: 10px;
}

.mk-blog .et_pb_post .post-content .more-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 10px;
}

.mk-blog .et_pb_post .post-content .more-link::after {
	content: "\24";
	font-family: ETmodules;
	font-size: 14px;
	transition: transform var(--mk-transition);
}

.mk-blog .et_pb_post:hover .post-content .more-link::after {
	transform: translateX(4px);
}

/* Blog module pagination. */
.mk-blog .pagination a,
.mk-blog .wp-pagenavi a,
.mk-blog .wp-pagenavi span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 14px;
	border: 1px solid var(--mk-line);
	border-radius: var(--mk-radius-sm);
	transition: background-color var(--mk-transition), color var(--mk-transition), border-color var(--mk-transition);
}

.mk-blog .pagination a:hover,
.mk-blog .wp-pagenavi a:hover,
.mk-blog .wp-pagenavi span.current {
	background: var(--mk-ink);
	border-color: var(--mk-ink);
	color: var(--mk-white);
}

/* Post meta line (shortcode). */
.mk-post-meta {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 0;
}

.mk-post-meta > span {
	display: inline-flex;
	align-items: center;
}

.mk-post-meta > span + span::before {
	content: "";
	display: inline-block;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: currentColor;
	opacity: 0.45;
	margin: 0 12px;
}

.mk-post-meta a {
	color: var(--mk-blue);
	font-weight: 600;
}

/* Tags (shortcode). */
.mk-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.mk-tag {
	display: inline-flex;
	align-items: center;
	padding: 7px 14px;
	border-radius: 100px;
	border: 1px solid var(--mk-line);
	font-family: var(--mk-font-body);
	font-size: 13px;
	font-weight: 600;
	color: var(--mk-ink);
	text-decoration: none;
	transition: background-color var(--mk-transition), color var(--mk-transition), border-color var(--mk-transition);
}

.mk-tag:hover {
	background: var(--mk-ink);
	border-color: var(--mk-ink);
	color: var(--mk-white);
}

/* Breadcrumbs (shortcode). */
.mk-breadcrumbs {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 0;
}

.mk-breadcrumbs a {
	text-decoration: none;
}

.mk-breadcrumbs .mk-separator {
	display: inline-block;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: currentColor;
	opacity: 0.4;
	margin: 0 10px;
}

.mk-breadcrumbs > span:last-child {
	color: var(--mk-ink);
	font-weight: 600;
}

.mk-page-header.mk-page-header-dark .mk-breadcrumbs > span:last-child,
.mk-hero-dark .mk-breadcrumbs > span:last-child {
	color: var(--mk-white);
}

/* Single post content (class: mk-entry-content). */
.mk-entry-content img {
	border-radius: var(--mk-radius);
}

.mk-entry-content blockquote {
	border-left: 3px solid var(--mk-blue);
	padding: 8px 0 8px 28px;
	margin: 32px 0;
}

.mk-entry-content ul,
.mk-entry-content ol {
	padding-left: 22px;
}

.mk-entry-content li {
	margin-bottom: 8px;
}

.mk-entry-content h2,
.mk-entry-content h3 {
	margin-top: 1.6em;
}

.mk-entry-content figure {
	margin: 32px 0;
}

.mk-entry-content figcaption {
	font-size: 14px;
	color: var(--mk-muted);
	margin-top: 10px;
}

/* Post navigation module. */
.mk-post-nav .nav-previous a,
.mk-post-nav .nav-next a {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.mk-post-nav .nav-previous .meta-nav,
.mk-post-nav .nav-next .meta-nav {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--mk-muted);
}

/* Comments (class: mk-comments). Divi styles the fonts, the fields and the
   submit button from the Design tab; the list layout is not exposed there. */
.mk-comments #comment-wrap {
	padding: 0;
}

.mk-comments .commentlist {
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
}

.mk-comments .commentlist > li {
	margin: 0 0 16px;
	padding: 0;
	list-style: none;
}

.mk-comments .comment-body {
	position: relative;
	display: grid;
	grid-template-columns: 52px 1fr;
	column-gap: 18px;
	row-gap: 6px;
	padding: 24px 26px;
	background: var(--mk-white);
	border: 1px solid var(--mk-line);
	border-radius: var(--mk-radius);
}

.mk-comments .comment-body .avatar {
	grid-row: 1 / span 3;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	position: static;
}

.mk-comments .comment_avatar {
	position: static;
	grid-row: 1 / span 3;
	width: 52px;
	height: 52px;
	overflow: hidden;
	border-radius: 50%;
}

.mk-comments .comment_postinfo {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 12px;
	padding: 0;
}

.mk-comments .comment_postinfo .fn {
	font-weight: 700;
}

.mk-comments .comment_postinfo .comment_date {
	font-size: 13px;
	color: var(--mk-muted);
}

.mk-comments .comment_area .comment-content {
	padding: 0;
}

.mk-comments .comment_area .comment-content p {
	padding-bottom: 0;
}

.mk-comments .comment_area .comment-content p + p {
	margin-top: 8px;
}

.mk-comments .comment-reply-link {
	position: static;
	display: inline-flex;
	align-items: center;
	width: auto;
	margin-top: 8px;
	padding: 0;
	font-size: 13px;
	font-weight: 700;
	color: var(--mk-blue);
	background: none;
	border: 0;
	text-transform: none;
	letter-spacing: 0;
}

.mk-comments .comment-reply-link::before {
	content: "\e0ce";
	font-family: ETmodules;
	margin-right: 6px;
	font-size: 14px;
}

.mk-comments .comment-reply-link:hover {
	color: var(--mk-ink);
	background: none;
}

.mk-comments .children {
	list-style: none;
	margin: 16px 0 0 40px;
	padding: 0;
}

.mk-comments .children > li {
	margin-bottom: 16px;
}

.mk-comments #reply-title,
.mk-comments .comment-reply-title {
	margin-top: 32px;
}

.mk-comments .comment-form-comment textarea,
.mk-comments .form-submit {
	margin-bottom: 0;
}

.mk-comments .comment-form-author,
.mk-comments .comment-form-email {
	width: calc(50% - 10px);
	display: inline-block;
}

.mk-comments .comment-form-email {
	margin-left: 20px;
}

.mk-comments .comment-form-url {
	width: 100%;
}

.mk-comments .comment-form input[type="text"],
.mk-comments .comment-form input[type="email"],
.mk-comments .comment-form input[type="url"],
.mk-comments .comment-form textarea {
	width: 100%;
	margin-bottom: 14px;
}

.mk-comments .comment-form-cookies-consent {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	margin-bottom: 16px;
}

.mk-comments .comment-form-cookies-consent input {
	margin: 0;
}

@media (max-width: 767px) {
	.mk-comments .comment-form-author,
	.mk-comments .comment-form-email {
		width: 100%;
		display: block;
		margin-left: 0;
	}

	.mk-comments .comment-body {
		grid-template-columns: 40px 1fr;
		padding: 18px;
	}

	.mk-comments .comment-body .avatar,
	.mk-comments .comment_avatar {
		width: 40px;
		height: 40px;
	}

	.mk-comments .children {
		margin-left: 12px;
	}
}

/* =========================================================================
   5. FOOTER
   ========================================================================= */

.mk-footer-links a,
.et-db #et-boc .et-l .mk-footer-links a {
	display: block;
	width: fit-content;
	max-width: 100%;
	text-decoration: none;
	transition: color var(--mk-transition), transform var(--mk-transition), opacity var(--mk-transition);
}

.mk-footer-links a:hover,
.et-db #et-boc .et-l .mk-footer-links a:hover {
	transform: translateX(4px);
}

.mk-footer .et_pb_social_media_follow li a.icon {
	transition: background-color var(--mk-transition), color var(--mk-transition), transform var(--mk-transition);
}

.mk-footer .et_pb_social_media_follow li a.icon:hover {
	transform: translateY(-3px);
}

/* Payment badges (shortcode). */
.mk-payments,
.et-db #et-boc .et-l ul.mk-payments {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.mk-payment {
	display: inline-flex;
	align-items: center;
	height: 30px;
	padding: 0 10px;
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.14);
	font-family: var(--mk-font-heading);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.04em;
	color: rgba(255, 255, 255, 0.85);
	list-style: none;
}

.mk-payment-visa {
	font-style: italic;
	letter-spacing: 0.12em;
}

.mk-payment-mastercard {
	padding-left: 30px;
	position: relative;
}

.mk-payment-mastercard::before,
.mk-payment-mastercard::after {
	content: "";
	position: absolute;
	top: 50%;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	transform: translateY(-50%);
}

.mk-payment-mastercard::before {
	left: 8px;
	background: #eb001b;
}

.mk-payment-mastercard::after {
	left: 16px;
	background: #f79e1b;
	opacity: 0.9;
}

.mk-payment-paypal {
	color: #9cc2ff;
}

.mk-payments-light .mk-payment {
	background: var(--mk-white);
	border-color: var(--mk-line);
	color: var(--mk-ink);
}

/* =========================================================================
   6. DIVI MODULE TWEAKS
   ========================================================================= */

/* Cards lift on hover. */
.mk-card,
.et-db #et-boc .et-l .mk-card {
	transition: transform var(--mk-transition), box-shadow var(--mk-transition), border-color var(--mk-transition);
}

.mk-card:hover,
.et-db #et-boc .et-l .mk-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--mk-shadow);
}

/* Headings inside cards: the group gap already spaces the elements. */
.et-db #et-boc .et-l .mk-card .et_pb_module_header,
.et-db #et-boc .et-l .mk-promo-card .et_pb_module_header,
.et-db #et-boc .et-l .mk-product-spot .et_pb_module_header,
.et-db #et-boc .et-l .mk-review .et_pb_module_header,
.marketly-theme .mk-card .et_pb_module_header {
	padding: 0;
}

/* Timeline: card, marker and connector come from the Design tab; this
   turns the date into a badge and tightens the inner rhythm. */
.mk-timeline .et_pb_timeline_card,
.et-db #et-boc .et-l .mk-timeline .et_pb_timeline_card {
	transition: transform var(--mk-transition), box-shadow var(--mk-transition), border-color var(--mk-transition);
}

.mk-timeline .et_pb_timeline_item:hover .et_pb_timeline_card,
.et-db #et-boc .et-l .mk-timeline .et_pb_timeline_item:hover .et_pb_timeline_card {
	transform: translateY(-4px);
	border-color: rgba(47, 91, 255, 0.35);
	box-shadow: 0 24px 48px -22px rgba(15, 17, 21, 0.3);
}

.mk-timeline .et_pb_timeline_item:hover .et_pb_timeline_marker,
.et-db #et-boc .et-l .mk-timeline .et_pb_timeline_item:hover .et_pb_timeline_marker {
	transform: scale(1.2);
}

.mk-timeline .et_pb_timeline_marker,
.et-db #et-boc .et-l .mk-timeline .et_pb_timeline_marker {
	transition: transform var(--mk-transition);
}

/* The line runs through the gap to the next marker. */
.et_pb_timeline .et_pb_timeline_connector,
.et-db #et-boc .et-l .mk-timeline.et_pb_timeline .et_pb_timeline_track > :not(:last-child) .et_pb_timeline_connector {
	bottom: -40px;
}

.mk-timeline .et_pb_timeline_date,
.et-db #et-boc .et-l .mk-timeline .et_pb_timeline_date {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	width: auto;
	min-height: 26px;
	margin: 0 0 12px;
	padding: 0 11px;
	border-radius: 100px;
	background: var(--mk-tint);
	line-height: 1;
}

.mk-timeline .et_pb_timeline_title,
.et-db #et-boc .et-l .mk-timeline .et_pb_timeline_title {
	margin: 0 0 6px;
	padding: 0;
}

.mk-timeline .et_pb_timeline_content p:last-child,
.et-db #et-boc .et-l .mk-timeline .et_pb_timeline_content p:last-child {
	padding-bottom: 0;
}

.mk-timeline .et_pb_timeline_marker,
.et-db #et-boc .et-l .mk-timeline .et_pb_timeline_marker {
	width: 16px;
	height: 16px;
	border-radius: 50%;
}

.mk-timeline .et_pb_timeline_connector,
.et-db #et-boc .et-l .mk-timeline .et_pb_timeline_connector,
.et-db #et-boc .et-l .mk-timeline.et_pb_timeline .et_pb_timeline_connector {
	left: 7px;
	width: 2px;
}

/* Number counters: no pinned height on the figure, no heading padding on
   the label, alignment follows the module. */
.marketly-theme .et_pb_number_counter .percent,
.et-db #et-boc .et-l .et_pb_number_counter .percent {
	height: auto !important;
	min-height: 52px;
	line-height: 1;
}

@media (max-width: 767px) {
	.marketly-theme .et_pb_number_counter .percent,
	.et-db #et-boc .et-l .et_pb_number_counter .percent {
		min-height: 40px;
	}
}

.marketly-theme .et_pb_number_counter .percent p,
.et-db #et-boc .et-l .et_pb_number_counter .percent p {
	height: auto;
	padding: 0;
}

.marketly-theme .et_pb_number_counter .title,
.et-db #et-boc .et-l .et_pb_number_counter .title {
	width: 100%;
	margin: 0;
	padding: 0;
	text-align: center;
}

.et-db #et-boc .et-l .et_pb_number_counter.et_pb_text_align_center .percent,
.et-db #et-boc .et-l .et_pb_number_counter.et_pb_text_align_center .title {
	text-align: center;
}

/* Group carousel: arrows outside the track, as round buttons. */
.mk-carousel .et_pb_group_carousel_arrow,
.mk-carousel .et_pb_group_carousel_arrows button {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--mk-white);
	border: 1px solid var(--mk-line);
	box-shadow: var(--mk-shadow-xs);
	transition: background-color var(--mk-transition), color var(--mk-transition), transform var(--mk-transition);
}

.mk-carousel .et_pb_group_carousel_arrow:hover,
.mk-carousel .et_pb_group_carousel_arrows button:hover {
	background: var(--mk-ink);
	color: var(--mk-white);
}

.mk-carousel-dark .et_pb_group_carousel_arrow,
.mk-carousel-dark .et_pb_group_carousel_arrows button {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.16);
	color: var(--mk-white);
}

/* Countdown: tidy digit tiles. */
.mk-countdown .et_pb_countdown_timer_container {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: flex-start;
}

.mk-countdown .section {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 84px;
	padding: 16px 12px;
	border-radius: var(--mk-radius-sm);
	background: var(--mk-surface);
}

.mk-countdown-dark .section {
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.mk-countdown .section.sep {
	display: none;
}

.mk-countdown .section p {
	line-height: 1;
}

.mk-countdown .section .label {
	margin-top: 6px;
}

/* Newsletter form: field and button side by side on desktop. */
.mk-newsletter-form .et_pb_contact_form {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: flex-start;
}

.mk-newsletter-form .et_pb_contact_form .et_pb_contact_field {
	flex: 1 1 260px;
	margin-bottom: 0;
	padding: 0;
}

.mk-newsletter-form .et_pb_contact_form .et_contact_bottom_container {
	flex: 0 0 auto;
	margin: 0;
	width: auto;
}

.mk-newsletter-form .et_pb_contact_form .et_pb_contact_submit {
	margin: 0;
}

.mk-newsletter-form .et_pb_contact_form .et_pb_contact_field input {
	height: 54px;
}

.mk-newsletter-form .et-pb-contact-message {
	width: 100%;
}

.mk-newsletter-form .et_pb_contact_form .et_pb_contact_captcha_question {
	color: inherit;
}

/* Contact form: Divi lays the fields out; only the submit spacing is adjusted. */
.mk-contact-form .et_pb_contact_form .et_contact_bottom_container {
	margin-top: 4px;
}

.mk-contact-form .et_pb_contact_form .et_pb_contact_submit {
	margin: 0;
}

/* Search module (404, blog sidebar). */
.mk-search-module .et_pb_searchform input.et_pb_s {
	height: 54px;
}

.mk-search-module .et_pb_searchform .et_pb_searchsubmit {
	height: 100%;
	border-radius: 0 100px 100px 0;
	padding: 0 22px;
}

/* Accordion (FAQ): no default Divi borders, icon spacing. */
.mk-faq .et_pb_toggle {
	border-width: 1px;
}

.mk-faq .et_pb_toggle_title::before {
	right: 4px;
}

.mk-faq .et_pb_toggle_content p:last-child {
	padding-bottom: 0;
}

/* Image mosaic used in the main hero. */
.mk-mosaic {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

.mk-mosaic > .et_pb_module {
	margin: 0;
}

/* Floating card over an image (hero, promo). */
.mk-float-card {
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

/* Section title for shortcode-driven blocks. */
.mk-section-title {
	font-family: var(--mk-font-heading);
	font-size: 28px;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--mk-ink);
	margin: 0 0 24px;
	padding: 0;
}

/* Icon list module items: keep icon and text aligned. */
.mk-icon-list .et_pb_icon_list_item {
	align-items: flex-start;
}

/* Tabs: pill style tab buttons. */
.mk-tabs .et_pb_tabs_controls {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	border: 0;
	background: transparent;
}

.mk-tabs .et_pb_tabs_controls li {
	border: 0;
	background: transparent;
	margin: 0;
}

.mk-tabs .et_pb_tabs_controls li a {
	border-radius: 100px;
	padding: 10px 20px;
	border: 1px solid var(--mk-line);
	transition: background-color var(--mk-transition), color var(--mk-transition), border-color var(--mk-transition);
}

.mk-tabs .et_pb_tabs_controls li.et_pb_tab_active a {
	background: var(--mk-ink);
	border-color: var(--mk-ink);
	color: var(--mk-white);
}

.mk-tabs .et_pb_all_tabs {
	padding-top: 24px;
}

.mk-tabs .et_pb_tab {
	padding: 0;
}

/* Size guide table (Text module). */
.mk-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid var(--mk-line);
	border-radius: var(--mk-radius);
	overflow: hidden;
	font-size: 15px;
}

.mk-table th,
.mk-table td {
	padding: 14px 18px;
	text-align: left;
	border-bottom: 1px solid var(--mk-line);
}

.mk-table th {
	background: var(--mk-surface);
	font-family: var(--mk-font-heading);
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--mk-ink);
}

.mk-table tr:last-child td {
	border-bottom: 0;
}

.mk-table tbody tr:nth-child(even) td {
	background: rgba(244, 245, 248, 0.5);
}

@media (max-width: 767px) {
	.mk-table {
		display: block;
		overflow-x: auto;
		white-space: nowrap;
	}
}

/* Plain policy pages. */
.mk-policy h2 {
	margin-top: 1.5em;
}

/* =========================================================================
   7. TOAST & BACK TO TOP
   ========================================================================= */

.mk-toast {
	position: fixed;
	left: 50%;
	bottom: 28px;
	z-index: 100000;
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 20px;
	border-radius: 100px;
	background: var(--mk-ink);
	color: var(--mk-white);
	font-family: var(--mk-font-body);
	font-size: 14px;
	font-weight: 600;
	box-shadow: var(--mk-shadow-lg);
	transform: translate(-50%, 20px);
	opacity: 0;
	pointer-events: none;
	transition: opacity var(--mk-transition), transform var(--mk-transition);
	max-width: calc(100vw - 32px);
}

.mk-toast.is-visible {
	opacity: 1;
	transform: translate(-50%, 0);
	pointer-events: auto;
}

.mk-toast a {
	color: var(--mk-lime);
	text-decoration: underline;
	white-space: nowrap;
}

.mk-top {
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 9990;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	border: 0;
	background: var(--mk-ink);
	color: var(--mk-white);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: var(--mk-shadow);
	opacity: 0;
	transform: translateY(12px);
	pointer-events: none;
	transition: opacity var(--mk-transition), transform var(--mk-transition), background-color var(--mk-transition);
}

body.mk-scrolled-far .mk-top {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.mk-top:hover {
	background: var(--mk-blue);
}

.mk-icon {
	display: inline-block;
	vertical-align: middle;
	flex-shrink: 0;
}

/* =========================================================================
   8. RESPONSIVE
   ========================================================================= */

@media (max-width: 980px) {
	.mk-mosaic {
		gap: 10px;
	}
}

@media (max-width: 767px) {
	.mk-marquee-item {
		font-size: 13px;
		padding: 0 20px;
	}

	.mk-toast {
		bottom: 16px;
		font-size: 13px;
	}

	.mk-top {
		right: 14px;
		bottom: 14px;
		width: 42px;
		height: 42px;
	}
}
