/* ==========================================================================
   U&U Hosiery — components
   ========================================================================== */

/* --------------------------------------------------------------------------
   Buttons
   Two weights only: filled olive (primary intent) and outlined (secondary).
   Gold is reserved for accents and the "Buy Now" affirmative on the product page.
   -------------------------------------------------------------------------- */

.u-btn {
	--btn-bg: var(--u-olive);
	--btn-fg: var(--u-cream);
	--btn-bd: var(--u-olive);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--u-s2);
	padding: 14px 28px;
	min-height: 48px;                 /* comfortable mobile tap target */
	background: var(--btn-bg);
	color: var(--btn-fg);
	border: 1px solid var(--btn-bd);
	border-radius: var(--u-r-xs);
	font-family: var(--u-font-head);
	font-size: var(--u-fs-sm);
	font-weight: 600;
	letter-spacing: var(--u-track-button);
	line-height: 1;
	text-align: center;
	cursor: pointer;
	transition: background var(--u-t-fast) var(--u-ease),
		border-color var(--u-t-fast) var(--u-ease),
		color var(--u-t-fast) var(--u-ease),
		transform var(--u-t-fast) var(--u-ease);
	-webkit-appearance: none;
	appearance: none;
}

.u-btn:hover {
	--btn-bg: var(--u-ink);
	--btn-bd: var(--u-ink);
	color: var(--btn-fg);
}

/* Press feedback — small, quick, physical. */
.u-btn:active { transform: translateY(1px); }

.u-btn[disabled],
.u-btn.is-disabled {
	opacity: 0.45;
	cursor: not-allowed;
	pointer-events: none;
}

.u-btn--ghost {
	--btn-bg: transparent;
	--btn-fg: var(--u-olive);
	--btn-bd: var(--u-line-strong);
}

.u-btn--ghost:hover {
	--btn-bg: transparent;
	--btn-fg: var(--u-olive);
	--btn-bd: var(--u-olive);
}

.u-btn--gold {
	--btn-bg: var(--u-gold);
	--btn-fg: var(--u-ink);
	--btn-bd: var(--u-gold);
}

.u-btn--gold:hover {
	--btn-bg: var(--u-gold-deep);
	--btn-bd: var(--u-gold-deep);
	--btn-fg: var(--u-cream);
}

.u-btn--light {
	--btn-bg: var(--u-cream);
	--btn-fg: var(--u-ink);
	--btn-bd: var(--u-cream);
}

.u-btn--light:hover {
	--btn-bg: var(--u-gold-soft);
	--btn-bd: var(--u-gold-soft);
	--btn-fg: var(--u-ink);
}

.u-btn--outline-light {
	--btn-bg: transparent;
	--btn-fg: var(--u-cream);
	--btn-bd: rgba(247, 245, 242, 0.45);
}

.u-btn--outline-light:hover {
	--btn-bg: rgba(247, 245, 242, 0.1);
	--btn-bd: var(--u-cream);
	--btn-fg: var(--u-cream);
}

.u-btn--block { width: 100%; }
.u-btn--sm { padding: 10px 18px; min-height: 40px; font-size: var(--u-fs-xs); }
.u-btn--lg { padding: 17px 34px; min-height: 54px; font-size: var(--u-fs-body); }

.u-btn.is-busy { pointer-events: none; opacity: 0.75; }

.u-btn.is-busy::after {
	content: "";
	width: 14px;
	height: 14px;
	border: 2px solid currentColor;
	border-top-color: transparent;
	border-radius: 50%;
	animation: u-spin 640ms linear infinite;
}

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

/* Icon-only round control (header actions, gallery arrows). */
.u-iconbtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	background: transparent;
	color: var(--u-ink);
	border: 1px solid transparent;
	border-radius: var(--u-r-pill);
	cursor: pointer;
	position: relative;
	transition: background var(--u-t-fast) var(--u-ease), color var(--u-t-fast) var(--u-ease);
}

.u-iconbtn:hover { background: var(--u-cream-warm); color: var(--u-olive); }
.u-iconbtn:active { transform: scale(0.94); }

