/* ===== Основа ===== */
:root {
	--bg: #fcfbfa;
	--surface: #ffffff;
	--soft: #f3f0f4;
	--text: #2a2630;
	--muted: #665f6c;
	--line: #e6e1e8;
	--accent: #7a4e76;
	--accent-dark: #613d5e;
	--accent-soft: #f2eaf2;
	--ok: #2f6b45;
	--ok-soft: #e5f1e8;
	--danger: #a33a2c;
	--sale: #d32f2f;
	--radius: 18px;
	--radius-sm: 12px;
	--shadow: 0 6px 24px rgba(50, 35, 60, 0.08);
	--ease: cubic-bezier(0.22, 0.61, 0.36, 1);
	--serif: "Georgia", "Times New Roman", serif;
	--sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@view-transition {
	navigation: auto;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--sans);
	font-size: 18px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-webkit-tap-highlight-color: transparent;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

h1,
h2,
h3 {
	font-family: var(--serif);
	font-weight: 400;
	line-height: 1.2;
	margin: 0 0 0.5em;
	color: var(--text);
}

h1 {
	font-size: clamp(30px, 6vw, 46px);
}

h2 {
	font-size: clamp(25px, 4.5vw, 34px);
}

h3 {
	font-size: 21px;
}

p {
	margin: 0 0 1em;
}

a {
	color: var(--accent);
	text-underline-offset: 3px;
}

:focus-visible {
	outline: 3px solid var(--accent);
	outline-offset: 3px;
	border-radius: 6px;
}

.wrap {
	width: 100%;
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 20px;
}

.narrow {
	max-width: 760px;
}

.muted {
	color: var(--muted);
}

.small {
	font-size: 16px;
}

.center {
	text-align: center;
}

.lead {
	font-size: 20px;
}

.sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.skip {
	position: absolute;
	left: -9999px;
	top: 8px;
	background: var(--text);
	color: #fff;
	padding: 10px 16px;
	border-radius: 8px;
	z-index: 100;
}

.skip:focus {
	left: 8px;
}

/* ===== Кнопки ===== */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	padding: 12px 26px;
	border: 2px solid transparent;
	border-radius: 999px;
	font: inherit;
	font-weight: 600;
	font-size: 18px;
	text-decoration: none;
	cursor: pointer;
	transition:
		background-color 0.25s var(--ease),
		color 0.25s var(--ease),
		border-color 0.25s var(--ease),
		transform 0.15s var(--ease),
		box-shadow 0.25s var(--ease);
	touch-action: manipulation;
}

.btn:active {
	transform: scale(0.97);
}

.btn-lg {
	min-height: 58px;
	padding: 14px 32px;
	font-size: 19px;
}

.btn-block {
	width: 100%;
}

.btn-primary {
	background: var(--accent);
	color: #fff;
	box-shadow: 0 6px 18px rgba(122, 78, 118, 0.25);
}

.btn-primary:hover {
	background: var(--accent-dark);
}

.btn-primary[disabled] {
	opacity: 0.6;
	cursor: wait;
}

.btn-secondary {
	background: transparent;
	color: var(--accent);
	border-color: var(--accent);
}

.btn-secondary:hover {
	background: var(--accent-soft);
}

.contact-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 16px 0;
}

.btn-contact {
	background: var(--surface);
	color: var(--text);
	border-color: var(--line);
	min-height: 52px;
	padding: 10px 20px;
	font-weight: 600;
}

.btn-contact:hover {
	border-color: var(--accent);
}

.btn-contact.tg svg {
	color: #229ed9;
}

.btn-contact.ig svg {
	color: #c13584;
}

.btn-contact.vb svg {
	color: #7360f2;
}

.btn-contact.phone svg {
	color: var(--accent);
}

/* ===== Шапка ===== */
.site-header {
	position: sticky;
	top: 0;
	z-index: 20;
	background: rgba(252, 251, 250, 0.94);
	border-bottom: 1px solid var(--line);
}

@supports (backdrop-filter: blur(8px)) {
	.site-header {
		background: rgba(252, 251, 250, 0.82);
		backdrop-filter: blur(8px);
	}
}

.header-inner {
	display: flex;
	align-items: center;
	gap: 16px;
	min-height: 72px;
	flex-wrap: wrap;
}

.logo {
	font-family: var(--serif);
	font-size: 25px;
	color: var(--text);
	text-decoration: none;
	margin-right: auto;
}

.main-nav {
	display: flex;
	gap: 6px;
	order: 3;
	width: 100%;
	overflow-x: auto;
	scrollbar-width: none;
	padding-bottom: 10px;
	margin-top: -6px;
}

.main-nav::-webkit-scrollbar {
	display: none;
}

