/* Cocoa Jo's Kitchen: brand moves theme.json can't express.
   Colours come from theme.json presets (--wp--preset--color--*). */

:root {
	--cjk-outline: 3px solid var(--wp--preset--color--chocolate);
	--cjk-shadow: 6px 6px 0 var(--wp--preset--color--chocolate);
	--cjk-shadow-sm: 4px 4px 0 var(--wp--preset--color--chocolate);
}

/* ---------- Typography helpers ---------- */

h1, h2, h3, .wp-block-post-title { text-wrap: balance; }

.is-style-cjk-eyebrow {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--xs) !important;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--cocoa-milk);
	margin-bottom: 0.25rem !important;
}
.has-cream-color.is-style-cjk-eyebrow { color: var(--wp--preset--color--cream); }
.has-mustard-color.is-style-cjk-eyebrow { color: var(--wp--preset--color--mustard); }

/* Section header: eyebrow, Righteous heading, 4px chocolate rule (move 5) */
.is-style-cjk-section {
	padding-bottom: 0.6rem;
	border-bottom: 4px solid var(--wp--preset--color--chocolate);
	margin-top: 0 !important;
}

/* Script flourish: Yellowtail, large only, never sentences */
.is-style-cjk-script {
	font-family: var(--wp--preset--font-family--script) !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	color: var(--wp--preset--color--fuchsia);
	font-size: max(2.5rem, 1em);
}

.cjk-announcement {
	letter-spacing: 0.08em;
	margin: 0;
}

/* ---------- Header ---------- */

.cjk-site-header .cjk-logo { margin: 0; }
.cjk-site-header .cjk-logo img { display: block; height: auto; }
.cjk-site-header .wp-block-navigation a:hover,
.cjk-site-header .wp-block-navigation .current-menu-item > a {
	color: var(--wp--preset--color--fuchsia-dark);
	text-decoration: underline;
	text-decoration-thickness: 3px;
	text-underline-offset: 6px;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	font-size: var(--wp--preset--font-size--lg);
	gap: 1.25rem;
}

@media (max-width: 600px) {
	.cjk-site-header .cjk-logo img { width: 160px !important; }
}

/* ---------- Marquee bulb divider (move 4) ---------- */

.wp-block-separator.is-style-cjk-marquee-dots {
	border: 0 !important;
	height: 16px;
	max-width: none;
	margin-top: 0;
	margin-bottom: 0;
	opacity: 1;
	background:
		radial-gradient(circle, var(--wp--preset--color--mustard) 0 3.5px, transparent 4px) center / 26px 16px repeat-x,
		linear-gradient(rgba(251, 242, 223, 0.6), rgba(251, 242, 223, 0.6)) center / 100% 2px no-repeat;
	background-color: transparent !important;
}
.cjk-site-footer .wp-block-separator.is-style-cjk-marquee-dots {
	margin-top: var(--wp--preset--spacing--60);
	margin-bottom: var(--wp--preset--spacing--30);
}
/* On light backgrounds the cream keyline disappears, so use a faint chocolate one */
.wp-block-separator.is-style-cjk-marquee-dots:not(.cjk-site-footer *) {
	background:
		radial-gradient(circle, var(--wp--preset--color--mustard) 0 3.5px, transparent 4px) center / 26px 16px repeat-x,
		linear-gradient(rgba(75, 42, 28, 0.15), rgba(75, 42, 28, 0.15)) center / 100% 2px no-repeat;
}

/* ---------- Cards: chunky outline + hard shadow (move 1) ---------- */

.is-style-cjk-card {
	background: var(--wp--preset--color--cream);
	border: 4px solid var(--wp--preset--color--chocolate);
	border-radius: 14px;
	box-shadow: var(--cjk-shadow);
	padding: var(--wp--preset--spacing--50);
	height: 100%;
}
.wp-block-column > .is-style-cjk-card { height: 100%; }

.cjk-step-number {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--sm);
	width: 2.5rem;
	height: 2.5rem;
	line-height: 2.5rem;
	text-align: center;
	border-radius: 50%;
	background: var(--wp--preset--color--mustard);
	border: 3px solid var(--wp--preset--color--chocolate);
	color: var(--wp--preset--color--chocolate);
	margin-bottom: 0.5rem !important;
}

/* ---------- Teal sign panel (move 7) ---------- */

