/*
Theme Name: Sweet Pair
Description: Child theme of Twenty Twenty-Five for the Sweet Pair gift shop. Truffle Blush colours, Fredoka headings, DM Sans body, soft rounded shapes. Colours, fonts and corner sizes live in theme.json.
Template: twentytwentyfive
Version: 1.5.0
Requires at least: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sweet-pair
*/

/* Header: thin hairline under it, comfortable padding */
.sweet-pair-header {
	padding: 16px var(--wp--preset--spacing--50);
	border-bottom: 1px solid var(--wp--preset--color--accent-6);
	background: var(--wp--preset--color--base);
}

/* Buttons: always pill-shaped and at least 44px tall (WooCommerce classic + block buttons) */
.wp-element-button,
.wp-block-button__link,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.wc-block-components-button {
	min-height: 44px;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* Product photos: 20px corners on a blush tile */
.wc-block-components-product-image img,
.wp-block-woocommerce-product-image img,
.wc-block-grid__product-image img,
.woocommerce ul.products li.product a img,
.woocommerce div.product div.images img,
.woocommerce-product-gallery__image img {
	border-radius: 20px;
	background: var(--wp--preset--color--accent-1);
}

/* Inputs: 12px corners, hairline border */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
input[type="search"],
select,
textarea,
.wc-block-components-text-input input,
.wc-blocks-components-select__select {
	border: 1px solid var(--wp--preset--color--accent-6);
	border-radius: 12px;
	background: var(--wp--preset--color--accent-5);
	color: var(--wp--preset--color--contrast);
}

/* Sale badge: blush pill with ink text (never rose-gold text) */
.wc-block-components-product-sale-badge,
.woocommerce span.onsale {
	background: var(--wp--preset--color--accent-1);
	color: var(--wp--preset--color--contrast);
	border: 0;
	border-radius: 999px;
	font-weight: 700;
}

/* Small label style from the brand guide */
.is-style-sweet-pair-label {
	font-size: 12px;
	line-height: 16px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--wp--preset--color--accent-4);
}

/* Announcement bar: thin truffle strip at the very top */
.sweet-pair-announcement {
	background: var(--wp--preset--color--accent-3);
	color: #fff;
	padding: 8px 16px;
	font-size: 14px;
	line-height: 20px;
	font-weight: 500;
}
.sweet-pair-announcement p {
	margin: 0;
}

/* Homepage hero: blush panel with 28px corners (a lifestyle photo can replace the fill later) */
.sweet-pair-hero {
	background: var(--wp--preset--color--accent-1);
	border-radius: 28px;
	padding: clamp(40px, 8vw, 96px) 24px;
	margin-top: 24px;
}
.sweet-pair-hero h1 {
	font-size: clamp(2.5rem, 6vw, 4rem);
	line-height: 1;
}
.sweet-pair-hero p {
	max-width: 34rem;
	margin-left: auto;
	margin-right: auto;
	font-size: 1.125rem;
}

/* Homepage sections */
.sweet-pair-featured,
.sweet-pair-categories {
	margin-top: 40px;
}
/* Hide the featured section while the category has no products */
.sweet-pair-featured:not(:has(.products)) {
	display: none;
}

/* Shop by category: surface cards with hairline border */
.sweet-pair-cat-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin-top: 24px;
}
@media (max-width: 781px) {
	.sweet-pair-cat-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;
	}
	.sweet-pair-cat-card {
		padding: 24px 16px;
	}
}
.sweet-pair-cat-grid > * {
	margin: 0 !important;
}
.sweet-pair-cat-card {
	position: relative;
	background: var(--wp--preset--color--accent-5);
	border: 1px solid var(--wp--preset--color--accent-6);
	border-radius: 20px;
	padding: 40px 24px;
	transition: border-color 0.15s ease;
}
.sweet-pair-cat-card:hover,
.sweet-pair-cat-card:focus-within {
	border-color: var(--wp--preset--color--accent-2);
}
.sweet-pair-cat-card h3 {
	margin: 0;
}
.sweet-pair-cat-card a {
	text-decoration: none;
}
.sweet-pair-cat-card a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 20px;
}

/* Footer */
.sweet-pair-footer {
	margin-top: 64px;
	padding: 40px var(--wp--preset--spacing--50) 24px;
	border-top: 1px solid var(--wp--preset--color--accent-6);
	background: var(--wp--preset--color--accent-5);
}
.sweet-pair-footer-links {
	list-style: none;
	padding-left: 0;
}
.sweet-pair-footer-links li {
	margin: 0 0 8px;
}
.sweet-pair-footer-links a {
	text-decoration: none;
}
.sweet-pair-footer-links a:hover {
	text-decoration: underline;
}
.sweet-pair-footer-bottom {
	margin-top: 40px;
	padding-top: 24px;
	border-top: 1px solid var(--wp--preset--color--accent-6);
	color: var(--wp--preset--color--accent-4);
}

