/* -------------------------------------------------------------------------
 * Attire — tokens, reset, typography, controls
 * ---------------------------------------------------------------------- */

:root {
	--attire-text: #141414;
	--attire-bg: #ffffff;
	--attire-accent: #141414;
	--attire-accent-ink: #ffffff;
	--attire-muted: #767676;
	--attire-border: #e3e3e3;
	--attire-sale: #b3261e;
	--attire-bar-bg: #141414;
	--attire-bar-text: #ffffff;
	--attire-container: 1600px;

	--attire-surface: #f7f6f4;
	--attire-surface-2: #efedea;
	--attire-radius: 0px;
	--attire-radius-sm: 2px;
	--attire-gutter: 20px;
	--attire-header-h: 96px;

	--attire-font: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--attire-fs-micro: 0.6875rem;
	--attire-fs-small: 0.8125rem;
	--attire-fs-base: 0.9375rem;
	--attire-fs-lead: 1.0625rem;

	--attire-ease: cubic-bezier(0.32, 0.72, 0, 1);
	--attire-shadow: 0 24px 60px rgba(0, 0, 0, 0.14);

	--attire-z-header: 60;
	--attire-z-overlay: 90;
	--attire-z-drawer: 100;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--attire-bg);
	color: var(--attire-text);
	font-family: var(--attire-font);
	font-size: var(--attire-fs-base);
	font-optical-sizing: auto;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body.attire-no-scroll {
	overflow: hidden;
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: inherit;
	text-decoration: none;
}

a:hover {
	color: var(--attire-text);
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--attire-font);
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -0.01em;
	margin: 0 0 0.6em;
}

h1 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h2 { font-size: clamp(1.375rem, 2.2vw, 1.875rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.0625rem; }

p {
	margin: 0 0 1em;
}

ul, ol {
	margin: 0 0 1em;
	padding-left: 1.15em;
}

hr {
	border: 0;
	border-top: 1px solid var(--attire-border);
	margin: 2rem 0;
}

table {
	border-collapse: collapse;
	width: 100%;
}

/* Accessibility ---------------------------------------------------------- */

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed !important;
	top: 12px;
	left: 12px;
	width: auto;
	height: auto;
	clip: auto;
	z-index: 999;
	background: var(--attire-accent);
	color: var(--attire-accent-ink);
	padding: 12px 20px;
}

:focus-visible {
	outline: 2px solid var(--attire-accent);
	outline-offset: 2px;
}

/* Layout helpers --------------------------------------------------------- */

.attire-container {
	width: 100%;
	max-width: var(--attire-container);
	margin: 0 auto;
	padding: 0 var(--attire-gutter);
}

.attire-container--narrow {
	max-width: 900px;
}

.attire-section {
	padding: clamp(40px, 6vw, 76px) 0;
}

.attire-section__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 28px;
}

.attire-section__title {
	font-size: clamp(1.0625rem, 1.6vw, 1.375rem);
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-weight: 500;
	margin: 0 0 28px;
}

.attire-section__head .attire-section__title {
	margin: 0;
}

.attire-eyebrow {
	font-size: var(--attire-fs-micro);
	text-transform: uppercase;
	letter-spacing: 0.18em;
	color: var(--attire-muted);
}

.attire-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: var(--attire-fs-small);
	text-transform: uppercase;
	letter-spacing: 0.12em;
	border-bottom: 1px solid currentColor;
	padding-bottom: 2px;
}

.attire-placeholder {
	display: block;
	width: 100%;
	aspect-ratio: 2 / 3;
	background: repeating-linear-gradient(-45deg, var(--attire-surface), var(--attire-surface) 12px, var(--attire-surface-2) 12px, var(--attire-surface-2) 24px);
}

.attire-empty {
	padding: 60px 0;
	text-align: center;
	color: var(--attire-muted);
}

/* Buttons ---------------------------------------------------------------- */

.attire-btn,
.attire-page .button,
.attire-page button.button,
.attire-page input[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 50px;
	padding: 14px 30px;
	border: 1px solid var(--attire-accent);
	border-radius: var(--attire-radius);
	background: var(--attire-accent);
	color: var(--attire-accent-ink);
	font-family: inherit;
	font-size: var(--attire-fs-small);
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	line-height: 1;
	cursor: pointer;
	transition: background 0.25s var(--attire-ease), color 0.25s var(--attire-ease), opacity 0.25s var(--attire-ease);
	text-align: center;
}

.attire-btn:hover,
.attire-page .button:hover,
.attire-page button.button:hover,
.attire-page input[type="submit"]:hover {
	background: transparent;
	color: var(--attire-accent);
}

