:root {
  --bg: #f5f5f5;
  --surface: #ffffff;
  --line: #e7e7e7;
  --text: #222;
  --muted: #6d6d6d;
  --primary: #000000;
  --primary-hover: #000000;
  --header-grad-start: #000000;
  --header-grad-end: #000000;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Nunito", "Segoe UI", Tahoma, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.container {
  width: min(1220px, 94%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, var(--header-grad-start), var(--header-grad-end));
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.top-strip {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.top-strip-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 0;
  color: #fff;
  font-size: 12px;
}

.nav-row {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 0 16px;
}

.brand {
  margin: 0;
  text-decoration: none;
  color: #fff;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.18);
  padding: 6px;
}

.brand-name {
  line-height: 1;
}

.fake-search input {
  width: 100%;
  border: 0;
  border-radius: 4px;
  padding: 12px 14px;
  outline: none;
  font-size: 14px;
}

.fake-search input::placeholder {
  color: #999;
}

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

.user-nav > a,
.user-nav > form > button {
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  text-decoration: none;
  padding: 9px 11px;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

.cart-link {
  position: relative;
  width: 42px;
  height: 42px;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

.cart-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: #f97316;
  color: #fff;
  border: 2px solid #000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.user-nav form {
  margin: 0;
}

.profile-menu {
  position: relative;
  display: inline-block;
}

.profile-toggle {
  margin: 0;
  list-style: none;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.profile-toggle::-webkit-details-marker {
  display: none;
}

.profile-toggle::marker {
  content: "";
}

.profile-toggle img {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  object-fit: cover;
}

.profile-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 170px;
  border-radius: 10px;
  border: 1px solid #d9dee5;
  background: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
  padding: 8px;
  display: none;
  gap: 6px;
  z-index: 20;
}

.profile-menu[open] .profile-dropdown {
  display: grid;
}

.profile-dropdown form {
  margin: 0;
}

.profile-dropdown a,
.profile-dropdown button {
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: #f3f4f6;
  color: #111827;
  text-decoration: none;
  text-align: left;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  padding: 10px 12px;
  cursor: pointer;
}

.profile-dropdown button:hover,
.profile-dropdown a:hover {
  background: #e5e7eb;
}

.hero {
  margin: 18px 0;
  padding: 20px;
  border: 1px solid #f1d2ca;
  border-radius: 10px;
  background-image: linear-gradient(120deg, #fff, #fff4f1);
}

.eyebrow {
  color: #000000;
  font-weight: 800;
  margin: 0;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.8px;
}

.hero h2 {
  margin: 8px 0;
}

.hero p {
  margin: 0;
  max-width: 820px;
}

.hero-chips {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-chips span {
  background: #fff;
  border: 1px solid #ffd8cf;
  color: #c93f23;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.banner-strip {
  margin: 12px 0 18px;
  position: relative;
}

.banner-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
}

.banner-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  user-select: none;
}

.banner-nav:hover {
  background: rgba(0, 0, 0, 0.38);
}

.banner-nav-prev {
  left: 10px;
}

.banner-nav-next {
  right: 10px;
}

.banner-track::-webkit-scrollbar {
  height: 8px;
}

.banner-track::-webkit-scrollbar-thumb {
  background: #e4e4e4;
  border-radius: 999px;
}

.banner-card {
  scroll-snap-align: start;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #f0f0f0;
  background: var(--surface);
}

.banner-card img {
  width: 100%;
  height: auto;
  display: block;
}

.banner-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}

.banner-dots a {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #ddd;
  display: inline-block;
}

.banner-dots a.is-active {
  background: var(--primary);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 26px;
}

.card {
  border: 1px solid #f0f0f0;
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 18px rgba(0, 0, 0, 0.08);
}

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

.card-media-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.card-body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.card-body h3,
.card-body p {
  margin: 0;
}

.card-body h3 {
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}

.card-title-link {
  color: inherit;
  text-decoration: none;
}

.card-title-link:hover {
  text-decoration: underline;
}

.card-body p {
  color: var(--muted);
  min-height: 38px;
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-body strong {
  margin-top: 2px;
}

.card-body .btn {
  margin-top: auto;
}

.card-actions {
  margin-top: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  gap: 8px;
  align-items: center;
}

.card-cart-form {
  margin: 0;
  display: flex;
}

.btn-icon {
  width: 48px;
  min-width: 48px;
  height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.card-actions .btn {
  margin-top: 0;
}

.card-actions > .btn:not(.btn-icon) {
  width: 100%;
}

.btn {
  border: 0;
  background: var(--primary);
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  font-size: 14px;
  cursor: pointer;
  font-weight: 800;
}

.btn:hover {
  background: var(--primary-hover);
}

.btn-secondary {
  background: #f4f4f4;
  color: #373737;
}

.btn-small {
  padding: 7px 10px;
}

.btn-ghost {
  background: transparent;
  color: #a94438;
  border: 1px solid #efc7c0;
}

.btn-ghost:hover {
  background: #fff4f2;
}

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

.btn-danger:hover {
  background: #b91c1c;
}

.checkout-wrap {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 16px;
  margin: 24px 0;
}

.checkout-product,
.checkout-form,
.payment-box,
.order-status {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  background: var(--surface);
}

.checkout-account,
.checkout-address-preview {
  border: 1px solid #dfe5ec;
  border-radius: 8px;
  padding: 12px;
  background: #f8fafc;
}

.checkout-account strong,
.checkout-account small,
.checkout-address-preview strong,
.checkout-address-preview small {
  display: block;
}

.checkout-address-preview p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.checkout-product img {
  width: 100%;
  border-radius: 8px;
}

.product-slider {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
}

.product-slider-track {
  height: 100%;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.product-slider-track img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  scroll-snap-align: start;
  border-radius: 0;
}

.product-detail-page {
  padding: 24px 0 40px;
}

.product-detail-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 18px;
  align-items: start;
}

.product-detail-gallery,
.product-detail-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 12px 26px rgba(17, 24, 39, 0.05);
}

.product-detail-gallery {
  padding: 16px;
}

.detail-slider {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}

.detail-slider-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}

