/*
Theme Name: DMTX Store
Theme URI: https://dmtx.cn
Author: DMTX
Author URI: https://dmtx.cn
Description: A premium, responsive WooCommerce theme for independent online stores.
Version: 1.4.2
Text Domain: dmtx-theme
Requires at least: 6.5
Requires PHP: 8.1
*/

:root {
    --color-primary: #1c1917;
    --color-on-primary: #ffffff;
    --color-secondary: #57534e;
    --color-accent: #a16207;
    --color-background: #f7f7f5;
    --color-surface: #ffffff;
    --color-foreground: #0c0a09;
    --color-muted: #78716c;
    --color-border: #dedbd6;
    --color-soft: #ebe9e5;
    --color-danger: #c62828;
    --content-width: 1240px;
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
    --shadow-sm: 0 12px 30px rgba(28, 25, 23, 0.06);
    --shadow-md: 0 24px 70px rgba(28, 25, 23, 0.12);
    --ease: 180ms ease;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--color-foreground);
    background: var(--color-background);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    color: inherit;
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: 3px solid rgba(161, 98, 7, 0.42);
    outline-offset: 3px;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    z-index: 9999;
    top: 12px;
    left: 12px;
    padding: 10px 16px;
    color: #fff;
    background: #111;
    transform: translateY(-160%);
}

.skip-link:focus {
    transform: translateY(0);
}

.store-shell {
    width: min(calc(100% - 48px), var(--content-width));
    margin-inline: auto;
}

.announcement-bar {
    border-bottom: 1px solid var(--color-border);
    color: var(--color-secondary);
    background: #f3f2ef;
    font-size: 12px;
    letter-spacing: 0.02em;
}

.announcement-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 34px;
}

.announcement-bar a {
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.site-header {
    position: sticky;
    z-index: 100;
    top: 0;
    border-bottom: 1px solid rgba(222, 219, 214, 0.75);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(18px);
}

.site-header__inner {
    display: grid;
    grid-template-columns: auto auto minmax(280px, var(--header-search-width, 360px)) auto;
    gap: 24px;
    align-items: center;
    min-height: 76px;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    font-weight: 750;
    letter-spacing: -0.035em;
}

.site-brand__mark {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: #fff;
    background: var(--color-primary);
    border-radius: 10px 5px 10px 5px;
    font-size: 15px;
}

.site-brand__text {
    font-size: 18px;
}

.custom-logo {
    width: auto;
    max-height: 38px;
}

.primary-nav .menu {
    display: flex;
    gap: 22px;
    align-items: center;
    padding: 0;
    margin: 0;
    list-style: none;
}

.primary-nav .menu > li {
    position: relative;
}

.primary-nav .sub-menu {
    position: absolute;
    z-index: 30;
    top: calc(100% - 2px);
    left: -18px;
    display: grid;
    min-width: 210px;
    padding: 10px;
    margin: 0;
    border: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.98);
    border-radius: 14px;
    box-shadow: var(--shadow-md);
    list-style: none;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity var(--ease), transform var(--ease);
}

.primary-nav .sub-menu .sub-menu {
    top: -10px;
    left: calc(100% + 8px);
}

.primary-nav .sub-menu a {
    display: flex;
    justify-content: space-between;
    width: 100%;
    min-height: 42px;
    padding: 0 12px;
    border-radius: 9px;
}

.primary-nav .sub-menu a:hover,
.primary-nav .sub-menu a:focus-visible {
    color: var(--color-foreground);
    background: #f3f2ef;
}

.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.primary-nav .menu-item-has-children > a::after {
    margin-left: 7px;
    color: var(--color-muted);
    content: "⌄";
    font-size: 11px;
}

.primary-nav .sub-menu .menu-item-has-children > a::after {
    content: "›";
}

.submenu-toggle {
    display: none;
}

.primary-nav a,
.header-actions a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: #44403c;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: color var(--ease);
}

.primary-nav a:hover,
.header-actions a:hover {
    color: var(--color-accent);
}

