﻿:root {
  /* Semua aksen utama wajib memakai variable tema ini agar bisa diganti dari halaman admin. */
  --accent: #03ac0e;
  --accent-bright: #22c55e;
  --accent-strong: #16a34a;
  --accent-dark: #02910b;
  --accent-deep: #15803d;
  --accent-ink: #166534;
  --accent-soft: #eaf8ec;
  --accent-line: #bbf7d0;
  --accent-line-strong: #86efac;
  --accent-glow: #dcfce7;
  --accent-rgb: 3, 172, 14;
  --accent-focus: rgba(var(--accent-rgb), 0.14);
  --accent-focus-soft: rgba(var(--accent-rgb), 0.1);
  --accent-shadow-soft: rgba(var(--accent-rgb), 0.08);
  --accent-shadow-medium: rgba(var(--accent-rgb), 0.1);
  --accent-shadow-strong: rgba(var(--accent-rgb), 0.12);
  --green: var(--accent);
  --green-dark: var(--accent-dark);
  --green-soft: var(--accent-soft);
  --orange: #ee4d2d;
  --text: #31353b;
  --muted: #6d7588;
  --line: #e5e7eb;
  --surface: #ffffff;
  --page: #f5f5f5;
  --control-border: #d5dde3;
  --control-border-strong: #b8c6cf;
  --control-surface: #ffffff;
  --control-surface-soft: #f8fbf9;
  --control-focus: var(--accent-focus);
  --feedback-success-bg: var(--accent-soft);
  --feedback-success-border: var(--accent-line);
  --feedback-success-text: var(--accent-ink);
  --control-shadow: 0 10px 22px rgba(49, 53, 59, 0.08);
  --shadow: 0 1px 6px rgba(49, 53, 59, 0.12);
  --shadow-strong: 0 8px 24px rgba(49, 53, 59, 0.12);
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --font-main: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--page);
  color: var(--text);
  font-family: var(--font-main);
}

body {
  overflow-x: hidden;
}

.top-strip {
  background: var(--accent-soft);
  border-bottom: 1px solid var(--accent-line);
  color: var(--muted);
  font-size: 0.82rem;
}

.top-strip-inner,
.main-header-inner,
.sub-header-inner,
.page-shell {
  width: min(1360px, calc(100% - 32px));
  margin: 0 auto;
}

.top-strip-inner,
.sub-header-inner {
  display: flex;
  gap: 18px;
  align-items: center;
  min-height: 36px;
}

.top-strip-link {
  color: #5f6f83;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  transition: color 0.16s ease;
}

.top-strip-link:hover {
  color: var(--green-dark);
}

.main-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(49, 53, 59, 0.08);
  transition: box-shadow 0.2s ease, background 0.2s ease;
}

.main-header-inner {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 420px;
  gap: 20px;
  align-items: center;
  min-height: 74px;
  transition: gap 0.2s ease, min-height 0.2s ease, padding 0.2s ease;
}

.brand-lockup {
  display: flex;
  align-items: center;
  min-width: 0;
}

.brand-logo-image {
  display: block;
  width: min(220px, 100%);
  max-width: 100%;
  height: auto;
  max-height: 54px;
  object-fit: contain;
  transition: max-height 0.2s ease, width 0.2s ease, transform 0.2s ease;
}

.header-search-shell {
  position: relative;
  min-width: 0;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 0 16px;
  border: 2px solid #d6d9dd;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(49, 53, 59, 0.08);
}

.header-search:focus-within {
  border-color: var(--accent-line-strong);
  box-shadow: 0 0 0 4px var(--accent-focus-soft), 0 14px 28px rgba(49, 53, 59, 0.1);
}

.header-search-icon,
.search-prediction-icon {
  position: relative;
  display: inline-block;
  border: 2px solid #7f8ba0;
  border-radius: 999px;
  flex: 0 0 auto;
}

.header-search-icon {
  width: 22px;
  height: 22px;
}

.header-search-icon::after,
.search-prediction-icon::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 8px;
  height: 2px;
  border-radius: 999px;
  background: #7f8ba0;
  transform: rotate(45deg);
}

.header-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  padding: 0;
  color: var(--text);
  font-size: 0.96rem;
}

.search-predictions {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 35;
  padding: 10px;
  border: 1px solid #e4eaee;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 50px rgba(49, 53, 59, 0.16);
  backdrop-filter: blur(10px);
  max-height: min(420px, calc(100vh - 140px));
  overflow-y: auto;
}

.search-prediction-button,
.search-prediction-empty {
  width: 100%;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 12px 10px;
  border-radius: 16px;
}

.search-prediction-button {
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.search-prediction-button:hover {
  background: color-mix(in srgb, var(--accent-soft) 72%, white);
}

.search-prediction-icon {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.search-prediction-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.search-prediction-title {
  color: #222f3e;
  font-size: 0.98rem;
  line-height: 1.35;
}

.search-prediction-title strong,
.search-prediction-meta strong {
  color: #0f172a;
  font-weight: 800;
}

.search-prediction-meta {
  color: #728094;
  font-size: 0.78rem;
  line-height: 1.45;
}

.search-prediction-empty strong {
  display: block;
  color: #223042;
  font-size: 0.92rem;
}

.search-prediction-empty p {
  margin: 4px 0 0;
  color: #728094;
  font-size: 0.78rem;
  line-height: 1.5;
}

.header-actions,
.toolbar-pills,
.auth-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.header-pill,
.toolbar-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #dfe3e7;
  background: #fff;
  color: var(--muted);
  font-size: 0.82rem;
}

.header-button {
  min-height: 36px;
}

.header-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.auth-user-actions .header-button {
  gap: 8px;
}

.auth-user-actions .header-button::before {
  content: "";
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.92;
}

.auth-user-actions #open-chat-page::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f6f2d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.38 8.38 0 0 1-.9 3.8A8.5 8.5 0 0 1 12.5 20a8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.8-7.6A8.38 8.38 0 0 1 12.5 3h.5A8.48 8.48 0 0 1 21 11.5z'/%3E%3C/svg%3E");
}

.auth-user-actions #open-wishlist-page::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f6f2d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20.5s-7-4.35-7-10.02C5 7.46 7.02 5.5 9.7 5.5c1.54 0 2.72.76 3.3 1.84.58-1.08 1.76-1.84 3.3-1.84C18.98 5.5 21 7.46 21 10.48 21 16.15 12 20.5 12 20.5z'/%3E%3C/svg%3E");
}

.auth-user-actions #open-orders-page::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f6f2d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='4' width='12' height='16' rx='2'/%3E%3Cpath d='M9 9h6M9 13h6M9 17h4'/%3E%3C/svg%3E");
}

.auth-user-actions #open-admin-page::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f6f2d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='4' width='7' height='7' rx='1.5'/%3E%3Crect x='13' y='4' width='7' height='7' rx='1.5'/%3E%3Crect x='4' y='13' width='7' height='7' rx='1.5'/%3E%3Crect x='13' y='13' width='7' height='7' rx='1.5'/%3E%3C/svg%3E");
}

.auth-user-actions #logout-button::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f6f2d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3Cpath d='M16 17l5-5-5-5'/%3E%3Cpath d='M21 12H9'/%3E%3C/svg%3E");
}

.buyer-chat-page .orders-page-header .header-link-button,
.buyer-chat-page #chat-logout-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.buyer-chat-page .orders-page-header .header-link-button::before,
.buyer-chat-page #chat-logout-button::before {
  content: "";
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.92;
}

.buyer-chat-page .orders-page-header .header-link-button[href="/"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f6f2d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11.5L12 4l9 7.5'/%3E%3Cpath d='M5 10.5V20h14v-9.5'/%3E%3C/svg%3E");
}

.buyer-chat-page .orders-page-header .header-link-button[href="/orders/"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f6f2d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='4' width='12' height='16' rx='2'/%3E%3Cpath d='M9 9h6M9 13h6M9 17h4'/%3E%3C/svg%3E");
}

.buyer-chat-page #chat-logout-button::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f6f2d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3Cpath d='M16 17l5-5-5-5'/%3E%3Cpath d='M21 12H9'/%3E%3C/svg%3E");
}

.cart-trigger-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #b9e5be;
  border-radius: 999px;
  background: #fff;
  color: var(--green-dark);
  font-weight: 700;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.cart-trigger-button::before {
  content: "";
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  background:
    linear-gradient(#0f6f2d, #0f6f2d) 3px 4px / 9px 2px no-repeat,
    linear-gradient(#0f6f2d, #0f6f2d) 5px 8px / 10px 2px no-repeat,
    linear-gradient(#0f6f2d, #0f6f2d) 4px 12px / 9px 2px no-repeat,
    radial-gradient(circle, #0f6f2d 62%, transparent 64%) 4px 15px / 4px 4px no-repeat,
    radial-gradient(circle, #0f6f2d 62%, transparent 64%) 12px 15px / 4px 4px no-repeat;
  opacity: 0.9;
}

.cart-trigger-button:hover {
  transform: translateY(-1px);
  background: var(--green-soft);
}

.cart-trigger-count {
  min-width: 26px;
  min-height: 26px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 0.8rem;
  line-height: 1;
}

.header-contact-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 2px;
  border: 0;
  background: transparent;
  color: var(--green-dark);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.header-contact-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.user-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  padding: 8px 12px;
  border: 1px solid #dfe3e7;
  border-radius: 12px;
  background: #fbfcfc;
}

.user-badge strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
}

.user-badge strong::before {
  content: "";
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 32%, #0f6f2d 0 20%, transparent 22%),
    radial-gradient(ellipse at 50% 84%, #0f6f2d 0 34%, transparent 36%),
    linear-gradient(180deg, #eefaf0, #e3f6e7);
  box-shadow: inset 0 0 0 1px rgba(15, 111, 45, 0.12);
}

.user-badge span {
  color: var(--muted);
  font-size: 0.76rem;
}

.sub-header {
  border-top: 1px solid #f0f1f2;
  background: #fff;
  transition: max-height 0.22s ease, opacity 0.18s ease, padding 0.18s ease, border-color 0.18s ease;
}

.sub-header-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 10px 0;
}

.sub-header-left,
.sub-links,
.sub-status {
  display: flex;
  align-items: center;
}

.sub-header-left {
  min-width: 0;
  flex: 1;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}

.sub-links,
.sub-status {
  gap: 16px;
  color: var(--muted);
  font-size: 0.86rem;
}

.top-category-strip {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  align-content: center;
  flex-wrap: nowrap;
  gap: 10px 18px;
  overflow: visible;
  padding: 0;
}

.top-category-select-shell {
  display: none;
  width: 100%;
}

.top-category-select {
  width: 100%;
  min-height: 40px;
  padding: 8px 38px 8px 12px;
  border-radius: 12px;
}

.top-category-link {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  cursor: pointer;
}

.top-category-link:hover,
.top-category-link.active {
  color: var(--green-dark);
}

.top-category-link.active {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.page-shell {
  padding: 24px 0 32px;
}

.page-shell > .sub-header {
  margin-bottom: 20px;
}

.page-shell > .sub-header .sub-header-inner {
  width: 100%;
  margin: 0;
}

.storefront-footer {
  margin-top: 28px;
  padding: 28px 0 12px;
  border-top: 1.5px solid #cfd6de;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.storefront-footer-inner {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px 28px;
  padding: 0;
}

.storefront-footer-bottom {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.storefront-footer-copyright {
  margin: 0;
  color: #64748b;
  font-size: 0.84rem;
  text-align: center;
  letter-spacing: 0.04em;
}

.storefront-footer-block {
  display: grid;
  gap: 14px;
  align-content: start;
}

.storefront-footer-title {
  margin: 0;
  color: #111827;
  font-size: 0.96rem;
  font-weight: 800;
}

.storefront-footer-link-list {
  display: grid;
  gap: 12px;
}

.storefront-footer-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
  border: 0;
  background: transparent;
  color: #566476;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.16s ease, transform 0.16s ease;
}

.storefront-footer-link:hover {
  color: var(--green-dark);
}

.storefront-footer-link.active {
  color: var(--green-dark);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.policy-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(var(--accent-rgb), 0.08), transparent 24%),
    linear-gradient(180deg, #f4faf5 0%, #eef5ef 100%);
}

.policy-shell {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 48px;
}

.policy-card {
  display: grid;
  gap: 18px;
  padding: 28px;
  border: 1px solid #dfe8e2;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.policy-kicker {
  margin: 0;
  color: var(--green-dark);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.policy-card h1,
.policy-card h2,
.policy-card p,
.policy-card li {
  margin: 0;
}

.policy-card h1 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.12;
}

.policy-card h2 {
  font-size: 1.05rem;
  color: #314155;
}

.policy-card p,
.policy-card li {
  color: #536274;
  line-height: 1.75;
}

.policy-card ul {
  margin: 0;
  padding-left: 18px;
}

.policy-back-link {
  justify-self: start;
}

.app-notice {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid #c9e8ce;
  background: #f1fbf3;
  color: var(--accent-ink);
  box-shadow: var(--shadow);
}

.app-notice.error {
  border-color: #f2c4be;
  background: #fff4f2;
  color: #b93825;
}

.toast-stack {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 90;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 32px));
  pointer-events: none;
}

body.mode-mobile-preview .top-strip {
  display: none;
}

body.mode-mobile-preview .page-shell {
  padding-bottom: 92px;
}

body.mode-mobile-preview .top-strip-inner,
body.mode-mobile-preview .main-header-inner,
body.mode-mobile-preview .sub-header-inner,
body.mode-mobile-preview .page-shell {
  width: min(100% - 20px, 100%);
}

body.mode-mobile-preview .main-header-inner {
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 12px 0;
}

body.mode-mobile-preview .main-header {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}

body.mode-mobile-preview .sub-header {
  max-height: 120px;
  overflow: hidden;
}

body.mode-mobile-preview .page-shell > .sub-header {
  border-top: 0;
  background: transparent;
  margin-bottom: 16px;
}

body.mode-mobile-preview .page-shell > .sub-header .sub-header-inner {
  padding: 0;
}

body.mode-mobile-preview .header-search-shell {
  position: relative;
  z-index: 1;
}

body.mode-mobile-preview .header-search {
  min-height: 44px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

body.mode-mobile-preview .header-actions {
  justify-content: space-between;
  width: 100%;
}

body.mode-mobile-preview .auth-actions {
  justify-content: flex-start;
}

body.mode-mobile-preview .auth-user-actions {
  width: 100%;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: 10px;
}

body.mode-mobile-preview .sub-header-inner,
body.mode-mobile-preview .catalog-toolbar,
body.mode-mobile-preview .promo-showcase-head,
body.mode-mobile-preview .cart-header,
body.mode-mobile-preview .cart-total-row,
body.mode-mobile-preview .summary-row {
  flex-direction: column;
  align-items: flex-start;
}

body.mode-mobile-preview .sub-header-left,
body.mode-mobile-preview .top-category-strip {
  width: 100%;
}

body.mode-mobile-preview .sub-header-left {
  padding: 14px;
  border: 1px solid #cfe7d3;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(243, 251, 245, 0.98) 100%);
  box-shadow:
    0 16px 34px rgba(15, 23, 42, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  gap: 10px;
}

body.mode-mobile-preview .sub-header-left .sub-links {
  min-height: 0;
  padding: 0;
}

body.mode-mobile-preview .sub-header-left .sub-links span {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #0f8f2f;
}

body.mode-mobile-preview .top-category-strip {
  display: none;
}

body.mode-mobile-preview .top-category-select-shell {
  display: block;
  margin: 0;
}

body.mode-mobile-preview .sub-status {
  display: none;
}

body.mode-mobile-preview .toolbar-mobile-filter-button {
  display: inline-flex;
}

body.mode-mobile-preview .market-layout {
  display: flex;
  flex-direction: column;
}

body.mode-mobile-preview .catalog-column {
  order: 1;
}

body.mode-mobile-preview .sidebar-column {
  order: 2;
  gap: 14px;
}

body.mode-mobile-preview .sidebar-column .sidebar-card:nth-child(-n+2) {
  display: none;
}

body.mode-mobile-preview .catalog-grid {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

body.mode-mobile-preview .catalog-toolbar-actions {
  width: 100%;
  justify-content: flex-start;
}

body.mode-mobile-preview #open-cart,
body.mode-mobile-preview #open-wishlist-page,
body.mode-mobile-preview #open-orders-page {
  display: none !important;
}

body.mode-mobile-preview #open-chat-page,
body.mode-mobile-preview .orders-page-header .header-actions a[href="/chat/"] {
  display: none !important;
}

body.mode-mobile-preview .user-badge {
  flex: 1 1 auto;
  min-width: 0;
  align-items: flex-start;
}

body.mode-mobile-preview #logout-button {
  margin-left: auto;
  flex: 0 0 auto;
  align-self: flex-start;
}

body.mode-mobile-preview .mobile-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  padding: 10px 10px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid #e3e8e4;
  box-shadow: 0 -12px 30px rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(14px);
}

body.mode-mobile-preview .mobile-bottom-nav-item {
  position: relative;
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  padding: 6px 4px;
  cursor: pointer;
}

body.mode-mobile-preview .mobile-bottom-nav-item.active {
  color: var(--green-dark);
  background: #eefaf0;
}

body.mode-mobile-preview .mobile-bottom-nav-label {
  text-align: center;
  line-height: 1.2;
}

body.mode-mobile-preview .mobile-bottom-nav-badge {
  position: absolute;
  top: 4px;
  right: 14px;
  min-width: 18px;
  min-height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 0.68rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

@media (min-width: 761px) {
  body.mode-mobile-preview .top-strip-inner,
  body.mode-mobile-preview .main-header-inner,
  body.mode-mobile-preview .sub-header-inner,
  body.mode-mobile-preview .page-shell,
  body.mode-mobile-preview .orders-page-shell {
    width: min(430px, calc(100% - 24px));
  }

  body.mode-mobile-preview .hero-banner,
  body.mode-mobile-preview .promo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.mode-mobile-preview .hero-banner {
    grid-template-columns: 1fr;
  }

  body.mode-mobile-preview .hero-side-banner {
    display: none;
  }

  body.mode-mobile-preview .hero-nav-prev {
    right: 76px;
  }

  body.mode-mobile-preview .hero-nav-next {
    right: 20px;
  }

  body.mode-mobile-preview .hero-dots {
    right: 132px;
  }

  body.mode-mobile-preview .promo-showcase-head {
    flex-direction: column;
    align-items: flex-start;
  }

  body.mode-mobile-preview .storefront-footer-inner {
    grid-template-columns: 1fr;
  }

  body.mode-mobile-preview .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.mode-mobile-preview .orders-page-header-inner,
  body.mode-mobile-preview .orders-page-head-grid,
  body.mode-mobile-preview .orders-toolbar,
  body.mode-mobile-preview .buyer-order-layout,
  body.mode-mobile-preview .cart-page-layout,
  body.mode-mobile-preview .wishlist-grid,
  body.mode-mobile-preview .wishlist-card {
    grid-template-columns: 1fr;
  }

  body.mode-mobile-preview .orders-page-shell {
    padding: 18px 0 96px;
  }

  body.mode-mobile-preview .orders-page-header .main-header-inner {
    gap: 14px 16px;
    align-items: start;
    padding: 10px 0 12px;
  }

  body.mode-mobile-preview .orders-page-header .header-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  body.mode-mobile-preview .orders-page-header .auth-actions {
    gap: 8px;
  }

  body.mode-mobile-preview .orders-page-head,
  body.mode-mobile-preview .orders-page-guard,
  body.mode-mobile-preview .orders-summary-card,
  body.mode-mobile-preview .orders-list-shell {
    padding: 16px;
  }

  body.mode-mobile-preview .orders-summary-grid {
    grid-template-columns: 1fr;
  }

  body.mode-mobile-preview .wishlist-grid {
    gap: 14px;
  }

  body.mode-mobile-preview.buyer-mobile-nav-page.product-page-body .product-page-header-inner,
  body.mode-mobile-preview.buyer-mobile-nav-page.product-page-body .product-page-shell {
    width: min(430px, calc(100% - 24px));
  }

  body.mode-mobile-preview.buyer-mobile-nav-page.product-page-body .product-page-shell {
    padding: 18px 0 calc(210px + env(safe-area-inset-bottom, 0px));
  }

body.mode-mobile-preview.buyer-mobile-nav-page.product-page-body .product-page-header-inner {
  min-height: 88px;
  align-items: flex-start;
  padding: 14px 0;
  flex-direction: column;
}

body.mode-mobile-preview.buyer-mobile-nav-page.product-page-body .product-page-header-actions {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-content: flex-start;
  gap: 8px;
}

body.mode-mobile-preview.buyer-mobile-nav-page.product-page-body .product-page-header-actions .toolbar-pill {
  grid-column: 1 / -1;
}

body.mode-mobile-preview.buyer-mobile-nav-page.product-page-body .product-page-header-actions .ghost-button,
body.mode-mobile-preview.buyer-mobile-nav-page.product-page-body .product-page-header-actions .primary-button {
  width: 100%;
  min-height: 38px;
  justify-content: center;
  padding-inline: 10px;
  border-radius: 14px;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
}

body.mode-mobile-preview.buyer-mobile-nav-page.product-page-body .product-page-header-actions .ghost-button {
  background: #fff;
  border-color: #bfd9c4;
  color: #137b38;
}

body.mode-mobile-preview.buyer-mobile-nav-page.product-page-body .product-page-header-actions .primary-button {
  background: linear-gradient(180deg, var(--accent-bright), var(--accent-strong));
  border-color: var(--accent-strong);
  color: #fff;
}

body.mode-mobile-preview.buyer-mobile-nav-page.product-page-body .product-breadcrumbs {
  display: none;
}

body.mode-mobile-preview.buyer-mobile-nav-page.product-page-body .product-detail-layout,
body.mode-mobile-preview.buyer-mobile-nav-page.product-page-body .product-detail-summary-column,
body.mode-mobile-preview.buyer-mobile-nav-page.product-page-body .product-reviews-summary-grid {
  grid-template-columns: 1fr;
}

body.mode-mobile-preview.buyer-mobile-nav-page.product-page-body .product-detail-layout,
body.mode-mobile-preview.buyer-mobile-nav-page.product-page-body .product-detail-summary-column {
  gap: 14px;
}

body.mode-mobile-preview.buyer-mobile-nav-page.product-page-body .product-related-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.mode-mobile-preview.buyer-mobile-nav-page.product-page-body .product-detail-gallery-card,
body.mode-mobile-preview.buyer-mobile-nav-page.product-page-body .product-detail-gallery-chat-card,
body.mode-mobile-preview.buyer-mobile-nav-page.product-page-body .product-detail-summary-card {
  padding: 16px;
}

body.mode-mobile-preview.buyer-mobile-nav-page.product-page-body .product-detail-description-card,
body.mode-mobile-preview.buyer-mobile-nav-page.product-page-body .product-purchase-notes-card {
  padding: 18px;
}

body.mode-mobile-preview.buyer-mobile-nav-page.product-page-body .product-gallery-stage {
  min-height: 280px;
}

body.mode-mobile-preview.buyer-mobile-nav-page.product-page-body .product-gallery-thumbs {
  flex-wrap: nowrap;
  overflow-x: auto;
  margin-inline: -2px;
  padding: 2px 2px 6px;
}

body.mode-mobile-preview.buyer-mobile-nav-page.product-page-body .product-gallery-chat-button {
  min-height: 44px;
  border-radius: 16px;
}

body.mode-mobile-preview.buyer-mobile-nav-page.product-page-body .product-gallery-thumb {
  width: 68px;
  min-width: 68px;
}

body.mode-mobile-preview.buyer-mobile-nav-page.product-page-body .product-variant-section {
  margin-top: 16px;
  padding: 16px;
  border-radius: 20px;
  gap: 12px;
}

body.mode-mobile-preview.buyer-mobile-nav-page.product-page-body .product-variant-callout,
body.mode-mobile-preview.buyer-mobile-nav-page.product-page-body .product-variant-summary-head {
  flex-direction: column;
  align-items: flex-start;
}

body.mode-mobile-preview.buyer-mobile-nav-page.product-page-body .product-variant-required {
  min-height: 28px;
  padding-inline: 10px;
}

body.mode-mobile-preview.buyer-mobile-nav-page.product-page-body .product-variant-field select {
  min-height: 52px;
  font-size: 0.92rem;
}

body.mode-mobile-preview.buyer-mobile-nav-page.product-page-body .product-variant-summary-card {
  padding: 14px;
}

body.mode-mobile-preview.buyer-mobile-nav-page.product-page-body .product-variant-summary-price {
  font-size: 1.18rem;
}

body.mode-mobile-preview.buyer-mobile-nav-page.product-page-body .product-detail-species {
  font-size: 1.34rem;
  line-height: 1.12;
}

body.mode-mobile-preview.buyer-mobile-nav-page.product-page-body .product-detail-price {
  font-size: 1.48rem;
  line-height: 1.08;
}

body.mode-mobile-preview.buyer-mobile-nav-page.product-page-body .product-detail-action-card {
  margin-top: 14px;
  padding: 14px 16px;
}

body.mode-mobile-preview.buyer-mobile-nav-page.product-page-body .product-detail-action-card .product-page-qty-row,
body.mode-mobile-preview.buyer-mobile-nav-page.product-page-body .product-detail-action-card .product-detail-actions {
  display: none;
}

body.mode-mobile-preview.buyer-mobile-nav-page.product-page-body .product-detail-action-card .product-detail-hint {
  margin-top: 0;
  font-size: 0.82rem;
  line-height: 1.55;
}

body.mode-mobile-preview.buyer-mobile-nav-page.product-page-body .product-review-card-head,
body.mode-mobile-preview.buyer-mobile-nav-page.product-page-body .product-related-head {
  flex-direction: column;
  align-items: flex-start;
}

body.mode-mobile-preview.buyer-mobile-nav-page.product-page-body .product-related-head .ghost-button {
  width: 100%;
  justify-content: center;
}

body.mode-mobile-preview.buyer-mobile-nav-page.product-page-body .product-related-grid .promo-product-card {
  border-radius: 16px;
}

body.mode-mobile-preview.buyer-mobile-nav-page.product-page-body .product-related-grid .promo-product-visual {
  aspect-ratio: 1 / 0.92;
}

body.mode-mobile-preview.buyer-mobile-nav-page.product-page-body .product-related-grid .promo-product-copy {
  gap: 7px;
  padding: 10px;
}

body.mode-mobile-preview.buyer-mobile-nav-page.product-page-body .product-related-grid .promo-product-kicker {
  font-size: 0.66rem;
}

body.mode-mobile-preview.buyer-mobile-nav-page.product-page-body .product-related-grid .promo-product-copy h3 {
  font-size: 0.88rem;
}

body.mode-mobile-preview.buyer-mobile-nav-page.product-page-body .product-related-grid .promo-product-summary {
  font-size: 0.74rem;
  line-height: 1.42;
}

body.mode-mobile-preview.buyer-mobile-nav-page.product-page-body .product-related-grid .promo-product-stats {
  gap: 6px;
}

body.mode-mobile-preview.buyer-mobile-nav-page.product-page-body .product-related-grid .promo-product-stats .stat-pill {
  min-height: 26px;
  padding-inline: 8px;
  font-size: 0.72rem;
}

body.mode-mobile-preview.buyer-mobile-nav-page.product-page-body .product-related-grid .promo-product-actions {
  grid-template-columns: 1fr;
}

body.mode-mobile-preview.buyer-mobile-nav-page.product-page-body .product-related-grid .promo-product-actions .ghost-button,
body.mode-mobile-preview.buyer-mobile-nav-page.product-page-body .product-related-grid .promo-product-actions .primary-button {
  min-height: 38px;
  font-size: 0.82rem;
}

body.mode-mobile-preview.buyer-mobile-nav-page.product-page-body .product-mobile-bar {
  left: 50%;
  right: auto;
  width: min(430px, calc(100% - 24px));
    transform: translateX(-50%);
    bottom: calc(78px + env(safe-area-inset-bottom, 0px));
  }

  body.mode-mobile-preview .mobile-bottom-nav {
    left: 50%;
    right: auto;
    width: min(430px, calc(100% - 24px));
    transform: translateX(-50%);
    border-radius: 18px 18px 0 0;
  }
}

.app-toast {
  padding: 13px 14px;
  border-radius: 16px;
  border: 1px solid #c9e8ce;
  background: rgba(255, 255, 255, 0.96);
  color: var(--accent-ink);
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(10px);
  pointer-events: auto;
}

.hero-banner {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) 340px;
  gap: 20px;
  margin-bottom: 20px;
}

.promo-showcase {
  position: relative;
  margin-bottom: 22px;
  padding: 20px;
  border: 1px solid #ffd7b8;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at top right, rgba(255, 196, 112, 0.28), transparent 24%),
    radial-gradient(circle at left center, rgba(var(--accent-rgb), 0.1), transparent 26%),
    linear-gradient(180deg, #fff8ec 0%, #fffdf8 100%);
  box-shadow: 0 18px 36px rgba(238, 77, 45, 0.08);
  overflow: hidden;
}

.promo-showcase::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.promo-showcase-head {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid #ffe1ca;
}

.promo-showcase .sidebar-kicker {
  color: #c2410c;
}

.promo-showcase h2 {
  color: #9a3412;
}

.promo-showcase-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.promo-showcase-title::before {
  content: "";
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.92) 0 22%, transparent 23% 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23c2410c'%3E%3Cpath d='M12 3.6l2.52 5.1 5.63.82-4.08 3.98.96 5.61L12 16.46 6.97 19.1l.96-5.61-4.08-3.98 5.63-.82L12 3.6z'/%3E%3C/svg%3E") center/15px 15px no-repeat,
    linear-gradient(135deg, #fff4e6 0%, #ffd7b8 100%);
  box-shadow: inset 0 0 0 1px #fdba74;
}

.promo-showcase .results-subtitle,
.promo-showcase .admin-list-summary {
  color: #7c5a3b;
}

.promo-tab-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.promo-tab-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #ffd3b0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #b45309;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(249, 115, 22, 0.08);
}

.promo-tab-button::before {
  content: "";
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.95;
}

.promo-tab-button[data-promo-tab="discounts"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b45309' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.59 13.41 11 23l-9-9 9.59-9.59A2 2 0 0 1 13 4h7v7a2 2 0 0 1-.41 1.41Z'/%3E%3Cpath d='M7 7h.01'/%3E%3C/svg%3E");
}

.promo-tab-button[data-promo-tab="monthly"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b45309' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E");
}

.promo-tab-button.active {
  border-color: #f59e0b;
  background: linear-gradient(135deg, #fff0d9 0%, #ffe2b8 100%);
  color: #9a3412;
}

.promo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.promo-showcase .promo-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.promo-product-card {
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid #e7eaee;
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 18px 34px rgba(20, 39, 26, 0.06);
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.promo-showcase .promo-product-card {
  border-radius: 16px;
  border-color: #ffd9bf;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, #fff9f2 100%);
  box-shadow: 0 14px 28px rgba(238, 77, 45, 0.08);
}

.promo-product-card:hover {
  transform: translateY(-3px);
  border-color: #d9e7dd;
  box-shadow: 0 22px 38px rgba(20, 39, 26, 0.1);
}

.promo-showcase .promo-product-card:hover {
  transform: translateY(-2px);
  border-color: #f6b37d;
  box-shadow: 0 18px 30px rgba(238, 77, 45, 0.14);
}

.promo-product-visual {
  border: 0;
  padding: 0;
  background: #f8faf8;
  cursor: pointer;
  aspect-ratio: 1 / 1;
}

.promo-showcase .promo-product-visual {
  aspect-ratio: 1 / 1;
  background:
    radial-gradient(circle at top, rgba(255, 230, 192, 0.9), transparent 40%),
    linear-gradient(180deg, #fff9ef 0%, #fff0db 100%);
}

.promo-product-visual img,
.promo-product-visual .image-fallback {
  width: 100%;
  height: 100%;
}

.promo-showcase .promo-product-visual img,
.promo-showcase .promo-product-visual .image-fallback {
  display: block;
  object-fit: cover;
}

.promo-product-copy {
  display: grid;
  gap: 10px;
  padding: 16px;
  align-content: start;
}

.promo-showcase .promo-product-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, #fffaf4 100%);
}

.promo-product-copy h3,
.promo-product-copy p {
  margin: 0;
}

.promo-product-copy h3 {
  font-size: 1.02rem;
  line-height: 1.36;
}

.promo-showcase .promo-product-copy h3 {
  font-size: 0.95rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.promo-product-kicker {
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.promo-showcase .promo-product-kicker {
  color: #ca6a04;
  font-size: 0.7rem;
  line-height: 1.35;
  letter-spacing: 0.04em;
}

.promo-product-summary {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.promo-product-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.promo-showcase .promo-product-status-row {
  gap: 6px;
}

.promo-showcase .promo-product-status-row .status-badge,
.promo-showcase .promo-pill-monthly {
  min-height: 24px;
  padding: 0 8px;
  font-size: 0.72rem;
}

.promo-showcase .promo-product-status-row .status-badge.success {
  background: #ecfdf3;
  border-color: var(--accent-line);
  color: var(--accent-deep);
}

.promo-showcase .promo-product-status-row .status-badge.warning {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #c2410c;
}

.promo-showcase .promo-product-status-row .status-badge.danger {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #be123c;
}

.promo-pill-monthly {
  background: #fff8ec;
  color: #b45309;
  border: 1px solid #f6dfb5;
}

.promo-product-price {
  display: grid;
  gap: 4px;
}

.promo-showcase .promo-product-price {
  gap: 2px;
}

.promo-product-price strong {
  color: var(--orange);
  font-size: 1.15rem;
}

.promo-showcase .promo-product-price strong {
  color: #ef4d2d;
  font-size: 1.02rem;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.72);
}

.promo-showcase .promo-product-price-original {
  font-size: 0.76rem;
}

.promo-product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.promo-product-meta span {
  padding: 6px 10px;
  border-radius: 999px;
  background: #eefaf0;
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 700;
}

.promo-product-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.promo-product-stats span {
  display: inline-flex;
  align-items: center;
}

.promo-product-stats span + span::before {
  content: "\2022";
  margin-right: 6px;
  color: #c4cdd6;
}

@media (max-width: 1260px) {
  .promo-showcase .promo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .promo-showcase .promo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

.hero-main,
.hero-side-banner,
.sidebar-card,
.catalog-toolbar,
.product-card,
.cart-shell {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero-main {
  position: relative;
  padding: 28px;
  background:
    linear-gradient(120deg, rgba(var(--accent-rgb), 0.92), color-mix(in srgb, var(--accent-bright) 84%, white)),
    linear-gradient(160deg, var(--accent-bright), var(--accent));
  color: #fff;
  overflow: hidden;
}

.hero-slider-shell {
  padding: 0;
  min-height: 0;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 1504 / 704;
  background: #f5f7f4;
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  pointer-events: none;
  transition: opacity 320ms ease;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  background-color: #f5f7f4;
  text-decoration: none;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide.clickable {
  cursor: pointer;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(2, 20, 8, 0.18), rgba(2, 20, 8, 0.02) 52%, rgba(2, 20, 8, 0.12)),
    linear-gradient(140deg, rgba(var(--accent-rgb), 0.04), rgba(0, 0, 0, 0.01));
}

.hero-slide-cta {
  position: absolute;
  left: 28px;
  bottom: 28px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--green-dark);
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(19, 44, 24, 0.16);
}

.hero-nav {
  position: absolute;
  z-index: 3;
  bottom: 24px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(4px);
}

.hero-nav-prev {
  right: 84px;
}

.hero-nav-next {
  right: 28px;
}

.hero-dots {
  position: absolute;
  z-index: 3;
  left: auto;
  right: 146px;
  bottom: 22px;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
}

.hero-dot.active {
  width: 28px;
  background: #fff;
}

.eyebrow,
.sidebar-kicker,
.cart-kicker,
.results-title,
.dialog-genus {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  margin: 0 0 10px;
}

.hero-side-banner {
  position: relative;
  min-height: 420px;
  padding: 26px 24px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  overflow: hidden;
  background-color: #0f2315;
  background-position: center;
  background-size: cover;
}

.hero-side-banner.clickable {
  cursor: pointer;
}

.hero-side-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 19, 10, 0.02), rgba(6, 19, 10, 0.07) 42%, rgba(6, 19, 10, 0.14)),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.16), transparent 38%);
}

.hero-side-banner-copy {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: min(78%, 260px);
  display: grid;
  gap: 8px;
  color: #fff;
  text-shadow: 0 2px 10px rgba(6, 19, 10, 0.28);
}

.hero-side-banner-kicker {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-side-banner h2 {
  margin: 0;
  max-width: 230px;
  font-size: clamp(1.05rem, 1.32vw, 1.42rem);
  line-height: 1.08;
}

.hero-side-banner-cta {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--green-dark);
  font-size: 0.84rem;
  font-weight: 700;
  text-shadow: none;
}

.hero-side-banner-stats {
  display: none;
}

.market-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.product-page-body {
  background:
    radial-gradient(circle at top left, rgba(var(--accent-rgb), 0.08), transparent 28%),
    linear-gradient(180deg, #f8fbf8, #f5f5f5);
}

.product-page-header {
  position: sticky;
  top: 0;
  z-index: 24;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(49, 53, 59, 0.08);
}

.product-page-header-inner,
.product-page-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.product-page-header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.product-page-brand {
  display: inline-flex;
  align-items: center;
}

.product-page-brand img {
  display: block;
  width: min(230px, 100%);
  max-height: 54px;
  object-fit: contain;
}

.product-page-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.product-page-shell {
  padding: 24px 0 42px;
}

.product-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.product-breadcrumbs a {
  color: var(--green-dark);
  text-decoration: none;
  font-weight: 600;
}

.product-breadcrumbs a:hover {
  text-decoration: underline;
}

.product-detail-content,
.product-related-section {
  display: grid;
  gap: 22px;
}

.product-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  gap: 22px;
  align-items: start;
}

.product-detail-gallery-column {
  display: grid;
  gap: 14px;
  align-items: start;
}

.product-detail-summary-column {
  display: grid;
  gap: 22px;
  align-items: start;
}

.product-detail-gallery-card,
.product-detail-gallery-chat-card,
.product-detail-summary-card,
.product-detail-description-card,
.product-purchase-notes-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.product-detail-gallery-card,
.product-detail-gallery-chat-card,
.product-detail-summary-card {
  padding: 22px;
}

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

.product-purchase-notes-card {
  padding: 22px 24px;
}

.product-gallery-stage {
  min-height: 460px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background:
    radial-gradient(circle at top left, rgba(var(--accent-rgb), 0.08), transparent 30%),
    linear-gradient(160deg, #fbfdfb, #f4f8f4);
  overflow: hidden;
}

.product-gallery-stage img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: contain;
}

.product-gallery-thumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.product-gallery-chat-shell {
  display: flex;
}

.product-gallery-chat-button {
  width: 100%;
  min-height: 48px;
  justify-content: center;
  border-radius: 18px;
  box-shadow: 0 12px 24px rgba(var(--accent-rgb), 0.16);
}

.product-gallery-chat-button::before {
  content: "";
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M12 3c4.971 0 9 3.582 9 8s-4.029 8-9 8a10.21 10.21 0 0 1-3.01-.448L4 20l1.57-4.186C4.593 14.42 3 12.832 3 11c0-4.418 4.029-8 9-8Z' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.product-gallery-thumb {
  width: 88px;
  min-width: 88px;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: transparent;
  overflow: hidden;
  box-shadow: none;
}

.product-gallery-thumb.active {
  box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.95);
}

.product-gallery-thumb img,
.product-gallery-thumb .image-fallback {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  object-fit: cover;
}

.product-gallery-stage-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: inherit;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.product-gallery-stage-button img,
.product-gallery-stage-button .image-fallback {
  width: 100%;
  height: 100%;
}

.product-gallery-swipe-hint {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.74);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
}

.product-gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  padding: 20px 16px calc(20px + env(safe-area-inset-bottom, 0px));
  background: rgba(9, 13, 20, 0.84);
  backdrop-filter: blur(10px);
}

