/*
Theme Name: Met-Work
Template: storefront
Version: 0.1.0
Description: Warm editorial storefront styles for the Met-Work furniture prototype.
Text Domain: metwork
*/

/* =========================================================
   1. Design tokens
   ========================================================= */
:root {
  --mw-font: "Noto Sans Thai", -apple-system, "Segoe UI", "Helvetica Neue", sans-serif;
  --mw-ink: #282c25;
  --mw-bg: #f8f6f1;
  --mw-white: #ffffff;
  --mw-olive: #36432f;
  --mw-olive-dark: #2b3526;
  --mw-muted: #797b70;
  --mw-border: #deded4;
  --mw-accent: #a88155;
  --mw-cream-deep: #f1ecdf;
  --mw-rust: #8a3d2c; /* error semantics only */
  --mw-radius: 2px;
  --mw-shell-max: 1360px;
  --mw-shell-pad: 48px;
  --mw-page-max: 1180px;
  --mw-payment-shadow: 0 1px 2px rgba(40, 44, 37, 0.05), 0 14px 34px rgba(40, 44, 37, 0.07);
}

/* =========================================================
   2. Base and reset
   ========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--mw-bg);
  color: var(--mw-ink);
  font-family: var(--mw-font);
  font-size: 16px;
  line-height: 1.7;
  overflow-wrap: break-word;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 16px;
  font-weight: 500;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

h1 { font-size: 40px; }
h2 { font-size: 30px; }
h3 { font-size: 20px; }

p {
  margin: 0 0 16px;
}

a {
  color: inherit;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
}

img {
  border: 0;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

input,
select,
textarea {
  font: inherit;
}

form {
  min-width: 0;
  max-width: 100%;
}

address {
  font-style: normal;
}

abbr[title] {
  text-decoration: none;
}

abbr.required {
  color: var(--mw-accent);
}

::placeholder {
  color: var(--mw-muted);
  opacity: 1;
}

input[type="checkbox"],
input[type="radio"] {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin: 0;
  accent-color: var(--mw-olive);
}

/* =========================================================
   3. Accessibility
   ========================================================= */
:focus-visible {
  outline: 2px solid var(--mw-ink);
  outline-offset: 3px;
}

.custom-copy :focus-visible,
.space-card :focus-visible,
.announcement :focus-visible {
  outline-color: var(--mw-white);
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--mw-white);
  color: var(--mw-ink);
  padding: 12px 18px;
  border: 1px solid var(--mw-ink);
  font-size: 14px;
  text-decoration: none;
}

.skip-link:focus,
.skip-link:focus-visible {
  left: 16px;
  top: 16px;
}

#main {
  scroll-margin-top: 130px;
}

/* =========================================================
   4. Layout shells
   ========================================================= */
.header-inner,
.hero,
.section,
.catalog-top,
.custom-section,
.footer-top,
.footer-bottom {
  width: 100%;
  max-width: var(--mw-shell-max);
  margin-inline: auto;
  padding-inline: var(--mw-shell-pad);
}

.announcement,
.value-strip {
  width: 100%;
  padding-inline: max(var(--mw-shell-pad), calc((100% - var(--mw-shell-max)) / 2 + var(--mw-shell-pad)));
}

.page-shell {
  max-width: var(--mw-page-max);
  margin-inline: auto;
  padding: 48px var(--mw-shell-pad) 96px;
}

/* =========================================================
   5. Announcement bar
   ========================================================= */
.announcement {
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--mw-ink);
  color: var(--mw-bg);
  font-size: 12px;
  overflow: hidden;
}

.announcement span {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prototype-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 1 auto;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: rgba(248, 246, 241, 0.85);
}

.prototype-label i {
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  background: var(--mw-accent);
}

/* =========================================================
   6. Header and navigation
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--mw-bg);
  border-bottom: 1px solid var(--mw-border);
}

body.admin-bar .site-header {
  top: 32px;
}

.header-inner {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--mw-ink);
  text-decoration: none;
  white-space: nowrap;
}

.wordmark span {
  color: var(--mw-accent);
}

.wordmark-dot {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--mw-muted);
  margin-left: 2px;
  transform: translateY(-7px);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  padding: 8px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--mw-ink);
  text-decoration: none;
}

.main-nav a:hover {
  color: var(--mw-olive);
  text-decoration: underline;
  text-decoration-color: var(--mw-accent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 6px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--mw-ink);
}

.header-actions a:hover {
  color: var(--mw-olive);
}

.cart-link {
  position: relative;
}

.cart-link span {
  position: absolute;
  top: 0;
  right: -4px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--mw-ink);
  color: var(--mw-white);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1;
  border-radius: var(--mw-radius);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--mw-ink);
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
}

/* =========================================================
   7. Shared type helpers
   ========================================================= */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mw-muted);
}

.eyebrow .line {
  display: inline-block;
  width: 40px;
  height: 1px;
  background: var(--mw-accent);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--mw-ink);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.text-link:hover {
  color: var(--mw-olive);
  text-decoration: underline;
  text-decoration-color: var(--mw-accent);
  text-underline-offset: 5px;
}

.text-link svg {
  flex: 0 0 auto;
  transition: transform 0.25s ease;
}

.text-link:hover svg {
  transform: translateX(3px);
}

/* =========================================================
   8. Buttons
   ========================================================= */
.button,
.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,
.added_to_cart.wc-forward {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 8px 26px;
  background: var(--mw-olive);
  color: var(--mw-white);
  border: 1px solid transparent;
  border-radius: var(--mw-radius);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  overflow-wrap: anywhere;
}

.button svg {
  flex: 0 0 auto;
  transition: transform 0.25s ease;
}

.button:hover svg {
  transform: translateX(3px);
}

.button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.added_to_cart.wc-forward:hover {
  background: var(--mw-olive-dark);
  color: var(--mw-white);
  text-decoration: none;
}

.button-light {
  background: var(--mw-white);
  color: var(--mw-ink);
}

.button-light:hover {
  background: var(--mw-cream-deep);
  color: var(--mw-ink);
}

.button:disabled,
.woocommerce a.button:disabled,
.woocommerce button.button:disabled,
.woocommerce input.button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.button.full,
#place_order,
.checkout-button,
.woocommerce-form-login__submit {
  width: 100%;
}