/* --------------------------------------------------------------------------
   Badges
   -------------------------------------------------------------------------- */

.u-badge {
	display: inline-flex;
	align-items: center;
	padding: 5px 9px;
	border-radius: var(--u-r-xs);
	font-family: var(--u-font-head);
	font-size: 0.6875rem;   /* 11px — decorative label, never body copy */
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	line-height: 1;
	white-space: nowrap;
}

.u-badge--sale { background: var(--u-terracotta); color: #fff; }
.u-badge--new { background: var(--u-olive); color: var(--u-cream); }
.u-badge--best { background: var(--u-gold); color: var(--u-ink); }
.u-badge--limited { background: var(--u-cream); color: var(--u-terracotta); box-shadow: inset 0 0 0 1px var(--u-terracotta); }
.u-badge--soft { background: var(--u-gold-wash); color: var(--u-gold-deep); }

/* --------------------------------------------------------------------------
   Star rating
   -------------------------------------------------------------------------- */

.u-stars {
	position: relative;
	display: inline-block;
	font-size: 0.8125rem;
	letter-spacing: 0.08em;
	line-height: 1;
	vertical-align: middle;
	font-family: var(--u-font-body);
}

.u-stars__track { color: var(--u-line-strong); }

.u-stars__fill {
	position: absolute;
	inset: 0;
	overflow: hidden;
	white-space: nowrap;
	color: var(--u-gold);
}

.u-stars__count {
	margin-left: var(--u-s2);
	font-size: var(--u-fs-xs);
	color: var(--u-muted);
	vertical-align: middle;
}

/* --------------------------------------------------------------------------
   Product card
   Hairline border, no drop shadow. The plate is white against the cream page so
   the product silhouette carries the composition instead of a card shadow.
   -------------------------------------------------------------------------- */

.u-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--u-paper);
	border: var(--u-border);
	border-radius: var(--u-r-sm);
	overflow: hidden;
	transition: border-color var(--u-t) var(--u-ease), box-shadow var(--u-t) var(--u-ease);
}

.u-card:hover { border-color: var(--u-line-strong); box-shadow: var(--u-shadow-md); }

/* Tone coding: a 2px bar along the card top, visible but quiet. */
.u-card::before {
	content: "";
	position: absolute;
	inset-inline: 0;
	top: 0;
	height: 2px;
	background: var(--u-tone-neutral);
	opacity: 0;
	transition: opacity var(--u-t) var(--u-ease);
	z-index: 3;
}

.u-card:hover::before,
.u-card:focus-within::before { opacity: 1; }

.u-card.is-tone-men::before { background: var(--u-tone-men); }
.u-card.is-tone-women::before { background: var(--u-tone-women); }
.u-card.is-tone-islamic::before { background: var(--u-tone-islamic); }

.u-card__media {
	position: relative;
	aspect-ratio: var(--u-card-ratio);
	background: var(--u-cream-deep);
	overflow: hidden;
}

.u-card__link { display: block; height: 100%; }

.u-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: opacity var(--u-t-slow) var(--u-ease), transform var(--u-t-slow) var(--u-ease-out);
}

.u-card__img--back {
	position: absolute;
	inset: 0;
	opacity: 0;
}

.u-card__img--empty { width: 100%; height: 100%; background: var(--u-cream-warm); }

@media (hover: hover) {
	.u-card:hover .u-card__img--front { opacity: 0; }
	.u-card:hover .u-card__img--back { opacity: 1; }
	.u-card:hover .u-card__img { transform: scale(1.035); }
}

.u-card__badges {
	position: absolute;
	top: var(--u-s3);
	left: var(--u-s3);
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	z-index: 2;
	pointer-events: none;
}

.u-card__wish {
	position: absolute;
	top: var(--u-s3);
	right: var(--u-s3);
	z-index: 2;
	width: 36px;
	height: 36px;
	display: grid;
	place-items: center;
	background: rgba(255, 255, 255, 0.92);
	color: var(--u-muted);
	border: 1px solid var(--u-line);
	border-radius: var(--u-r-pill);
	cursor: pointer;
	transition: color var(--u-t-fast) var(--u-ease), background var(--u-t-fast) var(--u-ease), transform var(--u-t-fast) var(--u-ease);
}