.is-style-cjk-teal-sign {
	position: relative;
	background: var(--wp--preset--color--teal);
	color: var(--wp--preset--color--cream);
	border: 5px solid var(--wp--preset--color--chocolate);
	border-radius: 14px;
	box-shadow: 10px 10px 0 var(--wp--preset--color--chocolate);
	transform: rotate(-2deg);
}
.is-style-cjk-teal-sign > * { transform: rotate(2deg); }
/* Marquee bulbs on a faint cream keyline, inset like the logo sign */
.is-style-cjk-teal-sign::before {
	content: "";
	position: absolute;
	inset: 12px;
	border-radius: 8px;
	border: 1px solid rgba(251, 242, 223, 0.35);
	background:
		radial-gradient(circle, var(--wp--preset--color--mustard) 0 4px, transparent 4.5px) top left / 30px 12px repeat-x,
		radial-gradient(circle, var(--wp--preset--color--mustard) 0 4px, transparent 4.5px) bottom left / 30px 12px repeat-x;
	pointer-events: none;
}
.is-style-cjk-teal-sign h1,
.is-style-cjk-teal-sign h2 {
	color: var(--wp--preset--color--cream);
	text-shadow: 4px 4px 0 var(--wp--preset--color--chocolate);
}
.is-style-cjk-teal-sign .is-style-outline .wp-block-button__link {
	background: var(--wp--preset--color--cream);
}
@media (max-width: 600px) {
	.is-style-cjk-teal-sign { transform: rotate(-1deg); }
	.is-style-cjk-teal-sign > * { transform: rotate(1deg); }
}

/* ---------- Framed photo (move 6) ---------- */

.is-style-cjk-framed img,
.wp-block-post-featured-image.is-style-cjk-framed img {
	border: 4px solid var(--wp--preset--color--chocolate);
	border-radius: 14px;
	box-shadow: var(--cjk-shadow);
	background: var(--wp--preset--color--linen);
}

/* Mummy and Me pair on the home page */
.cjk-set-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.cjk-set-photos img {
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border: 4px solid var(--wp--preset--color--cream);
	border-radius: 14px;
	box-shadow: 6px 6px 0 var(--wp--preset--color--espresso);
}

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

.wp-element-button,
.wp-block-button__link {
	transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
	box-shadow: var(--cjk-shadow-sm);
}
.wp-element-button:hover,
.wp-block-button__link:hover {
	transform: translate(2px, 2px);
	box-shadow: 2px 2px 0 var(--wp--preset--color--chocolate);
}
.wp-element-button:active,
.wp-block-button__link:active {
	transform: translate(4px, 4px);
	box-shadow: none;
}
.is-style-outline .wp-block-button__link:hover {
	background: var(--wp--preset--color--linen) !important;
	color: var(--wp--preset--color--chocolate) !important;
}
.cjk-band .is-style-outline .wp-block-button__link,
.cjk-site-footer .wp-block-button__link { box-shadow: 4px 4px 0 var(--wp--preset--color--espresso); }

/* ---------- Quotes ---------- */

.cjk-pull-quote {
	font-size: var(--wp--preset--font-size--lg);
}
.cjk-pull-quote cite {
	display: block;
	margin-top: 0.75rem;
	font-size: var(--wp--preset--font-size--xs);
	font-style: normal;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--cocoa-milk);
}

/* ---------- Footer ---------- */

.cjk-footer-list {
	list-style: none;
	padding-left: 0;
	margin: 0;
}
.cjk-footer-list li { margin-bottom: 0.4rem; }
.cjk-footer-list a { text-decoration: none; }
.cjk-footer-list a:hover { text-decoration: underline; color: var(--wp--preset--color--mustard) !important; }

/* ---------- Product grid ---------- */

.cjk-product-grid .wc-block-product {
	position: relative;
	text-align: left;
}
.cjk-product-grid .wc-block-components-product-image {
	position: relative;
	margin-bottom: 0.9rem !important;
	border: 4px solid var(--wp--preset--color--chocolate);
	border-radius: 14px;
	overflow: hidden;
	background: var(--wp--preset--color--linen);
	box-shadow: var(--cjk-shadow);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cjk-product-grid .wc-block-product:hover .wc-block-components-product-image {
	transform: translate(-2px, -2px);
	box-shadow: 8px 8px 0 var(--wp--preset--color--chocolate);
}
.cjk-product-grid .wp-block-post-title {
	margin: 0 0 0.2rem !important;
	letter-spacing: 0.08em;
	line-height: 1.25;
}
.cjk-product-grid .wp-block-post-title a { text-decoration: none; }
.cjk-product-grid .wp-block-post-title a:hover { color: var(--wp--preset--color--fuchsia-dark); }
.cjk-product-grid .wc-block-components-product-price {
	font-family: var(--wp--preset--font-family--display);
	letter-spacing: 0.06em;
	margin-top: 0.25rem !important;
}

/* Sold pieces: dimmed photo with a fuchsia badge */
.cjk-sold-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--xs);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	background: var(--wp--preset--color--fuchsia);
	color: var(--wp--preset--color--cream);
	border: 3px solid var(--wp--preset--color--chocolate);
	border-radius: 999px;
	padding: 0.3em 0.9em 0.25em;
	box-shadow: 3px 3px 0 var(--wp--preset--color--chocolate);
	transform: rotate(-6deg);
}
.cjk-product-grid .wc-block-components-product-image:has(.cjk-sold-badge) img {
	filter: grayscale(0.55) opacity(0.75);
}

