:root {
  --brand: #0f766e;
  --brand-dark: #0b5f59;
  --accent: #7dbb2f;
  --ink: #16211f;
  --muted: #65716d;
  --line: rgba(22, 33, 31, .12);
  --surface: #f5faf8;
  --paper: #fff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #fbfdfc 0, #fff 220px);
  color: var(--ink);
  font-family: Tahoma, Arial, sans-serif;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--brand);
}

:focus-visible {
  outline: 3px solid rgba(125, 187, 47, .38);
  outline-offset: 3px;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  background: #7bb82e;
  color: #fff;
  font-size: 14px;
}

.topbar__inner,
.header-main,
.main-nav__inner,
.section-head,
.product-card__row,
.purchase-row {
  display: flex;
  align-items: center;
}

.topbar__inner {
  justify-content: space-between;
  min-height: 42px;
}

.language {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .96);
  color: #2d3a37;
  box-shadow: 0 12px 26px rgba(0, 0, 0, .08);
}

.language a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 7px;
  font-weight: 800;
}

.language a:hover {
  background: var(--surface);
  color: var(--brand);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(22, 33, 31, .05);
}

.header-main {
  min-height: 104px;
  gap: 28px;
  justify-content: space-between;
}

.brand img {
  width: 150px;
}

.header-search,
.hero-search {
  display: flex;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.header-search {
  width: min(420px, 44vw);
}

.header-search input,
.hero-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  padding: 0 16px;
  color: var(--ink);
  outline: 0;
}

.header-search input {
  height: 46px;
}

.header-search button,
.hero-search button {
  border: 0;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.header-search button {
  width: 86px;
}

.header-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-weight: 800;
}

.header-tools a,
.header-tools__menu > summary {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--ink);
  list-style: none;
  white-space: nowrap;
}

.header-tools__menu {
  position: relative;
}

.header-tools__menu > summary {
  cursor: pointer;
}

.header-tools__menu > summary::-webkit-details-marker {
  display: none;
}

.header-tools__menu > summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-inline-end: 2px solid currentColor;
  border-block-end: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .18s ease;
}

.header-tools__menu[open] > summary::after {
  transform: rotate(225deg);
}

.header-tools__dropdown {
  position: absolute;
  inset-block-start: calc(100% + 8px);
  inset-inline-end: 0;
  z-index: 60;
  display: grid;
  min-width: 210px;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .14);
}

.header-tools__dropdown a {
  justify-content: flex-start;
  min-height: 38px;
  border-color: transparent;
}

.header-tools__menu--account {
  position: relative;
}

.header-tools__dropdown--account {
  width: min(760px, calc(100vw - 32px));
  max-height: min(74vh, 680px);
  overflow: auto;
  padding: 0;
}

.account-flyout {
  display: grid;
  gap: 0;
  min-width: 0;
  color: var(--ink);
}

.account-flyout__hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  background: #e8f7f6;
}

.account-flyout__hero span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.account-flyout__hero strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
}

.account-flyout__grid {
  display: grid;
  grid-template-columns: minmax(210px, 1.2fr) repeat(3, minmax(120px, 1fr));
  gap: 0;
  padding: 16px;
}

.account-flyout__grid section {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
  padding: 0 14px;
  border-inline-start: 1px solid var(--line);
}

.account-flyout__grid section:first-child {
  padding-inline-start: 0;
  border-inline-start: 0;
}

.account-flyout__grid h3 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
}

.account-flyout__grid a:not(.button) {
  justify-content: flex-start;
  min-height: 30px;
  padding: 0;
  color: #34423f;
  font-weight: 800;
  white-space: normal;
}

.account-flyout__grid a:not(.button):hover,
.account-flyout__grid a:not(.button):focus-visible {
  color: var(--brand);
  background: transparent;
}

.account-flyout__products {
  gap: 10px;
}

.account-flyout-product {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.account-flyout-product > a {
  display: block;
  min-height: 0;
  padding: 0;
  border: 0;
}

.account-flyout-product img {
  width: 72px;
  height: 72px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  background: var(--surface);
}

.account-flyout-product div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.account-flyout-product strong {
  color: #dc2626;
  font-size: 15px;
  font-weight: 900;
}

.account-flyout-product .button {
  width: fit-content;
  min-height: 30px;
  padding: 0 12px;
  border-color: #facc15;
  background: #facc15;
  color: #241a00;
  box-shadow: none;
}

.account-flyout__empty {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.header-tools a:hover,
.header-tools a.is-active,
.header-tools__menu > summary:hover,
.header-tools__menu > summary.is-active,
.header-tools__menu[open] > summary {
  border-color: rgba(15, 118, 110, .18);
  background: var(--surface);
  color: var(--brand);
}

.cart-link span {
  display: inline-grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  margin-inline-start: 4px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
}

.mobile-menu-toggle,
.mobile-cart-link {
  display: none;
}

.mobile-menu-backdrop,
.mobile-drawer {
  display: none;
}

.mobile-menu-backdrop:not([hidden]) {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: block;
  background: rgba(15, 23, 42, .48);
}

.mobile-drawer:not([hidden]) {
  position: fixed;
  inset-block: 0;
  right: 0;
  left: auto;
  z-index: 80;
  display: flex;
  width: min(90vw, 390px);
  max-width: calc(100vw - 18px);
  height: 100vh;
  max-height: 100dvh;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 0;
  border-inline-start: 1px solid rgba(255, 255, 255, .12);
  background: #fff;
  direction: rtl;
  text-align: right;
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  box-shadow: -22px 0 60px rgba(15, 23, 42, .24);
  scrollbar-width: thin;
}

.mobile-drawer *,
.mobile-drawer *::before,
.mobile-drawer *::after {
  min-width: 0;
}

.mobile-drawer__head {
  display: flex;
  flex: 0 0 auto;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: #111c1a;
  color: #fff;
}

.mobile-drawer__head strong,
.mobile-drawer__head span {
  display: block;
}

.mobile-drawer__head strong {
  font-size: 18px;
  letter-spacing: 0;
}

.mobile-drawer__head span {
  color: rgba(255, 255, 255, .76);
  font-size: 13px;
  font-weight: 800;
}

.mobile-drawer__head button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 8px;
  background: transparent;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.mobile-drawer__search {
  display: flex;
  flex: 0 0 auto;
  margin: 14px 14px 8px;
  overflow: hidden;
  border: 2px solid var(--accent);
  border-radius: 8px;
  background: #fff;
}

.mobile-drawer__search input {
  min-width: 0;
  flex: 1;
  height: 44px;
  border: 0;
  padding: 0 12px;
  outline: 0;
}

.mobile-drawer__search button {
  width: 72px;
  border: 0;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
}

.mobile-drawer__group {
  flex: 0 0 auto;
  border-top: 1px solid var(--line);
}

.mobile-drawer__group > summary {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  color: var(--ink);
  font-weight: 900;
  list-style: none;
  cursor: pointer;
}

.mobile-drawer__group > summary::-webkit-details-marker {
  display: none;
}

.mobile-drawer__group > summary::after {
  content: "⌄";
  color: var(--muted);
  font-size: 18px;
  transition: transform .2s ease;
}

.mobile-drawer__group[open] > summary::after {
  transform: rotate(180deg);
}

.mobile-drawer__links {
  display: grid;
  gap: 6px;
  padding: 0 14px 14px;
}

.mobile-drawer__links a {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 850;
  overflow-wrap: anywhere;
}

.mobile-drawer__links a.is-active,
.mobile-drawer__links a:hover {
  border-color: rgba(15, 118, 110, .22);
  background: var(--surface);
  color: var(--brand);
}

.category-tree--mobile {
  padding: 0 14px 16px;
}

.category-tree--mobile ul {
  gap: 6px;
}

.category-tree--mobile li ul {
  margin: 6px 8px 0 0;
}

.category-tree--mobile .category-tree__item {
  min-height: 40px;
  padding: 8px 10px;
  background: #f8fbfa;
  overflow-wrap: anywhere;
}

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

.category-tree__mobile-group > summary {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfa;
  color: var(--ink);
  font-weight: 900;
  list-style: none;
  cursor: pointer;
  overflow-wrap: anywhere;
}

.category-tree__mobile-group > summary::-webkit-details-marker {
  display: none;
}

.category-tree__mobile-group > summary::after {
  content: "v";
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  transition: transform .18s ease;
}

.category-tree__mobile-group[open] > summary::after {
  transform: rotate(180deg);
}

.category-tree__mobile-group > summary strong {
  margin-inline-start: auto;
}

.category-tree__mobile-group > summary.is-active {
  border-color: rgba(15, 118, 110, .22);
  background: var(--surface);
  color: var(--brand);
}

.category-tree__mobile-group > ul {
  display: grid;
  gap: 6px;
  margin: 0 10px 0 0;
}

.category-tree__item--all {
  margin-top: 6px;
  border-color: rgba(216, 162, 27, .26);
  background: #fffaf0 !important;
  color: var(--accent-dark);
}

.main-nav {
  border-top: 1px solid var(--line);
  background: #fff;
}

.main-nav__inner {
  justify-content: flex-start;
  gap: 6px;
  min-height: 58px;
  font-weight: 900;
}

.main-nav__inner > a:not(.main-nav__category-link),
.main-nav__inner > .main-nav__categories {
  display: none;
}

.main-nav__category-menu {
  position: relative;
  flex: 0 0 auto;
}

.main-nav__category-menu > summary,
.main-nav__category-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #243532;
  cursor: pointer;
  line-height: 1.2;
  list-style: none;
  white-space: nowrap;
}

.main-nav__category-menu > summary::-webkit-details-marker {
  display: none;
}

.main-nav__category-menu > summary::after {
  content: "v";
  display: inline-block;
  margin-inline-start: 7px;
  color: var(--muted);
  font-size: 11px;
  transition: transform .2s ease;
}

.main-nav__category-menu[open] > summary::after {
  transform: rotate(180deg);
}

.main-nav__category-link:hover,
.main-nav__category-link.is-active,
.main-nav__category-menu > summary:hover,
.main-nav__category-menu > summary.is-active,
.main-nav__category-menu[open] > summary {
  border-color: rgba(15, 118, 110, .18);
  background: var(--surface);
  color: var(--brand);
}

.main-nav__dropdown--category {
  width: min(360px, calc(100vw - 32px));
  max-height: min(72vh, 640px);
  overflow: auto;
  padding: 12px;
}

.main-nav__dropdown--category::before {
  display: none;
}

.category-menu__all {
  display: flex;
  min-height: 42px;
  align-items: center;
  margin-bottom: 8px;
  padding: 0 12px;
  border-radius: 8px;
  background: #111c1a;
  color: #fff;
  font-weight: 900;
}

.category-menu__all:hover {
  color: #fff;
  background: var(--brand);
}

.main-nav__categories {
  position: relative;
}

.main-nav__categories > summary {
  list-style: none;
}

.main-nav__categories > summary::-webkit-details-marker {
  display: none;
}

.main-nav__categories > summary::after {
  content: "v";
  display: inline-block;
  margin-inline-start: 8px;
  color: var(--muted);
  font-size: 11px;
  transition: transform .2s ease;
}

.main-nav__categories[open] > summary::after {
  transform: rotate(180deg);
}

.main-nav__dropdown {
  position: absolute;
  inset-block-start: calc(100% + 8px);
  inset-inline-start: 0;
  z-index: 45;
  width: min(720px, calc(100vw - 32px));
  max-height: min(70vh, 620px);
  overflow: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 22px 54px rgba(22, 33, 31, .16);
}

.main-nav__dropdown::before {
  content: "تصفح الأقسام";
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.hero {
  position: relative;
  min-height: 520px;
  display: grid;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(245, 250, 248, .18) 0%, rgba(245, 250, 248, .48) 44%, rgba(245, 250, 248, .96) 66%),
    url("/assets/products/4168.png") left 9% center / min(42vw, 520px) auto no-repeat,
    linear-gradient(135deg, #eef7f0 0%, #dfece8 100%);
  color: var(--ink);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 680px);
}

.hero__copy span {
  color: var(--brand);
  font-weight: 800;
}

.hero h1 {
  margin: 10px 0;
  color: var(--ink);
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.05;
}

.hero p {
  max-width: 640px;
  margin: 0 0 24px;
  color: #31413d;
  font-size: 20px;
}

.hero-search {
  width: min(640px, 100%);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .22);
}

.hero-search input,
.hero-search button {
  height: 58px;
  font-size: 15px;
}

.hero-search button {
  width: 120px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--brand);
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease;
  box-shadow: 0 10px 22px rgba(15, 118, 110, .14);
}

.button:hover {
  transform: translateY(-1px);
  background: var(--brand-dark);
  color: #fff;
}

.button--small {
  min-height: 36px;
  padding: 0 12px;
  font-size: 13px;
}

.button--ghost {
  border-color: rgba(15, 118, 110, .24);
  background: rgba(255, 255, 255, .72);
  color: var(--brand);
}

.button--soft {
  border-color: rgba(15, 118, 110, .18);
  background: var(--surface);
  color: var(--brand);
  box-shadow: none;
}

.button--soft:hover,
.button--ghost:hover {
  background: #eaf6f1;
  color: var(--brand-dark);
}

.is-disabled,
button:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.section {
  padding: 44px 0;
}

.section-head {
  justify-content: space-between;
  margin-bottom: 22px;
}

.section-head--inline {
  display: flex;
  gap: 12px;
  align-items: center;
}

.section-head h2,
.page-title h1 {
  margin: 0;
  font-size: 30px;
}

.section-head a {
  color: var(--brand);
  font-weight: 900;
}

.section-head a.button {
  color: #fff;
}

.section-head a.button--soft {
  color: var(--brand);
}

.category-strip {
  display: block;
}

.category-tree ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.category-tree li {
  margin: 0;
}

.category-tree li ul {
  margin: 8px 0 2px;
  padding-inline-start: 18px;
  border-inline-start: 2px solid rgba(15, 118, 110, .12);
}

.category-tree__item,
.filters a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 800;
  padding: 12px 14px;
}

.category-tree__item strong,
.filters span {
  color: var(--brand);
  font-size: 13px;
}

.category-tree__item:hover,
.category-tree__item.is-active {
  border-color: var(--brand);
  background: var(--surface);
  color: var(--brand);
}

.category-tree--strip > ul {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.category-tree--strip > ul > li > ul {
  margin-top: 10px;
}

.category-tree--nav > ul {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
}

.category-tree--nav li ul {
  margin: 6px 0 0;
}

.category-tree--nav .category-tree__item {
  min-height: 42px;
  padding: 9px 11px;
}

.category-tree--nav .category-tree__item span {
  min-width: 0;
}

.category-tree--filters {
  display: grid;
  gap: 8px;
}

.category-tree--filters .category-tree__item {
  padding: 9px 10px;
}

.category-tree--footer ul {
  gap: 4px;
}

.category-tree--footer li ul {
  margin: 2px 0 2px;
  padding-inline-start: 12px;
  border-color: rgba(255, 255, 255, .12);
}

.category-tree--footer .category-tree__item {
  display: flex;
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, .78);
}

.category-tree--footer .category-tree__item strong {
  display: none;
}

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

.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.product-card:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 118, 110, .24);
  box-shadow: 0 14px 34px rgba(15, 118, 110, .12);
}

.product-card__media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #fff;
}

.product-card__media img {
  width: 100%;
  height: 100%;
  padding: 10px;
  object-fit: contain;
  image-rendering: auto;
  transition: transform .2s ease;
}

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

.product-card__body {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.product-card__title {
  min-height: 50px;
  font-weight: 900;
  line-height: 1.45;
}

.product-card__meta {
  display: grid;
  gap: 3px;
  color: var(--muted);
  font-size: 13px;
}

.product-card__meta a {
  color: var(--brand);
  font-weight: 900;
}

.product-rating-mini {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 24px;
}

.product-rating-mini span,
.product-rating-line span {
  color: #b45309;
  font-weight: 900;
}

.product-rating-mini small,
.product-rating-line small {
  color: var(--muted);
  font-weight: 800;
}

.product-card__row {
  justify-content: space-between;
  gap: 12px;
}

.price,
.product-detail__price {
  color: var(--brand);
  font-weight: 900;
}

.badge {
  position: absolute;
  inset-block-start: 10px;
  inset-inline-start: 10px;
  display: inline-grid;
  min-height: 28px;
  place-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: #111c1a;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.badge--sale {
  background: #c2410c;
}

.mini-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.icon-button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  cursor: pointer;
}

.icon-button--ghost {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--brand);
}

.icon-button--text {
  font-size: 12px;
  letter-spacing: 0;
}

.icon-button--ghost.is-active,
[data-favorite].is-active,
[data-compare].is-active {
  border-color: #c2410c;
  color: #c2410c;
}

.page-title {
  padding: 44px 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.page-title p {
  margin: 8px 0 0;
  color: var(--muted);
}

.shop-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.shop-filter-toggle,
.shop-filter-backdrop {
  display: none;
}

.filters {
  position: sticky;
  top: 210px;
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.filters h3 {
  margin: 0 0 6px;
}

.filter-form__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.filter-form__head h3 {
  margin: 0;
}

.filter-close {
  display: none;
}

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

.filter-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.check-row {
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: 800;
}

.check-row input {
  width: auto;
}

.muted-link {
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.filters a {
  padding: 10px 12px;
}

.filters a.is-active {
  border-color: var(--brand);
  background: var(--surface);
  color: var(--brand);
}

.shop-results {
  display: grid;
  gap: 18px;
}

.shop-toolbar,
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.shop-toolbar span {
  color: var(--muted);
}

.pagination {
  justify-content: center;
}

.pagination a,
.pagination span {
  display: inline-grid;
  min-height: 38px;
  place-items: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 900;
}

.pagination a:not(.is-disabled) {
  color: var(--brand);
}

.pagination .is-disabled {
  pointer-events: none;
  opacity: .45;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: 40px;
  padding: 48px 0;
  align-items: start;
}

.product-detail__media {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
}

.product-media-stack {
  display: grid;
  gap: 12px;
  padding: 12px;
  overflow: visible;
}

.product-main-media {
  display: grid;
  place-items: center;
  min-height: clamp(360px, 48vw, 620px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.product-detail__media img {
  width: 100%;
  max-height: 680px;
  object-fit: contain;
  image-rendering: auto;
}

.product-main-media img {
  width: 100%;
  height: 100%;
  padding: 12px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.product-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
  gap: 8px;
}

.product-gallery__thumb {
  min-height: 74px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.product-gallery__thumb.is-active,
.product-gallery__thumb:hover {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .12);
}

.product-gallery__thumb img {
  width: 100%;
  height: 66px;
  object-fit: contain;
  border-radius: 6px;
}

.product-management-panel {
  display: grid;
  gap: 12px;
  padding: 12px 2px 2px;
  border-top: 1px solid var(--line);
}

.product-management-panel__head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.product-management-panel__head span {
  display: block;
  margin-bottom: 2px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
}

.product-management-panel__head h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
}

.product-management-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
}

.product-management-image-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  border: 1px solid rgba(220, 38, 38, .16);
  border-radius: 8px;
  background: rgba(254, 242, 242, .72);
}

.product-management-image-toolbar strong {
  color: #991b1b;
  font-size: 13px;
}

.product-management-image {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.product-management-image__select {
  grid-column: 1 / -1;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.product-management-image__select input {
  width: 16px;
  height: 16px;
}

.product-management-image img {
  width: 64px;
  height: 64px;
  border: 1px solid var(--line);
  border-radius: 6px;
  object-fit: contain;
  background: #fff;
}

.product-management-image form,
.product-management-delete {
  margin: 0;
}

.product-management-image .button,
.product-management-delete .button {
  width: 100%;
  justify-content: center;
}

.product-video {
  overflow: hidden;
  border-radius: 8px;
  background: #111;
}

.product-video iframe,
.product-video video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #111;
}

.product-video video {
  object-fit: contain;
}

.product-detail__info h1 {
  margin: 4px 0 12px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.2;
}

.product-detail__price {
  display: block;
  margin-bottom: 18px;
  font-size: 24px;
}

.product-rating-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin: -8px 0 16px;
}

.product-rating-line strong {
  color: var(--brand);
  font-size: 22px;
}

.product-facts,
.service-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.product-facts span,
.product-facts a,
.service-strip span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.product-facts a {
  color: var(--brand);
  border-color: rgba(15, 118, 110, .2);
  background: var(--surface);
}

.product-source-card {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
  margin: 10px 0 18px;
  padding: 10px 12px;
  border: 1px solid rgba(15, 118, 110, .18);
  border-radius: 8px;
  background: #f0fdfa;
  color: #134e4a;
}

.product-source-card span,
.product-source-card small {
  font-size: 12px;
  font-weight: 900;
}

.product-source-card a {
  color: var(--brand);
  font-weight: 900;
}

.product-options {
  display: grid;
  gap: 12px;
  margin: 18px 0;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.product-options h2 {
  margin: 0;
  font-size: 18px;
}

.product-options__head p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.product-options__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.product-option-group {
  display: grid;
  gap: 8px;
}

.product-option-group__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.product-option-group label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
}

.product-option-group__head span {
  max-width: 100%;
  padding: 4px 8px;
  border: 1px solid rgba(15, 118, 110, .15);
  border-radius: 999px;
  background: #f0fdfa;
  color: var(--brand-dark);
  font-size: 11px;
  font-weight: 900;
}

.product-option-group select {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
}

.product-option-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(94px, 1fr));
  gap: 8px;
}

