/* Milloak — Lightweight Mobile-First WooCommerce CSS */
:root {
  --paper: #fbfaf7;
  --white: #ffffff;
  --ink: #16181a;
  --ink-soft: #55564f;
  --sand: #f1ece2;
  --line: #e3ddd1;
  --clay: #96543a;
  --sage: #435334;
  --font-display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body {
  margin: 0; padding: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Layout */
.site-shell { display: flex; min-height: 100vh; flex-direction: column; background: var(--paper); }
.site-main { flex: 1 0 auto; }
.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: 20px; }
@media (min-width: 768px) { .wrap { padding-inline: 40px; } }
.mlk-sec { padding-block: 3.5rem; }
@media (min-width: 1024px) { .mlk-sec { padding-block: 5.25rem; } }
.page-head { padding-block: 2.75rem 2.25rem; border-bottom: 1px solid var(--line); }
@media (min-width: 1024px) { .page-head { padding-block: 4rem 3rem; } }

/* Typography */
.display { font-family: var(--font-display); font-weight: 400; line-height: 1.04; letter-spacing: -0.02em; margin: 0; color: var(--ink); }
.display-xl { font-size: clamp(2.4rem, 5.2vw, 4.5rem); }
.display-lg { font-size: clamp(1.85rem, 3.4vw, 2.9rem); }
.display-md { font-size: clamp(1.35rem, 2.2vw, 1.9rem); }
.label-mono {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-soft); margin: 0;
}
.lede { font-size: 1.05rem; line-height: 1.65; color: var(--ink-soft); max-width: 36rem; margin: 0; }
.muted { color: var(--ink-soft); }
.small { font-size: 13.5px; line-height: 1.6; }
.underline-link { text-decoration: underline; text-underline-offset: 4px; color: var(--ink); }
.underline-link:hover { color: var(--clay); }
.link-underline {
  display: inline-flex; align-items: center; gap: 6px; border-bottom: 1px solid var(--ink);
  padding-bottom: 2px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600;
}
.link-underline:hover { color: var(--clay); border-color: var(--clay); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border: 1px solid transparent; border-radius: 2px;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  cursor: pointer; transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #000; color: var(--paper); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 10.5px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* Fields & Panels */
.field {
  width: 100%; background: var(--white); border: 1px solid var(--line); border-radius: 2px;
  padding: 11px 13px; font-size: 15px; color: var(--ink); font-family: inherit;
}
.field:focus { outline: none; border-color: var(--ink); }
.field-label {
  display: block; font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 6px;
}
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 2px; }
.panel-sand { background: var(--sand); border: 1px solid var(--line); border-radius: 2px; }

/* Announcement & Header */
.announce { background: var(--ink); color: var(--paper); }
.announce-inner {
  display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 34px;
  font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; font-family: var(--font-mono);
}
.site-header { position: sticky; top: 0; z-index: 40; background: var(--paper); border-bottom: 1px solid var(--line); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

.header-main { display: flex; align-items: center; gap: 14px; padding-block: 14px; }
@media (min-width: 1024px) {
  .header-main { display: grid; grid-template-columns: auto 1fr auto; gap: 32px; padding-block: 18px; }
}
.menu-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px;
  margin-left: -8px; background: transparent; border: 0; color: var(--ink); cursor: pointer;
}
@media (min-width: 1024px) { .menu-btn { display: none; } }

.mlk-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.mlk-logo-word { font-family: var(--font-display); font-size: 22px; letter-spacing: 0.18em; text-transform: uppercase; line-height: 1; }

.header-search { display: none; }
@media (min-width: 1024px) { .header-search { display: block; max-width: 440px; width: 100%; margin-inline: auto; } }
.search-form {
  position: relative; display: flex; align-items: center; width: 100%;
  border: 1px solid var(--line); background: var(--white); border-radius: 2px;
}
.search-form:focus-within { border-color: var(--ink); }
.search-icon { position: absolute; left: 12px; color: var(--ink-soft); pointer-events: none; }
.search-input {
  flex: 1; min-width: 0; height: 42px; padding: 0 12px 0 36px; border: 0;
  background: transparent; font-size: 13.5px; color: var(--ink); outline: none;
}
.search-submit {
  height: 42px; padding-inline: 14px; border: 0; border-left: 1px solid var(--line);
  background: transparent; font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase;
  font-weight: 600; color: var(--ink); cursor: pointer;
}
.search-submit:hover { background: var(--sand); }

.header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
@media (min-width: 1024px) { .header-actions { margin-left: 0; gap: 18px; } }
.header-link, .cart-trigger {
  display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding-inline: 4px;
  background: transparent; border: 0; cursor: pointer; color: var(--ink);
  font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500;
}
.header-link:hover, .cart-trigger:hover { color: var(--clay); }
.header-link-text, .cart-trigger-text { display: none; }
@media (min-width: 1024px) { .header-link-text, .cart-trigger-text { display: inline; } }
.cart-count {
  min-width: 20px; height: 20px; padding-inline: 5px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--paper); border-radius: 999px; font-size: 10px; font-family: var(--font-mono);
}

