:root {
  --ink: #1f1a16;
  --muted: #6b625a;
  --line: #e6ddd3;
  --paper: #fffdf9;
  --sand: #f3efe8;
  --forest: #24362c;
  --forest-2: #1a2821;
  --clay: #9a3412;
  --clay-2: #7c2d12;
  --gold: #a68456;
  --shadow: 0 16px 40px rgba(36, 28, 22, 0.08);
  --serif: "Fraunces", "Times New Roman", serif;
  --sans: "Be Vietnam Pro", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--sand);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, textarea { font: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 560; line-height: 1.15; letter-spacing: -0.02em; }
.screen-reader-text, .skip-link:not(:focus) {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
}
.skip-link:focus { position: static; width: auto; height: auto; clip: auto; background: #fff; padding: 8px; }

.topbar {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: var(--forest); color: #f6f1ea; padding: 8px 6vw; font-size: 13px;
}
.topbar p { margin: 0; }

.site-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 18px 6vw;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.logo { display: flex; gap: 10px; align-items: center; text-decoration: none; color: var(--forest); }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text strong { font-family: var(--serif); font-size: 22px; }
.logo-text small { color: var(--muted); font-size: 12px; }
.header-search { display: flex; background: var(--sand); border-radius: 999px; overflow: hidden; border: 1px solid var(--line); }
.header-search input[type="search"] {
  flex: 1; border: 0; background: transparent; padding: 12px 18px; min-width: 0;
}
.header-search button[type="submit"] {
  align-self: center; margin: 4px; padding: 8px 16px; line-height: 1.2;
  border: 0; border-radius: 999px; background: var(--clay); color: #fff !important; cursor: pointer;
}
.header-tools { display: flex; gap: 16px; align-items: center; }
.tool { text-decoration: none; font-size: 14px; }
.tool span { display: block; color: var(--muted); font-size: 11px; }
.cart-tool span {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; margin-left: 4px;
  background: var(--clay); color: #fff; border-radius: 99px; font-size: 12px;
}

.nav-toggle, .nav-toggle-btn { display: none; }
.primary-nav { background: var(--paper); border-bottom: 1px solid var(--line); padding: 0 6vw; }
.menu, .footer-menu { display: flex; gap: 8px 22px; list-style: none; margin: 0; padding: 12px 0; flex-wrap: wrap; }
.menu a, .footer-menu a { text-decoration: none; font-weight: 500; }
.menu a:hover { color: var(--clay); }

.hero {
  display: grid; grid-template-columns: 1.1fr 0.9fr; min-height: 520px;
  background: var(--forest); color: #f7f3ec;
}
.hero-copy { padding: 72px 6vw; align-self: center; }
.hero h1 { font-size: clamp(40px, 5vw, 68px); margin: 8px 0 16px; }
.lede { font-size: 18px; max-width: 38rem; color: #e7e0d6; }
.eyebrow { margin: 0; text-transform: uppercase; letter-spacing: 0.14em; font-size: 12px; font-weight: 600; color: var(--gold); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-photo { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.hero-fallback { background: linear-gradient(160deg, #315244, #1a2821); }

.btn, .woocommerce a.button, .woocommerce button.button, .woocommerce a.button.alt,
.woocommerce button.button.alt, .quote-form button, button[type="submit"] {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--clay); color: #fff !important; text-decoration: none;
  border: 1px solid var(--clay); border-radius: 999px; padding: 12px 20px;
  font-weight: 600; cursor: pointer;
}
.btn:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .quote-form button:hover {
  background: var(--clay-2); border-color: var(--clay-2); color: #fff !important;
}
.btn-ghost { background: transparent; color: #fff !important; border-color: rgba(255,255,255,.45); }
.btn-ghost:hover { background: #fff; color: var(--forest) !important; }

.trust {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  padding: 28px 6vw; background: var(--paper); border-bottom: 1px solid var(--line);
}
.trust h2 { font-size: 22px; margin: 0 0 6px; }
.trust p { margin: 0; color: var(--muted); }

.section { padding: 48px 6vw 10px; }
.section-head, .group-title { display: flex; justify-content: space-between; gap: 16px; align-items: end; }
.section-head h2, .group h3 { margin: 0; font-size: clamp(28px, 4vw, 36px); }
.section-head a { color: var(--clay); font-weight: 600; }
.group { margin-top: 28px; }
.group-title { align-items: baseline; margin-bottom: 14px; }
.group-title h3 { font-size: 28px; }
.group-title p { margin: 0; color: var(--muted); }
.cat-grid, .featured-grid, .woocommerce ul.products {
  display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 16px;
  list-style: none; margin: 16px 0 0; padding: 0; clear: both;
}
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product, .featured-grid li {
  width: auto !important; float: none !important; margin: 0 !important;
  position: relative; display: flex; flex-direction: column;
  background: var(--paper); border-radius: 18px; overflow: hidden;
  box-shadow: var(--shadow);
}
.cat-card {
  display: flex; flex-direction: column; min-height: 100%;
  background: var(--paper); border-radius: 18px; overflow: hidden;
  box-shadow: var(--shadow); text-decoration: none;
}
.cat-card img, .cat-fallback,
.woocommerce ul.products li.product a img,
.featured-grid img {
  aspect-ratio: 4 / 3; width: 100%; height: auto; margin: 0;
  object-fit: cover; background: #ddd4c8; display: block;
}
.cat-fallback { display: block; }
.cat-card span { display: flex; flex-direction: column; padding: 12px 14px 16px; }
.woocommerce ul.products li.product a.woocommerce-loop-product__link,
.featured-grid li.product > a {
  display: flex; flex-direction: column; flex: 1; color: inherit; text-decoration: none;
}
.featured-name, .woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2 {
  display: block; padding: 14px 14px 0; margin: 0 !important;
  font-family: var(--sans); font-size: 16px !important; font-weight: 600; line-height: 1.35;
}
.woocommerce ul.products li.product .price,
.featured-grid .price {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px;
  margin: 8px 0 0 !important; padding: 0 14px 14px; color: var(--ink);
}
.woocommerce ul.products li.product .price del,
.featured-grid .price del {
  color: #9a9188; font-size: 13px; font-weight: 500; opacity: 1;
}
.woocommerce ul.products li.product .price ins,
.featured-grid .price ins {
  text-decoration: none; font-weight: 700; color: var(--clay); background: none;
}
.woocommerce ul.products li.product .button {
  position: static; margin: auto 14px 16px; align-self: flex-start;
}
.woocommerce ul.products li.product .onsale,
.woocommerce span.onsale {
  position: absolute; top: 12px; left: 12px; right: auto; margin: 0;
  z-index: 2; min-height: 0; min-width: 0; width: auto; height: auto;
  line-height: 1.2; padding: 6px 10px; border-radius: 999px;
  background: var(--clay); color: #fff; font-size: 12px; font-weight: 600;
}
.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering { float: none; margin: 0 0 8px; }
.woocommerce .woocommerce-ordering { display: flex; justify-content: flex-end; }
.woocommerce nav.woocommerce-pagination {
  display: block; clear: both; margin: 28px 0 0; text-align: center;
}
.woocommerce nav.woocommerce-pagination ul.page-numbers {
  display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 8px; margin: 0; padding: 0; border: 0; list-style: none; white-space: normal;
}
.woocommerce nav.woocommerce-pagination ul.page-numbers li {
  float: none; display: block; margin: 0; padding: 0; border: 0; overflow: visible;
}
.woocommerce nav.woocommerce-pagination ul.page-numbers a,
.woocommerce nav.woocommerce-pagination ul.page-numbers span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; margin: 0; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 14px; font-weight: 600; line-height: 1;
  text-decoration: none;
}
.woocommerce nav.woocommerce-pagination ul.page-numbers a:hover,
.woocommerce nav.woocommerce-pagination ul.page-numbers a:focus,
.woocommerce nav.woocommerce-pagination ul.page-numbers span.current {
  background: var(--forest); border-color: var(--forest); color: #fff;
}
.woocommerce nav.woocommerce-pagination ul.page-numbers span.dots {
  min-width: 24px; border-color: transparent; background: transparent; color: var(--muted);
}

.materials, .quote-band {
  margin: 42px 6vw; padding: 36px; border-radius: 24px; display: grid; gap: 24px;
}
.materials { background: var(--paper); grid-template-columns: 0.8fr 1.2fr; align-items: center; }
.materials ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.materials li { padding: 14px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; }
.materials span { color: var(--muted); }
.quote-band { background: var(--forest); color: #f7f3ec; grid-template-columns: 1fr auto; align-items: center; }
.quote-band h2, .materials h2 { margin: 8px 0; font-size: 36px; }
.quote-band p { margin: 0; color: #e7e0d6; }

.page-wrap { padding: 28px 6vw 64px; }
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 12px; }
.shop-intro h1 { font-size: clamp(36px, 4vw, 52px); margin: 6px 0; }
.shop-intro p { max-width: 40rem; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 22px; }
.chips a { text-decoration: none; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 14px; }
.chips a.is-current { background: var(--forest); color: #fff; border-color: var(--forest); }
.woocommerce-breadcrumb { color: var(--muted); font-size: 14px; margin-bottom: 12px; }
.woocommerce-breadcrumb a { color: var(--ink); }

.single-product div.product {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 36px; align-items: start;
}
.woocommerce div.product div.images, .woocommerce div.product div.summary { float: none !important; width: auto !important; margin: 0 !important; }
.woocommerce-product-gallery { grid-column: 1; grid-row: 1; }
.summary { grid-column: 2; grid-row: 1; background: var(--paper); border-radius: 24px; padding: 24px; }
.woocommerce-tabs, .related, .upsells { grid-column: 1 / -1; }
.summary h1 { font-size: clamp(28px, 7vw, 40px); margin-top: 0; }
.price-kicker { margin: 0; color: var(--gold); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.summary .price, .wholesale-price { font-size: clamp(22px, 5vw, 28px); margin: 0 0 8px; }
.summary .price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.summary .price del, .summary .price ins { display: inline-block; position: static; margin: 0; }
.summary .price del { color: #9a9188; font-size: 0.72em; font-weight: 500; opacity: 1; }
.summary .price ins { text-decoration: none; font-weight: 700; color: var(--clay); background: none; }
.woocommerce div.product form.cart { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.woocommerce div.product form.cart .quantity,
.woocommerce div.product form.cart .button { float: none !important; margin: 0 !important; }
.woocommerce div.product form.cart .quantity .qty {
  width: 72px; height: 48px; border: 1px solid var(--line); border-radius: 12px; text-align: center;
}
.wholesale-price { font-size: 16px; color: var(--forest); }
.wholesale-price span { color: var(--muted); font-weight: 400; }
.spec-label { margin: 16px 0 6px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.spec-table { width: 100%; border-collapse: collapse; background: transparent; }
.spec-table th, .spec-table td { text-align: left; vertical-align: top; padding: 8px 8px 8px 0; border-bottom: 1px solid var(--line); }
.spec-table th { width: 34%; color: var(--muted); font-weight: 500; }
.woocommerce-tabs ul.tabs { padding: 0; margin: 12px 0; list-style: none; display: flex; gap: 8px; }
.woocommerce-tabs ul.tabs::before { display: none; }
.woocommerce-tabs ul.tabs li { background: transparent; border: 0; border-radius: 999px; padding: 0; }
.woocommerce-tabs ul.tabs li a { padding: 8px 14px; }
.woocommerce-tabs ul.tabs li.active { background: var(--forest); }
.woocommerce-tabs ul.tabs li.active a { color: #fff; }
.woocommerce-tabs .panel { background: var(--paper); border-radius: 18px; padding: 8px 18px 18px; }

.quote-box { margin-top: 18px; padding-top: 8px; border-top: 1px solid var(--line); }
.quote-box h2 { font-size: 28px; margin-bottom: 6px; }
.quote-note, .quote-product { color: var(--muted); margin-top: 0; }
.quote-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quote-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.quote-form input, .quote-form textarea, .woocommerce form .input-text, .woocommerce-input-wrapper input, .woocommerce-input-wrapper select, .woocommerce .quantity .qty, select.orderby {
  border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #fff; width: 100%; font-size: 16px;
}
.quote-wide textarea { min-height: 90px; }
.quote-result { margin: 10px 0 0; font-weight: 600; }
.quote-result.is-ok { color: var(--forest); }
.quote-result.is-error { color: var(--clay); }
.quote-hp { display: none !important; }

.site-footer { background: var(--forest-2); color: #efe8df; padding: 42px 6vw 24px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 24px; }
.footer-brand { font-family: var(--serif); font-size: 22px; margin: 0 0 8px; }
.site-footer a { color: #fff; overflow-wrap: anywhere; }
.footer-menu { display: flex; flex-direction: column; gap: 6px; padding: 0; }
.footer-note { border-top: 1px solid rgba(255,255,255,.12); margin-top: 24px; padding-top: 14px; color: #cfc4b6; font-size: 13px; }
.woocommerce-message, .woocommerce-info, .woocommerce-error { border-top-color: var(--clay); background: var(--paper); }
.wc-block-components-button,
.wc-block-cart__submit-button {
  background: var(--clay) !important;
  color: #fff !important;
  border-radius: 999px !important;
  font-weight: 600;
}
.wc-block-components-button:hover,
.wc-block-cart__submit-button:hover { background: var(--clay-2) !important; }
.woocommerce-cart .cart, .woocommerce-checkout { background: var(--paper); border-radius: 18px; padding: 12px; }

@media (max-width: 980px) {
  .hero, .trust, .materials, .quote-band, .footer-grid, .single-product div.product, .cat-grid, .featured-grid, .woocommerce ul.products {
    grid-template-columns: 1fr 1fr;
  }
  .site-header {
    grid-template-columns: 1fr auto;
    grid-template-areas: "logo tools" "search search";
    gap: 12px 16px;
  }
  .logo { grid-area: logo; }
  .header-tools { grid-area: tools; justify-content: flex-end; }
  .header-search { grid-area: search; }
  .hero, .materials, .quote-band, .single-product div.product { grid-template-columns: 1fr; }
  .summary, .woocommerce-tabs, .related, .upsells { grid-column: auto; grid-row: auto; }
  .woocommerce-product-gallery { max-width: 100%; }
  .nav-toggle-btn {
    display: flex; align-items: center; justify-content: space-between;
    margin: 0; padding: 14px 6vw; width: 100%;
    background: var(--paper); border: 0; border-bottom: 1px solid var(--line);
    font-weight: 600; cursor: pointer;
  }
  .nav-toggle-btn::after {
    content: ""; width: 8px; height: 8px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
    transform: rotate(45deg); margin-top: -4px;
  }
  .nav-toggle:checked + .nav-toggle-btn::after { transform: rotate(-135deg); margin-top: 4px; }
  .primary-nav { display: none; padding: 0 6vw 8px; }
  .nav-toggle:checked ~ .primary-nav { display: block; }
  .menu { flex-direction: column; gap: 0; padding: 0; }
  .menu li { border-top: 1px solid var(--line); }
  .menu a { display: block; padding: 12px 0; }
  .woocommerce div.product form.cart .button { flex: 1 1 180px; }
  .wc-block-cart .wc-block-components-sidebar-layout,
  .wc-block-checkout .wc-block-components-sidebar-layout { display: block; }
  .wc-block-cart__sidebar, .wc-block-checkout__sidebar, .wc-block-components-sidebar { width: 100% !important; }
  .wc-block-components-product-name, .wc-block-components-product-metadata { overflow-wrap: anywhere; }
}
@media (max-width: 680px) {
  .trust, .footer-grid, .cat-grid, .featured-grid, .woocommerce ul.products, .quote-grid { grid-template-columns: 1fr; }
  .site-header { grid-template-columns: 1fr; grid-template-areas: "logo" "search" "tools"; }
  .header-tools { justify-content: space-between; gap: 10px 14px; }
  .topbar { display: none; }
  .hero { min-height: 0; }
  .hero-copy { padding: 36px 6vw; }
  .hero h1 { font-size: clamp(32px, 10vw, 48px); }
  .section-head, .group-title, .quote-band { align-items: start; flex-direction: column; }
  .quote-band, .materials { margin: 24px 4vw; padding: 22px; }
  .materials li { flex-direction: column; align-items: flex-start; gap: 2px; }
  .page-wrap, .section { padding-left: 4vw; padding-right: 4vw; }
  .summary { padding: 18px; border-radius: 18px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin-right: -4vw; padding-right: 4vw; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chips a { flex: none; }
  .woocommerce .woocommerce-ordering, .woocommerce .woocommerce-ordering select { width: 100%; }
  .woocommerce ul.products li.product .button { align-self: stretch; text-align: center; }
  .woocommerce .col2-set .col-1, .woocommerce .col2-set .col-2,
  .woocommerce form .form-row-first, .woocommerce form .form-row-last { float: none; width: 100%; }
  .woocommerce-tabs ul.tabs { flex-wrap: wrap; }
  .spec-table th { width: 38%; }
  .wc-block-cart-items, .wc-block-cart-items tbody, .wc-block-cart-items tr { display: block; width: 100%; }
  .wc-block-cart-items__row {
    display: grid !important;
    grid-template-columns: 72px minmax(0, 1fr) !important;
    gap: 8px 12px !important;
  }
  .wc-block-cart-item__image { grid-column: 1 !important; grid-row: 1 / span 3 !important; }
  .wc-block-cart-item__product { grid-column: 2 !important; grid-row: 1 !important; min-width: 0; }
  .wc-block-cart-item__total { grid-column: 2 !important; grid-row: 2 !important; min-width: 0; text-align: left; justify-items: start; }
}
