/* ============ Qediroglu — основа ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--qd-font);
	font-size: 15px;
	line-height: 1.55;
	color: var(--qd-dark);
	background: var(--qd-bg);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--qd-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--qd-dark); line-height: 1.25; margin: 0 0 .5em; }
button { font-family: inherit; }
ul { padding-left: 1.2em; }

.qd-container { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 20px; }
.qd-skip { position: absolute; left: -9999px; }
.qd-skip:focus { left: 10px; top: 10px; z-index: 999; background: #fff; padding: 8px 12px; }

.qd-btn, .button, button.button, input[type="submit"].button,
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit,
.woocommerce a.button.alt, .woocommerce button.button.alt {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	background: var(--qd-primary); color: #fff; border: 0; border-radius: 999px;
	padding: 11px 22px; font-weight: 600; font-size: 14px; line-height: 1.2; cursor: pointer;
	transition: transform .2s, box-shadow .2s, filter .2s; text-decoration: none;
}
.qd-btn:hover, .button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover {
	background: var(--qd-primary); color: #fff; filter: brightness(1.08); box-shadow: 0 6px 16px rgba(8, 162, 193, .35); text-decoration: none;
}
input[type="text"], input[type="email"], input[type="search"], input[type="tel"], input[type="number"], input[type="password"], textarea, select {
	font-family: inherit; font-size: 15px; border: 1px solid #dbe2ea; border-radius: 12px; padding: 10px 14px; background: #fff; color: var(--qd-dark);
}
input:focus, textarea:focus, select:focus { outline: 2px solid color-mix(in srgb, var(--qd-primary) 45%, transparent); outline-offset: 1px; }

.qd-main { padding-top: 28px; padding-bottom: 48px; }
.qd-main--builder { padding: 0; }
.qd-main--builder .qd-page-sections { padding-top: 24px; padding-bottom: 20px; }
.qd-page-title { font-size: 28px; margin-bottom: 20px; }
.qd-content, .qd-page { background: #fff; border-radius: var(--qd-radius); padding: 28px; }
.qd-page .qd-page-title { margin-top: 0; }
.qd-empty { padding: 24px; text-align: center; border: 2px dashed #cbd5e1; border-radius: var(--qd-radius); color: #64748b; background: #fff; }

/* ============ Шапка ============ */
.qd-header { position: relative; z-index: 50; }
.qd-topbar { background: #fff; border-bottom: 1px solid #e8edf3; font-size: 13px; color: #64748b; }
.qd-topbar__in { display: flex; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; }
.qd-topbar__left, .qd-topbar__right { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.qd-topbar a { color: #64748b; }
.qd-topbar a:hover { color: var(--qd-primary); text-decoration: none; }
.qd-topbar svg { vertical-align: -3px; color: var(--qd-primary); }

.qd-main-bar { background: #fff; }
.qd-main-bar__in { display: flex; align-items: center; gap: 24px; padding-top: 16px; padding-bottom: 16px; }
.qd-logo { display: inline-flex; align-items: center; flex: 0 0 auto; }
.qd-logo:hover { text-decoration: none; }
.qd-logo__img { display: block; }

.qd-search { flex: 1 1 auto; display: flex; max-width: 640px; margin: 0 auto; position: relative; }
.qd-search input[type="search"] { width: 100%; height: 48px; border-radius: 999px; border: 2px solid #e8edf3; background: #f4f7fa; padding: 0 60px 0 22px; }
.qd-search input[type="search"]:focus { background: #fff; border-color: var(--qd-primary); outline: 0; }
.qd-search button {
	position: absolute; right: 4px; top: 4px; width: 40px; height: 40px; border: 0; border-radius: 50%;
	background: var(--qd-primary); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer;
	transition: transform .2s;
}
.qd-search button:hover { transform: scale(1.08); }

.qd-hotline { display: flex; align-items: center; gap: 10px; color: var(--qd-dark); }
.qd-hotline:hover { text-decoration: none; }
.qd-hotline__icon { color: var(--qd-primary); display: flex; }
.qd-hotline__txt { display: flex; flex-direction: column; line-height: 1.2; }
.qd-hotline small { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: #64748b; }
.qd-hotline b { font-size: 20px; }

.qd-actions { display: flex; gap: 10px; }
.qd-act {
	position: relative; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
	border-radius: 50%; background: #f4f7fa; color: var(--qd-dark); transition: background .2s, color .2s, transform .2s;
}
.qd-act:hover { background: var(--qd-primary); color: #fff; text-decoration: none; transform: translateY(-2px); }
.qd-cart-count {
	position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
	background: #ef4444; color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.qd-cart-count.is-empty { display: none; }
.qd-burger { display: none; border: 0; background: none; color: var(--qd-dark); padding: 6px; cursor: pointer; }

/* Полоса меню */
.qd-navbar { background: var(--qd-primary); position: relative; z-index: 40; }
.qd-navbar__in { display: flex; align-items: center; gap: 24px; min-height: 52px; }
.qd-cats-btn { position: relative; align-self: stretch; display: flex; align-items: center; }
.qd-cats-btn__b {
	display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 22px; border: 0; cursor: pointer;
	background: #fff; color: var(--qd-dark); border-radius: 999px; font-weight: 600; font-size: 14px;
}
.qd-cats-btn__panel {
	position: absolute; top: 100%; left: 0; width: 290px; margin-top: 0; background: #fff; border-radius: 0 0 var(--qd-radius) var(--qd-radius);
	box-shadow: 0 16px 40px rgba(15, 23, 42, .18); opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s;
}
.qd-cats-btn:hover .qd-cats-btn__panel, .qd-cats-btn.is-open .qd-cats-btn__panel { opacity: 1; visibility: visible; transform: none; }

.qd-catmenu, .qd-catmenu__sub { list-style: none; margin: 0; padding: 8px 0; }
.qd-catmenu li { position: relative; }
.qd-catmenu a { display: block; padding: 9px 20px; color: var(--qd-dark); font-size: 14px; }
.qd-catmenu a:hover { background: #f4f7fa; color: var(--qd-primary); text-decoration: none; }
.qd-catmenu li.has-sub > a::after { content: "›"; float: right; opacity: .5; }
.qd-catmenu__sub {
	position: absolute; left: 100%; top: -8px; width: 270px; background: #fff; border-radius: var(--qd-radius);
	box-shadow: 0 16px 40px rgba(15, 23, 42, .18); opacity: 0; visibility: hidden; transition: .15s;
}
.qd-catmenu li:hover > .qd-catmenu__sub { opacity: 1; visibility: visible; }

.qd-nav { flex: 1 1 auto; }
.qd-nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.qd-nav__list > li { position: relative; }
.qd-nav__list > li > a { display: block; padding: 14px 14px; color: #fff; font-weight: 500; font-size: 14px; }
.qd-nav__list > li > a:hover { background: rgba(255, 255, 255, .15); text-decoration: none; }
.qd-nav__list .sub-menu {
	list-style: none; margin: 0; padding: 8px 0; position: absolute; top: 100%; left: 0; min-width: 220px; background: #fff;
	border-radius: 0 0 var(--qd-radius) var(--qd-radius); box-shadow: 0 16px 40px rgba(15, 23, 42, .18);
	opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s; z-index: 5;
}
.qd-nav__list li:hover > .sub-menu, .qd-nav__list li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.qd-nav__list .sub-menu a { display: block; padding: 9px 18px; color: var(--qd-dark); font-size: 14px; }
.qd-nav__list .sub-menu a:hover { background: #f4f7fa; color: var(--qd-primary); text-decoration: none; }

/* Переключатель языков */
.qd-lang { position: relative; }
.qd-lang__btn {
	display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border: 1px solid rgba(255, 255, 255, .5);
	background: transparent; color: #fff; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 13px;
}
.qd-lang__list {
	list-style: none; margin: 6px 0 0; padding: 6px; position: absolute; right: 0; top: 100%; min-width: 170px; background: #fff;
	border-radius: 14px; box-shadow: 0 16px 40px rgba(15, 23, 42, .2); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s; z-index: 60;
}
.qd-lang.is-open .qd-lang__list { opacity: 1; visibility: visible; transform: none; }
.qd-lang__list a { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 10px; color: var(--qd-dark); }
.qd-lang__list a:hover { background: #f4f7fa; text-decoration: none; }
.qd-lang__list a[aria-current] { background: color-mix(in srgb, var(--qd-primary) 12%, #fff); color: var(--qd-primary); font-weight: 600; }
.qd-lang__list b { display: inline-block; width: 26px; font-size: 12px; opacity: .7; }
.qd-lang--drawer .qd-lang__btn { color: var(--qd-dark); border-color: #cbd5e1; }
.qd-lang--footer .qd-lang__btn { color: #fff; border-color: rgba(255, 255, 255, .45); }
.qd-lang--footer .qd-lang__btn:hover { background: rgba(255, 255, 255, .12); }
.qd-lang--footer .qd-lang__list { top: auto; bottom: 100%; margin: 0 0 6px; left: 0; right: auto; }

/* Мобильное меню */
.qd-drawer[hidden] { display: none; }
.qd-drawer { position: fixed; inset: 0; z-index: 100001; }
.qd-drawer__bg { position: absolute; inset: 0; background: rgba(15, 23, 42, .5); animation: qd-fade .2s; }
.qd-drawer__panel {
	position: absolute; left: 0; top: 0; bottom: 0; width: min(340px, 88vw); background: #fff; overflow-y: auto;
	padding: 16px; animation: qd-slide .25s ease; box-shadow: 0 0 40px rgba(0, 0, 0, .3);
}
.qd-drawer__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.qd-drawer__close { border: 0; background: #f4f7fa; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.qd-drawer__h { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: #64748b; margin: 20px 0 6px; }
.qd-drawer__list, .qd-drawer .qd-catmenu, .qd-drawer .qd-catmenu__sub { list-style: none; margin: 0; padding: 0; }
.qd-drawer a { display: block; padding: 11px 6px; color: var(--qd-dark); border-bottom: 1px solid #eef2f6; }
.qd-drawer .qd-catmenu__sub { position: static; width: auto; opacity: 1; visibility: visible; box-shadow: none; display: none; padding-left: 14px; }
.qd-drawer li.open > .qd-catmenu__sub { display: block; }
.qd-drawer .qd-catmenu li.has-sub > a::after { content: none; }
.qd-drawer .qd-catmenu li { position: relative; }
.qd-sub-toggle { position: absolute; right: 0; top: 4px; width: 38px; height: 38px; border: 0; background: none; font-size: 20px; cursor: pointer; color: #64748b; transition: transform .2s; }
.qd-drawer li.open > .qd-sub-toggle { transform: rotate(90deg); }
.qd-drawer .sub-menu { list-style: none; padding-left: 14px; margin: 0; }
@keyframes qd-fade { from { opacity: 0; } }
@keyframes qd-slide { from { transform: translateX(-100%); } }
body.qd-lock { overflow: hidden; }

/* ============ Главная ============ */
body.home { position: relative; }
body.home::before {
	content: ""; position: absolute; top: 0; left: 0; right: 0; height: 640px; z-index: 0; pointer-events: none; overflow: hidden;
	background:
		radial-gradient(480px 420px at 10% -10%, color-mix(in srgb, var(--qd-primary) 14%, transparent), transparent 70%),
		radial-gradient(420px 380px at 92% -6%, color-mix(in srgb, var(--qd-dark) 10%, transparent), transparent 70%);
}
body.home .qd-home, body.home .qd-footer { position: relative; z-index: 1; }
.qd-home { padding-top: 24px; padding-bottom: 20px; }
.qd-sec { margin-bottom: 40px; }
.qd-sec__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.qd-sec__title { font-size: 24px; margin: 0; position: relative; padding-left: 18px; }
.qd-sec__title::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 6px; border-radius: 999px; background: linear-gradient(180deg, var(--qd-primary), var(--qd-dark)); }
.qd-sec__all { display: inline-flex; align-items: center; gap: 2px; font-weight: 600; font-size: 14px; }

/* Слайдер */
.qd-hero { display: block; }
.qd-hero--side { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; }
.qd-slider { position: relative; border-radius: var(--qd-radius); overflow: hidden; background: #e2e8f0; }
.qd-slider__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.qd-slider__track::-webkit-scrollbar { display: none; }
.qd-slide { flex: 0 0 100%; scroll-snap-align: start; position: relative; }
.qd-slide__link { display: block; color: inherit; }
.qd-slide img { display: block; width: 100%; height: 100%; aspect-ratio: 12 / 5; max-height: 460px; object-fit: cover; }
.qd-slide__title { position: absolute; left: 28px; bottom: 26px; right: 28px; color: #fff; font-size: 26px; font-weight: 700; text-shadow: 0 2px 12px rgba(0, 0, 0, .5); }
.qd-slider__nav {
	position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0;
	background: rgba(255, 255, 255, .92); color: var(--qd-dark); cursor: pointer; display: flex; align-items: center; justify-content: center;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .18); opacity: 0; transition: .2s;
}
.qd-slider:hover .qd-slider__nav { opacity: 1; }
.qd-slider__nav:hover { background: var(--qd-primary); color: #fff; }
.qd-slider__prev { left: 14px; }
.qd-slider__next { right: 14px; }
.qd-slider__dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 8px; }
.qd-slider__dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .6); cursor: pointer; transition: .25s; }
.qd-slider__dots button.is-active { width: 26px; background: #fff; }
.qd-hero__side { display: grid; grid-template-rows: 1fr 1fr; gap: 16px; }
.qd-side { display: block; border-radius: var(--qd-radius); overflow: hidden; background: #e2e8f0; }
.qd-side img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.qd-side:hover img { transform: scale(1.05); }

/* Преимущества */
.qd-feat { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 20px; }
.qd-feat__item {
	display: flex; align-items: center; gap: 16px; padding: 22px 30px; background: #fff; color: var(--qd-dark);
	box-shadow: 0 6px 24px rgba(15, 23, 42, .07); transition: transform .3s, box-shadow .3s; border-radius: var(--qd-radius);
}
a.qd-feat__item:hover, .qd-feat__item:hover { transform: translateY(-5px); box-shadow: 0 14px 34px rgba(15, 23, 42, .13); text-decoration: none; }
.qd-feat--pill .qd-feat__item { border-radius: 999px; padding: 24px 38px; }
.qd-feat--flat .qd-feat__item { background: transparent; box-shadow: none; padding-left: 0; }
.qd-feat__icon {
	width: 58px; height: 58px; flex-shrink: 0; font-size: 26px; border-radius: 50%; color: var(--qd-primary);
	background: color-mix(in srgb, var(--qd-primary) 12%, #fff); display: flex; align-items: center; justify-content: center;
	transition: transform .35s, background .3s, color .3s;
}
.qd-feat__item:nth-child(4n+2) .qd-feat__icon { color: #e9822e; background: color-mix(in srgb, #e9822e 12%, #fff); }
.qd-feat__item:nth-child(4n+3) .qd-feat__icon { color: #16a34a; background: color-mix(in srgb, #16a34a 12%, #fff); }
.qd-feat__item:nth-child(4n+4) .qd-feat__icon { color: var(--qd-dark); background: color-mix(in srgb, var(--qd-dark) 10%, #fff); }
.qd-feat__item:hover .qd-feat__icon { animation: qd-bounce .7s; background: currentColor; }
.qd-feat__item:hover .qd-feat__icon svg { fill: #fff; }
.qd-feat__body { display: flex; flex-direction: column; min-width: 0; }
.qd-feat__body b { font-size: 17px; }
.qd-feat__body small { font-size: 13px; color: #64748b; }
@keyframes qd-bounce { 0%, 100% { transform: translateY(0); } 30% { transform: translateY(-9px); } 55% { transform: translateY(0); } 75% { transform: translateY(-4px); } }

/* Категории */
.qd-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.qd-cat {
	display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 18px 12px; background: #fff; border-radius: var(--qd-radius);
	color: var(--qd-dark); text-align: center; transition: transform .25s, box-shadow .25s;
}
.qd-cat:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(15, 23, 42, .1); text-decoration: none; }
.qd-cat__img {
	width: 96px; height: 96px; border-radius: 50%; background: #f4f7fa; display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--qd-primary);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--qd-primary) 14%, transparent); transition: box-shadow .25s, transform .25s;
}
.qd-cat:hover .qd-cat__img { box-shadow: 0 0 0 3px var(--qd-primary); transform: scale(1.05); }
.qd-cat__img img { width: 100%; height: 100%; object-fit: cover; }
.qd-cat__name { font-weight: 600; font-size: 14px; }
.qd-cat:hover .qd-cat__name { color: var(--qd-primary); }

/* Баннеры */
.qd-banners { display: grid; grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); gap: 16px; }
.qd-banner { display: block; border-radius: var(--qd-radius); overflow: hidden; }
.qd-banner img { display: block; width: 100%; transition: transform .5s; }
.qd-banner:hover img { transform: scale(1.04); }

/* Бренды */
.qd-brands { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.qd-brands__track { display: flex; gap: 48px; width: max-content; animation: qd-marquee var(--speed, 40s) linear infinite; }
.qd-brands:hover .qd-brands__track { animation-play-state: paused; }
.qd-brand { flex: 0 0 auto; height: 70px; display: flex; align-items: center; }
.qd-brand__in { display: flex; height: 100%; }
.qd-brand img { height: 100%; width: auto; max-width: 180px; object-fit: contain; filter: grayscale(1); opacity: .7; transition: .3s; }
.qd-brand:hover img { filter: none; opacity: 1; transform: scale(1.1); }
@keyframes qd-marquee { to { transform: translateX(-50%); } }

/* Текст, рассылка */
.qd-text { background: #fff; border-radius: var(--qd-radius); padding: 24px 28px; }
.qd-news {
	display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 34px 40px; border-radius: var(--qd-radius);
	background: linear-gradient(135deg, var(--qd-primary), color-mix(in srgb, var(--qd-primary) 55%, #000)); color: #fff;
}
.qd-news h2 { color: #fff; margin: 0 0 4px; }
.qd-news p { margin: 0; opacity: .9; }
.qd-news__form form { display: flex; gap: 10px; }
.qd-news__form input[type="email"], .qd-news__form input[type="text"] { border: 0; min-width: 260px; border-radius: 999px; padding: 13px 20px; }
.qd-news__form button, .qd-news__form input[type="submit"] { border: 0; border-radius: 999px; padding: 13px 26px; background: var(--qd-dark); color: #fff; font-weight: 600; cursor: pointer; }

/* ============ Карусель товаров + рекламная карточка ============ */
.qd-prod-wrap--banner { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 24px; align-items: stretch; }
.qd-prod-wrap--banner .qd-carousel { min-width: 0; }
.qd-prod-banner {
	position: relative; display: block; border-radius: var(--qd-radius); overflow: hidden; min-height: 100%;
	color: #fff; text-decoration: none; box-shadow: 0 10px 30px rgba(15, 23, 42, .12);
}
.qd-prod-banner:hover { text-decoration: none; }
.qd-prod-banner__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s; }
.qd-prod-banner:hover .qd-prod-banner__img { transform: scale(1.06); }
.qd-prod-banner__body { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 10px; padding: 54px 20px 22px; min-height: 320px; }
.qd-prod-banner__title { font-size: 21px; line-height: 1.25; }
.qd-prod-banner__text { font-size: 13px; opacity: .92; }
.qd-prod-banner__btn { margin-top: 8px; align-self: flex-start; background: #fff; color: var(--qd-dark); font-weight: 600; font-size: 13px; padding: 10px 20px; border-radius: 999px; transition: transform .2s; }
.qd-prod-banner:hover .qd-prod-banner__btn { transform: translateX(3px); }

.qd-carousel { position: relative; --gap: 16px; }
.qd-carousel__viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; padding: 6px 2px 16px; margin: -6px -2px -16px; }
.qd-carousel__viewport::-webkit-scrollbar { display: none; }
.qd-carousel .products { display: flex !important; gap: var(--gap); margin: 0 !important; padding: 0; list-style: none; }
.qd-carousel .products li.product {
	flex: 0 0 calc((100% - var(--gap) * (var(--cols) - 1)) / var(--cols)); width: auto !important; margin: 0 !important; scroll-snap-align: start;
}
.qd-carousel__nav {
	position: absolute; top: 42%; transform: translateY(-50%); z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 0;
	background: #fff; color: var(--qd-dark); cursor: pointer; display: flex; align-items: center; justify-content: center;
	box-shadow: 0 6px 20px rgba(15, 23, 42, .2); transition: .2s;
}
.qd-carousel__nav:hover { background: var(--qd-primary); color: #fff; }
.qd-carousel__prev { left: -18px; }
.qd-carousel__next { right: -18px; }
.qd-carousel__nav[disabled] { opacity: 0; pointer-events: none; }

/* ============ Товары (WooCommerce) ============ */
.woocommerce ul.products, .woocommerce-page ul.products { display: grid; grid-template-columns: repeat(var(--qd-cols, 4), minmax(0, 1fr)); gap: 16px; margin: 0 0 24px; padding: 0; list-style: none; }
.woocommerce ul.products::before, .woocommerce ul.products::after { content: none; }
.woocommerce ul.products.columns-3 { --qd-cols: 3; }
.woocommerce ul.products.columns-4 { --qd-cols: 4; }
.woocommerce ul.products.columns-5 { --qd-cols: 5; }
.woocommerce ul.products.columns-6 { --qd-cols: 6; }
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product,
.woocommerce ul.products[class*="columns-"] li.product, .woocommerce-page ul.products[class*="columns-"] li.product {
	position: relative; float: none !important; width: auto !important; margin: 0 !important; padding: 14px; background: #fff; border-radius: var(--qd-radius);
	display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s;
}
.woocommerce ul.products li.product:hover { transform: translateY(-5px); box-shadow: 0 14px 34px rgba(15, 23, 42, .12); }
.woocommerce ul.products li.product a img { width: 100%; aspect-ratio: 1; object-fit: contain; margin: 0 0 12px; border-radius: calc(var(--qd-radius) - 4px); transition: transform .4s; }
.woocommerce ul.products li.product:hover a img { transform: scale(1.05); }
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-size: 14px; font-weight: 600; padding: 0; margin: 0 0 8px; color: var(--qd-dark);
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em;
}
.woocommerce ul.products li.product .price, .woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--qd-primary); font-weight: 700; font-size: 17px; }
.woocommerce ul.products li.product .price del { color: #94a3b8; font-weight: 400; font-size: 13px; opacity: 1; }
.woocommerce ul.products li.product .price ins { text-decoration: none; }
.woocommerce ul.products li.product .button { margin-top: auto; width: 100%; padding: 10px 14px; font-size: 13px; }
.woocommerce span.onsale {
	position: absolute; top: 12px; left: 12px; right: auto; z-index: 2; margin: 0; min-width: 0; min-height: 0; line-height: 1;
	padding: 6px 10px; border-radius: 999px; background: #ef4444; color: #fff; font-size: 12px; font-weight: 700;
}
.qd-stock-badge {
	position: absolute; top: 12px; left: 12px; z-index: 2; line-height: 1; padding: 6px 10px; border-radius: 999px;
	background: var(--qd-dark); color: #fff; font-size: 11px; font-weight: 700;
}
li.product:has(.woocommerce span.onsale) .qd-stock-badge { top: 46px; }
li.product:has(.qd-stock-badge) img { opacity: .55; }
.woocommerce .star-rating span::before { color: #f59e0b; }
.woocommerce-result-count, .woocommerce-ordering { margin-bottom: 18px; }
.woocommerce nav.woocommerce-pagination ul { border: 0; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; margin: 0 3px; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span { border-radius: 10px; padding: 9px 14px; background: #fff; }
.woocommerce nav.woocommerce-pagination ul li span.current, .woocommerce nav.woocommerce-pagination ul li a:hover { background: var(--qd-primary); color: #fff; }

/* Каталог с колонкой фильтров */
.qd-shop--side { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 28px; align-items: start; }
.qd-shop__aside { position: sticky; top: 16px; }
.qd-shop__toggle { display: none; }
.qd-widget { background: #fff; border-radius: var(--qd-radius); padding: 18px 20px; margin-bottom: 16px; }
.qd-widget__title { font-size: 15px; margin-bottom: 12px; }
.qd-widget ul { list-style: none; padding: 0; margin: 0; }
.qd-widget li { padding: 4px 0; }

/* Страница товара */
.woocommerce div.product { background: #fff; border-radius: var(--qd-radius); padding: 28px; }
.woocommerce div.product .product_title { font-size: 26px; }
.woocommerce div.product form.cart .button { padding: 13px 30px; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { border-radius: 12px 12px 0 0; }
.woocommerce div.product div.images img {
	border-radius: var(--qd-radius);
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	background: #f4f7fa;
}
.woocommerce-message, .woocommerce-info, .woocommerce-error { border-radius: 12px; border-top-color: var(--qd-primary); background: #fff; }
.woocommerce-message::before, .woocommerce-info::before { color: var(--qd-primary); }
.woocommerce table.shop_table { border-radius: 12px; overflow: hidden; background: #fff; }
.woocommerce-cart .cart-collaterals .cart_totals, .woocommerce-checkout #order_review { background: #fff; padding: 22px; border-radius: var(--qd-radius); }

/* Записи */
.qd-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.qd-post { background: #fff; border-radius: var(--qd-radius); overflow: hidden; padding-bottom: 20px; }
.qd-post__img img { display: block; width: 100%; }
.qd-post__title, .qd-post__excerpt, .qd-more { padding: 0 20px; }
.qd-post__title { font-size: 18px; margin-top: 16px; }
.qd-post__title a { color: var(--qd-dark); }
.qd-404 { text-align: center; padding: 80px 20px; }
.qd-404 h1 { font-size: 96px; color: var(--qd-primary); margin: 0; }

/* ============ Подвал ============ */
.qd-footer { background: #1e293b; color: #cbd5e1; margin-top: 30px; }
.qd-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr .8fr; gap: 40px; padding-top: 48px; padding-bottom: 36px; }
.qd-footer h3 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.qd-footer a { color: #cbd5e1; }
.qd-footer a:hover { color: #fff; }
.qd-footer .qd-logo { background: #fff; padding: 10px 14px; border-radius: 14px; margin-bottom: 16px; }
.qd-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.qd-footer__contacts svg { vertical-align: -3px; margin-right: 6px; color: var(--qd-primary); }
.qd-socials { display: flex; gap: 10px; margin-top: 16px; }
.qd-socials a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .1); display: flex; align-items: center; justify-content: center; transition: .2s; }
.qd-socials a:hover { background: var(--qd-primary); transform: translateY(-3px); }
.qd-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 18px 0; font-size: 13px; text-align: center; }
.qd-footer__bottom-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 22px; }
.qd-legal { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.qd-legal a { color: rgba(255, 255, 255, .7); }
.qd-legal a:hover { color: #fff; }


/* ============ Карточки: кнопки, рейтинг ============ */
.qd-card-actions { position: absolute; top: 12px; right: 12px; z-index: 3; display: flex; flex-direction: column; gap: 8px; opacity: 0; transform: translateX(8px); transition: .25s; }
li.product:hover .qd-card-actions, .qd-card-actions:focus-within { opacity: 1; transform: none; }
.qd-wl-btn.is-active { opacity: 1; }
.qd-card-actions button {
	width: 38px; height: 38px; border: 0; border-radius: 50%; background: #fff; color: var(--qd-dark); cursor: pointer;
	display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(15, 23, 42, .18); transition: background .2s, color .2s, transform .2s;
}
.qd-card-actions button:hover { background: var(--qd-primary); color: #fff; transform: scale(1.08); }
.qd-wl-btn svg { fill: none; stroke: currentColor; stroke-width: 2; }
.qd-wl-btn.is-active { color: #ef4444; }
.qd-wl-btn.is-active svg { fill: currentColor; }
.qd-wl-btn.is-active:hover { color: #fff; }
li.product:has(.qd-wl-btn.is-active) .qd-card-actions { opacity: 1; transform: none; }
.woocommerce ul.products li.product .star-rating { margin: 0 0 6px; font-size: 12px; }
@media (hover: none) { .qd-card-actions { opacity: 1; transform: none; } }

.qd-act--wl .qd-cart-count, .qd-wl-count { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: #ef4444; color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.qd-wl-count.is-empty { display: none; }
.qd-wl-empty { background: #fff; padding: 40px; border-radius: var(--qd-radius); text-align: center; color: #64748b; }

.qd-cmp-btn.is-active { opacity: 1; color: var(--qd-primary); }
.qd-cmp-btn.is-active:hover { color: #fff; }
li.product:has(.qd-cmp-btn.is-active) .qd-card-actions { opacity: 1; transform: none; }
.qd-act--cmp { position: relative; }
.qd-cmp-count { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--qd-primary); color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.qd-cmp-count.is-empty { display: none; }
.qd-cmp-empty { background: #fff; padding: 40px; border-radius: var(--qd-radius); text-align: center; color: #64748b; }

/* ============ Таблица сравнения ============ */
.qd-cmp-wrap { overflow-x: auto; background: #fff; border-radius: var(--qd-radius); }
.qd-cmp-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.qd-cmp-table th, .qd-cmp-table td { padding: 12px 16px; border-bottom: 1px solid #eef2f6; text-align: center; vertical-align: middle; }
.qd-cmp-table th { text-align: left; width: 160px; font-weight: 600; color: var(--qd-dark); white-space: nowrap; }
.qd-cmp-table td { min-width: 180px; }
.qd-cmp-row--img img { max-width: 120px; height: auto; margin: 0 auto; border-radius: 10px; background: #f4f7fa; }
.qd-cmp-title { font-weight: 600; color: var(--qd-dark); }
.qd-cmp-row--price .price { color: var(--qd-primary); font-weight: 700; }
.qd-cmp-remove { border: 0; background: #f4f7fa; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: #64748b; transition: .2s; }
.qd-cmp-remove:hover { background: #ef4444; color: #fff; }
.qd-cmp-row--cart .button { display: inline-block; }

/* ============ Мини-корзина ============ */
.qd-minicart[hidden], .qd-qv[hidden] { display: none; }
.qd-minicart, .qd-qv { position: fixed; inset: 0; z-index: 100002; }
.qd-minicart__bg, .qd-qv__bg { position: absolute; inset: 0; background: rgba(15, 23, 42, .5); animation: qd-fade .2s; }
.qd-minicart__panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(400px, 92vw); background: #fff; display: flex; flex-direction: column; animation: qd-slide-r .25s ease; box-shadow: 0 0 40px rgba(0, 0, 0, .3); }
@keyframes qd-slide-r { from { transform: translateX(100%); } }
.qd-minicart__head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid #eef2f6; }
.qd-minicart__head h3 { margin: 0; font-size: 20px; }
.qd-minicart__close { border: 0; background: #f4f7fa; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.qd-minicart .widget_shopping_cart_content { flex: 1; overflow-y: auto; display: flex; flex-direction: column; padding: 0 20px 20px; }
.qd-minicart ul.woocommerce-mini-cart { list-style: none; margin: 0; padding: 8px 0; flex: 1; }
.qd-minicart .woocommerce-mini-cart-item { position: relative; display: block; padding: 14px 28px 14px 0; border-bottom: 1px solid #eef2f6; min-height: 86px; }
.qd-minicart .widget_shopping_cart_content ul.woocommerce-mini-cart li.woocommerce-mini-cart-item img { float: left !important; width: 64px !important; height: 64px !important; object-fit: contain; margin: 0 14px 0 0 !important; border-radius: 10px; background: #f4f7fa; }
.qd-minicart .woocommerce-mini-cart-item a:not(.remove) { font-weight: 600; color: var(--qd-dark); display: block; overflow: hidden; }
.qd-minicart .woocommerce-mini-cart-item .quantity { color: #64748b; font-size: 13px; }
.qd-minicart a.remove { position: absolute; right: 0; top: 14px; width: 22px; height: 22px; line-height: 20px; text-align: center; border-radius: 50%; background: #f4f7fa; color: #ef4444 !important; font-size: 16px; }
.qd-minicart a.remove:hover { background: #ef4444; color: #fff !important; text-decoration: none; }
.qd-minicart .woocommerce-mini-cart__total { display: flex; justify-content: space-between; font-size: 17px; padding: 16px 0 8px; margin: 0; }
.qd-minicart .woocommerce-mini-cart__buttons { display: grid; gap: 10px; margin: 0; }
.qd-minicart .woocommerce-mini-cart__buttons a.button { width: 100%; padding: 13px; }
.qd-minicart .woocommerce-mini-cart__buttons a.button:not(.checkout) { background: #f4f7fa; color: var(--qd-dark); }
.qd-minicart .woocommerce-mini-cart__empty-message { padding: 40px 0; text-align: center; color: #64748b; }

/* ============ Быстрый просмотр ============ */
.qd-qv { display: flex; align-items: center; justify-content: center; padding: 20px; }
.qd-qv[hidden] { display: none; }
.qd-qv__box { position: relative; width: min(880px, 100%); max-height: 90vh; overflow: auto; background: #fff; border-radius: var(--qd-radius); padding: 28px; animation: qd-pop .25s ease; }
@keyframes qd-pop { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.qd-qv__close { position: absolute; right: 14px; top: 14px; z-index: 2; border: 0; background: #f4f7fa; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.qd-qv__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
.qd-qv__img img { width: 100%; height: auto; border-radius: var(--qd-radius); background: #f4f7fa; }
.qd-qv__sum .product_title { font-size: 24px; margin-top: 0; padding-right: 40px; }
.qd-qv__sum .price { color: var(--qd-primary); font-weight: 700; font-size: 24px; }
.qd-qv__sum form.cart { display: flex; gap: 10px; margin: 18px 0; }
.qd-qv__sum .qd-qv__more { display: inline-block; margin-top: 8px; font-weight: 600; }
.qd-qv__loading { grid-column: 1 / -1; height: 260px; display: flex; align-items: center; justify-content: center; }
.qd-qv__loading::after { content: ""; width: 40px; height: 40px; border: 4px solid #e2e8f0; border-top-color: var(--qd-primary); border-radius: 50%; animation: qd-spin .8s linear infinite; }
@keyframes qd-spin { to { transform: rotate(360deg); } }

.qd-top { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--qd-primary); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 22px rgba(8, 162, 193, .45); transition: transform .2s; }
.qd-top[hidden] { display: none; }
.qd-top svg { transform: rotate(90deg); }
.qd-top:hover { transform: translateY(-3px); }

.qd-cookie[hidden] { display: none; }
.qd-cookie {
	position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 95; max-width: 560px; margin: 0 auto;
	background: var(--qd-dark); color: #fff; border-radius: var(--qd-radius); padding: 18px 20px; box-shadow: 0 14px 40px rgba(0, 0, 0, .25);
	display: flex; flex-wrap: wrap; align-items: center; gap: 14px; animation: qd-cookie-in .3s ease;
}
@keyframes qd-cookie-in { from { opacity: 0; transform: translateY(16px); } }
.qd-cookie p { margin: 0; font-size: 13px; flex: 1 1 220px; opacity: .92; }
.qd-cookie__ok { flex: 0 0 auto; border: 0; border-radius: 999px; padding: 10px 22px; background: var(--qd-primary); color: #fff; font-weight: 600; cursor: pointer; }
.qd-cookie__ok:hover { background: color-mix(in srgb, var(--qd-primary) 85%, #000); }

/* ============ Каталог и страница товара ============ */
.woocommerce-breadcrumb { font-size: 13px; color: #94a3b8; margin: 0 0 18px !important; padding: 0; }
.woocommerce-breadcrumb a { color: #64748b; }
.woocommerce-breadcrumb a:hover { color: var(--qd-primary); }
.woocommerce-products-header { margin-bottom: 20px; }
.woocommerce-products-header__title, .page-title { font-size: 30px; margin: 0 0 8px; }
.woocommerce-result-count { float: left; color: #64748b; margin: 8px 0 18px; }
.woocommerce-ordering { float: right; margin: 0 0 18px; }
.woocommerce-ordering select { border-radius: 999px; padding: 9px 18px; }
.woocommerce ul.products { clear: both; }

.woocommerce div.product { display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 1fr); gap: 40px; align-items: start; }
.woocommerce div.product div.images, .woocommerce div.product div.summary { float: none; width: auto; margin: 0; }
.woocommerce div.product div.images { max-width: 480px; }
.woocommerce div.product .woocommerce-tabs, .woocommerce div.product .related, .woocommerce div.product .upsells { grid-column: 1 / -1; }
.woocommerce div.product .woocommerce-tabs, .woocommerce div.product section.related, .woocommerce div.product section.upsells { grid-column: 1 / -1; }
.woocommerce div.product div.images .woocommerce-product-gallery__wrapper { border-radius: var(--qd-radius); overflow: hidden; background: #f4f7fa; }
.woocommerce div.product div.images .flex-control-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 12px; padding: 0; list-style: none; }
.woocommerce div.product div.images .flex-control-thumbs li { width: auto; float: none; }
.woocommerce div.product div.images .flex-control-thumbs img { border-radius: 12px; opacity: .6; cursor: pointer; transition: .2s; width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: #f4f7fa; }
.woocommerce div.product div.images .flex-control-thumbs img.flex-active, .woocommerce div.product div.images .flex-control-thumbs img:hover { opacity: 1; }
.woocommerce div.product .product_title { font-size: 30px; margin-bottom: 10px; }
.woocommerce div.product p.price, .woocommerce div.product span.price { font-size: 28px; }
.woocommerce div.product p.price del { color: #94a3b8; font-size: 18px; }
.woocommerce div.product p.stock.out-of-stock { display: inline-block; color: #ef4444; font-weight: 700; background: #fee2e2; padding: 6px 14px; border-radius: 999px; font-size: 13px; }
.woocommerce div.product p.price ins { text-decoration: none; }
.woocommerce div.product .woocommerce-product-details__short-description { color: #64748b; margin-bottom: 18px; }
.woocommerce div.product form.cart { display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap; margin: 20px 0; }
.woocommerce .quantity .qty { width: 84px; height: 100%; min-height: 48px; border-radius: 999px; text-align: center; font-weight: 600; }
.woocommerce div.product form.cart .single_add_to_cart_button { flex: 1; min-width: 180px; min-height: 48px; }
.woocommerce div.product .product_meta { font-size: 13px; color: #64748b; display: grid; gap: 4px; padding-top: 16px; border-top: 1px solid #eef2f6; }
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0; margin: 0 0 20px; display: flex; gap: 8px; border-bottom: 1px solid #e8edf3; }
.woocommerce div.product .woocommerce-tabs ul.tabs::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { background: none; border: 0; margin: 0; padding: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { display: block; padding: 12px 20px; color: #64748b; font-weight: 600; border-bottom: 3px solid transparent; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--qd-primary); border-bottom-color: var(--qd-primary); }
.woocommerce div.product .woocommerce-tabs .panel { margin: 0; }
.woocommerce div.product section.related > h2, .woocommerce div.product section.upsells > h2 { font-size: 22px; }

/* Корзина / оформление / аккаунт */
.woocommerce table.shop_table { border: 0; border-collapse: separate; border-spacing: 0; }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { padding: 16px; border-color: #eef2f6; }
.woocommerce-cart table.cart img { width: 72px; border-radius: 10px; }
.woocommerce-cart .cart-collaterals .cart_totals h2, .woocommerce-checkout h3 { font-size: 20px; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select { border-radius: 12px; padding: 12px 14px; border: 1px solid #dbe2ea; }
.woocommerce-checkout #payment { background: #f4f7fa; border-radius: var(--qd-radius); }
.woocommerce-checkout #payment div.payment_box { background: #fff; border-radius: 12px; }
.woocommerce-checkout #payment div.payment_box::before { display: none; }
.woocommerce-checkout #place_order { width: 100%; padding: 16px; font-size: 16px; }
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; background: #fff; border-radius: var(--qd-radius); overflow: hidden; }
.woocommerce-account .woocommerce-MyAccount-navigation li a { display: block; padding: 14px 20px; color: var(--qd-dark); border-bottom: 1px solid #eef2f6; }
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a, .woocommerce-account .woocommerce-MyAccount-navigation li a:hover { background: color-mix(in srgb, var(--qd-primary) 10%, #fff); color: var(--qd-primary); text-decoration: none; }
.woocommerce-account .woocommerce-MyAccount-content { background: #fff; border-radius: var(--qd-radius); padding: 24px; }

@media (max-width: 900px) {
	.woocommerce div.product { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.woocommerce div.product div.images { max-width: 420px; margin: 0 auto; }
	.qd-qv__body { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
	.woocommerce-products-header__title { font-size: 24px; }
	.woocommerce div.product .product_title { font-size: 24px; }
	.woocommerce div.product .woocommerce-tabs ul.tabs { overflow-x: auto; }
	.qd-qv__box { padding: 18px; }
}

/* ============ Адаптивность ============ */
@media (max-width: 1100px) {
	.qd-hero--side { grid-template-columns: minmax(0, 1fr); }
	.qd-hero__side { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
	.qd-side img { aspect-ratio: 16 / 7; }
	.qd-feat { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.qd-footer__grid { grid-template-columns: 1fr 1fr; }
	.woocommerce ul.products, .woocommerce-page ul.products { --qd-cols: 3 !important; }
	.qd-carousel { --cols: 4 !important; }
	.qd-carousel__prev { left: -8px; }
	.qd-carousel__next { right: -8px; }
}
@media (max-width: 900px) {
	.qd-topbar__right { display: none; }
	.qd-navbar { display: none; }
	.qd-burger { display: flex; }
	.qd-main-bar__in { flex-wrap: wrap; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
	.qd-logo { order: 2; margin-right: auto; }
	.qd-burger { order: 1; }
	.qd-actions { order: 3; }
	.qd-search { order: 4; flex: 1 1 100%; max-width: none; }
	.qd-hotline { display: none; }
	.qd-shop--side { grid-template-columns: minmax(0, 1fr); }
	.qd-shop__aside { position: static; }
	.qd-shop__toggle { display: inline-flex; margin-bottom: 12px; padding: 10px 18px; border: 0; border-radius: 999px; background: var(--qd-primary); color: #fff; font-weight: 600; cursor: pointer; }
	.qd-shop__filters { display: none; }
	.qd-shop__aside.is-open .qd-shop__filters { display: block; }
	.qd-news { flex-direction: column; align-items: stretch; padding: 26px 22px; }
	.qd-news__form form { flex-direction: column; }
	.qd-news__form input[type="email"], .qd-news__form input[type="text"] { min-width: 0; width: 100%; }
	.qd-prod-wrap--banner { grid-template-columns: minmax(0, 1fr); }
	.qd-prod-banner__body { min-height: 300px; padding-top: 110px; }
}
@media (max-width: 640px) {
	.qd-container { padding: 0 14px; }
	.qd-sec { margin-bottom: 30px; }
	.qd-sec__title { font-size: 20px; }
	.qd-slide img { aspect-ratio: 4 / 3; max-height: none; }
	.qd-slide__title { font-size: 18px; left: 16px; bottom: 30px; }
	.qd-slider__nav { display: none; }
	.qd-hero__side { grid-template-columns: 1fr; }
	.qd-feat { grid-template-columns: minmax(0, 1fr); gap: 12px; }
	.qd-feat--pill .qd-feat__item { padding: 18px 26px; }
	.qd-banners { grid-template-columns: minmax(0, 1fr); }
	.qd-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
	.qd-cat { padding: 12px 6px; }
	.qd-cat__img { width: 70px; height: 70px; }
	.qd-cat__name { font-size: 12px; }
	.woocommerce ul.products, .woocommerce-page ul.products { --qd-cols: 2 !important; gap: 10px; }
	.qd-carousel { --cols: 2 !important; --gap: 10px; }
	.qd-carousel__nav { display: none; }
	.woocommerce ul.products li.product { padding: 10px; }
	.qd-footer__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 34px; }
	.qd-page, .qd-content, .woocommerce div.product { padding: 18px; }
	.qd-logo__img { max-width: 130px; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	.qd-brands__track { animation: none; }
}

/* ============ Блоки WooCommerce (корзина и оформление нового типа) ============ */
.wc-block-components-button:not(.is-link),
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button {
	background: var(--qd-primary) !important; color: #fff !important; border-radius: 999px !important; border: 0 !important;
	font-weight: 600; padding: 14px 24px; transition: filter .2s, box-shadow .2s;
}
.wc-block-components-button:not(.is-link):hover, .wc-block-cart__submit-button:hover, .wc-block-components-checkout-place-order-button:hover { filter: brightness(1.08); box-shadow: 0 6px 16px rgba(8, 162, 193, .35); }
.wc-block-components-product-name { color: var(--qd-dark); font-weight: 600; }
.wc-block-components-product-price { color: var(--qd-primary); font-weight: 700; }
.wc-block-cart-items .wc-block-cart-item__image img, .wc-block-components-order-summary-item__image img { border-radius: 10px; background: #f4f7fa; }
.wc-block-components-totals-item__value { font-weight: 700; }
.wc-block-components-text-input input, .wc-block-components-select .wc-blocks-components-select__select { border-radius: 12px !important; }
.wc-block-components-radio-control__option-checked, .wc-block-components-radio-control-accordion-option--checked-option-highlighted { border-radius: 12px; }

/* ============ Вид меню (выбирается в Настройщике) ============ */
/* Обычное — уже задано выше по умолчанию. */

.qd-menu-underline .qd-nav__list > li > a { position: relative; }
.qd-menu-underline .qd-nav__list > li > a:hover { background: none; }
.qd-menu-underline .qd-nav__list > li > a::after {
	content: ""; position: absolute; left: 14px; right: 14px; bottom: 8px; height: 2px;
	background: #fff; transform: scaleX(0); transform-origin: left; transition: transform .28s ease;
}
.qd-menu-underline .qd-nav__list > li > a:hover::after,
.qd-menu-underline .qd-nav__list > li.current-menu-item > a::after { transform: scaleX(1); }

.qd-menu-pill .qd-nav__list { gap: 6px; }
.qd-menu-pill .qd-nav__list > li > a { border-radius: 999px; padding: 9px 18px; transition: background .25s ease, color .25s ease, transform .25s ease; }
.qd-menu-pill .qd-nav__list > li > a:hover,
.qd-menu-pill .qd-nav__list > li.current-menu-item > a { background: #fff; color: var(--qd-primary); transform: translateY(-2px); }

.qd-menu-boxed .qd-nav__list { gap: 6px; }
.qd-menu-boxed .qd-nav__list > li > a { border: 2px solid transparent; border-radius: 10px; padding: 9px 14px; transition: border-color .25s ease, background .25s ease; }
.qd-menu-boxed .qd-nav__list > li > a:hover,
.qd-menu-boxed .qd-nav__list > li.current-menu-item > a { border-color: rgba(255, 255, 255, .85); background: rgba(255, 255, 255, .08); }

.qd-menu-glow .qd-nav__list > li > a { border-radius: 10px; transition: background .25s ease, box-shadow .25s ease, transform .25s ease; }
.qd-menu-glow .qd-nav__list > li > a:hover,
.qd-menu-glow .qd-nav__list > li.current-menu-item > a {
	background: rgba(255, 255, 255, .16); transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(0, 0, 0, .22), 0 0 0 1px rgba(255, 255, 255, .35) inset;
}

/* ============ Анимация выпадающих подменю ============ */
.qd-sub-none .qd-nav__list .sub-menu,
.qd-sub-none .qd-cats-btn__panel { transition: none; transform: none; }

.qd-sub-slide .qd-nav__list .sub-menu,
.qd-sub-slide .qd-cats-btn__panel { transform: translateY(-14px); }
.qd-sub-slide .qd-nav__list li:hover > .sub-menu,
.qd-sub-slide .qd-nav__list li:focus-within > .sub-menu,
.qd-sub-slide .qd-cats-btn:hover .qd-cats-btn__panel,
.qd-sub-slide .qd-cats-btn.is-open .qd-cats-btn__panel { transform: translateY(0); }

.qd-sub-zoom .qd-nav__list .sub-menu,
.qd-sub-zoom .qd-cats-btn__panel { transform: scale(.92); transform-origin: top center; }
.qd-sub-zoom .qd-nav__list li:hover > .sub-menu,
.qd-sub-zoom .qd-nav__list li:focus-within > .sub-menu,
.qd-sub-zoom .qd-cats-btn:hover .qd-cats-btn__panel,
.qd-sub-zoom .qd-cats-btn.is-open .qd-cats-btn__panel { transform: scale(1); }

.qd-sub-flip .qd-nav__list .sub-menu,
.qd-sub-flip .qd-cats-btn__panel { transform: perspective(700px) rotateX(-55deg); transform-origin: top center; }
.qd-sub-flip .qd-nav__list li:hover > .sub-menu,
.qd-sub-flip .qd-nav__list li:focus-within > .sub-menu,
.qd-sub-flip .qd-cats-btn:hover .qd-cats-btn__panel,
.qd-sub-flip .qd-cats-btn.is-open .qd-cats-btn__panel { transform: perspective(700px) rotateX(0); }

/* ============ Карточки товаров при наведении ============ */
.qd-card-none .woocommerce ul.products li.product:hover { transform: none; box-shadow: none; }
.qd-card-zoom .woocommerce ul.products li.product:hover { transform: scale(1.04); box-shadow: 0 12px 30px rgba(15, 23, 42, .12); }
.qd-card-glow .woocommerce ul.products li.product:hover {
	transform: none;
	box-shadow: 0 0 0 2px var(--qd-primary), 0 12px 30px color-mix(in srgb, var(--qd-primary) 35%, transparent);
}
.qd-card-tilt .woocommerce ul.products li.product { transform-style: preserve-3d; }
.qd-card-tilt .woocommerce ul.products li.product:hover {
	transform: perspective(900px) rotateX(4deg) rotateY(-4deg) translateY(-4px);
	box-shadow: 0 16px 34px rgba(15, 23, 42, .16);
}

/* ============ Появление блоков при прокрутке ============ */
body[class*="qd-anim-"] .qd-sec.qd-reveal { opacity: 0; transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1); will-change: opacity, transform; }
.qd-anim-fade-up .qd-sec.qd-reveal { transform: translateY(36px); }
.qd-anim-zoom .qd-sec.qd-reveal { transform: scale(.94); }
.qd-anim-slide .qd-sec.qd-reveal { transform: translateX(48px); }
body[class*="qd-anim-"] .qd-sec.qd-reveal.qd-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	body[class*="qd-anim-"] .qd-sec.qd-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}