/* WooCommerce placeholder (before real photos are added) */
.wc-block-components-product-image img[src*="woocommerce-placeholder"],
img.woocommerce-placeholder {
	background: var(--wp--preset--color--linen);
	mix-blend-mode: multiply;
}

/* ---------- Past life (signature product field) ---------- */

.cjk-past-life--line {
	font-size: var(--wp--preset--font-size--sm);
	color: var(--wp--preset--color--cocoa-milk);
	margin: 0 !important;
	line-height: 1.4;
}
.cjk-past-life--line .cjk-past-life__label {
	font-weight: 700;
	color: var(--wp--preset--color--chocolate);
}

.cjk-past-life--panel {
	position: relative;
	background: var(--wp--preset--color--parchment);
	border: 3px solid var(--wp--preset--color--chocolate);
	border-left: 9px solid var(--wp--preset--color--fuchsia);
	border-radius: 8px;
	padding: 1rem 1.25rem;
	box-shadow: var(--cjk-shadow-sm);
}
.cjk-past-life--panel p { margin: 0; }
.cjk-past-life--panel .cjk-past-life__label {
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--cocoa-milk);
}
.cjk-past-life--panel .cjk-past-life__text {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--lg);
	letter-spacing: 0.04em;
	line-height: 1.25;
	margin-top: 0.25rem;
}

/* ---------- Single product ---------- */

.cjk-product__gallery .woocommerce-product-gallery {
	border: 4px solid var(--wp--preset--color--chocolate);
	border-radius: 14px;
	overflow: hidden;
	background: var(--wp--preset--color--linen);
	box-shadow: var(--cjk-shadow);
}
.cjk-product__gallery .woocommerce-product-gallery .flex-control-thumbs {
	display: flex;
	gap: 8px;
	padding: 8px;
	margin: 0;
	list-style: none;
	background: var(--wp--preset--color--parchment);
}
.cjk-product__gallery .flex-control-thumbs li { width: 72px; }
.cjk-product__gallery .flex-control-thumbs img { border-radius: 6px; cursor: pointer; opacity: 0.7; }
.cjk-product__gallery .flex-control-thumbs img.flex-active { opacity: 1; outline: 3px solid var(--wp--preset--color--fuchsia); }
.cjk-is-sold .cjk-product__gallery img { filter: grayscale(0.4); }

.cjk-product__summary > * + * { margin-top: 1rem; }
.cjk-product__summary .wp-block-post-title { margin-top: 0.25rem !important; }
.cjk-product__summary .wc-block-components-product-price,
.cjk-product__summary .wp-block-woocommerce-product-price {
	font-family: var(--wp--preset--font-family--display);
	letter-spacing: 0.06em;
}