.u-card__wish:hover { color: var(--u-terracotta); transform: scale(1.06); }

.u-card__wish[aria-pressed="true"] {
	color: var(--u-terracotta);
	background: var(--u-terracotta-soft);
	border-color: var(--u-terracotta);
}

.u-card__wish[aria-pressed="true"] svg { fill: currentColor; }

.u-card__actions {
	position: absolute;
	inset-inline: var(--u-s3);
	bottom: var(--u-s3);
	z-index: 2;
	display: flex;
	gap: var(--u-s2);
	align-items: center;
	transform: translateY(calc(100% + var(--u-s4)));
	opacity: 0;
	transition: transform var(--u-t) var(--u-ease-out), opacity var(--u-t) var(--u-ease);
}

@media (hover: hover) {
	.u-card:hover .u-card__actions,
	.u-card:focus-within .u-card__actions { transform: translateY(0); opacity: 1; }
}

/* Touch devices never get a hover — show the action row permanently instead. */
@media (hover: none) {
	.u-card__actions { position: static; transform: none; opacity: 1; padding: 0; }
	.u-card__peek { display: none; }
	.u-card__add { margin: var(--u-s3) var(--u-s3) 0; width: calc(100% - var(--u-s5)); }
}

.u-card__add {
	flex: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--u-s2);
	min-height: 42px;
	padding: 0 var(--u-s4);
	background: var(--u-olive);
	color: var(--u-cream);
	border: 1px solid var(--u-olive);
	border-radius: var(--u-r-xs);
	font-family: var(--u-font-head);
	font-size: var(--u-fs-xs);
	font-weight: 600;
	letter-spacing: var(--u-track-button);
	cursor: pointer;
	transition: background var(--u-t-fast) var(--u-ease), transform var(--u-t-fast) var(--u-ease);
}

.u-card__add:hover { background: var(--u-ink); border-color: var(--u-ink); color: var(--u-cream); }
.u-card__add:active { transform: translateY(1px); }
.u-card__add.is-busy { opacity: 0.7; pointer-events: none; }
.u-card__add.is-done { background: var(--u-success); border-color: var(--u-success); }

.u-card__peek {
	display: inline-flex;
	align-items: center;
	min-height: 42px;
	padding: 0 var(--u-s4);
	background: rgba(255, 255, 255, 0.94);
	color: var(--u-ink);
	border: 1px solid var(--u-line);
	border-radius: var(--u-r-xs);
	font-family: var(--u-font-head);
	font-size: var(--u-fs-xs);
	font-weight: 600;
	white-space: nowrap;
}

.u-card__peek:hover { background: #fff; color: var(--u-olive); }

.u-card__soldout {
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	padding: var(--u-s3);
	background: rgba(28, 32, 26, 0.82);
	color: var(--u-cream);
	font-family: var(--u-font-head);
	font-size: var(--u-fs-xs);
	font-weight: 600;
	letter-spacing: var(--u-track-eyebrow);
	text-transform: uppercase;
	text-align: center;
	z-index: 2;
}

.u-card.is-out .u-card__media { filter: saturate(0.45); }

.u-card__body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: var(--u-s4) var(--u-s4) var(--u-s5);
}

.u-card__rating { display: flex; align-items: center; min-height: 16px; }

.u-card__title {
	margin: 0;
	font-family: var(--u-font-head);
	font-size: var(--u-fs-name);
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: 0;
}

.u-card__title a { color: var(--u-ink); }
.u-card__title a:hover { color: var(--u-olive); }

.u-card__price {
	display: flex;
	align-items: baseline;
	gap: var(--u-s2);
	flex-wrap: wrap;
	margin-top: 2px;
	font-family: var(--u-font-head);
	font-size: var(--u-fs-price);
	font-weight: 600;
	color: var(--u-ink);
}

.u-card__price del,
.u-price del {
	order: 2;
	font-size: var(--u-fs-sm);
	font-weight: 400;
	color: var(--u-muted-soft);
	text-decoration: line-through;
}

