/* PodoDry Tweaks — правки дизайну (листопад 2026) */

/* Кнопки: ховер як у макеті (компонент Button) — темно-синій фон, білий текст */
.btn--white:hover,
.btn--white:focus-visible { background: var(--night); border-color: var(--night); color: var(--white); }

/* «Чому PodoDry»: ліва колонка — іконка «мінус» у колі */
.why__col--bad li::before {
	background: rgba(255, 255, 255, .25) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none'%3E%3Cpath d='M5.5 9h7' stroke='%23ffffff' stroke-opacity='.85' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}

/* Футер */
.footer__col a.pdt-disabled { color: var(--pearl); cursor: default; pointer-events: none; }
.footer__col a svg { flex: none; }
.footer__col li a:has(svg) { display: inline-flex; align-items: center; gap: 10px; }
.footer__bottom .pdt-credit { color: var(--cocoa); text-decoration: underline; text-underline-offset: 3px; }
.footer__bottom .pdt-credit:hover { color: var(--ocean); }

/* Мегаменю «Каталог» на всю ширину шапки */
@media (min-width: 961px) {
	.site-header .header__in { position: relative; }
	.site-header .header__nav,
	.site-header .header__nav nav,
	.site-header .nav li.pdt-has-mega { position: static; }
	.nav li.pdt-has-mega > a::before { content: ""; position: absolute; left: -20px; right: -20px; top: 100%; height: 24px; }
	.pdt-mega.mega {
		position: absolute; left: 0; right: 0; top: 100%; width: auto; transform: translateY(8px);
		display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 32px;
		padding: 24px var(--gutter, 24px) 28px; border-radius: 0 0 var(--r-lg) var(--r-lg);
		border-top: 1px solid var(--ice); box-shadow: 0 24px 40px rgba(34, 65, 87, .10);
	}
	.nav li.pdt-has-mega:hover > .pdt-mega,
	.nav li.pdt-has-mega:focus-within > .pdt-mega { transform: none; }
	.pdt-mega__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-content: start; }
}
.pdt-mega__list { display: grid; gap: 4px; align-content: start; }
.pdt-mega__list a { display: inline-flex !important; min-height: 0 !important; padding: 4px 0; font-size: 17px; font-weight: 400 !important; color: var(--espresso); }
.pdt-mega__list a:hover { color: var(--ocean); text-decoration: underline; text-underline-offset: 4px; }
.pdt-mega__list a::after { display: none !important; }
.pdt-mcard { display: grid !important; gap: 6px; min-height: 0 !important; align-content: start; color: var(--espresso); }
.pdt-mcard::after { display: none !important; }
.pdt-mcard__img { display: block; aspect-ratio: 293 / 138; border-radius: 14px; overflow: hidden; background: var(--ice); margin-bottom: 8px; }
.pdt-mcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.pdt-mcard:hover .pdt-mcard__img img { transform: scale(1.04); }
.pdt-mcard__title { font-size: 17px; font-weight: 500; color: var(--espresso); }
.pdt-mcard__price { font-size: 14px; font-weight: 500; color: var(--espresso); }
.pdt-mcard__price del { color: var(--ash); font-weight: 400; margin-right: 4px; }
.pdt-mcard__price ins { text-decoration: none; }
@media (max-width: 960px) {
	.pdt-mega__cards { display: none; }
	.pdt-mega__list a { font-size: 15px; padding: 8px 0; border: 0 !important; }
}