/* Add to cart form: availability line + button */
.wp-block-add-to-cart-form .stock {
	font-weight: 700;
	font-size: var(--wp--preset--font-size--sm);
	color: var(--wp--preset--color--chocolate);
	margin: 0 0 0.75rem;
}
.wp-block-add-to-cart-form .stock.out-of-stock {
	display: inline-block;
	color: var(--wp--preset--color--cream);
	background: var(--wp--preset--color--fuchsia);
	border: 3px solid var(--wp--preset--color--chocolate);
	border-radius: 999px;
	padding: 0.35em 1em;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 400;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.wp-block-add-to-cart-form .single_add_to_cart_button {
	width: 100%;
	font-size: var(--wp--preset--font-size--base) !important;
	padding-top: 0.9em !important;
	padding-bottom: 0.85em !important;
}

.cjk-product__promise {
	border-top: 3px dotted var(--wp--preset--color--linen);
	padding-top: 1rem;
}
.cjk-product__promise ul { padding-left: 1.2rem; margin: 0; }
.cjk-product__promise li { margin-bottom: 0.3rem; }
.cjk-product__promise li::marker { color: var(--wp--preset--color--fuchsia); }

.wp-block-woocommerce-product-meta { color: var(--wp--preset--color--cocoa-milk); }

/* ---------- Shop intro ---------- */

.cjk-shop-lede { color: var(--wp--preset--color--cocoa-milk); }
.wc-block-breadcrumbs { color: var(--wp--preset--color--cocoa-milk); }

/* ---------- Store notices, forms, checkout ---------- */

.wc-block-components-notice-banner {
	border: 3px solid var(--wp--preset--color--chocolate) !important;
	border-radius: 8px !important;
	background: var(--wp--preset--color--parchment) !important;
	box-shadow: var(--cjk-shadow-sm);
}
.wc-block-components-text-input input,
.wc-block-components-textarea,
.wc-blocks-components-select .wc-blocks-components-select__select,
input[type="text"], input[type="email"], input[type="tel"], input[type="search"], textarea {
	border: 2px solid var(--wp--preset--color--chocolate) !important;
	border-radius: 8px !important;
	background: #fffdf8 !important;
}
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button {
	border: 3px solid var(--wp--preset--color--chocolate) !important;
	border-radius: 999px !important;
	box-shadow: var(--cjk-shadow-sm);
}

/* Cart page */
.wc-block-cart .wc-block-cart__sidebar {
	background: var(--wp--preset--color--parchment);
	border: 4px solid var(--wp--preset--color--chocolate);
	border-radius: 14px;
	box-shadow: var(--cjk-shadow);
	padding: 1.25rem;
	align-self: flex-start;
}
.wc-block-cart .wc-block-cart__totals-title,
.wc-block-cart .wc-block-cart-items__header th {
	font-family: var(--wp--preset--font-family--display) !important;
	font-size: var(--wp--preset--font-size--sm) !important;
	letter-spacing: 0.08em;
}
.wc-block-cart .wc-block-cart-item__image img {
	border: 3px solid var(--wp--preset--color--chocolate);
	border-radius: 8px;
}
.wc-block-cart .wc-block-components-product-name {
	font-family: var(--wp--preset--font-family--display);
	text-decoration: none;
}
.wc-block-cart .wc-block-components-product-name:hover { color: var(--wp--preset--color--fuchsia-dark); }
.wc-block-cart .wc-block-components-totals-footer-item { font-family: var(--wp--preset--font-family--display); }
.wc-block-components-notice-banner a.wc-forward { box-shadow: none !important; opacity: 1 !important; color: var(--wp--preset--color--fuchsia-dark) !important; }

/* Focus visibility everywhere (brand focus = teal) */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
	outline: 3px solid var(--wp--preset--color--teal);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; }
}

/* Shipping rates table */
.cjk-rates-table table { border-collapse: collapse; width: 100%; border: 3px solid var(--wp--preset--color--chocolate); background: var(--wp--preset--color--cream); }
.cjk-rates-table th, .cjk-rates-table td { border: 1px solid var(--wp--preset--color--linen); padding: 0.6rem 0.8rem; text-align: left; }
.cjk-rates-table thead th { background: var(--wp--preset--color--chocolate); color: var(--wp--preset--color--cream); font-family: var(--wp--preset--font-family--display); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 400; }
.cjk-rates-table td:not(:first-child), .cjk-rates-table th:not(:first-child) { text-align: right; white-space: nowrap; }

/* Policy and info pages: room above each section heading */
.wp-block-post-content .wp-block-group > * + .is-style-cjk-section { margin-top: 2.5rem !important; }

/* Contact form (Fluent Forms) */
.fluentform .ff-el-input--label label { font-size: var(--wp--preset--font-size--base); color: var(--wp--preset--color--chocolate); }
.fluentform .ff-el-form-control { background: #fff; border: 2px solid var(--wp--preset--color--chocolate); border-radius: 8px; font-family: inherit; font-size: 1rem; padding: 0.7rem 0.9rem; color: var(--wp--preset--color--chocolate); }
.fluentform .ff-el-form-control:focus { border-color: var(--wp--preset--color--teal); outline: 2px solid var(--wp--preset--color--teal); }
.fluentform .ff-btn-submit.wp-element-button { border: 3px solid var(--wp--preset--color--chocolate); border-radius: 999px; }
.fluentform .ff-message-success { border: 3px solid var(--wp--preset--color--teal); box-shadow: none; }
