/* ===== Shop / category archive page ===== */
.shop-page {
	padding: 0 24px 80px;
}

@media (max-width: 560px) {
	.shop-page {
		padding: 0 16px 60px;
	}
}

.shop-breadcrumb {
	font-size: 13px;
	color: #9096A8;
	padding: 24px 0 8px;
}

.shop-breadcrumb a {
	color: var(--color-primary);
	font-weight: 600;
}

.product-breadcrumb {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 4px;
}

.product-breadcrumb a:first-of-type {
	display: inline-flex;
	width: 15px;
	height: 15px;
	flex-shrink: 0;
	background: currentColor;
	color: #9096A8;
	font-size: 0;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11l9-8 9 8'/%3E%3Cpath d='M5 10v10h14V10'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11l9-8 9 8'/%3E%3Cpath d='M5 10v10h14V10'/%3E%3C/svg%3E") center / contain no-repeat;
}

.product-breadcrumb a:first-of-type:hover {
	color: var(--color-primary);
}

.shop-page__body {
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	gap: 32px;
	align-items: start;
}

.shop-page__main.is-loading {
	opacity: 0.45;
	pointer-events: none;
	transition: opacity 0.15s ease;
}

/* --- Sidebar / Filters panel --- */
.shop-sidebar {
	background: var(--color-white);
	border-radius: 18px;
	padding: 24px;
	box-shadow: 0 12px 32px rgba(27, 39, 129, 0.06);
}

.shop-filters {
	display: flex;
	flex-flow: column;
}

.shop-filters__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 8px;
}

.shop-filters__title {
	font-size: 18px;
	font-weight: 800;
	color: var(--color-primary);
	margin: 0;
}

.shop-filters__clear {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 700;
	color: var(--color-accent);
}

/* --- Collapsible filter group --- */
.shop-filter {
	border-bottom: 1px solid #EDEFF5;
	padding: 18px 0;
}

.shop-filter:last-of-type {
	border-bottom: none;
}

