/*
 * Branding tokens — from Figma "Branding" section notes:
 * - Font site-wide: Calibri Light, black text (not gray)
 * - H1 color: #1abc9c
 * - Signature signoff bottom-right of every page
 */

:root {
	--kba-font: 'Calibri Light', Calibri, 'Segoe UI', Roboto, sans-serif;
	--kba-heading-color: #1abc9c;
	--kba-text-color: #000000;
}

body,
button,
input,
select,
textarea,
.woocommerce,
.site-title,
.site-description {
	font-family: var( --kba-font );
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var( --kba-font );
	color: var( --kba-text-color );
}

h1 {
	color: var( --kba-heading-color );
}

/* Storefront defaults several text elements to gray — brand calls for black */
body,
p,
li,
.site-description,
.entry-meta,
.entry-meta a,
.site-info,
.woocommerce-breadcrumb,
.woocommerce-breadcrumb a,
.woocommerce ul.products li.product .price,
.storefront-sale-badge {
	color: var( --kba-text-color );
}

a {
	color: var( --kba-heading-color );
}

/* Signature signoff — bottom-right of every page, set via Customizer > Site Identity > Kerrie Bonnel Signature */
.kba-signature {
	position: fixed;
	right: 16px;
	bottom: 16px;
	z-index: 90;
	max-width: 140px;
	pointer-events: none;
}

.kba-signature img {
	display: block;
	width: 100%;
	height: auto;
}

@media ( max-width: 768px ) {
	.kba-signature {
		max-width: 90px;
		right: 8px;
		bottom: 8px;
	}
}

/* Product grid — 2 columns mobile, 3 desktop, everywhere WooCommerce renders ul.products
   (homepage teaser + shop archive). Overrides Storefront/WooCommerce's own
   columns-N percentage widths since those don't collapse responsively on their own. */
.woocommerce ul.products {
	display: grid !important;
	grid-template-columns: repeat( 2, 1fr );
	gap: 9px;
}

.woocommerce ul.products li.product {
	width: 100% !important;
	margin: 0 !important;
	float: none !important;
}

/* WooCommerce's float clearfix (::before/::after) becomes a real grid item once
   the parent is display:grid, eating the first cell. Kill it. */
.woocommerce ul.products::before,
.woocommerce ul.products::after {
	content: none !important;
	display: none !important;
}

/* Product card: image full-width, name left / price (or SOLD) right below it.
   No rating, no add-to-cart button — those hooks are removed in functions.php. */
.woocommerce ul.products li.product a {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: baseline;
	column-gap: 8px;
	text-decoration: none;
	color: var( --kba-text-color, #000 );
}

.woocommerce ul.products li.product img {
	grid-column: 1 / -1;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	margin-bottom: 8px;
}
.woocommerce ul.products li.product span {
	margin-bottom: 0px !important;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	grid-column: 1;
	min-width: 0;
	margin: 0;
	font-size: 1rem;
	font-weight: normal;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
  text-align: left;
}

.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .kba-sold-label {
	grid-column: 2;
	justify-self: end;
	white-space: nowrap;
	font-size: 1rem;
}

.woocommerce ul.products li.product .kba-sold-label {
	font-weight: bold;
}

@media ( min-width: 769px ) {
	.woocommerce ul.products {
		grid-template-columns: repeat( 3, 1fr );
	}
}

/* Homepage sections */
.kba-front-page section {
	max-width: 1200px;
	margin: 0 auto;
	text-align: center;
}
@media ( min-width: 769px ) {
  .kba-front-page section {
    padding: 48px 24px;
  }
}
.kba-artist-statement-excerpt {
	max-width: 700px;
	margin: 0 auto 24px;
	text-align: left;
}

.kba-read-more {
	display: inline-block;
	margin-top: 16px;
	font-weight: bold;
}

/* Artist Statement page — "View Gallery" button after the content */
.kba-view-gallery {
	text-align: center;
	margin-top: 32px;
}

.kba-view-gallery-btn {
	display: inline-block;
	padding: 12px 32px;
	background: var( --kba-heading-color, #1abc9c );
	color: #fff;
	font-weight: bold;
	text-decoration: none;
	border-radius: 4px;
}

/* "Follow Me" banner — dropped into the product grid every 12 products */
.kba-follow-me-banner {
	text-align: center;
	padding: 40px 24px;
}

.kba-follow-me-banner h2 {
	margin: 0 0 16px;
}

.kba-follow-me-icons {
	display: flex;
	justify-content: center;
	gap: 20px;
}

.kba-follow-me-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var( --kba-heading-color, #1abc9c );
	color: #fff;
}