.main-nav a {
	flex: 0 0 auto;
	padding: 8px 16px;
	border-radius: 999px;
	color: var(--text);
	text-decoration: none;
	background: var(--soft);
	font-size: 17px;
	transition: background-color 0.2s var(--ease);
}

.main-nav a.nav-ig {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 12px;
	color: var(--accent);
}

.main-nav a[aria-current="page"] {
	background: var(--accent);
	color: #fff;
}

.cart-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 50px;
	padding: 8px 18px;
	border-radius: 999px;
	background: var(--surface);
	border: 1px solid var(--line);
	color: var(--text);
	text-decoration: none;
	font-weight: 600;
}

.cart-count {
	position: absolute;
	top: -6px;
	right: -6px;
	min-width: 26px;
	height: 26px;
	padding: 0 7px;
	border-radius: 999px;
	background: var(--accent);
	color: #fff;
	font-size: 15px;
	line-height: 26px;
	text-align: center;
}

.cart-count.bump {
	animation: bump 0.45s var(--ease);
}

@keyframes bump {
	40% {
		transform: scale(1.35);
	}
}

@media (min-width: 900px) {
	.main-nav {
		order: 0;
		width: auto;
		padding: 0;
		margin: 0 8px 0 0;
		overflow: visible;
	}

	.main-nav a {
		background: transparent;
	}

	.main-nav a:hover {
		background: var(--soft);
	}
}

@media (max-width: 420px) {
	.cart-label {
		display: none;
	}
}

/* ===== Секції ===== */
.section {
	padding: 48px 0;
}

.page-top {
	padding-top: 32px;
}

.section-soft {
	background: var(--soft);
}

.section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 20px;
}

.section-head h2 {
	margin: 0;
}

.link-more {
	font-weight: 600;
	text-decoration: none;
	font-size: 18px;
}

/* ===== Головний банер ===== */
.hero {
	padding: 36px 0 24px;
	overflow: hidden;
}

.hero-inner {
	display: grid;
	gap: 28px;
	align-items: center;
}

.hero-text .lead {
	color: var(--muted);
	max-width: 32em;
}

.hero-art {
	position: relative;
	max-width: 420px;
	margin: 0 auto;
	width: 100%;
}

.hero-art img,
.hero-ph {
	position: relative;
	border-radius: 200px 200px var(--radius) var(--radius);
	aspect-ratio: 3 / 4;
	object-fit: cover;
	width: 100%;
	box-shadow: var(--shadow);
}

