/* Encore theme — supplemental styles beyond theme.json */

/* ---------- General polish ---------- */
body {
	background-color: var(--wp--preset--color--charcoal);
}

::selection {
	background: var(--wp--preset--color--amber);
	color: var(--wp--preset--color--charcoal);
}

a {
	transition: color 0.15s ease;
}

.wp-element-button,
.wp-block-button__link {
	transition: background-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-size: 0.85rem;
	padding: 0.9em 1.9em;
}

.wp-block-button__link:hover {
	transform: translateY(-1px);
}

.wp-block-button.is-style-outline > .wp-block-button__link {
	border: 1px solid currentColor;
	background: transparent;
}

.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--wp--preset--color--amber);
	border-color: var(--wp--preset--color--amber);
	color: var(--wp--preset--color--charcoal) !important;
}

/* ---------- Header ---------- */
.encore-header {
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.encore-header .wp-block-site-title a {
	color: var(--wp--preset--color--parchment);
	text-decoration: none;
}

.encore-eyebrow {
	margin: 0 !important;
	text-transform: uppercase;
	letter-spacing: 0.12em;
}

.encore-header .wp-block-navigation {
	--wp--custom--navigation-item-gap: 2rem;
}

.encore-header .wp-block-navigation-item a {
	text-decoration: none;
}

.encore-header .wp-block-navigation-item a:hover {
	color: var(--wp--preset--color--amber) !important;
}

/* ---------- Hero ---------- */
.encore-hero {
	position: relative;
	border-bottom: 1px solid var(--wp--preset--color--line);
}

/* ---------- Footer ---------- */
.encore-footer a {
	color: var(--wp--preset--color--muted);
}

.encore-footer a:hover {
	color: var(--wp--preset--color--amber);
}

/* ---------- WooCommerce: shop grid & product cards ---------- */
.woocommerce ul.products {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 2rem;
	list-style: none;
	margin: 0 0 2.5rem !important;
	padding: 0;
}

.woocommerce ul.products li.product {
	background: var(--wp--preset--color--charcoal-2);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 4px;
	padding: 1.25rem 1.25rem 1.75rem;
	transition: border-color 0.2s ease, transform 0.2s ease;
}

.woocommerce ul.products li.product:hover {
	border-color: var(--wp--preset--color--amber);
	transform: translateY(-3px);
}

.woocommerce ul.products li.product img {
	border-radius: 2px;
	margin-bottom: 1rem;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2,
.woocommerce ul.products li.product h3 {
	font-family: var(--wp--preset--font-family--cardo);
	color: var(--wp--preset--color--parchment);
	font-size: 1.05rem;
	margin: 0 0 0.35rem;
}

.woocommerce ul.products li.product .price {
	color: var(--wp--preset--color--amber);
	font-family: var(--wp--preset--font-family--inter);
	font-weight: 600;
}

.woocommerce ul.products li.product .price del {
	color: var(--wp--preset--color--muted);
	opacity: 0.7;
}

.woocommerce span.onsale {
	background: var(--wp--preset--color--ember);
	color: var(--wp--preset--color--parchment);
	font-family: var(--wp--preset--font-family--inter);
	text-transform: uppercase;
	font-size: 0.7rem;
	letter-spacing: 0.06em;
	border-radius: 2px;
	min-height: auto;
	min-width: auto;
	padding: 0.35em 0.7em;
	line-height: 1;
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce #respond input#submit,
.woocommerce input.button {
	background: var(--wp--preset--color--amber) !important;
	color: var(--wp--preset--color--charcoal) !important;
	border: none !important;
	border-radius: 2px !important;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-family: var(--wp--preset--font-family--inter) !important;
	font-weight: 600 !important;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
	background: var(--wp--preset--color--parchment) !important;
	color: var(--wp--preset--color--charcoal) !important;
}

/* ---------- WooCommerce: single product ---------- */
.woocommerce div.product p.price,
.woocommerce div.product span.price {
	color: var(--wp--preset--color--amber);
	font-size: 1.5rem;
}

.woocommerce div.product .product_title {
	font-family: var(--wp--preset--font-family--cardo);
}

.woocommerce div.product .woocommerce-product-details__short-description,
.woocommerce div.product .woocommerce-Tabs-panel {
	color: var(--wp--preset--color--parchment);
}

.woocommerce table.shop_attributes,
.woocommerce table.shop_attributes th,
.woocommerce table.shop_attributes td {
	border-color: var(--wp--preset--color--line) !important;
	background: transparent !important;
	color: var(--wp--preset--color--parchment);
}

.woocommerce .woocommerce-tabs ul.tabs li {
	background: transparent;
	border: none;
	border-bottom: 2px solid transparent;
}

.woocommerce .woocommerce-tabs ul.tabs li.active {
	border-bottom-color: var(--wp--preset--color--amber);
}

.woocommerce .woocommerce-tabs ul.tabs li a {
	color: var(--wp--preset--color--muted);
	font-family: var(--wp--preset--font-family--inter);
	text-transform: uppercase;
	font-size: 0.85rem;
	letter-spacing: 0.04em;
}

.woocommerce .woocommerce-tabs ul.tabs li.active a {
	color: var(--wp--preset--color--parchment);
}

/* ---------- WooCommerce: cart & checkout ---------- */
.woocommerce table.shop_table {
	border-color: var(--wp--preset--color--line);
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
	border-color: var(--wp--preset--color--line) !important;
	color: var(--wp--preset--color--parchment);
}

.woocommerce #payment,
.woocommerce-checkout-review-order {
	background: var(--wp--preset--color--charcoal-2) !important;
	border: 1px solid var(--wp--preset--color--line) !important;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
	background: var(--wp--preset--color--charcoal);
	border: 1px solid var(--wp--preset--color--line);
	color: var(--wp--preset--color--parchment);
}

/* ---------- WooCommerce coming-soon block ---------- */
.wp-block-woocommerce-coming-soon {
	background: var(--wp--preset--color--charcoal);
	color: var(--wp--preset--color--parchment);
}

/* ---------- NextGEN Gallery (verified against live basic_thumbnail/caption-view markup) ---------- */
.ngg-galleryoverview {
	padding: 0;
}

.ngg-caption-view-wrapper {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 1.75rem;
}

.ngg-gallery-thumbnail-box {
	background: var(--wp--preset--color--charcoal-2);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 4px;
	padding: 0.75rem;
	transition: border-color 0.2s ease, transform 0.2s ease;
}

.ngg-gallery-thumbnail-box:hover {
	border-color: var(--wp--preset--color--amber);
	transform: translateY(-3px);
}

.ngg-gallery-thumbnail-box .ngg-gallery-thumbnail {
	display: block;
}

.ngg-gallery-thumbnail-box img {
	border-radius: 2px;
	display: block;
	width: 100%;
	height: auto;
}

/* The caption is a bare <span> under the thumbnail box, not a figcaption/description class */
.ngg-gallery-thumbnail-box > span {
	display: block;
	max-width: 100% !important;
	font-family: var(--wp--preset--font-family--inter);
	font-size: 0.85rem;
	color: var(--wp--preset--color--muted);
	margin-top: 0.6rem;
	text-align: center;
}

.ngg-gallery-thumbnail-box > span a {
	color: var(--wp--preset--color--amber);
	text-decoration: none;
	font-weight: 600;
}

.ngg-gallery-thumbnail-box > span a:hover {
	color: var(--wp--preset--color--parchment);
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
	.wp-block-columns {
		gap: 2rem;
	}
}
