/* Sino Wood — main styles */
:root {
  --sw-espresso: #241810;
  --sw-walnut: #4a3222;
  --sw-brass: #b8874b;
  --sw-brass-light: #d4a86a;
  --sw-parchment: #f3ecdf;
  --sw-moss: #5f6b4c;
  --sw-charcoal: #1a1410;
  --sw-line: #e4dac6;
  --sw-muted: #5a4d3f;
  --sw-serif: 'Fraunces', Georgia, serif;
  --sw-sans: 'Work Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body.sw-theme {
  margin: 0; background: var(--sw-parchment); color: var(--sw-charcoal);
  font-family: var(--sw-sans); line-height: 1.55; -webkit-font-smoothing: antialiased;
}
.sw-theme h1, .sw-theme h2, .sw-theme h3, .sw-theme h4 { font-family: var(--sw-serif); font-weight: 500; margin: 0 0 .5em; }
.sw-theme a { color: inherit; text-decoration: none; }
.sw-theme img { max-width: 100%; height: auto; }
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; word-wrap: normal; }
.skip-link:focus { clip: auto; width: auto; height: auto; background: #fff; padding: 10px 16px; z-index: 1000; top: 8px; left: 8px; }
.sw-wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
.sw-section { padding-top: 56px; padding-bottom: 68px; }

/* buttons */
.sw-btn { display: inline-block; padding: 12px 24px; border-radius: 2px; font: 500 15px/1.2 var(--sw-sans); border: 1px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.sw-btn--brass { background: var(--sw-brass); color: var(--sw-espresso); }
.sw-btn--brass:hover { background: var(--sw-brass-light); }
.sw-btn--moss { background: var(--sw-moss); color: #fff; text-align: center; }
.sw-btn--moss:hover { background: var(--sw-walnut); }
.sw-btn--outline { border-color: var(--sw-walnut); color: var(--sw-walnut); }
.sw-btn--outline:hover { border-color: var(--sw-brass); color: var(--sw-brass); }
.sw-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0; }
.sw-link { color: var(--sw-moss); font-weight: 500; font-size: .92rem; }

/* top bar */
.sw-topbar { background: var(--sw-brass); color: var(--sw-espresso); font-size: .82rem; text-align: center; padding: 7px 14px; font-weight: 500; letter-spacing: .01em; }

/* header */
.sw-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--sw-line); padding: 14px 0; }
.admin-bar .sw-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .sw-header { top: 46px; } }
.sw-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.sw-brand { font-family: var(--sw-serif); font-size: 1.25rem; font-weight: 600; letter-spacing: .01em; white-space: nowrap; color: var(--sw-charcoal); }
.sw-brand span { color: var(--sw-moss); }
.sw-header__brand .custom-logo { max-height: 52px; width: auto; }

/* nav */
.sw-nav { margin-left: auto; }
.sw-menu, .sw-menu ul { list-style: none; margin: 0; padding: 0; }
.sw-menu { display: flex; gap: 22px; align-items: center; }
.sw-menu > li { position: relative; }
.sw-menu a { display: block; font-size: .85rem; font-weight: 500; letter-spacing: .02em; color: var(--sw-walnut); opacity: .88; transition: color .15s, opacity .15s; padding: 6px 0; }
.sw-menu a:hover, .sw-menu .current-menu-item > a, .sw-menu .current-menu-ancestor > a, .sw-menu .current_page_item > a { color: var(--sw-brass); opacity: 1; }
.sw-menu .menu-item-has-children > a::after { content: " \25BE"; font-size: .7em; }
.sw-menu .sub-menu {
  position: absolute; top: 100%; left: -12px; min-width: 200px; background: #fff; border: 1px solid var(--sw-line);
  box-shadow: 0 8px 20px rgba(36,24,16,.08); padding: 6px 0; opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s, transform .18s, visibility .18s; z-index: 20;
}
.sw-menu li:hover > .sub-menu, .sw-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.sw-menu .sub-menu a { padding: 9px 16px; font-weight: 400; }
.sw-menu .sub-menu a:hover { background: var(--sw-parchment); }

