:root {
  --brand: #2f5b45;
  --brand-deep: #183c2d;
  --brand-soft: #e5eee8;
  --ink: #201f1b;
  --ink-soft: #575b55;
  --muted: #777b74;
  --canvas: #f5f2eb;
  --canvas-warm: #eee8dc;
  --surface: #fffefa;
  --surface-strong: #ffffff;
  --line: #dedbd2;
  --line-soft: #ebe8e0;
  --success: #277a4c;
  --success-soft: #e6f4eb;
  --warning: #a76a1f;
  --danger: #ad3f38;
  --danger-soft: #fbecea;
  --whatsapp: #168b51;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 34px;
  --shadow-sm: 0 8px 24px rgba(38, 37, 31, .06);
  --shadow-md: 0 20px 60px rgba(31, 44, 36, .10);
  --shadow-lg: 0 34px 100px rgba(26, 38, 31, .16);
  --transition: 180ms cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: Tahoma, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }
img { max-width: 100%; }
::selection { color: #fff; background: var(--brand); }
:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brand) 30%, white);
  outline-offset: 3px;
}

.container { width: min(1240px, calc(100% - 48px)); margin-inline: auto; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.hide { display: none !important; }
.logo {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 14px;
  color: #fff;
  background: var(--brand-deep);
  font-size: 21px;
  font-weight: 900;
}
.logo img { width: 100%; height: 100%; object-fit: cover; }
.eyebrow, .kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #d9bc82;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
}
.eyebrow-dark, .kicker { color: var(--brand); }
.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 10px 16px;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
}
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button:disabled { cursor: wait; opacity: .62; transform: none; }
.button-primary { color: #fff; background: var(--brand); box-shadow: 0 9px 22px color-mix(in srgb, var(--brand) 20%, transparent); }
.button-primary:hover { background: color-mix(in srgb, var(--brand) 90%, #000); }
.button-secondary { color: var(--ink); background: var(--surface-strong); border-color: var(--line); box-shadow: 0 2px 0 rgba(30, 30, 24, .02); }
.button-secondary:hover { border-color: #c8c4b8; background: #fff; }
.button-dark { color: #fff; background: var(--ink); }
.button-whatsapp { color: #fff; background: var(--whatsapp); }
.button-danger { color: #fff; background: var(--danger); }
.button-small { min-height: 44px; padding: 8px 13px; font-size: 13px; }
.button-large { min-height: 52px; padding: 14px 21px; }
.text-link { color: var(--ink); font-size: 14px; font-weight: 850; text-underline-offset: 5px; }

/* Landing */
.landing-body {
  background:
    radial-gradient(circle at 86% 8%, rgba(173, 202, 184, .42), transparent 27rem),
    radial-gradient(circle at 3% 44%, rgba(213, 190, 144, .22), transparent 25rem),
    var(--canvas);
}
.landing-nav {
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.landing-brand, .store-brand, .login-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.landing-brand > span:last-child, .store-brand > span:last-child, .login-brand > span:last-child { display: grid; }
.landing-brand strong, .store-brand strong, .login-brand strong { font-size: 19px; line-height: 1.15; }
.landing-brand small, .store-brand small, .login-brand small { color: var(--muted); font-size: 11px; margin-top: 3px; }
.landing-nav-actions { display: flex; align-items: center; gap: 25px; }
.landing-hero {
  min-height: 720px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
  align-items: center;
  gap: 82px;
  padding-block: 55px 100px;
}
.landing-copy h1 {
  max-width: 760px;
  margin: 22px 0 24px;
  font-size: clamp(50px, 6.3vw, 88px);
  line-height: 1.05;
  letter-spacing: -3.4px;
}
.landing-copy h1 em { color: var(--brand); font-style: normal; }
.landing-copy > p {
  max-width: 670px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.9;
}
.landing-actions { display: flex; align-items: center; gap: 22px; margin-top: 30px; }
.landing-proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 650px;
  margin: 46px 0 0;
  padding-top: 25px;
  border-top: 1px solid var(--line);
}
.landing-proof div { padding-inline: 18px; border-inline-start: 1px solid var(--line); }
.landing-proof div:first-child { padding-inline-start: 0; border: 0; }
.landing-proof dt { font-size: 20px; font-weight: 900; }
.landing-proof dd { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.landing-showcase { position: relative; min-height: 590px; display: grid; place-items: center; }
.landing-showcase::before {
  content: "";
  position: absolute;
  width: 90%;
  aspect-ratio: 1;
  border: 1px solid rgba(47, 91, 69, .18);
  border-radius: 50%;
}
.showcase-card {
  position: relative;
  width: min(470px, 88%);
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 31px;
  background: rgba(255, 254, 250, .91);
  box-shadow: var(--shadow-lg);
  transform: rotate(1.8deg);
  backdrop-filter: blur(14px);
}
.showcase-header { display: flex; align-items: center; gap: 10px; padding: 3px 4px 14px; }
.showcase-logo { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: #fff; background: var(--brand); font-weight: 900; }
.showcase-header div { display: grid; }
.showcase-header strong { font-size: 13px; }
.showcase-header small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.showcase-menu { margin-inline-start: auto; color: var(--muted); letter-spacing: 2px; }
.showcase-hero {
  min-height: 265px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  overflow: hidden;
  position: relative;
  border-radius: 23px;
  color: #fff;
  background:
    radial-gradient(circle at 0 0, rgba(255, 255, 255, .08) 0 17%, transparent 17.2%),
    linear-gradient(135deg, #35664e, #16392b);
}
.showcase-hero::after { content: "ل"; position: absolute; inset: -38px auto auto -8px; color: rgba(255,255,255,.035); font-size: 230px; font-weight: 900; line-height: 1; }
.showcase-hero span { color: #e5cc9b; font-size: 10px; font-weight: 800; }
.showcase-hero strong { margin-top: 9px; font-size: 32px; line-height: 1.18; }
.showcase-products { display: grid; grid-template-columns: 1.15fr .85fr; gap: 9px; margin-top: 9px; }
.showcase-product { display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid var(--line-soft); border-radius: 15px; background: #fff; }
.showcase-product.featured { border-color: color-mix(in srgb, var(--brand) 25%, white); }
.showcase-image { width: 56px; height: 57px; flex: 0 0 56px; display: grid; place-items: center; border-radius: 11px; color: #6a5131; background: #e9dfd0; font-size: 23px; font-weight: 900; }
.image-gift { color: var(--brand); background: var(--brand-soft); }
.showcase-product p { display: grid; gap: 5px; margin: 0; }
.showcase-product b { font-size: 10px; }
.showcase-product small { color: var(--brand); font-size: 9px; font-weight: 900; direction: ltr; }
.showcase-note, .showcase-order {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255,255,255,.75);
  background: rgba(255,254,250,.94);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
}
.showcase-note { inset: 65px -18px auto auto; border-radius: 999px; padding: 10px 14px; font-size: 10px; font-weight: 850; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: #3da36c; box-shadow: 0 0 0 5px #e2f1e8; }
.showcase-order { inset: auto auto 56px -22px; min-width: 190px; padding: 12px; border-radius: 16px; }
.showcase-order > span { width: 33px; height: 33px; display: grid; place-items: center; border-radius: 10px; color: #fff; background: var(--whatsapp); }
.showcase-order div { display: grid; gap: 3px; }
.showcase-order strong { font-size: 11px; }
.showcase-order small { color: var(--muted); font-size: 9px; }
.landing-value {
  position: relative;
  overflow: hidden;
  padding-block: 118px 132px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 12%, rgba(255,255,255,.08) 0 9rem, transparent 9.1rem),
    radial-gradient(circle at 9% 95%, rgba(229,204,155,.11) 0 16rem, transparent 16.1rem),
    linear-gradient(135deg, #214b38, #102d21);
}
.landing-value::before {
  content: "ل";
  position: absolute;
  inset: -100px auto auto -35px;
  color: rgba(255,255,255,.025);
  font-size: 520px;
  font-weight: 900;
  line-height: 1;
}
.landing-value-inner { position: relative; z-index: 1; }
.section-intro { max-width: 760px; }
.section-intro h2 { margin: 16px 0 0; font-size: clamp(38px, 4.5vw, 61px); line-height: 1.16; letter-spacing: -1.8px; }
.section-intro h2 em { color: #e5cc9b; font-style: normal; }
.section-intro > p { max-width: 610px; margin: 20px 0 0; color: rgba(255,255,255,.64); font-size: 15px; line-height: 1.9; }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 62px; }
.value-grid article { min-height: 290px; display: flex; flex-direction: column; padding: 27px; border: 1px solid rgba(255,255,255,.13); border-radius: var(--radius-lg); background: rgba(255,255,255,.055); backdrop-filter: blur(8px); }
.value-grid article > span { color: #e5cc9b; font-size: 11px; font-weight: 900; }
.value-icon { width: 47px; height: 47px; display: grid; place-items: center; margin-top: 45px; border: 1px solid rgba(255,255,255,.15); border-radius: 15px; color: #e5cc9b; background: rgba(255,255,255,.06); font-size: 20px; }
.value-grid h3 { margin: auto 0 10px; font-size: 23px; }
.value-grid p { margin: 0; color: rgba(255,255,255,.58); font-size: 13px; line-height: 1.8; }
.value-grid .value-featured { color: var(--brand-deep); border-color: #ead5ac; background: #e5cc9b; box-shadow: 0 26px 70px rgba(5,20,13,.19); transform: translateY(-12px); }
.value-featured > span, .value-featured .value-icon { color: var(--brand-deep); }
.value-featured .value-icon { border-color: rgba(24,60,45,.16); background: rgba(255,255,255,.28); }
.value-grid .value-featured p { color: rgba(24,60,45,.7); }
.landing-footer {
  min-height: 165px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
}
.landing-footer div { display: grid; gap: 5px; }
.landing-footer strong { font-size: 25px; }
.landing-footer span { color: var(--muted); font-size: 13px; }

/* Storefront */
.store-body { background: #f7f4ed; }
.store-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(220, 216, 205, .8);
  background: rgba(247, 244, 237, .88);
  backdrop-filter: blur(16px);
}
.store-nav { height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.store-brand strong { font-size: 16px; }
.store-brand small { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.store-hero {
  min-height: 570px;
  display: grid;
  grid-template-columns: 1fr 315px;
  align-items: end;
  gap: 80px;
  margin-top: 22px;
  padding: 76px;
  overflow: hidden;
  position: relative;
  border-radius: 35px;
  color: #fff;
  background:
    radial-gradient(circle at 8% 5%, rgba(255,255,255,.07) 0 14%, transparent 14.2%),
    radial-gradient(circle at 96% 96%, rgba(255,255,255,.04) 0 24%, transparent 24.2%),
    linear-gradient(125deg, color-mix(in srgb, var(--brand) 88%, #10291f), color-mix(in srgb, var(--brand) 58%, #07130e));
  box-shadow: 0 25px 80px color-mix(in srgb, var(--brand) 17%, transparent);
}
.store-hero::after { content: "ل"; position: absolute; inset: -120px auto auto -30px; color: rgba(255,255,255,.025); font-size: 520px; font-weight: 900; line-height: 1; }
.store-hero-copy { position: relative; z-index: 1; }
.store-hero h1 { margin: 17px 0 20px; font-size: clamp(52px, 6.5vw, 88px); line-height: 1.03; letter-spacing: -3px; }
.store-hero h1 em { color: #e8ce9c; font-style: normal; }
.store-hero-copy > p { max-width: 670px; margin: 0; color: rgba(255,255,255,.82); font-size: 17px; line-height: 1.9; }
.store-trust { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 27px; }
.store-trust span { padding: 8px 11px; border: 1px solid rgba(255,255,255,.13); border-radius: 999px; background: rgba(255,255,255,.07); font-size: 11px; font-weight: 800; }
.store-trust span::before { content: "✓"; margin-inline-end: 6px; color: #e8ce9c; }
.store-hero-card { position: relative; z-index: 1; padding: 26px; border: 1px solid rgba(255,255,255,.15); border-radius: 21px; background: rgba(255,255,255,.08); backdrop-filter: blur(8px); }
.hero-card-number { color: #e8ce9c; font-size: 11px; font-weight: 900; }
.store-hero-card strong { display: block; margin-top: 30px; font-size: 17px; line-height: 1.55; }
.store-hero-card p { margin: 9px 0 25px; color: rgba(255,255,255,.68); font-size: 12px; line-height: 1.75; }
.hero-card-line { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 5px; }
.hero-card-line span { height: 3px; border-radius: 999px; background: rgba(255,255,255,.22); }
.hero-card-line span:first-child { background: #e8ce9c; }
.catalog { padding-block: 95px 105px; }
.catalog-header { display: flex; justify-content: space-between; align-items: end; gap: 35px; }
.catalog-header h2 { margin: 12px 0 5px; font-size: 42px; letter-spacing: -1px; }
.catalog-header p { margin: 0; color: var(--muted); font-size: 13px; }
.store-search, .admin-search { position: relative; display: block; }
.store-search { width: min(390px, 100%); }
.store-search input, .admin-search input {
  width: 100%;
  min-height: 48px;
  padding: 11px 44px 11px 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  outline: none;
  color: var(--ink);
  background: var(--surface-strong);
  transition: border var(--transition), box-shadow var(--transition);
}
.store-search > span:last-child, .admin-search > span:last-child { position: absolute; inset: 50% 15px auto auto; color: var(--muted); transform: translateY(-50%); font-size: 19px; pointer-events: none; }
.store-search input:focus, .admin-search input:focus { border-color: color-mix(in srgb, var(--brand) 65%, white); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 9%, transparent); }
.category-list { display: flex; gap: 8px; margin: 30px 0 24px; overflow-x: auto; scrollbar-width: none; }
.category-chip { min-height: 44px; padding: 9px 17px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); background: var(--surface); font-weight: 800; white-space: nowrap; cursor: pointer; transition: var(--transition); }
.category-chip:hover { border-color: color-mix(in srgb, var(--brand) 40%, white); }
.category-chip.active { color: #fff; border-color: var(--brand); background: var(--brand); }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product-card { overflow: hidden; border: 1px solid var(--line-soft); border-radius: 23px; background: var(--surface-strong); box-shadow: 0 7px 22px rgba(31, 32, 27, .035); transition: transform var(--transition), box-shadow var(--transition); }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.product-media { aspect-ratio: 1.14; overflow: hidden; position: relative; background: var(--canvas-warm); }
.product-media img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform 450ms ease; }
.product-card:hover .product-media img { transform: scale(1.025); }
.product-placeholder { width: 100%; height: 100%; display: grid; place-items: center; align-content: center; gap: 5px; color: var(--brand); background: radial-gradient(circle at 50% 40%, #fff 0, transparent 38%), var(--brand-soft); }
.product-placeholder span { font-size: 58px; font-weight: 900; }
.product-placeholder small { opacity: .7; font-size: 10px; }
.product-badge { position: absolute; inset: 14px 14px auto auto; padding: 7px 10px; border: 1px solid rgba(255,255,255,.75); border-radius: 999px; color: var(--brand-deep); background: rgba(255,254,250,.9); box-shadow: var(--shadow-sm); backdrop-filter: blur(8px); font-size: 10px; font-weight: 900; }
.product-content { padding: 20px; }
.product-category { color: var(--brand); font-size: 10px; font-weight: 900; }
.product-content h3 { margin: 8px 0 7px; font-size: 21px; line-height: 1.35; }
.product-content > p { min-height: 49px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.75; }
.product-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.product-price { display: flex; align-items: baseline; gap: 7px; }
.product-price strong { font-size: 19px; white-space: nowrap; }
.product-price strong small { font-size: 10px; }
.product-price del { color: #999b96; font-size: 11px; }
.order-button { min-height: 44px; display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 11px; color: #fff; background: var(--whatsapp); font-size: 12px; font-weight: 900; text-decoration: none; transition: var(--transition); }
.order-button:hover { background: #107344; transform: translateY(-1px); }
.store-empty { grid-column: 1 / -1; display: grid; place-items: center; padding: 70px 20px; border: 1px dashed #d2cec3; border-radius: var(--radius-lg); text-align: center; background: rgba(255,255,255,.5); }
.store-empty > span { color: var(--brand); font-size: 40px; }
.store-empty h3 { margin: 12px 0 5px; }
.store-empty p { margin: 0 0 20px; color: var(--muted); font-size: 13px; }
.store-footer { padding-block: 34px; border-top: 1px solid var(--line); }
.store-footer-inner { display: flex; align-items: center; justify-content: space-between; }
.store-footer-inner div { display: grid; gap: 4px; }
.store-footer-inner strong { font-size: 15px; }
.store-footer-inner span { color: var(--muted); font-size: 11px; }
.store-footer-inner a { color: var(--brand); font-size: 12px; font-weight: 900; }
.mobile-order-bar { display: none; }

/* Shared loading and errors */
.store-skeleton { width: min(1240px, calc(100% - 48px)); margin: auto; padding-block: 24px; }
.skeleton-nav { width: 100%; height: 62px; border-radius: 15px; background: #ebe7de; }
.skeleton-hero { height: 530px; margin-top: 20px; border-radius: 34px; background: #e6e2d9; }
.skeleton-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 70px; }
.skeleton-grid span { height: 360px; border-radius: 23px; background: #ebe7de; }
.store-skeleton > *, .admin-skeleton main span { position: relative; overflow: hidden; }
.store-skeleton > *::after, .skeleton-grid span::after, .admin-skeleton main span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 25%, rgba(255,255,255,.6) 48%, transparent 72%);
  transform: translateX(100%);
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer { to { transform: translateX(-100%); } }
.system-state { min-height: 100vh; display: grid; place-items: center; align-content: center; gap: 11px; padding: 30px; text-align: center; }
.system-state h1 { margin: 10px 0 0; font-size: 30px; }
.system-state p { max-width: 400px; margin: 0 0 12px; color: var(--muted); line-height: 1.7; }

/* Admin */
.admin-body { background: #f2f1ec; }
.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 248px minmax(0, 1fr); }
.sidebar { height: 100vh; display: flex; flex-direction: column; position: sticky; top: 0; padding: 25px 17px 18px; color: #d8e4de; background: #17382b; }
.sidebrand { display: flex; align-items: center; gap: 11px; padding: 0 7px 25px; border-bottom: 1px solid rgba(255,255,255,.09); }
.sidebrand .logo { color: var(--brand-deep); background: #f8f4e9; }
.sidebrand > span:last-child { display: grid; }
.sidebrand strong { color: #fff; font-size: 17px; }
.sidebrand small { margin-top: 2px; color: #9eb1a8; font-size: 10px; }
.side-nav { display: grid; gap: 5px; margin-top: 22px; }
.navitem { min-height: 46px; display: flex; align-items: center; justify-content: space-between; border: 0; border-radius: 12px; padding: 10px 13px; color: #bbcbc4; background: transparent; font-weight: 800; text-align: right; cursor: pointer; }
.navitem small { color: #92a79d; font-size: 10px; }
.navitem:hover, .navitem.active { color: #fff; background: rgba(255,255,255,.085); }
.navitem.active::before { content: ""; width: 4px; height: 18px; margin-inline-end: -13px; border-radius: 0 4px 4px 0; background: #e1c58e; }
.navitem.active span { margin-inline-end: auto; margin-inline-start: 10px; }
.sidebar-store { display: grid; gap: 5px; margin-top: auto; padding: 15px; border: 1px solid rgba(255,255,255,.1); border-radius: 15px; background: rgba(255,255,255,.05); }
.sidebar-store > span { color: #91a59c; font-size: 9px; }
.sidebar-store strong { color: #fff; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-store a { margin-top: 8px; color: #e7ce9d; font-size: 10px; font-weight: 850; }
.admin-main { min-width: 0; padding: 34px clamp(24px, 4vw, 58px) 70px; }
.admin-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.admin-header h1 { margin: 8px 0 5px; font-size: 31px; letter-spacing: -.8px; }
.admin-header p { margin: 0; color: var(--muted); font-size: 13px; }
.admin-header-actions { display: flex; align-items: center; gap: 9px; }
.avatar-button { min-height: 44px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 12px; padding: 5px 6px 5px 10px; background: #fff; cursor: pointer; }
.avatar-button span { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 9px; color: #fff; background: var(--brand); font-size: 11px; font-weight: 900; }
.avatar-button b { font-size: 11px; }
.overview-strip { display: grid; grid-template-columns: repeat(4, 1fr); margin-block: 31px 19px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--surface-strong); }
.overview-strip > div { min-width: 0; padding: 19px 21px; border-inline-start: 1px solid var(--line-soft); }
.overview-strip > div:first-child { border: 0; }
.overview-strip span, .overview-strip small { display: block; color: var(--muted); font-size: 10px; }
.overview-strip strong { display: block; margin: 9px 0 4px; font-size: 26px; }
.overview-strip .overview-accent { color: #fff; background: var(--brand); border: 0; }
.overview-accent span, .overview-accent small { color: rgba(255,255,255,.68); }
.admin-panel { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--surface-strong); box-shadow: 0 8px 35px rgba(35,37,31,.035); }
.admin-panel-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 24px; border-bottom: 1px solid var(--line-soft); }
.admin-panel-header h2 { margin: 6px 0 3px; font-size: 21px; }
.admin-panel-header p { margin: 0; color: var(--muted); font-size: 10px; }
.panel-actions { display: flex; gap: 8px; }
.admin-toolbar { display: grid; grid-template-columns: minmax(240px, 1fr) 170px 190px; align-items: end; gap: 10px; padding: 14px 24px; border-bottom: 1px solid var(--line-soft); background: #fbfaf6; }
.admin-search input { min-height: 43px; font-size: 12px; }
.compact-field { display: grid; gap: 5px; }
.compact-field > span { color: var(--muted); font-size: 9px; font-weight: 800; }
.compact-field select { width: 100%; min-height: 43px; border: 1px solid var(--line); border-radius: 11px; padding: 8px 10px; outline: none; color: var(--ink); background: #fff; font-size: 11px; }
.compact-field select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 8%, transparent); }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; min-width: 790px; border-collapse: collapse; }
.admin-table th { padding: 11px 14px; color: var(--muted); background: #f7f6f2; font-size: 9px; font-weight: 850; text-align: right; }
.admin-table td { padding: 12px 14px; border-top: 1px solid var(--line-soft); vertical-align: middle; font-size: 11px; }
.admin-table tbody tr { transition: background var(--transition); }
.admin-table tbody tr:hover { background: #fbfaf7; }
.admin-thumb { width: 47px; height: 43px; display: block; border-radius: 10px; object-fit: cover; background: var(--canvas-warm); }
.admin-thumb-fallback { display: grid; place-items: center; color: var(--brand); background: var(--brand-soft); font-size: 16px; font-weight: 900; }
.product-name { display: block; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.table-note { display: block; max-width: 260px; margin-top: 4px; overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.table-category { display: inline-flex; padding: 6px 8px; border-radius: 8px; color: var(--ink-soft); background: #f1f0eb; font-size: 9px; font-weight: 800; white-space: nowrap; }
.table-price { display: grid; gap: 3px; justify-items: start; white-space: nowrap; }
.table-price strong { font-size: 10px; }
.table-price del { color: var(--muted); font-size: 8px; }
.visibility-toggle { min-width: 76px; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 999px; padding: 7px 10px; color: #686b66; background: #ecece8; font-size: 9px; font-weight: 850; cursor: pointer; }
.visibility-toggle span { width: 8px; height: 8px; border-radius: 50%; background: #9b9e98; }
.visibility-toggle.is-visible { color: var(--success); background: var(--success-soft); }
.visibility-toggle.is-visible span { background: var(--success); box-shadow: 0 0 0 3px rgba(39,122,76,.1); }
.row-actions, .admin-card-actions { display: flex; align-items: center; justify-content: flex-end; gap: 5px; }
.quiet-button, .menu-button { min-height: 44px; border: 1px solid var(--line); border-radius: 9px; padding: 7px 10px; background: #fff; font-size: 9px; font-weight: 800; cursor: pointer; }
.quiet-button:hover, .menu-button:hover { border-color: #c8c4b8; background: #f8f7f3; }
.danger { color: var(--danger); }
.admin-mobile-list { display: none; }
.admin-empty { display: grid; place-items: center; padding: 48px 20px; text-align: center; }
.admin-empty > span { color: var(--brand); font-size: 30px; }
.admin-empty strong { margin-top: 8px; font-size: 14px; }
.admin-empty p { margin: 5px 0 16px; color: var(--muted); font-size: 10px; }

/* Admin login */
.login-page { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; background: var(--surface); }
.login-story { min-height: 100vh; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(30px, 5vw, 72px); position: relative; overflow: hidden; color: #fff; background: linear-gradient(145deg, #244f3b, #102d21); }
.login-story::after { content: "ل"; position: absolute; inset: auto auto -140px -20px; color: rgba(255,255,255,.035); font-size: 570px; font-weight: 900; line-height: 1; }
.login-story .login-brand { position: relative; z-index: 1; color: #fff; }
.login-story .logo { color: var(--brand-deep); background: #f6f0e4; }
.login-story .login-brand small { color: rgba(255,255,255,.55); }
.login-story > div { max-width: 650px; position: relative; z-index: 1; }
.login-story h1 { margin: 18px 0; font-size: clamp(48px, 5.7vw, 78px); line-height: 1.08; letter-spacing: -2.5px; }
.login-story p { max-width: 560px; margin: 0; color: rgba(255,255,255,.68); font-size: 16px; line-height: 1.9; }
.login-quote { position: relative; z-index: 1; color: #dfc792; font-size: 11px; font-weight: 800; }
.login-panel { display: grid; place-items: center; padding: 35px; }
.login-card { width: min(430px, 100%); }
.login-card h2 { margin: 10px 0 6px; font-size: 32px; }
.login-card > p { margin: 0 0 27px; color: var(--muted); font-size: 13px; }
.login-button { width: 100%; margin-top: 20px; }
.back-link { display: block; margin-top: 18px; color: var(--muted); font-size: 11px; text-align: center; }
.password-field { display: grid; grid-template-columns: 1fr auto; }
.password-field input { grid-column: 1 / -1; grid-row: 1; padding-inline-end: 65px !important; }
.password-field button { grid-column: 2; grid-row: 1; z-index: 1; border: 0; padding: 0 13px; color: var(--brand); background: transparent; font-size: 10px; font-weight: 850; cursor: pointer; }

/* Forms and dialogs */
dialog { width: min(820px, calc(100% - 28px)); max-height: min(90vh, 900px); overflow: auto; border: 0; border-radius: 22px; padding: 0; color: var(--ink); background: var(--surface-strong); box-shadow: var(--shadow-lg); }
dialog::backdrop { background: rgba(10, 20, 15, .62); backdrop-filter: blur(3px); }
.modal { min-width: 0; }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 23px 25px 18px; border-bottom: 1px solid var(--line-soft); }
.modal-header h2 { margin: 7px 0 4px; font-size: 23px; }
.modal-header p { margin: 0; color: var(--muted); font-size: 10px; }
.close-button { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 38px; border: 1px solid var(--line); border-radius: 11px; color: var(--muted); background: #f8f7f3; font-size: 21px; cursor: pointer; }
.modal-body { padding: 22px 25px; }
.modal-footer { position: sticky; bottom: 0; z-index: 2; display: flex; gap: 8px; padding: 15px 25px; border-top: 1px solid var(--line-soft); background: rgba(255,255,255,.94); backdrop-filter: blur(10px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { color: #4d524d; font-size: 10px; font-weight: 850; }
.field label span { color: var(--danger); }
.field input, .field textarea, .field select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 10px 12px;
  outline: none;
  color: var(--ink);
  background: #fff;
  font-size: 12px;
  transition: border var(--transition), box-shadow var(--transition);
}
.field textarea { min-height: 96px; resize: vertical; line-height: 1.7; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 8%, transparent); }
.field input:invalid:not(:placeholder-shown) { border-color: var(--danger); }
.field > small { color: var(--muted); font-size: 8px; line-height: 1.5; }
.field-space { margin-top: 13px; }
.form-alert { margin-bottom: 15px; padding: 11px 12px; border: 1px solid #f0d1ce; border-radius: 10px; color: #8f312c; background: var(--danger-soft); font-size: 10px; line-height: 1.6; }
.form-section + .form-section { margin-top: 24px; padding-top: 21px; border-top: 1px solid var(--line-soft); }
.form-section h3 { margin: 0 0 13px; font-size: 12px; }
.product-form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 230px; align-items: start; gap: 25px; }
.image-preview { min-height: 285px; overflow: hidden; position: sticky; top: 10px; border: 1px dashed #cfcabf; border-radius: 17px; background: #f7f5ef; }
.image-preview img { width: 100%; aspect-ratio: 1; display: block; object-fit: cover; }
.image-preview > span { display: block; padding: 11px; color: var(--muted); font-size: 9px; text-align: center; }
.image-preview-empty { min-height: 285px; display: grid; place-items: center; align-content: center; gap: 7px; padding: 20px; color: var(--muted); text-align: center; }
.image-preview-empty b { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: var(--brand); background: var(--brand-soft); font-size: 21px; }
.image-preview-empty strong { color: var(--ink-soft); font-size: 11px; }
.image-preview-empty small { font-size: 8px; line-height: 1.5; }
.image-preview-error b { color: var(--danger); background: var(--danger-soft); }
.input-suffix { display: grid; grid-template-columns: 1fr auto; }
.input-suffix input { grid-column: 1 / -1; grid-row: 1; padding-inline-end: 49px; }
.input-suffix b { grid-column: 2; grid-row: 1; z-index: 1; align-self: center; padding-inline: 11px; color: var(--muted); font-size: 8px; direction: ltr; }
.switch-field { min-height: 65px; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px; cursor: pointer; }
.switch-field input { width: 18px; height: 18px; accent-color: var(--brand); }
.switch-field span { display: grid; gap: 3px; }
.switch-field b { font-size: 10px; }
.switch-field small { color: var(--muted); font-size: 8px; }
.category-items { display: grid; gap: 8px; max-height: 330px; overflow: auto; }
.category-item { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 12px; border: 1px solid var(--line-soft); border-radius: 12px; }
.category-item > span { display: grid; gap: 4px; }
.category-item strong { font-size: 11px; }
.category-item small { color: var(--muted); font-size: 8px; }
.inline-create-form { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 9px; margin-top: 20px; padding-top: 19px; border-top: 1px solid var(--line-soft); }
.settings-layout { display: grid; grid-template-columns: 1fr 220px; align-items: start; gap: 23px; }
.settings-tip { padding: 17px; border-radius: 15px; color: #fff; background: var(--brand-deep); }
.settings-tip > span { color: #e7ce9c; }
.settings-tip strong { display: block; margin-top: 35px; font-size: 12px; }
.settings-tip p { margin: 8px 0 15px; color: rgba(255,255,255,.65); font-size: 9px; line-height: 1.8; }
.settings-tip a { color: #e7ce9c; font-size: 9px; font-weight: 850; }
.color-field { min-height: 44px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 11px; padding: 6px 9px; }
.color-field input { width: 34px; min-height: 30px; border: 0; padding: 0; }
.color-field span { color: var(--muted); font-size: 9px; direction: ltr; }
.confirm-modal { padding: 28px; text-align: center; }
.confirm-icon { width: 48px; height: 48px; display: grid; place-items: center; margin: 0 auto; border-radius: 15px; color: var(--danger); background: var(--danger-soft); font-size: 20px; font-weight: 900; }
.confirm-modal h2 { margin: 15px 0 7px; font-size: 21px; }
.confirm-modal p { max-width: 390px; margin: 0 auto; color: var(--muted); font-size: 11px; line-height: 1.7; }
.confirm-modal > div { display: flex; justify-content: center; gap: 8px; margin-top: 21px; }
#confirmDialog { width: min(440px, calc(100% - 28px)); }
.toast { position: fixed; z-index: 100; inset: auto 24px 24px auto; min-width: 230px; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 13px; color: #fff; background: var(--brand-deep); box-shadow: var(--shadow-md); opacity: 0; pointer-events: none; transform: translateY(18px); transition: var(--transition); }
.toast > span { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 8px; color: var(--brand-deep); background: #d8eadf; font-size: 11px; font-weight: 900; }
.toast strong { font-size: 10px; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast-error { background: #6f2623; }
.toast-error > span { color: #6f2623; background: #f4cfcc; }
.admin-skeleton { min-height: 100vh; display: grid; grid-template-columns: 248px 1fr; }
.admin-skeleton aside { background: #17382b; }
.admin-skeleton main { padding: 60px; }
.admin-skeleton main span { height: 88px; display: block; margin-bottom: 18px; border-radius: 18px; background: #e7e5df; }
.admin-skeleton main span:nth-child(2) { height: 130px; }
.admin-skeleton main span:nth-child(3) { height: 430px; }

@media (max-width: 1050px) {
  .landing-hero { grid-template-columns: 1fr 410px; gap: 35px; }
  .landing-copy h1 { font-size: 60px; }
  .store-hero { grid-template-columns: 1fr 265px; gap: 35px; padding: 55px; }
  .admin-shell { grid-template-columns: 220px minmax(0, 1fr); }
  .sidebar { width: 220px; }
  .admin-main { padding-inline: 25px; }
  .admin-toolbar { grid-template-columns: 1fr 145px 165px; }
}

@media (max-width: 860px) {
  .container { width: min(100% - 32px, 1240px); }
  .landing-hero { grid-template-columns: 1fr; gap: 20px; padding-top: 65px; text-align: center; }
  .landing-copy > p, .section-intro { margin-inline: auto; }
  .landing-actions { justify-content: center; }
  .landing-proof { margin-inline: auto; text-align: right; }
  .landing-showcase { min-height: 540px; }
  .value-grid { grid-template-columns: 1fr; }
  .value-grid article { min-height: auto; }
  .value-grid h3 { margin-top: auto; }
  .value-grid .value-featured { transform: none; }
  .store-hero { grid-template-columns: 1fr; min-height: 590px; }
  .store-hero-card { max-width: 330px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-shell { grid-template-columns: 1fr; padding-bottom: 73px; }
  .sidebar {
    width: auto;
    height: 68px;
    display: grid;
    grid-template-columns: auto 1fr;
    position: fixed;
    inset: auto 0 0;
    z-index: 30;
    padding: 8px 12px;
    border-top: 1px solid rgba(255,255,255,.12);
  }
  .sidebrand { display: none; }
  .side-nav { grid-column: 1 / -1; grid-row: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin: 0; }
  .navitem { min-height: 50px; justify-content: center; padding: 7px; font-size: 10px; text-align: center; }
  .navitem small, .navitem.active::before { display: none; }
  .navitem.active span { margin: 0; }
  .sidebar-store { display: none; }
  .admin-main { padding: 24px 18px 40px; }
  .admin-header { align-items: flex-start; }
  .overview-strip { grid-template-columns: repeat(2, 1fr); }
  .overview-strip > div:nth-child(3) { border-top: 1px solid var(--line-soft); border-inline-start: 0; }
  .overview-strip > div:nth-child(4) { border-top: 1px solid var(--line-soft); }
  .admin-table-wrap { display: none; }
  .admin-mobile-list { display: grid; gap: 9px; padding: 13px; background: #f8f7f3; }
  .admin-product-card { display: grid; grid-template-columns: 58px 1fr; gap: 11px; padding: 11px; border: 1px solid var(--line-soft); border-radius: 14px; background: #fff; }
  .admin-card-thumb { width: 58px; height: 58px; grid-row: 1 / 2; border-radius: 11px; object-fit: cover; }
  .admin-card-main { display: grid; align-content: center; gap: 3px; min-width: 0; }
  .admin-card-main span { color: var(--brand); font-size: 8px; font-weight: 800; }
  .admin-card-main strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
  .admin-card-main b { font-size: 9px; }
  .admin-card-actions { grid-column: 1 / -1; justify-content: flex-start; padding-top: 9px; border-top: 1px solid var(--line-soft); }
  .login-page { grid-template-columns: 1fr; }
  .login-story { min-height: 330px; padding: 35px; }
  .login-story h1 { font-size: 46px; }
  .login-story > div { margin-block: auto; }
  .login-quote { display: none; }
  .login-panel { padding-block: 55px; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 22px, 1240px); }
  .hide-mobile { display: none; }
  .logo { width: 42px; height: 42px; flex-basis: 42px; border-radius: 13px; }
  .landing-nav { height: 76px; }
  .landing-brand small { display: none; }
  .landing-hero { min-height: auto; padding-block: 55px 70px; }
  .landing-copy h1 { margin-top: 18px; font-size: clamp(42px, 13vw, 57px); letter-spacing: -2px; }
  .landing-copy > p { font-size: 15px; line-height: 1.85; }
  .landing-actions { align-items: stretch; flex-direction: column; gap: 15px; }
  .landing-proof { grid-template-columns: 1fr; gap: 15px; margin-top: 35px; text-align: center; }
  .landing-proof div, .landing-proof div:first-child { padding: 0 0 15px; border: 0; border-bottom: 1px solid var(--line); }
  .landing-showcase { min-height: 470px; }
  .landing-showcase::before { width: 100%; }
  .showcase-card { width: 96%; transform: none; }
  .showcase-hero { min-height: 225px; padding: 23px; }
  .showcase-hero strong { font-size: 27px; }
  .showcase-note { inset: 6px auto auto 0; }
  .showcase-order { inset: auto -2px 7px auto; }
  .landing-value { padding-block: 78px; }
  .section-intro h2 { font-size: 36px; }
  .section-intro > p { font-size: 13px; }
  .value-grid { margin-top: 35px; }
  .value-grid article { min-height: 245px; }
  .landing-footer { align-items: flex-start; flex-direction: column; gap: 22px; padding-block: 35px; }
  .store-nav { height: 68px; }
  .store-brand strong { max-width: 150px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
  .store-brand small { display: none; }
  .store-nav .button { padding-inline: 11px; font-size: 10px; }
  .store-hero { min-height: 600px; align-items: end; gap: 26px; margin-top: 11px; padding: 35px 23px 25px; border-radius: 25px; }
  .store-hero h1 { font-size: clamp(42px, 13vw, 58px); letter-spacing: -2px; }
  .store-hero-copy > p { font-size: 14px; line-height: 1.8; }
  .store-hero-card { max-width: none; padding: 20px; }
  .store-hero-card strong { margin-top: 20px; }
  .catalog { padding-block: 65px 85px; }
  .catalog-header { align-items: stretch; flex-direction: column; gap: 22px; }
  .catalog-header h2 { font-size: 34px; }
  .store-search { width: 100%; }
  .category-list { margin-top: 20px; }
  .product-grid { grid-template-columns: 1fr; }
  .product-media { aspect-ratio: 1.25; }
  .product-content > p { min-height: auto; }
  .store-footer { padding-bottom: 85px; }
  .store-footer-inner { align-items: flex-start; flex-direction: column; gap: 15px; }
  .mobile-order-bar { min-height: 52px; display: flex; align-items: center; justify-content: center; gap: 8px; position: fixed; inset: auto 11px 11px; z-index: 18; border-radius: 14px; color: #fff; background: var(--whatsapp); box-shadow: 0 12px 35px rgba(14,83,49,.27); font-size: 12px; font-weight: 900; text-decoration: none; }
  .store-skeleton { width: calc(100% - 22px); }
  .skeleton-hero { height: 580px; border-radius: 25px; }
  .skeleton-grid { grid-template-columns: 1fr; }
  .skeleton-grid span:not(:first-child) { display: none; }
  .admin-header { gap: 15px; }
  .admin-header h1 { font-size: 24px; }
  .admin-header p { max-width: 250px; font-size: 10px; line-height: 1.6; }
  .admin-header-actions > a { display: none; }
  .avatar-button b { display: none; }
  .avatar-button { padding: 5px; }
  .overview-strip > div { padding: 16px; }
  .overview-strip strong { font-size: 23px; }
  .admin-panel-header { align-items: stretch; flex-direction: column; }
  .panel-actions { display: grid; grid-template-columns: 1fr 1.2fr; }
  .admin-toolbar { grid-template-columns: 1fr 1fr; }
  .admin-search { grid-column: 1 / -1; }
  .product-form-layout, .settings-layout { grid-template-columns: 1fr; }
  .image-preview { min-height: 210px; position: static; grid-row: 1; }
  .image-preview img { aspect-ratio: 1.4; }
  .image-preview-empty { min-height: 210px; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .modal-header, .modal-body, .modal-footer { padding-inline: 17px; }
  .modal-footer .button { flex: 1; }
  .inline-create-form { grid-template-columns: 1fr; }
  dialog { max-height: 94vh; border-radius: 18px; }
  .toast { inset: auto 12px 82px 12px; min-width: 0; }
  .login-story { min-height: 290px; padding: 25px; }
  .login-story h1 { font-size: 39px; }
  .login-story p { font-size: 12px; }
  .login-panel { padding: 42px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
