/*
 * juxo.ro – design adjustments on top of Shoptimizer + Elementor.
 * Breakpoints: phone <= 767px, tablet 768–1024px (Elementor), theme mobile header < 993px.
 */

:root {
	--jx-navy: #171a2e;
	--jx-navy-2: #2e3352;
	--jx-ink: #1d1d35;
	--jx-muted: #6b6b80;
	--jx-line: #e7e7ef;
	--jx-soft: #f5f5fa;
	--jx-sale: #d0021b;
	--jx-radius: 12px;
}

/* =========================================================================
   Header – desktop (>= 993px)
   ========================================================================= */

@media (min-width: 993px) {
	.site-header .main-header {
		padding-top: 6px;
		padding-bottom: 6px;
	}

	.site-header .custom-logo-link img {
		max-height: 46px;
		width: auto;
	}

	/* Search: rounded field */
	.site-header .site-search input.search-field {
		height: 46px;
		border: 0;
		border-radius: 999px;
		background: #fff;
		padding-left: 46px;
		font-size: 14px;
		color: var(--jx-ink);
		box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
	}

	.site-header .site-search input.search-field:focus {
		outline: 3px solid rgba(255, 255, 255, .35);
		outline-offset: 0;
	}

	/* Navigation bar: white, separated from the dark header row */
	.col-full-nav {
		background: #fff;
		border-bottom: 1px solid var(--jx-line);
		box-shadow: 0 1px 0 rgba(23, 26, 46, .02);
	}

	.main-navigation ul.menu > li > a.main-menu-link {
		font-size: 14px;
		font-weight: 600;
		letter-spacing: .01em;
		color: var(--jx-navy);
		line-height: 52px;
		padding-top: 0;
		padding-bottom: 0;
	}

	.site-header-cart,
	.site-header-cart .cart-contents {
		line-height: 52px;
	}

	.main-navigation ul.menu > li:not(:first-child) > a.main-menu-link > span {
		position: relative;
	}

	.main-navigation ul.menu > li:not(:first-child) > a.main-menu-link > span::after {
		content: "";
		position: absolute;
		left: 0;
		right: 0;
		bottom: -6px;
		height: 2px;
		border-radius: 2px;
		background: currentColor;
		transform: scaleX(0);
		transition: transform .2s ease;
	}

	.main-navigation ul.menu > li:not(:first-child):hover > a.main-menu-link > span::after,
	.main-navigation ul.menu > li.current-menu-item:not(:first-child) > a.main-menu-link > span::after {
		transform: scaleX(1);
	}

	/* "Categorii" as a clear button with a menu icon */
	.main-navigation ul.menu > li.menu-item-has-children:first-child {
		margin-right: 14px;
	}

	.main-navigation ul.menu > li.menu-item-has-children:first-child > a.main-menu-link {
		display: inline-flex;
		align-items: center;
		gap: 10px;
		background: var(--jx-navy);
		color: #fff;
		border-radius: 8px;
		line-height: 1.2;
		padding: 10px 14px;
		margin: 8px 0;
	}

	.main-navigation ul.menu > li.menu-item-has-children:first-child > a.main-menu-link::before {
		content: "";
		display: block;
		width: 16px;
		height: 12px;
		flex: 0 0 16px;
		background:
			linear-gradient(currentColor, currentColor) top / 100% 2px no-repeat,
			linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat,
			linear-gradient(currentColor, currentColor) bottom / 100% 2px no-repeat;
	}

	/* Own chevron inside the button (the theme's caret sits outside it) */
	.main-navigation ul.menu > li.menu-item-has-children:first-child > a.main-menu-link > span {
		display: inline-flex;
		align-items: center;
		gap: 9px;
	}

	.main-navigation ul.menu > li.menu-item-has-children:first-child > a.main-menu-link > span::before {
		display: none; /* theme hover underline */
	}

	.main-navigation ul.menu > li.menu-item-has-children:first-child > a.main-menu-link > span::after {
		content: "";
		display: inline-block;
		width: 6px;
		height: 6px;
		border-right: 2px solid currentColor;
		border-bottom: 2px solid currentColor;
		transform: translateY(-2px) rotate(45deg);
		transition: transform .2s ease;
	}

	.main-navigation ul.menu > li.menu-item-has-children:first-child:hover > a.main-menu-link > span::after {
		transform: translateY(1px) rotate(-135deg);
	}

	.main-navigation ul.menu > li.menu-item-has-children:first-child > .caret {
		display: none;
	}

	/* Dropdown panel */
	.main-navigation ul.menu > li.menu-item-has-children:first-child .sub-menu-wrapper {
		padding-top: 0;
	}

	.main-navigation ul.menu > li.menu-item-has-children .sub-menu-wrapper ul.sub-menu {
		width: 270px;
		padding: 8px;
		margin-top: 4px;
		border-radius: 12px;
		box-shadow: 0 16px 40px rgba(15, 14, 71, .18);
	}

	.main-navigation ul.menu ul.sub-menu li a.sub-menu-link {
		display: block;
		width: auto;
		padding: 10px 12px;
		border-radius: 8px;
		font-size: 14px;
		font-weight: 500;
		line-height: 1.35;
		color: var(--jx-ink);
	}

	.main-navigation ul.menu ul.sub-menu li a.sub-menu-link:hover {
		background: var(--jx-soft);
		color: var(--jx-navy);
	}

	/* Cart */
	.site-header-cart .cart-contents .amount {
		font-size: 14px;
		font-weight: 700;
	}
}