/* Відгуки: відео + переписки */
.pdt-reviews + section:has(> .reviews__head) { display: none; }
.pdt-reviews__head { display: flex; justify-content: space-between; align-items: center; gap: 16px 32px; flex-wrap: wrap; margin-bottom: clamp(20px, 3vw, 32px); }
.pdt-reviews__sum { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.pdt-reviews__all { font-size: 14px; color: var(--ash); transition: color .2s; }
.pdt-reviews__all:hover { color: var(--ocean); }
.pdt-rv, .pdt-chats { position: relative; }
.pdt-rv__track { display: grid; grid-auto-flow: column; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 2px; }
.pdt-rv__track::-webkit-scrollbar { display: none; }
.pdt-rv .pdt-rv__track { grid-auto-columns: calc((100% - 32px) / 3); padding-inline: 56px; scroll-padding-inline: 56px; }
.pdt-vrev { position: relative; display: block; aspect-ratio: 9 / 13.5; border-radius: var(--r-lg); overflow: hidden; background: var(--night); cursor: pointer; scroll-snap-align: start; }
.pdt-vrev img, .pdt-vrev video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pdt-vrev video { background: #000; z-index: 2; }
.pdt-vrev__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; color: var(--white); background: var(--ocean); box-shadow: 0 0 0 10px rgba(255, 255, 255, .35); transition: transform .2s; }
.pdt-vrev:hover .pdt-vrev__play { transform: translate(-50%, -50%) scale(1.06); }
.pdt-vrev.is-playing .pdt-vrev__play { display: none; }
.pdt-rv__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 44px; height: 44px; border-radius: 50%; background: var(--ice); color: var(--ocean); display: grid; place-items: center; font-size: 18px; }
.pdt-rv__nav:hover { background: var(--ocean); color: var(--white); }
.pdt-rv__nav--prev { left: 0; } .pdt-rv__nav--next { right: 0; }
.pdt-chats { margin-top: 24px; }
.pdt-chats__track { grid-auto-columns: calc((100% - 48px) / 4); }
.pdt-chat { display: block; aspect-ratio: 3 / 4; border-radius: var(--r); overflow: hidden; background: var(--seafoam); border: 1px solid var(--ice); scroll-snap-align: start; }
.pdt-chat img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .4s; }
.pdt-chat:hover img { transform: scale(1.03); }
.pdt-lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(15, 25, 35, .85); display: grid; place-items: center; padding: 24px; cursor: zoom-out; }
.pdt-lightbox img { max-width: min(560px, 100%); max-height: 100%; border-radius: 12px; }
@media (max-width: 960px) {
	.pdt-rv .pdt-rv__track { grid-auto-columns: 62%; padding-inline: 0; scroll-padding-inline: 0; }
	.pdt-rv__nav { display: none; }
	.pdt-chats__track { grid-auto-columns: 46%; }
}