.detail-slide {
  margin: 0;
  aspect-ratio: 1 / 1;
  scroll-snap-align: start;
}

.detail-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.detail-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.36);
  color: #fff;
  font-size: 26px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.detail-nav-prev {
  left: 12px;
}

.detail-nav-next {
  right: 12px;
}

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

.detail-thumb {
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
}

.detail-thumb.is-active {
  border-color: #111827;
}

.detail-thumb img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.product-detail-info {
  display: grid;
  gap: 16px;
}

.product-detail-card {
  padding: 22px;
}

.product-detail-card h1,
.product-detail-card h3 {
  margin: 0;
}

.product-detail-price {
  display: block;
  margin-top: 12px;
  font-size: 34px;
  line-height: 1.05;
}

.product-detail-description {
  margin: 14px 0 0;
  color: #374151;
  font-size: 16px;
  line-height: 1.6;
}

.product-detail-notes {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #edf1f5;
}

.product-detail-notes p {
  margin: 10px 0 0;
  color: #4b5563;
  line-height: 1.7;
}

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

.product-detail-actions form {
  margin: 0;
}

.product-cart-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.product-cart-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.checkout-form {
  display: grid;
  gap: 8px;
}

.checkout-form input,
.checkout-form textarea,
select {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  width: 100%;
  font: inherit;
}

.checkout-form label {
  font-size: 14px;
  color: #575757;
  margin-top: 4px;
}

.shipping-options {
  border: 1px solid #dfe7f1;
  border-radius: 10px;
  padding: 10px;
  background: #fbfdff;
}

.shipping-options-status {
  color: #475569;
  font-size: 13px;
  margin-bottom: 8px;
}

.shipping-options-list {
  display: grid;
  gap: 8px;
}

.shipping-contact-card {
  margin-top: 10px;
  padding: 0;
}

.shipping-contact-btn {
  width: 100%;
  justify-content: center;
  text-align: center;
  background: #1d9b54;
  color: #ffffff;
  border: 1px solid #1d9b54;
}

.shipping-contact-btn:hover {
  background: #168347;
}

.shipping-contact-btn.is-disabled,
.shipping-contact-btn[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.55;
}

.shipping-group {
  display: grid;
  gap: 6px;
}

