/*
Theme Name: Kat Kat
Description: Theme for katkatbaklava.com: Turkish baklava baked in San Diego. Built for WooCommerce.
Version: 1.0.0
Author: Creahive
Text Domain: katkat
*/

:root {
	--green: #1E3A2B;
	--green-2: #2B4E3A;
	--gold: #E2A531;
	--gold-ink: #8A5C0B;
	--pistachio: #9DBB6A;
	--paper: #FFFDF9;
	--band: #EEF1E5;
	--ink: #17201A;
	--muted: #4D5A50;
	--line: #D9DECF;
	--display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
	--body: "Newsreader", Georgia, "Times New Roman", serif;
	--wrap: 1180px;
	--r-big: 28px;
	--r-small: 10px;
}
@media (prefers-color-scheme: dark) {
	:root {
		--paper: #121A15;
		--band: #18241D;
		--ink: #ECEBE4;
		--muted: #AEB8AE;
		--line: #2C3A31;
		--gold-ink: #E9B653;
	}
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--body);
	font-size: 1.1875rem;
	line-height: 1.6;
	font-optical-sizing: auto;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--gold); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, .sec-title, .page-title {
	font-family: var(--display);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.08;
	margin: 0 0 .5em;
}
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--green); padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; }
.hp { position: absolute; left: -9999px; }

/* ---------- Phyllo layers: the one recurring mark ---------- */
.layers { display: grid; gap: 5px; width: 120px; }
.layers i { display: block; height: 3px; border-radius: 2px; background: var(--gold); }
.layers i:nth-child(4) { background: var(--pistachio); height: 6px; }
.layers i:nth-child(2n) { width: 96%; }
.layers i:nth-child(3n) { width: 99%; }
.sec-layers { margin-bottom: 28px; }

