/* Admin Login */
.admin-login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #0f172a;
}

.login-hero {
  background: linear-gradient(160deg, #1e1b4b 0%, #312e81 40%, #4c1d95 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  position: relative;
  overflow: hidden;
}

.login-hero::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.3), transparent 70%);
  top: -100px;
  left: -100px;
}

.login-hero::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.25), transparent 70%);
  bottom: -80px;
  right: -80px;
}

.login-hero-content {
  position: relative;
  z-index: 1;
  color: white;
  max-width: 400px;
}

.login-hero-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.4);
}

.login-hero-icon .material-icons-round {
  font-size: 36px;
}

.login-hero-icon:has(.login-hero-logo) {
  width: 100px;
  height: 100px;
  background: transparent;
  box-shadow: none;
}

.login-hero-content h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 12px;
}

.login-hero-content > p {
  font-size: 16px;
  opacity: 0.75;
  line-height: 1.7;
  margin-bottom: 32px;
}

.login-hero-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.login-hero-features div {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  opacity: 0.85;
  background: rgba(255, 255, 255, 0.08);
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.login-hero-features .material-icons-round {
  font-size: 20px;
  color: #a5b4fc;
}

.login-form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: #f8fafc;
}

.login-card {
  background: white;
  border-radius: 24px;
  padding: 40px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
  border: 1px solid var(--grey-100);
  animation: fadeIn 0.8s ease;
}

.login-card h1 {
  font-size: 26px;
  font-weight: 800;
  color: var(--grey-800);
  margin-bottom: 6px;
}

.login-card .subtitle {
  color: var(--grey-500);
  margin-bottom: 32px;
  font-size: 14px;
}

.login-field {
  margin-bottom: 20px;
}

.login-field label {
  display: block;
  font-size: 14px;
  color: var(--grey-600);
  margin-bottom: 6px;
}

.login-field .input-wrap {
  position: relative;
}

.login-field input {
  width: 100%;
  padding: 16px 16px 16px 56px;
  border: 1px solid var(--grey-300);
  border-radius: var(--radius-lg);
  background: var(--grey-50);
  direction: ltr;
  text-align: left;
}

.login-field .field-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background: var(--blue-50);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-field .field-icon .material-icons-round {
  color: var(--blue-600);
  font-size: 20px;
}

.login-field .toggle-password {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--grey-600);
}

.login-btn {
  width: 100%;
  height: 52px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: var(--white);
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
  margin-top: 28px;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.login-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.back-to-store {
  display: block;
  text-align: center;
  margin-top: 20px;
  color: var(--indigo-500);
  font-size: 14px;
  font-weight: 600;
}

@media (max-width: 768px) {
  .admin-login-page {
    grid-template-columns: 1fr;
  }

  .login-hero {
    padding: 32px 24px;
    min-height: auto;
  }

  .login-hero-features {
    display: none;
  }

  .login-form-side {
    padding: 24px;
  }
}

/* Admin Dashboard — Modern Layout */
.dash-layout {
  min-height: 100vh;
  display: flex;
  background: #0f172a;
}

.dash-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: linear-gradient(180deg, #1e1b4b 0%, #0f172a 100%);
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 200;
}

.dash-drawer-overlay {
  display: none;
}

.dash-drawer-close {
  display: none;
}

.dash-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--grey-200);
  background: var(--grey-50);
  color: var(--grey-700);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  font-family: inherit;
}

.dash-menu-btn .material-icons-round {
  font-size: 22px;
}

.dash-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.dash-brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.35);
}

.dash-brand-icon .material-icons-round {
  color: white;
  font-size: 24px;
}

.login-hero-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.dash-brand-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
}

.dash-brand-icon:has(.dash-brand-logo) {
  background: transparent;
  box-shadow: none;
}

.dash-sidebar-brand strong {
  display: block;
  color: white;
  font-size: 15px;
  font-weight: 700;
}

.dash-sidebar-brand span {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
}

.dash-nav {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}

.dash-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
  border: none;
  background: none;
  width: 100%;
  cursor: pointer;
  text-align: right;
  font-family: inherit;
}