.hero-ph {
	display: grid;
	place-items: center;
	background: linear-gradient(160deg, #f3ecf4, #ece9ef);
	color: var(--accent);
}

.hero-ph svg {
	width: 45%;
	opacity: 0.55;
}

.blob {
	position: absolute;
	inset: 8% -10% -6% 10%;
	background: radial-gradient(circle at 30% 30%, #ece0ef, transparent 65%), radial-gradient(circle at 70% 70%, #e8e6ef, transparent 60%);
	filter: blur(10px);
	animation: float 9s ease-in-out infinite alternate;
}

@keyframes float {
	to {
		transform: translate(-12px, 10px) scale(1.04);
	}
}

@media (min-width: 820px) {
	.hero {
		padding: 64px 0 48px;
	}

	.hero-inner {
		grid-template-columns: 1.15fr 0.85fr;
		gap: 56px;
	}
}

/* ===== Переваги ===== */
.benefits {
	padding: 8px 0 8px;
}

.benefits-inner {
	display: grid;
	gap: 12px;
}

.benefit {
	display: flex;
	align-items: center;
	gap: 14px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 16px 20px;
	font-weight: 600;
}

.benefit-icon {
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: var(--accent-soft);
	color: var(--accent);
}

@media (min-width: 760px) {
	.benefits-inner {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* ===== Картки товарів ===== */
.grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
}

/* Телефон — один товар у ряд; планшет — два */
@media (min-width: 600px) {
	.grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 760px) {
	.grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 24px;
	}
}

@media (min-width: 1080px) {
	.grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

.card {
	display: flex;
	flex-direction: column;
	background: var(--surface);
	border-radius: var(--radius);
	overflow: hidden;
	text-decoration: none;
	color: var(--text);
	box-shadow: 0 1px 0 var(--line);
	transition:
		transform 0.35s var(--ease),
		box-shadow 0.35s var(--ease);
}

@media (hover: hover) {
	.card:hover {
		transform: translateY(-4px);
		box-shadow: var(--shadow);
	}

	.card:hover .card-img img {
		transform: scale(1.04);
	}
}

.card-img {
	position: relative;
	aspect-ratio: 3 / 4;
	background: var(--soft);
	overflow: hidden;
}

.card-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s var(--ease);
}

.ph {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	color: var(--accent);
	background: linear-gradient(160deg, #f3ecf4, #ece9ef);
}

.ph svg {
	width: 46%;
	opacity: 0.5;
}

.card-img {
	display: block;
}

.card-body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 14px 16px 18px;
}

.card-body h3 a {
	color: inherit;
	text-decoration: none;
}

.card-actions {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 8px;
	margin-top: auto;
	padding-top: 14px;
}

.card-actions .btn {
	min-height: 50px;
	padding: 10px 14px;
	font-size: 17px;
	text-decoration: none;
	white-space: nowrap;
}

/* ===== Вибір розміру з картки ===== */
.sheet {
	position: fixed;
	inset: 0;
	z-index: 60;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	background: rgba(30, 20, 32, 0.45);
	opacity: 0;
	visibility: hidden;
	transition:
		opacity 0.25s var(--ease),
		visibility 0s 0.25s;
}

.sheet.open {
	opacity: 1;
	visibility: visible;
	transition: opacity 0.25s var(--ease);
}

.sheet-panel {
	width: 100%;
	max-width: 480px;
	background: var(--surface);
	border-radius: 18px 18px 0 0;
	padding: 22px 20px calc(22px + env(safe-area-inset-bottom));
	transform: translateY(30px);
	transition: transform 0.3s var(--ease);
}

.sheet.open .sheet-panel {
	transform: none;
}

@media (min-width: 600px) {
	.sheet {
		align-items: center;
	}

	.sheet-panel {
		border-radius: 18px;
	}
}

.sheet-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 4px;
}

.sheet-head h2 {
	font-size: 22px;
	margin: 0;
}

.sheet-close {
	flex: 0 0 auto;
	width: 46px;
	height: 46px;
	border: 0;
	border-radius: 50%;
	background: var(--soft);
	color: var(--text);
	font-size: 20px;
	cursor: pointer;
}

.sheet-product {
	color: var(--muted);
	margin: 0 0 16px;
}

.sheet-sizes {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
	gap: 10px;
}

.sheet-sizes button {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 58px;
	border: 2px solid var(--line);
	border-radius: 12px;
	background: var(--surface);
	color: var(--text);
	font: inherit;
	font-size: 18px;
	font-weight: 600;
	cursor: pointer;
}

.sheet-sizes button {
	font-size: 17px;
	white-space: nowrap;
}

.sheet-sizes button:hover:not(:disabled) {
	border-color: var(--accent);
}

.sheet-sizes button:disabled {
	color: var(--muted);
	background: var(--soft);
	cursor: default;
}

.sheet-sizes small {
	font-size: 12px;
	font-weight: 400;
}

.sheet-error {
	color: var(--sale);
	margin: 12px 0 0;
}

.sheet-error:empty {
	display: none;
}

.card-body h3 {
	font-size: 19px;
	margin-bottom: 4px;
}

.card-color {
	color: var(--muted);
	font-size: 16px;
	margin: 0 0 6px;
}

.price {
	font-weight: 700;
	font-size: 19px;
	margin: 0;
}

.price s,
.product-price s {
	color: var(--muted);
	font-weight: 400;
	font-size: 0.85em;
	margin-left: 6px;
}

.badge {
	position: absolute;
	left: 10px;
	top: 10px;
	background: rgba(43, 36, 32, 0.82);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	padding: 4px 12px;
	border-radius: 999px;
}

.badge-sale {
	background: var(--sale);
	font-size: 17px;
	font-weight: 700;
	padding: 5px 14px;
	letter-spacing: 0.02em;
}

.sale-tag {
	display: inline-block;
	vertical-align: middle;
	margin-left: 8px;
	padding: 3px 12px;
	border-radius: 999px;
	background: var(--sale);
	color: #fff;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.4;
}

.card-out .card-img img {
	filter: grayscale(0.6);
	opacity: 0.75;
}

.empty {
	text-align: center;
	padding: 40px 0;
	color: var(--muted);
}

.ph-big {
	width: 110px;
	height: 110px;
	margin: 0 auto 16px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--accent-soft);
	color: var(--accent);
}

.ph-big svg {
	width: 56px;
	height: 56px;
}

/* ===== Сторінка товару ===== */
.back-link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-bottom: 18px;
	text-decoration: none;
	font-weight: 600;
	min-height: 44px;
}

.product {
	display: grid;
	gap: 28px;
}

/* Не даємо широкій таблиці розпирати сторінку */
.product > * {
	min-width: 0;
}