.woocommerce-message .button,
.woocommerce-info .button,
.woocommerce-error .button {
  min-height: 44px;
  padding: 6px 16px;
  font-size: 13px;
  margin-left: 12px;
}

.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  min-height: 50px;
  padding: 8px 26px;
  background: var(--mw-olive);
  color: var(--mw-white);
  border-radius: var(--mw-radius);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

/* =========================================================
   9. Forms base
   ========================================================= */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="password"],
input[type="search"],
input[type="date"],
input[type="datetime-local"],
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 9px 14px;
  background: var(--mw-white);
  border: 1px solid var(--mw-border);
  border-radius: var(--mw-radius);
  color: var(--mw-ink);
  font-size: 15px;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23282c25' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

input:disabled,
select:disabled,
textarea:disabled {
  background: var(--mw-bg);
  cursor: not-allowed;
}

label {
  font-size: 13.5px;
  color: var(--mw-ink);
}

fieldset {
  margin: 0 0 24px;
  padding: 16px 20px 24px;
  border: 1px solid var(--mw-border);
  border-radius: var(--mw-radius);
}

legend {
  padding: 0 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mw-muted);
}

.form-row,
.woocommerce-form-row {
  margin: 0 0 18px;
  min-width: 0;
}

.woocommerce-form__label-for-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  cursor: pointer;
}

.woocommerce-privacy-policy-text {
  font-size: 13px;
  color: var(--mw-muted);
}

/* Quantity */
.quantity {
  display: inline-flex;
  min-width: 0;
}

.quantity input.qty {
  width: 72px;
  min-height: 50px;
  text-align: center;
}

.shop_table .quantity input.qty {
  min-height: 44px;
  width: 64px;
}

/* =========================================================
   10. Hero
   ========================================================= */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 44fr) minmax(0, 56fr);
  gap: 48px;
  min-height: 620px;
  padding-top: 48px;
  padding-bottom: 56px;
  align-items: stretch;
}

.hero-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-copy h1 {
  margin: 12px 0 24px;
  font-size: 64px;
  font-weight: 500;
  line-height: 1.32;
  letter-spacing: -0.5px;
}

.soft-word {
  color: var(--mw-accent);
}

.hero-description {
  max-width: 44ch;
  font-size: 17px;
  line-height: 1.8;
  color: var(--mw-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 32px;
}

.hero-note {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  max-width: 420px;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--mw-border);
}

.hero-note span {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--mw-accent);
}

.hero-note p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--mw-muted);
}

.hero-visual {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: var(--mw-cream-deep);
}

.hero-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(40, 44, 37, 0.16);
}

.hero-image-label {
  position: absolute;
  z-index: 2;
  top: 20px;
  left: 22px;
  color: var(--mw-white);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.hero-product-label {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 100%;
  padding: 14px 20px;
  background: var(--mw-white);
  color: var(--mw-ink);
  text-decoration: none;
}

.hero-product-label small {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--mw-muted);
}

.hero-product-label strong {
  display: block;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.hero-product-label svg {
  flex: 0 0 auto;
  color: var(--mw-olive);
  transition: transform 0.25s ease;
}

.hero-product-label:hover svg {
  transform: translateX(3px);
}

/* =========================================================
   11. Value strip
   ========================================================= */
.value-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 24px;
  padding-top: 18px;
  padding-bottom: 18px;
  border-top: 1px solid var(--mw-border);
  border-bottom: 1px solid var(--mw-border);
  background: var(--mw-white);
  font-size: 14px;
}

.value-strip span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.value-strip b {
  font-weight: 600;
  color: var(--mw-accent);
  margin-right: 10px;
}

/* =========================================================
   12. Section scaffolding
   ========================================================= */
.section {
  padding-top: 56px;
  padding-bottom: 56px;
}

.section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 40px;
}

.section-heading h2 {
  margin: 8px 0 0;
}

.section-heading p {
  margin: 0;
  max-width: 42ch;
  color: var(--mw-muted);
}

.section-heading > div {
  min-width: 0;
}

/* =========================================================
   13. Product grid and cards
   ========================================================= */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.product-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.product-card-photo {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--mw-white);
  border: 1px solid var(--mw-border);
}

.product-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.product-card:hover .product-card-photo img,
.product-card:focus-within .product-card-photo img {
  transform: scale(1.025);
}

.product-card-tag {
  position: absolute;
  z-index: 1;
  top: 12px;
  left: 12px;
  padding: 4px 9px;
  background: var(--mw-white);
  color: var(--mw-ink);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.product-card-open {
  position: absolute;
  z-index: 1;
  right: 12px;
  bottom: 12px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--mw-white);
  color: var(--mw-ink);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.product-card:hover .product-card-open,
.product-card:focus-within .product-card-open {
  opacity: 1;
  transform: translateY(0);
}

.product-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0 12px;
}

.product-card-meta > div {
  min-width: 0;
}

.product-card-kind {
  margin: 0 0 4px;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--mw-muted);
  overflow-wrap: anywhere;
}

.product-card-meta h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.45;
}

.product-card-meta h3 a {
  color: var(--mw-ink);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.product-card-meta h3 a:hover {
  color: var(--mw-olive);
}

.product-card-price {
  margin: 0;
  flex: 0 0 auto;
  font-size: 15px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.product-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--mw-border);
  font-size: 13px;
  color: var(--mw-muted);
}

.product-card-bottom span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.material-dots {
  flex: 0 0 auto;
  display: inline-flex;
  gap: 5px;
}

.material-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(40, 44, 37, 0.12);
}

.material-dots i:nth-child(1) {
  background: #c8a578;
}

.material-dots i:nth-child(2) {
  background: #7d5a3c;
}

.material-dots i:nth-child(3) {
  background: #3f4a38;
}

/* =========================================================
   14. Spaces grid
   ========================================================= */
.space-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
}

.space-card {
  position: relative;
  display: block;
  height: 420px;
  overflow: hidden;
  background: var(--mw-ink);
  text-decoration: none;
}

.space-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.space-card:hover img {
  transform: scale(1.025);
}

.space-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(40, 44, 37, 0.3);
  transition: background 0.25s ease;
}