/* =========================================================================
   Header – phone and tablet (< 993px)
   ========================================================================= */

@media (max-width: 992px) {
	.site-header .custom-logo-link img {
		max-height: 34px;
		width: auto;
	}

	/* Search bar below the header */
	.m-search-bh .site-search,
	.site-header .site-search {
		padding: 0 14px 12px;
	}

	.site-header .site-search input.search-field {
		height: 42px;
		border: 0;
		border-radius: 999px;
		padding-left: 42px;
		font-size: 15px; /* >= 15px avoids the iPhone zoom on focus */
		background: #fff;
	}

	/* Mobile menu panel: bigger tap targets with separators */
	.shoptimizer-mobile-menu ul.menu > li {
		border-bottom: 1px solid rgba(255, 255, 255, .12);
	}

	.shoptimizer-mobile-menu ul.menu > li > a.cg-menu-link {
		font-size: 16px;
		line-height: 1.3;
		padding-top: 14px;
		padding-bottom: 14px;
	}

	.shoptimizer-mobile-menu ul.menu > li > .caret {
		top: 8px;
	}

	.shoptimizer-mobile-menu ul.menu ul.sub-menu {
		padding-bottom: 8px;
	}

	.shoptimizer-mobile-menu ul.menu ul.sub-menu li a.sub-menu-link {
		font-size: 15px;
		padding-top: 11px;
		padding-bottom: 11px;
	}
}

/* =========================================================================
   Product cards – shop pages and the Elementor "Products" grid
   ========================================================================= */

ul.products li.product:not(.product-category) {
	display: flex !important;
	flex-direction: column !important;
	flex-wrap: nowrap !important;
	align-items: stretch !important;
	background: #fff;
	border: 1px solid var(--jx-line);
	border-radius: var(--jx-radius);
	padding: 10px 10px 12px !important;
	transition: box-shadow .2s ease, border-color .2s ease;
}

@media (hover: hover) {
	ul.products li.product:not(.product-category):hover {
		border-color: #d9d9e6;
		box-shadow: 0 10px 28px rgba(15, 14, 71, .10);
	}
}

ul.products li.product:not(.product-category) .woocommerce-image__wrapper {
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
}

ul.products li.product:not(.product-category) .woocommerce-image__wrapper img {
	aspect-ratio: 1 / 1;
	object-fit: contain;
	width: 100%;
	height: auto;
}

ul.products li.product:not(.product-category) .woocommerce-card__header {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding-top: 10px;
}