@media (min-width: 900px) {
	.product {
		grid-template-columns: 1.05fr 0.95fr;
		gap: 48px;
		align-items: start;
	}

	.gallery {
		position: sticky;
		top: 96px;
	}
}

.gallery {
	position: relative;
}

.gallery-track {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	border-radius: var(--radius);
	scrollbar-width: none;
	background: var(--soft);
}

.gallery-track::-webkit-scrollbar {
	display: none;
}

.gallery-slide {
	flex: 0 0 100%;
	margin: 0;
	scroll-snap-align: center;
	aspect-ratio: 3 / 4;
}

.gallery-slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	cursor: zoom-in;
}

/* Горизонтальні фото (розмірна сітка тощо) — показуємо повністю, без обрізання */
.gallery-slide.wide {
	background: #fff;
}

.gallery-slide.wide img {
	object-fit: contain;
}

.gallery-zoom {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: none;
	background: rgba(255, 255, 255, 0.92);
	color: var(--text);
	display: grid;
	place-items: center;
	cursor: pointer;
	box-shadow: var(--shadow);
}

/* Перегляд фото на весь екран */
.lightbox {
	position: fixed;
	inset: 0;
	z-index: 80;
	background: #fff;
	display: flex;
	flex-direction: column;
}

.lightbox[hidden] {
	display: none;
}

.lb-stage {
	flex: 1;
	display: flex;
	overflow: auto;
	touch-action: pan-x pan-y;
	overscroll-behavior: contain;
	scrollbar-width: none;
}

.lb-stage::-webkit-scrollbar {
	display: none;
}

.lb-stage img {
	margin: auto;
	max-width: none;
	flex: 0 0 auto;
	user-select: none;
	-webkit-user-select: none;
	-webkit-touch-callout: none;
	cursor: zoom-in;
}

.lightbox.zoomed .lb-stage img {
	cursor: zoom-out;
}

.lb-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
	border-top: 1px solid var(--line, #eee);
	background: #fff;
}

.lb-hint {
	font-size: 0.9rem;
	color: var(--muted);
	text-align: center;
	flex: 1;
}

.lb-btn {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: none;
	background: var(--soft);
	color: var(--text);
	display: grid;
	place-items: center;
	cursor: pointer;
	flex: 0 0 auto;
}

.lb-btn[disabled] {
	visibility: hidden;
}

.lb-next svg {
	transform: rotate(180deg);
}

.lb-close {
	position: absolute;
	top: calc(10px + env(safe-area-inset-top));
	right: 10px;
	z-index: 1;
	box-shadow: var(--shadow);
	background: rgba(255, 255, 255, 0.95);
}

html.lb-open,
html.lb-open body {
	overflow: hidden;
}

.ph-product {
	aspect-ratio: 3 / 4;
	border-radius: var(--radius);
}

.gallery-nav {
	position: absolute;
	top: calc(50% - 60px);
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: none;
	background: rgba(255, 255, 255, 0.92);
	color: var(--text);
	display: grid;
	place-items: center;
	cursor: pointer;
	box-shadow: var(--shadow);
	transition: opacity 0.2s;
}

.gallery-nav.prev {
	left: 10px;
}

.gallery-nav.next {
	right: 10px;
}

.gallery-nav.next svg {
	transform: rotate(180deg);
}

.gallery-nav[disabled] {
	opacity: 0;
	pointer-events: none;
}

.gallery-thumbs {
	display: flex;
	gap: 10px;
	margin-top: 12px;
	overflow-x: auto;
	scrollbar-width: none;
	padding: 3px;
}

.gallery-thumbs button {
	flex: 0 0 auto;
	width: 66px;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 10px;
	overflow: hidden;
	background: var(--soft);
	cursor: pointer;
	opacity: 0.65;
	transition:
		opacity 0.2s,
		border-color 0.2s;
}

.gallery-thumbs button[aria-current="true"] {
	border-color: var(--accent);
	opacity: 1;
}

.gallery-thumbs img {
	aspect-ratio: 3 / 4;
	object-fit: cover;
	width: 100%;
}

.gallery-thumbs .wide img {
	object-fit: contain;
	background: #fff;
}

.product-info h1 {
	margin-bottom: 6px;
}

.product-color {
	color: var(--muted);
	margin-bottom: 8px;
}

.product-price {
	font-size: 30px;
	font-weight: 700;
	margin-bottom: 20px;
}

.sizes {
	border: none;
	margin: 0 0 8px;
	padding: 0;
}

.sizes legend,
.np-block legend,
.payment legend,
.rating-field legend {
	font-weight: 700;
	font-size: 19px;
	margin-bottom: 10px;
	padding: 0;
}

.size-list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.size {
	position: relative;
}

