@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600;9..40,700;9..40,800&display=swap');

.dp * { font-family: 'DM Sans', sans-serif !important; box-sizing: border-box; }
.dp { font-family: 'DM Sans', sans-serif; }

/* ── HERO ── */
.hero-dense {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 2px 20px rgba(0,0,0,.07), 0 0 0 1px rgba(0,0,0,.04);
}
.zoom-container {
    background: #fafafa;
    border: 1px solid rgba(0,0,0,.07);
    border-radius: 20px;
    padding: 20px !important;
    cursor: zoom-in;
    overflow: hidden;
    transition: box-shadow .25s ease;
    position: relative;
}
.zoom-container:hover {
    box-shadow: 0 8px 32px rgba(0,120,212,.13);
}
.zoom-container img {
    transition: transform .4s cubic-bezier(.34,1.4,.64,1) !important;
}
.zoom-container:hover img {
    transform: scale(1.06) !important;
}
.zoom-container::after {
    content: "🔍";
    position: absolute; bottom: 12px; right: 14px;
    font-size: 18px; opacity: 0;
    transition: opacity .2s;
    pointer-events: none;
}
.zoom-container:hover::after { opacity: 1; }

/* ── META CARDS (active substance, manufacturer, country) ── */
.bg-white.p-6.rounded-3xl.border {
    border-radius: 12px !important;
    border-color: rgba(0,0,0,.1) !important;
    padding: 14px 16px !important;
    transition: box-shadow .2s, border-color .2s;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.bg-white.p-6.rounded-3xl.border:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.07);
    border-color: rgba(0,120,212,.2) !important;
}
.bg-white.p-6.rounded-3xl.border .text-sm {
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: .7px;
    color: #000 !important;
    opacity: 1;
    margin-bottom: 6px;
}
.bg-white.p-6.rounded-3xl.border .font-bold {
    font-size: 14px;
    font-weight: 700 !important;
    color: #000 !important;
    line-height: 1.3;
}

