/* Base: reset, typography, buttons, forms, notices. RTL-first, logical properties. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--f-plum-deep);
	color: var(--f-text);
	font-family: var(--f-font-ui);
	font-size: var(--f-fs-base);
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, video, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--f-gold-light); }
button { font: inherit; color: inherit; cursor: pointer; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0 0 0.4em; font-weight: 400; line-height: 1.2; }
ul, ol { margin: 0; padding: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--f-gold-light); outline-offset: 3px; }
::selection { background: var(--f-gold); color: var(--f-plum); }

.screen-reader-text, .f-sr {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.f-skip { position: absolute; inset-inline-start: -999px; top: 8px; z-index: 1000; background: var(--f-gold); color: var(--f-plum); padding: 8px 16px; }
.f-skip:focus { inset-inline-start: 8px; }

.f-container { width: 100%; max-width: var(--f-max); margin-inline: auto; padding-inline: var(--f-gutter); }
.f-center { text-align: center; }
.f-muted { color: var(--f-muted); font-size: var(--f-fs-sm); }

/* Typography */
.f-display { font-family: var(--f-font-display); font-weight: 400; letter-spacing: 0; }
.f-h1 { font-size: var(--f-fs-h1); }
.f-h2 { font-size: var(--f-fs-h2); }
.f-eyebrow { font-size: var(--f-fs-sm); font-weight: 500; color: var(--f-gold); letter-spacing: 0.02em; margin-bottom: 0.6em; } /* Figma: 500 13px gold */
.f-eyebrow--dark { color: var(--f-gold-dark); }
.f-count { font-family: var(--f-font-latin); color: var(--f-gold); font-size: 0.5em; vertical-align: middle; }
.f-latin, .woocommerce-Price-amount { font-family: var(--f-font-latin); }

/* Buttons */
.f-btn, .button, button.button, input.button, .wc-forward, .checkout-button, #place_order {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 48px; padding: 0 28px; border: 1px solid transparent; border-radius: 0;
	font-family: var(--f-font-ui); font-size: var(--f-fs-sm); font-weight: 500; line-height: 1;
	transition: background-color .2s var(--f-ease), color .2s var(--f-ease), border-color .2s var(--f-ease);
	text-decoration: none; cursor: pointer;
}
/* Generic/outline buttons first, gold (primary) buttons after with higher specificity,
   so WooCommerce's ".button" class never cancels the primary style (found in browser QA). */
.f-btn--outline-light, .button, .wc-forward {
	background: transparent; color: var(--f-text); border-color: var(--f-line-strong);
}
.f-btn--outline-light:hover, .button:hover, .wc-forward:hover { border-color: var(--f-gold); color: var(--f-gold-light); }
.f-btn.f-btn--gold, .button.single_add_to_cart_button, .button.checkout-button, .checkout-button, button#place_order, .woocommerce-mini-cart__buttons .button.checkout {
	background: var(--f-gold); color: var(--f-plum); border-color: var(--f-gold);
}
.f-btn.f-btn--gold:hover, .button.single_add_to_cart_button:hover, .button.checkout-button:hover, button#place_order:hover, .woocommerce-mini-cart__buttons .button.checkout:hover {
	background: var(--f-gold-light); border-color: var(--f-gold-light); color: var(--f-plum);
}
.f-btn--outline { background: transparent; color: var(--f-text); border-color: var(--f-line-strong); }
.f-btn--block { width: 100%; }
.button:disabled, .button.disabled, .f-btn:disabled { opacity: .45; cursor: not-allowed; }

.f-link { display: inline-flex; align-items: center; gap: 8px; font-size: var(--f-fs-sm); color: var(--f-text); border-bottom: 1px solid var(--f-gold); padding-bottom: 4px; }
.f-link--dark { color: var(--f-dark); }
.f-link .f-ico { transition: transform .2s var(--f-ease); }
.f-link:hover .f-ico { transform: translateX(-4px); }

.f-iconbtn { display: inline-grid; place-items: center; width: 40px; height: 40px; background: none; border: 0; color: inherit; position: relative; padding: 0; }
.f-iconbtn--box { border: 1px solid var(--f-line-strong); }

/* Forms */
input[type="text"], input[type="email"], input[type="tel"], input[type="search"], input[type="password"], input[type="number"], textarea, select {
	width: 100%; min-height: 48px; padding: 10px 14px;
	background: rgba(242, 236, 228, 0.04); color: var(--f-text);
	border: 1px solid var(--f-line-strong); border-radius: 0;
	font-family: var(--f-font-ui); font-size: var(--f-fs-sm);
}
textarea { min-height: 96px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--f-muted); opacity: .8; }
input:focus, textarea:focus, select:focus { border-color: var(--f-gold); outline: none; box-shadow: 0 0 0 1px var(--f-gold); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23c4a465' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 14px center; padding-inline-end: 36px; }
select option { background: var(--f-plum); color: var(--f-text); }
label { display: block; font-size: var(--f-fs-sm); margin-bottom: 6px; color: var(--f-text); }
.required { color: var(--f-gold); text-decoration: none; border: 0; }

/* WooCommerce notices */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner {
	list-style: none; margin: 0 0 24px; padding: 14px 18px; border: 1px solid var(--f-line-strong);
	background: var(--f-plum-soft); color: var(--f-text); font-size: var(--f-fs-sm);
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
}
.woocommerce-error { border-color: var(--f-danger); }
.woocommerce-message .button, .woocommerce-info .button { min-height: 36px; padding: 0 16px; order: 2; }

.f-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.f-badges li { border: 1px solid var(--f-line-strong); padding: 6px 12px; font-size: 11px; font-family: var(--f-font-ui); color: var(--f-text); direction: ltr; }

/* Quantity stepper (product page + cart). Shared here because product.css only loads on product pages. */
.quantity { display: inline-flex; align-items: stretch; border: 1px solid var(--f-line-strong); height: 52px; width: auto; }
.quantity .qty { width: 46px; min-height: 0; height: 100%; border: 0; text-align: center; background: transparent; padding: 0; -moz-appearance: textfield; font-family: var(--f-font-latin); font-size: 1.1rem; }
.quantity .qty:focus { box-shadow: none; }
.quantity .qty::-webkit-outer-spin-button, .quantity .qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.f-qty-btn { width: 38px; padding: 0; background: none; border: 0; color: var(--f-text); display: grid; place-items: center; font-size: 1.1rem; }
.f-qty-btn:hover { color: var(--f-gold-light); }

.f-chip {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 52px; min-height: 44px; padding: 0 14px;
	border: 1px solid var(--f-line-strong); color: var(--f-text); font-size: var(--f-fs-sm); background: transparent;
}
.f-chip small { color: var(--f-muted); font-size: 11px; }
.f-chip:hover { border-color: var(--f-gold); color: var(--f-text); }
.f-chip.is-on { background: var(--f-cream); color: var(--f-plum); border-color: var(--f-cream); }
.f-chip.is-on small { color: var(--f-dark-muted); }
.f-chip.is-disabled { opacity: .35; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
