:root {
  --bg: #f6f1ff;
  --panel: rgba(255, 255, 255, 0.9);
  --text: #1f1631;
  --muted: #6b6382;
  --line: rgba(114, 92, 180, 0.16);
  --brand: #6b2cf5;
  --brand-strong: #4f16cb;
  --accent: #ff6b4a;
  --green: #14a066;
  --shadow: 0 24px 60px rgba(84, 58, 166, 0.14);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(107, 44, 245, 0.18), transparent 26%),
    radial-gradient(circle at top right, rgba(255, 107, 74, 0.16), transparent 18%),
    linear-gradient(180deg, #f9f5ff 0%, #f3f5ff 46%, #fffdf8 100%);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.app-shell {
  width: min(1440px, calc(100% - 32px));
  margin: 16px auto 32px;
}

.topbar,
.main-header,
.hero-card,
.sidebar-card,
.product-card,
.feature-band article,
.category-chip,
.hero-panel,
.modal-content,
.empty-state,
.order-card,
.store-card,
.summary-card,
.inventory-card {
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.topbar,
.main-header {
  background: var(--panel);
  border: 1px solid var(--line);
}

.topbar {
  padding: 12px 20px;
  border-radius: 999px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.topbar-meta,
.topbar-actions,
.header-nav,
.hero-actions,
.filters,
.perk-grid,
.product-meta,
.product-footer,
.summary-row,
.order-header,
.modal-actions,
.line-item {
  display: flex;
  gap: 12px;
  align-items: center;
}

.topbar-meta,
.topbar-actions,
.header-nav,
.perk-grid,
.filters {
  flex-wrap: wrap;
}

.topbar span,
.eyebrow,
.product-meta span,
.metric-label,
.muted,
.chip {
  color: var(--muted);
}

.main-header {
  margin-top: 14px;
  padding: 18px 22px;
  border-radius: var(--radius-xl);
  display: grid;
  grid-template-columns: 270px 1fr auto;
  gap: 16px;
  align-items: center;
}

.brand-block {
  display: flex;
  gap: 14px;
  align-items: center;
}

.brand-mark {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: white;
}

.brand-block h1,
.hero-copy h2,
.section-header h3,
.modal h2,
.seller-layout h3,
.product-card h4 {
  margin: 0;
}

.search-shell {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
}

.search-shell input,
.catalog-button,
.nav-button,
.ghost-button,
.primary-button,
.secondary-button,
.text-button,
.stacked-label select,
.stacked-label input,
.stacked-label textarea,
.filters select {
  border-radius: 999px;
}

.search-shell input,
.stacked-label select,
.stacked-label input,
.stacked-label textarea,
.filters select {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.84);
  color: var(--text);
}

.search-shell input {
  padding: 15px 18px;
}

.catalog-button,
.nav-button,
.ghost-button,
.primary-button,
.secondary-button,
.text-button {
  padding: 13px 18px;
  font-weight: 700;
}

.catalog-button,
.primary-button,
.nav-button.accent {
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  color: white;
}

.nav-button,
.ghost-button,
.secondary-button,
.text-button {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  color: var(--text);
}

.page {
  margin-top: 22px;
  display: grid;
  gap: 22px;
}

.hero-card {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 18px;
  border-radius: 36px;
  padding: 30px;
  background:
    linear-gradient(135deg, rgba(107, 44, 245, 0.1), rgba(255, 255, 255, 0.9)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(242, 237, 255, 0.96));
  border: 1px solid rgba(107, 44, 245, 0.14);
}

.hero-copy h2 {
  max-width: 14ch;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 0.96;
  margin: 10px 0 14px;
}

.hero-copy p,
.product-card p,
.modal p,
.store-card p,
.order-card p,
.summary-card p,
.feature-band p {
  line-height: 1.6;
}

.perk-grid article,
.hero-stat,
.hero-banner {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(107, 44, 245, 0.12);
}

.perk-grid article {
  min-width: 180px;
  flex: 1;
}

.hero-panel {
  padding: 18px;
  display: grid;
  gap: 14px;
  align-content: start;
  border-radius: 28px;
  background: rgba(28, 17, 54, 0.92);
  color: white;
}

.hero-stat span,
.hero-banner li {
  color: rgba(255, 255, 255, 0.72);
}

.hero-banner ul,
.check-list,
.detail-list,
.order-list,
.seller-checklist {
  padding-left: 18px;
  margin: 10px 0 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
}

.category-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.category-chip {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  text-align: left;
}

.feature-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.feature-band article,
.sidebar-card,
.product-card,
.order-card,
.store-card,
.summary-card,
.inventory-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
}

