/*
Theme Name: MostersButik
Theme URI: https://mostersbutik.dk/
Author: Trident Web Solutions SRL
Author URI: https://tridentwebsolutions.ro/
Description: A fast, responsive Danish fashion magazine theme for mature women, with custom front page, product cards, contact messages, editable footer/header settings, and modern editorial layouts.
Version: 1.0.3
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.8
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mostersbutik
Tags: blog, fashion, custom-logo, custom-menu, featured-images, block-styles, wide-blocks, responsive-layout
*/

:root {
  --mb-ink: #2f3237;
  --mb-muted: #6c7178;
  --mb-soft: #f7f4f1;
  --mb-paper: #ffffff;
  --mb-line: #e4ded8;
  --mb-teal: #4d8b94;
  --mb-teal-dark: #2f6c75;
  --mb-rose: #d4a1a2;
  --mb-sand: #efe5dc;
  --mb-plum: #725565;
  --mb-gradient: linear-gradient(135deg, #f8eeeb 0%, #eef6f6 48%, #f5eee3 100%);
  --mb-gradient-strong: linear-gradient(135deg, #4d8b94 0%, #725565 100%);
  --mb-radius: 28px;
  --mb-radius-sm: 18px;
  --mb-shadow: 0 18px 45px rgba(55, 49, 43, .11);
  --mb-shadow-soft: 0 10px 24px rgba(55, 49, 43, .08);
  --mb-max: 1180px;
  --mb-body-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --mb-display-font: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--mb-ink);
  background: #fff;
  font-family: var(--mb-body-font);
  font-size: 18px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--mb-teal-dark); text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:hover { color: var(--mb-plum); }
button, input, textarea, select { font: inherit; }
.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 9999;
  padding: 10px 14px;
  background: var(--mb-ink);
  color: #fff;
  border-radius: 10px;
}
.skip-link:focus { left: 8px; }
.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;
  width: 1px;
  word-wrap: normal !important;
}
.mb-container { width: min(var(--mb-max), calc(100% - 36px)); margin-inline: auto; }
.mb-narrow { width: min(830px, calc(100% - 36px)); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(228,222,216,.7);
}
.header-inner {
  width: min(1280px, calc(100% - 36px));
  margin: 0 auto;
  min-height: 94px;
  display: flex;
  align-items: center;
  gap: 34px;
}
.site-branding { flex: 0 0 auto; display: flex; align-items: center; }
.site-logo-link, .custom-logo-link { display: inline-flex; align-items: center; text-decoration: none; }
.site-logo-img, .custom-logo { max-width: clamp(185px, 23vw, 310px); max-height: 76px; width: auto; height: auto; display: block; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.primary-navigation { flex: 1 1 auto; }
.primary-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: flex-end; align-items: center; gap: clamp(18px, 2.2vw, 34px); }
.primary-navigation a {
  color: #45464c;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 750;
  font-size: 13px;
  line-height: 1.2;
}
.primary-navigation a:hover { color: var(--mb-teal-dark); }
.menu-item-has-children > a::after { content: "⌄"; margin-left: 6px; font-size: .9em; }
.primary-navigation .sub-menu {
  position: absolute;
  display: none;
  flex-direction: column;
  align-items: stretch;
  min-width: 220px;
  gap: 0;
  padding: 12px;
  margin-top: 12px;
  border: 1px solid var(--mb-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--mb-shadow-soft);
}
.primary-navigation li { position: relative; }
.primary-navigation li:hover > .sub-menu,
.primary-navigation li:focus-within > .sub-menu { display: flex; }
.primary-navigation .sub-menu a { display: block; padding: 10px 12px; letter-spacing: .08em; }
.header-search { display: inline-flex; align-items: center; position: relative; }
.header-search .search-field {
  width: 154px;
  border: 1.5px solid rgba(47,108,117,.35);
  border-radius: 999px;
  padding: 10px 46px 10px 15px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(47,108,117,.08);
  transition: border-color .18s ease, box-shadow .18s ease, width .18s ease;
}
.header-search .search-field:focus {
  outline: 0;
  width: 180px;
  border-color: var(--mb-teal-dark);
  box-shadow: 0 0 0 4px rgba(77,139,148,.14);
}
.header-search .search-submit {
  margin-left: -46px;
  width: 42px;
  height: 42px;
  border: 2px solid rgba(47,108,117,.34);
  border-radius: 999px;
  background: linear-gradient(135deg, #ffffff 0%, #e1f0f1 100%);
  color: var(--mb-teal-dark);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 7px 18px rgba(47,108,117,.2);
  transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}
.header-search .search-submit:hover,
.header-search .search-submit:focus {
  background: var(--mb-gradient-strong);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(47,108,117,.22);
}
.header-search .search-submit svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 3;
}
.mobile-menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--mb-line);
  border-radius: 999px;
  background: var(--mb-gradient);
  cursor: pointer;
}
.mobile-menu-toggle span { display: block; width: 20px; height: 2px; margin: 4px auto; background: var(--mb-ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Front page */
.front-hero { padding: clamp(38px, 6vw, 84px) 0 24px; text-align: center; background: linear-gradient(180deg, #fff 0%, #fff 74%, #faf7f4 100%); }
.front-hero-title {
  margin: 0 auto 22px;
  max-width: 1050px;
  color: #56575b;
  font-family: var(--mb-display-font);
  font-size: clamp(36px, 5vw, 66px);
  line-height: 1.08;
  font-weight: 400;
  letter-spacing: -.02em;
}
.front-hero-text { margin: 0 auto; max-width: 1110px; color: #16191d; font-size: clamp(19px, 2vw, 25px); line-height: 1.7; }
.home-category-row {
  width: min(1180px, calc(100% - 36px));
  margin: clamp(38px, 5vw, 66px) auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}
.home-category-card {
  min-height: 126px;
  display: grid;
  grid-template-columns: 96px 1fr;
  align-items: center;
  gap: 20px;
  padding: 18px 25px;
  background: #f7f7f6;
  border: 5px solid #e2e2e1;
  border-radius: 31px;
  color: #54565a;
  text-decoration: none;
  box-shadow: 0 4px 0 rgba(255,255,255,.65) inset;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.home-category-card:hover { transform: translateY(-4px); border-color: #d3e6e7; box-shadow: var(--mb-shadow-soft); color: var(--mb-teal-dark); }
.home-category-card img { width: 92px; height: 92px; object-fit: cover; border-radius: 999px; background: #fff; }
.home-category-card-title { margin: 0; font-size: 16px; font-weight: 850; text-transform: uppercase; letter-spacing: .14em; line-height: 1.35; }
.home-category-card-subtitle { display: block; margin-top: 5px; color: var(--mb-muted); font-size: 13px; letter-spacing: .06em; text-transform: none; font-weight: 600; }
.front-welcome { padding: clamp(38px, 6vw, 78px) 0; text-align: center; }
.front-welcome p { margin: 0 auto; max-width: 920px; color: #5c5c61; font-size: clamp(25px, 3.2vw, 38px); line-height: 1.35; }
.front-welcome a { color: var(--mb-teal-dark); font-weight: 850; }
.front-section { padding: clamp(36px, 5vw, 70px) 0; }
.section-kicker { color: var(--mb-teal-dark); text-transform: uppercase; letter-spacing: .18em; font-size: 13px; font-weight: 850; }
.section-title { margin: 6px 0 26px; font-family: var(--mb-display-font); font-weight: 400; font-size: clamp(32px, 4vw, 48px); line-height: 1.15; color: #45484e; }
.section-header-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.front-all-posts-action { margin-top: 34px; text-align: center; }

/* Cards and archive grids */
.post-grid, .archive-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.post-card {
  background: #fff;
  border: 1px solid var(--mb-line);
  border-radius: var(--mb-radius);
  overflow: hidden;
  box-shadow: var(--mb-shadow-soft);
  transition: transform .18s ease, box-shadow .18s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--mb-shadow); }
.post-card-image { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--mb-gradient); }
.post-card-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.post-card:hover .post-card-image img { transform: scale(1.035); }
.post-card-body { padding: 22px; }
.post-card-title { margin: 0 0 10px; font-family: var(--mb-display-font); font-size: 25px; line-height: 1.2; font-weight: 400; }
.post-card-title a { color: var(--mb-ink); text-decoration: none; }
.post-card-title a:hover { color: var(--mb-teal-dark); }
.post-card-meta, .entry-meta { color: var(--mb-muted); font-size: 14px; line-height: 1.4; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.post-card-excerpt { margin: 13px 0 0; color: #5a5d63; font-size: 16px; line-height: 1.62; }
.archive-header { padding: clamp(38px, 6vw, 76px) 0 32px; background: var(--mb-gradient); text-align: center; }
.archive-title { margin: 0; font-family: var(--mb-display-font); font-size: clamp(40px, 5vw, 64px); font-weight: 400; line-height: 1.1; }
.archive-description { max-width: 720px; margin: 16px auto 0; color: #53575e; font-size: 19px; }
.archive-main { padding: 48px 0 70px; }
.pagination { margin-top: 42px; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.page-numbers { min-width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; padding: 0 14px; border: 1px solid var(--mb-line); border-radius: 999px; text-decoration: none; color: var(--mb-ink); background: #fff; }
.page-numbers.current, .page-numbers:hover { color: #fff; background: var(--mb-gradient-strong); border-color: transparent; }

/* Single posts and pages */
.single-hero { padding: clamp(38px, 6vw, 78px) 0 24px; text-align: center; background: linear-gradient(180deg, #fff 0%, #faf7f4 100%); }
.single-cats { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 15px; }
.single-cats a { display: inline-flex; padding: 7px 12px; border-radius: 999px; background: rgba(77,139,148,.11); text-decoration: none; color: var(--mb-teal-dark); text-transform: uppercase; letter-spacing: .1em; font-size: 12px; font-weight: 850; }
.entry-title { margin: 0 auto 14px; max-width: 980px; font-family: var(--mb-display-font); font-weight: 400; font-size: clamp(42px, 6vw, 78px); line-height: 1.02; letter-spacing: -.025em; color: #3f4147; }
.entry-meta a { color: inherit; text-decoration: none; }
.entry-featured { width: min(1040px, calc(100% - 36px)); margin: 30px auto 0; }
.entry-featured img { width: 100%; max-height: 650px; object-fit: cover; border-radius: 36px; box-shadow: var(--mb-shadow); display: block; }
.entry-content { padding: 46px 0 36px; }
.entry-content > * { width: min(800px, calc(100% - 36px)); margin-left: auto; margin-right: auto; }
.entry-content > .alignwide { width: min(1080px, calc(100% - 36px)); }
.entry-content > .alignfull { width: 100%; max-width: none; }
.entry-content p { margin-top: 0; margin-bottom: 1.28em; }
.entry-content h2, .entry-content h3, .entry-content h4, .page-content h2, .page-content h3 {
  font-family: var(--mb-display-font);
  color: #3e4147;
  line-height: 1.16;
  font-weight: 400;
  margin-top: 1.6em;
  margin-bottom: .55em;
}
.entry-content h2 { font-size: clamp(32px, 4vw, 44px); }
.entry-content h3 { font-size: clamp(26px, 3vw, 34px); }
.entry-content h4 { font-size: 24px; }
.entry-content .is-style-subtitle, .entry-subtitle, .mb-subtitle {
  color: var(--mb-muted);
  font-size: clamp(20px, 2.4vw, 25px);
  line-height: 1.55;
  font-weight: 500;
}
.entry-content strong { color: #25282d; font-weight: 850; }
.entry-content em { color: var(--mb-plum); }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li { margin-bottom: .45em; }
.entry-content li::marker { color: var(--mb-teal-dark); font-weight: 800; }
.entry-content blockquote, blockquote.wp-block-quote {
  position: relative;
  margin-top: 34px;
  margin-bottom: 34px;
  padding: 30px 34px 30px 82px;
  border: 0;
  border-radius: 28px;
  background: var(--mb-gradient);
  color: #3c4045;
  box-shadow: var(--mb-shadow-soft);
}
.entry-content blockquote::before, blockquote.wp-block-quote::before {
  content: "♡";
  position: absolute;
  left: 30px;
  top: 25px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  color: var(--mb-plum);
  font-size: 24px;
}
.entry-content blockquote p { font-size: 22px; line-height: 1.55; margin-bottom: .5em; }
.entry-content cite { color: var(--mb-muted); font-size: 15px; font-style: normal; font-weight: 700; }
.entry-content table, .wp-block-table table { border-collapse: collapse; width: 100%; min-width: 640px; }
.entry-content table th, .entry-content table td, .wp-block-table th, .wp-block-table td { padding: 14px 16px; border: 1px solid var(--mb-line); vertical-align: top; }
.entry-content table th, .wp-block-table th { background: #f6f0ee; color: #41434a; text-align: left; }
.entry-content .wp-block-table, .entry-content table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.entry-content table { display: block; }
.entry-footer { width: min(800px, calc(100% - 36px)); margin: 0 auto 44px; color: var(--mb-muted); font-size: 15px; }
.author-box {
  width: min(820px, calc(100% - 36px));
  margin: 30px auto 60px;
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 20px;
  padding: 24px;
  border-radius: var(--mb-radius);
  background: #fff;
  border: 1px solid var(--mb-line);
  box-shadow: var(--mb-shadow-soft);
}
.author-box img { border-radius: 999px; }
.author-box h3 { margin: 0 0 4px; font-size: 20px; }
.author-box p { margin: 0; color: var(--mb-muted); font-size: 15px; line-height: 1.6; }
.related-posts { padding: 58px 0 70px; background: #fbf8f5; }
.related-posts .post-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
.page-hero { padding: clamp(46px, 6vw, 84px) 0; background: var(--mb-gradient); text-align: center; }
.page-title { margin: 0; font-family: var(--mb-display-font); font-size: clamp(42px, 6vw, 70px); font-weight: 400; line-height: 1.08; }
.page-content { padding: 48px 0 70px; }
.page-content > * { width: min(820px, calc(100% - 36px)); margin-left: auto; margin-right: auto; }

/* Buttons and product block */
.mb-button, .wp-block-button__link, .contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--mb-gradient-strong);
  color: #fff !important;
  text-decoration: none;
  font-weight: 850;
  letter-spacing: .03em;
  box-shadow: 0 12px 26px rgba(47,108,117,.22);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}
.mb-button:hover, .wp-block-button__link:hover, .contact-submit:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(47,108,117,.27); }
.mb-button-light { background: #fff; color: var(--mb-teal-dark) !important; border: 1px solid #d7e8e9; box-shadow: var(--mb-shadow-soft); }
.mostersbutik-product-card {
  width: min(980px, calc(100% - 36px));
  margin: 34px auto;
  display: grid;
  grid-template-columns: minmax(190px, .72fr) minmax(0, 1.28fr);
  gap: clamp(22px, 4vw, 42px);
  align-items: center;
  padding: clamp(22px, 4vw, 38px);
  border-radius: 34px;
  background: var(--mb-gradient);
  box-shadow: var(--mb-shadow);
  border: 1px solid rgba(255,255,255,.72);
}
.product-card-media { position: relative; }
.product-card-media img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 28px; background: #fff; box-shadow: var(--mb-shadow-soft); display: block; }
.product-card-badge { position: absolute; left: 14px; top: 14px; padding: 7px 10px; border-radius: 999px; background: rgba(255,255,255,.88); color: var(--mb-plum); font-size: 12px; font-weight: 850; text-transform: uppercase; letter-spacing: .09em; }
.product-card-kicker { margin: 0 0 5px; color: var(--mb-teal-dark); text-transform: uppercase; letter-spacing: .16em; font-weight: 850; font-size: 12px; }
.product-card-title { margin: 0; font-family: var(--mb-display-font); font-size: clamp(30px, 4vw, 46px); line-height: 1.08; font-weight: 400; }
.product-card-subtitle { margin: 10px 0 0; color: #575b61; font-size: 20px; line-height: 1.45; font-weight: 700; }
.product-card-description { margin: 14px 0 22px; color: #51555c; font-size: 17px; line-height: 1.65; }

/* Contact */
.contact-layout { width: min(1060px, calc(100% - 36px)); margin: 0 auto; display: grid; grid-template-columns: .9fr 1.1fr; gap: 34px; align-items: start; }
.contact-intro, .contact-form-wrap { background: #fff; border: 1px solid var(--mb-line); border-radius: var(--mb-radius); box-shadow: var(--mb-shadow-soft); padding: clamp(22px, 4vw, 34px); }
.contact-form label { display: block; margin: 0 0 7px; color: #3e4147; font-weight: 800; }
.contact-field { margin-bottom: 18px; }
.contact-form input, .contact-form textarea {
  width: 100%;
  border: 1px solid var(--mb-line);
  border-radius: 18px;
  padding: 13px 16px;
  background: #fff;
  color: var(--mb-ink);
}
.contact-form textarea { min-height: 170px; resize: vertical; }
.mb-notice { width: min(1060px, calc(100% - 36px)); margin: 0 auto 24px; padding: 15px 18px; border-radius: 18px; background: rgba(77,139,148,.12); color: var(--mb-teal-dark); font-weight: 750; }
.mb-notice-error { background: rgba(160,60,60,.1); color: #8b3636; }

/* Footer */
.site-footer { background: #2e3035; color: #f6f2ef; margin-top: 0; }
.footer-top { padding: 56px 0 40px; background: linear-gradient(135deg, #34383f 0%, #413542 58%, #2e3035 100%); }
.footer-grid { width: min(var(--mb-max), calc(100% - 36px)); margin: 0 auto; display: grid; grid-template-columns: 1.4fr .8fr .8fr .8fr; gap: 34px; }
.footer-grid.no-social { grid-template-columns: 1.4fr .8fr .8fr; }
.footer-logo img { max-width: 220px; filter: brightness(0) invert(1); opacity: .94; }
.footer-brand p { margin: 16px 0 0; color: rgba(255,255,255,.76); font-size: 16px; line-height: 1.65; }
.footer-title { margin: 0 0 14px; color: #fff; text-transform: uppercase; letter-spacing: .14em; font-size: 13px; font-weight: 850; }
.footer-menu { list-style: none; margin: 0; padding: 0; }
.footer-menu li { margin-bottom: 9px; }
.footer-menu a, .footer-social a { color: rgba(255,255,255,.8); text-decoration: none; }
.footer-menu a:hover, .footer-social a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer-social { display: flex; flex-direction: column; gap: 9px; }
.footer-bottom { padding: 18px 0; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.68); font-size: 14px; }
.footer-bottom-inner { width: min(var(--mb-max), calc(100% - 36px)); margin: 0 auto; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* 404 */
.error-404 { min-height: 64vh; display: grid; place-items: center; padding: 70px 0; background: var(--mb-gradient); text-align: center; }
.error-symbol { width: 120px; height: 120px; margin: 0 auto 20px; border-radius: 50%; background: rgba(255,255,255,.75); display: grid; place-items: center; box-shadow: var(--mb-shadow-soft); font-size: 54px; color: var(--mb-plum); }
.error-404 h1 { margin: 0 0 12px; font-family: var(--mb-display-font); font-size: clamp(48px, 8vw, 88px); font-weight: 400; }
.error-404 p { margin: 0 auto 24px; max-width: 620px; color: #555960; font-size: 20px; }

/* Search */
.search-form-inline { display: flex; gap: 10px; max-width: 540px; margin: 22px auto 0; }
.search-form-inline .search-field { flex: 1; border: 1px solid var(--mb-line); border-radius: 999px; padding: 12px 17px; }

/* Responsive */
@media (max-width: 1080px) {
  .header-inner { min-height: 82px; gap: 18px; }
  .primary-navigation ul { gap: 18px; }
  .home-category-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-grid, .archive-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  body { font-size: 18px; line-height: 1.7; }
  .mobile-menu-toggle { display: inline-block; }
  .header-search { display: none; }
  .primary-navigation {
    position: fixed;
    inset: 82px 16px auto 16px;
    display: none;
    background: #fff;
    border: 1px solid var(--mb-line);
    border-radius: 24px;
    padding: 18px;
    box-shadow: var(--mb-shadow);
  }
  body.mobile-menu-open .primary-navigation { display: block; }
  .primary-navigation ul { display: block; }
  .primary-navigation li { border-bottom: 1px solid #f0ebe7; }
  .primary-navigation li:last-child { border-bottom: 0; }
  .primary-navigation a { display: block; padding: 14px 4px; font-size: 14px; }
  .primary-navigation .sub-menu { position: static; display: block; min-width: 0; margin: 0; box-shadow: none; border: 0; padding: 0 0 0 14px; background: transparent; }
  .home-category-card { min-height: 112px; grid-template-columns: 84px 1fr; padding: 16px; }
  .home-category-card img { width: 78px; height: 78px; }
  .contact-layout { grid-template-columns: 1fr; }
  .mostersbutik-product-card { grid-template-columns: 1fr; }
  .product-card-media img { max-height: 360px; }
}
@media (max-width: 640px) {
  body { font-size: 19px; }
  .header-inner { width: min(100% - 24px, 1280px); min-height: 76px; }
  .site-logo-img, .custom-logo { max-width: 182px; max-height: 58px; }
  .front-hero { padding-top: 30px; }
  .front-hero-title { font-size: 37px; }
  .front-hero-text { font-size: 20px; line-height: 1.55; }
  .home-category-row { grid-template-columns: 1fr; gap: 16px; width: min(100% - 24px, 1180px); }
  .home-category-card { border-width: 4px; border-radius: 28px; }
  .post-grid, .archive-grid, .related-posts .post-grid { grid-template-columns: 1fr; gap: 22px; }
  .section-header-row { display: block; }
  .entry-title { font-size: 42px; }
  .entry-featured { width: min(100% - 24px, 1040px); }
  .entry-featured img { border-radius: 26px; }
  .entry-content { padding-top: 34px; }
  .entry-content > *, .entry-footer, .author-box, .page-content > * { width: min(100% - 28px, 820px); }
  .entry-content blockquote, blockquote.wp-block-quote { padding: 72px 22px 22px; }
  .entry-content blockquote::before, blockquote.wp-block-quote::before { left: 22px; top: 22px; }
  .author-box { grid-template-columns: 1fr; text-align: center; }
  .author-box img { margin: 0 auto; }
  .contact-intro, .contact-form-wrap { padding: 22px; border-radius: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-bottom-inner { display: block; }
  .mobile-menu-toggle { width: 44px; height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}