ul.products li.product .woocommerce-loop-product__title,
ul.products li.product .woocommerce-loop-product__title a {
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--jx-ink);
}

ul.products li.product:not(.product-category) .woocommerce-loop-product__title {
	display: -webkit-box !important;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 2.8em;
	padding: 0 !important;
	margin-bottom: 6px;
	color: var(--jx-ink);
}

ul.products li.product:not(.product-category) .woocommerce-loop-product__title a {
	display: inline !important;
}

ul.products li.product .product__categories {
	font-size: 11px;
	letter-spacing: .04em;
	color: var(--jx-muted);
}

ul.products li.product .price {
	font-size: 15px;
	font-weight: 700;
	color: var(--jx-ink);
	margin-bottom: 10px;
}

ul.products li.product .price del {
	font-size: 12px;
	font-weight: 400;
	color: var(--jx-muted);
	opacity: 1;
}

ul.products li.product .price ins,
ul.products li.product .price ins .amount {
	color: var(--jx-sale);
	text-decoration: none;
}

/* Button pinned to the bottom, full width, same height on every card */
ul.products li.product:not(.product-category) .woocommerce-card__header .button,
ul.products li.product:not(.product-category) > .button {
	margin-top: auto;
	width: 100%;
	min-height: 42px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	position: static;
	opacity: 1;
	transform: none;
}

ul.products li.product .added_to_cart {
	display: block;
	text-align: center;
	font-size: 13px;
	padding-top: 6px;
}

/* Sale badge */
ul.products li.product .onsale,
ul.products li.product .sale-item.product-label,
ul.products li.product .product-label {
	background: var(--jx-sale) !important;
	border-color: var(--jx-sale) !important;
	color: #fff !important;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 700;
	padding: 3px 7px;
}

@media (max-width: 767px) {
	ul.products li.product:not(.product-category) {
		padding: 8px 8px 10px;
	}

	ul.products li.product .woocommerce-loop-product__title,
	ul.products li.product .woocommerce-loop-product__title a {
		font-size: 13px;
	}

	ul.products li.product .price {
		font-size: 14px;
	}

	ul.products li.product:not(.product-category) .woocommerce-card__header .button,
	ul.products li.product:not(.product-category) > .button {
		min-height: 40px;
		font-size: 13px;
		padding-left: 6px;
		padding-right: 6px;
	}
}

/* Desktop shop grid: real gaps between cards */
@media (min-width: 993px) {
	.site-main ul.products:not(.elementor-grid) {
		display: grid !important;
		gap: 22px;
		margin-left: 0;
		margin-right: 0;
	}

	.site-main ul.products:not(.elementor-grid)::before,
	.site-main ul.products:not(.elementor-grid)::after {
		display: none;
	}

	.site-main ul.products.columns-2:not(.elementor-grid) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.site-main ul.products.columns-3:not(.elementor-grid) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.site-main ul.products.columns-4:not(.elementor-grid) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.site-main ul.products.columns-5:not(.elementor-grid) { grid-template-columns: repeat(5, minmax(0, 1fr)); }

	.site-main ul.products:not(.elementor-grid) li.product {
		width: auto !important;
		margin: 0 !important;
		float: none !important;
	}
}

/* Tablets: 3 products per row in the shop (the theme shows 2 large ones) */
@media (min-width: 768px) and (max-width: 992px) {
	.site-main ul.products:not(.elementor-grid) {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	}
}

/* =========================================================================
   Product cards – Elementor Loop carousels (template Loop-01)
   ========================================================================= */

.elementor-widget-loop-carousel .swiper-slide {
	height: auto;
}

.e-loop-item.product {
	display: flex;
}

.e-loop-item.product > .e-con > .e-con {
	padding: 0 !important;
}

.e-loop-item.product > .e-con {
	flex: 1 1 auto;
	height: 100%;
	background: #fff;
	border: 1px solid var(--jx-line);
	border-radius: var(--jx-radius);
	padding: 10px 10px 12px;
	gap: 10px;
	transition: box-shadow .2s ease, border-color .2s ease;
}

