/* Elite Agrovet Ltd. — corporate site styles. Palette: navy, green, white, light grey. */
:root {
  --navy-900: #071a33;
  --navy-800: #0b2545;
  --navy-600: #1d3f6e;
  --green-700: #0f6b45;
  --green-600: #14804f;
  --green-500: #1f9d63;
  --green-50: #e8f5ee;
  --grey-50: #f4f6f8;
  --grey-100: #e8ecf0;
  --grey-300: #c9d1da;
  --ink: #142235;
  --muted: #5a6878;
  --white: #fff;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(7, 26, 51, .08);
  --font: "Inter", "Noto Sans Bengali", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); color: var(--ink); background: var(--white); line-height: 1.7; font-size: 16px; }
.lang-bn { --font: "Noto Sans Bengali", "Inter", system-ui, sans-serif; line-height: 1.8; }
img { max-width: 100%; display: block; height: auto; }
a { color: var(--green-600); text-decoration: none; }
a:hover { color: var(--green-700); }
h1, h2, h3, h4 { color: var(--navy-800); line-height: 1.25; font-weight: 700; letter-spacing: -.01em; }
.lang-bn h1, .lang-bn h2, .lang-bn h3 { letter-spacing: 0; line-height: 1.4; }
h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: .8rem; }
h3 { font-size: 1.1rem; margin-bottom: .4rem; }
p { color: var(--muted); }
:focus-visible { outline: 3px solid var(--green-500); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--navy-800); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }

