/* ===============================
   HealthPoint Medical Store
   Website 2 | Local Business – Warm Red/Green Theme
   =============================== */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800;900&display=swap');

/* ── CSS Variables ── */
:root {
  --primary:        #e63946;
  --primary-dark:   #c1121f;
  --secondary:      #2d6a4f;
  --secondary-dark: #1b4332;
  --accent:         #f4a261;
  --warm:           #fff8f5;
  --white:          #ffffff;
  --dark:           #1d2d44;
  --gray:           #6b7280;
  --light-gray:     #f9fafb;
  --border:         #e5e7eb;
  --shadow:         0 2px 16px rgba(0,0,0,.08);
  --shadow-hover:   0 8px 28px rgba(230,57,70,.18);
  --transition:     all .3s ease;
  --radius:         10px;
  --font:           'Nunito', sans-serif;
}

[data-theme="dark"] {
  --warm:       #0f1923;
  --white:      #1a2533;
  --dark:       #e8eaed;
  --light-gray: #1e2d3d;
  --border:     #2c3e50;
  --gray:       #9ca3af;
}

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  { font-family: var(--font); color: var(--dark); background: var(--warm); line-height: 1.7; transition: background-color .3s, color .3s; }
a     { text-decoration: none; color: inherit; transition: var(--transition); }
img   { max-width: 100%; display: block; }
ul    { list-style: none; padding: 0; margin: 0; }
section { padding: 65px 0; }