.shipping-group-title {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

.shipping-group-collapse > summary {
  cursor: pointer;
  list-style: none;
}

.shipping-group-collapse > summary::-webkit-details-marker {
  display: none;
}

.shipping-group-collapse > summary::after {
  content: " \25be";
  font-size: 10px;
}

.shipping-group-collapse[open] > summary::after {
  content: " \25b4";
}

.shipping-group-collapse .shipping-group-list {
  margin-top: 6px;
}

.shipping-group-list {
  display: grid;
  gap: 8px;
}

.shipping-option {
  display: grid;
  grid-template-columns: auto 36px 1fr auto;
  gap: 8px;
  align-items: center;
  border: 1px solid #dbe5f0;
  border-radius: 10px;
  padding: 10px;
  background: #fff;
}

.shipping-option input[type="radio"] {
  width: 16px;
  height: 16px;
}

.shipping-option-logo {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  object-fit: contain;
  background: #fff;
  padding: 2px;
}

.shipping-option-meta {
  display: grid;
  gap: 2px;
}

.shipping-option-meta strong {
  font-size: 13px;
}

.shipping-option-meta small {
  color: #6b7280;
}

.payment-box,
.order-status {
  margin-top: 24px;
}

.actions {
  margin-top: 12px;
}

.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 20px;
  background: #fff1ed;
  border: 1px solid #ffd8cf;
  color: #bc3b21;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* Status-specific badge colors */
.badge-paid {
  background: #e8f5e9;
  border-color: #c8e6c9;
  color: #2e7d32;
}

.badge-failed {
  background: #ffebee;
  border-color: #ffcdd2;
  color: #c62828;
}

.badge-pending {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border-color: #fdba74;
  color: #c2410c;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.badge-shipping-belum_dibayar {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-color: #93c5fd;
  color: #1d4ed8;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.badge-shipping-dikemas {
  background: #e3f2fd;
  border-color: #90caf9;
  color: #1565c0;
}

.badge-shipping-proses_kirim {
  background: #eef2ff;
  border-color: #c7d2fe;
  color: #3730a3;
}

.badge-shipping-sudah_sampai {
  background: #e8f5e9;
  border-color: #c8e6c9;
  color: #2e7d32;
}

.badge-shipping-ditolak {
  background: #ffebee;
  border-color: #ffcdd2;
  color: #c62828;
}

/* Sync box */
.sync-box {
  margin: 14px 0;
  padding: 14px;
  border: 1px solid #ffe082;
  border-radius: 10px;
  background: #fffde7;
}

.sync-info {
  margin: 0 0 10px;
  font-size: 14px;
  color: #5d4037;
}

.btn-sync {
  background: #f57c00;
  color: #fff;
  border: 0;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-sync:hover {
  background: #e65100;
}

.btn-sync:disabled {
  background: #bbb;
  cursor: not-allowed;
}

.report-wrap {
  margin: 16px 0 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
}

.report-wrap h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.report-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  background: #fff;
}

.report-card-strong {
  border-color: #ffd8cf;
  background: #fff6f4;
}

.report-title {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 6px;
}

.report-value {
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 0.2px;
}

.report-meta {
  color: var(--muted);
  font-size: 12px;
  margin-top: 6px;
}

.report-footnote {
  margin-top: 10px;
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1100px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  text-align: left;
  padding: 12px 10px;
  vertical-align: top;
  font-size: 14px;
}

th {
  background: #fff6f4;
  color: #9b3824;
}

.inline-form {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* ── Checkout summary ──────────────────────────────────────────────── */
.checkout-summary {
  margin-top: 12px;
  border: 1px solid #e3f2fd;
  border-radius: 10px;
  padding: 14px;
  background: #f8fbff;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 14px;
}

.summary-row small {
  color: var(--muted);
}

.summary-total {
  border-top: 2px solid var(--primary);
  margin-top: 6px;
  padding-top: 10px;
  font-size: 16px;
}

.summary-total strong {
  color: var(--primary);
  font-size: 18px;
}

/* ── Order cost breakdown ──────────────────────────────────────────── */
.order-cost-breakdown {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  margin: 8px 0;
  background: #fafafa;
}

.order-cost-breakdown p {
  margin: 4px 0;
}

.total-highlight {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
}

/* ── Helpers ───────────────────────────────────────────────────────── */
.text-muted {
  color: var(--muted);
}

/* ── Footer ────────────────────────────────────────────────────────── */
.site-footer {
  margin-top: 28px;
  border-top: 1px solid #ebebeb;
  padding: 16px 0;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 768px) {
  .top-strip {
    display: none;
  }

  .nav-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px 0;
  }

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

  .brand {
    font-size: 26px;
  }

  .brand-logo {
    width: 32px;
    height: 32px;
  }

  .hero {
    padding: 14px;
  }

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

  .banner-nav {
    width: 38px;
    height: 38px;
    font-size: 24px;
  }

  .card-body {
    padding: 8px;
  }

  .card-actions {
    grid-template-columns: minmax(0, 1fr) 44px;
  }

  .btn-icon {
    width: 44px;
    min-width: 44px;
  }

  .card-body h3 {
    font-size: 14px;
    line-height: 1.3;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .checkout-wrap {
    grid-template-columns: 1fr;
    gap: 12px;
  }

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

  .account-head,
  .account-order {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .account-head {
    flex-direction: column;
  }

  .account-grid,
  .account-two {
    grid-template-columns: 1fr;
  }

  .inline-form {
    flex-direction: column;
    align-items: stretch;
  }

}

/* Admin */
.admin-body,
.admin-login-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(255, 214, 153, 0.32), transparent 28%),
    linear-gradient(180deg, #f7f4ef 0%, #eef2f6 55%, #f8fafc 100%);
}

.admin-body {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
}

.admin-mobile-toggle,
.admin-sidebar-backdrop {
  display: none;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px 22px;
  background: linear-gradient(180deg, #0f172a 0%, #162033 100%);
  color: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 26px;
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.06);
}

.admin-brand,
.admin-login-brand {
  color: inherit;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-brand strong,
.admin-login-brand {
  font-weight: 900;
}

.admin-brand small {
  display: block;
  color: rgba(226, 232, 240, 0.7);
  font-size: 12px;
}

.admin-brand img,
.admin-login-brand img {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #fff;
  padding: 6px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.28);
}

.admin-nav {
  display: grid;
  gap: 10px;
}

.admin-nav a,
.admin-logout button {
  width: 100%;
  border: 0;
  border-radius: 18px;
  padding: 14px 16px;
  color: #dbe4f0;
  background: rgba(255, 255, 255, 0.04);
  text-align: left;
  text-decoration: none;
  font: inherit;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.admin-nav a span,
.admin-nav a small {
  display: block;
}

.admin-nav a span {
  font-weight: 900;
}

.admin-nav a small {
  margin-top: 4px;
  color: rgba(219, 228, 240, 0.72);
}

.admin-nav a:hover,
.admin-nav a.is-active,
.admin-logout button:hover {
  background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(249, 115, 22, 0.22);
}

.admin-nav a:hover small,
.admin-nav a.is-active small {
  color: rgba(255, 255, 255, 0.88);
}

.admin-sidebar-foot {
  margin-top: auto;
  display: grid;
  gap: 12px;
}

.admin-sidebar-note {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
}

.admin-sidebar-note span,
.admin-sidebar-note strong {
  display: block;
}

.admin-sidebar-note span {
  color: rgba(219, 228, 240, 0.7);
  font-size: 12px;
  margin-bottom: 4px;
}

.admin-sidebar-note strong {
  font-size: 14px;
  word-break: break-word;
}

.admin-main {
  width: 100%;
  padding: 28px;
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.admin-topbar h1,
.admin-panel h2,
.admin-login-panel h1,
.admin-hero h2 {
  margin: 0;
  line-height: 1.08;
}

.admin-kicker {
  margin: 0 0 8px;
  color: #a16207;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-lead {
  margin: 10px 0 0;
  max-width: 680px;
  color: #526070;
}

.admin-profile,
.admin-hero,
.admin-stat,
.admin-panel,
.admin-login-panel {
  border: 1px solid rgba(222, 229, 236, 0.9);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(10px);
}

.admin-profile {
  min-width: 220px;
  padding: 14px 16px;
}

.admin-profile span,
.admin-profile strong {
  display: block;
}

.admin-profile span {
  color: #667386;
  font-size: 12px;
  margin-bottom: 4px;
}

.admin-hero {
  padding: 24px;
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 247, 237, 0.96)),
    #fff;
}

.admin-hero-copy p {
  margin: 10px 0 0;
  max-width: 560px;
  color: #526070;
}

.admin-hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: #fff1d6;
  color: #b45309;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.admin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  border: 0;
  text-decoration: none;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.admin-btn:hover,
.admin-inline-form button:hover,
.admin-login-form button:hover {
  transform: translateY(-1px);
}

.admin-btn-primary,
.admin-inline-form button,
.admin-login-form button {
  background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
  color: #fff;
  box-shadow: 0 18px 32px rgba(17, 24, 39, 0.16);
}

.admin-btn-secondary {
  border: 1px solid #d7dee7;
  background: #fff;
  color: #111827;
}

.admin-text-link,
.admin-mini-link {
  color: #111827;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.admin-stats,
.admin-overview-grid,
.admin-content-grid {
  display: grid;
  gap: 16px;
}

.admin-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}

.admin-overview-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 18px;
}

.admin-content-grid {
  grid-template-columns: 1.1fr 0.9fr;
}

.admin-stat {
  padding: 20px;
  display: grid;
  gap: 8px;
}

.admin-stat span,
.admin-stat small,
.admin-panel-head p,
.admin-table small,
.admin-list-card small,
.admin-product-item small {
  color: #667386;
}

.admin-stat strong {
  font-size: 26px;
  line-height: 1.05;
}

.admin-stat-strong {
  border-color: rgba(17, 24, 39, 0.94);
  background: linear-gradient(160deg, #111827 0%, #1f2937 100%);
  color: #fff;
}

.admin-stat-strong span,
.admin-stat-strong small {
  color: #e5e7eb;
}

.admin-panel {
  overflow: hidden;
}

.admin-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 20px 22px;
  border-bottom: 1px solid #edf1f5;
}

.admin-panel-head p {
  margin: 6px 0 0;
}

.admin-metric-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 22px;
}