.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt { background: var(--grey-50); }
.section-navy { background: var(--navy-800); }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy p { color: #b8c6d8; }
.center { text-align: center; }
.mt { margin-top: 2.5rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 2rem; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.25rem; margin-top: 2rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; font-weight: 600; color: #8fd3b0; margin-bottom: .8rem; }
.lang-bn .eyebrow { letter-spacing: .02em; font-size: .85rem; }
.eyebrow.dark { color: var(--green-600); }
.lead { font-size: 1.12rem; }
.lead-dark { font-size: 1.08rem; color: var(--ink); opacity: .85; margin-bottom: 1rem; }
.muted, .muted-sm { color: var(--muted); }
.muted-sm { font-size: .88rem; }
.note { font-size: .9rem; color: var(--muted); border-left: 3px solid var(--green-500); padding: .4rem 0 .4rem 1rem; background: var(--grey-50); }
.empty { padding: 2rem; text-align: center; background: var(--grey-50); border: 1px dashed var(--grey-300); border-radius: var(--radius); color: var(--muted); }
.link-arrow { font-weight: 600; display: inline-flex; align-items: center; gap: .35rem; }
.link-arrow::after { content: "→"; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(3px); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; background: var(--green-600); color: #fff; font-weight: 600; font-size: .95rem; padding: .8rem 1.5rem; border-radius: 6px; border: 2px solid var(--green-600); cursor: pointer; font-family: inherit; transition: background .2s, border-color .2s; text-align: center; }
.btn:hover { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn-outline { background: transparent; color: var(--navy-800); border-color: var(--grey-300); }
.btn-outline:hover { background: var(--grey-50); color: var(--navy-800); border-color: var(--navy-600); }
.btn-white { background: #fff; color: var(--navy-800); border-color: #fff; }
.btn-white:hover { background: var(--grey-100); color: var(--navy-800); border-color: var(--grey-100); }
.btn-wa { background: #1fa855; border-color: #1fa855; }

/* Top bar & header */
.topbar { background: var(--navy-900); color: #9fb0c6; font-size: .82rem; }
.topbar-in { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; }
.topbar-links { display: flex; gap: 1.4rem; }
.topbar a { color: #cdd8e6; }
.topbar a:hover { color: #fff; }
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--grey-100); transition: box-shadow .2s; }
.header.scrolled { box-shadow: 0 4px 20px rgba(7,26,51,.07); }
.header-in { display: flex; align-items: center; gap: 1.5rem; height: 76px; }
.brand { display: flex; align-items: center; gap: .65rem; flex-shrink: 0; }
.brand-logo { height: 52px; width: auto; }
.brand-name { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name b { color: var(--navy-800); font-size: 1.2rem; letter-spacing: -.01em; }
.brand-name small { color: var(--green-600); font-weight: 600; font-size: .78rem; }
.brand.light .brand-name b { color: #fff; }
.brand.light .brand-name small { color: #8fd3b0; }
.nav { display: flex; align-items: center; gap: .25rem; margin-left: auto; }
.nav-link { color: var(--ink); font-weight: 500; font-size: .93rem; padding: .55rem .75rem; border-radius: 6px; background: none; border: 0; cursor: pointer; font-family: inherit; display: inline-flex; align-items: center; gap: .35rem; }
.nav-link:hover, .nav-link[aria-current] { color: var(--green-600); background: var(--green-50); }
.caret { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.nav-group { position: relative; }
.nav-drop { position: absolute; top: calc(100% + 6px); left: 0; min-width: 230px; background: #fff; border: 1px solid var(--grey-100); border-radius: var(--radius); box-shadow: var(--shadow); padding: .4rem; display: none; }
.nav-drop a { display: block; padding: .55rem .8rem; border-radius: 6px; color: var(--ink); font-size: .92rem; }
.nav-drop a:hover, .nav-drop a[aria-current] { background: var(--green-50); color: var(--green-700); }
.nav-group:hover .nav-drop, .nav-group:focus-within .nav-drop, .nav-group.open .nav-drop { display: block; }
.header-actions { display: flex; align-items: center; gap: .5rem; }
.lang-switch { border: 1px solid var(--grey-300); color: var(--navy-800); font-weight: 600; font-size: .88rem; padding: .4rem .85rem; border-radius: 999px; }
.lang-switch:hover { border-color: var(--green-600); color: var(--green-600); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy-800); margin: 5px 0; transition: transform .25s, opacity .25s; }
.show-sm { display: none; }

/* Hero */
.hero { position: relative; background: linear-gradient(120deg, var(--navy-900) 0%, var(--navy-800) 55%, #0e3b4a 100%); color: #fff; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 85% 30%, rgba(31,157,99,.25), transparent 45%); }
.hero.has-img { background: linear-gradient(100deg, rgba(7,26,51,.94) 0%, rgba(11,37,69,.82) 50%, rgba(11,37,69,.45) 100%), var(--hero) center/cover no-repeat; }
.hero-in { position: relative; display: grid; grid-template-columns: 1.25fr .75fr; gap: 2rem; align-items: center; padding: clamp(64px, 10vw, 120px) 0; }
.hero h1 { color: #fff; margin-bottom: 1.2rem; }
.hero .lead { color: #c8d4e3; max-width: 620px; margin-bottom: 2rem; }
.hero-cta { display: flex; gap: .9rem; flex-wrap: wrap; }
.hero-visual svg { width: 100%; max-width: 420px; margin-left: auto; }
.hero.has-img .hero-visual { visibility: hidden; }

/* Page head */
.page-head { background: linear-gradient(120deg, var(--navy-900), var(--navy-800)); padding: clamp(40px, 6vw, 72px) 0; }
.page-head h1 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.page-head .lead { color: #b8c6d8; margin-top: .6rem; max-width: 720px; }
.crumbs { font-size: .85rem; color: #8396ad; margin-bottom: .9rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.crumbs a { color: #b8c6d8; }
.crumbs a:hover { color: #fff; }
.crumbs [aria-current] { color: #8fd3b0; }

/* Features & cards */
.feature { background: #fff; border: 1px solid var(--grey-100); border-radius: var(--radius); padding: 1.6rem; transition: border-color .2s, box-shadow .2s; }
.feature:hover { border-color: var(--grey-300); box-shadow: var(--shadow); }
.feature-lg { padding: 2rem; }
.icon { width: 40px; height: 40px; padding: 8px; border-radius: 10px; background: var(--green-50); fill: none; stroke: var(--green-600); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 1rem; }
.section-head-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1.8rem; }
.section-head-row h2 { margin: 0; }
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.cat { display: flex; flex-direction: column; justify-content: space-between; gap: .6rem; min-height: 110px; padding: 1.2rem; border-radius: var(--radius); background: var(--grey-50); border: 1px solid var(--grey-100); color: var(--navy-800); font-weight: 600; transition: background .2s, border-color .2s, transform .2s; }
.cat:hover { background: var(--green-50); border-color: var(--green-500); color: var(--green-700); transform: translateY(-2px); }
.cat p { font-weight: 400; font-size: .9rem; }
.cat small { color: var(--muted); font-weight: 500; }
.cat-grid-lg { grid-template-columns: repeat(3, 1fr); }
.cat-grid-lg .cat { min-height: 150px; padding: 1.6rem; }
.sector { display: block; padding: 1.5rem; border-radius: var(--radius); border-top: 3px solid var(--green-600); background: var(--grey-50); }
.sector:hover { background: var(--green-50); }
.why { padding: 1.6rem; border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); }
.why-n { display: block; font-size: 1.6rem; font-weight: 700; color: var(--green-500); margin-bottom: .6rem; }
.why-n.dark { color: var(--green-600); }
.steps { list-style: none; counter-reset: s; display: grid; gap: .9rem; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; column-gap: 1rem; padding: 1.1rem 1.2rem; background: var(--grey-50); border-radius: var(--radius); }
.steps li::before { content: counter(s); grid-row: span 2; width: 44px; height: 44px; border-radius: 50%; background: var(--navy-800); color: #fff; display: grid; place-items: center; font-weight: 700; }
.steps b { color: var(--navy-800); }
.steps span { color: var(--muted); font-size: .95rem; }
.steps-row { grid-template-columns: repeat(4, 1fr); }
.cta-card { padding: clamp(28px, 4vw, 48px); border-radius: 14px; }
.cta-card h2 { color: #fff; }
.cta-card p { color: rgba(255,255,255,.82); margin-bottom: 1.5rem; }
.cta-green { background: linear-gradient(135deg, var(--green-700), var(--green-500)); }
.cta-navy { background: linear-gradient(135deg, var(--navy-900), var(--navy-600)); }
.contact-strip { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.contact-strip-links { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; font-weight: 600; }
.info-card { background: var(--grey-50); border-radius: var(--radius); padding: 2rem; }
.info-card h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--green-600); margin-top: 1rem; }
.info-card h3:first-child { margin-top: 0; }
.prose p { margin-bottom: 1.1rem; color: var(--ink); opacity: .9; }
.prose h2 { font-size: 1.3rem; margin: 2rem 0 .6rem; }
.facts { display: grid; grid-template-columns: 220px 1fr; border-top: 1px solid var(--grey-100); }
.facts dt, .facts dd { padding: .95rem 0; border-bottom: 1px solid var(--grey-100); }
.facts dt { font-weight: 600; color: var(--navy-800); }
.facts.compact { grid-template-columns: 170px 1fr; margin: 1.2rem 0; }
.mv-card { padding: clamp(28px, 4vw, 48px); border-radius: 14px; border: 1px solid var(--grey-100); }
.mv-vision { background: linear-gradient(135deg, var(--navy-800), var(--navy-600)); border: 0; }
.mv-text { color: #fff; font-size: 1.35rem; line-height: 1.55; font-weight: 500; }
.checklist { list-style: none; display: grid; gap: .9rem; }
.checklist li { position: relative; padding-left: 2rem; color: var(--ink); }
.checklist li::before { content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%; background: var(--green-600) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12l4 4 8-8' fill='none' stroke='white' stroke-width='3'/%3E%3C/svg%3E") center/12px no-repeat; }
.timeline { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; margin-top: 1.5rem; }
.timeline li { text-align: center; font-weight: 600; color: var(--navy-800); position: relative; font-size: .95rem; }
.timeline span { display: grid; place-items: center; width: 46px; height: 46px; margin: 0 auto .7rem; border-radius: 50%; background: var(--green-50); color: var(--green-700); border: 2px solid var(--green-500); position: relative; z-index: 1; }
.timeline li:not(:last-child)::after { content: ""; position: absolute; top: 23px; left: calc(50% + 28px); right: calc(-50% + 28px); height: 2px; background: var(--grey-300); }

/* Products */
.filters { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: .75rem; margin-bottom: 1.25rem; }
.filters input, .filters select { font: inherit; padding: .75rem .9rem; border: 1px solid var(--grey-300); border-radius: 6px; background: #fff; min-width: 0; }
.results-bar { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; color: var(--muted); font-size: .92rem; flex-wrap: wrap; }
.pgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.pcard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--grey-100); border-radius: var(--radius); overflow: hidden; color: inherit; transition: box-shadow .2s, transform .2s, border-color .2s; }
.pcard:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--grey-300); color: inherit; }
.pcard-img, .pdetail-img { position: relative; aspect-ratio: 4/3; background: linear-gradient(160deg, var(--grey-50), var(--grey-100)); display: grid; place-items: center; }
.pcard-img img, .pdetail-img img { width: 100%; height: 100%; object-fit: contain; padding: 1rem; }
.pcard-img svg, .pdetail-img svg { width: 30%; fill: var(--grey-300); }
.pcard-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.pcard-body h3 { font-size: 1.02rem; margin: 0; }
.pcard-body p { font-size: .88rem; }
.pcard-cat { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--green-600); font-weight: 600; }
.tag { display: inline-block; align-self: flex-start; font-size: .75rem; font-weight: 600; padding: .2rem .6rem; border-radius: 999px; margin-top: auto; }
.tag-own { background: var(--green-50); color: var(--green-700); }
.tag-imported { background: #e7eef8; color: var(--navy-600); }
.badge-demo { position: absolute; top: 10px; left: 10px; background: #b45309; color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .06em; padding: .2rem .55rem; border-radius: 4px; }
.pdetail { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.pdetail-img { border-radius: 14px; border: 1px solid var(--grey-100); }
.pactions { display: flex; gap: .8rem; flex-wrap: wrap; }
.pinfo { padding: 1.3rem 0; border-bottom: 1px solid var(--grey-100); }
.pinfo h2 { font-size: 1.05rem; margin-bottom: .4rem; }
.pinfo p { color: var(--ink); }
.pinfo p.muted { color: var(--muted); font-style: italic; }

/* News */
.ngrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.ncard { display: flex; flex-direction: column; border: 1px solid var(--grey-100); border-radius: var(--radius); overflow: hidden; color: inherit; background: #fff; transition: box-shadow .2s; }
.ncard:hover { box-shadow: var(--shadow); color: inherit; }
.ncard-img { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--navy-800), var(--green-700)) center/cover; }
.ncard-body { padding: 1.3rem; }
.ncard-body h3 { margin: .3rem 0 .4rem; }
.ncard-meta { font-size: .8rem; color: var(--green-600); font-weight: 600; }
.article-img { border-radius: var(--radius); margin: 1rem 0 1.5rem; }
.job { padding: 1.8rem; border: 1px solid var(--grey-100); border-radius: var(--radius); margin: 1.2rem 0; }
.job h2 { font-size: 1.25rem; margin-bottom: .2rem; }
.job p { margin: .6rem 0 1rem; }

/* Forms */
.card { background: #fff; border: 1px solid var(--grey-100); border-radius: 14px; padding: clamp(20px, 4vw, 36px); box-shadow: var(--shadow); }
.form { display: grid; gap: 1rem; }
.form label { display: grid; gap: .35rem; font-size: .9rem; font-weight: 500; color: var(--navy-800); }
.form input, .form select, .form textarea { font: inherit; padding: .75rem .9rem; border: 1px solid var(--grey-300); border-radius: 6px; background: #fff; width: 100%; color: var(--ink); }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--green-500); outline: 3px solid rgba(31,157,99,.18); }
.form .check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; font-size: .86rem; color: var(--muted); }
.form .check input { width: auto; margin-top: .3rem; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.alert { padding: .9rem 1rem; border-radius: 6px; font-size: .92rem; }
.alert-ok { background: var(--green-50); color: var(--green-700); border: 1px solid #bfe5d0; }
.alert-err { background: #fdecec; color: #a12a2a; border: 1px solid #f3c2c2; }
.contact-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 2rem; }
.contact-list h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--green-600); }
.contact-list p { color: var(--ink); word-break: break-word; }
.map iframe { width: 100%; height: 320px; border: 0; border-radius: var(--radius); }

/* Footer */
.footer { background: var(--navy-900); color: #9fb0c6; padding-top: 64px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 48px; }
.footer p { color: #8396ad; margin-top: 1rem; font-size: .92rem; max-width: 340px; }
.footer h4 { color: #fff; font-size: .95rem; margin-bottom: 1rem; }
.footer-grid a { display: block; color: #b8c6d8; margin-bottom: .5rem; font-size: .92rem; }
.footer-grid a:hover { color: #fff; }
.social { display: flex; gap: 1rem; margin-top: 1rem; }
.social a { display: inline; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.08); padding: 1.3rem 0; font-size: .85rem; }
.footer-bottom a { color: #b8c6d8; }
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 54px; height: 54px; border-radius: 50%; background: #1fa855; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.wa-float:hover { color: #fff; transform: scale(1.05); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

@media (max-width: 1100px) {
  .grid-5, .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .pgrid { grid-template-columns: repeat(3, 1fr); }
  .nav-link { padding: .5rem .55rem; font-size: .88rem; }
}
@media (max-width: 960px) {
  .nav { position: fixed; inset: 76px 0 auto 0; max-height: calc(100vh - 76px); overflow-y: auto; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: .75rem 16px 1.5rem; border-bottom: 1px solid var(--grey-100); box-shadow: var(--shadow); transform: translateY(-110%); visibility: hidden; transition: transform .25s, visibility .25s; }
  .nav.open { transform: none; visibility: visible; }
  .nav-link { justify-content: space-between; padding: .85rem .5rem; border-radius: 0; border-bottom: 1px solid var(--grey-100); font-size: 1rem; width: 100%; }
  .nav-drop { position: static; display: none; box-shadow: none; border: 0; padding: 0 0 .5rem .75rem; }
  .nav-group:hover .nav-drop { display: none; }
  .nav-group.open .nav-drop { display: block; }
  .nav-toggle { display: block; }
  .show-sm { display: flex; }
  .header-actions { margin-left: auto; }
  .hero-in, .split, .pdetail { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .grid-4, .steps-row { grid-template-columns: 1fr 1fr; }
  .grid-3, .ngrid, .cat-grid-lg { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters input { grid-column: 1 / -1; }
  .timeline { grid-template-columns: 1fr; text-align: left; }
  .timeline li { display: flex; align-items: center; gap: 1rem; text-align: left; }
  .timeline span { margin: 0; }
  .timeline li::after { display: none; }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4, .grid-5, .cat-grid, .cat-grid-lg, .ngrid, .row-2, .contact-list, .steps-row { grid-template-columns: 1fr; }
  .pgrid { grid-template-columns: 1fr 1fr; gap: .75rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .facts, .facts.compact { grid-template-columns: 1fr; }
  .facts dt { padding-bottom: 0; border-bottom: 0; }
  .hide-sm { display: none; }
  .brand-name b { font-size: 1.05rem; }
  .section-head-row { flex-direction: column; }
}

/* ---------- Phase 2: dealer application & portal ---------- */
.btn-lg { padding: 1rem 2rem; font-size: 1.02rem; }
.form small { font-weight: 400; color: var(--muted); font-size: .8rem; }
.apply fieldset { border: 0; display: grid; gap: 1rem; }
.apply legend { font-size: 1.2rem; font-weight: 700; color: var(--navy-800); margin-bottom: .6rem; padding: 0; }
.apply:not(.js-steps) fieldset + fieldset { border-top: 1px solid var(--grey-100); padding-top: 1.5rem; margin-top: .5rem; }
.apply input[type=file] { padding: .55rem; background: var(--grey-50); }
.step-nav { display: flex; align-items: center; gap: 1rem; justify-content: space-between; border-top: 1px solid var(--grey-100); padding-top: 1.2rem; }
.step-count { color: var(--muted); font-size: .9rem; margin: 0 auto; }
.stepper { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem; margin-bottom: 1.5rem; }
.stepper li { display: flex; flex-direction: column; align-items: center; gap: .4rem; text-align: center; font-size: .8rem; color: var(--muted); position: relative; }
.stepper span { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--grey-100); color: var(--muted); font-weight: 700; z-index: 1; }
.stepper em { font-style: normal; }
.stepper li:not(:last-child)::after { content: ""; position: absolute; top: 17px; left: calc(50% + 20px); right: calc(-50% + 20px); height: 2px; background: var(--grey-100); }
.stepper li.on span { background: var(--green-600); color: #fff; }
.stepper li.on { color: var(--navy-800); font-weight: 600; }
.stepper li.done span { background: var(--green-50); color: var(--green-700); }
.stepper li.done::after { background: var(--green-500); }
.done-icon { width: 64px; height: 64px; margin: 0 auto 1rem; fill: var(--green-50); stroke: var(--green-600); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ref { font-size: 1.6rem; font-weight: 700; color: var(--navy-800); letter-spacing: .04em; margin-bottom: 1rem; }
.break { word-break: break-all; }
.st { padding: .1rem .7rem; border-radius: 999px; font-size: .95rem; background: var(--grey-100); color: var(--navy-800); white-space: nowrap; }
.st-approved, .st-activated { background: var(--green-50); color: var(--green-700); }
.st-documents_required { background: #fff3d6; color: #8a5300; }
.st-rejected { background: #fdecec; color: #a12a2a; }
.progress { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: .4rem; margin-top: 1.2rem; }
.progress li { border-top: 4px solid var(--grey-100); padding-top: .5rem; font-size: .8rem; color: var(--muted); }
.progress li.done { border-color: var(--green-500); color: var(--navy-800); font-weight: 600; }
.history { list-style: none; border-left: 2px solid var(--grey-100); padding-left: 1.2rem; display: grid; gap: 1rem; }
.history li { position: relative; }
.history li::before { content: ""; position: absolute; left: -1.62rem; top: .45rem; width: 12px; height: 12px; border-radius: 50%; background: var(--green-500); border: 2px solid #fff; }
.history p { margin-top: .3rem; color: var(--ink); background: var(--grey-50); padding: .6rem .8rem; border-radius: 6px; }
.auth-wrap { width: min(460px, 100% - 32px); }
.portal-head { background: linear-gradient(120deg, var(--navy-900), var(--navy-800)); padding: 2.2rem 0; }
.portal-head h1 { color: #fff; font-size: clamp(1.4rem, 3vw, 2rem); }
.portal-head-in { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.portal { padding-top: 2.5rem; }
.portal-grid { display: grid; grid-template-columns: 220px 1fr; gap: 2rem; align-items: start; }
.portal-nav { display: grid; gap: .25rem; position: sticky; top: 96px; }
.portal-nav a { padding: .7rem 1rem; border-radius: 8px; color: var(--ink); font-weight: 500; }
.portal-nav a:hover { background: var(--grey-50); }
.portal-nav a[aria-current] { background: var(--green-50); color: var(--green-700); font-weight: 600; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.kpi { border: 1px solid var(--grey-100); border-radius: var(--radius); padding: 1.1rem 1.2rem; background: #fff; }
.kpi span { display: block; color: var(--muted); font-size: .82rem; }
.kpi b { color: var(--navy-800); font-size: 1.1rem; }
.kpi b.ok { color: var(--green-600); }
.ngrid-2 { grid-template-columns: repeat(2, 1fr); }
.narrow-form { max-width: 460px; }
@media (max-width: 960px) {
  .portal-grid { grid-template-columns: 1fr; }
  .portal-nav { position: static; grid-auto-flow: column; overflow-x: auto; }
  .portal-nav a { white-space: nowrap; }
  .kpis { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .stepper em { display: none; }
  .progress { grid-template-columns: 1fr; }
  .ngrid-2 { grid-template-columns: 1fr; }
}

/* ---------- Phase 3: dealer ordering ---------- */
.badge { font-style: normal; background: var(--green-600); color: #fff; border-radius: 999px; font-size: .72rem; padding: 0 .45rem; margin-left: .4rem; font-weight: 700; }
.portal-nav a { display: flex; justify-content: space-between; align-items: center; }
.kpi small { display: block; color: var(--muted); font-size: .78rem; }
.kpi b.warn { color: #b45309; }
.kpis-3 { grid-template-columns: repeat(3, 1fr); }
.quick-row { display: flex; gap: .8rem; flex-wrap: wrap; }
.filters-3 { grid-template-columns: 2fr 1fr auto; }
.shop-list { display: grid; gap: .8rem; }
.shop-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 1rem; align-items: center; border: 1px solid var(--grey-100); border-radius: var(--radius); padding: .9rem 1rem; background: #fff; }
.shop-img { width: 72px; height: 72px; border-radius: 8px; background: var(--grey-50); overflow: hidden; }
.shop-img img { width: 100%; height: 100%; object-fit: contain; }
.shop-info h3 { font-size: 1rem; margin: .1rem 0; }
.shop-info h3 a { color: var(--navy-800); }
.shop-meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .82rem; color: var(--muted); margin-top: .25rem; }
.lvl { font-weight: 600; }
.lvl-in { color: var(--green-600); } .lvl-low { color: #b45309; } .lvl-out { color: #b42318; }
.shop-buy { display: flex; flex-direction: column; align-items: flex-end; gap: .4rem; min-width: 190px; }
.shop-price { text-align: right; line-height: 1.2; }
.shop-price small { display: block; color: var(--muted); font-size: .75rem; }
.shop-price b { font-size: 1.15rem; color: var(--navy-800); }
.buy-form { display: flex; gap: .4rem; }
.buy-form input { width: 80px; padding: .45rem .5rem; border: 1px solid var(--grey-300); border-radius: 6px; font: inherit; }
.btn-sm { padding: .45rem .9rem; font-size: .85rem; }
.ok-text { color: var(--green-600); font-weight: 600; }
.sticky-cart { position: sticky; bottom: 16px; display: flex; justify-content: flex-end; margin-top: 1rem; }
.sticky-cart .btn { box-shadow: 0 8px 24px rgba(7,26,51,.2); }
.table-wrap { overflow-x: auto; border: 1px solid var(--grey-100); border-radius: var(--radius); background: #fff; }
.tbl { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tbl th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: .7rem .9rem; border-bottom: 1px solid var(--grey-100); background: var(--grey-50); white-space: nowrap; }
.tbl td { padding: .75rem .9rem; border-bottom: 1px solid var(--grey-100); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .r, .r { text-align: right; }
.tbl .qty { width: 90px; padding: .45rem .5rem; border: 1px solid var(--grey-300); border-radius: 6px; font: inherit; }
.muted-row { opacity: .55; }
.link-btn { background: none; border: 0; color: #b42318; cursor: pointer; font: inherit; font-size: .88rem; }
.cart-foot { display: flex; justify-content: space-between; gap: 2rem; align-items: flex-start; margin-top: 1.2rem; flex-wrap: wrap; }
.cart-sum { min-width: 300px; }
.right-sum { margin-left: auto; max-width: 340px; margin-top: 1rem; }
.full-w { width: 100%; margin-top: 1rem; }
.totals { display: grid; grid-template-columns: 1fr auto; gap: .35rem 1rem; }
.totals dt { color: var(--muted); }
.totals dd { text-align: right; }
.totals .grand { font-weight: 700; color: var(--navy-800); font-size: 1.1rem; border-top: 1px solid var(--grey-100); padding-top: .5rem; }
.checkout { display: grid; grid-template-columns: 1fr 360px; gap: 1.5rem; align-items: start; }
.card-block { border: 1px solid var(--grey-100); border-radius: var(--radius); padding: 1.3rem; background: #fff; margin-bottom: 1rem; }
.card-block h2 { font-size: 1.1rem; }
.card-block label { display: grid; gap: .35rem; font-weight: 500; font-size: .9rem; }
.card-block textarea, .card-block input:not([type=radio]):not([type=checkbox]), .card-block select { font: inherit; padding: .65rem .8rem; border: 1px solid var(--grey-300); border-radius: 6px; width: 100%; }
.radio-card { display: flex !important; grid-template-columns: none !important; gap: .8rem !important; align-items: flex-start; border: 1px solid var(--grey-100); border-radius: 8px; padding: .8rem 1rem; margin-bottom: .6rem; cursor: pointer; font-weight: 400 !important; }
.radio-card:has(input:checked) { border-color: var(--green-500); background: var(--green-50); }
.radio-card input { margin-top: .3rem; }
.pre { white-space: pre-line; }
.summary { position: sticky; top: 96px; }
.sum-items { list-style: none; display: grid; gap: .4rem; margin-bottom: 1rem; font-size: .9rem; border-bottom: 1px solid var(--grey-100); padding-bottom: .8rem; }
.sum-items li { display: flex; justify-content: space-between; gap: 1rem; }
.mt-s { margin-top: .8rem; }
.order-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.order-head h2 { margin: 0; display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.order-actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: flex-start; }
.btn-danger-soft { background: #fff; color: #b42318; border-color: #f3c2c2; }
.btn-danger-soft:hover { background: #fdecec; color: #b42318; border-color: #f3c2c2; }
.ost, .inv, .pay { display: inline-block; font-size: .78rem; font-weight: 600; padding: .15rem .6rem; border-radius: 999px; background: var(--grey-100); color: var(--navy-800); white-space: nowrap; }
.ost-delivered, .inv-paid, .pay-verified { background: var(--green-50); color: var(--green-700); }
.ost-placed, .inv-unpaid, .pay-pending, .ost-on_hold { background: #fff3d6; color: #8a5300; }
.ost-cancelled, .ost-delivery_failed, .ost-returned, .pay-rejected { background: #fdecec; color: #a12a2a; }
.inv-partial { background: #e7eef8; color: var(--navy-600); }
.ost-confirmed, .ost-processing, .ost-ready_for_dispatch, .ost-dispatched, .ost-in_transit, .ost-out_for_delivery { background: #e7eef8; color: var(--navy-600); }
td.over { color: #b42318; font-weight: 600; }
.track { list-style: none; display: grid; grid-template-columns: repeat(8, 1fr); gap: .3rem; margin: 1rem 0; }
.track li { position: relative; text-align: center; font-size: .78rem; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: .3rem; }
.track .dot { width: 18px; height: 18px; border-radius: 50%; background: var(--grey-100); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--grey-300); z-index: 1; }
.track li:not(:last-child)::after { content: ""; position: absolute; top: 8px; left: 50%; width: 100%; height: 3px; background: var(--grey-100); }
.track li.done { color: var(--navy-800); }
.track li.done .dot { background: var(--green-500); box-shadow: 0 0 0 2px var(--green-500); }
.track li.done:not(:last-child)::after { background: var(--green-500); }
.track li.now b { color: var(--green-700); }
.track small { font-size: .7rem; }
.track-ex li.done .dot { background: #b45309; box-shadow: 0 0 0 2px #b45309; }
.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; align-items: start; }
.addr { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--grey-100); padding-top: .8rem; margin-top: .8rem; }
.notif-list { list-style: none; display: grid; gap: .6rem; }
.notif-list li { border: 1px solid var(--grey-100); border-radius: 8px; padding: .8rem 1rem; background: #fff; }
.notif-list li.unread { border-left: 4px solid var(--green-500); background: #fbfefc; }
.notif-list small { display: block; }
.notif-list p { margin-top: .3rem; color: var(--ink); font-size: .92rem; }
@media (max-width: 960px) {
  .checkout, .split-2 { grid-template-columns: 1fr; }
  .summary { position: static; }
  .track { grid-template-columns: 1fr; text-align: left; }
  .track li { flex-direction: row; text-align: left; align-items: center; }
  .track li:not(:last-child)::after { left: 8px; top: 18px; width: 3px; height: 100%; }
}
@media (max-width: 600px) {
  .shop-item { grid-template-columns: 56px 1fr; }
  .shop-img { width: 56px; height: 56px; }
  .shop-buy { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; min-width: 0; }
  .shop-price { text-align: left; }
  .kpis-3, .filters-3 { grid-template-columns: 1fr; }
  .cart-sum { min-width: 0; width: 100%; }
}

.footer-bottom .credit a { color: #8fd3b0; font-weight: 600; }
.footer-bottom .credit a:hover { color: #fff; }
