:root{color-scheme:light;--navy:#152a48;--deep:#0c1d35;--orange:#f58327;--paper:#f5f7fa;--text:#213047;--muted:#718096;--line:#e4e9f1;--white:#fff;--radius:16px}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);font-family:Vazirmatn,'IRANSans',Tahoma,Arial,sans-serif;color:var(--text);font-size:14px;line-height:1.8}button,input,select{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}input,select{outline:none;background:#fff;border:1px solid #d9e1eb;border-radius:11px;padding:10px 12px;min-height:43px;width:100%;color:var(--text)}input:focus,select:focus{border-color:var(--orange);box-shadow:0 0 0 3px rgba(245,131,39,.12)}input[type=checkbox]{width:auto;min-height:0;accent-color:var(--orange)}.hk-header{background:linear-gradient(115deg,var(--deep),#243e61);color:white;border-bottom:4px solid var(--orange)}.hk-header-inner{max-width:1300px;margin:auto;padding:16px 22px;display:flex;align-items:center;justify-content:space-between;gap:16px}.brand{display:flex;align-items:center;gap:12px;font-weight:900;font-size:19px}.brand-symbol{background:var(--orange);color:var(--deep);height:44px;width:44px;border-radius:12px;display:grid;place-items:center;font:bold 27px Arial;transform:skew(-6deg)}.brand small{display:block;font-size:11px;font-weight:400;opacity:.76;line-height:1.65}.back{background:#ffffff18;border:1px solid #ffffff35;padding:8px 13px;border-radius:10px;white-space:nowrap}.hk-container{max-width:1300px;padding:32px 22px 50px;margin:auto}.hk-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}.hk-heading h1{font-size:clamp(24px,3vw,32px);margin:0;color:var(--deep)}.hk-heading p{margin:5px 0;color:#5e6d81}.hk-heading .eyebrow{font:700 10px Arial;letter-spacing:2px;color:#df781f;margin:0 0 10px}.counter{background:white;border-radius:13px;padding:15px 22px;color:var(--navy);font-size:24px;font-weight:900;box-shadow:0 5px 18px #182a4710;min-width:130px;text-align:center}.counter small{display:block;font-size:11px;color:var(--muted);font-weight:500}.hk-layout{display:grid;grid-template-columns:270px minmax(0,1fr);gap:20px;align-items:start}.hk-filters{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:19px;box-shadow:0 7px 25px #203d6210}.filters-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px;border-bottom:1px solid var(--line);padding-bottom:13px}.filters-head h2{margin:0;font-size:17px;color:var(--navy)}.filters-head a{font-size:12px;color:#c46e23}.field-label{display:block;font-size:13px;font-weight:700;color:#34445a;margin-bottom:7px}.field-block{padding-top:16px;margin-top:16px;border-top:1px solid #f0f2f6}.range{display:grid;grid-template-columns:1fr 1fr;gap:8px}.range input{min-width:0}.switches{display:grid;gap:9px;padding:18px 0;border-top:1px solid var(--line);margin-top:20px}.switches label{display:flex;align-items:center;gap:8px;cursor:pointer}.primary{border:0;border-radius:11px;background:var(--orange);color:#142336;font-weight:900;padding:11px 19px;min-height:45px;display:inline-flex;justify-content:center;align-items:center}.primary:hover{background:#ff9a42}.secondary{background:#eef2f7;border:1px solid #d9e0e8;border-radius:9px;padding:7px 13px;display:inline-flex;align-items:center;justify-content:center;color:#253e5a}.secondary:hover{background:#dfeaf5}.search-submit{width:100%}.hint{font-size:11px;color:#7c8797;line-height:1.9;margin:13px 0 0}.result-toolbar{background:#fff;padding:14px 19px;border:1px solid var(--line);border-radius:var(--radius);display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:16px}.result-count strong{color:var(--deep)}.result-count span{font-size:11px;color:var(--muted)}.sort-form{display:flex;align-items:center;gap:9px;white-space:nowrap}.sort-form select{width:172px;min-height:39px}.product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.product-card{background:#fff;border-radius:var(--radius);border:1px solid var(--line);overflow:hidden;display:flex;flex-direction:column;min-width:0;transition:.2s;box-shadow:0 3px 12px #132b4a08}.product-card:hover{box-shadow:0 14px 30px #132b4a16;transform:translateY(-2px);border-color:#c9d5e5}.product-image{height:205px;display:grid;place-items:center;background:linear-gradient(#fff,#fafbfc);padding:17px;border-bottom:1px solid var(--line)}.product-image img{height:100%;width:100%;object-fit:contain}.no-image{color:#a3adbb}.product-info{padding:15px;display:flex;flex:1;flex-direction:column;gap:9px}.product-code{display:flex;justify-content:space-between;gap:8px;color:#8391a3;font-size:11px}.stock{color:#248353}.unstock{color:#a25c46}.product-card h3{font-size:14px;font-weight:800;line-height:1.8;min-height:50px;margin:0}.product-card h3 a:hover{color:#dd7922}.spec-chips{display:flex;gap:5px;flex-wrap:wrap;min-height:30px;align-content:start}.spec-chips span{font-size:10px;background:#f0f4f9;border:1px solid #e7eef7;padding:3px 6px;border-radius:6px;color:#415571}.product-bottom{margin-top:auto;border-top:1px solid var(--line);padding-top:11px;display:flex;justify-content:space-between;align-items:center;gap:10px}.price strong{font-size:16px;color:var(--navy)}.price span{font-size:10px;color:var(--muted)}.price .call{font-size:12px;color:#bf742f}.show-product{white-space:nowrap;font-size:11px;font-weight:800;color:#ce7325}.no-results{background:white;border:1px solid var(--line);border-radius:var(--radius);text-align:center;padding:55px 20px}.no-results-icon{font-size:55px;color:#c5cdd8}.no-results h3{margin:0;color:#2b3a52}.no-results p{max-width:500px;margin:12px auto 24px;color:var(--muted)}.no-results a{border:1px solid #ec8b3e;color:#b96724;padding:11px 17px;border-radius:10px}.pagination{display:flex;justify-content:center;align-items:center;gap:7px;margin:23px auto}.pagination a{padding:7px 14px;background:#fff;border:1px solid var(--line);border-radius:10px}.pagination .current{background:var(--navy);color:white}.hk-footnote{margin-top:22px;background:#eaf0f7;border-right:3px solid var(--orange);padding:14px;border-radius:8px;color:#556579}.filter-toggle,.hk-toprow{display:none}.admin-shell{max-width:1100px;margin:25px auto;padding:0 20px 45px}.admin-head{display:flex;gap:12px;align-items:center;justify-content:space-between;background:var(--deep);color:white;border-radius:16px;padding:19px 24px;border-bottom:4px solid var(--orange)}.admin-head h1{font-size:22px;margin:0}.admin-head a{font-size:12px;color:#ffb875}.admin-panel{background:#fff;border:1px solid var(--line);border-radius:15px;padding:22px;margin-top:18px;box-shadow:0 3px 14px #1026420b}.admin-panel h2{line-height:1.6;font-size:20px}.login-box{max-width:450px;margin:30px auto;display:grid;gap:14px}.admin-search{display:flex;flex-wrap:wrap;align-items:center;gap:13px}.admin-search input[type=search]{flex:1;min-width:220px}.admin-search label{white-space:nowrap}.admin-list-item{border-bottom:1px solid var(--line);padding:12px 2px;display:flex;justify-content:space-between;align-items:center;gap:12px}.admin-list-item:last-child{border-bottom:0}.admin-list-item strong{display:block;font-size:13px}.admin-list-item small{display:block;color:#8992a0;font-size:11px}.admin-stats{display:flex;gap:15px;margin:15px 0}.admin-stats>div{border:1px solid var(--line);border-radius:12px;background:#fff;padding:14px 20px;min-width:190px}.admin-stats strong{font-size:25px;display:block;color:var(--navy)}.admin-stats span{font-size:12px;color:var(--muted)}.admin-form-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:23px}.admin-field input,.admin-field select{width:100%}.admin-actions{display:flex;align-items:center;gap:12px;margin-top:23px}.raw-specs{margin-top:23px;border-top:1px solid var(--line);padding-top:14px}.raw-specs summary{cursor:pointer;color:var(--navy)}.raw-specs pre{white-space:pre-wrap;word-break:break-word;background:#f3f6fa;border:1px solid var(--line);padding:16px;border-radius:9px;direction:ltr;text-align:left;max-height:450px;overflow:auto}.muted{color:var(--muted)}.success-banner,.error-banner{background:#e8f8ef;color:#166438;padding:13px 18px;border-radius:11px;margin:15px 0}.error-banner{color:#924b33;background:#fff0e8}.logout{margin-top:15px}.admin-panel code{direction:ltr;display:inline-block;background:#f0f4f8;padding:2px 5px;border-radius:4px}
@media(max-width:1100px){.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hk-layout{grid-template-columns:245px minmax(0,1fr)}.admin-form-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:720px){.hk-container{padding:21px 13px}.hk-header-inner{padding:12px 14px}.brand{font-size:15px}.brand-symbol{width:36px;height:36px}.back{font-size:11px;padding:6px 9px}.hk-heading{align-items:start}.hk-heading h1{font-size:23px}.hk-heading p:not(.eyebrow){font-size:12px}.hk-heading .eyebrow{font-size:8px;letter-spacing:1px}.counter{min-width:93px;font-size:20px;padding:10px}.hk-layout{display:block}.hk-filters{display:none;margin:0 0 16px}.hk-filters.expanded{display:block}.hk-toprow{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.filter-toggle{display:inline-flex;border:0;background:var(--navy);color:#fff;padding:9px 13px;border-radius:10px;font-weight:800;white-space:nowrap}.active-summary{color:#667588;font-size:12px}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.product-image{height:145px;padding:7px}.product-info{padding:10px;gap:6px}.product-card h3{font-size:12px;min-height:61px}.spec-chips span{font-size:9px}.product-bottom{flex-wrap:wrap;gap:5px}.price strong{font-size:13px}.result-toolbar{padding:10px;flex-wrap:wrap}.sort-form select{width:151px}.hk-footnote{font-size:11px}.admin-head h1{font-size:16px}.admin-panel{padding:14px}.admin-form-grid{grid-template-columns:1fr}.admin-list-item{align-items:start;flex-direction:column}.admin-stats>div{min-width:0;flex:1}.admin-stats strong{font-size:21px}}@media(max-width:375px){.product-grid{grid-template-columns:1fr}.product-image{height:200px}}


/* === Havasazan v1.1.0: isolated visual improvements === */
/* Images stay inside the upper frame. Specifications are filtering data, not card overlays. */
.product-card{
  min-width:0; isolation:isolate; display:flex; flex-direction:column;
  background:#fff; border-radius:16px; overflow:hidden;
}
.product-image{
  box-sizing:border-box; display:flex; align-items:center; justify-content:center;
  flex:0 0 220px; width:100%; height:220px; min-height:220px; min-width:0;
  padding:17px 20px; overflow:hidden; position:relative;
  border-bottom:1px solid #e8edf4;
  background:linear-gradient(180deg,#fff,#f7f9fc);
}
.product-image img{
  display:block; width:100%; height:100%; max-width:100%; max-height:100%;
  min-height:0; min-width:0; object-fit:contain; object-position:center;
}
.product-info{
  position:relative; z-index:1; flex:1 1 auto; min-width:0;
  display:flex; flex-direction:column; gap:9px; padding:16px;
  background:#fff;
}
.product-code{display:flex; flex-wrap:wrap; align-items:center; font-size:10px; line-height:1.7; min-width:0; overflow-wrap:anywhere;}
.product-card h3{
  display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3;
  overflow:hidden; min-height:74px; max-height:74px; min-width:0;
  font-size:13px; line-height:1.9; font-weight:800; margin:0;
  overflow-wrap:anywhere;
}
.product-card h3 a{display:block;}
.product-bottom{
  margin-top:auto; padding-top:13px; border-top:1px solid #edf1f5;
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap;
  gap:6px 10px;
}
.price strong{font-size:15px; line-height:1.5; font-variant-numeric:tabular-nums;}
.show-product{white-space:nowrap; color:#d06a10; font-weight:800;}
.admin-type-label{margin:13px 0;padding:10px 14px;background:#f0f5fa;border-right:3px solid #f58327;border-radius:9px;color:#233d5d}
@media(max-width:1100px) and (min-width:721px){
  .product-image{height:205px;min-height:205px;flex-basis:205px;padding:14px;}
}
@media(max-width:720px){
  .product-image{height:155px;min-height:155px;flex-basis:155px;padding:9px;}
  .product-info{padding:10px;gap:7px;}
  .product-card h3{font-size:11px;line-height:1.85;min-height:61px;max-height:61px;}
  .product-code{font-size:9px;}
  .product-bottom{gap:6px;align-items:flex-start;}
  .price strong{font-size:12px;}
  .show-product{font-size:10px;}
}
@media(max-width:380px){
  .product-grid{grid-template-columns:1fr;}
  .product-image{height:205px;min-height:205px;flex-basis:205px;}
}


/* Havasazan v1.2.0 - simplified buyer filters and image/card refinements */
.hk-advanced{margin-top:15px;border:1px solid #dde6f1;border-radius:11px;background:#fbfcfe;overflow:hidden}
.hk-advanced>summary{cursor:pointer;padding:12px 14px;font-size:13px;font-weight:850;color:#233c5c;display:flex;align-items:center;justify-content:space-between;list-style:none;user-select:none}
.hk-advanced>summary::-webkit-details-marker{display:none}
.hk-advanced[open]>summary{background:#eef3f9;border-bottom:1px solid #dce6f1}
.hk-advanced .hk-chevron{font-size:19px;color:#e27b22;line-height:1;transition:transform .2s}
.hk-advanced[open] .hk-chevron{transform:rotate(180deg)}
.hk-advanced-fields{padding:0 13px 15px}
.hk-advanced-fields .field-block:first-child{border-top:0;margin-top:0}
.hk-filters .field-label{line-height:1.6;font-size:12.5px}
.hk-filters .range input{font-size:12px;padding-inline:8px}
.hk-page .product-card h3{font-size:14px;min-height:76px;max-height:76px;line-height:1.85}
.hk-page .product-image{background:#fff}
.hk-page .price strong{font-size:16px}
.hk-page .show-product{font-size:11px}
@media(max-width:720px){
 .hk-advanced>summary{font-size:13px}
 .hk-page .product-card h3{font-size:12px;line-height:1.8;min-height:65px;max-height:65px}
 .hk-page .price strong{font-size:13px}
 .hk-page .product-image{height:160px;min-height:160px;flex-basis:160px}
}
@media(max-width:380px){
 .hk-page .product-image{height:205px;min-height:205px;flex-basis:205px}
 .hk-page .product-card h3{font-size:14px}
 .hk-page .price strong{font-size:15px}
}


/* v1.3.0 — simplified chrome only inside the same-origin category modal.
   Standard index.php appearance and the backend stay unchanged. */
body.hk-embed .hk-header,
body.hk-embed .hk-heading,
body.hk-embed .hk-footnote{display:none!important}
body.hk-embed .hk-container{max-width:1500px;padding:14px 16px 24px}
body.hk-embed .hk-layout{grid-template-columns:260px minmax(0,1fr)}
@media(max-width:720px){
  body.hk-embed .hk-container{padding:12px 10px 22px}
  body.hk-embed .hk-layout{display:block}
}
