/* آرتا کرفت — design system. Tokens in @theme (synced to Gutenberg), full
 * component CSS below as plain CSS so the look is pixel-faithful to the source
 * designs in draft (Play CDN) and live (compiled dist/styles.css). */

@theme {
	--color-primary:    #B5623C;
	--color-primary-50: #F1E1D3;
	--color-background: #F5EFE3;
	--color-neutral:    #2C2822;
	--color-card:       #FDFBF6;
	--color-muted:      #8A8071;

	--color-resin:  #B5623C;
	--color-candle: #C08A3A;
	--color-stone:  #6E8560;
	--color-mold:   #4E6E7A;

	--font-sans:  Vazirmatn, Tahoma, sans-serif;
	--font-mono:  ui-monospace, "SF Mono", Menlo, monospace;
}

/* ============================ TOKENS (CSS vars) ============================ */
:root {
	--ac-cream:  #F5EFE3;
	--ac-card:   #FDFBF6;
	--ac-ink:    #2C2822;
	--ac-terra:  #B5623C;
	--ac-muted:  #8A8071;
	--ac-muted2: #9A8F7C;
	--ac-muted3: #A99B84;
	--ac-border: #E7DECD;
	--ac-border2:#E4DAC8;
	--ac-badge:  #F1E1D3;
	--ac-search: #EFE7D6;
	--ac-dark:   #2C2822;
	--font-sans: Vazirmatn, Tahoma, sans-serif;
	--font-mono: ui-monospace, "SF Mono", Menlo, monospace;
	--ac-floral: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20width=%27140%27%20height=%27140%27%20viewBox=%270%200%20140%20140%27%3E%3Cg%20fill=%27rgb%28233,223,203%29%27%3E%3Ccircle%20cx=%2735%27%20cy=%2731%27%20r=%275.5%27/%3E%3Ccircle%20cx=%2743.6%27%20cy=%2737.2%27%20r=%275.5%27/%3E%3Ccircle%20cx=%2740.3%27%20cy=%2747.3%27%20r=%275.5%27/%3E%3Ccircle%20cx=%2729.7%27%20cy=%2747.3%27%20r=%275.5%27/%3E%3Ccircle%20cx=%2726.4%27%20cy=%2737.2%27%20r=%275.5%27/%3E%3Ccircle%20cx=%27105%27%20cy=%27101%27%20r=%275.5%27/%3E%3Ccircle%20cx=%27113.6%27%20cy=%27107.2%27%20r=%275.5%27/%3E%3Ccircle%20cx=%27110.3%27%20cy=%27117.3%27%20r=%275.5%27/%3E%3Ccircle%20cx=%2799.7%27%20cy=%27117.3%27%20r=%275.5%27/%3E%3Ccircle%20cx=%2796.4%27%20cy=%27107.2%27%20r=%275.5%27/%3E%3C/g%3E%3Cg%20fill=%27rgb%28226,213,189%29%27%3E%3Ccircle%20cx=%2735%27%20cy=%2740%27%20r=%274.5%27/%3E%3Ccircle%20cx=%27105%27%20cy=%27110%27%20r=%274.5%27/%3E%3C/g%3E%3C/svg%3E");
	--ac-stripe: repeating-linear-gradient(45deg, #E8DFCD 0 12px, #E1D7C2 12px 24px);
}

/* ============================== BASE ============================== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body.artacraft {
	font-family: var(--font-sans);
	background-color: var(--ac-cream);
	background-image: var(--ac-floral);
	background-attachment: fixed;
	background-repeat: repeat;
	background-position: top center;
	color: var(--ac-ink);
	min-height: 100vh;
	-webkit-font-smoothing: antialiased;
}
body.ac-noscroll { overflow: hidden; }
::selection { background: var(--ac-terra); color: #fff; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
@keyframes acFade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes acDrop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

.ac-container { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.ac-main { animation: acFade 0.4s ease both; }

/* ============================== HEADER ============================== */
.ac-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(245,239,227,0.88); backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--ac-border2);
	transition: transform 0.3s ease;
}
.ac-header.ac-hidden { transform: translateY(-100%); }
.ac-header-inner {
	max-width: 1200px; margin: 0 auto; padding: 0 28px; height: 74px;
	display: flex; align-items: center; gap: 28px;
}
.ac-brand { display: flex; align-items: center; gap: 11px; cursor: pointer; }
.ac-mark {
	width: 40px; height: 40px; border-radius: 11px; background: var(--ac-terra);
	display: flex; align-items: center; justify-content: center; color: #fff;
	font-weight: 800; font-size: 20px; box-shadow: 0 4px 14px rgba(181,98,60,0.32); flex-shrink: 0;
}
.ac-brand-name { font-weight: 800; font-size: 19px; color: var(--ac-ink); line-height: 1.1; }
.ac-brand-sub { font-size: 11px; color: var(--ac-muted2); font-weight: 500; letter-spacing: 0.5px; }
.ac-nav { display: flex; align-items: center; gap: 4px; margin-right: 12px; }
.ac-nav a {
	padding: 8px 14px; border-radius: 9px; font-size: 15px; font-weight: 600;
	cursor: pointer; color: #5A5348;
}
.ac-nav a.ac-active { color: var(--ac-terra); background: var(--ac-badge); }
.ac-header-right { margin-right: auto; display: flex; align-items: center; gap: 12px; }
.ac-search {
	display: flex; align-items: center; gap: 8px; background: var(--ac-search);
	border: 1px solid #E0D5C1; border-radius: 10px; padding: 8px 13px; width: 190px;
}
.ac-search input {
	border: 0; background: transparent; outline: none; font-family: inherit;
	font-size: 14px; color: var(--ac-ink); width: 100%;
}
.ac-search input::placeholder { color: var(--ac-muted3); }
.ac-search .ac-search-ic { color: var(--ac-muted3); font-size: 15px; }
.ac-shop-soon {
	font-size: 12px; font-weight: 700; color: var(--ac-terra); background: #F3E2D5;
	border: 1px dashed #D8A688; padding: 7px 12px; border-radius: 999px; white-space: nowrap;
}
.ac-burger { display: none; }
.ac-mobile-search { display: none; }

