/* Duvoh 2026 redesign layer — loads after theme.css and restyles every public page. */
:root {
  --dvx-bg: #f6f5f0;
  --dvx-surface: #ffffff;
  --dvx-ink: #10221f;
  --dvx-muted: #55635f;
  --dvx-line: #e3e1d8;
  --dvx-accent: #0f6b5c;
  --dvx-accent-2: #0b5247;
  --dvx-soft: #dcefe9;
  --dvx-hi: #f2b632;
  --dvx-dark: #0d1d1a;
  --dvx-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --dvx-body: "Inter", system-ui, sans-serif;
  --dvx-r: 20px;

  /* map the legacy theme tokens onto the new palette */
  --md-primary: var(--dvx-accent);
  --md-primary-dark: var(--dvx-accent-2);
  --md-primary-soft: var(--dvx-accent);
  --md-primary-container: var(--dvx-soft);
  --md-on-primary: #fff;
  --md-secondary: var(--dvx-accent);
  --md-secondary-dark: var(--dvx-accent-2);
  --md-tertiary: var(--dvx-dark);
  --md-surface: var(--dvx-bg);
  --md-surface-bright: #fbfaf6;
  --md-surface-container: var(--dvx-surface);
  --md-surface-low: #ecebe3;
  --md-outline: var(--dvx-line);
  --md-outline-strong: #cfccc0;
  --md-on-surface: var(--dvx-ink);
  --md-on-surface-variant: var(--dvx-muted);
  --md-radius-sm: 10px;
  --md-radius: 16px;
  --md-radius-lg: 20px;
  --md-radius-xl: 28px;
  --md-elev-2: 0 24px 48px -30px rgba(16, 34, 31, .45);
  --md-font: var(--dvx-body);
  --md-display: var(--dvx-display);
  --md-max: 1200px;
}

.md-body { background: var(--dvx-bg); color: var(--dvx-ink); font-family: var(--dvx-body); font-size: 16px; }
.md-body h1, .md-body h2, .md-body h3 { font-family: var(--dvx-display); letter-spacing: -.025em; text-wrap: balance; }
.md-container { width: min(1200px, calc(100% - 40px)); margin-inline: auto; padding-inline: 0; }
:focus-visible { outline: 3px solid var(--dvx-accent); outline-offset: 3px; border-radius: 6px; }
.dvx-ic { flex: none; }

/* ---------- header ---------- */
.md-sticky { position: sticky; top: 0; z-index: 40; }
.md-header { background: color-mix(in srgb, var(--dvx-bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--dvx-line); box-shadow: none; }
.md-header__bar { min-height: 72px; gap: 20px; }
.md-logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--dvx-display); font-weight: 800; font-size: 24px; letter-spacing: -.03em; color: var(--dvx-ink); text-decoration: none; }
.md-logo::before { content: ""; width: 28px; height: 28px; border-radius: 9px 9px 9px 3px; background: linear-gradient(135deg, var(--dvx-accent), #1aa38b); box-shadow: inset -6px -6px 0 rgba(255,255,255,.18); }
.md-nav-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--dvx-muted); text-decoration: none; transition: background-color .2s, color .2s; }
.md-nav-link:hover { background: var(--dvx-soft); color: var(--dvx-ink); }
.md-icon-btn { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--dvx-line); background: var(--dvx-surface); color: var(--dvx-ink); display: inline-grid; place-items: center; cursor: pointer; transition: border-color .2s; }
.md-icon-btn:hover { border-color: var(--dvx-ink); }
.md-panel { background: var(--dvx-surface); border-bottom: 1px solid var(--dvx-line); }
.md-input { min-height: 48px; border-radius: 12px; border: 1px solid var(--dvx-line); background: var(--dvx-surface); padding: 0 16px; font-size: 16px; color: var(--dvx-ink); }
.md-input:focus { border-color: var(--dvx-accent); outline: none; box-shadow: 0 0 0 4px var(--dvx-soft); }
.md-btn { min-height: 48px; border-radius: 12px; font-weight: 700; }
.md-btn--teal { background: var(--dvx-accent); color: #fff; border-color: var(--dvx-accent); }
.md-btn--teal:hover { background: var(--dvx-accent-2); }
.md-suggest { border-radius: 14px; border: 1px solid var(--dvx-line); box-shadow: var(--md-elev-2); }

/* ---------- shared buttons ---------- */
.dvx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 2px solid var(--dvx-accent); background: var(--dvx-accent); color: #fff; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; transition: background-color .2s, transform .2s, box-shadow .2s; }
.dvx-btn:hover { background: var(--dvx-accent-2); border-color: var(--dvx-accent-2); transform: translateY(-1px); }
.dvx-btn--ghost { background: transparent; color: var(--dvx-ink); border-color: var(--dvx-line); }
.dvx-btn--ghost:hover { background: var(--dvx-surface); border-color: var(--dvx-ink); color: var(--dvx-ink); }
.dvx-kick { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--dvx-accent); }
.dvx-kick::before { content: ""; width: 22px; height: 2px; background: currentColor; }

