/* ==========================================================================
   Huna Gallery Walk — WooCommerce
   Gallery-like product grids and artwork pages. Styling only: no WooCommerce
   templates are overridden, so cart, checkout and payments keep working.
   ========================================================================== */

/* Shop / category headers ------------------------------------------------ */

body.huna-site .woocommerce-products-header,
body.huna-site.woocommerce-shop .ast-archive-description,
body.huna-site.tax-product_cat .ast-archive-description {
	padding: clamp(3rem, 7vw, 6rem) 0 clamp(2rem, 4vw, 3rem);
	background: transparent;
	border: 0;
}
body.huna-site .woocommerce-products-header__title,
body.huna-site .ast-archive-description .ast-archive-title {
	font-family: var(--huna-serif);
	font-size: clamp(3rem, 7vw, 6.5rem);
	font-weight: 300;
	line-height: 0.95;
	letter-spacing: -0.02em;
	color: var(--huna-ink);
}
body.huna-site .term-description,
body.huna-site .ast-archive-description p { max-width: 38rem; font-size: 1.1rem; color: var(--huna-ink-soft); }

body.huna-site .woocommerce-breadcrumb {
	font-size: 0.72rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--huna-ink-soft);
}
body.huna-site .woocommerce-breadcrumb a { color: var(--huna-ink-soft); text-decoration: none; }

body.huna-site .woocommerce-result-count,
body.huna-site .woocommerce-ordering select {
	font-size: 0.8rem;
	letter-spacing: 0.06em;
	color: var(--huna-ink-soft);
}
body.huna-site .woocommerce-ordering select {
	border: 0;
	border-bottom: 1px solid var(--huna-line);
	border-radius: 0;
	background-color: transparent;
}

/* Product grid: works hung on a wall ------------------------------------ */