.space-card:hover::before {
  background: rgba(40, 44, 37, 0.4);
}

.space-card > div {
  position: absolute;
  z-index: 2;
  left: 24px;
  right: 24px;
  bottom: 20px;
  color: var(--mw-white);
}

.space-card small {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.85);
}

.space-card h3 {
  margin: 0 0 6px;
  font-size: 21px;
  font-weight: 500;
  color: var(--mw-white);
  overflow-wrap: anywhere;
}

.space-card span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  overflow-wrap: anywhere;
}

.space-card svg {
  flex: 0 0 auto;
  transition: transform 0.25s ease;
}

.space-card:hover svg {
  transform: translateX(3px);
}

/* =========================================================
   15. Custom section (photo + deep olive copy)
   ========================================================= */
.custom-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 520px;
  margin-top: 8px;
}

.custom-photo {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  background: var(--mw-cream-deep);
}

.custom-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.custom-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(40, 44, 37, 0.28);
}

.custom-photo span {
  position: absolute;
  left: 24px;
  bottom: 20px;
  color: var(--mw-white);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.custom-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px;
  background: var(--mw-olive);
  color: var(--mw-white);
}

.custom-copy .eyebrow {
  color: rgba(255, 255, 255, 0.75);
}

.custom-copy h2 {
  margin: 0 0 20px;
}

.custom-copy > p:not(.eyebrow) {
  max-width: 46ch;
  color: rgba(255, 255, 255, 0.88);
}

.custom-copy .button {
  align-self: flex-start;
  margin-top: 12px;
}

.custom-details {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  margin-top: 36px;
}

.custom-details span {
  padding: 0 20px;
  border-left: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.85);
  overflow-wrap: anywhere;
}

.custom-details span:first-child {
  padding-left: 0;
  border-left: 0;
}

/* =========================================================
   16. Process
   ========================================================= */
.process-section {
  padding-bottom: 96px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}

.process-step {
  min-width: 0;
  padding-top: 24px;
  border-top: 1px solid var(--mw-border);
}

.process-step span {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--mw-accent);
}

.process-step h3 {
  margin: 0 0 8px;
  font-size: 19px;
}

.process-step p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--mw-muted);
}

/* =========================================================
   17. Footer
   ========================================================= */
.site-footer {
  background: var(--mw-cream-deep);
  border-top: 1px solid var(--mw-border);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  padding-top: 64px;
  padding-bottom: 48px;
}

.footer-top > div {
  min-width: 0;
}

.site-footer .wordmark {
  font-size: 20px;
}

.footer-top p {
  margin: 16px 0 0;
  max-width: 38ch;
  font-size: 14.5px;
  color: var(--mw-muted);
  overflow-wrap: anywhere;
}

.footer-top .eyebrow {
  margin-bottom: 8px;
}

.footer-top a:not(.wordmark) {
  display: block;
  padding: 6px 0;
  font-size: 15px;
  color: var(--mw-ink);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.footer-top a:not(.wordmark):hover {
  color: var(--mw-olive);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 20px;
  padding-bottom: 20px;
  border-top: 1px solid var(--mw-border);
  font-size: 12.5px;
  color: var(--mw-muted);
}

.footer-bottom span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.footer-bottom a {
  color: inherit;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--mw-ink);
  text-decoration: underline;
}

/* =========================================================
   18. Page shell and content typography
   ========================================================= */
.page-heading {
  margin-bottom: 32px;
}

.page-heading h1 {
  margin: 0;
}

.page-shell h2 {
  margin-top: 36px;
}

.page-shell p a {
  color: var(--mw-ink);
  text-decoration: underline;
  text-decoration-color: var(--mw-accent);
  text-underline-offset: 3px;
}

.page-shell ul,
.page-shell ol {
  padding-left: 1.25em;
}

.page-shell blockquote {
  margin: 24px 0;
  padding-left: 16px;
  border-left: 2px solid var(--mw-olive);
  color: var(--mw-muted);
}

.page-shell table {
  width: 100%;
  border-collapse: collapse;
}

.page-shell table td,
.page-shell table th {
  padding: 10px 12px;
  border-bottom: 1px solid var(--mw-border);
  text-align: left;
  vertical-align: top;
}

.alignleft {
  float: left;
  margin: 4px 24px 16px 0;
}

.alignright {
  float: right;
  margin: 4px 0 16px 24px;
}

.aligncenter {
  display: block;
  margin-inline: auto;
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text,
.wp-block-image figcaption {
  font-size: 13px;
  color: var(--mw-muted);
}

/* =========================================================
   19. Catalog
   ========================================================= */
.catalog-top {
  padding-top: 64px;
}

.catalog-top h1 {
  margin: 0 0 12px;
  font-size: 44px;
  font-weight: 500;
}

.catalog-top p {
  margin: 0;
  max-width: 52ch;
  color: var(--mw-muted);
}

.catalog-section {
  padding-top: 32px;
  padding-bottom: 96px;
}

.catalog-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px 24px;
  margin: 32px 0 16px;
  padding: 24px;
  background: var(--mw-white);
  border: 1px solid var(--mw-border);
}

.catalog-filters label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  font-size: 12.5px;
  color: var(--mw-muted);
}

.catalog-filters select {
  min-width: 150px;
  width: auto;
}

.catalog-filters input[type="number"] {
  width: 130px;
}

.catalog-filters .button {
  align-self: flex-end;
}

.catalog-count {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 24px;
  margin-bottom: 28px;
  font-size: 14px;
}

.catalog-count span {
  color: var(--mw-muted);
}

.empty-state {
  padding: 72px 24px;
  background: var(--mw-white);
  border: 1px solid var(--mw-border);
  text-align: center;
}

.empty-state h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.empty-state p {
  margin: 0 0 20px;
  color: var(--mw-muted);
}

/* =========================================================
   20. Single product
   ========================================================= */
.product-page {
  padding-top: 40px;
  padding-bottom: 96px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  font-size: 13px;
  color: var(--mw-muted);
}

.breadcrumbs a {
  color: var(--mw-ink);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--mw-olive);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.breadcrumbs span {
  color: var(--mw-border);
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 56fr) minmax(0, 44fr);
  gap: 48px;
  align-items: start;
}

.product-gallery {
  min-width: 0;
}