.dash-nav-item .material-icons-round {
  font-size: 20px;
}

.dash-nav-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.dash-nav-item.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.35), rgba(139, 92, 246, 0.2));
  color: white;
  box-shadow: inset 0 0 0 1px rgba(139, 92, 246, 0.3);
}

.dash-sidebar-footer {
  padding: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.dash-logout:hover {
  background: rgba(239, 68, 68, 0.15) !important;
  color: #fca5a5 !important;
}

.dash-main {
  flex: 1;
  min-width: 0;
  background: #f1f5f9;
  padding: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.dash-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  gap: 16px;
  color: var(--grey-600);
}

.dash-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 28px;
  background: white;
  border-bottom: 1px solid var(--grey-200);
  position: sticky;
  top: 0;
  z-index: 50;
  flex-wrap: wrap;
}

.dash-topbar-start {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.dash-topbar-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--grey-800);
}

.dash-topbar-store {
  font-size: 13px;
  color: var(--grey-500);
  padding: 4px 10px;
  background: var(--grey-100);
  border-radius: 999px;
}

.dash-topbar-end {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.dash-alert-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

.dash-alert-pill .material-icons-round {
  font-size: 18px;
}

.dash-topbar-date {
  font-size: 13px;
  color: var(--grey-500);
}

.dash-topbar-store-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--grey-800);
  color: white;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
}

.dash-topbar-store-link .material-icons-round {
  font-size: 18px;
}

.dash-period-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 28px;
  background: white;
  border-bottom: 1px solid var(--grey-200);
  flex-wrap: wrap;
}

.dash-period-tabs {
  display: flex;
  gap: 6px;
  background: var(--grey-100);
  padding: 4px;
  border-radius: 12px;
}

.dash-period-tab {
  padding: 8px 18px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: var(--grey-600);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.dash-period-tab:hover {
  color: var(--grey-800);
  background: rgba(255, 255, 255, 0.6);
}

.dash-period-tab.active {
  background: white;
  color: var(--indigo-500);
  box-shadow: var(--shadow-sm);
}

.dash-period-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--grey-500);
  font-weight: 600;
}

.dash-period-hint .material-icons-round {
  font-size: 18px;
  color: var(--indigo-500);
}

.dash-panel-sub {
  font-size: 12px;
  font-weight: 600;
  color: var(--grey-400);
}

.dash-status-note {
  margin-top: 12px;
  font-size: 12px;
  color: var(--grey-500);
  text-align: center;
  padding-top: 12px;
  border-top: 1px solid var(--grey-100);
}

.dash-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--grey-200);
  border-bottom: 1px solid var(--grey-200);
}

.dash-kpi {
  background: white;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 3px solid transparent;
}

.dash-kpi-indigo { border-top-color: #6366f1; }
.dash-kpi-green { border-top-color: #22c55e; }
.dash-kpi-orange { border-top-color: #f97316; }
.dash-kpi-blue { border-top-color: #3b82f6; }

.dash-kpi-label {
  font-size: 12px;
  color: var(--grey-500);
  font-weight: 600;
}

.dash-kpi-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--grey-800);
  line-height: 1.2;
}

.dash-kpi-meta {
  font-size: 12px;
  color: var(--grey-400);
}

.dash-bento {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
  padding: 24px 28px 32px;
  flex: 1;
  align-items: start;
}

.dash-side-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dash-panel {
  background: white;
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  border: 1px solid var(--grey-100);
}

.dash-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.dash-panel-head h2 {
  font-size: 15px;
  font-weight: 700;
  color: var(--grey-800);
}

.dash-panel-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--indigo-500);
}

.dash-orders-table-wrap {
  overflow-x: auto;
}

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

.dash-orders-table th {
  text-align: right;
  font-size: 12px;
  font-weight: 600;
  color: var(--grey-500);
  padding: 10px 12px;
  border-bottom: 1px solid var(--grey-200);
}

.dash-orders-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--grey-100);
  font-size: 14px;
  vertical-align: middle;
}

.dash-order-row {
  cursor: pointer;
  transition: background 0.15s ease;
}