@media (hover: hover) {
	.e-loop-item.product:hover > .e-con {
		border-color: #d9d9e6;
		box-shadow: 0 10px 28px rgba(15, 14, 71, .10);
	}
}

.jx-product-image a {
	position: relative;
	display: block;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
}

.e-loop-item .jx-product-image img {
	display: block;
	width: 100% !important;
	height: auto !important;
	max-width: 100% !important;
	aspect-ratio: 1 / 1;
	object-fit: contain !important;
}

.jx-product-image img.jx-flip {
	position: absolute;
	inset: 0;
	height: 100% !important;
	opacity: 0;
	transition: opacity .3s ease;
	background: #fff;
}

@media (hover: hover) {
	.e-loop-item:hover .jx-product-image img.jx-flip {
		opacity: 1;
	}
}

@media (hover: none) {
	.jx-product-image img.jx-flip {
		display: none;
	}
}

.e-loop-item .elementor-widget-woocommerce-product-title .product_title {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 2.8em;
	margin: 0;
}

.e-loop-item .elementor-widget-woocommerce-product-title .product_title a {
	color: inherit;
}

.e-loop-item .elementor-widget-woocommerce-product-price .price {
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	color: var(--jx-ink);
}

.e-loop-item .elementor-widget-woocommerce-product-price .price del {
	font-size: 12px;
	font-weight: 400;
	color: var(--jx-muted);
	margin-right: 6px;
}

.e-loop-item .elementor-widget-woocommerce-product-price .price ins,
.e-loop-item .elementor-widget-woocommerce-product-price .price ins .amount {
	color: var(--jx-sale);
	text-decoration: none;
}

.e-loop-item .elementor-widget-woocommerce-product-add-to-cart {
	margin-top: auto;
}

.e-loop-item .elementor-widget-woocommerce-product-add-to-cart .button {
	width: 100%;
	min-height: 42px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	padding: 8px 10px;
}

.e-loop-item .elementor-widget-woocommerce-product-add-to-cart .added_to_cart {
	display: block;
	text-align: center;
	font-size: 13px;
	padding-top: 6px;
}

@media (max-width: 767px) {
	.e-loop-item.product > .e-con {
		padding: 8px 8px 10px;
		gap: 8px;
	}

	.e-loop-item .elementor-widget-woocommerce-product-price .price {
		font-size: 14px;
	}

	.e-loop-item .elementor-widget-woocommerce-product-add-to-cart .button {
		min-height: 40px;
		font-size: 13px;
	}
}

/* Carousel arrows and dots */
.elementor-widget-loop-carousel .elementor-swiper-button {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 4px 14px rgba(15, 14, 71, .16);
	color: var(--jx-navy);
	display: flex;
	align-items: center;
	justify-content: center;
}

.elementor-widget-loop-carousel .elementor-swiper-button svg {
	width: 14px;
	height: 14px;
	fill: var(--jx-navy);
}

@media (max-width: 1024px) {
	/* Swiping is the natural gesture on phones and tablets */
	.elementor-widget-loop-carousel .elementor-swiper-button {
		display: none !important;
	}
}



.elementor-widget-loop-carousel .swiper-pagination-bullet-active {
	background: var(--jx-navy);
}

/* =========================================================================
   Homepage – category tiles
   ========================================================================= */

/* Equal columns even when a category name is long */
@media (min-width: 1025px) {
	.elementor-widget-wc-categories.elementor-grid-3 ul.products {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	}
}

