.dm-header {
    --dm-ink: #302521;
    --dm-paper: #fcfaf7;
    --dm-copper: #BD7A59;
    --dm-line: #e9dfd6;
    --dm-tint: #f4e8df;
    position: relative;
    z-index: 11;
    color: var(--dm-ink);
    background: var(--dm-paper);
    border-bottom: 1px solid var(--dm-line);
    font: 500 14px/1.4 system-ui, sans-serif;
}

.dm-header-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    min-height: 88px;
    width: 100%;
    max-width: 1720px;
    margin-inline: auto;
    padding-inline: clamp(16px, 3.2vw, 52px);
}

.dm-header-menu { justify-self: start; gap: 9px; }
.dm-header-tools { display: flex; align-items: center; gap: 8px; justify-self: end; }
.dm-header-logo { grid-column: 2; display: block; width: clamp(150px, 16vw, 215px); }
.dm-header .dm-header-logo-image { display: block; width: 100%; height: auto; }

.dm-header .dm-header-control {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 11px;
    min-inline-size: 44px;
    min-block-size: 44px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--dm-ink);
    font: inherit;
    text-decoration: none;
    text-transform: none;
    letter-spacing: normal;
    cursor: pointer;
}

.dm-header button.dm-header-menu { width: max-content !important; padding: 0 12px !important; border-color: var(--dm-line); }
.dm-header .dm-header-control:hover { color: var(--dm-ink); background: var(--dm-tint); }
.dm-header .dm-header-control:focus-visible, .dm-header a:focus-visible {
    outline: 2px solid #8b5034;
    outline-offset: 3px;
}
.dm-header-control svg { flex: none; width: 22px; height: 22px; }
.dm-header .dm-header-language { position: relative; }
.dm-header-language summary { list-style: none; gap: 4px; font-variant-numeric: tabular-nums; }
.dm-header-language summary::-webkit-details-marker { display: none; }
.dm-header-language summary svg { width: 12px; height: 12px; }
.dm-header-language[open] summary svg { transform: rotate(180deg); }
.dm-header-language[open] summary { background: var(--dm-tint); }

.dm-header .dm-header-languages {
    position: absolute;
    inset: calc(100% + 8px) 0 auto auto;
    list-style: none;
    width: 178px;
    margin: 0;
    padding: 5px;
    border: 1px solid var(--dm-line);
    border-radius: 10px;
    background: var(--dm-paper);
    box-shadow: 0 12px 28px rgba(48, 37, 33, .13);
}

.dm-header-languages a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 41px;
    padding-inline: 11px;
    border-radius: 6px;
    color: var(--dm-ink);
    text-decoration: none;
}

.dm-header-languages a:hover, .dm-header-languages a[aria-current] { background: var(--dm-tint); color: #643722; }
.dm-header-languages a svg { width: 16px; height: 16px; }
.dm-header-cart { position: relative; }
.dm-header-cart-count { position: absolute; top: 2px; right: 1px; pointer-events: none; }
.dm-header-cart-count .xoo-wsc-sc-subt,
.dm-header-cart-count .xoo-wsc-sc-bki { display: none !important; }
.dm-header-cart-count .xoo-wsc-sc-cont,
.dm-header-cart-count .xoo-wsc-cart-trigger,
.dm-header-cart-count .xoo-wsc-sc-bkcont { display: block; margin: 0; padding: 0; line-height: 1; }

.dm-header-cart-count .xoo-wsc-sc-count {
    position: static;
    display: grid;
    place-items: center;
    min-width: 17px;
    min-height: 17px;
    width: auto;
    height: auto;
    padding: 2px 3px;
    border: 1px solid var(--dm-paper);
    border-radius: 100px;
    background: var(--dm-copper);
    color: #fff;
    font: 700 10px/1 system-ui, sans-serif;
}

html:has(.dm-site-menu[open]) { overflow: hidden; }
.dm-header .dm-site-menu {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(390px, calc(100vw - 22px));
    max-width: none;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0 15px 15px 0;
    background: var(--dm-paper);
    color: var(--dm-ink);
    box-shadow: 10px 0 55px rgba(32, 21, 15, .15);
}

.dm-site-menu::backdrop { background: rgba(32, 23, 18, .48); }

@media (prefers-reduced-motion: no-preference) {
    .dm-site-menu[open] { animation: dm-site-menu-in .2s ease-out; }
    @keyframes dm-site-menu-in { from { transform: translateX(-24px); opacity: .7; } }
}

.dm-site-menu-content { padding: 22px clamp(17px, 5vw, 32px) 32px; }
.dm-site-menu-top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 16px; border-bottom: 1px solid var(--dm-line); }
.dm-site-menu-top span { font-size: 15px; font-weight: 650; }
.dm-site-menu-top form { margin: 0; }
.dm-site-menu-top button.dm-header-control { width: 44px !important; padding: 0 !important; border-color: var(--dm-line); }
.dm-header .dm-site-menu-links { list-style: none; margin: 15px 0 0; padding: 0; }
.dm-site-menu-links li + li { border-top: 1px solid var(--dm-line); }

.dm-site-menu-links a {
    display: block;
    min-height: 53px;
    padding: 12px 13px;
    border-radius: 7px;
    color: var(--dm-ink);
    text-decoration: none;
    font: 400 22px/1.35 Georgia, serif;
}

.dm-site-menu-links a:hover { background: var(--dm-tint); color: var(--dm-ink); }
.dm-site-menu-links .current-menu-item > a {
    color: #643722;
    background: var(--dm-tint);
    box-shadow: inset 3px 0 var(--dm-copper);
}

@media (max-width: 620px) {
    .dm-header-bar { min-height: 69px; padding-inline: 9px; }
    .dm-header-logo { width: clamp(92px, calc(100vw - 223px), 145px); }
    .dm-header-tools { gap: 1px; }
    .dm-header .dm-header-control { min-inline-size: 33px; min-block-size: 42px; padding-inline: 3px; }
    .dm-header button.dm-header-menu { width: 42px !important; min-inline-size: 42px; padding: 0 !important; }
    .dm-header-menu span { display: none; }
    .dm-header .dm-header-language summary { min-width: 34px; font-size: 12px; gap: 1px; }
    .dm-header-cart-count { top: 1px; right: 0; }
    .dm-header-control svg { width: 21px; height: 21px; }
    .dm-header-language summary svg { width: 10px; height: 10px; }
    .dm-site-menu-top .dm-header-control { min-inline-size: 42px; }
}
