/* Full-screen drawer megamenu */

.drawer-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  color: var(--color-text);
}

.drawer-trigger:active {
  background: var(--color-accent-soft);
}

.drawer-trigger svg {
  width: 22px;
  height: 22px;
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--color-overlay);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
}

.drawer-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.drawer-panel {
  position: fixed;
  inset: 0;
  z-index: 101;
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}

.drawer-panel.is-open {
  transform: translateX(0);
}

.drawer-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding: 0 8px 0 4px;
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}

.drawer-panel__title {
  font-weight: 700;
  font-size: 1.05rem;
}

.drawer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
}

.drawer-close:active {
  background: var(--color-accent-soft);
  color: var(--color-text);
}

.drawer-close svg {
  width: 22px;
  height: 22px;
}

.drawer-panel__body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: calc(16px + var(--safe-bottom));
}

.drawer-panel__footer {
  flex-shrink: 0;
  padding: 12px 16px calc(12px + var(--safe-bottom));
  border-top: 1px solid var(--color-border);
  background: var(--color-bg);
}

.drawer-footer-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-accent);
}

.drawer-footer-link svg {
  width: 18px;
  height: 18px;
}

/* Featured promo block inside drawer */
.drawer-promo {
  margin: 12px 16px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #2d6a4f 0%, #1b4332 100%);
  color: #fff;
}

.drawer-promo__label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}

.drawer-promo__title {
  font-weight: 700;
  font-size: 1rem;
  margin-top: 4px;
}

.drawer-promo__desc {
  font-size: 0.8125rem;
  opacity: 0.9;
  margin-top: 4px;
}