.product-gallery-lightbox-shell {
  width: min(100%, 1080px);
  max-height: min(92vh, 920px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 16px;
  padding: 18px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(circle at top left, rgba(22, 163, 74, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(17, 24, 39, 0.96), rgba(15, 23, 42, 0.96));
  box-shadow: 0 26px 70px rgba(3, 10, 18, 0.34);
}

.product-gallery-lightbox-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.product-gallery-lightbox-counter {
  color: #f8fafc;
  font-size: 0.94rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.product-gallery-lightbox-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.product-gallery-lightbox-action {
  min-height: 40px;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.product-gallery-lightbox-action:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
}

.product-gallery-lightbox-body {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}

.product-gallery-lightbox-viewport {
  min-height: clamp(360px, 70vh, 720px);
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(248, 250, 252, 0.08), rgba(226, 232, 240, 0.03));
  display: grid;
  align-items: center;
  justify-items: center;
}

.product-gallery-lightbox-viewport.zoomed {
  overflow: auto;
  cursor: zoom-out;
  -webkit-overflow-scrolling: touch;
}

.product-gallery-lightbox-stage {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 22px;
}

.product-gallery-lightbox-stage img {
  display: block;
  max-width: 100%;
  max-height: min(74vh, 720px);
  object-fit: contain;
  transition: transform 140ms ease;
}

.product-gallery-lightbox-viewport.zoomed .product-gallery-lightbox-stage img {
  max-width: none;
  max-height: none;
  width: min(160vw, 1320px);
}

.product-gallery-lightbox-stage .image-fallback {
  width: min(100%, 580px);
  min-height: 300px;
  border-radius: 22px;
}

.product-gallery-lightbox-nav {
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
}

.product-gallery-lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.14);
}

.product-gallery-lightbox-hint {
  margin: 0;
  color: rgba(226, 232, 240, 0.92);
  font-size: 0.86rem;
  line-height: 1.6;
}

body.product-lightbox-open {
  overflow: hidden;
}

.product-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.product-detail-summary-card {
  position: sticky;
  top: 98px;
}

.product-detail-species {
  margin: 4px 0 8px;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.06;
  color: #1f2937;
}

.product-detail-title {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.product-detail-summary {
  margin: 18px 0 0;
  font-size: 0.98rem;
  line-height: 1.75;
  color: #465266;
}

.product-quick-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.product-quick-facts span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f4f7f5;
  color: #405266;
  font-size: 0.82rem;
  font-weight: 600;
}

.product-detail-price-block {
  margin-top: 22px;
  display: grid;
  gap: 4px;
}

.product-detail-price {
  font-size: clamp(1.9rem, 2.4vw, 2.45rem);
  line-height: 1.04;
  color: var(--orange);
}

.product-detail-meta-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.product-detail-meta-card {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid #e8ecef;
  background: #fbfcfd;
  display: grid;
  gap: 6px;
}

.product-detail-meta-card span {
  color: var(--muted);
  font-size: 0.82rem;
}

.product-detail-meta-card strong {
  font-size: 0.95rem;
  color: #1f2937;
}

.product-detail-tags {
  margin-top: 20px;
}

.product-detail-action-card {
  margin-top: 22px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid #dfe8e1;
  background: linear-gradient(180deg, #fcfffc, #f3fbf4);
}

.product-variant-section {
  position: relative;
  margin-top: 18px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid #bfe8ca;
  background:
    radial-gradient(circle at top right, rgba(134, 239, 172, 0.18), transparent 40%),
    linear-gradient(180deg, #fcfffd 0%, #f2fbf4 58%, #edf9ef 100%);
  box-shadow: 0 16px 34px rgba(22, 163, 74, 0.1);
  display: grid;
  gap: 14px;
  overflow: hidden;
}

.product-variant-section::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--accent-bright) 0%, var(--accent-strong) 48%, var(--accent-deep) 100%);
}

.product-variant-section .field-block {
  gap: 8px;
}

.product-variant-callout {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.product-variant-callout-copy {
  display: grid;
  gap: 5px;
}

.product-variant-callout-copy strong {
  font-size: 1.08rem;
  color: #183a22;
}

.product-variant-callout-copy p {
  margin: 0;
  color: #68788d;
  font-size: 0.9rem;
  line-height: 1.55;
}

.product-variant-step {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.1);
  color: #0f8a3b;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.product-variant-required {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent-bright), var(--accent-strong));
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 12px 20px rgba(22, 163, 74, 0.2);
}

.product-variant-label {
  color: #1f2937;
  font-size: 0.94rem;
  font-weight: 800;
}

.product-variant-field select {
  min-height: 56px;
  padding-block: 12px;
  padding-right: 46px;
  border-radius: 18px;
  border-color: var(--accent-line-strong);
  background-image:
    linear-gradient(45deg, transparent 50%, #3d6f4b 50%),
    linear-gradient(135deg, #3d6f4b 50%, transparent 50%),
    linear-gradient(180deg, #ffffff, #f4fbf5);
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-position:
    calc(100% - 18px) calc(50% - 2px),
    calc(100% - 12px) calc(50% - 2px),
    0 0;
  background-size:
    6px 6px,
    6px 6px,
    100% 100%;
  box-shadow: 0 10px 18px rgba(34, 197, 94, 0.1);
  font-size: 0.98rem;
  font-weight: 700;
  color: #17311f;
}

.product-variant-field select:focus {
  border-color: var(--accent-bright);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.14), 0 12px 24px rgba(34, 197, 94, 0.12);
}

.product-variant-section .field-note {
  color: #5b6c80;
  font-size: 0.84rem;
  line-height: 1.55;
}

.product-variant-summary-card {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(134, 239, 172, 0.72);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(241, 251, 243, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  display: grid;
  gap: 12px;
}

.product-variant-summary-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.product-variant-summary-kicker {
  display: block;
  color: var(--accent-deep);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.product-variant-summary-name {
  display: block;
  margin-top: 4px;
  color: #183a22;
  font-size: 1.02rem;
  line-height: 1.35;
}

.product-variant-summary-tone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: #ecfdf3;
  color: #137b38;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.product-variant-summary-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
}

.product-variant-summary-original {
  color: #94a3b8;
  font-size: 0.92rem;
  text-decoration: line-through;
}

.product-variant-summary-price {
  color: #ff5a1f;
  font-size: 1.35rem;
  line-height: 1.1;
}

.product-variant-summary-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-variant-summary-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #d1fadf;
  color: #5f6f82;
  font-size: 0.8rem;
  font-weight: 700;
}

.product-variant-summary-chip-discount {
  border-color: #fecdd3;
  background: #fff1f2;
  color: #e11d48;
}

.product-page-qty-row {
  margin-bottom: 14px;
}

.product-detail-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.product-detail-actions .primary-button,
.product-detail-actions .ghost-button {
  min-height: 46px;
}

.product-detail-hint {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.product-page-description {
  margin-top: 10px;
}

.product-page-description p,
.product-page-description li {
  line-height: 1.8;
}

.product-purchase-notes {
  color: #465160;
}

.product-purchase-notes ul {
  margin: 10px 0 0 18px;
  padding: 0;
  display: grid;
  gap: 12px;
}

.product-purchase-notes li {
  line-height: 1.75;
}

.product-related-head {
  align-items: end;
}

.product-related-grid .promo-product-card {
  min-height: 100%;
}

.product-reviews-section {
  margin-top: 26px;
  display: grid;
  gap: 18px;
}

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

.product-review-summary-card {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid #e7ecef;
  background: #fbfcfd;
  display: grid;
  gap: 8px;
}

.product-review-summary-card.featured {
  background: linear-gradient(180deg, #fcfffd, #eef8f0);
  border-color: #dcebdc;
}

.product-review-summary-card span {
  color: var(--muted);
  font-size: 0.82rem;
}

.product-review-summary-card strong {
  font-size: 1.6rem;
  color: #183a22;
}

.product-review-summary-card p {
  margin: 0;
  color: #5c6b7b;
  line-height: 1.6;
}

.product-reviews-filter-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.product-review-card {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid #e7ecef;
  background: #fbfcfd;
  display: grid;
  gap: 12px;
}

.product-review-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.product-review-card-head strong {
  display: block;
  color: #1f2937;
}

.product-review-card-head span {
  color: var(--muted);
  font-size: 0.84rem;
}

.product-review-card-body {
  margin: 0;
  line-height: 1.75;
  color: #2f3a49;
}

.product-review-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  color: #64748b;
  font-size: 0.84rem;
}

.product-mobile-bar {
  display: none;
}

.product-mobile-price {
  color: var(--orange);
  font-size: 1.1rem;
  line-height: 1.05;
}

.product-mobile-stock-status {
  color: var(--muted);
  font-size: 0.8rem;
}

.product-mobile-bar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-mobile-qty-selector {
  flex: 0 0 auto;
}

.product-mobile-icon-button {
  min-width: 92px;
}

.product-mobile-icon-button.active {
  border-color: #96d8a0;
  background: #eefaf0;
  color: var(--green-dark);
}

.product-mobile-add-button {
  min-width: 118px;
}

.sidebar-column {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 124px;
}

.sidebar-card,
.cart-shell {
  padding: 18px;
}

.sidebar-head h2,
.cart-header h2 {
  margin: 0;
  font-size: 1.15rem;
}

.sidebar-kicker,
.cart-kicker,
.results-title,
.dialog-genus {
  color: var(--green);
}

.account-box p,
.results-subtitle,
.dialog-species,
.field-block span,
.sort-field span {
  color: var(--muted);
}

.stack-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.genus-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.genus-vertical {
  flex-direction: column;
}

.tag-chip {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: 1px solid #e0e4e7;
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  transition: border-color 140ms ease, color 140ms ease, background 140ms ease;
}

.tag-chip.active,
.tag-chip:hover {
  border-color: #96d8a0;
  background: var(--green-soft);
  color: var(--green-dark);
}

.sort-field,
.field-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.88rem;
}

input,
select,
textarea,
button,
dialog {
  font: inherit;
}

select,
.field-block input:not([type="checkbox"]):not([type="radio"]),
.field-block textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--control-border);
  border-radius: 12px;
  background: linear-gradient(180deg, var(--control-surface), var(--control-surface-soft));
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

select:hover,
.field-block input:not([type="checkbox"]):not([type="radio"]):hover,
.field-block textarea:hover {
  border-color: var(--control-border-strong);
  box-shadow: 0 6px 18px rgba(49, 53, 59, 0.08);
}

select:focus,
select:focus-visible,
.field-block input:not([type="checkbox"]):not([type="radio"]):focus,
.field-block input:not([type="checkbox"]):not([type="radio"]):focus-visible,
.field-block textarea:focus,
.field-block textarea:focus-visible {
  outline: none;
  border-color: #72c88b;
  box-shadow: 0 0 0 4px var(--control-focus), var(--control-shadow);
  background: #ffffff;
}

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 42px;
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, #667585 50%),
    linear-gradient(135deg, #667585 50%, transparent 50%),
    linear-gradient(180deg, var(--control-surface), var(--control-surface-soft));
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-position:
    calc(100% - 18px) calc(50% - 2px),
    calc(100% - 12px) calc(50% - 2px),
    0 0;
  background-size:
    6px 6px,
    6px 6px,
    100% 100%;
}

select:disabled,
.field-block input:disabled,
.field-block textarea:disabled {
  cursor: not-allowed;
  opacity: 0.7;
  box-shadow: none;
}

input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 1.5px solid var(--control-border-strong);
  border-radius: 6px;
  background: linear-gradient(180deg, #ffffff, #f3f7f4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 1px 2px rgba(49, 53, 59, 0.08);
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

input[type="checkbox"]:hover {
  border-color: #90c59a;
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.08);
}

input[type="checkbox"]:focus,
input[type="checkbox"]:focus-visible {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 4px var(--control-focus);
}

input[type="checkbox"]:checked {
  border-color: var(--green);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.2 8.3L6.5 11.4L12.8 4.9' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"),
    linear-gradient(180deg, var(--accent), var(--accent-dark));
  background-repeat: no-repeat, no-repeat;
  background-position: center, center;
  background-size: 11px 11px, 100% 100%;
}

input[type="checkbox"]:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: none;
}

.field-block textarea {
  resize: vertical;
  min-height: 110px;
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 118px;
}

.password-toggle-button {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  min-height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: #eef7f0;
  color: var(--green-dark);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.password-toggle-button:hover {
  background: #dff1e2;
}

.password-toggle-button:focus-visible {
  outline: 2px solid #96d8a0;
  outline-offset: 2px;
}

.catalog-toolbar {
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

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

.toolbar-reset-button {
  min-height: 34px;
}

.toolbar-mobile-filter-button {
  display: none;
}

.toolbar-sort-field {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.88rem;
}

.toolbar-sort-field span {
  color: var(--muted);
  font-weight: 600;
}

.toolbar-sort-field select {
  width: auto;
  min-width: 190px;
  min-height: 38px;
  padding: 8px 38px 8px 12px;
  border-radius: 12px;
}

.results-title {
  margin-bottom: 6px;
}

.results-subtitle {
  margin: 0;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.catalog-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 18px;
  padding: 6px 0 2px;
}

.catalog-pagination-button {
  min-height: 38px;
  min-width: 112px;
  padding: 0 16px;
  border: 1px solid #cfe0d4;
  border-radius: 999px;
  background: #fff;
  color: var(--green-dark);
  font-size: 0.86rem;
  font-weight: 700;
  box-shadow: none;
}

.catalog-pagination-button:hover {
  background: #f7fbf8;
}

.catalog-pagination-summary {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  min-width: 120px;
}

.product-card {
  overflow: hidden;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.product-card.product-card-promo {
  border-color: #ffd9bf;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, #fff9f2 100%);
  box-shadow: 0 14px 28px rgba(238, 77, 45, 0.08);
}

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

.product-card.product-card-promo:hover {
  border-color: #f6b37d;
  box-shadow: 0 18px 30px rgba(238, 77, 45, 0.14);
}

.card-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: #fff;
  border-bottom: 1px solid #f0f2f4;
  overflow: hidden;
}

.card-visual-floating-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #f6dfb5;
  background: rgba(255, 248, 236, 0.96);
  color: #b45309;
  font-size: 0.74rem;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(180, 83, 9, 0.12);
  backdrop-filter: blur(8px);
}

.card-visual-floating-badge.top-left {
  top: 12px;
  left: 12px;
}

.card-visual-floating-badge.bottom-right {
  right: 12px;
  bottom: 12px;
}

.card-visual-floating-badge.discount {
  border-color: #ffb8c2;
  background: rgba(255, 244, 246, 0.96);
  color: #ff5a6d;
  box-shadow: 0 10px 22px rgba(255, 90, 109, 0.16);
}

.product-card.product-card-promo .card-visual {
  background:
    radial-gradient(circle at top, rgba(255, 230, 192, 0.9), transparent 40%),
    linear-gradient(180deg, #fff9ef 0%, #fff0db 100%);
  border-bottom-color: #ffe6cf;
}

.card-visual img,
.dialog-image-stage img,
.thumb-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 18px;
  text-align: center;
  color: var(--muted);
  background:
    radial-gradient(circle at top right, rgba(var(--accent-rgb), 0.1), transparent 30%),
    linear-gradient(180deg, #ffffff, #f7faf7);
}

.card-body {
  padding: 14px;
}

.product-card.product-card-promo .card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, #fffaf4 100%);
}

.card-headline {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.product-genus {
  margin: 0;
  color: var(--green);
  text-transform: uppercase;
  font-size: 0.73rem;
  letter-spacing: 0.12em;
}

.product-card.product-card-promo .product-genus {
  color: #ca6a04;
  letter-spacing: 0.06em;
}

.product-species {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
  min-height: 42px;
}

.product-card.product-card-promo .product-species {
  min-height: 0;
  font-size: 0.98rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.product-title {
  margin: 10px 0 14px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
  min-height: 52px;
}

.product-card.product-card-promo .product-title {
  margin: 0;
  min-height: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.product-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 12px;
}

.product-card.product-card-promo .product-meta {
  gap: 3px;
  margin-bottom: 0;
}

.product-price-stack {
  display: grid;
  gap: 4px;
}

.promo-product-price-original,
.product-price-original,
.dialog-price-original {
  color: #9ca3af;
  font-size: 0.82rem;
  text-decoration: line-through;
}

.product-price {
  color: var(--orange);
  font-size: 1.12rem;
  font-weight: 800;
}

.product-lead-time {
  color: var(--green);
  font-size: 0.82rem;
}

.product-promo-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.product-card.product-card-promo .product-promo-badges {
  gap: 6px;
  margin-bottom: 0;
}

.product-card.product-card-promo .product-promo-badges:empty {
  display: none;
}

.product-promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eefaf0;
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 700;
}

.product-promo-badge.discount {
  background: #fff4f6;
  border: 1px solid #ffb8c2;
  color: #ff5a6d;
}

.product-promo-badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: #ff5a6d;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
}

.product-promo-badge-value {
  line-height: 1;
  white-space: nowrap;
}

.product-promo-badge.monthly {
  background: #fff7e6;
  color: #b45309;
}

.product-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 2px;
}

.product-card.product-card-promo .product-stats {
  gap: 6px;
  align-items: center;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.product-stat-chip {
  padding: 6px 10px;
  border-radius: 999px;
  background: #f3f7f4;
  color: #516273;
  font-size: 0.77rem;
  font-weight: 600;
}

.product-card.product-card-promo .product-stat-chip {
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #5b677a;
  font-size: 0.76rem;
  font-weight: 700;
}

.product-card.product-card-promo .product-stat-chip + .product-stat-chip::before {
  content: "\2022";
  margin-right: 6px;
  color: #c4cdd6;
}

.dialog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dialog-tags span,
.order-chip {
  padding: 6px 10px;
  border-radius: 999px;
  background: #f3f4f6;
  color: var(--muted);
  font-size: 0.77rem;
}

.card-qty-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.product-card.product-card-promo .card-qty-row {
  margin-top: 8px;
}

.card-qty-row span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.card-qty-selector {
  display: inline-grid;
  grid-template-columns: 36px minmax(44px, 56px) 36px;
  align-items: center;
  border: 1px solid #dfe3e7;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.card-qty-button,
.qty-button,
.cart-remove-button,
.cart-drawer-close {
  cursor: pointer;
}

.card-qty-button {
  min-height: 36px;
  border: 0;
  background: #f7faf7;
  color: var(--green-dark);
  font-weight: 700;
}

.card-qty-input {
  width: 100%;
  min-height: 36px;
  border: 0;
  border-left: 1px solid #edf0f2;
  border-right: 1px solid #edf0f2;
  border-radius: 0;
  padding: 0 6px;
  text-align: center;
  font-weight: 700;
  background: #fff;
  appearance: textfield;
  -moz-appearance: textfield;
}

.card-qty-input::-webkit-outer-spin-button,
.card-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.product-card.product-card-promo .card-actions {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #ffe7d6;
}

.card-actions > button {
  width: 100%;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 10px;
  font-size: 0.92rem;
}

.cart-actions,
.dialog-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

body.mobile-filter-open {
  overflow: hidden;
}

.mobile-filter-layer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  justify-content: flex-end;
}

.mobile-filter-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.46);
}

.mobile-filter-panel {
  position: relative;
  width: min(420px, 100%);
  height: 100%;
  background: #f7faf8;
  box-shadow: -20px 0 48px rgba(15, 23, 42, 0.18);
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
}

.mobile-filter-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 18px 16px;
  border-bottom: 1px solid #e7ebef;
  background: #ffffff;
}

.mobile-filter-head h2 {
  margin: 0;
  font-size: 1.2rem;
}

.mobile-filter-body {
  overflow-y: auto;
  padding: 16px;
  display: grid;
  gap: 14px;
}

.mobile-filter-card {
  padding: 16px;
}

.mobile-filter-sort-field {
  align-items: stretch;
}

.mobile-filter-sort-field select {
  width: 100%;
  min-width: 0;
}

.mobile-filter-actions {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.mobile-chip-grid {
  gap: 10px;
}

.mobile-tag-chip {
  width: 100%;
  text-align: left;
}

.mobile-bottom-nav {
  display: none;
}

.mobile-bottom-nav-item {
  text-decoration: none;
  grid-auto-flow: row;
  align-content: center;
  justify-items: center;
  gap: 4px;
}

.mobile-bottom-nav-item::before {
  content: "";
  width: 18px;
  height: 18px;
  display: block;
  background: currentColor;
  -webkit-mask: var(--mobile-nav-icon) center / contain no-repeat;
  mask: var(--mobile-nav-icon) center / contain no-repeat;
}

#mobile-nav-home,
#buyer-mobile-nav-home {
  --mobile-nav-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 3 4 9v11h6v-6h4v6h6V9z' fill='black'/></svg>");
}

#mobile-nav-chat,
#buyer-mobile-nav-chat {
  --mobile-nav-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M5 5h14a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H9l-4 4v-4a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2zm2 4v2h10V9zm0 4v2h7v-2z' fill='black'/></svg>");
}

#mobile-nav-wishlist,
#buyer-mobile-nav-wishlist {
  --mobile-nav-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 20.8 4.9 13.9a4.8 4.8 0 0 1 0-6.8 4.9 4.9 0 0 1 7 0L12 8l.1-.9a4.9 4.9 0 0 1 7 0 4.8 4.8 0 0 1 0 6.8z' fill='black'/></svg>");
}

#mobile-nav-orders,
#buyer-mobile-nav-orders {
  --mobile-nav-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M7 3h10v2h2a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h2zm2 6v2h8V9zm0 4v2h8v-2zm0-8v2h6V5z' fill='black'/></svg>");
}

#mobile-nav-cart,
#buyer-mobile-nav-cart {
  --mobile-nav-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M3 5h2l2.1 9.2A2 2 0 0 0 9 16h7.8a2 2 0 0 0 2-1.6L20.5 8H7.2L6.7 6A2 2 0 0 0 4.8 4H3zm7 14a1.8 1.8 0 1 0 0 3.6A1.8 1.8 0 0 0 10 19zm8 0a1.8 1.8 0 1 0 0 3.6A1.8 1.8 0 0 0 18 19z' fill='black'/></svg>");
}

.wide-button {
  width: 100%;
}

.primary-button,
.ghost-button,
.dialog-close,
.tab-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  min-height: 42px;
  padding: 0 14px;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.primary-button {
  border: 0;
  background: var(--green);
  color: #fff;
  font-weight: 700;
}

.primary-button:hover {
  background: var(--green-dark);
}

.ghost-button {
  border: 1px solid #b9e5be;
  background: #fff;
  color: var(--green-dark);
  font-weight: 600;
}

.light-ghost-button {
  border-color: rgba(255, 255, 255, 0.36);
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.primary-button:hover,
.ghost-button:hover,
.dialog-close:hover,
.tab-button:hover {
  transform: translateY(-1px);
}

.primary-button:disabled,
.ghost-button:disabled,
.cart-trigger-button:disabled {
  opacity: 0.56;
  cursor: not-allowed;
  transform: none;
}

body.cart-drawer-open {
  overflow: hidden;
}

.cart-drawer-layer {
  position: fixed;
  inset: 0;
  z-index: 85;
}

.cart-drawer-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(49, 53, 59, 0.34);
  backdrop-filter: blur(2px);
}

.cart-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(420px, 100vw);
  height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 20px 18px;
  border-left: 1px solid var(--line);
  background: #fff;
  box-shadow: -18px 0 36px rgba(49, 53, 59, 0.16);
}

.cart-drawer-head,
.cart-drawer-head-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.cart-drawer-head-actions {
  align-items: center;
}

.cart-drawer-head {
  padding-bottom: 14px;
  border-bottom: 1px solid #eef0f2;
}

.cart-drawer-close {
  width: 40px;
  height: 40px;
  border: 1px solid #e1e5e8;
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font-size: 1.2rem;
}

.cart-drawer-body {
  flex: 1;
  min-height: 0;
  padding: 16px 0;
  overflow-y: auto;
}

.cart-drawer-footer {
  padding-top: 14px;
  border-top: 1px solid #eef0f2;
}

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

.cart-count {
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 0.82rem;
}

.cart-items,
.orders-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 120px;
}

.cart-item,
.empty-state,
.order-card {
  border: 1px solid #edf0f2;
  border-radius: 14px;
  background: #fbfcfc;
}

.cart-item,
.order-card {
  padding: 12px;
}

.empty-state {
  padding: 16px;
  color: var(--muted);
}

.cart-item-top,
.cart-item-top-right,
.cart-item-bottom,
.cart-total-row,
.summary-row,
.order-card-top,
.order-card-bottom {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.cart-item-top strong,
.cart-total-row strong,
.summary-row strong,
.order-card-top strong {
  color: var(--orange);
}

.cart-item-top-right {
  justify-content: flex-start;
  flex-direction: column;
  align-items: flex-end;
}

.cart-item-bottom,
.order-card-bottom {
  margin-top: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 0.84rem;
}

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

.qty-button {
  width: 28px;
  height: 28px;
  border: 1px solid #dfe3e7;
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
}

.cart-remove-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: #b91c1c;
  font-size: 0.8rem;
  font-weight: 700;
}

.cart-footer {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #eef0f2;
}

.cart-total-row {
  margin-bottom: 14px;
}

.cart-total-note {
  margin: -4px 0 14px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.product-dialog {
  width: min(1120px, calc(100% - 24px));
  border: 0;
  padding: 0;
  background: transparent;
}

#variant-picker-dialog {
  width: min(500px, calc(100% - 18px));
}

.product-dialog::backdrop {
  background: rgba(49, 53, 59, 0.38);
  backdrop-filter: blur(3px);
}

