/* Vansh Pharmacy — medicine price list (vanshpharmacy.com). */

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/assets/fonts/montserrat-latin.woff2) format('woff2');
}

:root {
  --primary:     #29335b;
  --primary-dk:  #1c2240;
  --primary-lt:  #3e4e7e;
  --accent:      #ef7e21;
  --accent-dk:   #c96910;
  --accent-lt:   #fef0e2;
  --bg:          #fdf9f6;
  --bg-alt:      #f0f2f8;
  --bg-dark:     #141b30;
  --white:       #ffffff;
  --text:        #1a1f36;
  --text-md:     #3a4260;
  --text-muted:  #6b7490;
  --border:      #dde0ee;
  --border-lt:   #eef0f7;
  --radius:      10px;
  --radius-lg:   18px;
  --radius-pill: 100px;
  --shadow-sm:   0 1px 6px rgba(41,51,91,.08);
  --shadow:      0 4px 20px rgba(41,51,91,.12);
  --font:        'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --transition:  .2s ease;
  --max-w:       1140px;
  color-scheme: light;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { font-family: var(--font); font-size: 16px; line-height: 1.65; color: var(--text); background: var(--bg); overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input { font: inherit; }
button { cursor: pointer; border: none; background: none; }
h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; color: var(--text); }
h1 { font-size: clamp(1.75rem, 5vw, 2.75rem); }
h2 { font-size: clamp(1.15rem, 2.5vw, 1.35rem); }
h4 { font-size: 1.125rem; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px)  { .container { padding: 0 24px; } }
@media (min-width: 1024px) { .container { padding: 0 32px; } }
.section { padding: 56px 0; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 28px;
  border-radius: var(--radius-pill); font-size: .95rem; font-weight: 600; line-height: 1;
  transition: all var(--transition); white-space: nowrap; text-align: center; border: 2px solid transparent;
}
.btn-sm { padding: 9px 20px; font-size: .875rem; }
.btn-primary { background: var(--accent); color: var(--white); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-dk); border-color: var(--accent-dk); }
.btn-secondary { background: var(--white); color: var(--primary); border-color: var(--primary); }
.btn-secondary:hover { background: var(--primary); color: var(--white); }
.btn-whatsapp { background: #25d366; color: var(--white); border-color: #25d366; box-shadow: 0 4px 16px rgba(37,211,102,.3); }
.btn-whatsapp:hover { background: #1ebe5b; border-color: #1ebe5b; }

/* ---- Header ---- */
.site-header { position: sticky; top: 0; z-index: 900; background: var(--white); border-bottom: 1px solid var(--border-lt); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo { gap: 10px; text-decoration: none; }
.logo-mark { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; background: var(--accent); color: var(--white); font-size: 30px; font-weight: 800; line-height: 1; }
.logo-text { font-size: 1.35rem; font-weight: 700; color: var(--primary); letter-spacing: .01em; white-space: nowrap; }
.logo-text b { color: var(--accent); font-weight: 800; }
.main-nav { display: none; }
@media (min-width: 1024px) {
  .main-nav { display: flex; align-items: center; gap: 4px; }
  .main-nav a { font-size: .9rem; font-weight: 500; color: var(--text-md); padding: 6px 12px; border-radius: 6px; transition: all var(--transition); }
  .main-nav a:hover, .main-nav a.active { color: var(--primary); background: var(--bg-alt); }
}
.header-ctas { display: flex; align-items: center; gap: 8px; }
.header-ctas .btn-call { display: none; }
@media (min-width: 640px) { .header-ctas .btn-call { display: inline-flex; } }
@media (max-width: 380px) { .header-ctas .btn-whatsapp { padding: 9px 14px; } }
.burger-btn { display: flex; flex-direction: column; gap: 5px; padding: 8px; }
.burger-btn span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; }
@media (min-width: 1024px) { .burger-btn { display: none; } }

.mobile-nav { display: none; position: fixed; inset: 0; z-index: 950; background: var(--white); overflow-y: auto; padding: 24px 20px; }
.mobile-nav.open { display: block; }
.mobile-nav-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.mobile-nav-close { font-size: 1.5rem; line-height: 1; color: var(--text-muted); padding: 4px 8px; }
.mobile-nav ul li a { display: block; padding: 13px 0; font-size: 1.05rem; font-weight: 500; color: var(--text); border-bottom: 1px solid var(--border-lt); }
.mobile-nav ul li a:hover, .mobile-nav ul li a[aria-current] { color: var(--primary); }
.mobile-ctas { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }

/* ---- Page hero ---- */
.page-hero { background: linear-gradient(135deg, var(--primary-dk), var(--primary)); padding: 52px 0 44px; text-align: center; color: var(--white); }
.breadcrumb { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: .8rem; color: rgba(255,255,255,.6); margin-bottom: 12px; }
.breadcrumb a { color: rgba(255,255,255,.7); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { color: rgba(255,255,255,.4); }
.breadcrumb span:last-child { color: rgba(255,255,255,.75); }
.page-hero h1 { color: var(--white); margin-bottom: 0; }
.page-hero p { color: rgba(255,255,255,.8); font-size: 1.05rem; max-width: 640px; margin: 0 auto; }

/* ---- Price list ---- */
.price-section { padding-top: 36px; }
.toolbar { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
@media (min-width: 768px) { .toolbar { flex-direction: row; align-items: center; justify-content: space-between; } }
.search { position: relative; flex: 1; max-width: 520px; }
.search-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
.search input {
  width: 100%; padding: 13px 18px 13px 46px; font-size: .95rem; color: var(--text);
  background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius-pill);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.search input::placeholder { color: var(--text-muted); }
.search input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(41,51,91,.12); }
.count { font-size: .85rem; color: var(--text-muted); font-weight: 500; }
.back-link { margin-bottom: 12px; font-weight: 600; }
.back-link a { color: var(--primary); }
.swipe-hint { display: none; margin-bottom: 8px; font-size: .8rem; color: var(--text-muted); }
@media (min-width: 641px) and (max-width: 900px) { .swipe-hint { display: block; } }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.price-table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: .875rem; }
.price-table th, .price-table td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border-lt); }
.price-table thead th { background: var(--primary); color: var(--white); font-weight: 600; font-size: .8rem; letter-spacing: .01em; white-space: nowrap; }
.price-table tbody tr:nth-child(even) { background: #fbfbfd; }
.price-table tbody tr:hover { background: var(--accent-lt); }
.price-table tbody tr:last-child td { border-bottom: 0; }
.price-table td a { color: var(--primary); font-weight: 600; }
.price-table td a:hover { color: var(--accent-dk); text-decoration: underline; }
.price-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.price-table td.num:first-child { color: var(--text-muted); }
.price-table .strong { font-weight: 700; color: var(--text); }
.price-table .muted { color: var(--text-muted); }
/* Phones: each medicine becomes a compact block (name, then Pack | PTR | MRP side by side);
   Sr. No. and empty Manufacturer/Generic cells are dropped, so nothing needs sideways scrolling. */
@media (max-width: 640px) {
  .table-wrap { overflow: visible; }
  .price-table { min-width: 0; display: block; }
  .price-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .price-table tbody { display: block; }
  .price-table tbody tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px 12px; padding: 12px 14px; border-bottom: 1px solid var(--border-lt); }
  .price-table tbody tr:last-child { border-bottom: 0; }
  .price-table th, .price-table td { padding: 0; border: 0; }
  .price-table td.sno, .price-table td.muted:not(.ptr) { display: none; }
  .price-table td.name { grid-column: 1 / -1; order: 1; font-size: .95rem; }
  .price-table td.generic { grid-column: 1 / -1; order: 2; font-size: .8rem; color: var(--text-md); }
  .price-table td.mfr { grid-column: 1 / -1; order: 3; font-size: .8rem; color: var(--text-muted); }
  .price-table td.pack, .price-table td.ptr, .price-table td.ptc { order: 4; text-align: left; margin-top: 6px; }
  .price-table td[data-label].num::before { content: attr(data-label); display: block; font-size: .7rem; font-weight: 500; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }
}
.table-empty, .table-error { padding: 28px 16px; text-align: center; color: var(--text-muted); }
.table-error { color: #b3261e; }

/* ---- Info cards ---- */
.licence-card { margin-top: 40px; }
.info-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); }
.info-card h2 { color: var(--primary); margin-bottom: 16px; }
.licence { display: grid; grid-template-columns: minmax(150px, 42%) 1fr; font-size: .875rem; }
.licence dt, .licence dd { padding: 9px 0; border-bottom: 1px solid var(--border-lt); }
.licence dt { color: var(--text-muted); padding-right: 12px; }
.licence dd { color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
.licence dt:nth-last-of-type(1), .licence dd:last-child { border-bottom: 0; }

/* ---- Footer ---- */
.site-footer { background: var(--bg-dark); color: rgba(255,255,255,.75); margin-top: 16px; }
.footer-top { padding: 60px 0 40px; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 640px)  { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1.2fr; gap: 40px; } }
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand .logo-text { color: var(--white); }
.footer-brand .logo-text b { color: var(--accent); }
.footer-licence li { font-size: .875rem; color: rgba(255,255,255,.7); }
.footer-brand p { font-size: .875rem; line-height: 1.7; max-width: 300px; }
.footer-slogan { font-size: 1rem; color: #ffd700; font-weight: 700; margin: 12px 0 4px; }
.footer-col h4 { color: var(--white); font-size: .95rem; margin-bottom: 16px; letter-spacing: .02em; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: .875rem; color: rgba(255,255,255,.6); transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--white); }
.footer-contact-item { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; font-size: .875rem; }
.footer-contact-item a { color: rgba(255,255,255,.7); }
.footer-contact-item a:hover { color: var(--white); }
.footer-icon { color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.footer-socials { display: flex; gap: 10px; margin-top: 16px; }
.footer-social { width: 36px; height: 36px; background: rgba(255,255,255,.1); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.7); transition: all var(--transition); }
.footer-social:hover { background: var(--primary-lt); color: var(--white); }
.footer-disclaimer { background: rgba(0,0,0,.2); padding: 16px; border-radius: 8px; font-size: .78rem; color: rgba(255,255,255,.45); margin-top: 36px; line-height: 1.6; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; display: flex; flex-direction: column; gap: 12px; text-align: center; font-size: .8rem; color: rgba(255,255,255,.4); }
.footer-bottom a { color: rgba(255,255,255,.4); margin-right: 14px; }
.footer-bottom a:last-child { margin-right: 0; }
.footer-bottom a:hover { color: var(--white); }
@media (min-width: 768px) { .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; align-items: center; } }
@media (max-width: 767px) { .footer-top { padding: 44px 0 28px; } }

/* ---- Print: a plain rate list ---- */
@media print {
  .site-header, .mobile-nav, .toolbar, .swipe-hint, .back-link, .site-footer { display: none !important; }
  body { background: #fff; font-size: 10px; }
  .page-hero { background: none; color: #000; padding: 0 0 8px; text-align: left; }
  .page-hero h1, .page-hero p, .breadcrumb { color: #000; }
  .breadcrumb { display: none; }
  .section { padding: 0; }
  .table-wrap { border: 0; box-shadow: none; overflow: visible; }
  .price-table { min-width: 0; font-size: 9px; }
  .price-table thead th { background: #fff; color: #000; border-bottom: 2px solid #000; }
  .price-table tbody tr:nth-child(even) { background: none; }
  .price-table th, .price-table td { padding: 3px 5px; }
  .licence-card { margin-top: 12px; }
  .info-card { border: 0; box-shadow: none; padding: 0; }
}
