/* ==========================================================================
   ПереСтор — дизайн-система
   Палитра: апельсин на чёрном и тёплом белом. Шрифты: Unbounded + Manrope.
   ========================================================================== */

:root {
	--orange: #ff5c00;
	--orange-hot: #ff7a1f;
	--orange-deep: #d94b00;
	--black: #0c0c0d;
	--ink: #17171a;
	--ink-2: #232327;
	--paper: #ffffff;
	--sand: #f5f2ed;
	--sand-2: #ebe6df;
	--line: #e3ded6;
	--muted: #6d6a66;
	--text: #141416;
	--ok: #1f9d55;

	--font-display: "Unbounded", "Arial Black", sans-serif;
	--font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

	--container: 1280px;
	--gutter: clamp(16px, 4vw, 40px);
	--radius: 22px;
	--radius-sm: 12px;
	--shadow: 0 20px 60px -20px rgba(12, 12, 13, 0.25);
	--shadow-orange: 0 20px 50px -18px rgba(255, 92, 0, 0.55);
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
	--header-h: 76px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.55;
	color: var(--text);
	background: var(--paper);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 700; line-height: 1.08; letter-spacing: -0.01em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.h1 { font-size: clamp(30px, 4.6vw, 56px); }
.h2 { font-size: clamp(26px, 3.6vw, 44px); }
.h3 { font-size: clamp(18px, 1.6vw, 22px); font-weight: 600; }

.eyebrow {
	display: inline-flex; align-items: center; gap: 10px;
	font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange);
	margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--orange); }

.skip-link { position: absolute; left: -999px; top: 0; }
.skip-link:focus { left: 16px; top: 16px; z-index: 1000; background: var(--black); color: #fff; padding: 8px 12px; }

.icon { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Кнопки ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	padding: 14px 24px; border-radius: 999px;
	font-weight: 700; font-size: 15px; line-height: 1; white-space: nowrap;
	border: 1.5px solid transparent;
	transition: transform 0.35s var(--ease), background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.35s;
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--orange); color: #fff; box-shadow: var(--shadow-orange); }
.btn--primary:hover { background: var(--orange-hot); transform: translateY(-2px); }
.btn--outline { border-color: rgba(255, 255, 255, 0.35); color: #fff; }
.btn--outline:hover { border-color: #fff; background: rgba(255, 255, 255, 0.06); }
.btn--ghost { border-color: var(--line); color: var(--text); background: var(--paper); }
.btn--ghost:hover { border-color: var(--text); }
.btn--light { background: #fff; color: var(--black); }
.btn--light:hover { background: var(--sand); transform: translateY(-2px); }
.btn--lg { padding: 18px 30px; font-size: 16px; }
.btn--sm { padding: 10px 16px; font-size: 14px; }
.btn--block { width: 100%; }
.btn .icon-arrow { transition: transform 0.35s var(--ease); }
.btn:hover .icon-arrow { transform: translateX(4px); }
.btn.loading { opacity: 0.7; pointer-events: none; }
.btn.added span::after { content: " ✓"; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--text); }
.link-arrow .icon { transition: transform 0.35s var(--ease); color: var(--orange); }
.link-arrow:hover .icon { transform: translateX(5px); }

.iconbtn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 50%; transition: background 0.2s; }
.iconbtn:hover { background: var(--sand); }
.iconbtn .icon { width: 22px; height: 22px; }

/* ---------- Шапка ---------- */
.site-header {
	position: sticky; top: 0; z-index: 100;
	height: var(--header-h);
	background: rgba(255, 255, 255, 0.72);
	-webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
	border-bottom: 1px solid transparent;
	transition: border-color 0.3s, background 0.3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(255, 255, 255, 0.9); }
.is-front .site-header { background: rgba(12, 12, 13, 0.55); color: #fff; }
.is-front .site-header.is-scrolled { background: rgba(255, 255, 255, 0.9); color: var(--text); }
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: inline-flex; align-items: center; }
.logo__img { max-height: 44px; width: auto; }
.logo__mark { font-family: var(--font-display); font-weight: 800; font-size: 24px; letter-spacing: -0.02em; display: inline-flex; align-items: baseline; }
.logo__dot { display: inline-block; width: 0.32em; height: 0.32em; margin-left: 3px; border-radius: 50%; background: var(--orange); }

.site-nav__list { display: flex; gap: 6px; }
.site-nav__list a { display: inline-block; padding: 10px 14px; border-radius: 999px; font-weight: 600; font-size: 15px; transition: background 0.2s; }
.site-nav__list a:hover { background: rgba(127, 127, 127, 0.14); }
.site-nav__contacts { display: none; }

.site-header__actions { display: flex; align-items: center; gap: 8px; }
.site-header__phone { font-weight: 700; font-size: 15px; padding: 10px 14px; }
.cart-btn { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; transition: background 0.2s; }
.cart-btn:hover { background: rgba(127, 127, 127, 0.14); }
.cart-btn .icon { width: 24px; height: 24px; }
.cart-count {
	position: absolute; top: 4px; right: 2px; min-width: 20px; height: 20px; padding: 0 6px;
	border-radius: 999px; background: var(--orange); color: #fff; font-size: 11px; font-weight: 800; line-height: 20px; text-align: center;
	transform: scale(0); transition: transform 0.35s var(--ease);
}
.cart-count.is-visible { transform: scale(1); }
.cart-count.bump { animation: bump 0.5s var(--ease); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.45); } 100% { transform: scale(1); } }

