/* ==========================================================================
   Calla - token-driven stylesheet (premium edition)
   Every visual value reads from a CSS variable, output inline by the theme
   from the active preset and Customizer overrides (see inc/tokens.php).
   The fallbacks below let the stylesheet render standalone.
   ========================================================================== */

:root {
	--calla-color-primary: #1A1714;
	--calla-color-secondary: #14110F;
	--calla-color-accent: #B8902F;
	--calla-color-blue: #2E5A8F;
	--calla-color-heading: #14110F;
	--calla-color-text: #4A453E;
	--calla-color-muted: #8C8478;
	--calla-color-bg: #FFFFFF;
	--calla-color-surface: #F7F3EC;
	--calla-color-border: #E7DECF;
	--calla-color-footer-bg: #14110F;
	--calla-color-footer-text: #CFC4AE;

	--calla-font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--calla-font-heading: Georgia, "Times New Roman", serif;

	--calla-container: 1200px;
	--calla-base-font: 17px;
	--calla-radius: 2px;
	--calla-button-radius: 2px;
	--calla-section-spacing: 96px;

	--calla-hero-image: none;
	--calla-ease: cubic-bezier(.22,.61,.36,1);
}

/* Base -------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

body {
	margin: 0;
	font-family: var(--calla-font-body);
	font-size: var(--calla-base-font);
	line-height: 1.7;
	color: var(--calla-color-text);
	background: var(--calla-color-bg);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
	font-family: var(--calla-font-heading);
	color: var(--calla-color-heading);
	line-height: 1.18;
	font-weight: 500;
	margin: 0 0 .5em;
	letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1.3em; }

a { color: var(--calla-color-primary); text-decoration: none; transition: color .2s var(--calla-ease); }
a:hover, a:focus { color: var(--calla-color-blue); }

::selection { background: var(--calla-color-blue); color: #fff; }

/* Visible keyboard focus for accessibility. */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, .btn:focus-visible,
.wp-block-button__link:focus-visible, [tabindex]:focus-visible {
	outline: 2px solid var(--calla-color-blue);
	outline-offset: 2px;
}

img { max-width: 100%; height: auto; display: block; }

.container {
	width: 100%;
	max-width: var(--calla-container);
	margin: 0 auto;
	padding: 0 28px;
}

.screen-reader-text {
	position: absolute; width: 1px; height: 1px;
	padding: 0; margin: -1px; overflow: hidden;
	clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--calla-color-secondary); color: #fff; padding: 10px 16px; z-index: 1000; }
.skip-link:focus { left: 8px; top: 8px; }

/* Shared decorative elements --------------------------------------------- */
.eyebrow {
	font-family: var(--calla-font-body);
	text-transform: uppercase;
	letter-spacing: 0.28em;
	font-size: 0.72rem;
	font-weight: 600;
	color: var(--calla-color-accent);
	margin: 0 0 1.1em;
}
.rule {
	display: block;
	width: 56px;
	height: 1px;
	background: var(--calla-color-accent);
	margin: 1.4em auto;
}
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-head .rule { margin-left: auto; margin-right: auto; }

