/* mDesign Shop Guide — theme "modular grid". Namespace: md- */

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/manrope-var.woff2') format('woff2');
}
@font-face {
  font-family: 'InterVar';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-var.woff2') format('woff2');
}

:root {
  --md-ink: #26272b;
  --md-ink-soft: #4c4f56;
  --md-sage: #5f7d63;
  --md-sage-deep: #42594a;
  --md-clay: #c4643c;
  --md-clay-deep: #a34e2c;
  --md-linen: #f6f4ef;
  --md-card: #ffffff;
  --md-line: #e3dfd6;
  --md-star: #e0a63e;
  --md-radius: 14px;
  --md-shadow: 0 10px 28px rgba(38, 39, 43, 0.09);
  --md-display: 'Manrope', 'Segoe UI', Arial, sans-serif;
  --md-text: 'InterVar', 'Segoe UI', Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--md-text);
  font-size: 16px;
  line-height: 1.62;
  color: var(--md-ink);
  background: var(--md-linen);
}
img { max-width: 100%; display: block; }
a { color: var(--md-sage-deep); }

.md-wrap { max-width: 1140px; margin: 0 auto; padding: 0 22px; }

h1, h2, h3, h4 { font-family: var(--md-display); line-height: 1.22; letter-spacing: -0.015em; }