.admin-metric-list div {
  border: 1px solid #edf1f5;
  border-radius: 18px;
  padding: 16px;
  background: #fbfcfe;
}

.admin-metric-list span,
.admin-metric-list strong {
  display: block;
}

.admin-metric-list span {
  color: #667386;
  font-size: 13px;
  margin-bottom: 6px;
}

.admin-metric-list strong {
  font-size: 28px;
  line-height: 1;
}

.admin-list-card-wrap {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.admin-list-card {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border: 1px solid #edf1f5;
  border-radius: 18px;
  padding: 16px;
  background: #fbfcfe;
}

.admin-list-card strong,
.admin-list-card small {
  display: block;
}

.admin-empty,
.admin-empty-state {
  text-align: center;
  color: #667386;
}

.admin-empty-state {
  padding: 24px;
}

.admin-empty {
  padding: 28px !important;
}

.admin-feedback {
  margin-bottom: 18px;
  border-radius: 18px;
  padding: 14px 16px;
  font-weight: 800;
}

.admin-feedback-success {
  border: 1px solid #86efac;
  background: #dcfce7;
  color: #166534;
}

.admin-feedback-error {
  border: 1px solid #fca5a5;
  background: #fee2e2;
  color: #991b1b;
}

.admin-product-panel {
  margin-bottom: 18px;
}

.admin-products-layout {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin-bottom: 18px;
}

.admin-products-layout .admin-panel {
  margin-bottom: 0;
}

.admin-products-list-panel .admin-panel-head {
  border-bottom: 1px solid #edf1f5;
}

.admin-product-form {
  padding: 22px;
  display: grid;
  gap: 14px;
}

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

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

.admin-product-form label,
.admin-form-wide {
  display: grid;
  gap: 7px;
  color: #435064;
  font-weight: 800;
  font-size: 13px;
}

.admin-product-form input,
.admin-product-form textarea,
.admin-product-form select,
.admin-inline-form input,
.admin-inline-form select,
.admin-login-form input {
  min-width: 0;
  border: 1px solid #d7dee7;
  border-radius: 14px;
  padding: 12px 14px;
  width: 100%;
  font: inherit;
  background: #fff;
}

.admin-product-form input:focus,
.admin-product-form textarea:focus,
.admin-product-form select:focus,
.admin-inline-form input:focus,
.admin-inline-form select:focus,
.admin-login-form input:focus {
  outline: none;
  border-color: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

.admin-product-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 22px;
}

.admin-product-list-compact {
  padding-top: 18px;
}

.admin-product-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  border: 1px solid #edf1f5;
  border-radius: 22px;
  padding: 16px 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
}

