
:root{--green:#145c43;--green2:#0f7a52;--light:#f5faf7;--border:#dce8e2;--text:#15352a;--muted:#6a7d75;--soft:#eef7f2;--danger:#b42318}*{box-sizing:border-box}body{margin:0;font-family:Inter,Segoe UI,Arial,sans-serif;color:var(--text);background:#fff;font-size:15px;min-height:100vh;display:flex;flex-direction:column}main{flex:1}.admin-layout{flex:1}a{color:inherit;text-decoration:none}.container{width:min(1180px,92vw);margin:0 auto}.top{background:white;border-bottom:1px solid var(--border);position:sticky;top:0;z-index:10}.nav{height:74px;display:flex;align-items:center;gap:28px}.logo{display:flex;align-items:baseline;gap:6px;font-weight:800;letter-spacing:.5px;color:var(--green);font-size:25px}.logo small{font-size:13px;text-transform:uppercase;letter-spacing:2px;color:var(--green2)}nav{display:flex;gap:18px;align-items:center;flex:1}nav a{font-size:14px;color:#2d5c4b}.nav-actions{display:flex;gap:10px;align-items:center}.btn,button{border:0;background:var(--green);color:#fff;padding:12px 18px;border-radius:14px;font-weight:700;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px}.btn:hover,button:hover{background:#0d4934}.btn.ghost,.secondary{background:#e9f4ee;color:var(--green)}.btn.small{padding:9px 12px;border-radius:12px;font-size:13px}.user-chip{font-size:13px;background:var(--soft);padding:8px 10px;border-radius:999px;color:var(--green)}.hero{background:linear-gradient(180deg,#f4fbf7,white);padding:64px 0 46px}.hero h1{font-size:48px;line-height:1.05;margin:12px 0;color:#0f3d2d}.subtitle{font-size:20px;color:#557066;margin:0 0 26px}.badge{display:inline-block;background:#e3f3eb;color:var(--green);padding:8px 12px;border-radius:999px;font-weight:700;font-size:13px}.search-panel{background:#fff;border:1px solid var(--border);box-shadow:0 18px 44px rgba(20,92,67,.08);border-radius:24px;padding:18px}.search-main{display:flex;gap:12px}.search-main input{font-size:17px;padding:17px 18px;border:1px solid var(--border);border-radius:16px;flex:1}.filters-row{display:flex;gap:10px;margin-top:12px;flex-wrap:wrap}select,input,textarea{border:1px solid var(--border);border-radius:12px;padding:11px 12px;background:white;color:var(--text);font:inherit}textarea{min-height:110px;width:100%}.search-note,.muted{color:var(--muted)}.hero-actions{display:flex;gap:12px;margin-top:14px}.section{padding:36px 0}.section-head{display:flex;justify-content:space-between;align-items:end;margin-bottom:18px}.grid{display:grid;gap:18px}.categories-grid{grid-template-columns:repeat(4,1fr)}.catalog-grid{grid-template-columns:repeat(4,1fr)}.card{background:#fff;border:1px solid var(--border);border-radius:22px;padding:18px;box-shadow:0 10px 28px rgba(15,75,52,.05)}.category-card h3,.product-card h3{margin:10px 0 8px}.product-img{height:130px;border-radius:16px;background:#f0f6f2;width:100%;object-fit:cover;display:flex;align-items:center;justify-content:center;color:var(--muted)}.product-meta{font-size:13px;color:#48645a;line-height:1.55}.stock.ok{color:var(--green);font-weight:700}.stock.no{color:var(--danger);font-weight:700}.price{font-size:18px;font-weight:800;margin:12px 0;color:var(--green)}.notice{background:#fff8e6;border:1px solid #f2dfaa;padding:14px;border-radius:14px}.table-wrap{overflow:auto;background:#fff;border:1px solid var(--border);border-radius:18px}table{width:100%;border-collapse:collapse}th,td{padding:12px;border-bottom:1px solid var(--border);text-align:left;vertical-align:top}th{background:#f3faf6;color:#225942;font-size:13px}tr:last-child td{border-bottom:0}.form-card{max-width:760px}.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.form-grid .full{grid-column:1/-1}.admin-layout{display:grid;grid-template-columns:260px 1fr;min-height:100vh;background:#f7fbf8}.admin-side{background:white;border-right:1px solid var(--border);padding:22px;position:sticky;top:0;height:100vh}.admin-side nav{display:flex;flex-direction:column;align-items:stretch;gap:6px;margin-top:24px}.admin-side nav a{padding:11px 12px;border-radius:12px;color:#285745}.admin-side nav a:hover{background:#edf7f1}.admin-main{padding:28px}.admin-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.stats{grid-template-columns:repeat(4,1fr)}.stat b{display:block;font-size:30px;color:var(--green);margin-top:5px}.actions{display:flex;gap:8px;flex-wrap:wrap}.pill{padding:5px 9px;border-radius:999px;background:#edf7f1;color:var(--green);font-weight:700;font-size:12px}.footer{margin-top:60px;background:#0f3d2d;color:#d9efe5;padding:38px 0}.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:24px}.footer .logo{color:#fff}.footer .logo small{color:#bde6cf}.tabs{display:flex;gap:10px;margin:16px 0}.danger{background:#b42318!important}.ok-text{color:var(--green);font-weight:800}.bad-text{color:var(--danger);font-weight:800}@media(max-width:900px){.nav{height:auto;padding:14px 0;flex-wrap:wrap}nav{order:3;flex-basis:100%;flex-wrap:wrap}.hero h1{font-size:34px}.catalog-grid,.categories-grid,.stats{grid-template-columns:1fr}.admin-layout{grid-template-columns:1fr}.admin-side{height:auto;position:relative}.form-grid{grid-template-columns:1fr}.search-main{flex-direction:column}.footer-grid{grid-template-columns:1fr}}

/* Главная страница в старом зелёном стиле */
.hero.home-hero{
  position:relative;overflow:hidden;padding:74px 0 60px;border-bottom:1px solid var(--border);background:
  radial-gradient(circle at 18% 12%,rgba(120,160,102,.13),transparent 28%),
  radial-gradient(circle at 88% 8%,rgba(0,97,59,.06),transparent 30%),
  linear-gradient(180deg,#fff 0%,#f7faf8 100%);
}
.hero.home-hero:before{content:"";position:absolute;inset:0;background:linear-gradient(rgba(0,97,59,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(0,97,59,.035) 1px,transparent 1px);background-size:92px 92px;mask-image:radial-gradient(circle at center,black 0%,transparent 76%);pointer-events:none}
.hero-content{position:relative;z-index:1;text-align:center;max-width:1120px;margin:0 auto}
.home-hero .badge{display:inline-flex;align-items:center;padding:10px 18px;border-radius:999px;background:rgba(0,97,59,.07);border:1px solid rgba(0,97,59,.10);font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#00613b;margin-bottom:20px}
.home-hero h1{font-size:clamp(46px,5vw,76px);line-height:1;letter-spacing:-.045em;font-weight:700;color:#00613b;margin:0 auto 18px;max-width:820px}
.home-hero .subtitle{font-size:20px;line-height:1.45;color:#69756f;max-width:760px;margin:0 auto 30px}
.home-hero .search-panel{max-width:980px;margin:0 auto;background:rgba(255,255,255,.96);border:1px solid #e4ebe6;border-radius:30px;padding:16px;box-shadow:0 22px 58px rgba(20,32,26,.08)}
.home-hero .catalog-search{display:flex;flex-direction:column;gap:14px}
.home-hero .search-main{display:grid;grid-template-columns:64px 1fr 178px;align-items:center;gap:12px;background:#fff;border:1px solid #dfe8e2;border-radius:22px;padding:10px}
.home-hero .search-icon{display:grid;place-items:center;width:56px;height:56px;border-radius:16px;background:#edf5ef;color:#00613b;font-size:30px;font-weight:700;line-height:1}
.home-hero .search-main input{height:56px;border:0;outline:none;font-size:17px;color:#14201a;min-width:0;background:transparent;padding:0}
.home-hero .search-main button{height:56px;border:0;border-radius:16px;background:#00613b;color:#fff;font-size:17px;font-weight:700;cursor:pointer;box-shadow:0 10px 24px rgba(0,97,59,.18)}
.home-hero .filters-row{display:grid;grid-template-columns:1fr 1fr auto;gap:10px;margin-top:0}
.home-hero .filters-row select{border:1px solid #e4ebe6;border-radius:14px;padding:13px 14px;background:#fff;font-size:14px;color:#14201a}
.search-note{max-width:980px;margin:16px auto 0;color:#69756f;font-weight:700}.hero-actions{display:flex;gap:14px;justify-content:center;flex-wrap:wrap;margin-top:22px}
.access-note{max-width:980px;padding:16px 18px;border-radius:18px;background:#eef6f0;color:#00613b;margin:18px auto 0;border:1px solid rgba(0,97,59,.12);font-weight:700}
.features-section{padding:34px 0 20px}.features-strip{display:grid;grid-template-columns:repeat(4,1fr);background:#fff;border:1px solid #e4ebe6;border-radius:24px;box-shadow:0 22px 58px rgba(20,32,26,.08);padding:22px 26px}.feature{display:flex;align-items:center;gap:16px;padding:0 24px;border-right:1px solid #e4ebe6}.feature:first-child{padding-left:0}.feature:last-child{border-right:0;padding-right:0}.feature-icon,.cat-icon{width:56px;height:56px;border-radius:18px;background:#edf5ef;color:#00613b;display:grid;place-items:center;flex:0 0 auto}.feature-icon svg,.cat-icon svg{width:28px;height:28px;stroke:currentColor;stroke-width:2;fill:none}.feature h3{font-size:16px;margin:0 0 4px}.feature p{font-size:13px;line-height:1.35;color:#69756f;margin:0}.categories-grid{grid-template-columns:repeat(4,1fr)}.category-card{min-height:182px;transition:.18s}.category-card:hover,.product-card:hover{transform:translateY(-3px);box-shadow:0 18px 38px rgba(20,32,26,.08)}.category-card h3{font-size:17px;margin:15px 0 8px}.category-card p{color:#69756f;font-size:14px;line-height:1.42}.product-img img{width:100%;height:100%;object-fit:cover;border-radius:16px}.footer{background:#00613b;color:#fff;padding:56px 0;margin-top:36px}.footer-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:42px;align-items:start}.footer h4{font-size:16px;margin:0 0 14px}.footer p,.footer a{color:rgba(255,255,255,.86);line-height:1.75}.footer-logo{color:#fff}.footer-logo small{color:#bde6cf}
@media(max-width:1200px){.features-strip{grid-template-columns:repeat(2,1fr);gap:18px}.feature{border-right:0;padding:0}.categories-grid{grid-template-columns:repeat(2,1fr)}.footer-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:860px){.home-hero .search-main{grid-template-columns:1fr}.home-hero .search-icon{display:none}.home-hero .filters-row{grid-template-columns:1fr}.home-hero h1{font-size:42px}.features-strip,.categories-grid,.footer-grid{grid-template-columns:1fr}}
.match-badge{display:inline-flex;align-items:center;margin:0 0 10px;padding:7px 10px;border-radius:999px;background:#e7f5ee;color:#00613b;border:1px solid #cfe7d9;font-weight:800;font-size:12px}.match-badge.exact{background:#eef3ff;color:#284a9f;border-color:#d5ddff}.notice.error{background:#fff1f0;border-color:#ffccc7;color:#a8071a}.empty-state{padding:22px;border:1px dashed #cfe2d8;border-radius:18px;background:#f7fbf8;color:#6a7d75;text-align:center}.dashboard-grid{grid-template-columns:1fr 1fr}.product-detail-grid{grid-template-columns:280px 1fr}.detail-img{height:240px}.mini-specs{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0}.mini-specs span{background:#edf7f1;border:1px solid #dce8e2;color:#145c43;border-radius:999px;padding:7px 10px;font-size:13px}.admin-side .logo{font-size:22px}.admin-main h1{letter-spacing:-.02em}.stat{min-height:110px}.stat b{font-size:26px}.table-wrap input[type=checkbox]{transform:scale(1.15)}@media(max-width:1000px){.dashboard-grid,.product-detail-grid{grid-template-columns:1fr}.detail-img{height:220px}}
.impersonate-bar{background:#0f5132;color:#fff;padding:10px 0;font-size:14px}.impersonate-bar a{color:#d1fae5;font-weight:700}.compact-grid{grid-template-columns:repeat(3,minmax(160px,1fr));gap:10px}.admin-user-form input,.admin-user-form select{min-height:36px}.admin-user-form .actions{margin-top:10px}.footer img,.card img{max-width:100%;height:auto;border-radius:14px}.tabs,.actions{flex-wrap:wrap}
@media(max-width:1000px){.compact-grid{grid-template-columns:1fr}.admin-layout{grid-template-columns:1fr}.admin-side{position:relative;height:auto}.admin-main{padding:16px}}


/* v10: подсказки поиска, картинки категорий, блок товаров с тем же кодом, footer bottom */
.suggest-wrap{position:relative;min-width:0;display:block;width:100%}
.suggest-wrap input{width:100%}
.suggest-box{display:none;position:absolute;left:0;right:0;top:calc(100% + 8px);background:#fff;border:1px solid #dce8e2;border-radius:18px;box-shadow:0 22px 52px rgba(20,32,26,.14);z-index:50;overflow:hidden;text-align:left;max-height:420px;overflow-y:auto}
.suggest-box a{display:grid;grid-template-columns:120px 170px 1fr 110px;gap:14px;padding:12px 16px;border-bottom:1px solid #eef4f1;align-items:center;color:#15352a}
.suggest-box a:hover{background:#f2faf5}.suggest-box a:last-child{border-bottom:0}.s-sku{font-weight:800;color:#00613b}.s-brand{color:#3b5f52}.s-name{color:#15352a}.s-stock{font-size:12px;color:#6a7d75;text-align:right}
.cat-image{width:72px;height:72px;border-radius:20px;overflow:hidden;background:#edf5ef;display:grid;place-items:center}.cat-image img{width:100%;height:100%;object-fit:cover}
.admin-thumb{width:90px;height:70px;object-fit:cover;border-radius:12px;border:1px solid #dce8e2;background:#edf5ef}.admin-thumb.small{width:58px;height:46px}
.same-code-block{margin-top:34px}.same-code-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.same-code-item{display:flex;gap:12px;align-items:center;background:#fff;border:1px solid #e4ebe6;border-radius:16px;padding:12px;min-height:82px}.same-code-item:hover{box-shadow:0 14px 34px rgba(20,32,26,.08);transform:translateY(-2px)}.same-code-item b{display:block;font-size:14px;line-height:1.25}.same-code-item em{display:block;font-style:normal;color:#477064;font-size:13px;margin-top:4px}.mini-photo{width:52px;height:52px;border-radius:14px;background:#edf5ef;color:#00613b;font-weight:900;display:grid;place-items:center;overflow:hidden;flex:0 0 auto}.mini-photo img{width:100%;height:100%;object-fit:cover}
.footer-bottom{border-top:1px solid rgba(255,255,255,.18);margin-top:34px;padding-top:22px;color:rgba(255,255,255,.72);font-size:14px}.footer-bottom b{color:#fff}.footer{margin-top:auto}
@media(max-width:900px){.suggest-box a{grid-template-columns:1fr}.s-stock{text-align:left}.same-code-grid{grid-template-columns:1fr}}


/* v11: аккуратный блок одинакового артикула + ровный шрифт */
body{
  font-family:"Segoe UI", Inter, Arial, sans-serif;
  font-weight:400;
  line-height:1.45;
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
  font-variant-numeric:tabular-nums;
}
h1,h2,h3,h4,.logo,.btn,button,th,.price,.stock.ok,.stock.no{
  font-family:"Segoe UI", Inter, Arial, sans-serif;
  letter-spacing:-.015em;
}
.product-card h3,
.category-card h3,
.same-code-item b{
  line-height:1.22;
  word-break:normal;
  overflow-wrap:anywhere;
}
.results-section{padding-top:28px}
.same-code-top{
  margin:0 0 34px;
  padding:24px;
  border:1px solid var(--border);
  border-radius:26px;
  background:#fff;
  box-shadow:0 18px 46px rgba(20,32,26,.06);
}
.same-code-head{
  align-items:flex-start;
  gap:16px;
  margin-bottom:18px;
}
.same-code-head h2{margin:0 0 6px}
.same-code-head .muted{margin:0;max-width:780px}
.same-code-grid{
  grid-template-columns:repeat(4,minmax(0,1fr));
}
.same-code-item{
  min-height:78px;
  padding:12px;
}
.same-code-item.same-hidden{
  display:none;
}
.same-code-text{
  min-width:0;
  display:block;
}
.same-code-text b{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.same-code-text small{
  display:block;
  margin-top:4px;
  color:#00613b;
  font-weight:700;
  font-size:12px;
}
.same-code-item em{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.product-meta,.muted,.category-card p,.feature p{
  line-height:1.45;
}
@media(max-width:1200px){
  .same-code-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:700px){
  .same-code-grid{grid-template-columns:1fr}
  .same-code-head{display:block}
  .same-code-head .btn{margin-top:12px}
}

/* v12 product/catalog/admin polish */
.admin-top{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.admin-notify{display:flex;gap:8px;flex-wrap:wrap}
.admin-notify a{display:inline-flex;align-items:center;gap:6px;background:#eaf5ef;border:1px solid #cfe5da;border-radius:999px;padding:8px 12px;font-size:13px;font-weight:700;color:#065f3e;text-decoration:none}
.admin-notify b{background:#006b43;color:#fff;border-radius:999px;padding:2px 7px;min-width:22px;text-align:center}
.catalog-filter .form-grid{grid-template-columns:repeat(4,minmax(160px,1fr));align-items:end}
.check-row{display:flex;align-items:center;gap:8px;padding-top:24px;font-weight:700}
.pagination{display:flex;gap:8px;margin:26px 0;flex-wrap:wrap}.pagination a{padding:9px 13px;border-radius:12px;background:#eaf5ef;color:#064531;text-decoration:none;font-weight:700}.pagination a.active{background:#006b43;color:#fff}
.product-detail-grid{grid-template-columns:minmax(260px,380px) 1fr;align-items:start}.detail-img{min-height:320px}.mini-specs{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0}.mini-specs span{background:#eef7f2;border-radius:999px;padding:8px 12px;color:#31564a}.filter-bar{display:flex;gap:12px;flex-wrap:wrap;align-items:end}
.footer{margin-top:auto}.product-card h3,.same-code-text b{font-size:16px;line-height:1.25}.product-meta,.same-code-text em,.same-code-text small{line-height:1.35}
@media(max-width:900px){.top .nav{align-items:flex-start}.top nav{display:flex;flex-wrap:wrap;gap:8px}.hero h1{font-size:42px}.search-main{grid-template-columns:1fr}.search-main button{width:100%}.filters-row,.catalog-filter .form-grid,.product-detail-grid{grid-template-columns:1fr}.admin-layout{grid-template-columns:1fr}.admin-side{position:relative;height:auto}.admin-main{padding:18px}.catalog-grid,.categories-grid{grid-template-columns:1fr}.footer-grid{grid-template-columns:1fr}.same-code-grid{grid-template-columns:1fr}.admin-notify{width:100%}.table-wrap{overflow:auto}}
.copy-row{display:flex;gap:10px;align-items:center}.copy-row input{flex:1;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}.card pre{white-space:pre-wrap;background:#0f241b;color:#eafff4;border-radius:16px;padding:14px;overflow:auto;font-size:13px;line-height:1.5}.check{display:flex;align-items:center;gap:8px;font-weight:800;margin:8px 0 16px}.check input{width:auto}.admin-notify a{white-space:nowrap}

/* v16 final polish: clean header, product page, catalog, cart, admin orders */
:root{--ajm:#006b43;--ajm-dark:#003f2d;--ajm-soft:#edf7f2;--ajm-border:#d9e9e1}
.clean-top{position:sticky;top:0;background:rgba(255,255,255,.96);backdrop-filter:blur(14px);z-index:100;border-bottom:1px solid var(--ajm-border)}
.clean-nav{height:76px;display:grid;grid-template-columns:170px minmax(0,1fr) auto;gap:24px;align-items:center}.brand-logo{display:flex;align-items:center}.brand-logo img{height:44px;width:auto;display:block}.footer-brand img{height:58px;filter:brightness(0) invert(1)}.main-nav{justify-content:center;gap:18px;min-width:0;white-space:nowrap}.main-nav a{font-weight:600;color:#174b38;font-size:14px;padding:9px 0;border-bottom:2px solid transparent}.main-nav a:hover,.main-nav a.active{color:var(--ajm);border-bottom-color:var(--ajm)}.clean-actions{flex:0 0 auto}.cart-chip{display:inline-flex;align-items:center;gap:8px;background:#eaf6ef;color:var(--ajm-dark);padding:9px 13px;border-radius:999px;font-weight:800;font-size:13px}.cart-chip b{background:#006b43;color:#fff;border-radius:999px;min-width:23px;height:23px;display:grid;place-items:center;font-size:12px}.product-page{background:#fbfdfc}.product-hero-card{display:grid;grid-template-columns:360px 1fr;gap:28px;background:#fff;border:1px solid var(--ajm-border);border-radius:26px;padding:24px;box-shadow:0 18px 48px rgba(15,72,51,.06);overflow:hidden}.product-photo-box{min-height:360px;border-radius:22px;background:#eef6f1;display:grid;place-items:center;overflow:hidden;color:#6f8279}.product-photo-box img{width:100%;height:100%;object-fit:cover}.product-info-box{min-width:0}.crumb-line{font-size:13px;color:#668177;margin-bottom:14px}.crumb-line a{color:var(--ajm);font-weight:700}.product-info-box h1{font-size:31px;line-height:1.12;margin:0 0 20px;color:#0b3027;max-width:900px}.product-main-meta{display:grid;grid-template-columns:repeat(4,minmax(120px,1fr));gap:12px;margin:0 0 18px}.product-main-meta div{background:#f4faf7;border:1px solid #e1eee8;border-radius:16px;padding:12px}.product-main-meta span{display:block;font-size:12px;color:#71857d;margin-bottom:3px}.product-main-meta b{font-size:14px;color:#143b2f}.product-state-row{display:flex;align-items:center;gap:24px;margin:0 0 14px}.clean-price{font-size:24px;margin:0}.product-description{max-width:920px;color:#36584b;line-height:1.55;margin:16px 0 4px;overflow:hidden}.product-description.collapsed{max-height:70px}.text-toggle{padding:0;background:transparent!important;color:var(--ajm);font-weight:800;border-radius:0;margin:4px 0 10px}.product-specs span{font-size:14px;padding:9px 14px}.product-actions-line{display:flex;align-items:center;gap:10px;flex-wrap:nowrap;margin-top:16px}.product-actions-line form{display:flex;align-items:center;gap:10px;margin:0}.qty-form input{width:84px;height:48px;text-align:center}.product-actions-line .btn,.product-actions-line button{height:48px;white-space:nowrap}.same-products-panel{background:#fff;border:1px solid var(--ajm-border);border-radius:26px;padding:24px;margin:24px 0;box-shadow:0 14px 38px rgba(15,72,51,.045)}.product-same-grid{grid-template-columns:repeat(4,minmax(0,1fr));align-items:stretch}.product-same-item{height:100%;min-height:112px;align-items:flex-start}.product-same-item .same-code-text{height:100%;display:flex;flex-direction:column}.product-same-item .same-code-text small{margin-top:auto;padding-top:8px}.same-more-btn{margin-top:16px}.crosses-card{margin-top:22px}.clean-filter{margin-bottom:18px}.filter-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr auto auto auto;gap:12px;align-items:end}.filter-grid label{font-weight:700;color:#174b38}.filter-grid input,.filter-grid select{width:100%;margin-top:6px}.filter-actions{display:flex;gap:8px}.catalog-count{color:#5c746b;margin:12px 0 18px}.clean-product-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.clean-product-card{display:flex;flex-direction:column;min-height:430px;padding:16px}.clean-product-card .product-img{height:155px}.product-card-body{flex:1}.clean-product-card h3{font-size:16px;line-height:1.24;margin:13px 0 9px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:40px}.product-card-bottom{margin-top:auto}.card-cart-form{display:grid;grid-template-columns:74px 1fr;gap:8px;align-items:center}.card-cart-form input{width:100%;height:43px;text-align:center}.card-cart-form button{height:43px;padding:10px 12px}.form-card{border-radius:24px}.cart-layout{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:20px;align-items:start}.checkout-summary{position:sticky;top:92px}.order-stats-grid{grid-template-columns:repeat(4,minmax(180px,1fr));margin:18px 0}.stat.mini{min-height:92px}.stat.mini small{display:block;color:#6a7d75;margin-top:4px;font-size:13px}.admin-filter-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.period-tabs{display:flex;gap:8px;flex-wrap:wrap}.admin-filter-bar select{min-width:260px}.admin-orders-table td,.admin-orders-table th{padding:14px}.order-items-mini{margin-top:8px;display:flex;flex-direction:column;gap:3px;color:#31564a}.order-inline-form textarea{min-width:320px;min-height:96px;margin-bottom:8px}.admin-main table{font-size:14px}.admin-main .btn,.admin-main button{border-radius:12px}.empty-state{font-size:15px}.footer.clean-footer{background:#006b43}.footer-grid{align-items:start}.footer a:hover{text-decoration:underline}.footer-bottom{display:flex;justify-content:flex-start}
@media(max-width:1250px){.clean-nav{grid-template-columns:150px 1fr;gap:16px;height:auto;padding:16px 0}.clean-actions{grid-column:1/-1;justify-content:flex-end}.main-nav{justify-content:flex-start;flex-wrap:wrap;white-space:normal}.product-hero-card{grid-template-columns:320px 1fr}.filter-grid{grid-template-columns:repeat(3,1fr)}.clean-product-grid{grid-template-columns:repeat(3,1fr)}.product-same-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.clean-nav{display:flex;flex-direction:column;align-items:flex-start}.brand-logo img{height:38px}.main-nav{gap:12px}.clean-actions{width:100%;justify-content:flex-start;flex-wrap:wrap}.product-hero-card{grid-template-columns:1fr;padding:16px}.product-photo-box{min-height:260px}.product-info-box h1{font-size:24px}.product-main-meta{grid-template-columns:1fr 1fr}.product-actions-line{flex-wrap:wrap}.product-actions-line .btn,.product-actions-line button{width:auto}.filter-grid,.clean-product-grid,.product-same-grid,.order-stats-grid,.cart-layout{grid-template-columns:1fr}.admin-filter-bar{display:block}.admin-filter-bar select{width:100%;margin:10px 0}.order-inline-form textarea{min-width:0;width:100%}}


/* v17 emergency visual/admin fix */
.brand-logo img,.admin-brand img{width:150px!important;max-width:150px!important;height:auto!important;max-height:54px!important;object-fit:contain!important;display:block!important;position:static!important;transform:none!important;}
.footer-brand img{width:160px!important;max-width:160px!important;height:auto!important;max-height:90px!important;object-fit:contain!important;position:static!important;transform:none!important;}
.clean-top{overflow:hidden;background:#fff;}
.clean-nav{min-height:76px;max-height:96px;overflow:hidden;}
.admin-brand{display:flex;align-items:center;margin-bottom:26px;}
.admin-side nav a.active,.admin-side nav a:hover{background:#edf7f1;color:#006b43;font-weight:800;}
.admin-badges{display:flex;gap:10px;flex-wrap:wrap;align-items:center;justify-content:flex-end;}
.admin-badge{display:inline-flex;align-items:center;gap:8px;background:#eaf6ef;border:1px solid #d2e9dc;color:#0f5d3f;border-radius:999px;padding:8px 12px;font-weight:800;font-size:13px;}
.admin-badge b{background:#006b43;color:#fff;border-radius:999px;min-width:22px;height:22px;display:grid;place-items:center;font-size:12px;}
@media(max-width:900px){.admin-top{display:block}.admin-badges{justify-content:flex-start;margin-top:12px}.clean-nav{max-height:none;overflow:visible}}


/* v18 bugfix polish */
.admin-side{overflow-y:auto;scrollbar-width:thin}.admin-side nav{padding-bottom:28px}.admin-badge{display:inline-flex;align-items:center;gap:8px;background:#e7f5ee;border:1px solid #cae4d5;border-radius:999px;padding:10px 14px;font-weight:800;color:#064b34}.admin-badge:hover{background:#dff1e8}.admin-badge b{background:#006b43;color:#fff;border-radius:999px;min-width:24px;height:24px;display:grid;place-items:center}.cat-icon.cat-initials{font-weight:900;font-size:18px;color:#006b43;background:#eef7f2}.cat-image{width:72px;height:72px;border-radius:22px;background:#eef7f2;display:grid;place-items:center;overflow:hidden}.cat-image img{width:100%;height:100%;object-fit:cover}.disabled{pointer-events:none;opacity:.65}.product-card .btn.ghost{width:max-content}.admin-brand img{margin:0 auto 12px}.admin-side .active{background:#e7f5ee!important;font-weight:800;color:#006b43}.clean-product-card .stock.no,.product-card .stock.no{display:none}.same-hidden{display:none}.brand-logo img{width:150px!important;max-width:150px!important;max-height:54px!important}.footer-brand img{width:150px!important;max-height:86px!important}.admin-brand img{width:125px!important;max-width:125px!important;max-height:60px!important}


/* v19 cleanup */
html{-webkit-text-size-adjust:100%}button,.btn,input,select,textarea{-webkit-appearance:none;appearance:none;font-family:inherit}button,.btn{-webkit-tap-highlight-color:transparent;transition:background .16s ease,color .16s ease,border-color .16s ease,box-shadow .16s ease}button:focus,button:active,.btn:focus,.btn:active{outline:none;box-shadow:none}button:focus-visible,.btn:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid rgba(0,107,67,.22);outline-offset:2px}.btn,.secondary,button{border:1px solid transparent}.btn.ghost,.secondary,button.secondary{background:#eaf6ef!important;color:#0b4b35!important;border-color:#cfe5d8!important}.btn.ghost:hover,.secondary:hover,button.secondary:hover{background:#deefe6!important;color:#0b4b35!important}.btn:hover,button:hover{background:#005c39}.clean-top{overflow:visible}.category-card .cat-image,.category-card .cat-icon{display:none!important}.category-card h3{margin-top:0!important}.category-card{justify-content:center}.search-icon svg{width:28px;height:28px;stroke:currentColor;stroke-width:2;fill:none}.home-hero h1{letter-spacing:-.02em;max-width:920px}.home-hero .subtitle{max-width:820px}.filter-grid{grid-template-columns:minmax(220px,1.45fr) repeat(3,minmax(150px,1fr)) auto auto auto;align-items:end}.check-row{display:flex;align-items:center;gap:10px;padding-top:0;padding-bottom:12px;align-self:end;font-weight:700}.check-row input{width:18px;height:18px;margin:0;flex:0 0 auto}.filter-actions{display:flex;gap:8px;align-self:end}.clean-product-card .btn.ghost{width:100%;justify-content:center}.checkout-summary label{display:block;font-weight:700;margin-bottom:12px}.checkout-summary label input,.checkout-summary label textarea{display:block;width:100%;margin-top:6px}.checkout-summary .price{margin-bottom:14px}.admin-side{overflow-y:auto;overscroll-behavior:contain}.main-nav a,.btn,button{letter-spacing:0}.same-code-item,.product-card,.category-card,.card{overflow:hidden}.clean-product-card .product-img,.product-img{background:#eff6f1}.clean-product-card h3{min-height:44px}.match-badge{display:inline-flex;align-items:center;gap:8px;padding:6px 10px;border-radius:999px;background:#edf7f2;color:#006b43;font-size:12px;font-weight:800;margin-bottom:8px}.match-badge.exact{background:#e8f3ff;color:#1c4f91}.feature,.feature *{min-width:0}.feature-icon,.feature-icon svg{flex:0 0 auto}.catalog-page .section-head h1,.section-head h2{letter-spacing:-.01em}.main-nav{row-gap:8px}.cart-layout .card{min-width:0}.home-hero .search-panel{overflow:visible}.same-code-text b{word-break:break-word}.same-code-text em,.product-meta,.muted{word-break:break-word}.btn[disabled],button[disabled],.btn.disabled{opacity:1;background:#eaf6ef!important;color:#0b4b35!important;border-color:#cfe5d8!important}.actions button.secondary{background:#eaf6ef!important;color:#0b4b35!important;border-color:#cfe5d8!important}.main-nav a{display:inline-flex;align-items:center}.product-main-meta b{word-break:break-word}
@media(max-width:1180px){.filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.filter-actions{grid-column:1/-1}.check-row{padding-bottom:0}}
@media(max-width:760px){.clean-top{position:relative!important;top:auto}.clean-nav{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;height:auto;padding:18px 0}.brand-logo,.clean-actions{width:100%;display:flex;justify-content:center}.brand-logo img{height:54px}.main-nav{width:100%;display:flex;flex-wrap:wrap;justify-content:center;gap:12px 18px;white-space:normal}.main-nav a{font-size:15px;line-height:1.2;padding:4px 0}.clean-actions{flex-wrap:wrap;gap:10px}.home-hero{padding:30px 0 24px}.home-hero h1{font-size:clamp(34px,9vw,42px);line-height:1.08;letter-spacing:-.015em}.home-hero .subtitle{font-size:18px;margin-bottom:20px}.home-hero .search-panel{padding:14px;border-radius:22px}.home-hero .catalog-search{gap:12px}.home-hero .search-main{grid-template-columns:1fr;padding:12px}.home-hero .search-icon{display:none}.home-hero .search-main input{height:54px;padding:0 10px}.home-hero .search-main button{width:100%;height:54px}.home-hero .filters-row{grid-template-columns:1fr;gap:10px}.filter-grid{grid-template-columns:1fr}.check-row{padding-bottom:0}.features-strip{grid-template-columns:1fr;padding:18px}.feature{padding:0;border-right:0}.cart-layout{grid-template-columns:1fr}.checkout-summary{position:static}.product-main-meta{grid-template-columns:1fr 1fr}.product-state-row{flex-direction:column;align-items:flex-start;gap:8px}.product-actions-line{flex-wrap:wrap}.product-actions-line form,.product-actions-line .btn{width:100%}.product-actions-line form.qty-form{display:grid;grid-template-columns:80px 1fr}.product-actions-line form:not(.qty-form){display:block}.product-actions-line form:not(.qty-form) button{width:100%}.same-code-head{display:block}.same-code-head .btn{margin-top:12px}.section-head{display:block}.search-note{font-size:15px}.footer-bottom{justify-content:center;text-align:center}}


/* v20 form/mobile fixes */
.form-grid label,.checkout-summary label{display:flex;flex-direction:column;gap:7px;min-width:0}.form-grid label>span,.checkout-summary label>span{display:block;font-weight:700;color:#183d31;line-height:1.3}.register-grid input::placeholder{font-size:13px;color:#7a8c84}.register-card{max-width:860px}.register-grid{gap:16px 22px}.register-grid input,.register-grid select{width:100%}.checkout-form select,.checkout-form input,.checkout-form textarea{width:100%}.checkout-summary label{margin-bottom:14px}.checkout-summary label input,.checkout-summary label textarea,.checkout-summary label select{margin-top:0}.checkout-form button{margin-top:4px}.filter-grid label,.catalog-filter label{display:flex;flex-direction:column;gap:8px;min-width:0}.filter-grid label input,.filter-grid label select,.catalog-filter label input,.catalog-filter label select{margin-top:0}.home-hero .filters-row>*{min-width:0}.home-hero .filters-row select,.home-hero .filters-row .btn{min-height:52px}.home-hero .filters-row select{padding-left:14px;padding-right:14px}.home-hero .search-panel,.home-hero .catalog-search{min-width:0}.home-hero .search-main input{min-width:0}.checkout-summary .muted{margin-top:-4px;margin-bottom:12px}.checkout-summary h2{margin-top:0}.form-card h1{margin-top:0}.register-card button{min-width:210px}
@media(max-width:760px){.register-grid{gap:14px}.register-grid label,.checkout-summary label,.filter-grid label,.catalog-filter label{gap:8px}.home-hero .filters-row{display:grid;grid-template-columns:1fr;gap:12px}.home-hero .filters-row select,.home-hero .filters-row .btn{width:100%}.home-hero .filters-row .btn{display:flex}.main-nav{padding:0 8px}.main-nav a{white-space:normal;text-align:center}.clean-actions .cart-chip,.clean-actions .btn{flex:0 0 auto}.checkout-summary{padding:18px}.checkout-summary button{min-height:48px}.register-grid input::placeholder{font-size:12px}.search-note{padding:0 6px}}


/* v21 checkbox/cart/favicons/forms fix */
input[type="checkbox"]{
  -webkit-appearance: checkbox !important;
  appearance: checkbox !important;
  width:18px !important;
  height:18px !important;
  min-width:18px !important;
  padding:0 !important;
  margin:0 8px 0 0 !important;
  display:inline-block !important;
  vertical-align:middle !important;
  border-radius:4px !important;
  accent-color:#006b43;
}
label:has(input[type="checkbox"]){
  flex-direction:row !important;
  align-items:center !important;
  gap:8px !important;
  width:auto !important;
}
.form-grid label:has(input[type="checkbox"]){
  padding-top:30px;
}
input[type="file"]{
  -webkit-appearance:none;
  appearance:none;
  width:100%;
  padding:12px;
  background:#fff;
}
.checkout-form select{
  color:#183d31;
  font-weight:700;
}
.checkout-form select:invalid{
  color:#667a72;
}
.cart-layout table td,
.cart-layout table th{
  vertical-align:middle;
}
.cart-layout .danger{
  background:#b42318!important;
  color:#fff!important;
  border-color:#b42318!important;
}
.cart-layout .danger:hover{
  background:#921b13!important;
}
@media(max-width:760px){
  .cart-layout table{
    min-width:720px;
  }
  .form-grid label:has(input[type="checkbox"]){
    padding-top:0;
  }
}


/* v22 fixes */
.main-nav a.active{color:var(--ajm);border-bottom-color:var(--ajm)}
.cart-layout form{margin:0}
.cart-layout .danger{background:#b42318!important;color:#fff!important}


/* v23 typography/export fixes */
.home-hero h1,
.hero h1{
  letter-spacing:.012em !important;
  word-spacing:.08em !important;
  font-kerning:normal;
  text-rendering:geometricPrecision;
}
.home-hero h1{
  max-width:980px;
}
.main-nav a{
  letter-spacing:.01em;
}
.main-nav a.active{
  color:var(--ajm);
  border-bottom-color:var(--ajm);
}
.admin-export-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}
.admin-export-actions .btn{
  white-space:nowrap;
}
@media(max-width:760px){
  .home-hero h1,
  .hero h1{
    letter-spacing:0 !important;
    word-spacing:.05em !important;
  }
  .admin-export-actions{
    display:grid;
    grid-template-columns:1fr;
  }
  .admin-export-actions .btn,
  .admin-export-actions button,
  .admin-export-actions input,
  .admin-export-actions select{
    width:100%;
  }
}


/* v24 search/log/time fixes */
.analog-toggle{
  display:flex!important;
  flex-direction:row!important;
  align-items:center;
  gap:8px;
  min-height:52px;
  padding:0 14px;
  background:#eaf6ef;
  border:1px solid #cfe5d8;
  border-radius:14px;
  color:#0b4b35;
  font-weight:800;
  white-space:nowrap;
}
.analog-toggle input[type="checkbox"]{
  margin:0!important;
}
.ua-cell{
  display:block;
  max-width:360px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
@media(max-width:760px){
  .analog-toggle{
    width:100%;
    justify-content:center;
  }
  .ua-cell{
    max-width:230px;
  }
}


/* v25 report/search/name fixes */
.brand-combo{
  position:relative;
  min-width:240px;
}
.brand-combo input{
  width:100%;
}
.brand-combo-list{
  display:none;
  position:absolute;
  left:0;
  right:0;
  top:calc(100% + 6px);
  z-index:50;
  background:#fff;
  border:1px solid #cfe5d8;
  border-radius:16px;
  box-shadow:0 18px 35px rgba(0,60,38,.14);
  max-height:260px;
  overflow:auto;
  padding:8px;
}
.brand-combo.open .brand-combo-list{
  display:block;
}
.brand-combo-list button{
  display:block;
  width:100%;
  text-align:left;
  background:#fff!important;
  color:#12382d!important;
  border:0!important;
  border-radius:10px;
  padding:9px 10px;
  font-weight:700;
}
.brand-combo-list button:hover{
  background:#eaf6ef!important;
}
.home-hero .filters-row{
  grid-template-columns:minmax(180px,1fr) minmax(180px,1fr) auto auto;
  align-items:center;
}
.home-hero .filters-row .secondary{
  min-height:52px;
}
.analog-toggle{
  min-width:180px;
  justify-content:center;
}
.home-hero .search-panel{
  max-width:960px;
  margin-left:auto;
  margin-right:auto;
}
@media(max-width:900px){
  .home-hero .filters-row{
    grid-template-columns:1fr 1fr;
  }
  .home-hero .filters-row .secondary,
  .home-hero .filters-row .analog-toggle{
    width:100%;
  }
}
@media(max-width:760px){
  .home-hero .filters-row{
    grid-template-columns:1fr;
  }
  .brand-combo{
    width:100%;
  }
}


/* v26 dashboard/export/log/search fixes */
.brand-report-form{
  position:relative;
  z-index:5;
  overflow:visible!important;
}
.dashboard-grid .card,
.admin-filter-bar,
.actions.card{
  overflow:visible;
}
.suggest-box{
  z-index:80;
}
.order-items-mini small{
  display:block;
  margin-top:4px;
}
.period-tabs{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
@media(max-width:760px){
  .period-tabs{
    display:grid;
    grid-template-columns:1fr 1fr;
  }
}


/* v27 client order/edit/export fixes */
.client-order-card{margin-bottom:16px}
.client-order-head{display:grid;grid-template-columns:1.4fr .7fr .7fr auto;gap:14px;align-items:center}
.client-order-item{display:grid;grid-template-columns:1fr auto auto;gap:12px;align-items:center;padding:9px 0;border-top:1px solid #dcebe4}
.order-edit-details{margin-top:12px}
.order-edit-details summary{cursor:pointer;font-weight:900;color:#075c3d;margin:8px 0}
.client-order-edit-form,.client-order-add-form{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:12px 0}
.client-order-edit-form label{display:flex;flex-direction:column;gap:7px;font-weight:800}
.client-order-edit-form textarea{min-height:90px}
.client-order-add-form{grid-template-columns:1fr .7fr 100px auto}
.btn.danger,button.danger,.danger{background:#b9231f!important;color:#fff!important;border-color:#b9231f!important}
@media(max-width:760px){
  .client-order-head,.client-order-item,.client-order-edit-form,.client-order-add-form{grid-template-columns:1fr}
}


/* v28 suggestion/order flow fixes */
.search-panel{overflow:visible!important}
.suggest-wrap{position:relative}
.suggest-box{
  position:absolute!important;
  left:0!important;
  right:0!important;
  top:calc(100% + 10px)!important;
  width:100%!important;
  max-height:260px!important;
  overflow:auto!important;
  border:1px solid #d6e6df!important;
  border-radius:18px!important;
  background:#fff!important;
  box-shadow:0 18px 38px rgba(0,60,38,.16)!important;
  z-index:90!important;
}
.search-panel.suggest-open{padding-bottom:275px}
.suggest-box a{
  min-height:58px;
  display:grid!important;
  grid-template-columns:110px 170px minmax(220px,1fr) 100px!important;
  gap:12px;
  align-items:center;
  padding:12px 16px!important;
}
.suggest-box .s-name{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.client-order-edit-form{
  grid-template-columns:1fr 1fr!important;
  align-items:end;
}
.client-order-edit-form button{
  min-height:52px!important;
  width:auto!important;
  align-self:end;
}
.order-edit-details .btn{
  margin-top:10px;
}
.add-order-notice{
  max-width:960px;
  margin:0 auto 12px;
}
@media(max-width:900px){
  .search-panel.suggest-open{padding-bottom:300px}
  .suggest-box a{grid-template-columns:80px 1fr!important}
  .suggest-box .s-name,.suggest-box .s-stock{grid-column:1 / -1}
}
@media(max-width:760px){
  .search-panel.suggest-open{padding-bottom:320px}
  .client-order-edit-form{grid-template-columns:1fr!important}
}


/* v29 suggestion overlay final */
.search-panel.suggest-open{
  padding-bottom:18px!important;
}
.search-panel.suggest-open .filters-row{
  display:none!important;
}
.suggest-box{
  left:0!important;
  right:0!important;
  width:100%!important;
  max-width:100%!important;
  max-height:300px!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
}
.suggest-box a{
  grid-template-columns:90px 150px minmax(0,1fr) 95px!important;
  width:100%!important;
  box-sizing:border-box!important;
}
.suggest-box span{
  min-width:0;
}
.suggest-box .s-sku,
.suggest-box .s-brand,
.suggest-box .s-stock{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.suggest-box .s-name{
  min-width:0;
  overflow:hidden;
}
@media(max-width:900px){
  .suggest-box a{
    grid-template-columns:80px minmax(0,1fr)!important;
  }
}

/* v38 promo notice */
.main-nav a{position:relative;}
.promo-nav-badge{
  position:absolute;
  top:-13px;
  right:-13px;
  min-width:20px;
  height:20px;
  padding:0 6px;
  border-radius:999px;
  background:#e53935;
  color:#fff;
  font-size:12px;
  line-height:20px;
  font-weight:900;
  text-align:center;
  box-shadow:0 8px 18px rgba(229,57,53,.24);
}
.promo-notice{
  padding:24px 0 0;
  background:#fff;
}
.promo-notice-box{
  display:flex;
  align-items:center;
  gap:18px;
  min-height:72px;
  padding:18px 22px;
  border:1px solid #d8eee5;
  border-radius:20px;
  background:linear-gradient(135deg,#f2fbf7 0%,#ffffff 58%,#eef8f4 100%);
  box-shadow:0 16px 38px rgba(0,64,45,.08);
}
.promo-notice-icon{
  width:44px;
  height:44px;
  flex:0 0 44px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:14px;
  background:#067544;
  color:#fff;
  font-size:22px;
  font-weight:900;
  transform:rotate(-12deg);
}
.promo-notice-text{
  flex:1;
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:4px;
}
.promo-notice-text b{
  font-size:18px;
  color:#073b2d;
}
.promo-notice-text span{
  color:#61756f;
  font-size:15px;
}
.promo-notice-btn{
  white-space:nowrap;
  box-shadow:0 12px 24px rgba(0,105,67,.18);
}
.promo-notice-close{
  width:38px;
  height:38px;
  border:0;
  background:transparent;
  color:#48655c;
  font-size:30px;
  line-height:1;
  cursor:pointer;
  border-radius:12px;
}
.promo-notice-close:hover{background:#e7f4ee;}
@media(max-width:820px){
  .promo-nav-badge{top:-10px;right:-10px;}
  .promo-notice{padding:14px 0 0;}
  .promo-notice-box{align-items:flex-start;gap:12px;padding:14px;border-radius:18px;}
  .promo-notice-icon{width:38px;height:38px;flex-basis:38px;font-size:19px;}
  .promo-notice-text b{font-size:15px;}
  .promo-notice-text span{font-size:13px;}
  .promo-notice-btn{padding:11px 13px;font-size:13px;}
  .promo-notice-close{width:30px;height:30px;font-size:24px;}
}
@media(max-width:560px){
  .promo-notice-box{display:grid;grid-template-columns:38px 1fr 30px;}
  .promo-notice-btn{grid-column:2 / 4;justify-self:start;}
}

/* v41 branches */
.branch-stock-box{margin:16px 0;padding:16px;border:1px solid #dfeee7;border-radius:18px;background:#f8fcfa}
.branch-stock-box h3{margin:0 0 12px;color:#0b5b3d}
.branch-card hr{border:0;border-top:1px solid #e2eee8;margin:18px 0}

/* v42 article-search table like TruckMotors reference */
.article-result-card{background:#fff;border:1px solid #d9e9e2;border-radius:18px;box-shadow:0 12px 30px rgba(0,64,45,.06);overflow:hidden;margin-top:16px}
.article-result-scroll{width:100%;overflow-x:auto}
.article-result-table{width:100%;border-collapse:collapse;min-width:980px;font-size:14px;color:#123b31;background:#fff}
.article-result-table th{background:#eef5f2;color:#123b31;text-align:left;font-weight:800;padding:14px 12px;border:1px solid #dfe9e4;white-space:nowrap}
.article-result-table td{padding:12px;border:1px solid #e4ece8;vertical-align:middle;background:#fff}
.article-result-table .case-info{width:42px;text-align:center}
.article-result-table .case-info a{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:50%;background:#0b6b4a;color:#fff;text-decoration:none;font-weight:900;font-family:Arial,sans-serif;font-size:14px}
.article-result-table .case-photo{width:110px;text-align:center}
.article-photo{display:inline-flex;align-items:center;justify-content:center;width:58px;height:58px;border-radius:12px;background:#f6faf8;border:1px solid #e2eee8;overflow:hidden;color:#9aaba4;font-size:24px}
.article-photo img{width:100%;height:100%;object-fit:contain;display:block}
.article-photo.no-photo{background:#fafafa;color:#c5cfca}
.article-result-table .case-brand{min-width:150px;font-weight:800}
.article-result-table .case-brand a{color:#075f42;text-decoration:underline;text-underline-offset:3px}
.article-result-table .case-part-code{width:130px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-weight:700;color:#102f28;white-space:nowrap}
.article-result-table .case-description{min-width:280px;color:#284c42;line-height:1.35}
.article-result-table .case-availability{width:155px;color:#567069;font-size:13px;line-height:1.35}
.article-result-table .case-availability b{font-size:14px}
.article-result-table .case-price{width:120px;font-weight:900;color:#083c2c;white-space:nowrap}
.article-result-table .search-link{width:135px;text-align:left}
.article-result-table .search-link a{color:#006bc4;text-decoration:underline;text-underline-offset:3px;font-weight:700;white-space:nowrap}
.article-result-row{cursor:pointer;transition:background .15s ease}
.article-result-row:hover td{background:#f7fcfa}
.stock-ok{color:#087143}.stock-no{color:#a12b2b}.match-mini{font-size:12px;color:#0b6b4a;font-weight:700}
@media(max-width:720px){.article-result-card{border-radius:14px}.article-result-table{font-size:13px;min-width:880px}.article-result-table th,.article-result-table td{padding:10px 9px}.article-photo{width:48px;height:48px}}


/* v43 fixes: images, admin menu search, client managers */
.admin-menu-search{margin:12px 0 14px}.admin-menu-search input{width:100%;height:42px;border-radius:14px;background:#f5fbf7;border:1px solid #d4e8dc;font-weight:700;color:#0b3d2d}.admin-menu-search input::placeholder{color:#6d8178}.product-img{aspect-ratio:418/361;height:auto!important;min-height:0!important;max-height:none!important;overflow:hidden;background:#f4faf7}.product-img img{width:100%;height:100%;object-fit:contain;display:block}.clean-product-card .product-img{height:auto!important}.article-photo img,.mini-photo img{object-fit:contain}.product-photo-box{width:100%;aspect-ratio:418/361;min-height:0!important;height:auto!important;background:#f4faf7}.product-photo-box img{width:100%;height:100%;object-fit:contain!important;display:block}.manager-contact{display:flex;flex-direction:column;gap:4px;margin-top:8px}.manager-contact a{color:#006b43;font-weight:800}.manager-contact span{color:#6a7d75}.client-manager-box{background:#f4faf7;border:1px solid #dce8e2;border-radius:18px;padding:14px;margin-top:14px}.client-manager-box h3{margin:0 0 6px}.branch-card .form-grid{align-items:end}

/* v44 fixes: manager spacing, real image fitting, cabinet polish */
.nice-manager-contact{display:flex!important;flex-direction:column!important;gap:8px!important;margin-top:10px!important;line-height:1.45!important}
.nice-manager-contact .manager-main{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;margin-bottom:2px}
.nice-manager-contact .manager-main b{font-size:18px;color:#07372b}
.nice-manager-contact .manager-main span{color:#6a7d75;font-weight:600}
.nice-manager-contact .manager-line{display:flex;align-items:baseline;gap:6px;flex-wrap:wrap;color:#183b31}
.nice-manager-contact .manager-label{color:#6a7d75;font-weight:800;min-width:72px}
.nice-manager-contact a{color:#006b43!important;font-weight:900!important;text-decoration:none}
.notice .nice-manager-contact{margin-top:12px;padding-top:8px;border-top:1px solid rgba(198,164,64,.25)}

.product-img,.clean-product-card .product-img,.promo-card .product-img{width:100%!important;aspect-ratio:418/361!important;height:auto!important;min-height:0!important;max-height:none!important;display:flex!important;align-items:center!important;justify-content:center!important;overflow:hidden!important;background:#f4faf7!important;border-radius:16px!important}
.product-img img,.clean-product-card .product-img img,.promo-card .product-img img{width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;display:block!important}
.product-photo-box{width:100%!important;max-width:418px!important;aspect-ratio:418/361!important;height:auto!important;min-height:0!important;display:flex!important;align-items:center!important;justify-content:center!important;overflow:hidden!important;background:#f4faf7!important;border-radius:22px!important}
.product-photo-box img{width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;display:block!important}
.article-result-table td.case-photo,.article-result-table th.case-photo{width:96px!important;max-width:96px!important;text-align:center!important}
.article-result-table .article-photo{width:72px!important;height:62px!important;max-width:72px!important;max-height:62px!important;overflow:hidden!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;background:#f7fbf9!important;border:1px solid #e3eee8!important;border-radius:10px!important}
.article-result-table .article-photo img,.article-result-table td.case-photo img,.article-result-table img.searchResultImg{width:100%!important;height:100%!important;max-width:72px!important;max-height:62px!important;object-fit:contain!important;display:block!important}
.mini-photo{overflow:hidden}.mini-photo img{width:100%!important;height:100%!important;object-fit:contain!important;display:block!important}

.cabinet-page{background:#fbfdfc}.cabinet-hero{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:18px;padding:26px}.cabinet-hero h1{margin:10px 0 8px;font-size:34px;line-height:1.1}.cabinet-status{background:#eaf6ef;border:1px solid #cfe5d8;border-radius:18px;padding:16px 18px;min-width:190px}.cabinet-status span{display:block;color:#6a7d75;font-size:13px;font-weight:800}.cabinet-status b{display:block;color:#006b43;font-size:22px;margin-top:4px}.cabinet-stats{margin:18px 0}.cabinet-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(320px,.8fr);gap:18px;align-items:start}.cabinet-profile-card h2,.cabinet-manager-card h2{margin-top:0}.cabinet-profile-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0 20px}.cabinet-profile-list div{background:#f4faf7;border:1px solid #e1eee8;border-radius:16px;padding:13px}.cabinet-profile-list span{display:block;color:#6a7d75;font-size:12px;font-weight:800;margin-bottom:4px}.cabinet-profile-list b{color:#123b31;word-break:break-word}.cabinet-actions{margin-top:8px}.cabinet-manager-card{background:#fff!important}.cabinet-manager-card .nice-manager-contact{background:#f4faf7;border:1px solid #e1eee8;border-radius:18px;padding:16px}
@media(max-width:850px){.cabinet-hero,.cabinet-grid{display:block}.cabinet-status{margin-top:14px}.cabinet-profile-list{grid-template-columns:1fr}.cabinet-manager-card{margin-top:18px}.product-photo-box{max-width:100%!important}}


/* v45 cabinet, tables and photo sizing fixes */
.cabinet-stats-compact{grid-template-columns:repeat(3,minmax(0,1fr))!important;max-width:900px}
.cabinet-profile-list-one{display:flex!important;flex-direction:column!important;gap:10px!important}
.cabinet-profile-list-one div{width:100%!important;display:block!important}
.cabinet-grid-v45{grid-template-columns:minmax(0,1.2fr) minmax(300px,.8fr)!important}
.cabinet-edit-grid{display:grid;grid-template-columns:1fr;gap:18px;margin-top:18px}.cabinet-edit-card label{display:block;font-weight:800;margin:0 0 12px}.cabinet-edit-card input,.cabinet-edit-card select,.cabinet-edit-card textarea{display:block;width:100%;margin-top:7px;font-weight:600}.cabinet-edit-form{grid-template-columns:repeat(2,minmax(0,1fr))}.cabinet-help-text{margin-top:14px}.ok-cabinet-notice{background:#eef9f2;border-color:#ccebd8}.change-list{margin:0;padding-left:18px}.change-list li{margin:3px 0}.client-change-actions{display:flex;flex-direction:column;gap:8px;min-width:180px}.client-change-actions textarea{min-height:64px}
.article-result-table{table-layout:fixed}.article-result-table .case-photo{width:96px!important}.article-result-table .case-info{width:42px!important}.article-result-table .case-price{width:120px!important}.article-result-table .case-availability{width:150px!important}.article-result-table .search-link{width:120px!important}.article-result-table td.case-photo,.article-result-table th.case-photo{text-align:center!important;vertical-align:middle!important}.article-result-table .article-photo{width:78px!important;height:68px!important;max-width:78px!important;max-height:68px!important}.article-result-table .article-photo img,.article-result-table td.case-photo img,.article-result-table img{width:100%!important;height:100%!important;max-width:78px!important;max-height:68px!important;object-fit:cover!important;display:block!important;border-radius:10px!important}
.product-img,.clean-product-card .product-img,.promo-card .product-img{aspect-ratio:418/361!important;height:auto!important;max-height:none!important}.product-img img,.clean-product-card .product-img img,.promo-card .product-img img{object-fit:cover!important}
.product-photo-box{width:100%!important;max-width:418px!important;aspect-ratio:418/361!important;height:auto!important;max-height:361px!important;min-height:0!important;align-self:start!important}.product-photo-box img{object-fit:contain!important;width:100%!important;height:100%!important;max-width:418px!important;max-height:361px!important}.product-hero-card{grid-template-columns:minmax(280px,418px) 1fr!important}.mini-photo img{object-fit:cover!important}
@media(max-width:900px){.cabinet-stats-compact,.cabinet-edit-form{grid-template-columns:1fr!important}.cabinet-grid-v45,.product-hero-card{grid-template-columns:1fr!important}.product-photo-box{max-width:100%!important}}


/* v46: registration branch, admin notifications, safer table wrapping, delivery address, cabinet polish */
.register-grid select{min-height:48px}
.admin-badges{flex-wrap:wrap}.admin-badge{white-space:nowrap}.admin-badge[href*="client_changes"] b{background:#c91515;color:#fff}
.article-result-scroll{width:100%;overflow-x:auto;overflow-y:hidden;padding-bottom:4px}
.article-result-table{min-width:1120px!important;table-layout:fixed!important;border-collapse:separate;border-spacing:0}
.article-result-table th,.article-result-table td{vertical-align:middle!important;overflow:hidden!important;overflow-wrap:anywhere!important;word-break:normal!important;hyphens:auto!important}
.article-result-table .case-info{width:44px!important}.article-result-table .case-photo{width:90px!important}.article-result-table .case-brand{width:150px!important;min-width:0!important}.article-result-table .part-code,.article-result-table .case-part-code{width:210px!important;white-space:normal!important;line-height:1.25!important}.article-result-table .case-description{width:285px!important;min-width:0!important;line-height:1.38!important}.article-result-table .case-availability{width:140px!important;min-width:0!important;white-space:normal!important}.article-result-table .case-price{width:115px!important;white-space:normal!important}.article-result-table .search-link{width:128px!important;text-align:center!important;white-space:normal!important}
.article-result-table .cell-wrap{display:block;max-height:72px;overflow:hidden;line-height:1.38;word-break:break-word;overflow-wrap:anywhere}
.article-result-table .case-brand a,.article-result-table .case-part-code{overflow-wrap:anywhere!important;word-break:break-word!important}.article-result-table .case-price{font-size:15px!important}.article-result-table .price-analog-link,.article-result-table .search-link a{display:inline-flex!important;align-items:center!important;justify-content:center!important;max-width:112px!important;min-height:38px!important;padding:7px 9px!important;border-radius:12px!important;background:#eaf6ef!important;border:1px solid #cfe5d8!important;color:#075f42!important;text-decoration:none!important;font-size:13px!important;line-height:1.15!important;text-align:center!important;white-space:normal!important;overflow-wrap:break-word!important}
.article-result-table .price-analog-link:hover,.article-result-table .search-link a:hover{background:#dff1e8!important;border-color:#b9ddca!important}
.article-result-table .article-photo{width:66px!important;height:58px!important;max-width:66px!important;max-height:58px!important}.article-result-table .article-photo img,.article-result-table td.case-photo img,.article-result-table img{object-fit:contain!important;max-width:66px!important;max-height:58px!important}
.product-img img,.clean-product-card .product-img img,.promo-card .product-img img,.mini-photo img{object-fit:contain!important}.product-img,.clean-product-card .product-img,.promo-card .product-img{background:#f4faf7!important}
.checkout-form input,.checkout-form select,.checkout-form textarea{font-size:16px}.cabinet-profile-list-one div{padding:16px!important}.cabinet-actions{display:flex;gap:10px;flex-wrap:wrap}
@media(max-width:900px){.article-result-table{min-width:980px!important}.article-result-table .case-description{width:240px!important}.article-result-table .case-part-code,.article-result-table .part-code{width:180px!important}}


/* v47 product base cleanup */
.danger-card{border-color:#f3c7c7;background:#fffafa}
.alert{padding:14px 16px;border-radius:14px;margin:14px 0;font-weight:800}
.alert.ok{background:#ecfdf5;border:1px solid #bbf7d0;color:#065f46}
.alert.danger{background:#fef2f2;border:1px solid #fecaca;color:#991b1b}
.stats-grid.compact-stats{display:grid;grid-template-columns:repeat(4,minmax(140px,1fr));gap:12px;margin:18px 0}
.stats-grid.compact-stats>div{background:#f3fbf7;border:1px solid #d6eadf;border-radius:16px;padding:14px 16px}
.stats-grid.compact-stats span{display:block;color:#667b73;font-weight:700;margin-bottom:6px}
.stats-grid.compact-stats b{font-size:24px;color:#063b2f}
.danger-form{display:grid;gap:12px;margin-top:16px;max-width:680px}
.check-line{display:flex;align-items:center;gap:10px;font-weight:800;color:#173f34}
.check-line input{width:18px;height:18px;accent-color:#0b6b4d}
.danger-confirm{display:grid;gap:8px;margin-top:8px}
.danger-confirm input{max-width:260px;border:1px solid #e0c2c2;background:#fff;border-radius:14px;padding:13px 14px;font-weight:900;letter-spacing:.03em}
.btn-danger{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:14px;background:#c81e1e;color:#fff!important;padding:13px 18px;font-weight:900;text-decoration:none;cursor:pointer;box-shadow:0 10px 24px rgba(200,30,30,.15)}
.btn-danger:hover{filter:brightness(.96)}
.clean-list{line-height:1.8;color:#1b3f35;font-weight:700}
@media(max-width:900px){.stats-grid.compact-stats{grid-template-columns:repeat(2,minmax(140px,1fr))}}
@media(max-width:520px){.stats-grid.compact-stats{grid-template-columns:1fr}}

/* v51: order branch + admin/menu/manual/table polish */
.checkout-form select#checkoutBranchSelect{width:100%;font-weight:800;color:#143d2f;background:#fff}
.admin-side nav a[data-menu-title*="страницы"],
.admin-side nav a[data-menu-title*="подвал"],
.admin-side nav a[data-menu-title*="настройки"]{opacity:.92}
.manual-card ul{margin:10px 0 0 18px;line-height:1.65}.manual-card li{margin:4px 0}.manual-card p{line-height:1.65}
.article-result-card{max-width:100%;overflow:hidden}.article-result-scroll{width:100%;overflow-x:auto;overflow-y:hidden;padding-bottom:6px}.article-result-table{min-width:1180px!important;table-layout:fixed!important}
.article-result-table th,.article-result-table td{overflow:hidden!important;vertical-align:middle!important;line-height:1.35!important}
.article-result-table .case-info{width:44px!important;text-align:center!important}.article-result-table .case-photo{width:92px!important;text-align:center!important}.article-result-table .case-brand{width:160px!important}.article-result-table .part-code,.article-result-table .case-part-code{width:215px!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:break-word!important;font-size:14px!important}.article-result-table .case-description{width:300px!important;white-space:normal!important}.article-result-table .case-availability{width:150px!important;white-space:normal!important}.article-result-table .case-price{width:125px!important;white-space:normal!important;font-size:15px!important}.article-result-table .search-link{width:145px!important;text-align:center!important;white-space:normal!important;padding-left:8px!important;padding-right:8px!important}
.article-result-table .cell-wrap{max-height:76px;overflow:hidden;overflow-wrap:anywhere!important;word-break:break-word!important}.article-result-table .case-brand a{display:inline-block;max-width:100%;overflow-wrap:anywhere!important;word-break:break-word!important}.article-result-table .price-analog-link,.article-result-table .search-link a{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:116px!important;max-width:116px!important;min-height:38px!important;white-space:normal!important;overflow-wrap:normal!important;word-break:normal!important;line-height:1.14!important;text-align:center!important;text-decoration:none!important;border:1px solid #cfe5d8!important;background:#eaf6ef!important;color:#075f42!important;border-radius:12px!important;padding:7px 8px!important;font-size:13px!important}
.admin-orders-table td{overflow-wrap:anywhere;word-break:break-word}.admin-orders-table textarea{min-width:180px}
@media(max-width:900px){.article-result-table{min-width:1060px!important}.article-result-table .case-description{width:260px!important}.article-result-table .case-part-code,.article-result-table .part-code{width:190px!important}}


/* v52: manual templates + safer branch cleanup */
.manual-downloads{gap:10px;flex-wrap:wrap}.manual-card pre{background:#f4faf7;border:1px solid #d6eadf;border-radius:14px;padding:14px 16px;overflow:auto;white-space:pre-wrap;line-height:1.5;color:#0b352d;font-weight:700}.danger-form .form-grid{display:grid;grid-template-columns:repeat(2,minmax(220px,1fr));gap:14px}.danger-form select{width:100%;border:1px solid #cfe1d8;border-radius:14px;padding:13px 14px;background:#fff;color:#0b352d;font-weight:800}.danger-form label{font-weight:800;color:#173f34}.danger-form label select{margin-top:8px}@media(max-width:800px){.danger-form .form-grid{grid-template-columns:1fr}}

/* v53 final checklist fixes */
.nice-manager-contact{gap:10px!important;font-size:14px!important;font-weight:500!important}
.nice-manager-contact .manager-head{display:flex;align-items:center;gap:12px;margin-bottom:4px}
.nice-manager-contact .manager-avatar{width:38px;height:38px;border-radius:14px;background:#006b43;color:#fff;display:grid;place-items:center;font-weight:900;font-size:18px;flex:0 0 38px}
.nice-manager-contact .manager-head b{display:block;font-size:17px!important;line-height:1.15;color:#07372b!important}
.nice-manager-contact .manager-head small{display:block;margin-top:3px;color:#6a7d75;font-weight:600!important;font-size:13px}
.nice-manager-contact .manager-line{display:grid!important;grid-template-columns:86px minmax(0,1fr);gap:10px!important;align-items:start!important;color:#183b31!important}
.nice-manager-contact .manager-label{min-width:0!important;color:#6a7d75!important;font-weight:700!important}
.nice-manager-contact .manager-line span:last-child,.nice-manager-contact .manager-line a{font-weight:700!important;word-break:break-word}
.cabinet-manager-card .nice-manager-contact{padding:18px!important}
.cart-autosave-status{display:inline-block;margin-left:12px;font-weight:700;color:#6a7d75}
.cart-row-sum{white-space:nowrap}
.manual-downloads{gap:10px;flex-wrap:wrap}
@media(max-width:760px){.nice-manager-contact .manager-line{grid-template-columns:1fr;gap:3px!important}.cart-autosave-status{display:block;margin:10px 0 0}.manual-downloads .btn{width:100%;justify-content:center}}