.header-search {
    display: flex;
    min-width: 220px;
    height: 44px;
    padding: 4px;
    border: 1px solid var(--color-border);
    background: #f3f2ef;
    border-radius: 999px;
}

.header-search:focus-within {
    border-color: #a8a29e;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(161, 98, 7, 0.1);
}

.header-search input {
    width: 100%;
    min-width: 0;
    padding: 0 14px;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 14px;
}

.header-search button {
    min-width: 60px;
    padding: 0 14px;
    border: 0;
    color: #fff;
    background: var(--color-primary);
    border-radius: 999px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
}

.mobile-header-search-wrap {
    display: none;
}

.mobile-header-search {
    display: flex;
    width: 100%;
    min-height: 48px;
    padding: 4px;
    border: 1px solid var(--color-border);
    background: #f3f2ef;
    border-radius: 999px;
}

.mobile-header-search:focus-within {
    border-color: #a8a29e;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(161, 98, 7, 0.1);
}

.mobile-header-search input[type="search"] {
    width: 100%;
    min-width: 0;
    padding: 0 14px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--color-foreground);
    font-size: 16px;
}

.mobile-header-search button {
    flex: 0 0 auto;
    min-width: 64px;
    min-height: 40px;
    padding: 0 16px;
    border: 0;
    color: #fff;
    background: var(--color-primary);
    border-radius: 999px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
}

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

.dmtx-language-switcher {
    position: relative;
    color: inherit;
}

.dmtx-language-switcher summary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 44px;
    padding: 0 10px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    list-style: none;
}

.dmtx-language-switcher summary::-webkit-details-marker { display: none; }
.dmtx-language-switcher summary:hover,
.dmtx-language-switcher summary:focus-visible { background: rgba(28, 25, 23, 0.06); }
.dmtx-language-switcher img { flex: 0 0 auto; object-fit: cover; }
.dmtx-language-switcher__chevron { transition: transform var(--ease); }
.dmtx-language-switcher[open] .dmtx-language-switcher__chevron { transform: rotate(180deg); }

.dmtx-language-switcher ul {
    position: absolute;
    z-index: 260;
    top: calc(100% + 8px);
    right: 0;
    min-width: 168px;
    margin: 0;
    padding: 8px;
    border: 1px solid #e7e3dd;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(28, 25, 23, 0.14);
    list-style: none;
}