.admin-product-row-main {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-width: 0;
  flex: 1;
}

.admin-product-thumb {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid #e6ebf1;
}

.admin-product-row-content {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.admin-product-row-top {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 12px;
  align-items: flex-start;
}

.admin-product-card-meta {
  min-width: 0;
}

.admin-product-card-meta strong,
.admin-product-card-meta small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-product-card-meta small {
  margin-top: 4px;
  color: #667386;
}

.admin-product-price {
  font-size: 20px;
  line-height: 1.1;
  color: #111827;
  white-space: nowrap;
}

.admin-product-row-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-product-row-stats span,
.admin-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
}

.admin-status-pill.is-active {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #047857;
}

.admin-status-pill.is-draft {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #c2410c;
}

.admin-product-row-desc {
  margin: 0;
  color: #526070;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.admin-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #526070;
  font-size: 13px;
}

.admin-check input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
}

.admin-product-actions,
.admin-product-delete {
  display: flex;
}

.admin-product-row-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}

.admin-product-row-actions .admin-btn {
  min-width: 104px;
}

.admin-product-actions .admin-btn,
.admin-product-delete .admin-btn {
  width: 100%;
}

.admin-product-delete {
  margin-top: auto;
}

.admin-btn-danger {
  background: #fff1f2;
  color: #be123c;
  border: 1px solid #fecdd3;
}

.admin-edit-layout {
  display: grid;
  grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.admin-edit-summary-body {
  padding: 22px;
  display: grid;
  gap: 18px;
}

.admin-edit-hero {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid #e6ebf1;
}

.admin-edit-summary-copy {
  display: grid;
  gap: 12px;
}

.admin-edit-summary-copy h2,
.admin-edit-summary-copy p,
.admin-gallery-strip {
  margin: 0;
}

.admin-gallery-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(86px, 1fr));
  gap: 10px;
}

.admin-gallery-strip img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid #e6ebf1;
  background: #fff;
}

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

.admin-product-item {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 14px;
  align-items: center;
  border: 1px solid #edf1f5;
  border-radius: 20px;
  padding: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
}

.admin-product-item img {
  width: 78px;
  height: 78px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid #e6ebf1;
}

.admin-product-item strong,
.admin-product-item small {
  display: block;
}

.admin-product-item small {
  margin-top: 4px;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  min-width: 1220px;
  border-collapse: separate;
  border-spacing: 0;
}

.admin-table th {
  background: #f8fafc;
  color: #364152;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid #edf1f5;
  padding: 16px;
  vertical-align: top;
}

.admin-table td {
  background: rgba(255, 255, 255, 0.92);
}

.admin-table td > strong,
.admin-table td > small,
.admin-table td > .badge {
  display: block;
  margin-bottom: 6px;
}

.admin-order-code {
  font-weight: 900;
  color: #111827;
  margin-bottom: 4px;
}

.admin-order-thumb {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  border: 1px solid #e6ebf1;
  object-fit: cover;
  background: #f8fafc;
}