.size input {
	position: absolute;
	opacity: 0;
	inset: 0;
	margin: 0;
	cursor: pointer;
}

.size span {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 66px;
	min-height: 56px;
	padding: 6px 14px;
	border: 2px solid var(--line);
	border-radius: var(--radius-sm);
	background: var(--surface);
	font-weight: 700;
	font-size: 18px;
	line-height: 1.1;
	transition:
		border-color 0.2s var(--ease),
		background-color 0.2s var(--ease),
		color 0.2s var(--ease),
		transform 0.15s var(--ease);
}

.size small {
	font-weight: 400;
	font-size: 13px;
	color: var(--muted);
}

.size input:checked + span {
	border-color: var(--accent);
	background: var(--accent);
	color: #fff;
}

.size input:focus-visible + span {
	outline: 3px solid var(--accent);
	outline-offset: 2px;
}

.size input:active + span {
	transform: scale(0.95);
}

.size-out span {
	color: #a39ca8;
	background: var(--soft);
	text-decoration: line-through;
	border-style: dashed;
}

.size-out small {
	text-decoration: none;
}

.size-out input {
	cursor: not-allowed;
}

.size-hint {
	min-height: 1.6em;
	margin: 8px 0 0;
	color: var(--muted);
	font-size: 16px;
}

.size-hint.warn {
	color: var(--accent);
	font-weight: 600;
}

.table-wrap {
	overflow-x: auto;
	margin-top: 10px;
}

.size-table {
	width: 100%;
	border-collapse: collapse;
	background: var(--surface);
	border-radius: var(--radius-sm);
	overflow: hidden;
	font-size: 17px;
}

.size-table th,
.size-table td {
	padding: 10px 14px;
	border-bottom: 1px solid var(--line);
	text-align: left;
	white-space: nowrap;
}

.size-table thead th {
	background: var(--accent-soft);
	white-space: normal;
	vertical-align: bottom;
	line-height: 1.3;
}

@media (max-width: 480px) {
	.size-table th,
	.size-table td {
		padding: 10px 10px;
	}
}

.buy-buttons {
	display: grid;
	gap: 12px;
	margin-top: 14px;
}

@media (min-width: 560px) {
	.buy-buttons {
		grid-template-columns: 1fr 1fr;
	}
}

.form-error {
	color: var(--danger);
	font-weight: 600;
	min-height: 1.6em;
	margin: 10px 0 0;
}

.notice {
	background: var(--accent-soft);
	border-radius: var(--radius-sm);
	padding: 16px 20px;
	margin-bottom: 20px;
}

.notice-ok {
	background: var(--ok-soft);
	color: var(--ok);
	font-weight: 600;
}

.product-desc,
.product-sizes {
	margin-top: 26px;
	padding-top: 22px;
	border-top: 1px solid var(--line);
}

.product-desc h2,
.product-sizes h2 {
	font-size: 24px;
	margin-bottom: 12px;
}

.product-desc p:last-child {
	margin-bottom: 0;
}

.help-inline {
	margin-top: 26px;
	padding: 20px;
	background: var(--surface);
	border-radius: var(--radius);
	border: 1px solid var(--line);
}

.help-inline p {
	margin: 0;
}

.help-box {
	background: var(--surface);
	border-radius: var(--radius);
	padding: 32px 24px;
	text-align: center;
	box-shadow: var(--shadow);
}

.help-box .contact-buttons {
	justify-content: center;
}

/* ===== Відгуки ===== */
.reviews-grid {
	display: grid;
	gap: 16px;
}

@media (min-width: 760px) {
	.reviews-grid {
		grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
		gap: 20px;
	}
}

.review {
	background: var(--surface);
	border-radius: var(--radius);
	padding: 20px 22px;
	box-shadow: 0 1px 0 var(--line);
}

.review-head {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 10px;
}

.review-avatar {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: var(--accent-soft);
	color: var(--accent);
	font-family: var(--serif);
	font-size: 22px;
}

.review-name {
	font-weight: 700;
	margin: 0;
}

.review-text {
	white-space: pre-line;
}

.review-meta {
	font-size: 15px;
	margin: 0;
}

.stars {
	display: inline-flex;
	gap: 2px;
	line-height: 1;
}

.stars .on {
	color: #d9a23a;
}

.stars .off {
	color: #ddd7e0;
}

.review-form,
.checkout {
	background: var(--surface);
	border-radius: var(--radius);
	padding: 26px 22px;
	box-shadow: var(--shadow);
}

.rating-field {
	border: none;
	padding: 0;
	margin: 0 0 18px;
}

.rating-input {
	display: inline-flex;
	flex-direction: row-reverse;
	gap: 4px;
}

