.workspace-shell {
  display:grid;
  grid-template-columns:220px minmax(0,1fr);
  min-height:100svh;
}

.sidebar {
  position:sticky;
  top:0;
  height:100svh;
  background:var(--ink);
  color:var(--white);
  padding:32px 26px;
  display:flex;
  flex-direction:column;
  z-index:5;
}

.sidebar__caption {
  font-size:10px;
  color:#b9b2a6;
  margin-top:18px;
}

.sidebar nav {
  display:flex;
  flex-direction:column;
  gap:15px;
  margin:80px -26px 30px;
}

.sidebar nav button {
  display:flex;
  gap:13px;
  align-items:center;
  text-align:left;
  border:0;
  border-left:3px solid transparent;
  background:transparent;
  color:#b9b2a6;
  min-height:54px;
  padding:14px 24px;
  font-size:13px;
}

.sidebar nav button[aria-current] {
  background:#363a32;
  color:var(--white);
  border-left-color:#cf744b;
}

.sidebar nav button:hover {
  color:var(--white);
  background:#2d312c;
}

.nav-arrow {
  margin-left:auto;
}

.sidebar__footer {
  margin-top:auto;
  border-top:1px solid #565b50;
  padding-top:22px;
  display:flex;
  flex-direction:column;
  gap:9px;
  font-size:10px;
  color:#b9b2a6;
}

.sidebar__footer .mono {
  font-size:8px;
}

.sidebar__footer strong {
  font-size:13px;
  color:var(--white);
  overflow-wrap:anywhere;
}

.sidebar-logout {
  color:var(--white);
  border:0;
  background:transparent;
  padding:16px 0 0;
  font-size:12px;
  display:flex;
  justify-content:space-between;
}

.workspace-main {
  min-width:0;
}

.workspace-page {
  padding:35px clamp(24px,3.2vw,56px) 60px;
  outline:none;
}

.mobile-header {
  display:none;
}

.page-overline {
  display:flex;
  justify-content:space-between;
  align-items:center;
  border-bottom:1px solid var(--line);
  padding-bottom:18px;
  color:var(--muted);
  gap:20px;
}

.page-overline .mono {
  font-size:9px;
}

.page-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:24px;
  margin:34px 0;
}

.page-heading h1 {
  margin-bottom:14px;
}

.page-heading p {
  font-size:13px;
  margin:0;
}

.catalog-toolbar {
  display:flex;
  align-items:center;
  gap:20px;
  margin:30px 0 24px;
  flex-wrap:wrap;
}

.view-switch {
  display:flex;
  background:#d4cdbf;
  padding:4px;
  border-radius:var(--radius);
}

.view-switch button {
  background:none;
  border:0;
  padding:10px 14px;
  font-size:12px;
  color:var(--muted);
  border-radius:3px;
}

.view-switch button[aria-pressed=true] {
  background:var(--surface);
  color:var(--ink);
  box-shadow:0 1px 3px #20232015;
}

.catalog-count {
  margin-left:auto;
  color:var(--muted);
  font-size:9px;
}

.catalog-toolbar>.text-button {
  font-size:11px;
}

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

.product-card {
  padding:0;
  background:var(--surface);
  border:1px solid #c4bcae;
  display:block;
  text-align:left;
  min-width:0;
  overflow:hidden;
  transition:box-shadow .2s,border-color .2s;
}

.product-card:hover {
  border-color:var(--muted);
  box-shadow:0 8px 28px #20232012;
}

.product-card__visual {
  position:relative;
  aspect-ratio:3/4;
  overflow:hidden;
  background:#c8c1b4;
}

.product-card__visual img {
  height:100%;
  width:100%;
  object-fit:cover;
  transition:transform .4s;
}

.product-card:hover img {
  transform:scale(1.035);
}

.product-card__number {
  position:absolute;
  top:18px;
  left:18px;
  color:#292b25;
  background:#eae5dcc7;
  padding:6px 8px;
  font-size:9px;
}

.product-card__open {
  position:absolute;
  right:16px;
  bottom:16px;
  background:var(--white);
  width:33px;
  height:33px;
  border-radius:50%;
  display:grid;
  place-items:center;
  opacity:0;
  transform:translateY(6px);
  transition:.2s;
}

.product-card:hover .product-card__open,.product-card:focus-visible .product-card__open {
  opacity:1;
  transform:none;
}

.product-card__body {
  padding:22px 20px;
}

.product-card h2 {
  font-size:clamp(18px,1.8vw,27px);
  margin-bottom:20px;
  overflow-wrap:anywhere;
}

.product-card__meta {
  border-top:1px solid var(--line);
  padding-top:16px;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:12px;
}

.product-card__meta>span {
  display:flex;
  flex-direction:column;
  gap:7px;
  font-size:12px;
  min-width:0;
  overflow-wrap:anywhere;
}

.product-card__meta>span:last-child {
  border-left:1px solid var(--line);
  padding-left:18px;
  min-width:55px;
}