@media (min-width: 768px) and (max-width: 1024px) {
	.elementor-widget-wc-categories.elementor-grid-tablet-3 ul.products {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 767px) {
	.elementor-widget-wc-categories.elementor-grid-mobile-3 ul.products {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	}
}

.elementor-widget-wc-categories ul.products li.product-category {
	padding: 0 !important;
	margin: 0 !important;
	width: auto !important;
	min-width: 0;
}

.elementor-widget-wc-categories ul.products li.product-category a {
	display: block;
	text-align: center;
}

.elementor-widget-wc-categories ul.products li.product-category a img {
	width: 100% !important;
	height: auto !important;
	max-width: 100%;
}

.elementor-widget-wc-categories ul.products li.product-category img {
	border-radius: var(--jx-radius);
	aspect-ratio: 1 / 1;
	object-fit: cover;
	width: 100%;
	margin-bottom: 10px;
	transition: transform .3s ease;
}

@media (hover: hover) {
	.elementor-widget-wc-categories ul.products li.product-category a:hover img {
		transform: translateY(-3px);
	}
}

.elementor-widget-wc-categories .woocommerce-loop-category__title {
	text-align: center;
	line-height: 1.3;
	margin: 0;
}

.elementor-widget-wc-categories .woocommerce-loop-category__title .count {
	display: none;
}

@media (max-width: 767px) {
	.elementor-widget-wc-categories ul.products li.product-category img {
		border-radius: 10px;
		margin-bottom: 6px;
	}
}

/* =========================================================================
   Shop and category pages
   ========================================================================= */

.woocommerce-products-header__title.page-title {
	font-size: 28px;
}

.shoptimizer-sorting .woocommerce-ordering select {
	border-radius: 8px;
	border: 1px solid var(--jx-line);
	height: 40px;
	padding-left: 12px;
	font-size: 14px;
	background-color: #fff;
}

.woocommerce-result-count {
	font-size: 13px;
	color: var(--jx-muted);
}

.woocommerce-pagination .page-numbers li .page-numbers {
	min-width: 38px;
	height: 38px;
	line-height: 36px;
	border-radius: 8px;
	font-size: 14px;
}

.woocommerce-pagination .page-numbers li .page-numbers.current {
	background: var(--jx-navy);
	border-color: var(--jx-navy);
	color: #fff;
}

#secondary .widget .widget-title,
#secondary .widget h2 {
	font-size: 13px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--jx-ink);
}

@media (max-width: 992px) {
	.woocommerce-products-header__title.page-title {
		font-size: 22px;
	}

	/* Filter + sort on one line, result count below */
	.shoptimizer-archive .mobile-filter {
		font-size: 13px;
		font-weight: 700;
	}

	.shoptimizer-sorting {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: 8px 12px;
	}

	.shoptimizer-sorting .woocommerce-ordering {
		flex: 1 1 auto;
		margin: 0;
	}

	.shoptimizer-sorting .woocommerce-ordering select {
		width: 100%;
	}

	.shoptimizer-sorting .woocommerce-result-count {
		order: 3;
		width: 100%;
		margin: 0;
	}

	/* Compact pagination: one line */
	.shoptimizer-sorting .woocommerce-pagination {
		display: none; /* shown once, below the products */
	}

	.woocommerce-pagination .page-numbers {
		display: flex;
		flex-wrap: nowrap;
		justify-content: center;
		gap: 6px;
	}

	.woocommerce-pagination .page-numbers li .page-numbers {
		min-width: 36px;
		height: 36px;
		line-height: 34px;
		margin: 0;
	}
}

/* =========================================================================
   General typography on phones
   ========================================================================= */

@media (max-width: 767px) {
	body {
		font-size: 15px;
	}

	.entry-content h1,
	h1.entry-title {
		font-size: 24px;
	}

	.entry-content h2 {
		font-size: 20px;
	}

	.entry-content h3 {
		font-size: 17px;
	}
}

/* =========================================================================
   Cookie banner (Complianz): keep it inside the screen on phones
   ========================================================================= */

.cmplz-cookiebanner .cmplz-divider {
	max-width: 100%;
	box-sizing: border-box;
}

/* =========================================================================
   Add-to-cart confirmation
   Phone: compact card at the bottom. Desktop: popover under the header cart.
   ========================================================================= */

