/*
Theme Name: Дніпро Лайн
Description: Тема інтернет-магазину ТОВ «ДНІПРО ЛАЙН». Блокова, працює з WooCommerce.
Version: 3.1.0
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: dniproline
*/

:root {
	--dl-base: var(--wp--preset--color--base);
	--dl-surface: var(--wp--preset--color--surface);
	--dl-strip: var(--wp--preset--color--strip);
	--dl-line: var(--wp--preset--color--line);
	--dl-muted: var(--wp--preset--color--muted);
	--dl-text: var(--wp--preset--color--text);
	--dl-graphite: var(--wp--preset--color--graphite);
	--dl-accent: var(--wp--preset--color--accent);
	--dl-accent-dark: var(--wp--preset--color--accent-dark);
	--dl-orange: var(--wp--preset--color--orange);
	--dl-heading: var(--wp--preset--font-family--heading);
	/* фірмовий градієнт із логотипа й комерційної пропозиції */
	--dl-brand: linear-gradient(90deg, #D32F3B 0%, #E5572A 45%, #F28320 100%);
	--dl-brand-deep: linear-gradient(135deg, #C62A35 0%, #DD4A2A 100%);
	--dl-radius: 4px;
	--dl-shadow: 0 2px 12px rgba(38, 40, 44, 0.16);
}

body { -webkit-font-smoothing: antialiased; }
.wp-site-blocks > * { margin-block-start: 0; }

:where(a, button, input, select, textarea, summary):focus-visible {
	outline: 2px solid var(--dl-orange);
	outline-offset: 2px;
}

/* ---------- Верхня смуга з контактами ---------- */
.dl-topbar { background: var(--dl-graphite); color: #fff; font-family: var(--dl-heading); font-size: 0.8125rem; padding-top: 7px; padding-bottom: 7px; }
.dl-topbar__row { gap: 4px 28px; align-items: center; }
.dl-topbar p { margin: 0; color: #fff; }
.dl-topbar a { color: #fff; text-decoration: none; font-weight: 600; white-space: nowrap; }
.dl-topbar a:hover { text-decoration: underline; text-underline-offset: 3px; }
.dl-topbar__contacts { gap: 4px 28px; }
.dl-topbar__role { opacity: 0.8; }

/* ---------- Шапка ---------- */
.dl-header { position: relative; z-index: 50; background: var(--dl-base); }
.dl-header::before { content: ""; display: block; height: 4px; background: var(--dl-brand); }
.dl-header__row { gap: 12px 36px; align-items: center; padding-top: 14px; padding-bottom: 0; }
.dl-logo { gap: 12px; align-items: center; flex: 0 0 auto; padding-bottom: 14px; }
.dl-logo .wp-block-image { margin: 0; line-height: 0; }
.dl-logo .wp-block-image img { width: 46px; height: 46px; display: block; }
.dl-logo .wp-block-site-title { margin: 0; white-space: nowrap; }

.dl-nav { gap: 0 4px; align-items: stretch; flex: 1 1 auto; align-self: stretch; }
.dl-nav .wp-block-navigation { align-self: stretch; }
.dl-nav .wp-block-navigation__container { gap: 0 4px; height: 100%; }
.dl-nav .wp-block-navigation-item { align-self: stretch; }
.dl-nav .wp-block-navigation-item__content,
.dl-mega__toggle { display: flex; align-items: center; height: 100%; min-height: 46px; box-sizing: border-box; padding: 0 12px 14px; border: 0; border-bottom: 3px solid transparent; background: none; color: var(--dl-text); font: inherit; cursor: pointer; }
.dl-nav .wp-block-navigation-item__content:hover,
.dl-mega__toggle:hover,
.dl-mega.is-open .dl-mega__toggle,
.dl-nav .current-menu-item > .wp-block-navigation-item__content { border-bottom-color: var(--dl-orange); color: #000; }
.dl-mega__toggle { font-family: var(--dl-heading); font-weight: 500; font-size: 0.9375rem; }

.dl-tools { gap: 4px 18px; align-items: center; flex: 0 0 auto; padding-bottom: 14px; }
.dl-tools p { margin: 0; }
.dl-tools .wc-block-mini-cart__button,
.dl-tools .wp-block-woocommerce-customer-account a { color: var(--dl-text); padding: 6px; border-radius: var(--dl-radius); text-decoration: none; }
.dl-tools .wc-block-mini-cart__button:hover,
.dl-tools .wp-block-woocommerce-customer-account a:hover { color: var(--dl-accent); }
.wc-block-mini-cart__badge { background: var(--dl-accent); color: #fff; }

/* смуга пошуку */
.dl-searchbar { background: var(--dl-strip); padding-top: 8px; padding-bottom: 8px; position: relative; z-index: 20; }
.dl-searchbar .wp-block-search { margin: 0; }
.dl-searchbar .wp-block-search__inside-wrapper { border: 0; border-radius: 2px; background: var(--dl-base); padding: 0; }
.dl-searchbar .wp-block-search__input { border: 0; background: transparent url("assets/img/search.svg") no-repeat 14px center / 18px 18px; padding: 8px 12px 8px 44px; font-size: 1rem; min-width: 0; color: var(--dl-text); }
.dl-searchbar .wp-block-search__input::placeholder { color: #8A96A3; opacity: 1; }
.dl-searchbar .wp-block-search__button { margin: 0; border-radius: 0 2px 2px 0; padding: 8px 20px; }

/* ---------- Меню «Продукти» ---------- */
.dl-mega { position: static; align-self: stretch; }
.dl-mega__toggle::after { content: ""; width: 7px; height: 7px; margin-left: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); transition: transform .15s ease; }
.dl-mega.is-open .dl-mega__toggle::after { transform: translateY(1px) rotate(-135deg); }
.dl-mega__panel { position: absolute; left: clamp(16px, 4vw, 60px); top: 100%; width: min(440px, calc(100vw - 32px)); max-height: calc(100vh - 110px); overflow: auto; background: var(--dl-base); box-shadow: var(--dl-shadow); border-top: 1px solid var(--dl-line); padding: 22px 0 18px; box-sizing: border-box; }
.dl-mega__panel.has-active { width: min(880px, calc(100vw - 32px)); }
.dl-mega__head, .dl-mega__subhead { display: flex; gap: 16px; align-items: baseline; margin: 0 28px 14px; }
.dl-mega__head a, .dl-mega__subhead a { text-decoration: none; padding-left: 16px; border-left: 1px solid var(--dl-line); }
.dl-mega__head a:hover, .dl-mega__subhead a:hover { text-decoration: underline; }
.dl-mega__list { list-style: none; margin: 0; padding: 0; width: 440px; max-width: 100%; }
.dl-mega__item { display: flex; align-items: stretch; margin: 0; }
.dl-mega__link { flex: 1 1 auto; display: flex; align-items: center; gap: 14px; padding: 9px 8px 9px 24px; color: var(--dl-text); text-decoration: none; min-width: 0; }
.dl-mega__icon { width: 42px; height: 42px; object-fit: contain; flex: 0 0 42px; margin: -4px 0; }
.dl-mega__more { flex: 0 0 52px; border: 0; background: none; cursor: pointer; position: relative; }
.dl-mega__more::before { content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; border-right: 1.5px solid var(--dl-text); border-top: 1.5px solid var(--dl-text); transform: translate(-70%, -50%) rotate(45deg); }
.dl-mega__item:hover > .dl-mega__link, .dl-mega__item.is-active > .dl-mega__link { color: var(--dl-accent); }
.dl-mega__item.is-active { background: var(--dl-surface); }
.dl-mega__sub { position: absolute; left: 440px; top: 0; bottom: 0; width: 440px; max-width: calc(100% - 440px); overflow: auto; padding: 22px 0 18px; box-sizing: border-box; border-left: 1px solid var(--dl-line); background: var(--dl-base); }
.dl-mega__sub ul { list-style: none; margin: 0; padding: 0; }
.dl-mega__sub li { margin: 0; }
.dl-mega__sub li a { display: block; padding: 8px 28px; color: var(--dl-text); text-decoration: none; }
.dl-mega__sub li a:hover { color: var(--dl-accent); background: var(--dl-surface); }
html.dl-mega-open body::after { content: ""; position: fixed; inset: 0; background: rgba(51, 51, 51, 0.45); z-index: 30; pointer-events: none; }

/* ---------- Головна: перший екран ---------- */
.dl-hero { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 4px; padding: 0 !important; }
.dl-hero > * { margin: 0 !important; max-width: none !important; }
.dl-hero__main { position: relative; overflow: hidden; background: linear-gradient(90deg, #2E3035 0%, #2E3035 44%, rgba(46, 48, 53, 0) 80%), url("assets/img/hero-art.svg") no-repeat right center / auto 120%, linear-gradient(120deg, #2E3035 0%, #3A3D43 100%); color: #fff; min-height: 460px; display: flex; flex-direction: column; justify-content: flex-end; padding: 48px clamp(16px, 4vw, 60px) 48px; box-sizing: border-box; }
.dl-hero__main::after { content: ""; position: absolute; right: 0; top: 0; width: 230px; height: 126px; background: url("assets/img/stripes.svg") no-repeat right top / contain; }
.dl-hero__main > * { position: relative; max-width: 580px; margin-left: 0 !important; margin-right: 0 !important; }
.dl-hero__main h1 { color: #fff; font-size: clamp(1.6rem, 2.7vw, 2.2rem); margin: 0 0 14px; text-wrap: balance; }
.dl-hero__main p { color: #fff; margin: 0 0 26px; }
.dl-hero__main .wp-block-buttons { gap: 12px; }
.dl-hero__main .is-style-outline .wp-block-button__link { background: transparent; color: #fff; border: 1px solid #fff; padding: 11px 23px; }
.dl-hero__main .is-style-outline .wp-block-button__link:hover { background: #fff; color: var(--dl-graphite); }
.dl-hero__side { display: grid; grid-template-rows: 1fr 1fr; gap: 4px; }
.dl-hero__side > * { margin: 0 !important; max-width: none !important; }
.dl-promo { position: relative; display: flex; flex-direction: column; justify-content: flex-end; padding: 24px 28px; color: #fff; background: var(--dl-brand-deep); box-sizing: border-box; min-height: 200px; overflow: hidden; }
.dl-promo--b { background: #3A3D43; }
.dl-promo::before { content: ""; position: absolute; right: -70px; top: -70px; width: 250px; height: 250px; background: url("assets/img/bullet-gear.svg") no-repeat center / contain; opacity: 0.22; filter: brightness(0) invert(1); }
.dl-promo p { margin: 0; color: #fff; position: relative; }
.dl-promo .dl-promo__note { font-size: 0.875rem; margin-bottom: 4px; }
.dl-promo .dl-promo__title { font-family: var(--dl-heading); font-size: 1.3rem; font-weight: 600; line-height: 1.25; }
.dl-promo .dl-promo__title a { color: #fff; text-decoration: none; }
.dl-promo .dl-promo__title a::after { content: ""; position: absolute; inset: -400px; }
.dl-promo:hover { background: linear-gradient(135deg, #B5252F 0%, #CF4226 100%); }
.dl-promo--b:hover { background: #45484F; }
.dl-promo:focus-within { outline: 2px solid #fff; outline-offset: -4px; }

/* ---------- Розділи ---------- */
.dl-section { padding-top: clamp(32px, 5vw, 56px); padding-bottom: clamp(32px, 5vw, 56px); }
.dl-section--grey { background: var(--dl-surface); }
.dl-section > h2, .dl-section__head h2 { margin: 0 0 22px; }
.dl-section__head { align-items: baseline; gap: 8px 24px; }
.dl-section__head p { margin: 0 0 22px; }
.dl-section__lead { max-width: 760px; margin: -8px 0 24px !important; }

/* ---------- Плитки категорій ---------- */
.dl-cats { list-style: none; margin-top: 0; margin-bottom: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.dl-cats__item { margin: 0; }
.dl-cats__link { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 10px; height: 100%; box-sizing: border-box; padding: 18px 12px 16px; background: var(--dl-base); border: 1px solid var(--dl-line); color: var(--dl-text); text-decoration: none; text-align: center; font-size: 0.875rem; line-height: 1.35; transition: box-shadow .15s ease, border-color .15s ease; }
.dl-cats__link:hover { box-shadow: var(--dl-shadow); border-color: transparent; color: var(--dl-accent); }
.dl-cats__img { width: 96px; height: 96px; object-fit: contain; display: block; }
.dl-cats__name { display: block; hyphens: auto; overflow-wrap: anywhere; }
.dl-cats-empty { padding: 28px; border: 1px dashed var(--dl-line); color: var(--dl-muted); }

/* ---------- Послуги та виробники ---------- */
.dl-checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.dl-checks li { position: relative; margin: 0; padding: 14px 0 14px 38px; border-bottom: 1px solid var(--dl-line); }
.dl-checks li::before { content: ""; position: absolute; left: 0; top: 14px; width: 24px; height: 24px; background: url("assets/img/bullet-gear.svg") no-repeat center / contain; }
.dl-brands { list-style: none; margin-top: 0; margin-bottom: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.dl-brands li { margin: 0; display: flex; align-items: center; justify-content: center; height: 104px; padding: 14px 18px; box-sizing: border-box; background: var(--dl-base); border: 1px solid var(--dl-line); box-shadow: 0 2px 8px rgba(38, 40, 44, 0.08); }
.dl-brands li img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.dl-note { color: var(--dl-muted); font-size: 0.875rem; margin-top: 16px !important; }

.dl-cta { position: relative; overflow: hidden; background: var(--dl-graphite); color: #fff; padding-top: clamp(32px, 5vw, 56px); padding-bottom: clamp(32px, 5vw, 56px); }
.dl-cta::after { content: ""; position: absolute; right: 0; bottom: 0; width: 230px; height: 126px; background: url("assets/img/stripes.svg") no-repeat right bottom / contain; transform: scaleY(-1); opacity: 0.9; }
.dl-cta > * { position: relative; z-index: 1; }
.dl-cta h2, .dl-cta p { color: #fff; }
.dl-cta h2 { margin: 0 0 12px; }
.dl-cta > p { max-width: 760px; margin-top: 0; margin-bottom: 26px; }
.dl-cta a { color: #fff; text-decoration: none; font-family: var(--dl-heading); font-weight: 600; font-size: 1.125rem; white-space: nowrap; }
.dl-cta a:hover { text-decoration: underline; text-underline-offset: 3px; }
.dl-cta .dl-contact strong { font-family: var(--dl-heading); font-weight: 600; font-size: 1.125rem; white-space: nowrap; }
.dl-cta__contacts { gap: 18px 44px; align-items: flex-start; }
.dl-contact { position: relative; margin: 0; padding-left: 58px; min-height: 46px; display: flex; flex-direction: column; justify-content: center; font-size: 0.8125rem; line-height: 1.35; }
.dl-contact::before { content: ""; position: absolute; left: 0; top: 0; width: 46px; height: 46px; background: url("assets/img/ico-phone.svg") no-repeat center / contain; }
.dl-contact--mail::before { background-image: url("assets/img/ico-mail.svg"); }
.dl-contact--pin::before { background-image: url("assets/img/ico-pin.svg"); }
.dl-page .dl-contact { font-size: 0.875rem; color: var(--dl-muted); margin: 0 0 18px; }
.dl-page .dl-contact a { font-family: var(--dl-heading); font-weight: 600; font-size: 1.125rem; text-decoration: none; color: var(--dl-text); }
.dl-page .dl-contact a:hover { color: var(--dl-accent); }
.dl-page .dl-contact strong { font-family: var(--dl-heading); font-weight: 600; font-size: 1.0625rem; color: var(--dl-text); }

/* ---------- Картки товарів ---------- */
.wc-block-product-template { gap: 16px !important; }
.wc-block-product-template > .wc-block-product { border: 1px solid var(--dl-line); padding: 16px; background: var(--dl-base); display: flex; flex-direction: column; box-sizing: border-box; margin: 0; transition: box-shadow .15s ease; }
.wc-block-product-template > .wc-block-product:hover { box-shadow: var(--dl-shadow); }
.wc-block-product .wc-block-components-product-image { margin: 0 0 12px; }
.wc-block-product .wc-block-components-product-image img { aspect-ratio: 4 / 3; object-fit: contain; width: 100%; height: auto; }
.wc-block-product .wc-block-components-product-sku { color: var(--dl-muted); font-size: 0.8125rem; margin: 0 0 4px; font-variant-numeric: tabular-nums; }
.wc-block-product .wp-block-post-title { font-size: 0.9375rem; font-weight: 700; line-height: 1.4; margin: 0 0 10px; }
.wc-block-product .wp-block-post-title a { color: var(--dl-text); text-decoration: none; }
.wc-block-product .wp-block-post-title a:hover { color: var(--dl-accent); }
.wc-block-product .wp-block-woocommerce-product-price { margin: auto 0 12px; padding-top: 6px; }
.wc-block-product .wp-block-woocommerce-product-button { margin: 0; }
.wc-block-product .wp-block-woocommerce-product-button .wp-block-button__link { width: 100%; box-sizing: border-box; padding: 9px 16px; }
.wc-block-product .wp-block-post-title,
.wc-block-product .wp-block-woocommerce-product-price,
.wc-block-product .wc-block-components-product-price,
.wc-block-product .wp-block-woocommerce-product-button { text-align: left !important; }
.wc-block-product .wc-block-components-product-price { font-weight: 700; font-size: 1.125rem; }
.wc-block-components-product-sale-badge { background: var(--dl-graphite); color: #fff; border: 0; border-radius: 2px; text-transform: none; font-weight: 500; }

.single_add_to_cart_button.button,
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button,
.wc-block-mini-cart__footer-checkout { background: var(--dl-accent) !important; color: #fff !important; border-radius: var(--dl-radius) !important; border: 0; font-weight: 400; }
.single_add_to_cart_button.button:hover,
.wc-block-cart__submit-button:hover,
.wc-block-components-checkout-place-order-button:hover,
.wc-block-mini-cart__footer-checkout:hover { background: var(--dl-accent-dark) !important; }

/* ---------- Каталог ---------- */
.dl-catalog-head { padding-top: 20px; padding-bottom: 28px; }
.dl-catalog-head .wp-block-query-title { margin: 6px 0 0; }
.dl-catalog-head .wp-block-term-description { max-width: 760px; margin: 10px 0 0; }
.dl-catalog-head .wp-block-term-description p { margin: 0; }
.woocommerce-breadcrumb, .wc-block-breadcrumbs { color: var(--dl-muted); font-size: 0.8125rem; margin: 0; }
.woocommerce-breadcrumb a { color: var(--dl-muted); text-decoration: none; }
.woocommerce-breadcrumb a:hover { color: var(--dl-accent); }
.dl-catalog { background: var(--dl-surface); padding-top: 28px; padding-bottom: clamp(40px, 6vw, 72px); }
.dl-catalog > .dl-cats { margin-bottom: 32px; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.dl-catalog__cols { gap: 32px; align-items: flex-start; margin: 0; }
.dl-catnav { background: var(--dl-base); border: 1px solid var(--dl-line); padding: 8px 0; }
.dl-catnav ul { list-style: none; margin: 0; padding: 0; }
.dl-catnav li { margin: 0; }
.dl-catnav a { display: block; padding: 7px 18px; color: var(--dl-text); text-decoration: none; font-size: 0.9375rem; line-height: 1.35; border-left: 3px solid transparent; }
.dl-catnav a:hover { color: var(--dl-accent); }
.dl-catnav li.is-current > a { border-left-color: var(--dl-orange); font-weight: 700; }
.dl-catnav ul ul a { padding-left: 34px; font-size: 0.875rem; }
.dl-catnav ul ul ul a { padding-left: 50px; }
.dl-catalog__toolbar { margin-bottom: 14px; gap: 10px 20px; color: var(--dl-muted); font-size: 0.875rem; }
.dl-catalog__toolbar p { margin: 0; }
.wc-block-catalog-sorting select.orderby, .woocommerce-ordering select { border: 1px solid var(--dl-line); border-radius: 2px; padding: 8px 10px; background: var(--dl-base); color: var(--dl-text); font: inherit; font-size: 0.875rem; }
.dl-empty { background: var(--dl-base); border: 1px solid var(--dl-line); padding: 28px; }
.dl-empty p { margin: 0 0 10px; }
.dl-empty p:last-child { margin: 0; }
.wp-block-query-pagination { margin-top: 24px; gap: 6px; }
.wp-block-query-pagination .page-numbers { display: inline-block; min-width: 2.4em; padding: 7px 6px; text-align: center; border: 1px solid var(--dl-line); background: var(--dl-base); text-decoration: none; color: var(--dl-text); box-sizing: border-box; }
.wp-block-query-pagination .page-numbers.current { background: var(--dl-accent); color: #fff; border-color: var(--dl-accent); }

/* ---------- Сторінка товару ---------- */
.dl-product { padding-top: 20px; padding-bottom: clamp(40px, 6vw, 72px); }
.dl-product__cols { gap: clamp(24px, 4vw, 56px); margin-top: 12px; }
.dl-product .wc-block-components-product-sku { color: var(--dl-muted); font-size: 0.875rem; margin: 0 0 6px; font-variant-numeric: tabular-nums; }
.dl-product .wp-block-post-title { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 0 0 14px; }
.dl-product .wp-block-woocommerce-product-price { font-size: 1.75rem; margin: 0 0 14px; }
.dl-product .wp-block-post-excerpt { margin: 0 0 18px; max-width: 38em; }
.dl-product .stock { color: #2E7D32; font-weight: 500; font-size: 0.875rem; margin: 0 0 12px; }
.dl-product .stock.out-of-stock { color: #B3261E; }
.dl-product form.cart { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; margin: 0 0 20px; }
.dl-product form.cart .quantity { margin: 0; }
.dl-product form.cart .qty { padding: 12px 6px; border: 1px solid #8A96A3; border-radius: 2px; font: inherit; width: 4.8em; height: 100%; box-sizing: border-box; text-align: center; }
.dl-product form.cart .single_add_to_cart_button { padding: 12px 32px; font-size: 1rem; }
.dl-product__cat { color: var(--dl-muted); font-size: 0.875rem; border-top: 1px solid var(--dl-line); padding-top: 14px; }
.dl-product .wp-block-woocommerce-product-details { margin-top: clamp(28px, 4vw, 48px); }
.woocommerce table.shop_attributes { width: 100%; max-width: 760px; border-collapse: collapse; border-top: 1px solid var(--dl-line); }
.woocommerce table.shop_attributes th { text-align: left; font-weight: 400; color: var(--dl-muted); width: 40%; }
.woocommerce table.shop_attributes th, .woocommerce table.shop_attributes td { border: 0; border-bottom: 1px solid var(--dl-line); padding: 9px 0; font-style: normal; background: none; }
.woocommerce table.shop_attributes td p { margin: 0; padding: 0; }

/* ---------- Таблиця реквізитів ---------- */
.dl-req { border: 1px solid var(--dl-line); background: var(--dl-base); }
.dl-req table { width: 100%; border-collapse: collapse; }
.dl-req td { padding: 11px 16px; border: 0; border-bottom: 1px solid var(--dl-line); vertical-align: top; }
.dl-req tr:last-child td { border-bottom: 0; }
.dl-req td:first-child { color: var(--dl-muted); width: 38%; }
.dl-req td:last-child { font-variant-numeric: tabular-nums; }

/* ---------- Сторінки ---------- */
.dl-page { padding-top: 32px; padding-bottom: clamp(40px, 6vw, 72px); }
.dl-page .wp-block-post-title { margin: 0 0 20px; }
.dl-page h2 { margin-top: 1.6em; }
/* вкладені групи на сторінках не додають власних бічних полів — текст рівняється по заголовку */
.dl-page .wp-block-post-content .wp-block-group.has-global-padding { padding-left: 0; padding-right: 0; }
.dl-page .wp-block-post-content > * { margin-left: 0 !important; }

/* ---------- Кошик і оформлення ---------- */
.woocommerce-cart main.wp-block-group, .woocommerce-checkout main.wp-block-group { padding-bottom: clamp(40px, 6vw, 72px); }
/* Обидва способи доставки мають нульову вартість у магазині (Нову Пошту оплачує отримувач),
   тому підпис «Безкоштовно» вводив би в оману. Якщо з'явиться платний спосіб — прибрати ці два правила. */
.wc-block-components-shipping-rates-control .wc-block-components-radio-control__secondary-label,
.wc-block-components-totals-shipping .wc-block-components-totals-item__value { display: none; }

/* ---------- Форми WooCommerce (кабінет, вхід) ---------- */
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select,
.woocommerce-page form .form-row input.input-text { border: 1px solid #8A96A3; border-radius: 2px; padding: 11px 12px; font: inherit; background: var(--dl-base); color: var(--dl-text); box-sizing: border-box; width: 100%; }
.woocommerce form.login, .woocommerce form.register, .woocommerce form.checkout_coupon { border: 1px solid var(--dl-line); border-radius: 0; padding: 24px; margin: 0 0 24px; }
.woocommerce form .form-row label { margin-bottom: 4px; display: block; }
.woocommerce #customer_login h2, .woocommerce-account h2 { margin: 0 0 12px; }
.woocommerce #customer_login { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.woocommerce #customer_login::before, .woocommerce #customer_login::after { content: none; }
.woocommerce #customer_login .u-column1, .woocommerce #customer_login .u-column2 { width: auto; float: none; }
.woocommerce button.button, .woocommerce a.button, .woocommerce input.button { background: var(--dl-accent); color: #fff; border-radius: var(--dl-radius); font-weight: 400; padding: 12px 24px; border: 0; font-family: inherit; font-size: 1rem; line-height: 1.5; cursor: pointer; }
.woocommerce button.button:hover, .woocommerce a.button:hover, .woocommerce input.button:hover { background: var(--dl-accent-dark); color: #fff; }
.woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; margin: 0 0 24px; border-top: 1px solid var(--dl-line); }
.woocommerce-MyAccount-navigation li { border-bottom: 1px solid var(--dl-line); }
.woocommerce-MyAccount-navigation li a { display: block; padding: 10px 0; text-decoration: none; color: var(--dl-text); }
.woocommerce-MyAccount-navigation li.is-active a { color: var(--dl-accent); font-weight: 700; }

/* ---------- Підвал ---------- */
.dl-footer { background: var(--dl-surface); padding-top: 44px; padding-bottom: 18px; font-size: 0.875rem; }
.dl-footer h2 { font-size: 0.875rem; font-weight: 700; margin: 0 0 14px; }
.dl-footer .dl-footer__role { display: block; color: var(--dl-muted); font-size: 0.75rem; }
.dl-footer p { margin: 0 0 10px; }
.dl-footer a { color: var(--dl-text); text-decoration: none; }
.dl-footer a:hover { color: var(--dl-accent); }
.dl-footer ul { list-style: none; padding: 0; margin: 0; }
.dl-footer li { margin: 0 0 10px; }
.dl-footer__bottom { border-top: 1px solid var(--dl-line); margin-top: 28px; padding-top: 14px; font-size: 0.75rem; color: var(--dl-muted); }
.dl-footer__bottom p { margin: 0; color: var(--dl-muted); }
.dl-footer__bottom a { color: var(--dl-muted); }

.dl-footer__legal { margin-top: 10px; font-size: 0.75rem; color: var(--dl-muted); max-width: 900px; }
.dl-footer__legal p { margin: 0 0 4px; color: var(--dl-muted); }
.dl-footer__links { gap: 4px 20px; }

/* ---------- Згода на cookie ---------- */
.dl-cookie { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 1000; width: min(960px, calc(100vw - 32px)); box-sizing: border-box; display: flex; gap: 16px 28px; align-items: center; justify-content: space-between; padding: 18px 22px; background: var(--dl-base); border: 1px solid var(--dl-line); border-top: 4px solid transparent; border-image: var(--dl-brand) 1; box-shadow: 0 8px 28px rgba(38, 40, 44, 0.22); font-size: 0.875rem; line-height: 1.45; }
.dl-cookie[hidden] { display: none; }
.dl-cookie p { margin: 0; }
.dl-cookie p + p { margin-top: 4px; color: var(--dl-muted); }
.dl-cookie strong { font-family: var(--dl-heading); font-weight: 600; font-size: 0.9375rem; color: var(--dl-text); }
.dl-cookie__actions { display: flex; gap: 10px; flex: 0 0 auto; }
.dl-cookie__btn { font-family: var(--dl-heading); font-weight: 600; font-size: 0.875rem; line-height: 1.4; padding: 10px 18px; border-radius: var(--dl-radius); border: 1px solid var(--dl-accent); background: var(--dl-accent); color: #fff; cursor: pointer; white-space: nowrap; }
.dl-cookie__btn:hover { background: var(--dl-accent-dark); border-color: var(--dl-accent-dark); }
.dl-cookie__btn--ghost { background: var(--dl-base); color: var(--dl-text); border-color: #8C939A; }
.dl-cookie__btn--ghost:hover { background: var(--dl-surface); border-color: var(--dl-text); }
@media (max-width: 720px) {
	.dl-cookie { flex-direction: column; align-items: stretch; bottom: 8px; width: calc(100vw - 16px); padding: 14px 16px; }
	.dl-cookie__actions { justify-content: stretch; }
	.dl-cookie__btn { flex: 1 1 0; padding: 10px 8px; }
}

/* ---------- Адаптив ---------- */
@media (max-width: 1200px) {
	.dl-topbar__addr { display: none; }
	.dl-cats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.dl-catalog > .dl-cats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.dl-brands { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 959px) {
	.dl-header__row { padding-top: 10px; gap: 0 12px; }
	.dl-logo { padding-bottom: 10px; }
	.dl-logo .wp-block-image img { width: 38px; height: 38px; }
	.dl-logo .wp-block-site-title { font-size: 1.2rem; }
	.dl-tools { order: 2; margin-left: auto; padding-bottom: 10px; }
	.dl-nav { order: 3; flex: 1 0 100%; justify-content: space-between; border-top: 1px solid var(--dl-line); }
	.dl-nav .wp-block-navigation-item__content, .dl-mega__toggle { padding: 0 0 0; min-height: 44px; border-bottom-width: 3px; }
	.dl-nav .wp-block-navigation__responsive-container-open { min-height: 44px; }
	.dl-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: 1.125rem; padding: 10px 0; height: auto; border: 0; }
	.dl-mega__panel, .dl-mega__panel.has-active { left: 0; width: 100vw; max-height: calc(100vh - 120px); padding-top: 16px; }
	.dl-mega__list { width: 100%; }
	.dl-mega__item { flex-wrap: wrap; }
	.dl-mega__link { padding-left: 16px; }
	.dl-mega__head { margin: 0 16px 10px; }
	.dl-mega__more::before { transform: translate(-50%, -70%) rotate(135deg); }
	.dl-mega__item.is-active .dl-mega__more::before { transform: translate(-50%, -30%) rotate(-45deg); }
	.dl-mega__sub { position: static; flex: 1 0 100%; width: auto; max-width: none; border-left: 0; padding: 0 0 8px; background: var(--dl-surface); }
	.dl-mega__subhead { display: none; }
	.dl-mega__sub li a { padding: 8px 16px 8px 66px; }
	.dl-hero { grid-template-columns: 1fr; }
	.dl-topbar__mail, .dl-topbar__role { display: none; }
	.dl-topbar__row, .dl-topbar__contacts { justify-content: space-between; width: 100%; }
	.dl-hero__main { min-height: 380px; background: linear-gradient(180deg, rgba(46, 48, 53, 0.35) 0%, #2E3035 62%), url("assets/img/hero-art.svg") no-repeat right -120px top / auto 90%, #2E3035; }
	.dl-hero__main::after { width: 140px; height: 77px; }
	.dl-cta::after { width: 140px; height: 77px; opacity: 0.5; }
	.dl-hero__side { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
	.dl-promo { min-height: 150px; padding: 20px 16px; }
	.dl-promo .dl-promo__title { font-size: 1.1rem; }
	.dl-cats, .dl-catalog > .dl-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
	.dl-brands { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.dl-checks { grid-template-columns: 1fr; }
	.dl-catalog__side { display: none; }
	.woocommerce #customer_login { grid-template-columns: 1fr; }
	.wc-block-product-template.columns-3, .wc-block-product-template.columns-4 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
	.wc-block-product-template > .wc-block-product { padding: 12px; }
}
@media (max-width: 520px) {
	.dl-hero__side { grid-template-columns: 1fr; }
	.dl-cats, .dl-catalog > .dl-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.dl-cats__img { width: 72px; height: 72px; }
	.dl-brands { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* ---------- Товар без ціни: «Ціна за запитом» і форма запиту ---------- */
.dl-on-request { font-family: var(--dl-heading); font-weight: 600; font-size: 1.0625rem; color: var(--dl-accent); }
.wc-block-product .dl-on-request { font-size: 0.9375rem; }
.dl-product .wp-block-woocommerce-product-price .dl-on-request { font-size: 1.375rem; }
.dl-rfq { margin: 0 0 22px; max-width: 520px; }
.dl-rfq__lead { margin: 0 0 12px; color: var(--dl-muted); font-size: 0.9375rem; }
.dl-rfq__open, .dl-rfq__send { display: inline-block; padding: 12px 28px; border: 0; border-radius: var(--dl-radius); background: var(--dl-accent); color: #fff; font-family: var(--dl-heading); font-weight: 500; font-size: 1rem; cursor: pointer; }
.dl-rfq__open:hover, .dl-rfq__send:hover { background: var(--dl-accent-dark); }
.dl-rfq__form { padding: 18px 20px 16px; border: 1px solid var(--dl-line); border-top: 3px solid var(--dl-accent); background: var(--dl-surface); }
.dl-rfq__form[hidden] { display: none; }
.dl-rfq__hp { position: absolute; left: -9999px; }
.dl-rfq__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.dl-rfq__form label { display: flex; flex-direction: column; gap: 4px; font-size: 0.875rem; color: var(--dl-muted); }
.dl-rfq__form input, .dl-rfq__form textarea { width: 100%; box-sizing: border-box; padding: 9px 10px; border: 1px solid #C9CED3; border-radius: 2px; background: var(--dl-base); font: inherit; font-size: 1rem; color: var(--dl-text); }
.dl-rfq__form input:focus, .dl-rfq__form textarea:focus { border-color: var(--dl-orange); outline: none; }
.dl-rfq__wide { margin-top: 12px; }
.dl-rfq__consent { margin: 10px 0 12px; font-size: 0.8125rem; color: var(--dl-muted); }
.dl-rfq__actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.dl-rfq__cancel { border: 0; background: none; color: var(--dl-muted); font: inherit; text-decoration: underline; cursor: pointer; }
.dl-rfq__msg { margin: 10px 0 0; font-size: 0.9375rem; }
.dl-rfq__msg:empty { display: none; }
.dl-rfq__msg.is-ok { color: #1E7B34; font-weight: 600; }
.dl-rfq__msg.is-error { color: var(--dl-accent); }
@media (max-width: 520px) { .dl-rfq__grid { grid-template-columns: 1fr; } }

/* ---------- Меню для телефона (бургер + бічна панель) ---------- */
.dl-burger, .dl-drawer, .dl-drawer__backdrop { display: none; }
@media (max-width: 959px) {
	.dl-nav { display: none !important; }
	.dl-tools { gap: 2px; }
	.dl-burger { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0 -8px 0 4px; padding: 0; border: 0; background: none; cursor: pointer; }
	.dl-burger__lines, .dl-burger__lines::before, .dl-burger__lines::after { display: block; width: 24px; height: 2px; border-radius: 2px; background: var(--dl-text); transition: transform .2s ease, opacity .2s ease; }
	.dl-burger__lines { position: relative; }
	.dl-burger__lines::before, .dl-burger__lines::after { content: ""; position: absolute; left: 0; }
	.dl-burger__lines::before { top: -7px; }
	.dl-burger__lines::after { top: 7px; }
	.dl-burger[aria-expanded="true"] .dl-burger__lines { background: transparent; }
	.dl-burger[aria-expanded="true"] .dl-burger__lines::before { transform: translateY(7px) rotate(45deg); }
	.dl-burger[aria-expanded="true"] .dl-burger__lines::after { transform: translateY(-7px) rotate(-45deg); }

	.dl-drawer__backdrop { display: block; position: fixed; inset: 0; z-index: 90; background: rgba(38, 40, 44, 0.55); opacity: 0; transition: opacity .25s ease; }
	.dl-drawer__backdrop[hidden] { display: none; }
	.dl-drawer { display: flex; flex-direction: column; position: fixed; top: 0; right: 0; bottom: 0; z-index: 100; width: min(360px, 88vw); background: var(--dl-base); box-shadow: -4px 0 24px rgba(38, 40, 44, 0.3); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; transform: translateX(100%); transition: transform .25s ease; }
	.dl-drawer[hidden] { display: none; }
	html.dl-drawer-open { overflow: hidden; }
	html.dl-drawer-open .dl-drawer { transform: none; }
	html.dl-drawer-open .dl-drawer__backdrop { opacity: 1; }

	.dl-drawer__bar { display: flex; align-items: center; justify-content: space-between; flex: 0 0 auto; padding: 12px 8px 12px 20px; background: var(--dl-graphite); color: #fff; border-top: 4px solid transparent; border-image: var(--dl-brand) 1; }
	.dl-drawer__title { font-family: var(--dl-heading); font-weight: 600; font-size: 1.125rem; }
	.dl-drawer__close { position: relative; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; }
	.dl-drawer__close::before, .dl-drawer__close::after { content: ""; position: absolute; left: 50%; top: 50%; width: 22px; height: 2px; background: #fff; border-radius: 2px; transform: translate(-50%, -50%) rotate(45deg); }
	.dl-drawer__close::after { transform: translate(-50%, -50%) rotate(-45deg); }

	.dl-drawer__search { display: flex; flex: 0 0 auto; margin: 14px 16px 6px; border: 1px solid var(--dl-line); border-radius: 2px; overflow: hidden; }
	.dl-drawer__search input[type="search"] { flex: 1 1 auto; min-width: 0; border: 0; padding: 10px 10px 10px 42px; font: inherit; font-size: 1rem; color: var(--dl-text); background: var(--dl-base) url("assets/img/search.svg") no-repeat 12px center / 18px 18px; }
	.dl-drawer__search button { border: 0; background: var(--dl-accent); color: #fff; font: inherit; font-family: var(--dl-heading); font-weight: 500; padding: 10px 16px; cursor: pointer; }

	.dl-drawer .dl-drawer__head { display: flex; align-items: baseline; justify-content: space-between; margin: 0; padding: 12px 20px 6px; font-family: var(--dl-heading); }
	.dl-drawer__head strong { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dl-muted); }
	.dl-drawer__head a { font-size: 0.875rem; color: var(--dl-accent); text-decoration: none; }
	.dl-drawer__cats { list-style: none; margin: 0; padding: 0; flex: 0 0 auto; }
	.dl-drawer__cat { display: flex; flex-wrap: wrap; align-items: stretch; margin: 0; border-bottom: 1px solid var(--dl-line); }
	.dl-drawer__cat:first-child { border-top: 1px solid var(--dl-line); }
	.dl-drawer__link { flex: 1 1 0%; display: flex; align-items: center; gap: 12px; min-width: 0; padding: 8px 8px 8px 16px; color: var(--dl-text); text-decoration: none; font-size: 0.9375rem; }
	.dl-drawer__icon { flex: 0 0 36px; width: 36px; height: 36px; object-fit: contain; }
	.dl-drawer__more { position: relative; flex: 0 0 52px; border: 0; border-left: 1px solid var(--dl-line); background: none; cursor: pointer; }
	.dl-drawer__more::before { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; border-right: 1.5px solid var(--dl-text); border-bottom: 1.5px solid var(--dl-text); transform: translate(-50%, -70%) rotate(45deg); transition: transform .15s ease; }
	.dl-drawer__cat.is-open { background: var(--dl-surface); }
	.dl-drawer__cat.is-open > .dl-drawer__link { color: var(--dl-accent); }
	.dl-drawer__cat.is-open > .dl-drawer__more::before { transform: translate(-50%, -30%) rotate(-135deg); }
	.dl-drawer__sub { flex: 1 0 100%; list-style: none; margin: 0 0 0 16px; padding: 4px 0 8px; border-left: 2px solid var(--dl-orange); }
	.dl-drawer__sub[hidden] { display: none; }
	.dl-drawer__sub li { margin: 0; }
	.dl-drawer__sub a { display: block; padding: 7px 16px 7px 18px; font-size: 0.9rem; color: var(--dl-text); text-decoration: none; }
	.dl-drawer__sub-all a { color: var(--dl-accent); font-family: var(--dl-heading); font-weight: 500; }

	.dl-drawer__pages { flex: 0 0 auto; margin: 10px 0 0; }
	.dl-drawer__pages ul { list-style: none; margin: 0; padding: 0; }
	.dl-drawer__pages li { margin: 0; }
	.dl-drawer__pages a { display: block; padding: 11px 20px; font-family: var(--dl-heading); font-weight: 500; font-size: 1rem; color: var(--dl-text); text-decoration: none; border-bottom: 1px solid var(--dl-line); }
	.dl-drawer__pages a:active { color: var(--dl-accent); }

	.dl-drawer__contacts { margin-top: auto; padding: 16px 20px 20px; background: var(--dl-graphite); color: #fff; font-family: var(--dl-heading); font-size: 0.9375rem; }
	.dl-drawer__contacts a, .dl-drawer .dl-drawer__contacts p { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 12px; color: #fff; text-decoration: none; }
	.dl-drawer .dl-drawer__contacts p { margin-bottom: 0; font-size: 0.875rem; opacity: 0.85; }
	.dl-drawer__contacts img { flex: 0 0 24px; width: 24px; height: 24px; }
	.dl-drawer__contacts a span { display: flex; flex-direction: column; font-weight: 600; }
	.dl-drawer__contacts small { font-weight: 400; font-size: 0.75rem; opacity: 0.75; }
}
@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; }
}