.dialog-shell {
  position: relative;
  border-radius: 24px;
  padding: 22px;
  background: #fff;
  box-shadow: var(--shadow-strong);
}

.auth-shell {
  width: min(520px, 100%);
  margin: 0 auto;
}

.checkout-shell {
  width: min(760px, 100%);
}

.variant-picker-shell {
  width: min(440px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 12px;
  padding: 18px;
}

.variant-picker-title {
  margin: 0;
  padding-right: 40px;
  color: #1f2937;
  font-size: 1.28rem;
  line-height: 1.15;
}

.variant-picker-summary {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #d8f0df;
  border-radius: 16px;
  background:
    radial-gradient(circle at top right, rgba(134, 239, 172, 0.22), transparent 38%),
    linear-gradient(180deg, #fdfffd 0%, #f2fbf4 100%);
}

.variant-picker-summary-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.variant-picker-summary-head strong {
  display: block;
  margin-top: 4px;
  color: #1f2937;
  font-size: 0.98rem;
  line-height: 1.4;
}

.variant-picker-summary-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.1);
  color: #0f8a3b;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.variant-picker-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 10px;
}

.variant-picker-price {
  color: var(--orange);
  font-size: 1.45rem;
  line-height: 1.02;
}

.variant-picker-price-original {
  color: #98a2b3;
  font-size: 0.92rem;
  text-decoration: line-through;
}

.variant-picker-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.variant-picker-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f4f7f5;
  color: #4c5e74;
  font-size: 0.76rem;
  font-weight: 700;
}

.variant-picker-chip.discount {
  border: 1px solid #ffb0bd;
  background: #fff7f8;
  color: #ff4d6d;
}

.variant-picker-chip.tone {
  background: #ebfbf0;
  color: #0f8a3b;
}

.variant-picker-field {
  gap: 8px;
}

.variant-picker-field select {
  min-height: 50px;
  padding-right: 46px;
  border-color: #bfe8ca;
  background-image:
    linear-gradient(45deg, transparent 50%, #3d6f4b 50%),
    linear-gradient(135deg, #3d6f4b 50%, transparent 50%),
    linear-gradient(180deg, #ffffff, #f7fcf8);
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-position:
    calc(100% - 18px) calc(50% - 2px),
    calc(100% - 12px) calc(50% - 2px),
    0 0;
  background-size:
    6px 6px,
    6px 6px,
    100% 100%;
  box-shadow: 0 10px 18px rgba(34, 197, 94, 0.08);
}

.variant-picker-qty-row {
  margin-top: 0;
  align-items: center;
}

.variant-picker-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 0;
}

.variant-picker-actions > button {
  width: 100%;
  min-width: 0;
}

.dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  border: 1px solid #e1e5e8;
  background: #fff;
  color: var(--text);
  font-size: 1.2rem;
}

.dialog-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 24px;
}

.dialog-image-stage {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #edf0f2;
}

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

.thumb-button {
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 1px solid #e3e7ea;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  cursor: pointer;
}

.thumb-button.active {
  border-color: var(--green);
}

.dialog-content h2 {
  margin: 0 0 6px;
  font-size: 1.8rem;
  line-height: 1.14;
}

.dialog-species {
  margin: 0 0 14px;
}

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

.dialog-meta div,
.checkout-summary {
  padding: 14px;
  border: 1px solid #edf0f2;
  border-radius: 14px;
  background: #fbfcfc;
}

.dialog-meta span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 7px;
}

.dialog-price-original {
  display: block;
  margin-bottom: 5px;
}

.checkout-grid {
  display: grid;
  gap: 14px;
}

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

.checkout-saved-address-section {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid #e2ebe5;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fcf9 100%);
}

.checkout-saved-address-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.checkout-saved-address-head h3 {
  margin: 4px 0 0;
  font-size: 1rem;
  line-height: 1.25;
}

.checkout-saved-address-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.checkout-saved-address-card {
  display: grid;
  gap: 8px;
  width: 100%;
  padding: 14px;
  border: 1px solid #dfe5e2;
  border-radius: 16px;
  background: #ffffff;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.checkout-saved-address-card:hover {
  border-color: #8dd39a;
  box-shadow: 0 12px 24px rgba(var(--accent-rgb), 0.08);
  transform: translateY(-1px);
}

.checkout-saved-address-card.active {
  border-color: #37b24d;
  background: linear-gradient(180deg, #ffffff 0%, #f1fbf3 100%);
  box-shadow: 0 14px 28px rgba(var(--accent-rgb), 0.12);
}

.checkout-saved-address-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.checkout-saved-address-recipient,
.checkout-saved-address-line,
.checkout-saved-address-summary,
.checkout-saved-address-empty,
.checkout-location-copy {
  color: #5b6877;
  font-size: 0.88rem;
  line-height: 1.5;
}

.checkout-saved-address-line {
  color: #314155;
}

.checkout-saved-address-empty {
  padding: 14px;
  border: 1px dashed #cdd8d1;
  border-radius: 14px;
  background: #fbfdfb;
}

.checkout-location-card {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px dashed #cfe0d4;
  border-radius: 14px;
  background: linear-gradient(180deg, #fbfdfb 0%, #f4faf5 100%);
}

.checkout-location-copy {
  margin: 0;
}

.summary-row-total {
  padding-top: 12px;
  border-top: 1px dashed #d6d9dd;
}

.checkout-summary-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.summary-value-text {
  max-width: 240px;
  color: var(--text);
  font-weight: 600;
  line-height: 1.45;
  text-align: right;
}

.dialog-description {
  color: #465160;
  line-height: 1.7;
}

.dialog-description p {
  margin: 0 0 12px;
}

.dialog-description ul {
  margin: 0 0 12px 18px;
  padding: 0;
}

.dialog-description li {
  margin-bottom: 6px;
}

.auth-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.tab-button {
  flex: 1;
  border: 1px solid #dfe3e7;
  background: #fff;
  color: var(--muted);
  font-weight: 700;
}

.tab-button.active {
  border-color: #99dca4;
  background: var(--green-soft);
  color: var(--green-dark);
}

.auth-form,
.checkout-form {
  display: grid;
  gap: 14px;
}

.recaptcha-field {
  display: grid;
  gap: 8px;
}

.recaptcha-slot {
  min-height: 78px;
  overflow-x: auto;
}

.recaptcha-note {
  color: var(--muted);
  font-size: 0.82rem;
}

.auth-inline-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.auth-inline-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--green-dark);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.forgot-password-shell {
  max-width: 460px;
}

.admin-pin-shell {
  max-width: 420px;
}

.admin-pin-copy,
.forgot-password-copy {
  margin: 0;
}

.reset-password-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
  background:
    radial-gradient(circle at top left, rgba(var(--accent-rgb), 0.08), transparent 30%),
    linear-gradient(180deg, #f7fbf8 0%, #ffffff 100%);
}

.reset-password-shell {
  width: min(100%, 480px);
  padding: 28px;
  border-radius: 24px;
  border: 1px solid #dcefe0;
  background: #ffffff;
  box-shadow: 0 24px 44px rgba(15, 23, 42, 0.08);
  display: grid;
  gap: 16px;
}

.reset-password-brand {
  display: flex;
  justify-content: center;
}

.reset-password-brand img {
  width: min(100%, 260px);
  height: auto;
}

.reset-password-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.reset-password-success {
  display: grid;
  gap: 12px;
}

.contact-shell {
  max-width: 460px;
}

.contact-security-copy {
  margin: 0;
}

.contact-dialog-actions {
  display: grid;
  gap: 12px;
}

.contact-message-preview {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid #dcefe0;
  border-radius: 14px;
  background: #f7fbf8;
}

.contact-message-text {
  margin: 0;
  white-space: pre-wrap;
  color: var(--text);
  font: inherit;
  line-height: 1.5;
}

.checkout-address-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
}

.checkbox-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 0.9rem;
}

.checkbox-line input {
  flex: 0 0 auto;
}

.oauth-google-button {
  width: 100%;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #ffffff;
  color: #3c4043;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.oauth-google-button:hover:not(:disabled) {
  border-color: #b8c4d0;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.oauth-google-button:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.oauth-google-button-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.oauth-google-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}

.oauth-google-label {
  min-width: 84px;
  text-align: left;
  letter-spacing: 0.01em;
}

.auth-section-title {
  margin: 14px 0 0;
  color: #111827;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.3;
  text-align: left;
}

.form-feedback {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #f7d78b;
}

.form-feedback.success {
  background: #edf9ef;
  color: var(--accent-ink);
  border-color: #b7e3bf;
}

.loading-card,
.error-card {
  grid-column: 1 / -1;
  padding: 24px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
  color: var(--muted);
}

.error-card {
  color: #c23d2a;
}

.payment-summary,
.admin-panel,
.admin-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.payment-summary {
  padding: 16px;
  color: var(--muted);
  line-height: 1.6;
}

.payment-summary strong,
.payment-copy strong {
  color: var(--green-dark);
  display: block;
  margin-bottom: 8px;
}

.payment-summary img,
.payment-qris-stage img,
.upload-preview img,
.admin-proof img {
  width: 100%;
  display: block;
  border-radius: 14px;
}

.payment-summary p,
.payment-copy p {
  margin: 0;
}

.payment-method-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
}

.payment-method-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eefaf0;
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 700;
}

.payment-method-chip.unavailable {
  background: #fef2f2;
  color: #b91c1c;
}

.admin-panel {
  margin-top: 22px;
  padding: 20px;
}

.admin-summary-grid,
.admin-finance-grid,
.admin-finance-grid-full,
.admin-products-grid {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.admin-summary-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.admin-finance-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.admin-finance-grid-full {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.admin-products-grid {
  grid-template-columns: minmax(340px, 420px) minmax(0, 1fr);
}

.backup-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 18px;
  margin-top: 18px;
}

.backup-block {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #e6ebee;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #fbfcfc);
}

.backup-restore-block {
  border-color: #d7e8db;
  background: linear-gradient(180deg, #ffffff, #f6fbf7);
}

.backup-source-list,
.backup-safety-list {
  display: grid;
  gap: 12px;
}

.backup-source-item,
.backup-safety-item {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid #e7ecef;
  border-radius: 14px;
  background: #ffffff;
}

.backup-source-item strong,
.backup-safety-item strong {
  color: var(--text);
  font-size: 0.95rem;
}

.backup-source-item span,
.backup-safety-item span {
  color: var(--muted);
  font-size: 0.88rem;
}

.backup-source-item small,
.backup-safety-item small {
  color: var(--green-dark);
  font-weight: 700;
}

.backup-selected-file {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px dashed #cfe0d3;
  border-radius: 14px;
  background: #fcfffc;
}

.admin-panel-head,
.admin-orders-top,
.admin-order-head,
.admin-order-meta,
.admin-order-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.admin-finance-toolbar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  align-items: end;
}

.admin-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(360px, 420px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.admin-grid > * {
  min-width: 0;
}

.admin-grid > :only-child {
  grid-column: 1 / -1;
}

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

.dashboard-hero-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.9fr);
  gap: 18px;
  align-items: start;
}

.dashboard-overview-shell,
.dashboard-insight-shell,
.dashboard-data-panel,
.dashboard-route-shell {
  padding: 22px;
}

.dashboard-overview-shell {
  display: grid;
  gap: 18px;
  border-color: #dfe8e3;
  background:
    radial-gradient(circle at top right, rgba(var(--accent-rgb), 0.14), transparent 32%),
    radial-gradient(circle at bottom left, rgba(var(--accent-rgb), 0.07), transparent 26%),
    linear-gradient(180deg, #ffffff, #f8fcf9);
}

.dashboard-overview-head,
.dashboard-chart-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.dashboard-live-status {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.dashboard-live-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent-deep);
  font-size: 0.82rem;
  font-weight: 800;
}

.dashboard-live-chip::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--accent-color);
  box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.45);
  animation: dashboard-live-pulse 1.8s ease-out infinite;
}

.dashboard-last-sync {
  color: #64748b;
  font-size: 0.84rem;
}

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

.dashboard-chart-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(280px, 0.95fr);
  gap: 16px;
}

.finance-chart-grid {
  margin-top: 18px;
}

.dashboard-chart-shell {
  display: grid;
  gap: 14px;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid #e5eaee;
  background:
    radial-gradient(circle at top right, rgba(var(--accent-rgb), 0.05), transparent 30%),
    linear-gradient(180deg, #ffffff, #fbfcfd);
}

.dashboard-chart-shell-secondary {
  align-content: start;
}

.dashboard-chart-head h3 {
  margin: 0;
}

.dashboard-chart-highlight {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f5f8fb;
  border: 1px solid #e3eaf0;
  color: #475569;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
}

.dashboard-live-graph {
  min-height: 312px;
  padding: 10px 12px;
  border-radius: 22px;
  border: 1px solid #e7edf1;
  background: linear-gradient(180deg, #ffffff, #f8fbfd);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.dashboard-graph-stage,
.dashboard-graph-svg {
  width: 100%;
}

.dashboard-graph-svg {
  height: auto;
  display: block;
}

.dashboard-graph-grid-line {
  stroke: #e7edf2;
  stroke-width: 1;
}

.dashboard-graph-bar {
  fill: rgba(148, 163, 184, 0.28);
}

.dashboard-graph-bar-label {
  fill: #64748b;
  font-size: 11px;
  font-weight: 700;
}

.dashboard-graph-area {
  fill: url(#dashboardRevenueFill);
}

.dashboard-graph-line {
  fill: none;
  stroke: var(--accent-strong);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dashboard-graph-point {
  fill: #ffffff;
  stroke: var(--accent-color);
  stroke-width: 3;
}

.dashboard-graph-point-glow {
  fill: rgba(var(--accent-rgb), 0.12);
}

.dashboard-graph-axis-label {
  fill: #64748b;
  font-size: 11px;
  font-weight: 700;
}

.dashboard-live-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dashboard-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #e5eaef;
  background: #ffffff;
  color: #475569;
  font-size: 0.84rem;
}

.dashboard-legend-item strong {
  color: #1f2937;
}

.dashboard-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  flex: 0 0 auto;
}

.dashboard-legend-dot.revenue {
  background: var(--accent-color);
}

.dashboard-legend-dot.orders {
  background: rgba(148, 163, 184, 0.9);
}

.dashboard-legend-dot.insight {
  background: #f59e0b;
}

.dashboard-status-pulse {
  display: grid;
  gap: 12px;
}

.dashboard-status-row {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) minmax(0, 1.25fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid #e7ecef;
  background: #ffffff;
}

.dashboard-status-copy {
  display: grid;
  gap: 4px;
}

.dashboard-status-copy strong {
  color: #1f2937;
}

.dashboard-status-copy span,
.dashboard-status-percent {
  color: #64748b;
  font-size: 0.84rem;
}

.dashboard-status-bar {
  position: relative;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: #eef2f5;
}

.dashboard-status-bar span {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-color), var(--accent-strong));
}

.dashboard-status-row.tone-pending .dashboard-status-bar span {
  background: linear-gradient(90deg, #f59e0b, #f97316);
}

.dashboard-status-row.tone-success .dashboard-status-bar span {
  background: linear-gradient(90deg, #16a34a, var(--accent-color));
}

.dashboard-status-row.tone-cancelled .dashboard-status-bar span {
  background: linear-gradient(90deg, #ef4444, #f97316);
}

.finance-mix-shell {
  display: grid;
  gap: 12px;
  margin-top: 4px;
}

.finance-mix-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.finance-mix-head h4 {
  margin: 0;
  color: #1f2937;
}

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

.finance-mix-row {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(0, 1.15fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid #e7ecef;
  background: #ffffff;
}

.finance-mix-copy {
  display: grid;
  gap: 4px;
}

.finance-mix-copy strong {
  color: #1f2937;
}

.finance-mix-copy span,
.finance-mix-percent {
  color: #64748b;
  font-size: 0.84rem;
}

.finance-mix-bar {
  position: relative;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: #eef2f5;
}

.finance-mix-bar span {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-color), var(--accent-strong));
}

.dashboard-side-column {
  display: grid;
  gap: 18px;
}

.dashboard-insight-shell {
  display: grid;
  gap: 16px;
  background:
    radial-gradient(circle at top right, rgba(var(--accent-rgb), 0.08), transparent 32%),
    linear-gradient(180deg, #ffffff, #fbfcfd);
}

.dashboard-insight-feed,
.dashboard-recent-orders,
.dashboard-top-products,
.dashboard-banner-performance {
  display: grid;
  gap: 12px;
}

.dashboard-insight-item {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid #e7ecef;
  background: #ffffff;
}

.dashboard-insight-item span {
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.dashboard-insight-item strong {
  color: #1f2937;
  font-size: 1.08rem;
}

.dashboard-insight-item p {
  margin: 0;
  color: #64748b;
  font-size: 0.88rem;
  line-height: 1.55;
}

.dashboard-insight-item.tone-pending {
  border-color: #fde1b2;
  background: linear-gradient(180deg, #fffaf2, #ffffff);
}

.dashboard-insight-item.tone-success {
  border-color: #cfe8d4;
  background: linear-gradient(180deg, #f4fbf5, #ffffff);
}

.dashboard-insight-item.tone-info {
  border-color: #d7e3ff;
  background: linear-gradient(180deg, #f5f8ff, #ffffff);
}

.dashboard-insight-item.tone-neutral {
  border-color: #e6eaef;
  background: linear-gradient(180deg, #fafbfc, #ffffff);
}

.dashboard-order-feed-item,
.dashboard-banner-item,
.dashboard-ranking-item {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid #e7ecef;
  background: #ffffff;
}

.dashboard-order-feed-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.dashboard-order-feed-copy,
.dashboard-order-feed-meta,
.dashboard-ranking-copy,
.dashboard-banner-item-copy {
  display: grid;
  gap: 4px;
}

.dashboard-order-feed-copy strong,
.dashboard-ranking-copy strong,
.dashboard-banner-item-copy strong {
  color: #1f2937;
}

.dashboard-order-feed-copy span,
.dashboard-order-feed-copy small,
.dashboard-ranking-copy span,
.dashboard-banner-item-copy span {
  color: #64748b;
  font-size: 0.85rem;
  line-height: 1.55;
}

.dashboard-order-feed-meta {
  justify-items: end;
}

.dashboard-order-feed-meta strong {
  color: #1f2937;
}

.dashboard-secondary-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.dashboard-data-panel {
  display: grid;
  gap: 16px;
  background:
    radial-gradient(circle at top right, rgba(var(--accent-rgb), 0.06), transparent 28%),
    linear-gradient(180deg, #ffffff, #fbfcfd);
}

.dashboard-section-note {
  color: #64748b;
  font-size: 0.84rem;
  line-height: 1.5;
}

.dashboard-ranking-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.dashboard-ranking-index {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(var(--accent-rgb), 0.11);
  color: var(--accent-deep);
  font-weight: 800;
}

.dashboard-ranking-value {
  color: #1f2937;
  text-align: right;
}

.dashboard-banner-highlight {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.dashboard-banner-highlight div {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid #e7ecef;
  background: #ffffff;
}

.dashboard-banner-highlight span {
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.dashboard-banner-highlight strong,
.dashboard-banner-item-metrics strong {
  color: #1f2937;
}

.dashboard-banner-list {
  display: grid;
  gap: 10px;
}

.dashboard-banner-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.dashboard-banner-item-metrics {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 12px;
  color: #64748b;
  font-size: 0.84rem;
}

.dashboard-route-shell {
  margin-top: 24px;
  display: grid;
  gap: 18px;
}

.dashboard-route-shell .admin-route-grid {
  margin-top: 0;
}

.admin-route-card {
  display: grid;
  gap: 10px;
  padding: 20px;
  border: 1px solid #e7eaee;
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(var(--accent-rgb), 0.07), transparent 32%),
    linear-gradient(180deg, #ffffff, #f9fcfa);
  color: inherit;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.admin-route-card::before {
  content: "";
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-block;
  background-color: rgba(var(--accent-rgb), 0.12);
  background-image: var(--admin-route-icon, none);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 22px 22px;
  opacity: 0.96;
}

.admin-route-card:hover {
  transform: translateY(-2px);
  border-color: #cde8d3;
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.08);
}

.admin-route-card h2 {
  margin: 0;
  color: var(--text);
  font-size: 1.12rem;
}

.admin-route-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.admin-route-card[href*="/daftar-order/"] {
  --admin-route-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M7 4h10l1 2h3v2h-1l-1.2 9.1A2 2 0 0 1 16.8 19H7.2a2 2 0 0 1-2-1.9L4 8H3V6h3zm0 4 .9 7h8.2l.9-7z'/></svg>");
}

.admin-route-card[href*="/live-chat/"] {
  --admin-route-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M4 5h16v11H7l-3 3zm2 2v7h1.2L9 12h9V7z'/></svg>");
}

.admin-route-card[href*="/reviews/"] {
  --admin-route-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 2 9.5 8.2 3 9l4.8 4.2L6.5 20 12 16.8 17.5 20l-1.3-6.8L21 9l-6.5-.8z'/></svg>");
}

.admin-route-card[href*="/keuangan/"] {
  --admin-route-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M5 19V9h3v10zm5 0V5h3v14zm5 0v-7h3v7z'/></svg>");
}

.admin-route-card[href*="/pembayaran/"] {
  --admin-route-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M3 6h18v12H3zm2 2v2h14V8zm0 5h5v2H5z'/></svg>");
}

.admin-route-card[href*="/tema/"] {
  --admin-route-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 3a9 9 0 1 0 0 18h1a3 3 0 0 0 0-6h-1a1 1 0 0 1 0-2h2a4 4 0 0 0 0-8zm-4 8a1.2 1.2 0 1 1 0-2.4A1.2 1.2 0 0 1 8 11zm3-4a1.2 1.2 0 1 1 0-2.4A1.2 1.2 0 0 1 11 7zm5 1a1.2 1.2 0 1 1 0-2.4A1.2 1.2 0 0 1 16 8z'/></svg>");
}

.admin-route-card[href*="/daftar-produk/"] {
  --admin-route-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M4 4h7v7H4zm9 0h7v7h-7zM4 13h7v7H4zm9 3h7v2h-7zm0-3h7v2h-7zm0 6h7v2h-7z'/></svg>");
}

.admin-route-card[href*="/promo-center/"] {
  --admin-route-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 2 9.5 8.2 3 9l4.8 4.2L6.5 20 12 16.8 17.5 20l-1.3-6.8L21 9l-6.5-.8z'/></svg>");
}

.admin-route-card[href*="/banner-manager/"] {
  --admin-route-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M4 5h16v10H4zm2 2v6h12V7zm-2 10h10v2H4z'/></svg>");
}

.admin-route-card[href*="/daftar-akun/"] {
  --admin-route-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 12a4 4 0 1 0-4-4 4 4 0 0 0 4 4zm0 2c-4.4 0-8 2-8 4.5V21h16v-2.5c0-2.5-3.6-4.5-8-4.5z'/></svg>");
}

.admin-route-card[href*="/notifikasi/"] {
  --admin-route-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 22a2.5 2.5 0 0 0 2.4-2h-4.8A2.5 2.5 0 0 0 12 22zm7-5V11a7 7 0 0 0-14 0v6l-2 2v1h18v-1z'/></svg>");
}

.admin-route-card[href*="/security-logs/"] {
  --admin-route-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 2 5 5v6c0 5 3.4 9.7 7 11 3.6-1.3 7-6 7-11V5zm0 5a2 2 0 1 1-2 2 2 2 0 0 1 2-2zm3.4 8H8.6v-1.2a3.4 3.4 0 0 1 6.8 0z'/></svg>");
}

.admin-route-card[href*="/pusat-audit/"] {
  --admin-route-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M6 3h9l5 5v13H6zm8 1.5V9h4.5zM9 12h8v2H9zm0 4h8v2H9zm0-8h3v2H9z'/></svg>");
}

.admin-route-card[href*="/backup/"] {
  --admin-route-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 3 5 7v5c0 4.7 2.9 8.9 7 10 4.1-1.1 7-5.3 7-10V7zm0 3.3 3 1.3V12c0 3-1.6 5.8-3 6.8-1.4-1-3-3.8-3-6.8V7.6z'/></svg>");
}

.admin-section-copy {
  margin: 10px 0 0;
}

.admin-card {
  min-width: 0;
  padding: 20px;
}

.product-editor-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 420px);
  align-items: start;
  gap: 20px;
}

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

.product-editor-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 10px;
}

.product-editor-copy {
  max-width: 620px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.product-mode-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: #eefaf0;
  color: var(--green-dark);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.product-editor-form {
  gap: 16px;
}

.product-form-section {
  border: 1px solid #e7eaee;
  border-radius: 20px;
  padding: 18px;
  background:
    radial-gradient(circle at top right, rgba(var(--accent-rgb), 0.06), transparent 34%),
    linear-gradient(180deg, #ffffff, #f9fcfa);
}

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

.product-form-section-head h3 {
  margin: 4px 0 0;
  font-size: 1.08rem;
}

.product-form-section-head p:last-child {
  max-width: 360px;
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

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

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

.field-block-wide {
  grid-column: 1 / -1;
}

.field-note {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.field-caption {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.product-inline-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.product-variant-row {
  border: 1px solid #e7eaee;
  border-radius: 16px;
  padding: 14px;
  background: linear-gradient(180deg, #ffffff, #f9fbff);
}

.product-variant-row-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

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

.product-variant-summary {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f7fafc;
  border: 1px solid #e4ebf1;
  color: var(--text-secondary);
  font-size: 0.8rem;
  line-height: 1.5;
}

.product-media-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.92fr) minmax(240px, 1.08fr);
  gap: 18px;
  align-items: start;
}

.product-preview-panel {
  display: grid;
}

.product-upload-preview,
.product-compose-image {
  min-height: 220px;
}

.product-action-bar {
  position: static;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 18px;
  padding-top: 18px;
  margin-top: 6px;
  border-top: 1px solid #e7ecef;
  background: transparent;
}

.product-action-copy {
  display: grid;
  gap: 6px;
}

.product-action-copy strong {
  color: var(--text);
  font-size: 1rem;
}

.product-action-copy span {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.product-editor-side {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 18px;
}

.product-editor-preview-card,
.product-editor-guide-card,
.product-history-card {
  min-width: 0;
}

.product-preview-header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.product-preview-id,
.product-preview-category {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.product-preview-id {
  background: #f3f4f6;
  color: var(--muted);
}

.product-preview-category {
  background: #eefaf0;
  color: var(--green-dark);
}

.product-compose-content {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.product-compose-content h3 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.35;
}

.product-compose-title,
.product-compose-summary {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.product-compose-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #e7eaee;
  border-radius: 16px;
  background: #fbfcfc;
}

.product-compose-stats strong {
  color: var(--orange);
  font-size: 1.16rem;
}

.product-compose-stats span {
  color: var(--green-dark);
  font-size: 0.84rem;
  font-weight: 700;
}

.product-compose-stats-secondary strong {
  color: var(--green-dark);
  font-size: 0.96rem;
}

.product-compose-stats-secondary span {
  color: var(--muted);
}

.product-compose-variants {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-compose-variants span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f5f7f6;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.product-history-summary {
  display: grid;
  gap: 10px;
}

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

.product-history-stat {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(240, 249, 240, 0.9));
}

.product-history-stat span {
  font-size: 0.78rem;
  color: var(--muted);
}

.product-history-stat strong {
  font-size: 1.08rem;
  color: var(--text);
}

.product-history-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

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

.product-history-item {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}

.product-history-item.stock {
  border-color: rgba(16, 185, 129, 0.25);
  background: linear-gradient(180deg, rgba(240, 253, 244, 0.95), rgba(255, 255, 255, 1));
}

.product-history-item.price {
  border-color: rgba(249, 115, 22, 0.22);
  background: linear-gradient(180deg, rgba(255, 247, 237, 0.95), rgba(255, 255, 255, 1));
}

.product-history-item.product {
  border-color: rgba(37, 99, 235, 0.18);
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.92), rgba(255, 255, 255, 1));
}

.product-history-item-head,
.product-history-meta,
.product-history-change-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.product-history-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-history-badge.stock {
  background: rgba(16, 185, 129, 0.14);
  color: #047857;
}

.product-history-badge.price {
  background: rgba(249, 115, 22, 0.14);
  color: #c2410c;
}

.product-history-badge.product {
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
}

.product-history-time,
.product-history-meta span {
  color: var(--muted);
  font-size: 0.84rem;
}

.product-history-title {
  color: var(--text);
  font-size: 0.98rem;
}

.product-history-change-list {
  display: grid;
  gap: 8px;
}

.product-history-change-item {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.product-history-change-item strong {
  color: var(--text);
  font-size: 0.84rem;
}

.product-history-change-item span {
  color: var(--muted);
  font-size: 0.82rem;
}

.admin-summary-card {
  padding: 18px;
  border: 1px solid #e6eaee;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #f9fcfa);
}

.admin-summary-card span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 8px;
}

.admin-summary-card strong {
  display: block;
  color: var(--green-dark);
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.admin-summary-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.dashboard-kpi-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(var(--accent-rgb), 0.12);
  background:
    linear-gradient(180deg, rgba(var(--accent-rgb), 0.08), rgba(255, 255, 255, 0.96) 52%),
    #ffffff;
}

.dashboard-kpi-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--accent-color), var(--accent-strong));
}

@keyframes dashboard-live-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.42);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(var(--accent-rgb), 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0);
  }
}

.admin-orders-card {
  min-width: 0;
  display: grid;
  gap: 18px;
}

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

.admin-order-ops-toolbar {
  margin: 16px 0 0;
  padding: 14px 16px;
  border: 1px solid #dbe7dd;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f8fbf9);
}

.admin-order-ops-select {
  min-width: 188px;
  min-height: 42px;
}

.admin-order-tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid #dbe2e8;
  border-radius: 999px;
  background: #ffffff;
  color: #4b5563;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.admin-order-tab strong {
  color: inherit;
  font-size: 0.82rem;
}

.admin-order-tab:hover,
.admin-order-tab.active {
  border-color: #92d39e;
  background: #eefaf0;
  color: #0b8c24;
  transform: translateY(-1px);
}

.admin-products-card {
  min-width: 0;
  display: grid;
  gap: 18px;
}

.admin-accounts-card {
  min-width: 0;
  display: grid;
  gap: 18px;
}

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

.admin-form-divider {
  height: 1px;
  margin: 6px 0 2px;
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.18), rgba(148, 163, 184, 0.12));
}

.admin-totp-preview {
  min-height: 220px;
}

.admin-totp-preview img {
  max-width: 220px;
  width: 100%;
}

.gateway-inline-actions {
  margin-top: 10px;
}

.gateway-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 16px;
}

.gateway-status-card {
  border: 1px solid #e7eaee;
  border-radius: 16px;
  padding: 14px;
  background: #fbfcfc;
  display: grid;
  gap: 6px;
}

.gateway-status-card span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.gateway-status-card strong {
  color: var(--text);
  font-size: 1rem;
}

.gateway-status-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.payment-config-section {
  margin-top: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(24, 112, 62, 0.14);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(247, 252, 248, 0.98), rgba(255, 255, 255, 0.98));
  box-shadow: 0 16px 32px rgba(34, 74, 52, 0.04);
}

.payment-config-section-head {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
}

.payment-config-section-head strong {
  font-size: 1rem;
  color: var(--text);
}

.payment-config-section-head span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.payment-mode-helper {
  margin: 4px 0 12px;
}

.payment-mode-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 10px;
}

.payment-mode-native-field {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.payment-mode-panel {
  appearance: none;
  -webkit-appearance: none;
  display: grid;
  gap: 6px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #e3e7eb;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f7f9fa);
  box-shadow: 0 12px 28px rgba(40, 52, 64, 0.04);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, background 0.18s ease;
  text-align: left;
  cursor: pointer;
}

.payment-mode-panel.active {
  border-color: rgba(24, 112, 62, 0.28);
  background: linear-gradient(180deg, #ffffff, #eef9f0);
  box-shadow: 0 18px 34px rgba(24, 112, 62, 0.08);
  transform: translateY(-1px);
}

.payment-mode-panel:hover {
  border-color: rgba(24, 112, 62, 0.22);
  box-shadow: 0 16px 30px rgba(24, 112, 62, 0.07);
}

.payment-mode-panel:focus,
.payment-mode-panel:focus-visible {
  outline: none;
  border-color: #72c88b;
  box-shadow: 0 0 0 4px var(--control-focus), 0 16px 30px rgba(24, 112, 62, 0.09);
}

.payment-mode-panel strong {
  color: var(--text);
  font-size: 1rem;
}

.payment-mode-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.9rem;
}

.payment-mode-step {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(24, 112, 62, 0.08);
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.payment-config-section-essentials {
  margin-top: 10px;
  border-color: rgba(20, 98, 54, 0.2);
  background: linear-gradient(180deg, rgba(240, 250, 243, 0.98), rgba(255, 255, 255, 0.98));
}

.gateway-status-success {
  background: linear-gradient(180deg, #ffffff, #f2fbf4);
  border-color: #cfead6;
}

.gateway-status-warn {
  background: linear-gradient(180deg, #ffffff, #fff9ed);
  border-color: #f4dfb5;
}

.gateway-status-info {
  background: linear-gradient(180deg, #ffffff, #f7fafc);
}

.admin-orders-list {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.admin-order-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.admin-order-group {
  border: 1px solid #e7eaee;
  border-radius: 18px;
  padding: 16px;
  background: linear-gradient(180deg, #ffffff, #f8fbf9);
}

.admin-order-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-order-group-head h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--text);
}

.admin-order-group .admin-orders-list {
  margin-top: 14px;
}

.admin-order-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 2px solid #c9d5df;
  border-radius: 22px;
  padding: 20px;
  background:
    radial-gradient(circle at top right, rgba(var(--accent-rgb), 0.08), transparent 30%),
    linear-gradient(180deg, #ffffff, #f7faf9);
  box-shadow:
    0 18px 40px rgba(15, 23, 42, 0.08),
    0 2px 8px rgba(15, 23, 42, 0.04);
}

.admin-order-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 8px;
  background: linear-gradient(180deg, var(--accent-strong), #0ea5e9);
  z-index: 0;
}

.admin-order-card::after {
  content: "";
  position: absolute;
  inset: 10px 10px 10px 18px;
  border: 1px solid rgba(201, 213, 223, 0.95);
  border-radius: 16px;
  pointer-events: none;
  z-index: 0;
}

.admin-order-card-compact {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
}

.admin-order-head-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}

.admin-order-list-head {
  align-items: flex-start;
}

.admin-order-list-identity,
.admin-order-list-preview,
.admin-order-preview-copy {
  display: grid;
  gap: 6px;
}

.admin-order-select-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.admin-order-select-checkbox {
  flex: 0 0 auto;
}

.admin-order-list-identity strong {
  font-size: 1.05rem;
}

.admin-order-list-identity span,
.admin-order-preview-copy span,
.admin-order-preview-more,
.admin-order-list-notes {
  color: var(--muted);
}

.admin-order-list-tracking strong {
  color: var(--text);
  font-weight: 800;
}

.admin-order-list-tracking-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-order-list-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
}

.admin-order-list-meta span:nth-child(2) {
  text-align: center;
}

.admin-order-list-meta span:last-child {
  text-align: right;
  color: var(--text);
  font-weight: 800;
}

.admin-order-list-preview {
  padding: 12px;
  border: 1px solid #e7eaee;
  border-radius: 16px;
  background: #ffffff;
}

.admin-order-preview-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.admin-order-preview-item + .admin-order-preview-item {
  padding-top: 10px;
  border-top: 1px solid #edf0f3;
}

.admin-order-preview-item.cancelled {
  opacity: 0.8;
}

.admin-order-preview-media {
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-order-preview-thumb,
.admin-order-preview-thumb-fallback {
  width: 56px;
  height: 56px;
  border-radius: 15px;
}

.admin-order-preview-thumb {
  object-fit: cover;
  display: block;
  background: #f6f7f9;
}

.admin-order-preview-thumb-fallback {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #dff7e4, #edf9ef);
  color: #0b8c24;
  font-weight: 800;
}

.admin-order-preview-copy strong,
.admin-order-preview-price {
  color: var(--text);
}

.admin-order-preview-copy {
  min-width: 0;
}

.admin-order-preview-copy span {
  font-size: 0.88rem;
  line-height: 1.6;
}

.admin-order-preview-price {
  white-space: nowrap;
  font-weight: 800;
}

.admin-order-preview-more {
  padding-top: 6px;
  border-top: 1px dashed #d6dde3;
  font-size: 0.84rem;
}

.admin-order-list-notes {
  margin: 0;
}

.admin-order-detail-card,
.admin-order-detail-top {
  display: grid;
  gap: 16px;
}

.admin-order-detail-top {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.admin-order-footer-note small {
  color: var(--muted);
  line-height: 1.6;
}

.admin-order-items-list {
  gap: 10px;
}

.admin-order-item-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid #e7eaee;
  border-radius: 16px;
  background: #ffffff;
}

.admin-order-item-row.no-checkbox {
  grid-template-columns: minmax(0, 1fr);
}

.admin-order-item-row.cancelled {
  border-color: #f3c1c1;
  background: linear-gradient(180deg, #fff7f7, #ffffff);
}

.admin-cancel-item-checkbox {
  margin-top: 4px;
}

.admin-order-item-copy,
.admin-order-item-cancel-note,
.admin-cancellation-card {
  display: grid;
  gap: 8px;
}

.admin-order-item-top,
.admin-cancellation-head,
.admin-cancellation-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.admin-order-item-top strong,
.admin-order-item-total,
.admin-cancellation-head strong {
  color: var(--text);
}

.admin-order-item-total {
  font-weight: 800;
  white-space: nowrap;
}

.admin-order-item-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.admin-order-item-variant,
.admin-order-preview-variant {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eefaf0;
  border: 1px solid #d4ead9;
  color: #0b8c24;
  font-size: 0.76rem;
  font-weight: 700;
}

.admin-order-item-cancel-note {
  padding: 10px 12px;
  border-radius: 14px;
  background: #fff1f1;
}

.admin-order-item-cancel-note strong,
.admin-order-item-cancel-note span,
.admin-order-item-cancel-note p {
  color: #991b1b;
}

.admin-order-item-cancel-note p {
  margin: 0;
  line-height: 1.65;
  font-size: 0.84rem;
}

.admin-cancellation-card {
  margin: 14px 0;
  padding: 16px;
  border: 1px solid #f0d4d4;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff8f8, #ffffff);
}

.admin-cancellation-card-dialog {
  margin: 0;
}

.admin-cancellation-card.is-disabled {
  opacity: 0.82;
}

.admin-cancellation-head span,
.admin-cancellation-selection,
.admin-cancellation-note small {
  color: var(--muted);
  font-size: 0.84rem;
}

.admin-cancellation-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
  gap: 14px;
}

.admin-cancellation-note {
  padding: 12px 14px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px dashed #efc2c2;
}

.admin-cancellation-note span {
  color: #7f1d1d;
  line-height: 1.6;
  font-weight: 600;
}

.danger-ghost-button {
  border-color: #efc2c2;
  color: #b42318;
  background: #fff7f7;
}

.danger-ghost-button:hover {
  border-color: #e49b9b;
  background: #fff1f1;
}

.admin-cancel-dialog {
  width: min(920px, calc(100% - 28px));
  max-width: 920px;
  padding: 0;
  border: none;
  background: transparent;
}

.admin-cancel-dialog::backdrop {
  background: rgba(15, 23, 42, 0.44);
  backdrop-filter: blur(3px);
}

.admin-tracking-dialog {
  width: min(760px, calc(100% - 28px));
  max-width: 760px;
  padding: 0;
  border: none;
  background: transparent;
}

.admin-tracking-dialog::backdrop {
  background: rgba(15, 23, 42, 0.44);
  backdrop-filter: blur(3px);
}

.admin-confirm-dialog-shell {
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid #e7eaee;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 28px 90px rgba(15, 23, 42, 0.24);
}

.admin-confirm-dialog-copy {
  display: grid;
  gap: 6px;
}

.admin-confirm-dialog-copy strong,
.admin-confirm-dialog-item strong {
  color: #1f2937;
}

.admin-confirm-dialog-copy p {
  margin: 0;
  color: #64748b;
  line-height: 1.6;
}

.admin-confirm-dialog-list {
  display: grid;
  gap: 10px;
}

.admin-confirm-dialog-item,
.admin-confirm-dialog-more {
  padding: 12px 14px;
  border: 1px solid #e3ebe5;
  border-radius: 16px;
  background: linear-gradient(180deg, #fbfefd 0%, #f4f9f5 100%);
}

.admin-confirm-dialog-item {
  display: grid;
  gap: 4px;
}

.admin-confirm-dialog-item span,
.admin-confirm-dialog-more {
  color: #64748b;
  font-size: 0.88rem;
}

.admin-confirm-dialog-actions {
  justify-content: flex-end;
}

#admin-generic-dialog {
  width: min(560px, calc(100% - 28px));
  max-width: 560px;
}

#admin-product-bulk-dialog {
  width: min(520px, calc(100% - 28px));
  max-width: 520px;
}

.admin-confirm-dialog-field {
  margin-top: -2px;
}

.admin-confirm-dialog-input {
  width: 100%;
}

.admin-cancel-dialog-shell {
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid #e7eaee;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 28px 90px rgba(15, 23, 42, 0.24);
}

.admin-tracking-dialog-shell {
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid #e7eaee;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 28px 90px rgba(15, 23, 42, 0.24);
}

.admin-cancel-dialog-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.admin-cancel-dialog-head h2 {
  margin: 4px 0 0;
}

.admin-cancel-dialog-items {
  display: grid;
  gap: 10px;
  max-height: min(44vh, 360px);
  overflow: auto;
  padding-right: 4px;
}

.admin-tracking-dialog-meta {
  margin: 8px 0 0;
}

.admin-tracking-dialog-card {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.admin-bulk-tracking-list {
  display: grid;
  gap: 12px;
  max-height: min(44vh, 360px);
  overflow: auto;
  padding-right: 4px;
}

.admin-bulk-tracking-row {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid #e7eaee;
  border-radius: 16px;
  background: #ffffff;
}

.admin-bulk-tracking-copy {
  display: grid;
  gap: 4px;
}

.admin-bulk-tracking-copy span,
.admin-bulk-tracking-copy small {
  color: var(--muted);
}

.admin-tracking-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-tracking-summary-card,
.admin-tracking-preview-card {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid #e7eaee;
  border-radius: 18px;
  background: #ffffff;
}

.admin-tracking-summary-card span,
.admin-tracking-preview-card span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.admin-tracking-summary-card strong,
.admin-tracking-preview-card strong {
  color: var(--text);
  line-height: 1.5;
}

.admin-tracking-summary-card small,
.admin-tracking-preview-meta span {
  color: var(--muted);
  line-height: 1.55;
}

.admin-tracking-preview-card {
  background:
    radial-gradient(circle at top right, rgba(var(--accent-rgb), 0.08), transparent 38%),
    #ffffff;
}

.admin-tracking-preview-number {
  font-size: 1.1rem;
  font-weight: 800;
  word-break: break-word;
}

.admin-tracking-preview-meta {
  display: grid;
  gap: 4px;
}

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

.finance-status-list,
.finance-monthly-list,
.finance-top-products,
.admin-products-list,
.admin-accounts-list {
  display: grid;
  gap: 18px;
  margin-top: 16px;
}

.admin-products-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) minmax(200px, 0.55fr) minmax(200px, 0.55fr);
  gap: 14px;
  align-items: end;
  margin-top: 16px;
}

.admin-accounts-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) repeat(3, minmax(180px, 0.5fr));
  gap: 14px;
  align-items: end;
  margin-top: 16px;
}

.admin-security-toolbar {
  grid-template-columns: minmax(260px, 1.2fr) minmax(160px, 0.45fr) minmax(220px, 0.8fr) minmax(170px, 0.45fr) minmax(170px, 0.45fr) auto;
}

.admin-security-config-row {
  margin-top: 16px;
  justify-content: space-between;
  align-items: end;
  gap: 14px;
  flex-wrap: wrap;
}

.admin-security-retention-note {
  margin-top: 10px;
}

.admin-order-filters {
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) minmax(180px, 0.5fr) minmax(180px, 0.5fr) auto;
  gap: 14px;
  align-items: end;
}