/* ---------- Buttons ---------- */
.btn, .button, button[type=submit], .single_add_to_cart_button {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 48px; padding: 0 26px;
	border: 0; border-radius: 999px;
	font: 700 1rem/1 var(--display); letter-spacing: .01em;
	text-decoration: none; cursor: pointer;
	background: var(--green); color: #fff;
	transition: transform .15s ease, background-color .15s ease;
}
.btn:hover, .button:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--green); }
.btn-gold:hover { background: #EDB648; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-2); }

/* ---------- Header ---------- */
.site-head { background: var(--green); color: #fff; }
.head-row { display: flex; align-items: center; gap: 24px; min-height: 76px; flex-wrap: wrap; }
.mark { display: inline-flex; align-items: baseline; gap: 8px; text-decoration: none; color: #fff; }
.mark-word { font: 800 1.7rem/1 var(--display); letter-spacing: -0.04em; color: var(--gold); }
.mark-sub { font: italic 400 1.05rem/1 var(--body); color: #D6E2CC; }
.nav { margin-left: auto; }
.nav ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; flex-wrap: wrap; }
.nav a { font: 500 1rem/1 var(--display); text-decoration: none; color: #E9EFE3; }
.nav a:hover { color: var(--gold); }
.cart { font: 700 1rem/1 var(--display); color: var(--gold); text-decoration: none; }

/* ---------- Hero ---------- */
.hero { background: var(--green); color: #fff; padding: 40px 0 88px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero-word {
	margin: 0 0 18px;
	display: flex; flex-direction: column;
	font: 800 clamp(5.5rem, 15vw, 12.5rem)/.78 var(--display);
	letter-spacing: -0.065em;
	/* The letters are cut into thin sheets, like stacked phyllo. */
	background: repeating-linear-gradient(180deg, var(--gold) 0 7px, transparent 7px 10px);
	-webkit-background-clip: text; background-clip: text;
	color: transparent;
}
.hero-word span + span { padding-left: .5em; }
.hero-title { font-size: clamp(2rem, 3.6vw, 3.1rem); color: #fff; max-width: 15ch; }
.hero-lede { font-size: 1.25rem; color: #D6E2CC; max-width: 34ch; margin: 0 0 30px; }
.hero-cta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hero-price { font: 500 1.15rem/1 var(--display); color: #fff; }
.hero-price .amount { color: var(--gold); font-weight: 800; }

/* ---------- Photos and slots ---------- */
.photo { margin: 0; overflow: hidden; border-radius: var(--r-big); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.slot {
	position: relative; display: grid; place-items: end start;
	padding: 26px; border-radius: var(--r-big);
	background:
		repeating-linear-gradient(180deg, rgba(226,165,49,.14) 0 2px, transparent 2px 22px),
		var(--band);
	color: var(--muted);
	border: 1.5px dashed color-mix(in srgb, var(--gold) 60%, transparent);
	min-height: 240px;
}
.slot-label { font: italic 400 1.05rem/1.35 var(--body); max-width: 28ch; }
.slot .slot-layers { position: absolute; top: 26px; left: 26px; width: 70px; opacity: .8; }
.hero .slot { background: repeating-linear-gradient(180deg, rgba(226,165,49,.16) 0 2px, transparent 2px 22px), var(--green-2); color: #D6E2CC; }
.slot-hero, .hero .photo { aspect-ratio: 4 / 5; }
.slot-product, .box-media .photo { aspect-ratio: 1 / 1; }
.slot-tall, .origin .photo { aspect-ratio: 4 / 5; }
.slot-wide, .gift .photo { aspect-ratio: 3 / 2; }

/* ---------- Sections ---------- */
section { padding: 96px 0; }
.sec-title { font-size: clamp(2rem, 4.2vw, 3.4rem); }
.sec-lede { font-size: 1.25rem; color: var(--muted); max-width: 52ch; margin: 0 0 40px; }

.boxes { background: var(--paper); }
.box-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; margin-top: 36px; }
.box { display: grid; gap: 22px; }
.box-media { display: block; border-radius: var(--r-big); overflow: hidden; }
.box-media img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.box-name { font-size: clamp(1.5rem, 2.4vw, 2rem); margin: 0; }
.box-name a { text-decoration: none; }
.box-meta { margin: 4px 0 0; color: var(--muted); }
.box-price { font: 800 2.4rem/1 var(--display); letter-spacing: -0.03em; color: var(--gold-ink); margin: 14px 0 18px; }
.box-small { margin-top: 120px; }
.boxes-note { margin-top: 40px; color: var(--muted); font-style: italic; }

.process { background: var(--band); }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1.5px solid var(--line); }
.steps li { counter-increment: step; padding: 28px 28px 34px 0; border-bottom: 1.5px solid var(--line); }
.steps li:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1.5px solid var(--line); }
.steps li::before { content: counter(step); display: block; font: 800 2.6rem/1 var(--display); color: var(--gold-ink); margin-bottom: 14px; }
.steps h3 { font-size: 1.35rem; margin: 0 0 6px; }
.steps p { margin: 0; color: var(--muted); }
.process-more { margin: 32px 0 0; font-size: 1.15rem; }

.origin-grid, .gift-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.origin-copy p, .gift-copy p { max-width: 44ch; font-size: 1.2rem; }
.text-link { font: 700 1.05rem/1 var(--display); color: var(--green); }
.gift { background: var(--green); color: #fff; }
.gift .sec-title { color: var(--gold); }
.gift-copy p { color: #D6E2CC; }
.gift .slot { background: repeating-linear-gradient(180deg, rgba(226,165,49,.16) 0 2px, transparent 2px 22px), var(--green-2); color: #D6E2CC; }


.faq details { border-bottom: 1.5px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; position: relative; font: 700 1.3rem/1.25 var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font: 500 1.8rem/1 var(--display); color: var(--gold-ink); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 24px; color: var(--muted); max-width: 62ch; }

/* ---------- Notify form ---------- */
.notify-band { background: var(--band); padding: 72px 0; }
.notify { max-width: 620px; }
.notify-h { display: block; font: 700 clamp(1.6rem, 3vw, 2.2rem)/1.1 var(--display); letter-spacing: -0.02em; margin-bottom: 18px; }
.notify-row { display: flex; gap: 10px; flex-wrap: wrap; }
.notify input[type=email] {
	flex: 1 1 240px; min-height: 52px; padding: 0 20px;
	border: 1.5px solid var(--line); border-radius: 999px;
	background: var(--paper); color: var(--ink); font: 400 1.1rem var(--body);
}
.notify-fine, .notify-msg { font-size: .98rem; color: var(--muted); margin: 12px 0 0; }
.notify-msg { color: var(--green); font-weight: 500; }
.notify-msg.is-error { color: #A12E22; }

/* ---------- Pages ---------- */
.page-main { padding: 72px 0 96px; }
.page-title { font-size: clamp(2.4rem, 5vw, 4rem); }
.prose { max-width: 720px; }
.prose h2 { font-size: 1.8rem; margin-top: 1.8em; }
.prose h3 { font-size: 1.3rem; margin-top: 1.4em; }
.prose .lede, .lede { font-size: 1.3rem; color: var(--muted); }
.prose li { margin-bottom: .4em; }
.prose small, .prose .source { font-size: .95rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-foot { background: var(--green); color: #D6E2CC; padding: 64px 0 32px; }
.site-foot a { color: #fff; }
.foot-layers { width: min(var(--wrap), 100% - 32px); margin: 0 auto 48px; gap: 6px; }
.foot-layers i { height: 2px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 36px; }
.foot-word { font: 800 2.4rem/1 var(--display); letter-spacing: -0.05em; color: var(--gold); margin: 0 0 12px; }
.foot-h { font: 700 1rem/1 var(--display); color: #fff; letter-spacing: 0; margin: 6px 0 14px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin-bottom: 8px; }
.foot-small { font-size: .9rem; margin-top: 48px; color: #A9BBA4; }

/* ---------- WooCommerce ---------- */
.shop-wrap { padding: 64px 0 96px; }
.shop-head { max-width: 720px; margin-bottom: 32px; }
.shop-banner, .woocommerce-info, .woocommerce-message, .woocommerce-error {
	list-style: none; background: var(--band); border-left: 4px solid var(--gold);
	padding: 16px 20px; border-radius: var(--r-small); margin: 0 0 32px;
}
ul.products { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; }
ul.products::before, ul.products::after { display: none; }
ul.products li.product { margin: 0; display: grid; gap: 10px; }
ul.products li.product:nth-child(2) { margin-top: 120px; }
ul.products li.product a.woocommerce-LoopProduct-link { text-decoration: none; display: grid; gap: 14px; }
ul.products li.product img, ul.products li.product .slot { border-radius: var(--r-big); width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.woocommerce-loop-product__title { font: 700 clamp(1.4rem, 2.3vw, 1.9rem)/1.1 var(--display); letter-spacing: -0.02em; margin: 6px 0 0; }
.price { font: 800 2rem/1 var(--display); color: var(--gold-ink); letter-spacing: -0.03em; }
ul.products li.product .button { justify-self: start; }
.shop-notify { margin-top: 80px; padding: 48px; background: var(--band); border-radius: var(--r-big); }

.single-product div.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start; }
.single-product .woocommerce-product-gallery { position: relative; margin: 0; }
.single-product .woocommerce-product-gallery img { border-radius: var(--r-big); }
.single-product .woocommerce-product-gallery .slot { aspect-ratio: 1/1; }
.single-product .woocommerce-product-gallery__trigger { display: none; }
.single-product .flex-control-thumbs { list-style: none; padding: 0; display: flex; gap: 10px; margin: 12px 0 0; }
.single-product .flex-control-thumbs li { width: 80px; }
.single-product .flex-control-thumbs img { border-radius: var(--r-small); cursor: pointer; opacity: .7; }
.single-product .flex-control-thumbs img.flex-active { opacity: 1; }
.product_title { font-size: clamp(2.2rem, 4vw, 3.4rem); }
.summary .price { font-size: 2.8rem; margin: 6px 0 20px; }
.woocommerce-product-details__short-description { font-size: 1.25rem; color: var(--muted); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 28px 0; border-top: 1.5px solid var(--line); }
.facts div { padding: 14px 0; border-bottom: 1.5px solid var(--line); }
.facts dt { font: 500 .95rem/1.2 var(--display); color: var(--muted); }
.facts dd { margin: 4px 0 0; font: 700 1.15rem/1.2 var(--display); }
form.cart { display: flex; gap: 12px; align-items: center; margin: 24px 0; }
.quantity input { width: 72px; min-height: 48px; border: 1.5px solid var(--line); border-radius: 999px; text-align: center; font: 700 1rem var(--display); background: var(--paper); color: var(--ink); }
.closed-note { background: var(--band); border-radius: var(--r-big); padding: 28px; margin: 8px 0 24px; }
.closed-note > p { margin: 0 0 18px; }
.closed-note .notify-h { font-size: 1.3rem; }
.product_meta { display: none; }
.woocommerce-tabs { grid-column: 1 / -1; max-width: 760px; }
.woocommerce-tabs ul.tabs { display: none; }
.woocommerce-tabs h2 { font-size: 1.8rem; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }

/* ---------- Small screens ---------- */
@media (max-width: 900px) {
	section { padding: 64px 0; }
	.hero { padding: 24px 0 56px; }
	.hero-grid, .origin-grid, .gift-grid, .single-product div.product { grid-template-columns: 1fr; gap: 36px; }
	.box-grid, ul.products { grid-template-columns: 1fr; }
	.box-small, ul.products li.product:nth-child(2) { margin-top: 0; }
	.steps { grid-template-columns: 1fr 1fr; }
	.steps li, .steps li:not(:nth-child(3n+1)) { padding: 24px 18px 26px 0; border-left: 0; }
	.steps li:nth-child(2n) { padding-left: 18px; border-left: 1.5px solid var(--line); }
	.foot-grid { grid-template-columns: 1fr 1fr; }
	.gift-media { order: -1; }
}
@media (max-width: 640px) {
	body { font-size: 1.0625rem; }
	.head-row { min-height: 0; padding: 14px 0; gap: 10px 20px; }
	.nav { margin-left: 0; width: 100%; }
	.nav ul { gap: 8px 18px; }
	.hero-word { font-size: clamp(5rem, 30vw, 8rem); }
	.steps { grid-template-columns: 1fr; }
	.steps li:nth-child(2n) { padding-left: 0; border-left: 0; }
	.foot-grid { grid-template-columns: 1fr; }
	.facts { grid-template-columns: 1fr; }
	.shop-notify { padding: 28px; }
}
@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; }
}

/* WooCommerce layout floats are not used: the grid above places gallery and summary. */
.single-product div.product .summary, .single-product div.product .woocommerce-product-gallery { width: auto; float: none; }
.faq-wrap > * { max-width: 820px; }
.box-media .slot-label, .box-media { text-decoration: none; }
.process-head { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: end; margin-bottom: 48px; }
.process-head .sec-lede { margin-bottom: 0; }
.process-photo { aspect-ratio: 3 / 2; }
.syrup-photo { margin-top: 48px; aspect-ratio: 21 / 9; }
.hero .photo { box-shadow: 0 30px 60px -30px rgba(0,0,0,.55); }
.photo-note { font-size: .9rem; color: var(--muted); font-style: italic; margin: 10px 0 0; }
@media (max-width: 900px) {
	.process-head { grid-template-columns: 1fr; gap: 28px; }
	.syrup-photo { aspect-ratio: 3 / 2; }
}