.burger { display: none; width: 44px; height: 44px; place-items: center; border-radius: 50%; }
.burger .icon { width: 26px; height: 26px; }
.burger__close { display: none; }
body.nav-open .burger__open { display: none; }
body.nav-open .burger__close { display: block; }

/* ---------- Первый экран ---------- */
.hero {
	position: relative; overflow: hidden;
	margin-top: calc(var(--header-h) * -1); padding-top: calc(var(--header-h) + 56px);
	background: var(--black); color: #fff;
	isolation: isolate;
}
.hero::before {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.35;
	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%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.12 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero::after {
	content: ""; position: absolute; z-index: -1; pointer-events: none;
	width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; right: -20vw; top: -25vw;
	background: radial-gradient(closest-side, rgba(255, 92, 0, 0.55), rgba(255, 92, 0, 0) 70%);
	filter: blur(30px);
	animation: drift 14s ease-in-out infinite alternate;
}
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(-8vw, 6vw) scale(1.15); } }

.hero__inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; min-height: calc(100svh - var(--header-h)); padding-bottom: 40px; }
.hero__title { font-size: clamp(38px, 6vw, 84px); font-weight: 800; line-height: 0.98; letter-spacing: -0.03em; margin-bottom: 26px; }
.hero__title em { font-style: normal; color: var(--orange); }
.hero__lead { font-size: clamp(17px, 1.4vw, 20px); color: rgba(255, 255, 255, 0.72); max-width: 520px; margin-bottom: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__visual { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; }
.hero__img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); animation: heroIn 1.6s var(--ease) both; }
@keyframes heroIn { from { transform: scale(1.14); opacity: 0; } to { transform: scale(1.04); opacity: 1; } }
.hero__glow { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(12, 12, 13, 0) 55%, rgba(12, 12, 13, 0.7)); }
.hero__visual::after {
	content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.stats {
	display: grid; grid-template-columns: repeat(3, 1fr);
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	padding: 32px 0 56px;
}
.stats__item { display: flex; flex-direction: column; gap: 4px; padding: 0 28px 0 0; }
.stats__item + .stats__item { padding-left: 28px; border-left: 1px solid rgba(255, 255, 255, 0.14); }
.stats__num { font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 3.6vw, 46px); color: var(--orange); letter-spacing: -0.02em; }
.stats__text { color: rgba(255, 255, 255, 0.65); font-size: 15px; max-width: 220px; }

/* ---------- Бегущая строка ---------- */
.ticker { overflow: hidden; background: var(--orange); color: var(--black); padding: 14px 0; }
.ticker__track { display: flex; gap: 0; width: max-content; animation: ticker 40s linear infinite; }
.ticker__item { display: inline-flex; align-items: center; gap: 22px; padding-right: 22px; font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: 0.02em; text-transform: uppercase; white-space: nowrap; }
.ticker__item::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--black); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Секции ---------- */
.section { padding: clamp(64px, 8vw, 120px) 0; }
.section--tight { padding: 32px 0 clamp(64px, 8vw, 100px); }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 4vw, 48px); }

/* ---------- Категории ---------- */
.categories { background: var(--sand); }
.categories__grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 320px; gap: 18px; }
.catcard {
	position: relative; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden;
	border-radius: var(--radius); background: var(--ink); color: #fff; padding: 28px;
	box-shadow: var(--shadow);
	transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.catcard--wide { grid-row: span 2; }
.catcard:hover { transform: translateY(-6px); box-shadow: 0 30px 70px -24px rgba(12, 12, 13, 0.45); }
.catcard__media { position: absolute; inset: 0; }
.catcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.catcard:hover .catcard__media img { transform: scale(1.06); }
.catcard__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 12, 13, 0.05) 30%, rgba(12, 12, 13, 0.85)); }
.catcard__body { position: relative; z-index: 1; }
.catcard__title { font-size: clamp(22px, 2.2vw, 30px); margin-bottom: 8px; }
.catcard--wide .catcard__title { font-size: clamp(28px, 3vw, 40px); }
.catcard__sub { color: rgba(255, 255, 255, 0.7); font-size: 15px; margin-bottom: 14px; }
.catcard__more { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--orange); }
.catcard__more .icon { transition: transform 0.35s var(--ease); }
.catcard:hover .catcard__more .icon { transform: translateX(5px); }