.main-product-image {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--mw-white);
  border: 1px solid var(--mw-border);
  cursor: zoom-in;
}

.main-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.main-product-image > span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--mw-white);
  border: 1px solid var(--mw-border);
  color: var(--mw-ink);
}

.gallery-thumbnails {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.gallery-thumbnails button {
  width: 80px;
  height: 80px;
  padding: 0;
  overflow: hidden;
  background: var(--mw-white);
  border: 1px solid var(--mw-border);
}

.gallery-thumbnails button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-thumbnails button:hover,
.gallery-thumbnails button.is-selected {
  border-color: var(--mw-ink);
}

.product-details {
  min-width: 0;
}

.product-details h1 {
  margin: 8px 0 16px;
  font-size: 40px;
  font-weight: 500;
  line-height: 1.3;
}

.product-intro {
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.85;
}

.price {
  margin: 16px 0;
  font-size: 24px;
  font-weight: 600;
  color: var(--mw-ink);
  font-variant-numeric: tabular-nums;
}

.price del {
  color: var(--mw-muted);
  font-size: 0.72em;
  font-weight: 400;
}

.price ins {
  text-decoration: none;
}

.selection-intro {
  margin: 20px 0 12px;
  font-size: 14px;
  color: var(--mw-muted);
}

.purchase-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--mw-muted);
  overflow-wrap: anywhere;
}

.purchase-note svg {
  flex: 0 0 auto;
  color: var(--mw-accent);
}

.woocommerce div.product form.cart {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px;
  margin: 24px 0 0;
}

.woocommerce div.product form.cart table.variations {
  width: 100%;
  margin: 0 0 8px;
  border: 0;
  border-collapse: collapse;
  background: transparent;
}

.woocommerce div.product form.cart table.variations th,
.woocommerce div.product form.cart table.variations td {
  background: transparent;
  border: 0;
  padding: 6px 12px 6px 0;
  text-align: left;
  vertical-align: middle;
}

.woocommerce div.product form.cart table.variations .label {
  width: 130px;
  font-size: 13.5px;
  color: var(--mw-ink);
}

.woocommerce div.product form.cart table.variations select {
  width: 100%;
  max-width: none;
}

.woocommerce .reset_variations {
  font-size: 13px;
  color: var(--mw-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.woocommerce .reset_variations:hover {
  color: var(--mw-ink);
}

.woocommerce-variation-price {
  margin-bottom: 8px;
}

.woocommerce .variations_button {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.woocommerce div.product form.cart .single_add_to_cart_button {
  min-height: 50px;
  padding: 8px 32px;
}

.woocommerce div.product form.cart div.quantity {
  margin: 0;
}

.product-accordion {
  margin-top: 40px;
  border-top: 1px solid var(--mw-border);
}

.product-accordion details {
  border-bottom: 1px solid var(--mw-border);
}

.product-accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  font-size: 15.5px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

.product-accordion summary::-webkit-details-marker {
  display: none;
}

.product-accordion summary::after {
  content: "+";
  flex: 0 0 auto;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  color: var(--mw-muted);
}

.product-accordion details[open] summary::after {
  content: "\2212";
}

.product-accordion details > div,
.product-accordion details > p {
  padding: 0 0 20px;
  margin: 0;
  font-size: 15px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

.related-section {
  margin-top: 72px;
}

/* =========================================================
   21. Dialog
   ========================================================= */
#photo-dialog {
  width: auto;
  max-width: min(92vw, 1080px);
  padding: 0;
  border: 0;
  background: transparent;
}

#photo-dialog img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 90vh;
  margin: 0 auto;
  background: var(--mw-white);
}

#photo-dialog::backdrop {
  background: rgba(40, 44, 37, 0.72);
}

.close-dialog {
  position: fixed;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--mw-white);
  color: var(--mw-ink);
  border: 1px solid var(--mw-border);
  border-radius: var(--mw-radius);
  font-size: 20px;
  line-height: 1;
}

.close-dialog:hover {
  background: var(--mw-cream-deep);
}

/* =========================================================
   22. Notices
   ========================================================= */
.mw-notice,
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  margin: 0 0 24px;
  padding: 14px 18px;
  background: var(--mw-white);
  border: 1px solid var(--mw-border);
  border-left: 3px solid var(--mw-olive);
  border-radius: 0;
  font-size: 14.5px;
  list-style: none;
  overflow-wrap: anywhere;
}

.mw-notice.mw-error,
.woocommerce-error {
  border-left-color: var(--mw-rust);
}

.woocommerce-error li {
  list-style: none;
  margin: 0;
}

.woocommerce-notices-wrapper > * + * {
  margin-top: 12px;
}

/* =========================================================
   23. WooCommerce tables and cart
   ========================================================= */
.woocommerce {
  min-width: 0;
}

.shop_table {
  width: 100%;
  border: 1px solid var(--mw-border);
  border-collapse: collapse;
  background: var(--mw-white);
  font-size: 14.5px;
  font-variant-numeric: tabular-nums;
}

.shop_table th {
  padding: 12px 16px;
  background: var(--mw-bg);
  border-bottom: 1px solid var(--mw-border);
  text-align: left;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mw-muted);
}

.shop_table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--mw-border);
  vertical-align: middle;
  overflow-wrap: anywhere;
}

.shop_table tfoot td {
  border-bottom: 0;
  border-top: 1px solid var(--mw-border);
  font-weight: 500;
}

.shop_table .order-total td {
  font-weight: 600;
  font-size: 16px;
}

.shop_table .amount {
  font-variant-numeric: tabular-nums;
}

td.product-thumbnail img {
  width: 76px;
  height: auto;
  display: block;
  background: var(--mw-bg);
}

td.product-name a {
  color: var(--mw-ink);
  font-weight: 500;
  text-decoration: none;
}

td.product-name a:hover {
  color: var(--mw-olive);
  text-decoration: underline;
}

.shop_table .actions {
  padding: 14px 16px;
}

.shop_table .actions .coupon {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
}

#coupon_code {
  flex: 1 1 200px;
  min-width: 0;
}

.woocommerce-cart-form {
  margin-bottom: 40px;
}

.cart_totals {
  max-width: 460px;
  margin-left: auto;
  padding: 24px;
  background: var(--mw-white);
  border: 1px solid var(--mw-border);
}

