/* ==========================================================================
   Детская площадка — тема "pd" для OpenCart 1.5.x
   Подключается ПОСЛЕ stylesheet.css и перекрывает старое оформление
   шапки, подвала, корзины и общих элементов.
   ========================================================================== */

:root {
	--pd-green: #4f9a2a;
	--pd-green-d: #3c7d1d;
	--pd-green-50: #eef6e7;
	--pd-green-100: #dcecd0;
	--pd-sun: #ffc93c;
	--pd-sun-d: #f2b200;
	--pd-orange: #f07c1b;
	--pd-ink: #1e2a1b;
	--pd-text: #36402f;
	--pd-muted: #6f7869;
	--pd-line: #e5e9e0;
	--pd-bg: #f6f7f2;
	--pd-white: #fff;
	--pd-radius: 14px;
	--pd-radius-s: 10px;
	--pd-shadow: 0 1px 2px rgba(30, 42, 27, .06), 0 6px 20px rgba(30, 42, 27, .07);
	--pd-shadow-l: 0 18px 50px rgba(30, 42, 27, .18);
	--pd-font: "Nunito", "Segoe UI", Roboto, Arial, sans-serif;
	--pd-header-h: 84px;
}

/* ---------- База ---------- */
body.pd {
	font-family: var(--pd-font);
	font-size: 15px;
	line-height: 1.55;
	color: var(--pd-text);
	background: var(--pd-white);
	-webkit-font-smoothing: antialiased;
}
body.pd h1, body.pd h2, body.pd h3, body.pd h4, body.pd h5 {
	font-family: var(--pd-font);
	color: var(--pd-ink);
	font-weight: 800;
	letter-spacing: -.01em;
}
body.pd a { color: var(--pd-green-d); }
body.pd a:hover, body.pd a:focus { color: var(--pd-green); }
body.pd *:focus-visible { outline: 2px solid var(--pd-sun-d); outline-offset: 2px; }
body.pd.pd-lock { overflow: hidden; }
.pd [hidden] { display: none !important; }