.u-card__price ins,
.u-price ins {
	order: 1;
	text-decoration: none;
	color: var(--u-terracotta);
}

.u-card__stock {
	margin: 2px 0 0;
	font-size: var(--u-fs-xs);
	font-weight: 600;
	color: var(--u-terracotta);
	letter-spacing: 0.02em;
}

/* List layout variant used by the shop page view toggle. */
@media (min-width: 700px) {
	.u-card--list {
		flex-direction: row;
		align-items: stretch;
	}

	.u-card--list .u-card__media { flex: 0 0 220px; aspect-ratio: var(--u-card-ratio); }
	.u-card--list .u-card__body { justify-content: center; padding: var(--u-s6); gap: var(--u-s2); }
	.u-card--list .u-card__title { font-size: 1.25rem; }
}

/* --------------------------------------------------------------------------
   Product grid + carousel
   -------------------------------------------------------------------------- */

.u-grid {
	display: grid;
	gap: var(--u-s4);
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 700px) {
	.u-grid { gap: var(--u-s5); grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1000px) {
	.u-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.u-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.u-grid--list { grid-template-columns: minmax(0, 1fr); }

/* On mobile the same markup becomes a snapping horizontal rail — no duplicate DOM. */
.u-rail {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(66vw, 1fr);
	gap: var(--u-s4);
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	padding-bottom: var(--u-s2);
	margin-inline: calc(var(--u-gutter) * -1);
	padding-inline: var(--u-gutter);
}

.u-rail::-webkit-scrollbar { display: none; }
.u-rail > * { scroll-snap-align: start; }

@media (min-width: 560px) {
	.u-rail { grid-auto-columns: minmax(300px, 1fr); }
}

@media (min-width: 1000px) {
	.u-rail {
		grid-auto-flow: row;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		overflow: visible;
		margin-inline: 0;
		padding-inline: 0;
		gap: var(--u-s5);
	}
}

.u-rail-nav { display: none; gap: var(--u-s2); }

@media (min-width: 1000px) {
	.u-rail-nav.is-scrollable { display: flex; }
}

.u-rail-nav button {
	width: 40px;
	height: 40px;
	display: grid;
	place-items: center;
	background: var(--u-paper);
	border: var(--u-border-strong);
	border-radius: var(--u-r-pill);
	color: var(--u-ink);
	cursor: pointer;
	transition: background var(--u-t-fast) var(--u-ease), color var(--u-t-fast) var(--u-ease);
}

.u-rail-nav button:hover:not([disabled]) { background: var(--u-olive); color: var(--u-cream); border-color: var(--u-olive); }
.u-rail-nav button[disabled] { opacity: 0.35; cursor: default; }
.u-rail-nav button:first-child svg { transform: rotate(180deg); }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

.u-field {
	width: 100%;
	min-height: 48px;
	padding: 12px 16px;
	background: var(--u-paper);
	color: var(--u-ink);
	border: 1px solid var(--u-line-strong);
	border-radius: var(--u-r-xs);
	transition: border-color var(--u-t-fast) var(--u-ease), box-shadow var(--u-t-fast) var(--u-ease);
}

.u-field::placeholder { color: var(--u-muted-soft); }

.u-field:focus {
	border-color: var(--u-olive);
	box-shadow: 0 0 0 3px rgba(46, 59, 44, 0.1);
	outline: none;
}

.u-label {
	display: block;
	margin-bottom: 6px;
	font-family: var(--u-font-head);
	font-size: var(--u-fs-sm);
	font-weight: 600;
	color: var(--u-ink);
}

select.u-field {
	-webkit-appearance: none;
	appearance: none;
	padding-right: 40px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23656B60' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 9 7 7 7-7'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	cursor: pointer;
}

/* Quantity stepper */
.u-qty {
	display: inline-flex;
	align-items: stretch;
	border: 1px solid var(--u-line-strong);
	border-radius: var(--u-r-xs);
	overflow: hidden;
	background: var(--u-paper);
}

.u-qty button {
	width: 44px;
	display: grid;
	place-items: center;
	background: transparent;
	border: 0;
	color: var(--u-ink);
	cursor: pointer;
	transition: background var(--u-t-fast) var(--u-ease);
}

.u-qty button:hover { background: var(--u-cream-deep); }
.u-qty button:disabled { opacity: 0.35; cursor: not-allowed; }

.u-qty input {
	width: 52px;
	min-height: 48px;
	border: 0;
	border-inline: 1px solid var(--u-line);
	text-align: center;
	font-family: var(--u-font-head);
	font-weight: 600;
	background: transparent;
	-moz-appearance: textfield;
}

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

/* Colour swatches — actual colour, with the name available to assistive tech. */
.u-swatches { display: flex; flex-wrap: wrap; gap: var(--u-s3); }

.u-swatch {
	position: relative;
	width: 34px;
	height: 34px;
	padding: 0;
	border-radius: var(--u-r-pill);
	border: 1px solid var(--u-line-strong);
	background: var(--swatch, var(--u-cream-warm));
	cursor: pointer;
	transition: transform var(--u-t-fast) var(--u-ease), box-shadow var(--u-t-fast) var(--u-ease);
}

.u-swatch:hover { transform: scale(1.08); }

.u-swatch[aria-pressed="true"] {
	box-shadow: 0 0 0 2px var(--u-paper), 0 0 0 4px var(--u-olive);
}

/* Size buttons — out-of-stock stays visible and struck through, never hidden. */
.u-sizes { display: flex; flex-wrap: wrap; gap: var(--u-s2); }

.u-size {
	min-width: 52px;
	min-height: 44px;
	padding: 0 var(--u-s4);
	background: var(--u-paper);
	border: 1px solid var(--u-line-strong);
	border-radius: var(--u-r-xs);
	font-family: var(--u-font-head);
	font-size: var(--u-fs-sm);
	font-weight: 600;
	color: var(--u-ink);
	cursor: pointer;
	transition: border-color var(--u-t-fast) var(--u-ease), background var(--u-t-fast) var(--u-ease), color var(--u-t-fast) var(--u-ease);
}

.u-size:hover { border-color: var(--u-olive); }

.u-size[aria-pressed="true"] {
	background: var(--u-olive);
	border-color: var(--u-olive);
	color: var(--u-cream);
}

.u-size[disabled] {
	color: var(--u-muted-soft);
	background: var(--u-cream-deep);
	border-color: var(--u-line);
	cursor: not-allowed;
	text-decoration: line-through;
	text-decoration-thickness: 1px;
}

/* --------------------------------------------------------------------------
   Drawer (cart, mobile nav, filters) + overlay
   -------------------------------------------------------------------------- */

.u-overlay {
	position: fixed;
	inset: 0;
	z-index: var(--u-z-overlay);
	background: rgba(28, 32, 26, 0.5);
	opacity: 0;
	visibility: hidden;
	transition: opacity var(--u-t) var(--u-ease), visibility var(--u-t) var(--u-ease);
	backdrop-filter: blur(2px);
}

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

.u-drawer {
	position: fixed;
	top: 0;
	bottom: 0;
	z-index: var(--u-z-drawer);
	width: min(420px, 92vw);
	display: flex;
	flex-direction: column;
	background: var(--u-cream);
	box-shadow: var(--u-shadow-drawer);
	transition: transform var(--u-t-slow) var(--u-ease-out);
	visibility: hidden;
}

.u-drawer--right { right: 0; transform: translateX(100%); }
.u-drawer--left { left: 0; transform: translateX(-100%); }
.u-drawer.is-open { transform: translateX(0); visibility: visible; }

.u-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--u-s4);
	padding: var(--u-s5);
	border-bottom: var(--u-border);
	background: var(--u-paper);
	flex: none;
}