body.huna-site.woocommerce ul.products,
body.huna-site .woocommerce ul.products {
	column-gap: clamp(1.5rem, 4vw, 4rem);
	row-gap: clamp(3rem, 6vw, 5.5rem);
}
body.huna-site .woocommerce ul.products li.product,
body.huna-site.woocommerce ul.products li.product {
	text-align: left;
	background: transparent;
}
@media (min-width: 922px) {
	body.huna-site .woocommerce ul.products.columns-3 li.product:nth-child(3n + 2),
	body.huna-site.woocommerce ul.products.columns-3 li.product:nth-child(3n + 2) { margin-top: clamp(2rem, 5vw, 5rem); }
	body.huna-site .woocommerce ul.products.columns-4 li.product:nth-child(even),
	body.huna-site.woocommerce ul.products.columns-4 li.product:nth-child(even) { margin-top: clamp(2rem, 4vw, 4rem); }
}
body.huna-site ul.products li.product .astra-shop-thumbnail-wrap,
body.huna-site ul.products li.product .woocommerce-LoopProduct-link {
	display: block;
	overflow: hidden;
	background: var(--huna-sand);
}
body.huna-site ul.products li.product .astra-shop-thumbnail-wrap { margin-bottom: 1.1rem; }
body.huna-site ul.products li.product a img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	margin: 0;
	transition: transform 1.4s var(--huna-ease), opacity 0.8s;
}
body.huna-site ul.products li.product:hover a img { transform: scale(1.045); }
body.huna-site ul.products li.product .astra-shop-summary-wrap { padding: 0; }
body.huna-site ul.products li.product .woocommerce-loop-product__title {
	margin: 0 0 0.25rem;
	font-family: var(--huna-serif);
	font-size: 1.5rem;
	font-weight: 400;
	line-height: 1.15;
	color: var(--huna-ink);
}
body.huna-site ul.products li.product .ast-woo-product-category {
	display: block;
	margin-bottom: 0.35rem;
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--huna-clay-deep);
	opacity: 1;
}
body.huna-site ul.products li.product .price {
	display: block;
	margin: 0.3rem 0 0.9rem;
	font-family: var(--huna-sans);
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	color: var(--huna-ink);
}
body.huna-site ul.products li.product .price del { opacity: 0.5; font-weight: 400; }
body.huna-site ul.products li.product .price ins { text-decoration: none; }
body.huna-site ul.products li.product .huna-loop-view { margin-top: 0.2rem; }
body.huna-site ul.products li.product.outofstock .huna-loop-view { color: var(--huna-clay-deep); }
body.huna-site ul.products li.product .ast-shop-product-out-of-stock {
	background: var(--huna-ivory);
	color: var(--huna-clay-deep);
	font-size: 0.68rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

body.huna-site .woocommerce span.onsale,
body.huna-site.woocommerce span.onsale,
body.huna-site .ast-onsale-card {
	min-width: 0;
	min-height: 0;
	padding: 0.45rem 0.8rem;
	border-radius: 0;
	background: var(--huna-ink);
	color: var(--huna-ivory);
	font-size: 0.65rem;
	font-weight: 600;
	letter-spacing: 0.2em;
	line-height: 1.2;
	text-transform: uppercase;
}

/* Pagination */
body.huna-site .woocommerce-pagination ul.page-numbers,
body.huna-site .woocommerce-pagination ul.page-numbers li { border: 0; }
body.huna-site .woocommerce-pagination .page-numbers a,
body.huna-site .woocommerce-pagination .page-numbers span {
	min-width: 2.75rem;
	padding: 0.7rem;
	border: 0;
	background: transparent;
	font-family: var(--huna-serif);
	font-size: 1.2rem;
	color: var(--huna-ink);
}
body.huna-site .woocommerce-pagination .page-numbers .current { color: var(--huna-clay-deep); border-bottom: 1px solid currentColor; }

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

body.huna-site .woocommerce a.button,
body.huna-site .woocommerce button.button,
body.huna-site .woocommerce input.button,
body.huna-site .woocommerce #respond input#submit,
body.huna-site.woocommerce a.button,
body.huna-site.woocommerce button.button,
body.huna-site .woocommerce .button.alt,
body.huna-site .wc-block-components-button:not(.is-link),
body.huna-site .wp-element-button.wc-block-cart__submit-button,
body.huna-site .wc-block-components-checkout-place-order-button {
	padding: 1.05rem 2rem;
	border: 1px solid var(--huna-ink);
	border-radius: 0;
	background: var(--huna-ink);
	color: var(--huna-ivory);
	font-family: var(--huna-sans);
	font-size: 0.74rem;
	font-weight: 600;
	letter-spacing: 0.2em;
	line-height: 1.2;
	text-transform: uppercase;
	box-shadow: none;
	transition: background-color 0.5s var(--huna-ease), border-color 0.5s var(--huna-ease);
}
body.huna-site .woocommerce a.button:hover,
body.huna-site .woocommerce button.button:hover,
body.huna-site .woocommerce input.button:hover,
body.huna-site .woocommerce .button.alt:hover,
body.huna-site .wc-block-components-button:not(.is-link):hover {
	background: var(--huna-clay-deep);
	border-color: var(--huna-clay-deep);
	color: #fff;
}

/* Single artwork page ---------------------------------------------------- */

body.huna-site.single-product div.product {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
	gap: clamp(2.5rem, 6vw, 7rem);
	align-items: start;
	padding-top: clamp(1.5rem, 4vw, 3rem);
}
body.huna-site.single-product div.product .woocommerce-product-gallery,
body.huna-site.single-product div.product .summary { float: none; width: auto; margin: 0; }
body.huna-site.single-product div.product .woocommerce-product-gallery { grid-column: 1; }
body.huna-site.single-product div.product .summary { grid-column: 2; position: sticky; top: 8rem; }
body.huna-site.single-product div.product > :not(.woocommerce-product-gallery):not(.summary):not(.onsale) { grid-column: 1 / -1; }
body.huna-site.single-product .woocommerce-product-gallery__wrapper img {
	background: var(--huna-sand);
	box-shadow: var(--huna-shadow);
}
body.huna-site.single-product .woocommerce-product-gallery .flex-control-thumbs { margin-top: 1rem; gap: 0.75rem; display: flex; }
body.huna-site.single-product .woocommerce-product-gallery .flex-control-thumbs li { width: 4.5rem; }
body.huna-site.single-product .product_title {
	font-family: var(--huna-serif);
	font-size: clamp(2.6rem, 4.5vw, 4.2rem);
	font-weight: 300;
	line-height: 1;
	letter-spacing: -0.015em;
	margin-bottom: 1rem;
}
body.huna-site.single-product .summary .single-product-category,
body.huna-site.single-product .summary .posted_in {
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--huna-clay-deep);
}
body.huna-site.single-product .summary .price {
	margin: 0 0 1.75rem;
	font-family: var(--huna-sans);
	font-size: 1.05rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	color: var(--huna-ink);
}
body.huna-site.single-product .woocommerce-product-details__short-description {
	margin-bottom: 2rem;
	padding: 1.5rem 0;
	border-top: 1px solid var(--huna-line);
	border-bottom: 1px solid var(--huna-line);
	font-size: 1.08rem;
	color: var(--huna-ink-soft);
}
body.huna-site.single-product .stock {
	font-size: 0.78rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--huna-olive);
}
body.huna-site.single-product .stock.out-of-stock { color: var(--huna-clay-deep); text-transform: none; letter-spacing: 0.02em; font-style: italic; font-size: 0.95rem; }
body.huna-site.single-product form.cart { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: stretch; margin-bottom: 2rem; }
body.huna-site.single-product form.cart .quantity .qty {
	height: 100%;
	min-height: 3.2rem;
	border: 1px solid var(--huna-line);
	border-radius: 0;
	background: transparent;
}
body.huna-site.single-product form.cart .single_add_to_cart_button { flex: 1 1 auto; }
body.huna-site .huna-product-note { font-size: 0.9rem; font-style: italic; color: var(--huna-ink-soft); }
body.huna-site.single-product .product_meta { font-size: 0.8rem; color: var(--huna-ink-soft); }

