/* KidsToday: product page. Loaded on single products only. */
.kt-product{padding-bottom:3rem}
.kt-product__grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:clamp(1.5rem,4vw,4rem);align-items:start}
.kt-product__gallery{position:sticky;top:calc(var(--header-h) + 1rem)}
.kt-product__gallery .kt-badges{top:16px;left:16px;z-index:5}
.woocommerce-product-gallery{position:relative;margin:0;opacity:1!important}
.woocommerce-product-gallery__wrapper{margin:0}
.woocommerce-product-gallery__image{border-radius:var(--r-img);overflow:hidden;background:var(--mist)}
.woocommerce-product-gallery__image img{width:100%;height:auto;aspect-ratio:3/4;object-fit:cover}
.woocommerce-product-gallery__image:first-child img{view-transition-name:kt-product}
.woocommerce-product-gallery .flex-viewport{border-radius:var(--r-img);overflow:hidden}
.woocommerce-product-gallery .flex-control-thumbs{list-style:none;margin:.75rem 0 0;padding:0;display:grid;grid-template-columns:repeat(5,1fr);gap:.6rem}
.woocommerce-product-gallery .flex-control-thumbs li img{border-radius:14px;cursor:pointer;opacity:.55;transition:opacity .2s;aspect-ratio:1;object-fit:cover}
.woocommerce-product-gallery .flex-control-thumbs li img.flex-active,.woocommerce-product-gallery .flex-control-thumbs li img:hover{opacity:1}
.woocommerce-product-gallery__trigger{position:absolute;right:16px;top:16px;z-index:6;width:44px;height:44px;border-radius:50%;background:var(--white);display:grid;place-items:center;font-size:0;box-shadow:var(--shadow)}
.woocommerce-product-gallery__trigger::before{content:"";width:18px;height:18px;border:3px solid var(--pine);border-radius:50%;box-sizing:border-box;transform:translate(-2px,-2px)}
.woocommerce-product-gallery__trigger::after{content:"";position:absolute;width:3px;height:9px;background:var(--pine);border-radius:2px;transform:translate(7px,7px) rotate(-45deg)}

.kt-product__summary{padding-top:.5rem}
.kt-product__brand{display:inline-block;font-weight:800;color:var(--sage-deep);text-decoration:none;margin-bottom:.35rem}
.kt-product__brand:hover{text-decoration:underline}
.kt-product__title{font-size:clamp(1.7rem,3.2vw,2.5rem);margin:0 0 .6rem}
.kt-product__price .price{font-size:1.75rem;display:flex;flex-wrap:wrap;align-items:baseline;gap:.25rem 1rem}
.kt-product__price .price del{font-size:.6em}

.kt-product__short{color:var(--muted);margin-top:1rem}
.kt-product__buy{margin-top:1.5rem}

/* Variation buttons */
.kt-variations{display:grid;gap:1.1rem}
.kt-variation{border:0;margin:0;padding:0;min-width:0}
.kt-variation__label{font-weight:800;margin-bottom:.55rem;padding:0}
.kt-variation__chosen{font-weight:700;color:var(--sage-deep)}
.kt-variation__chips{display:flex;flex-wrap:wrap;gap:.45rem}
.kt-variation .kt-chip{min-height:46px;padding:.55rem .95rem}
.kt-variation .kt-chip[aria-pressed="true"]{background:var(--pine);border-color:var(--pine);color:var(--sun)}
.kt-variation .kt-chip.is-suggested:not([aria-pressed="true"]){border-color:var(--sun);box-shadow:0 0 0 3px var(--sun-soft)}
.kt-variation.is-missing .kt-variation__chips{animation:kt-shake .45s}
.kt-variation.is-missing .kt-variation__label::after{content:" Изберете";color:var(--berry)}
@keyframes kt-shake{25%{transform:translateX(-6px)}50%{transform:translateX(6px)}75%{transform:translateX(-3px)}}
.reset_variations{display:inline-block;font-size:.875rem;font-weight:700;color:var(--muted);margin-top:.25rem}
.kt-heighthelp{margin-top:1.1rem;padding:1rem 1.1rem;border-radius:18px;background:var(--sky)}
.kt-heighthelp label{display:block;margin-bottom:.5rem}
.kt-heighthelp__row{display:flex;align-items:center;gap:.5rem;max-width:220px}
.kt-heighthelp__row input{min-height:46px}
.kt-heighthelp__row span{font-weight:800}
.kt-heighthelp__out{margin:.6rem 0 0;font-weight:700;font-size:.95rem}
.kt-heighthelp__out:empty{display:none}

.single_variation_wrap{margin-top:1.25rem}
.woocommerce-variation-price{margin-bottom:.75rem}
.woocommerce-variation-availability .stock{margin:0 0 .75rem;font-weight:700;font-size:.95rem}
.stock.in-stock{color:var(--ok)}
.stock.out-of-stock{color:var(--berry)}
form.cart:not(.variations_form),.woocommerce-variation-add-to-cart{display:flex;gap:.6rem;align-items:stretch;flex-wrap:wrap}
.quantity{display:flex}
.quantity .qty{width:84px;text-align:center;font-weight:800;min-height:56px}
.single_add_to_cart_button{flex:1;min-height:56px;font-size:1.05rem}
.single_add_to_cart_button.disabled{opacity:.55}
.kt-product__guide-btn{display:inline-flex;align-items:center;gap:.5rem;margin-top:1rem;padding:.4rem 0;border:0;background:none;font-weight:800;text-decoration:underline;text-decoration-color:var(--sun);text-decoration-thickness:3px;text-underline-offset:6px}
.kt-product__guide-btn .kt-icon{color:var(--sage-deep)}
.kt-product__perks{list-style:none;margin:1.5rem 0;padding:1rem 1.1rem;border-radius:18px;background:var(--mist);display:grid;gap:.6rem;font-weight:700;font-size:.95rem}
.kt-product__perks li{display:flex;gap:.6rem;align-items:flex-start}
.kt-product__perks .kt-icon{color:var(--sage-deep);width:22px;height:22px}