.u-drawer__title {
	margin: 0;
	font-family: var(--u-font-head);
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.u-drawer__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: var(--u-s5); }

.u-drawer__foot {
	flex: none;
	padding: var(--u-s5);
	border-top: var(--u-border);
	background: var(--u-paper);
	display: flex;
	flex-direction: column;
	gap: var(--u-s3);
}

/* --------------------------------------------------------------------------
   Modal (size guide, lightbox)
   -------------------------------------------------------------------------- */

.u-modal {
	position: fixed;
	inset: 0;
	z-index: var(--u-z-modal);
	display: grid;
	place-items: center;
	padding: var(--u-s5);
	opacity: 0;
	visibility: hidden;
	transition: opacity var(--u-t) var(--u-ease), visibility var(--u-t) var(--u-ease);
}

.u-modal.is-open { opacity: 1; visibility: visible; }
.u-modal__backdrop { position: absolute; inset: 0; background: rgba(28, 32, 26, 0.72); border: 0; cursor: zoom-out; }

.u-modal__panel {
	position: relative;
	z-index: 1;
	width: min(680px, 100%);
	max-height: 86vh;
	overflow-y: auto;
	background: var(--u-cream);
	border-radius: var(--u-r-md);
	box-shadow: var(--u-shadow-lg);
	transform: translateY(12px) scale(0.98);
	transition: transform var(--u-t-slow) var(--u-ease-out);
}

