.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
  z-index: 100;
}

.drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  max-width: 420px;
  background: var(--card-bg);
  z-index: 101;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease-in-out;
}

.drawer-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer-header h3 {
  font-size: 1rem;
}

.btn-close {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.drawer-body {
  padding: 1.25rem;
  overflow-y: auto;
  flex-grow: 1;
}

.drawer-preview {
  width: 100%;
  max-height: 200px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1.25rem;
  background: #f1f5f9;
}

.drawer-preview img {
  width: 100%;
  height: 200px;
  object-fit: contain;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
  color: var(--text-secondary);
}

.form-group select,
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.55rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  outline: none;
}

.drawer-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border-color);
  background: #fafafa;
}

.drawer-price {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
}

.drawer-price strong {
  color: var(--primary-color);
}

.drawer-buttons {
  display: flex;
  gap: 0.5rem;
}

.btn-save-item {
  flex-grow: 1;
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 0.6rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.btn-remove-item {
  background: #fef2f2;
  color: var(--danger-color);
  border: 1px solid #fecaca;
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
/* #region collage */
.drawer-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border-color);
  background: #fafafa;
}

/* بهبود ساختار دکمه‌های فوتر دراور کلاژ */
.drawer-buttons {
  display: flex;
  gap: 0.75rem;
  width: 100%;
}

.btn-save-item {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: inherit;
  font-weight: bold;
  transition: var(--transition);
}

.btn-save-item:hover {
  background: var(--primary-hover);
}

.btn-remove-item {
  background: #fef2f2;
  color: var(--danger-color);
  border: 1px solid #fecaca;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
}

.btn-remove-item:hover {
  background: #fee2e2;
}
/* #endregion */
