.stall-detail-page {
  background-color: var(--bg);
  min-height: 100vh;
}

.detail-header {
  position: relative;
  height: 220px;
  width: 100%;
  z-index: 1 !important;
}

.detail-header.sticky {
  height: auto;
  padding: 12px 16px;
  background: var(--surface);
  z-index: 100 !important;
  box-shadow: var(--shadow);
}

.detail-content {
  position: relative;
  z-index: 50 !important;
  margin-top: -40px !important;
}

.stall-detail-page .add-to-cart-container {
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--surface);
  border-radius: 8px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  box-shadow: var(--shadow);
}

.stall-detail-page .back-button {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 10;
  background: var(--surface);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  box-shadow: var(--shadow);
}

.header-image-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.header-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f0f1ff 0%, #e5e7ff 100%);
}

.header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0) 40%, rgba(247,248,252,1) 100%);
}

.stall-main-card {
  margin: 0 16px 20px;
  background: var(--surface) !important;
  border-radius: 24px;
  padding: 20px;
  position: relative;
  box-shadow: var(--shadow);
  z-index: 100 !important;
}

.stall-header-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.stall-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-dark);
}

.status-tag {
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
}

.status-tag.closed {
  background-color: #fee2e2;
  color: #ef4444;
}

.stall-description {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.5;
  margin-bottom: 20px;
}

.stall-meta {
  display: flex;
  gap: 16px;
  border-top: 1px solid #f0f1ff;
  padding-top: 16px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  padding: 6px 12px;
  border-radius: 100px;
}

.stall-items-section {
  padding: 10px 0;
}

.stall-items-section .section-title {
  padding: 0 20px 16px;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-dark);
}

.loading, .error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
}

.error-content {
  margin-top: 60px;
}

.error-content h2 {
  margin-bottom: 12px;
  color: var(--text-dark);
}

.error-content p {
  color: var(--text-mid);
  margin-bottom: 24px;
}

.no-items {
  padding: 40px 24px;
  text-align: center;
  color: var(--text-light);
  background: var(--surface);
  margin: 0 16px;
  border-radius: 16px;
  border: 1px dashed var(--border);
}
