.commerce-body {
  min-height: 100vh;
  color: #172033;
  background:
    radial-gradient(circle at 8% 0%, rgba(20, 184, 166, 0.14), transparent 28%),
    radial-gradient(circle at 88% 8%, rgba(245, 158, 11, 0.16), transparent 24%),
    #f7f9fb;
}

.commerce-shell {
  display: grid;
  grid-template-columns: 305px minmax(0, 1fr);
  gap: 24px;
  width: min(1480px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 60px;
}

.commerce-single {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 72vh;
  padding: 32px 16px;
}

.commerce-sidebar,
.commerce-card,
.commerce-locked {
  border: 1px solid rgba(203, 213, 225, 0.78);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

.commerce-sidebar {
  position: sticky;
  top: 96px;
  align-self: start;
  display: grid;
  gap: 18px;
  padding: 20px;
}

.commerce-brand-panel {
  display: grid;
  gap: 6px;
  padding: 18px;
  border-radius: 10px;
  color: #ffffff;
  background:
    radial-gradient(circle at 90% 8%, rgba(250, 204, 21, 0.32), transparent 30%),
    linear-gradient(135deg, #0f766e, #ea580c);
}

.commerce-brand-panel span,
.commerce-kicker,
.commerce-locked-list > span {
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.commerce-brand-panel strong {
  font-size: 1.16rem;
}

.commerce-brand-panel small {
  color: rgba(255, 255, 255, 0.82);
}

.commerce-nav,
.commerce-locked-list,
.commerce-action-grid {
  display: grid;
  gap: 10px;
}

.commerce-nav a,
.commerce-locked-list a,
.commerce-action-grid a,
.store-tabs a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #334155;
  background: rgba(248, 250, 252, 0.88);
  font-weight: 900;
}

.commerce-nav a.active,
.commerce-nav a:hover,
.commerce-action-grid a:hover,
.store-tabs a.active,
.store-tabs a:hover {
  color: #0f766e;
  border-color: rgba(15, 118, 110, 0.24);
  background: #ecfdf5;
}

.commerce-nav a.locked,
.commerce-action-grid a.locked {
  color: #7c8798;
  background: #f1f5f9;
}

.commerce-locked-list {
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
}

.commerce-locked-list small,
.commerce-action-grid small,
.commerce-table small {
  display: block;
  color: #64748b;
  font-weight: 700;
}

.commerce-main,
.commerce-grid,
.commerce-form {
  display: grid;
  gap: 20px;
}

.commerce-grid.two {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.commerce-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
  border-radius: 12px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(15, 118, 110, 0.88)),
    url("https://images.unsplash.com/photo-1556742049-0cfed4f6a45d?auto=format&fit=crop&w=1600&q=80") center/cover;
}

.commerce-topbar h1,
.store-hero h1,
.commerce-locked h1 {
  margin: 0;
  font-size: clamp(1.85rem, 3vw, 2.9rem);
  line-height: 1.05;
}

.commerce-kicker {
  margin: 0 0 8px;
  color: #facc15;
}

.commerce-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.commerce-stat-grid article {
  padding: 20px;
  border: 1px solid rgba(203, 213, 225, 0.8);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.commerce-stat-grid span {
  color: #64748b;
  font-weight: 900;
}

.commerce-stat-grid strong {
  display: block;
  margin-top: 8px;
  color: #0f766e;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  line-height: 1;
}

.commerce-card {
  padding: 24px;
}

.commerce-card h2,
.commerce-card-head h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.15;
}

.commerce-card-head,
.commerce-search,
.commerce-row-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.commerce-card-head {
  justify-content: space-between;
  margin-bottom: 14px;
}

.commerce-card-head span,
.commerce-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #0f766e;
  background: #ccfbf1;
  font-size: 0.8rem;
  font-weight: 900;
}

.commerce-form-grid {
  display: grid;
  gap: 14px;
}

.commerce-form-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.commerce-form-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.commerce-card label,
.store-filter label {
  display: grid;
  gap: 7px;
  color: #334155;
  font-weight: 900;
}

.commerce-card input,
.commerce-card select,
.commerce-card textarea,
.store-filter input,
.store-filter select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  color: #172033;
  background: #ffffff;
  font: inherit;
}