.header-nav { display: none; border-top: 1px solid var(--line); }
@media (min-width: 1024px) { .header-nav { display: block; } }
.header-nav-inner { display: flex; align-items: center; justify-content: center; gap: 30px; min-height: 44px; }
.nav-link {
  font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft);
  padding-block: 12px; border-bottom: 1px solid transparent; white-space: nowrap;
}
.nav-link:hover, .nav-link-active { color: var(--ink); border-bottom-color: var(--ink); }

/* Drawers */
.mlk-drawer { position: fixed; inset: 0; z-index: 60; display: none; }
.mlk-drawer.is-open { display: block; }
.mlk-drawer-scrim { position: absolute; inset: 0; background: rgba(22,24,26,0.45); }
.mlk-drawer-panel {
  position: absolute; inset-block: 0; left: 0; width: 88%; max-width: 24rem;
  display: flex; flex-direction: column; background: var(--paper); overflow-y: auto;
}
.mlk-drawer-panel--right { left: auto; right: 0; max-width: 26rem; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.drawer-close { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; background: transparent; border: 0; color: var(--ink); cursor: pointer; }
.drawer-nav { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.drawer-nav a { border-bottom: 1px solid var(--line); padding: 15px 20px; font-family: var(--font-display); font-size: 1.3rem; color: var(--ink); }

/* Hero Slider */
.hero { display: grid; grid-template-columns: 1fr; border-bottom: 1px solid var(--line); }
@media (min-width: 1024px) { .hero { grid-template-columns: 1.15fr 0.85fr; } }
.hero-media { position: relative; min-height: 300px; background: var(--sand); overflow: hidden; }
@media (min-width: 640px) { .hero-media { min-height: 400px; } }
@media (min-width: 1024px) { .hero-media { min-height: 580px; } }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 550ms ease; }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }

.hero-panel {
  display: flex; flex-direction: column; justify-content: center;
  padding: 2.75rem 1.25rem; background: var(--paper);
}
@media (min-width: 768px) { .hero-panel { padding: 3.5rem 2.5rem; } }
@media (min-width: 1024px) { .hero-panel { padding: 4.5rem 3.5rem; border-left: 1px solid var(--line); } }
.hero-copy { display: none; }
.hero-copy.is-active { display: block; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.75rem; }
.hero-dots { display: flex; gap: 8px; margin-top: 2.25rem; }
.hero-dot { width: 14px; height: 5px; border: 0; padding: 0; background: var(--line); cursor: pointer; transition: all 200ms ease; }
.hero-dot.is-active { width: 32px; background: var(--ink); }

/* Product Grid & Tile */
.product-grid { display: grid; grid-template-columns: 1fr; gap: 2rem 1.5rem; }
@media (min-width: 560px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }

.tile {
  display: flex; flex-direction: column; background: var(--white);
  border: 1px solid var(--line); border-radius: 2px; overflow: hidden; transition: border-color 180ms ease;
}
.tile:hover { border-color: var(--ink); }
.tile-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--sand); }
.tile-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms ease; }
.tile:hover .tile-media img { transform: scale(1.03); }
.tile-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 18px; flex: 1; }
.tile-topline { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sage); }
.tile-topline .is-out { color: var(--ink-soft); }
.tile-sku { color: var(--ink-soft); }
.tile-name { font-family: var(--font-display); font-size: 1.2rem; line-height: 1.25; margin: 0; color: var(--ink); }
.tile-price { margin: 4px 0 0; font-size: 14.5px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--ink); }
.tile-price del { color: var(--ink-soft); font-weight: 400; margin-right: 6px; }
.tile-price ins { text-decoration: none; }