.dash-order-row:hover {
  background: var(--grey-50);
}

.dash-order-row:last-child td {
  border-bottom: none;
}

.dash-order-customer {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dash-order-initial {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--grey-200);
  color: var(--grey-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.dash-order-customer strong {
  display: block;
  font-size: 14px;
  color: var(--grey-800);
}

.dash-order-customer span {
  font-size: 12px;
  color: var(--grey-500);
}

.dash-status-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  color: white;
  white-space: nowrap;
}

.dash-order-time {
  font-size: 13px;
  color: var(--grey-500);
  white-space: nowrap;
}

.dash-status-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.dash-status-card {
  background: var(--grey-50);
  border-radius: 12px;
  padding: 14px;
  border-right: 3px solid var(--status-color);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dash-status-count {
  font-size: 22px;
  font-weight: 800;
  color: var(--grey-800);
}

.dash-status-name {
  font-size: 12px;
  color: var(--grey-500);
  font-weight: 600;
}

.dash-store-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dash-store-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--grey-100);
  font-size: 14px;
  color: var(--grey-600);
}

.dash-store-list li:last-child {
  border-bottom: none;
}

.dash-store-list li span:not(.material-icons-round) {
  flex: 1;
}

.dash-store-list li .material-icons-round {
  font-size: 22px;
}

.dash-store-list li strong {
  font-size: 18px;
  font-weight: 800;
  color: var(--grey-800);
}

@keyframes dashSlideUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .dash-kpi-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .dash-bento {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .dash-menu-btn {
    display: flex;
  }

  .dash-drawer-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    z-index: 250;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(2px);
  }

  .dash-layout.drawer-open .dash-drawer-overlay {
    opacity: 1;
    visibility: visible;
  }

  .dash-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: min(300px, 88vw);
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    flex-wrap: nowrap;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 300;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.25);
  }

  .dash-layout.drawer-open .dash-sidebar {
    transform: translateX(0);
  }

  .dash-sidebar-brand {
    padding: 20px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .dash-drawer-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-right: auto;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    font-family: inherit;
  }

  .dash-drawer-close .material-icons-round {
    font-size: 22px;
  }

  .dash-nav {
    flex-direction: column;
    flex-wrap: nowrap;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px;
    width: 100%;
    border-top: none;
    -webkit-overflow-scrolling: touch;
  }

  .dash-nav-item {
    flex-shrink: 0;
    padding: 14px;
    font-size: 14px;
  }

  .dash-nav-item span:not(.material-icons-round) {
    display: inline;
  }

  .dash-sidebar-footer {
    display: block;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px;
  }

  .dash-sidebar-footer .dash-nav-item span:not(.material-icons-round) {
    display: inline;
  }

  .dash-main {
    width: 100%;
  }

  .dash-topbar {
    padding: 12px 16px;
    gap: 8px;
  }

  .dash-period-bar {
    padding: 10px 16px;
    flex-direction: column;
    align-items: stretch;
  }

  .dash-period-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .dash-period-tab {
    flex: 1;
    min-width: 0;
    padding: 8px 12px;
    font-size: 12px;
  }

  .dash-period-hint {
    justify-content: center;
  }

  .dash-topbar-store {
    display: none;
  }

  .dash-topbar-date {
    display: none;
  }

  .dash-alert-pill {
    font-size: 12px;
    padding: 6px 10px;
  }

  .dash-alert-pill span:not(.material-icons-round) {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .dash-kpi-row {
    grid-template-columns: 1fr 1fr;
  }

  .dash-bento {
    padding: 16px;
    gap: 16px;
  }

  .dash-orders-table th:nth-child(4),
  .dash-orders-table td:nth-child(4) {
    display: none;
  }
}

/* Admin Management Pages */
.admin-manage-page {
  min-height: 100vh;
  background: var(--grey-50);
}

.admin-manage-body {
  flex: 1;
  background: var(--grey-50);
  min-height: 0;
  overflow-y: auto;
  position: relative;
}