.admin-inline-form {
  display: grid;
  gap: 8px;
  min-width: 170px;
}

.admin-inline-form button,
.admin-login-form button {
  border: 0;
  border-radius: 14px;
  padding: 11px 12px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.admin-inline-form button:disabled,
.admin-inline-form select:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.admin-icon-btn {
  width: 38px;
  height: 38px;
  border: 1px solid #d7dee7;
  border-radius: 12px;
  background: #fff;
  color: #111827;
  font-size: 18px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.admin-icon-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.admin-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1000;
  display: none;
  max-width: min(360px, calc(100vw - 32px));
  border-radius: 18px;
  padding: 14px 16px;
  font-weight: 900;
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.18);
}

.admin-toast.is-visible {
  display: block;
}

.admin-toast.is-success {
  color: #166534;
  background: #dcfce7;
  border: 1px solid #86efac;
}

.admin-toast.is-warning {
  color: #92400e;
  background: #fef3c7;
  border: 1px solid #fcd34d;
}

.admin-toast.is-error {
  color: #991b1b;
  background: #fee2e2;
  border: 1px solid #fca5a5;
}

.admin-login-body {
  display: grid;
  place-items: center;
  padding: 20px;
}

.admin-login-shell {
  width: min(100%, 430px);
}

.admin-login-panel {
  padding: 28px;
  display: grid;
  gap: 20px;
}

.admin-login-brand {
  color: #111827;
}

.admin-login-form {
  display: grid;
  gap: 10px;
}

.admin-login-form label {
  color: #435064;
  font-weight: 800;
  font-size: 14px;
}

.admin-login-form button {
  min-height: 46px;
  margin-top: 8px;
}

.admin-login-error {
  border: 1px solid #fca5a5;
  border-radius: 14px;
  background: #fee2e2;
  color: #991b1b;
  padding: 10px 12px;
  font-weight: 800;
}

.auth-shell {
  min-height: 68vh;
  display: grid;
  place-items: center;
  padding: 28px 0;
}

.auth-panel,
.account-card {
  border: 1px solid #dfe5ec;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(17, 24, 39, 0.05);
}

.auth-panel {
  width: min(100%, 460px);
  padding: 24px;
}

.auth-panel h2,
.account-page h2,
.account-card h3 {
  margin: 0;
}

.auth-copy {
  margin: 8px 0 18px;
  color: var(--muted);
}

.auth-form,
.account-form {
  display: grid;
  gap: 9px;
}

.auth-form label,
.account-form label {
  color: #435064;
  font-weight: 800;
  font-size: 14px;
}

.auth-form input,
.account-form input,
.account-form textarea,
.account-form select {
  border: 1px solid #d7dee7;
  border-radius: 8px;
  padding: 10px;
  width: 100%;
  font: inherit;
}

.avatar-upload-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: center;
}

.avatar-upload-row input[type="file"] {
  width: 100%;
  padding: 8px;
  border: 1px solid #d7dee7;
  border-radius: 8px;
  background: #f8fafc;
}

.avatar-preview {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  object-fit: cover;
}

.auth-error,
.auth-success {
  border-radius: 8px;
  padding: 10px 12px;
  font-weight: 800;
  margin-bottom: 14px;
}

.auth-error {
  border: 1px solid #fca5a5;
  background: #fee2e2;
  color: #991b1b;
}

.auth-success {
  border: 1px solid #86efac;
  background: #dcfce7;
  color: #166534;
}

.auth-switch {
  margin: 16px 0 0;
  color: var(--muted);
}

.auth-switch a {
  color: #111827;
  font-weight: 900;
}

.account-page {
  padding: 28px 0 40px;
}

.cart-page {
  padding: 28px 0 40px;
}

.cart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.cart-subtitle {
  margin: 10px 0 0;
  color: var(--muted);
  max-width: 620px;
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
  align-items: start;
}

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

.cart-item,
.cart-summary-card {
  border: 1px solid #dfe5ec;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(17, 24, 39, 0.05);
}

.cart-item {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
}

.cart-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #edf1f5;
}

.cart-item-body,
.cart-summary-card {
  display: grid;
  gap: 14px;
}

.cart-item-top,
.cart-item-bottom,
.cart-actions {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.cart-item-top p,
.cart-summary-card p {
  margin: 6px 0 0;
}

.cart-price,
.cart-line-total {
  min-width: 150px;
  text-align: right;
}

.cart-price span,
.cart-line-total span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 4px;
}

