[hidden] {
  display: none !important;
}
:root {
  --mobile-cols: 2;
  --desktop-cols: 4;
  --picture-ratio: 1;
  --picture-fit: contain;
  --card-font: 1rem;
}
.bottom-nav {
  display: none;
}
.layout-preview {
  display: grid;
  gap: 8px;
  max-width: 390px;
  padding: 16px;
  background: #f3f0e8;
  border: 1px solid #ddd;
  border-radius: 20px;
}
.layout-preview article {
  background: var(--surface, #fff);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  padding: 8px;
}
.layout-preview .sample-image {
  background: linear-gradient(145deg, #d9e5d9, #eae2ce);
  display: grid;
  place-items: center;
  color: #42604b;
  font-size: 30px;
  aspect-ratio: 1;
}
.layout-preview p {
  font-size: 12px;
  margin: 6px 0;
}
.product-grid {
  grid-template-columns: repeat(var(--desktop-cols), minmax(0, 1fr));
}
.product-picture {
  aspect-ratio: var(--picture-ratio);
  height: auto;
}
.product-picture img {
  height: 100%;
  width: 100%;
  object-fit: var(--picture-fit);
}
.product-card h2 {
  font-size: var(--card-font);
}
.product-card {
  min-width: 0;
}
.product-card .price del {
  font-size: 0.75em;
  font-weight: 400;
  color: #76766e;
}
.offer-label {
  display: block;
  color: #386c48;
  font-size: 0.82rem;
}
.shipping-search {
  max-width: 580px;
  width: 100%;
  margin: 16px 0;
}
.shipping-list {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.shipping-city {
  background: var(--surface, #fff);
  border: 1px solid #dddcd3;
  border-radius: 16px;
  padding: 18px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.shipping-city small {
  display: block;
  color: #777;
}
.touch-gallery img {
  cursor: zoom-in;
}
.image-zoom {
  max-width: 95vw;
  max-height: 95vh;
  padding: 10px;
  border: 0;
  border-radius: 16px;
  background: #f7f5ef;
}
.image-zoom::backdrop {
  background: #132a23d9;
}
.image-zoom img {
  display: block;
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
}
.image-zoom button {
  margin: 4px;
}
.bottom-nav b {
  background: #c95239;
  color: #fff;
  border-radius: 20px;
  padding: 1px 5px;
  font-size: 11px;
}
.bottom-nav a[aria-current="page"] {
  color: #2d6345;
  background: var(--brand-soft, #eaf1e7);
  border-radius: 12px;
}
.bottom-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  min-height: 44px;
  font-size: 12px;
  font-weight: 700;
  color: #465348;
  padding: 6px;
  gap: 3px;
}
.bottom-nav {
  z-index: 30;
  background: #fffefbf5;
  backdrop-filter: blur(12px);
  box-shadow: 0 -5px 30px #16362712;
  border-top: 1px solid #e8e9df;
  padding: 5px 8px calc(5px + env(safe-area-inset-bottom));
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.whatsapp {
  margin-block: 8px;
}
.gallery.touch-gallery {
  align-items: start;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #b19a58;
  outline-offset: 3px;
}
@media (max-width: 700px) {
  body {
    padding-bottom: 82px;
  }
  .bottom-nav {
    display: grid;
  }
  .product-grid {
    grid-template-columns: repeat(var(--mobile-cols), minmax(0, 1fr));
    gap: 10px;
  }
  .product-info {
    padding: 11px;
  }
  .product-card h2 {
    font-size: calc(var(--card-font) * 0.94);
    overflow-wrap: anywhere;
  }
  .product-card .add-form {
    flex-wrap: wrap;
  }
  .product-card .add-form button {
    width: 100%;
    min-height: 42px;
  }
  .product-card .add-form label {
    width: 100%;
  }
  .product-card input {
    font-size: 16px;
    max-width: 100%;
  }
  .shop-header {
    position: relative;
  }
  .shop-header nav {
    gap: 12px;
  }
  .touch-gallery {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    border-radius: 20px;
  }
  .touch-gallery img {
    flex: 0 0 100%;
    width: 100%;
    scroll-snap-align: center;
    max-height: 480px;
    object-fit: contain;
  }
  .basket-row {
    gap: 8px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 22px;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .shipping-list {
    grid-template-columns: 1fr;
  }
  .shop-footer {
    padding-bottom: 30px;
  }
  .admin-bottom a {
    font-size: 12px;
  }
  .table-wrap {
    overflow: auto;
  }
  .pagination a {
    padding: 12px 24px;
  }
}

/* OMRINAD 0.5 — modern admin polish */
.app {
  background: var(--bg, #f6f8f5);
}
.app main {
  max-width: 1500px;
  margin-inline: auto;
}
.app .page-heading {
  align-items: center;
}
.app .page-heading h1 {
  letter-spacing: -0.035em;
}
.app .card {
  border: 1px solid #e6ebe5;
  box-shadow: 0 10px 35px rgba(18, 49, 39, 0.055);
  border-radius: 20px;
}
.app button,
.app .button {
  border-radius: 13px;
  min-height: 44px;
  font-weight: 800;
}
.app input,
.app select,
.app textarea {
  border-radius: 13px;
  min-height: 44px;
  border-color: var(--line, #dce4dd);
  background: var(--surface, #fff);
}
.app input:focus,
.app select:focus,
.app textarea:focus {
  outline: 3px solid color-mix(in srgb, var(--brand, #19896b) 12%, transparent);
  border-color: var(--brand, #19896b);
}
.app .product-card {
  border: 1px solid var(--line, #e3e9e3);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(19, 51, 40, 0.07);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}
.app .product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(19, 51, 40, 0.11);
}
.app .product-card .product-visual,
.app .product-card .product-picture {
  background: #f2f5f0;
}
.app .product-card h2 {
  font-weight: 850;
  letter-spacing: -0.02em;
}
.app .product-card .price {
  font-size: 1.12rem;
  font-weight: 900;
}
.app .badge {
  border-radius: 999px;
}
.admin-bottom {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  height: auto;
}
.admin-bottom a {
  position: relative;
  flex-direction: column;
  gap: 3px;
  padding: 7px 3px 5px;
  border-radius: 15px !important;
  color: #68736d !important;
  font-size: 12px !important;
}
.admin-bottom .nav-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 30px;
  height: 25px;
}
.admin-bottom svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.9;
}
.admin-bottom a[aria-current="page"] {
  background: var(--brand-soft, #eaf4ee) !important;
  color: #126c55 !important;
}
.admin-bottom a[aria-current="page"] .nav-icon {
  transform: translateY(-1px);
}
.admin-bottom .nav-create {
  color: #fff !important;
  background: #16886b !important;
  margin-top: -18px;
  border: 5px solid var(--bg, #f6f8f5) !important;
  border-radius: 19px !important;
  box-shadow: 0 8px 22px
    color-mix(in srgb, var(--brand, #19896b) 28%, transparent);
}
.admin-bottom .nav-create .nav-icon {
  height: 29px;
}
.admin-bottom .nav-create svg {
  width: 25px;
  height: 25px;
}
.admin-bottom .nav-create span:last-child {
  font-size: 11px;
}
.admin-bottom b[data-order-badge] {
  position: absolute;
  top: -5px;
  left: -7px;
  min-width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  padding: 0 4px;
}
.city-manager {
  display: grid;
  gap: 16px;
}
.city-toolbar {
  position: sticky;
  top: 8px;
  z-index: 12;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line, #e3e9e3);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 10px 30px rgba(18, 49, 39, 0.08);
}
.city-search-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 10px;
}
.city-search-wrap {
  position: relative;
}
.city-search-wrap svg {
  position: absolute;
  right: 14px;
  top: 50%;
  translate: 0 -50%;
  width: 21px;
  height: 21px;
  color: #6e7b74;
}
.city-search-wrap input {
  width: 100%;
  padding-right: 46px;
}
.city-filters {
  display: flex;
  gap: 7px;
  overflow: auto;
  padding-top: 10px;
}
.city-filter {
  white-space: nowrap;
  border: 1px solid var(--line, #dfe7e0);
  background: var(--surface, #fff);
  color: #4f5f57;
  padding: 7px 12px;
  min-height: 36px !important;
  border-radius: 999px !important;
}
.city-filter.is-active {
  background: var(--brand-deep, #163e33);
  color: #fff;
  border-color: var(--brand-deep, #163e33);
}
.city-stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: #66736c;
  font-size: 0.86rem;
  padding-top: 10px;
}
.city-stats strong {
  color: #173d32;
}
.city-table {
  overflow: hidden;
  border: 1px solid var(--line, #e3e9e3);
  border-radius: 18px;
  background: var(--surface, #fff);
}
.city-head,
.city-row {
  display: grid;
  grid-template-columns:
    minmax(180px, 1.2fr) minmax(180px, 1fr)
    130px 105px 74px;
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
}
.city-head {
  background: #f5f8f5;
  color: #64726a;
  font-size: 0.8rem;
  font-weight: 800;
}
.city-row {
  border-top: 1px solid #edf0ed;
}
.city-row:hover {
  background: #fbfcfa;
}
.city-remote {
  font-weight: 800;
}
.city-remote small {
  display: block;
  color: #849087;
  font-weight: 500;
  margin-top: 2px;
}
.city-row input {
  min-height: 40px;
}
.city-row .fee-input {
  direction: ltr;
  text-align: center;
  font-weight: 850;
}
.city-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
}
.city-save {
  min-height: 38px !important;
  padding: 6px 11px !important;
}
.city-empty {
  padding: 35px;
  text-align: center;
  color: #738078;
}
.city-bulk {
  display: flex;
  gap: 8px;
  align-items: center;
}
.city-bulk input {
  max-width: 120px;
}
.city-row[hidden] {
  display: none !important;
}
@media (max-width: 900px) {
  .city-head {
    display: none;
  }
  .city-table {
    background: transparent;
    border: 0;
    display: grid;
    gap: 10px;
  }
  .city-row {
    grid-template-columns: 1fr 1fr;
    border: 1px solid var(--line, #e3e9e3);
    border-radius: 17px;
    background: var(--surface, #fff);
    padding: 12px;
  }
  .city-remote {
    grid-column: 1/-1;
  }
  .city-row .city-aliases {
    grid-column: 1/-1;
  }
  .city-row .fee-input {
    width: 100%;
  }
  .city-toggle {
    justify-content: flex-start;
  }
  .city-save {
    width: 100%;
  }
  .city-search-row {
    grid-template-columns: 1fr;
  }
  .city-bulk {
    justify-content: space-between;
  }
  .app .product-grid {
    gap: 12px;
  }
}
@media (max-width: 700px) {
  body.app {
    padding-bottom: 92px;
  }
  .app main {
    padding-inline: 14px;
  }
  .app .page-heading {
    margin-bottom: 18px;
  }
  .app .page-heading .button {
    min-height: 42px;
  }
  .app .product-card {
    border-radius: 18px;
  }
  .app .product-info {
    padding: 12px;
  }
  .bottom-nav {
    padding: 6px 8px calc(7px + env(safe-area-inset-bottom));
    box-shadow: 0 -8px 28px rgba(18, 49, 39, 0.1);
  }
  .city-toolbar {
    top: 6px;
    margin-inline: -2px;
  }
  .city-row {
    grid-template-columns: minmax(0, 1fr) 96px;
  }
  .city-row .city-aliases {
    grid-column: 1/-1;
  }
  .city-toggle {
    font-size: 0.78rem;
  }
  .city-save {
    padding-inline: 7px !important;
  }
  .city-stats {
    font-size: 0.78rem;
  }
}

/* 0.5.3 — unified searchable city dropdown */
.city-picker-label {
  position: relative;
  overflow: visible !important;
}
.city-picker {
  position: relative;
  display: block;
  margin-top: 6px;
}
.city-picker-control {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 48px;
  background: var(--surface, #fff);
  border: 1px solid var(--line, #dce4dd);
  border-radius: 14px;
  transition: 0.16s ease;
  box-shadow: 0 2px 8px rgba(20, 55, 43, 0.025);
}
.city-picker.is-open .city-picker-control,
.city-picker-control:focus-within {
  border-color: var(--brand, #19896b);
  box-shadow: 0 0 0 3px
    color-mix(in srgb, var(--brand, #19896b) 11%, transparent);
}
.city-picker-control svg,
.city-picker-search-icon {
  position: absolute;
  right: 14px;
  width: 20px;
  height: 20px;
  color: #68776f;
  z-index: 1;
}
.city-picker-search-icon {
  display: grid;
  place-items: center;
  font-size: 23px;
}
.city-picker-control input {
  width: 100% !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 10px 44px 10px 38px !important;
  margin: 0 !important;
  min-height: 46px !important;
  font-weight: 750;
}
.city-picker-chevron {
  position: absolute;
  left: 14px;
  color: #64736b;
  font-size: 20px;
  line-height: 1;
  transition: transform 0.15s;
}
.city-picker.is-open .city-picker-chevron {
  transform: rotate(180deg);
}
.city-picker select[data-city-picker-select] {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.city-picker-menu {
  position: absolute;
  z-index: 1000;
  top: calc(100% + 7px);
  right: 0;
  left: 0;
  max-height: 320px;
  overflow: auto;
  background: var(--surface, #fff);
  border: 1px solid var(--line, #dfe7e0);
  border-radius: 16px;
  padding: 7px;
  box-shadow: 0 18px 48px rgba(17, 49, 38, 0.17);
}
.city-picker-option {
  width: 100%;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  text-align: right !important;
  background: transparent !important;
  color: #21372f !important;
  border: 0 !important;
  border-radius: 11px !important;
  padding: 9px 11px !important;
  min-height: 52px !important;
  box-shadow: none !important;
}
.city-picker-option:hover,
.city-picker-option:focus {
  background: var(--brand-soft, #f0f7f3) !important;
}
.city-picker-option span {
  display: grid;
  gap: 2px;
}
.city-picker-option b {
  font-size: 0.94rem;
}
.city-picker-option small {
  font-size: 0.77rem;
  color: var(--muted, #748179);
  font-weight: 600;
}
.city-picker-option i {
  font-style: normal;
  color: var(--brand, #19896b);
  opacity: 0;
  font-size: 18px;
}
.city-picker-option.is-selected {
  background: #edf7f1 !important;
}
.city-picker-option.is-selected i {
  opacity: 1;
}
.city-picker-empty {
  display: block;
  padding: 18px;
  text-align: center;
  color: var(--muted, #748179);
  font-size: 0.88rem;
}
.grid .city-picker-label {
  min-width: 0;
}
@media (max-width: 700px) {
  .city-picker-menu {
    position: fixed;
    top: auto;
    bottom: calc(78px + env(safe-area-inset-bottom));
    right: 12px;
    left: 12px;
    max-height: min(52vh, 420px);
    border-radius: 20px;
    padding: 8px;
    box-shadow: 0 20px 60px rgba(10, 37, 28, 0.25);
  }
  .city-picker-option {
    min-height: 56px !important;
  }
}

/* 0.5.4 — mobile-first customer storefront */
.store-live-search {
  position: relative;
  display: block !important;
  flex: 1;
  min-width: 0;
}
.store-live-search .search-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 25px;
  color: #65736b;
  z-index: 1;
  pointer-events: none;
}
.store-live-search input {
  width: 100%;
  min-height: 50px;
  padding: 10px 48px 10px 16px !important;
  border: 1px solid #dfe5dd;
  border-radius: 16px;
  background: var(--surface, #fff);
  box-shadow: 0 5px 18px rgba(23, 61, 48, 0.045);
  font-size: 16px;
}
.store-live-search input:focus {
  outline: 3px solid rgba(24, 112, 83, 0.1);
  border-color: #2b765f;
}
.store-switch {
  flex: 0 0 auto;
  border-radius: 14px;
  padding: 4px;
  background: #edf3ea;
}
.store-switch a {
  border-radius: 11px !important;
}
.store-categories {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 5px 1px 9px;
  scroll-snap-type: x proximity;
}
.store-categories::-webkit-scrollbar {
  display: none;
}
.store-categories a {
  flex: 0 0 auto;
  white-space: nowrap;
  border-radius: 999px !important;
  padding: 9px 17px !important;
  scroll-snap-align: start;
}
.store-section-heading {
  margin-top: 20px;
}
.store-section-heading h2 {
  font-size: 1.35rem;
}
.store-product-grid .product-card {
  border: 1px solid var(--line, #e4e8df);
  border-radius: 19px;
  overflow: hidden;
  background: var(--surface, #fff);
  box-shadow: 0 9px 28px rgba(27, 56, 46, 0.055);
}
.store-product-grid .product-picture {
  display: block;
  background: #f4f5ef;
  padding: 6px;
}
.store-product-grid .product-picture img {
  border-radius: 14px;
}
.store-product-grid .product-info {
  position: relative;
}
.store-product-grid .product-top {
  align-items: center;
}
.store-product-grid .product-top small {
  color: #7b837c;
}
.store-product-grid .favorite {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  padding: 0 !important;
  background: var(--surface, #fff) !important;
  color: #667467 !important;
  border: 1px solid var(--line, #e4e8df) !important;
  font-size: 22px;
}
.store-product-grid .price {
  font-size: 1.12rem;
  font-weight: 900;
  color: #173f33;
  margin: 0.45rem 0;
}
.modern-add-form {
  display: grid !important;
  gap: 8px !important;
}
.qty-stepper {
  display: grid;
  grid-template-columns: 34px minmax(34px, 1fr) 34px;
  align-items: center;
  border: 1px solid #e0e5dd;
  border-radius: 12px;
  background: #fafbf8;
  overflow: hidden;
  min-height: 40px;
}
.qty-stepper button {
  min-height: 40px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #1b5745 !important;
  padding: 0 !important;
  font-size: 20px;
  font-weight: 900;
}
.qty-stepper input {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: 0 !important;
  text-align: center !important;
  padding: 0 !important;
  min-height: 38px !important;
  width: 100% !important;
  appearance: textfield;
}
.qty-stepper input::-webkit-inner-spin-button,
.qty-stepper input::-webkit-outer-spin-button {
  appearance: none;
  margin: 0;
}
.add-cart-button {
  min-height: 41px !important;
  border-radius: 12px !important;
  font-size: 0.86rem !important;
}
.store-bottom a {
  position: relative;
  flex-direction: column;
  gap: 2px !important;
  font-size: 12px !important;
  border-radius: 14px;
}
.store-nav-icon {
  position: relative;
  width: 26px;
  height: 25px;
  display: grid;
  place-items: center;
}
.store-nav-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.store-cart-nav .store-nav-icon {
  width: 42px;
  height: 42px;
  margin-top: -18px;
  border-radius: 15px;
  background: var(--brand-strong, #175b48);
  color: #fff;
  box-shadow: 0 7px 20px rgba(23, 91, 72, 0.24);
  border: 4px solid #fff;
}
.store-cart-nav .store-nav-icon svg {
  width: 23px;
  height: 23px;
}
.store-cart-nav b {
  position: absolute;
  top: -6px;
  left: -6px;
  min-width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  padding: 0 4px;
}
.store-bottom a[aria-current="page"] {
  background: var(--brand-soft, #eef5eb);
  color: #155a46;
}
@media (max-width: 700px) {
  main {
    overflow-x: hidden;
  }
  .store-catalog-toolbar {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    margin-top: 10px;
  }
  .store-switch {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }
  .store-switch a {
    text-align: center;
  }
  .store-categories {
    margin-inline: -2px;
    padding-inline: 2px;
  }
  .store-section-heading {
    display: flex !important;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 12px;
  }
  .store-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    align-items: start;
  }
  .store-product-grid .product-card {
    width: 100%;
    min-width: 0;
  }
  .store-product-grid .product-picture {
    aspect-ratio: 1/1 !important;
  }
  .store-product-grid .product-info {
    padding: 10px !important;
  }
  .store-product-grid .product-card h2 {
    font-size: 0.95rem !important;
    line-height: 1.35;
    margin: 0.35rem 0;
    min-height: 2.55em;
  }
  .store-product-grid .product-top small {
    font-size: 0.72rem;
  }
  .store-product-grid .favorite {
    width: 31px;
    height: 31px;
    font-size: 19px;
  }
  .store-product-grid .price {
    font-size: 1.05rem;
    margin: 0.35rem 0 0.55rem;
  }
  .store-product-grid .price small {
    font-size: 0.68rem;
  }
  .store-product-grid .modern-add-form {
    display: grid !important;
  }
  .store-product-grid .modern-add-form label {
    width: auto !important;
  }
  .store-product-grid .add-cart-button {
    width: 100% !important;
  }
  .bottom-nav.store-bottom {
    padding-top: 7px;
    padding-bottom: calc(7px + env(safe-area-inset-bottom));
    min-height: 65px;
  }
  .shop-footer {
    padding-bottom: 44px;
  }
}
@media (max-width: 360px) {
  .store-product-grid {
    gap: 7px !important;
  }
  .store-product-grid .product-info {
    padding: 8px !important;
  }
  .qty-stepper {
    grid-template-columns: 30px minmax(30px, 1fr) 30px;
  }
  .store-product-grid .product-card h2 {
    font-size: 0.88rem !important;
  }
}

/* 0.5.5 — storefront card/list switch. Bottom navigation intentionally unchanged. */
.product-view-toggle {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border: 1px solid #e0e6de;
  border-radius: 13px;
  background: #f4f7f2;
  flex: 0 0 auto;
}
.product-view-toggle button {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 36px !important;
  padding: 6px 10px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: transparent !important;
  color: #68756e !important;
  box-shadow: none !important;
  font-size: 0.78rem !important;
  font-weight: 800 !important;
}
.product-view-toggle button.is-active {
  background: var(--surface, #fff) !important;
  color: var(--brand-strong, #175b48) !important;
  box-shadow: 0 2px 9px rgba(24, 70, 55, 0.09) !important;
}
.product-view-toggle svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.store-section-heading > div:first-child {
  display: grid;
  gap: 2px;
}
.store-section-heading > div:first-child h2 {
  margin: 0;
}
.store-section-heading > div:first-child small {
  color: #7b857f;
}
.store-product-grid.is-list-view {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 9px !important;
}
.store-product-grid.is-list-view .product-card {
  display: grid !important;
  grid-template-columns: 104px minmax(0, 1fr);
  min-height: 116px;
  border-radius: 16px !important;
  overflow: hidden;
}
.store-product-grid.is-list-view .product-picture {
  width: 104px;
  height: 100%;
  min-height: 116px;
  aspect-ratio: auto !important;
  padding: 5px !important;
}
.store-product-grid.is-list-view .product-picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 11px;
}
.store-product-grid.is-list-view .product-info {
  padding: 9px 10px !important;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "top top" "name name" "price price" "form form";
  align-content: center;
  column-gap: 8px;
}
.store-product-grid.is-list-view .product-top {
  grid-area: top;
}
.store-product-grid.is-list-view .product-info > a {
  grid-area: name;
  min-width: 0;
}
.store-product-grid.is-list-view .product-card h2 {
  min-height: 0 !important;
  margin: 2px 0 !important;
  font-size: 0.91rem !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.store-product-grid.is-list-view .price {
  grid-area: price;
  margin: 2px 0 6px !important;
  font-size: 1rem !important;
}
.store-product-grid.is-list-view .modern-add-form {
  grid-area: form;
  grid-template-columns: minmax(110px, 1fr) minmax(105px, 1fr) !important;
  gap: 7px !important;
  align-items: center;
}
.store-product-grid.is-list-view .qty-stepper,
.store-product-grid.is-list-view .add-cart-button {
  min-height: 37px !important;
}
.store-product-grid.is-list-view .favorite {
  width: 29px;
  height: 29px;
  font-size: 18px;
}
@media (max-width: 700px) {
  .store-section-heading {
    align-items: center !important;
  }
  .product-view-toggle button {
    padding-inline: 8px !important;
  }
  .product-view-toggle button span {
    display: none;
  }
  .store-product-grid.is-list-view .product-card {
    grid-template-columns: 96px minmax(0, 1fr);
  }
  .store-product-grid.is-list-view .product-picture {
    width: 96px;
    min-height: 112px;
  }
  .store-product-grid.is-list-view .modern-add-form {
    grid-template-columns: 1fr 1fr !important;
  }
  .store-product-grid:not(.is-list-view) .product-card h2 {
    min-height: 2.55em;
  }
}
@media (max-width: 360px) {
  .store-product-grid.is-list-view .product-card {
    grid-template-columns: 88px minmax(0, 1fr);
  }
  .store-product-grid.is-list-view .product-picture {
    width: 88px;
  }
  .store-product-grid.is-list-view .modern-add-form {
    grid-template-columns: 1fr !important;
  }
  .store-product-grid.is-list-view .add-cart-button {
    display: none;
  }
}
/* 0.6 media library */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}
.media-card {
  background: var(--surface, #fff);
  border: 1px solid var(--line, #e7e7e2);
  border-radius: 18px;
  overflow: hidden;
}
.media-card > img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  background: #f6f6f2;
}
.media-card > div {
  padding: 12px;
  display: grid;
  gap: 9px;
}
.media-card small {
  display: block;
  color: #70766f;
  margin-top: 4px;
}
.media-card form {
  display: grid;
  gap: 8px;
}
.upload-zone {
  display: block;
  border: 1.5px dashed #b9c7bd;
  border-radius: 16px;
  padding: 18px;
  margin: 12px 0;
  background: var(--brand-soft, #f8fbf8);
}
.toolbar form {
  display: flex;
  gap: 8px;
  align-items: center;
}
.toolbar .search {
  flex: 1;
}
@media (max-width: 640px) {
  .media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .media-card > div {
    padding: 9px;
  }
  .media-card select,
  .media-card button {
    font-size: 12px;
  }
  .toolbar form {
    display: grid;
    grid-template-columns: 1fr auto;
  }
}
.product-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.product-admin-card {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  align-items: start;
}
.product-admin-card .product-visual {
  aspect-ratio: 1/1;
}
.toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
@media (max-width: 640px) {
  .product-admin-grid {
    grid-template-columns: 1fr;
  }
  .product-admin-card {
    grid-template-columns: 92px 1fr;
  }
}
/* 0.6.1 — compact storefront footer/list + responsive web-order actions. Bottom navigation intentionally unchanged. */
.shop-footer {
  margin-top: 28px !important;
  min-height: 0 !important;
  padding-top: 30px !important;
  padding-bottom: 92px !important;
}
.shop-footer > div {
  align-self: start;
}
.store-product-grid.is-list-view {
  margin-bottom: 18px !important;
}
.store-product-grid.is-list-view .product-card {
  min-height: 108px !important;
}
.store-product-grid.is-list-view .product-picture {
  min-height: 108px !important;
}
.store-product-grid.is-list-view .product-picture img {
  object-fit: contain !important;
  background: #f5f6f1;
}
.order-actions-head {
  width: 70px;
}
.order-menu {
  position: relative;
}
.order-menu > summary {
  list-style: none;
  cursor: pointer;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid #dfe5df;
  border-radius: 12px;
  background: var(--surface, #fff);
  font-size: 23px;
  font-weight: 800;
}
.order-menu > summary::-webkit-details-marker {
  display: none;
}
.order-menu-pop {
  position: absolute;
  z-index: 30;
  left: 0;
  top: 44px;
  min-width: 180px;
  padding: 7px;
  background: var(--surface, #fff);
  border: 1px solid #e1e6e1;
  border-radius: 14px;
  box-shadow: 0 14px 40px rgba(20, 50, 40, 0.15);
}
.order-menu-pop a,
.order-menu-pop button {
  display: block;
  width: 100%;
  text-align: right;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 10px 11px;
  border-radius: 9px;
  font: inherit;
  text-decoration: none;
}
.order-menu-pop a:hover,
.order-menu-pop button:hover {
  background: #f3f6f2;
}
.order-menu-pop form {
  margin: 0;
}
.order-menu-pop .danger-text {
  color: #a33131;
}
@media (max-width: 700px) {
  .weborders-table {
    overflow: visible !important;
  }
  .weborders-table table,
  .weborders-table tbody {
    display: block;
  }
  .weborders-table thead {
    display: none;
  }
  .weborders-table tr:first-child {
    display: none;
  }
  .weborders-table .order-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 14px;
    padding: 15px 14px;
    margin-bottom: 10px;
    border: 1px solid #e5e9e4;
    border-radius: 16px;
    background: var(--surface, #fff);
  }
  .weborders-table .order-row td {
    display: block !important;
    border: 0 !important;
    padding: 0 !important;
  }
  .weborders-table .order-row td:before {
    content: attr(data-label);
    display: block;
    color: #8a938c;
    font-size: 12px;
    margin-bottom: 2px;
  }
  .weborders-table .order-row td:nth-child(1),
  .weborders-table .order-row td:nth-child(2) {
    grid-column: 1;
  }
  .weborders-table .order-row td:nth-child(3),
  .weborders-table .order-row td:nth-child(4),
  .weborders-table .order-row td:nth-child(5) {
    grid-column: 1;
  }
  .weborders-table .order-actions {
    grid-column: 2 !important;
    grid-row: 1/5;
    align-self: start;
  }
  .weborders-table .order-actions:before {
    display: none !important;
  }
  .order-menu-pop {
    left: 0;
    right: auto;
  }
  .order-number {
    font-weight: 800;
  }
  .shop-footer {
    margin-top: 20px !important;
  }
}

/* 0.6.7 cities split + compact pagination */
.city-page-head .city-stats a {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid #e2e8e3;
  border-radius: 999px;
  text-decoration: none;
}
.city-list-toolbar {
  position: sticky;
  top: 8px;
  z-index: 15;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 150px 100px auto;
  gap: 9px;
  align-items: end;
}
.city-table.compact .city-row {
  padding-block: 8px;
}
.city-table.compact .city-row input {
  min-height: 38px;
}
.city-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 18px 0 28px;
}
.city-pagination span {
  font-weight: 750;
  color: #5f6f67;
}
@media (max-width: 800px) {
  .city-list-toolbar {
    grid-template-columns: 1fr 1fr;
  }
  .city-list-toolbar input {
    grid-column: 1/-1;
  }
  .city-pagination {
    justify-content: space-between;
  }
  .city-pagination span {
    font-size: 0.8rem;
  }
}

/* 0.6.9 customer cards inspired by the approved mobile reference; bottom navigation untouched. */
.customer-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 10px;
  margin: 12px 0;
}
.customer-cards {
  display: grid;
  gap: 10px;
}
.customer-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 17px;
  border: 1px solid #e3e8e4;
  border-radius: 18px;
  background: var(--surface, #fff);
  box-shadow: 0 7px 24px rgba(20, 58, 45, 0.05);
}
.customer-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.customer-main > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.customer-main strong {
  font-size: 1.05rem;
  color: #174f70;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.customer-main small {
  color: var(--muted, #718078);
}
.customer-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eef3f6;
  color: #244d68;
}
.customer-avatar svg,
.customer-wa svg {
  width: 21px;
  height: 21px;
}
.customer-quick {
  display: flex;
  align-items: center;
  gap: 8px;
}
.customer-wa {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--brand, #15945c);
  color: #fff;
}
.customer-menu {
  position: relative;
}
.customer-menu > summary {
  list-style: none;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #edf2f4;
  color: #24516b;
  font-size: 24px;
  cursor: pointer;
}
.customer-menu > summary::-webkit-details-marker {
  display: none;
}
.customer-sheet {
  position: absolute;
  z-index: 60;
  left: 0;
  top: 48px;
  width: min(420px, 88vw);
  padding: 16px;
  border: 1px solid #e0e6e2;
  border-radius: 20px;
  background: var(--surface, #fff);
  box-shadow: 0 22px 60px rgba(20, 50, 40, 0.22);
}
.customer-sheet h3 {
  margin-top: 0;
  text-align: center;
}
.customer-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.customer-actions form {
  margin: 0;
}
.customer-actions .button,
.customer-actions button {
  width: 100%;
  margin: 0;
  text-align: center;
}
.customer-wa-action {
  background: var(--brand, #15945c) !important;
}
.invite-result input {
  width: 100%;
  margin: 8px 0;
}
.customer-add summary {
  cursor: pointer;
}
@media (max-width: 700px) {
  .customer-toolbar {
    grid-template-columns: 1fr;
  }
  .customer-card {
    padding: 13px;
  }
  .customer-main strong {
    font-size: 0.98rem;
  }
  .customer-sheet {
    position: fixed;
    left: 16px;
    right: 16px;
    top: auto;
    bottom: 82px;
    width: auto;
  }
  .customer-actions {
    grid-template-columns: 1fr 1fr;
  }
  .customer-actions .customer-close {
    grid-column: 1/-1;
  }
}
/* 0.7.0 — approved OMRINAD visual language: calm background, rounded white cards, green identity. Bottom nav unchanged. */
.customer-cards {
  gap: 12px;
}
.customer-card {
  border: 0;
  border-radius: 24px;
  padding: 16px 18px;
  box-shadow: 0 8px 30px rgba(29, 58, 47, 0.07);
}
.customer-main {
  text-decoration: none;
  color: inherit;
}
.customer-main strong {
  color: #183f34;
  font-size: 1.08rem;
}
.customer-avatar {
  background: var(--brand-soft, #eef6f1);
  color: var(--brand-strong, #176c4d);
}
.account-pill {
  width: max-content;
  margin-top: 4px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  background: #eef1ef;
  color: #65736c;
}
.account-pill.active {
  background: #e3f6ea;
  color: #167145;
}
.account-pill.invited {
  background: #fff4d8;
  color: #8a6500;
}
.customer-wa {
  background: #138a5a;
  border-radius: 14px;
}
.customer-menu > summary {
  background: #f0f4f2;
  color: #2f5d4c;
  border-radius: 14px;
}
.customer-sheet {
  border: 0;
  border-radius: 26px;
}
.customer-profile,
.shipment-view {
  display: grid;
  gap: 16px;
}
.profile-hero,
.shipment-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px;
  border-radius: 26px;
  background: var(--surface, #fff);
  box-shadow: 0 8px 30px rgba(29, 58, 47, 0.07);
}
.profile-hero h2 {
  margin: 3px 0;
  color: #173e33;
}
.profile-hero p {
  margin: 0;
  color: #748078;
}
.profile-actions,
.contact-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.profile-grid,
.shipment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.profile-grid > div,
.shipment-grid > div,
.customer-summary > div,
.courier-card {
  padding: 17px;
  border-radius: 20px;
  background: var(--surface, #fff);
  box-shadow: 0 5px 22px rgba(29, 58, 47, 0.05);
}
.profile-grid small,
.shipment-grid small,
.customer-summary small,
.shipment-hero small {
  display: block;
  color: #89938e;
  margin-bottom: 5px;
}
.profile-grid .wide {
  grid-column: 1/-1;
}
.customer-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.customer-summary strong {
  font-size: 1.25rem;
  color: var(--brand-strong, #176c4d);
}
.shipment-hero {
  background: linear-gradient(135deg, #177b57, #0f6547);
  color: #fff;
}
.shipment-hero small,
.shipment-hero span {
  color: #dcefe7;
}
.shipment-hero strong {
  display: block;
  font-size: 1.45rem;
  margin: 4px 0;
}
.tracking-code {
  font-weight: 850;
  background: rgba(255, 255, 255, 0.14);
  padding: 9px 12px;
  border-radius: 13px;
}
.courier-card h3,
.tracking-timeline h3 {
  margin-top: 0;
}
.tracking-timeline {
  padding: 20px;
  border-radius: 24px;
  background: var(--surface, #fff);
  box-shadow: 0 8px 30px rgba(29, 58, 47, 0.06);
}
.timeline-item {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  position: relative;
  padding-bottom: 18px;
}
.timeline-item i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #17815a;
  margin-top: 5px;
  box-shadow: 0 0 0 4px #e6f4ed;
}
.timeline-item:not(:last-child):before {
  content: "";
  position: absolute;
  right: 5px;
  top: 18px;
  bottom: 0;
  width: 2px;
  background: #e1ebe6;
}
.timeline-item div {
  display: grid;
  gap: 2px;
}
.timeline-item small,
.timeline-item time {
  color: #7e8b84;
  font-size: 0.78rem;
}
.tracking-panel > summary {
  cursor: pointer;
}
@media (max-width: 700px) {
  .customer-card {
    border-radius: 21px;
  }
  .profile-hero {
    align-items: flex-start;
    flex-direction: column;
  }
  .profile-hero .button {
    width: 100%;
    text-align: center;
  }
  .profile-grid,
  .shipment-grid {
    grid-template-columns: 1fr;
  }
  .profile-grid .wide {
    grid-column: auto;
  }
  .shipment-hero {
    align-items: flex-start;
    flex-direction: column;
  }
  .tracking-code {
    align-self: stretch;
    text-align: center;
  }
  .customer-sheet {
    border-radius: 26px 26px 18px 18px;
  }
  .profile-actions,
  .contact-strip {
    grid-template-columns: 1fr 1fr;
  }
}

/* 0.7.1 compact interaction system: lists stay short; details open on demand */
.compact-section > summary,
.shipment-result > summary,
.tracking-panel > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  padding: 4px 0;
}
.compact-section > summary::-webkit-details-marker,
.shipment-result > summary::-webkit-details-marker,
.tracking-panel > summary::-webkit-details-marker {
  display: none;
}
.compact-section > summary span,
.shipment-result > summary span {
  font-size: 0.78rem;
  color: var(--muted, #718078);
  font-weight: 700;
}
.compact-section[open] > summary,
.shipment-result[open] > summary {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #edf1ee;
}
.shipment-result {
  margin-top: 12px;
  border: 1px solid var(--line, #e3e9e5);
  border-radius: 20px;
  background: var(--surface, #fff);
  padding: 14px;
}
.settings-hub {
  margin-bottom: 14px;
}
.settings-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.settings-links a {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--surface, #fff);
  border: 1px solid var(--line, #e3e9e5);
  text-decoration: none;
  color: #1c4f40;
  font-weight: 800;
}
.tracking-panel:not([open]) {
  padding-block: 14px;
}
.city-row-form {
  margin: 0;
}
.city-table.compact {
  max-height: none;
}
.customer-profile + .compact-section {
  margin-top: 12px;
}
@media (max-width: 700px) {
  .settings-links {
    grid-template-columns: 1fr;
  }
  .shipment-result {
    padding: 12px;
  }
  .city-list-toolbar {
    position: static;
  }
  .city-page-head {
    padding: 15px;
  }
  .city-table.compact .city-row {
    padding: 10px 12px;
  }
}

/* 0.7.2 — compact customer shipping directory */
.shipping-compact-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 10px;
}
.shipping-compact-head h1 {
  margin: 0;
  font-size: 1.35rem;
}
.shipping-compact-head p {
  margin: 3px 0 0;
  color: var(--muted, #68736b);
  font-size: 0.9rem;
}
.shipping-count {
  white-space: nowrap;
  font-size: 0.78rem;
  color: var(--muted, #68736b);
  background: #eef3ed;
  border-radius: 999px;
  padding: 5px 9px;
}
.shipping-searchbar {
  position: sticky;
  top: 6px;
  z-index: 12;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface, #fff);
  border: 1px solid #dfe5de;
  border-radius: 12px;
  padding: 0 10px;
  box-shadow: 0 4px 16px #17351f0b;
  margin-bottom: 8px;
}
.shipping-searchbar:focus-within {
  border-color: #6c9879;
  box-shadow: 0 0 0 3px #dfece2;
}
.shipping-searchbar .shipping-search {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  margin: 0 !important;
  padding: 10px 2px !important;
  max-width: none;
  min-width: 0;
  flex: 1;
}
.shipping-searchbar button {
  border: 0;
  background: transparent;
  color: var(--muted, #68736b);
  font-size: 20px;
  padding: 4px 8px;
}
.shipping-list {
  display: block;
  border: 1px solid #e4e8e2;
  border-radius: 13px;
  overflow: hidden;
  background: var(--surface, #fff);
}
.shipping-city {
  min-height: 48px;
  border: 0;
  border-bottom: 1px solid #edf0eb;
  border-radius: 0;
  padding: 7px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--surface, #fff);
}
.shipping-city:last-child {
  border-bottom: 0;
}
.shipping-city-name {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 7px;
}
.shipping-city b {
  font-size: 0.94rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.shipping-city small {
  color: #7a837c;
  font-size: 0.72rem;
}
.shipping-city > strong {
  white-space: nowrap;
  color: #235b38;
  font-size: 0.95rem;
}
.shipping-city > strong small {
  color: inherit;
}
.shipping-empty {
  text-align: center;
  color: #6d756f;
  padding: 22px 10px;
}
.shipping-more {
  display: block;
  margin: 10px auto 0;
  min-height: 38px;
  padding: 7px 18px;
}
.shipping-city[hidden] {
  display: none !important;
}
@media (max-width: 520px) {
  .shipping-compact-head {
    align-items: center;
  }
  .shipping-compact-head p {
    font-size: 0.82rem;
  }
  .shipping-city-name {
    display: block;
  }
  .shipping-city-name small {
    display: block;
    margin-top: 1px;
  }
  .shipping-city {
    min-height: 46px;
    padding: 6px 10px;
  }
}