.attire-btn--outline {
	background: transparent;
	color: var(--attire-accent);
}

.attire-btn--outline:hover {
	background: var(--attire-accent);
	color: var(--attire-accent-ink);
}

.attire-btn--light {
	background: #fff;
	border-color: #fff;
	color: #141414;
}

.attire-btn--light:hover {
	background: transparent;
	color: #fff;
}

.attire-btn--full {
	width: 100%;
}

.attire-btn--ghost {
	background: transparent;
	border-color: transparent;
	color: var(--attire-text);
	text-decoration: underline;
	text-underline-offset: 4px;
	min-height: 40px;
	padding: 8px 12px;
}

.attire-btn--ghost:hover {
	background: transparent;
	color: var(--attire-muted);
}

.attire-btn[disabled],
.attire-btn.is-loading {
	opacity: 0.55;
	pointer-events: none;
}

.attire-btn.is-loading::after {
	content: "";
	width: 14px;
	height: 14px;
	border: 2px solid currentColor;
	border-top-color: transparent;
	border-radius: 50%;
	animation: attire-spin 0.7s linear infinite;
}

@keyframes attire-spin {
	to { transform: rotate(360deg); }
}

/* Form controls ---------------------------------------------------------- */

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="date"],
select,
textarea {
	width: 100%;
	padding: 13px 14px;
	border: 1px solid var(--attire-border);
	border-radius: var(--attire-radius-sm);
	background: #fff;
	color: var(--attire-text);
	font-family: inherit;
	font-size: var(--attire-fs-base);
	line-height: 1.4;
	transition: border-color 0.2s var(--attire-ease), box-shadow 0.2s var(--attire-ease);
	appearance: none;
}

input:focus,
select:focus,
textarea:focus {
	outline: none;
	border-color: var(--attire-accent);
	box-shadow: 0 0 0 1px var(--attire-accent);
}

input::placeholder,
textarea::placeholder {
	color: #a2a2a2;
}

select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%23141414' stroke-width='1.4'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 38px;
}

label {
	font-size: var(--attire-fs-small);
}

textarea {
	min-height: 120px;
	resize: vertical;
}

/* Quantity stepper ------------------------------------------------------- */

.attire-qty {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--attire-border);
	border-radius: var(--attire-radius-sm);
	height: 50px;
	background: #fff;
}

.attire-qty__btn {
	width: 44px;
	height: 100%;
	border: 0;
	background: none;
	color: var(--attire-text);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
}

.attire-qty__btn:disabled {
	opacity: 0.35;
	cursor: default;
}

.attire-qty input.qty,
.attire-qty input[type="number"] {
	width: 46px;
	height: 100%;
	border: 0;
	padding: 0;
	text-align: center;
	font-size: var(--attire-fs-base);
	background: none;
	-moz-appearance: textfield;
}

.attire-qty input::-webkit-outer-spin-button,
.attire-qty input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.attire-qty input:focus {
	box-shadow: none;
	border: 0;
}

.attire-qty--sm {
	height: 38px;
}

.attire-qty--sm .attire-qty__btn {
	width: 34px;
}

.attire-qty--sm input {
	width: 34px;
	font-size: var(--attire-fs-small);
}

/* Rich text -------------------------------------------------------------- */

.attire-richtext {
	max-width: 820px;
	margin: 0 auto;
	font-size: var(--attire-fs-lead);
	line-height: 1.75;
}

.attire-richtext img {
	margin: 1.5em 0;
}

.attire-richtext blockquote {
	margin: 1.5em 0;
	padding-left: 1.2em;
	border-left: 2px solid var(--attire-accent);
	font-style: italic;
}

/* Overlay ---------------------------------------------------------------- */

.attire-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.35s var(--attire-ease), visibility 0.35s var(--attire-ease);
	z-index: var(--attire-z-overlay);
}

.attire-overlay.is-visible {
	opacity: 1;
	visibility: visible;
}

.attire-overlay[hidden] {
	display: block;
}

/* Notices ---------------------------------------------------------------- */

.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-notice {
	list-style: none;
	margin: 0 0 20px;
	padding: 16px 18px;
	border: 1px solid var(--attire-border);
	border-left: 3px solid var(--attire-accent);
	background: var(--attire-surface);
	font-size: var(--attire-fs-small);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

.woocommerce-error {
	border-left-color: var(--attire-sale);
	color: var(--attire-sale);
}

.woocommerce-message .button,
.woocommerce-info .button {
	min-height: 40px;
	padding: 10px 18px;
	margin-left: auto;
	font-size: var(--attire-fs-micro);
}

.woocommerce-error li,
.woocommerce-message li {
	list-style: none;
}

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