@charset "UTF-8";
/* ============================================================================
 * Ortopedik.rs - Clinical-Ergonomic Theme Layer
 * Loaded ONLY on ortopedik.rs (V2_THEME === 'ortopedik')
 * ============================================================================ */

:root {
  --ortho-primary: #0f766e;
  --ortho-primary-dark: #134e4a;
  --ortho-primary-deep: #042f2e;
  --ortho-accent: #0d9488;
  --ortho-mint: #f0fdfa;
  --ortho-surface: #ffffff;
  --ortho-bg: #f6faf9;
}

body.theme-ortopedik {
  background-color: var(--ortho-bg);
  color: #0f172a;
}

/* Harmonize shared V2 blue utility elements inside cart drawer / checkout / legal pages */
body.theme-ortopedik .bg-brand-900 {
  background-color: #042f2e;
}
body.theme-ortopedik .ortho-glass-header {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* Bundle Selector Card Styling (Ortopedik Product Page - overrides default .bundle-card) */
body.theme-ortopedik .bundle-card.ortho-bundle-card,
.ortho-bundle-card {
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  cursor: pointer;
  position: relative;
}
body.theme-ortopedik .bundle-card.ortho-bundle-card:hover,
.ortho-bundle-card:hover {
  border-color: #14b8a6;
  transform: translateY(-1px);
}
body.theme-ortopedik .bundle-card.ortho-bundle-card.selected,
.ortho-bundle-card.selected {
  border-color: #0f766e;
  background-color: #f0fdfa;
  box-shadow: 0 8px 24px -6px rgba(15, 118, 110, 0.18);
}

/* Gallery active states tuned to Ortopedik teal */
body.theme-ortopedik .gallery-thumb.border-blue-600 {
  border-color: #0f766e !important;
}
body.theme-ortopedik .gallery-dot.bg-blue-600 {
  background-color: #0f766e !important;
}

.ortho-radio-dot {
  width: 22px;
  height: 22px;
  border: 2px solid #cbd5e1;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease;
  flex-shrink: 0;
  background: #ffffff;
}
.ortho-bundle-card.selected .ortho-radio-dot {
  border-color: #0f766e;
}
.ortho-bundle-card.selected .ortho-radio-dot::after {
  content: '';
  width: 10px;
  height: 10px;
  background-color: #0f766e;
  border-radius: 9999px;
}

/* Native <details> / <summary> FAQ Accordion (accessible, find-in-page friendly) */
.ortho-accordion details {
  border: 1px solid #d1e7e4;
  border-radius: 1rem;
  background: #ffffff;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.ortho-accordion details[open] {
  border-color: #5eead4;
  box-shadow: 0 6px 18px -8px rgba(15, 118, 110, 0.14);
}
.ortho-accordion summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.15rem 1.25rem;
  font-weight: 700;
  color: #0f172a;
  cursor: pointer;
  user-select: none;
}
.ortho-accordion summary::-webkit-details-marker {
  display: none;
}
.ortho-accordion summary::before {
  content: "";
  inline-size: 1.15rem;
  block-size: 1.15rem;
  flex-shrink: 0;
  border-radius: 9999px;
  background-color: #0f766e;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat center / 0.85rem 0.85rem;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat center / 0.85rem 0.85rem;
  rotate: -90deg;
}
.ortho-accordion details[open] > summary::before {
  rotate: 0deg;
}
.ortho-accordion summary:hover {
  background-color: #f0fdfa;
}
.ortho-accordion .ortho-faq-body {
  padding: 0 1.25rem 1.2rem 3.15rem;
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.65;
}
.ortho-accordion details::details-content {
  interpolate-size: allow-keywords;
  overflow: clip;
  contain: layout;
}
.ortho-accordion details:not([open])::details-content {
  block-size: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .ortho-accordion summary::before {
    transition: rotate 0.2s ease;
  }
  .ortho-accordion details::details-content {
    transition: block-size 0.28s ease-in-out, content-visibility 0.28s ease-in-out;
    transition-behavior: allow-discrete;
  }
}

/* Native <dialog> Modals (prevent scroll chaining to underlying page) */
dialog.ortho-dialog:modal {
  overscroll-behavior: contain;
  margin: auto;
  padding: 0;
  border: none;
  background: transparent;
  max-width: min(92vw, 34rem);
  width: 100%;
  overflow: visible;
}
dialog.ortho-dialog::backdrop {
  background: rgba(4, 47, 46, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  overflow: hidden;
  overscroll-behavior: contain;
}
dialog.ortho-dialog[open] {
  display: block;
}

/* Sticky Mobile Buy Bar */
.ortho-sticky-bar {
  box-shadow: 0 -6px 26px rgba(4, 47, 46, 0.12);
}

/* Comparison table comfortable cell spacing */
.ortho-comparison-table th,
.ortho-comparison-table td {
  padding: 0.875rem 1rem;
}
@media (max-width: 639px) {
  .ortho-comparison-table th,
  .ortho-comparison-table td {
    padding: 0.7rem 0.65rem;
  }
}