/* Tabs → calm editorial sections */
body.huna-site.single-product .woocommerce-tabs { margin-top: clamp(3rem, 7vw, 6rem); padding-top: 2rem; border-top: 1px solid var(--huna-line); }
body.huna-site.single-product .woocommerce-tabs ul.tabs { padding: 0; margin: 0 0 2rem; border: 0; }
body.huna-site.single-product .woocommerce-tabs ul.tabs::before { display: none; }
body.huna-site.single-product .woocommerce-tabs ul.tabs li {
	margin: 0 2rem 0 0;
	padding: 0;
	border: 0;
	background: transparent;
}
body.huna-site.single-product .woocommerce-tabs ul.tabs li a {
	padding: 0 0 0.5rem;
	font-size: 0.74rem;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--huna-ink-soft);
}
body.huna-site.single-product .woocommerce-tabs ul.tabs li.active a { color: var(--huna-ink); border-bottom: 1px solid var(--huna-ink); }
body.huna-site.single-product .woocommerce-Tabs-panel { max-width: 46rem; font-size: 1.05rem; }
body.huna-site.single-product .woocommerce-Tabs-panel > h2:first-child { display: none; }
body.huna-site.single-product .shop_attributes { border: 0; }
body.huna-site.single-product .shop_attributes th,
body.huna-site.single-product .shop_attributes td {
	padding: 0.9rem 0;
	border: 0;
	border-top: 1px solid var(--huna-line);
	background: transparent;
	font-style: normal;
}
body.huna-site.single-product .shop_attributes th {
	width: 11rem;
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--huna-clay-deep);
}

body.huna-site.single-product .related.products > h2,
body.huna-site.single-product .upsells.products > h2 {
	margin: clamp(4rem, 8vw, 7rem) 0 2.5rem;
	font-size: clamp(2.2rem, 4vw, 3.4rem);
	font-weight: 300;
}

@media (max-width: 921px) {
	body.huna-site.single-product div.product { grid-template-columns: 1fr; }
	body.huna-site.single-product div.product .summary { grid-column: 1; position: static; }
}

/* Cart, checkout, account: calm and clear (no animation is loaded here) ---- */

body.huna-site.woocommerce-cart .site-content,
body.huna-site.woocommerce-checkout .site-content,
body.huna-site.woocommerce-account .site-content { padding-top: clamp(2rem, 5vw, 4rem); }
body.huna-site.woocommerce-cart .entry-title,
body.huna-site.woocommerce-checkout .entry-title,
body.huna-site.woocommerce-account .entry-title {
	font-size: clamp(2.6rem, 5vw, 4rem);
	font-weight: 300;
}
body.huna-site .woocommerce table.shop_table { border-radius: 0; border-color: var(--huna-line); }
body.huna-site .woocommerce table.shop_table th { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; }
body.huna-site .woocommerce form .form-row input.input-text,
body.huna-site .woocommerce form .form-row textarea,
body.huna-site .woocommerce form .form-row select,
body.huna-site .woocommerce-page form .form-row input.input-text {
	border: 1px solid rgba(41, 37, 33, 0.25);
	border-radius: 0;
	background: #fffdf9;
}
body.huna-site .woocommerce form .form-row input.input-text:focus,
body.huna-site .woocommerce form .form-row textarea:focus { border-color: var(--huna-clay-deep); }
body.huna-site .woocommerce-message,
body.huna-site .woocommerce-info,
body.huna-site .woocommerce-error {
	border-top-color: var(--huna-clay);
	border-radius: 0;
	background: var(--huna-cream);
	color: var(--huna-ink);
}
body.huna-site .woocommerce-message::before,
body.huna-site .woocommerce-info::before { color: var(--huna-clay-deep); }
body.huna-site .wc-block-components-text-input input,
body.huna-site .wc-block-components-combobox .wc-block-components-combobox-control input,
body.huna-site .wc-blocks-components-select .wc-blocks-components-select__select { border-radius: 0; }