/* ---------- home hero ---------- */
.dvx-hero { position: relative; overflow: hidden; padding: clamp(40px, 6vw, 88px) 0 40px; background: radial-gradient(1200px 600px at 85% -10%, #d9efe8 0%, transparent 60%), radial-gradient(700px 400px at -10% 110%, #f6e7c4 0%, transparent 60%); }
.dvx-hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.dvx-hero h1 { font-size: clamp(44px, 6vw, 82px); line-height: .98; font-weight: 800; margin: 0 0 22px; }
.dvx-lead { font-size: clamp(18px, 1.6vw, 20px); color: var(--dvx-muted); max-width: 36rem; margin: 0 0 30px; line-height: 1.6; }
.dvx-search { display: flex; align-items: center; gap: 10px; max-width: 560px; padding: 8px 8px 8px 18px; background: var(--dvx-surface); border: 1px solid var(--dvx-line); border-radius: 999px; box-shadow: 0 24px 50px -32px rgba(16,34,31,.5); transition: border-color .2s, box-shadow .2s; }
.dvx-search:focus-within { border-color: var(--dvx-accent); box-shadow: 0 0 0 4px var(--dvx-soft), 0 24px 50px -32px rgba(16,34,31,.5); }
.dvx-search .dvx-ic { color: var(--dvx-muted); }
.dvx-search input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 17px; min-height: 48px; color: var(--dvx-ink); }
.dvx-search input:focus { outline: none; }
.dvx-quick { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 22px 0 0; }
.dvx-quick a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px 0 10px; border-radius: 999px; background: var(--tone-soft); color: var(--tone-ink); font-weight: 600; font-size: 14px; text-decoration: none; transition: transform .2s; }
.dvx-quick a:hover { transform: translateY(-1px); }
.dvx-quick__svg { width: 20px; height: 20px; }