.admin-search-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.admin-search-box .primary-button {
  min-width: 104px;
}

.admin-list-summary {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.compact-empty-state {
  min-height: 0;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 0.84rem;
}

.security-logs-list {
  margin-top: 18px;
  display: grid;
  gap: 14px;
}

.security-log-card {
  border: 1px solid #e7eaee;
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(var(--accent-rgb), 0.06), transparent 34%),
    linear-gradient(180deg, #ffffff, #fbfcfc);
  padding: 18px;
  display: grid;
  gap: 14px;
}

.security-log-head,
.security-log-title,
.security-log-badges,
.security-log-meta,
.security-log-detail-row {
  display: flex;
  gap: 12px;
}

.security-log-head {
  align-items: flex-start;
  justify-content: space-between;
}

.security-log-title {
  flex-direction: column;
  min-width: 0;
}

.security-log-title strong {
  font-size: 1rem;
  color: var(--text);
  overflow-wrap: anywhere;
}

.security-log-title span,
.security-log-meta span {
  color: var(--muted);
  font-size: 0.88rem;
}

.security-log-meta {
  flex-wrap: wrap;
}

.security-log-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.security-log-detail-row {
  align-items: flex-start;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #e7eaee;
  background: #ffffff;
}

.security-log-detail-row span {
  color: var(--muted);
  font-size: 0.84rem;
  max-width: 48%;
}

.security-log-detail-row strong {
  color: var(--text);
  font-size: 0.88rem;
  text-align: right;
  overflow-wrap: anywhere;
}

.security-log-raw-details {
  border-top: 1px dashed #dbe4dc;
  padding-top: 12px;
}

.security-log-raw-details summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--green-dark);
}

.security-log-raw-details pre {
  margin: 12px 0 0;
  padding: 14px;
  border-radius: 14px;
  background: #0f172a;
  color: #dbeafe;
  font-size: 0.82rem;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.admin-audit-toolbar {
  margin-top: 18px;
}

.admin-audit-list {
  margin-top: 18px;
}

.admin-audit-card {
  gap: 12px;
}

.admin-audit-head {
  gap: 14px;
}

.admin-audit-badges {
  align-items: center;
  flex-wrap: wrap;
}

.admin-audit-category-badge,
.admin-audit-source-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  border: 1px solid #dde4e8;
  background: #ffffff;
  color: var(--text);
}

.admin-audit-category-badge.category-product {
  border-color: #cae8d1;
  background: #eefaf0;
  color: #0b8c24;
}

.admin-audit-category-badge.category-price {
  border-color: #f7d6c9;
  background: #fff2eb;
  color: #c2410c;
}

.admin-audit-category-badge.category-admin_role {
  border-color: #d6d4ff;
  background: #f2f1ff;
  color: #4338ca;
}

.admin-audit-category-badge.category-banner {
  border-color: #d7e8ff;
  background: #eff6ff;
  color: #1d4ed8;
}

.admin-audit-category-badge.category-payment {
  border-color: #f7d7e2;
  background: #fff1f6;
  color: #be185d;
}

.admin-audit-category-badge.category-shipping {
  border-color: #cfe6ff;
  background: #edf7ff;
  color: #0369a1;
}

.admin-audit-category-badge.category-settings {
  border-color: #e7dcc8;
  background: #faf6ef;
  color: #7c4a03;
}

.admin-audit-source-chip {
  color: var(--muted);
  font-weight: 700;
}

.admin-audit-meta {
  align-items: center;
}

.admin-audit-summary {
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.65;
}

.admin-security-actions {
  align-self: end;
}

.admin-account-card {
  border: 1px solid #cfd9d3;
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(var(--accent-rgb), 0.06), transparent 34%),
    linear-gradient(180deg, #ffffff, #fbfcfc);
  padding: 16px;
  display: grid;
  gap: 14px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04), inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.admin-account-head,
.admin-account-identity,
.admin-account-badges,
.admin-account-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-account-head {
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 12px;
  border-bottom: 1px solid #dce6e1;
}

.admin-account-identity {
  align-items: center;
  min-width: 0;
}

.admin-account-avatar-shell {
  flex: 0 0 auto;
}

.admin-account-avatar,
.admin-account-avatar-fallback {
  width: 64px;
  height: 64px;
  border-radius: 18px;
}

.admin-account-avatar {
  display: block;
  object-fit: cover;
  border: 1px solid #e7eaee;
  background: #f7faf8;
}

.admin-account-avatar-fallback {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #dff7e4, #edf9ef);
  color: #0b8c24;
  font-weight: 800;
  font-size: 1.08rem;
}

.admin-account-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.admin-account-copy strong {
  font-size: 1.04rem;
  color: var(--text);
}

.admin-account-email {
  color: var(--muted);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.admin-account-email:hover {
  color: var(--green-dark);
  text-decoration: underline;
}

.admin-account-badges {
  justify-content: flex-end;
  align-items: center;
}

.admin-account-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid #dfe3e7;
  background: #ffffff;
  color: var(--muted);
}

.admin-account-badge.role-admin {
  border-color: #bfd9ff;
  background: #eff6ff;
  color: #1d4ed8;
}

.admin-account-badge.role-buyer {
  border-color: #cfead6;
  background: #eefaf0;
  color: #0b8c24;
}

.admin-account-badge.admin-role-super_admin {
  border-color: #f6d4c9;
  background: #fff4ef;
  color: #c2410c;
}

.admin-account-badge.admin-role-catalog_admin,
.admin-account-badge.admin-role-order_admin,
.admin-account-badge.admin-role-finance_admin,
.admin-account-badge.admin-role-support_admin,
.admin-account-badge.admin-role-settings_admin,
.admin-account-badge.admin-role-custom {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.admin-account-badge.provider-google {
  border-color: #f6d4c9;
  background: #fff4ef;
  color: #c2410c;
}

.admin-account-badge.provider-local {
  border-color: #dbe2e8;
  background: #f7fafc;
  color: #4b5563;
}

.admin-account-meta {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
  padding-bottom: 10px;
  border-bottom: 1px dashed #dce6e1;
}

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

.admin-account-stat {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid #d6dfda;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdfc 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.admin-account-stat span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-account-stat strong {
  color: var(--text);
  font-size: 1rem;
}

.admin-account-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.6;
  padding: 2px 0;
}

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

.admin-account-actions-detail {
  justify-content: flex-end;
}

.admin-account-access-panel,
.admin-account-access-form,
.admin-account-access-form-grid,
.admin-account-access-admin-fields,
.admin-account-access-overview,
.admin-account-access-summary,
.admin-permission-grid,
.admin-access-summary-inline,
.admin-permission-chip-list {
  display: grid;
  gap: 14px;
}

.admin-account-access-overview {
  padding: 14px 16px;
  border: 1px solid var(--accent-line);
  border-radius: 18px;
  background: var(--accent-soft);
}

.admin-account-access-form-grid {
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  align-items: flex-start;
}

.admin-account-access-admin-fields {
  padding: 16px;
  border: 1px solid #e7eaee;
  border-radius: 18px;
  background: #ffffff;
}

.admin-access-summary-inline {
  align-items: start;
}

.admin-access-summary-inline strong {
  color: var(--text);
  font-size: 1rem;
}

.admin-access-summary-inline span:last-child {
  color: var(--muted);
  line-height: 1.5;
}

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

.admin-permission-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #e7eaee;
  border-radius: 16px;
  background: #fbfcfd;
}

.admin-permission-option input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
}

.admin-permission-option span {
  display: grid;
  gap: 4px;
}

.admin-permission-option strong {
  color: var(--text);
  font-size: 0.94rem;
}

.admin-permission-option small {
  color: var(--muted);
  line-height: 1.45;
}

.admin-permission-option.is-locked {
  background: #f8fafc;
}

.admin-permission-chip-list {
  grid-template-columns: repeat(auto-fit, minmax(180px, max-content));
}

.admin-permission-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.84rem;
  font-weight: 700;
}

.admin-permission-chip.muted {
  border-color: #dbe2e8;
  background: #f7fafc;
  color: #64748b;
}

.admin-account-avatar-lg {
  width: 84px;
  height: 84px;
  border-radius: 22px;
  font-size: 1.4rem;
}

.admin-account-detail-shell,
.admin-account-detail-layout,
.admin-account-detail-hero,
.admin-account-detail-grid,
.admin-account-address-list,
.admin-account-order-list,
.admin-account-detail-head {
  display: grid;
  gap: 16px;
}

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

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

.admin-account-address-card,
.admin-account-order-card {
  border: 1px solid #e7eaee;
  border-radius: 16px;
  background: #ffffff;
  padding: 14px 16px;
}

.admin-account-address-card {
  display: grid;
  gap: 6px;
}

.admin-account-address-card strong,
.admin-account-order-head strong {
  color: var(--text);
}

.admin-account-address-card span,
.admin-account-order-card p,
.admin-account-order-meta span {
  color: var(--muted);
}

.admin-account-order-card {
  display: grid;
  gap: 10px;
  text-decoration: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.admin-account-order-card:hover {
  border-color: #cfead6;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.admin-account-order-head,
.admin-account-order-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.admin-account-order-card p {
  margin: 0;
  line-height: 1.6;
}

.admin-bulk-toolbar,
.admin-bulk-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.admin-bulk-toolbar {
  justify-content: space-between;
  margin-top: 14px;
}

.admin-products-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.admin-page-size-field {
  min-width: 120px;
}

.admin-page-size-field select {
  min-width: 88px;
}

.admin-pagination {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-pagination-info {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
}

.admin-list-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.admin-page-buttons,
.admin-page-numbers {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-page-arrow,
.admin-page-number {
  min-width: 42px;
  height: 42px;
  border: 1px solid #dce3e8;
  border-radius: 12px;
  background: #ffffff;
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  transition: border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 160ms ease;
}

.admin-page-arrow:hover,
.admin-page-number:hover {
  border-color: rgba(var(--accent-rgb), 0.26);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.admin-page-arrow:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.admin-page-number.active {
  border-color: rgba(var(--accent-rgb), 0.28);
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent-strong);
}

.admin-list-page-size-field {
  min-width: 132px;
  margin: 0;
}

.admin-list-page-size-field select {
  min-width: 132px;
  height: 42px;
}

.finance-row {
  border: 1px solid #e7eaee;
  border-radius: 16px;
  background: #fbfcfc;
  padding: 14px;
}

.product-admin-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 2px solid #c9d5df;
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(var(--accent-rgb), 0.08), transparent 32%),
    linear-gradient(180deg, #ffffff, #f7faf9);
  box-shadow:
    0 18px 40px rgba(15, 23, 42, 0.08),
    0 2px 8px rgba(15, 23, 42, 0.04);
  padding: 18px;
}

.product-admin-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 8px;
  background: linear-gradient(180deg, var(--accent-strong), var(--accent-deep));
  z-index: 0;
}

.product-admin-card::after {
  content: "";
  position: absolute;
  inset: 10px 10px 10px 18px;
  border: 1px solid rgba(201, 213, 223, 0.95);
  border-radius: 16px;
  pointer-events: none;
  z-index: 0;
}

.product-admin-layout {
  position: relative;
  z-index: 1;
}

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

.finance-ledger-tabs-shell {
  margin-top: 18px;
}

.finance-ledger-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.finance-ledger-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #e4e8ec;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #fbfcfc);
  color: var(--text);
  font-weight: 700;
  text-align: left;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background 160ms ease;
}

.finance-ledger-tab:hover {
  border-color: rgba(var(--accent-rgb), 0.24);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.finance-ledger-tab.active {
  border-color: rgba(var(--accent-rgb), 0.34);
  background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.12), rgba(var(--accent-rgb), 0.04));
  box-shadow: 0 18px 34px rgba(var(--accent-rgb), 0.14);
}

.finance-ledger-tab span {
  color: var(--text);
}

.finance-ledger-tab strong {
  min-width: 36px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent-strong);
  font-size: 0.76rem;
  text-align: center;
}

.finance-ledger-panels {
  margin-top: 18px;
}

.finance-ledger-tab-panel {
  display: block;
}

.finance-ledger-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.finance-ledger-page-buttons,
.finance-ledger-page-numbers {
  display: flex;
  align-items: center;
  gap: 10px;
}

.finance-ledger-page-arrow,
.finance-ledger-page-number {
  min-width: 42px;
  height: 42px;
  border: 1px solid #dce3e8;
  border-radius: 12px;
  background: #ffffff;
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  transition: border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 160ms ease;
}

.finance-ledger-page-arrow:hover,
.finance-ledger-page-number:hover {
  border-color: rgba(var(--accent-rgb), 0.26);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.finance-ledger-page-arrow:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.finance-ledger-page-number.active {
  border-color: rgba(var(--accent-rgb), 0.28);
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent-strong);
}

.finance-ledger-page-size-field {
  min-width: 132px;
  margin: 0;
}

.finance-ledger-page-size-field select {
  min-width: 132px;
  height: 42px;
}

.finance-ledger-card {
  border: 1px solid #e7eaee;
  border-radius: 18px;
  background: #fbfcfc;
  padding: 16px;
}

.finance-ledger-head,
.finance-ledger-meta,
.finance-ledger-summary,
.finance-ledger-actions,
.product-admin-head-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.finance-ledger-head {
  justify-content: space-between;
  align-items: flex-start;
}

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

.finance-ledger-title strong {
  color: var(--text);
}