.product-option-choice {
  display: grid;
  gap: 6px;
  align-items: center;
  min-height: 46px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-align: center;
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.product-option-choice:hover,
.product-option-choice.is-selected {
  border-color: var(--brand);
  box-shadow: 0 8px 18px rgba(15, 118, 110, .12);
  transform: translateY(-1px);
}

.product-option-choice__swatch {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0 auto;
  border-radius: 8px;
  background: linear-gradient(135deg, #f8fafc, #e2f3ef);
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 950;
}

.product-option-choice strong {
  min-width: 0;
  overflow: hidden;
  color: inherit;
  font-size: 12px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-option-group.is-missing .product-option-group__head span {
  border-color: rgba(185, 28, 28, .22);
  background: #fef2f2;
  color: #991b1b;
}

.product-option-state {
  padding: 10px 12px;
  border: 1px solid rgba(15, 118, 110, .12);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
}

.product-variant-picker {
  display: grid;
  gap: 12px;
  margin: 18px 0;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.product-variant-picker__head {
  display: grid;
  gap: 4px;
}

.product-variant-picker__head h2 {
  margin: 0;
  font-size: 18px;
}

.product-variant-picker__head p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

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

.product-variant-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  align-items: center;
  gap: 3px 9px;
  min-height: 74px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-align: start;
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.product-variant-card:hover,
.product-variant-card.is-selected {
  border-color: var(--brand);
  box-shadow: 0 8px 18px rgba(15, 118, 110, .12);
  transform: translateY(-1px);
}

.product-variant-card img {
  grid-row: 1 / 4;
  width: 54px;
  height: 54px;
  border-radius: 8px;
  object-fit: cover;
  background: #f8fafc;
}

.product-variant-card span,
.product-variant-card strong,
.product-variant-card small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-variant-card span {
  font-size: 12px;
  font-weight: 900;
}

.product-variant-card strong {
  color: var(--brand);
  font-size: 13px;
  font-weight: 950;
}

.product-variant-card small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.product-variant-card.is-disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
}

.product-variant-groups {
  display: grid;
  gap: 14px;
}

.product-variant-group {
  display: grid;
  gap: 8px;
}

.product-variant-group > label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
}

.product-variant-swatch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 9px;
}

.product-variant-choice {
  display: grid;
  gap: 5px;
  align-content: start;
  min-height: 126px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-align: center;
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.product-variant-choice:hover,
.product-variant-choice.is-selected {
  border-color: var(--brand);
  box-shadow: 0 8px 18px rgba(15, 118, 110, .12);
  transform: translateY(-1px);
}

.product-variant-choice img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
  background: #f8fafc;
}

.product-variant-choice span,
.product-variant-choice small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-variant-choice span {
  font-size: 11px;
  font-weight: 900;
}

.product-variant-choice small {
  color: var(--brand);
  font-size: 10px;
  font-weight: 900;
}

.product-variant-group select {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 850;
}

.product-variant-group__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.product-variant-group__head label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
}

.product-variant-group__head span {
  max-width: 100%;
  padding: 4px 8px;
  border: 1px solid rgba(15, 118, 110, .15);
  border-radius: 999px;
  background: #f0fdfa;
  color: var(--brand-dark);
  font-size: 11px;
  font-weight: 900;
}

.product-variant-group__status {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.product-variant-guide {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: min(100%, 360px);
  padding: 8px;
  border: 1px solid rgba(15, 118, 110, .14);
  border-radius: 8px;
  background: #f8fffe;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.product-variant-guide img {
  width: 76px;
  height: 52px;
  border-radius: 7px;
  object-fit: cover;
  background: #fff;
}

.product-variant-swatch-grid {
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
}

.product-variant-choice {
  position: relative;
  min-height: 132px;
}

.product-variant-choice.is-overflow {
  display: none;
}

.product-variant-group.is-expanded .product-variant-choice.is-overflow {
  display: grid;
}

.product-variant-choice.is-selected {
  outline: 2px solid rgba(15, 118, 110, .18);
  outline-offset: 2px;
}

.product-variant-choice.is-unavailable {
  opacity: .58;
  box-shadow: none;
}

.product-variant-group--chips .product-variant-swatch-grid {
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
}

.product-variant-group--chips .product-variant-choice {
  min-height: 58px;
  align-content: center;
  padding: 10px;
}

.product-variant-group--chips .product-variant-choice small:empty,
.product-variant-group--visual .product-variant-choice small:empty {
  display: none;
}

.product-variant-choice.is-unavailable::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-top: 2px solid rgba(220, 38, 38, .75);
  transform: rotate(-32deg);
  pointer-events: none;
}

.product-variant-choice em {
  min-height: 14px;
  color: #b91c1c;
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.25;
}

.product-variant-more {
  justify-self: start;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(15, 118, 110, .18);
  border-radius: 999px;
  background: #f8fffe;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.product-variant-state {
  padding: 10px 12px;
  border: 1px solid rgba(15, 118, 110, .12);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
}

.product-variant-price-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(124, 45, 18, .14);
  border-radius: 8px;
  background: #fff7ed;
}

.product-variant-price-panel span,
.product-variant-price-panel small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.product-variant-price-panel strong {
  color: var(--accent);
  font-size: 18px;
  font-weight: 950;
}

.product-variant-price-panel small {
  grid-column: 1 / -1;
}

.product-description-stack {
  display: grid;
  gap: 14px;
  margin: 18px 0;
}

.product-description-block {
  display: grid;
  gap: 8px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.product-description-block + .product-description-block {
  border-top: 0;
  padding-top: 4px;
}

.product-description-block h2,
.product-shipping-policy h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
}

.product-shipping-policy h3 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.45;
}

.product-description-block p,
.product-shipping-policy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.85;
}

.product-description-block--short p {
  color: var(--ink);
  font-weight: 800;
}

.product-shipping-policy {
  display: grid;
  gap: 12px;
  margin: 18px 0;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.product-shipping-rules {
  display: grid;
  gap: 8px;
}

.product-shipping-procedure {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(15, 118, 110, .14);
  border-radius: 8px;
  background: var(--surface);
}

.product-shipping-procedure p {
  color: var(--ink);
  font-weight: 800;
}

.product-shipping-rule {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(15, 118, 110, .12);
}

.product-shipping-rule:last-child {
  border-bottom: 0;
}

.product-shipping-rule div {
  display: grid;
  gap: 4px;
}

.product-shipping-rule strong {
  color: var(--ink);
}

.product-shipping-rule span {
  color: var(--muted);
  font-size: 13px;
}

.product-shipping-rule b {
  color: var(--brand);
  white-space: nowrap;
}

.crumb {
  color: var(--muted);
}

.purchase-row {
  gap: 12px;
  margin-top: 24px;
}

.purchase-row input {
  width: 82px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
}

.bundle-section {
  padding-top: 0;
}

.bundle-offer {
  display: grid;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(15, 118, 110, .18);
  border-radius: 8px;
  background: var(--surface);
}

.bundle-offer__header {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.bundle-offer__header span,
.bundle-actions small {
  color: var(--muted);
  font-weight: 800;
}

.bundle-offer__header h2 {
  margin: 0;
  font-size: 26px;
}

.bundle-total {
  display: grid;
  gap: 2px;
  min-width: 160px;
  text-align: left;
}

.bundle-total strong {
  color: var(--brand);
  font-size: 24px;
}

.bundle-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.bundle-item {
  display: grid;
  grid-template-columns: auto 72px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.bundle-item.is-main {
  border-color: rgba(15, 118, 110, .24);
  box-shadow: inset 0 0 0 1px rgba(15, 118, 110, .08);
}

.bundle-item input {
  width: 18px;
  height: 18px;
}

.bundle-item img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}

.bundle-item span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.bundle-item strong {
  overflow-wrap: anywhere;
  line-height: 1.5;
}

.bundle-item small {
  color: var(--muted);
  font-weight: 800;
}

.bundle-item b {
  grid-column: 2 / -1;
  color: var(--brand);
}

.bundle-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

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

.cart-page,
.checkout-layout,
.account-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}

.cart-table,
.order-summary,
.checkout-form,
.account-panel,
.empty-state {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.cart-table {
  display: grid;
  gap: 12px;
  border: 0;
  background: transparent;
  overflow: visible;
}

.cart-page {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 390px);
  gap: 28px;
}

.cart-table__head {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 4px;
}

.cart-table__head h2 {
  margin: 0;
}

.cart-table__head span {
  color: var(--muted);
  font-weight: 900;
}

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

.cart-store-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(22, 33, 31, .05);
}

.cart-store-card__head,
.cart-store-card__foot,
.cart-summary__head,
.cart-summary-store-row {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.cart-store-card__head {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.cart-store-card__head span,
.cart-summary__head span,
.cart-summary-store-row small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.cart-store-card__head h2 {
  margin: 2px 0 0;
  font-size: 20px;
}

.cart-store-card__head > strong {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--brand);
  font-size: 13px;
}

.cart-store-card__items {
  display: grid;
  gap: 10px;
}

.cart-store-card__foot {
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--brand);
  font-weight: 900;
}

.cart-store-shipping-note,
.cart-summary-note {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(15, 118, 110, .16);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.7;
}

.cart-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 110px 150px 120px;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(22, 33, 31, .04);
}

.cart-store-item {
  box-shadow: none;
}

.cart-item img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}

.cart-item__media {
  display: block;
}

.cart-item__title,
.summary-lines a {
  color: var(--ink);
  font-weight: 900;
}

.cart-item__details {
  display: grid;
  gap: 8px;
}

.cart-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.cart-item__meta span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--surface);
}

.cart-item__meta .is-danger {
  background: #fff1f2;
  color: #be123c;
}

.cart-item__title:hover,
.summary-lines a:hover {
  color: var(--brand);
}

.cart-item__price,
.cart-item__total {
  display: grid;
  gap: 4px;
}

.cart-item__price span,
.cart-item__total span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.cart-item__price strong,
.cart-item__total strong {
  color: var(--ink);
  font-weight: 900;
}

