/* KidsToday: WooCommerce screens (shop, product, cart, checkout, account). */

/* ---------- Archive header & toolbar ---------- */
.kt-shop{padding-bottom:4rem}
.kt-archive__head{display:grid;gap:1.25rem;padding:.5rem 0 1.5rem}
.kt-archive__title{margin:0;font-size:clamp(2rem,4.4vw,3.2rem)}
.kt-archive__head .term-description,.kt-archive__head .page-description{max-width:62ch;color:var(--muted);font-size:1.05rem;margin-top:.6rem}
.kt-archive__head .term-description p:last-child{margin:0}
.kt-archive__head.is-outlet{background:var(--berry);color:#fff;border-radius:var(--r-img);padding:2rem 2.25rem;margin-bottom:1.5rem}
.kt-archive__head.is-outlet .term-description{color:#FDE6E1}
.kt-archive__big{font-family:var(--display);font-weight:800;font-size:clamp(3.5rem,9vw,6.5rem);line-height:.9;letter-spacing:-.04em;margin:0 0 .4rem;color:#fff}
.kt-catchips{display:flex;flex-wrap:wrap;gap:.5rem}
@media (max-width:760px){
	/* Phones: one swipeable row; the fade on the right shows there is more. */
	.kt-catchips{flex-wrap:nowrap;overflow-x:auto;scroll-snap-type:x proximity;margin-inline:calc(-1*var(--gutter));padding:0 var(--gutter) .6rem;scrollbar-width:thin;-webkit-mask-image:linear-gradient(90deg,#000 85%,transparent);mask-image:linear-gradient(90deg,#000 85%,transparent)}
	.kt-catchips .kt-chip{scroll-snap-align:start}
}

.kt-toolbar{position:sticky;top:var(--header-h);z-index:20;display:flex;align-items:center;gap:1rem;padding:.75rem 0;margin-bottom:1rem;background:rgba(255,252,246,.94);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
.kt-toolbar__filters{padding:.7rem 1.2rem}
.kt-toolbar .woocommerce-result-count{margin:0 auto 0 0;color:var(--muted);font-weight:700;font-size:.95rem}
.kt-toolbar .woocommerce-ordering{margin:0}
.kt-toolbar .woocommerce-ordering select{min-height:46px;width:auto;border-radius:var(--r-pill);font-weight:700;padding-block:.55rem}

/* ---------- Product grid & cards ---------- */
ul.products{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,1fr);gap:2.25rem 1.5rem}
ul.products::before,ul.products::after{display:none}
.kt-card{position:relative;display:flex;flex-direction:column;min-width:0}
.kt-card__media{position:relative;border-radius:var(--r-img);overflow:hidden;background:var(--mist);aspect-ratio:3/4}
.kt-card__link{position:absolute;inset:0;display:block}
.kt-card__img,.kt-card__alt{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:opacity .45s,transform .8s var(--ease)}
.kt-card__alt{opacity:0}
@media (hover:hover){
	.kt-card:hover .kt-card__alt{opacity:1;transform:scale(1.04)}
	.kt-card:hover .kt-card__img{transform:scale(1.04)}
	.kt-card:has(.kt-card__alt):hover .kt-card__img{opacity:0}
}
.kt-card__add{position:absolute;right:12px;bottom:12px;z-index:3;width:50px;height:50px;border:0;border-radius:50%;display:grid;place-items:center;background:var(--white);color:var(--pine);box-shadow:0 6px 18px rgba(36,65,59,.18);transition:transform .3s var(--bounce),background .2s}
.kt-card__add:hover,.kt-card__add[aria-expanded="true"]{background:var(--sun);transform:rotate(90deg) scale(1.08)}
.kt-card__add.is-loading{animation:kt-spin .8s linear infinite}
@keyframes kt-spin{to{transform:rotate(360deg)}}
.kt-card__sizes{position:absolute;left:10px;right:10px;bottom:10px;z-index:4;padding:.85rem;background:rgba(255,255,255,.97);border-radius:20px;box-shadow:var(--shadow);animation:kt-up .3s var(--ease)}
.kt-card__sizes[hidden]{display:none}
@keyframes kt-up{from{opacity:0;transform:translateY(10px)}}
.kt-card__sizes-title{margin:0 0 .5rem;font-weight:800;font-size:.85rem}
.kt-card__chips{display:flex;flex-wrap:wrap;gap:.35rem}
.kt-card__chips .kt-chip{padding:.4rem .6rem;font-size:.8rem;border-width:1.5px}
.kt-card__chips .kt-chip.is-loading{opacity:.5}
.kt-card__info{padding:.9rem .25rem 0}
.kt-card__brand{margin:0;font-size:.8rem;font-weight:800;color:var(--sage-deep)}
.kt-card__title{margin:.1rem 0 .35rem;font-family:var(--body);font-size:1.02rem;font-weight:700;line-height:1.3;letter-spacing:0}
.kt-card__title a{text-decoration:none}
.kt-card__title a::after{content:"";position:absolute;inset:0;z-index:1}
.kt-card__title a:hover{color:var(--sage-deep)}
.kt-card__add,.kt-card__sizes{z-index:5}
/* Prices: big and bold (owner); old price small above/beside, sale price in the sale colour. */

@supports (animation-timeline: view()){
	@media (prefers-reduced-motion:no-preference){
		ul.products .kt-card{animation:kt-card-in linear both;animation-timeline:view();animation-range:entry 0% entry 45%}
		ul.products .kt-card:nth-child(4n+2){animation-range:entry 5% entry 50%}
		ul.products .kt-card:nth-child(4n+3){animation-range:entry 10% entry 55%}
		ul.products .kt-card:nth-child(4n+4){animation-range:entry 15% entry 60%}
		@keyframes kt-card-in{from{opacity:0;transform:translateY(48px)}}
	}
}

/* fly-to-cart dot */
.kt-fly{position:fixed;left:0;top:0;z-index:300;width:22px;height:22px;margin:-11px 0 0 -11px;border-radius:50%;background:var(--berry);pointer-events:none}

/* ---------- Pagination ---------- */

/* ---------- Filters (BeRocket) inside the drawer ---------- */
.kt-filters{padding:1rem 1.25rem;flex:1}
.kt-filters .bapf_sfilter,.kt-filters .berocket_single_filter_widget{margin-bottom:1.5rem}
.kt-filters .bapf_head h3,.kt-filters .berocket_aapf_widget-title{font-family:var(--display);font-size:1rem;margin:0 0 .6rem}
.kt-filters ul{list-style:none;margin:0;padding:0}
.kt-filters .bapf_body ul{display:flex;flex-wrap:wrap;gap:.4rem}
.kt-filters .bapf_body li{margin:0}
.kt-filters .bapf_body li label{display:inline-flex;align-items:center;gap:.4rem;padding:.4rem .8rem;border:2px solid var(--line);border-radius:var(--r-pill);font-weight:700;font-size:.9rem;cursor:pointer}
.kt-filters .bapf_body li input:checked+label{background:var(--sun-soft);border-color:var(--pine)}
.kt-filters .bapf_body li input{position:absolute;opacity:0;pointer-events:none}
.kt-filters .bapf_slidr_all{padding:.5rem .25rem}

/* ---------- Empty states ---------- */
.kt-empty{padding:3rem 0;text-align:center}
.kt-empty .woocommerce-info{justify-content:center}

/* ---------- Responsive ---------- */
@media (max-width:1100px){ul.products{grid-template-columns:repeat(3,1fr)}}
@media (max-width:760px){
	ul.products{grid-template-columns:repeat(2,1fr);gap:1.6rem .9rem}
	.kt-card__add{width:42px;height:42px;right:8px;bottom:8px}
	.kt-card__title{font-size:.95rem}
	.kt-toolbar{flex-wrap:wrap;gap:.6rem}
	.kt-toolbar .woocommerce-result-count{order:3;width:100%;font-size:.85rem}
	.kt-toolbar .woocommerce-ordering{flex:1}
	.kt-toolbar .woocommerce-ordering select{width:100%}
	.kt-archive__head.is-outlet{padding:1.5rem}
}

/* Own filters */
.kt-filterform{display:grid;gap:1.25rem}
.kt-filter{border:0;margin:0;padding:0}
.kt-filter legend{font-family:var(--display);font-weight:700;margin-bottom:.6rem}
.kt-filter__opts{display:flex;flex-wrap:wrap;gap:.4rem}
.kt-filter__opts input{position:absolute;opacity:0;pointer-events:none}
.kt-filter__opts input:checked+label{background:var(--sun-soft);border-color:var(--pine)}
.kt-filter__opts input:focus-visible+label{outline:3px solid var(--berry);outline-offset:2px}
.kt-filter__price{display:flex;align-items:center;gap:.5rem}
.kt-filterform__actions{display:flex;flex-direction:column;gap:.5rem;position:sticky;bottom:0;background:var(--white);padding:.75rem 0}
.kt-filterform__actions .kt-btn{width:100%;justify-content:center}
.kt-activefilters{display:flex;flex-wrap:wrap;gap:.4rem;align-items:center;margin:-.25rem 0 1.25rem}
.kt-activefilters .kt-chip{font-size:.85rem;padding:.35rem .8rem}

/* Discount filter chips: same colours as the badges */
.kt-filter__opts input:checked+.kt-chip--off-1{background:var(--sun)}
.kt-filter__opts input:checked+.kt-chip--off-2{background:var(--peach)}
.kt-filter__opts input:checked+.kt-chip--off-3{background:var(--berry);border-color:var(--berry);color:#fff}

/* Long filter lists as dropdowns */
.kt-dd{position:relative}
.kt-dd__btn{display:flex;align-items:center;justify-content:space-between;gap:.75rem;min-height:52px;padding:.7rem 1rem;border:2px solid var(--line);border-radius:var(--r-field);background:var(--white);font-weight:700;cursor:pointer;list-style:none;transition:border-color .2s}
.kt-dd__btn::-webkit-details-marker{display:none}
.kt-dd__btn:hover,.kt-dd[open] .kt-dd__btn{border-color:var(--pine)}
.kt-dd__btn .kt-icon{width:18px;height:18px;transition:transform .3s var(--ease)}
.kt-dd[open] .kt-dd__btn .kt-icon{transform:rotate(180deg)}
.kt-dd__panel{margin-top:.4rem;padding:.6rem;border:2px solid var(--line);border-radius:var(--r-field);background:var(--white)}
.kt-dd[open] .kt-dd__panel{animation:kt-up .25s var(--ease)}
.kt-dd__search{min-height:42px;padding:.5rem .8rem;margin-bottom:.4rem}
.kt-dd__list{list-style:none;margin:0;padding:0;max-height:260px;overflow:auto;overscroll-behavior:contain}
.kt-dd__list li{display:flex;align-items:center;gap:.7rem;padding:0 .6rem;border-radius:10px;transition:background .15s}
.kt-dd__list li:hover{background:var(--mist)}
.kt-dd__list li:has(input:checked){background:var(--sun-pale)}
.kt-dd__list li[hidden]{display:none}
.kt-dd__list input{flex:none;margin:0;width:1.15rem;height:1.15rem}
.kt-dd__list label{flex:1;min-width:0;display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.6rem 0;font-weight:600;cursor:pointer}
.kt-dd__list input:checked+label{font-weight:800}
.kt-dd__list .kt-filter__n{margin-left:auto;flex:none}
.kt-dd__list input:focus-visible+label{outline:3px solid var(--berry);outline-offset:-3px}

/* ---------- Brand & Outlet page header: text + photo collage ---------- */
.kt-archive__head.is-brand{border-radius:var(--r-img);padding:clamp(1.5rem,4vw,3rem);margin-bottom:1.5rem;background:var(--sun-pale)}
.kt-archive__head.is-tint-2{background:var(--sky)}
.kt-archive__head.is-tint-3{background:var(--sage-pale)}
.kt-archive__head.is-tint-4{background:var(--berry-pale)}
.kt-archive__head.has-art{grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);align-items:center;gap:clamp(1.5rem,4vw,3rem)}
.kt-archive__head.has-art .kt-catchips{grid-column:1/-1}
.kt-archive__copy{min-width:0}
.kt-archive__logo{display:inline-grid;place-items:center;min-height:96px;max-width:300px;padding:1.1rem 1.6rem;margin-bottom:1.25rem;border-radius:22px;background:var(--white);box-shadow:0 8px 24px rgba(36,65,59,.08)}
.kt-archive__logo img{max-height:64px;width:auto;object-fit:contain}
.kt-archive__head.is-brand .term-description{color:var(--pine-soft);font-size:1.08rem;line-height:1.7}
.kt-archive__facts{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;margin:1.25rem 0 0}
.kt-archive__facts span{padding:.4rem .9rem;border-radius:var(--r-pill);background:rgba(255,255,255,.7);font-weight:700;font-size:.9rem}
.kt-archive__head.is-outlet .kt-archive__facts span{background:rgba(255,255,255,.16);color:#fff}
.kt-archive__facts .kt-btn{margin-left:.25rem}
.kt-archive__art{position:relative;min-height:340px;aspect-ratio:5/4;max-width:520px;justify-self:end;width:100%}
.kt-archive__img{position:absolute;overflow:hidden;background:var(--white);box-shadow:0 14px 34px rgba(36,65,59,.16)}
.kt-archive__img img{width:100%;height:100%;object-fit:cover}
.kt-archive__img.is-1{left:22%;top:0;width:52%;height:100%;border-radius:999px 999px 28px 28px}
.kt-archive__img.is-2{left:0;bottom:6%;width:34%;aspect-ratio:1;border-radius:50%;border:6px solid var(--white)}
.kt-archive__img.is-3{right:0;top:8%;width:30%;aspect-ratio:1;border-radius:50%;border:6px solid var(--white)}
.kt-archive__sticker{position:absolute;right:4%;bottom:4%;display:grid;place-items:center;width:118px;height:118px;border-radius:50%;background:var(--sun);color:var(--pine);font-weight:800;font-size:.95rem;line-height:1;text-align:center;transform:rotate(-10deg);box-shadow:0 10px 24px rgba(0,0,0,.18)}
.kt-archive__sticker b{display:block;font-family:var(--display);font-size:1.9rem;margin-top:.15rem}
@media (prefers-reduced-motion:no-preference){
	.kt-archive__img{animation:kt-pop-in .7s var(--bounce) both}
	.kt-archive__img.is-2{animation-delay:.12s}
	.kt-archive__img.is-3{animation-delay:.22s}
	.kt-archive__sticker{animation:kt-pop-in .7s .35s var(--bounce) both}
	@keyframes kt-pop-in{from{opacity:0;transform:translateY(18px) scale(.92)}}
}
@media (max-width:900px){
	.kt-archive__head.has-art{grid-template-columns:1fr}
	.kt-archive__art{justify-self:center;min-height:0;max-width:420px}
}
@media (max-width:560px){
	.kt-archive__art{aspect-ratio:4/3}
	.kt-archive__sticker{width:92px;height:92px;font-size:.8rem}
	.kt-archive__sticker b{font-size:1.45rem}
}

/* ---------- Card badges, owner pick "C" (2026-11-09): nothing covers the child's face ---------- */
/* Discount: round sticker, top-right corner. */
.kt-sticker{position:absolute;right:12px;top:12px;z-index:3;display:grid;place-items:center;width:60px;height:60px;border-radius:50%;background:var(--berry);color:#fff;font:800 1.02rem/1 var(--display);letter-spacing:-.02em;text-align:center;transform:rotate(-8deg);box-shadow:0 6px 16px rgba(36,65,59,.22);pointer-events:none}
.kt-sticker.is-tier-1{background:var(--sun);color:var(--pine)}
.kt-sticker.is-tier-2{background:var(--peach);color:var(--pine)}
.kt-sticker.is-tier-3{background:var(--berry);color:#fff}
/* Status ("Нова сезона", "Распродадено"): soft strip along the bottom, ending before the "+" button. */
.kt-ribbon{position:absolute;left:0;right:0;bottom:0;z-index:2;padding:2.2rem 74px .85rem 1rem;background:linear-gradient(to bottom,transparent,rgba(36,65,59,.78));color:#fff;font:800 .74rem/1.2 var(--display);letter-spacing:.07em;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none}
@media (max-width:640px){
	.kt-sticker{width:48px;height:48px;font-size:.84rem;right:8px;top:8px}
	.kt-ribbon{padding:1.8rem 58px .7rem .7rem;font-size:.66rem;letter-spacing:.05em}
}
/* Product page: the same badges as a row of pills above the name (the photo stays clean). */
.kt-badges--inline{position:static;flex-direction:row;flex-wrap:wrap;margin:0 0 .6rem;pointer-events:auto}
