:root {
  --primary: #7b68ee;
  --primary-light: #9d8df0;
  --primary-dark: #5a4fcf;
  --accent: #3b82f6;
  --accent-light: #60a5fa;
  --warm: #f97316;
  --warm-light: #fb923c;
  --ink: #1f2937;
  --ink-soft: #374151;
  --muted: #6b7280;
  --muted-light: #9ca3af;
  --surface: #ffffff;
  --surface-warm: #fffbf5;
  --surface-cool: #f9fafb;
  --border: rgba(0, 0, 0, 0.06);
  --border-hover: rgba(123, 104, 238, 0.2);
  --gradient-hero: linear-gradient(135deg, #7b68ee 0%, #6366f1 50%, #8b5cf6 100%);
  --gradient-btn: linear-gradient(135deg, #7b68ee 0%, #6366f1 100%);
  --gradient-accent: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 20px rgba(123, 104, 238, 0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--surface-cool);
  min-height: 100vh;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 400px;
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.03) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

h1,
h2,
h3,
h4 {
  font-family: "Unbounded", "Manrope", sans-serif;
  letter-spacing: -0.02em;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.topbar-shell {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 14px 24px;
}

.topbar-row {
  display: grid;
  grid-template-columns: auto auto minmax(280px, 1fr) auto;
  align-items: center;
  gap: 16px;
}

.logo img {
  height: 42px;
  display: block;
}

.logo-text {
  display: grid;
  gap: 2px;
  font-weight: 700;
}

.logo-title {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.logo-sub {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: lowercase;
}

.search {
  display: flex;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 6px 6px 6px 18px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search:focus-within {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
}

.search input {
  border: none;
  outline: none;
  flex: 1;
  font-size: 14px;
  font-weight: 500;
}

.search input::placeholder {
  color: var(--muted);
}

.search button {
  border: none;
  background: var(--gradient-btn);
  color: #fff;
  padding: 10px 18px;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.15s, opacity 0.15s;
}

.search button:hover {
  transform: translateY(-1px);
  opacity: 0.9;
}

.nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav form {
  margin: 0;
}

.nav-link {
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: transparent;
  position: relative;
  transition: color 0.2s;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.2s;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-btn {
  padding: 10px 16px;
  font-size: 12px;
}

.nav .btn-primary {
  color: #fff;
}

.nav .btn-primary:hover {
  color: #fff;
}

.container {
  position: relative;
  z-index: 1;
  padding: 24px;
  max-width: 100%;
  margin: 0;
}

.hero {
  margin-bottom: 28px;
}

.hero-card {
  background: var(--gradient-hero);
  color: #fff;
  padding: 48px 40px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.hero-card::after {
  content: "";
  position: absolute;
  bottom: -50px;
  left: -50px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.hero-badge {
  background: var(--gradient-accent);
  color: #fff;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}

.hero-layout {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
}

.hero-text h1 {
  margin: 0 0 12px;
  font-size: 32px;
}

.hero-text p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  gap: 12px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.15);
  padding: 18px;
  border-radius: var(--radius-md);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
}

.stat-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 4px;
}

.promo-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 24px;
}

.collection-section {
  margin-bottom: 24px;
}

.promo-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}

.promo-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.promo-card::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 0;
  width: 3px;
  height: 24px;
  background: var(--accent);
  border-radius: 0 3px 3px 0;
}

.promo-card:nth-child(2)::before {
  background: var(--primary);
}

.promo-card:nth-child(3)::before {
  background: var(--warm);
}

.promo-card h3 {
  margin: 0 0 8px;
  font-size: 15px;
  padding-left: 12px;
}

.promo-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  padding-left: 12px;
  line-height: 1.5;
}

.category-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.catalog-layout {
  display: grid;
  grid-template-columns: minmax(240px, 280px) 1fr;
  gap: 24px;
  align-items: start;
}

.catalog-sidebar {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 16px;
}

.catalog-main {
  display: grid;
  gap: 16px;
}

.sidebar-card {
  background: var(--surface);
  padding: 18px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  display: grid;
  gap: 14px;
}

.sidebar-card h3 {
  margin: 0;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
}

.sidebar-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 8px 14px;
  border-radius: 50px;
  background: var(--surface-cool);
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
  border: 1px solid var(--border);
  transition: all 0.15s;
}

.chip:hover {
  border-color: var(--primary-light);
  color: var(--primary);
}

.chip.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.filter-bar {
  background: var(--surface);
  padding: 18px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  margin-bottom: 18px;
}

.filter-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: end;
}

