@media(max-width:980px){.dhp{padding:12px 14px 34px}.dhp-scroll-row{display:flex;overflow:auto;gap:10px;padding-bottom:6px;scroll-snap-type:x proximity}.dhp-category{min-width:120px;scroll-snap-align:start}.dhp-product-card{flex-basis:220px}.dhp-services,.dhp-tools,.dhp-knowledge-grid{grid-template-columns:repeat(2,1fr)}.dhp-articles{grid-template-columns:1fr 1fr}.dhp-article:first-child{grid-column:1/-1}.dhp-brand{flex-basis:150px}}
@media(max-width:600px){.dhp{padding:8px 12px 28px}.dhp-section{margin:22px 0}.dhp-head h2{font-size:20px}.dhp-head a{font-size:12px}.dhp-btn{padding:11px 10px;font-size:13px}.dhp-products{margin-left:-12px;margin-right:-12px;padding:1px 12px 8px;overflow:auto}.dhp-product-card{flex-basis:78vw;max-width:300px}.dhp-product-image{height:175px}.dhp-nav{display:none}.dhp-services{grid-template-columns:1fr 1fr;gap:8px}.dhp-services a,.dhp-tools a{padding:14px}.dhp-guide,.dhp-pharmacist{align-items:flex-start;flex-direction:column;padding:16px}.dhp-guide span,.dhp-pharmacist span{font-size:17px}.dhp-tools{grid-template-columns:1fr 1fr}.dhp-articles{grid-template-columns:1fr}.dhp-article:first-child{grid-column:auto}.dhp-article{display:grid;grid-template-columns:118px 1fr}.dhp-article-img{height:100%;min-height:130px}.dhp-knowledge-grid{grid-template-columns:1fr 1fr}.dhp-knowledge-grid a{padding:16px 12px;font-size:13px}.dhp-cat-img{width:62px;height:62px}.dhp-brand{flex-basis:42vw;height:76px}.dhp-brand img{max-height:44px}}
@media(max-width:600px){
 .dhp-product-card{flex-basis:72vw;max-width:275px}.dhp-tools{grid-template-columns:1fr 1fr}.dhp-tool-visual{width:46px;height:46px;font-size:13px}.dhp-knowledge-img{height:92px}.dhp-services a{min-height:118px}.dhp-category{min-width:112px}.dhp-cat-img{height:68px;width:68px}.dhp-section{scroll-margin-top:72px}
}
@media(max-width:390px){.dhp-product-card{flex-basis:78vw}.dhp-services a,.dhp-tools a{padding:12px}}
@media(max-width:980px){.dhp-cat-icon{width:62px;height:62px}}
@media(max-width:600px){.dhp-cat-icon{width:68px;height:68px}}
@media(max-width:600px){
 .dhp-category{min-width:126px;padding:8px 7px 10px}
 .dhp-cat-visual,.dhp-cat-img,.dhp-cat-icon{height:84px}
 .dhp-cat-product.p1{width:48%;height:78%}.dhp-cat-product.p2{width:43%;height:69%}.dhp-cat-product.p3{width:31%;height:52%}
 .dhp-category strong{font-size:12.5px;min-height:40px}
}
@media(max-width:600px){
 .dhp-category.dhp-cat-approved{min-width:132px}
 .dhp-category.dhp-cat-approved .dhp-cat-img{height:94px;width:100%;padding:3px}
}









@media(max-width:600px){
 
 
 
 
 
 .dhp-btn{padding:8px 8px;min-height:34px;font-size:12px}
}












/* v0.5.7 — service cards responsive tuning */
@media(max-width:980px){.dhp-services{grid-template-columns:repeat(2,1fr)}.dhp-service-media{height:136px}}
@media(max-width:600px){.dhp-services{grid-template-columns:1fr 1fr;gap:10px}.dhp-service-card{border-radius:12px}.dhp-service-media{height:108px}.dhp-service-body{padding:12px}.dhp-service-card b{font-size:14px}.dhp-service-desc{font-size:11px;line-height:1.8}}
@media(max-width:390px){.dhp-service-media{height:94px}.dhp-service-body{padding:11px}}