/* cart */
.sw-cart { display: flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600; color: var(--sw-walnut); white-space: nowrap; }
.sw-cart__icon { position: relative; display: inline-flex; }
.sw-cart__badge { position: absolute; top: -8px; right: -10px; background: var(--sw-brass); color: var(--sw-espresso); font-size: .62rem; font-weight: 700; width: 16px; height: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

/* burger */
.sw-burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; cursor: pointer; }
.sw-burger span:not(.screen-reader-text) { width: 22px; height: 2px; background: var(--sw-walnut); display: block; border-radius: 2px; transition: transform .2s, opacity .2s; }
.sw-burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(7px) rotate(45deg); }
.sw-burger[aria-expanded="true"] span:nth-child(3) { opacity: 0; }
.sw-burger[aria-expanded="true"] span:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .sw-header__inner { flex-wrap: wrap; row-gap: 0; }
  .sw-cart { margin-left: auto; }
  .sw-burger { display: flex; }
  .sw-nav { display: none; order: 5; width: 100%; margin: 12px 0 0; border-top: 1px solid var(--sw-line); padding-top: 8px; }
  .sw-nav.is-open { display: block; }
  .sw-menu { flex-direction: column; align-items: flex-start; gap: 0; }
  .sw-menu > li { width: 100%; }
  .sw-menu a { padding: 11px 2px; }
  .sw-menu .menu-item-has-children > a::after { display: none; }
  .sw-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; border: 0; box-shadow: none; padding: 0 0 0 14px; min-width: 0; }
  .sw-menu .sub-menu a { font-size: .82rem; opacity: .8; padding: 8px 2px; }
  .sw-header__brand { flex: 1; }
}

/* page hero (blog, plain pages, 404) */
.sw-pagehero { background: linear-gradient(160deg, var(--sw-espresso) 0%, var(--sw-walnut) 78%); color: var(--sw-parchment); padding: 64px 0 56px; }
.sw-pagehero h1 { font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.12; margin: 0; }
.sw-kicker { color: var(--sw-brass-light); font-size: .95rem; margin-bottom: 14px; }

/* content */
.sw-content { font-size: 1.05rem; line-height: 1.75; color: var(--sw-muted); }
.sw-content--narrow { max-width: 780px; }
.sw-content h2, .sw-content h3 { color: var(--sw-espresso); margin-top: 1.6em; }
.sw-content a { color: var(--sw-moss); text-decoration: underline; }
.sw-featured { width: 100%; margin-bottom: 28px; }

/* blog grid */
.sw-postgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 860px) { .sw-postgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .sw-postgrid { grid-template-columns: 1fr; } }
.sw-postcard { background: #fff; border: 1px solid var(--sw-line); overflow: hidden; display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; }
.sw-postcard:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(36,24,16,.1); }
.sw-postcard__img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.sw-postcard__body { padding: 18px 20px 22px; }
.sw-postcard__meta { font-size: .78rem; color: #8a7a64; margin-bottom: 6px; }
.sw-postcard h2 { font-size: 1.15rem; margin-bottom: 8px; }
.sw-postcard p { font-size: .9rem; color: var(--sw-muted); margin: 0 0 12px; }
.navigation.pagination { margin-top: 36px; }
.navigation .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.navigation .page-numbers { padding: 8px 14px; border: 1px solid var(--sw-line); background: #fff; font-size: .9rem; }
.navigation .page-numbers.current { background: var(--sw-brass); color: var(--sw-espresso); border-color: var(--sw-brass); }

/* search */
.sw-search { display: flex; gap: 8px; max-width: 420px; }
.sw-search input[type=search] { flex: 1; padding: 11px 14px; border: 1px solid var(--sw-line); background: #fff; font: inherit; }

/* order form */
.sw-order-form { display: flex; flex-direction: column; gap: 16px; }
.sw-field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; color: var(--sw-walnut); }
.sw-field input, .sw-field select, .sw-field textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--sw-line); background: var(--sw-parchment); font: 400 .95rem var(--sw-sans); color: var(--sw-charcoal); border-radius: 2px; }
.sw-field input:focus, .sw-field select:focus, .sw-field textarea:focus { outline: 2px solid var(--sw-brass); outline-offset: 1px; }
.sw-order-form__btn { padding: 14px 24px; }