.dmtx-language-switcher li { margin: 0; }
.dmtx-language-switcher li a {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    padding: 0 11px;
    border-radius: 10px;
    color: #292524;
}
.dmtx-language-switcher li a:hover,
.dmtx-language-switcher li a[aria-current="page"] { color: var(--color-accent); background: #f6f4f1; }

.dmtx-language-switcher--footer { margin-top: 18px; width: max-content; }
.dmtx-language-switcher--footer summary { border: 1px solid rgba(255,255,255,.18); }
.dmtx-language-switcher--footer ul { right: auto; bottom: calc(100% + 8px); top: auto; }

.cart-link {
    gap: 7px;
}

.cart-count {
    display: grid;
    min-width: 21px;
    height: 21px;
    padding-inline: 5px;
    place-items: center;
    color: #fff;
    background: var(--color-accent);
    border-radius: 999px;
    font-size: 11px;
}

.menu-toggle {
    display: none;
    min-width: 48px;
    min-height: 44px;
    border: 1px solid var(--color-border);
    background: #fff;
    border-radius: 10px;
    cursor: pointer;
}

.site-main {
    min-height: 65vh;
}

.home-main {
    padding: 24px 0 88px;
}

.hero-commerce {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(400px, 0.96fr);
    min-height: 520px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    background: var(--hero-background, #eeece7);
    border-radius: var(--radius-lg);
}

.hero-commerce--standard {
    min-height: 650px;
}

.hero-commerce--large {
    min-height: 760px;
}

.hero-commerce--compact .hero-commerce__content {
    padding: clamp(34px, 4.2vw, 56px);
}

.hero-commerce.hero-commerce--compact h1 {
    font-size: clamp(42px, 4.3vw, 60px);
}

.hero-commerce--compact .hero-commerce__lead {
    margin-top: 18px;
    line-height: 1.65;
}

.hero-commerce--compact .hero-commerce__actions {
    margin-top: 24px;
}

.hero-commerce--compact .hero-commerce__meta {
    margin-top: 34px;
}

.hero-commerce__content {
    display: flex;
    z-index: 1;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(42px, 5.5vw, 72px);
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--color-accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero-commerce h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(44px, 5.1vw, 72px);
    font-weight: 730;
    line-height: 0.98;
    letter-spacing: -0.07em;
}

.hero-commerce__lead {
    max-width: 610px;
    margin: 28px 0 0;
    color: var(--color-secondary);
    font-size: clamp(16px, 1.5vw, 19px);
    line-height: 1.8;
}

.hero-commerce__actions {
    display: flex;
    gap: 22px;
    align-items: center;
    margin-top: 34px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 24px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 750;
    transition: transform var(--ease), box-shadow var(--ease), background var(--ease);
}

.button:hover {
    transform: translateY(-2px);
}

.button--primary {
    color: #fff;
    background: var(--color-primary);
    box-shadow: 0 12px 28px rgba(28, 25, 23, 0.18);
}

.button--primary:hover {
    background: #39332f;
    box-shadow: 0 16px 36px rgba(28, 25, 23, 0.24);
}

.button--text {
    padding-inline: 0;
    border-radius: 0;
}

.button--text span {
    margin-left: 8px;
    transition: transform var(--ease);
}

.button--text:hover span {
    transform: translateX(4px);
}

.hero-commerce__meta {
    display: flex;
    gap: clamp(20px, 4vw, 48px);
    margin: 56px 0 0;
}

.hero-commerce__meta div {
    display: grid;
    gap: 1px;
}

.hero-commerce__meta dt {
    font-size: 16px;
    font-weight: 800;
}

.hero-commerce__meta dd {
    margin: 0;
    color: var(--color-muted);
    font-size: 12px;
}

.hero-product-art {
    position: relative;
    display: grid;
    overflow: hidden;
    place-items: center;
    background: var(--hero-visual-background, #d8d1c7);
}

.hero-product-art.has-image::before {
    display: none;
}

.hero-product-art.has-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-product-art::before {
    position: absolute;
    width: 560px;
    height: 560px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    content: "";
}

.hero-product-art__orb {
    position: absolute;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle at 30% 25%, #ffe8b8, #ba7b3a 58%, #5c331e);
    border-radius: 50%;
    box-shadow: inset -35px -30px 70px rgba(59, 28, 9, 0.34), 0 50px 90px rgba(83, 48, 26, 0.22);
    transform: translate(34px, -50px);
}

.hero-product-art__card {
    position: absolute;
    display: flex;
    flex-direction: column;
    width: 220px;
    height: 300px;
    padding: 24px;
    color: #f7f5f2;
    background: rgba(28, 25, 23, 0.93);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    box-shadow: var(--shadow-md);
}

.hero-product-art__card span,
.hero-product-art__card small {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.hero-product-art__card strong {
    margin: auto 0;
    font-size: 92px;
    font-weight: 300;
    line-height: 1;
}

.hero-product-art__card--front {
    z-index: 2;
    transform: translate(-40px, 42px) rotate(-7deg);
}

.hero-product-art__card--back {
    color: #241b14;
    background: rgba(244, 213, 161, 0.9);
    transform: translate(98px, -64px) rotate(8deg);
}

.hero-product-art > p {
    position: absolute;
    right: 30px;
    bottom: 22px;
    margin: 0;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.home-section {
    padding-top: 104px;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 34px;
}

.section-heading h2,
.editorial-promo h2 {
    margin: 0;
    font-size: clamp(34px, 4.2vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.055em;
}

.section-heading > a {
    min-height: 44px;
    color: var(--color-secondary);
    font-size: 13px;
    font-weight: 700;
}

.section-heading > a:hover {
    color: var(--color-accent);
}

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

.collection-card {
    position: relative;
    display: flex;
    min-height: 330px;
    overflow: hidden;
    flex-direction: column;
    justify-content: space-between;
    padding: 22px;
    border: 1px solid rgba(28, 25, 23, 0.08);
    border-radius: var(--radius-md);
    transition: transform var(--ease), box-shadow var(--ease);
}

.collection-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-sm);
}

.collection-card__number {
    z-index: 2;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.collection-card__shape {
    position: absolute;
    top: 48px;
    left: 50%;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.62);
    border-radius: 44% 56% 61% 39% / 44% 43% 57% 56%;
    box-shadow: inset -18px -16px 28px rgba(28, 25, 23, 0.08);
    transform: translateX(-50%) rotate(18deg);
}

.collection-card h3 {
    margin: 0;
    font-size: 22px;
    letter-spacing: -0.035em;
}

.collection-card p {
    margin: 4px 0 0;
    color: rgba(28, 25, 23, 0.65);
    font-size: 13px;
}

.collection-card__arrow {
    position: absolute;
    right: 20px;
    bottom: 20px;
    font-size: 20px;
}

.tone-violet { background: #ded7eb; }
.tone-silver { background: #e2e3e2; }
.tone-amber { background: #ead8b8; }
.tone-graphite { color: #fff; background: #343434; }
.tone-olive { background: #d8deca; }
.tone-blue { background: #d4e2e7; }
.tone-rose { background: #ead5d3; }
.tone-sand { background: #e7dfd3; }

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

.product-showcase + .product-showcase {
    position: relative;
}

.product-showcase + .product-showcase::before {
    position: absolute;
    top: 42px;
    right: 0;
    left: 0;
    height: 1px;
    background: var(--color-border);
    content: "";
}

.home-section__empty {
    padding: 28px;
    border: 1px dashed var(--color-border);
    color: var(--color-muted);
    background: rgba(255, 255, 255, 0.55);
    border-radius: var(--radius-sm);
}

.product-card__media {
    position: relative;
    display: grid;
    aspect-ratio: 4 / 4.7;
    overflow: hidden;
    place-items: center;
    border-radius: var(--radius-md);
}

.product-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 320ms ease;
}

.product-card__media:hover img {
    transform: scale(1.035);
}

.product-card__badge {
    position: absolute;
    z-index: 2;
    top: 14px;
    left: 14px;
    padding: 5px 9px;
    color: #fff;
    background: rgba(28, 25, 23, 0.82);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
}

.product-card__object {
    display: grid;
    width: 53%;
    aspect-ratio: 1;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.48);
    background: rgba(255, 255, 255, 0.46);
    border-radius: 42% 58% 49% 51% / 55% 38% 62% 45%;
    box-shadow: inset -25px -20px 45px rgba(28, 25, 23, 0.09), 0 28px 55px rgba(28, 25, 23, 0.12);
    transform: rotate(-12deg);
    transition: transform 300ms ease;
}

.product-card__object i {
    display: block;
    width: 42%;
    height: 42%;
    border: 16px solid rgba(28, 25, 23, 0.76);
    border-radius: 50%;
}

.product-card__media:hover .product-card__object {
    transform: translateY(-6px) rotate(-5deg);
}

.product-card__quick {
    position: absolute;
    right: 14px;
    bottom: 14px;
    left: 14px;
    display: grid;
    min-height: 44px;
    place-items: center;
    color: #fff;
    background: rgba(28, 25, 23, 0.92);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity var(--ease), transform var(--ease);
}

.product-card__media:hover .product-card__quick,
.product-card__media:focus-visible .product-card__quick {
    opacity: 1;
    transform: translateY(0);
}

.product-card__body {
    padding: 16px 3px 0;
}

.product-card__category {
    min-height: 18px;
    margin: 0 0 4px;
    color: var(--color-muted);
    font-size: 11px;
}

.product-card__category a {
    color: inherit;
}

.product-card h3 {
    margin: 0;
    font-size: 16px;
    line-height: 1.4;
    letter-spacing: -0.02em;
}

.product-card__price {
    margin-top: 8px;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
    font-weight: 760;
}

.product-card__price del {
    margin-right: 8px;
    color: var(--color-muted);
    font-weight: 500;
}

.product-card__price ins {
    color: var(--color-danger);
    text-decoration: none;
}

.editorial-promo {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    min-height: 560px;
    margin-top: 108px;
    overflow: hidden;
    color: #fff;
    background: #1e1d1b;
    border-radius: var(--radius-lg);
}

.editorial-promo__visual {
    position: relative;
    display: grid;
    overflow: hidden;
    place-items: center;
    background: linear-gradient(135deg, #664b2f, #b77c3b 52%, #e1b66f);
}

.editorial-promo.has-image .editorial-promo__visual {
    background-position: center;
    background-size: cover;
}

.editorial-promo__visual::before,
.editorial-promo__visual::after {
    position: absolute;
    width: 480px;
    height: 480px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    content: "";
}

.editorial-promo__visual::after {
    width: 330px;
    height: 330px;
}

.editorial-promo__disc {
    position: relative;
    z-index: 1;
    width: 210px;
    height: 210px;
    background: radial-gradient(circle at 34% 27%, #fff0cf, #c98b3d 45%, #4c2814 100%);
    border-radius: 50%;
    box-shadow: 0 50px 90px rgba(38, 20, 10, 0.35);
}

.editorial-promo__line {
    position: absolute;
    bottom: 24px;
    left: 26px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.2em;
}

.editorial-promo__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(44px, 6vw, 80px);
}

.editorial-promo__content p:not(.eyebrow) {
    max-width: 520px;
    margin: 26px 0 0;
    color: #cfcac4;
    line-height: 1.85;
}

.button--light {
    margin-top: 32px;
    color: #1c1917;
    background: #fff;
}

.service-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 88px;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.service-strip article {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    align-items: start;
    min-height: 128px;
    padding: 30px 22px;
    border-right: 1px solid var(--color-border);
}

.service-strip article:last-child {
    border-right: 0;
}

.service-strip strong {
    color: var(--color-accent);
    font-size: 10px;
    letter-spacing: 0.12em;
}

.service-strip h2 {
    margin: 0;
    font-size: 15px;
}

.service-strip p {
    margin: 4px 0 0;
    color: var(--color-muted);
    font-size: 12px;
}

.site-footer {
    padding: 72px 0 24px;
    color: #dedad4;
    background: #171614;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 0.65fr 0.65fr 1.2fr;
    gap: 56px;
}

.site-brand--footer {
    color: #fff;
}

.site-brand--footer .site-brand__mark {
    color: #171614;
    background: #f4d49a;
}

.footer-brand p,
.footer-newsletter p {
    max-width: 360px;
    margin: 18px 0 0;
    color: #96918b;
    font-size: 13px;
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.footer-social a,
.footer-social__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: #aaa59e;
    border: 1px solid #45413d;
    border-radius: 50%;
    transition: color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.footer-social a:hover,
.footer-social a:focus-visible {
    color: #fff;
    border-color: #d6a44f;
    transform: translateY(-2px);
}

.footer-social__icon,
.footer-social__icon svg {
    display: block;
    width: 22px;
    height: 22px;
}

.footer-grid h2 {
    margin: 7px 0 16px;
    color: #fff;
    font-size: 13px;
}

.footer-grid > div:not(.footer-brand) > a {
    display: block;
    width: fit-content;
    min-height: 34px;
    color: #aaa59e;
    font-size: 13px;
}

.footer-grid > div > a:hover {
    color: #fff;
}

.footer-newsletter form {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.footer-newsletter__row {
    display: flex;
    height: 46px;
    border-bottom: 1px solid #4f4b46;
}

.footer-newsletter input {
    width: 100%;
    border: 0;
    outline: 0;
    color: #fff;
    background: transparent;
}

.footer-newsletter button {
    border: 0;
    color: #8c8780;
    background: transparent;
    white-space: nowrap;
}

.footer-newsletter__consent { display: flex; gap: 8px; align-items: flex-start; color: #8f8a84; font-size: 11px; line-height: 1.55; }
.footer-newsletter__consent input { flex: 0 0 auto; width: 15px; height: 15px; margin-top: 2px; accent-color: var(--color-accent); }
.footer-newsletter__status { padding: 9px 11px; color: #e8dfd2 !important; background: rgba(255, 255, 255, .07); border-left: 2px solid var(--color-accent); font-size: 12px; }
.dmtx-honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 54px;
    margin-top: 52px;
    border-top: 1px solid #34312e;
    color: #77716b;
    font-size: 11px;
}

.mobile-dock {
    display: none;
}

.store-main {
    padding: 64px 0 88px;
}

.store-main .woocommerce {
    width: min(calc(100% - 48px), var(--content-width));
    margin-inline: auto;
}

@media (max-width: 1080px) {
    .site-header__inner {
        grid-template-columns: auto 1fr auto;
    }

    .primary-nav {
        position: absolute;
        top: calc(100% + 8px);
        right: 24px;
        left: 24px;
        display: none;
        max-height: calc(100vh - 140px);
        padding: 12px;
        overflow-y: auto;
        border: 1px solid var(--color-border);
        background: #fff;
        border-radius: var(--radius-sm);
        box-shadow: var(--shadow-md);
    }

    .primary-nav.is-open {
        display: block;
    }

    .primary-nav .menu {
        display: grid;
        gap: 2px;
    }

    .primary-nav li {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .primary-nav .menu > li > a,
    .primary-nav .sub-menu a {
        min-height: 46px;
        padding: 0 12px;
    }

    .primary-nav .sub-menu {
        position: static;
        grid-column: 1 / -1;
        display: none;
        min-width: 0;
        padding: 4px 0 4px 16px;
        border: 0;
        background: transparent;
        border-radius: 0;
        box-shadow: none;
        opacity: 1;
        pointer-events: auto;
        transform: none;
    }

    .primary-nav .submenu-open > .sub-menu {
        display: grid;
    }

    .primary-nav .menu-item-has-children > a::after {
        display: none;
    }

    .submenu-toggle {
        display: grid;
        width: 44px;
        height: 44px;
        padding: 0;
        place-items: center;
        border: 0;
        background: transparent;
        border-radius: 9px;
        cursor: pointer;
    }

    .submenu-toggle::before {
        content: "+";
        font-size: 18px;
    }

    .submenu-toggle[aria-expanded="true"]::before {
        content: "−";
    }

    .menu-toggle {
        display: block;
        justify-self: end;
    }

    .header-search {
        display: none;
    }

    .hero-commerce {
        grid-template-columns: 1fr 0.85fr;
    }

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

    .service-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .service-strip article:nth-child(2) {
        border-right: 0;
    }

    .service-strip article:nth-child(-n + 2) {
        border-bottom: 1px solid var(--color-border);
    }

    .footer-grid {
        grid-template-columns: 1.2fr 0.6fr 0.6fr;
    }

    .footer-newsletter {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    body {
        padding-bottom: 68px;
    }

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

    .store-shell {
        width: min(calc(100% - 28px), var(--content-width));
    }

    .announcement-bar__inner {
        justify-content: center;
        min-height: 30px;
        text-align: center;
    }

    .announcement-bar a {
        display: none;
    }

    .site-header__inner {
        position: relative;
        grid-template-columns: 1fr auto auto;
        gap: 8px;
        min-height: 64px;
    }

    .mobile-header-search-wrap {
        display: block;
        padding-bottom: 12px;
    }

    .site-brand__text {
        max-width: 110px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .menu-toggle {
        display: block;
    }

    .primary-nav {
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        left: 0;
        display: none;
        padding: 12px;
        border: 1px solid var(--color-border);
        background: #fff;
        border-radius: var(--radius-sm);
        box-shadow: var(--shadow-md);
    }

    .primary-nav.is-open {
        display: block;
    }

    .header-search,
    .header-actions {
        display: none;
    }

    .home-main {
        padding-top: 14px;
    }

    .hero-commerce {
        grid-template-columns: 1fr;
        min-height: 0;
        border-radius: 24px;
    }

    .hero-commerce__content {
        padding: 48px 24px;
    }

    .hero-commerce h1 {
        font-size: clamp(44px, 15vw, 66px);
    }

    .hero-commerce__lead {
        margin-top: 22px;
        font-size: 16px;
    }

    .hero-commerce__meta {
        gap: 24px;
        margin-top: 42px;
    }

    .hero-product-art {
        min-height: 430px;
    }

    .hero-commerce--compact .hero-product-art {
        min-height: 300px;
    }

    .hero-product-art__orb {
        width: 245px;
        height: 245px;
    }

    .hero-product-art__card {
        width: 165px;
        height: 225px;
        padding: 18px;
    }

    .hero-product-art__card strong {
        font-size: 64px;
    }

    .home-section {
        padding-top: 76px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 24px;
    }

    .section-heading h2,
    .editorial-promo h2 {
        font-size: 38px;
    }

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

    .collection-card {
        min-height: 260px;
        padding: 16px;
    }

    .collection-card__shape {
        top: 46px;
        width: 110px;
        height: 110px;
    }

    .collection-card h3 {
        max-width: 90%;
        font-size: 17px;
    }

    .collection-card p {
        display: none;
    }

    .product-grid {
        gap: 30px 12px;
    }

    .product-card__media {
        border-radius: 16px;
    }

    .product-card__quick {
        display: none;
    }

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

    .editorial-promo {
        grid-template-columns: 1fr;
        margin-top: 76px;
        border-radius: 24px;
    }

    .editorial-promo__visual {
        min-height: 380px;
    }

    .editorial-promo__content {
        padding: 48px 24px;
    }

    .service-strip {
        grid-template-columns: 1fr 1fr;
        margin-top: 64px;
    }

    .service-strip article {
        grid-template-columns: 1fr;
        min-height: 140px;
        padding: 22px 12px;
    }

    .site-footer {
        padding-top: 54px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 42px 22px;
    }

    .footer-brand,
    .footer-newsletter {
        grid-column: 1 / -1;
    }

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

    .mobile-dock {
        position: fixed;
        z-index: 200;
        right: 10px;
        bottom: 10px;
        left: 10px;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        min-height: 58px;
        padding: 5px;
        border: 1px solid rgba(255, 255, 255, 0.45);
        background: rgba(28, 25, 23, 0.92);
        border-radius: 18px;
        box-shadow: var(--shadow-md);
        backdrop-filter: blur(16px);
    }

    .mobile-dock a {
        display: grid;
        place-items: center;
        color: #fff;
        border-radius: 13px;
        font-size: 11px;
        font-weight: 700;
    }

    .mobile-dock a:hover,
    .mobile-dock a:focus-visible {
        background: rgba(255, 255, 255, 0.13);
    }

    .dmtx-language-switcher--mobile { display: grid; place-items: center; min-width: 0; }
    .dmtx-language-switcher--mobile summary { justify-content: center; min-width: 0; padding: 0 6px; color: #fff; font-size: 11px; }
    .dmtx-language-switcher--mobile summary img,
    .dmtx-language-switcher--mobile .dmtx-language-switcher__chevron { display: none; }
    .dmtx-language-switcher--mobile ul { right: 0; bottom: calc(100% + 12px); top: auto; }
}

@media (max-width: 420px) {
    .hero-commerce__actions {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }

    .button--text {
        align-self: flex-start;
    }

    .hero-commerce__meta {
        width: 100%;
        justify-content: space-between;
        gap: 10px;
    }
}

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