/*
 * Anaardoon front-end and editor styles.
 * Colours, type and spacing come from theme.json presets; no raw hex values here.
 * Logical properties only, so RTL is correct by default.
 */

/* Visible keyboard focus */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--wp--preset--color--pomegranate);
	outline-offset: 2px;
	border-radius: var(--wp--custom--radius--small);
}

.anaardoon-footer :focus-visible {
	outline-color: var(--wp--preset--color--cream);
}

/* Large tap targets */
.wp-element-button,
.wp-block-button__link {
	min-block-size: var(--wp--custom--tap-target);
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* Mixed Persian/Latin snippets (phone, order and tracking numbers) */
bdi,
.anaardoon-isolate {
	unicode-bidi: isolate;
}

/* Header, main and footer sit flush; each section brings its own padding */
.wp-site-blocks > * {
	margin-block-start: 0;
}

/* Hand-drawn pomegranate pattern behind a section */
.anaardoon-pattern-bg {
	background-color: var(--wp--preset--color--cream);
	background-image: url("../images/pattern-pomegranate.webp");
	background-repeat: repeat;
	background-size: 632px auto;
}

/* Card (used for the ordering steps) */
.anaardoon-card {
	background-color: var(--wp--preset--color--cream);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--large);
	padding: var(--wp--preset--spacing--40);
}

.anaardoon-card .wp-block-image img {
	border-radius: var(--wp--custom--radius--medium);
}

/* Product boxes on the front page */
.anaardoon-products .wc-block-product {
	background-color: var(--wp--preset--color--cream);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--large);
	padding: var(--wp--preset--spacing--30);
}

.anaardoon-products .wc-block-components-product-image img {
	border-radius: var(--wp--custom--radius--medium);
}

/* FAQ (Details blocks) */
.wp-block-details {
	background-color: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--medium);
	padding-inline: var(--wp--preset--spacing--40);
}

/* Padding alone keeps the row above the 44px tap target */
.wp-block-details summary {
	padding-block: var(--wp--preset--spacing--30);
	font-weight: 700;
	cursor: pointer;
}

.wp-block-details[open] summary {
	border-block-end: 1px solid var(--wp--preset--color--border);
}

/* Contact list */
.anaardoon-contact-list {
	text-align: center;
}

/* Header */
.anaardoon-header {
	border-block-end: 1px solid var(--wp--preset--color--border);
}

.anaardoon-header .wp-block-navigation-item__content,
.anaardoon-track-link a {
	min-block-size: var(--wp--custom--tap-target);
	display: inline-flex;
	align-items: center;
}

/* Size only: core shows/hides the menu toggle by breakpoint, so don't set display here */
.anaardoon-header .wp-block-navigation__responsive-container-open,
.anaardoon-header .wp-block-navigation__responsive-container-close {
	min-block-size: var(--wp--custom--tap-target);
	min-inline-size: var(--wp--custom--tap-target);
	align-items: center;
	justify-content: center;
}

.anaardoon-track-link a {
	padding-inline: var(--wp--preset--spacing--20);
	color: var(--wp--preset--color--ink);
	text-decoration: none;
	white-space: nowrap;
}

.anaardoon-track-link a:hover {
	color: var(--wp--preset--color--pomegranate-dark);
}

.anaardoon-header .wc-block-mini-cart__button {
	min-block-size: var(--wp--custom--tap-target);
	min-inline-size: var(--wp--custom--tap-target);
}

/* On narrow phones show the logo alone (only when a logo is set) */
@media (max-width: 480px) {
	.anaardoon-header .wp-block-site-logo + .wp-block-site-title {
		display: none;
	}
}

/* Footer */
.anaardoon-plain-list {
	list-style: none;
	padding-inline-start: 0;
}

.anaardoon-plain-list a {
	display: inline-block;
	padding-block: var(--wp--preset--spacing--10);
	min-block-size: var(--wp--custom--tap-target);
	line-height: var(--wp--custom--tap-target);
}

.anaardoon-trust-badge {
	border: 1px dashed currentColor;
	border-radius: var(--wp--custom--radius--medium);
	padding: var(--wp--preset--spacing--30);
	text-align: center;
}