.shop-filter__head {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	font-family: var(--font-main);
	font-size: 12px;
	font-weight: 800;
	color: var(--color-primary);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.shop-filter__toggle-icon {
	position: relative;
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

.shop-filter__toggle-icon::before,
.shop-filter__toggle-icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	background: var(--color-primary);
	transform: translate(-50%, -50%);
	transition: opacity 0.2s ease;
}

.shop-filter__toggle-icon::before {
	width: 10px;
	height: 2px;
}

.shop-filter__toggle-icon::after {
	width: 2px;
	height: 10px;
}

.shop-filter.is-open .shop-filter__toggle-icon::after {
	opacity: 0;
}

.shop-filter__body {
	margin-top: 16px;
}

.shop-filter.is-collapsed .shop-filter__body {
	display: none;
}

/* --- Checkbox-style option rows --- */
.shop-filter__option {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	color: var(--color-text);
	padding: 7px 0;
	cursor: pointer;
}

.shop-filter__option input {
	appearance: none;
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	border: 1.5px solid #D5D9E8;
	border-radius: 4px;
	position: relative;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.shop-filter__option input:checked {
	background: var(--color-primary);
	border-color: var(--color-primary);
}

.shop-filter__option input:checked::after {
	content: "";
	position: absolute;
	left: 4.5px;
	top: 1.5px;
	width: 4px;
	height: 8px;
	border: solid var(--color-white);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.shop-filter__option em {
	margin-left: auto;
	font-style: normal;
	color: #9096A8;
	font-size: 12px;
}

.shop-filter__suboptions {
	margin: 2px 0 4px 26px;
}

.shop-filter__option--sub {
	font-size: 12.5px;
}

/* --- Price dual-range slider --- */
.shop-price-slider {
	position: relative;
	height: 20px;
	margin-bottom: 16px;
}

.shop-price-slider__track {
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	height: 4px;
	background: #E1E3F2;
	border-radius: 2px;
	transform: translateY(-50%);
}

.shop-price-slider__range {
	position: absolute;
	height: 100%;
	background: var(--color-primary);
	border-radius: 2px;
}

.shop-price-slider__input {
	position: absolute;
	top: 50%;
	left: 0;
	width: 100%;
	transform: translateY(-50%);
	margin: 0;
	appearance: none;
	background: none;
	pointer-events: none;
	outline: none;
}

.shop-price-slider__input::-webkit-slider-runnable-track {
	appearance: none;
	background: transparent;
	border: none;
	height: 4px;
	box-shadow: none;
}

.shop-price-slider__input::-moz-range-track {
	background: transparent;
	border: none;
	height: 4px;
	box-shadow: none;
}

.shop-price-slider__input::-webkit-slider-thumb {
	appearance: none;
	pointer-events: auto;
	box-sizing: border-box;
	width: 16px;
	height: 16px;
	margin-top: -6px;
	border-radius: 50%;
	background: var(--color-white);
	border: 3px solid var(--color-primary);
	cursor: pointer;
	box-shadow: 0 2px 6px rgba(27, 39, 129, 0.25);
}

.shop-price-slider__input::-moz-range-thumb {
	pointer-events: auto;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--color-white);
	border: 3px solid var(--color-primary);
	cursor: pointer;
	box-shadow: 0 2px 6px rgba(27, 39, 129, 0.25);
}

.shop-price-slider__input::-moz-focus-outer {
	border: 0;
}

.shop-filter__price-inputs {
	display: flex;
	gap: 10px;
}

.shop-filter__price-inputs > div {
	flex: 1;
}

.shop-filter__price-inputs label {
	display: block;
	font-size: 11px;
	color: #9096A8;
	margin-bottom: 4px;
}

.shop-filter__price-inputs input {
	width: 100%;
	border: 1px solid #E1E3F2;
	background: var(--color-bg-light);
	border-radius: 8px;
	padding: 8px 10px;
	font-size: 13px;
	font-family: var(--font-main);
}

.shop-filters__submit {
	margin-top: 18px;
	background: var(--color-primary);
	color: var(--color-white);
	border: none;
	border-radius: 50px;
	padding: 13px;
	font-family: var(--font-main);
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.shop-filters__submit:hover {
	background: #14205E;
}

.shop-filters__count {
	text-align: center;
	font-size: 12px;
	font-weight: 600;
	color: #9096A8;
	margin-top: 12px;
}

/* --- Promo banner carousel --- */
.shop-banner {
	position: relative;
	height: 260px;
	border-radius: 20px;
	overflow: hidden;
	margin-bottom: 28px;
	background:
		radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.06) 0%, transparent 45%),
		radial-gradient(circle at 60% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
		radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.06) 0%, transparent 40%),
		linear-gradient(120deg, #141C63 0%, #1B2781 45%, #2A3AA8 100%);
}

.shop-banner__track {
	position: relative;
	height: 100%;
}

.shop-banner__slide {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 56px;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.4s ease;
}

.shop-banner__slide.is-active {
	opacity: 1;
	visibility: visible;
}

.shop-banner__text {
	position: relative;
	z-index: 1;
	max-width: 54%;
	color: var(--color-white);
}

.shop-banner__title {
	font-size: 28px;
	font-weight: 800;
	margin: 0 0 12px;
}

.shop-banner__subtitle {
	font-size: 15px;
	line-height: 1.6;
	margin: 0;
	color: rgba(255, 255, 255, 0.85);
}

.shop-banner__subtitle strong {
	color: var(--color-white);
	font-weight: 800;
}

.shop-banner__image {
	position: relative;
	z-index: 1;
	max-height: 88%;
	max-width: 42%;
	object-fit: contain;
}

.shop-banner__slide--cta {
	align-items: flex-start;
	padding-left: 64px;
	padding-top: 38px;
}

.shop-banner__slide--cta .shop-banner__cta-media {
	align-self: center;
}

/* Додаткові елементи слайда "Потрібна вода…": показуємо лише на телефоні (див. @media 560px) */
.shop-banner__eyebrow,
.shop-banner__perks,
.shop-banner__bottles-mobile {
	display: none;
}

.shop-banner__accent {
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 6px;
	height: 96px;
	background: var(--color-accent);
	border-radius: 0 4px 4px 0;
}

.shop-banner__cta-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-top: 20px;
	background: var(--color-white);
	color: var(--color-primary);
	font-weight: 700;
	font-size: 14px;
	padding: 13px 22px;
	border-radius: 12px;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.shop-banner__cta-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.shop-banner__cta-media {
	position: absolute;
	z-index: 1;
	right: 24px;
	bottom: -6%;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	height: 112%;
	max-width: 44%;
}

.shop-banner__cta-media .shop-banner__image {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.3));
}

