@font-face { font-family: "Yekan Bakh"; src: url("../fonts/YekanBakhFaNum-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Yekan Bakh"; src: url("../fonts/YekanBakhFaNum-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Yekan Bakh"; src: url("../fonts/YekanBakhFaNum-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Yekan Bakh"; src: url("../fonts/YekanBakhFaNum-ExtraBold.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
    --bg: #faf6f1;
    --surface: #ffffff;
    --ink: #2a1f17;
    --muted: #6f6157;
    --subtle: #9a8b80;
    --line: #ece3da;
    --brand: #7a4a2c;
    --brand-dark: #5e3820;
    --brand-soft: #f3e8de;
    --sale: #b4472b;
    --ok: #2f7d4f;
    --radius: 14px;
    --radius-sm: 10px;
    --font: "Yekan Bakh", Tahoma, system-ui, sans-serif;
    color-scheme: light;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.9;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.5; font-weight: 800; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.container.narrow, .narrow { max-width: 760px; }
.section { padding-block: 56px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -50px; z-index: 100; padding: 8px 14px; border-radius: 8px; background: var(--ink); color: #fff; }
.skip-link:focus { top: 12px; color: #fff; }

.icon { width: 22px; height: 22px; }

/* Buttons */

.button, button.button, input[type="submit"], .wp-element-button,
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 46px; padding: 0 22px; border: 1px solid var(--ink); border-radius: 999px;
    background: var(--ink); color: #fff; font-weight: 700; font-size: 15px; line-height: 1;
    cursor: pointer; transition: background-color .2s, color .2s, border-color .2s;
}
.button:hover, button.button:hover, input[type="submit"]:hover, .wp-element-button:hover,
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover {
    background: var(--brand-dark); border-color: var(--brand-dark); color: #fff;
}
.button-primary, .woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce .single_add_to_cart_button {
    background: var(--brand); border-color: var(--brand); color: #fff;
}
.button-ghost { background: transparent; color: var(--ink); }
.button-ghost:hover { background: var(--ink); color: #fff; }
.woocommerce a.button.disabled, .woocommerce button.button:disabled { opacity: .5; cursor: not-allowed; }
.text-link { color: var(--brand); font-weight: 700; font-size: 15px; }

input[type="text"], input[type="email"], input[type="tel"], input[type="search"], input[type="password"], input[type="number"], select, textarea {
    width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }

/* Header */

.site-header { position: sticky; top: 0; z-index: 40; background: rgba(250, 246, 241, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.admin-bar .site-header { top: 32px; }
.site-header.is-scrolled { border-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 28px; height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: #3a2416; }
.brand-mark svg { width: 24px; height: 24px; }
.brand-logo { max-height: 44px; width: auto; }
.primary-nav { flex: 1; }
.primary-nav .menu { display: flex; gap: 26px; margin: 0; padding: 0; list-style: none; }
.primary-nav .menu a { font-weight: 600; font-size: 15px; color: var(--muted); }
.primary-nav .menu a:hover, .primary-nav .current-menu-item > a, .primary-nav .current_page_parent > a { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 4px; }
.icon-button { position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; }
.icon-button:hover { background: var(--brand-soft); color: var(--ink); }
.cart-count { position: absolute; top: 2px; inset-inline-end: 0; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; line-height: 19px; text-align: center; }
.menu-toggle { display: none; }
.search-panel { border-top: 1px solid var(--line); padding: 14px 0; background: var(--bg); }

.search-form { display: flex; gap: 8px; }
.search-form .search-field { flex: 1; }

/* Hero */

.hero { padding: 56px 0 40px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 48px; }
.kicker { display: inline-block; margin-bottom: 10px; color: var(--brand); font-weight: 700; font-size: 14px; }
.hero h1 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.35; margin-bottom: 18px; }
.lead { color: var(--muted); font-size: 18px; max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

.hero-art { position: relative; aspect-ratio: 1; max-width: 440px; margin-inline: auto; width: 100%; border-radius: 50%; background: radial-gradient(circle at 50% 55%, #f0dfcf 0 58%, transparent 59%); }
.cup { position: absolute; left: 50%; top: 52%; width: 58%; transform: translate(-50%, -50%); aspect-ratio: 1.2; }
.cup-body { position: absolute; left: 10%; right: 22%; top: 30%; bottom: 14%; border-radius: 0 0 46% 46% / 0 0 60% 60%; background: linear-gradient(90deg, #fff, #f7efe8); box-shadow: inset 0 10px 0 #5a3622, 0 20px 40px -20px rgba(80, 50, 30, .5); }
.cup-handle { position: absolute; right: 6%; top: 40%; width: 22%; height: 26%; border: 10px solid #f7efe8; border-left: 0; border-radius: 0 50% 50% 0; }
.saucer { position: absolute; left: 0; right: 10%; bottom: 4%; height: 12%; border-radius: 50%; background: #fff; box-shadow: 0 12px 30px -14px rgba(80, 50, 30, .45); z-index: -1; }
.steam { position: absolute; top: 2%; width: 10px; height: 26%; border-radius: 999px; background: linear-gradient(transparent, rgba(122, 74, 44, .22)); animation: steam 3.6s ease-in-out infinite; }
.steam.s1 { left: 28%; } .steam.s2 { left: 42%; animation-delay: .8s; } .steam.s3 { left: 56%; animation-delay: 1.6s; }
.bean { position: absolute; width: 34px; height: 46px; border-radius: 50%; background: #5a3622; transform: rotate(35deg); }
.bean::after { content: ""; position: absolute; inset: 18% 46%; border-radius: 999px; background: #3c2416; }
.bean.b1 { top: 12%; right: 10%; } .bean.b2 { bottom: 14%; left: 6%; transform: rotate(-20deg) scale(.8); } .bean.b3 { top: 30%; left: 2%; transform: rotate(70deg) scale(.6); }
@keyframes steam { 0%, 100% { transform: translateY(0) scaleY(.9); opacity: .2; } 50% { transform: translateY(-14px) scaleY(1.1); opacity: .8; } }

/* Sections */

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.section-title { font-size: 24px; margin: 0; }
.page-hero { padding: 48px 0 8px; }
.page-hero h1 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 8px; }
.page-hero p, .archive-description { color: var(--muted); max-width: 640px; }

.category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.category-tile { display: flex; flex-direction: column; justify-content: flex-end; min-height: 150px; padding: 20px; border-radius: var(--radius); transition: transform .2s; }
.category-tile:hover { transform: translateY(-3px); color: inherit; }
.category-name { font-weight: 800; font-size: 19px; }
.category-count { color: var(--muted); font-size: 14px; }
.tone-0 { background: #eadccd; } .tone-1 { background: #e3e6d6; } .tone-2 { background: #f1e2cf; } .tone-3 { background: #e7dde4; }

.values { margin-block: 24px; padding: 48px 0; background: var(--surface); border-block: 1px solid var(--line); }
.values-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.values h3 { font-size: 18px; margin-bottom: 6px; }
.values p { color: var(--muted); margin: 0; }

/* Posts */

.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.post-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.post-card-media img, .post-card-placeholder { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--brand-soft); }
.post-card-placeholder { display: block; }
.post-card-body { padding: 18px 20px 22px; }
.post-card-title { font-size: 18px; margin-bottom: 6px; }
.post-card-excerpt { color: var(--muted); font-size: 15px; margin: 0; }
.meta { color: var(--subtle); font-size: 13px; margin-bottom: 8px; }

.article-header { padding-top: 48px; text-align: center; }
.article-header h1 { font-size: clamp(28px, 3.6vw, 42px); }
.article-cover { margin: 28px auto 8px; max-width: 1000px; }
.article-cover img { width: 100%; border-radius: var(--radius); }
.entry-content { font-size: 17px; }
.entry-content > * { margin-block: 0 1.1em; }
.entry-content h2 { margin-top: 1.8em; font-size: 26px; }
.entry-content h3 { margin-top: 1.4em; font-size: 20px; }
.entry-content a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.entry-content ul, .entry-content ol { padding-inline-start: 22px; }
.entry-content blockquote { margin-inline: 0; padding: 14px 20px; border-inline-start: 3px solid var(--brand); background: var(--surface); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--muted); }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: 10px; border-bottom: 1px solid var(--line); text-align: start; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; padding-block: 8px 24px; }
.tags a { padding: 4px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); font-size: 13px; }

.pagination .nav-links { display: flex; justify-content: center; gap: 6px; margin-top: 36px; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.pagination .page-numbers.current { background: var(--ink); color: #fff; border-color: var(--ink); }

.empty { text-align: center; color: var(--muted); }
.empty .search-form { max-width: 480px; margin: 18px auto; }
.not-found-code { font-size: 80px; font-weight: 800; color: var(--brand); line-height: 1; }

/* WooCommerce */

.woocommerce .woocommerce-result-count { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.woocommerce .woocommerce-ordering { margin: 0 0 18px; }
.woocommerce .woocommerce-ordering select { width: auto; min-height: 40px; }
.woo-content > .woocommerce-result-count, .woo-content > .woocommerce-ordering { display: inline-block; }
.woo-content > .woocommerce-ordering { float: left; }

.woocommerce ul.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; margin: 0; padding: 0; list-style: none; clear: both; }
.woocommerce ul.products.columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product { position: relative; display: flex; flex-direction: column; width: auto; margin: 0; padding: 0; text-align: start; }
.woocommerce ul.products li.product a img { width: 100%; aspect-ratio: 1; object-fit: cover; margin: 0 0 12px; border-radius: var(--radius); background: var(--brand-soft); }
.woocommerce ul.products li.product .woocommerce-loop-product__title { padding: 0; font-size: 16px; font-weight: 700; line-height: 1.6; }
.woocommerce ul.products li.product .price { display: block; margin: 4px 0 12px; color: var(--ink); font-weight: 700; font-size: 15px; }
.woocommerce ul.products li.product .price del { color: var(--subtle); font-weight: 400; margin-inline-end: 6px; }
.woocommerce ul.products li.product .price ins { text-decoration: none; color: var(--sale); }
.woocommerce ul.products li.product .button { margin-top: auto; min-height: 40px; font-size: 14px; background: transparent; color: var(--ink); }
.woocommerce ul.products li.product .button:hover { background: var(--ink); color: #fff; }
.woocommerce ul.products li.product .added_to_cart { display: inline-block; margin-top: 8px; color: var(--brand); font-size: 14px; font-weight: 700; }
.woocommerce span.onsale { position: absolute; top: 12px; inset-inline-start: 12px; inset-inline-end: auto; left: auto; min-width: 0; min-height: 0; padding: 4px 10px; margin: 0; border-radius: 999px; background: var(--sale); color: #fff; font-size: 12px; font-weight: 700; line-height: 1.6; z-index: 2; }
.woocommerce .star-rating { color: #c8873f; }

.woocommerce div.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; padding-top: 16px; }
.woocommerce div.product div.images, .woocommerce div.product div.summary { width: auto; float: none; margin: 0; }
.woocommerce div.product div.images img { border-radius: var(--radius); background: var(--brand-soft); }
.woocommerce div.product .flex-control-thumbs { display: flex; gap: 10px; margin: 10px 0 0; padding: 0; }
.woocommerce div.product .flex-control-thumbs li { width: 80px; list-style: none; }
.woocommerce div.product .flex-control-thumbs img { border-radius: var(--radius-sm); opacity: .6; cursor: pointer; }
.woocommerce div.product .flex-control-thumbs img.flex-active { opacity: 1; }
.woocommerce div.product .product_title { font-size: clamp(26px, 3vw, 36px); }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--ink); font-size: 24px; font-weight: 800; }
.woocommerce div.product p.price ins { text-decoration: none; color: var(--sale); }
.woocommerce div.product .woocommerce-product-details__short-description { color: var(--muted); }
.woocommerce div.product form.cart { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 22px 0; }
.woocommerce div.product form.cart .variations { width: 100%; margin-bottom: 4px; }
.woocommerce div.product form.cart .variations th, .woocommerce div.product form.cart .variations td { display: block; padding: 0 0 6px; text-align: start; }
.woocommerce .quantity .qty { width: 80px; min-height: 46px; text-align: center; }
.woocommerce div.product .product_meta { color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); padding-top: 14px; }
.woocommerce div.product .product_meta > span { display: block; }
.woocommerce div.product .woocommerce-tabs { grid-column: 1 / -1; }
.woocommerce div.product .woocommerce-tabs ul.tabs { display: flex; gap: 22px; margin: 0 0 18px; padding: 0; border-bottom: 1px solid var(--line); list-style: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs::before, .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 { margin: 0; padding: 0; border: 0; background: none; border-radius: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { display: block; padding: 10px 0; color: var(--muted); font-weight: 700; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--ink); box-shadow: inset 0 -2px 0 var(--brand); }
.woocommerce div.product .woocommerce-tabs .panel { max-width: 760px; }
.woocommerce div.product .related, .woocommerce div.product .upsells { grid-column: 1 / -1; }
.woocommerce div.product .related > h2, .woocommerce div.product .upsells > h2 { font-size: 22px; margin: 24px 0 18px; }
.woocommerce table.shop_attributes { border: 0; }
.woocommerce table.shop_attributes th, .woocommerce table.shop_attributes td { padding: 10px; border-bottom: 1px solid var(--line); background: none; font-style: normal; text-align: start; }

.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-notice {
    margin: 0 0 20px; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); list-style: none;
}
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before { display: none; }
.woocommerce-message { border-inline-start: 3px solid var(--ok); }
.woocommerce-error { border-inline-start: 3px solid var(--sale); }
.woocommerce-message .button, .woocommerce-info .button { float: left; min-height: 36px; font-size: 13px; }

.woocommerce-account .woocommerce { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; }
.woocommerce-account .woocommerce-MyAccount-navigation ul { margin: 0; padding: 0; list-style: none; }
.woocommerce-account .woocommerce-MyAccount-navigation a { display: block; padding: 8px 12px; border-radius: var(--radius-sm); color: var(--muted); }
.woocommerce-account .woocommerce-MyAccount-navigation .is-active a { background: var(--surface); color: var(--ink); font-weight: 700; }
.woocommerce-account:not(.logged-in) .woocommerce { display: block; max-width: 520px; }

.wc-block-components-button:not(.is-link), .wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button {
    border-radius: 999px !important; background: var(--brand) !important; color: #fff !important;
}

/* Footer */

.site-footer { margin-top: 48px; padding-top: 48px; background: #2a1f17; color: #d9cbbf; }
.site-footer a { color: #d9cbbf; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding-bottom: 32px; }
.footer-brand { color: #fff; font-weight: 800; font-size: 20px; margin-bottom: 6px; }
.footer-menu { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.footer-note p { margin: 0 0 6px; }
.footer-bottom { padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; color: #a8978a; }
.footer-bottom p { margin: 0; }

/* Responsive */

@media (max-width: 1024px) {
    .woocommerce ul.products, .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
    .menu-toggle { display: inline-grid; }
    .primary-nav { position: absolute; inset: 74px 0 auto; display: none; padding: 12px 20px 20px; background: var(--bg); border-bottom: 1px solid var(--line); }
    .primary-nav.is-open { display: block; }
    .primary-nav .menu { flex-direction: column; gap: 4px; }
    .primary-nav .menu a { display: block; padding: 10px 0; font-size: 16px; }
    .header-inner { justify-content: space-between; }
    .hero-grid, .woocommerce div.product { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .hero-art { max-width: 300px; order: -1; }
    .values-grid, .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .woocommerce-account .woocommerce { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 600px) {
    .container { width: min(1200px, 100% - 28px); }
    .woocommerce ul.products, .woocommerce ul.products.columns-3, .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    .post-grid { grid-template-columns: minmax(0, 1fr); }
    .section { padding-block: 40px; }
    .admin-bar .site-header { top: 0; }
    .woo-content > .woocommerce-ordering { float: none; display: block; }
}

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