.quantity-stepper {
  display: grid;
  grid-template-columns: 38px minmax(52px, 1fr) 38px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.quantity-stepper button,
.quantity-stepper input {
  height: 38px;
  border: 0;
  background: #fff;
  color: var(--ink);
}

.quantity-stepper button {
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
}

.quantity-stepper button:hover {
  background: var(--surface);
  color: var(--brand);
}

.quantity-stepper input {
  width: 74px;
  min-width: 0;
  text-align: center;
  font-weight: 900;
}

.remove-item {
  width: fit-content;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #be123c;
  font-weight: 900;
  cursor: pointer;
}

.remove-item:hover {
  border-color: rgba(190, 18, 60, .25);
  background: #fff1f2;
}

.order-summary,
.checkout-form {
  padding: 18px;
}

.cart-page .order-summary {
  position: sticky;
  top: 156px;
}

.cart-summary {
  display: grid;
  gap: 12px;
}

.cart-summary h2 {
  margin: 0;
}

.cart-summary__head {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.cart-summary-store-list {
  display: grid;
  gap: 8px;
}

.cart-summary-store-row {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.cart-summary-store-row > span {
  display: grid;
  gap: 2px;
  font-weight: 900;
}

.cart-summary-store-row strong {
  color: var(--brand);
  white-space: nowrap;
}

.cart-summary-row,
.cart-summary-total {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.cart-summary-total {
  align-items: center;
  color: var(--brand);
  font-size: 17px;
  font-weight: 900;
}

.cart-summary-actions {
  display: grid;
  gap: 8px;
}

.cart-sync-badge {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(15, 118, 110, .18);
  border-radius: 8px;
  background: var(--surface);
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
}

.cart-sync-badge--saved {
  border-color: rgba(125, 187, 47, .35);
  background: #f7fee7;
  color: #3f6212;
}

.cart-sync-badge--error {
  border-color: rgba(190, 18, 60, .22);
  background: #fff1f2;
  color: #be123c;
}

.cart-sync-badge--guest {
  border-color: rgba(180, 83, 9, .22);
  background: #fffbeb;
  color: #92400e;
}

.cart-sync-badge a {
  color: inherit;
  text-decoration: underline;
}

.cart-empty {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  justify-items: center;
  padding: 36px 18px;
  text-align: center;
}

.cart-empty > span {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 50%;
  background: var(--surface);
  color: var(--brand);
  font-size: 28px;
  font-weight: 900;
}

.cart-empty__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.summary-lines {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0 0 14px;
  list-style: none;
}

.summary-lines li {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.free-shipping-progress {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(15, 118, 110, .18);
  border-radius: 8px;
  background: #f0fdfa;
  color: var(--brand);
  font-weight: 900;
}

.free-shipping-progress__text {
  font-size: 14px;
  line-height: 1.6;
}

.free-shipping-progress__track {
  overflow: hidden;
  height: 9px;
  border-radius: 999px;
  background: rgba(15, 118, 110, .14);
}

.free-shipping-progress__track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
  transition: width .25s ease;
}

.free-shipping-progress.is-complete {
  border-color: rgba(125, 187, 47, .4);
  background: #f7fee7;
  color: #3f6212;
}

.shipping-free-note {
  margin: 8px 0 10px;
  color: var(--brand);
  font-weight: 900;
}

.free-shipping-admin-note {
  display: grid;
  gap: 2px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.free-shipping-admin-note strong {
  font-size: 22px;
}

.free-shipping-admin-note span {
  color: var(--muted);
  font-weight: 800;
}

.coupon-box {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(15, 118, 110, .18);
  border-radius: 8px;
  background: var(--surface);
}

.coupon-box h2 {
  margin: 0;
  font-size: 18px;
}

.coupon-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.coupon-message,
.coupon-summary {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.coupon-message.is-success,
.coupon-summary--success,
.discount-line,
.order-total--discount {
  color: var(--brand);
}

.coupon-message.is-error,
.coupon-summary--error {
  color: #b91c1c;
}

.coupon-list {
  display: grid;
  gap: 16px;
}

.coupon-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.coupon-card header {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

.coupon-card header strong {
  display: block;
  font-size: 20px;
}

.coupon-card header span,
.coupon-usage span {
  color: var(--muted);
}

.coupon-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 12px;
  align-items: end;
}

.coupon-form--new {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.coupon-usage {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.saved-products {
  display: grid;
  gap: 14px;
}

.saved-product {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.saved-product__media img,
.compare-card__media img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}

.saved-product__body {
  display: grid;
  gap: 4px;
}

.saved-product__title,
.compare-card h2 a {
  font-weight: 900;
  color: var(--ink);
}

.saved-product__title:hover,
.compare-card h2 a:hover {
  color: var(--brand);
}

.saved-product__body span,
.saved-product__body small {
  color: var(--muted);
}

.saved-product__actions,
.compare-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  align-items: start;
}

.compare-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.compare-card h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
}

.compare-card dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.compare-card dl div {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.compare-card dt {
  color: var(--muted);
  font-weight: 800;
}

.compare-card dd {
  margin: 0;
  text-align: left;
  font-weight: 900;
}

.empty-state {
  padding: 24px;
}

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

.shipping-options,
.shipping-store-group,
.shipping-rate-list {
  display: grid;
  gap: 12px;
}

.shipping-store-group {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.shipping-store-group h3,
.shipping-store-group p {
  margin: 0;
}

.shipping-method-option {
  grid-template-columns: auto minmax(0, 1fr) auto;
  display: grid;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.shipping-method-option input {
  width: auto;
}

.shipping-method-option small {
  display: block;
  color: var(--muted);
}

.shipping-summary-lines {
  display: grid;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.shipping-summary-lines p {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  margin: 0;
  font-size: 13px;
}

.shipping-rate-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.shipping-rate-row--new {
  margin-top: 12px;
  background: var(--surface);
}

.checkout-layout--professional {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 410px);
  gap: 28px;
}

.checkout-layout--professional .checkout-form {
  display: grid;
  gap: 16px;
  padding: 0;
  border: 0;
  background: transparent;
}

.checkout-layout--professional .order-summary {
  position: sticky;
  top: 156px;
  display: grid;
  gap: 14px;
  align-self: start;
  box-shadow: 0 16px 38px rgba(19, 32, 29, .07);
}

.checkout-layout--professional .order-summary h2 {
  margin: 0;
}

.checkout-panel {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(19, 32, 29, .045);
}

.checkout-panel__head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.checkout-panel__head > span {
  display: grid;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 900;
}

.checkout-panel__head h2,
.checkout-panel__head p {
  margin: 0;
}

.checkout-panel__head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.7;
}

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

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

.checkout-submit {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border: 1px solid rgba(15, 118, 110, .16);
  border-radius: 8px;
  background: var(--surface);
}

.checkout-submit .button {
  width: 100%;
}

.checkout-submit span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.shipping-store-group {
  background: #fff;
  box-shadow: 0 10px 24px rgba(19, 32, 29, .045);
}

.shipping-store-group__head,
.checkout-summary-store header,
.checkout-summary-shipping,
.checkout-summary-totals p {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.shipping-store-group__head h3,
.checkout-summary-store h3 {
  margin: 2px 0 0;
  font-size: 18px;
}

.shipping-store-group__head span,
.checkout-summary-store header span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.shipping-store-group__head > strong,
.checkout-summary-store header > strong {
  color: var(--brand);
  font-size: 17px;
  white-space: nowrap;
}

.shipping-store-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.shipping-store-facts span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.shipping-store-items,
.checkout-summary-items,
.checkout-summary-store-list {
  display: grid;
  gap: 10px;
}

.shipping-store-item,
.checkout-summary-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.checkout-summary-item {
  grid-template-columns: 48px minmax(0, 1fr) auto;
  padding: 8px;
}

.shipping-store-item img,
.checkout-summary-item img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border: 1px solid rgba(19, 32, 29, .06);
  border-radius: 8px;
  background: #fff;
}

.checkout-summary-item img {
  width: 48px;
  height: 48px;
}

.shipping-store-item strong,
.checkout-summary-item strong {
  display: block;
  min-width: 0;
  line-height: 1.5;
}

.shipping-store-item a,
.checkout-summary-item a {
  color: var(--ink);
}

.shipping-store-item small,
.checkout-summary-item small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.shipping-store-item b,
.checkout-summary-item b {
  color: var(--brand);
  white-space: nowrap;
}

.shipping-store-group h4 {
  margin: 2px 0 0;
  font-size: 15px;
}

.checkout-summary-store {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.checkout-summary-shipping {
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.checkout-summary-totals {
  display: grid;
  gap: 8px;
  padding-top: 6px;
}

.checkout-summary-totals p {
  margin: 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-weight: 900;
}

.checkout-summary-grand {
  color: var(--brand);
  font-size: 18px;
}

label {
  display: grid;
  gap: 6px;
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  font: inherit;
  background: #fff;
}

textarea {
  min-height: 110px;
}

.account-panel {
  padding: 22px;
}

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

.auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.auth-grid--single {
  grid-template-columns: minmax(0, 480px);
  justify-content: center;
}

.account-summary {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.account-summary h2 {
  margin: 0;
}

.account-summary span {
  color: var(--muted);
  font-weight: 800;
}

.account-summary--customer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 1.25fr);
  gap: 16px;
  align-items: stretch;
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(240, 253, 250, .96), rgba(255, 255, 255, .96) 58%),
    linear-gradient(90deg, rgba(245, 158, 11, .12), rgba(15, 118, 110, .10));
  box-shadow: 0 16px 36px rgba(22, 33, 31, .07);
}

.account-summary__identity {
  display: grid;
  align-content: center;
  gap: 5px;
  min-width: 0;
}

.account-summary__identity h2 {
  overflow-wrap: anywhere;
  font-size: clamp(25px, 4vw, 36px);
  line-height: 1.2;
}

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

.account-summary__stats a {
  display: grid;
  align-content: center;
  min-height: 92px;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(15, 118, 110, .16);
  border-radius: 8px;
  background: rgba(255, 255, 255, .82);
  color: var(--ink);
  text-decoration: none;
}

.account-summary__stats a:hover,
.account-summary__stats a:focus-visible {
  border-color: rgba(15, 118, 110, .34);
  background: #fff;
  outline: none;
}

.account-summary__stats strong {
  color: var(--brand);
  font-size: clamp(18px, 3vw, 24px);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.account-summary__stats span {
  font-size: 12px;
}

.account-summary__actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
}

.account-profile-form h2,
.customer-card--account h2 {
  margin: 0;
}

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

.customer-card--account {
  gap: 14px;
  box-shadow: 0 12px 28px rgba(22, 33, 31, .05);
}

.customer-card__head {
  display: grid;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.customer-card__details {
  display: grid;
  gap: 10px;
  margin: 0;
}

.customer-card__details div {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.customer-card__details dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.customer-card__details dd {
  margin: 0;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.role-pill {
  display: inline-flex;
  width: fit-content;
  margin: 8px 0 0;
  padding: 5px 10px;
  border: 1px solid rgba(15, 118, 110, .18);
  border-radius: 999px;
  background: #f0fdfa;
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
}

.lookup-panel,
.customer-card,
.order-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
}

.lookup-panel {
  display: grid;
  gap: 14px;
}

.customer-card {
  display: grid;
  gap: 8px;
}

.customer-card span {
  color: var(--muted);
}

.muted-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

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

.wallet-balance-card,
.wallet-card {
  display: grid;
  gap: 14px;
}

.wallet-balance-card {
  min-height: 220px;
  padding: 26px;
  border: 1px solid rgba(15, 118, 110, .22);
  border-radius: 8px;
  background: linear-gradient(135deg, #f0fdfa, #fff 68%);
}

.wallet-balance-card span,
.wallet-card__head span,
.wallet-row span,
.wallet-row small,
.wallet-admin-summary span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.wallet-balance-card strong {
  color: var(--brand);
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1;
}

.wallet-card__head {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

.wallet-card__head strong {
  display: block;
  margin-top: 4px;
  color: var(--brand);
  font-size: 24px;
}

.wallet-ledger {
  display: grid;
  gap: 10px;
}

.wallet-statement {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.wallet-statement__head,
.wallet-statement__row {
  display: grid;
  grid-template-columns: minmax(120px, .9fr) minmax(220px, 1.7fr) minmax(110px, .9fr) minmax(100px, .75fr) minmax(100px, .75fr) minmax(110px, .8fr);
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
}

.wallet-statement__head {
  color: var(--muted);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 900;
}

.wallet-statement__row + .wallet-statement__row {
  border-top: 1px solid var(--line);
}

.wallet-statement__row time,
.wallet-statement__details span,
.wallet-statement__details small,
.wallet-statement__reference,
.wallet-statement__amount span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.wallet-statement__details {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.wallet-statement__details strong,
.wallet-statement__details span,
.wallet-statement__details small,
.wallet-statement__reference,
.wallet-statement__balance,
.wallet-statement__amount {
  min-width: 0;
  overflow-wrap: anywhere;
}

.wallet-statement__reference a {
  color: var(--brand);
  font-weight: 900;
  text-decoration: none;
}

.wallet-statement__amount,
.wallet-statement__balance {
  text-align: end;
  font-size: 14px;
}

.wallet-statement__amount--credit {
  color: #047857;
}

.wallet-statement__amount--debit {
  color: #b91c1c;
}

.wallet-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.wallet-mini-stats div {
  padding: 10px;
  border: 1px solid rgba(15, 118, 110, .18);
  border-radius: 8px;
  background: rgba(255, 255, 255, .68);
}

.wallet-mini-stats span {
  display: block;
  margin-bottom: 4px;
}

.wallet-mini-stats strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.3;
}

.wallet-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.wallet-row strong,
.wallet-row b {
  display: block;
}

.wallet-row--credit b {
  color: #047857;
}

.wallet-row--debit b {
  color: #b91c1c;
}

.wallet-transfer-form {
  position: sticky;
  top: 18px;
}

.wallet-admin-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.wallet-admin-summary div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.wallet-admin-summary strong {
  display: block;
  margin-top: 4px;
}

.wallet-checkout-note {
  margin-top: -6px;
}

.gift-card-hero .button {
  width: fit-content;
}

.gift-card-redeem-form button:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.gift-card-admin-card small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 800;
}

.gift-card-checkout-note a {
  color: var(--brand);
  font-weight: 900;
}

.buy-again-panel {
  overflow: hidden;
}

.product-grid--compact {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.product-grid--compact .product-card__media {
  min-height: 160px;
}

.results-section {
  margin-top: 24px;
}

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

.order-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.order-card__actions form,
.buy-again-panel .section-head form,
.admin-actions form {
  margin: 0;
}

.order-card {
  display: grid;
  gap: 14px;
}

.order-card header,
.order-card__meta {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.order-card header strong {
  display: block;
}

.order-card header span,
.order-card__meta span,
.order-items small {
  color: var(--muted);
}

.order-items {
  display: grid;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.order-item-line {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) minmax(78px, auto) minmax(112px, auto);
  gap: 10px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.order-item-line__media,
.order-detail-item__media {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
}

.order-item-line__media {
  width: 54px;
  height: 54px;
}

.order-item-line img,
.order-detail-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.order-detail-item {
  grid-template-columns: 68px minmax(180px, 1fr) minmax(90px, .4fr) minmax(130px, .5fr);
  align-items: center;
}

.order-detail-item__media {
  width: 68px;
  height: 68px;
}

.order-detail-item small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.external-request-row {
  grid-template-columns: minmax(220px, 1.4fr) minmax(160px, .8fr) minmax(160px, .8fr) minmax(220px, auto);
  align-items: center;
}

.external-request-row form {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0;
}

.tracking-panel {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(15, 118, 110, .18);
  border-radius: 8px;
  background: var(--surface);
}

.tracking-panel--compact {
  gap: 10px;
  padding: 12px;
}

.tracking-panel header,
.tracking-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  justify-content: space-between;
}

.tracking-panel header span,
.tracking-facts span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.tracking-panel header strong,
.tracking-facts strong {
  color: var(--ink);
  font-weight: 900;
}

.tracking-steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.tracking-steps li {
  display: grid;
  gap: 8px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.tracking-steps li span {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: #dbe4e1;
}

.tracking-steps li.is-done span {
  background: var(--brand);
}

.tracking-steps li.is-current strong {
  color: var(--brand);
}

.tracking-facts {
  justify-content: flex-start;
}

.tracking-facts div {
  min-width: 140px;
}

.tracking-facts__wide {
  flex-basis: 100%;
}

.tracking-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.tracking-form .field--wide,
.tracking-form button {
  grid-column: 1 / -1;
}

.tracking-result {
  margin-top: 24px;
}

.store-shipments-panel {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.store-shipments-panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.store-shipments-panel > header span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.store-shipments-panel > header strong {
  color: var(--ink);
  font-weight: 900;
}

.store-shipments {
  display: grid;
  gap: 12px;
}

.store-shipment-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(15, 118, 110, .16);
  border-radius: 8px;
  background: #fff;
}

.store-shipment-card header,
.store-shipment-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: center;
  justify-content: space-between;
}

.store-shipment-card header div {
  display: grid;
  gap: 3px;
}

.store-shipment-card header span,
.store-shipment-card__meta span,
.store-shipment-card__notes span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.store-shipment-card header strong,
.store-shipment-card__meta strong {
  color: var(--ink);
  font-weight: 900;
}

.store-shipment-card__meta {
  justify-content: flex-start;
}

.store-shipment-card__meta div {
  min-width: 132px;
}

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

.store-shipment-card__items div {
  display: flex;
  min-width: 0;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border: 1px solid rgba(90, 18, 40, .1);
  border-radius: 8px;
  background: var(--surface);
}

.store-shipment-card__items img {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 8px;
  object-fit: cover;
}

.store-shipment-card__items span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.store-shipment-card__items strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-shipment-card__items small {
  color: var(--muted);
  font-weight: 800;
}

.store-shipment-card__notes {
  display: grid;
  gap: 8px;
}

.store-shipment-card__notes p {
  margin: 0;
  padding: 10px;
  border-radius: 8px;
  background: var(--surface);
}

.vendor-panel {
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
}

.store-hero {
  padding: 42px 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.store-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: stretch;
}

.store-hero h1 {
  margin: 4px 0 12px;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.15;
}

.store-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
}

.store-rating {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin-top: 18px;
}

.store-rating strong {
  color: var(--brand);
  font-size: 28px;
}

.store-rating span {
  color: #b45309;
  font-weight: 900;
}

.store-rating small {
  color: var(--muted);
  font-weight: 800;
}

.store-marketing-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  max-width: 820px;
  margin-top: 20px;
  padding: 14px;
  border: 1px solid rgba(15, 118, 110, .18);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
}

.store-marketing-card span,
.store-public-link {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.store-marketing-card strong {
  display: block;
  margin-top: 5px;
  direction: ltr;
  overflow: hidden;
  color: var(--ink);
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.store-share-action {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}

.store-share-action svg {
  width: 22px;
  height: 22px;
  display: block;
  fill: currentColor;
}

.store-share-action:hover {
  border-color: rgba(15, 118, 110, .35);
  color: var(--brand);
  transform: translateY(-1px);
}

.store-share-action--whatsapp {
  color: #16a34a;
}

.store-share-action--facebook {
  color: #2563eb;
}

.store-share-action--x {
  color: #0f172a;
}

.store-share-action--telegram {
  color: #0284c7;
}

.store-share-action--linkedin {
  color: #0a66c2;
}

.store-contact-card,
.store-side .admin-panel {
  display: grid;
  gap: 12px;
}

.store-contact-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
}

.store-contact-card h2,
.store-side h2 {
  margin: 0;
}

.store-public-link {
  display: grid;
  gap: 6px;
}

.store-public-link input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  direction: ltr;
  background: var(--surface);
  color: var(--ink);
  font-weight: 800;
  text-align: left;
}

.button.is-copied {
  border-color: rgba(22, 163, 74, .35);
  background: #dcfce7;
  color: #166534;
}

.store-contact-card a {
  color: var(--brand);
  font-weight: 900;
}

.store-contact-card p {
  color: var(--ink);
}

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

.store-main,
.store-side,
.store-message-form,
.store-review-form,
.review-list,
.review-card {
  display: grid;
  gap: 14px;
}

.review-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.review-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.review-card header span {
  color: #b45309;
  font-weight: 900;
}

.review-card p {
  margin: 0;
  color: var(--muted);
}

.store-message-form textarea {
  min-height: 120px;
}

.review-card small {
  color: var(--muted);
}

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

.support-aside {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
}

.mini-support-form {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.mini-support-form label {
  display: grid;
  gap: 6px;
  font-weight: 800;
  color: var(--ink);
}

.mini-support-form input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 11px;
  font: inherit;
}

.notice {
  padding: 10px 12px;
  border: 1px solid rgba(15, 118, 110, .18);
  border-radius: 8px;
  background: var(--surface);
  color: var(--brand);
  font-weight: 800;
}

.notice--error {
  border-color: rgba(194, 65, 12, .24);
  background: #fff7ed;
  color: #9a3412;
}

.notice--success {
  border-color: rgba(22, 163, 74, .24);
  background: #f0fdf4;
  color: #166534;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  margin-bottom: 24px;
}

.admin-actions .button {
  min-height: 40px;
  line-height: 1.35;
  text-align: center;
}

.admin-actions .button:first-child {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #fff;
  box-shadow: 0 10px 22px rgba(15, 118, 110, .14);
}

.admin-actions .button:first-child:hover {
  background: var(--brand);
  color: #fff;
}

.seller-dashboard-hero {
  padding: 34px 0 0;
  background:
    radial-gradient(circle at 14% 8%, rgba(200, 169, 110, .32), transparent 34%),
    linear-gradient(135deg, var(--brand-dark), var(--brand) 58%, #2f6f67);
  color: #fff;
}

.seller-dashboard-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 22px;
  align-items: stretch;
}

.seller-dashboard-hero__copy {
  display: grid;
  align-content: center;
  gap: 16px;
  min-height: 210px;
  padding-bottom: 34px;
}

.seller-dashboard-hero h1 {
  margin: 0;
  color: #fff;
  font-size: 40px;
  line-height: 1.2;
}

.seller-dashboard-hero p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, .82);
  font-size: 17px;
  line-height: 1.9;
  font-weight: 700;
}

.seller-dashboard-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.seller-dashboard-hero__actions .button {
  min-height: 44px;
}

.seller-dashboard-hero__actions .button--soft {
  border-color: rgba(255, 255, 255, .32);
  background: rgba(255, 255, 255, .12);
  color: #fff;
}

.seller-dashboard-hero__summary {
  align-self: end;
  display: grid;
  gap: 8px;
  margin-bottom: 34px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 8px;
  background: rgba(255, 255, 255, .12);
  box-shadow: 0 18px 44px rgba(15, 23, 42, .18);
  backdrop-filter: blur(10px);
}

.seller-dashboard-hero__summary span,
.seller-dashboard-hero__summary small,
.seller-dashboard-hero__summary b {
  color: rgba(255, 255, 255, .78);
  font-weight: 900;
}

.seller-dashboard-hero__summary strong {
  color: #fff;
  font-size: 46px;
  line-height: 1;
}

.seller-dashboard {
  padding-top: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(245, 239, 230, .42) 320px, transparent),
    var(--paper);
}

.seller-dashboard .admin-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.seller-dashboard .stat {
  min-height: 116px;
  border-color: rgba(90, 18, 40, .10);
  box-shadow: 0 14px 30px rgba(90, 18, 40, .08);
}

.seller-dashboard .stat__link {
  min-height: 116px;
}

.seller-dashboard .stat span {
  color: var(--muted);
  font-weight: 900;
}

.seller-dashboard-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.seller-action-card {
  display: grid;
  align-content: start;
  gap: 7px;
  min-height: 118px;
  padding: 16px;
  border: 1px solid rgba(90, 18, 40, .10);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(90, 18, 40, .06);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.seller-action-card:hover,
.seller-action-card:focus-visible {
  border-color: rgba(15, 118, 110, .30);
  box-shadow: 0 18px 36px rgba(90, 18, 40, .10);
  transform: translateY(-2px);
  outline: none;
}

.seller-action-card span {
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
}

.seller-action-card strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.45;
}

.seller-action-card small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.7;
}

.seller-action-card--primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  box-shadow: 0 16px 34px rgba(15, 118, 110, .18);
}

.seller-action-card--primary span,
.seller-action-card--primary strong,
.seller-action-card--primary small {
  color: #fff;
}

.seller-dashboard .admin-layout {
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
  align-items: start;
}

.seller-dashboard .admin-panel {
  border-color: rgba(90, 18, 40, .10);
  box-shadow: 0 14px 30px rgba(90, 18, 40, .06);
}

.stat,
.admin-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(22, 33, 31, .04);
}

.stat {
  display: grid;
  gap: 6px;
  padding: 18px;
  position: relative;
}

.stat strong {
  color: var(--brand);
  font-size: 26px;
}

.stat--linked {
  padding: 0;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.stat__link {
  display: grid;
  min-height: 100%;
  gap: 6px;
  padding: 18px;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
}

.stat__link::after {
  content: "";
  position: absolute;
  inset-inline-end: 14px;
  top: 16px;
  width: 8px;
  height: 8px;
  border-block-start: 2px solid currentColor;
  border-inline-start: 2px solid currentColor;
  color: var(--muted);
  opacity: .55;
  transform: rotate(-45deg);
}

.stat--linked:hover,
.stat--linked:focus-within {
  border-color: rgba(15, 118, 110, .36);
  box-shadow: 0 16px 34px rgba(22, 33, 31, .08);
  transform: translateY(-1px);
}

.stat__link:hover,
.stat__link:focus-visible {
  background: rgba(51, 94, 84, .06);
  outline: none;
}

.stat--focus {
  border-color: rgba(245, 158, 11, .34);
  background: #fffbeb;
}

.stat--focus strong {
  color: #b45309;
}

.admin-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.admin-panel {
  padding: 18px;
}

.admin-panel--collapsible {
  padding: 0;
  overflow: hidden;
}

.admin-panel__title {
  margin: 0;
}

.admin-panel--collapsible > .section-head {
  margin-bottom: 0;
  padding-inline-end: 12px;
}

.admin-panel--collapsible > .section-head .admin-panel__title {
  flex: 1 1 auto;
}

.admin-panel__toggle {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 900;
  text-align: start;
  cursor: pointer;
}

.admin-panel__toggle:hover,
.admin-panel__toggle:focus-visible {
  background: rgba(51, 94, 84, .07);
  outline: none;
}

.admin-panel__toggle-label {
  min-width: 0;
}

.admin-panel__toggle-icon {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  position: relative;
  background: #fff;
}

.admin-panel__toggle-icon::before,
.admin-panel__toggle-icon::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 12px;
  height: 2px;
  border-radius: 999px;
  background: var(--brand);
  transform: translate(-50%, -50%);
}

.admin-panel__toggle-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.admin-panel--collapsible.is-open .admin-panel__toggle {
  border-bottom: 1px solid var(--line);
  border-radius: 8px 8px 0 0;
}

.admin-panel--collapsible.is-open .admin-panel__toggle-icon::after {
  opacity: 0;
}

.admin-panel__body {
  padding: 18px;
}

.admin-panel__body > :first-child {
  margin-top: 0;
}

.admin-panel--wide {
  grid-column: 1 / -1;
}

.admin-analytics-shell {
  margin-top: 18px;
}

.admin-analytics-panel .section-head {
  align-items: center;
  gap: 12px;
}

.admin-analytics-panel .section-head span {
  color: var(--muted);
  font-weight: 800;
}

.admin-analytics-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.admin-analytics-summary > div {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid rgba(15, 118, 110, .14);
  border-radius: 8px;
  background: rgba(15, 118, 110, .06);
}

.admin-analytics-summary strong {
  color: var(--brand);
  font-size: 28px;
}

.admin-analytics-summary span {
  color: var(--muted);
  font-weight: 800;
}

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

.admin-analytics-card {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.admin-analytics-card h3 {
  margin: 0;
  font-size: 16px;
}

.admin-analytics-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 44px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}

.admin-analytics-row:first-of-type {
  border-top: 0;
}

.admin-analytics-row strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.admin-analytics-row a {
  color: var(--brand);
  text-decoration: none;
}

.admin-analytics-row a:hover,
.admin-analytics-row a:focus-visible {
  text-decoration: underline;
  outline: none;
}

.admin-analytics-metrics {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.admin-analytics-metrics span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 28px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--surface);
}

.admin-analytics-metrics b {
  color: var(--text);
  font-size: 13px;
}

.admin-filter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 16px;
}

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

.admin-table {
  display: grid;
  gap: 8px;
}

.capability-flow {
  margin-top: 16px;
}

.capability-flow ol {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: capability-step;
}

.capability-flow li {
  position: relative;
  min-height: 76px;
  padding: 14px 48px 14px 14px;
  padding-inline-start: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  font-weight: 900;
  line-height: 1.6;
}

.capability-flow li::before {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  counter-increment: capability-step;
  content: counter(capability-step);
  font-size: 12px;
}

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

.capability-card {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(22, 33, 31, .05);
}

.capability-card header {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
}

.capability-card h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
}

.capability-card header a {
  flex: 0 0 auto;
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.capability-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.7;
}

.capability-card ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.capability-card li {
  position: relative;
  padding-inline-start: 16px;
  color: var(--text);
  font-weight: 800;
  line-height: 1.55;
}

.capability-card li::before {
  position: absolute;
  inset-inline-start: 0;
  top: .72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  content: "";
}

.empty-state {
  margin: 0;
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--surface);
}

.admin-row {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr .8fr .8fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}

.admin-row--compact {
  grid-template-columns: minmax(0, 1.4fr) .6fr .8fr;
}

.import-log-table {
  display: grid;
  gap: 8px;
  overflow: visible;
  scrollbar-width: thin;
}

.import-log-row.admin-row--compact {
  grid-template-columns: 24px minmax(190px, 1.42fr) minmax(0, .58fr) minmax(0, .48fr) minmax(0, .42fr) minmax(0, .5fr) minmax(0, .4fr) minmax(0, .62fr);
  gap: 6px;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .05);
  align-items: center;
  font-size: .76rem;
  line-height: 1.24;
}

.import-log-row--head {
  display: none;
}

.import-log-row--head::before {
  content: "";
}

.import-log-select-cell {
  justify-content: center;
  align-self: center;
}

.import-log-row:not(.import-log-row--head) .import-log-product-cell {
  grid-column: 2;
}

.import-log-row:not(.import-log-row--head) > div:nth-of-type(2) {
  grid-column: 3;
}

.import-log-row:not(.import-log-row--head) > div:nth-of-type(3) {
  grid-column: 4;
}

.import-log-row:not(.import-log-row--head) > .import-price-cell:nth-of-type(4) {
  grid-column: 5;
}

.import-log-row:not(.import-log-row--head) > .import-price-cell:nth-of-type(5) {
  grid-column: 6;
  padding-bottom: 35px;
}

.import-log-row:not(.import-log-row--head) > .import-price-delta {
  grid-column: 7;
}

.import-log-row:not(.import-log-row--head) > div:nth-of-type(7) {
  grid-column: 8;
  display: grid;
  gap: 3px;
  align-content: center;
}

.import-log-row:not(.import-log-row--head) > div:nth-of-type(7) span,
.import-log-row:not(.import-log-row--head) > div:nth-of-type(7) small {
  overflow: hidden;
  font-size: 10px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.import-log-row:not(.import-log-row--head) > .row-actions {
  grid-column: 1 / -1;
  grid-row: 2;
  align-self: stretch;
  padding-top: 7px;
  border-top: 1px solid rgba(15, 23, 42, .08);
}

.import-price-update-form {
  grid-column: 6;
  grid-row: 1;
  align-self: end;
  display: grid;
  gap: 4px;
  margin: 0;
}

.import-price-update-form label {
  display: grid;
  gap: 4px;
  margin: 0;
}

.import-price-update-form input {
  width: 100%;
  min-width: 0;
  min-height: 26px;
  padding: 4px 7px;
  font-size: 11px;
}

.import-price-update-form .button {
  width: 100%;
  min-height: 26px;
  font-size: 11px;
}

.import-log-delete-form,
.import-tracking-panel-wrap {
  grid-column: 1 / -1;
}

.import-log-delete-form {
  justify-content: flex-start;
}

.import-log-product-cell {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 6px;
  align-items: center;
  min-width: 0;
  padding: 6px;
  border: 1px solid rgba(14, 116, 144, .14);
  border-radius: 8px;
  background: #f8fafc;
}

.import-log-product-cell img {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  object-fit: cover;
}

.import-log-product-cell strong,
.import-log-row strong {
  overflow-wrap: anywhere;
}

.import-log-product-cell > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.import-log-product-cell strong {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-size: 10.8px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.import-log-product-cell span {
  overflow: hidden;
  color: var(--muted);
  font-size: 9.8px;
  font-weight: 800;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.import-log-product-cell a {
  color: var(--brand);
  font-size: 10.5px;
  font-weight: 900;
  line-height: 1.1;
}

.import-log-product-alerts {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  align-self: start;
  margin-top: 3px;
}

.import-log-product-alerts .import-tracking-warning {
  flex-basis: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.import-price-pill {
  display: inline-flex;
  width: fit-content;
  min-height: 20px;
  align-items: center;
  padding: 2px 6px;
  border: 1px solid rgba(100, 116, 139, .22);
  border-radius: 999px;
  background: #f8fafc;
  color: #334155;
  font-size: 10px;
  font-weight: 900;
}

.import-price-pill--positive {
  border-color: rgba(4, 120, 87, .22);
  background: #ecfdf5;
  color: #047857;
}

.import-price-pill--negative {
  border-color: rgba(185, 28, 28, .2);
  background: #fef2f2;
  color: #b91c1c;
}

.import-price-pill--neutral {
  color: var(--muted);
}

.import-log-actions {
  display: flex;
  gap: 6px;
  align-items: stretch;
  flex-wrap: wrap;
}

.import-log-row .row-actions .button,
.import-log-delete-form .button,
.import-log-bulk-toolbar .button {
  min-height: 25px;
  padding: 0 7px;
  font-size: 10.5px;
  white-space: nowrap;
}

.import-log-actions > .button,
.import-log-actions .import-log-delete-form,
.import-log-actions .import-tracking-panel {
  flex: 0 1 auto;
  min-width: 132px;
}

.import-log-actions .muted-note {
  flex: 1 1 100%;
  font-size: 10px;
}

.import-log-actions .import-log-delete-form {
  display: flex;
  margin: 0;
}

.import-tracking-panel--inline {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.import-tracking-panel--inline > summary {
  display: flex;
  min-height: 25px;
  align-items: center;
  justify-content: center;
  padding: 0 7px;
  border: 1px solid rgba(15, 118, 110, .18);
  border-radius: 8px;
  background: var(--surface);
  color: var(--brand);
  font-size: 10.5px;
  font-weight: 900;
}

.import-tracking-panel--inline .import-tracking-form {
  margin-top: 6px;
}

.import-log-actions .import-tracking-panel--inline[open] {
  flex-basis: 100%;
}

.import-log-bulk-toolbar {
  gap: 8px;
  margin-bottom: 8px;
  padding: 8px 10px;
  font-size: 12px;
}

.import-engine-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}

.import-engine-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 20px;
  padding: 2px 5px;
  border: 1px solid rgba(100, 116, 139, .22);
  border-radius: 999px;
  background: #f8fafc;
  color: #334155;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
}

.import-engine-badge--ok {
  border-color: rgba(4, 120, 87, .22);
  background: #ecfdf5;
  color: #047857;
}

.import-engine-badge--ready,
.import-engine-badge--installed {
  border-color: rgba(180, 83, 9, .2);
  background: #fffbeb;
  color: #92400e;
}

.import-engine-badge--missing {
  border-color: rgba(185, 28, 28, .2);
  background: #fef2f2;
  color: #991b1b;
}

.import-price-cell {
  display: grid;
  gap: 2px;
  align-content: center;
}

.import-price-cell strong {
  font-size: .78rem;
}

.import-price-cell span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.import-price-delta {
  padding: 5px 6px;
  border: 1px solid rgba(100, 116, 139, .16);
  border-radius: 8px;
  background: #f8fafc;
}

.import-price-delta--positive {
  border-color: rgba(4, 120, 87, .22);
  background: #ecfdf5;
}

.import-price-delta--negative {
  border-color: rgba(185, 28, 28, .2);
  background: #fef2f2;
}

.import-price-delta--positive strong {
  color: #047857;
}

.import-price-delta--negative strong {
  color: #b91c1c;
}

.import-price-delta--neutral strong {
  color: var(--muted);
}

.import-warning-stack {
  display: grid;
  gap: 5px;
  margin-top: 5px;
}

.import-source-status {
  display: inline-flex;
  width: fit-content;
  min-height: 20px;
  align-items: center;
  padding: 2px 6px;
  border: 1px solid rgba(100, 116, 139, .22);
  border-radius: 999px;
  background: #f8fafc;
  color: #334155;
  font-size: 10px;
  font-weight: 900;
}

.import-source-status--in_stock,
.import-source-status--likely_in_stock,
.import-source-status--limited {
  border-color: rgba(4, 120, 87, .22);
  background: #ecfdf5;
  color: #047857;
}

.import-source-status--out_of_stock,
.import-source-status--likely_out_of_stock,
.import-source-status--discontinued,
.import-source-status--not_found,
.import-source-status--source_blocked {
  border-color: rgba(185, 28, 28, .20);
  background: #fef2f2;
  color: #b91c1c;
}

.import-source-status--preorder,
.import-source-status--backorder {
  border-color: rgba(180, 83, 9, .22);
  background: #fffbeb;
  color: #b45309;
}

.import-tracking-summary {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.import-tracking-summary--compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 0;
}

.import-tracking-summary span,
.import-tracking-summary a {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.import-tracking-summary--compact a {
  min-height: 54px;
  padding: 8px;
  font-size: 11px;
}

.import-tracking-summary a:hover {
  border-color: rgba(14, 116, 144, .35);
  box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
  transform: translateY(-1px);
}

.import-tracking-summary a.is-active {
  border-color: rgba(14, 116, 144, .42);
  background: #ecfeff;
  color: #155e75;
}

.import-tracking-summary strong {
  color: var(--text);
  font-size: 20px;
}

.import-tracking-summary--compact strong {
  font-size: 16px;
}

.import-engine-overview {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(14, 116, 144, .18);
  border-radius: 8px;
  background: #ecfeff;
}

.import-engine-overview > strong {
  color: #155e75;
  font-size: .95rem;
}

.import-price-change {
  color: #b45309;
  font-weight: 900;
}

.import-tracking-warning {
  display: block;
  max-width: 100%;
  padding: 3px 6px;
  border-radius: 8px;
  background: #fffbeb;
  color: #92400e;
  overflow-wrap: anywhere;
  font-weight: 900;
  font-size: 10px;
}

.import-tracking-warning--danger {
  background: #fef2f2;
  color: #991b1b;
}

.import-tracking-warning--ok {
  background: #ecfdf5;
  color: #047857;
}

.egg-engine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.egg-engine-card {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.egg-engine-card--active {
  border-color: rgba(4, 120, 87, .24);
  background: #f0fdf4;
}

.egg-engine-card--ready {
  border-color: rgba(180, 83, 9, .24);
  background: #fffbeb;
}

.egg-engine-card--missing {
  border-color: rgba(185, 28, 28, .2);
  background: #fef2f2;
}

.egg-engine-card strong {
  color: var(--text);
  overflow-wrap: anywhere;
}

.egg-engine-card span {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.egg-engine-card small {
  color: var(--muted);
  font-weight: 800;
}

.egg-engine-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.7;
}

.egg-engine-card.is-ready span {
  background: #ecfdf5;
  color: #047857;
}

.egg-engine-card.is-active span {
  background: #dcfce7;
  color: #166534;
}

.egg-engine-card.is-missing span {
  background: #fef2f2;
  color: #991b1b;
}

.egg-capability-list {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.egg-capability-list li {
  position: relative;
  padding-inline-start: 14px;
  color: var(--text);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.55;
}

.egg-capability-list li::before {
  position: absolute;
  inset-inline-start: 0;
  top: .7em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
  content: "";
}

.egg-runtime-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.egg-runtime-actions a {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 4px 9px;
  border: 1px solid rgba(15, 118, 110, .18);
  border-radius: 999px;
  background: #fff;
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.affiliate-click-row small {
  color: var(--muted);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.import-tracking-panel-wrap {
  grid-column: 1 / -1;
}

.import-tracking-panel {
  border: 1px solid rgba(15, 23, 42, .09);
  border-radius: 8px;
  background: #f8fafc;
}

.import-tracking-panel summary {
  min-height: 38px;
  padding: 9px 12px;
  cursor: pointer;
  color: var(--brand);
  font-weight: 900;
}

.import-tracking-form {
  display: grid;
  grid-template-columns: minmax(160px, .8fr) minmax(160px, .8fr) minmax(190px, 1fr) auto;
  gap: 10px;
  align-items: end;
  padding: 0 12px 12px;
}

.import-tracking-form label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.import-tracking-form .check-option {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}

.import-tracking-form input,
.import-tracking-form select {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.import-tracking-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.import-log-actions .import-tracking-panel--inline {
  border: 0;
  background: transparent;
  min-width: 150px;
}

.import-log-actions .import-tracking-panel--inline > summary {
  display: flex;
  min-height: 25px;
  align-items: center;
  justify-content: center;
  padding: 0 7px;
  border: 1px solid rgba(15, 118, 110, .18);
  border-radius: 8px;
  background: var(--surface);
  color: var(--brand);
  font-size: 10.5px;
}

.import-log-actions .import-tracking-panel--inline .import-tracking-form {
  grid-template-columns: repeat(3, minmax(150px, 1fr)) auto;
  gap: 6px;
  margin-top: 6px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.import-log-actions .import-tracking-panel--inline .import-tracking-form label {
  font-size: 10.5px;
}

.import-log-actions .import-tracking-panel--inline .import-tracking-form input,
.import-log-actions .import-tracking-panel--inline .import-tracking-form select {
  min-height: 28px;
  font-size: 11px;
}

.import-log-actions .import-tracking-panel--inline .import-tracking-actions {
  align-self: end;
}

.admin-row--return {
  grid-template-columns: 1fr .9fr 1.1fr 1fr minmax(260px, 1.5fr);
}

.inline-form {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.inline-form--return {
  grid-template-columns: minmax(120px, .9fr) minmax(140px, 1.2fr) auto;
}

.inline-form button {
  min-height: 42px;
  border: 1px solid var(--brand);
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

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

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

.field-stack {
  display: grid;
  gap: 6px;
}

.field-label {
  font-weight: 800;
}

.product-admin-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 12px;
  align-items: end;
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.product-admin-row > div:first-of-type {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.product-admin-row span,
.detail-list span {
  color: var(--muted);
  font-size: 13px;
}

.product-admin-row textarea,
.product-editor--new textarea {
  min-height: 86px;
}

.product-admin-row .field--wide {
  grid-column: span 2;
}

.product-admin-row button {
  min-height: 44px;
  border: 1px solid var(--brand);
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

[data-save-form].is-saving,
.inline-form.is-saving,
.product-admin-row.is-saving,
.admin-filter.is-saving {
  opacity: .72;
}

[data-save-form].is-saving button,
.inline-form.is-saving button,
.product-admin-row.is-saving button,
.admin-filter.is-saving button {
  cursor: wait;
}

[data-save-form] button:disabled,
.inline-form button:disabled,
.product-admin-row button:disabled,
.admin-filter button:disabled {
  opacity: .8;
}

.text-link {
  color: var(--brand);
  font-weight: 900;
}

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

.product-form-grid--stack {
  grid-template-columns: 1fr;
}

.category-picker {
  max-height: 360px;
  margin-top: 8px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.category-picker__head {
  position: sticky;
  top: -10px;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin: -10px -10px 10px;
  padding: 10px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
}

.category-picker__head > strong {
  font-weight: 900;
}

.category-picker__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.category-picker__search {
  grid-column: 1 / -1;
  display: grid;
  gap: 5px;
  margin: 0;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 900;
}

.category-picker__search input {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
}

.category-picker ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.category-picker li ul {
  margin: 6px 0 0;
  padding-inline-start: 24px;
  border-inline-start: 2px solid rgba(15, 118, 110, .12);
}

.category-picker__group {
  border-radius: 8px;
}

.category-picker__summary {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 6px;
  align-items: center;
  list-style: none;
  cursor: pointer;
}

.category-picker__summary::-webkit-details-marker {
  display: none;
}

.category-picker__caret {
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  position: relative;
}

.category-picker__caret::before,
.category-picker__caret::after {
  content: "";
  position: absolute;
  inset-inline-start: 50%;
  top: 50%;
  width: 10px;
  height: 2px;
  border-radius: 999px;
  background: var(--brand);
  transform: translate(-50%, -50%);
}

.category-picker__caret::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: opacity .16s ease;
}

.category-picker__group[open] > .category-picker__summary .category-picker__caret::after {
  opacity: 0;
}

.category-check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 7px 8px;
  border-radius: 7px;
  background: var(--surface);
  font-weight: 900;
}

.category-check--group {
  min-width: 0;
}

.category-check:hover,
.category-picker__summary:hover .category-check {
  background: rgba(15, 118, 110, .08);
}

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

.category-check small {
  margin-inline-start: auto;
  color: var(--brand);
}

.category-picker__node.is-filter-hidden {
  display: none;
}

.category-admin-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr)) auto;
  gap: 12px;
  align-items: end;
}

.category-admin-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.25fr) repeat(4, minmax(120px, 1fr)) auto;
  gap: 12px;
  align-items: end;
}

.category-admin-form label,
.category-admin-row label {
  margin: 0;
}

.category-admin-list {
  display: grid;
  gap: 2px;
}

.category-admin-card {
  display: grid;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.category-bulk-toolbar {
  margin-bottom: 8px;
}

.category-bulk-check {
  justify-self: start;
}

.category-admin-title {
  display: grid;
  gap: 4px;
  align-self: center;
}

.category-admin-title--depth-1 { padding-inline-start: 18px; }
.category-admin-title--depth-2 { padding-inline-start: 36px; }
.category-admin-title--depth-3 { padding-inline-start: 54px; }
.category-admin-title--depth-4 { padding-inline-start: 72px; }
.category-admin-title--depth-5 { padding-inline-start: 90px; }
.category-admin-title--depth-6 { padding-inline-start: 108px; }

.category-admin-title strong {
  color: var(--ink);
}

.category-admin-title span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.category-admin-title a {
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.category-admin-title a:hover,
.category-admin-title a:focus-visible {
  text-decoration: underline;
}

.category-admin-delete {
  justify-self: end;
}

.category-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 12px;
}

.category-detail-grid div {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.category-detail-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.category-detail-grid strong {
  color: var(--ink);
  font-size: 15px;
  overflow-wrap: anywhere;
}

.category-detail-grid a {
  color: var(--brand);
  text-decoration: none;
}

.category-detail-grid a:hover,
.category-detail-grid a:focus-visible {
  text-decoration: underline;
}

.category-child-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 10px;
}

.category-child-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}

.category-child-links a:hover,
.category-child-links a:focus-visible {
  border-color: rgba(12, 74, 110, .32);
  color: var(--brand);
}

.category-child-links span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.category-child-links strong {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
}

.segmented-control {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.segmented-control label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 10px;
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
}

.segmented-control input {
  width: auto;
  margin: 0 0 0 8px;
}

.seller-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 14px;
  border: 1px dashed rgba(15, 118, 110, .24);
  border-radius: 8px;
  background: var(--surface);
}

.seller-fields[hidden] {
  display: none;
}

.management-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.management-shell--import-log {
  grid-template-columns: minmax(0, 1fr);
}

.import-log-controlbar {
  position: sticky;
  top: 92px;
  z-index: 38;
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 14px 34px rgba(22, 33, 31, .08);
  backdrop-filter: blur(12px);
}

.import-log-search {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 8px;
  align-items: end;
  flex: 1 1 420px;
  min-width: 280px;
}

.import-log-search label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.import-log-search input {
  min-height: 36px;
  padding: 8px 10px;
  font-size: 13px;
}

.import-log-menu {
  position: relative;
  flex: 0 0 auto;
}

.import-log-menu > summary {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 11px;
  border: 1px solid rgba(15, 118, 110, .18);
  border-radius: 8px;
  background: var(--surface);
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
}

.import-log-menu > summary::-webkit-details-marker {
  display: none;
}

.import-log-menu > summary::after {
  content: "v";
  color: var(--muted);
  font-size: 10px;
  transition: transform .18s ease;
}

.import-log-menu[open] > summary::after {
  transform: rotate(180deg);
}

.import-log-menu__dropdown {
  position: absolute;
  inset-block-start: calc(100% + 8px);
  inset-inline-start: 0;
  z-index: 50;
  display: grid;
  min-width: 230px;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 22px 54px rgba(22, 33, 31, .16);
}

.import-log-menu__dropdown--wide {
  width: min(640px, calc(100vw - 32px));
}

.import-log-menu__dropdown--category {
  width: min(420px, calc(100vw - 32px));
  max-height: min(68vh, 560px);
  overflow: auto;
}

.import-log-category-tree {
  min-width: 260px;
}

.import-log-category-tree ul {
  margin: 4px 0 0;
  padding-inline-start: 12px;
}

.import-log-category-tree .category-tree__item {
  min-height: 30px;
  padding: 5px 8px;
  font-size: 11.5px;
}

.import-log-category-tree .category-tree__item strong {
  font-size: 10px;
}

.import-log-menu__dropdown a {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 9px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.import-log-menu__dropdown a:hover,
.import-log-menu__dropdown a.is-active {
  background: var(--surface);
  color: var(--brand);
}

.import-log-active-filter {
  margin: -4px 0 0;
}

.management-nav {
  position: sticky;
  top: 160px;
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.management-nav__label {
  padding: 4px 10px 8px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.management-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--muted);
  font-weight: 900;
}

.management-nav a.is-active,
.management-nav a:hover {
  border-color: rgba(15, 118, 110, .18);
  background: var(--surface);
  color: var(--brand);
}

.management-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
}

.external-import-form {
  grid-template-columns: minmax(260px, 1fr) auto;
}

.import-preview-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.import-preview-card__media {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.import-preview-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.import-preview-card span,
.import-preview-card small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.import-preview-card h2 {
  margin: 4px 0 8px;
  font-size: 22px;
}

.import-preview-card p {
  margin: 0;
  color: var(--muted);
}

.import-preview-card__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
}

.import-preview-card__stats strong,
.import-preview-card__stats small {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.import-preview-card__details {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.import-preview-card__details span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid rgba(15, 118, 110, .14);
  border-radius: 999px;
  background: #f8fbfa;
  color: #0f3f3a;
  font-size: 12px;
  font-weight: 900;
}

.import-image-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.import-image-strip img {
  flex: 0 0 auto;
  width: 82px;
  height: 82px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: contain;
  background: #fff;
}

.import-image-picker {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(15, 118, 110, .16);
  border-radius: 8px;
  background: #f8fbfa;
}

.import-image-picker__head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
}

.import-image-picker__head h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.import-image-picker__head p {
  margin: 0;
}

.import-image-picker__head strong {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid rgba(15, 118, 110, .16);
  border-radius: 8px;
  background: #fff;
  color: #0f3f3a;
  font-size: 12px;
}

.import-image-picker__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(136px, 1fr));
  gap: 10px;
}

.import-image-option {
  display: grid;
  gap: 10px;
  align-content: start;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.import-image-option img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: contain;
  background: #fff;
}

.import-image-option__preview {
  display: block;
  border-radius: 8px;
  outline: 0;
}

.import-image-option__preview:focus-visible img,
.import-image-option__preview:hover img {
  border-color: rgba(15, 118, 110, .42);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .1);
}

.import-image-option__controls {
  display: grid;
  gap: 6px;
  font-size: 12px;
}

.import-image-option__controls .check-row {
  gap: 6px;
  line-height: 1.4;
}

.import-image-option__open {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border: 1px solid rgba(15, 118, 110, .16);
  border-radius: 8px;
  background: #f8fbfa;
  color: var(--brand);
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.import-image-option__open:hover,
.import-image-option__open:focus-visible {
  border-color: rgba(15, 118, 110, .34);
  background: #eef8f5;
}

.management-stack {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.product-workbench {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.product-workbench__header,
.product-workbench__section,
.product-workbench__actions {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.product-workbench__header {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 18px;
}

.product-workbench__header h2 {
  margin: 2px 0 0;
  font-size: 24px;
}

.product-workbench__header span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

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

.product-editor-main,
.product-editor-side {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.product-editor-side {
  position: sticky;
  top: 160px;
}

.product-workbench__section {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.product-workbench__section h2,
.management-panel h2 {
  margin: 0;
}

.product-workbench__section-title {
  display: flex;
  gap: 10px;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.product-workbench__section-title span {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 8px;
  background: var(--surface);
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
}

.product-workbench__section-title h2 {
  font-size: 18px;
}

.product-workbench textarea {
  min-height: 130px;
}

.product-options-editor {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.product-variant-editor {
  display: grid;
  gap: 14px;
}

.product-variant-editor__head {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(15, 118, 110, .14);
  border-radius: 8px;
  background: linear-gradient(135deg, #f0fdfa, #fff 76%);
}

.product-variant-editor__head h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.product-variant-editor__head .muted-note {
  max-width: 760px;
}

.product-variant-editor__groups {
  display: grid;
  gap: 12px;
}

.product-variant-editor-group {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.product-variant-editor-group > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.product-variant-values {
  display: grid;
  gap: 10px;
}

.product-variant-value {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  align-items: end;
  padding: 10px;
  border: 1px solid rgba(15, 118, 110, .12);
  border-radius: 8px;
  background: var(--surface);
}

.product-variant-value label,
.product-variant-editor-group label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.product-variant-editor-group:not(.is-image-mode) .product-variant-value__image {
  display: none;
}

.product-variant-editor__image-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(15, 118, 110, .16);
  border-radius: 999px;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.product-option-editor {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.product-option-editor label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.product-option-editor__toggle {
  min-height: 34px;
  align-items: center;
  color: var(--ink) !important;
}

.product-option-editor textarea {
  min-height: 92px;
  resize: vertical;
}

.product-image-studio {
  display: grid;
  gap: 12px;
  margin-top: 4px;
  padding: 14px;
  border: 1px dashed rgba(15, 118, 110, .32);
  border-radius: 8px;
  background: linear-gradient(135deg, #f0fdfa, #fff 72%);
}

.product-image-studio h3 {
  margin: 0 0 4px;
  font-size: 17px;
}

.product-image-studio .muted-note {
  max-width: 760px;
}

.image-studio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  align-items: end;
}

.image-studio-grid label {
  display: grid;
  gap: 6px;
  min-height: 74px;
  align-content: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  font-weight: 900;
}

.image-studio-grid input[type="range"] {
  width: 100%;
  accent-color: var(--brand);
}

.image-studio-grid input[type="color"] {
  width: 100%;
  height: 38px;
  padding: 3px;
}

.image-studio-grid select {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.image-studio-grid .check-row {
  min-height: 74px;
}

.image-studio-grid .button {
  min-height: 44px;
}

.image-studio-analysis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.image-studio-analysis span {
  display: block;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(15, 118, 110, .16);
  border-radius: 8px;
  background: #fff;
  color: #0f3f3a;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.image-studio-status {
  display: block;
  padding: 10px 12px;
  border: 1px solid rgba(15, 118, 110, .18);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-weight: 900;
}

.image-studio-status[data-status="ready"] {
  border-color: rgba(125, 187, 47, .35);
  background: #f7fee7;
  color: #3f6212;
}

.image-studio-status[data-status="error"] {
  border-color: rgba(190, 18, 60, .22);
  background: #fff1f2;
  color: #be123c;
}

.product-image-studio canvas {
  width: 100%;
  max-height: 430px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  object-fit: contain;
}

.product-workbench__actions,
.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.product-workbench__actions {
  justify-content: flex-end;
  padding: 14px;
}

.button--danger {
  border-color: rgba(190, 18, 60, .22);
  background: #fff1f2;
  color: #be123c;
}

.button--danger:hover {
  border-color: rgba(190, 18, 60, .38);
  background: #ffe4e6;
}

.product-delete-form {
  display: inline-flex;
  margin: 0;
}

.product-bulk-toolbar,
.category-bulk-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.product-bulk-check,
.product-select-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 900;
}

.product-bulk-check input,
.product-select-cell input {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
}

.product-bulk-toolbar .button[disabled],
.category-bulk-toolbar .button[disabled] {
  opacity: .55;
  cursor: not-allowed;
}

.status-badge--trash {
  border-color: rgba(190, 18, 60, .22);
  background: #fff1f2;
  color: #be123c;
}

.product-list-table {
  display: grid;
  gap: 10px;
}

.product-list-row {
  display: grid;
  grid-template-columns: 74px minmax(180px, 1.5fr) minmax(120px, .8fr) minmax(120px, .8fr) minmax(110px, .7fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.product-list-row--selectable {
  grid-template-columns: 32px 74px minmax(180px, 1.5fr) minmax(120px, .8fr) minmax(120px, .8fr) minmax(110px, .7fr) auto;
}

.product-select-cell {
  justify-content: center;
}

.product-list-row img,
.product-list-row__placeholder {
  width: 74px;
  height: 74px;
  border-radius: 8px;
  object-fit: contain;
  background: #fff;
}

.product-list-row__placeholder {
  display: grid;
  place-items: center;
  color: var(--brand);
  font-weight: 900;
}

.product-list-row span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 3px 10px;
  border: 1px solid rgba(15, 118, 110, .18);
  border-radius: 999px;
  background: var(--surface);
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
}

.status-badge--draft {
  border-color: rgba(100, 116, 139, .22);
  background: #f8fafc;
  color: #475569;
}

.status-badge--pending {
  border-color: rgba(180, 83, 9, .22);
  background: #fffbeb;
  color: #b45309;
}

.status-badge--private {
  border-color: rgba(79, 70, 229, .22);
  background: #eef2ff;
  color: #4f46e5;
}

.status-badge--not-shipped,
.status-badge--preparing,
.status-badge--ready {
  border-color: rgba(180, 83, 9, .22);
  background: #fffbeb;
  color: #b45309;
}

.status-badge--shipped,
.status-badge--out-for-delivery {
  border-color: rgba(79, 70, 229, .22);
  background: #eef2ff;
  color: #4f46e5;
}

.status-badge--delivered {
  border-color: rgba(15, 118, 110, .24);
  background: #f0fdfa;
  color: var(--brand);
}

.status-badge--delivery-failed,
.status-badge--returned {
  border-color: rgba(190, 18, 60, .22);
  background: #fff1f2;
  color: #be123c;
}

.status-badge--return-new,
.status-badge--return-reviewing {
  border-color: rgba(180, 83, 9, .22);
  background: #fffbeb;
  color: #b45309;
}

.status-badge--return-approved,
.status-badge--return-received {
  border-color: rgba(79, 70, 229, .22);
  background: #eef2ff;
  color: #4f46e5;
}

.status-badge--return-refunded {
  border-color: rgba(15, 118, 110, .24);
  background: #f0fdfa;
  color: var(--brand);
}

.status-badge--return-rejected,
.status-badge--return-cancelled {
  border-color: rgba(190, 18, 60, .22);
  background: #fff1f2;
  color: #be123c;
}

.status-badge--ticket-open {
  border-color: rgba(180, 83, 9, .22);
  background: #fffbeb;
  color: #b45309;
}

.status-badge--ticket-working {
  border-color: rgba(79, 70, 229, .22);
  background: #eef2ff;
  color: #4f46e5;
}

.status-badge--ticket-closed {
  border-color: rgba(15, 118, 110, .24);
  background: #f0fdfa;
  color: var(--brand);
}

.order-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 24px;
  align-items: start;
}

.ticket-detail-layout {
  grid-template-columns: minmax(0, 1fr) 360px;
}

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

.detail-list div,
.order-total {
  display: grid;
  gap: 4px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.order-total {
  grid-template-columns: 1fr auto;
  align-items: center;
  margin: 16px 0;
}

.ticket-message {
  padding: 14px;
  border: 1px solid rgba(15, 118, 110, .16);
  border-radius: 8px;
  background: #f8fffd;
}

.ticket-message strong {
  white-space: pre-wrap;
  line-height: 1.8;
}

.detail-list a,
.admin-row a,
.order-card__head a,
.order-card__meta a {
  color: var(--brand);
  font-weight: 900;
  text-decoration: none;
}

.detail-list a:hover,
.detail-list a:focus-visible,
.admin-row a:hover,
.admin-row a:focus-visible,
.order-card__head a:hover,
.order-card__head a:focus-visible,
.order-card__meta a:hover,
.order-card__meta a:focus-visible {
  text-decoration: underline;
}

.admin-row small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.site-footer {
  padding: 36px 0 30px;
  background: #111c1a;
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(160px, .7fr) minmax(180px, .8fr);
  gap: 28px;
  align-items: start;
}

.footer-grid h3,
.footer-grid h4,
.footer-grid p {
  margin-top: 0;
}

.footer-brand p {
  max-width: 520px;
  color: rgba(255, 255, 255, .72);
}

.footer-links {
  display: grid;
  gap: 6px;
}

.footer-grid a {
  display: flex;
  min-height: 32px;
  align-items: center;
  color: rgba(255, 255, 255, .78);
}

.footer-email {
  width: fit-content;
  margin-top: 10px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
}

.footer-grid a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  min-height: 44px;
  align-items: end;
  justify-content: center;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .68);
  font-size: 13px;
  font-weight: 800;
}

@media (max-width: 980px) {
  .cart-page,
  .checkout-layout,
  .auth-grid,
  .account-layout,
  .wallet-layout,
  .account-panel,
  .support-layout,
  .seller-dashboard-hero__inner,
  .seller-dashboard .admin-layout,
  .store-hero__inner,
  .store-layout,
  .product-reviews-layout,
  .order-detail-layout,
  .product-detail,
  .shop-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .account-summary--customer {
    grid-template-columns: 1fr;
  }

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

  .account-summary__actions .button {
    width: 100%;
    min-height: 42px;
    padding-inline: 10px;
  }

  .account-layout--profile .customer-card--account {
    order: -1;
  }

  .checkout-layout--professional {
    gap: 18px;
  }

  .checkout-layout--professional .order-summary {
    position: static;
  }

  .checkout-fields {
    grid-template-columns: 1fr;
  }

  .product-shipping-rule {
    grid-template-columns: 1fr;
  }

  .category-admin-form,
  .category-admin-row,
  .category-detail-grid,
  .category-child-links {
    grid-template-columns: 1fr;
  }

  .category-admin-delete {
    justify-self: stretch;
  }

  .category-admin-delete .button {
    width: 100%;
  }

  .seller-dashboard-hero {
    padding-top: 24px;
  }

  .seller-dashboard-hero__copy,
  .seller-dashboard-hero__summary {
    margin-bottom: 0;
    padding-bottom: 22px;
  }

  .seller-dashboard-hero h1 {
    font-size: 30px;
  }

  .seller-dashboard-hero__summary {
    align-self: stretch;
  }

  .seller-dashboard-actions {
    grid-template-columns: 1fr;
  }

  .store-marketing-card {
    grid-template-columns: 1fr;
  }

  .store-marketing-card .button,
  .store-contact-card .button {
    width: 100%;
  }

  body.is-mobile-menu-open {
    overflow: hidden;
  }

  .topbar {
    display: none;
  }

  .site-footer {
    padding: 28px 0 22px;
  }

  .footer-grid {
    gap: 14px;
  }

  .footer-brand,
  .footer-links {
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
    background: rgba(255, 255, 255, .04);
  }

  .footer-brand p {
    margin-bottom: 10px;
  }

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

  .footer-links h4 {
    grid-column: 1 / -1;
  }

  .footer-grid a {
    min-height: 40px;
    padding: 0 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .05);
  }

  .footer-email {
    width: 100%;
    justify-content: center;
  }

  .footer-bottom {
    margin-top: 16px;
    padding-top: 14px;
    text-align: center;
  }

  .header-main {
    display: grid;
    min-height: auto;
    grid-template-columns: 44px minmax(96px, 1fr) auto;
    grid-template-areas:
      "menu brand cart"
      "search search search";
    gap: 10px;
    align-items: center;
    padding-block: 10px 12px;
  }

  .mobile-menu-toggle {
    grid-area: menu;
    display: inline-flex;
    height: 42px;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    font-weight: 900;
    cursor: pointer;
  }

  .mobile-menu-toggle span {
    font-size: 21px;
    line-height: 1;
  }

  .mobile-menu-toggle b {
    display: none;
  }

  .brand {
    grid-area: brand;
  }

  .brand img {
    width: 118px;
  }

  .mobile-cart-link {
    grid-area: cart;
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    font-size: 13px;
    font-weight: 900;
  }

  .mobile-cart-link span {
    display: inline-grid;
    min-width: 22px;
    height: 22px;
    place-items: center;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 12px;
  }

  .header-search {
    grid-area: search;
    width: 100%;
    border-width: 2px;
    border-color: var(--accent);
  }

  .header-search button {
    background: var(--accent);
  }

  .header-tools,
  .main-nav {
    display: none;
  }

  .main-nav__inner {
    min-height: auto;
    padding-block: 8px;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: thin;
  }

  .main-nav__dropdown {
    position: fixed;
    inset-block-start: 190px;
    inset-inline: 16px;
    width: auto;
    max-height: calc(100vh - 220px);
  }

  .category-tree--nav > ul {
    grid-template-columns: 1fr;
  }

  .header-search {
    width: 100%;
  }

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

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

  .admin-analytics-grid,
  .admin-analytics-summary {
    grid-template-columns: 1fr;
  }

  .admin-analytics-row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .admin-analytics-metrics {
    justify-content: flex-start;
  }

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

  .import-log-row.admin-row--compact {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .import-log-row:not(.import-log-row--head) .import-log-product-cell,
  .import-log-row:not(.import-log-row--head) > div:nth-of-type(2),
  .import-log-row:not(.import-log-row--head) > div:nth-of-type(3),
  .import-log-row:not(.import-log-row--head) > .import-price-cell:nth-of-type(4),
  .import-log-row:not(.import-log-row--head) > .import-price-cell:nth-of-type(5),
  .import-log-row:not(.import-log-row--head) > .import-price-delta,
  .import-log-row:not(.import-log-row--head) > div:nth-of-type(7),
  .import-log-row:not(.import-log-row--head) > .row-actions,
  .import-price-update-form,
  .import-log-delete-form,
  .import-tracking-panel-wrap {
    grid-column: auto;
    grid-row: auto;
  }

  .import-log-row:not(.import-log-row--head) > .import-price-cell:nth-of-type(5) {
    padding-bottom: 0;
  }

  .import-price-update-form {
    align-self: stretch;
  }

  .import-log-actions {
    align-items: stretch;
  }

  .import-log-actions > .button,
  .import-log-actions .import-log-delete-form,
  .import-log-actions .import-tracking-panel {
    flex: 1 1 100%;
    min-width: 0;
  }

  .import-log-actions .import-tracking-panel--inline .import-tracking-form {
    grid-template-columns: 1fr;
  }

  .import-log-row--head {
    display: none;
  }

  .admin-actions {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 8px;
    scrollbar-width: thin;
  }

  .admin-actions .button {
    flex: 0 0 auto;
    white-space: nowrap;
  }

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

  .admin-filter,
  .import-tracking-summary,
  .import-tracking-form,
  .auth-form-grid,
  .seller-fields,
  .management-shell,
  .product-editor-layout,
  .product-form-grid,
  .image-studio-grid,
  .image-studio-analysis,
  .external-import-form,
  .import-preview-card,
  .coupon-form,
  .product-list-row,
  .shipping-rate-row,
  .tracking-form,
  .order-item-line,
  .order-detail-item,
  .external-request-row,
  .product-admin-row,
  .product-editor--new,
  .wallet-admin-summary,
  .wallet-row {
    grid-template-columns: 1fr;
  }

  .management-nav {
    position: static;
  }

  .import-log-controlbar {
    position: static;
    align-items: stretch;
  }

  .import-log-search {
    grid-template-columns: 1fr;
    flex-basis: 100%;
    min-width: 0;
  }

  .import-log-menu,
  .import-log-controlbar > .button {
    width: 100%;
  }

  .import-log-menu > summary,
  .import-log-controlbar > .button {
    width: 100%;
    justify-content: space-between;
  }

  .import-log-menu__dropdown {
    position: static;
    width: 100%;
    min-width: 0;
    margin-top: 6px;
    box-shadow: none;
  }

  .product-editor-side {
    position: static;
  }

  .wallet-transfer-form {
    position: static;
  }

  .wallet-statement__head {
    display: none;
  }

  .wallet-statement__row {
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
    padding: 14px;
  }

  .wallet-statement__details,
  .wallet-statement__reference,
  .wallet-statement__row time {
    grid-column: 1 / -1;
  }

  .wallet-statement__amount,
  .wallet-statement__balance {
    text-align: start;
  }

  .wallet-statement__amount::before,
  .wallet-statement__balance::before {
    display: block;
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
  }

  .wallet-statement__amount--debit::before {
    content: "مدين";
  }

  .wallet-statement__amount--credit::before {
    content: "دائن";
  }

  .wallet-statement__balance::before {
    content: "الرصيد";
  }

  .wallet-mini-stats {
    grid-template-columns: 1fr;
  }

  .product-list-row img,
  .product-list-row__placeholder {
    width: 100%;
    height: 140px;
  }

  .product-bulk-toolbar {
    align-items: stretch;
  }

  .product-bulk-toolbar .button {
    width: 100%;
  }

  .product-select-cell {
    justify-content: flex-start;
  }

  .product-admin-row .field--wide,
  .field--wide {
    grid-column: 1 / -1;
  }

  .vendor-panel {
    grid-template-columns: 1fr;
  }

  body.is-shop-filter-open {
    overflow: hidden;
  }

  .shop-filter-toggle {
    display: inline-flex;
    grid-column: 1 / -1;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 16px;
    border: 1px solid var(--brand);
    border-radius: 8px;
    background: var(--brand);
    color: #fff;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
  }

  .shop-filter-toggle::before {
    content: "";
    width: 16px;
    height: 12px;
    border-block: 2px solid currentColor;
    box-shadow: 0 5px 0 currentColor;
  }

  .shop-filter-backdrop:not([hidden]) {
    position: fixed;
    inset: 0;
    z-index: 1080;
    display: block;
    background: rgba(15, 23, 42, .42);
  }

  .filters {
    position: fixed;
    inset-block: 0;
    right: 0;
    left: auto;
    z-index: 1090;
    width: min(90vw, 380px);
    max-width: 380px;
    height: 100dvh;
    align-content: start;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-width: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: -18px 0 44px rgba(15, 23, 42, .18);
    opacity: 0;
    visibility: hidden;
    transform: translateX(110%);
    transition: transform .22s ease, opacity .22s ease, visibility .22s ease;
  }

  .filters.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
  }

  .filter-close {
    display: inline-grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(1180px, calc(100% - 20px));
  }

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

  .product-card__media img {
    padding: 8px;
  }

  .product-card__body {
    gap: 6px;
    padding: 10px;
  }

  .product-card__title {
    min-height: 44px;
    font-size: 13px;
    line-height: 1.35;
  }

  .product-card__meta {
    font-size: 11px;
    line-height: 1.45;
  }

  .product-rating-mini {
    gap: 4px;
    font-size: 11px;
  }

  .product-card__row {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .product-card .price {
    font-size: 14px;
  }

  .product-card .mini-actions {
    justify-content: space-between;
    gap: 6px;
  }

  .product-card .icon-button {
    width: 34px;
    height: 34px;
    font-size: 18px;
  }

  .product-card .icon-button--text {
    width: 40px;
    font-size: 11px;
  }

  .hero-search {
    flex-direction: column;
  }

  .hero-search input,
  .hero-search button {
    width: 100%;
  }

  .cart-item {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }

  .cart-item img {
    width: 72px;
    height: 72px;
  }

  .cart-store-card {
    padding: 12px;
  }

  .cart-store-card__head,
  .cart-store-card__foot,
  .cart-summary__head,
  .cart-summary-store-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .cart-item__details {
    min-width: 0;
  }

  .cart-item__price,
  .quantity-stepper,
  .cart-item__total {
    grid-column: 1 / -1;
  }

  .cart-item__price,
  .cart-item__total {
    display: flex;
    justify-content: space-between;
    padding-top: 8px;
    border-top: 1px solid var(--line);
  }

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

  .quantity-stepper input {
    width: 100%;
  }

  .cart-page .order-summary {
    position: static;
  }

  .cart-table__head {
    min-height: 42px;
  }

  .cart-summary-actions {
    grid-template-columns: 1fr;
  }

  .cart-sync-badge {
    align-items: stretch;
    flex-direction: column;
  }

  .coupon-entry {
    grid-template-columns: 1fr;
  }

  .checkout-panel {
    padding: 14px;
  }

  .checkout-panel__head {
    gap: 10px;
  }

  .checkout-panel__head > span {
    flex-basis: 32px;
    width: 32px;
    height: 32px;
  }

  .shipping-store-group__head,
  .checkout-summary-store header,
  .checkout-summary-shipping,
  .checkout-summary-totals p {
    align-items: flex-start;
    flex-direction: column;
  }

  .shipping-store-item,
  .checkout-summary-item {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .shipping-store-item b,
  .checkout-summary-item b {
    grid-column: 2 / -1;
  }

  .saved-product {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .bundle-offer__header,
  .bundle-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .bundle-total {
    text-align: right;
  }

  .saved-product__actions {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .saved-product__actions .button,
  .compare-card__actions .button,
  .section-head--inline {
    width: 100%;
  }

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

  .header-tools a,
  .main-nav__inner > a,
  .main-nav__categories > summary {
    min-height: 38px;
    padding-inline: 10px;
  }

  .admin-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .product-main-media {
    min-height: 280px;
  }

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

  .tracking-panel header,
  .tracking-facts {
    align-items: stretch;
    flex-direction: column;
  }
}

/* SouqTec visual identity and mobile commerce polish */
:root {
  --brand: #006b5f;
  --brand-dark: #004d46;
  --brand-soft: #e8f5f1;
  --accent: #d8a21b;
  --accent-dark: #a76f09;
  --signal: #e85d3f;
  --ink: #13201d;
  --muted: #66736f;
  --line: rgba(19, 32, 29, .11);
  --surface: #f4f8f6;
  --paper: #fff;
  --shadow-soft: 0 12px 32px rgba(19, 32, 29, .08);
  --shadow-strong: 0 22px 56px rgba(19, 32, 29, .14);
}

body {
  background:
    linear-gradient(180deg, rgba(232, 245, 241, .72) 0, rgba(255, 255, 255, .96) 260px),
    #fff;
}

.site-header {
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  backdrop-filter: saturate(150%) blur(10px);
  box-shadow: 0 10px 30px rgba(19, 32, 29, .07);
}

.topbar {
  background: linear-gradient(90deg, var(--brand-dark), var(--brand) 64%, var(--accent-dark));
}

.brand img {
  height: auto;
  filter: drop-shadow(0 8px 14px rgba(19, 32, 29, .08));
}

.header-search,
.hero-search {
  border-color: rgba(0, 107, 95, .22);
  box-shadow: 0 10px 24px rgba(19, 32, 29, .06);
}

.header-search:focus-within,
.hero-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(216, 162, 27, .16), var(--shadow-soft);
}

.button,
.header-search button,
.hero-search button,
.icon-button {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  border-color: transparent;
}

.button--soft,
.icon-button--soft {
  border-color: rgba(0, 107, 95, .18);
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.hero {
  min-height: 500px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .08) 0%, rgba(244, 248, 246, .68) 45%, rgba(255, 255, 255, .98) 70%),
    url("/assets/products/4168.png") left 8% center / min(40vw, 500px) auto no-repeat,
    radial-gradient(circle at 16% 35%, rgba(216, 162, 27, .18), transparent 32%),
    linear-gradient(135deg, #e7f2ee 0%, #f8faf6 100%);
}

.hero__copy span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(0, 107, 95, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  color: var(--brand-dark);
}

.hero h1 {
  max-width: 760px;
  letter-spacing: 0;
}

.main-nav {
  background: linear-gradient(180deg, #fff, #fbfdfc);
}

.main-nav__inner {
  gap: 8px;
}

.main-nav__category-menu > summary,
.main-nav__category-link {
  border-color: rgba(19, 32, 29, .06);
  background: rgba(255, 255, 255, .72);
}

.main-nav__dropdown,
.mobile-drawer:not([hidden]) {
  box-shadow: var(--shadow-strong);
}

.product-card {
  position: relative;
  border-color: rgba(19, 32, 29, .09);
  box-shadow: 0 10px 24px rgba(19, 32, 29, .045);
}

.product-card::after {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  opacity: 0;
  transition: opacity .18s ease;
}

.product-card:hover::after {
  opacity: 1;
}

.product-card__media {
  background:
    linear-gradient(180deg, #fff, #f8fbfa);
}

.product-card__title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.price,
.product-detail__price {
  color: var(--brand-dark);
}

.badge {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
}

.badge--sale {
  background: linear-gradient(135deg, var(--signal), #b9321f);
}

.site-footer {
  background:
    linear-gradient(135deg, #101b19, #062f2b 58%, #123f35);
}

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

@media (max-width: 980px) {
  body {
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  }

  .site-header {
    box-shadow: 0 8px 22px rgba(19, 32, 29, .08);
  }

  .header-main {
    grid-template-columns: 42px minmax(0, 1fr) minmax(74px, auto);
  }

  .brand {
    justify-self: center;
  }

  .brand img {
    width: 112px;
  }

  .mobile-menu-toggle,
  .mobile-cart-link {
    border-color: rgba(0, 107, 95, .16);
    box-shadow: 0 6px 16px rgba(19, 32, 29, .06);
  }

  .header-search {
    border-radius: 10px;
  }

  .header-search input {
    height: 44px;
    font-size: 14px;
  }

  .header-search button {
    width: 76px;
  }

  .mobile-drawer__head {
    background:
      linear-gradient(135deg, var(--brand-dark), var(--brand));
  }

  .mobile-drawer:not([hidden]) {
    right: 0;
    left: auto;
    width: min(92vw, 390px);
    padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    transform: translateX(0);
  }

  .mobile-drawer__links a,
  .category-tree--mobile .category-tree__item {
    min-height: 44px;
    border-color: rgba(19, 32, 29, .08);
  }

  .hero {
    min-height: auto;
    padding: 26px 0 30px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, .96)),
      url("/assets/products/4168.png") left 12px bottom 10px / min(44vw, 210px) auto no-repeat,
      linear-gradient(135deg, #e8f5f1, #fff);
  }

  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: 68vw;
    font-size: 34px;
    line-height: 1.12;
  }

  .hero p {
    max-width: 70vw;
    font-size: 15px;
    line-height: 1.65;
  }

  .hero-actions {
    max-width: 70vw;
  }

  .mobile-bottom-nav {
    position: fixed;
    inset-inline: 10px;
    inset-block-end: calc(10px + env(safe-area-inset-bottom, 0px));
    z-index: 65;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    padding: 7px;
    border: 1px solid rgba(19, 32, 29, .1);
    border-radius: 16px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 18px 42px rgba(19, 32, 29, .18);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }

  .mobile-bottom-nav a,
  .mobile-bottom-nav button {
    display: grid;
    min-width: 0;
    min-height: 46px;
    place-items: center;
    padding: 4px 2px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #30423e;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.2;
    font-family: inherit;
    text-align: center;
    cursor: pointer;
  }

  .mobile-bottom-nav a.is-active,
  .mobile-bottom-nav a:hover,
  .mobile-bottom-nav button:hover,
  .mobile-bottom-nav button[aria-expanded="true"] {
    background: var(--brand-soft);
    color: var(--brand-dark);
  }

  .mobile-bottom-nav span {
    display: inline-grid;
    min-width: 20px;
    height: 20px;
    place-items: center;
    margin-inline-start: 2px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 10px;
  }

  .site-footer {
    margin-bottom: 72px;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-block: 22px 24px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, .82), rgba(255, 255, 255, .98)),
      url("/assets/products/4168.png") left 4px bottom 18px / 152px auto no-repeat,
      linear-gradient(135deg, #e8f5f1, #fff);
  }

  .hero h1 {
    max-width: 76vw;
    font-size: 29px;
  }

  .hero p,
  .hero-actions {
    max-width: 78vw;
  }

  .hero p {
    margin-bottom: 14px;
  }

  .hero-actions .button {
    min-height: 40px;
    padding-inline: 12px;
    font-size: 12px;
  }

  .product-grid {
    gap: 9px;
  }

  .product-card {
    border-radius: 10px;
  }

  .product-card__media {
    aspect-ratio: 1 / 1.05;
  }

  .product-card__title {
    min-height: 38px;
    font-size: 12px;
  }

  .product-card__meta a:nth-child(n+3) {
    display: none;
  }

  .product-rating-mini small {
    display: none;
  }

  .mobile-bottom-nav {
    inset-inline: 8px;
    inset-block-end: 8px;
    border-radius: 14px;
  }

  .mobile-drawer:not([hidden]) {
    width: min(94vw, 360px);
    max-width: calc(100vw - 10px);
  }

  .mobile-bottom-nav a {
    min-height: 44px;
    font-size: 10px;
  }
}

/* Tasheed Misr inspired identity refresh */
:root {
  --brand: #7B1E3A;
  --brand-dark: #5A1228;
  --brand-soft: #F5EFE6;
  --accent: #C8A96E;
  --accent-dark: #9C7A42;
  --signal: #9E2F4E;
  --ink: #2A1018;
  --muted: #5C3040;
  --line: rgba(90, 18, 40, .13);
  --surface: #F5EFE6;
  --paper: #fffaf4;
  --shadow-soft: 0 14px 34px rgba(90, 18, 40, .10);
  --shadow-strong: 0 24px 62px rgba(90, 18, 40, .18);
}

body {
  background:
    linear-gradient(180deg, rgba(245, 239, 230, .92) 0, rgba(255, 250, 244, .98) 250px),
    #fffaf4;
  color: var(--ink);
  font-family: "Tajawal", Tahoma, Arial, sans-serif;
}

a:hover,
.price,
.product-detail__price,
.section-head a,
.footer-email {
  color: var(--brand);
}

:focus-visible {
  outline-color: rgba(200, 169, 110, .44);
}

.site-header {
  border-bottom-color: rgba(90, 18, 40, .12);
  background: rgba(255, 250, 244, .94);
  box-shadow: 0 12px 32px rgba(90, 18, 40, .08);
}

.topbar,
.mobile-drawer__head {
  background: linear-gradient(90deg, var(--brand-dark), var(--brand) 66%, var(--signal));
}

.header-search,
.hero-search,
.main-nav__category-menu > summary,
.main-nav__category-link,
.product-card,
.filters,
.shop-toolbar,
.pagination,
.admin-panel,
.stat,
.store-contact-card {
  border-color: rgba(90, 18, 40, .11);
}

.header-search:focus-within,
.hero-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(200, 169, 110, .18), var(--shadow-soft);
}

.button,
.header-search button,
.hero-search button,
.icon-button,
.inline-form button {
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  box-shadow: 0 12px 26px rgba(90, 18, 40, .15);
}

.button:hover,
.icon-button:hover,
.inline-form button:hover {
  background: linear-gradient(135deg, var(--brand-dark), var(--signal));
}

.button--ghost {
  border-color: rgba(200, 169, 110, .42);
  background: rgba(255, 250, 244, .84);
  color: var(--brand-dark);
}

.button--soft,
.icon-button--soft,
.mobile-bottom-nav a.is-active,
.mobile-bottom-nav a:hover {
  border-color: rgba(200, 169, 110, .34);
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.main-nav {
  background: linear-gradient(180deg, #fffaf4, #f7efe5);
}

.main-nav__category-menu > summary,
.main-nav__category-link,
.language,
.mobile-cart-link,
.mobile-menu-toggle {
  background: rgba(255, 250, 244, .86);
}

.main-nav__category-link:hover,
.main-nav__category-link.is-active,
.main-nav__category-menu > summary:hover,
.main-nav__category-menu > summary.is-active,
.main-nav__category-menu[open] > summary,
.filters a.is-active {
  border-color: rgba(200, 169, 110, .38);
  background: #fff7ea;
  color: var(--brand-dark);
}

.hero {
  min-height: 610px;
  padding: 72px 0 74px;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(90, 18, 40, .98) 0%, rgba(123, 30, 58, .96) 56%, rgba(160, 48, 80, .94) 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .07;
  background-image: repeating-linear-gradient(45deg, var(--accent) 0, var(--accent) 1px, transparent 0, transparent 50%);
  background-size: 28px 28px;
}

.hero::after {
  content: "";
  position: absolute;
  inset-inline-start: -120px;
  inset-block-end: -180px;
  width: 520px;
  height: 520px;
  pointer-events: none;
  border: 1px solid rgba(200, 169, 110, .20);
  border-radius: 999px;
  box-shadow: inset 0 0 0 70px rgba(200, 169, 110, .05), 0 0 90px rgba(0, 0, 0, .18);
}

.hero__grid {
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 440px);
  gap: 48px;
  align-items: center;
}

.hero__copy span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(200, 169, 110, .28);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.hero h1 {
  max-width: 820px;
  margin: 16px 0 16px;
  color: #fff;
  font-size: clamp(34px, 5.4vw, 68px);
  line-height: 1.12;
  letter-spacing: 0;
}

.hero p {
  max-width: 700px;
  color: rgba(255, 255, 255, .78);
  font-size: 18px;
  line-height: 1.9;
}

.hero-search {
  width: min(680px, 100%);
  border: 1px solid rgba(200, 169, 110, .34);
  background: rgba(255, 250, 244, .98);
  box-shadow: 0 18px 42px rgba(42, 16, 24, .22);
}

.hero-search input,
.hero-search button {
  height: 58px;
}

.hero-search button {
  width: 118px;
  background: linear-gradient(135deg, var(--accent), #B8904A);
  color: var(--brand-dark);
  box-shadow: none;
}

.hero-actions {
  gap: 13px;
}

.hero .button {
  min-height: 48px;
  border-radius: 999px;
  padding-inline: 24px;
}

.hero .button--ghost {
  border-color: rgba(255, 255, 255, .32);
  background: transparent;
  color: #fff;
  box-shadow: none;
}

.hero .button--ghost:hover {
  border-color: var(--accent);
  background: rgba(200, 169, 110, .10);
}

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}

.hero__chips span {
  min-height: auto;
  padding: 6px 13px;
  border-color: rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .78);
  font-size: 12px;
}

.hero__panel {
  position: relative;
  display: grid;
  gap: 20px;
  padding: 28px;
  border: 1px solid rgba(200, 169, 110, .24);
  border-radius: 24px;
  background: rgba(255, 255, 255, .07);
  box-shadow: 0 28px 70px rgba(42, 16, 24, .26);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.hero__badge {
  position: absolute;
  inset-block-start: -18px;
  inset-inline-start: -16px;
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: var(--brand-dark);
  font-family: "Playfair Display", serif;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .2);
}

.hero__product-stack {
  position: relative;
  min-height: 330px;
}

.hero__product {
  position: absolute;
  object-fit: contain;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 250, 244, .94), rgba(245, 239, 230, .88));
  box-shadow: 0 18px 46px rgba(42, 16, 24, .24);
}

.hero__product--main {
  inset-block-start: 18px;
  inset-inline-start: 50%;
  width: min(78%, 315px);
  transform: translateX(-50%);
}

.hero__product--side {
  inset-block-start: 18px;
  inset-inline-end: 0;
  width: 34%;
}

.hero__product--mini {
  inset-inline-start: 0;
  inset-block-end: 6px;
  width: 31%;
}

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

.hero__stats div {
  padding: 14px 10px;
  border: 1px solid rgba(200, 169, 110, .20);
  border-radius: 14px;
  background: rgba(255, 255, 255, .07);
  text-align: center;
}

.hero__stats strong {
  display: block;
  color: var(--accent);
  font-family: "Playfair Display", serif;
  font-size: 24px;
  line-height: 1;
}

.hero__stats span {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, .70);
  font-size: 11px;
  font-weight: 800;
}

.product-card {
  background: #fff;
  box-shadow: 0 12px 28px rgba(90, 18, 40, .055);
}

.product-card::after {
  background: linear-gradient(90deg, var(--accent), var(--brand));
}

.site-footer {
  background:
    linear-gradient(135deg, rgba(90, 18, 40, .98), rgba(42, 16, 24, .98)),
    var(--brand-dark);
}

@media (max-width: 980px) {
  .hero {
    min-height: auto;
    padding: 34px 0 38px;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero h1,
  .hero p,
  .hero-actions {
    max-width: none;
  }

  .hero__panel {
    padding: 18px;
  }

  .hero__product-stack {
    min-height: 245px;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-block: 26px 30px;
  }

  .hero h1 {
    max-width: none;
    font-size: 30px;
  }

  .hero p {
    max-width: none;
    font-size: 14px;
    line-height: 1.75;
  }

  .hero-search input,
  .hero-search button {
    height: 48px;
    font-size: 13px;
  }

  .hero-search button {
    width: 86px;
  }

  .hero-actions,
  .hero__chips {
    max-width: none;
  }

  .hero-actions .button {
    min-height: 42px;
    padding-inline: 14px;
    font-size: 12px;
  }

  .hero__panel {
    border-radius: 18px;
  }

  .hero__badge {
    width: 66px;
    height: 66px;
    font-size: 11px;
  }

  .hero__product-stack {
    min-height: 205px;
  }

  .hero__stats {
    grid-template-columns: 1fr;
  }
}

/* Home hero simplification */
.hero {
  min-height: 500px;
  padding: 74px 0 78px;
  text-align: right;
  background:
    linear-gradient(270deg, rgba(19, 32, 29, .78) 0%, rgba(19, 32, 29, .58) 38%, rgba(19, 32, 29, .20) 68%, rgba(19, 32, 29, .08) 100%),
    url('/assets/brand/souqtec-hero-user.jpg') center / cover no-repeat;
}

.hero::before {
  opacity: 0;
}

.hero::after {
  display: none;
}

.hero__grid {
  grid-template-columns: minmax(0, 680px);
  justify-content: start;
  gap: 0;
}

.hero__copy {
  display: grid;
  justify-items: start;
  max-width: 680px;
}

.hero__copy > span {
  min-height: 32px;
  padding-inline: 14px;
  background: rgba(255, 255, 255, .12);
  color: #F3DCA4;
  backdrop-filter: blur(8px);
}

.hero h1 {
  max-width: 760px;
  margin: 14px 0 10px;
  font-size: clamp(42px, 7vw, 76px);
}

.hero p {
  max-width: 620px;
  margin-bottom: 24px;
  font-size: 17px;
  color: rgba(255, 255, 255, .88);
}

.hero-search {
  width: min(880px, 100%);
  border-radius: 12px;
}

.hero-search input,
.hero-search button {
  height: 66px;
}

.hero-search input {
  padding-inline: 24px;
  font-size: 18px;
}

.hero-search button {
  width: 82px;
  flex: 0 0 82px;
  font-size: 14px;
}

.hero-actions {
  justify-content: flex-start;
  margin-top: 16px;
}

.hero .button {
  min-height: 42px;
  padding-inline: 20px;
}

@media (max-width: 980px) {
  .hero {
    padding: 40px 0 44px;
    background-position: center;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    justify-content: center;
  }

  .hero__copy {
    justify-items: center;
    text-align: center;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-search input,
  .hero-search button {
    height: 60px;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-block: 30px 34px;
    min-height: 430px;
    background:
      linear-gradient(180deg, rgba(19, 32, 29, .76) 0%, rgba(19, 32, 29, .58) 55%, rgba(19, 32, 29, .72) 100%),
      url('/assets/brand/souqtec-hero-user.jpg') center / cover no-repeat;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero p {
    font-size: 14px;
  }

  .hero-search {
    border-radius: 10px;
  }

  .hero-search input,
  .hero-search button {
    height: 56px;
  }

  .hero-search input {
    padding-inline: 14px;
    font-size: 15px;
  }

  .hero-search button {
    width: 64px;
    flex-basis: 64px;
    font-size: 12px;
  }
}

/* Shipping management */
.shipping-workspace .admin-grid {
  margin-bottom: 18px;
}

.shipping-filter {
  grid-template-columns: minmax(0, 1fr) 220px auto;
}

.shipping-order-list {
  display: grid;
  gap: 16px;
}

.shipping-card {
  display: grid;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(38, 18, 22, .06);
}

.shipping-card--collapsible {
  display: block;
  gap: 0;
  overflow: hidden;
  padding: 0;
}

.shipping-card--collapsible[open] {
  border-color: rgba(90, 18, 40, .22);
}

.shipping-card__summary {
  display: grid;
  grid-template-columns: minmax(120px, .7fr) minmax(0, 1.7fr) auto 30px;
  gap: 12px;
  align-items: center;
  cursor: pointer;
  list-style: none;
  padding: 14px 16px;
}

.shipping-card__summary::-webkit-details-marker {
  display: none;
}

.shipping-card__summary::after {
  content: "+";
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(90, 18, 40, .16);
  border-radius: 999px;
  background: var(--surface);
  color: var(--brand);
  font-size: 18px;
  font-weight: 900;
}

.shipping-card--collapsible[open] .shipping-card__summary::after {
  content: "-";
}

.shipping-card__summary-id {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.shipping-card__summary-id strong {
  color: var(--brand);
  font-size: 20px;
}

.shipping-card__summary-id small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.shipping-card__summary-info {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.shipping-card__summary-info span {
  min-width: 0;
  overflow: hidden;
  padding: 8px 10px;
  border: 1px solid rgba(90, 18, 40, .1);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shipping-card__body {
  display: grid;
  gap: 16px;
  padding: 0 16px 16px;
  border-top: 1px solid var(--line);
}

.shipping-card__head {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.shipping-card__head div {
  display: grid;
  gap: 2px;
}

.shipping-card__head strong {
  font-size: 20px;
}

.shipping-card__head span,
.shipping-card__meta span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

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

.shipping-card__meta div {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(90, 18, 40, .1);
  border-radius: 8px;
  background: var(--surface);
}

.shipping-card__meta strong {
  display: block;
  overflow-wrap: anywhere;
}

.shipping-card__wide {
  grid-column: 1 / -1;
}

.shipping-card__details {
  border-top: 1px solid var(--line);
  padding-top: 2px;
}

.shipping-card__details--expanded {
  padding-top: 14px;
}

.shipping-card__details summary {
  cursor: pointer;
  color: var(--brand);
  font-weight: 900;
  list-style-position: inside;
}

.shipping-card__details[open] summary {
  margin-bottom: 14px;
}

.shipping-card__detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.shipping-card__detail-section {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.shipping-card__detail-section h3 {
  margin: 0;
  font-size: 16px;
}

.shipping-card__detail-list div,
.shipping-card__notes div {
  padding: 10px 12px;
  border: 1px solid rgba(90, 18, 40, .1);
  border-radius: 8px;
  background: var(--surface);
}

.shipping-card__notes {
  display: grid;
  gap: 10px;
}

.shipping-card__notes span,
.shipping-card__detail-list span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.shipping-card__notes strong,
.shipping-card__detail-list strong {
  display: block;
  overflow-wrap: anywhere;
}

.shipping-card__detail-section--items {
  margin-top: 16px;
}

.shipping-update-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
  padding: 14px;
  border: 1px solid rgba(90, 18, 40, .12);
  border-radius: 8px;
  background: var(--surface);
}

.shipping-update-form textarea {
  min-height: 88px;
}

.shipping-update-form .field--wide {
  grid-column: span 2;
}

.shipping-update-form button {
  grid-column: 1 / -1;
}

.order-management-layout,
.manual-order-form,
.manual-order-form__customer,
.manual-order-form__meta,
.manual-order-items,
.manual-order-list,
.order-entry-stats {
  display: grid;
  gap: 14px;
}

.manual-order-panel {
  display: grid;
  gap: 16px;
}

.manual-order-form {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.manual-order-form__customer,
.manual-order-form__meta {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.manual-order-items {
  padding: 12px;
  border: 1px solid rgba(90, 18, 40, .12);
  border-radius: 8px;
  background: var(--surface);
}

.manual-order-brief {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(15, 118, 110, .14);
  border-radius: 8px;
  background: #f8fbfa;
}

.manual-order-brief textarea {
  min-height: 104px;
}

.manual-order-brief p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.manual-order-brief-view {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(15, 118, 110, .16);
  border-radius: 8px;
  background: #f8fbfa;
}

.manual-order-brief-view > strong {
  color: var(--brand-dark);
}

.manual-order-brief-view p {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  line-height: 1.8;
}

.manual-order-brief-view__images {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.manual-order-brief-view__images a {
  display: block;
  width: 86px;
  height: 86px;
  overflow: hidden;
  border: 1px solid rgba(19, 32, 29, .1);
  border-radius: 8px;
  background: #fff;
}

.manual-order-brief-view__images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.manual-order-item-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px;
  gap: 10px;
  align-items: end;
}

.manual-product-picker {
  position: relative;
  display: grid;
  min-width: 0;
  gap: 8px;
}

.manual-product-native {
  display: grid;
  gap: 6px;
}

.manual-product-picker.is-enhanced .manual-product-native {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.manual-product-choice {
  display: flex;
  width: 100%;
  min-height: 66px;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid rgba(90, 18, 40, .16);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  text-align: start;
}

.manual-product-choice:hover,
.manual-product-choice[aria-expanded="true"] {
  border-color: rgba(90, 18, 40, .38);
  box-shadow: 0 8px 22px rgba(38, 18, 22, .08);
}

.manual-product-choice img,
.manual-product-option img {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border: 1px solid rgba(90, 18, 40, .1);
  border-radius: 8px;
  background: var(--surface);
  object-fit: cover;
}

.manual-product-choice span,
.manual-product-option span {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.manual-product-choice strong,
.manual-product-option strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.manual-product-choice small,
.manual-product-option small {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.manual-product-menu {
  position: absolute;
  z-index: 60;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(90, 18, 40, .16);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(38, 18, 22, .16);
}

.manual-product-menu input {
  min-height: 42px;
}

.manual-product-options {
  display: grid;
  max-height: 310px;
  gap: 6px;
  overflow: auto;
  padding-inline-end: 2px;
}

.manual-product-option {
  display: flex;
  width: 100%;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  text-align: start;
}

.manual-product-option[hidden],
.manual-product-option.is-filtered-out,
.manual-catalog-card[hidden],
.manual-catalog-card.is-filtered-out {
  display: none !important;
}

.manual-product-option:hover,
.manual-product-option.is-selected {
  border-color: rgba(90, 18, 40, .24);
  background: #fff7ec;
}

.manual-product-option:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.commission-pill {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(90, 18, 40, .16);
  border-radius: 8px;
  background: var(--surface);
  color: var(--brand);
  font-weight: 900;
}

.commission-pill--scope {
  color: var(--muted);
  background: #fff;
}

.order-entry-stats {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.order-entry-stat,
.manual-order-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.order-entry-stat strong,
.manual-order-card header strong {
  color: var(--brand);
  font-size: 18px;
}

.order-entry-stat span,
.manual-order-card__meta span,
.manual-order-card p span {
  color: var(--muted);
  font-weight: 800;
}

.order-entry-stat b {
  color: var(--ink);
}

.manual-order-card header,
.manual-order-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  justify-content: space-between;
}

.manual-order-card p {
  margin: 0;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  color: var(--ink);
}

/* Fulfillment management */
.fulfillment-workspace .admin-actions {
  margin-bottom: 14px;
}

.fulfillment-list {
  display: grid;
  gap: 16px;
}

.fulfillment-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(38, 18, 22, .06);
}

.fulfillment-card header {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.fulfillment-card header div {
  display: grid;
  gap: 3px;
}

.fulfillment-card header strong {
  color: var(--brand);
  font-size: 20px;
}

.fulfillment-card header span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

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

.fulfillment-item {
  display: flex;
  min-width: 0;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(90, 18, 40, .1);
  border-radius: 8px;
  background: var(--surface);
}

.fulfillment-item img {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border: 1px solid rgba(90, 18, 40, .1);
  border-radius: 8px;
  background: #fff;
  object-fit: cover;
}

.fulfillment-item span {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.fulfillment-item strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fulfillment-item small {
  color: var(--muted);
  font-weight: 800;
}

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

.fulfillment-notes div,
.fulfillment-notes .empty-state {
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(90, 18, 40, .12);
  border-radius: 8px;
  background: #fffaf3;
}

.fulfillment-notes span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.fulfillment-notes strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.fulfillment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.fulfillment-actions form {
  margin: 0;
}

.fulfillment-actions .button {
  min-height: 42px;
}

/* Store team permissions and tasks */
.store-team-panel {
  display: grid;
  gap: 18px;
}

.store-member-form,
.store-task-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.permission-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}

.permission-chip {
  display: flex;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(90, 18, 40, .12);
  border-radius: 8px;
  background: #fff;
  font-weight: 800;
}

.permission-chip input {
  width: auto;
}

.dashboard-panel-directory,
.store-team-access-map {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
  padding: 16px;
  border: 1px solid rgba(15, 118, 110, .14);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(240, 253, 250, .72), #fff);
}

.dashboard-panel-directory--admin {
  margin-top: 18px;
}

.store-team-access-map {
  margin-bottom: 0;
}

.store-team-access-map > div:first-child {
  display: grid;
  gap: 4px;
}

.store-team-access-map strong,
.member-access-summary > strong,
.member-permission-summary > strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
}

.store-team-access-map span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

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

.store-panel-links--compact,
.member-panel-links {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.store-panel-link {
  display: grid;
  align-content: start;
  gap: 5px;
  min-height: 92px;
  padding: 12px;
  border: 1px solid rgba(90, 18, 40, .10);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(90, 18, 40, .055);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.store-panel-link:hover,
.store-panel-link:focus-visible {
  border-color: rgba(15, 118, 110, .34);
  box-shadow: 0 14px 28px rgba(15, 118, 110, .10);
  outline: none;
  transform: translateY(-1px);
}

.store-panel-link span {
  color: var(--brand);
  font-size: 11px;
  font-weight: 950;
}

.store-panel-link strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.45;
}

.store-panel-link small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.55;
}

.member-access-summary,
.member-permission-summary {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  padding-top: 4px;
}

.member-panel-links .store-panel-link {
  min-height: 76px;
  padding: 10px;
  box-shadow: none;
}

.member-panel-links .store-panel-link small {
  display: none;
}

.permission-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.permission-badge {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 5px 9px;
  border: 1px solid rgba(15, 118, 110, .16);
  border-radius: 999px;
  background: rgba(240, 253, 250, .72);
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.permission-badge--empty {
  border-color: rgba(107, 114, 128, .18);
  background: #f9fafb;
  color: var(--muted);
}

.store-member-list,
.store-task-list {
  display: grid;
  gap: 10px;
}

.team-member-row,
.store-task-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) minmax(140px, .7fr) minmax(130px, .6fr);
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.team-member-row > div:first-child span,
.store-task-row span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.team-member-row .permission-grid {
  grid-column: 1 / -1;
}

.team-member-row .button {
  justify-self: start;
}

.store-task-row {
  grid-template-columns: minmax(240px, 1fr) minmax(140px, .45fr) minmax(220px, .65fr);
}

.store-task-row p {
  margin: 8px 0 0;
  color: var(--muted);
}

.store-messages-panel {
  display: grid;
  gap: 16px;
}

.store-message-list {
  display: grid;
  gap: 12px;
}

.store-message-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.store-message-card--new {
  border-color: rgba(245, 158, 11, .42);
  background: #fffbeb;
}

.store-message-card header,
.store-message-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px 14px;
}

.store-message-card header div {
  display: grid;
  gap: 3px;
}

.store-message-card header span,
.store-message-card small,
.store-message-card__meta {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.store-message-card p {
  margin: 0;
  color: var(--ink);
  line-height: 1.8;
}

.store-message-card__meta {
  justify-content: flex-start;
}

.store-message-card__meta a {
  color: var(--brand);
  font-weight: 900;
}

.store-message-status-form {
  max-width: 360px;
}

@media (max-width: 980px) {
  .shipping-filter,
  .shipping-card__summary-info,
  .shipping-card__meta,
  .shipping-card__detail-grid,
  .shipping-update-form,
  .manual-order-form__customer,
  .manual-order-form__meta,
  .manual-order-brief,
  .manual-order-item-row {
    grid-template-columns: 1fr;
  }

  .shipping-card__summary {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .shipping-card__summary-id,
  .shipping-card__summary-info,
  .shipping-card__summary .status-badge {
    grid-column: 1;
  }

  .shipping-card__summary::after {
    grid-column: 2;
    grid-row: 1;
  }

  .shipping-card__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .shipping-update-form .field--wide {
    grid-column: 1 / -1;
  }

  .fulfillment-card header {
    align-items: flex-start;
    flex-direction: column;
  }

  .fulfillment-actions,
  .fulfillment-actions form,
  .fulfillment-actions .button {
    width: 100%;
  }

  .store-member-form,
  .store-task-form,
  .team-member-row,
  .store-task-row {
    grid-template-columns: 1fr;
  }

  .permission-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile drawer scroll and hero search comfort */
@media (max-width: 980px) {
  html.is-mobile-menu-open,
  body.is-mobile-menu-open {
    overflow: hidden;
  }

  .mobile-drawer:not([hidden]) {
    top: max(8px, env(safe-area-inset-top, 0px));
    bottom: max(8px, env(safe-area-inset-bottom, 0px));
    right: 8px;
    left: auto;
    display: flex;
    width: min(92vw, 400px);
    height: auto;
    max-height: calc(100dvh - 16px);
    min-height: 0;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    overscroll-behavior-y: contain;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .mobile-drawer__head,
  .mobile-drawer__search,
  .mobile-drawer__group {
    flex: 0 0 auto;
  }
}

@media (max-width: 560px) {
  .mobile-drawer:not([hidden]) {
    top: max(6px, env(safe-area-inset-top, 0px));
    bottom: max(6px, env(safe-area-inset-bottom, 0px));
    right: 6px;
    width: calc(100vw - 12px);
    max-height: calc(100dvh - 12px);
  }

  .hero-search {
    min-height: 62px;
    border-radius: 12px;
  }

  .hero-search input,
  .hero-search button {
    height: 62px;
    min-height: 62px;
  }

  .hero-search input {
    padding-inline: 18px 10px;
    font-size: 16px;
    line-height: 1.35;
  }

  .hero-search button {
    width: 68px;
    flex: 0 0 68px;
    font-size: 13px;
  }
}

@media (max-width: 380px) {
  .hero-search input {
    padding-inline: 14px 8px;
    font-size: 15px;
  }

  .hero-search button {
    width: 62px;
    flex-basis: 62px;
  }
}

/* Clean mobile side panel */
.mobile-panel-backdrop,
.mobile-panel {
  display: none;
}

@media (max-width: 980px) {
  .mobile-panel-backdrop:not([hidden]) {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: block;
    background: rgba(12, 18, 17, .52);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
  }

  .mobile-panel:not([hidden]) {
    position: fixed;
    inset-block: 0;
    inset-inline-end: 0;
    inset-inline-start: auto;
    z-index: 100;
    display: flex;
    width: min(88vw, 392px);
    max-width: calc(100vw - 10px);
    height: 100dvh;
    max-height: 100dvh;
    min-height: 0;
    flex-direction: column;
    overflow: hidden;
    border-inline-start: 1px solid rgba(15, 118, 110, .14);
    background: #fff;
    color: var(--ink);
    direction: rtl;
    text-align: right;
    box-shadow: -22px 0 54px rgba(15, 23, 42, .25);
  }

  .mobile-panel *,
  .mobile-panel *::before,
  .mobile-panel *::after {
    box-sizing: border-box;
    min-width: 0;
  }

  .mobile-panel__header {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: calc(14px + env(safe-area-inset-top, 0px)) 16px 14px;
    background: linear-gradient(135deg, var(--brand-dark), var(--brand));
    color: #fff;
  }

  .mobile-panel__header strong,
  .mobile-panel__header span {
    display: block;
  }

  .mobile-panel__header strong {
    font-size: 19px;
    letter-spacing: 0;
  }

  .mobile-panel__header span {
    margin-top: 2px;
    color: rgba(255, 255, 255, .78);
    font-size: 13px;
    font-weight: 800;
  }

  .mobile-panel__header button {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 10px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
  }

  .mobile-panel__scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 12px 12px calc(22px + env(safe-area-inset-bottom, 0px));
    overscroll-behavior-y: contain;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .mobile-panel__search {
    display: flex;
    min-height: 48px;
    overflow: hidden;
    border: 2px solid var(--accent);
    border-radius: 10px;
    background: #fff;
  }

  .mobile-panel__search input {
    min-width: 0;
    flex: 1 1 auto;
    border: 0;
    padding: 0 14px;
    outline: 0;
    font-size: 15px;
  }

  .mobile-panel__search button {
    width: 70px;
    flex: 0 0 70px;
    border: 0;
    background: var(--accent);
    color: #fff;
    font-weight: 900;
  }

  .mobile-panel__quick,
  .mobile-panel__links {
    display: grid;
    gap: 8px;
  }

  .mobile-panel__quick {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 12px 0;
  }

  .mobile-panel__quick a,
  .mobile-panel__links a {
    display: flex;
    min-height: 44px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 12px;
    border: 1px solid rgba(19, 32, 29, .09);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font-size: 14px;
    font-weight: 900;
    overflow-wrap: anywhere;
  }

  .mobile-panel__quick a {
    justify-content: center;
    text-align: center;
  }

  .mobile-panel__quick a.is-active,
  .mobile-panel__links a.is-active,
  .mobile-panel__quick a:hover,
  .mobile-panel__links a:hover {
    border-color: rgba(15, 118, 110, .28);
    background: var(--surface);
    color: var(--brand);
  }

  .mobile-panel__section {
    margin-top: 10px;
    overflow: hidden;
    border: 1px solid rgba(19, 32, 29, .09);
    border-radius: 12px;
    background: #fff;
  }

  .mobile-panel__section > summary {
    display: flex;
    min-height: 52px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 14px;
    color: var(--brand-dark);
    font-weight: 950;
    list-style: none;
    cursor: pointer;
  }

  .mobile-panel__section > summary::-webkit-details-marker {
    display: none;
  }

  .mobile-panel__section > summary::after {
    content: "";
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    border-inline-end: 2px solid currentColor;
    border-block-end: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform .18s ease;
  }

  .mobile-panel__section[open] > summary::after {
    transform: rotate(225deg);
  }

  .mobile-panel__section > nav,
  .mobile-panel__section > .category-tree--mobile {
    padding: 0 10px 12px;
  }

  .mobile-panel .category-tree--mobile {
    display: block;
  }

  .mobile-panel .category-tree--mobile,
  .mobile-panel .category-tree--mobile ul {
    margin: 0;
    padding-inline-start: 0;
    list-style: none;
  }

  .mobile-panel .category-tree--mobile ul {
    display: grid;
    gap: 7px;
  }

  .mobile-panel .category-tree--mobile li ul {
    margin-top: 7px;
    padding-inline-start: 10px;
  }

  .mobile-panel .category-tree__mobile-group {
    border-radius: 10px;
    background: #f7fbfa;
  }

  .mobile-panel .category-tree__mobile-group > summary,
  .mobile-panel .category-tree__item {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid rgba(19, 32, 29, .08);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font-size: 13px;
    font-weight: 850;
    list-style: none;
  }

  .mobile-panel .category-tree__mobile-group > summary::-webkit-details-marker {
    display: none;
  }

  .mobile-panel .category-tree__mobile-group > summary::after {
    content: "+";
    color: var(--brand);
    font-size: 18px;
    font-weight: 900;
  }

  .mobile-panel .category-tree__mobile-group[open] > summary::after {
    content: "-";
  }

  .mobile-panel .category-tree__item.is-active,
  .mobile-panel .category-tree__mobile-group > summary.is-active {
    border-color: rgba(15, 118, 110, .28);
    background: var(--surface);
    color: var(--brand);
  }
}

@media (max-width: 520px) {
  .mobile-panel:not([hidden]) {
    width: calc(100vw - 8px);
  }

  .mobile-panel__quick {
    grid-template-columns: 1fr;
  }
}

/* Manual order product catalog */
body.is-manual-catalog-open {
  overflow: hidden;
}

.manual-order-builder {
  display: grid;
  gap: 12px;
}

.manual-order-builder__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(19, 32, 29, .08);
  border-radius: 8px;
  background: #fff;
}

.manual-order-builder__head strong,
.manual-order-builder__head span {
  display: block;
}

.manual-order-builder__head strong {
  color: var(--brand-dark);
  font-size: 17px;
}

.manual-order-builder__head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.manual-order-selected {
  display: grid;
  gap: 10px;
}

.manual-order-selected-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 110px 122px auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(19, 32, 29, .08);
  border-radius: 8px;
  background: #fff;
}

.manual-order-selected-item img {
  width: 58px;
  height: 58px;
  border: 1px solid rgba(19, 32, 29, .08);
  border-radius: 8px;
  background: var(--surface);
  object-fit: cover;
}

.manual-order-selected-item div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.manual-order-selected-item strong,
.manual-order-selected-item small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.manual-order-selected-item small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.manual-order-selected-item label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.manual-order-selected-item__line-total {
  padding: 9px 10px;
  border-radius: 8px;
  background: rgba(15, 118, 110, .08);
  color: var(--brand-dark);
  font-size: 13px;
  text-align: center;
  white-space: nowrap;
}

.manual-order-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 8px;
}

.manual-order-summary div {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(19, 32, 29, .08);
  border-radius: 8px;
  background: #fff;
}

.manual-order-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.manual-order-summary strong {
  color: var(--brand-dark);
  font-size: 17px;
}

.manual-order-summary strong.is-negative {
  color: #b42318;
}

.manual-order-summary__total {
  border-color: rgba(15, 118, 110, .24) !important;
  background: rgba(15, 118, 110, .08) !important;
}

.manual-order-summary__total strong {
  font-size: 20px;
}

.manual-catalog:not([hidden]) {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: grid;
  place-items: stretch;
}

.manual-catalog__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 18, 17, .56);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.manual-catalog__panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  width: min(1180px, calc(100vw - 32px));
  height: min(760px, calc(100dvh - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  overflow: hidden;
  border: 1px solid rgba(19, 32, 29, .1);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(15, 23, 42, .28);
}

.manual-catalog__header,
.manual-catalog__tools,
.manual-catalog__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.manual-catalog__header h3 {
  margin: 0;
  color: var(--brand-dark);
}

.manual-catalog__header p {
  margin: 4px 0 0;
  color: var(--muted);
}

.manual-catalog__header button {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.manual-catalog__tools input {
  min-height: 46px;
  flex: 1 1 auto;
  border-color: rgba(19, 32, 29, .12);
  font-size: 15px;
}

.manual-catalog-category-filter {
  position: relative;
  flex: 0 0 270px;
}

.manual-catalog-category-filter summary {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid rgba(19, 32, 29, .12);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  list-style: none;
}

.manual-catalog-category-filter summary::-webkit-details-marker {
  display: none;
}

.manual-catalog-category-filter summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.manual-catalog-category-filter summary strong {
  min-width: 0;
  overflow: hidden;
  color: var(--brand-dark);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.manual-catalog-category-filter__panel {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 8px);
  z-index: 4;
  width: min(380px, calc(100vw - 40px));
  max-height: 430px;
  overflow: auto;
  padding: 8px;
  border: 1px solid rgba(19, 32, 29, .12);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .18);
}

.manual-catalog-category-tree {
  display: grid;
  gap: 4px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.manual-catalog-category-tree .manual-catalog-category-tree {
  margin-inline-start: 14px;
  padding-inline-start: 10px;
  border-inline-start: 1px solid rgba(19, 32, 29, .08);
}

.manual-catalog-category-option {
  display: flex;
  width: 100%;
  min-height: 36px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-align: start;
}

.manual-catalog-category-option span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.manual-catalog-category-option small {
  min-width: 28px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.manual-catalog-category-option:hover,
.manual-catalog-category-option.is-active {
  border-color: rgba(15, 118, 110, .22);
  background: rgba(15, 118, 110, .08);
  color: var(--brand-dark);
}

.manual-catalog-category-option:disabled {
  cursor: not-allowed;
  opacity: .48;
}

.manual-catalog__tools span,
.manual-catalog__footer span {
  color: var(--muted);
  font-weight: 900;
  white-space: nowrap;
}

.manual-catalog__tools .manual-catalog-category-filter span {
  color: inherit;
  font-weight: inherit;
}

.manual-catalog__tools .manual-catalog-category-filter summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.manual-catalog__tools .manual-catalog-category-option span {
  color: inherit;
  font-weight: 850;
}

.manual-catalog__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
  overflow: auto;
  padding: 14px;
  background: var(--surface);
}

.manual-catalog-card {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(19, 32, 29, .08);
  border-radius: 8px;
  background: #fff;
}

.manual-catalog-card.is-selected {
  border-color: rgba(15, 118, 110, .42);
  box-shadow: 0 10px 26px rgba(15, 118, 110, .12);
}

.manual-catalog-card.is-disabled {
  opacity: .58;
}

.manual-catalog-card__select {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-align: start;
}

.manual-catalog-card__select:disabled {
  cursor: not-allowed;
}

.manual-catalog-card__select img {
  width: 74px;
  height: 74px;
  border: 1px solid rgba(19, 32, 29, .08);
  border-radius: 8px;
  background: #fff;
  object-fit: cover;
}

.manual-catalog-card__select span {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.manual-catalog-card__select strong,
.manual-catalog-card__select small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.manual-catalog-card__select small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.manual-catalog-card__select b {
  grid-column: 1 / -1;
  justify-self: start;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--brand);
  font-size: 12px;
}

.manual-catalog-card.is-selected .manual-catalog-card__select b {
  background: rgba(15, 118, 110, .12);
}

.manual-catalog-card label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.manual-catalog-card input {
  min-height: 40px;
}

.manual-catalog__footer {
  border-top: 1px solid var(--line);
  border-bottom: 0;
  background: #fff;
}

.manual-catalog__live-total {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(15, 118, 110, .08);
  color: var(--brand-dark);
  font-size: 13px;
  white-space: nowrap;
}

.manual-catalog__live-total b {
  font-size: 15px;
}

@media (max-width: 760px) {
  .manual-order-builder__head,
  .manual-catalog__header,
  .manual-catalog__tools,
  .manual-catalog__footer {
    align-items: stretch;
    flex-direction: column;
  }

  .manual-order-builder__head .button,
  .manual-catalog__footer .button {
    width: 100%;
  }

  .manual-catalog__live-total {
    width: 100%;
    text-align: center;
  }

  .manual-order-selected-item {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .manual-order-selected-item label,
  .manual-order-selected-item__line-total,
  .manual-order-selected-item .button {
    grid-column: 1 / -1;
  }

  .manual-order-summary {
    grid-template-columns: 1fr 1fr;
  }

  .manual-catalog__panel {
    width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
  }

  .manual-catalog__grid {
    grid-template-columns: 1fr;
  }

  .manual-catalog-category-filter {
    flex: 1 1 auto;
    width: 100%;
  }

  .manual-catalog-category-filter__panel {
    position: static;
    width: 100%;
    max-height: 230px;
    margin-top: 8px;
    box-shadow: none;
  }
}

@media (max-width: 520px) {
  .manual-order-summary {
    grid-template-columns: 1fr;
  }
}

/* Mobile professional polish */
@media (max-width: 980px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    padding-bottom: 74px;
  }

  .site-header {
    z-index: 1200;
  }

  .header-main {
    grid-template-columns: 42px minmax(0, 1fr) 80px;
    gap: 8px;
    padding-block: 8px 10px;
  }

  .brand {
    justify-self: center;
    min-width: 0;
  }

  .brand img {
    width: 112px;
    max-height: 50px;
    object-fit: contain;
  }

  .mobile-menu-toggle,
  .mobile-cart-link {
    min-height: 42px;
    height: 42px;
    border-radius: 10px;
    box-shadow: 0 8px 18px rgba(22, 33, 31, .06);
  }

  .mobile-cart-link {
    padding-inline: 8px;
    font-size: 12px;
  }

  .header-search {
    height: 42px;
    border-radius: 10px;
  }

  .header-search input {
    height: 42px;
    padding-inline: 12px;
    font-size: 14px;
  }

  .header-search button {
    width: 72px;
    height: 42px;
    flex: 0 0 72px;
    font-size: 13px;
  }

  .mobile-panel-backdrop:not([hidden]) {
    z-index: 1290;
  }

  .mobile-panel:not([hidden]) {
    position: fixed !important;
    inset-block: 0 !important;
    inset-inline-end: 0 !important;
    inset-inline-start: auto !important;
    z-index: 1300;
    height: 100dvh;
    max-height: 100dvh;
    transform: none !important;
  }

  .mobile-panel__header {
    min-height: 78px;
  }

  .mobile-panel__scroll {
    max-height: none;
  }

  .mobile-bottom-nav {
    z-index: 1180;
    inset-inline: 8px;
    width: auto;
    max-width: none;
    border-radius: 16px;
    box-shadow: 0 14px 34px rgba(22, 33, 31, .18);
  }

  .shop-filter-backdrop:not([hidden]) {
    z-index: 1240;
  }

  .filters {
    z-index: 1250;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 330px;
    padding-block: 36px 42px;
  }

  .hero h1 {
    margin-block: 10px 8px;
    font-size: 32px;
    line-height: 1.25;
  }

  .hero p {
    max-width: 320px;
    margin-inline: auto;
    margin-bottom: 18px;
    font-size: 14px;
  }

  .hero-actions .button {
    min-height: 42px;
    padding-inline: 18px;
  }

  .section {
    padding-block: 28px;
  }

  .section-head {
    min-height: 40px;
    gap: 10px;
    margin-bottom: 12px;
    align-items: center;
  }

  .section-head h2,
  .section-head h3 {
    font-size: 25px;
    line-height: 1.25;
  }

  .section-head a {
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid rgba(123, 24, 53, .16);
    border-radius: 999px;
    background: #fff;
    color: var(--brand-dark);
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
  }

  .account-summary--customer {
    gap: 12px;
    margin-bottom: 16px;
    padding: 14px;
    border-radius: 10px;
  }

  .account-summary__identity h2 {
    font-size: 26px;
  }

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

  .account-summary__stats a {
    min-height: 78px;
    padding: 9px 7px;
    text-align: center;
  }

  .account-summary__stats strong {
    font-size: 16px;
  }

  .account-summary__stats span {
    font-size: 11px;
    line-height: 1.35;
  }

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

  .account-summary__actions .button {
    min-height: 40px;
    font-size: 12px;
  }

  .account-profile-fields {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .account-profile-form,
  .customer-card--account,
  .results-section--account .order-card {
    padding: 14px;
    border-radius: 10px;
  }

  .customer-card__details {
    gap: 8px;
  }

  .customer-card__details div {
    padding: 9px;
  }

  .results-section--account {
    margin-top: 18px;
  }

  .product-grid {
    gap: 9px;
  }

  .product-card {
    border-color: rgba(22, 33, 31, .09);
    border-radius: 10px;
    box-shadow: 0 8px 22px rgba(22, 33, 31, .07);
  }

  .product-card:hover {
    transform: none;
  }

  .product-card__media {
    background: #fbfbf8;
  }

  .product-card__media img {
    padding: 8px;
  }

  .product-card__body {
    gap: 6px;
    padding: 9px;
  }

  .product-card__title {
    display: -webkit-box;
    min-height: 38px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 13px;
    line-height: 1.45;
  }

  .product-card__meta {
    min-height: 20px;
    gap: 2px;
    font-size: 11px;
  }

  .product-card__meta a {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
  }

  .product-rating-mini {
    min-height: 18px;
    gap: 4px;
    font-size: 11px;
  }

  .product-rating-mini small {
    display: none;
  }

  .product-card__row {
    align-items: stretch;
    flex-direction: column;
    gap: 7px;
  }

  .product-card .price {
    direction: ltr;
    font-size: 13px;
    text-align: right;
  }

  .product-card .mini-actions {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    gap: 6px;
  }

  .product-card .icon-button {
    width: 100%;
    height: 36px;
    border-radius: 8px;
    font-size: 17px;
  }

  .product-card .icon-button--text {
    min-width: 0;
    width: auto;
    font-size: 11px;
  }

  .badge {
    inset-block-start: 8px;
    inset-inline-start: 8px;
    min-height: 24px;
    padding-inline: 8px;
    font-size: 11px;
  }

  .mobile-panel:not([hidden]) {
    width: min(94vw, 390px);
  }

  .mobile-panel__quick {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mobile-panel__quick a {
    min-height: 40px;
    padding-inline: 8px;
    font-size: 12px;
  }

  .mobile-panel__section > summary {
    min-height: 50px;
  }

  .site-footer {
    padding-bottom: 94px;
  }

  .footer-grid {
    gap: 10px;
  }

  .footer-brand,
  .footer-links {
    padding: 12px;
    border-radius: 10px;
  }

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

  .footer-grid a {
    min-height: 36px;
    padding-inline: 9px;
    font-size: 13px;
  }
}

@media (max-width: 380px) {
  .container {
    width: calc(100% - 16px);
  }

  .header-main {
    grid-template-columns: 40px minmax(0, 1fr) 74px;
  }

  .brand img {
    width: 104px;
  }

  .mobile-cart-link {
    gap: 4px;
    padding-inline: 6px;
  }

  .section-head h2,
  .section-head h3 {
    font-size: 22px;
  }

  .product-card__body {
    padding: 8px;
  }

  .product-card .mini-actions {
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    gap: 5px;
  }

  .mobile-bottom-nav {
    inset-inline: 6px;
  }

  .mobile-bottom-nav a {
    padding-inline: 4px;
    font-size: 11px;
  }
}

@media (min-width: 981px) {
  .main-nav {
    position: sticky;
    top: 0;
    z-index: 52;
    border-top: 0;
    background: #172636;
    box-shadow: 0 7px 18px rgba(15, 23, 42, .18);
  }

  .main-nav__inner {
    min-height: 38px;
    gap: 0;
    align-items: stretch;
    overflow: visible;
    flex-wrap: nowrap;
  }

  .main-nav__inner > a:not(.main-nav__category-link),
  .main-nav__inner > .main-nav__categories {
    display: flex;
    flex: 0 0 auto;
  }

  .main-nav__inner > a:not(.main-nav__category-link),
  .main-nav__categories > summary,
  .main-nav__category-menu > summary,
  .main-nav__category-link {
    min-height: 38px;
    align-items: center;
    justify-content: center;
    padding: 0 13px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #fff;
    font-size: 15px;
    line-height: 1;
    max-width: 172px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-shadow: none;
  }

  .main-nav__categories > summary {
    display: inline-flex;
    gap: 7px;
    max-width: none;
    padding-inline: 15px;
    font-size: 16px;
  }

  .main-nav__categories > summary::after {
    display: none;
  }

  .main-nav__category-menu > summary::after {
    color: #cbd5e1;
  }

  .main-nav__inner > a:not(.main-nav__category-link):hover,
  .main-nav__inner > a:not(.main-nav__category-link).is-active,
  .main-nav__categories > summary:hover,
  .main-nav__categories > summary.is-active,
  .main-nav__categories[open] > summary,
  .main-nav__category-link:hover,
  .main-nav__category-link.is-active,
  .main-nav__category-menu > summary:hover,
  .main-nav__category-menu > summary.is-active,
  .main-nav__category-menu[open] > summary {
    background: #25394f;
    color: #fff;
  }

  .main-nav__dropdown {
    inset-block-start: 100%;
    border-radius: 0 0 8px 8px;
  }
}

/* Unified product image presentation across catalog, details, and management views. */
.product-card__media,
.product-main-media,
.product-gallery__thumb,
.saved-product__media,
.compare-card__media,
.import-preview-card__media {
  display: grid;
  aspect-ratio: 1 / 1;
  place-items: center;
  overflow: hidden;
  background: #fff;
}

.product-main-media {
  min-height: 0;
}

.product-card__media img,
.product-main-media img,
.product-gallery__thumb img,
.saved-product__media img,
.compare-card__media img,
.order-item-line img,
.order-detail-item img,
.import-preview-card__media img {
  width: 100%;
  height: 100%;
}

.product-card__media img,
.product-main-media img,
.product-gallery__thumb img,
.saved-product__media img,
.compare-card__media img,
.bundle-item img,
.product-list-row img,
.order-item-line img,
.order-detail-item img,
.manual-product-choice img,
.manual-product-option img,
.manual-order-selected-item img,
.manual-catalog-card__select img,
.fulfillment-item img,
.import-preview-card__media img,
.import-image-strip img,
.import-image-option img {
  object-fit: contain;
  object-position: center;
  background: #fff;
}

.product-card__media img,
.product-main-media img {
  padding: 10px;
}

.product-gallery__thumb img,
.saved-product__media img,
.compare-card__media img,
.bundle-item img,
.product-list-row img,
.manual-product-choice img,
.manual-product-option img,
.manual-order-selected-item img,
.manual-catalog-card__select img,
.fulfillment-item img,
.import-preview-card__media img,
.import-image-strip img,
.import-image-option img {
  padding: 4px;
}

@media (max-width: 560px) {
  .product-card__media img,
  .product-main-media img {
    padding: 8px;
  }
}

/* Stable product card rhythm: same image box and aligned content rows. */
.product-grid {
  align-items: stretch;
}

.product-card {
  display: flex;
  min-width: 0;
  height: 100%;
  flex-direction: column;
}

.product-card__media {
  height: 226px;
  aspect-ratio: auto !important;
  flex: 0 0 auto;
}

.product-card__media img {
  width: min(206px, calc(100% - 20px));
  height: min(206px, calc(100% - 20px));
  padding: 0 !important;
}

.product-card__body {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
}

.product-card__title {
  display: -webkit-box;
  height: 50px;
  min-height: 50px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-height: 1.45;
}

.product-card__meta {
  height: 58px;
  min-height: 58px;
  overflow: hidden;
  align-content: start;
  line-height: 1.35;
}

.product-card__meta a {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.product-rating-mini {
  height: 24px;
  min-height: 24px;
}

.product-card__row {
  min-height: 42px;
  margin-top: auto;
}

.product-card .price {
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 980px) {
  .product-card__media {
    height: 190px;
  }

  .product-card__media img {
    width: min(172px, calc(100% - 18px));
    height: min(172px, calc(100% - 18px));
  }
}

@media (max-width: 560px) {
  .product-card__media {
    height: 148px;
  }

  .product-card__media img {
    width: min(132px, calc(100% - 14px));
    height: min(132px, calc(100% - 14px));
  }

  .product-card__title {
    height: 40px;
    min-height: 40px;
    font-size: 12px;
    line-height: 1.45;
  }

  .product-card__meta {
    height: 32px;
    min-height: 32px;
  }

  .product-rating-mini {
    height: 18px;
    min-height: 18px;
  }

  .product-card__row {
    min-height: 76px;
    align-items: stretch;
    flex-direction: column;
  }

  .product-card .price {
    min-height: 18px;
  }
}

/* Product card price-first layout: no brand/store lines in the card. */
.product-card__price {
  display: block;
  height: 32px;
  min-height: 32px;
  color: var(--brand-dark);
  font-size: 22px;
  font-weight: 950;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.product-card__meta {
  height: 22px;
  min-height: 22px;
}

.product-card__row {
  min-height: 42px;
  align-items: center;
  justify-content: flex-start;
}

.product-card__row .mini-actions {
  width: 100%;
}

@media (max-width: 560px) {
  .product-card__price {
    height: 22px;
    min-height: 22px;
    font-size: 16px;
    line-height: 1.25;
  }

  .product-card__meta {
    height: 18px;
    min-height: 18px;
  }

  .product-card__row {
    min-height: 38px;
    flex-direction: row;
  }
}

/* Exact product-card image sizing across all catalog cards. */
.product-card__media {
  width: 100%;
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
  background: #fff !important;
}

.product-card__media img {
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  padding: 6px !important;
  object-fit: contain !important;
  object-position: center;
  image-rendering: auto;
}

.product-card:hover .product-card__media img {
  transform: none;
}

/* Mobile product-card readability. */
@media (max-width: 560px) {
  .product-card__body {
    gap: 7px;
    padding: 10px;
  }

  .product-card__title {
    display: -webkit-box;
    height: 44px;
    min-height: 44px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: var(--ink);
    font-size: 14px;
    font-weight: 950;
    line-height: 1.35;
  }

  .product-card .product-card__price {
    height: 28px;
    min-height: 28px;
    color: var(--brand-dark);
    font-size: 20px;
    font-weight: 950;
    line-height: 1.2;
  }

  .product-card__meta {
    height: 16px;
    min-height: 16px;
  }

  .product-rating-mini {
    height: 16px;
    min-height: 16px;
  }
}

.store-analytics .admin-grid {
  align-items: stretch;
}

.store-analytics-note {
  margin-top: 14px;
}

.store-analytics-note span {
  display: block;
  border: 1px solid rgba(15, 118, 110, .16);
  border-radius: 8px;
  background: rgba(15, 118, 110, .06);
  color: var(--muted);
  padding: 12px 14px;
  line-height: 1.7;
}

.store-analytics-grid {
  align-items: start;
}

.store-analytics-chart {
  min-height: 320px;
}

.store-chart {
  display: grid;
  grid-template-columns: repeat(12, minmax(42px, 1fr));
  gap: 10px;
  align-items: end;
  min-height: 230px;
  overflow-x: auto;
  padding: 12px 0 2px;
}

.store-chart__item {
  display: grid;
  grid-template-rows: 150px auto auto;
  gap: 6px;
  min-width: 42px;
  text-align: center;
}

.store-chart__track {
  display: flex;
  align-items: end;
  justify-content: center;
  height: 150px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(15, 118, 110, .07), rgba(17, 24, 39, .035));
  overflow: hidden;
}

.store-chart__bar {
  width: 70%;
  height: var(--bar-height, 0%);
  min-height: var(--bar-height, 0%);
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, #0f766e, #14b8a6);
  box-shadow: 0 10px 20px rgba(15, 118, 110, .18);
}

.store-chart__item strong {
  min-height: 34px;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.store-chart__item span {
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 760px) {
  .store-chart {
    grid-template-columns: repeat(12, minmax(54px, 1fr));
  }

  .store-analytics-chart {
    min-height: 300px;
  }
}

.bulk-import-runner {
  border-color: rgba(15, 118, 110, .18);
  background: linear-gradient(180deg, rgba(240, 253, 250, .82), #fff);
}

.bulk-import-runner[data-bulk-import-state="running"] {
  box-shadow: 0 18px 38px rgba(15, 118, 110, .1);
}

.bulk-import-runner[data-bulk-import-state="error"] {
  border-color: rgba(220, 38, 38, .28);
  background: linear-gradient(180deg, rgba(254, 242, 242, .78), #fff);
}

.bulk-import-meter {
  height: 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, .08);
  overflow: hidden;
}

.bulk-import-meter span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0f766e, #14b8a6);
  transition: width .28s ease;
}

.bulk-import-counts {
  margin-top: 14px;
}

.bulk-import-results {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.bulk-import-result {
  display: grid;
  gap: 5px;
  padding: 12px 14px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 8px;
  background: #fff;
}

.bulk-import-result label {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.6;
}

.bulk-import-result input {
  margin-top: 6px;
}

.bulk-import-result span {
  color: var(--ink);
  font-weight: 800;
}

.bulk-import-result small {
  color: var(--muted);
  line-height: 1.6;
}

.bulk-import-result--created {
  border-color: rgba(22, 163, 74, .22);
  background: rgba(240, 253, 244, .72);
}

.bulk-import-result--skipped {
  border-color: rgba(245, 158, 11, .28);
  background: rgba(255, 251, 235, .78);
}

.bulk-import-result--failed {
  border-color: rgba(220, 38, 38, .24);
  background: rgba(254, 242, 242, .72);
}

.bulk-import-selection {
  display: flex;
  gap: 10px;
  align-items: end;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(15, 23, 42, .08);
}

.bulk-import-selection label {
  min-width: min(100%, 280px);
}

.bulk-import-selection__tools {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .bulk-import-selection,
  .bulk-import-selection__tools {
    align-items: stretch;
    flex-direction: column;
  }
}

.product-review-dashboard .management-stack {
  gap: 18px;
}

.product-review-stats {
  margin-bottom: 0;
}

.product-review-workbench .section-head {
  align-items: flex-start;
}

.product-review-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.product-review-row {
  display: grid;
  grid-template-columns: 96px minmax(180px, 1fr) minmax(130px, .45fr) minmax(220px, .75fr) minmax(220px, .8fr) minmax(120px, .35fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
}

.product-review-row__media {
  width: 96px;
  height: 96px;
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #f8fafc;
  color: #94a3b8;
  font-weight: 800;
}

.product-review-row__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-review-row__product {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.product-review-row__product strong {
  color: #0f172a;
  font-size: .98rem;
  line-height: 1.45;
}

.product-review-row__product span,
.product-review-save small {
  color: #64748b;
  font-size: .78rem;
}

.product-review-row__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.product-review-check {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border-radius: 12px;
  background: #f8fafc;
  color: #0f172a;
  font-weight: 800;
}

.product-review-check input {
  width: 18px;
  height: 18px;
}

.product-review-categories {
  position: relative;
}

.product-review-categories > summary {
  cursor: pointer;
  list-style: none;
  padding: 10px 12px;
  border: 1px solid rgba(15, 23, 42, .1);
  border-radius: 12px;
  background: #f8fafc;
  font-weight: 800;
  color: #0f172a;
}

.product-review-categories > summary::-webkit-details-marker {
  display: none;
}

.product-review-categories[open] > summary {
  border-color: rgba(20, 184, 166, .38);
  background: rgba(240, 253, 250, .9);
}

.product-review-categories .category-picker {
  margin-top: 8px;
  max-height: 340px;
  overflow: auto;
  border-radius: 12px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .12);
}

.product-review-notes {
  display: grid;
  gap: 6px;
  color: #475569;
  font-size: .78rem;
  font-weight: 800;
}

.product-review-notes textarea {
  min-height: 86px;
  resize: vertical;
  font-size: .86rem;
}

.product-review-save {
  display: grid;
  gap: 8px;
  justify-items: stretch;
}

@media (max-width: 1180px) {
  .product-review-row {
    grid-template-columns: 82px minmax(180px, 1fr) minmax(120px, .55fr);
  }

  .product-review-categories,
  .product-review-notes,
  .product-review-save {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .product-review-row {
    grid-template-columns: 72px 1fr;
    align-items: start;
  }

  .product-review-row__media {
    width: 72px;
    height: 72px;
  }

  .product-review-check {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

.home-products-loader {
  display: grid;
  gap: 12px;
  justify-items: center;
  padding-block: 24px 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.home-products-loader[hidden] {
  display: none !important;
}

.home-products-loader.is-loading [data-home-products-more] {
  cursor: wait;
}

.home-products-loader[data-state="error"] [data-home-products-status] {
  color: #b91c1c;
}

.home-products-loader[data-state="done"] [data-home-products-status] {
  color: var(--brand-dark);
}

.home-products-sentinel {
  width: 100%;
  height: 1px;
}

body[data-store-staff-only="1"] a[href="/ar/cart/"],
body[data-store-staff-only="1"] a[href="/ar/checkout/"],
body[data-store-staff-only="1"] a[href="/ar/wallet/"],
body[data-store-staff-only="1"] a[href="/ar/orders/"],
body[data-store-staff-only="1"] a[href="/ar/buy-again/"],
body[data-store-staff-only="1"] a[href="/ar/gift-cards/"],
body[data-store-staff-only="1"] a[href="/ar/vendor-registration/"],
body[data-store-staff-only="1"] a[href="/ar/favorites/"],
body[data-store-staff-only="1"] a[href="/ar/compare/"],
body[data-store-staff-only="1"] a[href="/ar/returns/"],
body[data-store-staff-only="1"] a[href="/ar/track-order/"],
body[data-store-staff-only="1"] [data-add-to-cart],
body[data-store-staff-only="1"] [data-add-bundle-to-cart],
body[data-store-staff-only="1"] [data-cart-count] {
  display: none !important;
}