.admin-manage-appbar {
  padding: 16px 20px;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.admin-manage-appbar h1 {
  font-size: 18px;
  font-weight: 700;
  flex: 1;
}

.admin-manage-appbar .back-btn {
  color: var(--white);
}

.admin-search-bar {
  padding: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.admin-search-bar input {
  width: 100%;
  padding: 10px 16px;
  border: none;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.admin-search-bar input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.admin-list {
  padding: 8px;
}

.admin-load-more-wrap {
  padding: 8px 16px 24px;
}

.admin-load-more-meta {
  text-align: center;
  font-size: 13px;
  color: var(--grey-500);
  margin-bottom: 12px;
}

.admin-list-item {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 8px;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 12px;
  align-items: center;
}

.admin-list-item img {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--grey-100);
}

.admin-list-item-info {
  flex: 1;
}

.admin-list-item-info h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}

.admin-list-item-info p {
  font-size: 12px;
  color: var(--grey-600);
}

.admin-list-actions {
  display: flex;
  gap: 4px;
}

.admin-list-actions button {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-list-actions .edit-btn {
  background: var(--blue-50);
  color: var(--blue-600);
}

.admin-list-actions .delete-btn {
  background: var(--red-50, #FEF2F2);
  color: var(--red-600);
}

.fab {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--blue-600);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 50;
}

.fab .material-icons-round {
  font-size: 28px;
}

/* Status chips */
.status-filters {
  display: flex;
  gap: 8px;
  padding: 12px;
  overflow-x: auto;
}

.status-chip {
  padding: 8px 16px;
  border-radius: var(--radius-xl);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  background: var(--white);
  border: 1px solid var(--grey-200);
  cursor: pointer;
}

.status-chip.active {
  background: var(--blue-600);
  color: var(--white);
  border-color: var(--blue-600);
}

.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-xl);
  font-size: 12px;
  font-weight: 600;
  color: var(--white);
}

/* Admin Form Page */
.admin-form-page {
  padding: 16px;
  padding-bottom: 80px;
}

.admin-form-page .form-group input[type="color"],
.admin-form-page .form-group input[type="file"] {
  padding: 8px;
}

.image-preview-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.image-preview {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
}

.image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-preview .remove-img {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: var(--red-500);
  color: var(--white);
  border-radius: 50%;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-hint {
  font-size: 12px;
  color: var(--grey-500);
  margin: 4px 0 10px;
  line-height: 1.5;
}

.size-editor-row {
  display: grid;
  grid-template-columns: 1fr 110px 36px;
  gap: 8px;
  margin-bottom: 8px;
  align-items: center;
}

.size-editor-row input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--grey-200);
  border-radius: 10px;
  font-size: 14px;
}

.size-remove-btn {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.12);
  color: var(--red-500);
  font-size: 20px;
  cursor: pointer;
}

.size-editor-empty {
  font-size: 13px;
  color: var(--grey-500);
  margin: 0 0 8px;
}

.color-editor-row {
  display: grid;
  grid-template-columns: 44px 1fr 36px;
  gap: 8px;
  margin-bottom: 8px;
  align-items: center;
}

.color-editor-row input[type="color"] {
  width: 44px;
  height: 36px;
  padding: 2px;
  border: 1px solid var(--grey-200);
  border-radius: 10px;
  cursor: pointer;
}

.color-editor-row .color-label-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--grey-200);
  border-radius: 10px;
  font-size: 14px;
}

.order-item-size {
  font-size: 12px;
  color: var(--grey-500);
}

/* Order Detail Modal */
.order-detail-modal {
  padding: 20px;
}

.order-detail-modal h3 {
  font-size: 20px;
  margin-bottom: 16px;
}

.order-detail-section {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--grey-200);
}

.order-detail-section h4 {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.order-item-row {
  display: flex;
  gap: 12px;
  padding: 8px 0;
}

.order-item-row img {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.status-select {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--grey-300);
  border-radius: var(--radius-md);
  margin-top: 8px;
}

/* Categories admin grid */
.admin-categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 8px;
}

.admin-category-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.admin-category-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.admin-category-card .card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: var(--white);
}

.admin-category-card .card-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.admin-category-card .card-actions button {
  flex: 1;
  padding: 6px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
}