.filter-form label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.filter-form input,
.filter-form select {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 13px;
}

.filter-check {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}

.stars {
  display: inline-flex;
  gap: 2px;
  color: rgba(255, 201, 71, 0.35);
}

.stars span.filled {
  color: #ffc947;
}

.rating-count {
  font-size: 11px;
}

.pagination {
  display: flex;
  gap: 8px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.page-link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  font-weight: 600;
  transition: all 0.15s;
}

.page-link:hover {
  border-color: var(--primary-light);
  color: var(--primary);
}

.page-link.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.section {
  margin-top: 24px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.section-title {
  display: grid;
  gap: 4px;
}

.section-head h2 {
  margin: 0;
}

.section-meta {
  color: var(--muted);
  font-size: 13px;
}

.section-controls {
  display: flex;
  gap: 8px;
  align-items: center;
}

.slider-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.15s;
}

.slider-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: scale(1.05);
}

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

.product-grid-scroll {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 280px);
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  scroll-padding: 12px;
  overscroll-behavior-x: contain;
}

.product-grid-scroll .product-card {
  scroll-snap-align: start;
}

.product-grid-scroll::-webkit-scrollbar {
  height: 8px;
}

.product-grid-scroll::-webkit-scrollbar-thumb {
  background: rgba(0, 91, 255, 0.25);
  border-radius: 999px;
}

.product-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-hover);
}

.product-image {
  position: relative;
}

.product-image img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

.badge-group {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  z-index: 2;
}

.badge {
  background: var(--warm);
  color: #fff;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.badge-hit {
  background: var(--primary);
}

.badge-new {
  background: var(--accent);
}

.badge-discount {
  background: #ef4444;
}

.product-meta {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.price-block {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.price {
  font-size: 18px;
  font-weight: 700;
}

.price-xl {
  font-size: 28px;
  font-weight: 700;
}

.price-old {
  font-size: 13px;
  color: var(--muted);
  text-decoration: line-through;
}

.product-title {
  font-size: 15px;
  font-weight: 600;
}

.product-seller,
.product-stock {
  font-size: 13px;
  color: var(--muted);
}

.product-seller a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s;
}

.product-seller a:hover {
  color: var(--primary);
}

.product-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.product-tags span {
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: var(--surface-cool);
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  border: 1px solid var(--border);
}

.card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn {
  border: none;
  border-radius: 50px;
  padding: 11px 18px;
  cursor: pointer;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--gradient-btn);
  color: #fff;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--ink);
}

.btn-outline:hover {
  border-color: var(--primary-light);
  color: var(--primary);
}

.hero-card .btn-outline {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.hero-card .btn-outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.btn-ghost {
  background: rgba(123, 104, 238, 0.08);
  color: var(--primary);
}

.btn-ghost.active {
  background: rgba(123, 104, 238, 0.15);
}

.btn-danger {
  background: #ef4444;
  color: #fff;
}

.pill {
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent);
  border-radius: 50px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  margin-left: 6px;
}