.jx-added {
	position: fixed;
	z-index: 100000;
	left: 12px;
	right: 12px;
	bottom: 12px;
	background: #fff;
	color: var(--jx-ink);
	border-radius: 14px;
	box-shadow: 0 12px 40px rgba(15, 14, 71, .25);
	padding: 12px 14px 14px;
	font-size: 14px;
	transform: translateY(20px);
	opacity: 0;
	transition: transform .25s ease, opacity .25s ease;
}

.jx-added.is-visible {
	transform: none;
	opacity: 1;
}

.jx-added[hidden] {
	display: none;
}

.jx-added__head {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 10px;
}

.jx-added__ok {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #12805c;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 22px;
}

.jx-added__title {
	font-weight: 700;
	flex: 1 1 auto;
}

.jx-added__close {
	background: none;
	border: 0;
	padding: 0 4px;
	font-size: 24px;
	line-height: 1;
	color: var(--jx-muted);
	cursor: pointer;
}

.jx-added__item {
	display: flex;
	gap: 12px;
	align-items: center;
	margin-bottom: 12px;
}

.jx-added__item img {
	width: 56px;
	height: 56px;
	object-fit: contain;
	border-radius: 8px;
	border: 1px solid var(--jx-line);
	background: #fff;
	flex: 0 0 56px;
}

.jx-added__name {
	font-size: 13px;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.jx-added__price {
	font-size: 14px;
	font-weight: 700;
	margin-top: 2px;
}

.jx-added__price del {
	font-size: 12px;
	font-weight: 400;
	color: var(--jx-muted);
	margin-right: 4px;
}

.jx-added__price ins {
	color: var(--jx-sale);
	text-decoration: none;
}

.jx-added__actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

.jx-added__actions a {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
	line-height: 1.2;
	padding: 6px 8px;
}

.jx-added__cart {
	border: 2px solid var(--jx-navy);
	color: var(--jx-navy);
	background: #fff;
}

.jx-added__checkout {
	background: var(--jx-navy);
	color: #fff !important;
	border: 2px solid var(--jx-navy);
}

@media (min-width: 993px) {
	.jx-added {
		left: auto;
		bottom: auto;
		top: 96px;
		right: max(24px, calc((100vw - 1170px) / 2));
		width: 360px;
		transform: translateY(-8px);
	}
}

/* WooCommerce's extra "Vezi coșul" link under the card button: the confirmation
   already offers it, and it would make one card taller than its neighbours. */
ul.products li.product .added_to_cart,
.e-loop-item .added_to_cart {
	display: none !important;
}

/* Cart icon "bump" after adding */
@keyframes jx-bump {
	0% { transform: scale(1); }
	40% { transform: scale(1.15); }
	100% { transform: scale(1); }
}

.site-header-cart .cart-contents.jx-bump .count {
	animation: jx-bump .5s ease;
}

/* =========================================================================
   Cart drawer (opens when the cart icon is clicked)
   ========================================================================= */

.shoptimizer-mini-cart-wrap .cart-drawer-heading {
	font-size: 18px;
	font-weight: 700;
	color: var(--jx-ink);
}

@media (min-width: 993px) {
	.shoptimizer-mini-cart-wrap {
		width: 420px;
	}
}

.shoptimizer-mini-cart-wrap .woocommerce-mini-cart__buttons .button {
	border-radius: 8px;
	min-height: 46px;
	font-weight: 700;
}

/* =========================================================================
   Sticky "Adaugă în coș" bar on product pages
   ========================================================================= */

.shoptimizer-sticky-add-to-cart {
	box-shadow: 0 -6px 24px rgba(15, 14, 71, .12);
}

.shoptimizer-sticky-add-to-cart .button {
	border-radius: 8px;
	min-height: 44px;
	font-weight: 700;
}

@media (max-width: 767px) {
	/* Phone: price + button only, the product title is already on the page */
	.shoptimizer-sticky-add-to-cart__content-product-info,
	.shoptimizer-sticky-add-to-cart__content img {
		display: none;
	}

	.shoptimizer-sticky-add-to-cart__content-button {
		width: 100%;
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
	}

	.shoptimizer-sticky-add-to-cart__content-button .button {
		flex: 1 1 auto;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		text-align: center;
	}
}

/* Product page: sale colours match the product cards */
.single-product div.product p.price ins,
.single-product div.product p.price ins .amount {
	color: var(--jx-sale);
	text-decoration: none;
}

.single-product div.product .sale-item.product-label {
	background: var(--jx-sale) !important;
	border-color: var(--jx-sale) !important;
	color: #fff !important;
}

.single-product div.product .summary .onsale {
	color: var(--jx-sale);
	background: none;
}

/* =========================================================================
   Cart page
   ========================================================================= */

.jx-back {
	margin: 0 0 22px;
	font-size: 14px;
}

.woocommerce-checkout .jx-back {
	margin: 18px 0 12px;
}

.jx-back a {
	color: var(--jx-navy);
	font-weight: 600;
	text-decoration: none;
}

.jx-back a:hover {
	text-decoration: underline;
}

.jx-cart-auto .woocommerce-cart-form [name="update_cart"] {
	display: none !important;
}

.jx-coupon-hidden {
	display: none !important;
}

.jx-coupon-toggle {
	background: none;
	border: 0;
	padding: 6px 0;
	font-size: 14px;
	font-weight: 600;
	color: var(--jx-navy);
	text-decoration: underline;
	cursor: pointer;
}

.wc-proceed-to-checkout .checkout-button {
	border-radius: 8px;
	min-height: 52px;
	font-size: 16px !important;
	font-weight: 700;
}

/* =========================================================================
   Checkout
   ========================================================================= */

.jx-ck-heading {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .01em;
}

.min-ck .site-header .jx-ck-heading {
	margin-left: auto;
}

.jx-ck-summary {
	display: none;
}

@media (max-width: 992px) {
	.jx-ck-heading {
		display: none;
	}

	.jx-ck-summary {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 10px;
		margin: 0 0 18px;
		padding: 12px 14px;
		border: 1px solid var(--jx-line);
		border-radius: 10px;
		background: var(--jx-soft);
		color: var(--jx-ink);
		font-size: 14px;
		text-decoration: none;
	}

	.jx-ck-summary-link {
		color: var(--jx-navy);
		font-weight: 700;
		white-space: nowrap;
		text-decoration: underline;
	}
}

#place_order {
	border-radius: 8px;
	min-height: 54px;
	font-size: 17px !important;
	font-weight: 700;
}