.cart_totals h2 {
  margin: 0 0 16px;
  font-size: 22px;
}

.cart_totals .shop_table {
  border: 0;
  background: transparent;
}

.cart_totals .shop_table th {
  background: transparent;
  padding: 10px 0;
  border-bottom: 1px solid var(--mw-border);
}

.cart_totals .shop_table td {
  padding: 10px 0;
  text-align: right;
}

.cart_totals .wc-proceed-to-checkout {
  padding-top: 16px;
}

.cart_totals .checkout-button {
  display: inline-flex;
}

.woocommerce .return-to-shop {
  margin-top: 8px;
}

/* =========================================================
   24. Checkout and payment
   ========================================================= */
form.checkout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: start;
}

#customer_details,
#order_review {
  min-width: 0;
}

form.checkout .col2-set {
  display: block;
}

.woocommerce-billing-fields h3,
.woocommerce-additional-fields h3,
.woocommerce-shipping-fields h3,
#order_review_heading,
#customer_details h3 {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 600;
}

.woocommerce-additional-fields {
  margin-top: 32px;
}

@media (min-width: 769px) {
  .woocommerce-billing-fields__field-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0 16px;
  }

  .form-row-wide,
  .form-row-full {
    grid-column: 1 / -1;
  }
}

#ship-to-different-address label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

#order_review {
  position: sticky;
  top: 140px;
}

#order_review .shop_table {
  font-size: 14px;
}

#order_review .shop_table td,
#order_review .shop_table th {
  padding: 10px 12px;
}

#payment {
  margin-top: 24px;
  padding: 24px;
  background: var(--mw-white);
  border: 1px solid var(--mw-border);
  border-radius: var(--mw-radius);
  box-shadow: var(--mw-payment-shadow);
}

#payment ul.payment_methods {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--mw-border);
}

#payment ul.payment_methods li {
  padding: 12px 0;
  border-bottom: 1px solid var(--mw-border);
}

#payment ul.payment_methods li:last-child {
  border-bottom: 0;
}

#payment ul.payment_methods label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  cursor: pointer;
}

#payment ul.payment_methods img {
  display: inline-block;
  height: 24px;
  width: auto;
  vertical-align: middle;
}

#payment div.payment_box {
  position: relative;
  margin-top: 10px;
  padding: 14px 16px;
  background: var(--mw-bg);
  font-size: 13.5px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

#payment div.payment_box p:last-child {
  margin-bottom: 0;
}

#payment #place_order {
  min-height: 54px;
}

.woocommerce-terms-and-conditions-wrapper {
  margin: 0 0 20px;
  font-size: 13.5px;
  color: var(--mw-muted);
}

.woocommerce-terms-and-conditions {
  max-height: 220px;
  overflow: auto;
  margin: 12px 0;
  padding: 16px;
  background: var(--mw-bg);
  border: 1px solid var(--mw-border);
  line-height: 1.7;
}

.woocommerce-form-coupon-toggle .woocommerce-info {
  cursor: pointer;
}

.woocommerce-form-coupon {
  display: grid;
  gap: 12px;
  max-width: 480px;
  margin: 16px 0 24px;
  padding: 20px;
  background: var(--mw-white);
  border: 1px solid var(--mw-border);
}

.woocommerce-form-coupon p.form-row {
  margin: 0;
}

/* =========================================================
   25. My account
   ========================================================= */
.woocommerce-account .woocommerce {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.woocommerce-MyAccount-navigation ul {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--mw-border);
}

.woocommerce-MyAccount-navigation li {
  border-bottom: 1px solid var(--mw-border);
}

.woocommerce-MyAccount-navigation a {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 13px 0;
  font-size: 15px;
  color: var(--mw-ink);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.woocommerce-MyAccount-navigation a:hover {
  color: var(--mw-olive);
}

.woocommerce-MyAccount-navigation .is-active a {
  font-weight: 600;
  color: var(--mw-olive);
}

.woocommerce-MyAccount-content {
  min-width: 0;
}

.woocommerce-MyAccount-content h1 {
  font-size: 30px;
}

.woocommerce-MyAccount-content h2 {
  margin-top: 28px;
  font-size: 22px;
}

.woocommerce-MyAccount-content .woocommerce-Address {
  margin-bottom: 24px;
  padding: 24px;
  background: var(--mw-white);
  border: 1px solid var(--mw-border);
}

.woocommerce-MyAccount-content .woocommerce-Address-title h3 {
  margin: 0 0 12px;
  font-size: 18px;
}

.woocommerce-MyAccount-content .edit {
  display: inline-flex;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--mw-olive);
  text-decoration: underline;
  text-underline-offset: 3px;
}

address {
  line-height: 1.9;
}

.woocommerce-customer-details address {
  margin-top: 12px;
  padding: 16px 20px;
  background: var(--mw-bg);
  border: 1px solid var(--mw-border);
}

.woocommerce-order-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  background: var(--mw-white);
  border: 1px solid var(--mw-border);
}

.woocommerce-order-overview li {
  min-width: 0;
  padding: 14px 16px;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--mw-muted);
  overflow-wrap: anywhere;
}

.woocommerce-order-overview li + li {
  border-left: 1px solid var(--mw-border);
}

.woocommerce-order-overview strong {
  display: block;
  margin-top: 2px;
  font-size: 15px;
  color: var(--mw-ink);
}

.woocommerce-order-details,
.woocommerce-customer-details {
  margin-top: 24px;
  padding: 24px;
  background: var(--mw-white);
  border: 1px solid var(--mw-border);
}

.woocommerce-order-details h2,
.woocommerce-customer-details h2 {
  margin: 0 0 16px;
  font-size: 20px;
}

.woocommerce-order-details .shop_table {
  border: 0;
  background: transparent;
  font-size: 14px;
}