.u-modal.is-open .u-modal__panel { transform: translateY(0) scale(1); }
.u-modal--wide .u-modal__panel { width: min(1000px, 100%); background: transparent; box-shadow: none; }

.u-modal__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: var(--u-s5);
	border-bottom: var(--u-border);
}

.u-modal__body { padding: var(--u-s5); }

.u-modal__close {
	position: absolute;
	top: var(--u-s3);
	right: var(--u-s3);
	z-index: 2;
	width: 40px;
	height: 40px;
	display: grid;
	place-items: center;
	background: var(--u-cream);
	border: var(--u-border);
	border-radius: var(--u-r-pill);
	cursor: pointer;
	color: var(--u-ink);
}

/* --------------------------------------------------------------------------
   Toast
   -------------------------------------------------------------------------- */

.u-toast {
	position: fixed;
	left: 50%;
	bottom: 96px;
	z-index: var(--u-z-toast);
	display: flex;
	align-items: center;
	gap: var(--u-s3);
	padding: 12px 20px;
	background: var(--u-ink);
	color: var(--u-cream);
	border-radius: var(--u-r-pill);
	font-family: var(--u-font-head);
	font-size: var(--u-fs-sm);
	font-weight: 500;
	box-shadow: var(--u-shadow-lg);
	transform: translate(-50%, 20px);
	opacity: 0;
	visibility: hidden;
	transition: opacity var(--u-t) var(--u-ease), transform var(--u-t) var(--u-ease-out), visibility var(--u-t);
	max-width: calc(100vw - 32px);
}

.u-toast.is-open { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.u-toast__icon { color: var(--u-gold-soft); flex: none; display: flex; }

/* --------------------------------------------------------------------------
   Tables
   -------------------------------------------------------------------------- */

.u-table-scroll { overflow-x: auto; }

.u-table {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--u-fs-sm);
	min-width: 420px;
}

.u-table th,
.u-table td {
	padding: 12px 14px;
	text-align: left;
	border-bottom: var(--u-border);
}

.u-table th {
	font-family: var(--u-font-head);
	font-weight: 600;
	background: var(--u-cream-deep);
	color: var(--u-ink);
	white-space: nowrap;
}

.u-table tbody tr:hover { background: var(--u-cream-deep); }

/* --------------------------------------------------------------------------
   Accordion (mobile nav, filters, mobile tabs)
   -------------------------------------------------------------------------- */

.u-acc { border-bottom: var(--u-border); }

.u-acc__trigger {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--u-s3);
	padding: var(--u-s4) 0;
	background: none;
	border: 0;
	font-family: var(--u-font-head);
	font-size: var(--u-fs-body);
	font-weight: 600;
	color: var(--u-ink);
	text-align: left;
	cursor: pointer;
}

.u-acc__trigger svg { flex: none; transition: transform var(--u-t) var(--u-ease); color: var(--u-muted); }
.u-acc__trigger[aria-expanded="true"] svg { transform: rotate(180deg); }

.u-acc__panel {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows var(--u-t) var(--u-ease);
}

