/*
 * Shop views (inc/shop.php): list and collections, product page, bag and mini cart.
 * Values from the approved draft (compare-output/shop-draft/app.css), colours and fonts of the theme.
 * Mobile first; touch targets at least 44 px; visible focus.
 */
.dmd-shop {
	--shop-line: #e4e2e2;
	--shop-photo: #f1eeed;
	--shop-gap: 20px;
}
.dmd-shop-wrap { width: var(--grid-width); margin: 0 auto; }
@media (max-width: 600px) {
	.dmd-shop { --shop-gap: 12px; }
	.dmd-shop-wrap { width: calc(100% - 24px); }
}
.dmd-shop :focus-visible, .dmd-drawer :focus-visible, .dmd-shop-lb :focus-visible { outline: 2px solid var(--dark); outline-offset: 2px; }
.dmd-shop .screen-reader-text, .dmd-drawer .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons (main button pink with white text, like ORDER) ---------- */
.dmd-shop-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; box-sizing: border-box; min-height: 52px; padding: 0 28px; border: 1px solid var(--pink); background: var(--pink); color: #fff; font: 700 13px/1.2 Montserrat, sans-serif; letter-spacing: 1px; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
.dmd-shop-btn:hover { background: var(--dark); border-color: var(--dark); color: #fff; }
.dmd-shop-btn-ghost { background: transparent; color: var(--dark); border-color: var(--dark); }
.dmd-shop-btn-ghost:hover { background: var(--dark); color: #fff; }
.dmd-shop-btn-block { width: 100%; }
.dmd-shop-btn[disabled] { opacity: .5; cursor: default; }
.dmd-shop-link { padding: 0; border: 0; background: none; color: var(--dark); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- Title area with path on white (dmd_shop_head(), replaces the pink band; preview of 2026-11-09) ---------- */
.dmd-plain.dmd-shop-list { background: #fff; }
.dmd-shop-head { background: #fff; }
.dmd-shop-head > div { padding: 44px 0 18px; }
/* One line: a long last step ends with "…" (the full title follows right below) */
.dmd-shop-path ol { display: flex; margin: 0 0 10px; padding: 0; list-style: none; font: 500 11px/1.4 Montserrat, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #81818b; }
.dmd-shop-path li { flex: none; margin: 0; padding: 0; white-space: nowrap; }
.dmd-shop-path li:last-child { flex: 0 1 auto; display: flex; min-width: 0; }
.dmd-shop-path li:last-child a { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.dmd-shop-path li + li::before { content: "/"; content: "/" / ""; margin: 0 8px; color: #c7c7c9; }
.dmd-shop-path a { color: #81818b; text-decoration: none; transition: color .15s; }
.dmd-shop-path a:hover { color: var(--dark); }
.dmd-shop-path a:focus-visible { outline: 2px solid var(--dark); outline-offset: 2px; }
.dmd-shop-head h1 { margin: 0; padding: 0; font: 600 32px/1.15 Montserrat, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: #4b4b55; overflow-wrap: break-word; }
@media (max-width: 1024px) {
	.dmd-shop-head > div { padding: 24px 0 10px; }
	.dmd-shop-path ol { margin-bottom: 6px; }
	.dmd-shop-head h1 { font-size: 22px; }
}
/* Phones: the longest word of all titles ("GESCHÄFTSBEDINGUNGEN", 340 px at 22 px) fits the line from 320 px on */
@media (max-width: 480px) { .dmd-shop-head h1 { font-size: clamp(17px, 5.5vw, 22px); } }

/* ---------- Collection chips and sorting (E4, E5) ---------- */
.dmd-shop-tools { border-bottom: 1px solid var(--shop-line); background: #fff; }
.dmd-shop-tools .dmd-shop-wrap { display: flex; align-items: center; gap: 16px; }
.dmd-shop-chips { flex: 1; min-width: 0; display: flex; gap: 8px; padding: 14px 0; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); }
.dmd-shop-chips::-webkit-scrollbar { display: none; }
.dmd-shop-chip { flex: none; scroll-snap-align: start; box-sizing: border-box; min-height: 44px; padding: 0 16px; border: 1px solid #d9d6d6; border-radius: 22px; background: #fff; color: var(--dark); font: 600 12px/42px Montserrat, sans-serif; letter-spacing: .6px; text-transform: uppercase; text-decoration: none; white-space: nowrap; transition: background-color .2s, color .2s, border-color .2s; }
.dmd-shop-chip:hover { border-color: var(--dark); color: var(--dark); }
.dmd-shop-chip[aria-current="true"] { background: var(--dark); border-color: var(--dark); color: #fff; }
.dmd-shop-sort { flex: none; display: flex; align-items: center; gap: 10px; margin: 0; font-size: 13px; }
.dmd-shop-sort select { box-sizing: border-box; min-height: 44px; margin: 0; padding: 0 32px 0 14px; border: 1px solid #d9d6d6; border-radius: 22px; background: #fff linear-gradient(45deg, transparent 50%, var(--dark) 50%) right 17px top 19px / 5px 5px no-repeat; color: var(--dark); font: 600 12px Montserrat, sans-serif; letter-spacing: .5px; text-transform: uppercase; -webkit-appearance: none; appearance: none; cursor: pointer; }
.dmd-shop-sort select { background-image: linear-gradient(45deg, transparent 50%, var(--dark) 50%), linear-gradient(135deg, var(--dark) 50%, transparent 50%); background-position: right 17px top 19px, right 12px top 19px; background-size: 5px 5px; background-repeat: no-repeat; }
.dmd-shop-count { white-space: nowrap; }
@media (min-width: 1025px) {
	.dmd-shop-chips { flex-wrap: wrap; -webkit-mask-image: none; mask-image: none; }
}
@media (max-width: 760px) {
	.dmd-shop-tools .dmd-shop-wrap { flex-wrap: wrap; gap: 0; }
	.dmd-shop-chips { flex-basis: 100%; padding-bottom: 6px; }
	.dmd-shop-sort { width: 100%; justify-content: space-between; padding: 0 0 10px; }
	/* the longest choice ("Цена: по возрастанию") must not push the field past the edge at 320 px */
	.dmd-shop-sort label { flex: 0 1 230px; min-width: 0; }
	.dmd-shop-sort select { width: 100%; text-overflow: ellipsis; }
}

/* ---------- Grid and tiles (E1 to E3, E7) ---------- */
.dmd-shop-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px var(--shop-gap); margin: 0; padding: 36px 0 20px; list-style: none; }
@media (max-width: 1024px) { .dmd-shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .dmd-shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px var(--shop-gap); padding-top: 20px; } }
.dmd-shop-tile { margin: 0; padding: 0; }
.dmd-shop-tile-link { display: block; color: inherit; text-decoration: none; }
.dmd-shop-tile-img { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--shop-photo); }
.dmd-shop-tile-img img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: var(--dmd-focus, 50% 50%); transition: opacity .5s ease, transform 1.2s cubic-bezier(.2, .7, .3, 1); }
.dmd-shop-tile-img .dmd-shop-tile-alt { opacity: 0; }
@media (hover: hover) and (pointer: fine) {
	.dmd-shop-tile-link:hover .dmd-shop-tile-alt { opacity: 1; }
	.dmd-shop-tile-link:hover .dmd-shop-tile-img img { transform: scale(1.03); }
}
.dmd-shop-badge { position: absolute; top: 10px; left: 10px; z-index: 2; padding: 3px 9px; background: #fff; color: var(--dark); font: 700 10px/1.6 Montserrat, sans-serif; letter-spacing: 1px; text-transform: uppercase; }
.dmd-shop-tile-meta { display: block; padding-top: 12px; }
.dmd-shop-tile-cat { display: block; font-size: 11px; line-height: 1.4; letter-spacing: 1px; text-transform: uppercase; }
.dmd-shop-tile-name { display: block; margin-top: 4px; color: var(--dark); font: 600 14px/1.35 Montserrat, sans-serif; letter-spacing: .4px; text-transform: uppercase; }
.dmd-shop-tile-price { display: block; margin-top: 4px; color: var(--dark); font-size: 14px; line-height: 1.5; }
.dmd-shop-tile-price del { color: var(--text); margin-right: 6px; }
.dmd-shop-tile-price ins { text-decoration: none; }
.dmd-shop-ask-price { color: var(--text); font-style: italic; }
@media (max-width: 600px) {
	.dmd-shop-tile-name { font-size: 12.5px; }
	.dmd-shop-tile-price { font-size: 13px; }
	.dmd-shop-tile-cat { font-size: 10px; }
}

/* ---------- Show more (E6) ---------- */
.dmd-shop-more-wrap { display: flex; flex-direction: column; align-items: center; padding: 20px 0 70px; font-size: 13px; }
/* Loading circle while the next tiles are fetched (js/shop.js); the wrap is replaced when they are in */
.dmd-shop-more-wrap.is-loading::after { content: ""; width: 46px; height: 46px; margin-top: 10px; box-sizing: border-box; border: 2px solid rgba(0, 0, 0, .12); border-top-color: #f2a8ac; border-radius: 50%; animation: dmd-shop-spin .9s linear infinite; }
@keyframes dmd-shop-spin { to { transform: rotate(360deg); } }
/* js/shop.js loads the next tiles by itself: the link stays in the page but is not shown */
.dmd-shop-more-wrap.is-auto .dmd-shop-more { position: absolute; padding: 0; border: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* ---------- Product page (E8 to E14) ---------- */
.dmd-shop-notices:empty { display: none; }
.dmd-shop-notices { padding-top: 16px; }
.dmd-shop-notices .woocommerce-message, .dmd-shop-notices .woocommerce-error, .dmd-shop-notices .woocommerce-info { margin: 0; padding: 10px 14px; background: #fbefef; color: var(--dark); font-size: 13px; list-style: none; }
.dmd-shop-notices a.button { margin-left: 10px; color: var(--dark); text-decoration: underline; }
.dmd-shop-crumbs { padding: 18px 0 0; font-size: 12px; letter-spacing: .5px; }
.dmd-shop-crumbs a { color: inherit; text-decoration: none; }
.dmd-shop-crumbs a:hover { color: var(--dark); }
.dmd-shop-pdp { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 56px; align-items: start; padding: 22px 0 70px; }
.dmd-shop-photo { display: block; width: 100%; margin: 0; padding: 0; border: 0; background: var(--shop-photo); cursor: zoom-in; }
.dmd-shop-photo img, .dmd-shop-photo video { display: block; width: 100%; height: 100%; max-width: none; object-fit: contain; }
/* Video in the row of photos: laid over its tile, so its own size never stretches the tile (WebKit) */
.dmd-shop-photo-video { position: relative; }
.dmd-shop-photo-video video { position: absolute; inset: 0; }
.dmd-shop-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dmd-shop-gallery .dmd-shop-photo { aspect-ratio: 2 / 3; }
.dmd-shop-gallery .dmd-shop-photo:first-child { grid-column: 1 / -1; aspect-ratio: auto; }
.dmd-shop-gallery .dmd-shop-photo:first-child img { height: auto; }
.dmd-shop-slider, .dmd-shop-dots, .dmd-shop-counter { display: none; }
/* Wide desktop: the sticky bar of the header (64 px) shows while scrolling; below the menu limit the phone header is used */
.dmd-shop-buy { position: sticky; top: 94px; }
.dmd-narrow .dmd-shop-buy { top: 30px; }
@media (max-width: 1024px) { .dmd-shop-buy { top: 30px; } }
.dmd-shop-buy-cat { font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; }
.dmd-shop-buy-cat a { color: inherit; text-decoration: none; }
.dmd-shop-buy-cat a:hover { color: var(--dark); }
.dmd-shop-title { margin: 6px 0 0; color: var(--dark); font: 700 30px/1.2 Montserrat, sans-serif; letter-spacing: .5px; text-transform: uppercase; }
.dmd-shop-buy-price { margin: 14px 0 0; color: var(--dark); font: 400 22px/1.3 Montserrat, sans-serif; }
.dmd-shop-buy-price del { margin-right: 8px; color: var(--text); font-size: .8em; }
.dmd-shop-buy-price ins { text-decoration: none; }
.dmd-shop-buy-price .dmd-shop-ask-price { font-size: 16px; }
.dmd-shop-buy-note { margin: 6px 0 0; font-size: 13px; line-height: 1.6; }
.dmd-shop-actions { display: grid; gap: 10px; margin: 26px 0 0; }
.dmd-shop-add { margin: 0; }
.dmd-shop-trust { display: grid; gap: 10px; margin: 24px 0 0; padding: 18px 0; border-top: 1px solid var(--shop-line); border-bottom: 1px solid var(--shop-line); list-style: none; font-size: 13px; line-height: 1.5; }
.dmd-shop-trust li { display: flex; align-items: center; gap: 12px; margin: 0; }
.dmd-shop-trust svg { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--pink-dark); stroke-width: 1.5; }
.dmd-shop-acc details { border-bottom: 1px solid var(--shop-line); }
.dmd-shop-acc summary { display: flex; align-items: center; justify-content: space-between; min-height: 54px; color: var(--dark); font: 600 12px Montserrat, sans-serif; letter-spacing: 1px; text-transform: uppercase; list-style: none; cursor: pointer; }
.dmd-shop-acc summary::-webkit-details-marker { display: none; }
.dmd-shop-acc summary::after { content: ""; width: 9px; height: 9px; border-right: 1.5px solid var(--dark); border-bottom: 1.5px solid var(--dark); transform: rotate(45deg) translate(-3px, -3px); transition: transform .25s; }
.dmd-shop-acc details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.dmd-shop-acc-body { padding: 0 0 18px; font-size: 14px; }
.dmd-shop-acc-body p { margin: 0 0 10px; }
.dmd-shop-related { padding: 10px 0 80px; }
.dmd-shop-related h2 { margin: 0 0 26px; color: var(--dark); font: 700 18px/1.3 Montserrat, sans-serif; text-align: center; text-transform: uppercase; }
.dmd-shop-related .dmd-shop-grid { padding-top: 0; }
@media (max-width: 900px) {
	.dmd-shop-pdp { grid-template-columns: 1fr; gap: 0; padding-top: 0; }
	.dmd-shop-crumbs { display: none; }
	.dmd-shop-media { position: relative; margin: 0 -12px; }
	.dmd-shop-gallery { display: none; }
	.dmd-shop-slider { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; outline: none; }
	.dmd-shop-slider::-webkit-scrollbar { display: none; }
	/* one photo per swipe (2026-11-08): with the endless slider a fast swipe could otherwise fly over a photo onto the
	   copy and look as if nothing happened (two photos) */
	.dmd-shop-slider .dmd-shop-photo { flex: 0 0 100%; aspect-ratio: 3 / 4; scroll-snap-align: center; scroll-snap-stop: always; }
	.dmd-shop-dots { display: flex; justify-content: center; gap: 7px; padding: 12px 0 0; }
	.dmd-shop-dots span { width: 6px; height: 6px; border-radius: 50%; background: #d8d3d3; transition: background-color .2s, transform .2s; }
	.dmd-shop-dots span.is-on { background: var(--dark); transform: scale(1.25); }
	.dmd-shop-counter { display: block; position: absolute; top: 12px; right: 22px; padding: 2px 9px; background: rgba(255, 255, 255, .85); color: var(--dark); font: 600 11px/1.7 Montserrat, sans-serif; }
	.dmd-shop-buy { position: static; padding-top: 18px; }
	.dmd-shop-title { font-size: 22px; }
	.dmd-shop-related .dmd-shop-grid { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
	.dmd-shop-related .dmd-shop-tile { flex: 0 0 44%; scroll-snap-align: start; }
}

/* Bar at the bottom of the phone screen (E10) */
.dmd-shop-mbar { display: none; }
@media (max-width: 900px) {
	.dmd-shop-mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9000; display: flex; align-items: center; gap: 12px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -6px 20px rgba(0, 0, 0, .08); transform: translateY(110%); visibility: hidden; transition: transform .3s ease, visibility 0s .3s; }
	.dmd-shop-mbar.is-visible { transform: none; visibility: visible; transition: transform .3s ease, visibility 0s; }
	.dmd-shop-mbar-price { flex: 1; min-width: 0; line-height: 1.25; }
	.dmd-shop-mbar-price b { display: block; overflow: hidden; color: var(--dark); font: 600 12px Montserrat, sans-serif; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
	.dmd-shop-mbar-price span { color: var(--dark); font-size: 14px; }
	.dmd-shop-mbar .dmd-shop-btn { min-height: 48px; padding: 0 20px; }
	body.dmd-shop-has-mbar { padding-bottom: 76px; }
	body.dmd-shop-has-mbar .dmd-to-top { bottom: 92px; }
}

/* ---------- Full view of the photos (E9) ---------- */
.dmd-shop-lb[hidden] { display: none; }
.dmd-shop-lb { position: fixed; inset: 0; z-index: 100001; background: #fff; touch-action: none; } /* no page zoom: the photo zooms (js/zoom.js) */
.dmd-shop-lb-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; touch-action: pan-x; }
.dmd-shop-lb-track::-webkit-scrollbar { display: none; }
.dmd-shop-lb-slide { cursor: pointer; display: grid; flex: 0 0 100%; place-items: center; box-sizing: border-box; padding: 56px 0; overflow: hidden; scroll-snap-align: center; scroll-snap-stop: always; }
/* Zoomed (js/zoom.js): the track does not move, one finger or the mouse moves the photo, the arrows step aside */
.dmd-shop-lb.is-zoomed .dmd-shop-lb-track { overflow: hidden; touch-action: none; }
.dmd-shop-lb.is-pinching .dmd-shop-lb-track { touch-action: none; }
.dmd-shop-lb.is-zoomed .dmd-shop-lb-slide img, .dmd-shop-lb.is-zoomed .dmd-shop-lb-slide video { cursor: grab; }
.dmd-shop-lb.is-zoomed.is-panning .dmd-shop-lb-slide img, .dmd-shop-lb.is-zoomed.is-panning .dmd-shop-lb-slide video { cursor: grabbing; }
.dmd-shop-lb.is-zoomed .dmd-shop-lb-nav { opacity: 0; visibility: hidden; }
.dmd-shop-lb-slide img, .dmd-shop-lb-slide video { width: auto; max-width: 100%; height: auto; max-height: calc(100vh - 112px); object-fit: contain; }
.dmd-shop-lb-count { position: absolute; top: 18px; left: 0; right: 0; z-index: 2; color: var(--dark); font: 600 12px Montserrat, sans-serif; text-align: center; pointer-events: none; }
.dmd-shop-x { position: relative; width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.dmd-shop-x::before, .dmd-shop-x::after { content: ""; position: absolute; top: 21px; left: 12px; width: 20px; height: 2px; background: var(--dark); transform: rotate(45deg); transition: background-color .2s; }
.dmd-shop-x::after { transform: rotate(-45deg); }
/* Hover only with a mouse (a tap must not leave the cross pink); a short press gives feedback before the drawer closes */
@media (hover: hover) { .dmd-shop-x:hover::before, .dmd-shop-x:hover::after { background: var(--pink-dark); } }
/* Bag drawer: the cross turns a quarter on hover */
.dmd-drawer-close { transition: transform .2s ease; }
@media (hover: hover) { .dmd-drawer-close:hover { transform: rotate(90deg); } }
.dmd-drawer-close:active { transform: scale(.9); }
@media (hover: hover) { .dmd-drawer-close:hover:active { transform: rotate(90deg) scale(.9); } }
/* Phones: a tap shows the same effect as the mouse (pink, quarter turn), while the drawer already closes (js/shop.js) */
.dmd-drawer-close.is-tapped { transform: rotate(90deg); }
.dmd-drawer-close.is-tapped::before, .dmd-drawer-close.is-tapped::after { background: var(--pink-dark); }
/* After a tap on the cross the drawer starts moving at once but slowly (ease-in), so the pink turning cross stays in view */
.dmd-drawer:has(.dmd-drawer-close.is-tapped) { transition: transform .4s cubic-bezier(.32, 0, .67, 0), visibility 0s .4s; }
.dmd-shop-lb-close { position: absolute; top: 8px; right: 8px; z-index: 2; }
.dmd-shop-lb-nav { position: absolute; top: 50%; z-index: 2; width: 52px; height: 52px; margin-top: -26px; padding: 0; border: 0; background: rgba(255, 255, 255, .8); color: var(--dark); font-size: 28px; line-height: 52px; cursor: pointer; }
.dmd-shop-lb-prev { left: 10px; }
.dmd-shop-lb-next { right: 10px; }
@media (hover: none) { .dmd-shop-lb-nav { display: none; } }
html.dmd-shop-lb-open { overflow: hidden; }

/* ---------- Mini cart (E16, inc/shop-bag.php) ---------- */
.dmd-drawer-scrim { position: fixed; inset: 0; z-index: 100010; background: rgba(30, 28, 30, .45); opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; }
.dmd-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 100011; display: flex; flex-direction: column; box-sizing: border-box; width: min(420px, 100%); background: #fff; outline: none; visibility: hidden; transform: translateX(100%); transition: transform .4s cubic-bezier(.2, .8, .2, 1), visibility 0s .4s; }
html.dmd-drawer-open .dmd-drawer-scrim { opacity: 1; visibility: visible; transition: opacity .3s; }
html.dmd-drawer-open .dmd-drawer { visibility: visible; transform: none; transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
html.dmd-drawer-open { overflow: hidden; }
.dmd-drawer.is-open { visibility: visible; }
.dmd-drawer-hd { display: flex; flex: none; align-items: center; justify-content: space-between; height: 72px; padding: 0 12px 0 24px; border-bottom: 1px solid #e4e2e2; }
.dmd-drawer-hd h2 { margin: 0; color: var(--dark); font: 700 15px Montserrat, sans-serif; text-transform: uppercase; letter-spacing: .5px; }
.dmd-drawer-added { margin: 16px 24px 0; padding: 10px 14px; background: #fbefef; color: var(--dark); font-size: 13px; line-height: 1.5; }
.dmd-drawer-added[hidden] { display: none; }
.dmd-bag-body { display: flex; flex: 1; flex-direction: column; min-height: 0; }
.dmd-drawer-list { flex: 1; margin: 0; padding: 8px 24px; overflow-y: auto; list-style: none; }
.dmd-drawer-line { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; margin: 0; padding: 16px 0; border-bottom: 1px solid #e4e2e2; }
.dmd-drawer-thumb img { display: block; width: 76px; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: var(--dmd-focus, 50% 50%); background: #f1eeed; }
.dmd-drawer-info { min-width: 0; line-height: 1.4; }
.dmd-drawer-cat { display: block; font-size: 11px; letter-spacing: .8px; text-transform: uppercase; }
.dmd-drawer-name { display: block; color: var(--dark); font: 600 12.5px/1.4 Montserrat, sans-serif; text-decoration: none; text-transform: uppercase; }
.dmd-drawer-note { display: block; margin-top: 2px; font-size: 12px; }
.dmd-drawer-remove { display: inline-block; min-height: 32px; margin-top: 4px; font-size: 12px; }
.dmd-drawer-price { color: var(--dark); font-size: 14px; white-space: nowrap; }
.dmd-drawer-ft { display: grid; flex: none; gap: 10px; padding: 18px 24px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid #e4e2e2; }
.dmd-drawer-sum { display: flex; justify-content: space-between; color: var(--dark); font: 600 14px Montserrat, sans-serif; text-transform: uppercase; }
.dmd-drawer-small { margin: 0; font-size: 12px; line-height: 1.5; }
.dmd-drawer-empty { padding: 50px 24px; text-align: center; }
.dmd-drawer-empty h3 { margin: 0 0 10px; color: var(--dark); font: 700 16px Montserrat, sans-serif; text-transform: uppercase; }
.dmd-drawer-empty p { margin: 0 0 20px; }
.dmd-bag-body.is-busy { opacity: .6; pointer-events: none; }

/* ---------- Legal line above the footer (inc/shop-legal.php, shop point 4) ---------- */
.dmd-shop-legal { border-top: 1px solid #e4e2e2; }
.dmd-shop-legal ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 28px; width: var(--grid-width); margin: 0 auto; padding: 14px 0; list-style: none; }
.dmd-shop-legal li { margin: 0; padding: 0; }
.dmd-shop-legal a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); font: 600 11px/1.3 Montserrat, sans-serif; letter-spacing: 1.2px; text-transform: uppercase; text-decoration: none; text-underline-offset: 4px; transition: color .2s; }
@media (hover: hover) { .dmd-shop-legal a:hover { color: var(--dark); text-decoration: underline; } }
.dmd-shop-legal a:focus-visible { outline: 2px solid var(--dark); outline-offset: 2px; }

/* ---------- Terms page: reading column, section headings, contents (inc/shop-legal.php) ---------- */
.dmd-legal { padding: 10px 0 30px; }
.dmd-legal-text { max-width: 720px; }
.dmd-legal-text .dmd-legal-h { margin: 44px 0 14px; padding: 0; color: var(--dark); font: 600 17px/1.45 Montserrat, sans-serif; letter-spacing: .2px; list-style-position: inside; scroll-margin-top: 90px; }
.dmd-legal-text .dmd-legal-h:first-child { margin-top: 0; }
.dmd-legal-text .dmd-legal-h li { margin: 0; padding: 0; }
.dmd-legal-toc { margin: 0 0 30px; }
.dmd-legal-toc-box { border: 1px solid #e4e2e2; background: #fff; }
.dmd-legal-toc summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; padding: 0 18px; color: var(--dark); font: 700 12px/1.2 Montserrat, sans-serif; letter-spacing: 1px; text-transform: uppercase; cursor: pointer; list-style: none; }
.dmd-legal-toc summary::-webkit-details-marker { display: none; }
.dmd-legal-toc summary::after { content: ''; flex: none; width: 7px; height: 7px; border-right: 1.5px solid var(--dark); border-bottom: 1.5px solid var(--dark); transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.dmd-legal-toc details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.dmd-legal-toc summary:focus-visible, .dmd-legal-toc a:focus-visible { outline: 2px solid var(--dark); outline-offset: 2px; }
.dmd-legal-toc ul { margin: 0; padding: 6px 18px 12px; border-top: 1px solid #e4e2e2; list-style: none; }
.dmd-legal-toc li { margin: 0; padding: 0; }
.dmd-legal-toc a { display: block; padding: 9px 0; color: var(--text); font-size: 14px; line-height: 1.45; text-decoration: none; transition: color .2s; }
.dmd-legal-toc a:hover { color: var(--dark); }
@media (min-width: 1025px) {
	.dmd-legal-with-toc { display: grid; grid-template-columns: 240px minmax(0, 720px); gap: 70px; align-items: start; }
	.dmd-legal-toc { position: sticky; top: 100px; margin: 0; }
	.dmd-legal-toc-box { border: 0; background: none; }
	.dmd-legal-toc summary { min-height: 0; padding: 0 0 14px; cursor: default; }
	.dmd-legal-toc summary::after { display: none; }
	.dmd-legal-toc ul { padding: 0; border-top: 0; border-left: 1px solid #e4e2e2; }
	.dmd-legal-toc a { margin-left: -1px; padding: 7px 0 7px 16px; border-left: 1px solid transparent; font-size: 13px; }
	.dmd-legal-toc a:hover { border-left-color: var(--pink); }
}

/* ---------- Area "Art": paintings (inc/shop-art.php, preview of 2026-11-27) ---------- */
/* Switch "Dresses / Art" under the title: tabs with a pink line, unlike the round chips of the collections */
.dmd-shop-kinds { display: flex; gap: 34px; margin: 4px 0 -18px; }
.dmd-shop-kind { position: relative; display: inline-flex; align-items: center; min-height: 48px; color: #81818b; font: 700 18px/1 Montserrat, sans-serif; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; transition: color .15s; }
.dmd-shop-kind:hover, .dmd-shop-kind[aria-current="true"] { color: var(--dark); }
.dmd-shop-kind[aria-current="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--pink); }
@media (max-width: 1024px) { .dmd-shop-kinds { gap: 28px; margin: 2px 0 -10px; } .dmd-shop-kind { font-size: 16px; } }
/* Grid: three columns (two up to 760 px); a square cell with a mat, the whole picture inside, never cropped */
.dmd-shop-grid-art { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 28px; }
@media (max-width: 760px) { .dmd-shop-grid-art { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px var(--shop-gap); } }
.dmd-shop-tile-art .dmd-shop-tile-img { aspect-ratio: 1 / 1; }
.dmd-shop-art-frame { position: absolute; inset: 9%; display: flex; align-items: center; justify-content: center; }
.dmd-shop-tile-art .dmd-shop-art-frame img { position: static; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 10px 22px rgba(60, 50, 50, .18), 0 2px 5px rgba(60, 50, 50, .12); transition: transform .5s ease; }
@media (hover: hover) and (pointer: fine) {
	.dmd-shop-tile-art .dmd-shop-tile-link:hover .dmd-shop-art-frame img { transform: translateY(-4px); }
}
.dmd-shop-tile-facts { display: block; margin-top: 4px; font-size: 12.5px; line-height: 1.5; }
.dmd-shop-tile-facts span { white-space: nowrap; }
.dmd-shop-tile-facts i { font-style: normal; }
.dmd-shop-tile-sold { display: block; margin-top: 4px; color: var(--text); font: 600 12px/1.6 Montserrat, sans-serif; letter-spacing: 1px; text-transform: uppercase; }
@media (max-width: 600px) {
	.dmd-shop-tile-facts { font-size: 11.5px; }
	.dmd-shop-tile-facts span { display: block; white-space: normal; }
	.dmd-shop-tile-facts i { display: none; }
}
/* Page of a painting: fact list under the price; the first photo on a mat, the others square */
.dmd-shop-facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 22px; margin: 22px 0 0; padding: 18px 0 0; border-top: 1px solid var(--shop-line); font-size: 14px; line-height: 1.5; }
.dmd-shop-facts dt { margin: 0; color: #81818b; font: 600 11px/1.9 Montserrat, sans-serif; letter-spacing: 1px; text-transform: uppercase; }
.dmd-shop-facts dd { margin: 0; color: var(--dark); }
.dmd-shop-art .dmd-shop-gallery .dmd-shop-photo { aspect-ratio: 1 / 1; }
.dmd-shop-art .dmd-shop-gallery .dmd-shop-photo:first-child { box-sizing: border-box; padding: 7%; aspect-ratio: auto; }
.dmd-shop-art .dmd-shop-gallery .dmd-shop-photo:first-child img { box-shadow: 0 16px 34px rgba(60, 50, 50, .2); }
@media (max-width: 900px) {
	/* The free edge around the painting is a margin of the photo, not a padding of the slide: WebKit sizes a slide
	   with aspect-ratio and padding far too wide (the whole row grew beyond the screen). */
	.dmd-shop-art .dmd-shop-slider .dmd-shop-photo { aspect-ratio: 1 / 1; }
	.dmd-shop-art .dmd-shop-slider .dmd-shop-photo img { width: 86%; height: 86%; margin: 7% auto; }
	.dmd-shop-related .dmd-shop-tile-art { flex-basis: 60%; }
}

/* Entry page: one large tile per area (inc/shop-areas.php) */
.dmd-shop-areas { display: grid; grid-template-columns: repeat(var(--areas, 2), minmax(0, 1fr)); gap: 44px 28px; margin: 34px 0 90px; padding: 0; list-style: none; }
.dmd-shop-area a { display: block; color: var(--dark); text-decoration: none; }
.dmd-shop-area-img { position: relative; display: block; height: min(60vh, 560px); min-height: 320px; background: #f1eeed; overflow: hidden; }
.dmd-shop-area-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; transition: transform .7s ease; }
.dmd-shop-area-contain .dmd-shop-area-img img { inset: 9%; width: 82%; height: 82%; object-fit: contain; object-position: 50% 50%; filter: drop-shadow(0 12px 22px rgba(60, 50, 50, .22)); }
@media (hover: hover) and (pointer: fine) { .dmd-shop-area a:hover .dmd-shop-area-img img { transform: scale(1.03); } }
.dmd-shop-area a:focus-visible { outline: 2px solid var(--dark); outline-offset: 4px; }
.dmd-shop-area-name { display: block; margin-top: 18px; font: 600 16px/1.3 Montserrat, sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.dmd-shop-area-note { display: block; margin-top: 6px; color: #81818b; font-size: 13.5px; line-height: 1.5; }
@media (max-width: 760px) {
	.dmd-shop-areas { grid-template-columns: 1fr; gap: 26px; margin: 20px 0 56px; }
	.dmd-shop-area-img { height: 270px; min-height: 0; }
	.dmd-shop-area-name { margin-top: 12px; font-size: 14px; }
	.dmd-shop-area-note { margin-top: 3px; font-size: 12.5px; }
}

/* Hint instead of "Add to bag" while the bag holds another currency (inc/shop-currency.php) */
.dmd-shop-currency-hint { margin: 18px 0 0; padding: 12px 14px; background: #f1eeed; color: var(--dark); font-size: 13px; line-height: 1.55; }