.cart-qty-form {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.cart-qty-label {
  color: #435064;
  font-weight: 800;
  font-size: 14px;
  width: 100%;
}

.cart-qty-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cart-qty-btn {
  min-width: 40px;
  padding: 8px 12px;
}

.cart-qty-value {
  min-width: 44px;
  text-align: center;
  border: 1px solid #d7dee7;
  border-radius: 8px;
  padding: 8px 10px;
  font-weight: 800;
  color: #14212f;
}

.cart-summary-card {
  padding: 20px;
  position: sticky;
  top: 110px;
}

.cart-summary-card h3 {
  margin: 0;
}

.account-shell {
  display: grid;
  gap: 18px;
}

.account-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.account-subtitle {
  margin: 10px 0 0;
  color: var(--muted);
  max-width: 620px;
}

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

.account-mini-card {
  border: 1px solid #e6edf5;
  border-radius: 16px;
  padding: 16px 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);
}

.account-mini-card small,
.account-mini-card span {
  display: block;
  color: var(--muted);
}

.account-mini-card strong {
  display: block;
  margin: 6px 0 4px;
  font-size: 24px;
}

.account-layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.account-sidebar,
.account-main {
  display: grid;
  gap: 16px;
}

.account-menu {
  display: grid;
  gap: 10px;
}

.account-menu-link {
  text-decoration: none;
  color: #0f172a;
  font-weight: 800;
  border: 1px solid #dbe4ee;
  border-radius: 10px;
  padding: 12px 14px;
  background: #f8fafc;
}

.account-menu-link:hover {
  background: #eef2f7;
}

.account-menu-link.is-active {
  border-color: #c1d0e2;
  background: #e8f0f9;
}

.account-logout {
  width: 100%;
  margin-top: 4px;
}

.account-card {
  padding: 20px;
  margin-bottom: 0;
}

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

.account-kicker {
  margin: 0 0 4px;
  color: #7b8796;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-orders-lead {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.account-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.account-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  color: #334155;
}

.account-check input {
  width: auto;
  margin: 0;
}

.address-list,
.account-orders {
  display: grid;
  gap: 12px;
}

.address-item {
  border: 1px solid #e7edf4;
  border-radius: 14px;
  padding: 16px;
  background: #fbfcfe;
}

.address-item.is-primary {
  border-color: #cfddee;
  background: linear-gradient(180deg, #ffffff 0%, #f5f9fd 100%);
}

.address-item-head,
.account-order-top,
.account-order-main,
.account-order-actions,
.address-title-row,
.address-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.address-item strong,
.address-item span,
.address-item small {
  display: block;
}

.address-item small {
  color: var(--muted);
}

.address-actions {
  justify-content: flex-end;
}

.address-actions form {
  margin: 0;
}

.badge-primary {
  background: #eaf3ff;
  border-color: #bfd7ff;
  color: #2457a6;
}

.account-order-card {
  border: 1px solid #dbe4ee;
  border-radius: 18px;
  padding: 18px;
  background: #fff;
  display: grid;
  gap: 16px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.account-order-top small,
.account-order-meta small,
.order-product small {
  display: block;
  color: var(--muted);
}

.order-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.account-order-id strong {
  font-size: 23px;
  line-height: 1.1;
}

.account-order-main {
  align-items: center;
  padding: 14px;
  border: 1px solid #e8eef5;
  border-radius: 14px;
  background: #fafcff;
}

.account-order-quick {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid #e8eef5;
  border-radius: 12px;
  background: #fff;
}

.order-product-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1;
}

.account-order-thumb {
  width: 80px;
  height: 80px;
  border-radius: 14px;
  border: 1px solid #dce5ef;
  object-fit: cover;
  background: #fff;
  flex-shrink: 0;
}

.order-product {
  min-width: 0;
}

.order-product strong {
  display: block;
  font-size: 17px;
  line-height: 1.25;
  margin-bottom: 4px;
}

.account-order-actions {
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}

.account-order-actions .btn {
  white-space: nowrap;
}

.account-order-actions form {
  margin: 0;
}

.cancel-order-box {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #fecaca;
  border-radius: 12px;
  background: #fff5f5;
}

.cancel-order-box form {
  display: grid;
  gap: 10px;
}

.cancel-order-box select,
.cancel-order-box input {
  border: 1px solid #f1b5b5;
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
}

.cancel-order-box .cancel-reason-other {
  display: none;
}

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

.account-order-details {
  border: 1px solid #e8eef5;
  border-radius: 12px;
  background: #fcfdff;
  overflow: hidden;
}

.account-order-details summary {
  list-style: none;
  cursor: pointer;
  font-weight: 800;
  color: #14212f;
  padding: 12px 14px;
  user-select: none;
}

.account-order-details summary::-webkit-details-marker {
  display: none;
}

.account-order-details[open] summary {
  border-bottom: 1px solid #e8eef5;
}

.account-order-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 12px 14px;
}

.order-label {
  display: block;
  margin-bottom: 4px;
  color: #7b8796;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.order-total {
  text-align: right;
  min-width: 180px;
}

.order-total strong {
  font-size: 27px;
  line-height: 1.1;
}

.account-order-address {
  padding: 0 14px 14px;
}

.account-order-address p,
.account-empty p {
  margin: 0;
}