/* ---------- Товары ---------- */
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
	display: flex; flex-direction: column; border-radius: var(--radius); background: var(--paper);
	border: 1px solid var(--line); overflow: hidden;
	transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card__media { position: relative; display: block; aspect-ratio: 1; background: var(--sand); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.badge { position: absolute; top: 14px; left: 14px; z-index: 2; padding: 6px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: 0.02em; background: var(--black); color: #fff; }
.badge--sale { background: var(--orange); }
.badge--few { background: #fff; color: var(--orange-deep); }
.badge--out { background: var(--sand-2); color: var(--muted); }
.card__quick {
	position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 2;
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.92); color: var(--text);
	font-weight: 700; font-size: 14px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
	opacity: 0; transform: translateY(8px); transition: opacity 0.3s, transform 0.4s var(--ease);
}
.card:hover .card__quick, .card__quick:focus-visible { opacity: 1; transform: none; }
.card__body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1; }
.card__cat { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange-deep); }
.card__title { font-family: var(--font-body); font-weight: 700; font-size: 17px; line-height: 1.3; letter-spacing: 0; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 10px; }
.card__price, .single__price, .qv__price { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.card__price del, .single__price del, .qv__price del { color: var(--muted); font-weight: 500; font-size: 0.8em; margin-right: 8px; }
.card__price ins, .single__price ins, .qv__price ins { text-decoration: none; }
.card__na { font-size: 14px; color: var(--muted); font-weight: 600; }
.stock-line { font-size: 14px; font-weight: 700; color: var(--ok); display: inline-flex; align-items: center; gap: 8px; }
.stock-line::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.stock-line.out-of-stock { color: var(--muted); }

/* ---------- Преимущества ---------- */
.about { background: var(--black); color: #fff; overflow: hidden; }
.about__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.about__media { position: sticky; top: calc(var(--header-h) + 24px); border-radius: var(--radius); overflow: hidden; }
.about__media img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.about__badge {
	position: absolute; left: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 2px;
	padding: 18px 22px; border-radius: 16px; background: rgba(255, 255, 255, 0.92); color: var(--text); max-width: 240px;
	-webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: 14px; line-height: 1.3;
}
.about__badge-num { font-family: var(--font-display); font-weight: 800; font-size: 34px; color: var(--orange); }
.about__text .h2 { margin-bottom: 36px; }
.advantages { display: flex; flex-direction: column; }
.advantages__item { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 26px 0; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.advantages__item:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.advantages__num { font-family: var(--font-display); font-weight: 800; font-size: 28px; color: var(--orange); line-height: 1; padding-top: 2px; }
.advantages__title { font-family: var(--font-display); font-weight: 600; font-size: 20px; margin-bottom: 8px; }
.advantages__item p { color: rgba(255, 255, 255, 0.68); font-size: 16px; }

/* ---------- Условия ---------- */
.terms { background: var(--sand); }
.terms__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.termcard { padding: 32px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.termcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.termcard .icon { width: 40px; height: 40px; color: var(--orange); margin-bottom: 20px; }
.termcard .h3 { margin-bottom: 10px; }
.termcard p { color: var(--muted); font-size: 16px; }

/* ---------- Подвал и CTA ---------- */
.site-footer { background: var(--black); color: #fff; padding: 0 0 40px; }
.cta {
	display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap;
	margin: 0 0 64px; padding: clamp(32px, 5vw, 64px); border-radius: var(--radius);
	background: linear-gradient(135deg, var(--orange) 0%, #ff8a3d 100%); color: var(--black);
	box-shadow: var(--shadow-orange); position: relative; overflow: hidden; transform: translateY(-64px); margin-bottom: 0;
}
.cta::after { content: ""; position: absolute; right: -80px; top: -80px; width: 300px; height: 300px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); pointer-events: none; }
.cta__text { max-width: 560px; position: relative; }
.cta__text .h2 { margin-bottom: 12px; }
.cta__text p { font-size: 17px; opacity: 0.85; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; position: relative; }

.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding: 24px 0 48px; }
.site-footer .logo__mark { color: #fff; }
.site-footer__tagline { color: rgba(255, 255, 255, 0.6); margin-top: 14px; font-size: 15px; }
.site-footer__avito { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-weight: 700; color: var(--orange); }
.site-footer__title { font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.45); margin-bottom: 16px; }
.site-footer__list li + li, .site-footer__contacts a + a { margin-top: 10px; }
.site-footer__list a, .site-footer__contacts a { display: inline-block; color: rgba(255, 255, 255, 0.82); transition: color 0.2s; }
.site-footer__list a:hover, .site-footer__contacts a:hover { color: var(--orange); }
.site-footer__contacts a { display: block; }
.site-footer__social { display: flex; gap: 8px; margin-top: 18px; }
.social { width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.2); transition: border-color 0.2s, background 0.2s; }
.social span { position: absolute; left: -9999px; }
.social:hover { border-color: var(--orange); background: rgba(255, 92, 0, 0.15); }
.social .icon { width: 20px; height: 20px; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.12); color: rgba(255, 255, 255, 0.5); font-size: 14px; }

/* ---------- Внутренние страницы ---------- */
.page-head { padding: clamp(32px, 5vw, 64px) 0 24px; }
.page-head--compact { padding-bottom: 8px; }
.page-head__back { display: inline-block; margin-bottom: 18px; font-weight: 700; color: var(--muted); transition: color 0.2s; }
.page-head__back:hover { color: var(--orange); }
.page-head__desc { max-width: 640px; color: var(--muted); margin-top: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chip { display: inline-flex; align-items: baseline; gap: 4px; padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 700; font-size: 14px; transition: border-color 0.2s, background 0.2s, color 0.2s; }
.chip sup { font-size: 11px; color: var(--muted); font-weight: 600; }
.chip:hover { border-color: var(--text); }
.chip.is-active { background: var(--black); border-color: var(--black); color: #fff; }
.chip.is-active sup { color: var(--orange); }

.crumbs { display: none; }
.woocommerce-pagination { margin-top: 40px; }
.woocommerce-pagination ul { display: flex; justify-content: center; gap: 6px; }
.woocommerce-pagination a, .woocommerce-pagination span { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 700; }
.woocommerce-pagination .current { background: var(--black); color: #fff; border-color: var(--black); }

.empty { text-align: center; max-width: 560px; margin: 40px auto; }
.empty p { color: var(--muted); }
.empty .h1, .empty .h3 { color: var(--text); margin-bottom: 12px; }
.empty__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

.prose { max-width: 760px; }
.prose h2 { font-size: clamp(22px, 2.4vw, 30px); margin: 1.6em 0 0.6em; }
.prose h3 { font-size: 20px; margin: 1.4em 0 0.5em; }
.prose ul, .prose ol { padding-left: 1.3em; margin-bottom: 1em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose a { color: var(--orange-deep); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Страница товара ---------- */
.single { padding: clamp(24px, 4vw, 48px) 0 clamp(64px, 8vw, 100px); }
.single__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 72px); margin-top: 18px; }
.single__gallery .woocommerce-product-gallery { position: relative; }
.single__gallery .woocommerce-product-gallery__wrapper { margin: 0; }
.single__gallery .woocommerce-product-gallery__image { border-radius: var(--radius); overflow: hidden; background: var(--sand); }
.single__gallery .woocommerce-product-gallery__image img { width: 100%; }
.single__gallery .flex-control-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.single__gallery .flex-control-thumbs li { width: 84px; border-radius: var(--radius-sm); overflow: hidden; border: 2px solid transparent; cursor: pointer; transition: border-color 0.2s; }
.single__gallery .flex-control-thumbs li img.flex-active { border-color: var(--orange); }
.single__gallery .woocommerce-product-gallery__trigger { position: absolute; top: 14px; right: 14px; z-index: 5; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, 0.9); display: grid; place-items: center; font-size: 0; }
.single__gallery .woocommerce-product-gallery__trigger::before { content: "⤢"; font-size: 18px; color: var(--text); }
.single__summary .card__cat { display: inline-block; margin-bottom: 14px; }
.single__title { margin-bottom: 18px; }
.single__price { font-size: clamp(26px, 3vw, 36px); margin-bottom: 10px; }
.single__short { color: var(--muted); margin: 18px 0 24px; }
.single__summary form.cart { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 24px; }
.single__summary .quantity { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; }
.single__summary .quantity input { width: 72px; height: 54px; border: 0; text-align: center; font: inherit; font-weight: 700; font-size: 16px; background: transparent; -moz-appearance: textfield; }
.single__summary .quantity input::-webkit-outer-spin-button, .single__summary .quantity input::-webkit-inner-spin-button { -webkit-appearance: none; }
.single__summary .qty-btn { width: 44px; height: 54px; display: grid; place-items: center; }
.single__summary .single_add_to_cart_button { display: inline-flex; align-items: center; gap: 10px; padding: 18px 30px; border-radius: 999px; background: var(--orange); color: #fff; border: 0; font-weight: 700; font-size: 16px; box-shadow: var(--shadow-orange); transition: background 0.2s, transform 0.35s var(--ease); }
.single__summary .single_add_to_cart_button:hover { background: var(--orange-hot); transform: translateY(-2px); }
.single__summary .variations { width: 100%; margin-bottom: 8px; border-collapse: collapse; }
.single__summary .variations th { text-align: left; padding: 8px 12px 8px 0; font-weight: 700; font-size: 14px; }
.single__summary .variations select { width: 100%; padding: 12px 16px; border-radius: var(--radius-sm); border: 1.5px solid var(--line); font: inherit; }
.single__summary .reset_variations { font-size: 13px; color: var(--muted); }
.single__summary .woocommerce-variation-price { margin-bottom: 8px; }
.single__notes { display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: var(--radius-sm); background: var(--sand); font-size: 15px; }
.single__notes li { display: flex; align-items: center; gap: 10px; }
.single__notes .icon { color: var(--orange); }
.single__sku { margin-top: 16px; font-size: 13px; color: var(--muted); }
.single-details { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; margin-top: clamp(40px, 6vw, 80px); padding-top: 40px; border-top: 1px solid var(--line); }
.single-details .h3 { margin-bottom: 16px; }
.single-details__text p { color: #3a3a3d; }
.woocommerce-product-attributes { width: 100%; border-collapse: collapse; }
.woocommerce-product-attributes th, .woocommerce-product-attributes td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.woocommerce-product-attributes th { color: var(--muted); font-weight: 600; width: 45%; }
.woocommerce-product-attributes p { margin: 0; }
.related.products { margin-top: clamp(40px, 6vw, 80px); }
.related.products > h2 { font-size: clamp(22px, 2.6vw, 32px); margin-bottom: 24px; }
.related.products ul.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

/* ---------- Быстрый просмотр ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; visibility: hidden; opacity: 0; transition: opacity 0.3s, visibility 0.3s; }
.modal.is-open { visibility: visible; opacity: 1; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(12, 12, 13, 0.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal__panel { position: relative; width: min(1040px, 100%); max-height: calc(100vh - 40px); overflow: auto; border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); transform: translateY(24px) scale(0.98); transition: transform 0.45s var(--ease); }
.modal.is-open .modal__panel { transform: none; }
.modal__close { position: absolute; top: 12px; right: 12px; z-index: 3; background: var(--paper); }
.modal__content { min-height: 320px; }
.modal__content.is-loading { display: grid; place-items: center; }
.spinner { width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--orange); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.qv { display: grid; grid-template-columns: 1fr 1fr; }
.qv__gallery { background: var(--sand); padding: 20px; }
.qv__main { position: relative; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; }
.qv__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.3s; }
.qv__img.is-active { opacity: 1; }
.qv__thumbs { display: flex; gap: 8px; margin-top: 12px; }
.qv__thumb { width: 64px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; }
.qv__thumb.is-active { border-color: var(--orange); }
.qv__info { padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 12px; }
.qv__title { font-size: clamp(22px, 2.4vw, 30px); }
.qv__price { font-size: 28px; }
.qv__desc { color: var(--muted); font-size: 15px; }
.qv__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

/* ---------- Выдвижная корзина ---------- */
.drawer { position: fixed; inset: 0; z-index: 210; visibility: hidden; transition: visibility 0.4s; }
.drawer.is-open { visibility: visible; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(12, 12, 13, 0.5); opacity: 0; transition: opacity 0.4s; }
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--paper); display: flex; flex-direction: column; transform: translateX(100%); transition: transform 0.5s var(--ease); box-shadow: var(--shadow); }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 20px 20px 16px 24px; border-bottom: 1px solid var(--line); }
.drawer__body { flex: 1; overflow: auto; padding: 20px 24px; display: flex; flex-direction: column; }
.drawer__empty { margin: auto; text-align: center; color: var(--muted); }
.drawer__empty .h3 { color: var(--text); margin-bottom: 8px; }
.drawer__empty .btn { margin-top: 16px; }
.drawer__items { display: flex; flex-direction: column; gap: 16px; }
.drawer__item { display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: center; }
.drawer__thumb { border-radius: var(--radius-sm); overflow: hidden; background: var(--sand); aspect-ratio: 1; }
.drawer__thumb img { width: 100%; height: 100%; object-fit: cover; }
.drawer__name { font-weight: 700; font-size: 15px; line-height: 1.3; display: block; margin-bottom: 4px; }
.drawer__meta { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); }
.drawer__remove { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.drawer__remove:hover { color: var(--orange-deep); }
.drawer__total { display: flex; justify-content: space-between; align-items: baseline; margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); font-size: 15px; }
.drawer__total strong { font-family: var(--font-display); font-size: 22px; }
.drawer__actions { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }

/* ---------- Корзина и оформление (классические шорткоды) ---------- */
.wc-page { max-width: 1040px; }
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error { list-style: none; padding: 16px 20px; border-radius: var(--radius-sm); background: var(--sand); margin-bottom: 20px; font-size: 15px; }
.woocommerce-error { background: #fdecec; color: #9b1c1c; }
.woocommerce-message a.button, .woocommerce-info a.button { margin-left: 12px; font-weight: 700; text-decoration: underline; }
.cart-empty { font-size: 18px; }
.return-to-shop .button { display: inline-flex; padding: 14px 24px; border-radius: 999px; background: var(--orange); color: #fff; font-weight: 700; }

.woocommerce-cart-form table.shop_table { width: 100%; border-collapse: collapse; }
.woocommerce-cart-form th { text-align: left; font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 0 12px 12px 0; border-bottom: 1px solid var(--line); }
.woocommerce-cart-form th.product-thumbnail, .woocommerce-cart-form th.product-remove { width: 0; padding: 0; font-size: 0; }
.woocommerce-cart-form td { padding: 18px 12px 18px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.woocommerce-cart-form td.product-thumbnail { width: 88px; }
.woocommerce-cart-form td.product-thumbnail img { width: 76px; border-radius: var(--radius-sm); background: var(--sand); }
.woocommerce-cart-form td.product-name a { font-weight: 700; }
.woocommerce-cart-form td.product-price, .woocommerce-cart-form td.product-subtotal { font-weight: 700; white-space: nowrap; }
.woocommerce-cart-form td.product-remove a { font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.woocommerce-cart-form .quantity { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; }
.woocommerce-cart-form .quantity input { width: 60px; height: 44px; border: 0; text-align: center; font: inherit; font-weight: 700; background: transparent; -moz-appearance: textfield; }
.woocommerce-cart-form .quantity input::-webkit-inner-spin-button { -webkit-appearance: none; }
.woocommerce-cart-form .qty-btn { width: 38px; height: 44px; display: grid; place-items: center; }
.woocommerce-cart-form td.actions { padding-top: 20px; border: 0; text-align: right; }
.woocommerce-cart-form td.actions .coupon { display: none; }
.woocommerce-cart-form td.actions .button { display: inline-flex; padding: 12px 20px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); font: inherit; font-weight: 700; cursor: pointer; }
.woocommerce-cart-form td.actions .button:disabled { opacity: 0.4; cursor: default; }
.cart-collaterals { margin-top: 32px; display: flex; justify-content: flex-end; }
.cart_totals { width: min(420px, 100%); padding: 28px; border-radius: var(--radius); background: var(--sand); }
.cart_totals h2 { font-size: 20px; margin-bottom: 16px; }
.cart_totals table { width: 100%; border-collapse: collapse; }
.cart_totals th, .cart_totals td { padding: 10px 0; text-align: left; border-bottom: 1px solid var(--line); }
.cart_totals td { text-align: right; font-weight: 700; }
.cart_totals .order-total td { font-family: var(--font-display); font-size: 22px; }
.wc-proceed-to-checkout { margin-top: 20px; }
.wc-proceed-to-checkout .button { display: flex; justify-content: center; padding: 18px; border-radius: 999px; background: var(--orange); color: #fff; font-weight: 700; font-size: 16px; box-shadow: var(--shadow-orange); }
.cross-sells { display: none; }

/* Оформление */
.woocommerce-checkout .woocommerce { display: block; }
form.checkout { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
form.checkout #customer_details { display: contents; }
form.checkout .col-1 { grid-column: 1; }
form.checkout .col-2 { grid-column: 1; }
form.checkout #order_review_heading, form.checkout #order_review { grid-column: 2; }
form.checkout #order_review_heading { grid-row: 1; font-size: 20px; margin-bottom: 16px; }
form.checkout #order_review { grid-row: 1 / span 3; margin-top: 44px; padding: 28px; border-radius: var(--radius); background: var(--sand); position: sticky; top: calc(var(--header-h) + 20px); }
.woocommerce-billing-fields > h3, .woocommerce-additional-fields > h3 { font-size: 20px; margin: 0 0 16px; }
.woocommerce-additional-fields { margin-top: 24px; }
.form-row { margin: 0 0 16px; }
.form-row label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.form-row label .required { color: var(--orange); text-decoration: none; }
.form-row label .optional { font-weight: 500; color: var(--muted); font-size: 12px; }
.form-row .input-text, .form-row textarea, .form-row select { width: 100%; padding: 14px 16px; border-radius: var(--radius-sm); border: 1.5px solid var(--line); font: inherit; background: var(--paper); transition: border-color 0.2s, box-shadow 0.2s; }
.form-row .input-text:focus, .form-row textarea:focus { outline: 0; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255, 92, 0, 0.15); }
.form-row textarea { min-height: 110px; resize: vertical; }
.form-row.woocommerce-invalid .input-text { border-color: #d33; }
.woocommerce-billing-fields__field-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-row-wide { grid-column: 1 / -1; }
.field-hidden { display: none; }
.field-receive { margin: 8px 0 20px; padding: 0; border: 0; min-width: 0; }
.field-receive__label { font-size: 14px; font-weight: 700; margin-bottom: 8px; padding: 0; }
.receive { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.receive__opt { position: relative; display: block; cursor: pointer; }
.receive__opt input { position: absolute; opacity: 0; }
.receive__box { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: var(--radius-sm); border: 1.5px solid var(--line); transition: border-color 0.2s, background 0.2s; }
.receive__box small { color: var(--muted); font-size: 13px; }
.receive__opt input:checked + .receive__box { border-color: var(--orange); background: rgba(255, 92, 0, 0.06); }
.receive__opt input:focus-visible + .receive__box { box-shadow: 0 0 0 4px rgba(255, 92, 0, 0.15); }
.field-delivery { transition: opacity 0.3s; }
body.receive-pickup .field-delivery { display: none; }

#order_review .shop_table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
#order_review .shop_table thead { display: none; }
#order_review .shop_table td, #order_review .shop_table th { padding: 10px 0; border-bottom: 1px solid var(--line); text-align: left; font-size: 15px; }
#order_review .shop_table .product-total, #order_review .shop_table tfoot td { text-align: right; font-weight: 700; }
#order_review .shop_table .product-quantity { color: var(--muted); font-weight: 500; }
#order_review .shop_table .order-total td { font-family: var(--font-display); font-size: 22px; }
#order_review .shop_table .order-total th { font-weight: 800; }
#payment { margin-top: 8px; }
#payment .wc_payment_methods { margin-bottom: 16px; }
#payment .wc_payment_method { padding: 12px 0; border-bottom: 1px solid var(--line); }
#payment .wc_payment_method label { font-weight: 700; display: inline; margin-left: 6px; }
#payment .wc_payment_method .payment_box { margin-top: 8px; font-size: 14px; color: var(--muted); }
#payment .wc_payment_method .payment_box p { margin: 0; }
.woocommerce-terms-and-conditions-wrapper { margin: 16px 0; }
.woocommerce-terms-and-conditions-wrapper .form-row { margin: 0; }
.woocommerce-terms-and-conditions-wrapper label { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; font-weight: 500; cursor: pointer; }
.woocommerce-terms-and-conditions-wrapper input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--orange); flex: none; }
.woocommerce-terms-and-conditions-wrapper a { text-decoration: underline; text-underline-offset: 3px; }
.woocommerce-terms-and-conditions-wrapper .required { display: none; }
.woocommerce-privacy-policy-text { display: none; }
#place_order { width: 100%; padding: 18px; border-radius: 999px; border: 0; background: var(--orange); color: #fff; font: inherit; font-weight: 700; font-size: 16px; box-shadow: var(--shadow-orange); cursor: pointer; transition: background 0.2s, transform 0.35s var(--ease); }
#place_order:hover { background: var(--orange-hot); transform: translateY(-2px); }
.blockUI.blockOverlay { border-radius: var(--radius); }

/* Страница «Спасибо» */
.woocommerce-order { max-width: 720px; }
.woocommerce-thankyou-order-received { font-size: 20px; font-weight: 700; margin-bottom: 20px; }
.woocommerce-order-overview { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 28px; }
.woocommerce-order-overview li { padding: 14px 16px; border-radius: var(--radius-sm); background: var(--sand); font-size: 13px; color: var(--muted); }
.woocommerce-order-overview strong { display: block; color: var(--text); font-size: 16px; margin-top: 4px; }
.woocommerce-order-details__title, .woocommerce-column__title { font-size: 20px; margin: 24px 0 12px; }
.woocommerce-table--order-details { width: 100%; border-collapse: collapse; }
.woocommerce-table--order-details th, .woocommerce-table--order-details td { padding: 10px 0; border-bottom: 1px solid var(--line); text-align: left; }
.woocommerce-table--order-details tfoot th { font-weight: 600; color: var(--muted); }
.woocommerce-table--order-details tfoot tr:last-child td { font-weight: 800; }
.woocommerce-customer-details address { font-style: normal; line-height: 1.6; }

/* ---------- Появление при прокрутке ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.products-grid .reveal:nth-child(2), .categories__grid .reveal:nth-child(2), .terms__grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.products-grid .reveal:nth-child(3), .categories__grid .reveal:nth-child(3), .terms__grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.products-grid .reveal:nth-child(4) { transition-delay: 0.24s; }
.products-grid .reveal:nth-child(5) { transition-delay: 0.32s; }
.products-grid .reveal:nth-child(6) { transition-delay: 0.4s; }
@media (prefers-reduced-motion: reduce) {
	.reveal { opacity: 1; transform: none; transition: none; }
	.hero::after, .ticker__track, .hero__img { animation: none; }
}

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
	.categories__grid { grid-auto-rows: 260px; }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
	:root { --header-h: 64px; }
	.hero__inner { grid-template-columns: 1fr; min-height: 0; padding-top: 12px; }
	.hero__visual { aspect-ratio: 16 / 10; order: -1; }
	.hero__title { font-size: clamp(34px, 9vw, 56px); }
	.stats { grid-template-columns: 1fr; gap: 16px; padding-bottom: 40px; }
	.stats__item + .stats__item { padding-left: 0; border-left: 0; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.14); }
	.stats__item { padding-right: 0; }
	.categories__grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 240px; }
	.catcard--wide { grid-column: 1 / -1; grid-row: auto; }
	.products-grid, .related.products ul.products { grid-template-columns: 1fr 1fr; gap: 14px; }
	.about__grid { grid-template-columns: 1fr; }
	.about__media { position: static; }
	.about__media img { aspect-ratio: 4 / 3; }
	.terms__grid { grid-template-columns: 1fr; }
	.single__grid, .single-details { grid-template-columns: 1fr; }
	.qv { grid-template-columns: 1fr; }
	form.checkout { grid-template-columns: 1fr; }
	form.checkout #order_review_heading, form.checkout #order_review { grid-column: 1; grid-row: auto; position: static; margin-top: 0; }
	form.checkout .col-2 { grid-row: auto; }
	.cta { transform: translateY(-40px); }

	.site-nav {
		position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; z-index: 99;
		background: var(--paper); color: var(--text); padding: 24px var(--gutter) 40px; overflow: auto;
		transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity 0.3s, transform 0.4s var(--ease), visibility 0.3s;
	}
	body.nav-open .site-nav { transform: none; opacity: 1; visibility: visible; }
	body.nav-open { overflow: hidden; }
	.site-nav__list { flex-direction: column; gap: 2px; }
	.site-nav__list a { display: block; font-family: var(--font-display); font-size: 24px; font-weight: 600; padding: 12px 0; border-radius: 0; border-bottom: 1px solid var(--line); }
	.site-nav__list a:hover { background: none; color: var(--orange); }
	.site-nav__contacts { display: block; margin-top: 28px; }
	.site-nav__phone { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 20px; margin-bottom: 18px; }
	.site-nav__social { display: flex; flex-wrap: wrap; gap: 8px; }
	.site-header__phone { display: none; }
	.burger { display: grid; }
}
@media (max-width: 560px) {
	body { font-size: 16px; }
	.products-grid, .related.products ul.products { grid-template-columns: 1fr; }
	.categories__grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
	.section__head { flex-direction: column; align-items: flex-start; gap: 10px; }
	.card__quick { opacity: 1; transform: none; left: auto; right: 10px; bottom: 10px; padding: 10px; }
	.card__quick span { display: none; }
	.hero__actions .btn { width: 100%; }
	.cta__actions { width: 100%; }
	.cta__actions .btn { flex: 1 1 45%; }
	.receive { grid-template-columns: 1fr; }
	.woocommerce-billing-fields__field-wrapper { grid-template-columns: 1fr; }
	.woocommerce-cart-form thead { display: none; }
	.woocommerce-cart-form tr { display: grid; grid-template-columns: 76px 1fr; gap: 4px 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
	.woocommerce-cart-form td { padding: 0; border: 0; }
	.woocommerce-cart-form td.product-thumbnail { grid-row: 1 / span 4; }
	.woocommerce-cart-form td.product-price { display: none; }
	.woocommerce-cart-form td.actions { grid-column: 1 / -1; }
	.woocommerce-cart-form tr.woocommerce-cart-form__cart-item td.product-subtotal::before { content: "Сумма: "; color: var(--muted); font-weight: 500; }
	.single__gallery .flex-control-thumbs li { width: 64px; }
}
