.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; }
}
