/**
 * Retail experience refinements for theme 2.10.0.
 * Identity, saloon frames, and catalog behavior stay in main.css.
 */

.site-search-toggle {
	display: none;
}

.shop-nav__feature-title {
	margin: 0.35rem 0 0.85rem;
	font-family: var(--font-display, "Anton", sans-serif);
	font-size: clamp(2rem, 3vw, 3.25rem);
	line-height: 0.9;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.category-tile__visual::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 58%;
	background: linear-gradient(transparent, rgba(13, 13, 13, 0.92));
}

.category-tile__mark {
	z-index: 1;
	display: flex;
	align-items: flex-end;
	position: absolute;
	inset: 0;
	padding: 1rem;
	color: rgba(var(--ink-rgb), 0.92);
	font-family: var(--font-display, "Anton", sans-serif);
	font-size: clamp(1.7rem, 3vw, 2.8rem);
	line-height: 0.88;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

.category-tile__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.products-toolbar__search input {
	width: 12.5rem;
	max-width: 100%;
}

.home-close {
	padding: 1.25rem 0 2.5rem;
}

.home-close__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-top: 1.25rem;
	border-top: 1px solid rgba(217, 119, 6, 0.45);
}

.home-close__title {
	margin: 0;
	font-size: clamp(1.35rem, 2vw, 2rem);
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.product-detail__gallery {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	min-width: 0;
}

.product-detail__hero-media {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	max-height: min(70vh, 36rem);
	overflow: hidden;
	background: #161616;
}

.product-detail__hero-media .product-detail__image,
.product-detail__hero-media .product-card__placeholder--detail {
	display: block;
	width: 100%;
	height: 100%;
	aspect-ratio: auto;
	object-fit: contain;
	border-radius: 0;
}

.product-detail__thumbs {
	display: flex;
	flex-wrap: nowrap;
	gap: 0.5rem;
	margin: 0;
	padding: 0 0 0.15rem;
	list-style: none;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
}

.product-detail__thumbs li {
	flex: 0 0 auto;
	margin: 0;
}

.product-detail__thumb {
	display: block;
	width: 4.25rem;
	height: 4.25rem;
	padding: 0;
	overflow: hidden;
	border: 1px solid rgba(var(--ink-rgb), 0.2);
	background: #161616;
	cursor: pointer;
	scroll-snap-align: start;
}

.product-detail__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.product-detail__thumb.is-active,
.product-detail__thumb[aria-current="true"] {
	border-color: var(--accent);
	box-shadow: inset 0 0 0 1px var(--accent);
}

.product-detail__enlarge {
	position: absolute;
	right: 0.75rem;
	bottom: 0.75rem;
	min-height: 2.75rem;
	padding: 0.45rem 0.75rem;
	border: 1px solid rgba(var(--ink-rgb), 0.35);
	background: var(--bg-elevated);
	color: var(--text);
	font-size: 0.75rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.product-detail__enlarge:focus-visible,
.site-search-toggle:focus-visible,
.product-buybar__action:focus-visible,
.shop-nav__back:focus-visible,
.shop-nav__entry:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

.product-lightbox {
	width: min(92vw, 52rem);
	max-height: 92vh;
	padding: 0.75rem;
	border: 1px solid rgba(217, 119, 6, 0.55);
	background: var(--bg-elevated);
	color: var(--text);
}

.product-lightbox::backdrop {
	background: rgba(0, 0, 0, 0.78);
}

.product-lightbox img {
	display: block;
	width: 100%;
	max-height: 80vh;
	object-fit: contain;
}

.product-lightbox__close {
	margin-bottom: 0.5rem;
	min-height: 2.75rem;
	padding: 0.4rem 0.8rem;
	border: 1px solid rgba(var(--ink-rgb), 0.3);
	background: transparent;
	color: var(--text);
}

.product-buybar,
.product-buybar[hidden] {
	display: none;
}

@media (max-width: 900px) {
	.product-buybar {
		position: fixed;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 80;
		align-items: center;
		justify-content: space-between;
		gap: 0.75rem;
		padding: 0.7rem max(1rem, env(safe-area-inset-right)) calc(0.7rem + env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
		border-top: 1px solid rgba(217, 119, 6, 0.55);
		background: var(--bg-header);
	}

	.product-buybar.is-visible:not([hidden]) {
		display: flex;
	}

	body.twc-buybar-on {
		padding-bottom: calc(5.5rem + env(safe-area-inset-bottom));
	}
}

.product-buybar__copy {
	min-width: 0;
}

.product-buybar__name,
.product-buybar__price {
	margin: 0;
}

.product-buybar__name {
	overflow: hidden;
	font-size: 0.82rem;
	letter-spacing: 0.04em;
	text-overflow: ellipsis;
	text-transform: uppercase;
	white-space: nowrap;
}

.product-buybar__price {
	color: var(--accent);
	font-weight: 600;
}

.product-buybar .btn-primary {
	flex: 0 0 auto;
	min-height: 2.75rem;
}

.product-detail .variations select,
.product-detail .quantity .qty,
.twc-store-flow .quantity .qty {
	min-height: 2.75rem;
	font-size: 1rem;
}

.product-detail .variations td,
.product-detail .variations th {
	display: block;
	padding-bottom: 0.35rem;
}

.product-detail .single_add_to_cart_button,
.twc-store-flow .wc-block-cart__submit-button,
.twc-store-flow #place_order,
.twc-store-flow .checkout-button {
	min-height: 3rem;
}

.twc-store-flow .woocommerce-MyAccount-navigation a,
.twc-store-flow .woocommerce-MyAccount-content {
	font-size: 1rem;
}

.twc-store-flow .woocommerce-MyAccount-navigation a {
	display: flex;
	align-items: center;
	min-height: 2.75rem;
}

@media (max-width: 900px) {
	.site-header__inner {
		flex-wrap: nowrap;
		min-height: 3.5rem;
	}

	.site-brand {
		font-size: 0.95rem;
		letter-spacing: 0.04em;
	}

	.site-header__tools {
		order: 2;
		flex: 0 0 auto;
		width: auto;
		justify-content: flex-end;
		gap: 0.15rem;
	}

	.site-nav-toggle {
		order: 3;
		margin-left: 0;
	}

	.site-header:has(.site-nav.is-open) .site-header__inner {
		flex-wrap: wrap;
	}

	.site-nav.is-open {
		flex: 1 1 100%;
		width: 100%;
		max-height: calc(100dvh - 4rem);
		overflow: auto;
	}

	.site-search-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 2.75rem;
		height: 2.75rem;
		border: 0;
		background: transparent;
		color: var(--text);
	}

	.site-search {
		display: none;
		position: absolute;
		right: 0;
		left: 0;
		top: 100%;
		z-index: 30;
		padding: 0.65rem var(--container-gutter, 1.25rem) 0.85rem;
		background: var(--bg-elevated);
		border-bottom: 1px solid rgba(217, 119, 6, 0.4);
	}

	.site-header.is-search-open .site-search {
		display: block;
	}

	.site-header.is-search-open .site-search__input {
		width: 100%;
		min-height: 2.75rem;
	}

	.site-header .btn-nav-quote {
		display: none;
	}

	.site-cart {
		min-width: 2.75rem;
		min-height: 2.75rem;
	}

	.shop-nav__back,
	.shop-nav__dismiss,
	.shop-nav__entry,
	.shop-nav__disclose {
		min-height: 3rem;
	}

	.shop-nav__entry.is-current,
	.shop-nav__node.is-current > .shop-nav__entry {
		color: var(--accent);
	}

	.front-page .section-padding {
		padding-top: 2.25rem;
		padding-bottom: 2.25rem;
	}

	.category-tile__visual {
		min-height: 7.5rem;
		aspect-ratio: 16 / 9;
	}

	.products-grid,
	.products-grid--home {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.85rem 0.65rem;
	}

	.product-card__media,
	.product-card__placeholder {
		aspect-ratio: 4 / 5;
	}

	.product-card__inquiry {
		display: none;
	}

	.product-card__view {
		width: 100%;
		min-height: 2.75rem;
	}

	.product-detail__hero-media {
		max-height: 22rem;
	}

	.product-detail__thumb {
		width: 3.5rem;
		height: 3.5rem;
	}

	.products-hero--compact {
		padding-top: 1.25rem;
		padding-bottom: 0.5rem;
	}

	.products-filter-group input,
	.products-filter-group label {
		min-height: 2.75rem;
	}
}

@media (min-width: 901px) {
	.category-tile-grid {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}

	.category-tile:nth-child(1),
	.category-tile:nth-child(2) {
		grid-column: span 3;
	}

	.category-tile:nth-child(n + 3) {
		grid-column: span 2;
	}

	.category-tile:nth-child(1) .category-tile__visual,
	.category-tile:nth-child(2) .category-tile__visual {
		min-height: 16rem;
	}

	.category-tile__visual {
		min-height: 9.5rem;
	}

	.shop-nav__features {
		flex: 0 0 18rem;
	}

	.product-card__media,
	.product-card__placeholder {
		aspect-ratio: 4 / 5;
	}
}

@media (max-width: 430px) {
	.twc-store-flow .wc-block-cart,
	.twc-store-flow .wc-block-checkout,
	.twc-store-flow .woocommerce {
		max-width: 100%;
		overflow-x: hidden;
	}

	.twc-store-flow .wc-block-components-product-name,
	.twc-store-flow .wc-block-components-product-metadata {
		overflow-wrap: anywhere;
	}
}

@media (max-width: 360px) {
	.products-grid,
	.products-grid--home {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.product-buybar,
	.product-lightbox,
	.category-tile__link,
	.product-card {
		transition: none;
	}
}

.twc-section:not(.is-revealed) .twc-reveal-head,
.twc-stagger > *,
.twc-section.is-revealed .twc-stagger > *,
.twc-section.is-revealed .twc-stagger > *:nth-child(n) {
	opacity: 1;
	transform: none;
	transition-delay: 0s;
}

.about-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.25rem;
	margin: 1.5rem 0 0;
}

.about-links a {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	color: var(--text);
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.page-card .btn-primary,
.page-card .btn-secondary {
	margin-top: 1rem;
}

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

.site-footer__columns a {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
}

.site-footer__columns a:focus-visible,
.about-links a:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
}

.twc-store-flow .wc-block-components-form .wc-block-components-text-input input[type="text"],
.twc-store-flow .wc-block-components-form .wc-block-components-text-input input[type="email"],
.twc-store-flow .wc-block-components-form .wc-block-components-text-input input[type="tel"],
.twc-store-flow .wc-block-components-form .wc-block-components-text-input input[type="number"],
.twc-store-flow .wc-block-components-form .wc-block-components-text-input input[type="password"],
.twc-store-flow .wc-block-components-form .wc-block-components-text-input input[type="url"],
.twc-store-flow .wc-block-components-form .wc-block-components-text-input input[type="text"]:focus,
.twc-store-flow .wc-block-components-form .wc-block-components-text-input input[type="email"]:focus,
.twc-store-flow .wc-block-components-form .wc-block-components-text-input input[type="tel"]:focus,
.twc-store-flow .wc-block-components-form .wc-block-components-text-input input[type="number"]:focus,
.twc-store-flow .wc-block-components-form .wc-block-components-text-input input[type="password"]:focus,
.twc-store-flow .wc-block-components-form .wc-block-components-text-input input[type="url"]:focus,
.twc-store-flow .wc-block-components-textarea,
.twc-store-flow .wc-block-components-textarea:focus,
.twc-store-flow .wc-block-components-combobox .components-combobox-control__input,
.twc-store-flow .wc-block-components-combobox .components-combobox-control__input:focus,
.twc-store-flow .components-combobox-control__input,
.twc-store-flow .components-combobox-control__input:focus,
.twc-store-flow .wc-block-components-country-input input,
.twc-store-flow .wc-block-components-state-input input,
.twc-store-flow .wc-block-components-select select,
.twc-store-flow .wc-block-components-select select:focus,
.twc-store-flow .wc-block-checkout select.wc-blocks-components-select__select,
.twc-store-flow .wc-block-checkout select.wc-blocks-components-select__select:focus {
	color: var(--field-text);
	background-color: var(--field-bg);
	border-color: var(--field-border);
	caret-color: var(--field-text);
}

.twc-store-flow .wc-block-components-form .wc-block-components-text-input.is-active input[type="text"],
.twc-store-flow .wc-block-components-form .wc-block-components-text-input.is-active input[type="email"],
.twc-store-flow .wc-block-components-form .wc-block-components-text-input.is-active input[type="tel"],
.twc-store-flow .wc-block-components-form .wc-block-components-text-input.is-active input[type="number"],
.twc-store-flow .wc-block-components-form .wc-block-components-text-input.is-active input[type="password"] {
	padding-top: 1.35rem;
	padding-bottom: 0.2rem;
}

.twc-store-flow .wc-block-components-form .wc-block-components-text-input.is-active label {
	top: 0.2rem;
	line-height: 1;
}

.twc-store-flow .wc-block-components-text-input label,
.twc-store-flow .wc-block-components-combobox label,
.twc-store-flow .wc-block-components-select label,
.twc-store-flow .wc-blocks-components-select__label {
	color: var(--text-secondary);
}

.twc-store-flow .wc-block-components-text-input input::placeholder,
.twc-store-flow .wc-block-components-textarea::placeholder,
.twc-store-flow .wc-block-components-combobox input::placeholder {
	color: var(--text-muted);
	opacity: 1;
}

.twc-store-flow .wc-block-components-text-input input:focus,
.twc-store-flow .wc-block-components-textarea:focus,
.twc-store-flow .wc-block-components-combobox .components-combobox-control__input:focus,
.twc-store-flow .wc-block-components-select select:focus {
	border-color: var(--accent);
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

.twc-store-flow .wc-block-components-validation-error,
.twc-store-flow .wc-block-components-text-input.has-error label {
	color: var(--danger);
}

.twc-store-flow .wc-block-components-text-input.has-error input {
	border-color: var(--danger);
}

.twc-store-flow .wc-block-components-text-input input:-webkit-autofill,
.twc-store-flow .wc-block-components-combobox input:-webkit-autofill {
	-webkit-text-fill-color: var(--field-text);
	caret-color: var(--field-text);
	box-shadow: 0 0 0 1000px var(--field-bg) inset;
}

@media (max-width: 430px) {
	.twc-store-flow .wc-block-cart-item__total,
	.twc-store-flow .wc-block-cart-item__total .wc-block-components-product-price,
	.twc-store-flow .wc-block-formatted-money-amount {
		white-space: nowrap;
	}

	.twc-store-flow .wc-block-cart-item__total {
		min-width: 4.75rem;
		text-align: right;
	}

	.twc-store-flow .wc-block-components-quantity-selector__button {
		min-width: 2.75rem;
		min-height: 2.75rem;
	}
}

.products-breadcrumb {
	margin: 0 0 1.25rem;
}

.products-breadcrumb__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
	color: rgba(var(--ink-rgb), 0.78);
	font-size: 0.875rem;
	line-height: 1.4;
}

.products-breadcrumb__list li {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
}

.products-breadcrumb__list li:not(:last-child)::after {
	content: "/";
	margin-left: 0.5rem;
	color: rgba(var(--ink-rgb), 0.4);
}

.products-breadcrumb__list a {
	color: var(--text);
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.products-breadcrumb__list a:focus-visible,
.products-category-nav__chip:focus-visible,
.products-pagination__link:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
}

.products-category-nav__label {
	margin: 0.85rem 0 0.35rem;
	color: var(--accent);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.products-category-nav--children {
	margin-top: 0;
}

.twc-store-flow .woocommerce form .input-text,
.twc-store-flow .woocommerce form input[type="text"],
.twc-store-flow .woocommerce form input[type="email"],
.twc-store-flow .woocommerce form input[type="password"],
.twc-store-flow .woocommerce form input[type="tel"],
.twc-store-flow .woocommerce form textarea,
.twc-store-flow .woocommerce form select {
	color: var(--text);
	background-color: var(--field-bg);
	border: 1px solid rgba(var(--ink-rgb), 0.55);
	caret-color: var(--text);
}

.twc-store-flow .woocommerce form .input-text:focus,
.twc-store-flow .woocommerce form input:focus,
.twc-store-flow .woocommerce form textarea:focus,
.twc-store-flow .woocommerce form select:focus {
	border-color: var(--accent);
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

.twc-store-flow .woocommerce form label {
	color: var(--text-secondary);
}