.col2-set {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 769px) {
  .col2-set {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.woocommerce-account .button,
.woocommerce-MyAccount-content .button {
  min-height: 44px;
  padding: 6px 18px;
  font-size: 13.5px;
}

/* =========================================================
   26. WooCommerce misc
   ========================================================= */
.woocommerce-form-login,
.woocommerce-form-register,
form.woocommerce-ResetPassword {
  max-width: 480px;
  padding: 28px;
  background: var(--mw-white);
  border: 1px solid var(--mw-border);
}

.woocommerce-form-login .form-row:last-of-type {
  margin-bottom: 16px;
}

.lost_password,
.woocommerce-LostPassword {
  margin: 12px 0 0;
  font-size: 14px;
}

.lost_password a,
.woocommerce-LostPassword a {
  color: var(--mw-olive);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.woocommerce-password-strength {
  margin-top: 6px;
  font-size: 13px;
}

.woocommerce-password-strength.short {
  color: var(--mw-rust);
}

.woocommerce-password-strength.good,
.woocommerce-password-strength.strong {
  color: var(--mw-olive);
}

.onsale {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  min-height: 0;
  min-width: 0;
  padding: 5px 10px;
  background: var(--mw-olive);
  color: var(--mw-white);
  border-radius: var(--mw-radius);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.4;
}

.woocommerce a.button.loading,
.woocommerce button.button.loading,
.woocommerce input.button.loading {
  position: relative;
  padding-right: 46px;
  opacity: 0.9;
}

.woocommerce a.button.loading::after,
.woocommerce button.button.loading::after,
.woocommerce input.button.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 18px;
  width: 14px;
  height: 14px;
  margin-top: -8px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: mw-spin 0.65s linear infinite;
}

@keyframes mw-spin {
  to {
    transform: rotate(360deg);
  }
}

.woocommerce .blockUI.blockOverlay {
  background: rgba(248, 246, 241, 0.72) !important;
  opacity: 1 !important;
}

.woocommerce .blockUI.blockOverlay::before,
.woocommerce .loader::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border: 2px solid var(--mw-muted);
  border-right-color: transparent;
  border-radius: 50%;
  animation: mw-spin 0.7s linear infinite;
}

.woocommerce form .form-row.woocommerce-invalid input,
.woocommerce form .form-row.woocommerce-invalid select {
  border-color: var(--mw-rust);
}

/* Select2 (checkout country/state) */
.select2-container {
  width: 100% !important;
  min-width: 0;
}

.select2-container .select2-selection--single {
  display: flex;
  align-items: center;
  height: 46px;
  padding: 0 34px 0 12px;
  background: var(--mw-white);
  border: 1px solid var(--mw-border);
  border-radius: var(--mw-radius);
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  padding: 0;
  color: var(--mw-ink);
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  right: 12px;
  width: 12px;
  height: 100%;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
  left: 0;
  margin-top: -2px;
  border-color: var(--mw-ink) transparent transparent transparent;
  border-width: 5px 5px 0;
}

.select2-dropdown {
  border: 1px solid var(--mw-border);
  border-radius: var(--mw-radius);
  background: var(--mw-white);
}

.select2-container--default .select2-search--dropdown .select2-search__field {
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--mw-border);
  border-radius: var(--mw-radius);
}

.select2-results__option {
  padding: 10px 12px;
  font-size: 14.5px;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background: var(--mw-bg);
  color: var(--mw-ink);
}

/* =========================================================
   27. Generic mw-* plugin classes
   ========================================================= */
.mw-panel {
  padding: 32px;
  background: var(--mw-white);
  border: 1px solid var(--mw-border);
  border-radius: var(--mw-radius);
  min-width: 0;
}

.mw-panel h2 {
  margin-top: 0;
  font-size: 24px;
}

.mw-panel h3 {
  font-size: 18px;
}

.mw-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.mw-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
}

.mw-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.mw-field label {
  font-size: 13.5px;
  font-weight: 500;
}

.mw-field input,
.mw-field select,
.mw-field textarea {
  width: 100%;
  min-width: 0;
}

.mw-field small {
  font-size: 12.5px;
  color: var(--mw-muted);
}

.mw-summary {
  display: flex;
  margin: 0 0 24px;
  background: var(--mw-white);
  border: 1px solid var(--mw-border);
}

.mw-stat {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 18px 22px;
}

.mw-stat + .mw-stat {
  border-left: 1px solid var(--mw-border);
}

.mw-stat small {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mw-muted);
}

.mw-stat strong {
  font-size: 21px;
  font-weight: 600;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.mw-timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mw-step {
  min-width: 0;
  padding-top: 16px;
  border-top: 2px solid var(--mw-border);
  overflow-wrap: anywhere;
}

.mw-step small {
  display: block;
  margin-bottom: 4px;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mw-muted);
}

.mw-step strong {
  font-weight: 600;
}

.mw-step.is-done {
  border-top-color: var(--mw-olive);
}

.mw-step.is-current {
  border-top-color: var(--mw-accent);
}

.mw-step.is-current strong {
  color: var(--mw-accent);
}

.mw-installment {
  display: grid;
  gap: 4px;
  padding: 24px;
  background: var(--mw-white);
  border: 1px solid var(--mw-border);
}

.mw-installment > * {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid var(--mw-border);
  overflow-wrap: anywhere;
}

.mw-installment > *:last-child {
  border-bottom: 0;
}

.mw-events {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mw-events > li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--mw-border);
  overflow-wrap: anywhere;
}

.mw-events > li:last-child {
  border-bottom: 0;
}

.mw-events time,
.mw-events small {
  flex: 0 0 auto;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--mw-muted);
}

.mw-order-card,
.mw-quote-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 24px;
  background: var(--mw-white);
  border: 1px solid var(--mw-border);
  overflow-wrap: anywhere;
}

.mw-order-card header,
.mw-quote-card header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
}

.mw-order-card header h3,
.mw-quote-card header h3 {
  margin: 0;
  font-size: 17px;
}

.mw-order-card > :last-child,
.mw-quote-card > :last-child {
  margin-bottom: 0;
}

.mw-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mw-list > li {
  padding: 12px 0;
  border-bottom: 1px solid var(--mw-border);
  overflow-wrap: anywhere;
}

.mw-list > li:last-child {
  border-bottom: 0;
}

.mw-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  background: var(--mw-white);
  border: 1px solid var(--mw-border);
  border-radius: var(--mw-radius);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--mw-muted);
  overflow-wrap: anywhere;
}

.mw-badge.is-done {
  background: transparent;
  border-color: var(--mw-olive);
  color: var(--mw-olive);
}