.finance-ledger-title span,
.finance-ledger-note,
.finance-ledger-meta span,
.finance-ledger-summary span,
.product-compose-promo,
.product-admin-promo-meta span {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.finance-ledger-head-side {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.finance-ledger-amount {
  color: var(--orange);
  font-size: 1.02rem;
}

.finance-ledger-meta,
.finance-ledger-summary {
  margin-top: 12px;
}

.finance-ledger-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.finance-ledger-tags span {
  padding: 6px 10px;
  border-radius: 999px;
  background: #eefaf0;
  color: var(--green-dark);
  font-size: 0.76rem;
  font-weight: 700;
}

.finance-ledger-note {
  margin: 12px 0 0;
}

.finance-ledger-actions {
  margin-top: 14px;
  justify-content: flex-end;
}

.finance-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.finance-row strong,
.product-admin-head strong {
  color: var(--text);
}

.finance-row span,
.product-admin-meta,
.product-admin-copy {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

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

.product-admin-thumb {
  width: 116px;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e7eaee;
  background:
    radial-gradient(circle at top right, rgba(var(--accent-rgb), 0.08), transparent 34%),
    linear-gradient(180deg, #ffffff, #f7faf7);
}

.product-admin-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-admin-main {
  min-width: 0;
  display: grid;
  gap: 12px;
}

.product-admin-head,
.product-admin-actions,
.product-admin-side {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.product-admin-head {
  gap: 16px;
}

.product-admin-head-main {
  min-width: 0;
  display: grid;
  gap: 10px;
  flex: 1 1 auto;
}

.product-admin-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

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

.product-admin-title {
  display: block;
  margin: 0;
  font-size: 1.16rem;
  line-height: 1.35;
  color: var(--text);
}

.product-admin-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.product-admin-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #e9edf2;
  border-radius: 999px;
  background: #fbfcfd;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.2;
}

.product-admin-meta-primary span {
  background: linear-gradient(180deg, #f7fcf8, #f2f8f4);
  border-color: #dbe9df;
}

.product-admin-meta-secondary span,
.product-admin-insights span {
  background: #f8fafc;
}

.product-admin-copy {
  margin: -2px 0 0;
  color: var(--text-secondary);
}

.product-admin-promo-note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-admin-promo-note span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(244, 114, 32, 0.08);
  border: 1px solid rgba(244, 114, 32, 0.2);
  color: #b45309;
  font-size: 0.78rem;
  line-height: 1.3;
}

.product-select-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.product-select-checkbox {
  flex: 0 0 auto;
}

.product-quick-edit-row {
  margin: 0;
}

.product-quick-edit-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #e7eaee;
  border-radius: 16px;
  background:
    radial-gradient(circle at top right, rgba(var(--accent-rgb), 0.05), transparent 34%),
    linear-gradient(180deg, #ffffff, #fbfcfc);
}

.product-quick-edit-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

.product-quick-edit-head strong {
  color: var(--text);
  font-size: 0.92rem;
}

.product-quick-edit-head span {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.product-quick-edit-input-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px 160px auto;
  gap: 10px;
  align-items: end;
}

.product-quick-edit-inline-field {
  gap: 6px;
  margin: 0;
}

.product-quick-edit-inline-field > span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.product-quick-edit-input-wrap-info {
  grid-template-columns: 1fr;
  padding: 12px 14px;
  border: 1px dashed rgba(0, 150, 57, 0.25);
  border-radius: 14px;
  background: rgba(0, 150, 57, 0.05);
  color: var(--text-secondary);
  line-height: 1.5;
}

.quick-price-input,
.quick-stock-input,
.quick-stock-status-select,
.quick-product-save {
  min-height: 40px;
}

.quick-product-save {
  white-space: nowrap;
}

.product-admin-side {
  min-width: 0;
  height: 100%;
  flex-direction: column;
  align-items: stretch;
}

.product-admin-side-stats {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid #e7eaee;
  border-radius: 16px;
  background:
    radial-gradient(circle at top right, rgba(244, 114, 32, 0.08), transparent 34%),
    linear-gradient(180deg, #ffffff, #fcfbfb);
  color: var(--muted);
  font-size: 0.84rem;
}

.product-admin-side-stats span {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-admin-side-stats strong {
  color: var(--orange);
  font-size: 1.08rem;
  font-weight: 700;
}

.product-admin-side-stats small {
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.product-admin-actions {
  margin-top: auto;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.product-admin-tags {
  margin-top: -2px;
}

.product-admin-tags span {
  background: #f3f6f9;
  color: var(--text-secondary);
}

.product-admin-actions button,
.product-admin-actions a {
  min-height: 38px;
}

.admin-order-head strong,
.order-card strong {
  color: var(--text);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eefaf0;
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 700;
}

.status-badge.pending {
  background: #fff7e6;
  color: #b45309;
}

.status-badge.success {
  background: #eefaf0;
  color: var(--accent-ink);
}

.status-badge.shipped {
  background: #eff6ff;
  color: #1d4ed8;
}

.status-badge.cancelled {
  background: #fef2f2;
  color: #b91c1c;
}

.admin-order-meta {
  margin: 12px 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.admin-order-items,
.order-detail-lines {
  display: grid;
  gap: 6px;
  margin: 12px 0;
  color: #4b5563;
  font-size: 0.88rem;
}

.order-progress-list {
  display: grid;
  gap: 10px;
  margin: 14px 0;
  padding: 14px;
  border: 1px solid #e7eaee;
  border-radius: 16px;
  background: #ffffff;
}

.order-progress-item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 12px;
  align-items: flex-start;
  position: relative;
}

.order-progress-item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 18px;
  bottom: -10px;
  width: 2px;
  background: #e5e7eb;
}

.order-progress-item.done:not(:last-child)::after {
  background: var(--accent-line);
}

.order-progress-dot {
  width: 12px;
  height: 12px;
  margin-top: 4px;
  border-radius: 999px;
  background: #d1d5db;
  box-shadow: 0 0 0 4px #f3f4f6;
}

.order-progress-copy {
  display: grid;
  gap: 4px;
}

.order-progress-copy strong {
  color: var(--text);
  font-size: 0.9rem;
}

.order-progress-copy span {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.order-progress-time {
  color: #0f766e;
  font-weight: 600;
}

.order-progress-item.done .order-progress-dot {
  background: var(--accent-strong);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

.order-progress-item.current .order-progress-dot {
  background: #f59e0b;
  box-shadow: 0 0 0 4px #fef3c7;
}

.order-progress-item.cancelled .order-progress-dot {
  background: #dc2626;
  box-shadow: 0 0 0 4px #fee2e2;
}

.admin-order-actions {
  margin-top: 14px;
  align-items: end;
  flex-wrap: wrap;
}

.admin-order-actions .field-block {
  flex: 1 1 200px;
}

.admin-proof,
.upload-preview,
.payment-card {
  border: 1px solid #e7eaee;
  border-radius: 16px;
  background: #fbfcfc;
}

.admin-proof,
.upload-preview {
  min-height: 110px;
  padding: 12px;
}

.upload-preview {
  display: grid;
  place-items: center;
  color: var(--muted);
}

.payment-shell {
  width: min(920px, 100%);
  margin: 0 auto;
}

.payment-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(280px, 1.05fr);
  gap: 18px;
}

.payment-card {
  padding: 16px;
}

.payment-qris-stage {
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  border: 1px solid #e7eaee;
  border-radius: 16px;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(var(--accent-rgb), 0.1), transparent 36%),
    linear-gradient(180deg, #ffffff, #f7faf7);
}

.payment-copy {
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.payment-va-stage {
  display: grid;
  gap: 14px;
  width: 100%;
  text-align: center;
}

.payment-va-bank {
  display: inline-flex;
  justify-self: center;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef5ff;
  color: #1d4ed8;
  font-size: 0.8rem;
  font-weight: 700;
}

.payment-va-number {
  display: block;
  color: var(--text);
  font-size: 1.8rem;
  line-height: 1.1;
  letter-spacing: 0.04em;
}

.payment-copy-button {
  justify-self: center;
}

.payment-qris-empty {
  padding: 24px;
  text-align: center;
  color: var(--muted);
}

.order-card {
  display: grid;
  gap: 10px;
}

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

.buyer-order-items {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid #e7eaee;
  border-radius: 16px;
  background: #ffffff;
  color: #4b5563;
  font-size: 0.88rem;
}

.buyer-order-items-grid {
  display: grid;
  gap: 10px;
}

.buyer-order-item-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid #edf0f3;
  border-radius: 16px;
  background: #fbfcfd;
}

.buyer-order-item-card.cancelled {
  align-items: flex-start;
  border-color: #f3c1c1;
  background: linear-gradient(180deg, #fff7f7, #ffffff);
}

.buyer-order-item-media {
  display: flex;
  align-items: center;
  justify-content: center;
}

.buyer-order-item-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.buyer-order-item-copy strong {
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.4;
}

.buyer-order-item-copy span,
.buyer-order-item-copy small {
  color: var(--muted);
  line-height: 1.45;
}

.buyer-order-item-total {
  color: var(--text);
  text-align: right;
  white-space: nowrap;
  display: grid;
  gap: 4px;
  justify-items: end;
}

.buyer-order-item-total strong {
  color: inherit;
  font-weight: 800;
}

.buyer-order-item-total small {
  color: var(--muted);
  font-size: 0.76rem;
}

.buyer-order-item-total.cancelled {
  color: #b42318;
}

.buyer-order-items-empty {
  color: var(--muted);
}

.buyer-order-item-state {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.buyer-order-item-cancel-note {
  display: grid;
  gap: 6px;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #fff1f1;
}

.buyer-order-item-cancel-note small,
.buyer-order-item-cancel-note p {
  color: #991b1b;
}

.buyer-order-item-cancel-note p {
  margin: 0;
  line-height: 1.65;
  font-size: 0.84rem;
}

.orders-page-shell {
  width: min(1380px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 40px;
  display: grid;
  gap: 18px;
}

.orders-page-head,
.orders-page-guard,
.orders-summary-card {
  border: 1px solid #dbe7dd;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.orders-page-head,
.orders-page-guard {
  padding: 24px;
}

.orders-page-head h1 {
  margin: 4px 0 10px;
  font-size: clamp(1.9rem, 2.6vw, 2.5rem);
  line-height: 1.08;
}

.orders-page-copy {
  max-width: 780px;
  margin: 0;
  color: #6b7280;
  line-height: 1.6;
}

.orders-page-head-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 360px);
  gap: 18px;
  align-items: center;
}

.orders-focus-card,
.orders-toolbar,
.orders-list-shell,
.buyer-order-block,
.buyer-order-total-card,
.buyer-order-side-card {
  border: 1px solid #e7eaee;
  border-radius: 20px;
  background: #ffffff;
}

.orders-focus-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  background:
    radial-gradient(circle at top right, rgba(var(--accent-rgb), 0.08), transparent 38%),
    linear-gradient(180deg, #ffffff, #f8fcf8);
}

.orders-focus-kicker,
.buyer-order-kicker {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.orders-focus-card strong {
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1.15;
}

.orders-focus-card small {
  color: var(--muted);
  line-height: 1.55;
}

.orders-summary-grid,
.orders-page-list {
  display: grid;
  gap: 16px;
}

.orders-summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.orders-summary-card {
  padding: 18px;
  display: grid;
  gap: 8px;
}

.orders-summary-card span,
.orders-summary-card small {
  color: var(--muted);
}

.orders-summary-card strong {
  color: var(--green-dark);
  font-size: 1.7rem;
}

.orders-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
  gap: 18px;
  padding: 18px;
}

.orders-search-field,
.orders-filter-field {
  display: grid;
  gap: 10px;
}

.orders-search-field span,
.orders-filter-field > span {
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 700;
}

.orders-search-box input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid #d8dce1;
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  font-size: 0.94rem;
}

.orders-search-box input:focus {
  outline: none;
  border-color: #9bd6a5;
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.12);
}

.orders-status-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.orders-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #dde2e7;
  border-radius: 999px;
  background: #fff;
  color: #4b5563;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.orders-filter-chip strong {
  color: inherit;
  font-size: 0.82rem;
}

.orders-filter-chip.active,
.orders-filter-chip:hover {
  border-color: #92d39e;
  background: #eefaf0;
  color: #0b8c24;
  transform: translateY(-1px);
}

.orders-list-shell {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.orders-list-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.orders-list-head h2 {
  margin: 4px 0 0;
  font-size: 1.4rem;
}

.orders-list-summary {
  max-width: 360px;
  margin: 0;
  color: var(--muted);
  text-align: right;
  line-height: 1.55;
}

.buyer-order-card {
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, #ffffff, #fbfdfb),
    radial-gradient(circle at top right, rgba(var(--accent-rgb), 0.04), transparent 42%);
}

.buyer-order-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.buyer-order-title {
  display: grid;
  gap: 6px;
}

.buyer-order-title strong {
  color: var(--text);
  font-size: 1.2rem;
}

.buyer-order-title span {
  color: var(--muted);
  font-size: 0.9rem;
}

.buyer-order-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.toggle-order-detail-button {
  white-space: nowrap;
}

.buyer-order-chip-active {
  background: #eefaf0;
  color: #0b8c24;
}

.buyer-order-chip-soft {
  background: #eff6ff;
  color: #1d4ed8;
}

.buyer-order-chip-cancelled {
  background: #fff1f1;
  color: #b42318;
}

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

.buyer-order-summary-pill {
  display: grid;
  gap: 5px;
  padding: 14px 16px;
  border: 1px solid #dcefe0;
  border-radius: 18px;
  background: linear-gradient(180deg, #f9fdfa, #f2faf4);
}

.buyer-order-summary-pill small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.buyer-order-summary-pill strong {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.45;
}

.buyer-order-preview-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid #dcefe0;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #fbfdfb);
}

.buyer-order-preview-stack {
  display: flex;
  align-items: center;
}

.buyer-order-preview-chip {
  display: inline-flex;
  margin-left: -10px;
  border: 3px solid #ffffff;
  border-radius: 18px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.buyer-order-preview-chip:first-child {
  margin-left: 0;
}

.buyer-order-preview-thumb,
.buyer-order-item-thumb,
.buyer-order-item-thumb-fallback {
  width: 56px;
  height: 56px;
  border-radius: 15px;
}

.buyer-order-preview-thumb,
.buyer-order-item-thumb {
  object-fit: cover;
  display: block;
  background: #f6f7f9;
}

.buyer-order-item-thumb-fallback {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #dff7e4, #edf9ef);
  color: #0b8c24;
  font-weight: 800;
}

.buyer-order-preview-copy {
  display: grid;
  gap: 4px;
}

.buyer-order-preview-copy strong {
  color: var(--text);
  font-size: 0.98rem;
}

.buyer-order-preview-copy span {
  color: var(--muted);
  font-size: 0.88rem;
}

.buyer-order-details {
  display: grid;
  gap: 18px;
}

.buyer-order-details[hidden] {
  display: none !important;
}

.buyer-order-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.72fr);
  gap: 18px;
  align-items: start;
}

.buyer-order-main,
.buyer-order-side {
  display: grid;
  gap: 16px;
}

.buyer-order-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.buyer-info-card,
.buyer-order-total-card,
.buyer-order-side-card {
  display: grid;
  gap: 6px;
  padding: 16px;
}

.buyer-info-card-wide {
  grid-column: 1 / -1;
}

.buyer-info-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.buyer-info-card strong,
.buyer-order-side-card strong,
.buyer-order-total-card strong {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.4;
}

.buyer-info-card small,
.buyer-order-side-card small,
.buyer-order-total-card small {
  color: var(--muted);
  line-height: 1.55;
}

.buyer-order-delivery-hint {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--text);
  font-size: 0.83rem;
  line-height: 1.6;
}

.buyer-order-delivery-hint strong {
  color: var(--accent);
}

.buyer-order-total-card strong {
  color: var(--green-dark);
  font-size: 1.5rem;
}

.buyer-order-block {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.buyer-order-cancellation-block {
  border-color: #f0d4d4;
  background: linear-gradient(180deg, #fffaf9, #ffffff);
}

.buyer-cancellation-callout {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #efc7c7;
  border-radius: 16px;
  background: #ffffff;
}

.buyer-cancellation-callout strong {
  color: #7f1d1d;
  line-height: 1.5;
}

.buyer-cancellation-callout p,
.buyer-cancellation-callout small {
  margin: 0;
  color: #7f1d1d;
  line-height: 1.7;
}

.buyer-review-form,
.buyer-review-result {
  display: grid;
  gap: 12px;
}

.buyer-review-stars,
.buyer-review-stars-static {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.buyer-review-star {
  border: 0;
  background: transparent;
  color: #cbd5e1;
  font-size: 1.6rem;
  line-height: 1;
  padding: 0;
}

.buyer-review-stars .buyer-review-star {
  cursor: pointer;
}

.buyer-review-star.active {
  color: #f59e0b;
}

.buyer-review-helper {
  color: var(--muted);
  line-height: 1.55;
}

.buyer-review-actions {
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.buyer-review-result p {
  margin: 0;
  color: var(--text);
  line-height: 1.7;
}

.buyer-review-result small {
  color: var(--muted);
}

.buyer-order-progress-strip {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.buyer-order-progress-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #dce2e8;
  background: #f7f8fa;
  color: var(--muted);
}

.buyer-order-progress-pill strong {
  font-size: 0.82rem;
  line-height: 1;
}

.buyer-order-progress-pill.done {
  border-color: #bce9c7;
  background: #eefaf0;
  color: #0b8c24;
}

.buyer-order-progress-pill.current {
  border-color: #cfe2ff;
  background: #eef4ff;
  color: #1d4ed8;
}

.buyer-order-progress-pill.cancelled {
  border-color: #f3c1c1;
  background: #fff1f1;
  color: #b42318;
}

.buyer-order-progress-dot-mini {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
  flex: 0 0 auto;
}

.buyer-order-block-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.buyer-order-block-head strong {
  color: var(--text);
  font-size: 1rem;
}

.buyer-order-block-head span {
  color: var(--muted);
  font-size: 0.84rem;
}

.buyer-order-card.highlight {
  border-color: #9bd6a5;
  box-shadow: 0 16px 38px rgba(var(--accent-rgb), 0.1);
}

.orders-page-header {
  border-bottom: 1px solid #dcefe0;
}

.orders-page-header-inner {
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
}

.orders-brand-link {
  text-decoration: none;
}

.orders-page-guard p {
  margin: 0;
  color: var(--muted);
}

.copy-tracking-button {
  white-space: nowrap;
}

.track-package-button {
  white-space: nowrap;
}

.buyer-order-actions {
  gap: 10px;
  flex-wrap: wrap;
}

.buyer-order-actions .ghost-button {
  white-space: nowrap;
}

.buyer-order-actions .confirm-order-received-button {
  white-space: nowrap;
}

.buyer-order-actions {
  margin-top: auto;
}

.order-card-bottom {
  align-items: flex-start;
}

@media (max-width: 1280px) {
  .main-header-inner {
    grid-template-columns: 250px minmax(0, 1fr);
  }

  .storefront-footer-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .header-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .orders-page-head-grid,
  .orders-toolbar,
  .buyer-order-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 980px) {
  .main-header-inner {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 14px 16px;
    align-items: start;
    padding: 10px 0 12px;
  }

  .brand-logo-image {
    max-height: 48px;
    width: min(190px, 100%);
  }

  .header-search {
    min-height: 42px;
    padding: 0 14px;
  }

  .search-predictions {
    top: calc(100% + 8px);
    padding: 8px;
    border-radius: 20px;
  }

  .search-prediction-button,
  .search-prediction-empty {
    gap: 12px;
    padding: 10px 8px;
  }

  .search-prediction-title {
    font-size: 0.92rem;
  }

  .header-actions,
  .auth-actions {
    gap: 8px;
  }

  .header-contact-link {
    font-size: 0.84rem;
  }

  .header-button,
  .cart-trigger-button {
    min-height: 34px;
  }

  .sub-header-inner {
    align-items: flex-start;
    padding: 8px 0 10px;
  }

  .sub-header-left {
    width: 100%;
    gap: 8px;
    align-items: flex-start;
    flex-direction: column;
  }

  .sub-links {
    gap: 8px;
    font-size: 0.82rem;
  }

  .top-category-strip {
    width: 100%;
    flex-wrap: wrap;
    gap: 8px 14px;
  }

  .top-category-link {
    font-size: 0.8rem;
  }

  .top-category-strip {
    display: none;
  }

  .top-category-select-shell {
    display: block;
  }

  .storefront-footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .hero-banner,
  .promo-grid,
  .market-layout,
  .dialog-grid,
  .admin-grid,
  .dashboard-hero-grid,
  .dashboard-secondary-grid,
  .dashboard-chart-grid,
  .admin-route-grid,
  .payment-grid,
  .admin-products-grid,
  .admin-finance-grid,
  .admin-finance-grid-full,
  .admin-summary-grid,
  .admin-finance-toolbar,
  .admin-order-filters,
  .admin-security-toolbar {
    grid-template-columns: 1fr;
  }

  .admin-security-config-row {
    align-items: stretch;
  }

  .dashboard-banner-highlight {
    grid-template-columns: 1fr;
  }

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

  .sidebar-column {
    position: static;
  }

  .buyer-order-info-grid {
    grid-template-columns: 1fr;
  }

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

  .admin-order-detail-top {
    grid-template-columns: 1fr;
  }

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

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

  .page-shell {
    padding-bottom: 92px;
  }

  .top-strip-inner,
  .main-header-inner,
  .sub-header-inner,
  .page-shell {
    width: min(100% - 20px, 100%);
  }

  .main-header-inner {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px 0;
  }

  .main-header {
    top: 0;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
  }

  .dashboard-overview-shell,
  .dashboard-insight-shell,
  .dashboard-data-panel,
  .dashboard-route-shell,
  .dashboard-restock-shell {
    padding: 16px;
  }

  .dashboard-overview-head,
  .dashboard-chart-head,
  .dashboard-order-feed-item,
  .dashboard-banner-item {
    flex-direction: column;
    align-items: stretch;
  }

  .dashboard-live-status {
    justify-items: start;
  }

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

  .dashboard-live-graph {
    min-height: 240px;
    padding: 8px;
  }

  .dashboard-live-legend {
    flex-direction: column;
  }

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

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

  .dashboard-order-feed-meta,
  .dashboard-banner-item-metrics {
    justify-items: start;
    justify-content: flex-start;
  }

  .dashboard-ranking-item {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .dashboard-ranking-value {
    grid-column: 2;
    text-align: left;
  }

  .sub-header {
    max-height: 120px;
    overflow: hidden;
  }

  .page-shell > .sub-header {
    border-top: 0;
    background: transparent;
    margin-bottom: 14px;
  }

  .page-shell > .sub-header .sub-header-inner {
    padding: 0;
  }

  .header-search-shell {
    position: relative;
    z-index: 1;
  }

  .header-search {
    min-height: 44px;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
  }

  .header-actions {
    justify-content: space-between;
    width: 100%;
  }

  .sub-header-inner,
  .top-strip-inner,
  .catalog-toolbar,
  .promo-showcase-head,
  .admin-bulk-toolbar,
  .cart-header,
  .admin-panel-head,
  .admin-orders-top,
  .admin-order-head,
  .admin-order-meta,
  .admin-order-actions,
  .cart-total-row,
  .summary-row,
  .order-card-top,
  .order-card-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .sub-header-left,
  .top-category-strip {
    width: 100%;
  }

  .sub-header-left {
    padding: 14px;
    border: 1px solid #cfe7d3;
    border-radius: 20px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(243, 251, 245, 0.98) 100%);
    box-shadow:
      0 16px 34px rgba(15, 23, 42, 0.06),
      inset 0 1px 0 rgba(255, 255, 255, 0.85);
    gap: 10px;
  }

  .sub-header-left .sub-links {
    min-height: 0;
    padding: 0;
  }

  .sub-header-left .sub-links span {
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #0f8f2f;
  }

  .sub-status {
    display: none;
  }

  body.mobile-header-compact .main-header {
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  }

  body.mobile-header-compact .main-header-inner {
    gap: 8px;
    padding: 8px 0 10px;
  }

  body.mobile-header-compact .brand-logo-image {
    max-height: 42px;
    width: min(170px, 100%);
  }

  body.mobile-header-compact .sub-header {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    border-top-color: transparent;
    padding-top: 0;
    padding-bottom: 0;
  }

  body.mobile-header-searching .sub-header {
    max-height: 120px;
    opacity: 1;
    overflow: visible;
  }

  .buyer-order-preview-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-order-item-row,
  .buyer-order-item-card {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .admin-order-item-row.no-checkbox {
    grid-template-columns: 1fr;
  }

  .admin-order-list-meta,
  .admin-order-preview-item {
    grid-template-columns: 1fr;
  }

  .admin-tracking-summary-grid {
    grid-template-columns: 1fr;
  }

  .admin-order-list-meta span:nth-child(2),
  .admin-order-list-meta span:last-child {
    text-align: left;
  }

  .buyer-order-item-total {
    text-align: left;
    grid-column: 2;
    justify-items: start;
  }

  .top-category-strip {
    flex-wrap: wrap;
  }

  .page-shell {
    padding: 16px 0 24px;
  }

  .storefront-footer {
    margin-top: 22px;
    padding-top: 18px;
    border-top-color: #c7d0d9;
  }

  .storefront-footer-inner {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .orders-page-shell {
    width: min(100% - 20px, 100%);
    padding: 18px 0 28px;
  }

  .hero-main,
  .hero-side-banner,
  .sidebar-card,
  .catalog-toolbar,
  .dialog-shell,
  .admin-cancel-dialog-shell,
  .admin-tracking-dialog-shell,
  .admin-panel,
  .admin-card,
  .orders-page-head,
  .orders-page-guard,
  .orders-summary-card {
    padding: 16px;
  }

  .hero-slider,
  .hero-slider-shell {
    min-height: 0;
  }

  .toolbar-mobile-filter-button {
    display: inline-flex;
  }

  .market-layout {
    display: flex;
    flex-direction: column;
  }

  .catalog-column {
    order: 1;
  }

  .sidebar-column {
    order: 2;
    gap: 14px;
  }

  .sidebar-column .sidebar-card:nth-child(-n+2) {
    display: none;
  }

  .hero-side-banner {
    display: none;
  }

  .hero-nav-prev {
    right: 76px;
  }

  .hero-nav-next {
    right: 20px;
  }

  .hero-dots {
    right: 132px;
  }

  .catalog-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }

  .catalog-pagination {
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
  }

  .catalog-pagination-button {
    flex: 0 0 auto;
  }

  .catalog-pagination-summary {
    width: auto;
    order: 0;
  }

  .orders-summary-grid {
    grid-template-columns: 1fr;
  }

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

  .orders-list-summary {
    max-width: none;
    text-align: left;
  }

  .dialog-meta,
  .catalog-toolbar-actions,
  .cart-actions,
  .auth-tabs {
    grid-template-columns: 1fr;
  }

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

  .catalog-toolbar-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .toolbar-sort-field {
    width: 100%;
  }

  .toolbar-sort-field select {
    width: 100%;
    min-width: 0;
  }

  .cart-actions {
    flex-direction: column;
  }

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

  .card-qty-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .variant-picker-shell {
    width: min(100%, 100%);
    gap: 10px;
    padding: 14px;
  }

  .variant-picker-title {
    font-size: 1.12rem;
  }

  .variant-picker-summary {
    padding: 12px;
  }

  .variant-picker-summary-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .variant-picker-price {
    font-size: 1.28rem;
  }

  .variant-picker-qty-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .variant-picker-actions {
    grid-template-columns: 1fr;
  }

  .toast-stack {
    left: 50%;
    right: auto;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    width: min(340px, calc(100vw - 20px));
  }

  .auth-actions {
    justify-content: flex-start;
  }

  .auth-user-actions {
    width: 100%;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: nowrap;
    gap: 10px;
  }

  #open-cart,
  #open-wishlist-page,
  #open-orders-page {
    display: none !important;
  }

  .user-badge {
    flex: 1 1 auto;
    min-width: 0;
    align-items: flex-start;
  }

  #logout-button {
    margin-left: auto;
    flex: 0 0 auto;
    align-self: flex-start;
  }

  .mobile-filter-panel {
    width: 100%;
    border-radius: 0;
  }

  .mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    padding: 10px 10px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid #e3e8e4;
    box-shadow: 0 -12px 30px rgba(15, 23, 42, 0.1);
    backdrop-filter: blur(14px);
  }

  .mobile-bottom-nav-item {
    position: relative;
    min-height: 48px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 700;
    display: grid;
    place-items: center;
    padding: 6px 4px;
    cursor: pointer;
  }

  .mobile-bottom-nav-item.active {
    color: var(--green-dark);
    background: #eefaf0;
  }

  .mobile-bottom-nav-label {
    text-align: center;
    line-height: 1.2;
  }

  .mobile-bottom-nav-badge {
    position: absolute;
    top: 4px;
    right: 14px;
    min-width: 18px;
    min-height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--green);
    color: #fff;
    font-size: 0.68rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
  }

.cart-drawer-panel {
  width: 100vw;
  padding: 18px 14px;
}
}

body.admin-body {
  background:
    radial-gradient(circle at top right, rgba(30, 160, 80, 0.12), transparent 24%),
    linear-gradient(180deg, #f4faf5 0%, #eef5ef 100%);
}

body.admin-body.admin-auth-pending .top-strip,
body.admin-body.admin-auth-pending .admin-shell {
  visibility: hidden;
}

body.admin-body.admin-locked .top-strip,
body.admin-body.admin-locked .admin-sidebar,
body.admin-body.admin-locked .admin-page-head,
body.admin-body.admin-locked #admin-content,
body.admin-body.admin-locked #app-notice,
body.admin-body.admin-locked .toast-stack {
  display: none !important;
}

body.admin-body.admin-locked .admin-shell {
  width: min(900px, calc(100% - 32px));
  grid-template-columns: 1fr;
  gap: 0;
}

body.admin-body.admin-locked .admin-main {
  display: block;
}

.admin-shell {
  --admin-top-frame-height: 98px;
  width: min(1520px, calc(100% - 32px));
  margin: 20px auto 44px;
  display: grid;
  grid-template-columns: minmax(264px, 288px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  min-height: calc(100vh - 96px);
}

.admin-sidebar {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-self: start;
  max-height: calc(100vh - 48px);
  overflow: hidden;
}

.admin-brand,
.admin-sidebar-section {
  background: #ffffff;
  border: 1px solid #dbe7dd;
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.admin-brand {
  min-height: var(--admin-top-frame-height);
  box-sizing: border-box;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-brand .brand-logo-image {
  width: 100%;
  max-width: 210px;
  height: auto;
}

.admin-sidebar-section {
  padding: 22px 20px;
}

.admin-sidebar > .admin-sidebar-section:first-of-type {
  min-height: 0;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.admin-sidebar-actions {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.admin-main {
  min-width: 0;
  display: grid;
  gap: 20px;
  align-content: start;
}

.admin-main > * {
  min-width: 0;
}

body.admin-body #admin-content {
  min-width: 0;
  display: grid;
  gap: 24px;
  align-content: start;
}

body.admin-body #admin-content > * {
  min-width: 0;
}

body.admin-body #admin-content > .admin-grid,
body.admin-body #admin-content > .dashboard-hero-grid,
body.admin-body #admin-content > .dashboard-secondary-grid,
body.admin-body #admin-content > .admin-summary-grid,
body.admin-body #admin-content > .admin-finance-grid,
body.admin-body #admin-content > .admin-finance-grid-full {
  margin-top: 0;
}

.admin-page-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px 24px;
  background: #ffffff;
  border: 1px solid #dbe7dd;
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
  min-height: var(--admin-top-frame-height);
  box-sizing: border-box;
  padding: 14px 28px;
}

.admin-page-head > :first-child {
  min-width: 0;
  max-width: min(820px, 100%);
  display: grid;
  gap: 2px;
  align-content: center;
}

.admin-page-head .eyebrow {
  margin: 0;
  font-size: 0.7rem;
  line-height: 1;
  letter-spacing: 0.18em;
}

.admin-page-head h1 {
  margin: 0;
  font-size: clamp(1.35rem, 1.9vw, 1.72rem);
  line-height: 1.02;
}

.admin-page-copy {
  max-width: 720px;
  margin: 0;
  color: #6b7280;
}

.admin-page-actions,
.admin-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

body.admin-body .admin-page-actions {
  margin-left: auto;
  align-self: start;
  justify-content: flex-end;
}

body.admin-body .admin-page-actions:empty {
  display: none;
}

body.admin-body .admin-toolbar {
  justify-content: flex-end;
}

.admin-account-dock {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #dbe7dd;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(12px);
}

.admin-account-dock .user-badge {
  flex: 1 1 auto;
  min-width: 0;
}

.admin-account-dock #logout-button {
  margin-left: auto;
  flex: 0 0 auto;
}

.admin-nav {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.admin-sidebar > .admin-sidebar-section:first-of-type .admin-nav {
  min-height: 0;
  overflow-y: auto;
  padding-right: 8px;
  margin-right: -4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(3, 172, 14, 0.45) transparent;
}

.admin-sidebar > .admin-sidebar-section:first-of-type .admin-nav::-webkit-scrollbar {
  width: 8px;
}

.admin-sidebar > .admin-sidebar-section:first-of-type .admin-nav::-webkit-scrollbar-track {
  background: transparent;
}

.admin-sidebar > .admin-sidebar-section:first-of-type .admin-nav::-webkit-scrollbar-thumb {
  background: rgba(3, 172, 14, 0.28);
  border-radius: 999px;
}

.admin-sidebar > .admin-sidebar-section:first-of-type .admin-nav::-webkit-scrollbar-thumb:hover {
  background: rgba(3, 172, 14, 0.46);
}

.admin-nav-link {
  display: inline-flex;
  width: 100%;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #374151;
  font-weight: 600;
  padding: 12px 14px;
  border-radius: 14px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.admin-nav-link::before,
body.admin-body .admin-link-button::before,
body.admin-body #logout-button::before {
  content: "";
  display: inline-block;
  flex: 0 0 auto;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.admin-nav-link::before {
  width: 18px;
  height: 18px;
  opacity: 0.92;
  background-image: var(--admin-icon, none);
}

.admin-nav-link:hover,
.admin-nav-link.active {
  background: #eefaf0;
  color: #0a8f24;
  transform: translateX(2px);
}

.admin-nav-link[data-nav="dashboard"] {
  --admin-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M3 13h8V3H3zm10 8h8v-6h-8zM3 21h8v-6H3zm10-8h8V3h-8z'/></svg>");
}

.admin-nav-link[data-nav="product-form"] {
  --admin-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M4 5h10v2H4zm0 6h10v2H4zm0 6h6v2H4zm13.2-8.8 2.6 2.6-6.9 6.9H10.3v-2.6zM18.3 7l1.3-1.3a1 1 0 0 1 1.4 0l.9.9a1 1 0 0 1 0 1.4L20.6 9z'/></svg>");
}

.admin-nav-link[data-nav="products"] {
  --admin-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M4 4h7v7H4zm9 0h7v7h-7zM4 13h7v7H4zm9 3h7v2h-7zm0-3h7v2h-7zm0 6h7v2h-7z'/></svg>");
}

.admin-nav-link[data-nav="promo-center"] {
  --admin-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 2 9.5 8.2 3 9l4.8 4.2L6.5 20 12 16.8 17.5 20l-1.3-6.8L21 9l-6.5-.8z'/></svg>");
}

.admin-nav-link[data-nav="banner-manager"] {
  --admin-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M4 5h16v10H4zm2 2v6h12V7zm-2 10h10v2H4z'/></svg>");
}

.admin-nav-link[data-nav="orders"] {
  --admin-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M7 4h10l1 2h3v2h-1l-1.2 9.1A2 2 0 0 1 16.8 19H7.2a2 2 0 0 1-2-1.9L4 8H3V6h3zm0 4 .9 7h8.2l.9-7z'/></svg>");
}

.admin-nav-link[data-nav="live-chat"] {
  --admin-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M4 5h16v11H7l-3 3zm2 2v7h1.2L9 12h9V7z'/></svg>");
}

.admin-nav-link[data-nav="reviews"] {
  --admin-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 2 9.5 8.2 3 9l4.8 4.2L6.5 20 12 16.8 17.5 20l-1.3-6.8L21 9l-6.5-.8z'/></svg>");
}

.admin-nav-link[data-nav="finance"] {
  --admin-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M5 19V9h3v10zm5 0V5h3v14zm5 0v-7h3v7z'/></svg>");
}

.admin-nav-link[data-nav="accounts"] {
  --admin-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 12a4 4 0 1 0-4-4 4 4 0 0 0 4 4zm0 2c-4.4 0-8 2-8 4.5V21h16v-2.5c0-2.5-3.6-4.5-8-4.5z'/></svg>");
}

.admin-nav-link[data-nav="admin-audit"] {
  --admin-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M6 3h9l5 5v13H6zm8 1.5V9h4.5zM9 12h8v2H9zm0 4h8v2H9zm0-8h3v2H9z'/></svg>");
}

.admin-nav-link[data-nav="security-logs"] {
  --admin-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 2 5 5v6c0 5 3.4 9.7 7 11 3.6-1.3 7-6 7-11V5zm0 5a2 2 0 1 1-2 2 2 2 0 0 1 2-2zm3.4 8H8.6v-1.2a3.4 3.4 0 0 1 6.8 0z'/></svg>");
}

.admin-nav-link[data-nav="payment"] {
  --admin-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M3 6h18v12H3zm2 2v2h14V8zm0 5h5v2H5z'/></svg>");
}

.admin-nav-link[data-nav="shipping"] {
  --admin-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M3 7h11v6H3zm12 2h3l3 3v1h-2a2 2 0 1 1-4 0H9a2 2 0 1 1-4 0H3v-2h12zm-9 8a1 1 0 1 0-1-1 1 1 0 0 0 1 1zm11 0a1 1 0 1 0-1-1 1 1 0 0 0 1 1z'/></svg>");
}

.admin-nav-link[data-nav="notifications"] {
  --admin-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 22a2.5 2.5 0 0 0 2.4-2h-4.8A2.5 2.5 0 0 0 12 22zm7-5V11a7 7 0 0 0-14 0v6l-2 2v1h18v-1z'/></svg>");
}

.admin-nav-link[data-nav="oauth"] {
  --admin-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 2 4 6v6c0 5 3.4 9.7 8 10 4.6-.3 8-5 8-10V6zm1 12h-2v-2h2zm0-4h-2V6h2z'/></svg>");
}

.admin-nav-link[data-nav="theme"] {
  --admin-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 3a9 9 0 1 0 0 18h1a3 3 0 0 0 0-6h-1a1 1 0 0 1 0-2h2a4 4 0 0 0 0-8zm-4 8a1.2 1.2 0 1 1 0-2.4A1.2 1.2 0 0 1 8 11zm3-4a1.2 1.2 0 1 1 0-2.4A1.2 1.2 0 0 1 11 7zm5 1a1.2 1.2 0 1 1 0-2.4A1.2 1.2 0 0 1 16 8z'/></svg>");
}

.admin-nav-link[data-nav="backup"] {
  --admin-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 3 5 7v5c0 4.7 2.9 8.9 7 10 4.1-1.1 7-5.3 7-10V7zm0 3.3 3 1.3V12c0 3-1.6 5.8-3 6.8-1.4-1-3-3.8-3-6.8V7.6z'/></svg>");
}

.admin-link-button {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

body.admin-body .admin-link-button::before,
body.admin-body #logout-button::before {
  width: 0;
  height: 0;
  opacity: 0;
  background-image: var(--admin-button-icon, none);
}

body.admin-body .admin-sidebar-actions .admin-link-button::before,
body.admin-body .admin-guard-actions .admin-link-button::before,
body.admin-body #logout-button::before {
  width: 16px;
  height: 16px;
  opacity: 0.92;
}

body.admin-body .admin-sidebar-actions .admin-link-button[href*="?view=storefront"],
body.admin-body .admin-sidebar-actions .admin-link-button[href="/admin/"],
body.admin-body .admin-guard-actions .admin-link-button {
  --admin-button-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 4 3 11h2v9h5v-6h4v6h5v-9h2z'/></svg>");
}

body.admin-body .admin-sidebar-actions .admin-link-button[href*="/daftar-order/"] {
  --admin-button-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M7 4h10l1 2h3v2h-1l-1.2 9.1A2 2 0 0 1 16.8 19H7.2a2 2 0 0 1-2-1.9L4 8H3V6h3zm0 4 .9 7h8.2l.9-7z'/></svg>");
}

body.admin-body .admin-sidebar-actions .admin-link-button[href*="/promo-center/"] {
  --admin-button-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 2 9.5 8.2 3 9l4.8 4.2L6.5 20 12 16.8 17.5 20l-1.3-6.8L21 9l-6.5-.8z'/></svg>");
}

body.admin-body .admin-sidebar-actions .admin-link-button[href*="/daftar-produk/"] {
  --admin-button-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M4 4h7v7H4zm9 0h7v7h-7zM4 13h7v7H4zm9 3h7v2h-7zm0-3h7v2h-7zm0 6h7v2h-7z'/></svg>");
}

body.admin-body .admin-sidebar-actions .admin-link-button[href*="/tambah-produk/"] {
  --admin-button-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M11 4h2v6h6v2h-6v6h-2v-6H5v-2h6z'/></svg>");
}

body.admin-body #logout-button {
  --admin-button-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M10 4H5v16h5v-2H7V6h3zm7.6 8-3.3-3.3 1.4-1.4L21.4 13l-5.7 5.7-1.4-1.4 3.3-3.3H9v-2z'/></svg>");
}

.admin-guard-card {
  max-width: 760px;
}

.admin-guard-card p {
  margin: 0;
  color: #6b7280;
}

body.admin-body.admin-locked .admin-guard-card {
  display: block !important;
  max-width: none;
  padding: 22px 24px;
  border-radius: 24px;
}

.admin-guard-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

@media (max-width: 1100px) {
  .admin-account-dock {
    display: none;
  }

  .admin-shell {
    width: min(100%, calc(100% - 24px));
    grid-template-columns: 1fr;
    gap: 20px;
    min-height: 0;
  }

  .admin-sidebar {
    position: static;
    display: grid;
    max-height: none;
    overflow: visible;
  }

  .admin-sidebar > .admin-sidebar-section:first-of-type .admin-nav {
    overflow: visible;
    padding-right: 0;
    margin-right: 0;
  }

  .product-editor-grid,
  .admin-order-board {
    grid-template-columns: 1fr;
  }

  .product-editor-side {
    position: static;
  }

  .admin-products-toolbar {
    grid-template-columns: 1fr;
  }

  .admin-accounts-toolbar {
    grid-template-columns: 1fr;
  }

  .admin-security-toolbar {
    grid-template-columns: 1fr;
  }

  .admin-bulk-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-products-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 840px) {
  .product-history-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gateway-status-grid {
    grid-template-columns: 1fr;
  }

  .backup-layout,
  .payment-mode-panels {
    grid-template-columns: 1fr;
  }

  .payment-config-section {
    padding: 14px;
  }

  .product-form-grid-two,
  .product-media-grid,
  .product-variant-grid {
    grid-template-columns: 1fr;
  }

  .product-form-section-head,
  .product-action-bar,
  .product-editor-head,
  .product-variant-row-head {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .product-admin-thumb {
    width: 100%;
    max-width: 180px;
  }

  .product-admin-actions {
    justify-content: flex-start;
  }

  .admin-search-box {
    grid-template-columns: 1fr;
  }

  .admin-account-head,
  .admin-account-identity,
  .security-log-head,
  .security-log-detail-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-account-badges {
    justify-content: flex-start;
  }

  .admin-account-stats {
    grid-template-columns: 1fr;
  }

  .admin-account-stats-grid,
  .admin-account-detail-grid,
  .admin-account-access-form-grid,
  .admin-permission-grid {
    grid-template-columns: 1fr;
  }

  .admin-account-actions-detail,
  .admin-account-order-head,
  .admin-account-order-meta {
    justify-content: flex-start;
  }

  .admin-bulk-actions {
    width: 100%;
  }

  .product-quick-edit-input-wrap {
    grid-template-columns: 1fr;
  }

  .security-log-detail-row span,
  .security-log-detail-row strong {
    max-width: none;
    text-align: left;
  }

  .admin-page-head {
    grid-template-columns: 1fr;
    padding: 22px 20px;
  }

  body.admin-body .admin-page-actions {
    margin-left: 0;
    justify-content: flex-start;
  }
}

@media (max-width: 1040px) {
  .product-detail-layout {
    grid-template-columns: 1fr;
  }

  .product-gallery-stage {
    min-height: 360px;
  }

  .product-detail-summary-card {
    position: static;
  }

  .product-detail-summary-column {
    gap: 18px;
  }
}

@media (max-width: 760px) {
  #open-chat-page,
  .orders-page-header .header-actions a[href="/chat/"] {
    display: none !important;
  }

  .buyer-cart-page .orders-page-head {
    display: none !important;
  }

  .buyer-orders-page .orders-page-head,
  .buyer-wishlist-page .orders-page-head {
    display: none !important;
  }

  .buyer-wishlist-page .wishlist-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .buyer-wishlist-page .wishlist-card {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
    border-radius: 16px;
    align-content: start;
  }

  .buyer-wishlist-page .wishlist-card-visual {
    min-height: 132px;
    border-radius: 14px;
  }

  .buyer-wishlist-page .wishlist-card-copy {
    gap: 8px;
  }

  .buyer-wishlist-page .wishlist-card-copy h3 {
    font-size: 0.92rem;
    line-height: 1.35;
  }

  .buyer-wishlist-page .wishlist-card-copy p {
    font-size: 0.78rem;
    line-height: 1.45;
  }

  .buyer-wishlist-page .wishlist-card-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    align-items: stretch;
  }

  .buyer-wishlist-page .wishlist-card-actions .ghost-button,
  .buyer-wishlist-page .wishlist-card-actions .primary-button {
    width: 100%;
    min-height: 38px;
    font-size: 0.8rem;
    padding-inline: 10px;
  }

  .product-dialog {
    width: min(100% - 12px, 100%);
    max-width: min(430px, calc(100% - 12px));
    max-height: calc(100dvh - 12px);
  }

  .dialog-shell,
  .auth-shell,
  .checkout-shell,
  .payment-shell,
  .contact-shell,
  .variant-picker-shell {
    width: 100%;
    max-width: none;
    max-height: calc(100dvh - 20px);
    overflow-y: auto;
    padding: 16px;
    border-radius: 22px;
  }

  .dialog-grid,
  .payment-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .checkout-grid-two,
  .auth-tabs {
    grid-template-columns: 1fr;
  }

  .dialog-meta,
  .checkout-saved-address-head,
  .checkout-address-actions,
  .contact-dialog-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .checkout-saved-address-cards {
    grid-template-columns: 1fr;
  }

  .checkout-saved-address-head > .ghost-button {
    width: 100%;
  }

  .checkout-saved-address-section,
  .checkout-summary,
  .payment-card {
    padding: 14px;
  }

  .summary-value-text {
    max-width: none;
    text-align: left;
  }

  .dialog-close {
    top: 12px;
    right: 12px;
    width: 36px;
    min-height: 36px;
    padding: 0;
  }

  .buyer-chat-page .orders-page-header .header-actions > .header-link-button {
    display: none !important;
  }

  .buyer-chat-offer-rail {
    display: none !important;
  }

  .buyer-chat-layout > .buyer-chat-sidebar,
  .buyer-chat-sidebar-head,
  .buyer-chat-sidebar-feature-grid,
  .buyer-chat-sidebar-note,
  .buyer-chat-sidebar {
    display: none !important;
  }

  .buyer-chat-layout {
    grid-template-columns: 1fr;
    min-height: auto;
    height: auto;
  }

  .buyer-mobile-nav-page .orders-page-shell {
    padding-bottom: calc(102px + env(safe-area-inset-bottom, 0px));
  }

  .cart-page-item {
    padding: 14px;
    gap: 12px;
  }

  .cart-page-item-visual {
    min-height: 190px;
  }

  .cart-page-item-head,
  .cart-page-item-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .cart-page-item-price {
    justify-items: start;
    text-align: left;
  }

  .product-page-header-inner,
  .product-page-shell {
    width: min(100%, calc(100% - 24px));
  }

  .product-page-shell {
    padding: 18px 0 calc(210px + env(safe-area-inset-bottom, 0px));
  }

  .product-page-header-inner {
    min-height: 88px;
    align-items: flex-start;
    padding: 14px 0;
    flex-direction: column;
  }

  .product-page-header-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: flex-start;
    gap: 8px;
  }

  .product-page-header-actions .toolbar-pill {
    grid-column: 1 / -1;
  }

  .product-page-header-actions .ghost-button,
  .product-page-header-actions .primary-button {
    width: 100%;
    min-height: 38px;
    justify-content: center;
    padding-inline: 10px;
    border-radius: 14px;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
  }

  .product-page-header-actions .ghost-button {
    background: #fff;
    border-color: #bfd9c4;
    color: #137b38;
  }

  .product-page-header-actions .primary-button {
    background: linear-gradient(180deg, var(--accent-bright), var(--accent-strong));
    border-color: var(--accent-strong);
    color: #fff;
  }

  .product-breadcrumbs {
    display: none;
  }

  .product-detail-species {
    font-size: 1.34rem;
    line-height: 1.12;
  }

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

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

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

  .product-detail-gallery-card,
  .product-detail-gallery-chat-card,
  .product-detail-summary-card,
  .product-detail-description-card,
  .product-purchase-notes-card {
    border-radius: 18px;
  }

  .product-detail-gallery-card,
  .product-detail-gallery-chat-card,
  .product-detail-summary-card {
    padding: 16px;
  }

  .product-detail-description-card,
  .product-purchase-notes-card {
    padding: 18px;
  }

  .product-gallery-stage {
    min-height: 300px;
    border-radius: 18px;
  }

  .product-gallery-thumbs {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-inline: -2px;
    padding: 2px 2px 6px;
    scrollbar-width: thin;
  }

  .product-gallery-chat-button {
    min-height: 44px;
    border-radius: 16px;
    box-shadow: 0 10px 20px rgba(var(--accent-rgb), 0.14);
  }

  .product-gallery-thumb {
    width: 68px;
    min-width: 68px;
    border-radius: 14px;
  }

  .product-variant-section {
    margin-top: 16px;
    padding: 16px;
    border-radius: 20px;
    gap: 12px;
  }

  .product-variant-callout,
  .product-variant-summary-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .product-variant-required {
    min-height: 28px;
    padding-inline: 10px;
  }

  .product-variant-field select {
    min-height: 52px;
    font-size: 0.92rem;
  }

  .product-variant-summary-card {
    padding: 14px;
  }

  .product-variant-summary-price {
    font-size: 1.18rem;
  }

  .product-gallery-swipe-hint {
    right: 10px;
    bottom: 10px;
    min-height: 28px;
    padding: 0 10px;
    font-size: 0.7rem;
  }

  .product-detail-price {
    font-size: 1.48rem;
    line-height: 1.08;
  }

  .product-detail-price-block,
  .product-detail-meta-grid,
  .product-detail-tags,
  .product-detail-action-card {
    margin-top: 16px;
  }

  .product-detail-summary {
    margin-top: 14px;
    font-size: 0.94rem;
    line-height: 1.68;
  }

  .product-quick-facts {
    gap: 7px;
    margin-top: 14px;
  }

  .product-quick-facts span {
    min-height: 30px;
    padding: 0 10px;
    font-size: 0.76rem;
  }

  .product-page-qty-row {
    margin-bottom: 12px;
  }

  .product-detail-action-card {
    margin-top: 14px;
    padding: 14px 16px;
  }

  .product-detail-action-card .product-page-qty-row,
  .product-detail-action-card .product-detail-actions {
    display: none;
  }

  .product-detail-action-card .product-detail-hint {
    margin-top: 0;
    font-size: 0.82rem;
    line-height: 1.55;
  }

  .product-promo-status-card {
    padding: 14px 16px;
  }

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

  .product-related-grid .promo-product-card {
    border-radius: 16px;
  }

  .product-related-grid .promo-product-visual {
    aspect-ratio: 1 / 0.92;
  }

  .product-related-grid .promo-product-copy {
    padding: 10px;
    gap: 7px;
  }

  .product-related-grid .promo-product-kicker {
    font-size: 0.66rem;
  }

  .product-related-grid .promo-product-copy h3 {
    font-size: 0.88rem;
  }

  .product-related-grid .promo-product-summary {
    font-size: 0.74rem;
    line-height: 1.42;
  }

  .product-related-grid .promo-product-stats {
    gap: 6px;
  }

  .product-related-grid .promo-product-stats .stat-pill {
    min-height: 26px;
    padding-inline: 8px;
    font-size: 0.72rem;
  }

  .product-related-grid .promo-product-actions {
    grid-template-columns: 1fr;
  }

  .product-related-grid .promo-product-actions .ghost-button,
  .product-related-grid .promo-product-actions .primary-button {
    min-height: 38px;
    font-size: 0.82rem;
  }

  .product-review-card-head,
  .product-related-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .product-related-head .ghost-button {
    width: 100%;
    justify-content: center;
  }

  .product-mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    z-index: 72;
    display: grid;
    gap: 10px;
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.97);
    border-top: 1px solid #dfe5e1;
    box-shadow: 0 -14px 34px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(12px);
  }

  .product-mobile-bar-copy {
    display: grid;
    gap: 4px;
  }

  .product-mobile-bar-actions {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    gap: 8px;
    align-items: center;
  }

  .product-mobile-icon-button,
  .product-mobile-add-button {
    min-height: 42px;
    padding-inline: 12px;
  }

  .product-mobile-icon-button {
    min-width: 0;
  }

  .product-mobile-add-button {
    width: 100%;
  }

  .product-gallery-lightbox {
    padding: 0;
  }

  .product-gallery-lightbox-shell {
    width: 100%;
    height: 100%;
    max-height: none;
    padding: 14px 12px calc(14px + env(safe-area-inset-bottom, 0px));
    border-radius: 0;
    gap: 12px;
  }

  .product-gallery-lightbox-top {
    align-items: flex-start;
  }

  .product-gallery-lightbox-actions {
    justify-content: flex-start;
  }

  .product-gallery-lightbox-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    flex: 1 1 auto;
  }

  .product-gallery-lightbox-viewport {
    min-height: min(62vh, 520px);
    border-radius: 18px;
  }

  .product-gallery-lightbox-stage {
    padding: 14px;
  }

  .product-gallery-lightbox-viewport.zoomed .product-gallery-lightbox-stage img {
    width: max(155vw, 620px);
  }

  .product-gallery-lightbox-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 40px;
    height: 40px;
    transform: translateY(-50%);
    font-size: 1.5rem;
  }

  .product-gallery-lightbox-nav-prev {
    left: 8px;
  }

  .product-gallery-lightbox-nav-next {
    right: 8px;
  }

  .product-gallery-lightbox-hint {
    font-size: 0.8rem;
  }

  .hero-slide-cta {
    left: 18px;
    bottom: 18px;
  }
}

.product-card {
  position: relative;
}

.wishlist-icon-button {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #9ca3af;
  font-size: 1.15rem;
  box-shadow: 0 8px 20px rgba(49, 53, 59, 0.12);
  cursor: pointer;
}

.wishlist-icon-button:hover,
.wishlist-icon-button.active {
  color: #dc2626;
}

.wishlist-icon-button.active {
  background: #fff2f2;
}

.promo-product-action-row {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid #eef1f3;
  margin-top: auto;
}

.promo-showcase .promo-product-action-row {
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top-color: #ffe7d6;
}

.promo-showcase .promo-product-button,
.promo-showcase .wishlist-inline-button {
  min-height: 36px;
  padding: 0 12px;
  font-size: 0.82rem;
  border-radius: 10px;
}

.promo-showcase .promo-product-button {
  border-color: #fdba74;
  background: linear-gradient(135deg, #fff6ea 0%, #ffe4bf 100%);
  color: #b45309;
}

.promo-showcase .promo-product-button:hover {
  border-color: #fb923c;
  color: #9a3412;
}

.promo-showcase .wishlist-inline-button {
  border-color: #fecaca;
  background: linear-gradient(135deg, #fff8f8 0%, #fff0f0 100%);
}

.wishlist-inline-button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #f3d0d0;
  border-radius: 12px;
  background: #fff;
  color: #b91c1c;
  font-weight: 700;
  cursor: pointer;
}

.wishlist-inline-button.active,
.product-detail-actions .ghost-button.active {
  border-color: #f3d0d0;
  background: #fff2f2;
  color: #b91c1c;
}

.promo-timing-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}

.promo-timing-row.compact {
  margin-top: 8px;
}

.promo-showcase .promo-timing-row.compact {
  gap: 6px;
  margin-top: 6px;
}

.promo-status-chip {
  min-height: 28px;
}

.promo-countdown-text,
.promo-date-range-text {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f5f7f6;
  color: #405266;
  font-size: 0.78rem;
  font-weight: 700;
}

.promo-showcase .promo-countdown-text,
.promo-showcase .promo-date-range-text {
  min-height: 24px;
  padding: 0 8px;
  font-size: 0.72rem;
  background: #fff4e6;
  color: #9a3412;
}

.product-promo-timing {
  min-height: 0;
  margin-bottom: 10px;
}

.product-card.product-card-promo .product-promo-timing {
  margin-bottom: 0;
}

.product-promo-timing[hidden] {
  display: none;
}

.product-promo-timing .promo-timing-row {
  margin-top: 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f8fbf9;
  border: 1px solid #e8efea;
}

.product-card.product-card-promo .product-promo-timing .promo-timing-row {
  padding: 8px 10px;
  border-radius: 14px;
  background: linear-gradient(180deg, #fffdfa 0%, #fff5ea 100%);
  border-color: #ffd8b6;
}

.product-card.product-card-promo .product-promo-timing .promo-timing-row:empty {
  display: none;
}

.product-card.product-card-promo .promo-status-chip.success {
  background: #ecfdf3;
  border-color: var(--accent-line);
  color: var(--accent-deep);
}

.product-card.product-card-promo .promo-status-chip.pending {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #c2410c;
}

.product-card.product-card-promo .promo-status-chip.cancelled {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #be123c;
}

.product-card.product-card-promo .promo-countdown-text,
.product-card.product-card-promo .promo-date-range-text {
  min-height: 24px;
  padding: 0 8px;
  font-size: 0.72rem;
  background: #fff4e6;
  color: #9a3412;
}

.hero-side-banner-cta {
  max-width: 100%;
  white-space: normal;
}

.product-detail-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-promo-status-card {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #dfeae3;
  border-radius: 16px;
  background: #f9fcfa;
  display: grid;
  gap: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.product-promo-status-card[hidden] {
  display: none;
}

.promo-status-card-head {
  display: grid;
  gap: 4px;
}

.promo-status-card-head h3 {
  margin: 0;
  font-size: 1.02rem;
}

.promo-status-support {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.promo-status-support span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eefaf0;
  color: var(--accent-ink);
  font-size: 0.78rem;
  font-weight: 700;
}

.promo-center-grid,
.wishlist-grid,
.banner-manager-list {
  display: grid;
  gap: 16px;
}

.promo-center-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.promo-center-analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.promo-analytics-card {
  border: 1px solid #e2ebe5;
  border-radius: 18px;
  background:
    linear-gradient(180deg, #ffffff, #fbfcfc),
    radial-gradient(circle at top right, rgba(var(--accent-rgb), 0.06), transparent 34%);
  padding: 16px;
  display: grid;
  gap: 12px;
  box-shadow: 0 18px 34px rgba(20, 39, 26, 0.05);
}

.promo-analytics-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.promo-analytics-card-head h3 {
  margin: 2px 0 0;
}

.promo-analytics-rank {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eefaf0;
  color: var(--green-dark);
  font-size: 0.76rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.promo-analytics-metrics,
.promo-center-performance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.promo-analytics-metrics div,
.promo-center-performance-grid div {
  padding: 10px 12px;
  border: 1px solid #e8ecef;
  border-radius: 14px;
  background: #fff;
  display: grid;
  gap: 4px;
}

.promo-analytics-metrics span,
.promo-center-performance-grid span {
  color: var(--muted);
  font-size: 0.76rem;
}

.promo-analytics-metrics strong,
.promo-center-performance-grid strong {
  color: #1f2937;
  font-size: 0.92rem;
}

.promo-center-card {
  display: grid;
  gap: 14px;
  border-color: #e2ebe5;
  box-shadow: 0 16px 30px rgba(20, 39, 26, 0.05);
}

.promo-center-card-head {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.promo-center-card-visual {
  border-radius: 16px;
  overflow: hidden;
  background: #f5f7f6;
  min-height: 110px;
  display: grid;
  place-items: center;
}

.promo-center-card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.promo-center-card-copy {
  display: grid;
  gap: 8px;
}

.promo-center-card-copy .promo-timing-row {
  margin-top: 0;
}

.promo-center-card-copy h3,
.banner-manager-card-copy strong,
.wishlist-card-copy h3 {
  margin: 0;
}

.promo-center-card-copy p,
.wishlist-card-copy p {
  margin: 0;
  color: var(--muted);
}

.promo-center-card-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.promo-center-price-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: baseline;
}

.promo-center-price-line strong {
  color: var(--orange);
  font-size: 1.15rem;
}

.promo-center-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid #eef1f3;
}

.promo-center-toggle-line {
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fbfcfc;
}

.promo-center-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1.6fr) repeat(2, minmax(180px, 1fr)) auto;
  gap: 14px;
  align-items: end;
}

.promo-center-toolbar-actions {
  display: flex;
  justify-content: flex-end;
}

.promo-center-summary-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.banner-manager-grid {
  align-items: start;
  grid-template-columns: minmax(360px, 408px) minmax(0, 1fr);
  gap: 24px;
}

.banner-manager-hub-card {
  display: grid;
  gap: 20px;
}

.banner-manager-page-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
}

.banner-manager-primary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.banner-manager-tabbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 4px;
}

.banner-manager-tab {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid #dfe9e3;
  background: #ffffff;
  color: #526277;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.banner-manager-tab:hover {
  border-color: rgba(var(--accent-rgb), 0.28);
  color: var(--accent);
}

.banner-manager-tab.is-active {
  border-color: rgba(var(--accent-rgb), 0.26);
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.14), rgba(255, 255, 255, 0.98));
  color: var(--accent);
  box-shadow: 0 10px 24px rgba(var(--accent-rgb), 0.12);
}

