/*
Theme Name:   Elizabeth Klark
Theme URI:    https://elizabethklark.com.au
Description:  Elizabeth Klark storefront — Blocksy child theme. Manrope, warm
              neutral palette, modern retail layout. All brand styling lives
              here so a Blocksy update never overwrites it.
Author:       Elizabeth Klark
Template:     blocksy
Version:      1.0.0
Text Domain:  elizabethklark
*/

/* ---------------------------------------------------------------- Palette */
:root {
	--ek-ink:    #141416;   /* near-black: text, header, buttons */
	--ek-ink-80: #3A383D;
	--ek-muted:  #75737A;   /* secondary copy */
	--ek-bone:   #FAF9F7;   /* page background, warm off-white */
	--ek-sand:   #EFEBE5;   /* alternating section bands */
	--ek-line:   #E4DFD8;   /* hairlines */
	--ek-clay:   #C08578;   /* single accent, from the Rose Powder colourway */
	--ek-clay-d: #A96C5F;

	/* Blocksy reads these for every built-in component. */
	--theme-palette-color-1: #141416;
	--theme-palette-color-2: #3A383D;
	--theme-palette-color-3: #141416;
	--theme-palette-color-4: #75737A;
	--theme-palette-color-5: #E4DFD8;
	--theme-palette-color-6: #EFEBE5;
	--theme-palette-color-7: #FAF9F7;
	--theme-palette-color-8: #FFFFFF;

	--theme-font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
	--theme-text-color: var(--ek-ink);
	--theme-link-initial-color: var(--ek-ink);
	--theme-link-hover-color: var(--ek-clay);
	--theme-button-background-initial-color: var(--ek-ink);
	--theme-button-background-hover-color: var(--ek-clay);
	--theme-button-text-initial-color: #fff;
	--theme-button-text-hover-color: #fff;
	--theme-border-radius: 2px;
	--theme-content-spacing: 2rem;
}