/* Benefits & Editorial */
.benefits {
  list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr;
  border: 1px solid var(--line); background: var(--white);
}
@media (min-width: 640px) { .benefits { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .benefits { grid-template-columns: repeat(4, 1fr); } }
.benefit { padding: 1.75rem; border-bottom: 1px solid var(--line); }
@media (min-width: 1024px) { .benefit { border-bottom: 0; border-right: 1px solid var(--line); } .benefit:last-child { border-right: 0; } }
.benefit-title { font-family: var(--font-display); font-size: 1.25rem; margin: 0 0 6px; }
.benefit-body { margin: 0; font-size: 13.5px; color: var(--ink-soft); line-height: 1.6; }

.editorial { display: grid; grid-template-columns: 1fr; gap: 2.25rem; align-items: center; }
@media (min-width: 1024px) { .editorial { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.editorial-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand); border: 1px solid var(--line); }
.editorial-media img { width: 100%; height: 100%; object-fit: cover; }

/* Shop Toolbar & Chips */
.chip {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--white);
  font-size: 12.5px; color: var(--ink-soft); cursor: pointer;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[data-active="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.shop-bar { display: flex; flex-direction: column; gap: 1rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
@media (min-width: 1024px) { .shop-bar { flex-direction: row; align-items: center; justify-content: space-between; } }

/* Single Product */
.pdp-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; margin-top: 1.75rem; }
@media (min-width: 1024px) { .pdp-grid { grid-template-columns: 1.05fr 0.95fr; gap: 4rem; } }
.pdp-main-img { aspect-ratio: 4 / 5; overflow: hidden; background: var(--sand); border: 1px solid var(--line); }
.pdp-main-img img { width: 100%; height: 100%; object-fit: cover; }
.pdp-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 12px; }
.pdp-thumb { aspect-ratio: 1/1; padding: 0; border: 1px solid var(--line); background: var(--sand); overflow: hidden; cursor: pointer; }
.pdp-thumb.is-active, .pdp-thumb:hover { border-color: var(--ink); }
.pdp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.qty-box { display: inline-flex; align-items: center; border: 1px solid var(--line); background: var(--white); height: 46px; }
.qty-box button { width: 40px; height: 100%; border: 0; background: transparent; cursor: pointer; font-size: 16px; color: var(--ink); }
.qty-box input { width: 40px; height: 100%; border: 0; text-align: center; font-size: 14px; color: var(--ink); -moz-appearance: textfield; }
.qty-box input::-webkit-inner-spin-button, .qty-box input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.pdp-tabs { margin-top: 3.5rem; border-top: 1px solid var(--line); padding-top: 1.75rem; }
.pdp-tabs-nav { display: flex; flex-wrap: wrap; gap: 1.5rem; border-bottom: 1px solid var(--line); }
.pdp-tab-btn {
  background: transparent; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px;
  padding: 0 0 12px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-soft); cursor: pointer;
}
.pdp-tab-btn.is-active { border-bottom-color: var(--ink); color: var(--ink); }
.pdp-tab-panel { display: none; max-width: 46rem; padding-block: 1.75rem; }
.pdp-tab-panel.is-active { display: block; }

/* Policy & Split Layouts */
.policy-layout { display: grid; grid-template-columns: 1fr; gap: 2.5rem; padding-block: 2.75rem 4rem; }
@media (min-width: 1024px) { .policy-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 4rem; } }
.prose p { margin: 0 0 1rem; color: var(--ink-soft); line-height: 1.75; }
.prose ul, .prose ol { padding-left: 1.25rem; margin: 0 0 1rem; color: var(--ink-soft); line-height: 1.75; }
.prose li { margin-bottom: 0.35rem; }
.prose h2, .prose h3 { font-family: var(--font-display); font-size: 1.45rem; font-weight: 400; margin: 1.85rem 0 0.6rem; color: var(--ink); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.prose a:hover { color: var(--clay); }
.nap-block { background: var(--white); border: 1px solid var(--line); padding: 1.5rem; border-radius: 2px; }
.nap-block address { font-style: normal; margin: 0.65rem 0; font-size: 14px; color: var(--ink); }
.form-grid-2 { display: grid; grid-template-columns: 1fr; gap: 1.1rem; }
@media (min-width: 640px) { .form-grid-2 { grid-template-columns: repeat(2, 1fr); } }

/* Footer */
.site-footer { margin-top: 4rem; border-top: 1px solid var(--line); background: var(--sand); }
.footer-grid { display: grid; gap: 2.5rem; padding-block: 3.5rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.35fr 0.85fr 0.95fr 1.15fr; } }
.footer-title { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 1rem; }
.footer-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-list a { font-size: 14px; color: var(--ink-soft); }
.footer-list a:hover { color: var(--ink); }
.footer-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 1rem; }
.footer-badge {
  display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line); background: var(--white);
  padding: 5px 9px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft);
}
.footer-bottom { border-top: 1px solid var(--line); }
.footer-bottom-inner {
  display: flex; flex-direction: column; gap: 6px; padding-block: 1.25rem;
  font-size: 12.5px; color: var(--ink-soft);
}
@media (min-width: 640px) { .footer-bottom-inner { flex-direction: row; align-items: center; justify-content: space-between; } }

/* WooCommerce Cart & Checkout */
.woocommerce .button, .woocommerce button.button, .woocommerce a.button,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button, .woocommerce #payment #place_order {
  background: var(--ink) !important; color: var(--paper) !important;
  font-family: var(--font-body) !important; font-size: 11.5px !important; font-weight: 600 !important;
  letter-spacing: 0.12em !important; text-transform: uppercase !important;
  padding: 13px 22px !important; border-radius: 2px !important; border: 1px solid transparent !important;
}
.woocommerce .button:hover, .woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover, .woocommerce #payment #place_order:hover { background: #000 !important; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select {
  border: 1px solid var(--line) !important; border-radius: 2px !important; padding: 10px 12px !important; background: var(--white) !important;
}
.woocommerce-cart .cart_totals, .woocommerce-checkout #order_review {
  background: var(--sand); border: 1px solid var(--line); padding: 1.5rem; border-radius: 2px;
}
.woocommerce-message, .woocommerce-info { border-top-color: var(--ink) !important; background: var(--sand) !important; color: var(--ink) !important; }
.woocommerce-error { border-top-color: var(--clay) !important; background: #fdf4f2 !important; }