.banner-manager-tab-panel {
  display: grid;
  gap: 20px;
}

.banner-manager-form-card {
  position: sticky;
  top: 20px;
  display: grid;
  gap: 20px;
  align-content: start;
}

.banner-manager-main-card {
  display: grid;
  gap: 20px;
}

.banner-editor-grid {
  align-items: start;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 22px;
}

.banner-editor-main-card {
  position: static;
  top: auto;
}

.banner-editor-side-stack {
  display: grid;
  gap: 18px;
  align-content: start;
}

.banner-editor-side-card {
  display: grid;
  gap: 16px;
  align-content: start;
}

.banner-editor-side-actions {
  display: grid;
  gap: 10px;
}

.banner-editor-checklist {
  display: grid;
  gap: 10px;
}

.banner-editor-checklist p {
  margin: 0;
  color: #64748b;
  line-height: 1.7;
}

.banner-manager-form {
  display: grid;
  gap: 16px;
}

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

.banner-form-overview-card {
  display: grid;
  gap: 4px;
  padding: 14px 14px 12px;
  border: 1px solid #dfe9e3;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f6fbf7 100%);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.banner-form-overview-card span,
.banner-form-overview-card small {
  color: #64748b;
}

.banner-form-overview-card strong {
  font-size: 1.05rem;
  line-height: 1.1;
}

.banner-form-section {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid #e4ece7;
  border-radius: 22px;
  background: linear-gradient(180deg, #fcfffd 0%, #f3f8f4 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.52);
}

.banner-form-section-head {
  display: grid;
  gap: 4px;
}

.banner-form-section-head h3 {
  margin: 0;
  font-size: 1rem;
}

.banner-checkbox-line {
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #dfe9e3;
  border-radius: 16px;
  background: #ffffff;
  align-items: center;
  gap: 10px;
}

.banner-checkbox-line input[type="checkbox"] {
  flex: 0 0 18px;
}

.banner-form-actions {
  padding-top: 2px;
}

.banner-upload-preview {
  min-height: 168px;
  border-radius: 18px;
}

.banner-manager-topbar {
  display: grid;
  grid-template-columns: minmax(240px, 0.95fr) minmax(0, 1.25fr);
  gap: 16px;
  align-items: start;
}

.banner-manager-summary-card {
  min-height: 100%;
  padding: 18px 20px;
  border: 1px solid #e3ece6;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.08), rgba(255, 255, 255, 0.98));
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
  margin-top: 0;
}

.banner-manager-summary-headline {
  display: grid;
  gap: 6px;
}

.banner-manager-summary-headline strong {
  color: #1f2937;
  font-size: 1rem;
}

.banner-manager-summary-caption {
  color: #64748b;
  font-size: 0.85rem;
}

.banner-manager-summary-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.banner-manager-summary-metric {
  display: grid;
  gap: 4px;
  padding: 12px 12px 10px;
  border: 1px solid rgba(3, 172, 14, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
}

.banner-manager-summary-metric span {
  color: #64748b;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.banner-manager-summary-metric strong {
  color: #1f2937;
  font-size: 1rem;
}

.banner-manager-toolbar {
  margin-left: 0;
  padding: 16px 16px 12px;
  border: 1px solid #e4ece7;
  border-radius: 20px;
  background: #fbfcfc;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.banner-manager-toolbar-compact {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 280px));
  gap: 14px;
  justify-content: flex-start;
}

.banner-manager-insight-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.9fr);
  gap: 18px;
  align-items: start;
}

.banner-manager-lane-shell,
.banner-manager-library-shell {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid #e4ece7;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f7faf8 100%);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.05);
}

.banner-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 0;
}

.banner-live-preview-shell {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid #e4ece7;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f7faf8 100%);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.05);
}

.banner-live-preview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) 340px;
  gap: 20px;
  align-items: start;
}

.banner-live-preview-slider-column {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.banner-live-preview-main {
  position: relative;
  min-height: 0;
  aspect-ratio: 1504 / 704;
  border-radius: 24px;
  overflow: hidden;
  background: #f5f7f4;
  box-shadow: inset 0 0 0 1px #e7ebef, 0 14px 30px rgba(15, 23, 42, 0.06);
}

.banner-live-slider,
.banner-live-slide,
.banner-live-empty,
.banner-live-side,
.banner-live-side-card,
.banner-live-side-empty {
  width: 100%;
  height: 100%;
}

.banner-live-slide,
.banner-live-side-card {
  position: relative;
  border: 0;
  border-radius: inherit;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  text-align: left;
}

.banner-live-slide {
  background-size: contain;
  background-color: #f5f7f4;
}

.banner-live-empty,
.banner-live-side-empty {
  display: grid;
  place-items: center;
  color: #64748b;
  padding: 24px;
  text-align: center;
  background: linear-gradient(180deg, #f8fbf9 0%, #eef4ef 100%);
}

.banner-live-side {
  min-height: 0;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
  min-width: 0;
}

.banner-live-slide::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(115deg, rgba(2, 20, 8, 0.18), rgba(2, 20, 8, 0.02) 52%, rgba(2, 20, 8, 0.12)),
    linear-gradient(140deg, rgba(var(--accent-rgb), 0.04), rgba(0, 0, 0, 0.01));
}

.banner-live-slide-cta {
  position: absolute;
  left: 28px;
  bottom: 28px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--green-dark);
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(19, 44, 24, 0.16);
}

.banner-live-side-card {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 26px 24px;
  background-color: #0f2315;
}

.banner-live-side-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 19, 10, 0.02), rgba(6, 19, 10, 0.07) 42%, rgba(6, 19, 10, 0.14)),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.16), transparent 38%);
}

.banner-live-side-copy {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: min(78%, 260px);
  display: grid;
  gap: 8px;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(6, 19, 10, 0.28);
}

.banner-live-side-kicker {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.banner-live-side-copy strong {
  margin: 0;
  max-width: 230px;
  font-size: clamp(1.05rem, 1.32vw, 1.42rem);
  line-height: 1.08;
}

.banner-live-side-cta {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--green-dark);
  font-size: 0.84rem;
  font-weight: 700;
  text-shadow: none;
}

.banner-live-nav {
  position: absolute;
  bottom: 24px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 1.7rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
}

.banner-live-nav-prev {
  right: 84px;
}

.banner-live-nav-next {
  right: 28px;
}

.banner-live-dots {
  position: absolute;
  right: 146px;
  bottom: 22px;
  z-index: 2;
  display: flex;
  gap: 8px;
}

.banner-live-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
}

.banner-live-dot.active {
  width: 28px;
  background: #ffffff;
}

.banner-live-toolbar {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
  padding-top: 2px;
}

.banner-live-caption {
  color: #64748b;
  font-size: 0.92rem;
  padding-left: 4px;
}

.banner-preview-panel {
  border: 1px solid #e7ebef;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f7faf8 100%);
  padding: 18px;
  display: grid;
  gap: 14px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.05);
}

.banner-preview-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.banner-preview-head h3 {
  margin: 0;
  font-size: 1.02rem;
}

.banner-preview-note {
  color: #64748b;
  font-size: 0.85rem;
  text-align: right;
}

.banner-preview-lane {
  display: grid;
  gap: 12px;
  min-height: 140px;
  padding: 14px;
  border: 1px dashed #d7e2dc;
  border-radius: 16px;
  background: linear-gradient(180deg, #fafdfb 0%, #f5f8f6 100%);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.banner-preview-lane.drag-active {
  border-color: var(--accent-strong);
  background: #f1fbf3;
  box-shadow: inset 0 0 0 1px #cdeed5;
}

.banner-preview-lane-side {
  min-height: 220px;
}

.banner-preview-card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid #e7ebef;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.banner-preview-card:hover {
  transform: translateY(-1px);
  border-color: #b9dfc1;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
}

.banner-preview-card.dragging {
  opacity: 0.62;
  transform: scale(0.98);
}

.banner-preview-card.drag-over {
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.14);
}

.banner-preview-thumb {
  min-height: 64px;
  border-radius: 14px;
  overflow: hidden;
  background: #edf3ef;
  display: grid;
  place-items: center;
}

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

.banner-preview-copy {
  display: grid;
  gap: 8px;
}

.banner-preview-copy-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.banner-preview-copy-head strong {
  font-size: 0.96rem;
}

.banner-preview-order {
  color: #64748b;
  font-size: 0.84rem;
  white-space: nowrap;
}

.banner-preview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: #64748b;
  font-size: 0.88rem;
}

.banner-preview-handle {
  color: #94a3b8;
  font-size: 1.1rem;
  letter-spacing: 0.18rem;
  user-select: none;
}

.banner-manager-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  border: 1px solid #e4ece7;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbfa 100%);
  padding: 16px;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.05);
}

.banner-manager-card-visual {
  border-radius: 16px;
  overflow: hidden;
  min-height: 156px;
  background: #f5f7f6;
  display: grid;
  place-items: center;
}

.banner-manager-card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-manager-card-copy {
  display: grid;
  gap: 10px;
}

.banner-manager-status-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  color: #64748b;
  font-size: 0.92rem;
}

.banner-manager-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.banner-manager-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 4px;
}

.banner-manager-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.banner-manager-meta-item {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid #e4ece7;
  border-radius: 16px;
  background: #ffffff;
}

.banner-manager-meta-item span {
  color: #64748b;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.banner-manager-meta-item strong {
  font-size: 1rem;
}

.banner-analytics-shell {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid #e4ece7;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f7faf8 100%);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.05);
}

.banner-analytics-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.nested-admin-card {
  padding: 18px;
}

.compact-sidebar-head h3 {
  margin: 0;
}

.banner-analytics-list {
  display: grid;
  gap: 10px;
}

.banner-analytics-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid #e7ebef;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfa 100%);
}

.banner-manager-library-shell .banner-manager-list {
  gap: 14px;
}

.banner-analytics-item-copy {
  display: grid;
  gap: 4px;
}

.banner-analytics-item-copy strong {
  font-size: 0.96rem;
}

.banner-analytics-item-copy span {
  color: #64748b;
  font-size: 0.86rem;
}

.banner-analytics-item-metrics {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 14px;
  color: #64748b;
  font-size: 0.86rem;
}

.dashboard-restock-shell {
  margin-top: 24px;
  display: grid;
  gap: 18px;
}

.dashboard-restock-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.dashboard-restock-card {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid #e7ebef;
  background: #fbfcfd;
  display: grid;
  gap: 14px;
}

.dashboard-restock-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.dashboard-restock-card-head h3 {
  margin: 0;
}

.dashboard-restock-list {
  display: grid;
  gap: 10px;
}

.dashboard-restock-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid #e7ecef;
  background: #ffffff;
  color: inherit;
  text-decoration: none;
}

.dashboard-restock-item-copy {
  display: grid;
  gap: 4px;
}

.dashboard-restock-item-copy strong {
  color: #1f2937;
}

.dashboard-restock-item-copy span,
.dashboard-restock-item-copy p {
  margin: 0;
  color: #64748b;
  font-size: 0.86rem;
  line-height: 1.55;
}

.dashboard-restock-link {
  pointer-events: none;
}

.banner-upload-preview {
  min-height: 180px;
}

.compact-empty-state {
  min-height: 100px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 18px;
}

.wishlist-page-shell {
  padding-bottom: 42px;
}

.wishlist-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.wishlist-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px;
  border: 1px solid #e7ebef;
  border-radius: 18px;
  background: #fbfcfc;
  padding: 16px;
}