.kt-accordion details{border-bottom:2px solid var(--line)}
.kt-accordion details:first-child{border-top:2px solid var(--line)}
.kt-accordion summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;padding:1rem 0;font-family:var(--display);font-weight:700;font-size:1.05rem}
.kt-accordion summary::-webkit-details-marker{display:none}
.kt-accordion summary::after{content:"+";font-family:var(--body);font-size:1.5rem;line-height:1;transition:transform .25s var(--ease)}
.kt-accordion details[open] summary::after{transform:rotate(45deg)}
.kt-accordion details>div,.kt-accordion details>table{padding-bottom:1.1rem}
.woocommerce-product-attributes{width:100%;border-collapse:collapse}
.woocommerce-product-attributes th,.woocommerce-product-attributes td{text-align:left;padding:.5rem 0;border-bottom:1px solid var(--line)}
.woocommerce-product-attributes td p{margin:0}

.related,.upsells{margin-top:4rem}
.related>h2,.upsells>h2{font-size:clamp(1.5rem,2.6vw,2.1rem);margin-bottom:1.5rem}

/* Size guide panel */
.kt-guide__panel{width:min(620px,100%)}
.kt-guide__body{padding:1.25rem}
.kt-guide__body h3{font-size:1.1rem;margin:1.25rem 0 .75rem}
.kt-guide__table{overflow-x:auto;border-radius:16px;border:2px solid var(--line)}
.kt-guide__table table{width:100%;border-collapse:collapse;font-size:.95rem;min-width:420px}
.kt-guide__table th,.kt-guide__table td{padding:.6rem .7rem;text-align:left;border-bottom:1px solid var(--line);white-space:nowrap}
.kt-guide__table thead th{background:var(--sage-pale);font-weight:800}
.kt-guide__table tbody th{font-weight:800}
.kt-guide__table tbody tr:last-child>*{border-bottom:0}
.kt-guide__note{font-size:.92rem;color:var(--muted);margin:.75rem 0 0}
.kt-guide__how{display:grid;grid-template-columns:auto 1fr;gap:1.25rem;align-items:start;background:var(--sun-pale);border-radius:20px;padding:1.1rem}
.kt-guide__fig svg{width:180px;height:auto}
.kt-guide__steps{margin:0;padding-left:1.25rem;display:grid;gap:.6rem;font-size:.95rem}
.kt-guide__steps strong{display:block}
.kt-guide__help{margin-top:1.25rem;font-weight:700}

/* Sticky buy bar (phones) */
.kt-stickybuy{position:fixed;left:0;right:0;bottom:0;z-index:40;display:none;align-items:center;gap:.75rem;padding:.7rem var(--gutter) calc(.7rem + env(safe-area-inset-bottom));background:var(--white);box-shadow:0 -8px 24px rgba(36,65,59,.12)}
.kt-stickybuy[hidden]{display:none!important}
.kt-stickybuy__info{flex:1;min-width:0;line-height:1.25}
.kt-stickybuy__info strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:.95rem}
.kt-stickybuy__price .price{font-size:.9rem}
.kt-stickybuy .kt-btn{padding:.8rem 1.1rem;font-size:.95rem}

@media (max-width:900px){
	.kt-product__grid{grid-template-columns:1fr}
	.kt-product__gallery{position:relative;top:0;margin-inline:calc(-1*var(--gutter))}
	.woocommerce-product-gallery__image,.woocommerce-product-gallery .flex-viewport{border-radius:0}
	.woocommerce-product-gallery .flex-control-thumbs{padding-inline:var(--gutter)}
	.kt-stickybuy{display:flex}
	.kt-guide__how{grid-template-columns:1fr}
	.kt-guide__fig{justify-self:center}
}

/* No layout jump while the gallery script starts: show only the first photo, and keep room for the thumbnails. */
.woocommerce-product-gallery>.woocommerce-product-gallery__wrapper>.woocommerce-product-gallery__image:nth-child(n+2){display:none}
.woocommerce-product-gallery:has(.woocommerce-product-gallery__image:nth-child(2)):not(:has(.flex-control-thumbs))::after{content:"";display:block;margin-top:.75rem;aspect-ratio:5.3/1}
/* Zoom button: a proper magnifier icon (WooCommerce prints an emoji/empty span inside) */
.woocommerce-product-gallery__trigger>*{display:none}
.woocommerce-product-gallery__trigger::before{width:22px;height:22px;border:0;border-radius:0;transform:none;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2324413B' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m15.5 15.5 5 5M10.5 7.5v6M7.5 10.5h6'/%3E%3C/svg%3E") center/contain no-repeat}
.woocommerce-product-gallery__trigger::after{display:none}
.woocommerce-product-gallery__trigger{transition:transform .25s var(--bounce),box-shadow .2s}
.woocommerce-product-gallery__trigger:hover{transform:scale(1.08)}
