/* Yardbird Storefront */

/* Admin bar offset for the sticky header (logged-in users only). */
body { --yb-adminbar: 0px; }
body.admin-bar { --yb-adminbar: 32px; }
@media (max-width: 782px) { body.admin-bar { --yb-adminbar: 46px; } }

/* One-row header: logo | category icons | cart */
.yb-header {
	position: sticky;
	top: var(--yb-adminbar);
	z-index: 50;
	background: #fff;
	border-bottom: 1px solid #E2D8C3;
	box-shadow: 0 2px 10px rgba(27, 38, 32, .04);
}
.yb-header-inner {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 20px;
	max-width: 1290px;
	min-height: 76px;
	margin: 0 auto;
	padding: 0 24px;
	box-sizing: border-box;
}
.yb-brand { display: flex; align-items: center; text-decoration: none; }
.yb-brand:focus-visible { outline: 3px solid #FFC23D; outline-offset: 4px; border-radius: 6px; }
.yb-header .yb-logo-header { display: block; width: auto; max-width: none; height: 46px; }
.yb-logo-text { font-size: 22px; font-weight: 800; color: #1B2620; }
.yb-header .yb-catbar { min-width: 0; }
.yb-cart {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 8px 16px;
	border: 1px solid #E2D8C3;
	border-radius: 999px;
	color: #1B2620;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
	transition: background .15s ease, border-color .15s ease;
}
.yb-cart .yb-ico { color: #1F6B3A; }
.yb-cart:hover { background: #F3F8EF; border-color: #CFE3C3; color: #14502A; }
.yb-cart:focus-visible { outline: 3px solid #FFC23D; outline-offset: 2px; }
.yb-cart-count {
	display: inline-grid;
	place-items: center;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border-radius: 999px;
	background: #F05A28;
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	line-height: 1;
	box-sizing: border-box;
}
.yb-cart-count[data-count="0"] { display: none; }

.yb-catbar-list {
	display: flex;
	justify-content: center;
	gap: 2px;
	margin: 0 auto;
	padding: 0;
	list-style: none;
	overflow-x: auto;
	scrollbar-width: none;
}
.yb-catbar-list::-webkit-scrollbar { display: none; }
.yb-catbar-list li { margin: 0; padding: 0; }
.yb-catbar-link {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	min-width: 78px;
	min-height: 75px;
	padding: 10px 8px 7px;
	box-sizing: border-box;
	border-bottom: 3px solid transparent;
	color: #2B3A31;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	transition: color .15s ease, background .15s ease, border-color .15s ease;
}
.yb-catbar-link .yb-ico { color: #1F6B3A; }
.yb-catbar-link:hover, .yb-catbar-link:focus-visible { background: #F3F8EF; color: #14502A; }
.yb-catbar-link.is-current { border-bottom-color: #F05A28; color: #14502A; }
.yb-catbar-link:focus-visible { outline: 3px solid #FFC23D; outline-offset: -3px; }

/* Material tiles on category / shop pages */
.woocommerce ul.products li.product .yb-tile-bestfor {
	margin: 2px 0 8px;
	font-size: 14px;
	line-height: 1.4;
	color: #4A5A4F;
}
.woocommerce ul.products li.product .price .yb-from,
.yb-from { font-size: .8em; font-weight: 600; color: #4A5A4F; text-transform: lowercase; }
.yb-unavailable { font-size: .85em; font-weight: 700; color: #8A4A00; }
.woocommerce ul.products li.product .yb-loop-button {
	background: #1F6B3A;
	color: #fff;
	border-radius: 999px;
}
.woocommerce ul.products li.product .yb-loop-button:hover { background: #14502A; color: #fff; }

/* Homepage */
.yb-home-hero, .yb-home-cats, .yb-home-how, .yb-home-faq { padding: 56px 24px; }
.yb-home-hero { background: #FFF7E8; padding-top: 48px; padding-bottom: 60px; }
.yb-home-how { background: #F6F1E7; }
.entry-content .yb-eyebrow, .yb-eyebrow { margin: 0 0 6px; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #1F6B3A; }
.yb-home-hero h1 { margin: 4px 0 16px; font-size: clamp(40px, 5.2vw, 64px); line-height: 1.02; color: #1B2620; }
.yb-lead { max-width: 34em; font-size: 19px; line-height: 1.55; color: #3F4D44; }
.yb-home-hero .wp-block-buttons { margin-top: 22px; gap: 12px; }
.yb-home-hero .wp-block-button__link { min-height: 50px; padding: 13px 26px; border-radius: 999px; font-weight: 800; }
.yb-hero-img { margin: 0; }
.yb-hero-img img { width: 100%; height: auto; border-radius: 22px; box-shadow: 0 20px 50px rgba(27, 38, 32, .12); }
.yb-home-cats h2, .yb-home-how h2, .yb-home-faq h2 { margin: 0 0 28px; font-size: clamp(28px, 3.2vw, 40px); color: #1B2620; }
.yb-cat-grid { gap: 20px; }
.yb-cat-tile { position: relative; margin: 0; padding: 0 0 18px; background: #fff; border: 1px solid #EDE4D2; border-radius: 18px; overflow: hidden; transition: transform .15s ease, box-shadow .15s ease; }
.yb-cat-tile:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(27, 38, 32, .10); }
.yb-cat-tile figure { margin: 0 0 14px; }
.yb-cat-tile img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.yb-cat-tile h3, .yb-cat-tile p { margin-left: 0; margin-right: 0; padding-left: 18px; padding-right: 18px; }
.yb-cat-tile h3 { margin-top: 0; margin-bottom: 6px; font-size: 21px; }
.yb-cat-tile h3 a { color: #1B2620; text-decoration: none; }
.yb-cat-tile h3 a::after { content: ""; position: absolute; inset: 0; }
.yb-cat-tile h3 a:focus-visible { outline: none; }
.yb-cat-tile:focus-within { outline: 3px solid #FFC23D; outline-offset: 2px; }
.yb-cat-tile p { margin-bottom: 0; font-size: 15px; line-height: 1.45; color: #4A5A4F; }
.yb-steps { gap: 28px; }
.yb-steps h3 { margin: 0 0 6px; font-size: 21px; }
.yb-steps p { color: #3F4D44; }
.entry-content .yb-step-num { display: grid; place-items: center; width: 46px; height: 46px; margin: 0 0 12px; border-radius: 50%; background: #1F6B3A; color: #fff; font-weight: 800; font-size: 18px; }
.yb-home-hero > .wp-block-group__inner-container,
.yb-home-cats > .wp-block-group__inner-container,
.yb-home-how > .wp-block-group__inner-container { max-width: 1180px; margin-left: auto; margin-right: auto; }
.yb-home-faq > .wp-block-group__inner-container { max-width: 860px; margin-left: auto; margin-right: auto; }
.yb-faq { margin: 0 0 10px; padding: 0 20px; background: #fff; border: 1px solid #E2D8C3; border-radius: 14px; }
.yb-faq summary { padding: 18px 28px 18px 0; position: relative; font-size: 17px; font-weight: 700; color: #1B2620; cursor: pointer; list-style: none; }
.yb-faq summary::-webkit-details-marker { display: none; }
.yb-faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 24px; color: #1F6B3A; }
.yb-faq[open] summary::after { content: "\2013"; }
.yb-faq summary:focus-visible { outline: 3px solid #FFC23D; outline-offset: 2px; border-radius: 6px; }
.yb-faq p { margin: 0 0 18px; color: #3F4D44; }

.yb-home-hero > .wp-block-group__inner-container,
.yb-home-cats > .wp-block-group__inner-container,
.yb-home-how > .wp-block-group__inner-container,
.yb-home-faq > .wp-block-group__inner-container { padding-left: 24px; padding-right: 24px; box-sizing: border-box; }

@media (max-width: 760px) {
	.entry-content .yb-home-hero, .entry-content .yb-home-cats, .entry-content .yb-home-how, .entry-content .yb-home-faq { padding-top: 36px; padding-bottom: 36px; }
	.entry-content .yb-home-hero { padding-top: 24px; }
	.yb-home-hero > .wp-block-group__inner-container,
	.yb-home-cats > .wp-block-group__inner-container,
	.yb-home-how > .wp-block-group__inner-container,
	.yb-home-faq > .wp-block-group__inner-container { padding-left: 16px; padding-right: 16px; }
	.yb-lead { font-size: 17px; }
	.yb-cat-grid.is-layout-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.yb-cat-tile { border-radius: 14px; padding-bottom: 12px; }
	.yb-cat-tile figure { margin-bottom: 10px; }
	.yb-cat-tile h3, .yb-cat-tile p { padding-left: 12px; padding-right: 12px; }
	.yb-cat-tile h3 { font-size: 16px; }
	.yb-cat-tile p { font-size: 13px; }
	.yb-home-hero .wp-block-buttons { flex-direction: column; align-items: stretch; }
	.yb-home-hero .wp-block-button__link { width: 100%; text-align: center; }
}

/* Mid widths: icons scroll sideways rather than squeezing the logo or cart. */
@media (max-width: 1180px) {
	.yb-header-inner { gap: 12px; padding: 0 16px; }
	.yb-catbar-list { justify-content: flex-start; mask-image: linear-gradient(90deg, #000 88%, transparent); }
	.yb-catbar-link { min-width: 70px; }
}

/* Phones: logo + cart on top; the icon row below stays pinned while scrolling. */
@media (max-width: 760px) {
	.yb-header { top: calc(var(--yb-adminbar) - 57px); }
	.yb-header-inner {
		grid-template-columns: minmax(0, 1fr) auto;
		grid-template-areas: "brand cart" "nav nav";
		gap: 0;
		min-height: 0;
		padding: 0;
	}
	.yb-brand { grid-area: brand; height: 57px; padding: 0 16px; }
	.yb-header .yb-logo-header { height: 36px; }
	.yb-cart { grid-area: cart; margin-right: 12px; padding: 6px 12px; }
	.yb-cart-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.yb-header .yb-catbar { grid-area: nav; border-top: 1px solid #EFE6D3; }
	.yb-catbar-list {
		scroll-snap-type: x proximity;
		-webkit-overflow-scrolling: touch;
		padding: 0 6px;
		mask-image: linear-gradient(90deg, #000 85%, transparent);
	}
	.yb-catbar-list li { scroll-snap-align: start; }
	.yb-catbar-link { min-width: 72px; min-height: 60px; padding: 8px 6px 6px; font-size: 10px; }
}

/* SEO footer */
.yb-footer { background: #F6F1E7; color: #33423A; border-top: 1px solid #E8DFCC; }
.yb-footer-inner {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
	gap: 40px;
	max-width: 1290px;
	margin: 0 auto;
	padding: 56px 24px 40px;
	box-sizing: border-box;
}
.yb-footer-logo { display: inline-block; margin-bottom: 14px; }
.yb-footer .yb-logo-footer { display: block; width: auto; max-width: none; height: 44px; }
.yb-footer-brand p { max-width: 30em; margin: 0 0 12px; font-size: 15px; line-height: 1.6; }
.yb-footer-title { margin: 4px 0 12px; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #1F6B3A; }
.yb-footer ul { margin: 0; padding: 0; list-style: none; }
.yb-footer li { margin: 0; }
.yb-footer a { color: #1B2620; font-size: 15px; text-decoration: none; }
.yb-footer-col a { display: inline-block; padding: 4px 0; }
.yb-footer a:hover { color: #14502A; text-decoration: underline; text-underline-offset: 3px; }
.yb-footer a:focus-visible { outline: 3px solid #FFC23D; outline-offset: 2px; border-radius: 4px; }
.yb-footer-email a { font-weight: 700; color: #1F6B3A; }
.yb-footer-bottom { border-top: 1px solid #E2D8C3; }
.yb-footer-bottom-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 24px;
	max-width: 1290px;
	margin: 0 auto;
	padding: 18px 24px;
	box-sizing: border-box;
	font-size: 14px;
}
.yb-footer-bottom p { margin: 0; }
.yb-footer-legal { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.yb-footer-legal a { font-size: 14px; }
@media (max-width: 960px) {
	.yb-footer-inner { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
	.yb-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
	.yb-footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 40px 16px 28px; gap: 28px 20px; }
	.yb-footer-bottom-inner { padding: 16px; }
}

/* Help and policy pages */
.yb-doc { max-width: 780px; margin: 0 auto; }
.yb-doc .yb-lead { margin-top: 0; }
.yb-doc h2 { margin: 2.1em 0 .55em; font-size: clamp(24px, 2.6vw, 30px); line-height: 1.2; color: #1B2620; }
.yb-doc h3 { margin: 1.6em 0 .4em; font-size: 19px; line-height: 1.3; color: #1B2620; }
.yb-doc p, .yb-doc li { font-size: 17px; line-height: 1.65; color: #33423A; }
.yb-doc ul { padding-left: 1.2em; }
.yb-doc li { margin-bottom: .45em; }
.yb-doc a { color: #1F6B3A; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.yb-doc a:hover { color: #14502A; }
.yb-doc .yb-updated { margin-top: -6px; font-size: 14px; color: #5F6B63; }
.yb-doc ul.yb-facts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin: 28px 0 8px;
	padding: 0;
	list-style: none;
}
.yb-doc ul.yb-facts li {
	margin: 0;
	padding: 18px 18px 16px;
	background: #fff;
	border: 1px solid #EDE4D2;
	border-radius: 14px;
	font-size: 15px;
	line-height: 1.45;
}
.yb-doc ul.yb-facts strong { display: block; margin-bottom: 4px; font-size: 18px; color: #1F6B3A; }
.yb-doc .yb-faq { margin-bottom: 10px; }
.yb-doc .yb-faq p { font-size: 16px; }
.yb-doc .wp-block-buttons { gap: 12px; margin-top: 36px; }
.yb-doc .wp-block-button__link {
	min-height: 48px;
	padding: 12px 26px;
	border-radius: 999px;
	background: #1F6B3A;
	color: #fff;
	font-weight: 800;
	text-decoration: none;
}
.yb-doc .wp-block-button__link:hover { background: #14502A; color: #fff; }
.yb-doc .is-style-outline .wp-block-button__link { background: transparent; color: #1F6B3A; border: 2px solid #1F6B3A; }
.yb-doc .is-style-outline .wp-block-button__link:hover { background: #F3F8EF; color: #14502A; }
@media (max-width: 640px) {
	.yb-doc p, .yb-doc li { font-size: 16px; }
	.yb-doc ul.yb-facts { grid-template-columns: minmax(0, 1fr); }
	.yb-doc .wp-block-buttons { flex-direction: column; align-items: stretch; }
	.yb-doc .wp-block-button__link { width: 100%; text-align: center; box-sizing: border-box; }
}

/* Phones: two material tiles per row so a category can be scanned at a glance. */
@media (max-width: 543px) {
	.woocommerce ul.products.grid-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; row-gap: 14px; }
	.woocommerce ul.products.grid-cols li.product .product-details { padding: 10px 12px 12px; }
	.woocommerce ul.products li.product .woocommerce-loop-product__title { margin: 0 0 4px; padding: 0; font-size: 15px; line-height: 1.25; }
	.woocommerce ul.products li.product .yb-tile-bestfor {
		margin: 0 0 6px;
		font-size: 12.5px;
		line-height: 1.35;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}
	.woocommerce ul.products li.product .price { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
	.yb-catbar-link { transition: none; }
}