.wishlist-card-visual {
  border-radius: 16px;
  overflow: hidden;
  min-height: 120px;
  background: #f5f7f6;
  display: grid;
  place-items: center;
}

.wishlist-card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wishlist-card-copy {
  display: grid;
  gap: 10px;
}

.wishlist-card .promo-product-meta,
.wishlist-card .product-tags {
  display: none !important;
}

.wishlist-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

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

.category-page-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid #e7ebef;
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(var(--accent-rgb), 0.08), transparent 42%),
    linear-gradient(180deg, #ffffff, #fbfcfc);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.05);
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

.category-page-card:hover {
  transform: translateY(-2px);
  border-color: #cdebd4;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
}

.category-page-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.category-page-card-top strong {
  font-size: 1rem;
  line-height: 1.45;
  color: #1f2937;
}

.category-page-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.9rem;
}

.category-page-card-link {
  color: var(--green-dark);
  font-weight: 700;
  font-size: 0.9rem;
}

.cart-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 18px;
  align-items: start;
}

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

.cart-page-summary-card {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 14px;
}

.cart-page-summary-list {
  display: grid;
  gap: 12px;
}

.cart-page-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.cart-page-summary-row strong {
  color: var(--orange);
}

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

.cart-page-item {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
  border: 1px solid #e7ebef;
  border-radius: 18px;
  background: #fbfcfc;
}

.cart-page-item-visual {
  min-height: 108px;
  border-radius: 16px;
  overflow: hidden;
  background: #f5f7f6;
  display: grid;
  place-items: center;
}

.cart-page-item-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-page-item-copy {
  display: grid;
  gap: 10px;
}

.cart-page-item-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.cart-page-item-head h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.4;
}

.cart-page-item-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.cart-page-item-price {
  display: grid;
  gap: 4px;
  justify-items: end;
  text-align: right;
}

.cart-page-item-price strong {
  color: var(--orange);
}

.cart-page-item-price span {
  color: var(--muted);
  font-size: 0.82rem;
}

.cart-page-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cart-page-item-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f3f7f4;
  color: #516273;
  font-size: 0.77rem;
  font-weight: 600;
}

.cart-page-item-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

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

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

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

.website-settings-form {
  display: grid;
  gap: 18px;
}

.shipping-config-form {
  display: grid;
  gap: 18px;
}

.shipping-config-summary-grid {
  align-items: stretch;
}

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

.shipping-config-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), color-mix(in srgb, var(--accent-soft) 28%, white));
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.06);
}

.shipping-config-card.is-active {
  border-color: color-mix(in srgb, var(--accent-line) 82%, rgba(15, 23, 42, 0.12));
  box-shadow: 0 20px 36px var(--accent-shadow-soft);
}

.shipping-config-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.shipping-config-card-head h3 {
  margin: 6px 0 2px;
  font-size: 1.18rem;
}

.shipping-config-card-head p {
  margin: 0;
  color: var(--muted);
}

.shipping-config-master-toggle {
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid var(--accent-line);
  background: rgba(255, 255, 255, 0.9);
}

.shipping-service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.shipping-service-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 15px;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.9);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.shipping-service-item.is-active {
  border-color: var(--accent-line);
  box-shadow: 0 12px 24px var(--accent-shadow-soft);
}

.shipping-service-item.is-muted {
  opacity: 0.7;
}

.shipping-service-item input {
  flex: 0 0 auto;
  margin-top: 2px;
}

.shipping-service-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.shipping-service-copy strong {
  color: var(--text);
  font-size: 0.96rem;
}

.shipping-service-copy span,
.shipping-service-copy small {
  color: var(--muted);
}

.website-settings-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: 18px;
  align-items: start;
}

.website-settings-column {
  display: grid;
  gap: 18px;
}

.website-settings-section {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--accent-line);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), color-mix(in srgb, var(--accent-soft) 42%, white));
}

.field-label-inline {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.field-inline-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
}

.website-settings-checkbox {
  min-height: 22px;
}

.website-settings-checkbox input {
  flex: 0 0 auto;
}

.website-settings-form .field-block.is-disabled,
#website-contact-whatsapp-field.is-disabled {
  opacity: 0.62;
}

.website-settings-preview {
  display: grid;
}

.website-settings-preview-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--accent-line);
  border-radius: 22px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent-soft) 64%, white), rgba(255, 255, 255, 0.98));
  box-shadow: 0 18px 34px var(--accent-shadow-soft);
}

.website-settings-preview-brand {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.website-settings-preview-brand img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 10px;
}

.website-settings-preview-brand strong {
  display: block;
  color: var(--text);
  font-size: 1.05rem;
}

.website-settings-preview-brand span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.6;
}

.website-settings-preview-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.website-settings-preview-meta article {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.website-settings-preview-meta span,
.website-settings-preview-meta small {
  color: var(--muted);
}

.website-settings-preview-meta strong {
  color: var(--accent-deep);
  font-size: 0.98rem;
}

.theme-config-form {
  display: grid;
  gap: 18px;
}

.theme-config-grid {
  align-items: end;
}

.theme-color-picker {
  width: 100%;
  min-height: 58px;
  padding: 6px;
  border: 1px solid var(--accent-line);
  border-radius: 16px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent-soft) 72%, white), #fff);
  box-shadow: 0 10px 18px var(--accent-shadow-soft);
  cursor: pointer;
}

.theme-config-note {
  margin: -2px 0 0;
}

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

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

.theme-preset-button {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid #e4eaee;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.theme-preset-button:hover {
  transform: translateY(-1px);
  border-color: var(--accent-line);
  box-shadow: 0 14px 24px var(--accent-shadow-soft);
}

.theme-preset-button.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-focus-soft), 0 16px 28px var(--accent-shadow-soft);
}

.theme-preset-swatch {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.88), 0 0 0 1px rgba(15, 23, 42, 0.08);
  grid-row: 1 / span 2;
}

.theme-preset-button strong {
  color: var(--text);
  font-size: 0.92rem;
}

.theme-preset-button small {
  color: var(--muted);
  font-size: 0.77rem;
  line-height: 1.45;
}

.theme-preview-grid {
  display: grid;
  gap: 16px;
}

.theme-preview-palette {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.theme-preview-swatch {
  min-height: 112px;
  padding: 16px;
  border-radius: 20px;
  color: #fff;
  display: grid;
  align-content: end;
  gap: 4px;
  box-shadow: 0 18px 38px var(--accent-shadow-soft);
}

.theme-preview-swatch span {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.theme-preview-swatch strong {
  font-size: 1rem;
}

.theme-preview-swatch-soft {
  border: 1px solid var(--accent-line);
  box-shadow: none;
}

.theme-preview-demo {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--accent-line);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(var(--accent-rgb), 0.08), transparent 34%),
    linear-gradient(180deg, color-mix(in srgb, var(--accent-soft) 62%, white), #fff);
}

.theme-preview-demo-actions,
.theme-preview-demo-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.theme-preview-chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
}

.theme-preview-demo-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.theme-preview-card {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid #e4eaee;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
}

.theme-preview-card span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.theme-preview-card strong {
  color: var(--text);
  font-size: 0.96rem;
}

.theme-preview-card small {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.theme-config-actions {
  justify-content: flex-start;
}

@media (max-width: 980px) {
  .banner-manager-page-head,
  .banner-editor-grid,
  .banner-manager-grid,
  .banner-manager-insight-grid,
  .banner-manager-topbar,
  .banner-manager-toolbar-compact,
  .banner-form-overview,
  .banner-manager-meta-grid,
  .banner-manager-summary-metrics {
    grid-template-columns: 1fr;
  }

  .banner-manager-form-card {
    position: static;
    top: auto;
  }

  .banner-manager-primary-actions {
    justify-content: flex-start;
  }

  .banner-manager-lane-shell,
  .banner-manager-library-shell,
  .banner-live-preview-shell,
  .banner-analytics-shell {
    padding: 16px;
  }

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

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

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

  .promo-center-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .promo-center-toolbar-actions {
    justify-content: flex-start;
    grid-column: 1 / -1;
  }

  .product-reviews-summary-grid,
  .banner-analytics-grid,
  .dashboard-restock-grid,
  .shipping-service-grid,
  .website-settings-layout,
  .website-settings-preview-meta,
  .theme-preset-grid,
  .theme-preview-palette,
  .theme-preview-demo-cards {
    grid-template-columns: 1fr;
  }

  .banner-preview-grid {
    grid-template-columns: 1fr;
  }

  .banner-live-preview-grid {
    grid-template-columns: 1fr;
  }

  .banner-manager-card,
  .wishlist-card,
  .cart-page-item,
  .promo-center-card-head {
    grid-template-columns: 1fr;
  }

  .promo-analytics-metrics,
  .promo-center-performance-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .banner-manager-tabbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .banner-manager-tab {
    width: 100%;
    justify-content: center;
  }

  .banner-manager-toolbar {
    padding: 12px;
  }

  .promo-center-toolbar {
    grid-template-columns: 1fr;
  }

  .banner-live-toolbar,
  .banner-preview-head,
  .banner-preview-copy-head,
  .banner-manager-status-line,
  .product-review-card-head,
  .banner-analytics-item,
  .dashboard-restock-item {
    grid-template-columns: 1fr;
    display: grid;
  }

  .banner-preview-note {
    text-align: left;
  }

  .banner-live-preview-main,
  .banner-live-side {
    min-height: 220px;
  }

  .banner-live-slide-cta {
    left: 18px;
    bottom: 18px;
    min-height: 34px;
    padding: 0 14px;
    font-size: 0.82rem;
  }

  .banner-live-side-card {
    padding: 18px;
  }

  .banner-live-side-copy {
    max-width: min(84%, 220px);
  }

  .banner-live-side-copy strong {
    font-size: 1.18rem;
  }

  .banner-live-nav {
    bottom: 18px;
    width: 38px;
    height: 38px;
    font-size: 1.45rem;
  }

  .banner-live-nav-prev {
    right: 66px;
  }

  .banner-live-nav-next {
    right: 18px;
  }

  .banner-live-dots {
    right: 112px;
    bottom: 20px;
  }

  .banner-preview-card {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .banner-form-section,
  .banner-live-preview-shell,
  .banner-analytics-shell,
  .banner-preview-panel,
  .banner-manager-card {
    padding: 14px;
  }

  .banner-preview-handle {
    display: none;
  }
}

.app-notice.is-success {
  border-color: #b9e6c0;
  background: #f2fff4;
  color: var(--accent-ink);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.buyer-chat-shell {
  width: min(1480px, calc(100% - 28px));
  margin: 0 auto;
  padding: 24px 0 40px;
  display: grid;
  gap: 18px;
}

body.chat-picker-open {
  overflow: hidden;
}

.buyer-chat-layout {
  display: grid;
  grid-template-columns: minmax(248px, 286px) minmax(300px, 336px) minmax(0, 1fr);
  gap: 0;
  border: 1px solid #dbe7dd;
  border-radius: 30px;
  background: #ffffff;
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.07);
  overflow: hidden;
  height: calc(100vh - 170px);
  min-height: 680px;
}

.buyer-chat-offer-rail,
.buyer-chat-sidebar,
.buyer-chat-main {
  min-width: 0;
  min-height: 0;
}

.buyer-chat-offer-rail {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 18px 14px;
  border-right: 1px solid #e5ece6;
  background: linear-gradient(180deg, #fffdf9, #ffffff);
}

.buyer-chat-offer-rail-head {
  display: grid;
  gap: 6px;
  padding: 6px 8px 2px;
}

.buyer-chat-offer-rail-head h2 {
  margin: 2px 0 0;
  font-size: 1.28rem;
  line-height: 1.14;
}

.buyer-chat-offer-rail-head .orders-page-copy {
  font-size: 0.92rem;
}

.buyer-chat-sidebar {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 18px 14px;
  border-right: 1px solid #e5ece6;
  background: linear-gradient(180deg, #ffffff, #fbfdfb);
}

.buyer-chat-sidebar-head {
  display: grid;
  gap: 6px;
  padding: 6px 8px 2px;
}

.buyer-chat-sidebar-head h1 {
  margin: 2px 0 0;
  font-size: clamp(1.45rem, 2vw, 1.85rem);
  line-height: 1.14;
}

.buyer-chat-sidebar-feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: start;
}

.buyer-chat-thread-card {
  appearance: none;
  width: 100%;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px 12px;
  border: 1px solid #e2e8e3;
  border-radius: 20px;
  background: #ffffff;
  text-align: left;
  cursor: default;
  align-self: start;
}

.buyer-chat-thread-card.active {
  border-color: rgba(3, 172, 14, 0.18);
  background: linear-gradient(180deg, rgba(3, 172, 14, 0.1), rgba(3, 172, 14, 0.04));
  box-shadow: inset 0 0 0 1px rgba(3, 172, 14, 0.04);
}

.buyer-chat-thread-avatar,
.buyer-chat-main-avatar {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  overflow: hidden;
  flex: 0 0 auto;
}

.buyer-chat-thread-avatar .brand-logo-image,
.buyer-chat-main-avatar .brand-logo-image {
  width: 78%;
  height: auto;
}

.buyer-chat-thread-copy {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.buyer-chat-thread-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.buyer-chat-thread-row strong {
  min-width: 0;
  font-size: 1.05rem;
  color: #152238;
}

.buyer-chat-thread-row small {
  color: #7b8aa2;
  font-size: 0.82rem;
}

.buyer-chat-thread-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(3, 172, 14, 0.12);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: lowercase;
}

.buyer-chat-thread-unread {
  min-width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  border-radius: 999px;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 800;
}

.buyer-chat-thread-preview {
  color: #6b7280;
  font-size: 0.94rem;
  line-height: 1.45;
}

.buyer-chat-offer-card {
  min-width: 0;
  border: 1px solid #ffd9bf;
  border-radius: 20px;
  overflow: hidden;
  align-self: start;
  box-shadow: 0 12px 26px rgba(238, 77, 45, 0.08);
}

.buyer-chat-offer-visual {
  aspect-ratio: 1 / 0.88;
}

.buyer-chat-offer-card .card-body {
  gap: 7px;
  padding: 11px 11px 12px;
}

.buyer-chat-offer-card .product-promo-badges {
  gap: 5px;
}

.buyer-chat-offer-card .product-promo-badge {
  padding: 5px 9px;
  font-size: 0.72rem;
}

.buyer-chat-offer-card .product-genus {
  font-size: 0.66rem;
  letter-spacing: 0.05em;
}

.buyer-chat-offer-card .product-species {
  font-size: 0.9rem;
  line-height: 1.34;
}

.buyer-chat-offer-card .product-title {
  -webkit-line-clamp: 2;
  font-size: 0.76rem;
}

.buyer-chat-offer-card .product-price {
  font-size: 1rem;
}

.buyer-chat-offer-card .product-price-original,
.buyer-chat-offer-card .product-lead-time {
  font-size: 0.76rem;
}

.buyer-chat-offer-card .product-stats {
  gap: 4px;
  font-size: 0.72rem;
}

.buyer-chat-offer-card .product-stat-chip {
  font-size: 0.72rem;
}

.buyer-chat-offer-card .product-promo-timing {
  margin-top: 0;
}

.buyer-chat-offer-card .promo-countdown-text {
  font-size: 0.73rem;
}

.buyer-chat-offer-card .card-visual-floating-badge {
  min-height: 24px;
  padding: 0 10px;
  font-size: 0.68rem;
}

.buyer-chat-offer-card .card-visual-floating-badge.top-left {
  top: 10px;
  left: 10px;
}

.buyer-chat-offer-card .card-visual-floating-badge.bottom-right {
  right: 10px;
  bottom: 10px;
}

.buyer-chat-offer-actions {
  padding-top: 8px;
  border-top: 1px solid #ffe7d6;
}

.buyer-chat-offer-card .promo-product-button {
  width: 100%;
  min-height: 36px;
  justify-content: center;
  border-color: #fdba74;
  background: linear-gradient(135deg, #fff6ea 0%, #ffe4bf 100%);
  color: #b45309;
  font-size: 0.8rem;
}

.buyer-chat-offer-card .promo-product-button:hover {
  border-color: #fb923c;
  color: #9a3412;
}

.buyer-chat-sidebar-note {
  display: grid;
  gap: 8px;
  padding: 16px 16px 18px;
  border-radius: 18px;
  border: 1px dashed rgba(3, 172, 14, 0.24);
  background: #fbfdfb;
}

.buyer-chat-sidebar-note strong {
  color: #1f2937;
}

.buyer-chat-sidebar-note p {
  margin: 0;
  color: #64748b;
  line-height: 1.6;
}

.buyer-chat-main {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 14px;
  padding: 16px 18px 18px;
  overflow: hidden;
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfdfb 100%);
}

.buyer-chat-main-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
  padding: 4px 2px 0;
}

.buyer-chat-main-head.is-summary-only {
  grid-template-columns: auto;
  justify-content: end;
}

.buyer-chat-main-copy {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.buyer-chat-main-copy h2 {
  margin: 2px 0 2px;
  font-size: 1.2rem;
}

.buyer-chat-main-subcopy {
  margin: 0;
  color: #64748b;
  line-height: 1.45;
  font-size: 0.93rem;
}

.buyer-chat-head,
.buyer-chat-panel,
.admin-chat-sidebar,
.admin-chat-main {
  border: 1px solid #dbe7dd;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.buyer-chat-head {
  padding: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 360px);
  gap: 18px;
  align-items: center;
}

.buyer-chat-head h1 {
  margin: 4px 0 10px;
  font-size: clamp(1.9rem, 2.6vw, 2.5rem);
  line-height: 1.08;
}

.buyer-chat-summary-card {
  display: grid;
  gap: 6px;
  min-width: 270px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid #dfeae1;
  background: linear-gradient(180deg, rgba(3, 172, 14, 0.05), rgba(255, 255, 255, 0.98));
}

.buyer-chat-summary-card strong {
  font-size: 1rem;
  color: var(--accent-ink);
}

.buyer-chat-summary-card small {
  color: #6b7280;
  line-height: 1.45;
  font-size: 0.84rem;
}

.chat-presence-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.chat-presence-led {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  flex: 0 0 auto;
  box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.05);
}

.chat-presence-led.is-online {
  background: #16a34a;
  box-shadow:
    0 0 0 4px rgba(34, 197, 94, 0.14),
    0 0 18px rgba(34, 197, 94, 0.32);
}

.chat-presence-led.is-offline {
  background: #94a3b8;
  box-shadow: 0 0 0 4px rgba(148, 163, 184, 0.12);
}

.buyer-chat-panel {
  padding: 24px;
  display: grid;
  gap: 16px;
}

.chat-message-list {
  min-height: 0;
  height: 100%;
  max-height: none;
  overflow: auto;
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid #e6ece8;
  background: #f9fbfb;
}

.chat-empty-state {
  min-height: 240px;
  display: grid;
  place-items: center;
  gap: 8px;
  text-align: center;
  color: #6b7280;
}

.chat-empty-state strong {
  color: var(--accent-ink);
  font-size: 1.05rem;
}

.chat-empty-state p {
  margin: 0;
  max-width: 460px;
  line-height: 1.6;
}

.chat-message-row {
  display: flex;
  align-items: flex-start;
}

.chat-message-row.is-self {
  justify-content: flex-end;
}

.chat-message-row.is-admin {
  justify-content: flex-start;
}

.chat-message-bubble {
  width: auto;
  max-width: min(48%, 500px);
  display: grid;
  gap: 8px;
  padding: 12px 14px 10px;
  border-radius: 20px;
  border: 1px solid #e5ebf0;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.chat-message-bubble.is-self {
  background: #eef2f7;
  border-color: #e2e8f0;
  border-radius: 20px 20px 8px 20px;
}

.chat-message-bubble.is-admin {
  border-radius: 20px 20px 20px 8px;
}

.chat-message-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #94a3b8;
  font-size: 0.76rem;
}

.chat-message-meta strong {
  color: #111827;
  font-size: 0.84rem;
}

.chat-message-text {
  color: #14233d;
  line-height: 1.55;
  word-break: break-word;
  font-size: 0.95rem;
}

.chat-attachment-stack {
  display: grid;
  gap: 10px;
}

.chat-message-image-link {
  display: grid;
  gap: 8px;
  text-decoration: none;
  color: inherit;
}

.chat-message-image {
  width: 100%;
  max-width: 320px;
  max-height: 260px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #f8fafc;
}

.chat-message-image-caption {
  font-size: 0.84rem;
  color: #64748b;
}

.chat-message-product-card,
.chat-message-order-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #ffffff;
}

.chat-message-product-thumb,
.chat-draft-thumb,
.chat-product-picker-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 16px;
  background: #f5f8f5;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.chat-message-product-thumb.is-empty,
.chat-draft-thumb.is-empty,
.chat-product-picker-thumb.is-empty {
  display: grid;
  place-items: center;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 700;
}

.chat-message-product-copy {
  min-width: 0;
  display: grid;
  gap: 6px;
  align-content: start;
}

.chat-message-product-kicker,
.chat-draft-kicker,
.chat-product-picker-kicker {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.chat-message-product-copy strong,
.chat-draft-copy strong,
.chat-product-picker-copy strong {
  font-size: 1rem;
  color: #14233d;
}

.chat-message-product-copy small,
.chat-draft-copy small,
.chat-product-picker-copy small {
  color: #64748b;
  line-height: 1.5;
}

.chat-message-product-meta,
.chat-product-picker-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #55637c;
  font-size: 0.82rem;
}

.chat-message-product-link {
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(3, 172, 14, 0.2);
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

.chat-compose-form {
  display: grid;
  gap: 12px;
  padding: 2px 2px 0;
}

.chat-quick-template-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.chat-quick-template-row::-webkit-scrollbar {
  display: none;
}

.chat-template-chip {
  appearance: none;
  white-space: nowrap;
  border: 1px solid rgba(3, 172, 14, 0.22);
  border-radius: 999px;
  background: #ffffff;
  color: #1f3a27;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 9px 14px;
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.chat-template-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(3, 172, 14, 0.28);
  background: rgba(3, 172, 14, 0.11);
}

.chat-compose-input-shell {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 46px;
  align-items: center;
  gap: 8px;
  min-height: 62px;
  padding: 8px 10px;
  border-radius: 24px;
  border: 1px solid #dfe7e1;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
  overflow: visible;
}

.chat-attach-menu-shell {
  position: relative;
  display: inline-flex;
}

.chat-attach-menu {
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  min-width: 188px;
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid #dfe7e1;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  z-index: 8;
}

.chat-attach-menu-item {
  appearance: none;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 10px 12px;
  border: 1px solid rgba(3, 172, 14, 0.14);
  border-radius: 14px;
  background: #ffffff;
  color: #1f2937;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
}

.chat-attach-menu-item:hover {
  border-color: rgba(3, 172, 14, 0.28);
  background: rgba(3, 172, 14, 0.06);
}

.chat-compose-icon-button,
.chat-send-button {
  appearance: none;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid #d9e3dc;
  background: #ffffff;
  color: #334155;
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.chat-compose-icon-button {
  flex-shrink: 0;
  text-decoration: none;
}

.chat-compose-icon-button:hover,
.chat-send-button:hover {
  transform: translateY(-1px);
  border-color: rgba(3, 172, 14, 0.26);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.07);
}

.chat-compose-icon-button::before {
  content: "◫";
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1;
}

.chat-compose-icon-button.is-product::before {
  content: "＋";
  font-size: 1.18rem;
}

.chat-compose-icon-button.is-plus::before {
  content: "＋";
  font-size: 1.18rem;
}

.chat-compose-textarea {
  width: 100%;
  min-height: 40px;
  max-height: 110px;
  padding: 8px 2px 6px;
  border: 0;
  background: transparent;
  color: #14233d;
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.45;
  resize: none;
  overflow-y: auto;
}

.chat-compose-textarea:focus {
  outline: none;
}

.chat-send-button {
  border-color: rgba(3, 172, 14, 0.24);
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(3, 172, 14, 0.22);
}

.chat-send-button::before {
  content: "\27A4";
  font-size: 1rem;
  line-height: 1;
  transform: translateX(1px);
}

.chat-send-button:disabled {
  cursor: not-allowed;
  transform: none;
  border-color: #d9e3dc;
  background: #e7ece8;
  color: #94a3b8;
  box-shadow: none;
}

.chat-draft-attachments {
  display: grid;
  gap: 8px;
}

.chat-draft-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid #dce7de;
  background: linear-gradient(180deg, #ffffff, #f8fcf8);
}

.chat-draft-card .chat-draft-thumb {
  border-radius: 14px;
}

.chat-draft-copy strong {
  font-size: 0.92rem;
}

.chat-draft-copy small {
  font-size: 0.82rem;
}

.chat-draft-copy {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.chat-draft-remove {
  appearance: none;
  border: 0;
  background: transparent;
  color: #c2410c;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

.chat-product-picker-shell {
  position: fixed;
  inset: 0;
  z-index: 60;
}

.chat-product-picker-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(4px);
}

.chat-product-picker-dialog {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: min(920px, calc(100% - 24px));
  max-height: min(82vh, 900px);
  overflow: hidden;
  display: grid;
  gap: 14px;
  padding: 22px;
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid #dbe7dd;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.18);
}

.chat-product-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.chat-product-picker-head h2 {
  margin: 4px 0 0;
}

.chat-product-picker-search {
  margin: 0;
}

.chat-product-picker-list {
  min-height: 220px;
  max-height: 52vh;
  overflow: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding-right: 4px;
}

.chat-product-picker-item {
  appearance: none;
  width: 100%;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  text-align: left;
  padding: 12px;
  border-radius: 20px;
  border: 1px solid #dce7de;
  background: #ffffff;
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.chat-product-picker-item:hover {
  transform: translateY(-1px);
  border-color: rgba(3, 172, 14, 0.22);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.chat-product-picker-copy {
  min-width: 0;
  display: grid;
  gap: 6px;
  align-content: start;
}

.admin-chat-shell {
  display: grid;
  grid-template-columns: minmax(320px, 380px) minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}

.admin-chat-sidebar,
.admin-chat-main {
  padding: 22px;
  min-height: 0;
  height: calc(100vh - 255px);
  overflow: hidden;
}

.admin-chat-sidebar {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 14px;
}

.admin-chat-sidebar-head,
.admin-chat-main-head {
  display: grid;
  gap: 8px;
}

.admin-chat-sidebar-head h2,
.admin-chat-main-head h2 {
  margin: 0;
  font-size: 1.45rem;
}

.admin-chat-main-head {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 16px;
}

.admin-chat-main-side {
  min-width: 280px;
  display: grid;
  gap: 12px;
}

.admin-chat-contact-card {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-chat-contact-avatar {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, #ffffff, #eef6ef);
  color: var(--accent);
  font-size: 1.12rem;
  font-weight: 800;
  flex: 0 0 auto;
}

.admin-chat-contact-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.admin-chat-active-email {
  margin: 0;
  color: #64748b;
  line-height: 1.5;
  font-size: 0.92rem;
}

.admin-chat-summary-card {
  min-width: 280px;
}

.admin-chat-thread-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  gap: 10px;
  align-items: end;
}

.admin-chat-control-field {
  margin: 0;
}

.admin-chat-search-field {
  margin-top: 4px;
}

.admin-chat-thread-list {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 0;
  height: 100%;
  max-height: none;
  overflow: auto;
  padding-right: 4px;
}

.admin-chat-thread-card {
  width: 100%;
  display: grid;
  padding: 12px 13px;
  border-radius: 16px;
  border: 1px solid #dbe7dd;
  background: #ffffff;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.admin-chat-thread-card:hover {
  border-color: rgba(3, 172, 14, 0.35);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.07);
}

.admin-chat-thread-card.active {
  border-color: rgba(3, 172, 14, 0.42);
  background: linear-gradient(180deg, rgba(3, 172, 14, 0.08), rgba(3, 172, 14, 0.03));
}

.admin-chat-thread-card-head,
.admin-chat-thread-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-chat-thread-card-head {
  align-items: flex-start;
}

.admin-chat-thread-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff, #eef6ef);
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 800;
  flex: 0 0 auto;
}

.admin-chat-thread-copy {
  min-width: 0;
  flex: 1 1 auto;
  display: grid;
  gap: 4px;
}

.admin-chat-thread-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.admin-chat-thread-topline strong {
  font-size: 0.98rem;
  line-height: 1.25;
}

.admin-chat-thread-topline small {
  color: #94a3b8;
  font-size: 0.72rem;
  white-space: nowrap;
}

.admin-chat-thread-email,
.admin-chat-thread-preview {
  margin: 0;
  color: #64748b;
}

.admin-chat-thread-email {
  font-size: 0.82rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.admin-chat-thread-preview {
  font-size: 0.84rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.admin-chat-thread-meta {
  color: #64748b;
  font-size: 0.76rem;
  flex-wrap: wrap;
}

.admin-chat-thread-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #f8fafc;
}

.admin-chat-thread-badge.is-pending {
  color: #b45309;
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.18);
}

.admin-chat-thread-badge.is-shipped {
  color: #0369a1;
  background: rgba(14, 165, 233, 0.12);
  border-color: rgba(14, 165, 233, 0.18);
}

.admin-chat-thread-badge.is-priority {
  color: #b91c1c;
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.18);
}

.admin-chat-thread-badge.is-success {
  color: #15803d;
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.18);
}

.admin-chat-thread-badge.is-agent {
  color: #0f172a;
  background: rgba(148, 163, 184, 0.12);
  border-color: rgba(148, 163, 184, 0.2);
}

.admin-chat-unread-badge {
  min-width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 800;
}

.admin-chat-main {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 16px;
}

.admin-chat-message-list {
  min-height: 0;
  height: 100%;
  max-height: none;
}

.admin-chat-compose-form {
  gap: 12px;
  padding-top: 4px;
}

.admin-chat-template-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
}

.admin-chat-template-row {
  margin-top: 2px;
}

.admin-chat-template-placeholder {
  color: #94a3b8;
  font-size: 0.86rem;
  padding: 8px 0;
}

.admin-chat-compose-shell {
  margin-top: 2px;
}

.admin-chat-replies-dialog {
  width: min(720px, calc(100vw - 28px));
  display: grid;
  gap: 14px;
}

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

.admin-chat-replies-list {
  display: grid;
  gap: 10px;
  max-height: 46vh;
  overflow: auto;
  padding-right: 4px;
}

.admin-chat-reply-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid #dbe7dd;
  background: linear-gradient(180deg, #ffffff, #f8fbf8);
}

.admin-chat-reply-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.admin-chat-reply-copy strong {
  font-size: 0.95rem;
  line-height: 1.55;
  color: #0f172a;
  font-weight: 600;
}

.ghost-button.is-danger {
  color: #b91c1c;
  border-color: rgba(239, 68, 68, 0.28);
  background: rgba(255, 255, 255, 0.92);
}

.ghost-button.is-danger:hover {
  background: rgba(254, 242, 242, 0.98);
  border-color: rgba(239, 68, 68, 0.42);
}

@media (max-width: 960px) {
  .buyer-chat-layout {
    grid-template-columns: 1fr;
    height: auto;
    min-height: auto;
  }

  .buyer-chat-offer-rail {
    border-right: 0;
    border-bottom: 1px solid #e5ece6;
  }

  .buyer-chat-sidebar {
    border-right: 0;
    border-bottom: 1px solid #e5ece6;
  }

  .buyer-chat-main-head {
    grid-template-columns: 1fr;
  }

  .buyer-chat-summary-card {
    min-width: 0;
  }

  .chat-message-bubble {
    max-width: min(76%, 100%);
  }

  .chat-product-picker-list {
    grid-template-columns: 1fr;
  }

  .admin-chat-shell {
    grid-template-columns: 1fr;
  }

  .admin-chat-sidebar,
  .admin-chat-main {
    height: auto;
  }

  .admin-chat-thread-list,
  .admin-chat-message-list {
    max-height: none;
  }

  .admin-chat-main-head {
    grid-template-columns: 1fr;
  }

  .admin-chat-main-side,
  .admin-chat-thread-controls,
  .admin-chat-template-toolbar {
    grid-template-columns: 1fr;
  }

  .admin-chat-summary-card {
    min-width: 0;
  }
}