.feature-band article,
.sidebar-card,
.product-card,
.order-card,
.store-card,
.summary-card,
.inventory-card {
  padding: 18px;
}

.content-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 18px;
}

.sidebar-card {
  align-self: start;
  position: sticky;
  top: 16px;
}

.divider {
  height: 1px;
  margin: 18px 0;
  background: var(--line);
}

.stacked-label {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  font-size: 0.95rem;
}

.stacked-label select,
.stacked-label input,
.stacked-label textarea {
  padding: 13px 14px;
  border-radius: 16px;
}

.stacked-label textarea {
  resize: vertical;
  min-height: 108px;
}

.product-grid,
.orders-grid,
.store-grid,
.summary-grid,
.inventory-grid {
  display: grid;
  gap: 16px;
}

.product-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.product-card {
  display: grid;
  gap: 14px;
}

.product-cover,
.store-badge {
  border-radius: 20px;
}

.product-cover {
  min-height: 190px;
  padding: 18px;
  display: grid;
  align-content: space-between;
  color: white;
}

.product-cover small,
.pill,
.status-pill {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
}

.product-cover small {
  background: rgba(255, 255, 255, 0.16);
}

.pill {
  background: rgba(107, 44, 245, 0.1);
  color: var(--brand-strong);
}

.status-pill {
  background: rgba(20, 160, 102, 0.12);
  color: var(--green);
}

.product-footer {
  justify-content: space-between;
}

.price-line strong {
  font-size: 1.15rem;
}

.installment {
  font-size: 0.88rem;
  color: var(--brand-strong);
}

.button-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.icon-button {
  border-radius: 16px;
  width: 50px;
  background: rgba(107, 44, 245, 0.08);
  color: var(--brand-strong);
}

.modal {
  border: 0;
  background: transparent;
  padding: 0;
  width: min(960px, calc(100% - 24px));
}

.modal::backdrop {
  background: rgba(10, 8, 20, 0.48);
  backdrop-filter: blur(8px);
}

.modal-content {
  padding: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 241, 255, 0.98));
  border-radius: 28px;
  border: 1px solid var(--line);
  max-height: 88vh;
  overflow: auto;
}

.modal-header,
.seller-layout,
.checkout-layout,
.insights-layout {
  display: grid;
  gap: 18px;
}

.modal-header {
  grid-template-columns: 1fr auto;
  align-items: start;
}

.close-button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(107, 44, 245, 0.1);
  color: var(--brand-strong);
}

.detail-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.detail-art {
  min-height: 280px;
  border-radius: 24px;
  padding: 24px;
  color: white;
  display: grid;
  align-content: end;
}

.cart-item {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.84);
}

.checkout-layout,
.seller-layout,
.insights-layout {
  grid-template-columns: 1fr 320px;
}

.summary-card {
  position: sticky;
  top: 12px;
  align-self: start;
}

.summary-grid {
  grid-template-columns: repeat(3, 1fr);
}

.store-grid,
.inventory-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.store-badge {
  height: 110px;
  padding: 14px;
  color: white;
  display: grid;
  align-content: end;
  background: linear-gradient(135deg, rgba(20, 160, 102, 0.9), rgba(107, 44, 245, 0.86));
}

.seller-form,
.inventory-form {
  display: grid;
  gap: 14px;
}

.empty-state {
  padding: 32px;
  text-align: center;
}

@media (max-width: 1080px) {
  .main-header,
  .hero-card,
  .content-grid,
  .checkout-layout,
  .seller-layout,
  .insights-layout,
  .detail-hero {
    grid-template-columns: 1fr;
  }

  .sidebar-card,
  .summary-card {
    position: static;
  }
}

@media (max-width: 720px) {
  .app-shell {
    width: min(100% - 18px, 100%);
    margin: 10px auto 20px;
  }

  .topbar,
  .main-header,
  .hero-card,
  .modal-content {
    padding: 18px;
  }

  .feature-band,
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .search-shell {
    grid-template-columns: 1fr;
  }

  .button-row {
    grid-template-columns: 1fr 56px;
  }
}
