/*
Theme Name: Lilbae
Theme URI: https://lilbae.shop
Description: Lilbae children's fashion shop. Child theme of Twenty Twenty-Five built from the Lilbae brand tokens.
Author: Lilbae
Template: twentytwentyfive
Version: 1.0.0
Requires at least: 6.7
Requires PHP: 8.1
Text Domain: lilbae
*/

/* ---------- Base ---------- */
:root {
	--lb-radius-sm: 10px;
	--lb-radius-lg: 24px;
	--lb-radius-full: 9999px;
}

body { -webkit-font-smoothing: antialiased; }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--wp--preset--color--cocoa);
	outline-offset: 2px;
}

.lb-note {
	font-family: var(--wp--preset--font-family--hand);
	font-size: 24px;
	line-height: 30px;
	font-weight: 400;
}

.lb-label {
	font-family: var(--wp--preset--font-family--sans);
	font-size: 12px;
	line-height: 16px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.lb-heart { color: var(--wp--preset--color--rose); }

/* ---------- Announcement bar ---------- */
.lb-announce { text-align: center; }
.lb-announce p { margin: 0; }

/* ---------- Header ---------- */
.lb-header .wp-block-navigation { font-family: var(--wp--preset--font-family--sans); font-weight: 700; }
.lb-header .wp-block-navigation a { text-decoration: none; }
.lb-header .wp-block-navigation a:hover { text-decoration: underline; text-decoration-color: var(--wp--preset--color--rose); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.lb-logo img { display: block; height: auto; }
.lb-header .wc-block-mini-cart__button,
.lb-header .wc-block-customer-account a { color: var(--wp--preset--color--cocoa); }
.lb-header .wc-block-mini-cart__badge { background: var(--wp--preset--color--rose); color: var(--wp--preset--color--cocoa); font-weight: 800; }

/* ---------- Hero ---------- */
.lb-hero-panel {
	border-radius: var(--lb-radius-lg);
	position: relative;
	overflow: hidden;
}
.lb-hero-panel img { display: block; width: 100%; height: auto; }
.lb-blob { position: absolute; border-radius: 50%; pointer-events: none; }

/* ---------- Category cards ---------- */
.lb-cat-card {
	border-radius: var(--lb-radius-lg);
	transition: transform .2s ease;
	min-height: 220px;
}
.lb-cat-card:hover { transform: translateY(-3px); }
.lb-cat-card a { color: inherit; text-decoration: none; }
.lb-cat-card a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.lb-cat-card { position: relative; }

/* ---------- Age chips ---------- */
.lb-chips .wp-block-button__link {
	background: var(--wp--preset--color--paper);
	color: var(--wp--preset--color--cocoa);
	border: 2px solid var(--wp--preset--color--line);
	font-weight: 700;
}
.lb-chips .wp-block-button__link:hover { background: var(--wp--preset--color--sage); border-color: var(--wp--preset--color--sage); }

/* ---------- Trust strip ---------- */
.lb-trust > .wp-block-column { text-align: center; }
.lb-trust p { margin: 0; }

/* ---------- WooCommerce ---------- */
.wc-block-components-product-image img,
.wc-block-grid__product-image img,
.woocommerce ul.products li.product a img,
.wp-block-woocommerce-product-image img,
.woocommerce-product-gallery__image img,
.wp-block-woocommerce-product-image-gallery img {
	border-radius: var(--lb-radius-lg);
	background: var(--wp--preset--color--paper);
}

.wc-block-components-product-price,
.wp-block-woocommerce-product-price,
.woocommerce .price {
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	color: var(--wp--preset--color--cocoa);
}
.wc-block-components-product-price ins,
.woocommerce .price ins { color: var(--wp--preset--color--rose-deep); text-decoration: none; }
.wc-block-components-product-price del,
.woocommerce .price del { color: var(--wp--preset--color--cocoa-muted); }

.wc-block-components-product-sale-badge,
.wp-block-woocommerce-product-sale-badge .wc-block-components-product-sale-badge,
.woocommerce span.onsale {
	background: var(--wp--preset--color--rose);
	color: var(--wp--preset--color--cocoa);
	border: 0;
	border-radius: var(--lb-radius-full);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	padding: 4px 12px;
}

/* Add to bag = rose fill */
.wp-block-button.wc-block-components-product-button .wp-block-button__link,
.wc-block-components-product-button__button,
.single_add_to_cart_button,
.wc-block-components-checkout-place-order-button,
.wc-block-cart__submit-button,
.wc-block-mini-cart__footer-checkout {
	background: var(--wp--preset--color--rose) !important;
	color: var(--wp--preset--color--cocoa) !important;
	border-radius: var(--lb-radius-full) !important;
	border: 0 !important;
	font-weight: 800 !important;
}
.wc-block-components-product-button__button:hover,
.single_add_to_cart_button:hover,
.wc-block-components-checkout-place-order-button:hover,
.wc-block-cart__submit-button:hover { filter: brightness(.96); }

.wc-block-components-text-input input,
.wc-block-components-combobox .components-combobox-control__input,
.wc-block-components-textarea,
.woocommerce form .input-text,
.wc-blocks-components-select__select {
	border-color: var(--wp--preset--color--cocoa-muted) !important;
	border-radius: var(--lb-radius-sm) !important;
}

.wc-block-components-notice-banner.is-success { border-color: var(--wp--preset--color--sage-deep); }
.wc-block-components-notice-banner.is-error { border-color: var(--wp--preset--color--rose-deep); }
.wc-block-components-product-stock-indicator--in-stock,
.woocommerce .stock.in-stock { color: var(--wp--preset--color--sage-deep); font-weight: 700; }

/* Product cards on cream */
.wc-block-product-template > li.wc-block-product,
.wc-block-product {
	background: var(--wp--preset--color--paper);
	border-radius: var(--lb-radius-lg);
	padding: 12px 12px 16px;
}
.wc-block-product .wp-block-post-title a { text-decoration: none; color: var(--wp--preset--color--cocoa); }

/* ---------- Info pages ---------- */
.lb-prose h2 { margin-top: 2em; }
.lb-prose ul li::marker { color: var(--wp--preset--color--rose); }

/* ---------- Footer ---------- */
.lb-footer a { color: var(--wp--preset--color--cream); text-decoration: none; }
.lb-footer a:hover { text-decoration: underline; }
.lb-footer .wp-block-navigation__container { gap: 10px; }
.lb-footer :focus-visible { outline-color: var(--wp--preset--color--cream); }

@media (max-width: 781px) {
	.lb-hide-mobile { display: none !important; }
	.lb-cat-card { min-height: 160px; }
}