.jx-trust {
	list-style: none;
	margin: 16px 0 0;
	padding: 14px;
	border: 1px solid var(--jx-line);
	border-radius: 10px;
	background: #fff;
	font-size: 13px;
	line-height: 1.45;
	color: var(--jx-ink);
}

.jx-trust li {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin: 0;
	padding: 6px 0;
}

.jx-trust li + li {
	border-top: 1px solid var(--jx-line);
}

.jx-trust .jx-ico {
	flex: 0 0 22px;
	display: inline-flex;
	justify-content: center;
	padding-top: 1px;
	color: var(--jx-navy);
}

.jx-trust a {
	color: var(--jx-navy);
	font-weight: 600;
}

/* =========================================================================
   Footer: hide the old EU "SOL" (ODR) badge – the EU platform was closed
   ========================================================================= */

a[href*="ec.europa.eu/consumers/odr"] {
	display: none !important;
}

/* =========================================================================
   Desktop sticky bar: keep the cart visible when scrolling.
   Header layout "Logo / Search / Cart" (header-5) puts the cart in the top
   row, which scrolls away; show the menu-bar copy once the bar is stuck.
   ========================================================================= */

@media (min-width: 993px) {
	.header-5.sticky-d .col-full-nav.is_stuck .site-header-cart {
		display: block !important;
		margin-left: auto;
		height: auto;
	}

	.header-5.sticky-d .col-full-nav.is_stuck .site-header-cart .cart-contents {
		height: auto;
		border: 0;
		padding: 0;
		line-height: 52px;
		color: var(--jx-navy);
	}

	.header-5.sticky-d .col-full-nav.is_stuck .site-header-cart .cart-contents .amount {
		color: var(--jx-navy);
	}
}

