/* =========================================================================
   Toys for Kids — homepage sections + Add to cart / Buy now buttons
   ====================================================================== */

/* -------- Card buttons (all product cards) -------- */
.tfk-card-btns { display: flex; flex-direction: column; gap: 8px; width: 100%; margin-top: 10px; }
.tfk-cbtn,
body .tfk-card-btns a.button.tfk-cbtn {
	display: flex !important;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	min-height: 44px;
	height: auto;
	padding: 0 12px;
	border-radius: 14px !important;
	font-family: "Nunito", sans-serif;
	font-weight: 800 !important;
	font-size: 15px !important;
	line-height: 1.1;
	text-transform: none !important;
	letter-spacing: 0;
	text-decoration: none !important;
	white-space: nowrap;
	transition: background .15s ease, transform .15s ease, color .15s ease;
	box-shadow: none;
}
.tfk-cbtn svg { flex-shrink: 0; }
.tfk-cbtn--cart,
body .tfk-card-btns a.button.tfk-cbtn--cart { background: #E24A2A !important; color: #fff !important; border: 0 !important; }
.tfk-cbtn--cart:hover,
body .tfk-card-btns a.button.tfk-cbtn--cart:hover { background: #C73C1F !important; transform: translateY(-1px); }
.tfk-cbtn--buy { background: #1E2A47; color: #fff !important; border: 0; }
.tfk-cbtn--buy:hover { background: #12A39A; transform: translateY(-1px); }
.tfk-cbtn--ghost { background: #fff; color: #1E2A47 !important; border: 2px solid #F3E3D3; }
.tfk-cbtn--off { background: #F1ECE6; color: #6B7389; cursor: default; }
.tfk-card-btns a.added::after { margin-left: 4px; }
.tfk-card-btns .added_to_cart { display: none !important; }
.tfk-card-btns a.loading { opacity: .7; }

/* WoodMart cards: price row wraps, our buttons go full width under the price,
   WoodMart's small hover cart icon is hidden (quick view stays). */
body .wd-product .wrapp-product-price { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
body .wd-product .wrapp-product-price .price { order: 2; }
body .wd-product .wrapp-product-price .tfk-age-tag { order: 1; flex-basis: 100%; }
body .wd-product .wrapp-product-price .tfk-card-btns { order: 3; flex-basis: 100%; }
body .wd-product .product-rating-price { display: block; }
body .wd-product .wd-add-btn { display: none !important; }
body .wd-product .product-wrapper { display: flex; flex-direction: column; height: 100%; }
body .wd-product .product-information { display: flex; flex-direction: column; flex: 1 1 auto; }
body .wd-product .product-rating-price { margin-top: auto; }

/* Single product: Add to cart + Buy now */
body.single-product form.cart { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
body.single-product form.cart.variations_form { display: block; }
body.single-product .woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
body.single-product form.cart .single_add_to_cart_button,
body.single-product .tfk-buy-now {
	flex: 1 1 180px;
	min-height: 56px;
	border-radius: 16px !important;
	font-family: "Nunito", sans-serif;
	font-weight: 800 !important;
	font-size: 17px !important;
	text-transform: none !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin: 0 !important;
}
body.single-product form.cart .single_add_to_cart_button { background: #E24A2A !important; color: #fff !important; box-shadow: 0 6px 0 #B8361C; }
body.single-product form.cart .single_add_to_cart_button:hover { background: #C73C1F !important; }
body.single-product .tfk-buy-now { background: #1E2A47 !important; color: #fff !important; border: 0; box-shadow: 0 6px 0 #0F1729; cursor: pointer; }
body.single-product .tfk-buy-now:hover { background: #12A39A !important; box-shadow: 0 6px 0 #0B7F78; }
body.single-product .tfk-buy-now[disabled] { opacity: .6; cursor: wait; }
body.single-product form.cart .quantity { margin: 0 !important; }

/* -------- Homepage product card (Just added) -------- */
.tfk-hcard {
	background: #fff;
	border-radius: 22px;
	padding: 12px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	box-shadow: 0 4px 14px rgba(30, 42, 71, .06);
	transition: transform .18s ease, box-shadow .18s ease;
	min-width: 0;
}
.tfk-hcard:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(30, 42, 71, .12); }
.tfk-hcard__media {
	position: relative;
	display: grid;
	place-items: center;
	aspect-ratio: 1;
	border-radius: 16px;
	overflow: hidden;
	background: var(--tone-bg, #FFE3D9);
	color: var(--tone-ink, #E5512F);
}
.tfk-hcard__img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.tfk-hcard:hover .tfk-hcard__img { transform: scale(1.05); }
.tfk-hcard__ph { display: grid; place-items: center; }
.tfk-hcard__badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.tfk-hbadge { font-weight: 800; font-size: 12px; line-height: 1; padding: 6px 10px; border-radius: 999px; }
.tfk-hbadge--new { background: #6A48F0; color: #fff; }
.tfk-hbadge--off { background: #FFC93C; color: #1E2A47; }
.tfk-hbadge--oos { background: #1E2A47; color: #fff; }
.tfk-hcard__age {
	align-self: flex-start;
	margin: 2px 4px 0;
	background: #EFEBFF;
	color: #5A3BD9;
	font-weight: 800;
	font-size: 12px;
	padding: 4px 10px;
	border-radius: 999px;
}
body .tfk-hcard__name {
	margin: 0;
	padding: 0 4px;
	font-family: "Nunito", sans-serif;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.35;
	min-height: 43px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.tfk-hcard__name a { color: #1E2A47 !important; text-decoration: none; }
.tfk-hcard__name a:hover { color: #E24A2A !important; }
.tfk-hcard__added { padding: 0 4px; font-size: 13px; color: #4A5470; font-weight: 700; }
.tfk-hcard__price { padding: 0 4px; font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 21px; color: #E24A2A; }
.tfk-hcard__price del { font-family: "Nunito", sans-serif; font-size: 14px; font-weight: 600; color: #6B7389; margin-left: 6px; }
.tfk-hcard__price ins { text-decoration: none; }
.tfk-hcard__price del { order: 2; }
.tfk-hcard .tfk-card-btns { margin-top: auto; }

/* -------- Just added -------- */
.tfk-new { max-width: 1280px; margin: 0 auto; padding: 32px 24px 48px; }
.tfk-new__grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 20px;
	align-items: stretch;
}
.tfk-new__intro {
	position: relative;
	overflow: hidden;
	min-height: 420px;
	padding: 26px;
	border-radius: 22px;
	background: #6A48F0;
	color: #fff;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.tfk-new__circle { position: absolute; right: -50px; bottom: -50px; width: 200px; height: 200px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.tfk-new__star { position: absolute; right: 22px; top: 22px; color: #FFC93C; transform: rotate(12deg); }
.tfk-new__squiggle { position: absolute; left: 24px; bottom: 120px; }
.tfk-new__pill {
	position: relative;
	align-self: flex-start;
	background: #FFC93C;
	color: #1E2A47;
	font-weight: 800;
	font-size: 13px;
	padding: 6px 12px;
	border-radius: 999px;
}
body .tfk-new__title { position: relative; margin: 0; font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 38px; line-height: 1.05; color: #fff; }
.tfk-new__text { position: relative; margin: 0; font-size: 16px; line-height: 1.55; color: #fff; }
.tfk-new__btn {
	position: relative;
	margin-top: auto;
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 48px;
	padding: 0 22px;
	border-radius: 999px;
	background: #fff;
	color: #1E2A47 !important;
	font-weight: 800;
	font-size: 15px;
	text-decoration: none !important;
	transition: transform .15s ease;
}
.tfk-new__btn:hover { transform: translateX(3px); }

@media (max-width: 1200px) {
	.tfk-new__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.tfk-new__intro { grid-column: 1 / -1; min-height: 0; padding-bottom: 30px; }
	.tfk-new__squiggle { display: none; }
	.tfk-new__btn { margin-top: 8px; }
}
@media (max-width: 767px) {
	.tfk-new { padding: 24px 16px 36px; }
	.tfk-new__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	body .tfk-new__title { font-size: 32px; }
	.tfk-hcard { padding: 8px; border-radius: 18px; }
	body .tfk-hcard__name { font-size: 14px; min-height: 38px; }
	.tfk-hcard__price { font-size: 18px; }
	.tfk-hcard__added { font-size: 12px; }
	.tfk-cbtn, body .tfk-card-btns a.button.tfk-cbtn { font-size: 13px !important; min-height: 40px; gap: 6px; padding: 0 8px; }
}

/* -------- Toys in action -------- */
.tfk-vids { position: relative; background: #1E2A47; color: #fff; margin-top: 50px; }
.tfk-vids__wave { position: absolute; left: 0; width: 100%; height: 50px; display: block; }
.tfk-vids__wave--top { top: -49px; }
.tfk-vids__wave--bottom { bottom: -1px; }
.tfk-vids__star { position: absolute; right: 6%; top: 40px; color: #FFC93C; transform: rotate(16deg); }
.tfk-vids__inner { max-width: 1280px; margin: 0 auto; padding: 48px 24px 88px; }
.tfk-vids__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.tfk-vids__eyebrow { margin: 0 0 6px; color: #FFC93C; font-weight: 800; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
body .tfk-vids__title { margin: 0; font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 42px; line-height: 1.1; color: #fff; }
.tfk-vids__text { margin: 8px 0 0; font-size: 16px; color: #C9CFDD; max-width: 520px; }
.tfk-vids__links { display: flex; gap: 10px; flex-wrap: wrap; }
.tfk-vids__link {
	display: inline-flex; align-items: center; gap: 8px;
	height: 46px; padding: 0 18px; border-radius: 999px;
	background: rgba(255, 255, 255, .12); color: #fff !important;
	font-weight: 800; font-size: 14px; text-decoration: none !important;
}
.tfk-vids__link--solid { background: #fff; color: #1E2A47 !important; }
.tfk-vids__row {
	display: flex;
	gap: 20px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding-bottom: 8px;
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 255, 255, .3) transparent;
}
.tfk-vid { flex: 0 0 calc((100% - 80px) / 5); min-width: 220px; display: flex; flex-direction: column; gap: 12px; scroll-snap-align: start; }
.tfk-vid__media {
	position: relative;
	display: block;
	aspect-ratio: 9 / 16;
	width: 100%;
	border: 0;
	padding: 0;
	border-radius: 22px;
	overflow: hidden;
	background: var(--tone-bg, #FFE3D9);
	color: #fff !important;
	cursor: pointer;
	font: inherit;
	text-decoration: none !important;
}
.tfk-vid__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.tfk-vid__media:hover .tfk-vid__poster { transform: scale(1.06); }
.tfk-vid__ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--tone-ink); }
.tfk-vid__len { position: absolute; top: 12px; left: 12px; background: rgba(30, 42, 71, .85); font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; color: #fff; }
.tfk-vid__play {
	position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
	width: 64px; height: 64px; border-radius: 50%;
	background: #FFC93C; color: #1E2A47;
	display: grid; place-items: center;
	box-shadow: 0 10px 24px rgba(30, 42, 71, .3);
	transition: transform .2s ease;
}
.tfk-vid__play svg { margin-left: 3px; }
.tfk-vid__media:hover .tfk-vid__play { transform: translate(-50%, -50%) scale(1.1); }
.tfk-vid__title {
	position: absolute; left: 0; right: 0; bottom: 0;
	padding: 48px 14px 14px;
	background: linear-gradient(transparent, rgba(30, 42, 71, .9));
	text-align: left; font-weight: 800; font-size: 15px; line-height: 1.3; color: #fff;
}
.tfk-vid__chip { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 16px; padding: 8px; }
.tfk-vid__prod { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; color: #1E2A47 !important; text-decoration: none !important; }
.tfk-vid__thumb { flex: none; width: 44px; height: 44px; border-radius: 12px; overflow: hidden; display: grid; place-items: center; background: var(--tone-bg); color: var(--tone-ink); }
.tfk-vid__thumb img { width: 100%; height: 100%; object-fit: cover; }
.tfk-vid__meta { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.tfk-vid__name { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tfk-vid__price { font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 16px; color: #E24A2A; }
.tfk-vid__price del { font-size: 12px; color: #6B7389; font-family: "Nunito", sans-serif; }
.tfk-vid__price ins { text-decoration: none; }
body a.tfk-vid__add {
	flex: none;
	width: 36px; height: 36px; min-height: 0;
	padding: 0 !important;
	border-radius: 10px !important;
	background: #E24A2A !important; color: #fff !important;
	display: grid !important; place-items: center;
}
body a.tfk-vid__add:hover { background: #1E2A47 !important; }
body a.tfk-vid__add.added::after,
.tfk-vid__chip .added_to_cart { display: none !important; }
body a.tfk-vid__add.loading { opacity: .6; }

@media (max-width: 767px) {
	.tfk-vids__inner { padding: 36px 16px 72px; }
	body .tfk-vids__title { font-size: 32px; }
	.tfk-vid { flex-basis: 62%; min-width: 0; }
	.tfk-vids__star { display: none; }
}

/* Video popup */
.tfk-vmodal {
	border: 0;
	padding: 0;
	width: min(420px, 92vw);
	max-height: 92vh;
	border-radius: 22px;
	background: #000;
	overflow: visible;
}
.tfk-vmodal::backdrop { background: rgba(30, 42, 71, .85); }
.tfk-vmodal__body { aspect-ratio: 9 / 16; width: 100%; max-height: 88vh; border-radius: 22px; overflow: hidden; }
.tfk-vmodal__body iframe,
.tfk-vmodal__body video { width: 100%; height: 100%; border: 0; display: block; }
.tfk-vmodal__close {
	position: absolute; top: -14px; right: -14px; z-index: 2;
	width: 40px; height: 40px; border-radius: 50%; border: 0;
	background: #FFC93C; color: #1E2A47; font-size: 26px; line-height: 1; font-weight: 800; cursor: pointer;
	display: grid; place-items: center; padding: 0;
}
@media (max-width: 575px) { .tfk-vmodal__close { top: 8px; right: 8px; } }
