/* ==========================================================================
   HUMANIC MEDICAL EQUIPMENT - TAILWIND COMPANION STYLESHEET
   From theme/assets/css/style.css. Fonts load from fonts.css (own <link>), utilities
   from tailwind.css; this file holds the few states Tailwind cannot express.
   ========================================================================== */

/* --- Base Typography & Reset --- */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'SVN-Gilroy', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* --- Hero Slider Active States --- */
.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 10;
}

/* --- Cart Drawer States --- */
#cartDrawer.open {
  transform: translateX(0);
}

#cartDrawerOverlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* --- Auth Modal States --- */
#authModalOverlay.open {
  opacity: 1;
  pointer-events: auto;
}

#authModalOverlay.open > div {
  transform: scale(1);
}

/* --- Toast Notification State --- */
#toastNotification.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* --- Mobile Sidebar States --- */
#mobileSidebar.open {
  transform: translateX(0);
}

#mobileSidebarOverlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* --- Language switcher (GTranslate widget or the site's own locale links) --- */
.gtranslate_wrapper,
.humanic-lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
}

.gtranslate_wrapper a,
.humanic-lang-switch a {
  display: inline-flex;
  align-items: center;
  border-radius: 3px;
  overflow: hidden;
  transition: transform 0.2s ease, opacity 0.2s ease;
  line-height: 1;
}

.gtranslate_wrapper a:hover,
.humanic-lang-switch a:hover {
  transform: scale(1.08);
  opacity: 0.9;
}

.humanic-lang-switch a[aria-current='true'] {
  outline: 1px solid rgba(255, 255, 255, 0.6);
  outline-offset: 1px;
}

.gtranslate_wrapper img,
.humanic-lang-switch img {
  display: block;
  border-radius: 2px;
}

/* Typography: All bold elements use semibold (weight 600) */
b, strong {
  font-weight: 600;
}

/* --- Form validation feedback (contact, quote and auth forms) --- */
.humanic-field-error {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: #dc2626;
}

.humanic-invalid {
  border-color: #dc2626 !important;
}

.humanic-form-alert {
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
}

.humanic-form-alert--error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

.humanic-form-alert--success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
}

/* --------------------------------------------------------------------------
   Rich text written in the admin (product description, post body, policy pages).
   Tailwind's preflight strips every default, so content that comes from an editor
   needs its typography back — scoped to this class so the theme is untouched.
   -------------------------------------------------------------------------- */
.humanic-prose {
  color: #334155;
  line-height: 1.75;
  overflow-wrap: break-word;
}

.humanic-prose > * + * {
  margin-top: 1em;
}

.humanic-prose h1,
.humanic-prose h2,
.humanic-prose h3,
.humanic-prose h4,
.humanic-prose h5,
.humanic-prose h6 {
  font-family: 'Phudu', sans-serif;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.3;
  margin-top: 1.5em;
}

.humanic-prose h1 { font-size: 1.875rem; }
.humanic-prose h2 { font-size: 1.5rem; }
.humanic-prose h3 { font-size: 1.25rem; }
.humanic-prose h4 { font-size: 1.125rem; }

.humanic-prose > :first-child {
  margin-top: 0;
}

.humanic-prose a {
  color: #008db9;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.humanic-prose a:hover {
  color: #005f7d;
}

.humanic-prose ul,
.humanic-prose ol {
  padding-left: 1.5rem;
}

.humanic-prose ul { list-style: disc; }
.humanic-prose ol { list-style: decimal; }

.humanic-prose li + li {
  margin-top: 0.35em;
}

.humanic-prose blockquote {
  border-left: 4px solid #008db9;
  background: #e6f6fa;
  padding: 0.75rem 1rem;
  border-radius: 0 0.5rem 0.5rem 0;
  color: #1e293b;
}

.humanic-prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
}

.humanic-prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.humanic-prose th,
.humanic-prose td {
  border: 1px solid #e2e8f0;
  padding: 0.6rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.humanic-prose th {
  background: #f8fafc;
  color: #0f172a;
  font-weight: 600;
}

.humanic-prose tbody tr:nth-child(even) td {
  background: #fcfdfe;
}

.humanic-prose .ql-align-center { text-align: center; }
.humanic-prose .ql-align-right { text-align: right; }
.humanic-prose .ql-align-justify { text-align: justify; }

/* --- Laravel paginator rendered in the theme's pill style --- */
.humanic-pagination a,
.humanic-pagination span[aria-current] > span,
.humanic-pagination span[aria-disabled] > span {
  min-width: 2.5rem;
}

/* Product highlights (short description): the theme's check-icon bullets. */
.humanic-highlights ul {
  list-style: none;
  padding-left: 0;
}

.humanic-highlights li {
  position: relative;
  padding-left: 1.6rem;
}

.humanic-highlights li + li {
  margin-top: 0.6rem;
}

.humanic-highlights li::before {
  content: "\f058";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: #008db9;
  position: absolute;
  left: 0;
  top: 0.05em;
}