.commerce-card textarea {
  resize: vertical;
}

.checkbox-row {
  align-content: end;
  grid-template-columns: 20px 1fr;
  align-items: center;
}

.checkbox-row input {
  min-height: auto;
}

.commerce-button,
.commerce-row-actions button,
.commerce-inline-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
}

.commerce-button.primary {
  color: #ffffff;
  background: linear-gradient(135deg, #0f766e, #ea580c);
  box-shadow: 0 12px 24px rgba(234, 88, 12, 0.18);
}

.commerce-button.ghost,
.commerce-row-actions button,
.commerce-inline-form button {
  color: #0f766e;
  background: #ecfdf5;
  border: 1px solid rgba(15, 118, 110, 0.22);
}

.commerce-table {
  width: 100%;
  border-collapse: collapse;
}

.commerce-table th,
.commerce-table td {
  padding: 13px 12px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
  vertical-align: top;
}

.commerce-table th {
  color: #0f766e;
  background: #f8fafc;
  font-size: 0.86rem;
}

.commerce-table a,
.commerce-row-actions a {
  color: #0f766e;
  font-weight: 900;
}

.commerce-inline-form {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 8px;
}

.commerce-bars {
  display: grid;
  gap: 14px;
}

.commerce-bars div {
  display: grid;
  gap: 7px;
}

.commerce-bars strong {
  display: block;
  height: 14px;
  min-width: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0f766e, #ea580c);
}

.commerce-bars small {
  color: #64748b;
}

.commerce-locked {
  width: min(620px, 100%);
  display: grid;
  gap: 16px;
  padding: 34px;
}

.commerce-locked p {
  color: #64748b;
}

.commerce-locked strong {
  color: #0f766e;
  font-size: 2rem;
}

.store-shell {
  display: grid;
  gap: 24px;
  width: min(1340px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 60px;
}

.store-hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  min-height: 330px;
  padding: 34px;
  border-radius: 14px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.88), rgba(15, 118, 110, 0.72)),
    url("https://images.unsplash.com/photo-1607082349566-187342175e2f?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.store-hero p:not(.commerce-kicker) {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.82);
}

.store-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.store-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 22px;
}

.store-filter {
  align-self: start;
}

.store-filter form {
  display: grid;
  gap: 14px;
}

.product-grid-store {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.product-card-store {
  overflow: hidden;
  border: 1px solid rgba(203, 213, 225, 0.78);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.product-card-store img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #e2e8f0;
}

.product-card-store div {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.product-card-store span {
  color: #0f766e;
  font-size: 0.82rem;
  font-weight: 900;
}

.product-card-store h2 {
  margin: 0;
  font-size: 1.15rem;
}

.product-card-store p {
  margin: 0;
  color: #64748b;
}

.product-card-store strong,
.product-detail-store strong,
.cart-total {
  color: #ea580c;
  font-size: 1.35rem;
}

.product-card-store form,
.store-add-form {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 10px;
}

.product-detail-store {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 22px;
}

.product-detail-store > img {
  width: 100%;
  min-height: 430px;
  max-height: 560px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.1);
}

.product-detail-store h1 {
  margin: 12px 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.product-detail-store pre {
  white-space: pre-wrap;
  color: #475569;
  font: inherit;
}

@media (max-width: 1120px) {
  .commerce-shell,
  .commerce-grid.two,
  .commerce-stat-grid,
  .store-layout,
  .product-detail-store {
    grid-template-columns: 1fr;
  }

  .commerce-sidebar {
    position: static;
  }

  .product-grid-store {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .commerce-topbar,
  .commerce-card-head,
  .commerce-search,
  .store-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .commerce-form-grid.two,
  .commerce-form-grid.three,
  .product-grid-store,
  .commerce-inline-form {
    grid-template-columns: 1fr;
  }

  .commerce-card,
  .commerce-sidebar,
  .commerce-locked,
  .store-hero {
    padding: 18px;
  }
}