/* =========================================================================
   Buttons in the homepage carousels: same colour as the rest of the site
   ========================================================================= */

.e-loop-item .elementor-widget-woocommerce-product-add-to-cart .button {
	background-color: var(--jx-navy) !important;
	border-color: var(--jx-navy) !important;
	color: #fff !important;
}

.e-loop-item .elementor-widget-woocommerce-product-add-to-cart .button:hover {
	background-color: var(--jx-navy-2) !important;
	border-color: var(--jx-navy-2) !important;
}

/* =========================================================================
   Shop: products load while scrolling (theme "Load more", automatic)
   ========================================================================= */

.shoptimizer-load-more-wrapper {
	text-align: center;
	margin: 26px auto 10px;
	max-width: 360px;
}

.shoptimizer-load-more-wrapper .load-more-status {
	font-size: 14px;
	color: var(--jx-muted);
	margin-bottom: 8px;
}

.shoptimizer-load-more-wrapper .load-more-progress {
	height: 4px;
	border-radius: 4px;
	background: var(--jx-line);
	overflow: hidden;
	margin-bottom: 14px;
}

.shoptimizer-load-more-wrapper .load-more-progress-bar {
	background: var(--jx-navy);
	border-radius: 4px;
}

.shoptimizer-load-more-wrapper #shoptimizer-load-more-btn {
	border-radius: 8px;
	min-height: 44px;
	padding: 0 26px;
	font-weight: 700;
}

/* =========================================================================
   Heading sizes per device (product page, sections, text pages)
   Desktop / tablet (<= 1024px) / phone (<= 767px)
   ========================================================================= */

.single-product div.product .product_title {
	font-size: 26px;
	line-height: 1.25;
	font-weight: 700;
	letter-spacing: -.01em;
	margin-bottom: 10px;
}

.single-product div.product p.price {
	font-size: 22px;
	font-weight: 700;
}

.single-product div.product p.price del {
	font-size: 16px;
	font-weight: 400;
}

section.related > h2,
section.upsells > h2,
.cross-sells > h2,
.woocommerce-tabs .panel > h2 {
	font-size: 22px;
	line-height: 1.3;
}

.entry-content > h1,
.entry-content .wp-block-heading:is(h1) {
	font-size: 30px;
	line-height: 1.25;
}

.entry-content > h2,
.entry-content .wp-block-heading:is(h2) {
	font-size: 24px;
	line-height: 1.3;
}

.entry-content > h3,
.entry-content .wp-block-heading:is(h3) {
	font-size: 19px;
	line-height: 1.35;
}

@media (max-width: 1024px) {
	.single-product div.product .product_title {
		font-size: 24px;
	}

	section.related > h2,
	section.upsells > h2,
	.cross-sells > h2,
	.woocommerce-tabs .panel > h2 {
		font-size: 20px;
	}

	.entry-content > h1,
	.entry-content .wp-block-heading:is(h1) {
		font-size: 26px;
	}

	.entry-content > h2,
	.entry-content .wp-block-heading:is(h2) {
		font-size: 22px;
	}
}

@media (max-width: 767px) {
	.single-product div.product .product_title {
		font-size: 21px;
	}

	.single-product div.product p.price {
		font-size: 20px;
	}

	section.related > h2,
	section.upsells > h2,
	.cross-sells > h2,
	.woocommerce-tabs .panel > h2 {
		font-size: 18px;
	}

	.entry-content > h1,
	.entry-content .wp-block-heading:is(h1) {
		font-size: 23px;
	}

	.entry-content > h2,
	.entry-content .wp-block-heading:is(h2) {
		font-size: 20px;
	}

	.entry-content > h3,
	.entry-content .wp-block-heading:is(h3) {
		font-size: 17px;
	}
}
