/*
Theme Name: Tailyboo
Description: Fresh, playful block theme for the Tailyboo pet shop — deep teal, lime accents, rounded cards.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: tailyboo
*/

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
::selection { background: var(--wp--preset--color--lime); color: var(--wp--preset--color--teal); }

/* ---------- Header ---------- */
.ty-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, 0.97);
	backdrop-filter: blur(8px);
}
.admin-bar .ty-header { top: var(--wp-admin--admin-bar--height, 32px); }
.ty-header__inner { display: grid !important; grid-template-columns: 1fr auto 1fr; align-items: center; }
.ty-header__right { justify-self: end; }
.ty-header .wp-block-site-title a { color: var(--wp--preset--color--teal); }
.ty-header .wp-block-navigation a:hover { color: var(--wp--preset--color--coral); }
.ty-header .wp-block-button__link { padding: 0.6rem 1.25rem; font-size: 0.72rem; }
.ty-header .wp-block-woocommerce-mini-cart .wc-block-mini-cart__button { color: var(--wp--preset--color--teal); }
.ty-header .wp-block-search__button { background: transparent; color: var(--wp--preset--color--teal); padding: 0.4rem; }
@media (max-width: 781px) {
	.ty-header__inner { grid-template-columns: auto 1fr auto; }
	.ty-header__inner > .ty-header__left { order: 1; }
	.ty-header__inner > .wp-block-site-title { order: 2; justify-self: center; font-size: 1.25rem; }
	.ty-header__inner > .ty-header__right { order: 3; }
	.ty-header__right .wp-block-buttons,
	.ty-header__right .wp-block-search { display: none; }
}

/* ---------- Hero ---------- */
.ty-hero {
	container-type: inline-size;
	position: relative;
	overflow: hidden;
	border-radius: 32px;
	min-height: min(82vh, 820px);
	background:
		radial-gradient(ellipse at 50% 120%, rgba(225, 229, 63, 0.18), transparent 60%),
		var(--wp--preset--color--sage);
	display: flex !important;
	flex-direction: column;
	justify-content: space-between;
}
.ty-hero__word {
	font-family: var(--wp--preset--font-family--display) !important;
	font-weight: 800 !important;
	font-size: clamp(2rem, 12.8cqi, 12rem) !important;
	line-height: 0.9 !important;
	letter-spacing: -0.02em !important;
	text-transform: uppercase;
	margin: 0 !important;
	color: #fff !important;
	position: relative;
	z-index: 1;
}
.ty-hero__img {
	position: absolute !important;
	left: 50%;
	bottom: 0;
	transform: translateX(-50%);
	width: min(46vw, 520px);
	margin: 0 !important;
	z-index: 2;
}
.ty-hero__img img { display: block; width: 100%; height: auto; }
.ty-hero__bottom { position: relative; z-index: 3; }
.ty-pill-cta .wp-block-button__link {
	background: #fff !important;
	color: var(--wp--preset--color--teal) !important;
	text-transform: none;
	letter-spacing: 0;
	font-size: 1rem;
	font-weight: 600;
	padding: 0.55rem 0.55rem 0.55rem 1.6rem !important;
	display: inline-flex;
	align-items: center;
	gap: 2.5rem;
	box-shadow: 0 10px 30px rgba(22, 58, 55, 0.18);
}
.ty-pill-cta .wp-block-button__link::after {
	content: "→";
	display: grid;
	place-items: center;
	width: 2.6rem;
	height: 2.6rem;
	border-radius: 50%;
	background: var(--wp--preset--color--lime);
	font-size: 1.2rem;
	transition: transform 0.25s ease;
}
.ty-pill-cta .wp-block-button__link:hover::after { transform: translateX(4px); }
.ty-hero__tag {
	background: rgba(255, 255, 255, 0.16);
	color: #fff;
	border-radius: 999px;
	padding: 0.5rem 1rem;
	font-size: 0.8rem;
	font-weight: 600;
	backdrop-filter: blur(6px);
}
@media (max-width: 781px) {
	.ty-hero { min-height: 640px; }
	.ty-hero__img { width: 64vw; bottom: auto; top: 30%; }
	.ty-pill-cta .wp-block-button__link { gap: 1rem; font-size: 0.9rem; }
	.ty-hero__bottom { flex-direction: column; align-items: flex-start !important; }
	.ty-hero__tag { display: none; }
}

/* ---------- Section helpers ---------- */
.ty-scribble { display: block; width: 46px; height: auto; margin-bottom: -0.5rem; }
.ty-wave-top {
	border-top-left-radius: 50% 90px;
	border-top-right-radius: 50% 90px;
}
.ty-wave-bottom {
	border-bottom-left-radius: 50% 90px;
	border-bottom-right-radius: 50% 90px;
}
@media (max-width: 781px) {
	.ty-wave-top { border-top-left-radius: 50% 40px; border-top-right-radius: 50% 40px; }
	.ty-wave-bottom { border-bottom-left-radius: 50% 40px; border-bottom-right-radius: 50% 40px; }
}
.ty-eyebrow {
	display: inline-block;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-size: 0.72rem;
	font-weight: 700;
	color: var(--wp--preset--color--coral);
}
.ty-hl { color: var(--wp--preset--color--teal); font-weight: 800; }

/* Pet switch pills */
.ty-switch {
	background: #fff;
	border-radius: 999px;
	padding: 0.4rem !important;
	box-shadow: 0 8px 30px rgba(32, 78, 74, 0.08);
	width: fit-content;
}
.ty-switch .wp-block-button__link { padding: 0.6rem 1.6rem; }
.ty-switch .is-style-outline .wp-block-button__link {
	background: transparent;
	border: 0;
	color: var(--wp--preset--color--muted);
}
.ty-switch .is-style-outline .wp-block-button__link:hover { color: var(--wp--preset--color--teal); background: var(--wp--preset--color--mist); }

