/*
Theme Name: Moderne Tre
Theme URI: https://v2.modernetre.no/
Author: Moderne Tre
Description: Moderne Tre WooCommerce theme.
Version: 0.4.23
Text Domain: modernetre
Requires at least: 6.6
Requires PHP: 8.1
*/

:root {
  --mtw-ink: #111111;
  --mtw-muted: #707070;
  --mtw-paper: #ffffff;
  --mtw-soft: #f5f5f3;
  --mtw-line: #dededb;
  --mtw-accent: #111111;
  --mtw-width: 1170px;
  --mtw-gutter: clamp(20px, 4vw, 48px);
  --mtw-space: clamp(56px, 8vw, 112px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--mtw-muted);
  background: var(--mtw-paper);
  font-family: Lato, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
body.admin-bar .site-header { top: 32px; }
a { color: var(--mtw-ink); text-decoration: none; }
a:hover, a:focus { opacity: .65; }
img { max-width: 100%; height: auto; }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.mtw-container { width: min(calc(100% - (2 * var(--mtw-gutter))), var(--mtw-width)); margin-inline: auto; }

.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97);
  border-bottom: 1px solid transparent; backdrop-filter: blur(10px);
}
.header-inner {
  min-height: 170px; display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 32px;
}
.primary-nav { display: flex; align-items: center; gap: 27px; }
.primary-nav a { font-size: 14px; color: var(--mtw-ink); }
.brand { display: inline-flex; align-items: center; justify-content: center; color: var(--mtw-ink); }
.brand-mark { width: 176px; height: auto; display: block; }
.header-tools { justify-self: end; display: flex; align-items: center; gap: 18px; }
.header-search { display: flex; width: min(260px, 22vw); border-bottom: 1px solid var(--mtw-ink); }
.header-search input { width: 100%; padding: 10px 0; border: 0; background: transparent; font: inherit; outline: 0; }
.header-search button { padding: 8px 0 8px 12px; border: 0; background: transparent; cursor: pointer; }
.tool-link { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; }
.tool-icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.cart-count { min-width: 18px; height: 18px; padding: 0 4px; display: inline-grid; place-items: center; border-radius: 50%; color: #fff; background: #111; font-size: 10px; }
.language-switcher { margin: 0; padding: 0; display: flex; flex-shrink: 0; align-items: center; gap: 5px; list-style: none; white-space: nowrap; color: var(--mtw-ink); }
.language-switcher li { margin: 0; }
.language-switcher li + li::before { content: "|"; margin-right: 5px; opacity: .65; font-size: 11px; }
.language-switcher a { display: inline-block; padding-block: 5px; color: inherit; font-size: 11px; font-weight: 400; letter-spacing: .04em; text-transform: uppercase; line-height: 1; }
.language-switcher .current-lang a { font-weight: 600; }
.language-switcher a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.menu-toggle { display: none; padding: 8px; border: 0; background: none; cursor: pointer; }
.menu-toggle span { width: 23px; height: 2px; display: block; margin: 5px 0; background: var(--mtw-ink); }

.hero { padding: clamp(54px, 9vw, 125px) 0; background: var(--mtw-soft); }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: clamp(40px, 8vw, 110px); }
.eyebrow { margin: 0 0 10px; color: var(--mtw-ink); font-size: clamp(22px, 2.4vw, 28px); font-weight: 400; }
h1, h2, h3 { color: var(--mtw-ink); font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; line-height: 1.08; }
.hero h1 { max-width: 650px; margin: 0 0 28px; font-size: clamp(42px, 5vw, 70px); letter-spacing: -.035em; }
.hero p { max-width: 570px; margin: 0 0 34px; }
.button, button.button, input.button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button {
  display: inline-flex; min-height: 48px; padding: 13px 25px; align-items: center; justify-content: center;
  border: 1px solid var(--mtw-accent); border-radius: 0; color: #fff; background: var(--mtw-accent);
  font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; cursor: pointer;
}
.hero-media { min-height: 500px; background: #e4e7e6; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; min-height: 500px; object-fit: cover; display: block; mix-blend-mode: multiply; }

.category-section { padding: var(--mtw-space) 0; }
.section-title { margin: 0 0 42px; font-size: clamp(28px, 3vw, 40px); }
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.category-card { position: relative; min-height: 330px; padding: 32px; display: flex; align-items: end; overflow: hidden; background: #eeeeec; }
.category-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.category-card:hover img { transform: scale(1.025); }
.category-card::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.55)); }
.category-card-content { position: relative; z-index: 1; color: #fff; }
.category-card h3 { margin: 0 0 5px; color: inherit; font-size: 24px; }
.category-card span { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }

/* Builder-free final homepage components. */
.final-home { overflow: hidden; }
.final-home section { position: relative; }
.final-cover {
  min-height: clamp(520px, 72vw, 760px); display: grid; place-items: center;
  color: #fff; background-position: center; background-size: cover;
}
.final-cover::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.final-cover > * { position: relative; z-index: 1; }
.video-cover { overflow: hidden; background: #b8b7b0 url('assets/brand/hero-poster.jpg') center/cover no-repeat; }
.video-cover::after { background: rgba(0,0,0,.28); pointer-events: none; }
.hero-video { position: absolute !important; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0 !important; }
.hero-motion-toggle { position: absolute !important; right: max(20px, var(--mtw-gutter)); bottom: 24px; z-index: 2 !important; padding: 8px 14px; border: 1px solid rgba(255,255,255,.75); border-radius: 2px; color: #fff; background: rgba(0,0,0,.45); font: inherit; font-size: 13px; cursor: pointer; }
.hero-motion-toggle:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.footer-brand { display: inline-block; margin-bottom: 20px; }
.footer-brand img { display: block; width: 150px; height: auto; }
.final-cover-mark { width: min(430px, 70vw); color: #fff; text-align: center; }
.final-cover-mark strong { display: block; font-size: clamp(38px, 6vw, 72px); font-weight: 500; letter-spacing: -.05em; }
.final-cover-mark span { font-size: 13px; letter-spacing: .22em; text-transform: uppercase; }
.final-section { padding: clamp(62px, 8vw, 105px) 0; }
.final-section-heading { margin: 0 0 38px; font-size: clamp(27px, 3vw, 38px); }
.final-carousel { position: relative; }
.carousel-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 54px) / 4); gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > * { scroll-snap-align: start; }
.carousel-controls { position: absolute; right: 0; top: -72px; display: flex; gap: 8px; }
.carousel-control { width: 42px; height: 42px; border: 1px solid var(--mtw-line); background: #fff; cursor: pointer; }
.final-category-card { position: relative; min-height: 390px; overflow: hidden; background: #e8e8e6; }
.final-category-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.final-category-card:hover img { transform: scale(1.025); }
.final-category-card::after { content: ""; position: absolute; inset: 42% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.62)); }
.final-card-copy { position: absolute; z-index: 1; inset: auto 24px 25px; color: #fff; }
.final-card-copy h3 { margin: 0 0 4px; color: inherit; font-size: 22px; }
.final-card-copy span { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.feature-heading { position: relative; z-index: 1; padding: 0 var(--mtw-gutter) 28px; background: #fff; text-align: center; }
.feature-heading p { margin: 0; color: var(--mtw-ink); font-size: 18px; }
.feature-heading h2 { margin: 5px 0 0; font-size: clamp(30px, 4vw, 48px); }
.feature-cover { min-height: clamp(540px, 70vw, 760px); display: grid; place-items: center; background-position: center; background-size: cover; }
.feature-cover::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.35); }
.feature-cover .button { position: relative; z-index: 1; color: var(--mtw-ink); background: #fff; border-color: #fff; }
.product-carousel .carousel-track { grid-auto-columns: calc((100% - 72px) / 5); }
.final-product-card { text-align: center; }
.final-product-card img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--mtw-soft); }
.final-product-card h3 { margin: 16px 0 5px; font-size: 17px; }
.final-product-card p { min-height: 38px; margin: 0 0 7px; font-size: 12px; }
.final-product-card strong { display: block; margin-bottom: 13px; color: var(--mtw-ink); font-size: 14px; }
.final-product-card .button { min-height: 38px; padding: 9px 16px; font-size: 10px; }
.home-contact { padding: clamp(80px, 11vw, 145px) 0; }
.home-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(55px, 9vw, 110px); }
.home-contact h2 { margin-top: 0; font-size: 36px; }
.home-contact details { padding: 20px 0; border-bottom: 1px solid var(--mtw-line); }
.home-contact summary { color: var(--mtw-ink); font-weight: 700; cursor: pointer; }
.home-contact details p { max-width: 520px; }

.home .site-header { position: absolute; top: 0; width: 100%; color: #fff; background: transparent; backdrop-filter: none; }
.home.admin-bar .site-header { top: 32px; }
.home .primary-nav a, .home .brand, .home .tool-link { color: #fff; }
.home .header-search { border-color: #fff; }
.home .header-search input, .home .header-search button { color: #fff; }
.home .header-search input::placeholder { color: rgba(255,255,255,.82); }
.home .menu-toggle span { background: #fff; }
.home .language-switcher { color: #fff; }

/* Complex content page: cover, editorial splits and certification media. */
.material-page { padding: 63px 25px 0; }
.material-cover { position: relative; min-height: 500px; display: grid; place-items: center; color: #fff; background-position: center; background-size: cover; text-align: center; }
.material-cover::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.35); }
.material-cover-copy { position: relative; z-index: 1; }
.material-cover-copy p { margin: 0; font-size: 28px; }
.material-cover h1 { margin: 4px 0 0; color: #fff; font-size: clamp(42px, 5vw, 54px); }
.material-body { padding: clamp(70px, 9vw, 120px) 0; }
.material-split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(42px, 7vw, 90px); margin-bottom: clamp(70px, 9vw, 125px); }
.material-split.reverse .material-visual { order: 2; }
.material-visual { position: relative; min-height: 690px; overflow: hidden; border-radius: 7px; background: var(--mtw-soft); }
.material-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.material-visual h2 { position: absolute; z-index: 1; left: 32px; bottom: 30px; margin: 0; padding: 8px 12px; background: rgba(255,255,255,.86); font-family: Georgia,serif; font-size: 30px; font-weight: 400; }
.material-copy p { margin: 0 0 18px; }
.material-media-row { margin: -35px auto 80px; display: grid; place-items: center; }
.material-media-row img { max-width: min(520px, 90%); max-height: 360px; object-fit: contain; }
.material-figure { margin: 0 0 clamp(70px, 9vw, 125px); text-align: center; }
.material-figure img { width: min(540px, 90%); max-height: 460px; object-fit: contain; }
.material-figure figcaption { margin-top: 15px; font-size: 13px; }

.footer-promos { max-width: 1200px; margin: 0 auto; padding: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; background: #efefed; border-radius: 8px; }
.footer-promo { display: grid; gap: 10px; font-size: 12px; }
.footer-promo img { width: 100%; height: 250px; object-fit: cover; border-radius: 6px; }
.footer-contact-visual { display: grid; place-items: center; height: 250px; overflow: hidden; border-radius: 6px; background: #fff; }
.footer-contact-visual svg { display: block; width: 100%; height: 100%; overflow: hidden; }
.footer-main { padding-top: 38px; }
.final-footer-grid { grid-template-columns: 1fr 1.3fr; align-items: start; }
.footer-newsletter h2 { font-size: clamp(27px, 3vw, 36px); }
.footer-newsletter .button { margin-top: 8px; }
.final-footer-bottom { display: grid; grid-template-columns: 1.5fr 1fr auto; gap: 35px; align-items: end; }
.final-footer-bottom p { margin: 0 0 10px; }
.final-footer-bottom nav { display: flex; flex-wrap: wrap; gap: 18px; }

.site-main { min-height: 50vh; }
.content-area, .woocommerce-page .site-main { padding: clamp(48px, 7vw, 90px) 0; }
.content-area article > h1 { margin-bottom: 1.4rem; }
.content-area article > p, .content-area article > h2, .content-area article > ul { max-width: 72ch; }
.content-area article > h2 { margin-top: 2rem; }
.mtw-gallery-page .content-area { padding: 55px 0 90px; }
.mtw-gallery-page .mtw-container { width: min(calc(100% - 50px), 1390px); }
.mtw-gallery-page .content-area article > h1 { margin: 0 0 8px; text-align: center; font-size: clamp(30px, 3vw, 36px); }
.mtw-gallery-page .content-area article > p { max-width: none; margin: 0; text-align: center; font-size: clamp(18px, 2vw, 25px); }
.mtw-photo-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 70px; }
.mtw-photo-column { display: flex; flex-direction: column; gap: 20px; }
.mtw-photo-column img { display: block; width: 100%; height: auto; }
.mtw-photo-column a:focus-visible { outline: 3px solid var(--mtw-ink); outline-offset: 3px; }
.mtw-contact-form { display: grid; gap: 18px; max-width: 620px; margin-top: 30px; }
.mtw-contact-form label { display: grid; gap: 7px; font-weight: 600; }
.mtw-contact-form input, .mtw-contact-form textarea { width: 100%; padding: 12px; border: 1px solid var(--mtw-line); font: inherit; }
.mtw-contact-form :focus-visible { outline: 3px solid var(--mtw-ink); outline-offset: 2px; }
.mtw-contact-form button { width: fit-content; padding: 13px 24px; background: var(--mtw-ink); color: #fff; border: 0; cursor: pointer; }
.mtw-contact-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.woocommerce .woocommerce-breadcrumb { margin-bottom: 35px; color: #888; font-size: 13px; }
.post-type-archive-product .site-main, .tax-product_cat .site-main { padding-top: 24px; }
.woocommerce-products-header__title.page-title { margin: 0 0 45px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(48px, 6vw, 80px); font-weight: 400; }
.mtw-shop-controls { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; clear: both; margin: 0 0 32px; color: var(--mtw-ink); }
.mtw-shop-filter { position: relative; min-width: 0; border: 1px solid var(--mtw-line); }
.mtw-shop-filter summary, .mtw-shop-sort > span { display: flex; min-height: 48px; padding: 12px 15px; align-items: center; justify-content: space-between; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; cursor: pointer; }
.mtw-shop-filter summary::after { content: "⌄"; margin-left: 12px; font-size: 18px; line-height: 1; }
.mtw-shop-filter[open] summary::after { transform: rotate(180deg); }
.mtw-shop-filter nav, .mtw-shop-filter > form { position: absolute; top: 100%; left: -1px; right: -1px; z-index: 15; max-height: 340px; padding: 14px; overflow-y: auto; border: 1px solid var(--mtw-line); background: #fff; box-shadow: 0 12px 20px rgba(0,0,0,.08); }
.mtw-shop-filter nav a { display: block; padding: 6px 3px; font-size: 14px; }
.mtw-shop-filter nav a[aria-current="page"] { font-weight: 700; text-decoration: underline; }
.mtw-shop-filter label { display: block; margin-bottom: 10px; font-size: 13px; }
.mtw-shop-filter input[type="number"] { display: block; width: 100%; min-height: 40px; padding: 6px 8px; border: 1px solid var(--mtw-line); }
.mtw-shop-filter button { min-height: 38px; width: 100%; }
.mtw-shop-sort { display: flex; align-items: center; border: 1px solid var(--mtw-line); }
.mtw-shop-sort > span { flex: 0 0 auto; padding-right: 0; cursor: auto; }
.woocommerce .mtw-shop-sort .woocommerce-ordering { float: none; width: 100%; margin: 0; }
.mtw-shop-sort select { width: 100%; min-height: 48px; padding: 8px 10px; border: 0; background: transparent; color: var(--mtw-ink); font: inherit; font-size: 13px; }
.mtw-shop-filter summary:focus-visible, .mtw-shop-filter a:focus-visible, .mtw-shop-sort select:focus-visible { outline: 2px solid var(--mtw-ink); outline-offset: 2px; }
.woocommerce ul.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 45px 24px; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product { width: auto !important; margin: 0 !important; text-align: center; }
.woocommerce ul.products li.product a img { margin: 0 0 20px; background: var(--mtw-soft); aspect-ratio: 1; object-fit: cover; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { padding: 0; font-size: 18px; }
.woocommerce ul.products li.product .price { color: var(--mtw-ink); font-size: 16px; }
.woocommerce ul.products li.product .button { margin-top: 12px; }

.single-product .site-main { margin-top: 52px; padding: 64px 0; background: #f7f7f7; }
.single-product .mtw-container { width: min(calc(100% - (2 * var(--mtw-gutter))), 1320px); }
.single-product div.product { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(360px, 1fr); gap: 40px; padding: 0 !important; }
.single-product div.product > .onsale { z-index: 2; }
.woocommerce div.product div.images, .woocommerce div.product div.summary { float: none; width: auto; margin: 0; }
.woocommerce div.product div.summary { padding-top: 55px; }
.woocommerce div.product div.images { position: relative; width: 100%; max-width: 560px; justify-self: center; align-self: start; background: #fff; }
.woocommerce div.product div.images .woocommerce-product-gallery__image { aspect-ratio: 1; background: #fff; }
.woocommerce div.product div.images .woocommerce-product-gallery__image a { display: block; width: 100%; height: 100%; cursor: default; }
.woocommerce div.product div.images .woocommerce-product-gallery__image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.woocommerce div.product div.images .flex-control-thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.woocommerce div.product div.images .flex-control-thumbs li { float: none; width: auto; }
.woocommerce div.product div.images .flex-control-thumbs img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; }
.woocommerce div.product div.images .flex-direction-nav { position: absolute; top: 0; left: 0; width: 100%; aspect-ratio: 1; margin: 0; padding: 0; list-style: none; pointer-events: none; }
.woocommerce div.product div.images .flex-direction-nav li { position: absolute; top: 50%; transform: translateY(-50%); }
.woocommerce div.product div.images .flex-nav-prev { left: 12px; }
.woocommerce div.product div.images .flex-nav-next { right: 12px; }
.woocommerce div.product div.images .flex-direction-nav a { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--mtw-line); border-radius: 50%; background: rgba(255,255,255,.94); color: var(--mtw-ink); font-size: 30px; line-height: 1; pointer-events: auto; }
.woocommerce div.product div.images .flex-direction-nav .flex-disabled { opacity: .3; pointer-events: none; }
.woocommerce div.product div.images .flex-direction-nav a:focus-visible { outline: 2px solid var(--mtw-ink); outline-offset: 3px; }
.woocommerce div.product .product_title { margin: 0 0 22px; font-size: clamp(44px, 4vw, 54px); letter-spacing: -.035em; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--mtw-ink); font-size: 28px; font-weight: 700; }
.woocommerce div.product .mtw-product-lead-time { margin: 16px 0 0; color: var(--mtw-muted); font-size: 15px; line-height: 1.5; }
.woocommerce div.product form.cart .variations { margin: 28px 0 18px; }
.woocommerce div.product form.cart .variations th, .woocommerce div.product form.cart .variations td { display: block; text-align: left; }
.woocommerce div.product form.cart .variations label { color: var(--mtw-ink); font-size: 14px; }
.woocommerce div.product form.cart .variations select { width: 100%; min-height: 46px; padding: 8px 36px 8px 12px; border: 1px solid var(--mtw-line); background: #fff; }
.woocommerce div.product form.cart .variations tr[hidden] { display: none; }
.mtw-color-swatches { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 5px; }
.mtw-color-swatch { width: 34px; height: 34px; padding: 0; border: 2px solid #fff; border-radius: 50%; background: var(--mtw-swatch-color); box-shadow: 0 0 0 1px #aaa; cursor: pointer; }
.mtw-color-swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--mtw-ink); }
.mtw-color-swatch:focus-visible { outline: 2px solid var(--mtw-ink); outline-offset: 4px; }
.mtw-product-documents { grid-column: 1 / -1; margin-top: 24px; }
.mtw-product-documents a { text-decoration: underline; text-underline-offset: 3px; }
.woocommerce div.product form.cart div.quantity { margin-right: 10px; }
.woocommerce .quantity .qty { min-height: 48px; border: 1px solid var(--mtw-line); }
.woocommerce div.product form.cart .button.alt,
.woocommerce div.product form.cart .button.alt:hover,
.woocommerce div.product form.cart .button.alt:focus { color: #fff; background: var(--mtw-ink); }
.woocommerce div.product .woocommerce-tabs, .woocommerce div.product .related { grid-column: 1 / -1; }
.woocommerce-message, .woocommerce-info { border-top-color: var(--mtw-ink); }
.woocommerce-message::before, .woocommerce-info::before { color: var(--mtw-ink); }

.site-footer { margin-top: var(--mtw-space); padding: 68px 0 28px; color: var(--mtw-muted); background: #fff; border-top: 1px solid var(--mtw-line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 70px; }
.site-footer h2, .site-footer h3 { color: var(--mtw-ink); }
.site-footer h2 { margin: 0 0 18px; font-size: 32px; }
.site-footer h3 { margin: 0 0 18px; font-size: 15px; text-transform: uppercase; letter-spacing: .12em; }
.footer-links { display: grid; gap: 9px; }
.site-footer a { color: var(--mtw-ink); }
.footer-bottom { margin-top: 55px; padding-top: 24px; border-top: 1px solid var(--mtw-line); font-size: 12px; }

@media (max-width: 900px) {
  body.admin-bar .site-header { top: 46px; }
  .header-inner { min-height: 96px; grid-template-columns: auto 1fr auto; gap: 12px; }
  .menu-toggle { display: block; }
  .brand { justify-self: center; }
  .brand-mark { width: 128px; height: auto; }
  .primary-nav { position: absolute; inset: 96px 0 auto; padding: 24px var(--mtw-gutter); display: none; align-items: flex-start; flex-direction: column; background: #fff; border-top: 1px solid var(--mtw-line); box-shadow: 0 12px 22px rgba(0,0,0,.08); }
  .primary-nav.is-open { display: flex; }
  .header-search, .account-label { display: none; }
  .header-tools { gap: 9px; }
  .language-switcher { position: absolute; right: var(--mtw-gutter); bottom: 4px; }
  .hero-grid, .single-product div.product { grid-template-columns: 1fr; }
  .woocommerce div.product div.summary { padding-top: 0; }
  .hero-media, .hero-media img { min-height: 390px; }
  .category-grid { grid-template-columns: 1fr 1fr; }
  .woocommerce ul.products { grid-template-columns: 1fr 1fr; }
  .mtw-photo-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mtw-shop-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .home-contact-grid, .material-split { grid-template-columns: 1fr; }
  .material-split.reverse .material-visual { order: 0; }
  .material-visual { min-height: 560px; }
  .final-footer-bottom { grid-template-columns: 1fr 1fr; }
  .home.admin-bar .site-header { top: 46px; }
  .home .primary-nav.is-open a { color: var(--mtw-ink); }
}

@media (max-width: 560px) {
  .mtw-photo-gallery, .mtw-photo-column { gap: 10px; }
  .mtw-gallery-page .mtw-container { width: calc(100% - 30px); }
  .mtw-gallery-page .content-area { padding-top: 45px; }
  .mtw-photo-gallery { margin-top: 40px; }
  .header-inner { min-height: 84px; }
  .primary-nav { top: 84px; }
  .brand-mark { width: 112px; height: auto; }
  .hero { padding-top: 42px; }
  .hero-grid { gap: 34px; }
  .hero-media, .hero-media img { min-height: 330px; }
.category-grid, .woocommerce ul.products, .footer-grid { grid-template-columns: 1fr; }
  .mtw-shop-controls { grid-template-columns: 1fr; }
  .category-card { min-height: 300px; }
  .footer-brand { grid-column: auto; }
  .single-product div.product { gap: 32px; }
  .single-product .site-main { margin-top: 0; padding: 32px 0; }
  .woocommerce div.product .product_title { font-size: 40px; }
  .final-cover { min-height: 510px; }
  .final-section { padding-block: 55px; }
  .carousel-track { grid-auto-columns: 82vw; }
  .carousel-controls { top: -65px; }
  .final-category-card { min-height: 420px; }
  .feature-heading { padding-top: 12px; }
  .feature-cover { min-height: 520px; }
  .home-contact { padding-block: 70px; }
  .home-contact-grid { gap: 42px; }
  .material-page { padding: 24px 15px 0; }
  .material-cover { min-height: 440px; }
  .material-cover-copy p { font-size: 20px; }
  .material-body { padding-block: 58px; }
  .material-split { gap: 30px; margin-bottom: 70px; }
  .material-visual { min-height: 470px; }
  .material-visual h2 { left: 20px; bottom: 18px; font-size: 25px; }
  .material-copy { font-size: 15px; }
  .footer-promos, .final-footer-grid, .final-footer-bottom { grid-template-columns: 1fr; }
  .footer-promos { padding: 20px; }
  .footer-promo img { height: 210px; }
  .footer-contact-visual { height: 210px; }
}

/* Left catalog menu: shared only by the EU and v2 theme. */
.header-navigation { display: flex; align-items: center; gap: 14px; min-width: 0; }
.header-navigation .menu-toggle { display: block; flex: 0 0 40px; color: inherit; }
.menu-toggle:focus-visible, .catalog-drawer :focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.catalog-open { overflow: hidden; }
.catalog-drawer { position: fixed; inset: 0 auto 0 0; width: min(1180px, calc(100% - 60px)); height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 28px 32px 40px; border: 0; color: var(--mtw-ink); background: #fff; overflow-y: auto; overscroll-behavior: contain; }
.catalog-drawer::backdrop { background: rgba(0,0,0,.45); }
.catalog-drawer-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.catalog-drawer-heading h2 { margin: 0; font-size: 22px; font-weight: 400; }
.catalog-close { flex-shrink: 0; width: 44px; height: 44px; border: 0; background: transparent; color: inherit; font-size: 32px; cursor: pointer; }
.catalog-search { display: flex; width: min(100%, 420px); border-bottom: 1px solid var(--mtw-line); margin-bottom: 24px; }
.catalog-search input { flex: 1; min-width: 0; padding: 12px 0; border: 0; background: transparent; font: inherit; }
.catalog-search button { display: grid; place-items: center; width: 44px; border: 0; color: inherit; background: transparent; cursor: pointer; }
.catalog-group { border-bottom: 1px solid var(--mtw-line); padding: 14px 0; }
.catalog-group > summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; list-style: none; cursor: pointer; font-size: 18px; }
.catalog-group > summary::-webkit-details-marker { display: none; }
.catalog-group > summary::after { content: '+'; font-size: 24px; }
.catalog-group[open] > summary::after { content: '−'; }
.catalog-all { display: inline-block; margin: 18px 0; text-decoration: underline; text-underline-offset: 4px; font-size: 13px; }
.catalog-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 24px; }
.catalog-category-title { display: block; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--mtw-ink); font-size: 16px; }
.catalog-product { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; font-size: 14px; line-height: 1.4; }
.catalog-product img { display: block; width: 64px; height: 54px; flex-shrink: 0; object-fit: contain; background: var(--mtw-soft); border-radius: 3px; }
.catalog-pages { display: grid; gap: 18px; margin-top: 28px; font-size: 15px; }
@media (min-width: 901px) and (max-width: 1200px) { .header-navigation .primary-nav { display: none; } }
@media (max-width: 900px) { .header-navigation .primary-nav { display: none; } .catalog-drawer { padding: 18px 20px 32px; } }
@media (max-width: 560px) {
  .catalog-drawer { width: calc(100% - 36px); }
  .catalog-drawer-heading h2 { font-size: 18px; }
  .catalog-columns { grid-template-columns: 1fr; }
}

.catalog-category-image { display: block; margin-bottom: 18px; }
.catalog-category-image img { display: block; width: 100%; height: 95px; object-fit: cover; border-radius: 3px; }
