@font-face {
  font-family: Vazirmatn;
  src: url("/assets/vazirmatn-arabic-400-normal-DMZFCm7K.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0600-06FF,U+0750-077F,U+08A0-08FF,U+200C-200F,U+FB50-FDFF,U+FE70-FEFF;
}
@font-face {
  font-family: Vazirmatn;
  src: url("/assets/vazirmatn-arabic-700-normal-Dge_DOjm.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0600-06FF,U+0750-077F,U+08A0-08FF,U+200C-200F,U+FB50-FDFF,U+FE70-FEFF;
}
@font-face {
  font-family: Vazirmatn;
  src: url("/assets/vazirmatn-latin-400-normal-BT_DHTc7.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF,U+2000-200B,U+2010-206F;
}
@font-face {
  font-family: Vazirmatn;
  src: url("/assets/vazirmatn-latin-700-normal-9BlbvDRV.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0000-00FF,U+2000-200B,U+2010-206F;
}

:root {
  color-scheme: light;
  font-family: Vazirmatn, Tahoma, sans-serif;
  color: #392318;
  background: #faf3e9;
  --ink: #392318;
  --muted: #6f5141;
  --line: #eadacb;
  --brand: #f48220;
  --brand-hover: #dc6f12;
  --on-brand: #1a1208;
  --accent: #a83e0a;
  --tint: #fff1e5;
  --cream: #fffdf8;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100dvh; display: flex; flex-direction: column; }
main { flex: 1; }
h1, h2, h3, p, dl, dd { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
button[hidden] { display: none; }
bdi { overflow-wrap: anywhere; }
svg { width: 1.25rem; height: 1.25rem; flex: none; }
svg:not(.hero-art) { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 3px solid #ae581e; outline-offset: 3px; }
.hero :focus-visible { outline-color: var(--on-brand); }
.skip-link { position: fixed; inset-inline-start: 1rem; top: -100px; padding: .75rem 1rem; background: white; z-index: 2; }
.skip-link:focus { top: .5rem; }
.wrap { width: min(1040px, calc(100% - 48px)); margin-inline: auto; }
.topbar { background: var(--cream); border-bottom: 1px solid var(--line); }
.topbar-inner, .brand, .account, .footer { display: flex; align-items: center; }
.topbar-inner { min-height: 74px; justify-content: space-between; gap: .7rem; padding-block: .55rem; }
.brand { font-weight: 700; gap: .7rem; min-height: 48px; }
.logo { width: 126px; min-width: 0; flex: none; display: grid; place-items: center; padding: .35rem .4rem; background: white; border: 1px solid var(--line); border-radius: 11px; }
.logo img { display: block; width: 100%; height: 34px; object-fit: cover; }
.top-label, .seller-name { color: var(--muted); font-size: .85rem; }
.account { gap: .65rem; min-width: 0; }
.seller-name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; max-width: 11rem; }
.ghost { display: inline-flex; gap: .35rem; align-items: center; justify-content: center; min-height: 44px; padding: .35rem .75rem; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); background: transparent; white-space: nowrap; }
.ghost:hover { background: var(--tint); }
.ghost svg { width: 1rem; }
.footer { justify-content: space-between; padding: 1.05rem 0 1.3rem; margin-top: 2.5rem; border-top: 1px solid var(--line); gap: .5rem; color: var(--muted); font-size: .77rem; }

.login-layout { display: grid; grid-template-columns: 1.15fr 1fr; gap: 1.25rem; align-content: center; padding-block: 2.5rem 1rem; }
.hero { background: linear-gradient(150deg, var(--brand), #d9650b); color: var(--on-brand); border-radius: 24px; padding: clamp(1.25rem, 4.2vw, 2.8rem); }
.login-hero { position: relative; min-height: 435px; overflow: hidden; }
.hero-art { position: absolute; width: min(49%, 252px); height: auto; left: 1.5rem; bottom: 1.35rem; color: #f9c69d; }
.eyebrow { display: flex; align-items: center; gap: .5rem; font-size: .87rem; }
.signal { width: .55rem; height: .55rem; border-radius: 50%; background: var(--on-brand); box-shadow: 0 0 0 4px #1a12081a; }
.hero h1 { font-size: clamp(1.85rem, 4vw, 3.15rem); line-height: 1.4; margin-block: .65rem .55rem; letter-spacing: -.035em; }
.hero-copy { line-height: 1.85; max-width: 32ch; }
.panel { border: 1px solid var(--line); border-radius: 18px; background: var(--cream); }
.login-panel { padding: clamp(1.15rem, 3.4vw, 2rem); }
.section-icon { display: grid; place-items: center; flex: none; width: 47px; height: 47px; border-radius: 13px; background: var(--tint); color: var(--accent); }
.login-panel h2 { margin-top: .65rem; font-size: 1.45rem; }
.subtext, .empty p { margin-top: .35rem; color: var(--muted); line-height: 1.8; font-size: .94rem; }
.login-form { display: grid; gap: .5rem; margin-top: 1.05rem; }
.login-form label, .search-form label { font-size: .87rem; font-weight: 700; }
.login-form label:not(:first-of-type) { margin-top: .45rem; }
input:not([type=hidden]) { width: 100%; min-width: 0; min-height: 50px; padding: .65rem .8rem; border: 1px solid #cfb39e; border-radius: 11px; background: white; color: var(--ink); font-size: 1rem; }
input::placeholder { color: var(--muted); opacity: 1; }
.password-wrap { position: relative; }
.password-wrap:has(.password-toggle:not([hidden])) input { padding-right: 3rem; }
.password-toggle { position: absolute; right: 2px; top: 2px; display: grid; place-items: center; min-width: 44px; min-height: 46px; border: 0; background: transparent; color: var(--accent); border-radius: 9px; }
.primary { min-height: 50px; padding: .6rem 1rem; display: inline-flex; justify-content: center; align-items: center; gap: .5rem; font-weight: 700; border: 1px solid transparent; border-radius: 11px; background: var(--brand); color: var(--on-brand); }
.primary:hover { background: var(--brand-hover); }
.login-form .primary { margin-top: .65rem; }
.notice { padding: .7rem .85rem; border-radius: 11px; background: #fff1d9; color: #674610; margin-top: .8rem; font-size: .91rem; line-height: 1.65; }
.notice.danger { background: #fce8e1; color: #782817; }

.lookup-layout { padding-top: 1.7rem; }
.search-hero { padding-block: clamp(1.15rem, 3.6vw, 2.2rem); text-align: center; }
.search-hero .eyebrow { justify-content: center; }
.search-hero h1 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); margin-block: .45rem .35rem; }
.search-hero .hero-copy { max-width: none; }
.search-form { margin-top: 1.1rem; }
.search-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .55rem; max-width: 39rem; margin: .35rem auto 0; }
.search-controls input { text-align: center; }
.search-controls .primary { background: var(--tint); }
.search-controls .primary:hover { background: #ffe3cc; }
.freshness { display: flex; align-items: center; gap: .45rem; margin-block: 1rem .75rem; color: var(--muted); font-size: .84rem; }
.freshness svg { width: 1rem; height: 1rem; }
.freshness.stale { color: #78521c; }
.age { white-space: nowrap; }
.product { margin-top: .9rem; }
.product-header { display: grid; gap: .85rem; padding: 1rem 1.15rem; grid-template-columns: minmax(0, 1fr) minmax(15rem, auto); align-items: center; }
.product-identity { display: flex; align-items: center; gap: .65rem; min-width: 0; }
.product-identity h2 { line-height: 1.65; overflow-wrap: anywhere; font-size: clamp(1.03rem, 2.4vw, 1.35rem); }
.product-code { color: var(--muted); font-size: .8rem; }
.product-code bdi { font-weight: 700; }
.product-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.product-metrics > div { min-width: 0; padding: .55rem .7rem; border-radius: 11px; background: var(--tint); }
.product-metrics dt { font-size: .8rem; color: var(--muted); }
.product-metrics dd { margin-top: .15rem; font-size: clamp(1.04rem, 2vw, 1.2rem); font-weight: 700; }
.product-metrics small { font-size: .74rem; color: var(--muted); font-weight: 400; }
.list-heading { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin: 1rem 0 .6rem; }
.list-heading h3 { font-size: 1.02rem; }
.list-heading span { border-radius: 50px; padding: .2rem .65rem; background: var(--tint); color: var(--accent); font-size: .8rem; }
.warehouse-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0; margin: 0; gap: .55rem; list-style: none; }
.warehouse { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .6rem; align-items: center; padding: .65rem; min-height: 69px; }
.warehouse-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; color: var(--accent); background: var(--tint); }
.warehouse-name, .quantity { display: grid; line-height: 1.55; }
.warehouse-name strong { font-size: .94rem; overflow-wrap: anywhere; }
.warehouse-name span, .quantity span { color: var(--muted); font-size: .75rem; }
.quantity { text-align: end; max-width: 7rem; }
.quantity strong { color: var(--accent); font-size: 1.18rem; }
.empty { text-align: center; padding: 1.55rem 1rem; margin-top: .9rem; }
.empty .section-icon { margin-inline: auto; margin-bottom: .55rem; }
.empty h2, .empty h3 { font-size: 1.12rem; }

@media (max-width: 800px) {
  .warehouse-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-header { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .wrap { width: calc(100% - 28px); }
  .topbar-inner { min-height: 62px; }
  .brand { gap: .45rem; }
  .brand-title { font-size: .83rem; }
  .logo { width: 100px; padding-inline: .25rem; }
  .logo img { height: 27px; }
  .top-label { font-size: .76rem; }
  .seller-name { display: none; }
  .login-layout { grid-template-columns: 1fr; gap: .7rem; padding-block: .85rem .1rem; }
  .hero { border-radius: 18px; }
  .login-hero { min-height: 0; }
  .login-hero h1 br { display: none; }
  .hero-art { display: none; }
  .hero-copy { font-size: .89rem; }
  .lookup-layout { padding-top: .85rem; }
  .warehouse-list { grid-template-columns: 1fr; }
  .product-header { padding: .8rem; }
  .footer { margin-top: 1.35rem; }
}
@media (max-width: 350px) {
  .wrap { width: calc(100% - 22px); }
  .hero { padding-inline: .9rem; }
  .brand-title { display: none; }
  .search-controls .primary { padding-inline: .6rem; }
}