/* Buttons ----------------------------------------------------------------- */
.btn {
	display: inline-block;
	padding: 15px 34px;
	border-radius: var(--calla-button-radius);
	font-family: var(--calla-font-body);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	cursor: pointer;
	border: 1px solid transparent;
	transition: background .25s var(--calla-ease), color .25s var(--calla-ease), border-color .25s var(--calla-ease);
}
.btn + .btn { margin-left: 14px; }
.btn-primary { background: var(--calla-color-primary); color: #fff; border-color: var(--calla-color-primary); }
.btn-primary:hover, .btn-primary:focus { background: var(--calla-color-accent); border-color: var(--calla-color-accent); color: #fff; }
.btn-outline { background: transparent; color: var(--calla-color-heading); border-color: currentColor; }
.btn-outline:hover, .btn-outline:focus { background: var(--calla-color-heading); color: var(--calla-color-bg); }

/* Header ------------------------------------------------------------------ */
.site-header {
	background: color-mix(in srgb, var(--calla-color-bg) 92%, transparent);
	backdrop-filter: saturate(140%) blur(6px);
	border-bottom: 1px solid var(--calla-color-border);
	position: sticky; top: 0; z-index: 100;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.site-title { font-family: var(--calla-font-heading); font-size: 1.55rem; font-weight: 500; letter-spacing: 0.02em; color: var(--calla-color-heading); }
.site-title:hover { color: var(--calla-color-heading); }
.custom-logo { max-height: 52px; width: auto; }

.main-navigation ul { list-style: none; display: flex; gap: 30px; margin: 0; padding: 0; }
.main-navigation a {
	color: var(--calla-color-heading);
	font-family: var(--calla-font-body);
	font-size: 0.82rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 6px 0;
	position: relative;
}
.main-navigation a::after {
	content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
	background: var(--calla-color-accent); transition: right .3s var(--calla-ease);
}
.main-navigation a:hover { color: var(--calla-color-heading); }
.main-navigation a:hover::after { right: 0; }

/* Mega menu --------------------------------------------------------------- */
.main-navigation li.has-mega { position: static; }
.main-navigation li.has-mega > a::after { content: ""; }
.main-navigation li.has-mega > a { padding-right: 16px; position: relative; }
.main-navigation li.has-mega > a::before {
	content: ""; position: absolute; right: 0; top: 50%;
	width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
	transform: translateY(-65%) rotate(45deg); opacity: .6;
}
.mega-panel {
	position: absolute; left: 0; right: 0; top: 100%;
	background: var(--calla-color-bg);
	border-top: 1px solid var(--calla-color-border);
	box-shadow: 0 16px 30px rgba(0,0,0,.08);
	opacity: 0; visibility: hidden; transform: translateY(8px);
	transition: opacity .22s var(--calla-ease), transform .22s var(--calla-ease), visibility .22s;
	z-index: 90;
}
.main-navigation li.has-mega:hover > .mega-panel,
.main-navigation li.has-mega:focus-within > .mega-panel {
	opacity: 1; visibility: visible; transform: translateY(0);
}
.mega-inner {
	max-width: var(--calla-container); margin: 0 auto;
	padding: 40px clamp(20px, 5vw, 64px) 48px;
	display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px;
}
.mega-col .mega-head {
	display: block; font-family: var(--calla-font-heading); font-size: 1.05rem;
	font-weight: 500; letter-spacing: 0; text-transform: none;
	color: var(--calla-color-heading); padding: 0 0 10px;
	border-bottom: 1px solid var(--calla-color-accent); margin-bottom: 12px;
}
.mega-col .mega-head::after { display: none; }
.mega-col ul { list-style: none; margin: 0; padding: 0; }
.mega-col ul li { padding: 0; border: 0; }
.mega-col ul li a {
	display: block; padding: 6px 0; font-size: .9rem; letter-spacing: 0;
	text-transform: none; color: var(--calla-color-text); font-weight: 400;
}
.mega-col ul li a:hover { color: var(--calla-color-accent); }
.mega-col ul li a::after { display: none; }
.mega-cta { display: flex; align-items: flex-start; }

.header-actions { display: flex; align-items: center; gap: 16px; }
.cart-link { font-size: 0.82rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--calla-color-heading); }
.cart-count {
	display: inline-block; min-width: 20px; padding: 0 6px;
	background: var(--calla-color-blue); color: #fff;
	border-radius: 11px; text-align: center; font-size: .72rem; line-height: 20px;
}

.menu-toggle { display: none; width: 44px; height: 44px; background: transparent; border: 1px solid var(--calla-color-border); border-radius: var(--calla-radius); position: relative; cursor: pointer; }
.menu-toggle-bar, .menu-toggle-bar::before, .menu-toggle-bar::after { content: ""; position: absolute; left: 11px; width: 20px; height: 1.5px; background: var(--calla-color-heading); }
.menu-toggle-bar { top: 21px; }
.menu-toggle-bar::before { top: -6px; }
.menu-toggle-bar::after { top: 6px; }

/* Hero -------------------------------------------------------------------- */
.hero {
	position: relative;
	min-height: 86vh;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	color: #fff;
	background-image: var(--calla-hero-image);
	background-size: cover;
	background-position: center;
	overflow: hidden;
}
.hero-overlay {
	position: absolute; inset: 0;
	/* subtle sapphire tint deepening toward the base */
	background:
		linear-gradient(180deg, rgba(16,13,10,0.45) 0%, rgba(20,34,54,0.66) 100%);
}
.hero-content { position: relative; z-index: 1; max-width: 760px; }
.hero .eyebrow { color: #e9cf8f; }
.hero-title { color: #fff; margin: 0; font-size: clamp(2.6rem, 5.5vw, 4.4rem); }
.hero .rule { background: #e9cf8f; }
.hero-tagline { font-size: 1.15rem; line-height: 1.8; opacity: .9; max-width: 560px; margin: 0 auto 2.2em; }
.hero-actions .btn-outline { color: #fff; border-color: rgba(255,255,255,.6); }
.hero-actions .btn-outline:hover { background: #fff; color: var(--calla-color-secondary); border-color: #fff; }
.hero-actions .btn-primary { background: #e9cf8f; border-color: #e9cf8f; color: #14110F; }
.hero-actions .btn-primary:hover { background: #fff; border-color: #fff; color: #14110F; }

/* Trust strip ------------------------------------------------------------- */
.trust-strip { border-bottom: 1px solid var(--calla-color-border); background: var(--calla-color-bg); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.trust-item { text-align: center; padding: 30px 20px; border-left: 1px solid var(--calla-color-border); }
.trust-item:first-child { border-left: 0; }
.trust-item strong { display: block; font-family: var(--calla-font-heading); font-weight: 500; font-size: 1.05rem; color: var(--calla-color-heading); margin-bottom: 4px; }
.trust-item span { font-size: 0.8rem; letter-spacing: 0.04em; color: var(--calla-color-muted); }

/* Sections ---------------------------------------------------------------- */
.section-title { text-align: center; }
.features, .home-posts, .home-products, .atelier, .home-content { padding: var(--calla-section-spacing) 0; }
.home-content .entry-content { max-width: 760px; margin: 0 auto; }
.home-products { background: var(--calla-color-surface); }

.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.feature { text-align: center; padding: 8px; }
.feature h3 { color: var(--calla-color-heading); margin-bottom: .4em; }
.feature p { color: var(--calla-color-muted); margin: 0; }

/* Atelier editorial band -------------------------------------------------- */
.atelier-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.atelier-media { aspect-ratio: 4 / 5; background: var(--calla-color-surface) var(--calla-hero-image) center/cover; border-radius: var(--calla-radius); }
.atelier-body .eyebrow { color: var(--calla-color-accent); }
.atelier-body .rule { margin-left: 0; }

/* Post grid --------------------------------------------------------------- */
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.post-card { background: transparent; display: flex; flex-direction: column; }
.post-card-thumb { display: block; overflow: hidden; border-radius: var(--calla-radius); }
.post-card-thumb img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .6s var(--calla-ease); }
.post-card:hover .post-card-thumb img { transform: scale(1.05); }
.post-card-body { padding: 22px 2px 0; display: flex; flex-direction: column; flex: 1; }
.post-card-title { font-size: 1.25rem; margin-bottom: .35em; }
.post-card-title a { color: var(--calla-color-heading); }
.post-card-title a:hover { color: var(--calla-color-accent); }
.post-card-meta { order: -1; color: var(--calla-color-muted); font-size: .72rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: .9em; }
.post-card-excerpt { flex: 1; color: var(--calla-color-text); }
.read-more { font-size: .76rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--calla-color-heading); }
.read-more::after { content: " \2192"; color: var(--calla-color-accent); }

/* Inner page hero + breadcrumbs ------------------------------------------ */
.page-hero {
	background: var(--calla-color-surface);
	border-bottom: 1px solid var(--calla-color-border);
	padding: 56px 0 60px;
	text-align: center;
}
.page-hero-title { margin: 0; }
.breadcrumbs {
	font-family: var(--calla-font-body);
	font-size: 0.72rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--calla-color-muted);
	margin-bottom: 1em;
}
.breadcrumbs a { color: var(--calla-color-muted); }
.breadcrumbs a:hover { color: var(--calla-color-accent); }
.breadcrumbs .sep { margin: 0 .55em; color: var(--calla-color-accent); }

/* Content + sidebar ------------------------------------------------------- */
.content-with-sidebar { display: grid; grid-template-columns: 1fr 300px; gap: 64px; padding: 72px 28px; max-width: var(--calla-container); margin: 0 auto; }
.content-full { padding: 72px 28px; max-width: var(--calla-container); margin: 0 auto; }
.page-header { margin-bottom: 40px; text-align: center; }
.page-title { margin: 0; }
.archive-description { color: var(--calla-color-muted); margin-top: .6em; }

/* Single post/page fill the page width. The reading text is given a comfortable
   measure while images and the layout span the full container. */
.single-post, .single-page { max-width: 100%; margin: 0 auto; }
.single-page { padding-top: 64px; }
.single-post .entry-content > :not(.alignfull):not(.alignwide):not(.wp-block-image):not(figure),
.single-page .entry-content > :not(.alignfull):not(.alignwide):not(.wp-block-image):not(figure) {
	max-width: 900px;
	margin-left: auto;
	margin-right: auto;
}
.post-navigation { padding: 24px 0; }
.entry-header { margin-bottom: 28px; text-align: center; }
.entry-meta { color: var(--calla-color-muted); font-size: .74rem; letter-spacing: 0.14em; text-transform: uppercase; display: flex; gap: 16px; justify-content: center; }
.entry-thumbnail { margin: 0 0 36px; border-radius: var(--calla-radius); overflow: hidden; }
.entry-content { font-size: 1.08rem; line-height: 1.85; }
.entry-content h2, .entry-content h3 { margin-top: 1.6em; }
.entry-footer { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--calla-color-border); }

/* Comments ---------------------------------------------------------------- */
.comments-area { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--calla-color-border); }
.comments-title, .comment-reply-title { font-size: 1.3rem; margin-bottom: 1em; }
.comment-list { list-style: none; margin: 0 0 32px; padding: 0; }
.comment-list li { margin-bottom: 24px; }
.comment-body { padding-bottom: 16px; border-bottom: 1px solid var(--calla-color-border); }
.comment-author .fn { font-weight: 600; color: var(--calla-color-heading); }
.comment-metadata { font-size: .74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--calla-color-muted); }
.comment-respond { margin-top: 24px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: 12px 14px; margin-top: 6px;
	border: 1px solid var(--calla-color-border); border-radius: var(--calla-radius);
	background: var(--calla-color-bg); color: var(--calla-color-text); font-family: inherit; font-size: 1rem;
}
.comment-form p { margin-bottom: 16px; }
.comment-form .form-submit input { cursor: pointer; }

/* Widgets ----------------------------------------------------------------- */
.widget { margin-bottom: 36px; }
.widget-title { font-size: .8rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--calla-color-heading); border-bottom: 1px solid var(--calla-color-accent); padding-bottom: 10px; }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { padding: 8px 0; border-bottom: 1px solid var(--calla-color-border); }

/* Pagination -------------------------------------------------------------- */
.pagination { margin-top: 56px; display: flex; justify-content: center; }
.pagination .page-numbers { display: inline-block; padding: 9px 15px; margin: 0 4px; border: 1px solid var(--calla-color-border); border-radius: var(--calla-radius); color: var(--calla-color-heading); font-size: .85rem; }
.pagination .page-numbers.current { background: var(--calla-color-primary); color: #fff; border-color: var(--calla-color-primary); }

/* Search / 404 ------------------------------------------------------------ */
.error-404, .no-results { padding: var(--calla-section-spacing) 0; max-width: 680px; margin: 0 auto; text-align: center; }
.search-form { display: flex; gap: 8px; margin: 20px auto; max-width: 420px; }
.search-form input[type="search"] { flex: 1; padding: 12px 16px; border: 1px solid var(--calla-color-border); border-radius: var(--calla-radius); font-size: 1rem; background: var(--calla-color-bg); color: var(--calla-color-text); }
.search-form button { padding: 12px 22px; background: var(--calla-color-primary); color: #fff; border: 0; border-radius: var(--calla-button-radius); cursor: pointer; text-transform: uppercase; letter-spacing: 0.12em; font-size: .78rem; }

/* Social icons ------------------------------------------------------------ */
.social-icons { display: inline-flex; align-items: center; gap: 14px; }
.social-icons--footer { display: flex; justify-content: center; margin: 0 0 22px; }
.social-icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 38px; height: 38px; border-radius: 50%;
	border: 1px solid var(--calla-color-border);
	color: var(--calla-color-heading);
	transition: background .25s var(--calla-ease), color .25s var(--calla-ease), border-color .25s var(--calla-ease), transform .25s var(--calla-ease);
}
.social-icon:hover { background: var(--calla-color-accent); border-color: var(--calla-color-accent); color: #fff; transform: translateY(-2px); }
.site-footer .social-icon { border-color: rgba(255,255,255,.25); color: var(--calla-color-footer-text); }
.site-footer .social-icon:hover { background: var(--calla-color-accent); border-color: var(--calla-color-accent); color: #fff; }
.header-actions .social-icons { margin-right: 4px; }

/* Floating WhatsApp button */
.whatsapp-float {
	position: fixed; right: 22px; bottom: 22px; z-index: 200;
	width: 56px; height: 56px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	background: #25D366; color: #fff;
	box-shadow: 0 8px 24px rgba(0,0,0,.22);
	transition: transform .2s var(--calla-ease), box-shadow .2s var(--calla-ease);
}
.whatsapp-float svg { width: 30px; height: 30px; }
.whatsapp-float:hover { color: #fff; transform: scale(1.06); box-shadow: 0 10px 28px rgba(0,0,0,.28); }

/* Order on WhatsApp product button - on its own line under Add to Cart */
.woocommerce div.product form.cart { display: block; }
.calla-wa-order {
	display: flex !important;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: fit-content;
	clear: both;
	margin: 16px 0 0 !important;
	background: #25D366 !important;
	color: #fff !important;
}
.calla-wa-order:hover { background: #1ebe5b !important; }
.calla-wa-order svg { width: 18px; height: 18px; }

/* Footer ------------------------------------------------------------------ */
.site-footer { background: var(--calla-color-footer-bg); color: var(--calla-color-footer-text); padding: var(--calla-section-spacing) 0 32px; margin-top: var(--calla-section-spacing); }
.site-footer a { color: var(--calla-color-footer-text); }
.site-footer a:hover { color: #fff; }
/* Centered footer column */
.footer-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.footer-brand { margin-bottom: 22px; }
.footer-brand .site-title { font-family: var(--calla-font-heading); font-size: 1.5rem; color: #fff; }
.footer-brand .custom-logo { max-height: 56px; width: auto; filter: brightness(0) invert(1); opacity: .92; }
.footer-tagline { font-size: .85rem; opacity: .7; margin: .5em 0 0; max-width: 460px; }
.footer-widgets { margin-bottom: 8px; }
.footer-navigation ul { list-style: none; display: flex; flex-wrap: wrap; gap: 28px; padding: 0; margin: 0 0 20px; justify-content: center; }
.footer-navigation a { font-size: .78rem; letter-spacing: 0.12em; text-transform: uppercase; }
.site-copyright { font-size: .82rem; opacity: .7; margin: 0; text-align: center; letter-spacing: 0.04em; }

/* WooCommerce ------------------------------------------------------------- */
/* Force a real grid so products lay out correctly even on pages where the
   WooCommerce layout CSS is not loaded (e.g. the homepage). Overrides the
   default float-based WooCommerce layout for a consistent look. */
.woocommerce ul.products, ul.products {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px 28px;
	margin: 0 !important;
	padding: 0;
	list-style: none;
}
/* WooCommerce adds clearfix ::before/::after that become empty grid cells.
   Remove them so the grid starts at the first product. */
.woocommerce ul.products::before, .woocommerce ul.products::after,
ul.products::before, ul.products::after { content: none !important; display: none !important; }
/* Honor WooCommerce's column setting (columns-N class on the list). */
.woocommerce ul.products.columns-1, ul.products.columns-1 { grid-template-columns: 1fr; }
.woocommerce ul.products.columns-2, ul.products.columns-2 { grid-template-columns: repeat(2, 1fr); }
.woocommerce ul.products.columns-4, ul.products.columns-4 { grid-template-columns: repeat(4, 1fr); }
.woocommerce ul.products.columns-5, ul.products.columns-5 { grid-template-columns: repeat(5, 1fr); }
.woocommerce ul.products.columns-6, ul.products.columns-6 { grid-template-columns: repeat(6, 1fr); }
/* Product card layout, self-contained so it looks right on every page
   (the homepage doesn't load WooCommerce's own loop CSS). */
.woocommerce ul.products li.product, ul.products li.product {
	position: relative;
	width: auto !important;
	float: none !important;
	margin: 0 0 1.5em !important;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}
.woocommerce ul.products li.product > a, ul.products li.product > a { display: block; width: 100%; }
.woocommerce ul.products li.product a img, ul.products li.product a img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--calla-radius); margin-bottom: 1em; transition: transform .6s var(--calla-ease); }
.woocommerce ul.products li.product:hover a img { transform: scale(1.04); }
.woocommerce ul.products li.product .woocommerce-loop-product__title, ul.products li.product .woocommerce-loop-product__title { font-family: var(--calla-font-heading); font-weight: 500; font-size: 1.05rem; padding: 0; margin: .2em 0 .15em; color: var(--calla-color-heading); }
.woocommerce ul.products li.product .price, ul.products li.product .price { display: block; color: var(--calla-color-heading); font-weight: 500; margin: 0 0 .9em; }
.woocommerce ul.products li.product .price .amount, ul.products li.product .price .amount { color: var(--calla-color-heading); }
.woocommerce ul.products li.product .price del, ul.products li.product .price del { opacity: .55; margin-right: 6px; font-weight: 400; }
.woocommerce ul.products li.product .price ins, ul.products li.product .price ins { text-decoration: none; }
/* Add-to-cart button on its own line, never crowding the price. */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .added_to_cart,
ul.products li.product .button {
	margin-top: auto;
	display: inline-block;
}

.woocommerce a.button, .woocommerce button.button, .woocommerce #respond input#submit, .woocommerce .button.alt {
	background: var(--calla-color-primary) !important; color: #fff !important;
	border-radius: var(--calla-button-radius) !important;
	text-transform: uppercase !important; letter-spacing: 0.12em !important;
	font-size: .76rem !important; padding: 12px 26px !important; font-weight: 600 !important;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce .button.alt:hover { background: var(--calla-color-accent) !important; }
/* Sale badge - positioned consistently even without WooCommerce loop CSS. */
.woocommerce ul.products li.product .onsale,
ul.products li.product .onsale,
.woocommerce span.onsale {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 3;
	margin: 0;
	min-height: 0;
	min-width: 0;
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--calla-color-accent) !important;
	color: #fff !important;
	font-size: .66rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	line-height: 1;
}
/* On single product pages keep it relative to the gallery. */
.woocommerce div.product .onsale { top: 16px; left: 16px; }
.woocommerce .woocommerce-result-count, .woocommerce .woocommerce-ordering { color: var(--calla-color-muted); }

/* Store pages: one constrained wrapper provides max-width and side padding;
   inner WooCommerce wrappers are neutralized so nothing runs edge to edge. */
.calla-store {
	max-width: var(--calla-container);
	margin: 0 auto;
	padding: 56px clamp(20px, 5vw, 64px) 80px;
	box-sizing: border-box;
}
.calla-store .site-main,
.calla-store #primary,
.calla-store .content-area,
.calla-store .woo-wrap,
.calla-store > .woocommerce {
	max-width: none !important;
	width: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
}

/* Related / upsell products: compact and quiet so they don't compete with
   the product being viewed. */
.related.products, .upsells.products { margin-top: 72px; padding-top: 36px; border-top: 1px solid var(--calla-color-border); }
.related.products > h2, .upsells.products > h2 {
	text-align: center; font-size: 1.4rem; margin-bottom: 1.4em;
	font-weight: 500; color: var(--calla-color-heading);
}
.related.products ul.products, .upsells.products ul.products { gap: 10px 22px; }
.related.products ul.products li.product .woocommerce-loop-product__title,
.upsells.products ul.products li.product .woocommerce-loop-product__title { font-size: .92rem; }
.related.products ul.products li.product .price,
.upsells.products ul.products li.product .price { font-size: .85rem; margin-bottom: .5em; }
/* Hide add-to-cart in related to keep it clean; the image and title link through. */
.related.products ul.products li.product .button,
.upsells.products ul.products li.product .button { display: none; }
.related.products ul.products li.product .onsale,
.upsells.products ul.products li.product .onsale { transform: scale(.85); top: 8px; left: 8px; }

/* ==========================================================================
   Block-built homepage (Pages > Home renders into front-page.php)
   Core blocks (cover, columns, buttons, latest-posts) styled to match.
   ========================================================================== */
.home-blocks { overflow-x: clip; }
.home-blocks > * { margin-block: 0; }

/* The homepage is built from full-bleed sections (calla shortcodes), which
   self-constrain their inner content. Only stray plain blocks get a readable
   max width; sections stay edge to edge. */
.home-blocks > p,
.home-blocks > h1,
.home-blocks > h2,
.home-blocks > h3,
.home-blocks > ul,
.home-blocks > ol,
.home-blocks > blockquote,
.home-blocks > .wp-block-image {
	max-width: var(--calla-container);
	margin-inline: auto;
	padding-inline: 28px;
}

/* Section groups (shortcode-rendered, drag-reorderable as Shortcode blocks) */
.calla-section { padding-block: var(--calla-section-spacing); }
.calla-section h2, .section-title { text-align: center; }
.calla-section .eyebrow { text-align: center; }
.calla-section__inner { margin: 0 auto; padding-inline: 28px; }
.calla-products { background: var(--calla-color-surface); }

/* Hero (full-bleed section) */
.calla-hero {
	position: relative;
	min-height: 86vh;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	color: #fff;
	background-image: var(--calla-hero-image);
	background-size: cover;
	background-position: center;
	overflow: hidden;
}
.calla-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	/* charcoal to subtle sapphire overlay */
	background: linear-gradient(180deg, rgba(16,13,10,0.48) 0%, rgba(20,34,54,0.66) 100%);
}
.calla-hero__inner { position: relative; z-index: 1; max-width: 760px; padding: 0 28px; }
.calla-hero__title { color: #fff; font-size: clamp(2.6rem, 5.5vw, 4.4rem); margin: 0 0 .25em; }
.calla-hero .eyebrow { color: #e9cf8f; }
.calla-hero .rule { background: #e9cf8f; }
.calla-hero__sub { color: #fff; opacity: .92; font-size: 1.15rem; line-height: 1.8; max-width: 560px; margin: 0 auto 2em; }
.calla-hero__actions .btn-primary { background: #e9cf8f; border-color: #e9cf8f; color: #14110F; }
.calla-hero__actions .btn-primary:hover { background: #fff; border-color: #fff; color: #14110F; }
.calla-hero__actions .btn-outline { color: #fff; border-color: rgba(255,255,255,.6); }
.calla-hero__actions .btn-outline:hover { background: #fff; color: #14110F; }

/* Core button block (used elsewhere / in post content) styled like theme buttons */
.wp-block-button__link {
	border-radius: var(--calla-button-radius);
	text-transform: uppercase; letter-spacing: 0.14em; font-size: .78rem; font-weight: 600;
	padding: 15px 32px; background: var(--calla-color-primary); color: #fff; border: 1px solid var(--calla-color-primary);
	transition: background .25s var(--calla-ease), color .25s var(--calla-ease), border-color .25s var(--calla-ease);
}
.wp-block-button__link:hover { background: var(--calla-color-accent); border-color: var(--calla-color-accent); color: #fff; }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; border: 1px solid currentColor; color: var(--calla-color-heading); }
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--calla-color-heading); color: var(--calla-color-bg); }

/* Trust row */
.calla-trust-wrap { border-top: 1px solid var(--calla-color-border); border-bottom: 1px solid var(--calla-color-border); }
.calla-trust-wrap .trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.calla-trust-wrap .trust-item { text-align: center; padding: 16px 24px; border-left: 1px solid var(--calla-color-border); }
.calla-trust-wrap .trust-item:first-child { border-left: 0; }
.calla-trust-wrap .trust-item strong { display: block; font-family: var(--calla-font-heading); font-weight: 500; font-size: 1.1rem; color: var(--calla-color-heading); margin-bottom: 4px; }
.calla-trust-wrap .trust-item span { font-size: .82rem; letter-spacing: 0.04em; color: var(--calla-color-muted); }

/* Atelier band with background image + overlay */
.calla-atelier {
	position: relative;
	background-image: linear-gradient(rgba(16,13,10,0.62), rgba(20,34,54,0.66)), url("../img/atelier.jpg");
	background-size: cover;
	background-position: center;
	color: #fff;
}
.calla-atelier .calla-section__inner { position: relative; z-index: 1; }
.calla-atelier :is(h1, h2, p) { color: #fff; }
.calla-atelier .eyebrow { color: #e9cf8f; }
.calla-atelier .rule { background: #e9cf8f; }
.calla-atelier .btn-outline { color: #fff; border-color: rgba(255,255,255,.6); }
.calla-atelier .btn-outline:hover { background: #fff; color: #14110F; }

/* Journal (Latest Posts block) - force an even 3-column grid that fills width.
   (The homepage now uses the [calla_recent_posts] card grid instead; this
   keeps the older block looking right too.) */
.calla-journal.wp-block-latest-posts.is-grid,
.calla-journal.wp-block-latest-posts {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr);
	gap: 40px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.calla-journal.wp-block-latest-posts > li {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	float: none !important;
}
.calla-journal .wp-block-latest-posts__featured-image,
.calla-journal .wp-block-latest-posts__featured-image a { display: block; width: 100%; }
.calla-journal .wp-block-latest-posts__featured-image img {
	width: 100% !important; height: auto;
	aspect-ratio: 3 / 2; object-fit: cover;
	border-radius: var(--calla-radius); margin-bottom: 1em;
}
.wp-block-latest-posts__featured-image img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--calla-radius); margin-bottom: 1em; }
.wp-block-latest-posts__post-title { font-family: var(--calla-font-heading); font-weight: 500; font-size: 1.25rem; color: var(--calla-color-heading); }
.wp-block-latest-posts__post-date { color: var(--calla-color-muted); font-size: .72rem; letter-spacing: 0.14em; text-transform: uppercase; }
.wp-block-latest-posts__post-excerpt { color: var(--calla-color-text); }

/* ==========================================================================
   Motion
   ========================================================================== */
/* Scroll reveal: JS adds .calla-reveal then .is-visible when in view. */
.calla-reveal { opacity: 0; transform: translateY(22px); }
.calla-reveal.is-visible {
	opacity: 1; transform: none;
	transition: opacity .7s var(--calla-ease), transform .7s var(--calla-ease);
}
/* Stagger items within a grid. */
.calla-reveal.is-visible:nth-child(2) { transition-delay: .08s; }
.calla-reveal.is-visible:nth-child(3) { transition-delay: .16s; }
.calla-reveal.is-visible:nth-child(4) { transition-delay: .24s; }

/* Hero content fades up on load. */
@keyframes calla-hero-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.calla-hero__inner > * { animation: calla-hero-in .9s var(--calla-ease) both; }
.calla-hero__inner > *:nth-child(2) { animation-delay: .12s; }
.calla-hero__inner > *:nth-child(3) { animation-delay: .24s; }
.calla-hero__inner > *:nth-child(4) { animation-delay: .36s; }

/* Header subtle elevation once scrolled. */
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(0,0,0,.07); }

/* Gentle lift on cards and products. */
.post-card, .woocommerce ul.products li.product { transition: transform .4s var(--calla-ease); }
.post-card:hover, .woocommerce ul.products li.product:hover { transform: translateY(-4px); }

/* Respect reduced-motion preferences. */
@media (prefers-reduced-motion: reduce) {
	.calla-reveal, .calla-reveal.is-visible { opacity: 1 !important; transform: none !important; transition: none !important; }
	.calla-hero__inner > * { animation: none !important; }
	* { scroll-behavior: auto !important; }
}

html { scroll-behavior: smooth; }

/* Responsive -------------------------------------------------------------- */
@media (max-width: 900px) {
	.features-grid, .posts-grid { grid-template-columns: repeat(2, 1fr); }
	.woocommerce ul.products, ul.products,
	.calla-journal.wp-block-latest-posts { grid-template-columns: repeat(2, 1fr) !important; }
	.atelier-inner { grid-template-columns: 1fr; gap: 36px; }
	.content-with-sidebar { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
	:root { --calla-section-spacing: 64px; }
	.hero, .calla-hero { min-height: 78vh; }
	.features-grid, .posts-grid, .trust-grid { grid-template-columns: 1fr; }
	.woocommerce ul.products, ul.products,
	.calla-journal.wp-block-latest-posts { grid-template-columns: 1fr !important; }
	.calla-trust-wrap .trust-grid { grid-template-columns: 1fr; }
	.trust-item { border-left: 0; border-top: 1px solid var(--calla-color-border); }
	.trust-item:first-child { border-top: 0; }
	.calla-trust-wrap .trust-item { border-left: 0; border-top: 1px solid var(--calla-color-border); padding-block: 22px; }
	.calla-trust-wrap .trust-item:first-child { border-top: 0; }

	.header-inner { position: relative; }
	.menu-toggle { display: block; }
	.main-navigation { position: static; }
	.main-navigation ul {
		display: none; position: absolute; left: 0; right: 0; top: 100%;
		flex-direction: column; gap: 0; background: var(--calla-color-bg);
		border-top: 1px solid var(--calla-color-border); box-shadow: 0 12px 24px rgba(0,0,0,.08);
	}
	.main-navigation.is-open ul { display: flex; }
	.main-navigation li { padding: 2px 28px; border-bottom: 1px solid var(--calla-color-border); }

	/* Mega menu collapses to a simple indented list on mobile. */
	.main-navigation li.has-mega { position: static; }
	.main-navigation li.has-mega > a::before { display: none; }
	.mega-panel { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border-top: 0; }
	.mega-inner { display: block; max-width: none; padding: 4px 0 8px; }
	.mega-col .mega-head { border-bottom: 0; padding: 8px 0 4px; }
	.mega-col ul li a { padding-left: 12px; color: var(--calla-color-muted); }
	.mega-cta { display: none; }
	.btn + .btn { margin-left: 0; margin-top: 12px; }
	.hero-actions .btn { display: block; width: fit-content; margin-left: auto; margin-right: auto; }
}