.rating-input input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.rating-input label {
	cursor: pointer;
	color: #ddd7e0;
	padding: 4px;
	transition:
		color 0.15s,
		transform 0.15s;
}

.rating-input label svg {
	width: 38px;
	height: 38px;
}

.rating-input input:checked ~ label,
.rating-input label:hover,
.rating-input label:hover ~ label {
	color: #d9a23a;
}

.rating-input input:focus-visible + label {
	outline: 3px solid var(--accent);
	border-radius: 8px;
}

/* ===== Форми ===== */
.field {
	margin-bottom: 18px;
	position: relative;
}

.field label {
	display: block;
	font-weight: 700;
	margin-bottom: 6px;
}

.field label .muted {
	font-weight: 400;
}

input,
select,
textarea {
	font: inherit;
	color: inherit;
}

.field input,
.field select,
.field textarea {
	width: 100%;
	min-height: 56px;
	padding: 12px 16px;
	border: 2px solid var(--line);
	border-radius: var(--radius-sm);
	background: #fff;
	font-size: 18px;
	transition:
		border-color 0.2s var(--ease),
		box-shadow 0.2s var(--ease);
	appearance: none;
}

.field select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23665f6c' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 44px;
}

.field textarea {
	min-height: 110px;
	resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
	border-color: var(--accent);
	box-shadow: 0 0 0 4px var(--accent-soft);
	outline: none;
}

.field input:disabled {
	background: var(--soft);
	cursor: not-allowed;
}

.field.invalid input {
	border-color: var(--danger);
}

.field-error {
	color: var(--danger);
	font-size: 16px;
	margin: 6px 0 0;
	min-height: 0;
}

.field-error:empty {
	display: none;
}

.field-hint {
	font-size: 15px;
	margin: 6px 0 0;
}

.np-block,
.payment {
	border: none;
	padding: 0;
	margin: 0 0 18px;
}

.radio-card {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	padding: 16px 18px;
	border: 2px solid var(--line);
	border-radius: var(--radius-sm);
	margin-bottom: 10px;
	cursor: pointer;
	background: #fff;
	transition:
		border-color 0.2s var(--ease),
		background-color 0.2s var(--ease);
}

.radio-card input {
	width: 24px;
	height: 24px;
	margin: 2px 0 0;
	accent-color: var(--accent);
	flex: 0 0 auto;
}

.radio-card span {
	display: flex;
	flex-direction: column;
}

.radio-card small {
	color: var(--muted);
	font-size: 16px;
}

.radio-card:has(input:checked) {
	border-color: var(--accent);
	background: var(--accent-soft);
}

.hp {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.cf-turnstile {
	margin: 10px 0 16px;
}

/* Випадаючі підказки Нової Пошти */
.combo-list {
	position: absolute;
	z-index: 15;
	left: 0;
	right: 0;
	top: calc(100% - 4px);
	margin: 0;
	padding: 6px;
	list-style: none;
	background: #fff;
	border: 2px solid var(--accent);
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow);
	max-height: 320px;
	overflow-y: auto;
	animation: drop 0.18s var(--ease);
}

.combo-list li {
	padding: 12px 14px;
	border-radius: 8px;
	cursor: pointer;
	line-height: 1.35;
}

.combo-list li small {
	display: block;
	color: var(--muted);
	font-size: 15px;
}

.combo-list li[aria-selected="true"],
.combo-list li:hover {
	background: var(--accent-soft);
}

.combo-list li.combo-info {
	cursor: default;
	color: var(--muted);
	background: none;
}

@keyframes drop {
	from {
		opacity: 0;
		transform: translateY(-6px);
	}
}

/* ===== Кошик ===== */
.cart-items {
	display: grid;
	gap: 12px;
	margin-bottom: 18px;
}

.cart-item {
	display: grid;
	grid-template-columns: 84px 1fr;
	gap: 14px;
	background: var(--surface);
	border-radius: var(--radius);
	padding: 12px;
	box-shadow: 0 1px 0 var(--line);
	transition:
		opacity 0.3s var(--ease),
		transform 0.3s var(--ease);
}

.cart-item.removing {
	opacity: 0;
	transform: translateX(30px);
}

.cart-item-img {
	border-radius: 10px;
	overflow: hidden;
	aspect-ratio: 3 / 4;
	background: var(--soft);
}

.cart-item-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cart-item-img .ph svg {
	width: 60%;
}

.cart-item h3 {
	font-size: 19px;
	margin: 0 0 2px;
}

.cart-item h3 a {
	color: var(--text);
	text-decoration: none;
}

.cart-item-meta {
	color: var(--muted);
	font-size: 16px;
	margin: 0 0 8px;
}

.cart-item-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	flex-wrap: wrap;
}