/* v0.5.8 — Smart Guide photo banner mobile */
@media(max-width:600px){
  .dhp-guide.dhp-guide-photo{
    min-height:285px;
    padding:16px;
    justify-content:flex-end;
    gap:12px;
  }
  .dhp-guide-photo .dhp-guide-bg{
    object-position:25% center;
  }
  .dhp-guide-photo::after{
    background:linear-gradient(180deg,rgba(255,255,255,.12) 0%,rgba(255,255,255,.48) 48%,rgba(255,255,255,.96) 72%,#fff 100%);
  }
  .dhp-guide-photo .dhp-guide-copy{
    width:100%;
    margin-top:auto;
  }
  .dhp-guide-photo .dhp-guide-copy span{font-size:18px}
  .dhp-guide-photo .dhp-guide-copy p{font-size:12px;line-height:1.8;margin-bottom:4px}
  .dhp-guide-photo .dhp-guide-cta{align-self:flex-start}
}


/* v0.5.9 — mobile tool card visuals */
@media(max-width:980px){.dhp-tool-visual{height:132px}.dhp-tool-body{padding:12px 13px 14px}}
@media(max-width:600px){.dhp-tools a{padding:0}.dhp-tool-visual{width:100%;height:112px;font-size:inherit}.dhp-tool-body{padding:12px}.dhp-tool-body b{font-size:14px;line-height:1.75}.dhp-tool-body span{font-size:11px;line-height:1.85}.dhp-guide-photo .dhp-guide-copy{width:100%}}


/* v0.5.11 — consult banner mobile */
@media(max-width:600px){.dhp-guide-consult .dhp-guide-copy span{font-size:18px}.dhp-guide-consult .dhp-guide-copy p{font-size:12px}}


/* v0.5.12 — mobile banner/article refinements */
@media(max-width:980px){.dhp-guide-consult .dhp-guide-copy{width:100%;padding:14px 15px}.dhp-article-img{height:160px}}
@media(max-width:600px){.dhp-guide-consult .dhp-guide-copy{background:rgba(255,255,255,.88)}.dhp-article-img{height:136px}.dhp-article-img img{object-fit:contain!important}.dhp-articles.count-2{grid-template-columns:1fr}.dhp-knowledge-grid.count-2,.dhp-knowledge-grid.count-3{grid-template-columns:1fr 1fr}}


/* v0.5.15 — responsive guide image sources */
.dhp-guide-picture{position:absolute;inset:0;display:block;z-index:0}
.dhp-guide-picture .dhp-guide-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}


/* v0.5.16 — mobile panel stacking for guide banner */
@media(max-width:980px){.dhp-guide-panel{width:100%;max-width:none;margin-inline:0;display:flex;flex-direction:column;align-items:flex-start;gap:10px}.dhp-guide-consult .dhp-guide-copy{order:1;width:100%}.dhp-guide-consult .dhp-guide-cta{order:2}}


/* v0.5.17 — mobile guide and magazine fixes */
@media(max-width:980px){
  .dhp-guide-consult .dhp-guide-panel{width:100%;max-width:none;margin-inline:0;padding:14px 15px;gap:10px}
}
@media(max-width:600px){
  .dhp-guide-consult .dhp-guide-bg{object-position:center center}
  .dhp-guide-consult .dhp-guide-panel{width:100%;max-width:none;margin-inline:0;padding:14px 14px}
  .dhp-guide-consult .dhp-guide-copy{width:100% !important}
  .dhp-articles,
  .dhp-articles.count-1,
  .dhp-articles.count-2,
  .dhp-articles.count-3,
  .dhp-articles.count-4,
  .dhp-articles.count-5,
  .dhp-articles.count-6{grid-template-columns:1fr !important;grid-auto-rows:auto !important}
  .dhp-article,
  .dhp-article-knowledge{display:grid !important;grid-template-columns:118px 1fr !important;align-items:stretch;min-height:unset}
  .dhp-article>div:last-child,
  .dhp-article-knowledge>div:last-child{flex:none !important;padding:12px !important}
  .dhp-article small,
  .dhp-article-knowledge small,
  .dhp-article h3,
  .dhp-article-knowledge h3,
  .dhp-article p,
  .dhp-article-knowledge p{display:block !important;opacity:1 !important;visibility:visible !important}
  .dhp-article-img{height:136px !important;min-height:136px !important}
  .dhp-article-img img{object-fit:cover !important;object-position:center center !important}
}


/* v0.5.25 — mobile brand row: four visible items, logo + Persian label. */
@media(max-width:600px){
  .dhp-brands-section{margin-top:20px}
  .dhp-brands-section .dhp-head{margin-bottom:10px}
  .dhp-brand-track{
    gap:6px;
    margin-inline:-4px;
    padding:2px 4px 7px;
    scroll-snap-type:x proximity;
  }
  .dhp-brand-track .dhp-brand{
    flex:0 0 calc((100% - 18px)/4) !important;
    min-width:0 !important;
    height:105px !important;
    padding:5px 2px 7px !important;
    border:0 !important;
    border-radius:10px !important;
    background:#fff !important;
    gap:4px !important;
    scroll-snap-align:start;
  }
  .dhp-brand-logo{
    height:66px;
  }
  .dhp-brand-logo img{
    max-width:94% !important;
    max-height:60px !important;
  }
  .dhp-brand-logo strong{
    font-size:12px;
  }
  .dhp-brand-name{
    min-height:19px;
    font-size:11px;
    line-height:1.35;
    font-weight:700;
    padding-inline:1px;
  }
}