/* ------------------------------------------------------------ Typography */
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body, button, input, select, textarea,
.entry-content, .wp-block-button__link {
	font-family: var(--theme-font-family);
	font-variation-settings: 'wght' 400;
	color: var(--ek-ink);
	background-color: var(--ek-bone);
	letter-spacing: -0.005em;
}
h1, h2, h3, h4, h5, h6,
.entry-title, .woocommerce-loop-product__title, .product_title {
	font-family: var(--theme-font-family);
	color: var(--ek-ink);
	letter-spacing: -0.03em;
	line-height: 1.08;
	font-variation-settings: 'wght' 700;
	text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
p, li { line-height: 1.65; color: var(--ek-ink-80); }
.ek-eyebrow {
	font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
	font-variation-settings: 'wght' 600; color: var(--ek-muted); margin-bottom: .75rem;
}

/* ---------------------------------------------------------------- Header */
header[data-device] .ct-header, .ct-header {
	background: var(--ek-bone);
	border-bottom: 1px solid var(--ek-line);
}
.ct-header [data-id="logo"] .site-logo-container img,
.ct-header [data-id="logo"] .site-logo-container svg { max-height: 44px; width: auto; }
[data-id="menu"] .menu > li > a {
	font-size: .9rem; font-variation-settings: 'wght' 600;
	letter-spacing: .01em; text-transform: none;
}

/* ----------------------------------------------------------- Buttons/CTA */
.wp-block-button__link, .ct-button, button, input[type="submit"],
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit, .woocommerce .button.alt {
	background: var(--ek-ink); color: #fff; border: 1px solid var(--ek-ink);
	border-radius: 2px; padding: .95em 2.1em;
	font-size: .84rem; letter-spacing: .09em; text-transform: uppercase;
	font-variation-settings: 'wght' 700;
	transition: background .18s ease, border-color .18s ease, color .18s ease;
	box-shadow: none;
}
.wp-block-button__link:hover, .ct-button:hover, button:hover,
.woocommerce a.button:hover, .woocommerce button.button:hover,
.woocommerce .button.alt:hover {
	background: var(--ek-clay); border-color: var(--ek-clay); color: #fff;
}
.ek-btn-ghost .wp-block-button__link {
	background: transparent; color: var(--ek-ink); border: 1px solid var(--ek-ink);
}
.ek-btn-ghost .wp-block-button__link:hover { background: var(--ek-ink); color: #fff; }

/* --------------------------------------------------------- Product cards */
.woocommerce ul.products, .products.columns-4, .wc-block-grid__products {
	gap: 2.2rem 1.6rem;
}
.woocommerce ul.products li.product {
	background: transparent; border: 0; box-shadow: none; text-align: left;
}
.woocommerce ul.products li.product a img,
.wc-block-grid__product-image img {
	border-radius: 3px; background: var(--ek-sand);
	aspect-ratio: 3 / 4; object-fit: cover;
	transition: transform .5s cubic-bezier(.2,.6,.2,1), opacity .3s ease;
}
.woocommerce ul.products li.product:hover a img { transform: scale(1.035); }
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.wc-block-grid__product-title {
	font-size: 1rem !important; font-variation-settings: 'wght' 600;
	letter-spacing: -.01em; margin: .9rem 0 .25rem; color: var(--ek-ink);
}
.woocommerce ul.products li.product .price, .wc-block-grid__product-price {
	font-size: .95rem; color: var(--ek-muted);
	font-variation-settings: 'wght' 500;
}
.woocommerce span.onsale, .wc-block-grid__product-onsale {
	background: var(--ek-clay); color: #fff; border-radius: 2px;
	font-size: .7rem; letter-spacing: .08em; text-transform: uppercase;
	padding: .3em .8em; min-height: 0; min-width: 0; line-height: 1.6;
}
/* The "add to cart" on a card is noise on a modern storefront — reveal on hover */
.woocommerce ul.products li.product .button {
	opacity: 0; transform: translateY(4px);
	transition: opacity .2s ease, transform .2s ease;
}
.woocommerce ul.products li.product:hover .button { opacity: 1; transform: none; }
@media (hover: none) { .woocommerce ul.products li.product .button { opacity: 1; transform: none; } }

/* ----------------------------------------------------------- Single product */
.single-product div.product .product_title { margin-bottom: .4rem; }
.single-product div.product p.price { font-size: 1.3rem; color: var(--ek-ink); font-variation-settings: 'wght' 600; }
.single-product .variations label { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ek-muted); }
.single-product .variations select {
	border: 1px solid var(--ek-line); border-radius: 2px; padding: .8em 1em; background: #fff;
}
.woocommerce-tabs ul.tabs li { background: transparent !important; border: 0 !important; }
.woocommerce-tabs ul.tabs li a { font-variation-settings: 'wght' 600; letter-spacing: .02em; }

/* ------------------------------------------------------------- Sections */
.ek-section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.ek-band { background: var(--ek-sand); }
.ek-hero {
	min-height: clamp(520px, 72vh, 760px);
	display: flex; align-items: center;
}
.ek-hero h1 { color: #fff; text-shadow: 0 1px 24px rgba(0,0,0,.22); }
.ek-hero p { color: rgba(255,255,255,.93); font-size: 1.1rem; max-width: 34ch; }
.ek-cat-card { position: relative; display: block; overflow: hidden; border-radius: 3px; }
.ek-cat-card img { aspect-ratio: 4/5; object-fit: cover; transition: transform .6s cubic-bezier(.2,.6,.2,1); }
.ek-cat-card:hover img { transform: scale(1.05); }

/* ------------------------------------------------------------ Misc polish */
.woocommerce .woocommerce-message, .woocommerce .woocommerce-info {
	border-top-color: var(--ek-clay); background: var(--ek-sand);
}
table.ek-size-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
table.ek-size-table th, table.ek-size-table td {
	border-bottom: 1px solid var(--ek-line); padding: .85rem 1rem; text-align: left; font-size: .95rem;
}
table.ek-size-table th { font-variation-settings: 'wght' 700; letter-spacing: .04em; text-transform: uppercase; font-size: .78rem; }
.ct-footer { background: var(--ek-ink); }
.ct-footer, .ct-footer a, .ct-footer p, .ct-footer li { color: rgba(250,249,247,.78); }
.ct-footer a:hover { color: #fff; }
::selection { background: var(--ek-clay); color: #fff; }

/* ------------------------------------------------- Hero + category refinements */
.ek-hero .wp-block-cover__inner-container { text-align: left; }
.ek-hero .wp-block-group { max-width: 1160px; margin-inline: auto; width: 100%; }
.ek-hero .ek-eyebrow { color: rgba(255,255,255,.85); text-align: left; }
.ek-hero p { text-align: left; margin-inline: 0; }
.ek-hero .wp-block-buttons { justify-content: flex-start; }
/* Frame the model rather than her midsection. */
.ek-hero img.wp-block-cover__image-background { object-position: 50% 22%; }

/* Category tiles read as cards, not as a list of links. */
.ek-cat-card + p { margin-top: .9rem !important; }
.ek-cat-card + p a {
	text-decoration: none; border: 0;
	font-size: 1.02rem; font-variation-settings: 'wght' 700;
	letter-spacing: -.015em; color: var(--ek-ink);
	display: inline-flex; align-items: center; gap: .45em;
}
.ek-cat-card + p a::after { content: "→"; font-size: .95em; transition: transform .2s ease; }
.ek-cat-card + p a:hover::after { transform: translateX(3px); }
.ek-cat-card + p a:hover { color: var(--ek-clay); }

/* Empty-state copy, for categories still awaiting photography. */
.woocommerce-info { border-radius: 2px; }

/* WooCommerce Blocks buttons: their own classes, white label on ink. */
.wc-block-cart__submit-button,
.wc-block-components-button:not(.is-link),
.wc-block-components-checkout-place-order-button {
	background: var(--ek-ink) !important;
	color: #fff !important;
	border-radius: 2px !important;
	font-variation-settings: 'wght' 700;
	letter-spacing: .09em; text-transform: uppercase; font-size: .84rem;
}
.wc-block-cart__submit-button:hover,
.wc-block-components-button:not(.is-link):hover,
.wc-block-components-checkout-place-order-button:hover {
	background: var(--ek-clay) !important; color: #fff !important;
}
.wc-block-components-button__text { color: inherit !important; }
.wc-block-cart, .wc-block-checkout { --wp--preset--color--contrast: var(--ek-ink); }

/* Category tiles: the image must be constrained to the column, otherwise its
   intrinsic 600px width overflows a phone and aspect-ratio inflates the height. */
.ek-cat-card { display: block; width: 100%; }
.ek-cat-card img {
	display: block; width: 100%; height: auto;
	aspect-ratio: 4 / 5; object-fit: cover;
}
@media (max-width: 767px) {
	.wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column { margin-bottom: 2rem; }
	.ek-hero { min-height: 68vh; }
}