.qty {
	display: inline-flex;
	align-items: center;
	border: 2px solid var(--line);
	border-radius: 999px;
	background: #fff;
}

.qty button {
	width: 46px;
	height: 46px;
	border: none;
	background: none;
	font-size: 24px;
	color: var(--accent);
	cursor: pointer;
	border-radius: 50%;
}

.qty button:disabled {
	color: #c6c0ca;
	cursor: not-allowed;
}

.qty span {
	min-width: 30px;
	text-align: center;
	font-weight: 700;
}

.cart-item-price {
	font-weight: 700;
	font-size: 19px;
}

.remove-btn {
	border: none;
	background: none;
	color: var(--muted);
	text-decoration: underline;
	font: inherit;
	font-size: 16px;
	cursor: pointer;
	padding: 8px 0;
	min-height: 44px;
}

.cart-warn {
	color: var(--danger);
	font-size: 16px;
	font-weight: 600;
	margin: 6px 0 0;
}

.cart-summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 21px;
	padding: 18px 20px;
	background: var(--surface);
	border-radius: var(--radius);
	margin-bottom: 28px;
}

.cart-empty {
	text-align: center;
	padding: 30px 0;
}

.checkout h2 {
	margin-bottom: 20px;
}

.checkout-total {
	display: flex;
	justify-content: space-between;
	font-size: 22px;
	margin-top: 10px;
}

.checkout-total + .small {
	margin: 0 0 18px;
}

/* ===== Сторінка подяки ===== */
.thanks {
	text-align: center;
}

.thanks .contact-buttons {
	justify-content: center;
}

.thanks-icon {
	width: 92px;
	height: 92px;
	margin: 0 auto 18px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: var(--ok-soft);
	color: var(--ok);
	animation: pop 0.6s var(--ease);
}

.thanks-icon svg {
	width: 48px;
	height: 48px;
}

@keyframes pop {
	from {
		transform: scale(0.4);
		opacity: 0;
	}
}

/* ===== Доставка ===== */
.info-block {
	background: var(--surface);
	border-radius: var(--radius);
	padding: 24px 22px;
	margin-bottom: 16px;
}

.info-block h2 {
	font-size: 26px;
}

.info-block p:last-child {
	margin-bottom: 0;
}

/* ===== Підвал ===== */
.site-footer {
	margin-top: 40px;
	background: #2b2630;
	color: #efeaf1;
	padding: 40px 0 24px;
}

.site-footer .muted {
	color: #c9c2cc;
}

.footer-inner {
	display: grid;
	gap: 24px;
}

.footer-logo {
	font-family: var(--serif);
	font-size: 26px;
	margin-bottom: 8px;
}

.footer-nav {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.footer-nav a {
	color: #efeaf1;
	text-decoration: none;
	padding: 6px 0;
}

.footer-bottom {
	margin-top: 24px;
	padding-top: 18px;
	border-top: 1px solid #47404c;
	font-size: 15px;
}

@media (min-width: 760px) {
	.footer-inner {
		grid-template-columns: 2fr 1fr;
	}
}

/* ===== Сповіщення ===== */
.toast {
	position: fixed;
	left: 50%;
	bottom: 20px;
	z-index: 70;
	transform: translate(-50%, calc(100% + 40px));
	visibility: hidden;
	max-width: calc(100% - 32px);
	background: var(--text);
	color: #fff;
	padding: 14px 22px;
	border-radius: 999px;
	box-shadow: var(--shadow);
	display: flex;
	align-items: center;
	gap: 14px;
	transition:
		transform 0.4s var(--ease),
		visibility 0s linear 0.4s;
	font-weight: 600;
}

.toast.show {
	transform: translate(-50%, 0);
	visibility: visible;
	transition: transform 0.4s var(--ease);
}

.toast a {
	color: #e6cdea;
	white-space: nowrap;
}

/* ===== Плавна поява під час прокрутки ===== */
.js .reveal {
	opacity: 0;
	transform: translateY(18px);
	transition:
		opacity 0.6s var(--ease),
		transform 0.6s var(--ease);
}

.js .reveal.in {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
		scroll-behavior: auto !important;
	}

	.js .reveal {
		opacity: 1;
		transform: none;
	}

	@view-transition {
		navigation: none;
	}
}

/* ===== Відгуки на сторінці товару ===== */
.rating-summary {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 10px;
	color: var(--muted);
	text-decoration: none;
	font-size: 17px;
	min-height: 36px;
}