/* ---------- Product cards ---------- */
.ty-products .wc-block-product-template,
.ty-products .wp-block-woocommerce-product-template { gap: 1.5rem !important; }
.ty-products .wc-block-product,
.ty-products li.product {
	background: #F2F3F4;
	border-radius: 24px;
	padding: 1.25rem 1.25rem 1.5rem;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	text-align: left !important;
}
.ty-products .wc-block-product:hover,
.ty-products li.product:hover {
	transform: translateY(-6px);
	box-shadow: 0 18px 40px rgba(32, 78, 74, 0.12);
}
.ty-products .wc-block-components-product-image img,
.ty-products .wp-block-woocommerce-product-image img { border-radius: 16px; mix-blend-mode: multiply; }
.ty-products .wp-block-post-title { font-size: 1.05rem !important; font-weight: 600; margin-top: 1rem !important; }
.ty-products .wp-block-post-title a { color: var(--wp--preset--color--teal); }
.ty-products .wc-block-components-product-price,
.ty-products .price { color: var(--wp--preset--color--coral) !important; font-weight: 600; font-size: 0.95rem; }
.ty-products .wp-block-button__link,
.ty-products .wc-block-components-product-button__button { margin-top: 0.5rem; }

/* ---------- Category tiles ---------- */
.ty-tile {
	border-radius: 28px;
	overflow: hidden;
	min-height: 260px;
	transition: transform 0.3s ease;
}
.ty-tile:hover { transform: translateY(-6px); }
.ty-tile h3 a { color: inherit; }
.ty-tile .ty-tile__emoji { font-size: 3.2rem; line-height: 1; margin: 0; }

/* ---------- Benefits ---------- */
.ty-benefit {
	background: #fff;
	border-radius: 20px;
	box-shadow: 0 12px 34px rgba(32, 78, 74, 0.08);
	height: 100%;
}
.ty-benefit h3 { font-size: 1.05rem !important; font-weight: 700; display: flex; gap: 0.6rem; align-items: center; }
.ty-benefit h3::before {
	content: "✓";
	flex: none;
	display: grid;
	place-items: center;
	width: 1.6rem;
	height: 1.6rem;
	border-radius: 50%;
	background: var(--wp--preset--color--lime);
	color: var(--wp--preset--color--teal);
	font-size: 0.85rem;
}
.ty-bowl {
	aspect-ratio: 1;
	border-radius: 50%;
	background: radial-gradient(circle at 35% 30%, #fff 0, #fff 40%, var(--wp--preset--color--mist) 41%, var(--wp--preset--color--mist) 100%);
	display: grid;
	place-items: center;
	box-shadow: 0 30px 60px rgba(32, 78, 74, 0.15);
	max-width: 420px;
	margin-inline: auto;
}
.ty-bowl img { width: 72%; }

/* ---------- Testimonials ---------- */
.ty-quote {
	background: var(--wp--preset--color--teal-dark);
	border-radius: 24px;
	height: 100%;
}
.ty-quote .ty-stars { color: var(--wp--preset--color--lime); letter-spacing: 0.15em; }

/* ---------- FAQ ---------- */
.ty-faq .wp-block-details { margin-bottom: 0.75rem; box-shadow: 0 6px 20px rgba(32, 78, 74, 0.06); }
.ty-faq summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.ty-faq summary::-webkit-details-marker { display: none; }
.ty-faq summary::after {
	content: "+";
	flex: none;
	display: grid;
	place-items: center;
	width: 1.8rem;
	height: 1.8rem;
	border-radius: 50%;
	background: var(--wp--preset--color--lime);
	font-weight: 700;
	transition: transform 0.25s ease;
}
.ty-faq details[open] summary::after { transform: rotate(45deg); }
.ty-faq details p { color: var(--wp--preset--color--muted); margin-top: 0.75rem; }

/* ---------- Footer ---------- */
.ty-footer a { color: rgba(255, 255, 255, 0.75); }
.ty-footer a:hover { color: var(--wp--preset--color--lime); }
.ty-footer .ty-footer__word {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 800;
	font-size: clamp(2.2rem, 14cqi, 12rem);
	line-height: 0.85;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.08);
	margin: 0;
	white-space: nowrap;
	overflow: hidden;
}
.ty-footer .wp-block-site-title a { color: #fff; }

/* ---------- WooCommerce general ---------- */
.woocommerce .wc-block-components-button:not(.is-link),
.wc-block-components-button:not(.is-link) {
	background: var(--wp--preset--color--lime);
	color: var(--wp--preset--color--teal);
	border-radius: 999px;
	font-weight: 700;
}
.wc-block-components-button:not(.is-link):hover { background: var(--wp--preset--color--teal); color: var(--wp--preset--color--lime); }
.woocommerce span.onsale,
.wc-block-components-product-sale-badge {
	background: var(--wp--preset--color--coral);
	color: #fff;
	border-radius: 999px;
	border: 0;
}
.wp-block-woocommerce-product-image-gallery img,
.woocommerce-product-gallery img { border-radius: 24px; }
.wc-block-components-product-price { color: var(--wp--preset--color--coral); }
.wc-block-product-categories-list a, .wc-block-breadcrumbs a { color: var(--wp--preset--color--teal); }
.wp-block-search__input { border-radius: 999px; border: 1px solid #dfe3e2; padding: 0.6rem 1rem; }

.ty-footer { container-type: inline-size; }