.shop-banner__note {
	position: absolute;
	top: 6px;
	left: -18px;
	z-index: 2;
	font-family: Georgia, 'Times New Roman', serif;
	font-style: italic;
	font-size: 14px;
	line-height: 1.4;
	color: rgba(255, 255, 255, 0.8);
	transform: rotate(-6deg);
}

.shop-banner__controls {
	position: absolute;
	left: 56px;
	bottom: 24px;
	z-index: 2;
	display: flex;
	gap: 10px;
}

.shop-banner__arrow {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.35);
	background: rgba(255, 255, 255, 0.06);
	color: var(--color-white);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.shop-banner__arrow:hover {
	background: rgba(255, 255, 255, 0.18);
	border-color: rgba(255, 255, 255, 0.6);
}

.shop-banner__dots {
	position: absolute;
	left: 158px;
	bottom: 41px;
	z-index: 2;
	display: flex;
	gap: 6px;
}

.shop-banner__dot {
	width: 20px;
	height: 4px;
	border-radius: 2px;
	border: none;
	background: rgba(255, 255, 255, 0.3);
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.shop-banner__dot.is-active {
	background: var(--color-white);
}

/* --- Product loop area --- */
.shop-page__main .woocommerce-result-count {
	font-size: 13px;
	color: #9096A8;
}

.shop-page__main .woocommerce-ordering select {
	border: 1px solid #E1E3F2;
	background: var(--color-white);
	border-radius: 50px;
	padding: 10px 44px 10px 16px;
	font-family: var(--font-main);
	font-size: 13px;
	color: var(--color-text);
	/* власна стрілка замість рідної: рідна липне до самого краю, тут відступ 20px справа */
	-webkit-appearance: none;
	appearance: none;
	background: var(--color-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B2781' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 20px center / 14px;
}

.shop-page__main .woocommerce-ordering select:focus,
.shop-page__main .woocommerce-ordering select:focus-visible,
.shop-page__main .woocommerce-ordering select:active {
	outline: none;
	box-shadow: none;
	border-color: var(--color-primary);
	-webkit-tap-highlight-color: transparent;
}

.shop-page__main .woocommerce-notices-wrapper:empty {
	display: none;
}

/* --- Mobile off-canvas filters (Bootstrap-style: collapses below lg / 992px) --- */
.shop-filters-toggle {
	display: none;
}

.shop-filters-close {
	display: none;
}

.shop-filters-overlay {
	display: none;
}

@media (max-width: 991px) {
	.shop-page__body {
		grid-template-columns: minmax(0, 1fr);
	}

	.shop-filters-toggle {
		display: inline-flex;
		align-items: center;
		gap: 8px;
		margin-bottom: 20px;
		padding: 11px 20px;
		border-radius: 50px;
		border: 1px solid #E1E3F2;
		background: var(--color-white);
		color: var(--color-primary);
		font-family: var(--font-main);
		font-size: 14px;
		font-weight: 700;
		cursor: pointer;
	}

	.shop-filters-overlay {
		position: fixed;
		inset: 0;
		background: rgba(0, 0, 0, 0.4);
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.3s ease;
		z-index: 210;
	}

	.shop-filters-overlay.is-open {
		display: block;
		opacity: 1;
		visibility: visible;
	}

	.shop-sidebar {
		position: fixed;
		top: 0;
		left: 0;
		height: 100vh;
		width: 85vw;
		max-width: 340px;
		overflow-y: auto;
		border-radius: 0;
		transform: translateX(-100%);
		transition: transform 0.3s ease;
		z-index: 220;
		box-shadow: none;
		padding-top: 70px;
	}

	.shop-sidebar.is-open {
		transform: translateX(0);
	}

	.shop-filters-close {
		display: flex;
		align-items: center;
		justify-content: center;
		position: absolute;
		top: 16px;
		right: 16px;
		width: 34px;
		height: 34px;
		border-radius: 50%;
		border: 1px solid #E1E3F2;
		background: var(--color-white);
		color: var(--color-primary);
		cursor: pointer;
	}
}

@media (max-width: 1024px) {
	.shop-banner__slide {
		padding: 0 32px;
	}
	.shop-banner__slide--cta {
		padding: 38px 32px 0;
	}
	.shop-banner__controls {
		left: 32px;
	}
	.shop-banner__dots {
		left: 134px;
	}
	.shop-banner__title {
		font-size: 22px;
	}
}

@media (max-width: 560px) {
	.shop-banner {
		height: 580px;
		background:
			radial-gradient(120% 55% at 85% 100%, rgba(38, 110, 230, 0.45) 0%, transparent 70%),
			radial-gradient(90% 40% at 0% 0%, rgba(255, 255, 255, 0.06) 0%, transparent 60%),
			linear-gradient(165deg, #0B2C8F 0%, #0A2070 45%, #07164F 100%);
	}
	.shop-banner__slide {
		flex-flow: column;
		justify-content: center;
		gap: 16px;
		padding: 24px;
		text-align: center;
	}
	.shop-banner__text {
		max-width: 100%;
	}
	.shop-banner__image {
		max-width: 60%;
		max-height: 140px;
	}
	.shop-banner__controls {
		left: 50%;
		transform: translateX(-50%);
	}
}

/* --- Pagination --- */
.shop-page__main nav.woocommerce-pagination {
	--pagination-size: clamp(28px, 7.7vw, 38px);
	margin-top: 32px;
}

.shop-page__main .woocommerce-pagination ul.page-numbers {
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: clamp(3px, 1.05vw, 8px);
	margin: 0;
	padding: 0;
	border: none !important;
}

.shop-page__main .page-numbers li {
	display: flex;
	flex: 0 0 auto;
	float: none;
	overflow: visible;
	border: none !important;
}

.shop-page__main .page-numbers a,
.shop-page__main .page-numbers span {
	display: flex !important;
	align-items: center;
	justify-content: center;
	min-width: var(--pagination-size) !important;
	width: var(--pagination-size) !important;
	height: var(--pagination-size) !important;
	padding: 0 4px;
	border-radius: 50% !important;
	font-family: var(--font-main) !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	color: var(--color-primary) !important;
	background: var(--color-white) !important;
	border: 1px solid #E1E3F2 !important;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.shop-page__main .page-numbers a:hover {
	background: var(--color-bg-light) !important;
}

.shop-page__main .page-numbers .current {
	background: var(--color-primary) !important;
	border-color: var(--color-primary) !important;
	color: var(--color-white) !important;
}

.shop-page__main .page-numbers .dots {
	min-width: 16px !important;
	width: 16px !important;
	border: none !important;
	background: none !important;
}

.shop-page__main .page-numbers .next,
.shop-page__main .page-numbers .prev {
	color: var(--color-primary) !important;
	font-size: 16px !important;
}

.product-card__availability {
	display: block;
	font-weight: 700;
	font-size: 0.95rem;
	line-height: 1.3;
	color: #52617e;
}

/* ===== Пошук під банером магазину ===== */
.shop-search {
	position: relative;
	z-index: 40;
	margin: 16px 0 20px;
}

.shop-search__form {
	position: relative;
	display: flex;
	align-items: center;
	margin: 0;
}

.shop-search__icon {
	position: absolute;
	left: 16px;
	color: var(--color-primary);
	pointer-events: none;
}

.shop-search__form input[type="search"] {
	width: 100%;
	height: 48px;
	padding: 0 44px 0 46px;
	border: 1.5px solid #C9CEEE;
	border-radius: 14px;
	background: var(--color-white) !important;
	font-family: var(--font-main);
	font-size: 15px;
	color: var(--color-primary);
	-webkit-appearance: none;
	appearance: none;
	outline: none !important;
	box-shadow: none !important;
	transition: border-color 0.2s ease;
}

.shop-search__form input[type="search"]:focus {
	border-color: var(--color-primary);
}

.shop-search__form input[type="search"]::-webkit-search-cancel-button {
	display: none;
}

.shop-search__clear {
	position: absolute;
	right: 14px;
	width: 26px;
	height: 26px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: none;
	background: transparent;
	color: var(--color-primary);
	cursor: pointer;
}

.shop-search__clear[hidden],
.shop-search__results[hidden] {
	display: none;
}

/* Випадний список: поверх каталогу, нічого не зсуває. */
.shop-search__results {
	position: absolute;
	left: 0;
	right: 0;
	top: calc(100% + 6px);
	z-index: 50;
	background: var(--color-white);
	border-radius: 14px;
	box-shadow: 0 16px 40px rgba(27, 39, 129, 0.18);
	padding: 6px 14px;
}

.shop-search__results .header-search__meta {
	display: none;
}

.shop-search__results .header-search__list {
	max-height: none;
	overflow: visible;
}

.shop-search__results .header-search__item {
	padding: 8px 0;
	gap: 14px;
}

.shop-search__results .header-search__image {
	flex: 0 0 36px;
	width: 36px;
	height: 36px;
	border-radius: 8px;
}

.shop-search__results .header-search__info {
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.shop-search__results .header-search__name {
	font-weight: 500;
	-webkit-line-clamp: 1;
	flex: 1;
	min-width: 0;
}

.shop-search__results .header-search__price {
	flex: 0 0 auto;
	white-space: nowrap;
}

.shop-search__results .header-search__add {
	width: 36px;
	height: 36px;
	border-radius: 10px;
}

.shop-search__results .header-search__empty {
	padding: 14px 0;
}


.shop-page__main {
	min-width: 0;
}

/* --- Телефон: слайд "Потрібна вода додому чи в офіс?" за макетом (ліворуч текст і плюси, праворуч пляшки) --- */
@media (max-width: 560px) {
	.shop-banner__slide--cta {
		align-items: flex-start;
		justify-content: flex-start;
		padding: 34px 26px 0;
		text-align: left;
	}
	.shop-banner__slide--cta .shop-banner__text {
		max-width: 100%;
	}
	.shop-banner__slide--cta .shop-banner__eyebrow {
		display: block;
		margin-bottom: 14px;
		font-size: 13px;
		font-weight: 600;
		letter-spacing: 0.14em;
		text-transform: uppercase;
		color: #6F9BFF;
	}
	.shop-banner__slide--cta .shop-banner__title {
		font-size: 31px;
		line-height: 1.15;
		margin-bottom: 14px;
	}
	.shop-banner__slide--cta .shop-banner__subtitle {
		font-size: 16px;
		line-height: 1.5;
		max-width: 300px;
		color: rgba(255, 255, 255, 0.72);
	}
	.shop-banner__slide--cta .shop-banner__cta-btn {
		margin-top: 24px;
		padding: 16px 28px;
		font-size: 17px;
		border-radius: 14px;
	}
	.shop-banner__perks {
		display: grid;
		gap: 16px;
		list-style: none;
		margin: 28px 0 0;
		padding: 0;
		max-width: 48%;
	}
	.shop-banner__perks li {
		display: flex;
		align-items: center;
		gap: 14px;
		font-size: 15px;
		line-height: 1.3;
		color: rgba(255, 255, 255, 0.82);
	}
	.shop-banner__perk-icon {
		flex: 0 0 48px;
		width: 48px;
		height: 48px;
		border-radius: 50%;
		background: rgba(255, 255, 255, 0.09);
		display: flex;
		align-items: center;
		justify-content: center;
		color: rgba(255, 255, 255, 0.9);
	}
	.shop-banner__slide--cta .shop-banner__bottles-mobile {
		display: block;
		position: absolute;
		z-index: 0;
		right: -14%;
		bottom: 60px;
		width: 72%;
		height: auto;
		filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.35));
		pointer-events: none;
	}
	.shop-banner__slide--cta .shop-banner__cta-media,
	.shop-banner__accent {
		display: none;
	}
	.shop-banner__controls {
		left: 26px;
		transform: none;
		bottom: 22px;
	}
	.shop-banner__dots {
		right: auto;
		left: 140px;
		bottom: 38px;
	}
	.shop-banner__arrow {
		width: 42px;
		height: 42px;
	}
}
