/* The original theme rules remain untouched. These additions style ZDoctor's
   contact links, accessible detail views, and keyboard focus. */
html { scroll-behavior: smooth; }
:focus-visible { outline: 2px solid #c4a45a; outline-offset: 4px; }
[id] { scroll-margin-top: 24px; }
.detail-dialog { border: 0; border-radius: 20px; padding: 36px; max-width: 760px; width: calc(100% - 32px); max-height: calc(100dvh - 48px); color: #222219; background: #fff; box-shadow: 0 20px 80px #001a3640; overflow-y: auto; overscroll-behavior: contain; }
.detail-dialog::backdrop { background: #002d36aa; backdrop-filter: blur(4px); }
.detail-dialog-close { position: sticky; top: 0; float: right; margin: -20px -20px 0 8px; width: 40px; height: 40px; border: 1px solid #dce7e7; border-radius: 50%; background: #fff; color: #006778; font-size: 28px; line-height: 34px; cursor: pointer; z-index: 2; }
.detail-dialog-close:hover { color: #fff; background: #006778; }
.detail-dialog h2 { color: #005c6b; font-size: 30px; line-height: 1.3; margin: 8px 0 24px; }
.detail-dialog h3 { font-size: 21px; line-height: 1.4; margin: 24px 0 10px; }
.detail-dialog p { line-height: 1.8; margin-bottom: 20px; }
.detail-image { display: block; width: 100%; max-height: 300px; object-fit: cover; border-radius: 12px; margin-bottom: 24px; }
.detail-product-image { height: 280px; object-fit: contain; background: #f5f5f9; }
.detail-eyebrow { color: #006778; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.detail-list article + article { border-top: 1px solid #e5e9e7; margin-top: 22px; }
.detail-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.detail-grid img { width: 100%; border-radius: 12px; }
.detail-grid h3 { margin-top: 12px; }
.contact-email-row { align-items: stretch; }
.contact-email-row .contact-email { flex: 1; min-width: 0; display: flex; align-items: center; padding: 16px 20px; background: #fff; border-radius: 12px; color: #005c6b; overflow-wrap: anywhere; }
.contact-email-row .btn { display: inline-flex; align-items: center; white-space: nowrap; }
.footer-contact .contact-value { color: rgba(255, 255, 255, 0.5); }
.product-title { gap: 10px; }
.product-title p { font-size: 12px; line-height: 20px; text-align: right; max-width: 86px; }
.testimonial-author .avatar img { object-fit: contain; background: #f0f7f7; padding: 10px; }
.testimonials-section .rating span { font-size: 12px; font-weight: 700; line-height: 16px; color: #006778; }
@media (max-width: 575px) {
  .contact-email-row { flex-wrap: wrap; }
  .contact-email-row .contact-email { flex-basis: 180px; }
  .detail-dialog { padding: 24px; }
  .detail-dialog h2 { font-size: 25px; }
  .detail-dialog-close { margin: -12px -12px 0 8px; }
  .detail-grid { gap: 16px; }
  .product-title { flex-direction: column; gap: 2px; align-items: flex-start; }
  .product-title p { text-align: left; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-aos] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* Keep the page readable while optional animation scripts load. */
html:not(.zdoctor-animation-ready) [data-aos],
.hero-area [data-aos] { opacity: 1 !important; transform: none !important; }
:is(a, button, [tabindex]):focus-visible { outline: 3px solid #ba873a; outline-offset: 4px; }
.skip-link { position: fixed; top: 12px; left: 16px; z-index: 10000; padding: 12px 20px; border-radius: 8px; background: #fff; color: #00505e; transform: translateY(-150%); box-shadow: 0 4px 20px #002d3630; }
.skip-link:focus { transform: translateY(0); }
#main-content:focus { outline: none; }
p, .menu-list li a { color: #67695f; }
.footer p, .footer-contact .contact-value, .footer-links a, .footer-post a { color: #c2d5d8; }
.detail-dialog-close { width: 44px; height: 44px; flex-shrink: 0; }
.product-item:focus-within .shop-item-controls { opacity: 1; visibility: visible; transform: translateY(-50%) translateX(0); }
.blog-card h3 a, .detail-list h3 a { display: block; }
.shop-item-controls li a { width: 44px; height: 44px; }
.testimonial-card .testimonial-author .avatar { flex-shrink: 0; }
.testimonial-box .slick-track { display: flex; }
.testimonial-box .slick-slide { height: auto; }
.testimonial-box .slick-slide > div { height: 100%; }
.testimonial-box:not(.slick-initialized) { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,280px),1fr)); gap: 24px; }
.testimonial-box:not(.slick-initialized) .testimonial-card { margin: 0; }
.testimonial-card { display: flex !important; flex-direction: column; }
.testimonial-author { margin-top: auto; }
.not-found-page { min-height: 100dvh; display: grid; place-items: center; padding: 80px 24px; background: #f9f8f5; }
.not-found-page .site-logo { display: flex; width: max-content; margin: 0 auto 32px; }
.not-found-page .section-label { display: table; margin: 0 auto 24px; }
.not-found-page h1 { font-size: clamp(32px,4vw,60px); max-width: 900px; margin: 0 auto 24px; }
.not-found-page p { max-width: 520px; margin: 0 auto 28px; }
.not-found-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.no-script-details { max-width: 850px; padding-block: 64px; }
.no-script-detail { padding-block: 32px; border-top: 1px solid #dce7e7; }
.no-script-detail h2 { font-size: 30px; line-height: 1.3; }
.no-script-detail h3, .no-script-panel-title { font-size: 22px; line-height: 1.4; }
@media (min-width: 768px) and (max-width: 1399px) {
  .testimonial-box { margin-inline: 36px; }
  .testimonial-box .slick-prev { left: -36px; }
  .testimonial-box .slick-next { right: -36px; }
}
@media (min-width: 1201px) and (max-width: 1499px) {
  .mainmenu { margin-left: 24px; }
  .menu-list { gap: 4px; }
  .menu-list li a { padding-inline: 10px; white-space: nowrap; }
  .header-right { flex-shrink: 0; }
  .header-right .btn { padding-inline: 20px; white-space: nowrap; }
  .phone-call { margin-right: 18px; white-space: nowrap; }
}
@media (max-width: 1200px) {
  nav#menu { min-height: 0; padding: 0 24px; max-height: 0; }
  nav#menu.active { padding-block: 24px; max-height: calc(100dvh - 80px); overflow-y: auto; overscroll-behavior: contain; }
  #menu-toggle { min-width: 44px; min-height: 44px; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 8px; }
  #menu-toggle span { margin: 0; top: 0; }
  #menu-toggle.active span:nth-child(1) { top: 7px; }
  #menu-toggle.active span:nth-child(3) { top: -9px; }
}
@media (max-width: 767px) {
  .hero-area .container > .row > [class*="col-"] { width: 100%; }
  .hero-text { max-width: 560px; margin-inline: auto; }
  .hero-area .stats { max-width: 500px; margin-inline: auto; }
  .hero-img { max-width: 460px; margin: 24px auto 0; }
  .hero-img img { right: 0; }
  .hero-bar { left: 50%; width: calc(100% - 24px); }
  .stat-box p { font-size: 13px; line-height: 1.6; }
  .product-title { flex-direction: column; align-items: flex-start; gap: 4px; }
  .product-title p { max-width: none; text-align: left; }
}
@media (hover: none) {
  .shop-item-controls { opacity: 1; visibility: visible; transform: translateY(-50%); }
}
@media (max-width: 359px) {
  .hero-sub-heading span { font-size: 12px; letter-spacing: 0; }
  .section-heading { font-size: 24px; }
  .detail-dialog { padding: 20px; width: calc(100% - 20px); }
  .detail-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