/* Contact form (Contact Form 7) */
.wpcf7 form label {
	display: block;
	margin-bottom: 16px;
	font-weight: 500;
}
.wpcf7 form input[type="text"],
.wpcf7 form input[type="email"],
.wpcf7 form textarea {
	display: block;
	width: 100%;
	max-width: 36rem;
	margin-top: 8px;
	padding: 10px 14px;
	font: inherit;
	box-sizing: border-box;
}
.wpcf7 form .wpcf7-acceptance .wpcf7-list-item {
	margin: 0 0 16px;
}
.wpcf7 form .wpcf7-submit {
	background: var(--wp--preset--color--accent-3);
	color: #fff;
	border: 0;
	border-radius: 999px;
	min-height: 44px;
	padding: 10px 24px;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}
.wpcf7 form .wpcf7-submit:hover,
.wpcf7 form .wpcf7-submit:focus {
	background: var(--wp--preset--color--contrast);
}
.wpcf7 form .wpcf7-response-output {
	border-radius: 12px;
	margin-left: 0;
	margin-right: 0;
}

/* Header: keep the logo and wordmark whole when the menu gets long (e.g. Bulgarian) */
.sweet-pair-header .wp-block-site-logo {
	flex-shrink: 0;
}
.sweet-pair-header .wp-block-site-title {
	white-space: nowrap;
}
.sweet-pair-header .wp-block-navigation {
	font-size: 15px;
}

/* Cookie banner (Complianz) in the Sweet Pair look.
   Accept and Deny get the same visual weight on purpose. */
body .cmplz-cookiebanner {
	--cmplz_banner_background_color: #FFFFFF;
	--cmplz_banner_border_color: #EDD9D3;
	--cmplz_banner_border_radius: 20px 20px 20px 20px;
	--cmplz_text_color: #2E1D21;
	--cmplz_hyperlink_color: #4B3036;
	--cmplz_title_font_size: 18px;
	--cmplz_button_border_radius: 999px 999px 999px 999px;
	--cmplz_button_accept_background_color: #4B3036;
	--cmplz_button_accept_border_color: #4B3036;
	--cmplz_button_accept_text_color: #FFFFFF;
	--cmplz_button_deny_background_color: #FFFFFF;
	--cmplz_button_deny_border_color: #4B3036;
	--cmplz_button_deny_text_color: #4B3036;
	--cmplz_button_settings_background_color: #FFFFFF;
	--cmplz_button_settings_border_color: #EDD9D3;
	--cmplz_button_settings_text_color: #4B3036;
	font-family: var(--wp--preset--font-family--dm-sans);
}
body .cmplz-cookiebanner .cmplz-btn {
	min-height: 44px;
	font-family: var(--wp--preset--font-family--dm-sans);
	font-weight: 700;
}
body .cmplz-cookiebanner .cmplz-title {
	font-family: var(--wp--preset--font-family--fredoka);
	font-weight: 700;
}
/* Cookie banner: no bullets, and hide the empty third link (no separate imprint page) */
body .cmplz-cookiebanner .cmplz-documents,
body .cmplz-cookiebanner .cmplz-links ul {
	list-style: none;
	padding-left: 0;
}
body .cmplz-cookiebanner li:has(> a:empty),
body .cmplz-cookiebanner a.cmplz-link:empty {
	display: none;
}

/* Coming-soon page with waiting list */
.sweet-pair-coming-soon { text-align: center; }
.sweet-pair-coming-soon > * { max-width: 560px; }
.sweet-pair-waitlist { width: 100%; text-align: left; }
.sweet-pair-waitlist label { display: block; font-weight: 600; margin-bottom: 12px; }
.sweet-pair-waitlist input[type="email"] { width: 100%; padding: 12px 14px; border: 1px solid currentColor; border-radius: 12px; font: inherit; margin-top: 6px; box-sizing: border-box; }
.sweet-pair-waitlist .wpcf7-acceptance .wpcf7-list-item { margin: 0; font-size: 0.875rem; }
.sweet-pair-waitlist input[type="submit"] { width: 100%; margin-top: 16px; padding: 14px; border: 0; border-radius: 999px; font: inherit; font-weight: 600; cursor: pointer; background: var(--wp--preset--color--accent-3, #4B3036); color: var(--wp--preset--color--base, #fff); }
.sweet-pair-waitlist input[type="submit"]:disabled { opacity: .5; cursor: not-allowed; }
