
/* ==========================================================
   DRAWER
========================================================== */

.atm-drawer {
  --drawer-bg: #14191c;
  --drawer-bg-light: #22282c;
  --drawer-border: #30383d;
  --drawer-text: #f7f8f9;
  --drawer-text-muted: #aeb8c0;
  --drawer-accent: var(--color-primary, #c91f28);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99999;
  width: 100%;
  height: 100dvh;
  visibility: hidden;
  pointer-events: none;
}

.atm-drawer.is-open {
  visibility: visible;
  pointer-events: auto;
}

.atm-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.65);
  opacity: 0;
  transition: opacity .3s ease;
}

.atm-drawer.is-open .atm-drawer__backdrop {
  opacity: 1;
}

.atm-drawer__panel {
  position: absolute;
  top: 0;
  left: 0;
  width: min(400px,100%);
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--drawer-bg);
  color: var(--drawer-text);
  color-scheme: dark;
  transform: translateX(-100%);
  transition: transform .3s ease;
  overflow: hidden;
}

.atm-drawer.is-open .atm-drawer__panel {
  transform: translateX(0);
}

.atm-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
  gap: 20px;
  padding: 22px 24px;
  border-bottom: 4px solid var(--drawer-accent);
}

.atm-drawer__title {
  margin: 0;
  color: var(--drawer-text);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}

.atm-drawer__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--drawer-text);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: color .2s ease;
}

.atm-drawer__close:hover {
  color: var(--drawer-accent);
}

.atm-drawer__content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 20px 24px 32px;
  scrollbar-color: #485158 transparent;
}

.atm-drawer a {
  color: var(--drawer-text);
}

.atm-drawer button {
  font-family: inherit;
}

.atm-drawer a:focus-visible,
.atm-drawer button:focus-visible,
.atm-drawer summary:focus-visible {
  outline: 2px solid var(--drawer-accent);
  outline-offset: 3px;
}

body.atm-drawer-open {
  overflow: hidden;
}


/* ==========================================================
   EQUIPMENT FINDER
========================================================== */

.atm-drawer .atm-shop-finder {
  margin: 0 0 24px;
  border: 0;
  border-radius: 8px;
  background: var(--drawer-bg-light);
  overflow: hidden;
}

.atm-drawer .atm-shop-finder summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 18px 20px;
  color: var(--drawer-text);
  font-size: 15px;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}

.atm-drawer .atm-shop-finder summary::-webkit-details-marker {
  display: none;
}

.atm-drawer .atm-shop-finder summary::after {
  content: none;
}

.atm-drawer .atm-shop-finder summary > i {
  margin-left: auto;
  color: var(--drawer-text-muted);
  font-size: 13px;
  transition: transform .2s ease;
}

.atm-drawer .atm-shop-finder__icon {
  font-size: 42px;
  color: var(--drawer-accent);
}

.atm-drawer .atm-shop-finder[open] summary > i {
  transform: rotate(180deg);
}

.atm-drawer .atm-shop-finder__content {
  padding: 0 20px 20px;
  color: var(--drawer-text);
}

.atm-drawer .atm-shop-finder__content label {
  color: var(--drawer-text);
}


/* ==========================================================
   CATEGORY NAVIGATION
========================================================== */

.atm-drawer .atm-shop-navigation {
  margin: 0;
}

.atm-drawer .atm-shop-categories {
  list-style: none;
  margin: 0;
  padding: 0;
}

.atm-drawer .atm-shop-categories li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.atm-drawer .atm-shop-categories li::before {
  content: none;
}

.atm-drawer .atm-shop-categories__row {
  display: flex;
  align-items: center;
  min-height: 52px;
  border-bottom: 1px solid var(--drawer-border);
}

.atm-drawer .atm-shop-categories__link,
.atm-drawer .atm-shop-categories__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 12px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--drawer-text);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: color .2s ease;
}

.atm-drawer .atm-shop-categories__link:hover,
.atm-drawer .atm-shop-categories__toggle:hover,
.atm-drawer .atm-shop-categories__link.is-current,
.atm-drawer .atm-shop-categories__toggle.is-current {
  color: #ff5961;
}