/* ---------- header ---------- */
.md-ribbon {
  background: var(--md-ink);
  color: #d9d5cb;
  font-size: 0.8rem;
  text-align: center;
  padding: 7px 14px;
}
.md-ribbon b { color: #fff; font-weight: 600; }

.md-header {
  background: var(--md-card);
  border-bottom: 1px solid var(--md-line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.md-header .md-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 70px;
}
.md-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--md-ink); }
.md-logo svg { width: 40px; height: 40px; flex: 0 0 auto; }
.md-logo-name { font-family: var(--md-display); font-weight: 800; font-size: 1.28rem; letter-spacing: -0.02em; line-height: 1; }
.md-logo-sub { display: block; font-family: var(--md-text); font-weight: 500; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--md-sage); margin-top: 4px; }
.md-logo-stack { display: flex; flex-direction: column; gap: 3px; }
.md-logo-stack img { display: block; width: 148px; height: auto; }
.md-footer .md-logo-stack img { width: 132px; background: #fff; padding: 5px 9px; border-radius: 8px; box-sizing: content-box; }
.md-footer .md-logo-sub { color: #b9c4ba; }

.md-nav { display: flex; align-items: center; gap: 26px; }
.md-nav a { text-decoration: none; color: var(--md-ink-soft); font-size: 0.94rem; font-weight: 550; }
.md-nav a:hover { color: var(--md-sage-deep); }
.md-nav a.md-nav-cta {
  background: var(--md-clay);
  color: #fff;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 650;
}
.md-nav a.md-nav-cta:hover { background: var(--md-clay-deep); color: #fff; }

.md-burger { display: none; background: none; border: 1px solid var(--md-line); border-radius: 9px; padding: 8px 10px; cursor: pointer; }
.md-burger span { display: block; width: 20px; height: 2px; background: var(--md-ink); margin: 4px 0; }

/* ---------- hero ---------- */
.md-hero { position: relative; overflow: hidden; background: linear-gradient(160deg, #ecf0e9 0%, var(--md-linen) 55%, #f2ece2 100%); }
.md-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--md-line) 1px, transparent 1px), linear-gradient(90deg, var(--md-line) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.35;
  pointer-events: none;
}
.md-hero .md-wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 44px;
  align-items: center;
  padding-top: 58px;
  padding-bottom: 58px;
}
.md-hero-kicker { display: inline-block; font-size: 0.76rem; font-weight: 650; letter-spacing: 0.16em; text-transform: uppercase; color: var(--md-clay); background: rgba(196, 100, 60, 0.1); border: 1px solid rgba(196, 100, 60, 0.28); padding: 5px 13px; border-radius: 999px; margin-bottom: 18px; }
.md-hero h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 800; margin-bottom: 16px; }
.md-hero h1 em { font-style: normal; color: var(--md-sage-deep); }
.md-hero p { color: var(--md-ink-soft); max-width: 34rem; margin-bottom: 26px; }
.md-hero-img { border-radius: var(--md-radius); box-shadow: var(--md-shadow); overflow: hidden; border: 1px solid var(--md-line); background: #fff; }
.md-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.md-hero-collage { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.md-hero-collage figure { background: #fff; border: 1px solid var(--md-line); border-radius: var(--md-radius); box-shadow: var(--md-shadow); aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; padding: 16px; }
.md-hero-collage figure:nth-child(2) { transform: translateY(12px); }
.md-hero-collage figure:nth-child(3) { transform: translateY(-8px); }
.md-hero-collage img { max-height: 100%; object-fit: contain; }

.md-brandbar { background: #fff; border-bottom: 1px solid var(--md-line); padding: 34px 0 26px; text-align: center; }
.md-brandbar img { max-width: 340px; width: 70%; height: auto; }
.md-brandbar p { max-width: 640px; margin: 8px auto 0; font-size: 0.78rem; color: var(--md-ink-soft); opacity: 0.8; }

.md-btn {
  display: inline-block;
  font-family: var(--md-display);
  font-weight: 700;
  font-size: 0.97rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 13px 28px;
  transition: background 0.15s ease, color 0.15s ease;
}
.md-btn--solid { background: var(--md-sage-deep); color: #fff; }
.md-btn--solid:hover { background: var(--md-sage); color: #fff; }
.md-btn--clay { background: var(--md-clay); color: #fff; }
.md-btn--clay:hover { background: var(--md-clay-deep); color: #fff; }
.md-btn--frame { border: 2px solid var(--md-ink); color: var(--md-ink); padding: 11px 26px; }
.md-btn--frame:hover { background: var(--md-ink); color: #fff; }
.md-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.md-hero-stats { display: flex; gap: 30px; margin-top: 30px; flex-wrap: wrap; }
.md-hero-stat b { display: block; font-family: var(--md-display); font-size: 1.35rem; font-weight: 800; color: var(--md-ink); }
.md-hero-stat span { font-size: 0.82rem; color: var(--md-ink-soft); }

/* ---------- sections ---------- */
.md-section { padding: 58px 0; }
.md-section--card { background: var(--md-card); border-top: 1px solid var(--md-line); border-bottom: 1px solid var(--md-line); }
.md-sec-head { max-width: 46rem; margin-bottom: 34px; }
.md-sec-head h2, .md-sec-head h1 { font-size: clamp(1.45rem, 3vw, 2rem); font-weight: 800; margin-bottom: 10px; }
.md-sec-head p { color: var(--md-ink-soft); }
.md-sec-head--center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- category tiles ---------- */
.md-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.md-cat-card {
  position: relative;
  display: block;
  text-decoration: none;
  color: var(--md-ink);
  background: var(--md-card);
  border: 1px solid var(--md-line);
  border-radius: var(--md-radius);
  overflow: hidden;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.md-cat-card:hover { transform: translateY(-4px); box-shadow: var(--md-shadow); }
.md-cat-img { aspect-ratio: 4 / 3; background: #fff; display: flex; align-items: center; justify-content: center; padding: 20px; }
.md-cat-img img { max-height: 100%; object-fit: contain; }
.md-cat-body { padding: 16px 18px 18px; border-top: 1px solid var(--md-line); }
.md-cat-body h3 { font-size: 1.06rem; font-weight: 750; }
.md-cat-body span { font-size: 0.83rem; color: var(--md-sage-deep); font-weight: 550; }

/* ---------- product cards ---------- */
.md-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.md-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--md-card);
  border: 1px solid var(--md-line);
  border-radius: var(--md-radius);
  overflow: hidden;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.md-card:hover { transform: translateY(-4px); box-shadow: var(--md-shadow); }
.md-card-img { aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; padding: 22px; background: #fff; }
.md-card-img img { max-height: 100%; object-fit: contain; }
.md-flag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--md-clay);
  border-radius: 999px;
  padding: 4px 11px;
}
.md-flag--budget { background: var(--md-sage-deep); }
.md-card-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 20px; border-top: 1px solid var(--md-line); flex: 1; }
.md-card-body h3 { font-size: 0.99rem; font-weight: 700; line-height: 1.35; }
.md-card-body h3 a { color: var(--md-ink); text-decoration: none; }
.md-card-body h3 a:hover { color: var(--md-sage-deep); }
.md-rating { display: flex; align-items: center; gap: 7px; font-size: 0.84rem; color: var(--md-ink-soft); }
.md-stars { color: var(--md-star); font-size: 0.92rem; letter-spacing: 1px; }
.md-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 8px; }
.md-price { font-family: var(--md-display); font-weight: 800; font-size: 1.14rem; }
.md-card-link { font-size: 0.85rem; font-weight: 700; color: #fff; background: var(--md-clay); padding: 8px 15px; border-radius: 9px; text-decoration: none; white-space: nowrap; transition: background 0.15s; }
.md-card-link:hover { background: var(--md-clay-deep); }

/* ---------- brand band ---------- */
.md-band { background: var(--md-ink); color: #cfccc3; }
.md-band .md-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; padding-top: 60px; padding-bottom: 60px; }
.md-band h2 { color: #fff; font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 14px; }
.md-band p { margin-bottom: 12px; }
.md-band-img { border-radius: var(--md-radius); overflow: hidden; border: 1px solid #3a3b40; }
.md-band a { color: #e8c9a8; }

/* ---------- feature strip ---------- */
.md-feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.md-feat { background: var(--md-card); border: 1px solid var(--md-line); border-radius: var(--md-radius); padding: 22px 20px; }
.md-feat-ico {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: rgba(95, 125, 99, 0.13);
  color: var(--md-sage-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 13px;
}
.md-feat h3 { font-size: 0.99rem; font-weight: 750; margin-bottom: 6px; }
.md-feat p { font-size: 0.88rem; color: var(--md-ink-soft); }

/* ---------- reviews ---------- */
.md-quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.md-quote { background: var(--md-card); border: 1px solid var(--md-line); border-left: 4px solid var(--md-sage); border-radius: var(--md-radius); padding: 22px 22px 18px; }
.md-quote p { font-size: 0.93rem; color: var(--md-ink-soft); margin: 8px 0 12px; }
.md-quote cite { font-style: normal; font-size: 0.84rem; font-weight: 650; color: var(--md-ink); }

/* ---------- FAQ ---------- */
.md-faq { max-width: 46rem; margin: 0 auto; }
.md-faq details { background: var(--md-card); border: 1px solid var(--md-line); border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.md-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 16px 20px; font-family: var(--md-display); font-weight: 700; font-size: 0.99rem; }
.md-faq summary::-webkit-details-marker { display: none; }
.md-faq summary::after { content: '+'; font-size: 1.25rem; color: var(--md-sage-deep); flex: 0 0 auto; }
.md-faq details[open] summary::after { content: '\2212'; }
.md-faq details p { padding: 0 20px 18px; color: var(--md-ink-soft); font-size: 0.93rem; }

/* ---------- breadcrumbs ---------- */
.md-crumbs { font-size: 0.83rem; color: var(--md-ink-soft); padding: 18px 0 0; }
.md-crumbs a { color: var(--md-sage-deep); text-decoration: none; }
.md-crumbs a:hover { text-decoration: underline; }
.md-crumbs span { margin: 0 6px; color: var(--md-line); }

/* ---------- PDP ---------- */
.md-pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; padding: 34px 0 20px; }
.md-pdp-img { background: #fff; border: 1px solid var(--md-line); border-radius: var(--md-radius); padding: 30px; display: flex; align-items: center; justify-content: center; position: sticky; top: 92px; }
.md-pdp-img img { max-height: 460px; object-fit: contain; }
.md-pdp-info h1 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800; margin: 8px 0 14px; }
.md-pdp-cat { font-size: 0.78rem; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; color: var(--md-clay); }
.md-pdp-rating { display: flex; align-items: center; gap: 9px; margin-bottom: 16px; font-size: 0.9rem; color: var(--md-ink-soft); }
.md-pdp-intro { color: var(--md-ink-soft); margin-bottom: 20px; }
.md-pdp-info h2 { font-size: 1.12rem; font-weight: 750; margin: 6px 0 10px; }
.md-buybox { background: var(--md-card); border: 1px solid var(--md-line); border-radius: var(--md-radius); padding: 22px; margin-bottom: 24px; }
.md-buybox-row { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.md-buybox-price { font-family: var(--md-display); font-weight: 800; font-size: 1.85rem; }
.md-buybox-note { font-size: 0.82rem; color: var(--md-ink-soft); }
.md-buybox .md-btn { width: 100%; text-align: center; }
.md-buybox-small { font-size: 0.78rem; color: var(--md-ink-soft); margin-top: 11px; text-align: center; }
.md-hi { list-style: none; margin-bottom: 24px; }
.md-hi li { position: relative; padding: 9px 0 9px 32px; border-bottom: 1px dashed var(--md-line); font-size: 0.95rem; }
.md-hi li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 14px;
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background: var(--md-sage);
  clip-path: polygon(14% 44%, 0 65%, 40% 100%, 100% 16%, 80% 0%, 39% 62%);
}
.md-spec { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin-bottom: 8px; }
.md-spec td { padding: 9px 12px; border: 1px solid var(--md-line); }
.md-spec td:first-child { background: rgba(95, 125, 99, 0.07); font-weight: 650; width: 42%; }

/* ---------- doc pages ---------- */
.md-doc { max-width: 46rem; margin: 0 auto; padding: 44px 0 64px; }
.md-doc h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 20px; }
.md-doc h2 { font-size: 1.25rem; margin: 30px 0 10px; }
.md-doc p, .md-doc li { color: var(--md-ink-soft); margin-bottom: 12px; }
.md-doc ul, .md-doc ol { padding-left: 22px; margin-bottom: 14px; }
.md-doc-note { background: var(--md-card); border: 1px solid var(--md-line); border-left: 4px solid var(--md-clay); border-radius: 10px; padding: 16px 18px; font-size: 0.9rem; }

/* ---------- footer ---------- */
.md-footer { background: var(--md-ink); color: #b9b6ad; margin-top: 64px; font-size: 0.89rem; }
.md-footer .md-wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; padding-top: 50px; padding-bottom: 34px; }
.md-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 14px; }
.md-footer a { color: #b9b6ad; text-decoration: none; display: block; margin-bottom: 9px; }
.md-footer a:hover { color: #fff; }
.md-footer-brand p { margin-top: 12px; max-width: 20rem; }
.md-footer-bottom { border-top: 1px solid #3a3b40; }
.md-footer-bottom .md-wrap { display: block; padding: 18px 22px; text-align: center; font-size: 0.8rem; }

/* ---------- 404 ---------- */
.md-404 { text-align: center; padding: 90px 22px; }
.md-404 h1 { font-size: 3rem; margin-bottom: 12px; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .md-cats, .md-grid, .md-quotes { grid-template-columns: repeat(2, 1fr); }
  .md-feats { grid-template-columns: repeat(2, 1fr); }
  .md-hero .md-wrap, .md-band .md-wrap, .md-pdp { grid-template-columns: 1fr; }
  .md-pdp-img { position: static; }
  .md-footer .md-wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 800px) {
  .md-burger { display: block; }
  .md-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--md-card);
    border-bottom: 1px solid var(--md-line);
    padding: 10px 22px 16px;
  }
  .md-nav--open { display: flex; }
  .md-nav a { padding: 10px 0; width: 100%; }
  .md-nav a.md-nav-cta { text-align: center; margin-top: 8px; }
}
@media (max-width: 640px) {
  .md-cats, .md-grid, .md-quotes, .md-feats { grid-template-columns: 1fr; }
  .md-hero .md-wrap { padding-top: 40px; padding-bottom: 40px; }
  .md-section { padding: 44px 0; }
  .md-footer .md-wrap { grid-template-columns: 1fr; gap: 24px; }
}