.rating-summary span {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.product-reviews {
	display: grid;
	gap: 24px;
	align-items: start;
}

.reviews-list {
	display: grid;
	gap: 14px;
}

.review-form h3 {
	font-size: 24px;
	margin-bottom: 16px;
}

@media (min-width: 900px) {
	.product-reviews {
		grid-template-columns: 1.2fr 0.8fr;
		gap: 32px;
	}

	.product-reviews .review-form {
		position: sticky;
		top: 96px;
	}
}

/* ===== Логотип ===== */
.logo {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
}

.logo img {
	height: 40px;
	width: auto;
	transition: opacity 0.2s var(--ease);
}

.logo:hover img {
	opacity: 0.8;
}

@media (min-width: 900px) {
	.logo img {
		height: 46px;
	}
}

.footer-logo img {
	height: 42px;
	width: auto;
}

/* ===== Категорії ===== */
.cats-section {
	padding-top: 24px;
	padding-bottom: 24px;
}

.cat-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 14px;
}

@media (min-width: 900px) {
	.cat-grid {
		grid-template-columns: repeat(4, 1fr);
		gap: 22px;
	}
}

.cat-tile {
	position: relative;
	display: block;
	aspect-ratio: 4 / 5;
	border-radius: 8px;
	overflow: hidden;
	background: var(--accent-soft);
	text-decoration: none;
	transition: transform 0.35s var(--ease);
}

.cat-tile img,
.cat-tile .ph {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s var(--ease);
}

/* Затемнення знизу, щоб назву було добре видно на будь-якому фото */
.cat-tile::after {
	content: "";
	position: absolute;
	inset: 40% 0 0;
	background: linear-gradient(to top, rgba(30, 20, 32, 0.78), rgba(30, 20, 32, 0.35) 45%, rgba(30, 20, 32, 0));
	pointer-events: none;
}

.cat-name {
	position: absolute;
	left: 14px;
	right: 14px;
	bottom: 14px;
	z-index: 1;
	color: #fff;
	font-family: var(--serif);
	font-size: 21px;
	line-height: 1.2;
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
}

/* Категорія без фото: без затемнення, темний текст */
.cat-empty::after {
	display: none;
}

.cat-empty .cat-name {
	color: var(--text);
	text-shadow: none;
}

.cat-tile:active {
	transform: scale(0.98);
}

@media (hover: hover) {
	.cat-tile:hover img {
		transform: scale(1.05);
	}
}

@media (min-width: 900px) {
	.cat-name {
		left: 20px;
		bottom: 20px;
		font-size: 26px;
	}
}

/* Кнопки-фільтри в каталозі */
.chips {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	scrollbar-width: none;
	margin: 0 -20px 22px;
	padding: 2px 20px;
}

.chips::-webkit-scrollbar {
	display: none;
}

.chips a {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	min-height: 46px;
	padding: 8px 18px;
	border-radius: 999px;
	border: 1px solid var(--line);
	background: var(--surface);
	color: var(--text);
	text-decoration: none;
	font-weight: 600;
	font-size: 17px;
	transition:
		background-color 0.2s var(--ease),
		color 0.2s var(--ease);
}

.chips a[aria-current="page"] {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
}

/* ===== Пари ===== */
.card-pair {
	margin: 4px 0 0;
	color: var(--accent);
	font-weight: 600;
	font-size: 16px;
}

.pair-note {
	margin: -4px 0 18px;
	color: var(--accent);
	font-size: 18px;
}

.kind-pick .radio-card {
	margin-bottom: 8px;
}

.kind-pick .radio-card span {
	font-weight: 600;
	font-size: 18px;
}

.kind-pick .radio-card small {
	font-weight: 400;
}

.sheet-kind {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin-bottom: 16px;
}

.sheet-kind button {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	min-height: 62px;
	padding: 8px;
	border: 2px solid var(--line);
	border-radius: 12px;
	background: var(--surface);
	color: var(--text);
	font: inherit;
	font-size: 17px;
	font-weight: 600;
	cursor: pointer;
}

.sheet-kind small {
	color: var(--muted);
	font-size: 15px;
	font-weight: 400;
}

.sheet-kind button.on,
.sheet-sizes button.on {
	border-color: var(--accent);
	background: var(--accent-soft);
}

.sheet-label {
	font-weight: 700;
	margin: 6px 0 8px;
}

.sheet-label + .sheet-sizes {
	margin-bottom: 10px;
}

.sheet-go {
	margin-top: 10px;
	text-decoration: none;
}

/* Червона плашка вигоди для пари (як знижка) */
.save-tag {
	display: inline-block;
	margin: 4px 0 0;
	padding: 2px 10px;
	border-radius: 999px;
	background: var(--sale);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
	white-space: nowrap;
}

.kind-pick .radio-card small .save-tag {
	display: block;
	width: fit-content;
	margin-top: 6px;
}