/* footer */
.sw-footer { background: var(--sw-espresso); color: rgba(243,236,223,.75); padding: 44px 0 30px; }
.sw-footer__grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; font-size: .88rem; }
.sw-footer__brand { font-family: var(--sw-serif); font-size: 1.25rem; font-weight: 600; color: var(--sw-parchment); margin-bottom: 8px; }
.sw-footer a:hover { color: var(--sw-parchment); }
.sw-footer__credit { margin-top: 26px; font-size: .78rem; opacity: .6; }

/* chat launcher */
.sw-chat { position: fixed; right: 20px; bottom: 20px; z-index: 90; }
.sw-chat__btn { width: 58px; height: 58px; border-radius: 50%; background: var(--sw-brass); border: 0; font-size: 1.5rem; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 26px rgba(36,24,16,.35); animation: swPulse 2.6s ease-in-out infinite; }
@keyframes swPulse { 0%,100% { box-shadow: 0 10px 26px rgba(36,24,16,.35), 0 0 0 0 rgba(184,135,75,.5); } 50% { box-shadow: 0 10px 26px rgba(36,24,16,.35), 0 0 0 10px rgba(184,135,75,0); } }
.sw-chat__panel { display: none; position: absolute; bottom: 72px; right: 0; width: 270px; background: #fff; border: 1px solid var(--sw-line); box-shadow: 0 16px 40px rgba(36,24,16,.2); padding: 16px; }
.sw-chat__panel.is-open { display: block; }
.sw-chat__head { display: flex; justify-content: space-between; align-items: flex-start; }
.sw-chat__title { font-family: var(--sw-serif); font-size: 1.02rem; color: var(--sw-espresso); margin-bottom: 4px; }
.sw-chat__close { background: none; border: 0; cursor: pointer; color: #9a8b76; font-size: 1.2rem; line-height: 1; padding: 0 4px; }
.sw-chat__sub { font-size: .8rem; color: #6b5c49; margin-bottom: 14px; }
.sw-chat__dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--sw-moss); margin-right: 4px; }
.sw-chat__opt { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--sw-line); margin-bottom: 8px; font-size: .85rem; color: var(--sw-walnut); font-weight: 500; }
.sw-chat__opt:hover { background: var(--sw-parchment); }
@media (prefers-reduced-motion: reduce) { .sw-chat__btn { animation: none; } html { scroll-behavior: auto; } }

/* ---- Elementor page polish (classes applied to native containers) ---- */
.elementor-page .sw-site-content { overflow-x: clip; }
.sw-card { transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s; }
.sw-card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(36,24,16,.22); }
.sw-cat { transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s; }
.sw-cat:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(36,24,16,.12); }
.sw-cat .elementor-widget-image { overflow: hidden; }
.sw-cat .elementor-widget-image img { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.sw-cat:hover .elementor-widget-image img { transform: scale(1.06); }
.elementor-widget-text-editor p:last-child { margin-bottom: 0; }

/* ---- WooCommerce ---- */
.sw-wc { padding-top: 48px; padding-bottom: 68px; }
.woocommerce ul.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 0; padding: 0; list-style: none; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
@media (max-width: 860px) { .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .woocommerce ul.products { grid-template-columns: 1fr; } }
.sw-prod { background: #fff; border: 1px solid var(--sw-line); overflow: hidden; list-style: none; margin: 0 !important; width: auto !important; float: none !important; transition: transform .35s, box-shadow .35s; }
.sw-prod:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(36,24,16,.12); }
.sw-prod__thumb { display: block; aspect-ratio: 4/3; background: var(--sw-walnut) center/cover no-repeat; }
.sw-prod__body { padding: 16px 18px 20px; }
.sw-prod__title { font-size: 1.05rem; margin: 0 0 6px; }
.sw-prod__price { font-size: .92rem; color: var(--sw-muted); margin-bottom: 12px; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit,
.woocommerce a.button.alt, .woocommerce button.button.alt { background: var(--sw-brass); color: var(--sw-espresso); border-radius: 2px; font-weight: 500; padding: 11px 20px; }
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover { background: var(--sw-brass-light); color: var(--sw-espresso); }
.woocommerce div.product .product_title { font-family: var(--sw-serif); }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--sw-moss); font-weight: 600; }
.woocommerce span.onsale { background: var(--sw-moss); color: #fff; border-radius: 2px; }
