: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 {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--ink);
  white-space: nowrap;
}

.header-tools a:hover,
.header-tools a.is-active {
  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));
  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-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);
}

.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-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-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-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-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-rate-row {
  display: grid;
  grid-template-columns: minmax(140px, 1.2fr) repeat(3, minmax(120px, 1fr)) auto auto;
  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);
}

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;
}

.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-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;
}

.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-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-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-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);
}

.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;
}

.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;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  margin-bottom: 24px;
}

.admin-actions .button {
  min-height: 40px;
}

.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;
}

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

.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--wide {
  grid-column: 1 / -1;
}

.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;
}

.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;
}

.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;
}

.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;
}

.inline-form.is-saving,
.product-admin-row.is-saving,
.admin-filter.is-saving {
  opacity: .72;
}

.inline-form.is-saving button,
.product-admin-row.is-saving button,
.admin-filter.is-saving button {
  cursor: wait;
}

.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: 260px;
  margin-top: 8px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.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: 18px;
  border-inline-start: 2px solid rgba(15, 118, 110, .12);
}

.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 input {
  width: auto;
  margin: 0;
}

.category-check small {
  margin-inline-start: auto;
  color: var(--brand);
}

.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-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;
}

.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-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;
}

.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 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;
}

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

.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;
}

.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,
  .store-hero__inner,
  .store-layout,
  .product-reviews-layout,
  .order-detail-layout,
  .product-detail,
  .shop-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  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-row {
    grid-template-columns: 1fr;
  }

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

  .admin-filter,
  .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;
  }

  .product-editor-side {
    position: static;
  }

  .wallet-transfer-form {
    position: static;
  }

  .product-list-row img,
  .product-list-row__placeholder {
    width: 100%;
    height: 140px;
  }

  .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-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;
  }

  .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 {
    display: grid;
    min-width: 0;
    min-height: 46px;
    place-items: center;
    padding: 4px 2px;
    border-radius: 12px;
    color: #30423e;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.2;
    text-align: center;
  }

  .mobile-bottom-nav a.is-active,
  .mobile-bottom-nav a:hover {
    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: 430px;
  padding: 62px 0 68px;
  text-align: center;
  background:
    linear-gradient(145deg, rgba(90, 18, 40, .96) 0%, rgba(123, 30, 58, .94) 58%, rgba(160, 48, 80, .90) 100%);
}

.hero::before {
  opacity: .045;
}

.hero::after {
  width: 420px;
  height: 420px;
  inset-inline-start: -160px;
  inset-block-end: -220px;
  opacity: .6;
}

.hero__grid {
  grid-template-columns: minmax(0, 920px);
  justify-content: center;
  gap: 0;
}

.hero__copy {
  display: grid;
  justify-items: center;
}

.hero__copy > span {
  min-height: 32px;
  padding-inline: 14px;
}

.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;
}

.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: center;
  margin-top: 16px;
}

.hero .button {
  min-height: 42px;
  padding-inline: 20px;
}

@media (max-width: 980px) {
  .hero {
    padding: 40px 0 44px;
  }

  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-search input,
  .hero-search button {
    height: 60px;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-block: 30px 34px;
  }

  .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__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-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-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: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;
}

.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);
}

@media (max-width: 980px) {
  .shipping-filter,
  .shipping-card__meta,
  .shipping-update-form,
  .manual-order-form__customer,
  .manual-order-form__meta,
  .manual-order-item-row {
    grid-template-columns: 1fr;
  }

  .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 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-catalog:not([hidden]) {
  position: fixed;
  inset: 0;
  z-index: 130;
  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));
  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__tools span,
.manual-catalog__footer span {
  color: var(--muted);
  font-weight: 900;
  white-space: nowrap;
}

.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;
}

@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-order-selected-item {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .manual-order-selected-item label,
  .manual-order-selected-item .button {
    grid-column: 1 / -1;
  }

  .manual-catalog__panel {
    width: 100vw;
    max-height: 100dvh;
    border-radius: 0;
  }

  .manual-catalog__grid {
    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;
  }

  .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;
  }
}