/* ── PHARMACY CARDS ── */
.ph-cards-top {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 14px;
}
.ph-cards-bottom {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
@media (max-width: 768px) {
    .ph-cards-top, .ph-cards-bottom { grid-template-columns: 1fr; }
}
.ph-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,.09);
    border-radius: 18px;
    padding: 20px;
    transition: box-shadow .18s, border-color .18s, transform .18s;
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
}
.ph-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,.09);
    border-color: rgba(0,0,0,.15);
    transform: translateY(-1px);
}
.ph-card.is-cheapest {
    border-color: #16a34a;
    border-width: 2px;
    box-shadow: 0 4px 20px rgba(22,163,74,.12);
}
.ph-card-top {
    padding: 22px;
}
.ph-card-top .ph-card-item-price { font-size: 20px; }
.ph-card-top .ph-card-item-price.best { font-size: 22px; }
.ph-card-header { display: flex; align-items: center; gap: 10px; }
.ph-card-logo { height: 34px; max-width: 90px; object-fit: contain; flex-shrink: 0; }
.ph-card-logo-placeholder {
    width: 36px; height: 36px; background: #f3f4f6; border-radius: 8px;
    flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.ph-card-name { font-size: 13px; font-weight: 700; color: #000; flex: 1; }
.ph-card-badge {
    position: absolute; top: -1px; right: 16px;
    background: #16a34a; color: #fff;
    font-size: 10px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase;
    padding: 3px 10px; border-radius: 0 0 10px 10px;
}
.ph-card-items { display: flex; flex-direction: column; gap: 5px; flex: 1; }
.ph-card-item {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    padding: 8px 10px; border-radius: 10px; background: #f5f5f5;
    transition: background .12s;
}
.ph-card-item:hover { background: #ebebeb; }
.ph-card-item.item-cheapest { background: #f0fdf4; }
.ph-card-item.item-cheapest:hover { background: #dcfce7; }
.ph-card-item-name { font-size: 13px; color: #111; line-height: 1.3; flex: 1; min-width: 0; font-weight: 500; }
.ph-card-item-price { font-size: 16px; font-weight: 700; color: #000; white-space: nowrap; flex-shrink: 0; }
.ph-card-item-price.best { color: #16a34a; font-size: 18px; }
.ph-card-footer {
    display: flex; align-items: center; gap: 8px;
    padding-top: 10px; border-top: 1px solid rgba(0,0,0,.06);
}

/* Live pulse dot */
.animate-ping { animation: dp-ping 1.4s ease infinite !important; }
@keyframes dp-ping {
    0%,100% { transform: scale(1); opacity: .8; }
    50%      { transform: scale(2.2); opacity: 0; }
}

/* ── YMYL NOTICE ── */
.mt-8.p-6.bg-blue-50 {
    background: #eff6ff !important;
    border: 1px solid #bfdbfe !important;
    border-radius: 16px !important;
    margin-top: 24px !important;
}

/* ── SIDEBAR NAV + SEO SECTIONS ── */
.drug-sections-wrap {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 2px 20px rgba(0,0,0,.07), 0 0 0 1px rgba(0,0,0,.04);
    display: grid;
    grid-template-columns: 210px 1fr;
    align-items: start;
}
.drug-sidenav {
    position: sticky;
    top: 80px;
    align-self: start;
    background: #fafafa;
    border-right: 1px solid rgba(0,0,0,.07);
    border-top-left-radius: 24px;
    border-bottom-left-radius: 24px;
    padding: 10px 0;
}
.drug-sidenav a {
    display: flex;
    align-items: center;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 500;
    color: #444;
    text-decoration: none;
    border-left: 3px solid transparent;
    line-height: 1.3;
    transition: background .12s, color .12s, border-color .12s;
    font-family: 'DM Sans', sans-serif;
}
.drug-sidenav a:hover { background: rgba(0,0,0,.03); color: #000; }
.drug-sidenav a.is-active {
    background: rgba(0,120,212,.06);
    color: #0078d4;
    font-weight: 700;
    border-left-color: #0078d4;
}
.drug-sections-body { min-width: 0; }
.drug-section {
    padding: 36px 40px;
    border-bottom: 1px solid rgba(0,0,0,.06);
    scroll-margin-top: 100px;
}
.drug-section:last-child { border-bottom: none; }
.drug-section h2 {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #000 !important;
    margin: 0 0 18px !important;
    padding-bottom: 14px !important;
    border-bottom: 1px solid rgba(0,0,0,.07) !important;
    letter-spacing: -.2px;
}
.drug-section .prose { font-size: 15px !important; line-height: 1.85 !important; color: #000 !important; }
@media (max-width: 900px) {
    .drug-sections-wrap { grid-template-columns: 1fr; }
    .drug-sidenav {
        position: static;
        border-right: none;
        border-bottom: 1px solid rgba(0,0,0,.07);
        border-radius: 0;
        display: flex;
        overflow-x: auto;
        scrollbar-width: none;
        padding: 0;
    }
    .drug-sidenav::-webkit-scrollbar { display: none; }
    .drug-sidenav a { flex-shrink:0; border-left:none; border-bottom:3px solid transparent; padding:12px 14px; white-space:nowrap; }
    .drug-sidenav a.is-active { border-bottom-color:#0078d4; border-left-color:transparent; }
    .drug-section { padding: 24px 20px; scroll-margin-top: 60px; }
}

/* ── ZOOM MODAL ── */
.zoom-modal {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,.72) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    padding: 24px;
}
.zoom-modal-box {
    background: #fff;
    border-radius: 24px;
    padding: 28px;
    max-width: 560px; width: 100%;
    position: relative;
    box-shadow: 0 32px 80px rgba(0,0,0,.35);
    animation: zm-up .22s cubic-bezier(.34,1.4,.64,1);
}
@keyframes zm-up {
    from { opacity:0; transform:translateY(20px) scale(.97); }
    to   { opacity:1; transform:none; }
}
.zoom-modal-box img { width: 100%; border-radius: 14px; }
.zoom-close-btn {
    position: absolute; top: 16px; right: 16px;
    width: 34px; height: 34px;
    background: rgba(0,0,0,.07) !important;
    border: none; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; cursor: pointer; color: #000;
    transition: background .15s;
}
.zoom-close-btn:hover { background: rgba(0,0,0,.14) !important; }

/* ── PHONE BUTTON ── */
.ph-phone-btn {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 10px; font-size: 12px; font-weight: 600;
    background: #f0fdf4; color: #15803d;
    border: 1px solid #bbf7d0; border-radius: 20px;
    cursor: pointer; white-space: nowrap;
    transition: background .15s;
    font-family: 'DM Sans', sans-serif;
}
.ph-phone-btn:hover { background: #dcfce7; }
.ph-phone-number {
    display: none; font-size: 13px; font-weight: 700;
    color: #15803d;
}
.ph-phone-number a { color: #15803d; text-decoration: none; }
.ph-logo { height: 22px; max-width: 70px; object-fit: contain; vertical-align: middle; margin-right: 6px; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .price-table thead th,
    .price-table tbody td { padding: 11px 14px; }
    .tab-content { padding: 22px 18px !important; }
    .tab-btn { padding: 12px 14px !important; }
    /* Mobile: hide pharmacy name column (shown in group row), hide phone column */
    .price-table .col-pharmacy { display: none; }
    .price-table .col-phone    { display: none; }
    .price-table thead th:first-child { display: none; }
}

/* ── FAQ BLOCK ── */
.faq-block { background:#fff; border-radius:24px; box-shadow:0 2px 20px rgba(0,0,0,.07),0 0 0 1px rgba(0,0,0,.04); margin-bottom:24px; overflow:hidden; }
.faq-item { border-bottom: 1px solid rgba(0,0,0,.06); }
.faq-item:last-child { border-bottom: none; }
.faq-question {
    width: 100%; text-align: left; background: none; border: none;
    padding: 18px 28px; font-size: 15px; font-weight: 600; color: #000;
    cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px;
    font-family: 'DM Sans', sans-serif;
    transition: background .12s;
}
.faq-question:hover { background: #fafafa; }
.faq-question .faq-icon { font-size: 18px; flex-shrink: 0; transition: transform .2s; color: #0078d4; }
.faq-question.open .faq-icon { transform: rotate(45deg); }
.faq-answer { display: none; padding: 0 28px 20px; font-size: 15px; line-height: 1.75; color: #333; }
.faq-answer.open { display: block; }
/* ══ REVIEWER BAR — compact E-E-A-T ══ */
.rv-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid rgba(0,0,0,.09);
    border-radius: 16px;
    padding: 10px 20px 10px 10px;
    margin: 0 auto 20px auto;
    width: fit-content;
    max-width: 100%;
    font-family: 'DM Sans', sans-serif;
    box-shadow: 0 1px 8px rgba(0,0,0,.05);
}
.rv-bar-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}
.rv-bar-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #2563eb;
    display: block;
}
.rv-bar-avatar-ph {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 2px solid #2563eb;
    display: flex; align-items: center; justify-content: center;
}
.rv-bar-badge {
    position: absolute;
    bottom: -2px; right: -2px;
    width: 16px; height: 16px;
    background: #2563eb;
    border-radius: 50%;
    border: 2px solid #fff;
    display: flex; align-items: center; justify-content: center;
}
.rv-bar-text {
    font-size: 13px;
    color: #64748b;
    line-height: 1.4;
    white-space: nowrap;
}
.rv-bar-text a {
    color: #0f172a;
    font-weight: 700;
    text-decoration: none;
}
.rv-bar-text a:hover { color: #2563eb; }
@media (max-width: 600px) {
    .rv-bar { width: 100%; justify-content: center; }
    .rv-bar-text { white-space: normal; }
}

.rec-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}
@media (max-width: 1200px) { .rec-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 900px)  { .rec-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px)  { .rec-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

.rec-card {
    background: #fff;
    border: 1.5px solid rgba(0,0,0,.08);
    border-radius: 16px;
    text-decoration: none;
    color: #000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.rec-card:hover {
    border-color: #0078d4;
    box-shadow: 0 4px 20px rgba(0,120,212,.1);
    transform: translateY(-2px);
}
.rec-img-wrap {
    width: 100%;
    aspect-ratio: 1/1;
    background: #f5f7fa;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(0,0,0,.06);
    overflow: hidden;
}
.rec-img-wrap img {
    width: 75%;
    height: 75%;
    object-fit: contain;
}
.rec-body {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}
.rec-name {
    font-size: 13px;
    font-weight: 700;
    color: #000;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.rec-form {
    font-size: 11px;
    font-weight: 500;
    color: #555;
    line-height: 1.3;
}
.rec-price {
    margin-top: auto;
    padding-top: 6px;
    font-size: 13px;
    font-weight: 800;
    color: #0078d4;
}