.order-notes {
  margin-top: 10px !important;
  color: #4b5563;
}

.account-empty {
  border: 1px dashed #d9e1ea;
  border-radius: 14px;
  padding: 18px;
  background: #fbfcfe;
}

.account-empty strong {
  display: block;
  margin-bottom: 6px;
}

.text-link {
  color: #111827;
  font-weight: 800;
  text-decoration: none;
}

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

.account-tracking-card {
  margin: 0;
  border-color: #dbe4ee;
  border-radius: 12px;
  background: #f8fbff;
}

.account-tracking-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.tracking-message,
.tracking-last {
  font-size: 14px;
  color: #334155;
}

.tracking-message {
  font-weight: 700;
}

.tracking-last {
  margin-top: 8px;
}

.tracking-manifest {
  margin: 8px 0 0;
  padding-left: 18px;
  color: #1f2937;
}

.tracking-live-wrap {
  margin: 10px 0 0;
  font-size: 13px;
  color: #64748b;
}

.tracking-live-link {
  color: #0f172a;
  font-weight: 800;
  text-decoration: none;
}

.tracking-live-link:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .admin-body {
    grid-template-columns: 1fr;
  }

  .admin-mobile-toggle {
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 1200;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 16px;
    background: #111827;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.24);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
  }

  .admin-mobile-toggle span {
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: #fff;
    display: block;
  }

  .admin-sidebar-backdrop.is-visible {
    position: fixed;
    inset: 0;
    z-index: 1090;
    display: block;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
  }

  .admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1100;
    width: min(86vw, 320px);
    height: 100vh;
    padding: 22px 18px;
    gap: 16px;
    transform: translateX(-102%);
    transition: transform 0.24s ease;
  }

  .admin-sidebar.is-open {
    transform: translateX(0);
  }

  .admin-main {
    padding: 76px 16px 16px;
  }

  .admin-topbar {
    padding-left: 48px;
  }

  .admin-topbar {
    flex-direction: column;
  }

  .admin-profile {
    width: 100%;
    min-width: 0;
  }

  .admin-stats,
  .admin-overview-grid,
  .admin-content-grid,
  .admin-form-grid,
  .admin-products-layout,
  .admin-edit-layout {
    grid-template-columns: 1fr;
  }

  .admin-form-grid-files {
    grid-template-columns: 1fr;
  }

  .admin-panel-head {
    padding: 14px;
  }

  .admin-metric-list,
  .admin-product-list,
  .admin-list-card-wrap,
  .admin-product-form {
    padding: 16px;
  }

  .admin-hero {
    padding: 18px;
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-hero-actions {
    width: 100%;
    justify-content: stretch;
  }

  .admin-btn {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .admin-list-card,
  .admin-product-item,
  .admin-product-row-main {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .admin-product-thumb,
  .admin-product-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .admin-list-card {
    display: grid;
  }

  .admin-product-row-actions,
  .admin-edit-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-product-row {
    grid-template-columns: 1fr;
  }

  .admin-product-row-top {
    grid-template-columns: 1fr;
  }

  .admin-product-row-actions .admin-btn {
    min-width: 0;
  }

  .admin-table {
    min-width: 100%;
  }

  .admin-table thead {
    display: none;
  }

  .admin-table,
  .admin-table tbody,
  .admin-table tr,
  .admin-table td {
    display: block;
    width: 100%;
  }

  .admin-table tr {
    padding: 16px;
    border-bottom: 1px solid #edf1f5;
    background: rgba(255, 255, 255, 0.92);
  }

  .admin-table td {
    border: 0;
    padding: 0 0 14px;
  }

  .admin-table td:last-child {
    padding-bottom: 0;
  }

  .admin-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 6px;
    color: #8b98a9;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .admin-inline-form {
    min-width: 0;
  }

  .account-summary,
  .account-layout,
  .account-order-meta,
  .account-order-quick {
    grid-template-columns: 1fr;
  }

  .account-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .cart-head,
  .account-grid,
  .account-two,
  .account-order,
  .account-order-main {
    grid-template-columns: 1fr;
  }

  .address-item-head,
  .account-order-top,
  .account-order-main,
  .account-order-actions,
  .account-tracking-head,
  .cart-item,
  .cart-item-top,
  .cart-item-bottom,
  .cart-actions,
  .address-title-row,
  .address-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .cart-layout,
  .order-badges,
  .order-total,
  .address-actions {
    justify-content: flex-start;
    text-align: left;
  }

  .order-product-wrap {
    width: 100%;
  }

  .order-total {
    min-width: 0;
  }

  .order-total strong,
  .order-product strong,
  .account-order-id strong {
    font-size: 18px;
  }

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

  .cart-price,
  .cart-line-total {
    text-align: left;
    min-width: 0;
  }

  .cart-summary-card {
    position: static;
  }

  .avatar-upload-row {
    grid-template-columns: 1fr;
    justify-items: start;
  }
}