.flash {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.flash-item {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  background: #eef0ff;
}

.flash-item.error {
  background: #ffe7ec;
  color: #b42342;
}

.flash-item.success {
  background: #e8fff0;
  color: #0f7a38;
}

.auth {
  display: flex;
  justify-content: center;
}

.auth-card,
.form-card,
.profile-card,
.order-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.auth-card {
  width: min(560px, 100%);
}

.form,
.profile-card {
  display: grid;
  gap: 16px;
}

.form label {
  font-size: 14px;
  display: grid;
  gap: 8px;
}

.form-section {
  display: grid;
  gap: 12px;
}

.image-preview {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.form-section h3 {
  margin: 0;
  font-size: 16px;
}

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

.hint {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

input,
textarea,
select {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 14px;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.role-switch {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 14px;
}

.form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.toolbar {
  margin-bottom: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.seller-grid {
  display: grid;
  gap: 16px;
}

.seller-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.store-hero {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 220px;
  background: var(--gradient-hero);
  box-shadow: var(--shadow-lg);
}

.store-hero img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  opacity: 0.95;
}

.store-overlay {
  position: absolute;
  inset: 0;
  padding: 24px;
  display: grid;
  align-content: end;
  gap: 10px;
  color: #fff;
  background: linear-gradient(180deg, rgba(10, 12, 24, 0) 0%, rgba(10, 12, 24, 0.55) 70%, rgba(10, 12, 24, 0.75) 100%);
}

.store-title {
  font-size: 24px;
  font-weight: 700;
}

.store-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
}

.store-overlay .rating-row {
  color: rgba(255, 255, 255, 0.9);
}

.store-overlay .stars {
  color: rgba(255, 255, 255, 0.4);
}

.store-overlay .stars span.filled {
  color: #fff2a6;
}

.seller-title {
  font-weight: 600;
  font-size: 16px;
}

.seller-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
}

.status-pill {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status-approved {
  background: rgba(34, 197, 94, 0.16);
  color: #128944;
}

.status-pending {
  background: rgba(234, 179, 8, 0.18);
  color: #9a6c00;
}

.status-rejected {
  background: rgba(239, 68, 68, 0.18);
  color: #b42318;
}

.admin-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-bottom: 24px;
}

.admin-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  display: grid;
  gap: 12px;
}

.admin-card h3 {
  margin: 0;
  font-size: 16px;
}

.admin-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
}

.admin-table select {
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 12px;
  margin-right: 6px;
}

.log-list {
  display: grid;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}

.log-item {
  background: var(--surface-cool);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.seller-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.product-detail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  background: var(--surface);
  padding: 32px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.product-gallery img {
  width: 100%;
  border-radius: 18px;
  object-fit: cover;
}

.product-gallery {
  position: relative;
}

.product-description {
  color: var(--muted);
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.spec-grid div {
  background: var(--surface-cool);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  display: grid;
  gap: 4px;
  border: 1px solid var(--border);
}

.spec-grid span {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cart-list {
  display: grid;
  gap: 16px;
}

.cart-item {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  display: grid;
  grid-template-columns: 100px 1fr auto auto auto;
  gap: 12px;
  align-items: center;
}

.cart-item img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 14px;
}

.cart-info {
  display: grid;
  gap: 6px;
}

.cart-title {
  font-weight: 600;
}

.cart-qty {
  display: grid;
  gap: 6px;
}

.cart-qty input {
  width: 72px;
}

.cart-total {
  font-weight: 700;
}

.cart-summary {
  margin-top: 24px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.summary-title {
  font-size: 13px;
  color: var(--muted);
}

.summary-amount {
  font-size: 22px;
  font-weight: 800;
}

.orders {
  display: grid;
  gap: 16px;
}

.order-head {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.order-title {
  font-weight: 600;
}

.order-meta {
  font-size: 12px;
  color: var(--muted);
}

.order-status {
  background: rgba(8, 145, 178, 0.1);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
}

.order-items {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}

.order-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  border-bottom: 1px dashed var(--border);
  padding-bottom: 8px;
}

.order-total {
  font-weight: 600;
}

.review-list {
  display: grid;
  gap: 12px;
}

.review-card {
  background: var(--surface);
  padding: 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.review-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
}

.review-text {
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink);
}

.profile-card {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.profile-name {
  font-size: 20px;
  font-weight: 700;
}

.profile-email,
.profile-role,
.profile-store {
  color: var(--muted);
  margin-top: 6px;
}

.profile-actions {
  display: grid;
  gap: 10px;
}

.empty-state {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  display: grid;
  gap: 12px;
}

.muted {
  color: var(--muted);
}

.footer {
  margin-top: 48px;
  border-top: 1px solid var(--border);
  padding: 28px 0;
}

.footer-inner {
  max-width: 100%;
  margin: 0;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.fade-up {
  animation: fadeUp 0.6s ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .topbar-shell {
    padding: 16px 20px;
  }

  .topbar-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .hero-layout {
    grid-template-columns: 1fr;
  }

  .nav {
    justify-content: flex-start;
  }

  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .catalog-sidebar {
    position: static;
  }

  .cart-item {
    grid-template-columns: 1fr;
  }

  .cart-item img {
    width: 100%;
    height: 180px;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 20px;
  }

  .hero-card h1 {
    font-size: 24px;
  }

  .product-grid-scroll {
    grid-auto-columns: minmax(200px, 70vw);
  }

  .footer-inner {
    flex-direction: column;
  }
}