/* ══════════════════════════════════════════════════════════════════
   DRAWER — single authoritative block
   Closed state handled by .shop-aside[data-mode="offcanvas"] in style.css.
   ══════════════════════════════════════════════════════════════════ */

html body.aside-open #shop-aside.shop-aside,
html body.aside-open .shop-aside {
  position: fixed !important;
  top: 0 !important; right: auto !important; bottom: 0 !important; left: 0 !important;
  width: min(300px, 88vw) !important;
  height: 100dvh !important;
  max-height: 100dvh !important;
  min-height: 100dvh !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  transform: none !important;
  background: #050505 !important;
  border-right: 1px solid rgba(212,175,55,.28) !important;
  box-sizing: border-box !important;
  z-index: 100000 !important;
}

html body.aside-open #shop-aside .aside-head {
  flex: 0 0 auto !important;
  order: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: .4rem .75rem !important;
  min-height: 38px !important;
  border-bottom: 1px solid rgba(212,175,55,.28) !important;
  background: #050505 !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 5 !important;
}
html body.aside-open #shop-aside .aside-wordmark { font-size: .95rem !important; letter-spacing: .1em !important; }
html body.aside-open #shop-aside .aside-wordmark-sub { font-size: .48rem !important; letter-spacing: .24em !important; }
html body.aside-open #shop-aside .aside-close {
  width: 26px !important; height: 26px !important;
  font-size: .9rem !important; line-height: 1 !important; padding: 0 !important;
}

html body.aside-open #shop-aside .aside-section {
  flex: 0 0 auto !important;
  padding: .35rem .75rem !important;
  margin: 0 !important;
  border-bottom: 1px solid rgba(212,175,55,.1) !important;
}
html body.aside-open #shop-aside .aside-section-title {
  font-size: .52rem !important; letter-spacing: .18em !important;
  margin: 0 0 .25rem !important; color: rgba(212,175,55,.75) !important;
}

html body.aside-open #shop-aside .aside-section:has(#drawer-lang)      { order: 2 !important; }
html body.aside-open #shop-aside .aside-section:has(#drawer-currency)  { order: 3 !important; }
html body.aside-open #shop-aside .aside-section:has(#drawer-filters)   { order: 4 !important; }
html body.aside-open #shop-aside .aside-section:has(#drawer-categories){ order: 5 !important; }

html body.aside-open #shop-aside .aside-section:has(> .aside-select) { padding: .3rem .75rem !important; }
html body.aside-open #shop-aside .aside-section:has(> .aside-select) > .aside-section-title {
  display: inline-block !important; width: 4.2rem !important;
  vertical-align: middle !important; margin: 0 !important;
}
html body.aside-open #shop-aside .aside-select {
  display: inline-block !important;
  width: calc(100% - 4.5rem) !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(212,175,55,.3) !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding: .15rem 1rem .15rem .1rem !important;
  font-size: .76rem !important;
  color: #f2f2f2 !important;
}

html body.aside-open #shop-aside .aside-section:has(#drawer-categories) {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  border-bottom: 0 !important;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}
html body.aside-open #shop-aside #drawer-categories {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  padding-bottom: calc(.5rem + env(safe-area-inset-bottom, 0px)) !important;
  margin-bottom: 0 !important;
}

html body.aside-open #shop-aside .aside-section:has(#drawer-filters) {
  padding: .35rem .75rem !important;
  margin: 0 !important;
}

html body.aside-open::before {
  content: '' !important; position: fixed !important; inset: 0 !important;
  background: rgba(0,0,0,.6) !important; z-index: 99999 !important;
}
html body.aside-open { overflow: hidden !important; }

/* ═══ DRAWER CONTENT (populated by drawer.js) ═══ */
.drawer-cat-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: .15rem;
  max-height: 40vh; overflow-y: auto;
}
.drawer-cat-list a {
  display: flex; align-items: center; justify-content: space-between;
  gap: .5rem; padding: .55rem .55rem; color: var(--text-dim);
  border-radius: var(--radius); font-size: .9rem; text-decoration: none;
  transition: background .12s, color .12s;
}
.drawer-cat-list a:hover, .drawer-cat-list a:active { background: var(--bg-raised); color: var(--text); }

.drawer-loading, .drawer-error, .drawer-hint {
  padding: .5rem .55rem; font-size: .85rem; line-height: 1.55; margin: 0;
}
.drawer-loading { color: var(--text-faint); }
.drawer-error   { color: var(--danger); }
.drawer-hint    { color: var(--text-faint); }
.drawer-hint a  { color: var(--gold); }

.drawer-switch { display: inline-flex; align-items: center; gap: .5rem; margin-bottom: .75rem; }
.drawer-price-row { display: flex; gap: .4rem; align-items: center; }
.drawer-price-row input {
  flex: 1 1 0; min-width: 0; padding: .55rem .5rem;
  background: var(--bg-surface); border: 1px solid var(--line);
  border-radius: var(--radius); color: var(--text);
  font-size: 16px; text-align: center; -moz-appearance: textfield;
}
.drawer-price-row input:focus { border-color: var(--gold); outline: none; }
.drawer-price-row input::-webkit-outer-spin-button,
.drawer-price-row input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.drawer-dash { color: var(--text-faint); }
.drawer-cur  { font-size: .72rem; color: var(--text-faint); letter-spacing: .06em; }
