.medicine-page-header {
    background: linear-gradient(135deg, #100b2b 0%, #1e1347 100%);
    margin-bottom: 2rem;
}

.medicine-page-header-image {
    background-image: url("../assets/images/haberback.37d36b0daa71.webp");
    background-size: cover;
    background-position: center;
    opacity: .15;
    pointer-events: none;
}

.medicine-search-form {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
}

.medicine-search-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    flex: 1;
    gap: 0;
    min-width: 0;
}

.medicine-search-field { min-width: 0; position: relative; }
.medicine-search-field:first-child { border-right: 1px solid #e2e8f0; }
.medicine-search-input { display: flex; align-items: center; gap: 16px; min-height: 58px; padding: 0 24px; border-radius: 999px; }
.medicine-search-input:focus-within { box-shadow: inset 0 0 0 2px rgba(201, 27, 63, .35); }
.medicine-search-input i { color: #1e293b; font-size: 1rem; }
.medicine-search-input input { width: 100%; min-width: 0; height: 58px; border: 0; outline: 0; background: transparent; color: #334155; font-size: .94rem; }
.medicine-search-input input::placeholder { color: #94a3b8; }
.medicine-search-actions { display: flex; align-items: center; gap: 8px; padding: 0 8px 0 12px; }
.medicine-search-actions .public-filter-submit { height: 44px; }
.medicine-search-actions .public-filter-clear { flex-shrink: 0; }

.medicine-category-suggestions {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    max-height: 290px;
    overflow-y: auto;
    z-index: 30;
    padding: 6px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, .16);
}

.medicine-category-suggestions[hidden] { display: none; }
.medicine-category-suggestions button { display: block; width: 100%; padding: 10px 12px; border: 0; border-radius: 7px; background: transparent; color: #334155; text-align: left; font-size: .88rem; }
.medicine-category-suggestions button:hover,
.medicine-category-suggestions button:focus-visible { background: #fceaf0; color: #a71533; outline: none; }
.medicine-suggestion-empty { display: block; padding: 10px 12px; color: #64748b; font-size: .88rem; }

.medicine-list-page .public-filter-submit,
.medicine-reset {
    background-color: #c91b3f !important;
    border-color: #c91b3f !important;
}

.medicine-list-page .public-filter-submit:hover,
.medicine-reset:hover {
    background-color: #a71533 !important;
    border-color: #a71533 !important;
}

.alphabet-nav-wrapper {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .04);
    padding: 16px 20px;
    margin-bottom: 1.25rem;
    border: 1px solid #edf2f7;
}

.alphabet-nav-header {
    font-size: .85rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 12px;
}

.alphabet-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.alphabet-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: 10px;
    font-weight: 700;
    font-size: .9rem;
    text-decoration: none;
    color: #334155;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: all .2s cubic-bezier(.4, 0, .2, 1);
}

.alphabet-btn:hover,
.alphabet-btn.active {
    background: #c91b3f;
    color: #fff;
    border-color: #c91b3f;
    box-shadow: 0 4px 12px rgba(201, 27, 63, .25);
}

.alphabet-btn:hover { transform: translateY(-2px); }
.alphabet-btn.all-btn { padding: 0 14px; min-width: auto; }

.medicine-category-directory { margin-bottom: 2rem; }
.medicine-category-image { background: #f1f5f9 !important; }
.medicine-category-image .standard-card-img { object-fit: cover !important; padding: 0; }
.medicine-category-card .standard-card-summary { min-height: 2.6em; }

.medicine-results-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 0 0 1rem; }
.medicine-results-heading h2 { color: #1e293b; font-size: 1.3rem; font-weight: 800; margin: 0; }
.medicine-results-heading span { color: #64748b; font-size: .85rem; }

.medicine-card-link { color: inherit; text-decoration: none; display: block; height: 100%; }
.medicine-card-link:hover { color: inherit; }
.medicine-card-image { background: #f1f5f9 !important; }
.medicine-card-image .standard-card-img { object-fit: cover !important; }
.medicine-card-image .medicine-product-image { object-fit: contain !important; padding: 12px; }
.medicine-list-page .standard-card-category { color: #c91b3f !important; }
.medicine-card-location { display: flex; align-items: flex-start; gap: 6px; color: #64748b; font-size: .72rem; line-height: 1.35; margin: 0 0 10px; }
.medicine-card-location i { color: #c91b3f; flex-shrink: 0; }
.medicine-card-location span { overflow-wrap: anywhere; }
.medicine-list-page .standard-card-meta { gap: .75rem; }
.medicine-list-page .standard-card-meta span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.medicine-pagination .page-item.active .page-link { background: #c91b3f; }
.medicine-mobile-page { margin-left: .8rem; color: #64748b; font-weight: 700; white-space: nowrap; }
.medicine-disclaimer { margin-bottom: 2rem; }

.medicine-detail-badge { background: #c91b3f !important; font-size: .75rem; }
.medicine-detail-title { line-height: 1.2; }
.medicine-detail-image-frame { display: flex; align-items: center; justify-content: center; width: 100%; background: #f1f5f9; border-radius: 15px; overflow: hidden; min-height: 280px; }
.medicine-detail-image { display: block; max-width: 100%; max-height: 480px; object-fit: contain; padding: 1.5rem; }
.medicine-detail-copy { color: #334155; font-size: 1.05rem; line-height: 1.75; overflow-wrap: anywhere; }
.medicine-detail-sections section { border-bottom: 1px solid #f1f5f9; padding-bottom: 1rem; }
.medicine-detail-sections section:last-child { border-bottom: 0; }
.medicine-facts dl > div { padding: .75rem 0; border-bottom: 1px solid #f1f5f9; }
.medicine-facts dl > div:last-child { border-bottom: 0; }
.medicine-facts dt { color: #64748b; font-size: .8rem; font-weight: 600; margin-bottom: .2rem; }
.medicine-facts dd { color: #1e293b; font-size: .95rem; font-weight: 600; margin: 0; overflow-wrap: anywhere; }
.medicine-facts dd a { color: #a71533; text-decoration: none; }

@media (max-width: 575.98px) {
    .medicine-page-header { margin-bottom: 1.25rem; }
    .medicine-pagination .page-link { padding: .5rem .8rem !important; }
    .medicine-detail-copy { font-size: .95rem; }
}

@media (max-width: 767.98px) {
    .medicine-search-form { align-items: stretch; flex-direction: column; border-radius: 18px; }
    .medicine-search-fields { grid-template-columns: 1fr; width: 100%; }
    .medicine-search-field:first-child { border-right: 0; border-bottom: 1px solid #e2e8f0; }
    .medicine-search-input { border-radius: 12px; }
    .medicine-search-actions { justify-content: flex-end; border-top: 1px solid #f1f5f9; padding: 10px; }
    .medicine-search-actions .public-filter-submit { flex: 1; }
}

/* ==========================================================================
   İlaç Prospektüsü & Detay Sayfası (Sağlık Gazetesi Brand Colors & Tabs)
   ========================================================================== */

.medicine-detail-breadcrumb {
    margin-bottom: 16px;
    color: #64748b;
    font-size: 13px;
}
.medicine-detail-breadcrumb ol {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.medicine-detail-breadcrumb li { display: flex; align-items: center; gap: 8px; }
.medicine-detail-breadcrumb a {
    color: #5e7697;
    font-weight: 400;
    text-decoration: none;
    transition: color .15s;
}
.medicine-detail-breadcrumb a:hover { color: #c91b3f; }
.medicine-detail-breadcrumb .bi {
    color: #94a3b8;
    font-size: 10px;
}
.medicine-detail-breadcrumb [aria-current="page"] {
    color: #5e7697;
    font-weight: 400;
}

.ilac-image-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}
.ilac-image-container {
    background: #f8fafc;
    border-radius: 14px;
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-in;
    transition: background 0.2s ease;
}
.ilac-image-container:hover {
    background: #f1f5f9;
}
.ilac-product-img {
    max-height: 260px;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.btn-zoom-toggle {
    background: linear-gradient(135deg, #c91b3f 0%, #e11d48 100%);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.82rem;
    border: none;
    box-shadow: 0 4px 14px rgba(201, 27, 63, 0.25);
    transition: all 0.2s ease;
}
.btn-zoom-toggle:hover {
    background: linear-gradient(135deg, #a71533 0%, #be123c 100%);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(201, 27, 63, 0.35);
}

.prospektus-main-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    min-height: 480px;
}
.ilac-title-strip {
    background: #fafafa;
    border-radius: 12px;
    padding: 10px 16px;
    border: 1px solid #f1f5f9;
}

.prospektus-tab-pane {
    display: none;
    animation: prospektusFadeIn 0.2s ease-in-out;
}
.prospektus-tab-pane.active {
    display: block;
}

@keyframes prospektusFadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.prospektus-section-header {
    border-bottom: 2px solid #fecdd3;
    padding-bottom: 8px;
}
.prospektus-section-header h2,
.prospektus-section-header h3 {
    font-size: 1.05rem;
    letter-spacing: 0.2px;
}

.prospektus-content-body {
    font-size: 0.94rem;
    line-height: 1.75;
    color: #334155;
}
.prospektus-content-body p {
    margin-bottom: 0.9rem;
}
.prospektus-content-body ul {
    padding-left: 1.3rem;
    margin-bottom: 1.1rem;
}
.prospektus-content-body li {
    margin-bottom: 0.45rem;
}
.prospektus-content-body h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
    margin-top: 1.4rem;
    margin-bottom: 0.75rem;
}
.prospektus-content-body h4,
.prospektus-content-body h5,
.prospektus-subheading {
    font-size: 0.92rem;
    font-weight: 700;
    color: #1e293b;
    margin-top: 1.2rem;
    margin-bottom: 0.5rem;
}
.prospektus-content-body b,
.prospektus-content-body strong {
    color: #0f172a;
    font-weight: 700;
}

/* Sidebar (Sağlık Gazetesi Brand Red Gradient) */
.prospektus-sidebar-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}
.prospektus-sidebar-header {
    background: linear-gradient(135deg, #c91b3f 0%, #e11d48 100%);
    border-radius: 17px 17px 0 0;
}
.prospektus-nav-btn {
    display: flex;
    align-items: center;
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 0.84rem;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    cursor: pointer;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.prospektus-nav-btn:hover {
    background: #fff1f2;
    color: #be123c;
    padding-left: 18px;
}
.prospektus-nav-btn.active {
    background: linear-gradient(135deg, #c91b3f 0%, #e11d48 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(201, 27, 63, 0.3);
}
.prospektus-nav-btn.active i {
    color: #ffffff !important;
}

/* Benzer Türdeki İlaçlar */
.similar-drug-card {
    background: #ffffff;
    border-color: #e2e8f0;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.similar-drug-card:hover {
    border-color: #c91b3f !important;
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(201, 27, 63, 0.12) !important;
}
.similar-drug-card:hover .similar-drug-title {
    color: #c91b3f !important;
}

/* Prospektus: the three panels share one viewport-height row. Only its text scrolls. */
.medicine-detail-page {
    --medicine-red: #c91b3f;
    --medicine-red-dark: #a71533;
    background: #f8fafc;
    color: #172b4d;
    min-height: 85vh;
}
.ilac-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 4.15fr) minmax(0, 4.1fr) minmax(235px, 1.7fr);
    gap: 14px;
    align-items: stretch;
    height: clamp(520px, calc(100vh - 225px), 760px);
}
.ilac-detail-grid > div { min-width: 0; min-height: 0; }
.ilac-mobile-title { display: none; }
.ilac-image-card,
.prospektus-main-card,
.prospektus-sidebar-card {
    height: 100%;
    min-height: 0;
    border-radius: 12px;
    box-shadow: 0 6px 22px rgba(15, 23, 42, .08);
}
.ilac-image-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 14px;
}
.ilac-image-container {
    flex: 1 1 auto;
    min-height: 0;
    padding: 20px;
    border-radius: 10px;
    background: #f6f8fb;
}
.ilac-product-img {
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: contain;
}
.ilac-zoom-action { padding-top: 12px; }
.ilac-image-meta { flex: none; margin-top: 12px; padding-top: 12px; border-top: 1px solid #e2e8f0; }
.ilac-image-meta:empty { display: none; }
.prospektus-main-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
    border-top: 3px solid var(--medicine-red);
}
.ilac-title-strip {
    flex: none;
    margin: 0;
    padding: 13px 20px;
    border: 0;
    border-bottom: 1px solid #e2e8f0;
    border-radius: 0;
    background: #fff;
}
.ilac-title-strip h1 { font-size: 1rem !important; line-height: 1.35; }
.prospektus-content-viewport {
    flex: 1 1 auto;
    min-height: 0;
    container-type: inline-size;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 22px 24px 28px;
    scrollbar-color: #d6a0ae #f1f5f9;
    scrollbar-width: thin;
}
.prospektus-content-viewport:focus-visible { outline: 2px solid var(--medicine-red); outline-offset: -3px; }
.prospektus-section-header { border-bottom-color: #f3d8df; }
.prospektus-section-header i,
.prospektus-content-body h3,
.prospektus-content-body h4,
.prospektus-content-body h5 { color: var(--medicine-red) !important; }
.prospektus-content-body { overflow-wrap: anywhere; }
.medicine-facts-grid > div > .border { height: 100%; }
@container (max-width: 520px) {
    .medicine-facts-grid > div { flex: 0 0 100%; width: 100%; max-width: 100%; }
}
.medicine-category-fact { gap: 10px; }
.medicine-category-fact-name { flex: 1 1 0; min-width: 0; overflow-wrap: anywhere; }
.medicine-category-fact-link { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; max-width: none; padding-inline: 8px !important; text-align: center; white-space: nowrap; }
@container (max-width: 300px) {
    .medicine-category-fact { flex-wrap: wrap; }
    .medicine-category-fact-name { flex: 0 0 100%; }
}
.prospektus-sidebar-card { display: flex; flex-direction: column; overflow: hidden; }
.prospektus-sidebar-header {
    flex: none;
    background: linear-gradient(105deg, var(--medicine-red-dark), #e13353);
    border-radius: 11px 11px 0 0;
}
.prospektus-nav-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.prospektus-nav-btn { flex: none; }
.similar-drugs-section { margin-top: 28px; padding-bottom: 20px; }
.similar-drug-card { min-height: 235px; }
.similar-drug-img-box { height: 150px; }
.similar-drug-img-box img { max-height: 130px; width: 100%; object-fit: contain; }
.similar-drug-form { margin-top: 8px; color: #66758a; font-size: .71rem; }
@media (max-width: 991.98px) {
    .ilac-detail-grid { display: flex; flex-direction: column; height: auto; }
    .ilac-detail-media { height: 390px; }
    .ilac-detail-nav { order: 1; }
    .ilac-detail-content { order: 2; height: min(72vh, 650px); min-height: 430px !important; }
    .prospektus-sidebar-card { height: auto; }
    .prospektus-nav-list { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
}
@media (max-width: 575.98px) {
    .medicine-detail-page { padding-left: 12px !important; padding-right: 12px !important; }
    .ilac-detail-grid { gap: 0; }
    .ilac-detail-grid > div { max-width: 100%; }
    .ilac-detail-media,
    .ilac-detail-content { height: auto; min-height: 0 !important; }
    .ilac-detail-media { margin-bottom: 12px; }
    .ilac-detail-nav { order: 1; margin-bottom: 12px; }
    .ilac-detail-content { order: 2; }
    .ilac-image-card,
    .prospektus-main-card { height: auto; }
    .ilac-image-container { flex: none; height: min(65vw, 250px); min-height: 180px; }
    .ilac-mobile-title {
        display: flex;
        order: 1;
        align-items: center;
        gap: 9px;
        padding: 12px 14px;
        background: #fff;
        border: 1px solid #e2e8f0;
        border-top: 3px solid var(--medicine-red);
        border-bottom: 0;
        border-radius: 12px 12px 0 0;
    }
    .ilac-mobile-title .bi { color: var(--medicine-red); font-size: 17px; }
    .ilac-mobile-title h1 { margin: 0; color: #172b4d; font-size: .92rem !important; font-weight: 800; line-height: 1.35 !important; overflow-wrap: anywhere; }
    .ilac-title-strip { display: none !important; }
    .prospektus-content-viewport { flex: none; overflow: visible; padding: 18px 15px 22px; }
    .prospektus-content-body img,
    .prospektus-content-body iframe,
    .prospektus-content-body video { max-width: 100%; height: auto; }
    .prospektus-content-body table { display: table; width: 100% !important; max-width: 100%; table-layout: fixed; overflow: visible; }
    .prospektus-content-body th,
    .prospektus-content-body td,
    .prospektus-content-body pre { overflow-wrap: anywhere; word-break: break-word; }
    .prospektus-content-body pre { white-space: pre-wrap; }
    .prospektus-sidebar-card { border-top: 0; border-radius: 0 0 12px 12px; overflow: visible; }
    .prospektus-sidebar-header { border-radius: 0; padding: 10px 14px !important; }
    .prospektus-nav-list {
        display: flex !important;
        flex-direction: column !important;
        gap: 6px !important;
        padding: 10px 12px 13px !important;
        overflow: visible !important;
    }
    .prospektus-nav-btn { flex: none; width: 100%; min-height: 35px; padding: 8px 11px; border-radius: 7px; background: #f6f8fa; font-size: .8rem; }
    .prospektus-back-link { display: none; }
    .medicine-category-fact { align-items: center !important; gap: 8px; }
    .similar-drugs-section { margin-top: 22px; }
    .similar-drugs-section h2 { font-size: 1.05rem; }
}