/* ── Preloader ── */
#preloader { position: fixed; inset: 0; background: var(--white); display: flex; align-items: center; justify-content: center; z-index: 9999; transition: opacity .5s, visibility .5s; }
#preloader.hidden { opacity: 0; visibility: hidden; }
.preloader-inner { text-align: center; }
.preloader-logo  { font-size: 1.8rem; font-weight: 900; color: var(--primary); margin-bottom: 14px; }
.pulse-ring { width: 55px; height: 55px; border: 4px solid var(--primary); border-top-color: transparent; border-radius: 50%; margin: 0 auto; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Top Bar ── */
.top-bar { background: var(--dark); color: #fff; font-size: .82rem; padding: 7px 0; }
.top-bar a { color: #e5e7eb; }
.top-bar a:hover { color: var(--accent); }

/* ── Navbar ── */
.navbar-main { background: var(--white); box-shadow: var(--shadow); padding: 14px 0; transition: var(--transition); }
.navbar-main.scrolled { padding: 9px 0; box-shadow: 0 4px 22px rgba(0,0,0,.12); }
.navbar-brand .brand-logo { font-size: 1.5rem; font-weight: 900; color: var(--primary); }
.navbar-brand .brand-logo span { color: var(--secondary); }
.navbar-brand small { display: block; font-size: .62rem; color: var(--gray); margin-top: -4px; letter-spacing: .5px; }
.nav-link { font-weight: 700; color: var(--dark) !important; padding: 6px 14px !important; border-radius: 6px; transition: var(--transition); font-size: .9rem; }
.nav-link:hover, .nav-link.active { color: var(--primary) !important; background: rgba(230,57,70,.08); }
.nav-cta { background: var(--primary) !important; color: var(--white) !important; border-radius: 8px !important; padding: 8px 20px !important; }
.nav-cta:hover { background: var(--primary-dark) !important; color: #fff !important; }
#darkModeToggle { border: none; background: none; cursor: pointer; font-size: 1rem; color: var(--gray); padding: 6px; transition: var(--transition); }
#darkModeToggle:hover { color: var(--primary); }

/* ── Search ── */
.search-section { background: var(--white); padding: 10px 0; border-bottom: 1px solid var(--border); }
.search-wrapper { display: flex; max-width: 600px; margin: 0 auto; }
.search-wrapper .form-control { border-radius: 8px 0 0 8px; border: 2px solid var(--primary); padding: 9px 16px; font-size: .9rem; background: var(--white); color: var(--dark); flex: 1; min-width: 0; }
.search-wrapper .form-control:focus { box-shadow: none; border-color: var(--primary-dark); }
.search-btn { background: var(--primary); color: #fff; border: none; border-radius: 0 8px 8px 0; padding: 9px 22px; cursor: pointer; font-weight: 700; transition: var(--transition); flex-shrink: 0; white-space: nowrap; }
.search-btn:hover { background: var(--primary-dark); }

/* ── Section Utils ── */
.section-title { font-size: 1.85rem; font-weight: 900; color: var(--dark); }
.section-sub   { color: var(--gray); font-size: .92rem; }
.title-badge   { display: inline-block; background: rgba(230,57,70,.1); color: var(--primary); font-size: .73rem; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; padding: 4px 14px; border-radius: 50px; margin-bottom: 10px; }
.divider-line  { width: 50px; height: 4px; background: var(--primary); border-radius: 2px; margin: 10px auto 0; }

/* ── Hero ── */
.hero-section { background: var(--white); padding: 60px 0 50px; }
[data-theme="dark"] .hero-section { background: var(--white); }
.hero-title  { font-size: 2.8rem; font-weight: 900; line-height: 1.2; color: var(--dark); margin-bottom: 16px; }
.hero-title span { color: var(--primary); }
.hero-desc   { color: var(--gray); font-size: 1.02rem; margin-bottom: 28px; }
.hero-trust  { display: flex; align-items: center; gap: 8px; color: var(--gray); font-size: .85rem; font-weight: 600; }
.hero-trust i { color: #ffc107; }
.hero-img    { border-radius: 16px; box-shadow: var(--shadow-hover); max-height: 420px; width: 100%; object-fit: cover; }
.hero-opening-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--secondary);
  margin-top: 22px;
}
.hero-opening-card .day { font-weight: 700; font-size: .88rem; }
.hero-opening-card .time { color: var(--secondary); font-weight: 700; }

/* ── Trust Badges Row ── */
.trust-row { background: var(--primary); padding: 18px 0; color: #fff; }
.trust-item { display: flex; align-items: center; gap: 10px; font-size: .88rem; font-weight: 700; }
.trust-item i { font-size: 1.3rem; opacity: .9; }

/* ── Category Cards ── */
.category-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px 14px;
  text-align: center;
  border: 2px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
  height: 100%;
}
.category-card:hover { border-color: var(--primary); transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.category-icon { width: 60px; height: 60px; background: rgba(230,57,70,.1); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; font-size: 1.5rem; color: var(--primary); transition: var(--transition); }
.category-card:hover .category-icon { background: var(--primary); color: #fff; }
.category-card h6 { font-weight: 800; font-size: .88rem; margin-bottom: 3px; }
.category-card small { color: var(--gray); font-size: .78rem; }

/* ── Product Cards ── */
.product-card { background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1.5px solid var(--border); transition: var(--transition); height: 100%; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--primary); }
.product-img-wrap { position: relative; overflow: hidden; height: 190px; background: var(--light-gray); }
.product-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product-card:hover .product-img-wrap img { transform: scale(1.06); }
.product-badges { position: absolute; top: 8px; left: 8px; display: flex; gap: 4px; flex-direction: column; }
.badge-rx   { background: var(--primary); color: #fff; font-size: .67rem; padding: 3px 7px; border-radius: 4px; font-weight: 700; }
.badge-otc  { background: var(--secondary); color: #fff; font-size: .67rem; padding: 3px 7px; border-radius: 4px; font-weight: 700; }
.badge-sale { background: var(--accent); color: #fff; font-size: .67rem; padding: 3px 7px; border-radius: 4px; font-weight: 700; }
.product-quick-btn { position: absolute; bottom: -40px; left: 0; right: 0; text-align: center; transition: bottom .3s; }
.product-card:hover .product-quick-btn { bottom: 8px; }
.product-quick-btn button { background: rgba(255,255,255,.92); border: none; border-radius: 6px; padding: 6px 14px; font-size: .78rem; cursor: pointer; color: var(--primary); font-weight: 700; }
.product-body  { padding: 14px; flex: 1; display: flex; flex-direction: column; }
.product-category { font-size: .7rem; color: var(--primary); font-weight: 800; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.product-name    { font-size: .92rem; font-weight: 800; color: var(--dark); margin-bottom: 4px; }
.product-mfg     { font-size: .76rem; color: var(--gray); margin-bottom: 7px; }
.product-rating  { color: #ffc107; font-size: .78rem; margin-bottom: 9px; }
.product-rating span { color: var(--gray); font-size: .76rem; margin-left: 3px; }
.product-price { display: flex; align-items: center; gap: 7px; margin-bottom: 12px; margin-top: auto; }
.price-current   { font-size: 1.05rem; font-weight: 800; color: var(--primary); }
.price-original  { font-size: .85rem; color: var(--gray); text-decoration: line-through; }
.price-discount  { font-size: .73rem; background: #fff3cd; color: #856404; padding: 2px 6px; border-radius: 4px; font-weight: 700; }
.btn-enquire {
  width: 100%;
  background: var(--primary);
  color: #fff; border: none; border-radius: 8px;
  padding: 9px 0; font-size: .87rem; font-weight: 700;
  cursor: pointer; transition: var(--transition);
}
.btn-enquire:hover { background: var(--primary-dark); transform: translateY(-1px); }

/* ── Services ── */
.services-section { background: var(--light-gray); }
.service-card { background: var(--white); border-radius: var(--radius); padding: 26px 20px; text-align: center; border: 1.5px solid var(--border); transition: var(--transition); height: 100%; }
.service-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.service-icon { font-size: 2.1rem; color: var(--primary); margin-bottom: 14px; }
.service-card h5 { font-weight: 800; margin-bottom: 8px; font-size: .95rem; }
.service-card p  { font-size: .85rem; color: var(--gray); margin: 0; }

/* ── Why Section ── */
.why-card { display: flex; align-items: flex-start; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.why-card:last-child { border-bottom: none; }
.why-icon-sm { width: 44px; height: 44px; flex-shrink: 0; background: rgba(230,57,70,.1); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: var(--primary); }
.why-card h6 { font-weight: 800; margin-bottom: 3px; font-size: .92rem; }
.why-card p  { font-size: .82rem; color: var(--gray); margin: 0; }

/* ── Testimonials ── */
.testimonial-card { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); border: 1.5px solid var(--border); transition: var(--transition); height: 100%; }
.testimonial-card:hover { box-shadow: var(--shadow-hover); }
.testimonial-quote { font-size: 2rem; color: var(--primary); line-height: 1; margin-bottom: 10px; }
.testimonial-text  { font-size: .88rem; color: var(--gray); font-style: italic; margin-bottom: 16px; }
.testimonial-author { display: flex; align-items: center; gap: 10px; }
.author-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--primary); }
.author-name   { font-weight: 800; font-size: .88rem; }
.author-title  { font-size: .74rem; color: var(--gray); }
.star-rating   { color: #ffc107; font-size: .8rem; margin-bottom: 2px; }

/* ── Blog ── */
.blog-card { background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1.5px solid var(--border); transition: var(--transition); height: 100%; }
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.blog-img  { height: 190px; overflow: hidden; }
.blog-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.blog-card:hover .blog-img img { transform: scale(1.06); }
.blog-body { padding: 18px; }
.blog-meta { font-size: .74rem; color: var(--gray); margin-bottom: 7px; }
.blog-title { font-size: .95rem; font-weight: 800; color: var(--dark); margin-bottom: 7px; }
.blog-excerpt { font-size: .83rem; color: var(--gray); margin-bottom: 12px; }
.blog-tag { display: inline-block; background: rgba(230,57,70,.1); color: var(--primary); font-size: .7rem; padding: 3px 9px; border-radius: 20px; font-weight: 700; }

/* ── Newsletter ── */
.newsletter-section { background: var(--dark); color: #fff; }
.newsletter-form .form-control { border-radius: 8px 0 0 8px; border: none; padding: 11px 16px; }
.newsletter-form .btn { border-radius: 0 8px 8px 0; padding: 11px 22px; }

/* ── Contact Block ── */
.contact-block { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); border: 1.5px solid var(--border); }
.contact-item  { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; font-size: .88rem; color: var(--gray); }
.contact-item i { color: var(--primary); font-size: 1rem; margin-top: 3px; }

/* ── Footer ── */
.footer-main { background: var(--dark); color: #c5cdd9; padding: 55px 0 0; }
.footer-brand { font-size: 1.4rem; font-weight: 900; color: #fff; margin-bottom: 10px; }
.footer-brand span { color: var(--accent); }
.footer-desc  { font-size: .86rem; color: #8b9ab0; line-height: 1.8; margin-bottom: 18px; }
.footer-social a { width: 34px; height: 34px; background: rgba(255,255,255,.08); border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; color: #c5cdd9; font-size: .88rem; transition: var(--transition); margin-right: 5px; }
.footer-social a:hover { background: var(--primary); color: #fff; }
.footer-heading { font-size: .92rem; font-weight: 800; color: #fff; margin-bottom: 16px; position: relative; }
.footer-heading::after { content: ''; display: block; width: 28px; height: 3px; background: var(--primary); border-radius: 2px; margin-top: 6px; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #8b9ab0; font-size: .85rem; }
.footer-links a:hover { color: var(--accent); padding-left: 4px; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; font-size: .85rem; color: #8b9ab0; }
.footer-contact-item i { color: var(--primary); margin-top: 3px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.07); padding: 16px 0; text-align: center; font-size: .82rem; color: #5a6878; margin-top: 38px; }
.footer-bottom a { color: var(--accent); }

/* ── Back-to-top ── */
#backToTop { position: fixed; bottom: 86px; right: 20px; width: 42px; height: 42px; background: var(--primary); color: #fff; border: none; border-radius: 10px; font-size: 1rem; cursor: pointer; box-shadow: 0 4px 14px rgba(230,57,70,.4); opacity: 0; visibility: hidden; transition: var(--transition); z-index: 999; display: flex; align-items: center; justify-content: center; }
#backToTop.visible { opacity: 1; visibility: visible; }
#backToTop:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* ── WhatsApp / Call ── */
.whatsapp-btn { position: fixed; bottom: 86px; left: 20px; width: 48px; height: 48px; background: #25d366; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: #fff; box-shadow: 0 4px 14px rgba(37,211,102,.4); z-index: 999; animation: pulse 2s infinite; }
.call-btn { position: fixed; bottom: 20px; left: 20px; width: 48px; height: 48px; background: var(--secondary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: #fff; box-shadow: 0 4px 14px rgba(45,106,79,.4); z-index: 999; transition: var(--transition); }
.call-btn:hover { transform: scale(1.1); }
@keyframes pulse { 0%,100% { box-shadow: 0 4px 14px rgba(37,211,102,.4); } 50% { box-shadow: 0 4px 26px rgba(37,211,102,.7); } }

/* ── Enquiry Modal ── */
.enquiry-modal .modal-header { background: var(--primary); color: #fff; border-bottom: none; border-radius: 10px 10px 0 0; }
.enquiry-modal .modal-header .btn-close { filter: invert(1); }
.enquiry-modal .product-summary { background: var(--light-gray); border-radius: 8px; padding: 12px; margin-bottom: 16px; display: flex; gap: 10px; align-items: center; }
.enquiry-modal .product-summary img { width: 60px; height: 60px; border-radius: 7px; object-fit: cover; }
.enquiry-modal .product-summary h6 { font-weight: 800; margin-bottom: 2px; }

/* ── Toast ── */
.enquiry-success-toast { position: fixed; top: 18px; right: 18px; background: var(--secondary); color: #fff; padding: 12px 20px; border-radius: 9px; box-shadow: 0 6px 18px rgba(45,106,79,.35); font-size: .88rem; font-weight: 700; z-index: 9999; transform: translateX(120%); transition: transform .4s; display: flex; align-items: center; gap: 9px; }
.enquiry-success-toast.show { transform: translateX(0); }

/* ── Page Hero ── */
.page-hero { background: linear-gradient(135deg,#fff0ef,#fff8f5); padding: 50px 0 40px; }
[data-theme="dark"] .page-hero { background: linear-gradient(135deg,#1a2533,#0f1d2a); }
.page-hero h1 { font-size: 2rem; font-weight: 900; color: var(--dark); }
.breadcrumb-item a { color: var(--primary); }
.breadcrumb-item.active { color: var(--gray); }

/* ── Filter Bar ── */
.filter-bar { background: var(--white); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); margin-bottom: 22px; border: 1.5px solid var(--border); }
.filter-btn { border: 2px solid var(--border); background: var(--white); color: var(--gray); border-radius: 50px; padding: 5px 16px; font-size: .83rem; cursor: pointer; transition: var(--transition); font-weight: 700; }
.filter-btn:hover, .filter-btn.active { border-color: var(--primary); background: var(--primary); color: #fff; }

/* ── About / Counter / Team ── */
.counter-card { background: var(--white); border-radius: var(--radius); padding: 24px 18px; text-align: center; box-shadow: var(--shadow); border: 1.5px solid var(--border); }
.counter-num  { font-size: 2rem; font-weight: 900; color: var(--primary); }
.counter-lbl  { font-size: .83rem; color: var(--gray); margin-top: 3px; }
.team-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); text-align: center; border: 1.5px solid var(--border); }
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.team-card img { width: 100%; height: 220px; object-fit: cover; }
.team-body { padding: 16px; }
.team-name  { font-weight: 800; font-size: .95rem; margin-bottom: 2px; }
.team-role  { font-size: .8rem; color: var(--primary); margin-bottom: 7px; font-weight: 700; }
.team-social a { color: var(--gray); font-size: .88rem; margin: 0 4px; }
.team-social a:hover { color: var(--primary); }

/* ── Service Detail Card ── */
.service-detail-card { background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); border-left: 4px solid var(--primary); transition: var(--transition); height: 100%; }
.service-detail-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.service-num { font-size: 2.2rem; font-weight: 900; color: rgba(230,57,70,.1); line-height: 1; margin-bottom: 12px; }

/* ── Offer Cards ── */
.offer-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1.5px solid var(--border); transition: var(--transition); }
.offer-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.offer-banner { background: var(--primary); color: #fff; padding: 22px; text-align: center; }
.offer-pct  { font-size: 2.8rem; font-weight: 900; line-height: 1; }
.offer-off  { font-size: .95rem; opacity: .9; }
.offer-body { padding: 18px; }
.offer-code { background: var(--light-gray); border: 2px dashed var(--border); border-radius: 6px; padding: 7px 14px; font-family: monospace; font-size: .95rem; font-weight: 900; color: var(--primary); text-align: center; letter-spacing: 2px; margin: 10px 0; }

/* ── Contact Page ── */
.contact-info-card { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); border: 1.5px solid var(--border); transition: var(--transition); }
.contact-info-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.contact-icon { width: 52px; height: 52px; background: rgba(230,57,70,.1); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: var(--primary); margin-bottom: 12px; }
.map-container { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map-container iframe { width: 100%; display: block; }

/* ── FAQ ── */
.faq-item .accordion-button { font-weight: 800; font-size: .93rem; background: var(--white); color: var(--dark); }
.faq-item .accordion-button:not(.collapsed) { background: rgba(230,57,70,.06); color: var(--primary); box-shadow: none; }

/* ── Blog Large ── */
.blog-large-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1.5px solid var(--border); margin-bottom: 26px; }
.blog-large-card .blog-img { height: 260px; }
.blog-large-card .blog-body { padding: 24px; }
.blog-large-card .blog-title { font-size: 1.15rem; font-weight: 900; }

/* ── Responsive ── */
@media (max-width: 991.98px) { .hero-title { font-size: 2.1rem; } section { padding: 50px 0; } }
@media (max-width: 767.98px) { .hero-title { font-size: 1.75rem; } section { padding: 42px 0; } }
@media (max-width: 575.98px) { .hero-title { font-size: 1.5rem; } .offer-pct { font-size: 2.1rem; } }