@media (max-width: 760px) {
  .buyer-chat-shell {
    width: min(100% - 20px, 100%);
    padding: 12px 0 calc(88px + env(safe-area-inset-bottom, 0px));
  }

  .buyer-chat-sidebar {
    padding: 16px;
  }

  .buyer-chat-main {
    gap: 10px;
    padding: 12px;
    min-height: 0;
    height: calc(100dvh - 228px);
    max-height: calc(100dvh - 228px);
  }

  .chat-message-list {
    min-height: 0;
    height: auto;
    max-height: none;
    overflow-y: auto;
    padding: 12px;
  }

  .chat-compose-form {
    position: sticky;
    bottom: 0;
    z-index: 3;
    padding-top: 6px;
    background: linear-gradient(180deg, rgba(251, 253, 251, 0), #fbfdfb 28%, #fbfdfb 100%);
  }

  .chat-message-bubble {
    padding: 12px 14px;
    max-width: min(82%, 100%);
  }

  .chat-message-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .buyer-chat-summary-card {
    gap: 4px;
    padding: 12px 14px;
    width: 100%;
    max-width: none;
  }

  .buyer-chat-main-head.is-summary-only {
    grid-template-columns: minmax(0, 1fr);
    justify-content: stretch;
  }

  .buyer-chat-summary-card .orders-focus-kicker {
    font-size: 0.72rem;
  }

  .buyer-chat-summary-card strong {
    font-size: 0.9rem;
  }

  .buyer-chat-summary-card small {
    font-size: 0.78rem;
    line-height: 1.38;
  }

  .chat-presence-status {
    gap: 8px;
  }

  .chat-draft-card,
  .chat-product-picker-item {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .chat-draft-remove {
    grid-column: 1 / -1;
    justify-self: end;
  }

  .chat-message-product-card {
    grid-template-columns: 1fr;
  }

  .chat-message-image {
    max-width: 100%;
    max-height: 220px;
  }

  .chat-compose-input-shell {
    grid-template-columns: 38px minmax(0, 1fr) 42px;
    gap: 8px;
    min-height: 56px;
    padding: 8px 9px;
  }

  .chat-attach-menu {
    left: 0;
    right: auto;
    min-width: 170px;
  }

  .chat-compose-icon-button,
  .chat-send-button {
    width: 38px;
    height: 38px;
  }

  .chat-compose-textarea {
    min-height: 38px;
    padding: 8px 2px 6px;
    font-size: 0.92rem;
  }

  .chat-product-picker-dialog {
    width: min(100% - 18px, 100%);
    max-height: 86vh;
    padding: 18px;
    border-radius: 22px;
  }

  .chat-product-picker-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

body.mode-mobile-preview .buyer-chat-shell {
  width: min(100% - 20px, 100%);
  padding: 12px 0 calc(88px + env(safe-area-inset-bottom, 0px));
}

body.mode-mobile-preview.buyer-cart-page .orders-page-head {
  display: none !important;
}

body.mode-mobile-preview.buyer-orders-page .orders-page-head,
body.mode-mobile-preview.buyer-wishlist-page .orders-page-head {
  display: none !important;
}

body.mode-mobile-preview.buyer-wishlist-page .wishlist-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

body.mode-mobile-preview.buyer-wishlist-page .wishlist-card {
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  align-content: start;
}

body.mode-mobile-preview.buyer-wishlist-page .wishlist-card-visual {
  min-height: 132px;
  border-radius: 14px;
}

body.mode-mobile-preview.buyer-wishlist-page .wishlist-card-copy {
  gap: 8px;
}

body.mode-mobile-preview.buyer-wishlist-page .wishlist-card-copy h3 {
  font-size: 0.92rem;
  line-height: 1.35;
}

body.mode-mobile-preview.buyer-wishlist-page .wishlist-card-copy p {
  font-size: 0.78rem;
  line-height: 1.45;
}

body.mode-mobile-preview.buyer-wishlist-page .wishlist-card-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: stretch;
}

body.mode-mobile-preview.buyer-wishlist-page .wishlist-card-actions .ghost-button,
body.mode-mobile-preview.buyer-wishlist-page .wishlist-card-actions .primary-button {
  width: 100%;
  min-height: 38px;
  font-size: 0.8rem;
  padding-inline: 10px;
}

body.mode-mobile-preview.buyer-chat-page .orders-page-header .header-actions > .header-link-button {
  display: none !important;
}

body.mode-mobile-preview .product-dialog {
  width: min(100% - 12px, 100%);
  max-width: min(430px, calc(100% - 12px));
  max-height: calc(100dvh - 12px);
}

body.mode-mobile-preview .dialog-shell,
body.mode-mobile-preview .auth-shell,
body.mode-mobile-preview .checkout-shell,
body.mode-mobile-preview .payment-shell,
body.mode-mobile-preview .contact-shell,
body.mode-mobile-preview .variant-picker-shell {
  width: 100%;
  max-width: none;
  max-height: calc(100dvh - 20px);
  overflow-y: auto;
  padding: 16px;
  border-radius: 22px;
}

body.mode-mobile-preview .dialog-grid,
body.mode-mobile-preview .payment-grid {
  grid-template-columns: 1fr;
  gap: 14px;
}

body.mode-mobile-preview .checkout-grid-two,
body.mode-mobile-preview .auth-tabs {
  grid-template-columns: 1fr;
}

body.mode-mobile-preview .dialog-meta,
body.mode-mobile-preview .checkout-saved-address-head,
body.mode-mobile-preview .checkout-address-actions,
body.mode-mobile-preview .contact-dialog-actions {
  flex-direction: column;
  align-items: flex-start;
}

body.mode-mobile-preview .checkout-saved-address-cards {
  grid-template-columns: 1fr;
}

body.mode-mobile-preview .checkout-saved-address-head > .ghost-button {
  width: 100%;
}

body.mode-mobile-preview .checkout-saved-address-section,
body.mode-mobile-preview .checkout-summary,
body.mode-mobile-preview .payment-card {
  padding: 14px;
}

body.mode-mobile-preview .summary-value-text {
  max-width: none;
  text-align: left;
}

body.mode-mobile-preview .dialog-close {
  top: 12px;
  right: 12px;
  width: 36px;
  min-height: 36px;
  padding: 0;
}

body.mode-mobile-preview .buyer-chat-layout {
  grid-template-columns: 1fr;
  height: auto;
  min-height: auto;
}

body.mode-mobile-preview .buyer-chat-offer-rail {
  display: none !important;
}

body.mode-mobile-preview .buyer-chat-layout > .buyer-chat-sidebar,
body.mode-mobile-preview .buyer-chat-sidebar-head,
body.mode-mobile-preview .buyer-chat-sidebar-feature-grid,
body.mode-mobile-preview .buyer-chat-sidebar-note,
body.mode-mobile-preview .buyer-chat-sidebar {
  display: none !important;
}

body.mode-mobile-preview .buyer-chat-main {
  gap: 10px;
  padding: 12px;
  min-height: 0;
  height: calc(100dvh - 228px);
  max-height: calc(100dvh - 228px);
}

body.mode-mobile-preview .chat-message-list {
  min-height: 0;
  height: auto;
  max-height: none;
  overflow-y: auto;
  padding: 12px;
}

body.mode-mobile-preview .chat-compose-form {
  position: sticky;
  bottom: 0;
  z-index: 3;
  padding-top: 6px;
  background: linear-gradient(180deg, rgba(251, 253, 251, 0), #fbfdfb 28%, #fbfdfb 100%);
}

body.mode-mobile-preview .chat-message-bubble {
  max-width: min(82%, 100%);
}

body.mode-mobile-preview .buyer-chat-summary-card {
  gap: 4px;
  padding: 12px 14px;
  width: 100%;
  max-width: none;
}

body.mode-mobile-preview .buyer-chat-main-head.is-summary-only {
  grid-template-columns: minmax(0, 1fr);
  justify-content: stretch;
}

body.mode-mobile-preview .buyer-chat-summary-card .orders-focus-kicker {
  font-size: 0.72rem;
}

body.mode-mobile-preview .buyer-chat-summary-card strong {
  font-size: 0.9rem;
}

body.mode-mobile-preview .buyer-chat-summary-card small {
  font-size: 0.78rem;
  line-height: 1.38;
}

body.mode-mobile-preview .chat-presence-status {
  gap: 8px;
}

body.mode-mobile-preview .chat-compose-input-shell {
  grid-template-columns: 38px minmax(0, 1fr) 42px;
  gap: 8px;
  min-height: 56px;
  padding: 8px 9px;
}

body.mode-mobile-preview .chat-compose-icon-button,
body.mode-mobile-preview .chat-send-button {
  width: 38px;
  height: 38px;
}

@media (min-width: 761px) {
  body.mode-mobile-preview .buyer-chat-shell {
    width: min(430px, calc(100% - 24px));
  }
}

.admin-review-stats-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.admin-review-breakdown-list,
.admin-review-top-products,
.admin-review-list {
  display: grid;
  gap: 12px;
}

.admin-review-breakdown-item,
.admin-review-top-product {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid #dbe7dd;
  background: #ffffff;
}

.admin-review-breakdown-item strong,
.admin-review-top-product strong {
  color: var(--accent-ink);
}

.admin-review-breakdown-item span,
.admin-review-top-product-meta {
  color: #64748b;
  font-size: 0.92rem;
}

.admin-review-top-product {
  display: grid;
  gap: 8px;
}

.admin-review-top-product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.admin-review-toolbar {
  margin-top: 18px;
}

.admin-review-card {
  display: grid;
  gap: 14px;
  padding: 20px;
  border-radius: 22px;
  border: 1px solid #dbe7dd;
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.05);
}

.admin-review-card-head,
.admin-review-card-meta,
.admin-review-card-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.admin-review-card-identity {
  display: grid;
  gap: 4px;
}

.admin-review-card-identity strong {
  font-size: 1.02rem;
  color: var(--accent-ink);
}

.admin-review-card-identity span,
.admin-review-card-meta span,
.admin-review-card-note small {
  color: #64748b;
}

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

.admin-review-card-meta {
  flex-wrap: wrap;
  font-size: 0.9rem;
}

.admin-review-card-products {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #f8fbf8;
  border: 1px solid #e0eae2;
}

.admin-review-card-products p {
  margin: 0;
  color: #334155;
  line-height: 1.55;
}

.admin-review-card-text {
  margin: 0;
  padding: 16px 18px;
  border-left: 4px solid var(--accent);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(3, 172, 14, 0.05), rgba(3, 172, 14, 0.02));
  color: #13233f;
  line-height: 1.7;
}

.admin-review-card-note {
  display: grid;
  gap: 8px;
  flex: 1;
}

.admin-review-card-note label {
  font-weight: 700;
  color: #334155;
}

.admin-review-card-note textarea {
  width: 100%;
  min-height: 92px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid #d7e2d9;
  background: #ffffff;
  color: #14233d;
  font: inherit;
  resize: vertical;
}

.admin-review-card-note textarea:focus {
  outline: none;
  border-color: rgba(3, 172, 14, 0.35);
  box-shadow: 0 0 0 3px rgba(3, 172, 14, 0.12);
}

.admin-review-card-actions {
  min-width: 160px;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
}

@media (max-width: 960px) {
  .admin-review-stats-grid {
    grid-template-columns: 1fr;
  }

  .admin-review-card-head,
  .admin-review-card-meta,
  .admin-review-card-footer {
    flex-direction: column;
  }

  .admin-review-card-badges,
  .admin-review-card-actions {
    justify-content: flex-start;
  }

  .admin-review-card-actions {
    min-width: 0;
  }
}

body.modal-open {
  overflow: hidden;
}

.buyer-refund-modal-shell {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 28px 18px;
}

.buyer-refund-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.46);
  backdrop-filter: blur(4px);
}

.buyer-refund-modal-dialog {
  position: relative;
  width: min(940px, calc(100vw - 24px));
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 24px;
  border-radius: 28px;
  border: 1px solid #dbe7dd;
  background: #ffffff;
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.18);
}

.buyer-refund-form,
.buyer-refund-fields-grid,
.buyer-refund-bank-grid,
.buyer-refund-item-list,
.buyer-refund-attachment-list,
.buyer-refund-request-list,
.buyer-refund-event-list,
.buyer-refund-request-items {
  display: grid;
}

.buyer-refund-form {
  gap: 20px;
}

.buyer-refund-modal-head,
.buyer-refund-summary-grid,
.buyer-refund-request-type-buttons,
.buyer-refund-upload-row,
.buyer-refund-modal-actions,
.buyer-refund-request-head,
.buyer-refund-request-badges,
.buyer-refund-request-meta,
.buyer-refund-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.buyer-refund-modal-head {
  align-items: center;
}

.buyer-refund-modal-copy,
.buyer-refund-inline-note,
.buyer-refund-item-copy span,
.buyer-refund-request-meta span,
.buyer-refund-event-item span,
.buyer-refund-event-item small,
.buyer-refund-empty-state p,
.buyer-refund-draft-copy small {
  color: #64748b;
}

.buyer-refund-summary-grid,
.buyer-refund-bank-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.buyer-refund-summary-card,
.buyer-refund-request-type,
.buyer-refund-section,
.buyer-refund-bank-fields,
.buyer-refund-request-card {
  border-radius: 22px;
  border: 1px solid #dbe7dd;
  background: #ffffff;
}

.buyer-refund-summary-card {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  background: linear-gradient(180deg, rgba(3, 172, 14, 0.06), rgba(3, 172, 14, 0.02));
}

.buyer-refund-summary-card span,
.buyer-refund-section-head small {
  color: #64748b;
  font-size: 0.92rem;
}

.buyer-refund-summary-card strong {
  font-size: 1.18rem;
  color: var(--accent-ink);
}

.buyer-refund-request-type,
.buyer-refund-section,
.buyer-refund-bank-fields {
  padding: 18px;
}

.buyer-refund-request-type-head,
.buyer-refund-section-head {
  display: grid;
  gap: 5px;
  margin-bottom: 14px;
}

.buyer-refund-request-type-buttons {
  align-items: stretch;
}

.buyer-refund-type-button {
  flex: 1;
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid #dbe7dd;
  background: #f8fbf8;
  color: #334155;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.buyer-refund-type-button strong {
  color: var(--accent-ink);
}

.buyer-refund-type-button span {
  color: #64748b;
  font-size: 0.92rem;
  line-height: 1.55;
}

.buyer-refund-type-button:hover:not(:disabled),
.buyer-refund-type-button.active {
  border-color: rgba(3, 172, 14, 0.35);
  box-shadow: 0 12px 26px rgba(3, 172, 14, 0.08);
  transform: translateY(-1px);
}

.buyer-refund-type-button:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.buyer-refund-item-list,
.buyer-refund-attachment-list,
.buyer-refund-request-list {
  gap: 12px;
}

.buyer-refund-item-card {
  display: grid;
  grid-template-columns: auto 70px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid #dce7de;
  background: #ffffff;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.buyer-refund-item-card.selected {
  border-color: rgba(3, 172, 14, 0.36);
  background: linear-gradient(180deg, rgba(3, 172, 14, 0.06), rgba(3, 172, 14, 0.02));
  box-shadow: 0 10px 24px rgba(3, 172, 14, 0.08);
}

.buyer-refund-item-card.disabled {
  opacity: 0.68;
  cursor: not-allowed;
}

.buyer-refund-item-checkbox {
  margin: 0;
}

.buyer-refund-item-thumb-shell {
  display: flex;
  align-items: center;
  justify-content: center;
}

.buyer-refund-item-thumb {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  object-fit: cover;
}

.buyer-refund-item-copy {
  display: grid;
  gap: 3px;
}

.buyer-refund-item-copy strong,
.buyer-refund-item-total strong,
.buyer-refund-request-head strong,
.buyer-refund-event-item strong,
.buyer-refund-draft-copy strong {
  color: var(--accent-ink);
}

.buyer-refund-item-copy small,
.buyer-refund-item-total small,
.buyer-refund-request-head small {
  color: #64748b;
}

.buyer-refund-item-total {
  display: grid;
  gap: 4px;
  text-align: right;
}

.buyer-refund-fields-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.buyer-refund-field-wide {
  grid-column: 1 / -1;
}

.buyer-refund-upload-row {
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.buyer-refund-draft-card {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid #dbe7dd;
  background: #ffffff;
}

.buyer-refund-draft-card img {
  width: 82px;
  height: 82px;
  object-fit: cover;
  border-radius: 16px;
}

.buyer-refund-draft-copy {
  display: grid;
  gap: 4px;
}

.buyer-refund-request-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(248, 251, 248, 0.92), #ffffff);
}

.buyer-refund-request-card.pending {
  border-left: 4px solid #f59e0b;
}

.buyer-refund-request-card.success {
  border-left: 4px solid var(--accent);
}

.buyer-refund-request-card.shipped {
  border-left: 4px solid #2563eb;
}

.buyer-refund-request-card.cancelled {
  border-left: 4px solid #ef4444;
}

.buyer-refund-request-badges,
.buyer-refund-request-meta,
.buyer-refund-request-items,
.buyer-refund-actions {
  flex-wrap: wrap;
}

.buyer-refund-request-copy,
.buyer-refund-request-note {
  margin: 0;
  color: #334155;
  line-height: 1.65;
}

.buyer-refund-attachment-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.buyer-refund-attachment-card {
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid #dbe7dd;
  background: #ffffff;
  color: #334155;
  text-decoration: none;
}

.buyer-refund-attachment-card img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 14px;
}

.buyer-refund-attachment-card span {
  font-size: 0.84rem;
}

.buyer-refund-event-list {
  gap: 10px;
}

.buyer-refund-event-item {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px dashed #d7e3d9;
  background: #f8fbf8;
}

.buyer-refund-empty-state {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px dashed #d6e4d8;
  background: #fbfdfb;
}

.buyer-refund-empty-state strong {
  color: var(--accent-ink);
}

.admin-nav-link[data-nav="refund-retur"] {
  --admin-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 5c4.4 0 8 2.5 9.5 6-1.5 3.5-5.1 6-9.5 6-1.8 0-3.5-.4-5-1.2L3 20v-4c-1.3-1.3-2.2-3-2.5-5C2 7.5 5.6 5 10 5zm0 3.5a2.5 2.5 0 1 0 2.5 2.5A2.5 2.5 0 0 0 12 8.5z'/></svg>");
}

.admin-nav-link[data-nav="complaint-center"] {
  --admin-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M4 5h16v10H7l-3 3V5zm4 3v2h8V8H8zm0 4v2h5v-2H8z'/></svg>");
}

.admin-route-card[href*="/refund-retur/"] {
  --admin-route-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 5c4.4 0 8 2.5 9.5 6-1.5 3.5-5.1 6-9.5 6-1.8 0-3.5-.4-5-1.2L3 20v-4c-1.3-1.3-2.2-3-2.5-5C2 7.5 5.6 5 10 5zm0 3.5a2.5 2.5 0 1 0 2.5 2.5A2.5 2.5 0 0 0 12 8.5z'/></svg>");
}

.admin-route-card[href*="/admin/komplain/"] {
  --admin-route-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M4 5h16v10H7l-3 3V5zm4 3v2h8V8H8zm0 4v2h5v-2H8z'/></svg>");
}

.refund-center-stats-grid,
.admin-refund-request-grid,
.admin-refund-action-grid,
.admin-refund-item-list,
.admin-refund-attachment-grid,
.admin-refund-event-list,
.admin-refund-info-stack {
  display: grid;
}

.refund-center-stats-grid {
  margin-top: 18px;
}

.admin-refund-request-list {
  display: grid;
  gap: 16px;
}

.admin-refund-request-card {
  display: grid;
  gap: 16px;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid #dbe7dd;
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.05);
}

.admin-refund-request-card.pending {
  box-shadow: 0 16px 28px rgba(245, 158, 11, 0.08);
}

.admin-refund-request-card.success {
  box-shadow: 0 16px 28px rgba(3, 172, 14, 0.08);
}

.admin-refund-request-card.shipped {
  box-shadow: 0 16px 28px rgba(37, 99, 235, 0.08);
}

.admin-refund-request-card.cancelled {
  box-shadow: 0 16px 28px rgba(239, 68, 68, 0.08);
}

.admin-refund-request-head,
.admin-refund-request-meta,
.admin-refund-request-badges,
.admin-refund-action-buttons,
.admin-refund-event-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.admin-refund-request-head,
.admin-refund-request-meta,
.admin-refund-request-badges,
.admin-refund-action-buttons,
.admin-refund-event-head,
.admin-refund-item-row {
  flex-wrap: wrap;
}

.admin-refund-request-identity,
.admin-refund-item-copy,
.admin-refund-item-total,
.admin-refund-info-row,
.admin-refund-bank-card,
.admin-refund-event-item {
  display: grid;
}

.admin-refund-request-identity {
  gap: 4px;
}

.admin-refund-request-identity strong,
.admin-refund-item-copy strong,
.admin-refund-item-total strong,
.admin-refund-bank-card strong,
.admin-refund-event-item strong {
  color: var(--accent-ink);
}

.admin-refund-request-identity span,
.admin-refund-request-meta span,
.admin-refund-item-copy span,
.admin-refund-item-copy small,
.admin-refund-item-total small,
.admin-refund-info-row p,
.admin-refund-bank-card span,
.admin-refund-event-item span,
.admin-refund-event-item p {
  color: #64748b;
}

.admin-refund-request-meta {
  font-size: 0.92rem;
}

.admin-refund-request-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.admin-refund-info-stack,
.admin-refund-item-list,
.admin-refund-event-list {
  gap: 10px;
}

.admin-refund-info-row,
.admin-refund-bank-card,
.admin-refund-item-row,
.admin-refund-event-item {
  gap: 6px;
  padding: 13px 14px;
  border-radius: 16px;
  border: 1px solid #e0eae2;
  background: #fbfdfb;
}

.admin-refund-info-row p,
.admin-refund-event-item p {
  margin: 0;
  line-height: 1.6;
}

.admin-refund-item-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.admin-refund-item-copy {
  gap: 4px;
}

.admin-refund-item-total {
  gap: 4px;
  text-align: right;
}

.admin-refund-attachment-grid {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.admin-refund-attachment-card {
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid #dbe7dd;
  color: #334155;
  text-decoration: none;
  background: #ffffff;
}

.admin-refund-attachment-card img {
  width: 100%;
  height: 108px;
  object-fit: cover;
  border-radius: 12px;
}

.admin-refund-attachment-card span {
  font-size: 0.82rem;
}

.admin-refund-action-shell {
  display: grid;
  gap: 14px;
  padding-top: 4px;
  border-top: 1px solid #e5ece6;
}

.admin-refund-action-grid {
  grid-template-columns: 220px minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}

.admin-refund-action-grid textarea {
  width: 100%;
  min-height: 92px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid #d7e2d9;
  background: #ffffff;
  color: #14233d;
  font: inherit;
  resize: vertical;
}

.admin-refund-action-grid textarea:focus {
  outline: none;
  border-color: rgba(3, 172, 14, 0.35);
  box-shadow: 0 0 0 3px rgba(3, 172, 14, 0.12);
}

.admin-refund-toolbar {
  margin-top: 18px;
}

@media (max-width: 1100px) {
  .buyer-refund-item-card {
    grid-template-columns: auto 64px minmax(0, 1fr);
  }

  .buyer-refund-item-total {
    grid-column: 2 / -1;
    text-align: left;
  }

  .admin-refund-request-grid,
  .admin-refund-action-grid,
  .buyer-refund-bank-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .buyer-refund-modal-dialog {
    width: min(100vw - 16px, 100%);
    max-height: calc(100vh - 20px);
    padding: 18px;
    border-radius: 24px;
  }

  .buyer-refund-modal-head,
  .buyer-refund-summary-grid,
  .buyer-refund-request-type-buttons,
  .buyer-refund-modal-actions,
  .buyer-refund-request-head {
    flex-direction: column;
  }

  .buyer-refund-summary-grid,
  .buyer-refund-fields-grid {
    grid-template-columns: 1fr;
  }

  .buyer-refund-item-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .buyer-refund-item-thumb-shell {
    grid-row: span 2;
  }

  .buyer-refund-item-total {
    grid-column: 2;
  }

  .admin-refund-request-head,
  .admin-refund-request-meta,
  .admin-refund-action-buttons {
    flex-direction: column;
  }
}

.admin-nav-link[data-nav="articles"] {
  --admin-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M5 4h10a3 3 0 0 1 3 3v13H8a3 3 0 0 0-3 3zm3 2v12h8V7a1 1 0 0 0-1-1zm11 2h1v13h-9a1 1 0 0 1 0-2h8z'/></svg>");
}

.admin-route-card[href*="/admin/artikel/"] {
  --admin-route-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M5 4h10a3 3 0 0 1 3 3v13H8a3 3 0 0 0-3 3zm3 2v12h8V7a1 1 0 0 0-1-1zm11 2h1v13h-9a1 1 0 0 1 0-2h8z'/></svg>");
}

.admin-articles-shell {
  display: grid;
  gap: 20px;
}

.admin-articles-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(0, 1.15fr);
  gap: 20px;
  align-items: start;
}

.admin-article-editor-card,
.admin-article-list-card {
  display: grid;
  gap: 18px;
}

.admin-article-form {
  gap: 16px;
}

.admin-article-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 14px;
  align-items: end;
}

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

.admin-article-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
  border: 1px solid #dbe6de;
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(var(--accent-rgb), 0.08), transparent 28%),
    linear-gradient(180deg, #ffffff, #fbfdfc);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.admin-article-card:hover,
.admin-article-card.is-active {
  border-color: rgba(var(--accent-rgb), 0.28);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.09);
  transform: translateY(-1px);
}

.admin-article-card-cover,
.admin-article-card-cover img,
.admin-article-card-cover-empty {
  width: 100%;
  min-height: 152px;
  border-radius: 18px;
}

.admin-article-card-cover {
  overflow: hidden;
  background: #f2f7f4;
  border: 1px solid #dce8df;
}

.admin-article-card-cover img {
  display: block;
  object-fit: cover;
}

.admin-article-card-cover-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-weight: 700;
}

.admin-article-card-body,
.admin-article-card-head {
  display: grid;
  gap: 10px;
}

.admin-article-card-head {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.admin-article-card h3 {
  margin: 0;
  font-size: 1.14rem;
  line-height: 1.35;
}

.admin-article-card-date,
.admin-article-card-meta {
  color: var(--muted);
  font-size: 0.82rem;
}

.admin-article-card-excerpt {
  margin: 0;
  color: #475569;
  line-height: 1.7;
}

.admin-article-card-meta,
.admin-article-chip-row,
.admin-article-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-article-chip,
.admin-article-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
}

.admin-article-chip {
  border: 1px solid #d4ead9;
  background: #eefaf0;
  color: var(--accent-ink);
}

.admin-article-chip.is-soft,
.admin-article-tag {
  border: 1px solid #e5e9ee;
  background: #f8fafc;
  color: #536274;
}

.admin-article-card-actions {
  margin-top: 4px;
}

.article-public-page .main-header {
  position: static;
  box-shadow: none;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.08);
}

.article-public-shell {
  width: min(1360px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 44px;
  display: grid;
  gap: 22px;
}

.article-header-inner {
  grid-template-columns: minmax(0, 1fr) auto;
}

.article-header-actions {
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.article-hero-card,
.article-featured-section,
.article-list-section,
.article-detail-head-card,
.article-detail-content-card,
.article-side-card {
  border: 1px solid rgba(var(--accent-rgb), 0.12);
  border-radius: 30px;
  background:
    radial-gradient(circle at top right, rgba(var(--accent-rgb), 0.07), transparent 34%),
    linear-gradient(180deg, #ffffff, #fbfdfc);
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.07);
}

.article-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 24px;
  align-items: center;
  padding: 28px;
}

.article-hero-copy,
.article-detail-head-copy {
  display: grid;
  gap: 12px;
}

.article-hero-copy h1,
.article-detail-head-copy h1 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.15;
  color: #1f2937;
}

.article-search-field {
  margin-left: auto;
  width: min(420px, 100%);
}

.article-featured-section,
.article-list-section,
.article-detail-content-card,
.article-side-card {
  padding: 24px;
}

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

.article-card {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid #e4ece6;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
  min-height: 100%;
}

.article-card.is-featured {
  grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1fr);
}

.article-card-cover {
  position: relative;
  display: block;
  min-height: 230px;
  background: #eef5f0;
  overflow: hidden;
}

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

.article-card-cover-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 230px;
  color: var(--muted);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.article-card-body {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.article-card-head,
.article-chip-row,
.article-meta-row,
.article-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.article-card-head {
  flex-direction: column;
  gap: 10px;
}

.article-card-head h3 {
  margin: 0;
  font-size: 1.16rem;
  line-height: 1.35;
}

.article-card-head h3 a,
.article-related-item {
  color: inherit;
  text-decoration: none;
}

.article-card-head h3 a:hover,
.article-related-item:hover strong {
  color: var(--accent-dark);
}

.article-card-kicker,
.article-meta-chip,
.article-tag-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
}

.article-card-kicker {
  background: #eefaf0;
  border: 1px solid #d4ead9;
  color: var(--accent-ink);
}

.article-meta-chip {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #64748b;
}

.article-tag-chip {
  background: #fff9ef;
  border: 1px solid #fde7bf;
  color: #b45309;
}

.article-card-excerpt,
.article-related-product-copy p,
.article-rich-content p,
.article-related-item span {
  margin: 0;
  color: #526072;
  line-height: 1.75;
}

.article-soft-sell-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: #64748b;
  font-size: 0.84rem;
}

.article-soft-sell-inline a {
  color: var(--accent-dark);
  font-weight: 800;
  text-decoration: none;
}

.article-detail-shell {
  display: grid;
  gap: 20px;
}

.article-detail-head-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 22px;
  align-items: center;
  padding: 28px;
}

.article-detail-cover {
  min-height: 260px;
  border-radius: 24px;
  overflow: hidden;
  background: #eef5f0;
  border: 1px solid #dce8df;
}

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

.article-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(290px, 0.8fr);
  gap: 20px;
  align-items: start;
}

.article-detail-content-card {
  display: grid;
  gap: 18px;
}

.article-detail-side-column {
  display: grid;
  gap: 18px;
}

.article-rich-content {
  display: grid;
  gap: 16px;
}

.article-rich-content h2,
.article-rich-content h3 {
  margin: 6px 0 0;
  color: #1f2937;
}

.article-rich-content ul {
  margin: 0;
  padding-left: 20px;
  color: #526072;
  line-height: 1.75;
}

.article-side-info {
  display: grid;
  gap: 14px;
}

.article-side-info div {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid #e7ecef;
  border-radius: 16px;
  background: #ffffff;
}

.article-side-info span {
  color: #64748b;
  font-size: 0.78rem;
}

.article-side-info strong,
.article-related-product-copy h3 {
  color: #1f2937;
}

.article-related-product-inner {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.article-related-product-media {
  border-radius: 18px;
  overflow: hidden;
  background: #eef5f0;
  border: 1px solid #dce8df;
  min-height: 108px;
}

.article-related-product-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-related-product-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 108px;
  color: #64748b;
  font-weight: 800;
}

.article-related-product-copy {
  display: grid;
  gap: 10px;
}

.article-related-product-copy h3 {
  margin: 0;
  font-size: 1.08rem;
}

.article-related-product-category {
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-related-product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: #64748b;
  font-size: 0.84rem;
}

.article-related-product-button {
  width: fit-content;
}

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

.article-related-item {
  display: grid;
  gap: 5px;
  padding: 14px 16px;
  border: 1px solid #e7ecef;
  border-radius: 18px;
  background: #ffffff;
}

.article-related-item strong {
  color: #1f2937;
  transition: color 0.16s ease;
}

@media (max-width: 1180px) {
  .article-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-detail-layout,
  .admin-articles-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .article-hero-card,
  .article-detail-head-card,
  .article-card.is-featured {
    grid-template-columns: 1fr;
  }

  .article-detail-head-card {
    padding: 22px;
  }

  .article-public-shell {
    width: min(100% - 20px, 1360px);
    padding-top: 20px;
  }

  .admin-article-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .article-card-grid {
    grid-template-columns: 1fr;
  }

  .article-hero-card,
  .article-featured-section,
  .article-list-section,
  .article-detail-content-card,
  .article-side-card {
    padding: 18px;
    border-radius: 24px;
  }

  .article-related-product-inner {
    grid-template-columns: 1fr;
  }

  .article-header-actions {
    justify-content: flex-start;
  }

  .admin-article-toolbar {
    grid-template-columns: 1fr;
  }
}



/* runtime theme override */
:root {
  --accent: #03ac0e;
  --accent-bright: #30bb39;
  --accent-strong: #03a20d;
  --accent-dark: #03900c;
  --accent-deep: #027f0a;
  --accent-ink: #026b09;
  --accent-soft: #ebf8ec;
  --accent-line: #c8edca;
  --accent-line-strong: #a9e3ad;
  --accent-glow: #dcf3dd;
  --accent-rgb: 3, 172, 14;
  --accent-focus: rgba(3, 172, 14, 0.14);
  --accent-focus-soft: rgba(3, 172, 14, 0.10);
  --accent-shadow-soft: rgba(3, 172, 14, 0.08);
  --accent-shadow-medium: rgba(3, 172, 14, 0.10);
  --accent-shadow-strong: rgba(3, 172, 14, 0.12);
  --green: #03ac0e;
  --green-dark: #03900c;
  --green-soft: #ebf8ec;
  --control-focus: rgba(3, 172, 14, 0.14);
}