.u-acc__panel > div { overflow: hidden; }
.u-acc__trigger[aria-expanded="true"] + .u-acc__panel { grid-template-rows: 1fr; }
.u-acc__panel .u-acc__inner { padding-bottom: var(--u-s4); }

/* --------------------------------------------------------------------------
   Floating WhatsApp
   -------------------------------------------------------------------------- */

.u-wa {
	position: fixed;
	right: 16px;
	bottom: 16px;
	z-index: var(--u-z-float);
	display: inline-flex;
	align-items: center;
	gap: var(--u-s3);
	padding: 12px;
	background: #1f8f4e;
	color: #fff;
	border-radius: var(--u-r-pill);
	box-shadow: 0 8px 24px rgba(31, 143, 78, 0.35);
	font-family: var(--u-font-head);
	font-size: var(--u-fs-sm);
	font-weight: 600;
	transition: transform var(--u-t) var(--u-ease-out), box-shadow var(--u-t) var(--u-ease);
}

.u-wa:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 30px rgba(31, 143, 78, 0.45); }
.u-wa__label { display: none; padding-right: var(--u-s2); }

@media (min-width: 900px) {
	.u-wa { right: 24px; bottom: 24px; padding: 12px 18px 12px 14px; }
	.u-wa__label { display: inline; }
}

/* Nudge the button clear of the mobile sticky add-to-cart bar. */
body.has-sticky-atc .u-wa { bottom: 84px; }
body.has-sticky-atc .u-toast { bottom: 150px; }

@media (min-width: 900px) {
	body.has-sticky-atc .u-wa { bottom: 24px; }
	body.has-sticky-atc .u-toast { bottom: 96px; }
}

/* --------------------------------------------------------------------------
   Countdown
   -------------------------------------------------------------------------- */

.u-count { display: flex; gap: var(--u-s2); }

.u-count__unit {
	min-width: 62px;
	padding: var(--u-s3) var(--u-s2);
	background: var(--u-paper);
	border: var(--u-border);
	border-radius: var(--u-r-sm);
	text-align: center;
}

.u-count__num {
	display: block;
	font-family: var(--u-font-head);
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1;
	color: var(--u-ink);
	font-variant-numeric: tabular-nums;
}

.u-count__lbl {
	display: block;
	margin-top: 4px;
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--u-muted);
}

.u-band-olive .u-count__unit { background: rgba(247, 245, 242, 0.08); border-color: rgba(247, 245, 242, 0.2); }
.u-band-olive .u-count__num { color: var(--u-cream); }
.u-band-olive .u-count__lbl { color: var(--u-gold-soft); }

/* --------------------------------------------------------------------------
   Trust row
   -------------------------------------------------------------------------- */

.u-trust {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1px;
	background: var(--u-line);
	border: var(--u-border);
	border-radius: var(--u-r-sm);
	overflow: hidden;
}

@media (min-width: 760px) {
	.u-trust { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

.u-trust__item {
	display: flex;
	align-items: center;
	gap: var(--u-s3);
	padding: var(--u-s4);
	background: var(--u-paper);
}

.u-trust__icon {
	flex: none;
	width: 40px;
	height: 40px;
	display: grid;
	place-items: center;
	background: var(--u-gold-wash);
	color: var(--u-gold-deep);
	border-radius: var(--u-r-pill);
}

.u-trust__title {
	display: block;
	margin: 0;
	font-family: var(--u-font-head);
	font-size: var(--u-fs-sm);
	font-weight: 600;
	line-height: 1.3;
	color: var(--u-ink);
}

.u-trust__text {
	display: block;
	margin: 2px 0 0;
	font-size: var(--u-fs-xs);
	color: var(--u-muted);
	line-height: 1.4;
}

/* The compact strip that sits directly under the hero. */
.u-trust--strip { border: 0; border-radius: 0; background: transparent; gap: var(--u-s4); }
.u-trust--strip .u-trust__item { background: transparent; padding: 0; }
.u-trust--strip .u-trust__icon { background: transparent; box-shadow: inset 0 0 0 1px var(--u-gold); }