.dvx-bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(4, minmax(90px, 1fr)); gap: 14px; aspect-ratio: 1 / .95; }
.dvx-bento__tile { position: relative; display: block; overflow: hidden; border-radius: var(--dvx-r); background: var(--dvx-surface); border: 1px solid var(--dvx-line); text-decoration: none; color: var(--dvx-ink); transition: transform .3s ease, box-shadow .3s ease; }
.dvx-bento__tile:hover { transform: translateY(-4px); box-shadow: var(--md-elev-2); }
.dvx-bento__tile img { position: absolute; inset: 10px 10px 54px; width: calc(100% - 20px); height: calc(100% - 64px); object-fit: contain; transition: transform .4s ease; }
.dvx-bento__tile:hover img { transform: scale(1.05); }
.dvx-bento__meta { position: absolute; left: 12px; right: 12px; bottom: 10px; display: flex; flex-direction: column; line-height: 1.25; }
.dvx-bento__meta strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dvx-bento__meta em { font-style: normal; font-size: 12px; color: var(--dvx-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dvx-bento__tile--0 { grid-column: 1 / 4; grid-row: 1 / 4; background: linear-gradient(160deg, #e3f2ed, #fff); }
.dvx-bento__tile--0 .dvx-bento__meta strong { font-size: 18px; }
.dvx-bento__tile--1 { grid-column: 4 / 7; grid-row: 1 / 3; background: linear-gradient(160deg, #fbefd6, #fff); }
.dvx-bento__tile--2 { grid-column: 4 / 7; grid-row: 3 / 5; background: linear-gradient(160deg, #ece8fb, #fff); }
.dvx-bento__tile--3 { grid-column: 1 / 4; grid-row: 4 / 5; background: linear-gradient(160deg, #fbe5e5, #fff); }
.dvx-bento__tile--3 img { inset: 8px auto 8px 8px; width: 45%; height: calc(100% - 16px); }
.dvx-bento__tile--3 .dvx-bento__meta { left: 52%; top: 50%; bottom: auto; transform: translateY(-50%); }

.dvx-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: clamp(40px, 5vw, 64px) 0 0; padding: 0; background: var(--dvx-dark); color: #fff; border-radius: var(--dvx-r); overflow: hidden; }
.dvx-stats div { padding: 22px 26px; border-left: 1px solid rgba(255,255,255,.12); }
.dvx-stats div:first-child { border-left: 0; }
.dvx-stats dt { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.65); font-weight: 600; }
.dvx-stats dd { margin: 4px 0 0; font-family: var(--dvx-display); font-size: clamp(26px, 3vw, 38px); font-weight: 800; letter-spacing: -.03em; color: #fff; }
.dvx-stats div:first-child dd { color: var(--dvx-hi); }

/* ---------- home sections ---------- */
.dvx-section { padding: clamp(64px, 8vw, 110px) 0 0; }
.dvx-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px; margin-bottom: 36px; }
.dvx-head h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.04; font-weight: 800; margin: 0; max-width: 20ch; }
.dvx-head > p { max-width: 30rem; color: var(--dvx-muted); margin: 0; }

.dvx-cats { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.dvx-cat { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; min-height: 96px; padding: 18px 48px 18px 18px; background: var(--dvx-surface); border: 1px solid var(--dvx-line); border-radius: 18px; text-decoration: none; color: var(--dvx-ink); transition: border-color .2s, transform .2s, box-shadow .2s; }
.dvx-cat:hover { border-color: var(--tone-ink); transform: translateY(-2px); box-shadow: 0 20px 40px -30px var(--tone-ink); }
.dvx-cat__icon { grid-row: 1 / 3; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--tone-soft); color: var(--tone-ink); }
.dvx-cat__svg { width: 28px; height: 28px; }
.dvx-cat__title { font-weight: 700; font-size: 16px; line-height: 1.25; align-self: end; }
.dvx-cat__count { font-size: 14px; color: var(--dvx-muted); align-self: start; }
.dvx-cat__go { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--tone-ink); opacity: .45; transition: opacity .2s, transform .2s; }
.dvx-cat:hover .dvx-cat__go { opacity: 1; transform: translate(3px, -50%); }

.tone-teal   { --tone-soft: #d5f0ea; --tone-ink: #0f6b5c; }
.tone-orange { --tone-soft: #ffe4cc; --tone-ink: #b13d0b; }
.tone-amber  { --tone-soft: #fdebb8; --tone-ink: #925106; }
.tone-rose   { --tone-soft: #f9dfe4; --tone-ink: #9f1239; }
.tone-cyan   { --tone-soft: #d4eef4; --tone-ink: #0e6a82; }
.tone-indigo { --tone-soft: #e0e3f8; --tone-ink: #4338ca; }
.tone-night  { --tone-soft: #dcdff0; --tone-ink: #2b3370; }
.tone-clay   { --tone-soft: #f3e2d3; --tone-ink: #9a3412; }
.tone-navy   { --tone-soft: #dfe6f1; --tone-ink: #1e3a8a; }
.tone-green  { --tone-soft: #e1ecd0; --tone-ink: #3f6212; }
.tone-red    { --tone-soft: #f8dcdc; --tone-ink: #b91c1c; }
.tone-violet { --tone-soft: #e8e1fb; --tone-ink: #5b21b6; }
.tone-blue   { --tone-soft: #dbe7fb; --tone-ink: #1d4ed8; }

.dvx-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; counter-reset: s; }
.dvx-steps li { position: relative; padding: 30px; background: var(--dvx-surface); border: 1px solid var(--dvx-line); border-radius: var(--dvx-r); }
.dvx-steps li span { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--dvx-soft); color: var(--dvx-accent); font-weight: 800; margin-bottom: 22px; }
.dvx-steps li:nth-child(2) span { background: #fdebb8; color: #925106; }
.dvx-steps li:nth-child(3) span { background: var(--dvx-dark); color: var(--dvx-hi); }
.dvx-steps h3 { font-size: 22px; margin: 0 0 8px; }
.dvx-steps p { margin: 0; color: var(--dvx-muted); }

.dvx-note { padding-bottom: clamp(64px, 8vw, 110px); }
.dvx-note__box { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding: 28px 30px; border: 1px dashed var(--md-outline-strong); border-radius: var(--dvx-r); font-size: 14px; color: var(--dvx-muted); }
.dvx-note__box p { margin: 0; }
.dvx-note__box strong { color: var(--dvx-ink); }

/* ---------- product grid & cards (home, products, categories) ---------- */
.md-product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; list-style: none; margin: 0; padding: 0; }
.md-product-card { position: relative; display: flex; flex-direction: column; height: 100%; background: var(--dvx-surface); border: 1px solid var(--dvx-line); border-radius: var(--dvx-r); overflow: hidden; transition: transform .25s ease, box-shadow .25s ease, border-color .25s; }
.md-product-card:hover { transform: translateY(-4px); box-shadow: var(--md-elev-2); border-color: var(--md-outline-strong); }
.md-product-card__media { display: block; aspect-ratio: 4 / 3.2; margin: 10px 10px 0; border-radius: 14px; background: linear-gradient(170deg, #f1f0ea, #fbfaf6); overflow: hidden; }
.md-product-card__media img { width: 100%; height: 100%; object-fit: contain; padding: 14px; transition: transform .35s ease; }
.md-product-card:hover .md-product-card__media img { transform: scale(1.05); }
.md-product-card__badge { display: none; }
.md-product-card__body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; flex: 1; }
.md-product-card__body h2 { margin: 0; font-size: 19px; font-weight: 700; line-height: 1.2; }
.md-product-card__body h2 a { color: var(--dvx-ink); text-decoration: none; }
.md-product-card__body h2 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.md-product-card__body .md-chip { order: -1; align-self: flex-start; margin: 0; padding: 4px 10px; border-radius: 999px; background: var(--dvx-soft); color: var(--dvx-accent-2); font-size: 12px; font-weight: 700; letter-spacing: .02em; border: 0; }
.md-product-card__go { margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--dvx-accent); }
.md-product-card__go svg { transition: transform .2s; }
.md-product-card:hover .md-product-card__go svg { transform: translateX(3px); }

/* ---------- inner pages ---------- */
.md-main { padding-top: clamp(32px, 5vw, 56px); padding-bottom: clamp(56px, 7vw, 96px); }
.md-page-title { font-size: clamp(34px, 4.4vw, 56px); font-weight: 800; line-height: 1.04; margin: 0 0 8px; }
.md-muted { color: var(--dvx-muted); }
.md-bc { font-size: 14px; color: var(--dvx-muted); margin-bottom: 20px; }
.md-bc a { color: var(--dvx-accent); text-decoration: none; font-weight: 600; }
.md-pager { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.md-pager a, .md-pager span { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--dvx-line); background: var(--dvx-surface); text-decoration: none; font-weight: 700; color: var(--dvx-ink); }
.md-pager a:hover { border-color: var(--dvx-ink); }
.md-pager .is-current { background: var(--dvx-ink); color: #fff; border-color: var(--dvx-ink); }

/* ---------- footer ---------- */
.md-footer { margin-top: 0; background: var(--dvx-dark); color: rgba(255,255,255,.75); padding: 64px 0 40px; border-top: 0; }
.md-footer a { color: #fff; text-decoration: none; }
.md-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.md-footer__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 48px; }
.md-footer__brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--dvx-display); font-size: 28px; font-weight: 800; color: #fff; margin: 0 0 12px; letter-spacing: -.03em; }
.md-footer__brand::before { content: ""; width: 28px; height: 28px; border-radius: 9px 9px 9px 3px; background: linear-gradient(135deg, var(--dvx-hi), #f59e0b); }
.md-footer-cms { color: rgba(255,255,255,.75); max-width: 26rem; }
.md-footer__nav { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 20px; font-size: 15px; }
.md-footer .md-kicker { color: var(--dvx-hi); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; margin: 0 0 14px; }
.md-footer__cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 20px; font-size: 15px; }
.md-footer__cats a { color: rgba(255,255,255,.85); }
.md-copy { margin: 48px 0 0; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: 14px; color: rgba(255,255,255,.6); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .md-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dvx-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .dvx-hero__grid { grid-template-columns: minmax(0, 1fr); }
  .dvx-hero__copy { min-width: 0; }
  .dvx-bento { aspect-ratio: 1 / .8; }
  .dvx-stats { grid-template-columns: 1fr 1fr; }
  .dvx-stats div:nth-child(3) { border-left: 0; }
  .dvx-stats div:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.12); }
  .dvx-cats, .md-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dvx-steps, .dvx-note__box, .md-footer__grid { grid-template-columns: 1fr; }
  .md-footer__cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .md-container { width: calc(100% - 32px); }
  .dvx-cats { grid-template-columns: 1fr; }
  .md-product-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .md-product-card__body { padding: 12px 14px 14px; }
  .md-product-card__body h2 { font-size: 16px; }
  .dvx-bento { grid-template-rows: repeat(4, minmax(70px, 1fr)); gap: 10px; }
  .dvx-bento__meta em { display: none; }
  .dvx-search { padding-left: 14px; }
  .dvx-search .dvx-btn { padding: 0 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