.mw-badge.is-current {
  background: transparent;
  border-color: var(--mw-accent);
  color: var(--mw-accent);
}

.mw-error {
  border-left-color: var(--mw-rust);
}

.mw-action-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  margin: 0 0 24px;
}

.mw-action-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 180px;
  min-width: 0;
  font-size: 13px;
  color: var(--mw-muted);
}

.mw-action-form input,
.mw-action-form select {
  width: 100%;
  min-width: 0;
}

.mw-action-form .button {
  flex: 0 0 auto;
}

.mw-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.mw-actions .button {
  margin: 0;
}

.mw-muted {
  color: var(--mw-muted);
}

.mw-empty {
  padding: 48px 24px;
  background: var(--mw-white);
  border: 1px dashed var(--mw-border);
  text-align: center;
  color: var(--mw-muted);
  overflow-wrap: anywhere;
}

.mw-payment-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 32px;
  align-items: start;
}

.mw-payment-layout .mw-panel {
  box-shadow: var(--mw-payment-shadow);
}

.mw-qr-demo {
  position: relative;
  flex: 0 0 auto;
  width: 180px;
  height: 180px;
  padding: 14px;
  background-color: var(--mw-white);
  background-image: repeating-conic-gradient(var(--mw-ink) 0% 25%, transparent 0% 50%);
  background-size: 20px 20px;
  background-origin: content-box;
  background-clip: content-box;
  border: 1px solid var(--mw-ink);
  overflow: hidden;
}

.mw-qr-demo::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 14px;
  width: 32px;
  height: 32px;
  background: var(--mw-ink);
  box-shadow: 118px 0 0 0 var(--mw-ink), 0 118px 0 0 var(--mw-ink);
}

.mw-qr-demo::after {
  content: "";
  position: absolute;
  top: 22px;
  left: 22px;
  width: 16px;
  height: 16px;
  background: var(--mw-white);
  box-shadow: 118px 0 0 0 var(--mw-white), 0 118px 0 0 var(--mw-white);
}

.mw-login-panel {
  max-width: 460px;
  margin: 0 auto;
  padding: 32px;
  background: var(--mw-white);
  border: 1px solid var(--mw-border);
}

.mw-login-panel h1,
.mw-login-panel h2 {
  margin-top: 0;
  font-size: 24px;
}

.mw-login-panel .button {
  width: 100%;
}

/* =========================================================
   28. Breakpoint 1024
   ========================================================= */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .process-grid,
  .mw-timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    gap: 40px;
  }
}

/* =========================================================
   29. Breakpoint 768
   ========================================================= */