/* Картки товарів з фото комплектів (макет «Рішення PodoDry» / каталог) */
.pcard:has(.pdt-card-img) { background: #f5f9fc; color: var(--espresso); transition: background .25s, box-shadow .25s; }
.pcard:has(.pdt-card-img)::before { display: none; }
.pcard:has(.pdt-card-img) .pcard__img { object-fit: cover; object-position: center top; padding: 0; transform-origin: center 35%; }
.pcard:has(.pdt-card-img):hover { background: var(--white); box-shadow: 0 39px 36px rgba(0, 0, 0, .06); }
.pcard:has(.pdt-card-img) .pcard__title { color: var(--espresso); text-shadow: none; }
.pcard:has(.pdt-card-img) .pcard__price { color: var(--espresso); }
.pcard:has(.pdt-card-img) .pcard__price del { color: var(--pearl); opacity: 1; }
.pcard:has(.pdt-card-img) .pcard__badge { position: absolute; left: 66px; top: 20px; display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 50px; background: #7fdfe6; color: var(--white); font-size: 16px; line-height: 1; white-space: nowrap; max-width: calc(100% - 86px); box-shadow: 0 5px 14px rgba(0, 0, 0, .05); }
.pcard:has(.pdt-card-img) .pcard__badge::before { content: ""; position: absolute; left: -46px; top: 0; width: 38px; height: 38px; border-radius: 50%; box-shadow: 0 5px 14px rgba(0, 0, 0, .05); background: #85def5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23224157' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='8' width='18' height='4' rx='1'/%3E%3Cpath d='M12 8v13M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7M7.5 8a2.5 2.5 0 0 1 0-5C9.5 3 12 8 12 8s2.5-5 4.5-5a2.5 2.5 0 0 1 0 5'/%3E%3C/svg%3E") center / 22px no-repeat; }
@media (max-width: 640px) { .pcard:has(.pdt-card-img) .pcard__badge { font-size: 13px; height: 30px; left: 52px; top: 12px; padding: 0 12px; } .pcard:has(.pdt-card-img) .pcard__badge::before { width: 30px; height: 30px; left: -38px; background-size: 18px; } }

/* Блок нагадувань: фон з макета без додаткового розмиття */
.mcta__bg[src*="pd-mcta-bg"] { filter: none; transform: none; }
.mcta:has(.mcta__bg[src*="pd-mcta-bg"])::after { background: rgba(61, 111, 149, .3); }

/* Чекаут: «Мої контактні дані / Інший отримувач» */
.pdt-rcpt-switch { display: grid; gap: 14px; margin: 4px 0 20px; }
.pdt-radio { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-size: 18px; color: var(--espresso); }
.pdt-radio input { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin: 0; border: 1.5px solid var(--pearl); border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--white); }
.pdt-radio input::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ocean); transform: scale(0); transition: transform .15s; }
.pdt-radio input:checked { border-color: var(--ocean); }
.pdt-radio input:checked::after { transform: scale(1); }
.pdt-rcpt-box { margin-top: 14px; }
.pdt-rcpt-box[hidden] { display: none !important; }
/* Кнопка «Підтвердити замовлення» вище, текст про персональні дані — під нею */
.order-review .place-order { display: flex; flex-direction: column; gap: 12px; }
.order-review .place-order #place_order { order: 1; }
.order-review .place-order .woocommerce-terms-and-conditions-wrapper { order: 2; font-size: 12px; text-align: center; color: var(--ash); }
/* Способи доставки 2×2, як у макеті (з Укрпоштою) */
@media (min-width: 641px) { .ship-opts:has(> :nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Чекбокс згоди з умовами (публічна оферта) — тема ховала підпис як «тільки для скрінрідерів» */
.place-order .woocommerce-terms-and-conditions-wrapper .form-row { height: auto; margin: 10px 0 0; text-align: left; }
.place-order .woocommerce-terms-and-conditions-wrapper label.woocommerce-form__label-for-checkbox { position: static !important; clip: auto !important; width: auto !important; height: auto !important; overflow: visible !important; margin: 0 !important; display: flex !important; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.4; color: var(--espresso); cursor: pointer; white-space: normal; }
.place-order .woocommerce-terms-and-conditions-wrapper #terms { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--ocean); }
.place-order .woocommerce-terms-and-conditions-wrapper .woocommerce-terms-and-conditions-checkbox-text a { color: var(--ocean); text-decoration: underline; }
.place-order .woocommerce-terms-and-conditions-wrapper .required { color: var(--ocean); text-decoration: none; }
/* Порядок: галочка згоди → кнопка → текст про персональні дані */
.order-review .place-order .woocommerce-terms-and-conditions-wrapper { display: contents; }
.order-review .place-order .woocommerce-terms-and-conditions-wrapper .form-row { order: 0; margin: 0; }
.order-review .place-order .woocommerce-privacy-policy-text { order: 2; font-size: 12px; text-align: center; color: var(--ash); }

/* ===== Кошик у шапці підсвічується, коли в ньому є товар (колір з Figma) ===== */
.site-header .header__icon:has(.cart-count:not(:empty):not([data-count="0"])) { background: #7fdfe6; color: var(--night); border-radius: 50%; box-shadow: 0 5px 14px rgba(0, 0, 0, .05); }
.site-header .header__icon:has(.cart-count:not(:empty):not([data-count="0"])) .cart-count { background: var(--night); }

/* ===== Сторінка товару ===== */
/* Стікер */
.seal.pdt-seal { background: none; padding: 0; box-shadow: 0 10px 7px -4px rgba(0, 0, 0, .15); }
.seal.pdt-seal svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.seal.pdt-seal svg text { font-family: inherit; }
/* Іконки оплат і «переглядають зараз» */
.pay-row.pdt-pay-row { gap: 8px; flex-wrap: wrap; }
.pay-row.pdt-pay-row img { width: 39px; height: 25px; border-radius: 4px; box-shadow: 0 0 0 1px var(--ice); background: var(--white); }
.pdt-viewers { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; color: var(--pine, #2f6b4f); margin: -4px 0 0; }
.pdt-viewers i { width: 8px; height: 8px; border-radius: 50%; background: #2fa36b; box-shadow: 0 0 0 0 rgba(47, 163, 107, .5); animation: pdtPulse 2s infinite; }
@keyframes pdtPulse { 70% { box-shadow: 0 0 0 8px rgba(47, 163, 107, 0); } 100% { box-shadow: 0 0 0 0 rgba(47, 163, 107, 0); } }
/* «Додати до замовлення» — картки */
.upsells .upsell.pdt-upcard { background: #f5f9fc; border-color: transparent; padding: 0 0 16px; overflow: hidden; gap: 8px; min-height: 0; transition: background .2s, box-shadow .2s; }
.upsells .upsell.pdt-upcard:hover { background: var(--white); box-shadow: 0 20px 30px rgba(0, 0, 0, .06); }
.pdt-upcard__img { display: block; aspect-ratio: 313 / 220; overflow: hidden; }
.pdt-upcard__img img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.upsell.pdt-upcard .upsell__name, .upsell.pdt-upcard .upsell__price { padding: 0 16px; }
.upsell.pdt-upcard .upsell__name, .upsell.pdt-upcard .upsell__name strong { font-size: 17px; font-weight: 500; color: var(--espresso); }
.upsell.pdt-upcard .upsell__price { font-size: 15px; color: var(--espresso); }
.upsell.pdt-upcard .pdt-upcard__btn { margin: 6px 16px 0; min-height: 46px; font-size: 15px; }
.upsell.pdt-upcard.is-added .pdt-upcard__btn, .upsell.pdt-upcard.added .pdt-upcard__btn { background: var(--ok, #2fa36b); border-color: var(--ok, #2fa36b); }
/* Вибір тривалості: рівний контур, як у макеті */
.duration__opt { overflow: hidden; }
.duration__opt b { align-self: stretch; min-width: 232px; margin: -1px 0 -1px -1px; border: 1px solid var(--aqua); font-size: 16px; }
.duration__opt span { font-size: 16px; }
@media (max-width: 520px) { .duration__opt b { min-width: 0; margin: -1px -1px 0; } }
/* Шрифти 16 у блоках сторінки товару (стандартний опис) */
.single-product .buybox__desc, .single-product .buybox__label, .single-product .ticks li,
.single-product .product-acc .acc__body, .single-product .logic ul.dots li, .single-product .section-head .lead,
.single-product .steps li, .single-product .result p, .single-product .know__item p, .single-product .why__col li { font-size: 16px; }
/* «Часто купують разом» — звичайна сітка карток, без розтягнутих фото */
.single-product .pdt-cross .grid-cards { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
@media (max-width: 1100px) { .single-product .pdt-cross .grid-cards { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }
@media (max-width: 760px) { .single-product .pdt-cross .grid-cards { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
.single-product section[hidden] { display: none !important; }
/* Відео в блоках */
.pdt-block-video { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Sticky-кнопка */
.sticky-buy.pdt-hidden { display: none !important; }
.pdt-sticky { position: fixed; left: 0; right: 0; bottom: 20px; z-index: 45; pointer-events: none; transform: translateY(140%); transition: transform .3s ease; }
.pdt-sticky.is-on { transform: none; }
.pdt-sticky__in { max-width: 964px; display: flex; align-items: center; gap: 20px; padding: 16px 20px; background: var(--white); border-radius: 24px; box-shadow: 0 20px 40px rgba(34, 65, 87, .14); pointer-events: auto; }
.pdt-sticky__img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; border: 1px solid var(--aqua); flex: none; }
.pdt-sticky__info { display: grid; gap: 6px; min-width: 0; flex: 1; }
.pdt-sticky__name { font-size: 16px; font-weight: 500; color: var(--espresso); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pdt-sticky__price { font-size: 16px; font-weight: 500; color: var(--espresso); }
.pdt-sticky__price del { font-size: 14px; color: var(--ash); font-weight: 400; margin-right: 6px; }
.pdt-sticky__price ins { text-decoration: none; }
.pdt-sticky__qty { display: flex; align-items: center; gap: 12px; }
.pdt-sticky__qty .qty__btn { width: 38px; height: 36px; border-radius: 8px; background: #f5f9fc; border: 1px solid var(--ice); color: var(--ocean); font-size: 18px; display: grid; place-items: center; cursor: pointer; }
.pdt-sticky__qty .num { min-width: 24px; text-align: center; font-size: 16px; }
.pdt-sticky__buy { min-width: 276px; min-height: 54px; }
@media (max-width: 760px) {
	.pdt-sticky { bottom: 0; }
	.pdt-sticky__in { border-radius: 18px 18px 0 0; gap: 12px; padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px)); }
	.pdt-sticky__img, .pdt-sticky__qty, .pdt-sticky__x { display: none; }
	.pdt-sticky__buy { min-width: 0; flex: 1; min-height: 48px; }
	.pdt-sticky__name { font-size: 14px; }
}

/* Пошук: рекомендовані товари */
.pdt-search-reco { margin-top: 20px; }
.pdt-price-note { flex-basis: 100%; font-size: 14px; font-weight: 400; color: var(--cocoa); }

/* Пекшоти на білому фоні в блоці «Як досягти кращого результату?» — по центру, без порожнечі знизу */
.steps-box__img:has(img[src*="-sq"]) { display: flex; align-items: center; justify-content: center; background: #fff; }
.steps-box__img img[src*="-sq"], .know__img img[src*="-sq"] { object-fit: contain; background: #fff; }

/* Фото Юлії в блоці консультації: кадрування як у макеті (обличчя у верхній третині) */
.single-product .consult__img img { object-position: center 22%; }

/* Вікно відео для блоку «Розроблено, щоб зменшити дискомфорт…» */
.pdt-vmodal { position: fixed; inset: 0; z-index: 10000; background: rgba(10, 20, 30, .82); display: flex; align-items: center; justify-content: center; padding: 16px; }
.pdt-vmodal[hidden] { display: none; }
.pdt-vmodal__box { position: relative; max-width: min(92vw, 480px); width: 100%; }
.pdt-vmodal__video { display: block; width: 100%; max-height: 86vh; border-radius: 16px; background: #000; }
.pdt-vmodal__close { position: absolute; top: 10px; right: 10px; z-index: 2; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #fff; color: #224157; font-size: 24px; line-height: 1; cursor: pointer; }
html.pdt-noscroll { overflow: hidden; }