/* ============================== HERO ============================== */
.ac-hero {
	max-width: 1200px; margin: 0 auto; padding: 64px 28px 40px;
	display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 52px; align-items: center;
}
.ac-eyebrow {
	display: inline-block; font-size: 13px; font-weight: 700; color: var(--ac-terra);
	background: var(--ac-badge); padding: 7px 15px; border-radius: 999px; margin-bottom: 22px;
}
.ac-hero h1 {
	font-size: 52px; line-height: 1.18; font-weight: 900; color: var(--ac-ink);
	letter-spacing: -0.5px; margin-bottom: 20px; text-wrap: balance;
}
.ac-hero-lead { font-size: 18px; line-height: 2; color: #6B6355; margin-bottom: 32px; max-width: 480px; }
.ac-hero-cta { display: flex; gap: 14px; align-items: center; }
.ac-btn {
	background: var(--ac-terra); color: #fff; font-weight: 700; font-size: 16px;
	padding: 15px 30px; border-radius: 12px; cursor: pointer;
	box-shadow: 0 6px 20px rgba(181,98,60,0.28); border: 0; font-family: inherit;
}
.ac-btn-ghost {
	color: var(--ac-ink); font-weight: 700; font-size: 16px; padding: 15px 22px;
	border-radius: 12px; cursor: pointer; border: 1.5px solid #DCD1BE; background: transparent;
}
.ac-stats { display: flex; gap: 32px; margin-top: 40px; }
.ac-stat-num { font-size: 26px; font-weight: 800; color: var(--ac-ink); }
.ac-stat-lbl { font-size: 13px; color: var(--ac-muted2); font-weight: 600; }
.ac-stat-div { width: 1px; background: #E0D5C1; }
.ac-hero-media {
	position: relative; height: 460px; border-radius: 22px; overflow: hidden;
	background: repeating-linear-gradient(45deg, #E8DFCD 0 14px, #E1D7C2 14px 28px);
	border: 1px solid #DACFBB; display: flex; align-items: center; justify-content: center;
}
.ac-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.ac-ph { font-family: var(--font-mono); font-size: 13px; color: #A5967D;
	background: rgba(245,239,227,0.85); padding: 8px 14px; border-radius: 8px; }
.ac-hero-card {
	position: absolute; bottom: 20px; right: 20px; left: 20px; background: rgba(255,255,255,0.94);
	border-radius: 14px; padding: 16px 18px; display: flex; align-items: center; gap: 13px;
	box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.ac-hero-card-mark { width: 44px; height: 44px; border-radius: 10px; background: var(--ac-terra); flex-shrink: 0; }
.ac-hero-card-t { font-weight: 700; font-size: 14px; }
.ac-hero-card-s { font-size: 12px; color: var(--ac-muted2); }

/* ============================== SECTIONS ============================== */
.ac-section { max-width: 1200px; margin: 0 auto; padding: 46px 28px; }
.ac-section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 28px; }
.ac-section-head h2 { font-size: 30px; font-weight: 800; color: var(--ac-ink); }
.ac-section-head p { font-size: 15px; color: var(--ac-muted); margin-top: 6px; }
.ac-more { font-size: 15px; font-weight: 700; color: var(--ac-terra); cursor: pointer; }

/* categories grid */
.ac-cats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ac-cat-card {
	background: var(--ac-card); border: 1px solid var(--ac-border); border-radius: 18px;
	overflow: hidden; display: block; transition: transform 0.18s, box-shadow 0.18s;
}
.ac-cat-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,0,0,0.09); }
.ac-cat-top { height: 130px; position: relative; display: flex; align-items: flex-end; padding: 16px; }
.ac-cat-icon { font-size: 40px; }
.ac-cat-count {
	position: absolute; top: 14px; left: 14px; font-size: 12px; font-weight: 700; color: #fff;
	background: rgba(0,0,0,0.18); padding: 4px 10px; border-radius: 999px;
}
.ac-cat-body { padding: 18px; }
.ac-cat-name { font-weight: 800; font-size: 18px; color: var(--ac-ink); margin-bottom: 6px; }
.ac-cat-desc { font-size: 13.5px; line-height: 1.8; color: var(--ac-muted); }

/* post grid cards */
.ac-posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ac-card {
	background: var(--ac-card); border: 1px solid var(--ac-border); border-radius: 18px;
	overflow: hidden; cursor: pointer; display: block;
}
.ac-thumb {
	height: 172px; background: var(--ac-stripe); display: flex; align-items: center;
	justify-content: center; position: relative; overflow: hidden;
}
.ac-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ac-thumb-ph { font-family: var(--font-mono); font-size: 11px; color: #A5967D; }
.ac-tag {
	position: absolute; top: 13px; right: 13px; font-size: 11.5px; font-weight: 700; color: #fff;
	padding: 5px 11px; border-radius: 999px; z-index: 2;
}
.ac-card-body { padding: 20px; }
.ac-card-title { font-size: 17.5px; font-weight: 700; line-height: 1.6; color: var(--ac-ink); margin-bottom: 10px; }
.ac-card-excerpt { font-size: 13.5px; line-height: 1.9; color: var(--ac-muted); margin-bottom: 16px; }
.ac-meta { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ac-muted3); font-weight: 500; }

/* newsletter */
.ac-news-wrap { max-width: 1200px; margin: 40px auto 20px; padding: 0 28px; }
.ac-news {
	background: var(--ac-dark); border-radius: 24px; padding: 48px 52px;
	display: grid; grid-template-columns: 1fr auto; gap: 36px; align-items: center;
}
.ac-news h2 { font-size: 28px; font-weight: 800; color: var(--ac-cream); margin-bottom: 10px; }
.ac-news p { font-size: 15.5px; color: #B8AE9C; line-height: 1.9; }
.ac-news-form { display: flex; gap: 10px; }
.ac-news-form input {
	background: #3A352D; border: 1px solid #4A443A; border-radius: 12px; padding: 14px 18px;
	color: #F5EFE3; font-family: inherit; font-size: 14px; width: 220px; outline: none;
}
.ac-news-form input::placeholder { color: #9A8F7C; }
.ac-news-form button {
	background: var(--ac-terra); color: #fff; font-weight: 700; padding: 14px 26px;
	border-radius: 12px; cursor: pointer; white-space: nowrap; border: 0; font-family: inherit;
}

/* ============================== BLOG PAGE ============================== */
.ac-blog { max-width: 1200px; margin: 0 auto; padding: 56px 28px; animation: acFade 0.4s ease both; }
.ac-blog-head { text-align: center; margin-bottom: 40px; }
.ac-blog-head h1 { font-size: 42px; font-weight: 900; color: var(--ac-ink); margin-bottom: 12px; }
.ac-blog-head p { font-size: 17px; color: #7A7161; }
.ac-filters { display: flex; gap: 10px; justify-content: center; margin-bottom: 40px; flex-wrap: wrap; }
.ac-chip {
	padding: 9px 18px; border-radius: 999px; font-size: 14.5px; font-weight: 700;
	background: var(--ac-card); border: 1px solid var(--ac-border2); color: #5A5348; cursor: pointer;
}
.ac-chip.ac-active { background: var(--ac-dark); color: #fff; border-color: var(--ac-dark); }
.ac-featured {
	background: var(--ac-card); border: 1px solid var(--ac-border); border-radius: 22px;
	overflow: hidden; display: grid; grid-template-columns: 1.15fr 1fr; margin-bottom: 40px; cursor: pointer;
}
.ac-featured-media {
	min-height: 320px; background: repeating-linear-gradient(45deg, #E8DFCD 0 14px, #E1D7C2 14px 28px);
	display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.ac-featured-media img { width: 100%; height: 100%; object-fit: cover; }
.ac-featured-body { padding: 44px; display: flex; flex-direction: column; justify-content: center; }
.ac-featured-tag {
	align-self: flex-start; font-size: 12.5px; font-weight: 700; color: #fff; background: var(--ac-terra);
	padding: 5px 13px; border-radius: 999px; margin-bottom: 18px;
}
.ac-featured-body h2 { font-size: 30px; font-weight: 800; line-height: 1.4; color: var(--ac-ink); margin-bottom: 16px; }
.ac-featured-body p { font-size: 15.5px; line-height: 2; color: #7A7161; margin-bottom: 24px; }
.ac-byline { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ac-muted3); font-weight: 500; }
.ac-avatar { width: 34px; height: 34px; border-radius: 50%; background: #DCD1BE; }

/* ============================== CATEGORY / ARCHIVE ============================== */
.ac-cat-hero { }
.ac-cat-hero-inner {
	max-width: 1200px; margin: 0 auto; padding: 56px 28px;
	display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 32px;
}
.ac-crumb { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.8); margin-bottom: 14px; }
.ac-cat-hero h1 { font-size: 46px; font-weight: 900; color: #fff; margin-bottom: 16px; }
.ac-cat-hero-intro { font-size: 17px; line-height: 2; color: rgba(255,255,255,0.92); max-width: 560px; }
.ac-cat-hero-icon { font-size: 96px; opacity: 0.85; }
.ac-cat-layout {
	max-width: 1200px; margin: 0 auto; padding: 44px 28px;
	display: grid; grid-template-columns: 1fr 300px; gap: 44px; align-items: start;
}
.ac-cat-layout h2 { font-size: 24px; font-weight: 800; color: var(--ac-ink); margin-bottom: 22px; }
.ac-list { display: flex; flex-direction: column; gap: 16px; }
.ac-list-item {
	background: var(--ac-card); border: 1px solid var(--ac-border); border-radius: 16px; padding: 8px;
	display: grid; grid-template-columns: 150px 1fr; gap: 20px; cursor: pointer; align-items: center;
}
.ac-list-thumb {
	height: 118px; border-radius: 12px; overflow: hidden;
	background: repeating-linear-gradient(45deg, #E8DFCD 0 11px, #E1D7C2 11px 22px);
	display: flex; align-items: center; justify-content: center;
}
.ac-list-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ac-list-body { padding: 6px 12px 6px 0; }
.ac-list-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.ac-level { font-size: 11.5px; font-weight: 700; color: #fff; padding: 3px 10px; border-radius: 999px; }
.ac-list-read { font-size: 12.5px; color: var(--ac-muted3); }
.ac-list-body h3 { font-size: 18px; font-weight: 700; line-height: 1.55; color: var(--ac-ink); margin-bottom: 7px; }
.ac-list-body p { font-size: 13.5px; line-height: 1.85; color: var(--ac-muted); }
.ac-aside { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 94px; }
.ac-aside-box { background: var(--ac-card); border: 1px solid var(--ac-border); border-radius: 16px; padding: 22px; }
.ac-aside-title { font-size: 15px; font-weight: 800; color: var(--ac-ink); margin-bottom: 16px; }
.ac-aside-link { display: flex; align-items: center; gap: 11px; padding: 10px; border-radius: 10px; }
.ac-aside-link:hover { background: #F3ECDD; }
.ac-aside-ic { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.ac-aside-name { font-size: 14.5px; font-weight: 600; color: #4A443A; }
.ac-aside-shop { background: var(--ac-badge); border: 1px solid #E4C9B4; border-radius: 16px; padding: 22px; }
.ac-aside-shop-t { font-size: 15px; font-weight: 800; color: #8A4A2C; margin-bottom: 8px; }
.ac-aside-shop p { font-size: 13px; line-height: 1.9; color: #9A6A4C; }

/* ============================== SINGLE / PAGE ============================== */
.ac-article { max-width: 760px; margin: 0 auto; padding: 56px 28px; animation: acFade 0.4s ease both; }
.ac-article-tag { display: inline-block; font-size: 12.5px; font-weight: 700; color: #fff; padding: 5px 13px; border-radius: 999px; margin-bottom: 18px; }
.ac-article h1 { font-size: 40px; font-weight: 900; line-height: 1.3; color: var(--ac-ink); margin-bottom: 16px; letter-spacing: -0.4px; }
.ac-article-meta { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ac-muted3); font-weight: 500; margin-bottom: 30px; }
.ac-article-hero { height: 380px; border-radius: 20px; overflow: hidden; margin-bottom: 34px; background: var(--ac-stripe); display: flex; align-items: center; justify-content: center; }
.ac-article-hero img { width: 100%; height: 100%; object-fit: cover; }
.ac-prose { font-size: 17px; line-height: 2.05; color: #3A362F; }
.ac-prose > * { margin-bottom: 22px; }
.ac-prose h2 { font-size: 26px; font-weight: 800; color: var(--ac-ink); margin-top: 14px; }
.ac-prose h3 { font-size: 21px; font-weight: 700; color: var(--ac-ink); }
.ac-prose a { color: var(--ac-terra); text-decoration: underline; text-underline-offset: 3px; }
.ac-prose ul, .ac-prose ol { padding-right: 22px; }
.ac-prose li { margin-bottom: 8px; }
.ac-prose img { border-radius: 14px; }
.ac-prose blockquote { border-right: 3px solid var(--ac-terra); padding: 4px 18px; color: #6B6355; background: var(--ac-card); border-radius: 10px; }
.ac-back { display: inline-block; margin-bottom: 26px; font-size: 14px; font-weight: 700; color: var(--ac-terra); cursor: pointer; }
.ac-related { border-top: 1px solid var(--ac-border2); margin-top: 20px; }
.ac-related .ac-section-head { margin-bottom: 22px; }

/* comments */
.ac-comments { max-width: 760px; margin: 0 auto 60px; padding: 0 28px; }
.ac-comments h3 { font-size: 20px; font-weight: 800; margin-bottom: 18px; color: var(--ac-ink); }
.ac-comments .comment-list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.ac-comments .comment-body { background: var(--ac-card); border: 1px solid var(--ac-border); border-radius: 14px; padding: 18px; }
.ac-comments input[type=text], .ac-comments input[type=email], .ac-comments input[type=url], .ac-comments textarea {
	width: 100%; background: var(--ac-card); border: 1px solid var(--ac-border2); border-radius: 10px;
	padding: 12px 14px; font-family: inherit; font-size: 14px; margin-bottom: 12px; outline: none; color: var(--ac-ink);
}
.ac-comments .submit, .ac-comments input[type=submit] { background: var(--ac-terra); color: #fff; border: 0; font-weight: 700; padding: 12px 26px; border-radius: 10px; cursor: pointer; font-family: inherit; }

/* pagination */
.ac-pagination { display: flex; gap: 8px; justify-content: center; margin-top: 44px; flex-wrap: wrap; }
.ac-pagination .page-numbers {
	padding: 9px 15px; border-radius: 10px; background: var(--ac-card); border: 1px solid var(--ac-border);
	color: #5A5348; font-weight: 700; font-size: 14px;
}
.ac-pagination .page-numbers.current { background: var(--ac-terra); color: #fff; border-color: var(--ac-terra); }

/* 404 / empty */
.ac-empty { max-width: 640px; margin: 0 auto; padding: 90px 28px; text-align: center; animation: acFade 0.4s ease both; }
.ac-empty .ac-mark { width: 64px; height: 64px; font-size: 32px; border-radius: 18px; margin: 0 auto 22px; }
.ac-empty h1 { font-size: 34px; font-weight: 900; color: var(--ac-ink); margin-bottom: 12px; }
.ac-empty p { font-size: 16px; color: var(--ac-muted); line-height: 1.9; margin-bottom: 26px; }

/* ============================== SHARE / AUTHOR / PROGRESS ============================== */
.ac-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; background: transparent; }
.ac-progress span { display: block; height: 100%; width: 0; background: var(--ac-terra); }
.ac-share { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--ac-border2); }
.ac-share-label { font-size: 14px; font-weight: 800; color: var(--ac-ink); margin-left: 2px; }
.ac-share a, .ac-share button { display: inline-flex; align-items: center; gap: 7px; font-family: inherit; font-size: 13px; font-weight: 700; color: #5A5348; background: var(--ac-card); border: 1px solid var(--ac-border); border-radius: 999px; padding: 8px 15px; cursor: pointer; transition: border-color .15s, color .15s; }
.ac-share a:hover, .ac-share button:hover { border-color: var(--ac-terra); color: var(--ac-terra); }
.ac-author { display: flex; align-items: center; gap: 14px; margin-top: 24px; background: var(--ac-card); border: 1px solid var(--ac-border); border-radius: 16px; padding: 20px 22px; }
.ac-author-av { width: 52px; height: 52px; border-radius: 50%; background: var(--ac-terra); flex-shrink: 0; box-shadow: 0 4px 12px rgba(181,98,60,0.28); }
.ac-author-name { font-size: 15px; font-weight: 800; color: var(--ac-ink); margin-bottom: 4px; }
.ac-author-bio { font-size: 13px; line-height: 1.85; color: var(--ac-muted); }

/* ============================== SHOP (coming soon) ============================== */
.ac-shop-hero { max-width: 720px; margin: 0 auto; padding: 66px 28px 96px; }
.ac-shop-card { background: var(--ac-card); border: 1px solid var(--ac-border); border-radius: 28px; padding: 54px 44px; text-align: center; box-shadow: 0 22px 54px rgba(0,0,0,0.06); }
.ac-shop-icon { font-size: 62px; line-height: 1; margin-bottom: 16px; }
.ac-shop-card h1 { font-size: 40px; font-weight: 900; color: var(--ac-ink); margin: 10px 0 16px; letter-spacing: -0.4px; }
.ac-shop-lead { font-size: 16.5px; line-height: 2; color: #6B6355; max-width: 520px; margin: 0 auto 28px; }
.ac-shop-cats { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 30px; }
.ac-shop-chip { display: inline-flex; align-items: center; gap: 8px; background: var(--ac-cream); border: 1px solid var(--ac-border2); border-radius: 999px; padding: 6px 15px 6px 6px; font-size: 14px; font-weight: 600; color: #4A443A; }
.ac-shop-chip-ic { width: 26px; height: 26px; border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.ac-shop-form { display: flex; gap: 10px; max-width: 440px; margin: 0 auto 22px; }
.ac-shop-form input { flex: 1; background: var(--ac-cream); border: 1px solid var(--ac-border2); border-radius: 12px; padding: 14px 16px; font-family: inherit; font-size: 14px; color: var(--ac-ink); outline: none; }
.ac-shop-form input::placeholder { color: var(--ac-muted3); }
.ac-shop-form button { background: var(--ac-terra); color: #fff; font-weight: 700; padding: 14px 24px; border-radius: 12px; border: 0; cursor: pointer; font-family: inherit; white-space: nowrap; }
.ac-shop-back { display: inline-block; font-size: 14.5px; font-weight: 700; color: var(--ac-terra); }
a.ac-shop-soon { text-decoration: none; }

/* ============================== FOOTER ============================== */
.ac-footer { background: var(--ac-dark); margin-top: 40px; }
.ac-footer-grid {
	max-width: 1200px; margin: 0 auto; padding: 56px 28px 30px;
	display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
}
.ac-footer-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 18px; }
.ac-footer-mark { width: 38px; height: 38px; border-radius: 10px; background: var(--ac-terra); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 19px; }
.ac-footer-name { font-weight: 800; font-size: 18px; color: var(--ac-cream); }
.ac-footer-about { font-size: 13.5px; line-height: 2; color: #A79D8B; max-width: 300px; }
.ac-footer-col-t { font-size: 14px; font-weight: 700; color: var(--ac-cream); margin-bottom: 16px; }
.ac-footer-col { display: flex; flex-direction: column; gap: 11px; }
.ac-footer-col a, .ac-footer-col span { font-size: 13.5px; color: #A79D8B; cursor: pointer; }
.ac-footer-col a:hover { color: var(--ac-cream); }
.ac-footer-bottom {
	max-width: 1200px; margin: 0 auto; padding: 20px 28px; border-top: 1px solid #3E3830;
	display: flex; justify-content: space-between; align-items: center;
}
.ac-footer-bottom span { font-size: 12.5px; color: #7E7565; }

/* ============================== MOBILE DRAWER + BOTTOM NAV ============================== */
.ac-drawer { position: fixed; inset: 0; z-index: 90; display: none; }
.ac-drawer.ac-open { display: block; }
.ac-drawer-overlay { position: absolute; inset: 0; background: rgba(35,32,26,0.5); backdrop-filter: blur(2px); }
.ac-drawer-panel {
	position: absolute; top: 0; right: 0; bottom: 0; width: 280px; max-width: 82vw; background: var(--ac-cream);
	padding: 26px 22px; animation: acDrop 0.25s ease both; box-shadow: -14px 0 40px rgba(0,0,0,0.2); overflow-y: auto;
}
.ac-drawer-head { display: flex; align-items: center; gap: 9px; margin-bottom: 26px; }
.ac-drawer-head .ac-mark { width: 38px; height: 38px; font-size: 19px; }
.ac-drawer-name { font-weight: 800; font-size: 17px; }
.ac-drawer-close { margin-right: auto; font-size: 22px; color: var(--ac-muted2); cursor: pointer; background: none; border: 0; }
.ac-drawer-link { display: block; padding: 13px 12px; border-radius: 11px; font-size: 16px; font-weight: 700; color: var(--ac-ink); cursor: pointer; }
.ac-drawer-div { height: 1px; background: var(--ac-border2); margin: 8px 0; }
.ac-drawer-label { font-size: 12px; color: var(--ac-muted3); font-weight: 700; padding: 6px 12px; }
.ac-drawer-cat { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 11px; cursor: pointer; }
.ac-drawer-cat-ic { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 17px; }
.ac-drawer-cat-name { font-size: 15.5px; font-weight: 600; color: #4A443A; }
.ac-drawer-shop { display: block; text-decoration: none; margin-top: 18px; background: var(--ac-badge); border: 1px dashed #D8A688; border-radius: 12px; padding: 14px; text-align: center; font-size: 13px; font-weight: 700; color: var(--ac-terra); }

.ac-bottomnav {
	position: fixed; bottom: 0; left: 0; right: 0; z-index: 45;
	background: rgba(245,239,227,0.96); backdrop-filter: blur(10px); border-top: 1px solid var(--ac-border2);
	display: none; padding: 8px 10px 14px; transition: transform 0.32s ease; transform: translateY(140%);
}
.ac-bottomnav.ac-bn-show { transform: translateY(0); }
.ac-bn-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px; cursor: pointer; }
.ac-bn-ic { font-size: 20px; opacity: 0.55; }
.ac-bn-item.ac-active .ac-bn-ic { opacity: 1; }
.ac-bn-lbl { font-size: 10.5px; font-weight: 700; color: var(--ac-muted2); }
.ac-bn-item.ac-active .ac-bn-lbl { color: var(--ac-terra); }

/* ============================== RESPONSIVE ============================== */
@media (max-width: 1024px) {
	.ac-hero { grid-template-columns: 1fr; gap: 34px; padding: 44px 24px 30px; }
	.ac-hero-media { height: 320px; }
	.ac-cats-grid { grid-template-columns: repeat(2, 1fr); }
	.ac-posts-grid { grid-template-columns: repeat(2, 1fr); }
	.ac-featured { grid-template-columns: 1fr; }
	.ac-featured-media { min-height: 220px; }
	.ac-cat-layout { grid-template-columns: 1fr; }
	.ac-aside { position: static; flex-direction: row; flex-wrap: wrap; }
	.ac-aside-box, .ac-aside-shop { flex: 1; min-width: 240px; }
	.ac-footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 760px) {
	.ac-header-inner { height: 62px; gap: 12px; padding: 0 18px; }
	.ac-nav, .ac-search, .ac-shop-soon, .ac-head-account, .ac-head-desktop .ac-head-cart { display: none; }
	.ac-burger {
		display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
		width: 40px; height: 40px; border-radius: 11px; background: var(--ac-search); border: 1px solid #E0D5C1; cursor: pointer;
	}
	.ac-burger span { width: 17px; height: 2px; background: #5A5348; border-radius: 2px; }
	.ac-brand-sub { font-size: 10px; }
	.ac-brand-name { font-size: 17px; }
	.ac-header-right { margin-right: auto; }
	.ac-mobile-search {
		display: flex; align-items: center; justify-content: center; width: 40px; height: 40px;
		border-radius: 11px; background: var(--ac-search); border: 1px solid #E0D5C1; color: #7A7161; font-size: 18px; cursor: pointer;
	}
	.ac-container, .ac-section, .ac-hero, .ac-news-wrap, .ac-blog, .ac-cat-hero-inner, .ac-cat-layout, .ac-footer-grid, .ac-footer-bottom { padding-left: 18px; padding-right: 18px; }
	.ac-hero { padding-top: 26px; }
	.ac-hero h1 { font-size: 32px; line-height: 1.25; }
	.ac-hero-lead { font-size: 15px; }
	.ac-hero-cta { }
	.ac-hero-cta .ac-btn { flex: 1; text-align: center; padding: 14px; }
	.ac-stats { gap: 12px; }
	.ac-stat-num { font-size: 22px; }
	.ac-section { padding-top: 30px; padding-bottom: 30px; }
	.ac-section-head h2, .ac-blog-head h1 { font-size: 26px; }
	.ac-cats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
	.ac-cat-top { height: 92px; }
	.ac-cat-icon { font-size: 30px; }
	.ac-cat-body { padding: 12px; }
	.ac-cat-name { font-size: 15px; }
	.ac-cat-desc { font-size: 11.5px; }
	/* mobile post cards go horizontal (image beside text), like the mobile design */
	.ac-posts-grid { grid-template-columns: 1fr; gap: 14px; }
	.ac-card { display: grid; grid-template-columns: 112px 1fr; align-items: stretch; }
	.ac-thumb { height: auto; min-height: 96px; align-items: flex-start; }
	.ac-tag { top: 9px; right: 9px; left: auto; font-size: 10px; padding: 3px 8px; }
	.ac-card-body { padding: 13px 14px; }
	.ac-card-title { font-size: 14.5px; line-height: 1.5; margin-bottom: 6px; }
	.ac-card-excerpt { display: none; }
	.ac-meta { font-size: 11.5px; }
	.ac-news { grid-template-columns: 1fr; padding: 32px 26px; }
	.ac-news-form { flex-direction: column; }
	.ac-news-form input { width: 100%; }
	.ac-blog-head h1 { font-size: 30px; }
	.ac-featured-body { padding: 26px; }
	.ac-featured-body h2 { font-size: 22px; }
	.ac-cat-hero h1 { font-size: 34px; }
	.ac-cat-hero-icon { font-size: 60px; }
	.ac-list-item { grid-template-columns: 110px 1fr; gap: 12px; }
	.ac-list-thumb { height: 96px; }
	.ac-list-body h3 { font-size: 15.5px; }
	.ac-aside { flex-direction: column; }
	.ac-footer-grid { grid-template-columns: 1fr; gap: 26px; }
	.ac-footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
	.ac-article { padding: 30px 18px; }
	.ac-article h1 { font-size: 28px; }
	.ac-article-hero { height: 220px; }
	.ac-prose { font-size: 16px; }
	.ac-bottomnav { display: flex; }
	.ac-shop-card { padding: 40px 22px; }
	.ac-shop-card h1 { font-size: 30px; }
	.ac-shop-lead { font-size: 15px; }
	.ac-shop-form { flex-direction: column; }
	.ac-shop-hero { padding: 40px 18px 70px; }
	body { padding-bottom: 60px; }
}

@layer base {}
@layer components {}

/* ==================================================================
   HEADER / FOOTER — desktop + mobile split (matched to source design)
   Appended last so these win over earlier header/footer rules.
   ================================================================== */

/* ---- Desktop header: single row ---- */
.ac-head-desktop { max-width: 1200px; margin: 0 auto; padding: 0 26px; height: 72px; display: flex; flex-wrap: nowrap; align-items: center; gap: 20px; }
.ac-head-mobile { display: none; }

.ac-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.ac-mark { width: 34px; height: 34px; border-radius: 9px; background: var(--ac-terra); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 17px; box-shadow: 0 3px 10px rgba(181,98,60,0.28); flex-shrink: 0; }
.ac-mark-sm { width: 36px; height: 36px; border-radius: 10px; font-size: 18px; box-shadow: none; }
.ac-brand-txt { display: flex; flex-direction: column; line-height: 1.12; }
.ac-brand-name { font-weight: 800; font-size: 17px; color: var(--ac-ink); white-space: nowrap; }
.ac-brand-sub { font-size: 10.5px; color: #9A8F7C; font-weight: 500; letter-spacing: 0.3px; white-space: nowrap; }

.ac-nav { display: flex; flex-wrap: nowrap; align-items: center; gap: 2px; margin-right: 6px; }
.ac-nav a { padding: 7px 11px; border-radius: 9px; font-size: 14px; font-weight: 600; color: #5A5348; text-decoration: none; white-space: nowrap; transition: background .15s, color .15s; }
.ac-nav a:hover { background: rgba(181,98,60,0.08); color: var(--ac-terra); }
.ac-nav a.ac-active { color: var(--ac-terra); background: var(--ac-badge); }

.ac-head-right { margin-right: auto; display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.ac-search { display: flex; align-items: center; gap: 8px; background: #EFE7D6; border: 1px solid #E0D5C1; border-radius: 10px; padding: 7px 12px; width: 168px; flex-shrink: 0; }
.ac-search-ic { color: #A99B84; font-size: 15px; line-height: 1; }
.ac-search input { border: 0; background: transparent; outline: none; font-family: inherit; font-size: 13.5px; color: var(--ac-ink); width: 100%; padding: 0; }
.ac-search input::placeholder { color: #A99B84; }
.ac-shop-soon { font-size: 12px; font-weight: 700; color: var(--ac-terra); background: #F3E2D5; border: 1px dashed #D8A688; padding: 7px 12px; border-radius: 999px; white-space: nowrap; text-decoration: none; flex-shrink: 0; }

/* ---- Tablet: keep header on one line ---- */
@media (max-width: 1024px) {
	.ac-head-desktop { gap: 14px; padding: 0 18px; }
	.ac-nav { margin-right: 4px; gap: 1px; }
	.ac-nav a { padding: 7px 9px; font-size: 13.5px; }
	.ac-search { width: 140px; }
}
@media (max-width: 900px) {
	.ac-head-desktop .ac-search { display: none; }
	.ac-shop-soon { font-size: 11px; padding: 6px 10px; }
.ac-head-account { font-size: 11px; padding: 6px 10px; }
}

/* ---- Drawer (slide-over) ---- */
.ac-drawer { position: fixed; inset: 0; z-index: 70; visibility: hidden; opacity: 0; transition: opacity .2s ease; }
.ac-drawer.ac-open { visibility: visible; opacity: 1; }
.ac-drawer-overlay { position: absolute; inset: 0; background: rgba(35,32,26,0.5); backdrop-filter: blur(2px); }
.ac-drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: 284px; max-width: 85vw; background: #F5EFE3; padding: calc(22px + env(safe-area-inset-top,0px)) 22px 26px; box-shadow: -14px 0 40px rgba(0,0,0,0.2); transform: translateX(100%); transition: transform .26s ease; overflow-y: auto; }
.ac-drawer.ac-open .ac-drawer-panel { transform: none; }
.ac-drawer-head { display: flex; align-items: center; gap: 9px; margin-bottom: 24px; }
.ac-drawer-name { font-weight: 800; font-size: 17px; color: var(--ac-ink); }
.ac-drawer-close { margin-right: auto; font-size: 24px; line-height: 1; color: #9A8F7C; background: none; border: 0; cursor: pointer; padding: 0; }
.ac-drawer-link { display: block; padding: 13px 12px; border-radius: 11px; font-size: 16px; font-weight: 700; color: var(--ac-ink); text-decoration: none; }
.ac-drawer-link:hover { background: rgba(181,98,60,0.06); }
.ac-drawer-div { height: 1px; background: #E4DAC8; margin: 8px 0; }
.ac-drawer-label { font-size: 12px; color: #A99B84; font-weight: 700; padding: 6px 12px; }
.ac-drawer-cat { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 11px; text-decoration: none; }
.ac-drawer-cat:hover { background: rgba(181,98,60,0.06); }
.ac-drawer-cat-ic { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0; }
.ac-drawer-cat-name { font-size: 15.5px; font-weight: 600; color: #4A443A; }
.ac-drawer-shop { display: block; text-decoration: none; margin-top: 18px; background: #F1E1D3; border: 1px dashed #D8A688; border-radius: 12px; padding: 14px; text-align: center; font-size: 13px; font-weight: 700; color: var(--ac-terra); }

/* ---- Footer toggle ---- */
.ac-foot-mobile { display: none; }
.ac-bottomnav { display: none; }

/* ---- Mobile switch ---- */
@media (max-width: 760px) {
	.ac-head-desktop { display: none; }
	.ac-head-mobile { display: flex; align-items: center; gap: 10px; padding: calc(10px + env(safe-area-inset-top,0px)) 16px 10px; }
	.ac-burger { width: 40px; height: 40px; border-radius: 11px; background: #EFE7D6; border: 1px solid #E0D5C1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; flex-shrink: 0; padding: 0; }
	.ac-burger span { width: 17px; height: 2px; background: #5A5348; border-radius: 2px; }
	.ac-mbrand { display: flex; align-items: center; gap: 9px; text-decoration: none; min-width: 0; }
	.ac-mbrand-name { font-weight: 800; font-size: 17px; color: var(--ac-ink); display: block; }
	.ac-mbrand-sub { font-size: 10px; color: #9A8F7C; font-weight: 500; display: block; }
	.ac-msearch { margin-right: auto; width: 40px; height: 40px; border-radius: 11px; background: #EFE7D6; border: 1px solid #E0D5C1; display: flex; align-items: center; justify-content: center; color: #7A7161; font-size: 18px; text-decoration: none; flex-shrink: 0; }

	.ac-foot-desktop { display: none; }
	.ac-foot-mobile { display: block; padding: 26px 18px 20px; }
	.ac-fm-brand { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
	.ac-fm-mark { width: 34px; height: 34px; border-radius: 9px; background: var(--ac-terra); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 17px; }
	.ac-fm-name { font-weight: 800; font-size: 16px; color: #F5EFE3; }
	.ac-fm-about { font-size: 12.5px; line-height: 1.9; color: #A79D8B; margin-bottom: 18px; }
	.ac-fm-cats { display: flex; flex-wrap: wrap; gap: 8px; }
	.ac-fm-cats a { font-size: 12px; color: #A79D8B; text-decoration: none; background: #3A352D; padding: 6px 12px; border-radius: 999px; }
	.ac-fm-copy { border-top: 1px solid #3E3830; margin-top: 18px; padding-top: 14px; font-size: 11px; color: #7E7565; text-align: center; }

	body { padding-bottom: calc(64px + env(safe-area-inset-bottom,0px)); }

	.ac-bottomnav { position: fixed; bottom: 0; left: 0; right: 0; background: rgba(245,239,227,0.96); backdrop-filter: blur(10px); border-top: 1px solid #E4DAC8; display: flex; padding: 8px 10px calc(10px + env(safe-area-inset-bottom,0px)); z-index: 45; transform: translateY(140%); transition: transform 0.32s ease; }
	.ac-bottomnav.ac-bn-show { transform: translateY(0); }
	.ac-bn-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px; text-decoration: none; }
	.ac-bn-ic { font-size: 20px; opacity: 0.55; line-height: 1; }
	.ac-bn-lbl { font-size: 10.5px; font-weight: 700; color: #9A8F7C; }
	.ac-bn-item.ac-active .ac-bn-ic { opacity: 1; }
	.ac-bn-item.ac-active .ac-bn-lbl { color: var(--ac-terra); }
}

/* ---- Compact comments ---- */
.ac-comments { max-width: 640px; margin: 34px auto 54px; padding: 0 24px; }
.ac-comments .ac-ctitle { font-size: 16px; font-weight: 800; color: var(--ac-ink); margin: 0 0 14px; }
.ac-comments .ac-ctitle-form { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--ac-border2); }
.ac-clist { list-style: none; display: flex; flex-direction: column; gap: 12px; margin: 0 0 8px; padding: 0; }
.ac-clist .comment-body { background: var(--ac-card); border: 1px solid var(--ac-border); border-radius: 12px; padding: 13px 15px; }
.ac-clist .comment-author { display: flex; align-items: center; gap: 8px; }
.ac-clist .comment-author .avatar { width: 30px; height: 30px; border-radius: 50%; }
.ac-clist .fn { font-size: 13px; font-weight: 700; color: var(--ac-ink); font-style: normal; }
.ac-clist .says { display: none; }
.ac-clist .comment-metadata { font-size: 10.5px; color: var(--ac-muted3); margin: 2px 0 0; }
.ac-clist .comment-metadata a { color: var(--ac-muted3); text-decoration: none; }
.ac-clist .comment-content p { font-size: 13px; line-height: 1.8; color: #4A443A; margin: 7px 0 0; }
.ac-clist .reply { margin-top: 7px; }
.ac-clist .reply a { font-size: 11.5px; font-weight: 700; color: var(--ac-terra); text-decoration: none; }
.ac-clist .children { list-style: none; margin: 12px 0 0; padding-inline-start: 16px; display: flex; flex-direction: column; gap: 12px; }

.ac-cform { display: flex; flex-wrap: wrap; gap: 9px; }
.ac-cform .ac-cfield { margin: 0; width: 100%; }
.ac-cform .ac-chalf { width: calc(50% - 5px); }
.ac-cform textarea,
.ac-cform input[type=text],
.ac-cform input[type=email] { width: 100%; background: var(--ac-card); border: 1px solid var(--ac-border2); border-radius: 10px; padding: 10px 13px; font-family: inherit; font-size: 13.5px; color: var(--ac-ink); outline: none; box-sizing: border-box; }
.ac-cform textarea { resize: vertical; min-height: 70px; }
.ac-cform textarea::placeholder,
.ac-cform input::placeholder { color: var(--ac-muted3); }
.ac-cform .form-submit { width: 100%; margin: 2px 0 0; }
.ac-cform .ac-csubmit,
.ac-cform input[type=submit] { background: var(--ac-terra); color: #fff; border: 0; font-weight: 700; font-size: 13.5px; padding: 10px 22px; border-radius: 10px; cursor: pointer; font-family: inherit; }
.ac-cform .comment-form-cookies-consent { display: none; }
.ac-cform .logged-in-as { font-size: 12px; color: var(--ac-muted); margin: 0 0 4px; }
.ac-cform .logged-in-as a { color: var(--ac-terra); text-decoration: none; }
@media (max-width: 760px) {
	.ac-cform .ac-chalf { width: 100%; }
}

/* ---- 404 ---- */
.ac-404 { max-width: 640px; margin: 0 auto; padding: 70px 24px 96px; text-align: center; }
.ac-404-badge { font-size: 64px; font-weight: 900; color: var(--ac-terra); letter-spacing: 2px; line-height: 1; margin-bottom: 8px; }
.ac-404-title { font-size: 28px; font-weight: 900; color: var(--ac-ink); margin: 0 0 12px; }
.ac-404-lead { font-size: 15.5px; line-height: 2; color: #6B6355; max-width: 460px; margin: 0 auto 26px; }
.ac-404-search { display: flex; gap: 9px; max-width: 420px; margin: 0 auto 30px; }
.ac-404-search input { flex: 1; background: var(--ac-card); border: 1px solid var(--ac-border2); border-radius: 12px; padding: 13px 15px; font-family: inherit; font-size: 14px; color: var(--ac-ink); outline: none; }
.ac-404-search input::placeholder { color: var(--ac-muted3); }
.ac-404-search button { background: var(--ac-terra); color: #fff; border: 0; font-weight: 700; padding: 13px 22px; border-radius: 12px; cursor: pointer; font-family: inherit; }
.ac-404-label { font-size: 13px; color: var(--ac-muted); margin-bottom: 14px; }
.ac-404-cats { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 30px; }
.ac-404-cat { display: inline-flex; align-items: center; gap: 8px; background: var(--ac-card); border: 1px solid var(--ac-border); border-radius: 999px; padding: 7px 15px 7px 7px; font-size: 14px; font-weight: 600; color: #4A443A; text-decoration: none; transition: border-color .15s; }
.ac-404-cat:hover { border-color: var(--ac-terra); }
.ac-404-cat-ic { width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.ac-404-home { display: inline-block; }
@media (max-width: 760px) {
	.ac-404 { padding: 50px 18px 80px; }
	.ac-404-search { flex-direction: column; }
}

/* ==================================================================
   WOOCOMMERCE — styled to match ArtaCraft
   ================================================================== */
.ac-shop { padding: 28px 0 72px; }
.woocommerce-products-header__title, .ac-shop h1.entry-title { font-size: 30px; font-weight: 900; color: var(--ac-ink); margin: 0 0 4px; }
.woocommerce-products-header { margin-bottom: 8px; }

/* Advanced category filter */
.ac-shopfilter { background: var(--ac-card); border: 1px solid var(--ac-border); border-radius: 18px; padding: 18px 20px; margin-bottom: 26px; }
.ac-shopfilter-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--ac-border2); }
.ac-shopfilter-title { font-size: 15px; font-weight: 800; color: var(--ac-ink); }
.ac-ff-all { font-size: 13px; font-weight: 700; color: var(--ac-terra); text-decoration: none; background: var(--ac-badge); padding: 6px 14px; border-radius: 999px; }
.ac-ff-all.ac-active { background: var(--ac-terra); color: #fff; }
.ac-shopfilter-groups { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ac-fgroup-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; font-weight: 800; color: var(--ac-ink); text-decoration: none; padding: 8px 10px; border-radius: 10px; background: var(--ac-cream); }
.ac-fgroup-head:hover, .ac-fgroup-head.ac-active { color: var(--ac-terra); }
.ac-fcount { font-size: 11px; font-weight: 700; color: var(--ac-muted3); background: #fff; border: 1px solid var(--ac-border2); border-radius: 999px; padding: 1px 8px; }
.ac-fsubs { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; padding-right: 6px; }
.ac-fsub { font-size: 12.5px; color: #6B6355; text-decoration: none; padding: 5px 8px; border-radius: 8px; }
.ac-fsub:hover, .ac-fsub.ac-active { background: var(--ac-badge); color: var(--ac-terra); font-weight: 700; }

/* Result count + ordering */
.woocommerce .woocommerce-result-count { font-size: 13px; color: var(--ac-muted); margin: 0 0 16px; }
.woocommerce .woocommerce-ordering select, .ac-shop select.orderby { font-family: inherit; font-size: 13px; padding: 9px 12px; border: 1px solid var(--ac-border2); border-radius: 10px; background: var(--ac-card); color: var(--ac-ink); }

/* Product grid */
.woocommerce ul.products, .woocommerce-page ul.products { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; }
.woocommerce ul.products::before, .woocommerce ul.products::after { content: none !important; display: none !important; }
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; background: var(--ac-card); border: 1px solid var(--ac-border); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; text-align: right; transition: box-shadow .2s, transform .2s; }
.woocommerce ul.products li.product:hover { box-shadow: 0 14px 34px rgba(0,0,0,0.08); transform: translateY(-3px); }
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link { display: flex; flex-direction: column; }
.woocommerce ul.products li.product a img { width: 100%; height: 200px; object-fit: cover; margin: 0 0 4px; border-radius: 0; background: var(--ac-stripe); }
.woocommerce ul.products li.product img.woocommerce-placeholder { object-fit: contain; padding: 34px; opacity: .3; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 15px; font-weight: 700; color: var(--ac-ink); padding: 12px 16px 4px; line-height: 1.6; }
.woocommerce ul.products li.product .price { padding: 0 16px 12px; color: var(--ac-terra) !important; font-weight: 800; font-size: 15px; }
.woocommerce ul.products li.product .price del { color: var(--ac-muted3); font-weight: 500; font-size: 13px; }
.woocommerce ul.products li.product .button, .woocommerce ul.products li.product .added_to_cart { margin: auto 16px 16px !important; text-align: center; display: block; }

/* Buttons */
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit,
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt,
.woocommerce a.added_to_cart {
	background-color: var(--ac-terra) !important; color: #fff !important; border: 0; border-radius: 11px; font-family: inherit; font-weight: 700; font-size: 14px; padding: 11px 20px; cursor: pointer; transition: background-color .15s; line-height: 1.4; text-shadow: none; text-decoration: none; }
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce a.added_to_cart:hover { background-color: #9d5231 !important; }
.woocommerce a.button.added { background-color: var(--ac-badge) !important; color: var(--ac-terra) !important; }
.woocommerce ul.products li.product .button.added { margin-bottom: 0 !important; }
.woocommerce ul.products li.product .added_to_cart { margin: 8px 16px 16px !important; }

/* Single product */
.woocommerce div.product { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.woocommerce div.product .woocommerce-product-gallery { margin: 0; float: none; width: auto; }
.woocommerce div.product .woocommerce-product-gallery__wrapper img { border-radius: 16px; background: var(--ac-stripe); }
.woocommerce div.product .summary { margin: 0; float: none; width: auto; }
.woocommerce div.product .product_title { font-size: 26px; font-weight: 900; color: var(--ac-ink); margin-bottom: 12px; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--ac-terra) !important; font-weight: 800; font-size: 22px; margin-bottom: 16px; }
.woocommerce div.product .woocommerce-product-details__short-description { font-size: 14px; line-height: 1.9; color: #4A443A; margin-bottom: 20px; }
.woocommerce div.product form.cart { display: flex; gap: 10px; align-items: center; margin-bottom: 24px; }
.woocommerce .quantity .qty { width: 72px; padding: 11px 8px; border: 1px solid var(--ac-border2); border-radius: 10px; font-family: inherit; text-align: center; background: var(--ac-card); }
.woocommerce div.product .product_meta { font-size: 12.5px; color: var(--ac-muted); border-top: 1px solid var(--ac-border2); padding-top: 16px; margin-top: 8px; }
.woocommerce div.product .product_meta a { color: var(--ac-terra); text-decoration: none; }

/* Tabs */
.woocommerce div.product .woocommerce-tabs { grid-column: 1 / -1; margin-top: 20px; }
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0; margin: 0 0 18px; border-bottom: 1px solid var(--ac-border2); display: flex; gap: 6px; }
.woocommerce div.product .woocommerce-tabs ul.tabs::before { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { background: transparent; border: 0; border-radius: 10px 10px 0 0; margin: 0; padding: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { font-family: inherit; font-weight: 700; font-size: 14px; color: var(--ac-muted); padding: 10px 16px; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { background: var(--ac-card); border: 1px solid var(--ac-border2); border-bottom-color: var(--ac-card); }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--ac-terra); }
.woocommerce div.product .woocommerce-tabs .panel { font-size: 14px; line-height: 1.9; color: #4A443A; }
.woocommerce div.product .woocommerce-tabs .panel h2 { font-size: 18px; font-weight: 800; color: var(--ac-ink); }

/* Related / upsells */
.woocommerce .related.products, .woocommerce .upsells.products { grid-column: 1 / -1; margin-top: 26px; }
.woocommerce .related.products > h2, .woocommerce .upsells.products > h2 { font-size: 20px; font-weight: 800; color: var(--ac-ink); margin-bottom: 18px; }

/* Cart & tables */
.woocommerce table.shop_table { border: 1px solid var(--ac-border); border-radius: 14px; border-collapse: separate; border-spacing: 0; overflow: hidden; background: var(--ac-card); }
.woocommerce table.shop_table th { background: var(--ac-cream); font-weight: 800; font-size: 13px; color: var(--ac-ink); padding: 14px; }
.woocommerce table.shop_table td { padding: 14px; border-top: 1px solid var(--ac-border2); font-size: 13.5px; }
.woocommerce .cart_totals h2, .woocommerce-cart .cart_totals h2 { font-size: 18px; font-weight: 800; margin-bottom: 14px; color: var(--ac-ink); }
.woocommerce a.remove { color: var(--ac-terra) !important; border-color: var(--ac-terra); }
.woocommerce #coupon_code { padding: 11px 12px; border: 1px solid var(--ac-border2); border-radius: 10px; }

/* Checkout / forms */
.woocommerce form .form-row label, .woocommerce-checkout label, .woocommerce form.checkout label { font-size: 13px; font-weight: 700; color: var(--ac-ink); margin-bottom: 5px; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce-checkout input.input-text, .woocommerce-checkout textarea, .woocommerce-checkout select, .woocommerce .select2-container--default .select2-selection--single {
	border: 1px solid var(--ac-border2) !important; border-radius: 10px !important; padding: 11px 13px !important; font-family: inherit !important; font-size: 14px; background: var(--ac-card); color: var(--ac-ink); height: auto !important; }
.woocommerce #order_review, .woocommerce-checkout #payment { background: var(--ac-card); border: 1px solid var(--ac-border); border-radius: 14px; }
.woocommerce-checkout #payment { padding: 6px 20px 20px; }
.woocommerce-checkout #payment ul.payment_methods { border: 0; }
.woocommerce #payment #place_order, .woocommerce-checkout button#place_order { width: 100%; padding: 14px; font-size: 15px; }
h3#order_review_heading { font-size: 18px; font-weight: 800; margin: 20px 0 12px; color: var(--ac-ink); }

/* Notices */
.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-noreviews {
	border-top: 0; border-radius: 12px; font-size: 13.5px; padding: 14px 44px 14px 18px; background: var(--ac-card); border: 1px solid var(--ac-border); color: var(--ac-ink); list-style: none; }
.woocommerce-message { border-right: 3px solid #7a8a6f; }
.woocommerce-info { border-right: 3px solid var(--ac-terra); }
.woocommerce-error { border-right: 3px solid #C0553C; }
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before { color: var(--ac-terra); right: 1.2em; left: auto; }

/* Contact Form 7 */
.wpcf7-form p { margin: 0 0 14px; }
.wpcf7-form label { display: block; font-size: 13px; font-weight: 700; color: var(--ac-ink); margin-bottom: 6px; }
.wpcf7-form input[type=text], .wpcf7-form input[type=email], .wpcf7-form input[type=tel], .wpcf7-form input[type=url], .wpcf7-form textarea, .wpcf7-form select {
	width: 100%; border: 1px solid var(--ac-border2); border-radius: 10px; padding: 12px 14px; font-family: inherit; font-size: 14px; background: var(--ac-card); color: var(--ac-ink); outline: none; box-sizing: border-box; }
.wpcf7-form textarea { min-height: 130px; resize: vertical; }
.wpcf7-form input:focus, .wpcf7-form textarea:focus { border-color: var(--ac-terra); }
.wpcf7-form .wpcf7-submit { background: var(--ac-terra); color: #fff; border: 0; border-radius: 11px; font-family: inherit; font-weight: 700; font-size: 14.5px; padding: 12px 30px; cursor: pointer; width: auto; }
.wpcf7-form .wpcf7-submit:hover { background: #9d5231; }

/* WooCommerce responsive */
@media (max-width: 1024px) {
	.ac-shopfilter-groups { grid-template-columns: repeat(2, 1fr); }
	.woocommerce div.product { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 760px) {
	.ac-shop { padding: 20px 0 60px; }
	.woocommerce ul.products, .woocommerce-page ul.products { grid-template-columns: repeat(2, 1fr); gap: 12px; }
	.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 13px; padding: 10px 12px 2px; }
	.woocommerce ul.products li.product .price { padding: 0 12px 10px; font-size: 13.5px; }
	.woocommerce ul.products li.product a img { height: 150px; }
	.woocommerce ul.products li.product .button { margin: auto 12px 12px !important; padding: 9px 10px; font-size: 12.5px; }
.woocommerce ul.products li.product .added_to_cart { margin: 6px 12px 12px !important; padding: 9px 10px; font-size: 12.5px; }
	.ac-shopfilter-groups { grid-template-columns: 1fr 1fr; }
	.woocommerce div.product form.cart { flex-wrap: wrap; }
}

/* ==================================================================
   SINGLE PRODUCT — dedicated design
   ================================================================== */
.woocommerce div.product { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 40px; align-items: start; }
.woocommerce .woocommerce-breadcrumb { grid-column: 1 / -1; font-size: 12.5px; color: var(--ac-muted); margin-bottom: 20px; }
.woocommerce .woocommerce-breadcrumb a { color: var(--ac-terra); text-decoration: none; }

/* Gallery */
.woocommerce div.product .woocommerce-product-gallery { position: sticky; top: 90px; float: none; width: auto; margin: 0; background: var(--ac-card); border: 1px solid var(--ac-border); border-radius: 20px; padding: 14px; box-shadow: 0 10px 30px rgba(0,0,0,0.04); }
.woocommerce div.product .woocommerce-product-gallery__wrapper { margin: 0; border-radius: 14px; overflow: hidden; }
.woocommerce div.product .woocommerce-product-gallery__image a { display: block; }
.woocommerce div.product .woocommerce-product-gallery__wrapper img,
.woocommerce div.product .woocommerce-product-gallery img.wp-post-image { width: 100% !important; aspect-ratio: 1 / 1; height: auto !important; object-fit: cover; border-radius: 14px; border: 0; background: var(--ac-stripe); display: block; }
.woocommerce div.product .woocommerce-product-gallery .flex-control-thumbs { margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.woocommerce div.product .woocommerce-product-gallery .flex-control-thumbs li { flex: 0 0 auto; width: calc((100% - 30px) / 4); max-width: 90px; margin: 0; }
.woocommerce div.product .woocommerce-product-gallery .flex-control-thumbs img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 10px; border: 1px solid var(--ac-border2); cursor: pointer; opacity: .65; transition: opacity .15s, border-color .15s; }
.woocommerce div.product .woocommerce-product-gallery .flex-control-thumbs img:hover,
.woocommerce div.product .woocommerce-product-gallery .flex-control-thumbs img.flex-active { opacity: 1; border-color: var(--ac-terra); }
.woocommerce span.onsale { background: var(--ac-terra); color: #fff; border-radius: 999px; font-weight: 700; font-size: 12px; min-height: auto; min-width: auto; padding: 5px 12px; top: 12px; right: 12px; left: auto; margin: 0; line-height: 1.5; }

/* Summary card */
.woocommerce div.product .summary.entry-summary { background: var(--ac-card); border: 1px solid var(--ac-border); border-radius: 20px; padding: 28px 28px 24px; box-shadow: 0 10px 30px rgba(0,0,0,0.04); float: none; width: auto; margin: 0; }
.ac-product-cat { display: inline-block; font-size: 12px; font-weight: 700; color: var(--ac-terra); background: var(--ac-badge); padding: 5px 13px; border-radius: 999px; text-decoration: none; margin-bottom: 12px; }
.woocommerce div.product .summary .product_title { font-size: 27px; font-weight: 900; color: var(--ac-ink); line-height: 1.5; margin: 0 0 12px; }
.woocommerce div.product .woocommerce-product-rating { margin-bottom: 14px; font-size: 13px; }
.woocommerce div.product .woocommerce-product-rating .star-rating span::before { color: var(--ac-terra); }
.woocommerce div.product .summary p.price, .woocommerce div.product .summary span.price { color: var(--ac-terra) !important; font-weight: 900; font-size: 26px; margin: 0 0 18px; display: block; }
.woocommerce div.product .woocommerce-product-details__short-description { font-size: 14px; line-height: 1.95; color: #4A443A; margin-bottom: 22px; padding-bottom: 22px; border-bottom: 1px solid var(--ac-border2); }
.woocommerce div.product form.cart { display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap; margin: 0 0 22px; }
.woocommerce .quantity .qty { width: 70px; height: 48px; padding: 0 8px; border: 1px solid var(--ac-border2); border-radius: 12px; font-family: inherit; font-size: 15px; text-align: center; background: var(--ac-cream); color: var(--ac-ink); }
.woocommerce div.product form.cart .single_add_to_cart_button { flex: 0 1 auto; min-width: 200px; height: 48px; border-radius: 12px; font-size: 15px; font-weight: 800; padding: 0 36px; }

/* Variations */
.woocommerce div.product form.cart .variations { width: 100%; margin-bottom: 10px; }
.woocommerce div.product form.cart .variations td, .woocommerce div.product form.cart .variations th { display: block; text-align: right; padding: 0 0 8px; border: 0; }
.woocommerce div.product form.cart .variations label { font-weight: 700; font-size: 13.5px; color: var(--ac-ink); margin-bottom: 6px; }
.woocommerce div.product form.cart .variations select { width: 100%; padding: 12px 13px; border: 1px solid var(--ac-border2); border-radius: 10px; font-family: inherit; font-size: 14px; background: var(--ac-cream); color: var(--ac-ink); }
.woocommerce div.product .woocommerce-variation-add-to-cart { display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap; width: 100%; }
.woocommerce div.product .reset_variations { display: inline-block; margin: 4px 0 10px; font-size: 12.5px; font-weight: 700; color: var(--ac-terra); }
.woocommerce div.product .single_variation .price { color: var(--ac-terra) !important; font-weight: 900; font-size: 22px; margin-bottom: 12px; display: block; }
.woocommerce div.product .woocommerce-variation-availability { margin-bottom: 8px; font-size: 13px; color: var(--ac-muted); }

/* Trust strip */
.ac-ptrust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 20px; }
.ac-ptrust-item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; background: var(--ac-cream); border: 1px solid var(--ac-border2); border-radius: 12px; padding: 13px 8px; }
.ac-ptrust-ic { font-size: 21px; line-height: 1; }
.ac-ptrust-tx { display: flex; flex-direction: column; align-items: center; line-height: 1.35; }
.ac-ptrust-tx b { font-size: 12.5px; font-weight: 800; color: var(--ac-ink); }
.ac-ptrust-tx small { font-size: 10.5px; color: var(--ac-muted); }

/* Meta */
.woocommerce div.product .product_meta { font-size: 12.5px; color: var(--ac-muted); border-top: 1px solid var(--ac-border2); padding-top: 16px; margin: 0; }
.woocommerce div.product .product_meta > span { display: block; margin-bottom: 5px; }
.woocommerce div.product .product_meta a { color: var(--ac-terra); text-decoration: none; }

/* Tabs (full width) */
.woocommerce div.product .woocommerce-tabs { grid-column: 1 / -1; margin-top: 44px; background: var(--ac-card); border: 1px solid var(--ac-border); border-radius: 20px; padding: 26px 30px; }
.woocommerce div.product .woocommerce-tabs ul.tabs { border-bottom: 1px solid var(--ac-border2); display: flex; gap: 4px; margin: 0 0 20px; padding: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs::before { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { background: none; border: 0; margin: 0; padding: 0; bottom: -1px; }
.woocommerce div.product .woocommerce-tabs ul.tabs li::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { color: var(--ac-muted); font-weight: 700; font-size: 14px; padding: 10px 18px; display: block; border-bottom: 2px solid transparent; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--ac-terra); border-bottom-color: var(--ac-terra); }
.woocommerce div.product .woocommerce-tabs .panel { font-size: 14.5px; line-height: 2; color: #4A443A; margin: 0; }
.woocommerce div.product .woocommerce-tabs .panel > h2:first-child { font-size: 19px; font-weight: 800; color: var(--ac-ink); margin-bottom: 12px; }

/* Attributes / features table */
.woocommerce .woocommerce-product-attributes { border: 1px solid var(--ac-border2); border-radius: 12px; overflow: hidden; border-collapse: separate; border-spacing: 0; width: 100%; }
.woocommerce .woocommerce-product-attributes th, .woocommerce .woocommerce-product-attributes td { padding: 12px 16px; font-size: 13.5px; border-top: 1px solid var(--ac-border2); text-align: right; }
.woocommerce .woocommerce-product-attributes tr:first-child th, .woocommerce .woocommerce-product-attributes tr:first-child td { border-top: 0; }
.woocommerce .woocommerce-product-attributes th { background: var(--ac-cream); font-weight: 800; color: var(--ac-ink); width: 34%; }
.woocommerce .woocommerce-product-attributes td { color: #4A443A; }
.woocommerce .woocommerce-product-attributes td p { margin: 0; }

/* Related (single) */
.woocommerce .related.products { grid-column: 1 / -1; margin-top: 44px; }
.woocommerce .related.products > h2 { font-size: 21px; font-weight: 800; color: var(--ac-ink); margin-bottom: 20px; }

@media (max-width: 980px) {
	.woocommerce div.product { display: block; }
	.woocommerce div.product .woocommerce-product-gallery { position: static !important; float: none !important; width: 100% !important; margin: 0 0 22px !important; }
	.woocommerce div.product .summary.entry-summary { float: none !important; width: 100% !important; margin: 0; padding: 22px; }
	.woocommerce div.product .woocommerce-tabs, .woocommerce div.product .related.products, .woocommerce div.product .upsells.products { margin-top: 26px; }
}
@media (max-width: 760px) {
	.ac-ptrust { grid-template-columns: repeat(3, 1fr); gap: 8px; }
	.ac-ptrust-item { flex-direction: column; text-align: center; gap: 5px; padding: 10px 6px; }
	.ac-ptrust-tx { align-items: center; }
	.ac-ptrust-ic { font-size: 18px; }
	.ac-ptrust-tx b { font-size: 11px; }
	.ac-ptrust-tx small { font-size: 9px; }
	.woocommerce div.product .summary .product_title { font-size: 22px; }
	.woocommerce div.product .summary p.price, .woocommerce div.product .summary span.price { font-size: 22px; }
	.woocommerce div.product .woocommerce-tabs { padding: 20px 18px; }
	.woocommerce div.product .woocommerce-tabs ul.tabs { overflow-x: auto; white-space: nowrap; }
}

/* ==================================================================
   SEARCH results page
   ================================================================== */
.ac-search-hero { max-width: 800px; margin: 0 auto; padding: 54px 24px 32px; text-align: center; }
.ac-search-hero h1 { font-size: 30px; font-weight: 900; color: var(--ac-ink); margin: 10px 0 22px; line-height: 1.5; }
.ac-search-hero h1 span { color: var(--ac-terra); }
.ac-search-big { display: flex; gap: 10px; max-width: 540px; margin: 0 auto; }
.ac-search-big input { flex: 1; background: var(--ac-card); border: 1px solid var(--ac-border2); border-radius: 14px; padding: 15px 18px; font-family: inherit; font-size: 15px; color: var(--ac-ink); outline: none; }
.ac-search-big input::placeholder { color: var(--ac-muted3); }
.ac-search-big input:focus { border-color: var(--ac-terra); }
.ac-search-big button { background: var(--ac-terra); color: #fff; border: 0; font-weight: 700; padding: 15px 28px; border-radius: 14px; cursor: pointer; font-family: inherit; font-size: 15px; white-space: nowrap; }
.ac-search-big button:hover { background: #9d5231; }
.ac-pcard .ac-card-body { display: flex; flex-direction: column; }
.ac-card-price { color: var(--ac-terra); font-weight: 800; font-size: 15px; margin-top: auto; padding-top: 6px; }
.ac-card-price del { color: var(--ac-muted3); font-weight: 500; font-size: 13px; }
.ac-search-empty { max-width: 620px; margin: 0 auto; padding: 24px 24px 90px; text-align: center; }
.ac-search-empty .ac-empty-ic { font-size: 52px; margin-bottom: 12px; }
.ac-search-empty h2 { font-size: 22px; font-weight: 800; color: var(--ac-ink); margin-bottom: 10px; }
.ac-search-empty p { font-size: 15px; line-height: 1.9; color: var(--ac-muted); margin-bottom: 24px; }
@media (max-width: 760px) {
	.ac-search-hero { padding: 36px 18px 24px; }
	.ac-search-hero h1 { font-size: 22px; }
	.ac-search-big { flex-direction: column; }
}

/* ---- Live search suggestions ---- */
.ac-search-wrap { position: relative; }
.ac-live { position: absolute; top: calc(100% + 8px); right: 0; left: 0; min-width: 300px; background: var(--ac-card); border: 1px solid var(--ac-border); border-radius: 14px; box-shadow: 0 18px 44px rgba(0,0,0,0.13); padding: 6px; z-index: 80; max-height: 400px; overflow-y: auto; }
.ac-live[hidden] { display: none; }
.ac-live-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 10px; text-decoration: none; }
.ac-live-item:hover { background: var(--ac-cream); }
.ac-live-title { font-size: 13.5px; font-weight: 600; color: var(--ac-ink); line-height: 1.55; }
.ac-live-type { font-size: 10.5px; font-weight: 700; color: var(--ac-terra); background: var(--ac-badge); padding: 2px 9px; border-radius: 999px; white-space: nowrap; flex-shrink: 0; }
.ac-live-empty { padding: 16px 12px; text-align: center; font-size: 13px; color: var(--ac-muted); }

/* ---- Mobile search overlay ---- */
.ac-msearch-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(35,32,26,0.5); backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: opacity .2s ease; }
.ac-msearch-overlay.ac-open { opacity: 1; visibility: visible; }
.ac-msearch-panel { background: var(--ac-cream); padding: calc(14px + env(safe-area-inset-top,0px)) 16px 18px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); transform: translateY(-16px); transition: transform .22s ease; }
.ac-msearch-overlay.ac-open .ac-msearch-panel { transform: none; }
.ac-msearch-form { display: flex; align-items: center; gap: 8px; background: var(--ac-card); border: 1px solid var(--ac-border2); border-radius: 14px; padding: 4px 12px; }
.ac-msearch-form .ac-search-ic { color: var(--ac-terra); font-size: 18px; }
.ac-msearch-form input { flex: 1; border: 0; background: transparent; outline: none; font-family: inherit; font-size: 16px; color: var(--ac-ink); padding: 13px 4px; }
.ac-msearch-close { background: none; border: 0; font-size: 26px; line-height: 1; color: var(--ac-muted); cursor: pointer; padding: 0 4px; }
.ac-live-mobile { position: static; box-shadow: none; border: 0; background: transparent; padding: 8px 0 0; max-height: 62vh; margin-top: 6px; min-width: 0; }
.ac-live-mobile .ac-live-item { background: var(--ac-card); border: 1px solid var(--ac-border2); margin-bottom: 8px; }
.ac-live-mobile .ac-live-item:hover { background: var(--ac-card); border-color: var(--ac-terra); }

/* Article level badge (single post byline) */
.ac-article-level { display: inline-block; color: #fff; font-size: 11px; font-weight: 700; padding: 3px 11px; border-radius: 999px; line-height: 1.7; }

/* ==================================================================
   SHOP toolbar, product search, pagination
   ================================================================== */
.woocommerce .woocommerce-breadcrumb { margin: 4px 0 16px; }
.ac-shop .woocommerce-products-header, .woocommerce-products-header { margin: 0 0 18px; padding: 0; }
.woocommerce-products-header__title, .ac-shop h1.page-title { font-size: 28px; font-weight: 900; color: var(--ac-ink); margin: 0; }

/* Product search bar */
.ac-prodsearch { display: flex; align-items: center; gap: 10px; background: var(--ac-card); border: 1px solid var(--ac-border); border-radius: 14px; padding: 6px 16px 6px 8px; margin: 0 0 18px; }
.ac-prodsearch-ic { color: var(--ac-terra); font-size: 18px; flex-shrink: 0; }
.ac-prodsearch input[type=search] { flex: 1; border: 0; background: transparent; outline: none; font-family: inherit; font-size: 14.5px; color: var(--ac-ink); padding: 10px 0; min-width: 0; }
.ac-prodsearch input[type=search]::placeholder { color: var(--ac-muted3); }
.ac-prodsearch button { background: var(--ac-terra); color: #fff; border: 0; font-family: inherit; font-weight: 700; font-size: 14px; padding: 11px 24px; border-radius: 11px; cursor: pointer; flex-shrink: 0; }
.ac-prodsearch button:hover { background: #9d5231; }

/* Result count + ordering toolbar */
.ac-shopbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 22px; padding-bottom: 16px; border-bottom: 1px solid var(--ac-border2); }
.woocommerce .ac-shopbar .woocommerce-result-count { float: none; margin: 0; font-size: 13px; color: var(--ac-muted); }
.woocommerce .ac-shopbar .woocommerce-ordering { float: none; margin: 0; }
.woocommerce .ac-shopbar .woocommerce-ordering select { margin: 0; }

/* Pagination */
.woocommerce nav.woocommerce-pagination { margin-top: 38px; text-align: center; border: 0; }
.woocommerce nav.woocommerce-pagination ul { display: inline-flex; flex-wrap: wrap; gap: 8px; border: 0; margin: 0; padding: 0; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; margin: 0; overflow: visible; display: inline-flex; }
.woocommerce nav.woocommerce-pagination ul li a.page-numbers,
.woocommerce nav.woocommerce-pagination ul li span.page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 14px; background: var(--ac-card); border: 1px solid var(--ac-border); border-radius: 12px; color: var(--ac-ink); font-size: 14px; font-weight: 700; line-height: 1; }
.woocommerce nav.woocommerce-pagination ul li a.page-numbers:hover { border-color: var(--ac-terra); color: var(--ac-terra); background: var(--ac-card); }
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--ac-terra); border-color: var(--ac-terra); color: #fff; }

@media (max-width: 760px) {
	.woocommerce-products-header__title, .ac-shop h1.page-title { font-size: 22px; }
	.ac-prodsearch { padding: 6px 12px 6px 8px; }
	.ac-prodsearch button { padding: 10px 16px; font-size: 13px; }
	.ac-shopbar { gap: 8px; margin-bottom: 18px; }
	.woocommerce .ac-shopbar .woocommerce-result-count { font-size: 12px; }
	.woocommerce nav.woocommerce-pagination ul li a.page-numbers, .woocommerce nav.woocommerce-pagination ul li span.page-numbers { min-width: 38px; height: 38px; font-size: 13px; padding: 0 10px; }
}

/* Live product search results (shop) */
.ac-liveresults { margin: 0 0 10px; }
.ac-liveresults-msg { text-align: center; padding: 44px 20px; font-size: 14.5px; color: var(--ac-muted); background: var(--ac-card); border: 1px solid var(--ac-border); border-radius: 16px; }

/* ==================================================================
   SINGLE PRODUCT — custom design (uploaded sample)
   ================================================================== */
.woocommerce div.product.ac-pd { display: block; }
.ac-pd-main { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: stretch; margin-bottom: 6px; }

/* Gallery */
.ac-pd-gallery-col { padding-bottom: 16px; }
.woocommerce div.product.ac-pd .ac-pd-gallery-col .woocommerce-product-gallery { position: sticky; top: 94px; margin: 0; float: none !important; width: 100% !important; background: transparent; border: 0; padding: 0; box-shadow: none; }
.ac-pd-gallery-col .woocommerce-product-gallery__wrapper { border-radius: 22px; overflow: hidden; }
.woocommerce div.product.ac-pd .woocommerce-product-gallery .flex-viewport { height: min(520px, calc(100vh - 250px)) !important; border-radius: 22px; overflow: hidden; }
.woocommerce div.product.ac-pd .woocommerce-product-gallery__wrapper img,
.woocommerce div.product.ac-pd .woocommerce-product-gallery img.wp-post-image { width: 100% !important; height: min(520px, calc(100vh - 250px)) !important; aspect-ratio: auto; object-fit: cover; border-radius: 22px; border: 1px solid #DACFBB; background: var(--ac-stripe); display: block; }
.woocommerce div.product.ac-pd .woocommerce-product-gallery .flex-control-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 0; padding: 0; list-style: none; }
.woocommerce div.product.ac-pd .woocommerce-product-gallery .flex-control-thumbs li { width: 76px; margin: 0; }
.woocommerce div.product.ac-pd .woocommerce-product-gallery .flex-control-thumbs img { width: 76px; height: 76px; object-fit: cover; border-radius: 12px; border: 2px solid var(--ac-border2); cursor: pointer; opacity: .7; transition: opacity .15s, border-color .15s; }
.woocommerce div.product.ac-pd .woocommerce-product-gallery .flex-control-thumbs img:hover,
.woocommerce div.product.ac-pd .woocommerce-product-gallery .flex-control-thumbs img.flex-active { opacity: 1; border-color: var(--ac-terra); }
.woocommerce div.product.ac-pd span.onsale { background: var(--ac-terra); color: #fff; border-radius: 999px; font-weight: 700; font-size: 12.5px; padding: 6px 13px; top: 18px; right: 18px; left: auto; min-height: auto; min-width: auto; margin: 0; line-height: 1.5; }

/* Info column */
.woocommerce div.product.ac-pd .ac-pd-info.summary { background: transparent; border: 0; box-shadow: none; padding: 0; margin: 0; float: none; width: auto; }
.ac-pd-tags { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.ac-pd-cat { font-size: 12.5px; font-weight: 700; color: var(--ac-terra); background: var(--ac-badge); padding: 5px 12px; border-radius: 999px; text-decoration: none; }
.ac-pd-stock { font-size: 13px; font-weight: 700; }
.ac-pd-stock.is-in { color: #8FA07E; }
.ac-pd-stock.is-out { color: #C0553A; }
.woocommerce div.product.ac-pd .ac-pd-title { font-size: 33px; line-height: 1.45; font-weight: 900; color: var(--ac-ink); letter-spacing: -0.3px; margin: 0 0 12px; }
.ac-pd-rating { margin-bottom: 18px; }
.woocommerce div.product.ac-pd .ac-pd-rating .woocommerce-product-rating { margin: 0; font-size: 13.5px; }
.woocommerce div.product.ac-pd .ac-pd-rating .star-rating span::before { color: #D9A441; }
.woocommerce div.product.ac-pd .ac-pd-info .woocommerce-product-details__short-description { font-size: 15.5px; line-height: 2.05; color: #6B6355; margin-bottom: 24px; padding: 0; border: 0; }
.woocommerce div.product.ac-pd .ac-pd-info p.price, .woocommerce div.product.ac-pd .ac-pd-info span.price { color: var(--ac-ink) !important; font-weight: 900; font-size: 32px; margin: 0 0 24px; display: block; }
.woocommerce div.product.ac-pd .ac-pd-info .price del { color: #B7AC98; font-weight: 700; font-size: 18px; opacity: 1; }
.woocommerce div.product.ac-pd .ac-pd-info .price ins { text-decoration: none; }
.woocommerce div.product.ac-pd .ac-pd-info .woocommerce-Price-currencySymbol { font-size: 16px; font-weight: 700; color: #8A8071; }

/* Add to cart */
.woocommerce div.product.ac-pd form.cart { display: flex; align-items: stretch; gap: 14px; margin: 0 0 22px; flex-wrap: wrap; }
.woocommerce div.product.ac-pd .quantity .qty { width: 92px; height: 52px; border: 1.5px solid #E0D5C1; border-radius: 12px; background: var(--ac-card); font-size: 17px; font-weight: 800; text-align: center; color: var(--ac-ink); padding: 0 6px; }
.woocommerce div.product.ac-pd form.cart .single_add_to_cart_button { flex: 1; min-width: 200px; height: 52px; background: var(--ac-terra); color: #fff; font-weight: 800; font-size: 16.5px; border-radius: 12px; box-shadow: 0 6px 20px rgba(181,98,60,0.3); padding: 0 24px; }
.woocommerce div.product.ac-pd .woocommerce-variation-add-to-cart { display: flex; gap: 14px; align-items: stretch; flex-wrap: wrap; width: 100%; }

/* Perks */
.ac-pd-perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 4px 0 24px; }
.ac-pd-perk { background: var(--ac-card); border: 1px solid #EBE2D2; border-radius: 13px; padding: 14px 8px; text-align: center; }
.ac-pd-perk-ic { font-size: 22px; margin-bottom: 6px; line-height: 1; }
.ac-pd-perk-t { font-size: 11.5px; font-weight: 700; color: #4A443A; line-height: 1.6; }

/* Quick specs */
.ac-pd-qspecs { background: var(--ac-card); border: 1px solid var(--ac-border); border-radius: 16px; padding: 18px 22px; }
.ac-pd-qspecs-t { font-size: 14.5px; font-weight: 800; color: var(--ac-ink); margin-bottom: 6px; }
.ac-pd-qrow { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--ac-border2); }
.ac-pd-qrow:last-child { border-bottom: 0; }
.ac-pd-qk { font-size: 13.5px; color: #8A8071; font-weight: 600; }
.ac-pd-qv { font-size: 13.5px; color: var(--ac-ink); font-weight: 700; }

/* Related as 4 columns */
.woocommerce div.product.ac-pd .related.products ul.products { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 980px) {
	.ac-pd-main { grid-template-columns: 1fr; gap: 24px; }
	.ac-pd-gallery-col { padding-bottom: 0; }
	.ac-pd-gallery-col .woocommerce-product-gallery { position: static; }
	.woocommerce div.product.ac-pd .woocommerce-product-gallery .flex-viewport { height: auto !important; }
	.woocommerce div.product.ac-pd .woocommerce-product-gallery__wrapper img,
	.woocommerce div.product.ac-pd .woocommerce-product-gallery img.wp-post-image { height: auto !important; aspect-ratio: 1 / 1; }
	.woocommerce div.product.ac-pd .related.products ul.products { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
	.woocommerce div.product.ac-pd .ac-pd-title { font-size: 24px; }
	.woocommerce div.product.ac-pd .ac-pd-info p.price, .woocommerce div.product.ac-pd .ac-pd-info span.price { font-size: 26px; }
	.ac-pd-perks { gap: 8px; }
	.ac-pd-perk { padding: 12px 6px; }
}

/* Quantity stepper */
.woocommerce div.product.ac-pd .quantity.ac-qty { display: inline-flex; align-items: stretch; background: var(--ac-card); border: 1.5px solid #E0D5C1; border-radius: 12px; overflow: hidden; }
.woocommerce div.product.ac-pd .quantity.ac-qty .qty { width: 50px; height: 52px; border: 0; border-radius: 0; background: transparent; }
.ac-qtybtn { width: 44px; height: 52px; border: 0; background: transparent; font-size: 22px; font-weight: 700; color: #5A5348; cursor: pointer; line-height: 1; font-family: inherit; }
.ac-qtybtn:hover { color: var(--ac-terra); }

/* ==================================================================
   CART — custom design (item cards + order summary)
   ================================================================== */
/* Wide cart-page container (rendered by page.php cart branch) */
.ac-cartpage { max-width: 1200px; margin: 0 auto; padding: 30px 28px 60px; animation: acFade 0.4s ease both; }
.ac-cart-crumb { font-size: 13px; font-weight: 600; color: var(--ac-muted3); margin-bottom: 8px; }
.ac-cart-crumb a { color: inherit; text-decoration: none; }
.ac-cart-crumb a:hover { color: var(--ac-terra); }
.ac-crumb-sep { color: #C9BEA9; margin: 0 6px; }
.ac-crumb-cur { color: #5A5348; }
.ac-cart-titlebar { display: flex; align-items: baseline; gap: 12px; margin-bottom: 26px; }
.ac-cart-titlebar h1 { font-size: 32px; font-weight: 900; color: var(--ac-ink); letter-spacing: -0.3px; margin: 0; }
.ac-cart-count { font-size: 15px; font-weight: 600; color: var(--ac-muted); }

.ac-cart-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
.ac-cart-left { min-width: 0; }
.ac-cart-head { display: grid; grid-template-columns: minmax(0, 1fr) 130px 120px 44px; gap: 16px; padding: 0 22px; font-size: 12.5px; font-weight: 700; color: var(--ac-muted3); }
.ac-cart-head-q { text-align: center; }
.ac-cart-head-t { text-align: left; }
.ac-cart-list { display: flex; flex-direction: column; gap: 14px; margin: 12px 0 16px; }

.ac-citem { display: grid; grid-template-columns: minmax(0, 1fr) 130px 120px 44px; grid-template-areas: 'prod qty total remove'; gap: 16px; align-items: center; background: var(--ac-card); border: 1px solid var(--ac-border); border-radius: 18px; padding: 18px 22px; }
.ac-citem-prod { grid-area: prod; display: flex; align-items: center; gap: 16px; min-width: 0; }
.ac-citem-thumb { display: block; width: 86px; height: 86px; border-radius: 14px; overflow: hidden; flex-shrink: 0; background: var(--ac-stripe); border: 1px solid #DACFBB; }
.ac-citem-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ac-citem-body { min-width: 0; }
.ac-citem-name { font-size: 15.5px; font-weight: 700; color: var(--ac-ink); text-decoration: none; line-height: 1.55; display: block; margin-bottom: 5px; }
.ac-citem-name:hover { color: var(--ac-terra); }
.ac-citem-meta { font-size: 12.5px; color: var(--ac-muted); font-weight: 600; line-height: 1.7; }
.ac-citem-meta p, .ac-citem-meta dl, .ac-citem-meta dt, .ac-citem-meta dd { margin: 0; display: inline; }
.ac-citem-sku { font-size: 11.5px; color: var(--ac-muted3); font-weight: 600; margin-top: 3px; }
.ac-citem-qty { grid-area: qty; display: flex; justify-content: center; }
.ac-citem-total { grid-area: total; text-align: left; }
.ac-citem-line { font-size: 16px; font-weight: 800; color: var(--ac-ink); white-space: nowrap; }
.ac-citem-line .woocommerce-Price-currencySymbol { font-size: 11px; font-weight: 600; color: var(--ac-muted3); }
.ac-citem-per { font-size: 11.5px; color: var(--ac-muted3); font-weight: 600; margin-top: 3px; white-space: nowrap; }
.ac-citem-remove { grid-area: remove; display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; background: #F5EBE2; text-decoration: none; font-size: 16px; color: var(--ac-terra); justify-self: center; }
.ac-citem-remove:hover { background: #F6E4DE; }
.ac-cart-leftfoot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 0 4px; }
.ac-cart-continue { font-size: 14.5px; font-weight: 700; color: var(--ac-terra); text-decoration: none; }
.ac-cart-update { background: var(--ac-badge); color: var(--ac-terra); border: 0; font-family: inherit; font-weight: 700; font-size: 13px; padding: 10px 18px; border-radius: 10px; cursor: pointer; }

.ac-citem-qty .quantity { display: inline-flex; align-items: stretch; background: #FFF; border: 1.5px solid #E0D5C1; border-radius: 11px; overflow: hidden; }
.ac-citem-qty .quantity .qty { width: 36px; height: 42px; border: 0; background: transparent; text-align: center; font-family: inherit; font-size: 15px; font-weight: 800; color: var(--ac-ink); padding: 0; }
.ac-citem-qty .ac-qtybtn { width: 38px; height: 42px; font-size: 19px; }

.ac-cart-right { position: sticky; top: 94px; }
.ac-cart-sumcard { background: var(--ac-card); border: 1px solid var(--ac-border); border-radius: 20px; padding: 24px; box-shadow: 0 10px 30px rgba(0,0,0,0.04); }
.ac-cart-sumtitle { font-size: 18px; font-weight: 800; color: var(--ac-ink); margin: 0 0 20px; }
.ac-coupon { display: flex; gap: 8px; margin-bottom: 18px; }
.ac-coupon-field { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; background: #FFF; border: 1.5px solid #E0D5C1; border-radius: 11px; padding: 0 13px; }
.ac-coupon-ic { color: var(--ac-muted3); font-size: 15px; }
.ac-coupon-field input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-family: inherit; font-size: 14px; font-weight: 600; color: var(--ac-ink); padding: 12px 0; }
.ac-coupon-btn { background: var(--ac-ink); color: #fff; border: 0; font-family: inherit; font-weight: 700; font-size: 14px; padding: 0 18px; border-radius: 11px; cursor: pointer; white-space: nowrap; }

.ac-cart-totals .cart_totals > h2 { display: none; }
.woocommerce .ac-cart-totals table.shop_table { border: 0; background: transparent; border-radius: 0; margin: 0; }
.woocommerce .ac-cart-totals table.shop_table th, .woocommerce .ac-cart-totals table.shop_table td { padding: 13px 0; border: 0; border-bottom: 1px solid var(--ac-border2); font-size: 14.5px; background: transparent; }
.woocommerce .ac-cart-totals table.shop_table th { text-align: right; color: var(--ac-muted); font-weight: 600; }
.woocommerce .ac-cart-totals table.shop_table td { text-align: left; color: var(--ac-ink); font-weight: 700; }
.woocommerce .ac-cart-totals .cart-discount th, .woocommerce .ac-cart-totals .cart-discount td { color: #8FA07E; }
.woocommerce .ac-cart-totals .cart-discount td a { color: #8FA07E; }
.ac-cart-totals .woocommerce-shipping-destination { font-size: 11.5px; color: var(--ac-muted3); font-weight: 500; margin: 4px 0 0; }
.ac-cart-totals .woocommerce-shipping-calculator { font-size: 11.5px; margin: 2px 0 0; }
.ac-cart-totals ul#shipping_method { list-style: none; margin: 0; padding: 0; }
.woocommerce .ac-cart-totals .order-total th { font-size: 16px; font-weight: 800; color: var(--ac-ink); border-bottom: 0; }
.woocommerce .ac-cart-totals .order-total td { font-size: 22px; font-weight: 900; color: var(--ac-terra) !important; border-bottom: 0; }
.woocommerce .ac-cart-totals .order-total td .woocommerce-Price-currencySymbol { font-size: 13px; font-weight: 700; color: var(--ac-muted); }
.ac-cart-totals .wc-proceed-to-checkout { padding: 18px 0 0; }
.woocommerce .ac-cart-totals a.checkout-button.button { display: flex; align-items: center; justify-content: center; width: 100%; height: 54px; text-align: center; background: var(--ac-terra) !important; color: #fff !important; font-weight: 800; font-size: 16.5px; padding: 0; border-radius: 13px; box-shadow: 0 6px 20px rgba(181,98,60,0.3); }
.ac-secure-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; font-size: 12.5px; color: var(--ac-muted); font-weight: 600; }

.ac-ship-bar { margin-top: 20px; background: #F1E1D3; border-radius: 13px; padding: 14px 16px; }
.ac-ship-txt { font-size: 12.5px; font-weight: 700; color: #8A4A2C; line-height: 1.7; margin-bottom: 9px; }
.ac-ship-txt .woocommerce-Price-amount { color: #8A4A2C; }
.ac-ship-txt.ac-ship-done { color: #8A4A2C; }
.ac-ship-track { height: 7px; background: #E4C9B4; border-radius: 999px; overflow: hidden; }
.ac-ship-track span { display: block; height: 100%; background: var(--ac-terra); border-radius: 999px; transition: width .4s ease; }

.ac-cart-empty { max-width: 640px; margin: 0 auto; padding: 70px 30px; text-align: center; background: var(--ac-card); border: 1px solid var(--ac-border); border-radius: 22px; }
.ac-cart-empty-ic { width: 90px; height: 90px; border-radius: 50%; background: var(--ac-badge); display: flex; align-items: center; justify-content: center; font-size: 40px; margin: 0 auto 22px; }
.ac-cart-empty h2 { font-size: 22px; font-weight: 800; color: var(--ac-ink); margin-bottom: 10px; }
.ac-cart-empty p { font-size: 15px; line-height: 1.9; color: var(--ac-muted); margin-bottom: 26px; }

/* Mobile sticky checkout bar (hidden on desktop) */
.ac-cart-mbar { display: none; }

/* ==================================================================
   CHECKOUT — light theme styling (wide container)
   ================================================================== */
.woocommerce-checkout .ac-cartpage form.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 28px; align-items: start; }
.woocommerce-checkout .ac-cartpage #customer_details { min-width: 0; }
.woocommerce-checkout .ac-cartpage #customer_details .col-1, .woocommerce-checkout .ac-cartpage #customer_details .col-2 { float: none; width: 100%; }
.woocommerce-checkout .ac-cartpage #customer_details > div { background: var(--ac-card); border: 1px solid var(--ac-border); border-radius: 20px; padding: 24px; margin-bottom: 20px; }
.woocommerce-checkout .ac-cartpage h3 { font-size: 17px; font-weight: 800; color: var(--ac-ink); margin: 0 0 16px; }
.woocommerce-checkout .ac-cartpage .form-row input.input-text, .woocommerce-checkout .ac-cartpage .form-row textarea, .woocommerce-checkout .ac-cartpage .form-row select { box-sizing: border-box; background: #FFF; border: 1.5px solid #E0D5C1; border-radius: 11px; padding: 12px 13px; font-family: inherit; font-size: 14px; font-weight: 600; color: var(--ac-ink); outline: none; width: 100%; }
.woocommerce-checkout .ac-cartpage .form-row input.input-text:focus, .woocommerce-checkout .ac-cartpage .form-row textarea:focus { border-color: var(--ac-terra); }
.woocommerce-checkout .ac-cartpage .form-row label { font-size: 13px; font-weight: 700; color: #5A5348; margin-bottom: 5px; display: inline-block; }
.woocommerce-checkout .ac-cartpage #order_review_heading { display: none; }
.woocommerce-checkout .ac-cartpage #order_review { position: sticky; top: 94px; background: var(--ac-card); border: 1px solid var(--ac-border); border-radius: 20px; padding: 24px; box-shadow: 0 10px 30px rgba(0,0,0,0.04); }
.woocommerce-checkout .ac-cartpage table.shop_table { border: 0; background: transparent; margin: 0 0 10px; }
.woocommerce-checkout .ac-cartpage table.shop_table th, .woocommerce-checkout .ac-cartpage table.shop_table td { border: 0; border-bottom: 1px solid var(--ac-border2); padding: 12px 0; font-size: 14px; background: transparent; }
.woocommerce-checkout .ac-cartpage table.shop_table .order-total th { font-size: 16px; font-weight: 800; color: var(--ac-ink); border-bottom: 0; }
.woocommerce-checkout .ac-cartpage table.shop_table .order-total td { font-size: 21px; font-weight: 900; color: var(--ac-terra); border-bottom: 0; }
.woocommerce-checkout .ac-cartpage #place_order { display: flex; align-items: center; justify-content: center; width: 100%; height: 54px; background: var(--ac-terra); color: #fff; font-family: inherit; font-weight: 800; font-size: 16.5px; border: 0; border-radius: 13px; cursor: pointer; box-shadow: 0 6px 20px rgba(181,98,60,0.3); }
@media (max-width: 900px) {
	.woocommerce-checkout .ac-cartpage form.checkout { grid-template-columns: 1fr; }
	.woocommerce-checkout .ac-cartpage #order_review { position: static; }
}

@media (max-width: 900px) {
	.ac-cartpage { padding: 22px 16px 60px; }
	.ac-cart-titlebar h1 { font-size: 24px; }
	.ac-cart-grid { grid-template-columns: 1fr; gap: 20px; }
	.ac-cart-right { position: static; }
	.ac-cart-head { display: none; }
	.ac-citem { grid-template-columns: 1fr auto; grid-template-areas: 'prod remove' 'qty total'; gap: 12px; padding: 14px; }
	.ac-citem-prod { align-items: flex-start; gap: 13px; }
	.ac-citem-thumb { width: 76px; height: 76px; border-radius: 13px; }
	.ac-citem-name { font-size: 13.5px; margin-bottom: 4px; }
	.ac-citem-meta { font-size: 11px; }
	.ac-citem-qty { grid-area: qty; justify-content: flex-start; }
	.ac-citem-qty .quantity .qty { width: 28px; height: 36px; font-size: 14px; }
	.ac-citem-qty .ac-qtybtn { width: 32px; height: 36px; font-size: 17px; }
	.ac-citem-total { grid-area: total; align-self: center; }
	.ac-citem-line { font-size: 14.5px; }
	.ac-citem-remove { grid-area: remove; align-self: start; width: 30px; height: 30px; border-radius: 8px; font-size: 13px; }
}

@media (max-width: 768px) {
	body.woocommerce-cart .ac-bottomnav { display: none !important; }
	body.woocommerce-cart .ac-cartpage { padding-bottom: 160px; }
	body.woocommerce-cart .ac-cart-totals .wc-proceed-to-checkout,
	body.woocommerce-cart .ac-secure-note { display: none; }
	.ac-cart-mbar { display: block; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; background: rgba(245,239,227,0.97); backdrop-filter: blur(10px); border-top: 1px solid #E4DAC8; padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); }
	.ac-cart-mbar-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 11px; }
	.ac-cart-mbar-label { font-size: 14px; font-weight: 700; color: #5A5348; }
	.ac-cart-mbar-total { font-size: 21px; font-weight: 900; color: var(--ac-terra); }
	.ac-cart-mbar-total .woocommerce-Price-currencySymbol { font-size: 12px; font-weight: 700; color: var(--ac-muted); }
	.ac-cart-mbar-btn { display: flex; align-items: center; justify-content: center; gap: 8px; height: 50px; background: var(--ac-terra); color: #fff; font-weight: 800; font-size: 15.5px; border-radius: 13px; text-decoration: none; box-shadow: 0 6px 18px rgba(181,98,60,0.3); }
	.ac-cart-mbar-lock { font-size: 15px; }
}

/* ==================================================================
   MY ACCOUNT — theme design (sidebar + content cards)
   ================================================================== */
.logged-in .ac-accpage .woocommerce { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; align-items: start; direction: rtl; }
.logged-in .ac-accpage .woocommerce > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
.woocommerce-account .ac-accpage .ac-acc-side { grid-column: 1; float: none; width: auto; }
.woocommerce-account.logged-in .ac-accpage .woocommerce-MyAccount-content { grid-column: 2; float: none; width: auto; margin: 0; }
.woocommerce-account .ac-accpage .woocommerce-MyAccount-navigation { float: none; width: 100%; }
.ac-acc-side { position: sticky; top: 94px; background: var(--ac-card); border: 1px solid var(--ac-border); border-radius: 20px; padding: 18px; }
.ac-acc-user { display: flex; align-items: center; gap: 13px; padding: 8px 6px 18px; border-bottom: 1px solid var(--ac-border2); margin-bottom: 12px; }
.ac-acc-avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--ac-terra); color: #fff; font-size: 22px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 4px 12px rgba(181,98,60,0.28); }
.ac-acc-user-txt { min-width: 0; }
.ac-acc-name { font-size: 15px; font-weight: 800; color: var(--ac-ink); }
.ac-acc-email { font-size: 12px; color: var(--ac-muted3); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.woocommerce-MyAccount-navigation a { display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 11px; font-size: 14.5px; font-weight: 700; color: #5A5348; text-decoration: none; }
.woocommerce-MyAccount-navigation a:hover { background: #F3ECDD; }
.woocommerce-MyAccount-navigation li.is-active a { background: var(--ac-badge); color: var(--ac-terra); }
.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout a { color: #B0685A; }
.ac-acc-ic { width: 26px; text-align: center; font-size: 15px; flex-shrink: 0; }

.logged-in .ac-accpage .woocommerce-MyAccount-content { min-width: 0; background: var(--ac-card); border: 1px solid var(--ac-border); border-radius: 20px; padding: 28px; }
.ac-accpage .woocommerce-MyAccount-content > h2, .ac-accpage .woocommerce-MyAccount-content h3 { font-size: 18px; font-weight: 800; color: var(--ac-ink); margin: 0 0 16px; }
.ac-accpage .woocommerce-MyAccount-content p { font-size: 14.5px; line-height: 2.05; color: #4A443A; margin-bottom: 14px; }
.ac-accpage .woocommerce-MyAccount-content p a { color: var(--ac-terra); font-weight: 700; }
.ac-accpage .woocommerce-MyAccount-content .button,
.ac-accpage form.login .button, .ac-accpage form.register .button { display: inline-flex; align-items: center; justify-content: center; background: var(--ac-terra); color: #fff !important; border: 0; font-family: inherit; font-weight: 800; font-size: 14.5px; padding: 13px 24px; border-radius: 12px; cursor: pointer; box-shadow: 0 6px 18px rgba(181,98,60,0.25); text-decoration: none; }

/* orders table */
.ac-accpage table.woocommerce-orders-table { width: 100%; border: 0; border-collapse: collapse; margin: 0; background: transparent; }
.ac-accpage table.woocommerce-orders-table th, .ac-accpage table.woocommerce-orders-table td { border: 0; border-bottom: 1px solid var(--ac-border2); padding: 13px 10px; font-size: 13.5px; text-align: right; background: transparent; }
.ac-accpage table.woocommerce-orders-table th { color: var(--ac-muted3); font-weight: 700; font-size: 12.5px; }
.ac-accpage table.woocommerce-orders-table td { color: #4A443A; font-weight: 600; }
.ac-accpage .woocommerce-orders-table__cell-order-number a { color: var(--ac-terra); font-weight: 800; text-decoration: none; }
.ac-accpage table.woocommerce-orders-table .button { padding: 8px 16px; font-size: 13px; margin-left: 6px; }

/* forms (account details, addresses, login) */
.ac-accpage .form-row input.input-text, .ac-accpage .form-row textarea, .ac-accpage .form-row select { box-sizing: border-box; background: #FFF; border: 1.5px solid #E0D5C1; border-radius: 11px; padding: 12px 13px; font-family: inherit; font-size: 14px; font-weight: 600; color: var(--ac-ink); outline: none; width: 100%; }
.ac-accpage .form-row input.input-text:focus, .ac-accpage .form-row textarea:focus { border-color: var(--ac-terra); }
.ac-accpage .form-row label { font-size: 13px; font-weight: 700; color: #5A5348; margin-bottom: 5px; display: inline-block; }
.ac-accpage fieldset { border: 1px solid var(--ac-border2); border-radius: 14px; padding: 16px 18px; margin: 18px 0; }
.ac-accpage fieldset legend { font-size: 14px; font-weight: 800; color: var(--ac-ink); padding: 0 8px; }

/* addresses */
.ac-accpage .woocommerce-Addresses { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.ac-accpage .woocommerce-Addresses .u-column1, .ac-accpage .woocommerce-Addresses .u-column2 { float: none; width: auto; max-width: none; background: var(--ac-cream); border: 1px solid var(--ac-border2); border-radius: 14px; padding: 18px 20px; margin: 0; }
.ac-accpage .woocommerce-Address-title { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.ac-accpage .woocommerce-Address-title .edit { font-size: 12.5px; font-weight: 700; color: var(--ac-terra); text-decoration: none; }
.ac-accpage address { font-style: normal; line-height: 2.1; color: #4A443A; font-size: 13.5px; }

/* notices */
.ac-accpage .woocommerce-message, .ac-accpage .woocommerce-info { background: var(--ac-card); border: 1px solid var(--ac-border); border-right: 3px solid var(--ac-terra); border-radius: 12px; padding: 14px 16px; margin-bottom: 18px; font-size: 14px; color: #4A443A; list-style: none; }
.ac-accpage .woocommerce-error { background: #FBF1EC; border: 1px solid #E9C6B7; border-right: 3px solid #C0553A; border-radius: 12px; padding: 14px 16px 14px; margin-bottom: 18px; font-size: 14px; color: #8A3A24; list-style: none; }
.ac-accpage .woocommerce-error li { margin: 0; }

/* login / register (logged out) */
body.woocommerce-account:not(.logged-in) .ac-accpage .woocommerce { max-width: 460px; margin: 0 auto; }
body.woocommerce-account:not(.logged-in) .ac-accpage .woocommerce:has(#customer_login) { max-width: 920px; }
.ac-accpage form.login, .ac-accpage form.register { background: var(--ac-card); border: 1px solid var(--ac-border); border-radius: 20px; padding: 28px; }
.ac-accpage #customer_login { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.ac-accpage #customer_login .u-column1, .ac-accpage #customer_login .u-column2 { float: none; width: auto; }
.ac-accpage #customer_login h2 { font-size: 18px; font-weight: 800; color: var(--ac-ink); margin: 0 0 14px; }
.ac-accpage form.login .woocommerce-form-login__rememberme { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: #5A5348; margin-bottom: 8px; }
.ac-accpage form.login .lost_password { margin: 12px 0 0; font-size: 13px; }
.ac-accpage form.login .lost_password a { color: var(--ac-terra); font-weight: 700; }

@media (max-width: 900px) {
	.logged-in .ac-accpage .woocommerce { grid-template-columns: minmax(0, 1fr); gap: 18px; }
	.logged-in .ac-accpage .woocommerce > * { min-width: 0; max-width: 100%; }
	.woocommerce-account .ac-accpage .ac-acc-side,
	.woocommerce-account.logged-in .ac-accpage .woocommerce-MyAccount-content { grid-column: 1; }
	.ac-accpage .form-row-first, .ac-accpage .form-row-last { width: 100% !important; float: none !important; }
	.ac-accpage form .button { width: 100%; box-sizing: border-box; }
	.ac-acc-side { position: static; padding: 14px; }
	.ac-acc-avatar { width: 44px; height: 44px; font-size: 18px; }
	.ac-acc-name { font-size: 14px; }
	.ac-accpage .woocommerce-MyAccount-content p { font-size: 13.5px; }
	.ac-acc-user { padding-bottom: 12px; margin-bottom: 10px; }
	.woocommerce-MyAccount-navigation ul { flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
	.woocommerce-MyAccount-navigation a { white-space: nowrap; padding: 9px 13px; font-size: 13.5px; }
	.ac-acc-ic { width: auto; }
	.logged-in .ac-accpage .woocommerce-MyAccount-content { padding: 18px; }
	.ac-accpage #customer_login { grid-template-columns: 1fr; }
	.ac-accpage .woocommerce-Addresses { grid-template-columns: 1fr; }
	.ac-accpage table.woocommerce-orders-table th, .ac-accpage table.woocommerce-orders-table td { padding: 11px 6px; font-size: 12.5px; }
}

/* ==================================================================
   HEADER/FOOTER ACCOUNT BUTTON + LAYOUT GUARDS
   ================================================================== */
.ac-head-account { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; background: var(--ac-badge); border: 1px solid #E4CDB6; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--ac-terra); text-decoration: none; white-space: nowrap; line-height: 1.4; }
.ac-head-account:hover { background: #F0DCC9; }
.ac-head-account-ic { font-size: 13px; line-height: 1; }
.ac-head-cart { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 999px; background: var(--ac-badge); border: 1px solid #E4CDB6; text-decoration: none; font-size: 15px; }
.ac-head-cart:hover { background: #F0DCC9; }
.ac-head-cart-count { position: absolute; top: -6px; left: -6px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--ac-terra); color: #fff; font-size: 10.5px; font-weight: 800; display: flex; align-items: center; justify-content: center; line-height: 1; box-sizing: border-box; }
.ac-head-cart-count.ac-hidden { display: none; }
.ac-mcart { position: relative; }
.ac-head-mobile .ac-macc { margin-right: auto; }
.ac-head-mobile .ac-macc ~ .ac-msearch { margin-right: 8px; }

/* Kill accidental horizontal overflow site-wide (keeps sticky working, unlike overflow:hidden) */
html, body { overflow-x: clip; }

/* Addresses: robust grid regardless of WooCommerce wrapper/column classes */
.ac-addr-intro { font-size: 14.5px; line-height: 2.05; color: #4A443A; margin-bottom: 18px; }
.ac-addr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; align-items: stretch; }
.ac-addr-card { background: var(--ac-cream); border: 1px solid var(--ac-border2); border-radius: 14px; padding: 18px 20px; box-sizing: border-box; min-width: 0; }
.ac-addr-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.ac-addr-head h3 { font-size: 15px !important; font-weight: 800; color: var(--ac-ink); margin: 0 !important; }
.ac-addr-edit { font-size: 12.5px; font-weight: 700; color: var(--ac-terra); text-decoration: none; white-space: nowrap; background: var(--ac-badge); padding: 5px 12px; border-radius: 999px; }
.ac-addr-edit:hover { background: #F0DCC9; }
.ac-addr-card address { font-style: normal; line-height: 2.1; color: #4A443A; font-size: 13.5px; margin: 0; }

.ac-accpage .woocommerce-Addresses, .ac-accpage .col2-set.addresses { display: grid !important; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.ac-accpage .woocommerce-Addresses > div, .ac-accpage .col2-set.addresses > div, .ac-accpage .woocommerce-MyAccount-content .woocommerce-Address { float: none !important; width: auto !important; max-width: none !important; margin: 0 !important; background: var(--ac-cream); border: 1px solid var(--ac-border2); border-radius: 14px; padding: 18px 20px; box-sizing: border-box; }
.ac-accpage .woocommerce-Address + .woocommerce-Address { margin-top: 16px !important; }
.ac-accpage .woocommerce-Addresses .woocommerce-Address + .woocommerce-Address, .ac-accpage .col2-set.addresses .woocommerce-Address + .woocommerce-Address { margin-top: 0 !important; }
.ac-accpage .woocommerce-Address .edit { font-size: 12.5px; font-weight: 700; color: var(--ac-terra); text-decoration: none; }

@media (max-width: 960px) {
	.ac-accpage .woocommerce-Addresses, .ac-accpage .col2-set.addresses { grid-template-columns: 1fr; }
}

/* All-products count badge + no-products (live search) message */
.ac-ff-count { font-size: 11px; font-weight: 700; opacity: .85; margin-right: 5px; }
.ac-noprod { grid-column: 1 / -1; list-style: none; text-align: center; padding: 46px 20px; background: var(--ac-card); border: 1px solid var(--ac-border); border-radius: 16px; font-size: 15px; font-weight: 600; color: var(--ac-muted); }

/* ── Brand logo image (replaces letter mark when a logo is set) ── */
img.ac-mark-logo { background: transparent !important; border-radius: 0; object-fit: contain; padding: 0; box-shadow: none; display: block; }
img.ac-mark-logo.ac-mark { width: 40px; height: 40px; }
img.ac-mark-logo.ac-mark-sm { width: 38px; height: 38px; }
img.ac-mark-logo.ac-footer-mark { width: 42px; height: 42px; }
img.ac-mark-logo.ac-fm-mark { width: 40px; height: 40px; }

/* Logo inside byline avatar + hero card mark */
.ac-avatar-logo { display: inline-flex; align-items: center; justify-content: center; background: #F4ECE0 !important; overflow: hidden; }
.ac-avatar-logo img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.ac-hero-card-mark { overflow: hidden; display: inline-flex; align-items: center; justify-content: center; background: #F4ECE0 !important; }
.ac-hero-card-mark img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }

/* ==================================================================
   SUBCATEGORY TABS — cards under category hero (e.g. candle subsections)
   ================================================================== */
.ac-subcats { max-width: 1200px; margin: 30px auto 0; padding: 0 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ac-subcat-card { display: flex; flex-direction: column; gap: 10px; background: var(--ac-card); border: 1px solid var(--ac-border); border-radius: 20px; padding: 24px 24px 22px; text-decoration: none; color: var(--ac-ink); transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.ac-subcat-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(44,40,34,0.10); border-color: var(--ac-subcat-accent, var(--ac-terra)); }
.ac-subcat-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.ac-subcat-ic { width: 58px; height: 58px; flex: 0 0 58px; display: flex; align-items: center; justify-content: center; border-radius: 15px; background: var(--ac-badge); font-size: 28px; }
.ac-subcat-step { font-size: 12.5px; font-weight: 800; color: #fff; background: var(--ac-subcat-accent, var(--ac-terra)); padding: 6px 15px; border-radius: 999px; white-space: nowrap; }
.ac-subcat-name { font-weight: 800; font-size: 18.5px; line-height: 1.55; }
.ac-subcat-desc { font-size: 13.5px; line-height: 1.9; color: var(--ac-muted); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
@media (max-width: 1024px) {
	.ac-subcats { padding: 0 24px; gap: 14px; }
	.ac-subcat-card { padding: 20px; }
}
@media (max-width: 760px) {
	.ac-subcats { grid-template-columns: 1fr; margin-top: 20px; padding: 0 18px; gap: 12px; }
	.ac-subcat-card { padding: 18px 18px 16px; gap: 8px; border-radius: 17px; }
	.ac-subcat-ic { width: 50px; height: 50px; flex-basis: 50px; font-size: 24px; border-radius: 13px; }
	.ac-subcat-name { font-size: 16.5px; }
	.ac-subcat-desc { font-size: 12.5px; }
}

/* ==================================================================
   HOME EXTRAS — featured slider, learning paths, branch tabs, topics
   ================================================================== */

/* ---- Featured slider (مقاله‌ی شاخص چرخشی) — class renamed to ac-fsec to avoid
   collision with the theme's existing .ac-featured (blog featured post) ---- */
.ac-fsec { position: relative; }
.ac-fnav-wrap { display: flex; gap: 10px; }
.ac-fnav-btn {
	width: 44px; height: 44px; border-radius: 50%; background: var(--ac-card);
	border: 1px solid var(--ac-border); color: var(--ac-ink); font-size: 22px; line-height: 1;
	cursor: pointer; display: flex; align-items: center; justify-content: center;
	transition: background .16s, transform .16s, box-shadow .16s; font-family: inherit;
}
.ac-fnav-btn:hover { background: var(--ac-terra); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(181,98,60,0.26); }
.ac-fviewport { overflow: hidden; border-radius: 24px; }
.ac-fslider {
	display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
	-ms-overflow-style: none; scrollbar-width: none;
}
.ac-fslider::-webkit-scrollbar { display: none; }
.ac-fslide {
	flex: 0 0 100%; scroll-snap-align: start; display: grid; grid-template-columns: 1.02fr 0.98fr;
	background: var(--ac-card); border: 1px solid var(--ac-border); border-radius: 24px; overflow: hidden;
}
.ac-fslide-media { height: 380px; background: var(--ac-stripe); overflow: hidden; display: block; }
.ac-fslide-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.ac-fslide-media:hover img { transform: scale(1.04); }
.ac-fslide-body { padding: 42px 46px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.ac-fslide-eyebrow {
	display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; color: #fff;
	background: var(--ac-accent, var(--ac-terra)); padding: 7px 15px; border-radius: 999px; margin-bottom: 20px;
}
.ac-fslide-body h3 { font-size: 29px; line-height: 1.5; font-weight: 900; color: var(--ac-ink); letter-spacing: -0.3px; margin-bottom: 14px; }
.ac-fslide-body h3 a { color: inherit; }
.ac-fslide-body p { font-size: 15px; line-height: 2; color: var(--ac-muted); margin-bottom: 20px; }
.ac-fslide-meta { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ac-muted3); font-weight: 600; margin-bottom: 26px; }
.ac-fbtn {
	background: var(--ac-accent, var(--ac-terra)); color: #fff; font-weight: 700; font-size: 15px;
	padding: 13px 28px; border-radius: 12px; box-shadow: 0 6px 18px rgba(44,40,34,0.16);
}
.ac-fdots { display: flex; gap: 8px; justify-content: center; margin-top: 20px; }
.ac-fdot { width: 9px; height: 9px; border-radius: 999px; background: var(--ac-border2); border: 0; padding: 0; cursor: pointer; transition: width .2s, background .2s; }
.ac-fdot.ac-on { width: 28px; background: var(--ac-terra); }

/* ---- Learning paths (مسیر یادگیری) ---- */
.ac-lp { background: var(--ac-card); border: 1px solid var(--ac-border); border-radius: 20px; padding: 24px 26px 26px; margin-bottom: 22px; }
.ac-lp:last-child { margin-bottom: 0; }
.ac-lp-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.ac-lp-ic {
	width: 52px; height: 52px; flex: 0 0 52px; border-radius: 14px; display: flex; align-items: center;
	justify-content: center; font-size: 26px; background: color-mix(in srgb, var(--ac-accent, var(--ac-terra)) 15%, #fff);
}
.ac-lp-titles { flex: 1 1 auto; min-width: 0; }
.ac-lp-titles h3 { font-size: 20px; font-weight: 800; color: var(--ac-ink); line-height: 1.3; }
.ac-lp-titles p { font-size: 13px; color: var(--ac-muted); margin-top: 3px; }
.ac-lp-all { font-size: 14px; font-weight: 700; color: var(--ac-accent, var(--ac-terra)); white-space: nowrap; }
.ac-lp-nav { display: flex; gap: 8px; }
.ac-snav {
	width: 38px; height: 38px; border-radius: 10px; background: transparent; border: 1px solid var(--ac-border);
	color: var(--ac-ink); font-size: 19px; line-height: 1; cursor: pointer; display: flex; align-items: center;
	justify-content: center; transition: background .16s, color .16s; font-family: inherit;
}
.ac-snav:hover { background: var(--ac-accent, var(--ac-terra)); color: #fff; border-color: transparent; }
.ac-lp-track {
	display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x proximity; scroll-behavior: smooth;
	padding-bottom: 4px; -ms-overflow-style: none; scrollbar-width: none;
}
.ac-lp-track::-webkit-scrollbar { display: none; }
.ac-lp-step {
	flex: 0 0 220px; scroll-snap-align: start; background: var(--ac-cream); border: 1px solid var(--ac-border);
	border-radius: 15px; padding: 18px; display: flex; flex-direction: column; gap: 10px;
	transition: transform .16s, box-shadow .16s, border-color .16s; position: relative;
}
.ac-lp-step:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(44,40,34,0.10); border-color: var(--ac-accent, var(--ac-terra)); }
.ac-lp-num {
	width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
	font-weight: 800; font-size: 15px; color: #fff; background: var(--ac-accent, var(--ac-terra));
}
.ac-lp-step-title {
	font-size: 14.5px; font-weight: 700; line-height: 1.7; color: var(--ac-ink);
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.ac-lp-step-meta { font-size: 12px; color: var(--ac-muted3); font-weight: 600; margin-top: auto; }

/* ---- Learning paths v2: per-craft tabbed galleries (لوازم / دوره / تکمیلی) ---- */
.ac-lp2 { background: var(--ac-card); border: 1px solid var(--ac-border); border-radius: 20px; padding: 24px 26px 26px; margin-bottom: 22px; }
.ac-lp2:last-child { margin-bottom: 0; }
.ac-lp2-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.ac-lp2-head .ac-lp-titles { flex: 1 1 auto; min-width: 0; }
.ac-lp2-cta { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 12px; background: var(--ac-accent, var(--ac-terra)); color: #fff; font-weight: 800; font-size: 14.5px; white-space: nowrap; box-shadow: 0 6px 16px rgba(44,40,34,0.16); transition: transform .16s, filter .16s, box-shadow .16s; }
.ac-lp2-cta:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 10px 22px rgba(44,40,34,0.20); }
.ac-lp2-tabs { margin-bottom: 20px; }
.ac-lp2-grid { gap: 20px; }
.ac-lp2-grid .ac-card-body { padding: 16px 18px; }
.ac-lp2-more { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 24px; background: color-mix(in srgb, var(--ac-accent, var(--ac-terra)) 8%, var(--ac-card)); border: 1.5px dashed color-mix(in srgb, var(--ac-accent, var(--ac-terra)) 45%, var(--ac-border)); transition: transform .16s, box-shadow .16s, background .16s, border-color .16s; }
.ac-lp2-more:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(44,40,34,0.10); background: color-mix(in srgb, var(--ac-accent, var(--ac-terra)) 14%, var(--ac-card)); border-color: var(--ac-accent, var(--ac-terra)); }
.ac-lp2-more-ic { width: 48px; height: 48px; border-radius: 50%; background: var(--ac-accent, var(--ac-terra)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 700; }
.ac-lp2-more-t { font-weight: 800; font-size: 16px; color: var(--ac-ink); line-height: 1.6; }
.ac-lp2-more-s { font-size: 12.5px; color: var(--ac-muted); font-weight: 600; }
.ac-lesson-num { position: absolute; top: 12px; right: 12px; z-index: 2; width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 15px; box-shadow: 0 4px 12px rgba(0,0,0,0.20); }
@media (max-width: 760px) {
	.ac-lp2 { padding: 18px 16px 20px; border-radius: 17px; }
	.ac-lp2-head { gap: 10px; flex-wrap: wrap; }
	.ac-lp2-head .ac-lp2-cta { flex-basis: 100%; justify-content: center; margin-top: 4px; }
	.ac-lesson-num { top: 8px; right: 8px; width: 28px; height: 28px; font-size: 13px; border-radius: 8px; }
}

/* ---- Branch tabs (تب شاخه‌ها) ---- */
.ac-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.ac-tab {
	display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 999px;
	border: 1px solid var(--ac-border); background: var(--ac-card); color: var(--ac-ink); font-weight: 700;
	font-size: 15px; cursor: pointer; font-family: inherit; transition: background .16s, color .16s, border-color .16s;
}
.ac-tab .ac-tab-ic { font-size: 17px; }
.ac-tab:hover { border-color: var(--ac-accent, var(--ac-terra)); }
.ac-tab.ac-active { background: var(--ac-accent, var(--ac-terra)); color: #fff; border-color: transparent; }
.ac-tab-panel { animation: acFade .3s ease both; }
.ac-tab-empty { color: var(--ac-muted); font-size: 15px; padding: 20px 0; }

/* ---- Quick topics (بلوک‌های موضوعی) ---- */
.ac-topics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ac-topic {
	display: flex; align-items: center; gap: 16px; background: var(--ac-card); border: 1px solid var(--ac-border);
	border-radius: 18px; padding: 22px 24px; transition: transform .16s, box-shadow .16s, border-color .16s;
}
.ac-topic:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(44,40,34,0.10); border-color: var(--ac-accent, var(--ac-terra)); }
.ac-topic-ic {
	width: 56px; height: 56px; flex: 0 0 56px; border-radius: 15px; display: flex; align-items: center;
	justify-content: center; font-size: 27px; background: color-mix(in srgb, var(--ac-accent, var(--ac-terra)) 15%, #fff);
}
.ac-topic-tx { flex: 1 1 auto; min-width: 0; }
.ac-topic-t { display: block; font-size: 17px; font-weight: 800; color: var(--ac-ink); margin-bottom: 5px; }
.ac-topic-d { display: block; font-size: 13px; line-height: 1.8; color: var(--ac-muted); }
.ac-topic-go { color: var(--ac-accent, var(--ac-terra)); font-size: 20px; font-weight: 800; flex-shrink: 0; }

/* ---- Home extras responsive ---- */
@media (max-width: 900px) {
	.ac-fslide { grid-template-columns: 1fr; }
	.ac-fslide-media { height: 220px; }
	.ac-fslide-body { padding: 26px 24px 30px; }
	.ac-fslide-body h3 { font-size: 23px; }
	.ac-topics { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
	.ac-lp-head { flex-wrap: wrap; }
	.ac-lp-titles { flex-basis: calc(100% - 66px); }
	.ac-lp-nav { margin-right: auto; }
	.ac-lp-step { flex-basis: 200px; }
	.ac-tab { padding: 9px 15px; font-size: 14px; }
}