@media (max-width: 768px) {
  :root {
    --mw-shell-pad: 24px;
  }

  .header-inner {
    height: 72px;
    gap: 16px;
  }

  .wordmark {
    font-size: 19px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 20px;
    background: var(--mw-white);
    border-bottom: 1px solid var(--mw-border);
  }

  body.nav-open .main-nav {
    display: flex;
  }

  .main-nav a {
    padding: 13px 0;
    border-bottom: 1px solid var(--mw-border);
  }

  .main-nav a:last-child {
    border-bottom: 0;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
    min-height: 0;
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .hero-copy h1 {
    font-size: 42px;
    letter-spacing: 0;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-actions .text-link {
    justify-content: center;
  }

  .hero-note {
    margin-top: 32px;
  }

  .hero-visual {
    min-height: 420px;
  }

  .hero-product-label {
    right: 12px;
    bottom: 12px;
    padding: 10px 14px;
    gap: 12px;
  }

  .value-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    font-size: 13px;
  }

  .section {
    padding-top: 40px;
    padding-bottom: 48px;
  }

  .section-heading {
    margin-bottom: 28px;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .product-card-meta {
    padding: 14px 0 10px;
  }

  .space-grid {
    grid-template-columns: 1fr;
  }

  .space-card {
    height: 320px;
  }

  .custom-section {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .custom-photo {
    min-height: 300px;
  }

  .custom-copy {
    padding: 48px 24px;
  }

  .custom-copy .button {
    align-self: stretch;
  }

  .process-grid,
  .mw-timeline {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .process-section {
    padding-bottom: 64px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 48px;
    padding-bottom: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-shell {
    padding-top: 32px;
    padding-bottom: 64px;
  }

  h1 {
    font-size: 32px;
  }

  .catalog-top h1 {
    font-size: 34px;
  }

  .catalog-filters {
    flex-direction: column;
    align-items: stretch;
  }

  .catalog-filters label {
    flex: 0 0 auto;
  }

  .catalog-filters select,
  .catalog-filters input[type="number"] {
    width: 100%;
    min-width: 0;
  }

  .catalog-filters .button {
    width: 100%;
  }

  .product-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .product-details h1 {
    font-size: 32px;
  }

  .price {
    font-size: 22px;
  }

  form.checkout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  #order_review {
    position: static;
  }

  .cart_totals {
    max-width: none;
    margin-left: 0;
  }

  .woocommerce-account .woocommerce {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .woocommerce-MyAccount-navigation ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-top: 0;
    margin-bottom: 24px;
  }

  .woocommerce-MyAccount-navigation li {
    border: 1px solid var(--mw-border);
  }

  .woocommerce-MyAccount-navigation a {
    display: inline-flex;
    padding: 10px 14px;
    font-size: 14px;
  }

  .woocommerce-order-overview li + li {
    border-left: 0;
    border-top: 1px solid var(--mw-border);
  }

  .mw-grid,
  .mw-field-grid,
  .mw-payment-layout {
    grid-template-columns: 1fr;
  }

  .mw-summary {
    flex-direction: column;
  }

  .mw-stat + .mw-stat {
    border-left: 0;
    border-top: 1px solid var(--mw-border);
  }

  /* Stack native WooCommerce tables so nothing overflows small screens */
  .shop_table,
  .shop_table thead,
  .shop_table tbody,
  .shop_table tfoot,
  .shop_table tr,
  .shop_table td,
  .shop_table th {
    display: block;
    width: auto;
  }

  .shop_table {
    background: var(--mw-white);
    border: 1px solid var(--mw-border);
  }

  .shop_table thead {
    display: none;
  }

  .shop_table tbody,
  .shop_table tfoot {
    background: transparent;
    border: 0;
  }

  .shop_table tbody tr,
  .shop_table tfoot tr {
    padding: 8px 16px;
    border-bottom: 1px solid var(--mw-border);
  }

  .shop_table tbody tr:last-child {
    border-bottom: 0;
  }

  .shop_table tfoot tr {
    border-top: 1px solid var(--mw-border);
  }

  .shop_table th {
    background: transparent;
    padding: 10px 0 2px;
    border-bottom: 0;
  }

  .shop_table td {
    padding: 6px 0;
    border-bottom: 0;
    text-align: left;
  }

  .cart_totals .shop_table,
  .woocommerce-order-details .shop_table {
    border: 0;
  }

  .shop_table .actions {
    padding: 12px 0 8px;
  }
}

/* =========================================================
   30. Breakpoint 480
   ========================================================= */
@media (max-width: 480px) {
  .announcement {
    font-size: 10.5px;
    gap: 10px;
  }

  .hero-copy h1 {
    font-size: 42px;
  }

  .hero-visual {
    min-height: 360px;
  }

  .hero-image-label {
    top: 14px;
    left: 14px;
  }

  .value-strip {
    gap: 10px 16px;
    padding-top: 14px;
    padding-bottom: 14px;
    font-size: 12.5px;
  }

  .product-grid {
    gap: 14px;
  }

  .product-card-meta h3 {
    font-size: 16px;
  }

  .product-card-kind {
    font-size: 11px;
  }

  .product-card-price {
    font-size: 14.5px;
  }

  .product-card-bottom {
    font-size: 12px;
  }

  .product-details h1 {
    font-size: 30px;
  }

  .gallery-thumbnails {
    gap: 8px;
  }

  .space-card {
    height: 300px;
  }

  .space-card > div {
    left: 16px;
    right: 16px;
  }

  .custom-details span {
    padding: 0 14px;
  }

  #photo-dialog {
    max-width: 94vw;
  }

  .close-dialog {
    top: 10px;
    right: 10px;
  }
}

/* =========================================================
   31. Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Final integration pass against the rendered PHP. */
.custom-copy h2 { color: #fff; }
.product-card-meta { display:block; }
.product-card-price { margin-top: 9px; font-size: 14px; }
.mw-card-heading { display:flex; gap:24px; justify-content:space-between; align-items:flex-start; }
.mw-card-heading h2 { font-size:28px; }
.mw-order-line { display:grid; grid-template-columns:1fr auto auto; gap:24px; padding:14px 0; border-bottom:1px solid var(--mw-border); }
.mw-installment > div:first-child small { display:block; margin-top:6px; }
.payment-amount { font-size:38px; font-weight:500; margin:20px 0; }
.mw-payment-layout { display:grid; grid-template-columns:1fr 1fr; gap:64px; align-items:center; }
.mw-payment-layout h2 { font-size:44px; line-height:1.35; }
.payment-card { text-align:center; }
.mw-qr-demo svg { width:100%; height:100%; background:white; }
.mw-qr-demo strong { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); background:white; padding:4px; }
.demo-alternatives { margin-top:20px; }
.demo-alternatives .mw-actions { justify-content:center; margin-top:14px; }
.quote-inspiration img { width:100%; aspect-ratio:4/5; object-fit:cover; }
.work-gallery { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.work-gallery img { width:100%; height:340px; object-fit:cover; }
.work-gallery figcaption { margin-top:14px; font-size:14px; color:var(--mw-muted); }
@media (max-width:768px) { .mw-payment-layout {grid-template-columns:1fr;gap:32px;} .mw-payment-layout h2 {font-size:32px;} .mw-card-heading {display:block;} .mw-card-heading .mw-badge {margin-top:12px;} .mw-order-line {gap:10px;} .work-gallery {grid-template-columns:1fr;} .work-gallery img {height:300px;} }

.mw-installment { grid-template-columns:minmax(150px,1fr) auto auto; gap:24px; align-items:center; padding:20px 24px; }
.mw-installment > * { display:block; padding:0; border:0; }
.mw-installment > .mw-actions { display:flex; }
.mw-qr-demo { margin:0 auto 20px; background-image:none; }
.mw-qr-demo::before,.mw-qr-demo::after { display:none; }
.mw-order-card,.mw-quote-card { display:grid; grid-template-columns:1fr auto auto; align-items:center; }
@media(max-width:768px) { .mw-installment {grid-template-columns:1fr auto;gap:16px;} .mw-installment > .mw-actions {grid-column:1/-1;} .mw-order-card,.mw-quote-card {grid-template-columns:1fr auto;} .mw-order-card > :last-child,.mw-quote-card > :last-child {display:none;} }

/* Classic checkout has three sibling sections; place each explicitly. */
form.checkout { grid-template-areas:"customer heading" "customer review"; grid-template-rows:auto 1fr; row-gap:16px; }
form.checkout #customer_details { grid-area:customer; width:100%; margin:0; float:none; }
form.checkout #order_review_heading { grid-area:heading; margin:0; }
form.checkout #order_review { grid-area:review; width:100%; float:none; }
form.checkout .col-1,form.checkout .col-2 { width:100%; float:none; margin:0; }
form.checkout .form-row { width:100%; float:none; }
form.checkout .woocommerce-NoticeGroup { grid-column:1/-1; }
.woocommerce-info:empty { display:none; }
.woocommerce-account:not(.logged-in) .woocommerce { display:block; }
@media(max-width:768px) {form.checkout {grid-template-areas:"customer" "heading" "review";grid-template-rows:auto;row-gap:24px;} }

.table-scroll { width:100%; max-width:100%; min-width:0; overflow-x:auto; overscroll-behavior-inline:contain; }
.table-scroll table { min-width:420px; width:100%; border-collapse:collapse; }
.table-scroll th,.table-scroll td { padding:12px 10px; text-align:left; border-bottom:1px solid var(--mw-border); }
.table-scroll td:last-child { white-space:nowrap; }
.mw-actions > * { min-width:0; max-width:100%; }
.mw-actions .text-link { white-space:normal; }

.mw-panel > .mw-field { margin:18px 0; }
.mw-panel > .mw-field-grid { margin:18px 0; }
.mw-field-label { display:block; }