.atm-drawer .atm-shop-categories__toggle i {
  flex: 0 0 auto;
  color: var(--drawer-text-muted);
  font-size: 13px;
}

.atm-drawer .atm-shop-categories__toggle[aria-expanded="true"] i {
  color: var(--drawer-accent);
}

.atm-drawer .atm-shop-categories__toggle[aria-expanded="true"] .fa-plus::before {
  content: "\f068";
}

.atm-drawer .atm-shop-categories__children {
  margin: 8px 0 12px;
  padding: 4px 12px 12px 16px;
  background: var(--drawer-bg-light);
  border-radius: 8px;
  overflow: hidden;
}

.atm-drawer .atm-shop-categories__children[hidden] {
  display: none;
}

.atm-drawer .atm-shop-categories__children .atm-shop-categories__row {
  border-color: rgba(255,255,255,.08);
}

.atm-drawer .atm-shop-categories__children .atm-shop-categories__link,
.atm-drawer .atm-shop-categories__children .atm-shop-categories__toggle {
  min-height: 46px;
  font-size: 14px;
}

.atm-drawer .atm-shop-categories__view-all {
  min-height: 46px;
  color: #ff5961;
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.atm-drawer .atm-shop-categories__all {
  border-bottom: 1px solid var(--drawer-border);
}


/* ==========================================================
   MOBILE WORDPRESS NAVIGATION
========================================================== */

.atm-drawer .atm-mobile-navigation {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--drawer-border);
}

.atm-drawer .atm-mobile-navigation__title {
  margin: 0 0 12px;
  color: var(--drawer-text-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.5;
  text-transform: uppercase;
}

.atm-drawer .menu-mobile,
.atm-drawer .menu-mobile .sub-menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

.atm-drawer .menu-mobile li {
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--drawer-border);
}

.atm-drawer .menu-mobile li::before {
  content: none;
}

.atm-drawer .menu-mobile li a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 12px 0;
  color: var(--drawer-text);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color .2s ease;
}

.atm-drawer .menu-mobile li a:hover,
.atm-drawer .menu-mobile .current-menu-item > a {
  color: #ff5961;
}

.atm-drawer .menu-mobile .sub-menu {
  display: none;
  padding: 4px 0 12px 16px;
  background: var(--drawer-bg-light);
}

.atm-drawer .menu-mobile .sub-menu li {
  border-color: rgba(255,255,255,.08);
}

.atm-drawer .menu-mobile .sub-menu li a {
  min-height: 46px;
  padding: 10px 12px;
  font-size: 14px;
}

.atm-drawer .menu-mobile li.menu-toggle > a::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--drawer-text-muted);
  border-bottom: 2px solid var(--drawer-text-muted);
  transform: translateY(-65%) rotate(45deg);
}

.atm-drawer .menu-mobile li.menu-toggle > a.active::after {
  transform: translateY(-30%) rotate(225deg);
}


/* ==========================================================
   CUSTOM GUTENBERG CONTENT
========================================================== */

.atm-drawer__custom {
  margin-top: 28px;
}

.atm-drawer__custom > *:first-child {
  margin-top: 0;
}

.atm-drawer__custom h2,
.atm-drawer__custom h3,
.atm-drawer__custom h4 {
  color: var(--drawer-text);
}

.atm-drawer__custom p {
  color: var(--drawer-text-muted);
}

.atm-drawer__custom .wp-block-social-links {
  gap: 12px;
}


/* ==========================================================
   RESPONSIVE & ACCESSIBILITY
========================================================== */

@media (max-width: 767px) {
  .atm-drawer__panel {
    width: 100%;
  }

  .atm-drawer__header {
    padding: 16px 20px;
  }

  .atm-drawer__content {
    padding: 20px 20px 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .atm-drawer__backdrop,
  .atm-drawer__panel,
  .atm-drawer__close,
  .atm-drawer .atm-shop-categories__toggle i,
  .atm-drawer .atm-shop-finder summary > i {
    transition: none;
  }
}