/* EtkinMadde V7.5: ONE responsive header, interior wallpaper and ONE medicine-card component.
   Important: home page keeps its existing hero; only its medicine cards share the new UI. */
:root{--em75-navy:#173d72;--em75-ocean:#17617e;--em75-red:#e5193b;--em75-text:#263d5a;--em75-border:#dbe6f1}

/* Interior wallpaper shared by all non-home pages, no additional logo inside artwork. */
body:not(.home):not(.front-page){background:#f3f6fa}
body:not(.home):not(.front-page)::before{
 content:'';position:absolute;left:0;right:0;top:82px;height:1030px;z-index:0;pointer-events:none;
 background-image:linear-gradient(to bottom,rgba(243,246,250,0) 0%,rgba(243,246,250,0) 59%,rgba(243,246,250,.06) 72%,rgba(243,246,250,.40) 85%,#f3f6fa 100%),url('../img/etkinmadde-ic-sayfa-bogaz-v75.webp');
 background-size:cover;background-repeat:no-repeat;background-position:center top;
}
body:not(.home):not(.front-page) main{position:relative;z-index:1}
body:not(.home):not(.front-page) .site-footer{position:relative;z-index:1}
/* Existing article and drug scene nodes override the global wallpaper at their main area. */
body.single-emr_ingredient .em50-page,
body.single-em_drug .em72-page{background:#f3f6fa;isolation:isolate}
body.single-emr_ingredient .em50-page>.em50-scene,
body.single-em_drug .em72-page>.em72-scene{
 display:block!important;position:absolute!important;left:0!important;right:0!important;top:0!important;
 height:1010px!important;width:100%!important;pointer-events:none;z-index:-1!important;
 background-image:linear-gradient(to bottom,rgba(243,246,250,0) 0%,rgba(243,246,250,0) 58%,rgba(243,246,250,.06) 72%,rgba(243,246,250,.38) 86%,#f3f6fa 100%),url('../img/etkinmadde-ic-sayfa-bogaz-v75.webp')!important;
 background-size:cover!important;background-repeat:no-repeat!important;background-position:center top!important;
}
body.single-emr_ingredient .em50-page>.em50-shell,
body.single-em_drug .em72-page>.em72-shell{position:relative;z-index:1}

/* Unified page introduction and breadcrumbs for medicine archive, search and manufacturers. */
body .em75-inner-page{background:transparent!important;padding:0 0 50px!important}
body .em75-inner-page>.shell:first-child{padding-top:34px}
body .em75-inner-page>.em75-breadcrumb{padding-top:34px}
body .em75-inner-page .breadcrumbs,
body .em75-inner-page .em75-breadcrumb{display:flex;flex-wrap:wrap;gap:8px;align-items:center;color:#647793;font-size:12px;line-height:1.55;margin-bottom:17px}
body .em75-inner-page .breadcrumbs a,
body .em75-inner-page .em75-breadcrumb a{font-weight:760;color:#1d4c82}
body .em75-inner-page .breadcrumbs span,
body .em75-inner-page .em75-breadcrumb span{color:#6f8197}
body .em75-inner-page .company-hero,
body .em75-inner-page .inner-hero{margin:0 0 20px!important;background:rgba(255,255,255,.96)!important;border:1px solid #d9e5f0!important;border-radius:22px!important;box-shadow:0 9px 28px rgba(19,54,89,.055);padding:28px 28px 26px!important}
body .em75-inner-page .inner-hero>.shell{padding:0!important;width:100%!important;max-width:none!important}
body .em75-inner-page .company-hero h1,
body .em75-inner-page .inner-hero h1{color:#183b64;font-size:clamp(25px,2.9vw,35px);font-weight:850;line-height:1.17;letter-spacing:-.028em;margin:7px 0 11px}
body .em75-inner-page .company-hero p,
body .em75-inner-page .inner-hero p{color:#657890;font-size:14px;max-width:770px;line-height:1.65}
body .em75-inner-page .section-label{font-size:11px;letter-spacing:.11em;color:#da1b38;font-weight:850}
body .em75-inner-page .company-meta .drug-tag{background:#eef4fb;color:#214e83;padding:8px 13px;border-radius:999px;font-weight:800;font-size:12px}
body .em75-inner-page .results-info{color:#456587;font-size:13px;margin-bottom:17px;font-weight:770}

/* One card design for ALL occurrences, including manufacturer, search and homepage. */
body .medicine-grid,
body .medicine-grid--company,
body .card-grid{display:grid;gap:17px;align-items:stretch}
body .medicine-grid--company{grid-template-columns:repeat(3,minmax(0,1fr))}
body.post-type-archive-em_drug .card-grid,body.search .card-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
body .em75-medicine-card{display:flex!important;flex-direction:column!important;height:100%!important;min-height:0;overflow:hidden;border:1px solid var(--em75-border)!important;border-radius:19px!important;background:#fff!important;box-shadow:0 9px 24px rgba(15,47,80,.065)!important;transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}
body .em75-medicine-card:hover{transform:translateY(-3px);border-color:#aac1dc!important;box-shadow:0 16px 34px rgba(15,47,80,.105)!important}
body .em75-medicine-card>.medicine-card__link{display:flex!important;flex-direction:column!important;flex:1 1 auto;min-height:0!important;padding:0!important;margin:0!important;color:var(--em75-text)!important;background:#fff!important;border:0!important;text-decoration:none!important;box-shadow:none!important}
body .em75-medicine-card .em75-card-head{min-height:94px;display:flex;align-items:flex-start;justify-content:space-between;gap:13px;width:100%;padding:18px 17px 16px;background:linear-gradient(127deg,var(--em75-navy),var(--em75-ocean));border:0;color:#fff}
body .em75-medicine-card .medicine-card__title{display:block!important;flex:1 1 auto;min-width:0;margin:0!important;padding:0!important;color:#fff!important;font-size:14px!important;font-weight:825!important;line-height:1.42!important;min-height:0!important;overflow-wrap:anywhere;letter-spacing:-.015em}
body .em75-medicine-card .medicine-card__arrow{position:static!important;flex:0 0 25px;width:25px;height:25px;display:inline-flex!important;align-items:center;justify-content:center;margin:0;border:1px solid rgba(255,255,255,.35);border-radius:50%;background:rgba(255,255,255,.15)!important;color:#fff!important;font-size:22px;line-height:1}
body .em75-medicine-card .em75-card-content{display:flex;flex-direction:column;flex:1 1 auto;min-width:0;padding:15px 17px 13px!important;background:linear-gradient(180deg,#fff,#fbfdff)}
body .em75-medicine-card .medicine-card__summary{display:flex;min-height:69px!important;justify-content:space-between;align-items:flex-start;gap:6px;padding:0 0 12px;margin:0!important}
body .em75-medicine-card .medicine-card__price-caption{font-size:11px;font-weight:760;color:#7c8ca3;margin-bottom:5px}
body .em75-medicine-card .medicine-card__price{display:block;font-size:22px!important;font-weight:850!important;line-height:1.1;color:#d81035!important;letter-spacing:-.02em;white-space:nowrap}
body .em75-medicine-card .medicine-card__price small{font-size:13px;color:#c61737}
body .em75-medicine-card .medicine-card__price-unavailable{font-size:13px;color:#6c7f96;font-weight:700}
body .em75-medicine-card .medicine-card__sgk{flex:0 0 auto;display:inline-flex;align-items:center;margin:0;padding:6px 9px;border-radius:999px;background:#eaf7f0;color:#13854f;border:1px solid #cbead9;font-size:10px;font-weight:800;line-height:1.15;white-space:nowrap}
body .em75-medicine-card .medicine-card__sgk.is-neutral{background:#f0f3f8;border-color:#e1e7ef;color:#67798f}
body .em75-medicine-card .medicine-card__facts{display:block;margin:0!important;padding:0!important;border-top:1px solid #e9eff6;font-size:12px}
body .em75-medicine-card .medicine-card__facts>div{display:grid!important;grid-template-columns:70px minmax(0,1fr);gap:7px;align-items:start;border-bottom:1px solid #ecf1f6;padding:9px 0!important;min-height:0!important;margin:0}
body .em75-medicine-card .medicine-card__facts>div:last-child{border-bottom:0}
body .em75-medicine-card .medicine-card__facts dt{color:#7b8ca3;font-weight:740;line-height:1.4}
body .em75-medicine-card .medicine-card__facts dd{color:#314563;margin:0!important;line-height:1.4;overflow-wrap:anywhere}
body .em75-medicine-card .medicine-card__foot{display:flex!important;align-items:center;justify-content:space-between;gap:7px;margin:auto 0 0!important;padding:14px 0 0!important;min-height:44px!important;border-top:1px solid #e8eef5;color:#7b8ca1;font-size:10px;line-height:1.4}
body .em75-medicine-card .medicine-card__foot strong{color:#de1236;font-size:12px;font-weight:830;white-space:nowrap}
body .em75-medicine-card>.medicine-card__guide-link{display:block!important;margin:0!important;padding:11px 16px!important;border:0!important;border-top:1px solid #dce7f4!important;background:#edf5ff!important;color:#174c8a!important;text-align:left;font-size:11.5px;font-weight:800;text-decoration:none!important;border-radius:0!important}
body .em75-medicine-card>.medicine-card__guide-link:hover{background:#e0edff!important;color:#c70f2e!important}
/* Keep matching cards on each grid row equal in height, but never force empty white interiors. */
body .em75-medicine-card .em75-card-content{min-height:248px}

@media(max-width:1150px){
 body .medicine-grid--company{grid-template-columns:repeat(2,minmax(0,1fr))}
 body.post-type-archive-em_drug .card-grid,body.search .card-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:850px){
 body.post-type-archive-em_drug .card-grid,body.search .card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 body:not(.home):not(.front-page)::before{top:78px;height:800px}
 body.single-emr_ingredient .em50-page>.em50-scene,
 body.single-em_drug .em72-page>.em72-scene{height:800px!important}
}
@media(max-width:650px){
 body .medicine-grid--company,body.post-type-archive-em_drug .card-grid,body.search .card-grid{grid-template-columns:1fr}
 body .em75-medicine-card .em75-card-head{min-height:0;padding:17px 16px}
 body .em75-medicine-card .em75-card-content{min-height:0;padding:13px 16px 12px!important}
 body .em75-medicine-card .medicine-card__facts>div{grid-template-columns:80px minmax(0,1fr)}
 body:not(.home):not(.front-page)::before{top:112px;height:660px}
 body.single-emr_ingredient .em50-page>.em50-scene,
 body.single-em_drug .em72-page>.em72-scene{height:700px!important}
 body .em75-inner-page>.em75-breadcrumb,body .em75-inner-page>.shell:first-child{padding-top:24px}
 body .em75-inner-page .company-hero,body .em75-inner-page .inner-hero{padding:20px!important}
}