.product-card__meta small {
  font-size:8px;
  letter-spacing:.1em;
  color:var(--muted);
}

.product-card__meta .mono {
  font-size:10px;
}

.table-scroll {
  overflow:auto;
  border:1px solid #c4bcae;
  background:var(--surface);
}

.data-table {
  border-collapse:collapse;
  width:100%;
  text-align:left;
  font-size:13px;
}

.data-table th {
  color:var(--muted);
  font-size:9px;
  letter-spacing:.08em;
  text-transform:uppercase;
  font-weight:500;
  padding:22px 24px;
  border-bottom:1px solid var(--line);
}

.data-table td {
  padding:25px 24px;
  border-bottom:1px solid var(--line);
  overflow-wrap:anywhere;
  max-width:360px;
  line-height:1.5;
}

.data-table tr:last-child td {
  border-bottom:0;
}

.data-table tbody tr:hover {
  background:#e2dcd0;
}

.table-link {
  background:none;
  border:0;
  padding:5px 0;
  text-align:left;
  font-weight:700;
  font-size:16px;
}

.table-link:hover {
  text-decoration:underline;
}

.table-link:focus-visible {
  outline-offset:2px;
}

.users-toolbar {
  display:flex;
  justify-content:space-between;
  gap:20px;
  align-items:center;
  margin-bottom:24px;
  flex-wrap:wrap;
}

.filter-tabs {
  display:flex;
  gap:6px;
  flex-wrap:wrap;
}

.filter-tabs button {
  background:var(--surface);
  border:1px solid transparent;
  padding:12px 15px;
  font-size:11px;
  border-radius:var(--radius);
}

.filter-tabs button[aria-pressed=true] {
  background:var(--ink);
  color:var(--white);
}

.users-table {
  min-width:660px;
}

.users-table .button {
  font-size:11px;
  padding:10px 14px;
  min-height:40px;
  white-space:nowrap;
}

.user-email {
  display:block;
  font-size:11px;
  color:var(--muted);
  margin-top:7px;
}

.badge {
  padding:6px 9px;
  display:inline-block;
  font-size:10px;
  white-space:nowrap;
  border-radius:3px;
}

.badge--pending {
  background:#e2cfaa;
  color:#644917;
}

.badge--active {
  background:#d0d7c5;
  color:#34422a;
}

.badge--blocked {
  background:#e7cec2;
  color:#7b3522;
}

.pagination {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  margin-top:24px;
}

.pagination-label {
  color:var(--muted);
  font-size:9px;
  text-align:center;
}

.profile-card {
  max-width:620px;
  background:var(--surface);
  border:1px solid var(--line);
  padding:36px;
}

.profile-avatar {
  background:var(--ink);
  color:var(--white);
  border-radius:50%;
  display:grid;
  place-items:center;
  width:64px;
  height:64px;
  font-size:27px;
  margin-bottom:25px;
}

.profile-card h2 {
  margin-bottom:8px;
}

.profile-card p {
  font-size:13px;
  overflow-wrap:anywhere;
}

.detail-list {
  margin:30px 0 0;
  font-size:12px;
}

.detail-list>div {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
  border-top:1px solid var(--line);
  padding:18px 0;
}

.detail-list dt {
  color:var(--muted);
}

.detail-list dd {
  margin:0;
  text-align:right;
  overflow-wrap:anywhere;
}

.drawer {
  position:fixed;
  inset:0 0 0 auto;
  margin:0;
  height:100svh;
  max-height:100svh;
  width:min(520px,100vw);
  max-width:100vw;
  border:0;
  border-left:1px solid var(--line);
  padding:28px 34px 40px;
  background:var(--surface);
  color:var(--ink);
  box-shadow:-16px 0 50px #20232022;
  overflow-y:auto;
}

.drawer[open] {
  animation:drawer-in .22s ease-out;
}

.drawer::backdrop {
  background:#20232073;
  backdrop-filter:blur(2px);
}

.drawer__header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:35px;
  color:var(--muted);
}

.drawer h2 {
  font-size:34px;
  margin-bottom:16px;
  overflow-wrap:anywhere;
}

.drawer>.muted,.drawer p.muted {
  font-size:13px;
}

.detail-sku {
  color:var(--muted);
  margin-bottom:24px;
  overflow-wrap:anywhere;
}

.detail-image {
  width:100%;
  aspect-ratio:4/5;
  object-fit:cover;
  background:#c8c1b4;
}

.detail-image+.field-hint {
  margin-top:12px;
}

.drawer .form-stack {
  margin-top:30px;
}

.drawer .form-error {
  margin-top:0;
}

@keyframes drawer-in {
  from {
    transform:translateX(25px);
    opacity:0;
  }
  to {
    transform:none;
    opacity:1;
  }
}

@keyframes toast-in {
  from {
    opacity:0;
    translate:0 8px;
  }
  to {
    opacity:1;
    translate:0 0;
  }
}

