/**
 * Layout and component styles that complement theme.json.
 * Keep this file small; design tokens belong in theme.json.
 */

/* Section rhythm */
.bobo-section {
	padding-block: clamp(2.5rem, 5vw, 4.5rem);
}

.bobo-section--tight {
	padding-block: clamp(1.5rem, 3vw, 2.5rem);
}

.bobo-section__header {
	max-width: 720px;
	margin-block-end: 1.5rem;
}

.bobo-section__header p {
	color: var(--wp--preset--color--text-muted);
	margin-block-start: 0.5rem;
}

/* Hero */
.bobo-hero {
	overflow: clip;
}

.bobo-hero__title {
	max-width: 18ch;
}

.bobo-hero__lead {
	max-width: 52ch;
	color: var(--wp--preset--color--text-muted);
	font-size: var(--wp--preset--font-size--large);
}

.bobo-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-block-start: 1.5rem;
}

.bobo-hero__media {
	min-height: 320px;
	border-radius: var(--bobo-radius-lg);
	background:
		radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.65), transparent 45%),
		linear-gradient(135deg, var(--wp--preset--color--pink) 0%, var(--wp--preset--color--accent) 100%);
	position: relative;
}

.bobo-hero__media::after {
	content: "BOBO";
	position: absolute;
	inset-inline-start: 1.5rem;
	inset-block-end: 1.25rem;
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(2rem, 6vw, 4rem);
	font-weight: 600;
	color: rgba(255, 255, 255, 0.55);
	letter-spacing: 0.08em;
}

.bobo-trust-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 0.75rem;
	margin-block-start: 1.5rem;
}

.bobo-trust-row__item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 1rem;
	border-radius: var(--bobo-radius-sm);
	background: var(--wp--preset--color--card);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--text) 8%, transparent);
	font-size: var(--wp--preset--font-size--small);
}

/* Category / age grids */
.bobo-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 1rem;
}

.bobo-card__title {
	margin: 0;
	font-size: var(--wp--preset--font-size--medium);
}

.bobo-card__meta {
	margin: 0;
	color: var(--wp--preset--color--text-muted);
	font-size: var(--wp--preset--font-size--small);
}

.bobo-card__link {
	margin-block-start: auto;
	font-weight: 600;
}

/* Offers / gifts teaser */
.bobo-promo {
	border-radius: var(--bobo-radius-lg);
	padding: clamp(1.5rem, 4vw, 2.5rem);
	background: var(--wp--preset--color--card);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--text) 8%, transparent);
}

.bobo-promo--pink {
	background: var(--wp--preset--color--pink-soft);
}

.bobo-promo--blue {
	background: color-mix(in srgb, var(--wp--preset--color--primary) 7%, white);
}

/* Steps */
.bobo-step__number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 999px;
	background: var(--wp--preset--color--primary);
	color: #fff;
	font-weight: 700;
	margin-block-end: 0.75rem;
}

/* Product card fallback (WooCommerce) */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--medium);
}

.woocommerce ul.products li.product .button {
	border-radius: 10px;
}

.woocommerce span.onsale {
	background: var(--wp--preset--color--pink);
	color: var(--wp--preset--color--text);
	border-radius: 999px;
	padding: 0.25rem 0.6rem;
}

/* Single product */
.single-product div.product .summary {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.single-product div.product .product_title {
	margin-block-end: 0.25rem;
}

.single-product div.product p.price {
	font-size: var(--wp--preset--font-size--x-large);
	color: var(--wp--preset--color--primary);
}

/* Forms */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.wp-block-search__input {
	border-radius: 10px;
	border-color: color-mix(in srgb, var(--wp--preset--color--text) 18%, transparent);
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus,
.wp-block-search__input:focus {
	border-color: var(--wp--preset--color--primary);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--wp--preset--color--accent) 25%, transparent);
}

/* Footer */
.site-footer .wp-block-heading {
	color: #fff;
	font-size: var(--wp--preset--font-size--medium);
	margin-block-end: 0.75rem;
}

.site-footer .wp-block-column:first-child h3 {
	font-family: var(--wp--preset--font-family--serif);
	font-size: 1.8rem;
	line-height: 1;
	letter-spacing: 0.02em;
	margin-block-end: 0.25rem;
}

.site-footer > .wp-block-group {
	padding-top: 2rem !important;
	padding-bottom: 1rem !important;
}

.site-footer .footer-tagline {
	font-size: 0.55rem;
	letter-spacing: 0.24em;
	color: rgba(255, 255, 255, 0.6);
	margin: 0 0 0.9rem;
}

.site-footer p,
.site-footer li {
	color: rgba(255, 255, 255, 0.82);
	font-size: var(--wp--preset--font-size--small);
}

.site-footer ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.site-footer li + li {
	margin-block-start: 0.4rem;
}

/* Footer newsletter + badges */
.footer-newsletter {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	margin-top: 1.2rem;
	padding-top: 1.2rem;
	gap: 1rem;
}

.site-footer .footer-newsletter__title {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 0.95rem;
	font-weight: 600;
	color: #fff;
	margin: 0 0 0.15rem;
}

.site-footer .footer-newsletter__sub {
	font-size: 0.7rem;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.62);
	margin: 0;
}

.bobo-newsletter-form {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	min-width: 310px;
	padding: 0.22rem 0.22rem 0.22rem 0.8rem;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.06);
}

.bobo-newsletter-form input {
	flex: 1;
	min-width: 0;
	border: 0;
	outline: 0;
	background: transparent;
	color: #fff;
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.7rem;
}

.bobo-newsletter-form input::placeholder {
	color: rgba(255, 255, 255, 0.55);
}

.bobo-newsletter-form button {
	width: 34px;
	height: 34px;
	flex: 0 0 34px;
	border: 0;
	border-radius: 50%;
	background: var(--wp--preset--color--pink);
	color: var(--wp--preset--color--navy);
	font-size: 1rem;
	line-height: 1;
	cursor: pointer;
}

.bobo-newsletter-form button:hover {
	background: #fff;
}

.bobo-newsletter-message {
	width: 100%;
	margin: 0.2rem 0 0;
	color: var(--wp--preset--color--pink);
	font-size: 0.65rem;
	line-height: 1.6;
}

.footer-bottom {
	padding-top: 0.5rem;
	gap: 1rem;
}

.footer-badges {
	gap: 6px;
	align-items: center;
}

.site-footer .footer-badges p {
	margin: 0;
	padding: 0.2rem 0.5rem;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 5px;
	background: rgba(255, 255, 255, 0.04);
	color: rgba(255, 255, 255, 0.8);
	font-size: 0.56rem;
	line-height: 1.2;
	letter-spacing: 0.04em;
}

/* Mobile */
@media (max-width: 782px) {
	.footer-newsletter {
		flex-direction: column;
		align-items: flex-start;
	}

	.bobo-newsletter-form {
		width: 100%;
		min-width: 0;
	}

	.footer-bottom {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.8rem;
	}

	.footer-badges {
		justify-content: flex-start;
	}
}

@media (max-width: 600px) {
	.bobo-hero__media {
		min-height: 220px;
	}

	.bobo-hero__title {
		max-width: none;
	}
}
