:root {
  --ink: #192e27;
  --green: #124735;
  --lime: #deeeac;
  --line: #dce1d9;
  --cream: #f8f8f2;
  --muted: #57685c;
  font-family: Tahoma, "Noto Sans Arabic", Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-size: 16px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: var(--green);
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
select,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #ba792c;
  outline-offset: 3px;
}
.wrap {
  width: min(1190px, 92%);
  margin: auto;
}
.bar {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.barin,
.brand,
.actions,
nav,
.row,
.toolbar,
.modalhead,
footer,
.pager {
  display: flex;
  align-items: center;
  gap: 14px;
}
.barin {
  min-height: 82px;
  justify-content: space-between;
}
.brand {
  font-size: 1.24rem;
  font-weight: 800;
  line-height: 1.35;
  gap: 10px;
  color: var(--green);
}
.brand small {
  font:
    700 0.59rem/1.6 Arial,
    sans-serif;
  letter-spacing: 1.3px;
  display: block;
}
.brand small[hidden] {
  display: none;
}
.brandicon {
  background: var(--green);
  color: var(--lime);
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font: 600 2rem/1 Arial;
}
.actions {
  gap: 8px;
}
nav {
  gap: 28px;
}
nav a {
  padding: 9px 1px;
  font-weight: 600;
}
nav a.active {
  border-bottom: 2px solid var(--green);
}
button,
.btn {
  border: 1px solid transparent;
  border-radius: 9px;
  font-weight: 650;
  min-height: 43px;
  padding: 8px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.primary,
.btn {
  background: var(--green);
  color: white;
}
.primary:hover,
.btn:hover {
  background: #236647;
}
.light,
.icon {
  border-color: var(--line);
  background: white;
}
.icon {
  min-width: 40px;
  padding: 5px 10px;
}
.skip {
  position: absolute;
  top: -80px;
}
.skip:focus {
  top: 0;
  background: white;
  z-index: 5;
}
.hero {
  background: #113e32;
  color: white;
  overflow: hidden;
}
.heroin {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 270px;
}
.herotext {
  padding: 34px 0 34px 30px;
  z-index: 1;
  align-self: center;
}
.over {
  color: var(--lime);
  font-weight: 700;
  font-size: 0.92rem;
  margin: 0 0 11px;
}
.herotext h1 {
  font-size: clamp(2.4rem, 4.8vw, 4.3rem);
  line-height: 1.12;
  letter-spacing: -0.06em;
  margin: 0 0 12px;
}
.herotext > p:last-child {
  margin: 0;
  color: #e4eee5;
  line-height: 1.8;
}
.heroin > img {
  height: 100%;
  width: 100%;
  position: absolute;
  inset-inline-end: 0;
  max-width: 52%;
  object-fit: cover;
  mask-image: linear-gradient(to right, black 75%, transparent);
}
.content {
  min-height: 45vh;
  padding: 32px 0 52px;
}
.sectionhead {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 14px;
  margin: 0 0 20px;
}
.sectionhead h2,
h2 {
  font-size: 1.7rem;
  margin: 0;
}
.sub,
.meta {
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.93rem;
}
.sub {
  margin: 5px 0 0;
}
.toolbar {
  background: #fff;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  align-items: stretch;
  flex-wrap: wrap;
}
.toolbar label {
  position: relative;
  display: flex;
  flex: 1;
  min-width: 130px;
}
.toolbar .search {
  flex: 2.4;
  min-width: 200px;
}
.toolbar input,
.toolbar select,
.field input,
.field select,
.field textarea {
  width: 100%;
  background: #f9faf7;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 44px;
}
.chips {
  display: flex;
  gap: 7px;
  overflow: auto;
  margin: 15px 0 21px;
  padding: 2px 2px 6px;
}
.chip {
  white-space: nowrap;
  min-height: 35px;
  font-size: 0.91rem;
  background: white;
  border: 1px solid var(--line);
  padding: 4px 14px;
  border-radius: 22px;
}
.chip[aria-pressed="true"] {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 19px;
}
.card {
  position: relative;
  background: white;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  display: flex;
  flex-direction: column;
}
.cardpic {
  position: relative;
  background: #edefe6;
  aspect-ratio: 2.35;
  overflow: hidden;
}
.cardpic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.save {
  position: absolute;
  left: 12px;
  top: 12px;
  background: #fffffff2;
  border: 1px solid #deded4;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  min-height: 0;
  font: 1.45rem Arial;
  padding: 3px;
}
.save.on {
  color: #943f46;
}
.badge {
  background: var(--lime);
  color: #243c21;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 750;
  font-size: 0.84rem;
}
.cardpic .badge {
  position: absolute;
  right: 12px;
  top: 12px;
}
.cardbody {
  padding: 15px 17px;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
}
.card h3 {
  margin: 0;
  font-size: 1.21rem;
}
.card .meta {
  margin: 0;
}
.split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--green);
}
.unit {
  font-size: 0.87rem;
  color: var(--muted);
}
.expiry {
  padding: 8px 0;
  border-top: 1px solid #edf0e9;
  font-size: 0.91rem;
  color: var(--green);
}
.soon {
  color: #8b4a14;
}
.cardbottom {
  margin-top: auto;
}
.cardbottom button {
  width: 100%;
}
.empty,
.panel,
.notice,
.plan {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 21px;
}
.empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 40px;
}
.notice {
  margin: 15px 0;
  background: #f0f4e4;
  font-size: 0.95rem;
}
.pager {
  justify-content: center;
  margin: 20px 0;
}
.panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}
.panel h3,
.plan h3 {
  margin: 0 0 10px;
}
.row {
  flex-wrap: wrap;
}
.panel + .panel {
  margin-top: 12px;
}
.panels .panel + .panel {
  margin: 0;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.93rem;
  font-weight: 650;
}
.field textarea {
  min-height: 72px;
}
.date-controls {
  position: relative;
}
.date-controls input[type="text"] {
  padding-left: 52px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.date-picker {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 44px;
  display: grid;
  place-items: center;
  border-inline-start: 1px solid var(--line);
  color: var(--green);
}
.date-picker svg {
  width: 20px;
  height: 20px;
}
.date-picker:focus-within {
  outline: 3px solid #ba792c;
  border-radius: 8px;
}
.date-picker input[type="date"],
.date-picker input::-webkit-calendar-picker-indicator {
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
  margin: 14px 0;
}
.wide {
  grid-column: 1/-1;
}
.modalhead {
  justify-content: space-between;
  margin: 0 0 16px;
}
.modalhead h2 {
  font-size: 1.45rem;
}
dialog {
  border: none;
  border-radius: 18px;
  padding: 24px;
  width: min(560px, 94vw);
  max-height: 88dvh;
  overflow: auto;
  color: var(--ink);
  box-shadow: 0 20px 80px #102c2545;
}
dialog::backdrop {
  background: #0b211bb8;
}
.detailphoto {
  width: 100%;
  max-height: 210px;
  object-fit: cover;
  border-radius: 10px;
}
.facts {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 18px;
}
.facts dt,
.facts dd {
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.facts dt {
  color: var(--muted);
}
.facts dd {
  font-weight: 700;
  text-align: end;
}
.err {
  color: #9d2920;
  font-weight: 650;
}
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 11px 21px;
  color: white;
  background: #163e31;
  box-shadow: 0 6px 24px #0002;
  border-radius: 10px;
  z-index: 20;
  display: none;
}
.toast.show {
  display: block;
}
.note {
  margin: 12px 0;
  color: var(--muted);
  line-height: 1.8;
}
.plan strong {
  font-size: 1.3rem;
}
.plan.pro {
  background: #eaf1db;
}
.listrow {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.listrow:last-child {
  border: 0;
}
.tabs {
  margin: 15px 0;
}
.danger {
  background: #fff5f2;
  color: #972f26;
  border-color: #ebd2cc;
}
footer {
  border-top: 1px solid var(--line);
  padding: 23px 0 30px;
  justify-content: space-between;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.9rem;
}
footer b {
  font: 700 0.83rem Arial;
}
@media (max-width: 850px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .barin {
    flex-wrap: wrap;
    gap: 6px;
    padding: 12px 0;
  }
  nav {
    order: 3;
    flex-basis: 100%;
    justify-content: center;
    gap: 30px;
  }
  .heroin {
    min-height: 240px;
  }
}
@media (max-width: 560px) {
  .wrap {
    width: 92%;
  }
  .barin {
    min-height: 64px;
  }
  .brand {
    font-size: 1rem;
  }
  .brandicon {
    width: 36px;
    height: 36px;
    font-size: 1.6rem;
  }
  .actions button {
    font-size: 0.84rem;
    min-height: 38px;
    padding: 7px 9px;
  }
  nav {
    justify-content: space-evenly;
  }
  nav a {
    padding: 6px;
  }
  .heroin {
    min-height: 218px;
    grid-template-columns: 1.5fr 1fr;
  }
  .heroin > img {
    max-width: 42%;
    mask-image: linear-gradient(to right, black 45%, transparent);
  }
  .herotext {
    padding: 20px 0 20px 6px;
  }
  .herotext h1 {
    font-size: 2.44rem;
  }
  .herotext > p:last-child {
    font-size: 0.89rem;
  }
  .content {
    padding-top: 20px;
  }
  .grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .cardpic {
    aspect-ratio: 2.65;
  }
  .toolbar {
    gap: 6px;
  }
  .toolbar .search {
    flex-basis: 100%;
  }
  .toolbar label {
    min-width: 0;
  }
  .toolbar select {
    font-size: 0.88rem;
  }
  .panels {
    grid-template-columns: 1fr;
  }
  .fields {
    grid-template-columns: 1fr;
  }
  .fields .wide {
    grid-column: auto;
  }
  .sectionhead {
    align-items: start;
    flex-wrap: wrap;
  }
  .sectionhead h2 {
    font-size: 1.48rem;
  }
  footer {
    gap: 8px;
  }
  .modalhead h2 {
    font-size: 1.2rem;
  }
  dialog {
    padding: 17px;
  }
}
.cardactions {
  display: flex;
  gap: 6px;
}
.cardactions .cmp {
  width: auto;
  flex-shrink: 0;
  background: #eff3e6;
  color: var(--green);
  padding: 7px 12px;
}
.cmp[aria-pressed="true"] {
  background: var(--lime);
}
.comparebar:not([hidden]) {
  position: sticky;
  bottom: 12px;
  margin: 0 auto 12px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 14px;
  display: flex;
  z-index: 3;
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 25px #1b352b29;
  width: max-content;
  max-width: 96%;
}
.tablewrap {
  overflow: auto;
}
.tablewrap table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.95rem;
}
.tablewrap td,
.tablewrap th {
  padding: 10px 7px;
  border-bottom: 1px solid var(--line);
  text-align: start;
  min-width: 85px;
}
.tablewrap thead {
  background: #edf4de;
}
@font-face {
  font-family: PlexArabic;
  src: url(assets/plex-400.woff) format("woff");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: PlexArabic;
  src: url(assets/plex-600.woff) format("woff");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: PlexArabic;
  src: url(assets/plex-700.woff) format("woff");
  font-weight: 700;
  font-display: swap;
}
:root {
  font-family: PlexArabic, Tahoma, Arial, sans-serif;
  --cream: #f8f6ef;
  --ink: #182e25;
  --green: #174534;
  --muted: #52645a;
  --line: #deded2;
  --lime: #eff2c4;
}
body {
  background: var(--cream);
}
.wrap {
  width: min(1232px, 92%);
}
.bar {
  background: #faf9f4;
}
.barin {
  min-height: 72px;
}
.brand {
  gap: 9px;
}
.brand small {
  letter-spacing: 1px;
  font-size: 0.65rem;
}
.brandicon {
  color: #faf7e5;
  background: #234934;
  border-radius: 8px 16px 8px 8px;
  font: bold 1.35rem/1 Georgia;
  letter-spacing: -0.18em;
  padding-right: 4px;
}
.accountlink {
  border: 1px solid #b9c5b8;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
}
.actions {
  gap: 10px;
}
.actions .primary {
  background: #e2a33b;
  color: #30270e;
}
.actions .primary:hover {
  background: #edb855;
}
.hero {
  margin: 22px auto 0;
  width: min(1232px, 92%);
  border-radius: 20px;
  overflow: hidden;
  background: #173f32;
}
.heroin.wrap {
  width: 100%;
  min-height: 265px;
  display: grid;
  grid-template-columns: 49% 51%;
}
.herotext {
  padding: 28px clamp(24px, 3.4vw, 55px);
}
.herotext h1 {
  font-size: clamp(2.8rem, 4.6vw, 4.3rem);
  line-height: 1.1;
  letter-spacing: -0.045em;
}
.herotext h1 span {
  display: block;
  color: #f0d7a2;
}
.herotext .over {
  font-size: 0.9rem;
  color: #f2e8cb;
  border-inline-start: 3px solid #e2a33b;
  padding-inline-start: 10px;
}
.herotext > p:last-child {
  font-size: 1rem;
  max-width: 370px;
}
.heroin > img {
  position: static;
  max-width: none;
  min-width: 0;
  align-self: stretch;
  height: 100%;
  object-fit: cover;
  mask-image: none;
  clip-path: polygon(0 0, 100% 0, 94% 100%, 0% 100%);
}
.markethead > div {
  display: flex;
  gap: 15px;
  align-items: baseline;
}
.sectionhead h2 {
  font-size: 1.8rem;
  letter-spacing: -0.045em;
}
.content {
  padding-top: 24px;
}
.toolbar {
  border-radius: 12px;
  background: #fffefb;
  padding: 8px;
}
.toolbar .search input {
  background: #f3f4eb;
}
.chips .chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 9px;
}
.chips .chip img {
  width: 30px;
  height: 30px;
  object-fit: cover;
  border-radius: 5px;
}
.chips .chip {
  min-height: 40px;
}
.chips {
  margin: 12px 0 9px;
}
.card {
  border-radius: 14px;
  box-shadow: 0 4px 15px #202b1d06;
}
.cardpic {
  aspect-ratio: 2.35;
}
.cardpic .badge {
  background: #f3d693;
  color: #463115;
  border: 1px solid #e8c77c;
}
.card h3 {
  font-size: 1.35rem;
  letter-spacing: -0.035em;
}
.cardbody {
  gap: 4px;
  padding: 13px 16px;
}
.meta {
  font-size: 0.88rem;
}
.card .split {
  margin: 3px 0;
}
.price {
  font:
    700 1.65rem/1.2 Arial,
    sans-serif;
  direction: ltr;
  font-variant-numeric: tabular-nums;
}
.expiry {
  background: #f4f4ea;
  border: none;
  border-radius: 6px;
  padding: 5px 9px;
  font-size: 0.88rem;
  margin-bottom: 6px;
}
.offer-action {
  color: white;
  background: #1d4837;
}
.offer-action:hover {
  background: #2e614b;
}
.cardactions .cmp {
  background: white;
  border: 1px solid var(--line);
}
.cardactions .cmp[aria-pressed="true"] {
  background: var(--lime);
}
.sellerhead,
.onboarding {
  border-radius: 15px;
  padding: 24px;
  background: #173f32;
  color: white;
}
.sellerhead .sub,
.sellerhead a {
  color: #e0e9d8;
}
.sellerhead button {
  color: var(--ink);
}
.onboarding {
  background: #f0f0dd;
  color: var(--ink);
  border: 1px solid #d9ddc4;
  margin-bottom: 24px;
}
.onboarding h3 {
  font-size: 1.4rem;
  margin: 0;
}
.onboarding p {
  line-height: 1.7;
}
.merchant-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: white;
  padding: 16px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin: 0 0 23px;
}
.merchant-summary span,
.merchant-summary strong {
  display: block;
}
.merchant-summary span {
  color: var(--muted);
  font-size: 0.88rem;
}
.merchant-summary strong {
  margin-top: 3px;
}
.sectionhead a:focus-visible,
.accountlink:focus-visible {
  outline: 3px solid #df9230;
}
dialog {
  background: #fffef9;
}
.modalhead {
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}
@media (max-width: 720px) {
  .hero {
    margin-top: 12px;
  }
  .heroin.wrap {
    min-height: 185px;
    grid-template-columns: 56% 44%;
  }
  .herotext {
    padding: 18px;
  }
  .herotext h1 {
    font-size: 2.15rem;
  }
  .herotext > p:last-child {
    font-size: 0.89rem;
  }
  .heroin > img {
    object-position: 53% center;
  }
  .barin {
    gap: 6px;
  }
  .accountlink,
  .actions .primary {
    padding: 6px 9px;
    font-size: 0.9rem;
  }
  .actions {
    gap: 5px;
  }
  .brand small {
    font-size: 0.55rem;
  }
  .markethead > div {
    flex-wrap: wrap;
    gap: 4px 12px;
  }
  .sellerhead {
    padding: 16px;
  }
  .content {
    padding-top: 16px;
  }
}
@media (max-width: 560px) {
  .hero {
    border-radius: 12px;
  }
  .heroin.wrap {
    min-height: 160px;
  }
  .herotext {
    padding: 15px 12px;
  }
  .herotext h1 {
    font-size: clamp(1.7rem, 7.4vw, 2.4rem);
    margin: 6px 0;
  }
  .herotext .over {
    font-size: 0.72rem;
    margin: 0;
  }
  .herotext > p:last-child {
    font-size: 0.8rem;
    line-height: 1.6;
  }
  .barin nav {
    gap: 0;
  }
  .wrap,
  .hero {
    width: 94%;
  }
  .toolbar {
    padding: 5px;
  }
  .chips {
    margin-bottom: 4px;
  }
  .card {
    display: grid;
    grid-template-columns: 31% 1fr;
    overflow: hidden;
  }
  .cardpic {
    aspect-ratio: auto;
    height: 100%;
    min-height: 174px;
  }
  .cardpic .badge {
    right: 3px;
    top: 5px;
    font-size: 0.74rem;
    padding: 1px 4px;
  }
  .cardpic .save {
    left: 5px;
    top: auto;
    bottom: 6px;
  }
  .cardbody {
    padding: 10px;
    min-width: 0;
    gap: 3px;
  }
  .card h3 {
    font-size: 1.1rem;
  }
  .card .meta {
    font-size: 0.78rem;
  }
  .card .price {
    font-size: 1.2rem;
  }
  .card .unit {
    font-size: 0.8rem;
  }
  .card .split {
    gap: 3px;
    flex-wrap: wrap;
  }
  .cardactions button {
    font-size: 0.8rem;
    padding: 4px 6px;
    min-height: 39px;
  }
  .cardactions .cmp {
    padding: 4px 6px;
  }
  .card .expiry {
    font-size: 0.8rem;
    padding: 4px 6px;
  }
  .sectionhead {
    margin-bottom: 12px;
  }
  .sectionhead h2 {
    font-size: 1.45rem;
  }
  .merchant-summary {
    gap: 10px;
    padding: 12px;
  }
  .cardpic img {
    object-position: center;
  }
}

#adminNav[hidden] { display: none; }