.pd-ico {
	width: 24px; height: 24px; flex: 0 0 auto;
	fill: none; stroke: currentColor; stroke-width: 1.8;
	stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Кнопки ---------- */
.pd-btn,
body.pd .button,
body.pd .btn-primary {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 10px 22px;
	font: 700 15px/1.2 var(--pd-font);
	color: #fff !important; text-decoration: none !important;
	background: var(--pd-green); border: 0; border-radius: 999px;
	box-shadow: 0 3px 0 var(--pd-green-d);
	cursor: pointer; transition: background .15s, transform .15s, box-shadow .15s;
}
.pd-btn:hover, body.pd .button:hover, body.pd .btn-primary:hover {
	background: var(--pd-green-d); color: #fff;
}
.pd-btn:active, body.pd .button:active, body.pd .btn-primary:active {
	transform: translateY(2px); box-shadow: 0 1px 0 var(--pd-green-d);
}
.pd-btn--accent { background: var(--pd-orange); box-shadow: 0 3px 0 #c95f0b; }
.pd-btn--accent:hover { background: #d96a0f; }
.pd-btn--ghost {
	color: var(--pd-ink) !important; background: #fff;
	box-shadow: inset 0 0 0 1.5px var(--pd-line);
}
.pd-btn--ghost:hover { background: var(--pd-green-50); color: var(--pd-ink) !important; }
.pd-btn--light { background: #fff; color: var(--pd-green-d) !important; box-shadow: 0 3px 0 rgba(0,0,0,.15); }
.pd-btn--light:hover { background: var(--pd-sun); color: var(--pd-ink) !important; }
.pd-btn--wa { background: #25d366; box-shadow: 0 3px 0 #1a9e4b; }
.pd-btn--wa:hover { background: #1fb457; }
.pd-btn--block { width: 100%; }

.pd-badge {
	position: absolute; top: -6px; right: calc(50% - 22px);
	min-width: 20px; height: 20px; padding: 0 6px;
	display: inline-flex; align-items: center; justify-content: center;
	font: 800 11px/1 var(--pd-font); color: var(--pd-ink);
	background: var(--pd-sun); border: 2px solid #fff; border-radius: 999px;
}

/* ==========================================================================
   Верхняя строка
   ========================================================================== */
.pd-topbar {
	background: var(--pd-bg);
	border-bottom: 1px solid var(--pd-line);
	font-size: 13.5px;
}
.pd-topbar__in {
	display: flex; align-items: center; gap: 24px;
	min-height: 40px;
}
.pd-topbar__in::before, .pd-topbar__in::after { display: none; }
.pd-city {
	display: flex; align-items: center; gap: 6px; color: var(--pd-muted);
	white-space: nowrap;
}
.pd-city .pd-ico { width: 16px; height: 16px; color: var(--pd-green); }
.pd-city a { color: var(--pd-text); text-decoration: underline dotted; text-underline-offset: 3px; }
.pd-toplinks { display: flex; gap: 20px; flex-wrap: wrap; }
.pd-toplinks a { color: var(--pd-text) !important; text-decoration: none; font-weight: 600; }
.pd-toplinks a:hover { color: var(--pd-green) !important; }
.pd-topbar__contacts { margin-left: auto; display: flex; align-items: center; gap: 18px; }

.pd-phone { position: relative; }
.pd-phone__num {
	font-weight: 800; font-size: 15px; color: var(--pd-ink) !important; text-decoration: none !important;
	display: inline-flex; align-items: center; gap: 6px; padding: 8px 0;
}
.pd-phone__num::after {
	content: ""; width: 7px; height: 7px; margin-top: -3px;
	border-right: 2px solid var(--pd-muted); border-bottom: 2px solid var(--pd-muted);
	transform: rotate(45deg);
}
.pd-phone__pop {
	position: absolute; right: -12px; top: 100%; z-index: 1100;
	width: 290px; padding: 18px; background: #fff;
	border-radius: var(--pd-radius); box-shadow: var(--pd-shadow-l);
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity .18s, transform .18s, visibility .18s;
}
.pd-phone:hover .pd-phone__pop, .pd-phone:focus-within .pd-phone__pop {
	opacity: 1; visibility: visible; transform: none;
}
.pd-phone__pop p { margin: 0 0 12px; font-size: 14px; color: var(--pd-text); }
.pd-phone__pop b { display: block; font-size: 12px; color: var(--pd-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.pd-phone__pop .pd-btn { width: 100%; min-height: 40px; font-size: 14px; }

.pd-callback {
	padding: 6px 14px; font: 700 13px var(--pd-font);
	color: var(--pd-green-d); background: #fff;
	border: 1.5px solid var(--pd-green-100); border-radius: 999px; cursor: pointer;
	transition: background .15s, border-color .15s;
}
.pd-callback:hover { background: var(--pd-green-50); border-color: var(--pd-green); }

/* ==========================================================================
   Шапка
   ========================================================================== */
.pd-header {
	position: sticky; top: 0; z-index: 1000;
	background: rgba(255, 255, 255, .97);
	backdrop-filter: saturate(1.4) blur(8px);
	-webkit-backdrop-filter: saturate(1.4) blur(8px);
	transition: box-shadow .2s;
}
.pd-header.is-stuck { box-shadow: 0 6px 24px rgba(30, 42, 27, .1); }
.pd-header__in {
	display: grid;
	grid-template-columns: auto auto minmax(0, 1fr) auto;
	grid-template-areas: "logo cat search actions";
	align-items: center; gap: 24px;
	min-height: var(--pd-header-h);
}
.pd-header__in::before, .pd-header__in::after { display: none; }

.pd-logo { grid-area: logo; display: block; }
.pd-logo img { display: block; height: 52px; width: auto; max-width: 240px; object-fit: contain; transition: height .2s; }
.pd-header.is-stuck .pd-logo img { height: 44px; }

.pd-burger { grid-area: burger; display: none; }

/* Кнопка «Каталог» */
.pd-catbtn {
	grid-area: cat;
	display: inline-flex; align-items: center; gap: 12px;
	height: 48px; padding: 0 22px 0 18px;
	font: 800 16px var(--pd-font); color: #fff;
	background: var(--pd-green); border: 0; border-radius: 999px;
	box-shadow: 0 3px 0 var(--pd-green-d);
	cursor: pointer; transition: background .15s;
}
.pd-catbtn:hover, .pd-catbtn[aria-expanded="true"] { background: var(--pd-green-d); }
.pd-catbtn__ico { position: relative; width: 18px; height: 14px; }
.pd-catbtn__ico span {
	position: absolute; left: 0; width: 100%; height: 2px; background: #fff; border-radius: 2px;
	transition: transform .2s, opacity .2s, top .2s;
}
.pd-catbtn__ico span:nth-child(1) { top: 0; }
.pd-catbtn__ico span:nth-child(2) { top: 6px; }
.pd-catbtn__ico span:nth-child(3) { top: 12px; }
.pd-catbtn[aria-expanded="true"] .pd-catbtn__ico span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.pd-catbtn[aria-expanded="true"] .pd-catbtn__ico span:nth-child(2) { opacity: 0; }
.pd-catbtn[aria-expanded="true"] .pd-catbtn__ico span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* Поиск */
.pd-header #search.pd-search {
	grid-area: search;
	position: relative; display: flex; width: 100%; max-width: 640px;
	margin: 0; padding: 0; background: none; border: 0;
}
.pd-header #search.pd-search input.form-control {
	width: 100%; height: 48px; padding: 0 60px 0 22px;
	font: 600 15px var(--pd-font); color: var(--pd-ink);
	background: var(--pd-bg); border: 2px solid transparent; border-radius: 999px;
	box-shadow: none; transition: border-color .15s, background .15s;
}
.pd-header #search.pd-search input.form-control::placeholder { color: #9aa294; font-weight: 600; }
.pd-header #search.pd-search input.form-control:focus { background: #fff; border-color: var(--pd-green); outline: 0; }
.pd-header #search.pd-search #search-button {
	position: absolute; right: 4px; top: 4px;
	width: 40px; height: 40px; padding: 0;
	display: flex; align-items: center; justify-content: center;
	color: #fff; background: var(--pd-green); border: 0; border-radius: 50%;
	box-shadow: none;
}
.pd-header #search.pd-search #search-button:hover { background: var(--pd-green-d); }
.pd-header #search.pd-search #search-button .pd-ico { width: 20px; height: 20px; stroke-width: 2.4; }

/* Иконки справа */
.pd-actions {
	grid-area: actions;
	display: flex; align-items: center; gap: 4px;
	margin: 0; padding: 0; list-style: none;
}
.pd-actions__item { position: relative; }
.pd-actions__item > a,
.pd-actions .pd-cart__btn {
	position: relative;
	display: flex; flex-direction: column; align-items: center; gap: 3px;
	min-width: 76px; padding: 8px 6px;
	color: var(--pd-ink) !important; text-decoration: none !important;
	background: none; border: 0; border-radius: var(--pd-radius-s);
	font: 600 12px/1.2 var(--pd-font);
	cursor: pointer; transition: background .15s, color .15s;
}
.pd-actions__item > a:hover,
.pd-actions .pd-cart__btn:hover { background: var(--pd-green-50); color: var(--pd-green-d) !important; }
.pd-actions__label { max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-actions .pd-ico { width: 26px; height: 26px; }
.pd-actions .pd-badge { top: 2px; right: calc(50% - 24px); }

/* старое оформление #cart из stylesheet.css нам не нужно */
.pd-header #cart { margin: 0; width: auto; }
.pd-header #cart > .btn, .pd-header #cart .dropdown-menu { display: none; }

/* Категории первого уровня */
.pd-catnav { border-top: 1px solid var(--pd-line); border-bottom: 1px solid var(--pd-line); background: #fff; }
.pd-catnav ul {
	display: flex; gap: 6px; margin: 0; padding: 6px 0; list-style: none;
	overflow-x: auto; scrollbar-width: none;
}
.pd-catnav ul::-webkit-scrollbar { display: none; }
.pd-catnav a {
	display: block; padding: 8px 14px; white-space: nowrap;
	font-weight: 700; font-size: 14.5px; color: var(--pd-text) !important;
	text-decoration: none !important; border-radius: 999px;
	transition: background .15s, color .15s;
}
.pd-catnav a:hover { background: var(--pd-green-50); color: var(--pd-green-d) !important; }
.pd-header.is-stuck .pd-catnav { display: none; }

/* ---------- Мега-меню ---------- */
.pd-mega {
	position: absolute; left: 0; right: 0; top: 100%;
	z-index: 1001; animation: pd-drop .18s ease-out;
}
@keyframes pd-drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.pd-mega__in {
	display: grid; grid-template-columns: 290px 1fr;
	max-height: calc(100vh - 160px);
	padding: 0; background: #fff;
	border-radius: 0 0 var(--pd-radius) var(--pd-radius);
	box-shadow: var(--pd-shadow-l); overflow: hidden;
}
.pd-mega__in::before, .pd-mega__in::after { display: none; }
.pd-mega__cats { margin: 0; padding: 12px; list-style: none; background: var(--pd-bg); overflow-y: auto; }
.pd-mega__cat a {
	display: flex; align-items: center; gap: 12px;
	padding: 9px 12px; border-radius: var(--pd-radius-s);
	font-weight: 700; color: var(--pd-text) !important; text-decoration: none !important;
}
.pd-mega__cat img { width: 34px; height: 34px; object-fit: contain; mix-blend-mode: multiply; }
.pd-mega__cat span { flex: 1; }
.pd-mega__cat .fa { color: var(--pd-muted); }
.pd-mega__cat.is-active a { background: #fff; color: var(--pd-green-d) !important; box-shadow: var(--pd-shadow); }
.pd-mega__panels { padding: 24px 28px; overflow-y: auto; }
.pd-mega__panel { display: none; }
.pd-mega__panel.is-active { display: block; }
.pd-mega__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.pd-mega__head > a:first-child { font-size: 22px; font-weight: 800; color: var(--pd-ink) !important; text-decoration: none; }
.pd-mega__all { font-weight: 700; font-size: 14px; }
.pd-mega__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 18px 24px; }
.pd-mega__title { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--pd-ink) !important; text-decoration: none !important; }
.pd-mega__title img { width: 48px; height: 48px; object-fit: contain; border-radius: 8px; background: var(--pd-bg); }
.pd-mega__title:hover { color: var(--pd-green-d) !important; }
.pd-mega__item ul { margin: 8px 0 0 58px; padding: 0; list-style: none; }
.pd-mega__item li a { display: block; padding: 2px 0; font-size: 14px; color: var(--pd-muted) !important; }
.pd-mega__item li a:hover { color: var(--pd-green-d) !important; }
.pd-mega__empty { display: inline-flex; flex-direction: column; gap: 12px; font-weight: 700; }
.pd-mega__empty img { max-width: 260px; max-height: 200px; object-fit: contain; }
.pd-mega-overlay { position: fixed; inset: 0; z-index: 999; background: rgba(20, 30, 18, .35); }

/* ==========================================================================
   Мобильное меню (drawer)
   ========================================================================== */
.pd-drawer {
	position: fixed; top: 0; bottom: 0; left: 0; z-index: 2001;
	width: min(88vw, 360px); display: flex; flex-direction: column;
	background: #fff; box-shadow: var(--pd-shadow-l);
	transform: translateX(-105%); transition: transform .25s ease;
}
.pd-drawer.is-open { transform: none; }
.pd-drawer-overlay { position: fixed; inset: 0; z-index: 2000; background: rgba(20, 30, 18, .45); }
.pd-drawer__head {
	display: flex; align-items: center; justify-content: space-between;
	padding: 12px 16px; border-bottom: 1px solid var(--pd-line);
}
.pd-drawer__head img { height: 40px; width: auto; }
.pd-drawer__close {
	width: 40px; height: 40px; font-size: 28px; line-height: 1;
	color: var(--pd-ink); background: var(--pd-bg); border: 0; border-radius: 50%;
}
.pd-drawer__body { flex: 1; overflow-y: auto; padding: 8px 16px 32px; }
.pd-drawer__caption {
	margin: 18px 0 6px; font-size: 12px; font-weight: 800;
	color: var(--pd-muted); text-transform: uppercase; letter-spacing: .06em;
}
.pd-acc, .pd-drawer__links { margin: 0; padding: 0; list-style: none; }
.pd-acc__item { border-bottom: 1px solid var(--pd-line); }
.pd-acc__row { display: flex; align-items: center; }
.pd-acc__row a, .pd-drawer__links a {
	flex: 1; display: block; padding: 12px 0;
	font-weight: 700; font-size: 16px; color: var(--pd-ink) !important; text-decoration: none !important;
}
.pd-acc__toggle {
	width: 40px; height: 40px; font-size: 20px; color: var(--pd-muted);
	background: none; border: 0; transition: transform .2s;
}
.pd-acc__item.is-open .pd-acc__toggle { transform: rotate(180deg); color: var(--pd-green); }
.pd-acc__sub { display: none; margin: 0 0 10px; padding: 0 0 0 12px; list-style: none; border-left: 2px solid var(--pd-green-100); }
.pd-acc__item.is-open .pd-acc__sub { display: block; }
.pd-acc__sub a { display: block; padding: 7px 0; color: var(--pd-text) !important; font-size: 15px; }
.pd-drawer__links a { font-weight: 600; font-size: 15px; padding: 9px 0; }
.pd-drawer__contacts { margin-top: 22px; padding: 16px; background: var(--pd-green-50); border-radius: var(--pd-radius); }
.pd-drawer__contacts p { margin: 0 0 6px; font-size: 14px; color: var(--pd-muted); }
.pd-drawer__phone { display: block; margin-bottom: 6px; font-size: 20px; font-weight: 800; color: var(--pd-ink) !important; text-decoration: none !important; }
.pd-drawer__contacts .pd-btn { width: 100%; margin-top: 10px; }

/* ==========================================================================
   Контент / главная
   ========================================================================== */
.pd-main { min-height: 40vh; }
.pd-home { padding-top: 24px; padding-bottom: 16px; }
.pd-home__section { margin-bottom: 24px; }

.pd-section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.pd-section-head h2 { margin: 0; font-size: 28px; }

.pd-breadcrumb { margin: 18px 0; padding: 0; background: none; font-size: 14px; }
.pd-breadcrumb > li + li::before { content: "›"; color: var(--pd-muted); padding: 0 8px; }
.pd-breadcrumb span { color: var(--pd-muted); }

/* Мягкое обновление типовых блоков модулей (если используются эти классы) */
body.pd .product-thumb {
	border: 1px solid var(--pd-line); border-radius: var(--pd-radius);
	background: #fff; overflow: hidden; transition: box-shadow .2s, transform .2s, border-color .2s;
}
body.pd .product-thumb:hover { border-color: transparent; box-shadow: var(--pd-shadow-l); transform: translateY(-3px); }
body.pd .price-old { color: #9aa294; }
body.pd .price-new { color: #d93b2b; font-weight: 800; }

/* ---------- Отзывы ---------- */
.pd-reviews { padding: 48px 0 32px; background: var(--pd-bg); }
.pd-reviews__nav { display: flex; gap: 8px; }
.pd-arrow {
	width: 44px; height: 44px; font-size: 22px;
	display: inline-flex; align-items: center; justify-content: center;
	color: var(--pd-ink); background: #fff; border: 1.5px solid var(--pd-line); border-radius: 50%;
	cursor: pointer; transition: background .15s, border-color .15s;
}
.pd-arrow:hover { border-color: var(--pd-green); color: var(--pd-green-d); }
.pd-arrow.swiper-button-disabled { opacity: .4; cursor: default; }
.pd-reviews__list { padding-bottom: 40px; }
.pd-review {
	display: flex; flex-direction: column; gap: 14px;
	height: auto; padding: 24px; background: #fff;
	border-radius: var(--pd-radius); box-shadow: var(--pd-shadow);
}
.pd-review__rating span { font-size: 18px; color: #d9ddd4; letter-spacing: 2px; }
.pd-review__rating span.is-on { color: var(--pd-sun-d); }
.pd-review__text {
	flex: 1; margin: 0; font-size: 15px; color: var(--pd-text);
	display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden;
}
.pd-review__product {
	display: flex; align-items: center; gap: 12px;
	padding-top: 14px; border-top: 1px solid var(--pd-line); text-decoration: none !important;
}
.pd-review__product img { width: 56px; height: 56px; object-fit: contain; border-radius: 10px; background: var(--pd-bg); }
.pd-review__product b { display: block; font-size: 14px; line-height: 1.3; color: var(--pd-ink); }
.pd-review__product small { color: var(--pd-muted); font-size: 13px; }
.pd-reviews .swiper-pagination-bullet { background: var(--pd-muted); }
.pd-reviews .swiper-pagination-bullet-active { background: var(--pd-green); }

/* ---------- Преимущества ---------- */
.pd-benefits { padding: 36px 0; border-top: 1px solid var(--pd-line); }
.pd-benefits__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.pd-benefits__grid::before, .pd-benefits__grid::after { display: none; }
.pd-benefit { display: flex; gap: 14px; align-items: flex-start; }
.pd-benefit .pd-ico {
	width: 48px; height: 48px; padding: 11px; box-sizing: border-box;
	color: var(--pd-green-d); background: var(--pd-green-50); border-radius: 14px;
}
.pd-benefit b { display: block; color: var(--pd-ink); font-size: 15.5px; }
.pd-benefit span { display: block; font-size: 13.5px; color: var(--pd-muted); line-height: 1.4; }

/* ==========================================================================
   Подвал
   ========================================================================== */
.pd-footer { color: #cfe0c4; background: #1f3a1a; }
.pd-footer a { color: #e8f2e1 !important; }
.pd-footer a:hover { color: var(--pd-sun) !important; }
.pd-footer__grid {
	display: grid; grid-template-columns: 1.3fr repeat(3, 1fr) 1.1fr; gap: 32px;
	padding-top: 48px; padding-bottom: 40px;
}
.pd-footer__grid::before, .pd-footer__grid::after { display: none; }
.pd-footer__caption, .pd-footer__title {
	margin: 0 0 14px; font-size: 13px; font-weight: 800; color: #9fbb90;
	text-transform: uppercase; letter-spacing: .06em;
}
.pd-footer__phone { display: block; font-size: 24px; font-weight: 800; color: #fff !important; text-decoration: none !important; margin-bottom: 6px; }
.pd-footer__muted { color: #9fbb90; font-size: 14px; }
.pd-footer__brand p { margin: 0 0 8px; }
.pd-footer__brand .pd-btn { margin-top: 10px; }
.pd-footer ul { margin: 0; padding: 0; list-style: none; }
.pd-footer__col li { margin-bottom: 9px; }
.pd-footer__col a { text-decoration: none; font-size: 14.5px; }
.pd-footer__pay img { max-width: 100%; height: 44px; object-fit: contain; padding: 6px 10px; background: #fff; border-radius: 8px; }
.pd-footer__payicons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px !important; }
.pd-footer__payicons img { height: 28px; }
.pd-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13.5px; color: #9fbb90; }
.pd-footer__bottom-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; }
.pd-footer__bottom-in::before, .pd-footer__bottom-in::after { display: none; }

/* Кнопка «наверх» */
.pd-totop {
	position: fixed; right: 20px; bottom: 96px; z-index: 900;
	width: 46px; height: 46px; font-size: 24px;
	display: flex; align-items: center; justify-content: center;
	color: var(--pd-ink); background: #fff; border: 0; border-radius: 50%;
	box-shadow: var(--pd-shadow-l);
	opacity: 0; visibility: hidden; transform: translateY(10px);
	transition: opacity .2s, transform .2s, visibility .2s;
}
.pd-totop.is-visible { opacity: 1; visibility: visible; transform: none; }
.pd-totop:hover { background: var(--pd-sun); }

/* Cookie */
.pd-cookie {
	position: fixed; left: 16px; bottom: 16px; z-index: 1030;
	max-width: 420px; display: flex; align-items: center; gap: 16px;
	padding: 16px 18px; background: #fff; border-radius: var(--pd-radius); box-shadow: var(--pd-shadow-l);
}
.pd-cookie p { margin: 0; font-size: 13.5px; }
.pd-cookie .pd-btn { min-height: 38px; padding: 8px 18px; font-size: 14px; }

/* ==========================================================================
   Попап корзины
   ========================================================================== */
.pd-cart-modal .modal-dialog { width: auto; max-width: 760px; margin: 60px auto; padding: 0 12px; }
.pd-cart-modal .modal-content { border: 0; border-radius: 20px; box-shadow: var(--pd-shadow-l); overflow: hidden; }
.pd-cart-modal .modal-header { padding: 20px 24px; border-bottom: 1px solid var(--pd-line); }
.pd-cart-modal .modal-title { font-weight: 800; font-size: 22px; }
.pd-cart-modal .close { font-size: 30px; opacity: .5; margin-top: -4px; }
.pd-cart-modal .modal-body { position: relative; padding: 8px 24px; max-height: 60vh; overflow-y: auto; }
.pd-cart-row {
	display: grid; grid-template-columns: 72px 1fr auto 110px 32px; align-items: center; gap: 16px;
	padding: 14px 0; border-bottom: 1px solid var(--pd-line);
}
.pd-cart-row:last-of-type { border-bottom: 0; }
.pd-cart-row--voucher { grid-template-columns: 1fr 110px 32px; }
.pd-cart-row__img img { width: 72px; height: 72px; object-fit: contain; border-radius: 10px; background: var(--pd-bg); }
.pd-cart-row__name { font-weight: 700; color: var(--pd-ink) !important; line-height: 1.3; }
.pd-cart-row__opts { margin: 4px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--pd-muted); }
.pd-cart-row__price { text-align: right; font-weight: 800; color: var(--pd-ink); white-space: nowrap; }
.pd-cart-row__del { color: #a7ae9f !important; text-align: center; font-size: 18px; }
.pd-cart-row__del:hover { color: #d93b2b !important; }
.pd-qty { display: inline-flex; align-items: center; background: var(--pd-bg); border-radius: 999px; padding: 3px; }
.pd-qty button {
	width: 32px; height: 32px; font-size: 18px; font-weight: 700; line-height: 1;
	color: var(--pd-ink); background: #fff; border: 0; border-radius: 50%; box-shadow: 0 1px 2px rgba(0,0,0,.08);
}
.pd-qty button:hover { color: var(--pd-green-d); }
.pd-qty input { width: 40px; height: 32px; text-align: center; font-weight: 800; background: none; border: 0; }
.pd-cart-totals table { width: 100%; margin: 6px 0 12px; }
.pd-cart-totals td { padding: 4px 0; font-size: 15px; }
.pd-cart-totals td:last-child { text-align: right; font-weight: 700; color: var(--pd-ink); }
.pd-cart-totals tr:last-child td { padding-top: 10px; font-size: 18px; font-weight: 800; color: var(--pd-ink); border-top: 1px solid var(--pd-line); }
.pd-cart-empty { padding: 40px 0; text-align: center; color: var(--pd-muted); }
.pd-cart-empty .pd-ico { width: 56px; height: 56px; color: var(--pd-green-100); margin-bottom: 8px; }
.pd-cart-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; padding: 18px 24px; background: var(--pd-bg); border-top: 0; }
.pd-cart-actions::before, .pd-cart-actions::after { display: none; }
.pd-cart-actions .pd-btn + .pd-btn { margin-left: 0; }

/* ==========================================================================
   Прочие страницы
   ========================================================================== */
.pd-success { max-width: 640px; margin: 24px auto 48px; padding: 40px 32px; text-align: center; background: var(--pd-bg); border-radius: 24px; }
.pd-success__icon {
	width: 72px; height: 72px; margin: 0 auto 16px;
	display: flex; align-items: center; justify-content: center;
	color: #fff; background: var(--pd-green); border-radius: 50%;
	box-shadow: 0 0 0 10px var(--pd-green-50);
}
.pd-success__icon .pd-ico { width: 36px; height: 36px; stroke-width: 2.6; }
.pd-success h1 { margin: 10px 0 14px; font-size: 30px; }
.pd-success__note { color: var(--pd-green-d); font-weight: 700; font-size: 17px; }
.pd-success__text { margin-bottom: 24px; }

.pd-message { display: flex; gap: 16px; align-items: center; max-width: 640px; margin: 48px auto; padding: 28px; background: var(--pd-bg); border-radius: var(--pd-radius); }
.pd-message .pd-ico { width: 40px; height: 40px; color: var(--pd-green); }

.pd-callback-form h2:empty { display: none; }
.pd-callback-form__lead { color: var(--pd-muted); margin-bottom: 14px; }
.pd-field { margin-bottom: 12px; }
.pd-field input, .pd-field textarea {
	width: 100%; padding: 12px 16px; font: 600 15px var(--pd-font); color: var(--pd-ink);
	background: var(--pd-bg); border: 2px solid transparent; border-radius: var(--pd-radius-s);
}
.pd-field input:focus, .pd-field textarea:focus { outline: 0; background: #fff; border-color: var(--pd-green); }
.pd-field .error { display: block; color: #d93b2b; font-size: 13px; }

/* ==========================================================================
   Мобильная нижняя панель
   ========================================================================== */
.pd-tabbar { display: none; }

/* ==========================================================================
   Адаптив
   ========================================================================== */
@media (max-width: 1199px) {
	.pd-header__in { gap: 16px; }
	.pd-actions__item > a, .pd-actions .pd-cart__btn { min-width: 64px; }
	.pd-toplinks { gap: 14px; }
	.pd-footer__grid { grid-template-columns: 1.3fr repeat(2, 1fr); }
}

@media (max-width: 991px) {
	:root { --pd-header-h: 64px; }
	body.pd { padding-bottom: 64px; }

	.pd-toplinks, .pd-callback, .pd-catnav, .pd-mega, .pd-catbtn { display: none !important; }
	.pd-topbar__in { min-height: 34px; gap: 12px; }
	.pd-phone__pop { display: none; }
	.pd-phone__num::after { display: none; }

	.pd-header__in {
		grid-template-columns: auto minmax(0, 1fr) auto;
		grid-template-areas: "burger logo actions" "search search search";
		gap: 6px 10px; padding-top: 8px; padding-bottom: 10px;
	}
	.pd-burger {
		display: flex; flex-direction: column; justify-content: center; gap: 5px;
		width: 44px; height: 44px; padding: 0 11px;
		background: var(--pd-bg); border: 0; border-radius: 12px;
	}
	.pd-burger span { display: block; height: 2px; background: var(--pd-ink); border-radius: 2px; }
	.pd-logo { justify-self: start; }
	.pd-logo img, .pd-header.is-stuck .pd-logo img { height: 40px; max-width: 180px; }
	.pd-header #search.pd-search { max-width: none; }
	.pd-header #search.pd-search input.form-control { height: 44px; font-size: 16px; }
	.pd-header #search.pd-search #search-button { width: 36px; height: 36px; }
	.pd-header.is-stuck #search.pd-search { display: none; }
	.pd-header.is-stuck.is-search #search.pd-search { display: flex; }

	.pd-actions__item:not(.pd-actions__item--cart) { display: none; }
	.pd-actions__label { display: none; }
	.pd-actions .pd-cart__btn { min-width: 48px; padding: 8px; }

	.pd-benefits__grid { grid-template-columns: repeat(2, 1fr); }
	.pd-footer__grid { grid-template-columns: 1fr 1fr; }
	.pd-footer__brand { grid-column: 1 / -1; }

	.pd-tabbar {
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 1500;
		display: grid; grid-template-columns: repeat(5, 1fr);
		padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
		background: #fff; box-shadow: 0 -4px 20px rgba(30, 42, 27, .1);
	}
	.pd-tabbar__item {
		position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px;
		padding: 4px 0; font-size: 11px; font-weight: 700;
		color: var(--pd-muted) !important; text-decoration: none !important;
	}
	.pd-tabbar__item .fa { font-size: 21px; }
	.pd-tabbar__item.is-active { color: var(--pd-green-d) !important; }
	.pd-tabbar__count {
		position: absolute; top: 0; left: calc(50% + 6px);
		min-width: 18px; height: 18px; padding: 0 5px;
		font-size: 10.5px; line-height: 18px; text-align: center;
		color: var(--pd-ink); background: var(--pd-sun); border-radius: 999px;
	}
	.pd-totop { bottom: 84px; right: 14px; }
	.pd-cookie { left: 12px; right: 12px; bottom: 76px; max-width: none; }
}

@media (max-width: 767px) {
	.pd-city { font-size: 13px; }
	.pd-section-head h2 { font-size: 22px; }
	.pd-reviews { padding: 32px 0 20px; }
	.pd-reviews__nav { display: none; }
	.pd-benefits__grid { grid-template-columns: 1fr; gap: 16px; }
	.pd-footer__grid { grid-template-columns: 1fr; gap: 24px; padding-top: 32px; }

	.pd-cart-modal .modal-dialog { margin: 0; padding: 0; max-width: none; }
	.pd-cart-modal .modal-content { border-radius: 0; min-height: 100vh; }
	.pd-cart-modal .modal-body { max-height: none; }
	.pd-cart-row { grid-template-columns: 64px 1fr 28px; grid-template-areas: "img info del" "img qty price"; gap: 8px 12px; }
	.pd-cart-row__img { grid-area: img; align-self: start; }
	.pd-cart-row__img img { width: 64px; height: 64px; }
	.pd-cart-row__info { grid-area: info; }
	.pd-cart-row .pd-qty { grid-area: qty; justify-self: start; }
	.pd-cart-row__price { grid-area: price; }
	.pd-cart-row__del { grid-area: del; align-self: start; }
	.pd-cart-row--voucher { grid-template-columns: 1fr auto 28px; grid-template-areas: none; }
	.pd-cart-actions .pd-btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
	.pd *, .pd *::before, .pd *::after { transition: none !important; animation: none !important; }
}

/* ==========================================================================
   v2 — каталог, карточки, товар
   ========================================================================== */

/* ---------- Плитки категорий (module/category_advanced) ---------- */
.pd-cats {
	display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
	margin: 8px 0 32px;
}
.pd-cats__item {
	display: flex; flex-direction: column; align-items: center; gap: 12px;
	padding: 20px 16px 18px; text-align: center;
	background: #fff; border: 1px solid var(--pd-line); border-radius: var(--pd-radius);
	text-decoration: none !important; transition: box-shadow .2s, transform .2s, border-color .2s;
}
.pd-cats__item:hover { border-color: transparent; box-shadow: var(--pd-shadow-l); transform: translateY(-3px); }
.pd-cats__img { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 4 / 3; }
.pd-cats__img img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform .3s; }
.pd-cats__item:hover .pd-cats__img img { transform: scale(1.04); }
.pd-cats__name { font-weight: 800; font-size: 16.5px; line-height: 1.25; color: var(--pd-ink); }

/* ---------- Полка-карусель ---------- */
.pd-shelf { margin-bottom: 36px; }
.pd-shelf__nav { display: flex; gap: 8px; }
.pd-shelf__track:not(.pd-owl-on) {
	display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 4 * 20px) / 5); gap: 20px;
	overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 16px; scrollbar-width: thin;
}
.pd-shelf__track:not(.pd-owl-on) .pd-shelf__item { scroll-snap-align: start; }
.pd-shelf__track.pd-owl-on { margin: 0 -10px; }
.pd-shelf__track.pd-owl-on .owl-wrapper-outer { padding: 4px 0 16px; }
.pd-shelf__track.pd-owl-on .pd-shelf__item { padding: 0 10px; }
.pd-shelf__item { height: 100%; }

/* ---------- Карточка товара ---------- */
.pd-card {
	position: relative; display: flex; flex-direction: column; height: 100%;
	background: #fff; border: 1px solid var(--pd-line); border-radius: var(--pd-radius);
	overflow: hidden; transition: box-shadow .2s, border-color .2s;
}
.pd-card:hover { border-color: transparent; box-shadow: var(--pd-shadow-l); }
.pd-card__media { position: relative; padding: 14px 14px 0; }
.pd-card__img { position: relative; display: block; aspect-ratio: 1 / 1; }
.pd-card__img img {
	position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
	opacity: 0; transition: opacity .15s;
}
.pd-card__img img.is-active { opacity: 1; }
.pd-card__noimg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 48px; color: var(--pd-line); }
.pd-card__dots { display: flex; justify-content: center; gap: 4px; height: 12px; padding-top: 6px; }
.pd-card__dots span { width: 16px; height: 3px; border-radius: 2px; background: var(--pd-line); transition: background .15s; }
.pd-card__dots span.is-active { background: var(--pd-green); }
.pd-card__tags { position: absolute; left: 12px; top: 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; z-index: 2; }
.pd-card__sale, .pd-card__gift {
	display: inline-block; padding: 4px 9px; border-radius: 999px;
	font: 800 12.5px/1.2 var(--pd-font); color: #fff; background: #e5483b;
}
.pd-card__gift { background: var(--pd-sun); color: var(--pd-ink); }
.pd-card__icons {
	position: absolute; right: 12px; top: 12px; z-index: 2;
	display: flex; flex-direction: column; gap: 6px;
	opacity: 0; transform: translateX(6px); transition: opacity .2s, transform .2s;
}
.pd-card:hover .pd-card__icons, .pd-card:focus-within .pd-card__icons { opacity: 1; transform: none; }
.pd-card__icons button {
	width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
	font-size: 16px; color: var(--pd-ink); background: #fff; border: 0; border-radius: 50%;
	box-shadow: 0 2px 8px rgba(30, 42, 27, .15); cursor: pointer;
}
.pd-card__icons button:hover { color: #e5483b; }
.pd-card__body { display: flex; flex-direction: column; flex: 1; gap: 8px; padding: 12px 16px 16px; }
.pd-card__name {
	font-weight: 700; font-size: 14.5px; line-height: 1.35; color: var(--pd-ink) !important; text-decoration: none !important;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em;
}
.pd-card__name:hover { color: var(--pd-green-d) !important; }
.pd-card__rating { font-size: 13px; color: var(--pd-muted); }
.pd-card__rating a { color: var(--pd-muted) !important; margin-left: 4px; }
.pd-card__star { color: var(--pd-sun-d); }
.pd-card__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-top: auto; }
.pd-card__cur, .pd-card__new { font-size: 20px; font-weight: 800; color: var(--pd-ink); white-space: nowrap; }
.pd-card__new { color: #d93b2b; }
.pd-card__old { font-size: 14px; color: #9aa294; text-decoration: line-through; white-space: nowrap; }
.pd-card__actions { display: flex; gap: 8px; }
.pd-card__buy {
	flex: 1; min-height: 42px; padding: 8px 14px;
	font: 800 15px var(--pd-font); color: #fff; background: var(--pd-green);
	border: 0; border-radius: 999px; box-shadow: 0 3px 0 var(--pd-green-d); cursor: pointer;
	transition: background .15s, transform .1s;
}
.pd-card__buy:hover { background: var(--pd-green-d); }
.pd-card__buy:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--pd-green-d); }
.pd-card__buy[disabled] { color: var(--pd-muted); background: var(--pd-bg); box-shadow: none; cursor: default; font-weight: 700; font-size: 14px; }
.pd-card__fast {
	width: 42px; height: 42px; flex: 0 0 auto; font-size: 17px;
	color: var(--pd-green-d); background: var(--pd-green-50); border: 0; border-radius: 50%; cursor: pointer;
}
.pd-card__fast:hover { background: var(--pd-sun); color: var(--pd-ink); }

/* ---------- Каталог ---------- */
.pd-catalog { padding-bottom: 24px; }
.pd-catalog__layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.pd-catalog__layout.has-side { grid-template-columns: 270px minmax(0, 1fr); }
.pd-catalog__layout.has-right { grid-template-columns: minmax(0, 1fr) 270px; }
.pd-catalog__layout.has-side.has-right { grid-template-columns: 250px minmax(0, 1fr) 250px; }
.pd-catalog__side .pd-column, .pd-catalog__right .pd-column,
.pd-catalog__side > [class*="col-"], .pd-catalog__right > [class*="col-"] { width: auto; float: none; padding: 0; }
.pd-catalog__main { min-width: 0; }
.pd-catalog__head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; margin: 0 0 18px; }
.pd-catalog__head h1 { margin: 0; font-size: 32px; line-height: 1.15; }
.pd-sort { display: flex; align-items: center; gap: 10px; margin: 0; font-weight: 600; font-size: 14px; color: var(--pd-muted); }
.pd-sort select {
	height: 42px; padding: 0 38px 0 16px; font: 700 14px var(--pd-font); color: var(--pd-ink);
	background: var(--pd-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236f7869' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center;
	border: 0; border-radius: 999px; -webkit-appearance: none; appearance: none; cursor: pointer;
}
.pd-catalog__filters { margin-bottom: 8px; }
.pd-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-bottom: 28px; }
.has-side .pd-grid, .has-right .pd-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pd-grid__cell { min-width: 0; }
.pd-more { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-bottom: 32px; }
.pd-more .category_load { min-width: 240px; }
.pd-pagination .pagination, .pd-pagination .links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0; }
.pd-pagination .pagination > li > a, .pd-pagination .pagination > li > span, .pd-pagination .links a, .pd-pagination .links b {
	min-width: 40px; height: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center;
	font-weight: 700; color: var(--pd-ink); background: #fff; border: 1.5px solid var(--pd-line); border-radius: 999px; float: none; margin: 0;
}
.pd-pagination .pagination > .active > span, .pd-pagination .links b { color: #fff; background: var(--pd-green); border-color: var(--pd-green); }
.pd-pagination .results { display: none; }

.pd-subcats { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 24px; }
.pd-subcats__item {
	display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px;
	background: var(--pd-bg); border-radius: var(--pd-radius-s); text-decoration: none !important;
	transition: background .15s, box-shadow .15s;
}
.pd-subcats__item:hover { background: #fff; box-shadow: var(--pd-shadow); }
.pd-subcats__img { width: 52px; height: 52px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; background: #fff; border-radius: 10px; color: var(--pd-line); font-size: 22px; }
.pd-subcats__img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pd-subcats__name { font-weight: 700; font-size: 14.5px; line-height: 1.3; color: var(--pd-ink); }

.pd-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; }
.pd-chip {
	display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px;
	font-weight: 700; font-size: 14px; color: var(--pd-ink) !important; text-decoration: none !important;
	background: var(--pd-green-50); border-radius: 999px; transition: background .15s;
}
.pd-chip:hover { background: var(--pd-green-100); }
.pd-chip .fa-times { color: var(--pd-muted); }
.pd-chips__reset { font-weight: 700; font-size: 14px; color: #d93b2b !important; }

.pd-catdesc { margin-bottom: 24px; color: var(--pd-text); }
.pd-catdesc::after { content: ""; display: table; clear: both; }
.pd-catdesc__img { float: left; max-width: 160px; margin: 0 20px 10px 0; border-radius: var(--pd-radius-s); }
.pd-catdesc--bottom { margin-top: 16px; padding: 28px; background: var(--pd-bg); border-radius: var(--pd-radius); }
.pd-catdesc--bottom h2, .pd-catdesc--bottom h3 { margin-top: 0; }
.pd-empty { padding: 48px 24px; text-align: center; background: var(--pd-bg); border-radius: var(--pd-radius); }
.pd-empty p { font-size: 17px; margin-bottom: 18px; }
.pd-empty--soft { padding: 28px; color: var(--pd-muted); }
.pd-special-group { margin-bottom: 16px; }
.pd-special-group h2 { font-size: 22px; margin: 8px 0 16px; scroll-margin-top: 110px; }

/* Левое меню категорий */
.pd-side { margin-bottom: 20px; padding: 10px; background: var(--pd-bg); border-radius: var(--pd-radius); }
.pd-side a { text-decoration: none !important; }
.pd-side__back { display: block; padding: 8px 10px; font-size: 14px; font-weight: 600; color: var(--pd-muted) !important; }
.pd-side__current { display: block; padding: 10px 12px; font-weight: 800; color: var(--pd-green-d) !important; background: #fff; border-radius: var(--pd-radius-s); box-shadow: var(--pd-shadow); }
.pd-side__list { margin: 6px 0 0; padding: 0; list-style: none; }
.pd-side__item > a { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; font-weight: 700; color: var(--pd-ink) !important; border-radius: var(--pd-radius-s); }
.pd-side__item > a:hover { background: #fff; }
.pd-side__sub { margin: 0 0 6px 12px; padding: 0 0 0 10px; list-style: none; border-left: 2px solid var(--pd-green-100); }
.pd-side__sub a { display: block; padding: 4px 0; font-size: 14px; color: var(--pd-text) !important; }

/* Фильтры */
.pd-filter { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; padding: 0 !important; background: none !important; float: none !important; }
.pd-filter .box-content, .pd-filter form { display: flex; flex-wrap: wrap; gap: 10px; width: 100%; }
.pd-filter form > div, .pd-filter__group { float: none !important; width: auto !important; padding: 0 !important; }
.pd-filter .btn-group > .btn, .pd-filter__btn {
	height: 40px; padding: 0 16px; font: 700 14px var(--pd-font); color: var(--pd-ink);
	background: #fff !important; border: 1.5px solid var(--pd-line) !important; border-radius: 999px !important; box-shadow: none !important;
}
.pd-filter .btn-group > .btn:hover, .pd-filter .open > .btn, .pd-filter__btn[data-active] { border-color: var(--pd-green) !important; color: var(--pd-green-d); }
.pd-filter .dropdown-menu { min-width: 240px; max-height: 360px; overflow-y: auto; padding: 12px; border: 0; border-radius: var(--pd-radius); box-shadow: var(--pd-shadow-l); }
.pd-filter .dropdown-menu li { padding: 4px 6px !important; }
.pd-filter .dropdown-menu label { font-weight: 600; margin: 0 0 0 6px; cursor: pointer; }
.pd-filter .disable_input { opacity: .45; }
.pd-filter #slider-range { margin: 10px 8px 16px; }
.pd-filter .input_price input { width: 80px; padding: 6px 8px; border: 1.5px solid var(--pd-line); border-radius: 8px; }
.pd-filter .ui-slider-range { background: var(--pd-green); }
.pd-filter .ui-slider-handle { border-radius: 50%; border-color: var(--pd-green) !important; background: #fff !important; }

/* Сравнение */
.pd-compare { overflow-x: auto; margin-bottom: 32px; border: 1px solid var(--pd-line); border-radius: var(--pd-radius); }
.pd-compare__table { width: 100%; min-width: 600px; border-collapse: collapse; }
.pd-compare__table td { padding: 12px 16px; border-bottom: 1px solid var(--pd-line); vertical-align: top; font-size: 14px; }
.pd-compare__table td:first-child { width: 180px; font-weight: 700; color: var(--pd-muted); background: var(--pd-bg); }
.pd-compare__table thead td { background: var(--pd-green-50) !important; color: var(--pd-ink) !important; font-size: 15px; }
.pd-compare__img { max-width: 140px; border-radius: 10px; }
.pd-compare__remove { display: block; margin-top: 8px; text-align: center; font-size: 13px; color: #d93b2b !important; }

/* ЛК */
.pd-lk { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 24px; padding: 6px; background: var(--pd-bg); border-radius: 999px; }
.pd-lk .lk-menu-item { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; font-weight: 700; font-size: 14px; color: var(--pd-text) !important; text-decoration: none !important; border-radius: 999px; }
.pd-lk .lk-menu-item:hover { background: #fff; }
.pd-lk .lk-menu-item.active { background: #fff; color: var(--pd-green-d) !important; box-shadow: var(--pd-shadow); }

/* Живой поиск */
.pd-livesearch { padding: 8px; background: #fff; border-radius: var(--pd-radius); box-shadow: var(--pd-shadow-l); }
.pd-livesearch__list { margin: 0; padding: 0; list-style: none; }
.pd-livesearch__list a { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 12px; padding: 8px; border-radius: 10px; text-decoration: none !important; }
.pd-livesearch__list a:hover { background: var(--pd-bg); }
.pd-livesearch .img_search img { width: 48px; height: 48px; object-fit: contain; }
.pd-livesearch .name_search { font-weight: 600; font-size: 14px; color: var(--pd-ink); line-height: 1.3; }
.pd-livesearch .price_search { font-weight: 800; color: var(--pd-ink); white-space: nowrap; }
.pd-livesearch__all, .pd-livesearch__empty { margin: 6px 8px; font-weight: 700; }

/* Купить в 1 клик */
.pd-oneclick__product { display: flex; flex-direction: column; gap: 2px; margin-bottom: 16px; padding: 14px 16px; background: var(--pd-bg); border-radius: var(--pd-radius-s); }
.pd-oneclick__product span { color: var(--pd-muted); font-size: 14px; }
.pd-oneclick__product strong { color: var(--pd-ink); }

/* ---------- Карточка товара (страница) ---------- */
.pd-product { padding-bottom: 24px; }
.pd-product__top { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: start; margin-bottom: 48px; }

.pd-gallery { min-width: 0; }
.pd-gallery__main { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; padding: 24px; background: #fff; border: 1px solid var(--pd-line); border-radius: 20px; }
.pd-gallery__main .main-image { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; cursor: zoom-in; }
.pd-gallery__main img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pd-gallery__sale { position: absolute; left: 16px; top: 16px; font-size: 14px; padding: 6px 12px; }
.pd-gallery__thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.pd-gallery__thumbs .item { flex: 0 0 auto; }
.pd-gallery__thumbs .thumbnail {
	display: flex; align-items: center; justify-content: center; width: 84px; height: 84px; margin: 0; padding: 6px;
	background: #fff; border: 2px solid var(--pd-line); border-radius: 12px; transition: border-color .15s;
}
.pd-gallery__thumbs .thumbnail img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pd-gallery__thumbs .item.is-active .thumbnail, .pd-gallery__thumbs .thumbnail:hover { border-color: var(--pd-green); }

.pd-buy { min-width: 0; position: sticky; top: 100px; }
.pd-buy h1 { margin: 0 0 10px; font-size: 28px; line-height: 1.2; }
.pd-buy__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin-bottom: 18px; font-size: 13.5px; color: var(--pd-muted); }
.pd-buy__meta b { color: var(--pd-text); font-weight: 700; }
.pd-buy__rating { display: inline-flex; align-items: center; gap: 6px; color: var(--pd-muted) !important; }
.pd-stars i { font-style: normal; color: #d9ddd4; letter-spacing: 1px; }
.pd-stars i.is-on { color: var(--pd-sun-d); }
.pd-buy__price { margin-bottom: 20px; padding: 18px 20px; background: var(--pd-bg); border-radius: var(--pd-radius); }
.pd-buy__price .priceBig { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; }
.pd-buy__cur, .pd-buy__new { font-size: 34px; font-weight: 800; line-height: 1.1; color: var(--pd-ink); }
.pd-buy__new { color: #d93b2b; }
.pd-buy__old { font-size: 18px; color: #9aa294; text-decoration: line-through; }
.pd-buy__save { padding: 3px 10px; font-size: 13px; font-weight: 800; color: #fff; background: #e5483b; border-radius: 999px; }
.pd-buy__price .tax, .pd-buy__price .points { display: block; margin-top: 6px; font-size: 13px; color: var(--pd-muted); }
.pd-buy__discounts { margin: 10px 0 0; padding: 0; list-style: none; font-size: 14px; }

.pd-opt { margin-bottom: 16px; }
.pd-opt__label { display: block; margin-bottom: 8px; font-weight: 800; font-size: 14px; color: var(--pd-ink); }
.pd-opt__req { color: #d93b2b; }
.pd-opt .form-control { height: 46px; font: 600 15px var(--pd-font); border: 1.5px solid var(--pd-line); border-radius: var(--pd-radius-s); box-shadow: none; }
.pd-opt .form-control:focus { border-color: var(--pd-green); }
.pd-opt textarea.form-control { height: auto; }
.pd-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-swatch { position: relative; margin: 0 !important; }
.pd-swatch input { position: absolute; opacity: 0; pointer-events: none; }
.pd-swatch label {
	display: flex; align-items: center; gap: 8px; margin: 0; padding: 8px 14px;
	font-weight: 700; font-size: 14px; color: var(--pd-ink);
	background: #fff; border: 1.5px solid var(--pd-line); border-radius: 12px; cursor: pointer; transition: border-color .15s, background .15s;
}
.pd-swatch label img { width: 36px; height: 36px; object-fit: cover; border-radius: 8px; }
.pd-swatch .option-price { color: var(--pd-muted); font-weight: 600; font-size: 13px; }
.pd-swatch input:checked + label { border-color: var(--pd-green); background: var(--pd-green-50); box-shadow: inset 0 0 0 1px var(--pd-green); }
.pd-swatch input:focus-visible + label { outline: 2px solid var(--pd-sun-d); }
.pd-options .text-danger { margin-top: 6px; font-size: 13px; font-weight: 700; }

.pd-buy__row { display: flex; gap: 12px; margin-bottom: 12px; }
.pd-qty--big { padding: 4px; }
.pd-qty--big button { width: 40px; height: 40px; }
.pd-qty--big input { width: 48px; height: 40px; font-size: 17px; }
.pd-buy__cart { flex: 1; min-height: 52px; font-size: 17px; }
.pd-buy__cart.is-loading { opacity: .7; pointer-events: none; }
.pd-buy__cart[disabled] { color: var(--pd-muted) !important; background: var(--pd-bg); box-shadow: none; }
.pd-buy__row--sub { align-items: center; }
.pd-buy__fast { flex: 1; }
.pd-iconbtn {
	width: 44px; height: 44px; flex: 0 0 auto; font-size: 18px; color: var(--pd-ink);
	background: #fff; border: 1.5px solid var(--pd-line); border-radius: 50%; cursor: pointer; transition: color .15s, border-color .15s;
}
.pd-iconbtn:hover { color: #e5483b; border-color: #f2c1bc; }
.pd-buy__off { padding: 14px 16px; font-weight: 700; color: var(--pd-muted); background: var(--pd-bg); border-radius: var(--pd-radius-s); }

.pd-delivery { margin: 18px 0; padding: 16px 18px; border: 1.5px dashed var(--pd-green-100); border-radius: var(--pd-radius); }
.pd-delivery__head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.pd-delivery__head .pd-ico { width: 40px; height: 40px; padding: 8px; box-sizing: border-box; color: var(--pd-green-d); background: var(--pd-green-50); border-radius: 12px; }
.pd-delivery__head b { display: block; font-size: 13px; color: var(--pd-muted); font-weight: 600; }
.pd-delivery__head a { font-weight: 800; color: var(--pd-green-d) !important; text-decoration: underline dotted; text-underline-offset: 3px; cursor: pointer; }
.pd-delivery dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 0 0 8px; font-size: 14px; }
.pd-delivery dt { font-weight: 600; color: var(--pd-muted); }
.pd-delivery dd { font-weight: 800; color: var(--pd-ink); }
.pd-delivery__more { font-size: 13px; color: var(--pd-muted) !important; }

.pd-attr { display: flex; align-items: baseline; gap: 8px; padding: 5px 0; font-size: 14.5px; }
.pd-attr span { color: var(--pd-muted); }
.pd-attr i { flex: 1; min-width: 20px; border-bottom: 1px dotted #c9cec3; transform: translateY(-4px); }
.pd-attr b { color: var(--pd-ink); font-weight: 700; text-align: right; }
.pd-buy__attrs { margin-top: 18px; }
.pd-buy__attrs > a { display: inline-block; margin-top: 8px; font-weight: 700; font-size: 14px; }
.pd-buy__short { margin-top: 16px; color: var(--pd-text); }

.pd-tabs { margin-bottom: 40px; }
.pd-tabs__nav { display: flex; gap: 6px; margin: 0 0 24px; padding: 6px; background: var(--pd-bg); border: 0; border-radius: 999px; width: max-content; max-width: 100%; overflow-x: auto; }
.pd-tabs__nav::before, .pd-tabs__nav::after { display: none; }
.pd-tabs__nav > li { float: none; margin: 0; }
.pd-tabs__nav > li > a { margin: 0; padding: 10px 22px; font-weight: 800; font-size: 15px; color: var(--pd-text); white-space: nowrap; border: 0 !important; border-radius: 999px; }
.pd-tabs__nav > li > a:hover { background: #fff; }
.pd-tabs__nav > li.active > a, .pd-tabs__nav > li.active > a:hover, .pd-tabs__nav > li.active > a:focus { color: var(--pd-green-d); background: #fff; box-shadow: var(--pd-shadow); }
.pd-richtext { max-width: 860px; font-size: 16px; line-height: 1.65; }
.pd-richtext img { max-width: 100%; height: auto; border-radius: var(--pd-radius-s); }
.pd-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 48px; max-width: 1000px; }
.pd-specs__group h3 { margin: 12px 0 6px; font-size: 16px; }

.pd-reviewform { margin-top: 16px; padding: 20px; background: var(--pd-bg); border-radius: var(--pd-radius); max-width: 640px; }
.pd-reviewform label { font-weight: 700; }
.pd-reviewform .form-control { border: 1.5px solid var(--pd-line); border-radius: var(--pd-radius-s); box-shadow: none; }
.pd-ratepick { display: inline-flex; gap: 2px; }
.pd-ratepick input { position: absolute; opacity: 0; pointer-events: none; }
.pd-ratepick .rat-star { margin: 0; font-size: 28px; line-height: 1; color: #d9ddd4; cursor: pointer; }
.pd-ratepick .rat-star.active, .pd-ratepick .rat-star.checked { color: var(--pd-sun-d); }
#review { margin-top: 20px; }
.pd-reviewlist { display: grid; gap: 14px; max-width: 860px; }
.pd-reviewitem { padding: 18px 20px; background: #fff; border: 1px solid var(--pd-line); border-radius: var(--pd-radius); }
.pd-reviewitem header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.pd-reviewitem header > div { flex: 1; }
.pd-reviewitem header b { display: block; color: var(--pd-ink); }
.pd-reviewitem header small { color: var(--pd-muted); }
.pd-reviewitem__avatar { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--pd-green-d); background: var(--pd-green-50); border-radius: 50%; }
.pd-reviewitem__photos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pd-reviewitem__photos img { width: 80px; height: 80px; object-fit: cover; border-radius: 10px; }
.pd-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 24px; }
.pd-tags > span { font-weight: 700; color: var(--pd-muted); }

/* ---------- Адаптив v2 ---------- */
@media (max-width: 1199px) {
	.pd-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.has-side .pd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.pd-shelf__track:not(.pd-owl-on) { grid-auto-columns: calc((100% - 3 * 20px) / 4); }
}
@media (max-width: 991px) {
	.pd-cats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
	.pd-catalog__layout.has-side, .pd-catalog__layout.has-right, .pd-catalog__layout.has-side.has-right { grid-template-columns: minmax(0, 1fr); }
	.pd-catalog__side { order: 2; }
	.pd-grid, .has-side .pd-grid, .has-right .pd-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
	.pd-shelf__track:not(.pd-owl-on) { grid-auto-columns: calc((100% - 2 * 12px) / 2.4); gap: 12px; }
	.pd-product__top { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.pd-buy { position: static; }
	.pd-specs { grid-template-columns: minmax(0, 1fr); }
	.pd-card__icons { opacity: 1; transform: none; }
}
@media (max-width: 767px) {
	.pd-cats__item { flex-direction: row; text-align: left; padding: 10px 14px 10px 10px; gap: 12px; }
	.pd-cats__img { width: 72px; flex: 0 0 72px; aspect-ratio: 1 / 1; }
	.pd-cats__name { font-size: 15px; }
	.pd-cats { grid-template-columns: 1fr; gap: 10px; }
	.pd-grid, .has-side .pd-grid, .has-right .pd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.pd-card__media { padding: 8px 8px 0; }
	.pd-card__body { padding: 10px 10px 12px; gap: 6px; }
	.pd-card__name { font-size: 13.5px; }
	.pd-card__cur, .pd-card__new { font-size: 17px; }
	.pd-card__old { font-size: 12.5px; }
	.pd-card__buy { min-height: 38px; font-size: 14px; padding: 6px 10px; }
	.pd-card__fast { display: none; }
	.pd-card__icons button { width: 32px; height: 32px; font-size: 14px; }
	.pd-catalog__head h1 { font-size: 24px; }
	.pd-sort { width: 100%; }
	.pd-sort select { flex: 1; }
	.pd-subcats { grid-template-columns: 1fr 1fr; gap: 8px; }
	.pd-subcats__img { width: 40px; height: 40px; }
	.pd-subcats__name { font-size: 13px; }
	.pd-gallery__main { padding: 12px; border-radius: 16px; }
	.pd-gallery__thumbs .thumbnail { width: 64px; height: 64px; }
	.pd-buy h1 { font-size: 22px; }
	.pd-buy__cur, .pd-buy__new { font-size: 28px; }
	.pd-tabs__nav { width: 100%; }
	.pd-tabs__nav > li > a { padding: 9px 14px; font-size: 14px; }
}

/* ==========================================================================
   v3 — корзина, оформление, личный кабинет
   ========================================================================== */
.pd-panel { padding: 24px; background: #fff; border: 1px solid var(--pd-line); border-radius: 18px; margin-bottom: 20px; }
.pd-panel--soft { background: var(--pd-bg); border-color: transparent; }
.pd-panel h2 { margin: 0 0 16px; font-size: 20px; }
.pd-loading { padding: 32px; text-align: center; color: var(--pd-muted); font-weight: 700; }
.pd-muted { color: var(--pd-muted); }
.pd-link { font-weight: 700; }
.pd-alert { margin-bottom: 16px; padding: 12px 16px; font-weight: 600; color: #8a2d22; background: #fdeceb; border-radius: var(--pd-radius-s); }
.pd-alert--ok { color: var(--pd-green-d); background: var(--pd-green-50); }
.pd-dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0 0 16px; font-size: 14.5px; }
.pd-dl dt { font-weight: 600; color: var(--pd-muted); }
.pd-dl dd { margin: 0; font-weight: 700; color: var(--pd-ink); }

.pd-account-top { padding: 12px 0 4px; background: var(--pd-bg); margin-bottom: 20px; }
.pd-account-top .pd-lk { margin: 0; background: #fff; }
.pd-account { padding-bottom: 32px; }
.pd-account h1 { font-size: 30px; margin: 4px 0 20px; }
.pd-account__actions { margin-top: 20px; }

/* Поля форм */
.pd-field { margin-bottom: 14px; }
.pd-field__label { display: block; margin-bottom: 6px; font-weight: 700; font-size: 14px; color: var(--pd-ink); }
body.pd .pd-checkout .form-control, body.pd .pd-account .form-control, body.pd .pd-field .form-control {
	height: 46px; padding: 10px 14px; font: 600 15px var(--pd-font); color: var(--pd-ink);
	background: var(--pd-bg); border: 2px solid transparent; border-radius: var(--pd-radius-s); box-shadow: none;
}
body.pd .pd-checkout textarea.form-control, body.pd .pd-account textarea.form-control { height: auto; }
body.pd .pd-checkout .form-control:focus, body.pd .pd-account .form-control:focus { background: #fff; border-color: var(--pd-green); }
.pd-field.has-error .form-control, .form-group.has-error .form-control { border-color: #e5483b !important; background: #fff; }
.pd-checkout .error, .pd-checkout label.error, .pd-checkout span.error label { display: block; margin-top: 4px; font-size: 13px; font-weight: 700; color: #d93b2b; }
.pd-filled { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; padding: 10px 14px; background: var(--pd-bg); border-radius: var(--pd-radius-s); }
.pd-filled span { flex-basis: 100%; font-size: 12px; font-weight: 600; color: var(--pd-muted); }
.pd-filled b { color: var(--pd-ink); }
.pd-filled #georegions { font-size: 13px; font-weight: 700; color: var(--pd-green-d); border-bottom: 1px dashed; cursor: pointer; }

/* Оформление */
.pd-checkout { padding-bottom: 32px; }
.pd-checkout__grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 28px; align-items: start; }
.pd-checkout__side .pd-panel--sticky { position: sticky; top: 100px; }
.pd-checkout__title { margin: 0 0 14px; font-size: 20px; }
.pd-checkout__subtitle { margin: 18px 0 10px; font-size: 16px; font-weight: 800; color: var(--pd-ink); }
.pd-checkout__submit { min-height: 54px; margin-top: 18px; font-size: 17px; }
.pd-checkout__submit a { color: inherit !important; text-decoration: none !important; }
.pd-checkout__offer { margin: 10px 0 0; font-size: 12px; line-height: 1.4; color: var(--pd-muted); }
.pd-checkout__offer a { color: var(--pd-muted) !important; text-decoration: underline; }
.pd-checkout__trust { margin: 14px 0 0; padding: 14px 0 0; list-style: none; border-top: 1px solid var(--pd-line); font-size: 13px; color: var(--pd-muted); }
.pd-checkout__trust li { margin-bottom: 4px; }
.pd-checkout__trust .fa { width: 18px; color: var(--pd-green); }

.pd-choices { display: grid; gap: 8px; }
.pd-choice { position: relative; display: block; margin: 0 !important; padding: 0 !important; cursor: pointer; }
.pd-choice input { position: absolute; opacity: 0; pointer-events: none; }
.pd-choice__body {
	display: block; padding: 12px 14px 12px 44px; font-weight: 700; font-size: 14.5px; color: var(--pd-ink);
	background: #fff; border: 1.5px solid var(--pd-line); border-radius: 12px; transition: border-color .15s, background .15s;
}
.pd-choice__body::before {
	content: ""; position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; margin-top: -10px;
	border: 2px solid #c6ccc0; border-radius: 50%; background: #fff; transition: border-color .15s, box-shadow .15s;
}
.pd-choice input:checked + .pd-choice__body { border-color: var(--pd-green); background: var(--pd-green-50); }
.pd-choice input:checked + .pd-choice__body::before { border-color: var(--pd-green); box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 10px var(--pd-green); }
.pd-choice input:focus-visible + .pd-choice__body { outline: 2px solid var(--pd-sun-d); }

/* Список товаров в корзине */
.pd-cartpage__head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.pd-cartpage__head h1 { margin: 0; font-size: 28px; }
.pd-cartpage__count { color: var(--pd-muted); font-weight: 700; }
.pd-cartline {
	display: grid; grid-template-columns: 110px minmax(0, 1fr) auto 140px; align-items: center; gap: 18px;
	padding: 18px 0; border-bottom: 1px solid var(--pd-line);
}
.pd-cartline__img { display: flex; align-items: center; justify-content: center; width: 110px; height: 110px; padding: 8px; background: var(--pd-bg); border-radius: 14px; }
.pd-cartline__img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pd-cartline__name { display: block; margin-bottom: 4px; font-weight: 800; font-size: 16px; line-height: 1.3; color: var(--pd-ink) !important; }
.pd-cartline__meta { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 13px; color: var(--pd-muted); }
.pd-cartline__opts { margin: 6px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--pd-text); }
.pd-cartline__complect { margin-top: 6px; font-size: 13px; }
.pd-cartline__complect summary { cursor: pointer; font-weight: 700; color: var(--pd-green-d); }
.pd-cartline__complect ul { margin: 6px 0 0; padding-left: 18px; }
.pd-cartline__links { display: flex; gap: 18px; margin-top: 10px; font-size: 13.5px; font-weight: 700; }
.pd-cartline__links a { color: var(--pd-muted) !important; cursor: pointer; }
.pd-cartline__links a:hover { color: var(--pd-green-d) !important; }
.pd-cartline__links .pd-cartline__del:hover { color: #d93b2b !important; }
.pd-cartline__price { text-align: right; white-space: nowrap; }
.pd-cartline__price b { display: block; font-size: 19px; font-weight: 800; color: var(--pd-ink); }
.pd-cartline__price .pd-cartline__new { color: #d93b2b; }
.pd-cartline__price s { font-size: 13.5px; color: #9aa294; }
.pd-cartpage__total { display: flex; justify-content: flex-end; padding-top: 18px; }
.pd-cartpage__total table { margin: 0; }
.pd-cartpage__total .title { font-size: 17px; font-weight: 700; color: var(--pd-muted); margin-right: 10px; }
.pd-cartpage__total .text { font-size: 26px; font-weight: 800; color: var(--pd-ink); }

/* Подтверждение */
.pd-confirm__table { overflow-x: auto; }
.pd-confirm__table table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.pd-confirm__table thead td { padding: 10px 12px; font-size: 12.5px; font-weight: 800; color: var(--pd-muted); text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid var(--pd-line); }
.pd-confirm__table tbody td { padding: 14px 12px; border-bottom: 1px solid var(--pd-line); vertical-align: top; }
.pd-confirm__table td:not(:first-child) { text-align: right; white-space: nowrap; }
.pd-confirm__table td small { display: block; color: var(--pd-muted); font-size: 12.5px; }
.pd-confirm__table tfoot td { padding: 8px 12px; text-align: right; font-weight: 600; color: var(--pd-muted); }
.pd-confirm__table tfoot tr:last-child td { font-size: 20px; font-weight: 800; color: var(--pd-ink); }
.pd-confirm__pay { margin-top: 18px; }
.pd-confirm__pay .buttons { margin: 0; }
.pd-confirm__pay .button, .pd-confirm__pay input[type="button"], .pd-confirm__pay input[type="submit"] { width: 100%; }

/* Вход */
.pd-auth__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; max-width: 900px; }
.pd-auth__forgot { display: inline-block; margin-top: 6px; font-size: 13.5px; font-weight: 700; }
.pd-auth__new p { color: var(--pd-text); }

/* Избранное */
.pd-wish { display: grid; gap: 10px; margin-bottom: 24px; }
.pd-wish__row { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto auto; align-items: center; gap: 18px; padding: 12px 16px 12px 12px; background: #fff; border: 1px solid var(--pd-line); border-radius: var(--pd-radius); }
.pd-wish__img { display: flex; align-items: center; justify-content: center; width: 88px; height: 88px; background: var(--pd-bg); border-radius: 12px; }
.pd-wish__img img { max-width: 90%; max-height: 90%; object-fit: contain; }
.pd-wish__name { display: block; font-weight: 800; color: var(--pd-ink) !important; }
.pd-wish__meta { font-size: 13px; color: var(--pd-muted); }
.pd-wish__price { text-align: right; white-space: nowrap; }
.pd-wish__price b { font-size: 18px; color: var(--pd-ink); }
.pd-wish__price s { display: block; font-size: 13px; color: #9aa294; }
.pd-wish__actions { display: flex; align-items: center; gap: 8px; }
.pd-wish__actions .pd-iconbtn { display: inline-flex; align-items: center; justify-content: center; }

/* Заказы */
.pd-orders { display: grid; gap: 8px; margin-bottom: 20px; }
.pd-order {
	display: grid; grid-template-columns: 110px repeat(3, minmax(0, 1fr)) 24px; align-items: center; gap: 16px;
	padding: 16px 18px; background: #fff; border: 1px solid var(--pd-line); border-radius: var(--pd-radius);
	cursor: pointer; transition: border-color .15s, box-shadow .15s;
}
.pd-order:hover, .pd-order.about-hover { border-color: var(--pd-green-100); box-shadow: var(--pd-shadow); }
.pd-order small { display: block; font-size: 12px; color: var(--pd-muted); }
.pd-order__id { font-weight: 800; color: var(--pd-ink); }
.pd-order__status { color: var(--pd-green-d); }
.pd-order__arrow { color: var(--pd-muted); transition: transform .2s; }
.pd-order.about-hover .pd-order__arrow { transform: rotate(180deg); }
.pd-order__details { margin: -4px 0 8px; padding: 12px 18px; background: var(--pd-bg); border-radius: 0 0 var(--pd-radius) var(--pd-radius); }
.pd-orderinfo__item { display: flex; align-items: center; gap: 12px; text-align: left; }
.pd-orderinfo__item img { width: 56px; height: 56px; object-fit: contain; border-radius: 8px; background: #fff; }
.pd-orderinfo__item b { display: block; color: var(--pd-ink); }

/* Профиль */
.pd-profile { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.pd-profile .pd-panel { margin: 0; }
.pd-addr { margin: 0 0 14px; padding: 0; list-style: none; }
.pd-addr li { display: flex; align-items: center; gap: 8px; padding: 10px 12px; margin-bottom: 6px; background: var(--pd-bg); border-radius: var(--pd-radius-s); }
.pd-addr li span { flex: 1; font-weight: 600; }
.pd-addr .pd-iconbtn { width: 36px; height: 36px; font-size: 15px; }
.pd-dl--kid { padding-bottom: 12px; border-bottom: 1px dashed var(--pd-line); }

/* Старые формы ЛК (OpenCart 1.5): регистрация, пароль, возвраты и т.д. */
body.pd .pd-crumbs { margin: 16px 0; padding: 0; background: none; font-size: 14px; color: var(--pd-muted); }
body.pd .pd-crumbs a { color: var(--pd-green-d); }
body.pd #content table.form { width: 100%; max-width: 720px; border-collapse: separate; border-spacing: 0 10px; }
body.pd #content table.form td { padding: 0 12px 0 0; vertical-align: middle; }
body.pd #content table.form td:first-child, body.pd #content table.form .name_field { width: 200px; font-weight: 700; color: var(--pd-ink); }
body.pd #content table.form input[type="text"], body.pd #content table.form input[type="password"], body.pd #content table.form input[type="email"],
body.pd #content table.form select, body.pd #content table.form textarea {
	width: 100%; max-width: 420px; height: 44px; padding: 8px 14px; font: 600 15px var(--pd-font); color: var(--pd-ink);
	background: var(--pd-bg); border: 2px solid transparent; border-radius: var(--pd-radius-s);
}
body.pd #content table.form textarea { height: auto; }
body.pd #content table.form input:focus, body.pd #content table.form select:focus, body.pd #content table.form textarea:focus { outline: 0; border-color: var(--pd-green); background: #fff; }
body.pd #content .error, body.pd #content .text-danger { display: block; margin-top: 4px; font-size: 13px; font-weight: 700; color: #d93b2b; }
body.pd #content .warning { margin-bottom: 16px; padding: 12px 16px; font-weight: 600; color: #8a2d22; background: #fdeceb; border-radius: var(--pd-radius-s); }
body.pd #content .success { margin-bottom: 16px; padding: 12px 16px; font-weight: 600; color: var(--pd-green-d); background: var(--pd-green-50); border-radius: var(--pd-radius-s); }
body.pd #content .buttons { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin: 20px 0; overflow: visible; }
body.pd #content .buttons .left, body.pd #content .buttons .right { float: none; display: flex; align-items: center; gap: 10px; }
body.pd #content .buttons .left { margin-right: auto; }
body.pd #content h2.head_block, body.pd #content p.head_block { margin: 24px 0 12px; font-size: 18px; font-weight: 800; color: var(--pd-ink); }
body.pd .pd-account .form-horizontal { max-width: 760px; }
body.pd .pd-account legend { padding-bottom: 8px; font-size: 18px; font-weight: 800; color: var(--pd-ink); border-bottom: 1px solid var(--pd-line); }
body.pd .pd-account .control-label { font-weight: 700; }
body.pd .modal-content .modal-body form { margin: 0; }
body.pd #content input[type="button"].button, body.pd #content input[type="submit"].button { width: auto; }

@media (max-width: 991px) {
	.pd-checkout__grid { grid-template-columns: minmax(0, 1fr); }
	.pd-checkout__side .pd-panel--sticky { position: static; }
	.pd-profile { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
	.pd-panel { padding: 16px; border-radius: 14px; }
	.pd-cartline { grid-template-columns: 76px minmax(0, 1fr); grid-template-areas: "img info" "qty price"; gap: 10px 12px; }
	.pd-cartline__img { grid-area: img; width: 76px; height: 76px; align-self: start; }
	.pd-cartline__info { grid-area: info; }
	.pd-cartline .pd-qty { grid-area: qty; justify-self: start; }
	.pd-cartline__price { grid-area: price; }
	.pd-cartline__name { font-size: 14.5px; }
	.pd-cartpage__head h1, .pd-account h1 { font-size: 24px; }
	.pd-auth__grid { grid-template-columns: minmax(0, 1fr); }
	.pd-wish__row { grid-template-columns: 64px minmax(0, 1fr); grid-template-areas: "img info" "price actions"; gap: 10px 12px; }
	.pd-wish__img { grid-area: img; width: 64px; height: 64px; }
	.pd-wish__info { grid-area: info; }
	.pd-wish__price { grid-area: price; text-align: left; }
	.pd-wish__actions { grid-area: actions; justify-self: end; }
	.pd-order { grid-template-columns: 1fr 1fr; gap: 8px 12px; }
	.pd-order__arrow { display: none; }
	body.pd #content table.form, body.pd #content table.form tbody, body.pd #content table.form tr, body.pd #content table.form td { display: block; width: 100% !important; padding: 0; }
	body.pd #content table.form tr { margin-bottom: 12px; }
	body.pd #content table.form td:first-child { margin-bottom: 4px; }
}
.pd-checkout > .container:first-child, .pd-checkout > .container { padding-top: 24px; }
.pd-account-top + .container { padding-top: 0; }
.pd-shelf--supplement { margin-top: 12px; }
.pd-shelf--supplement .pd-shelf__track:not(.pd-owl-on) { grid-auto-columns: calc((100% - 3 * 20px) / 4); }
@media (max-width: 991px) { .pd-shelf--supplement .pd-shelf__track:not(.pd-owl-on) { grid-auto-columns: calc((100% - 2 * 12px) / 2.4); } }
@media (max-width: 991px) {
	/* на телефоне: корзина → оформление → «Дополните заказ» */
	.pd-checkout__main { display: contents; }
	.pd-checkout__main > #cart_info { order: 1; }
	.pd-checkout__side { order: 2; }
	.pd-shelf--supplement { order: 3; min-width: 0; }
	.pd-checkout__grid { gap: 16px; }
}

/* ==========================================================================
   Ширина сайта: вместо 1170px Bootstrap — резиновый контейнер до 1440px.
   Поменять ширину можно в одном месте: --pd-container.
   ========================================================================== */
:root { --pd-container: 1440px; --pd-gutter: 32px; }
body.pd .container {
	width: auto;
	max-width: var(--pd-container);
	padding-left: var(--pd-gutter);
	padding-right: var(--pd-gutter);
}
@media (max-width: 1199px) { :root { --pd-gutter: 24px; } }
@media (max-width: 767px)  { :root { --pd-gutter: 16px; } }

/* Больше карточек в ряд на широких экранах */
@media (min-width: 1360px) {
	.pd-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
	.has-side .pd-grid, .has-right .pd-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.pd-shelf__track:not(.pd-owl-on) { grid-auto-columns: calc((100% - 5 * 20px) / 6); }
	.pd-catalog__layout.has-side { grid-template-columns: 290px minmax(0, 1fr); }
	.pd-checkout__grid { grid-template-columns: minmax(0, 1fr) 440px; }
	.pd-product__top { gap: 56px; }
	.pd-mega__in { grid-template-columns: 310px 1fr; }
}
.pd-catalog__filters.row { margin-left: 0; margin-right: 0; }
@media (min-width: 1360px) { .pd-header #search.pd-search { max-width: 780px; } }

/* Кнопка «Оформить заказ»: сервер (json.button) вставляет внутрь свою кнопку/ссылку —
   убираем у неё всё оформление, чтобы осталась одна оранжевая кнопка */
#checkout_button * {
	display: inline !important; width: auto !important; min-height: 0 !important; height: auto !important;
	margin: 0 !important; padding: 0 !important; float: none !important;
	font: inherit !important; line-height: inherit !important; color: inherit !important; text-decoration: none !important;
	background: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
	transform: none !important; pointer-events: none;
}

/* ==========================================================================
   Быстрый просмотр (product/quick_view.tpl)
   ========================================================================== */
.modal-dialog:has(.pd-qv) { width: auto; max-width: 980px; margin: 40px auto; padding: 0 12px; }
.modal-content:has(.pd-qv) { border: 0; border-radius: 22px; box-shadow: var(--pd-shadow-l); overflow: hidden; }
.pd-qv { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; padding: 28px; background: #fff; text-align: left; }
.pd-qv__close {
	position: absolute; right: 14px; top: 12px; z-index: 3; width: 40px; height: 40px;
	font-size: 28px; line-height: 1; color: var(--pd-ink); background: var(--pd-bg); border: 0; border-radius: 50%; opacity: 1; text-shadow: none;
}
.pd-qv__main { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; padding: 16px; background: #fff; border: 1px solid var(--pd-line); border-radius: 16px; }
.pd-qv__mainlink { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; cursor: zoom-in; }
.pd-qv__main img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pd-qv__main .pd-card__tags { left: 12px; top: 12px; }
.pd-qv__gift { text-decoration: none !important; }
.pd-qv__thumbs { display: flex; gap: 8px; margin: 10px 0 0; padding: 0 0 4px; list-style: none; overflow-x: auto; }
.pd-qv__thumbs a { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; padding: 4px; background: #fff; border: 2px solid var(--pd-line); border-radius: 10px; }
.pd-qv__thumbs img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pd-qv__thumbs li.is-active a, .pd-qv__thumbs a:hover { border-color: var(--pd-green); }
.pd-qv__info { min-width: 0; padding-right: 24px; }
.pd-qv__title { margin: 0 0 8px; font-size: 22px; line-height: 1.25; }
.pd-qv__title a { color: var(--pd-ink) !important; text-decoration: none !important; }
.pd-qv__title a:hover { color: var(--pd-green-d) !important; }
.pd-qv .pd-buy__price { margin-bottom: 16px; }
.pd-qv__stock { display: inline-block; margin-top: 8px; font-size: 13.5px; font-weight: 700; color: var(--pd-green-d); }
.pd-qv__stock.is-off { color: #d93b2b; }
.pd-qv .pd-buy__row { margin-top: 4px; }
.pd-qv__cart.is-loading { opacity: .7; pointer-events: none; }
.pd-qv__text { margin-top: 16px; font-size: 14px; color: var(--pd-text); max-height: 140px; overflow: auto; }
.pd-qv__more { display: inline-block; margin-top: 14px; font-weight: 800; }
@media (max-width: 767px) {
	.modal-dialog:has(.pd-qv) { margin: 0; padding: 0; }
	.modal-content:has(.pd-qv) { border-radius: 0; min-height: 100vh; }
	.pd-qv { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 56px 16px 24px; }
	.pd-qv__info { padding-right: 0; }
}
