/* Base Styles and Typography (shared store pages: cart, login, account, ...) */
body {
  scroll-behavior: smooth;
  overflow-x: hidden;
}
:root {
  /* names used by the shared store-page rules below */
  --primary-color: hsl(217 91% 22%);
  --primary-dark: hsl(217 91% 15%);
  --primary-light: hsl(217 91% 22% / .1);
  --accent-color: hsl(174 62% 40%);
  --accent-dark: hsl(174 72% 35%);
  --accent-light: hsl(174 62% 40% / .15);
  --secondary-gray: hsl(215 16% 47%);
  --bg-light: hsl(210 20% 96%);
  --border-color: hsl(214 32% 91%);
  --white: #ffffff;
  --black: hsl(222 47% 11%);
}
html {
  scroll-behavior: smooth;
}
.no-scroll {
  overflow: hidden;
}
/* Colours: bg-primary, text-primary, bg-accent, ... come from the Tailwind config in the layout. */
.bg-primary-dark { background-color: var(--primary-dark); }
.bg-primary-light { background-color: var(--primary-light); }
.hover\:bg-primary-dark:hover { background-color: var(--primary-dark); }
.bg-secondary-dark { background-color: var(--accent-dark); }
.bg-secondary-light { background-color: var(--accent-light); }
/* btn-css */
.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 0.375rem;
  transition: background-color 0.3s ease-in-out;
  align-items: center;
  justify-content: center;
  display: inline-flex;
  gap: 10px;
}
.btn-primary:hover {
  background-color: var(--primary-dark);
}
.btn-outline {
  background-color: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 0.375rem;
  transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
  align-items: center;
  justify-content: center;
  display: inline-flex;
  gap: 10px;
}
.btn-outline:hover {
  background-color: var(--primary-dark);
  color: var(--white);
}

/* site-header */
.header-icons svg {
  height: 22px;
  width: 22px;
}
.header-icons svg path {
  fill: var(--black);
}
.site-header .menu-dropdown {
  opacity: 0;
  visibility: hidden;
  transition: all 300ms ease-in-out 0s;
  -webkit-transition: all 300ms ease-in-out 0s;
  -moz-transition: all 300ms ease-in-out 0s;
  -ms-transition: all 300ms ease-in-out 0s;
  -o-transition: all 300ms ease-in-out 0s;
  transform-origin: top;
  transform: scaleY(0);
  -webkit-transform: scaleY(0);
  -moz-transform: scaleY(0);
  -ms-transform: scaleY(0);
  -o-transform: scaleY(0);
}
.site-header .main-nav>.has-item:hover>.menu-dropdown {
  opacity: 1;
  visibility: visible;
  transform: scaleY(100%);
  -webkit-transform: scaleY(100%);
  -moz-transform: scaleY(100%);
  -ms-transform: scaleY(100%);
  -o-transform: scaleY(100%);
}
.site-header .main-nav>.has-item>a:after {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  width: 7px;
  height: 7px;
  border-top: 2px solid #374151;
  border-left: 2px solid #374151;
  transform: translateY(-50%) rotate(225deg);
  -webkit-transform: translateY(-50%) rotate(225deg);
  -moz-transform: translateY(-50%) rotate(225deg);
  -ms-transform: translateY(-50%) rotate(225deg);
  -o-transform: translateY(-50%) rotate(225deg);
  transition: all ease-in-out 0.5s;
  -webkit-transition: all ease-in-out 0.5s;
  -moz-transition: all ease-in-out 0.5s;
  -ms-transition: all ease-in-out 0.5s;
  -o-transition: all ease-in-out 0.5s;
  z-index: 1;
}
.site-header .main-nav>.has-item:hover>a:after {
  border-color: var(--primary-color);
  transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  -o-transform: rotate(45deg);
}

/* --------------------------------------------------------
   SUBMENU – OPEN TO THE RIGHT (X-DIRECTION)
---------------------------------------------------------*/
.menu-dropdown > .has-item > .menu-dropdown {
  top: 0;
  left: 100%; /* <-- right side */
}
.menu-dropdown {
  margin: 2px;
}

.menu-dropdown > .has-item:hover > .menu-dropdown {
  opacity: 1;
  visibility: visible;
  transform: scaleX(1); /* <-- horizontal open */
}

.menu-dropdown li a {
  display: block;
  padding: 8px 20px;
  white-space: nowrap;
  color: #374151;
  font-size: 14px;
}
.menu-dropdown li a:hover {
  background: #f3f4f6;
  color: var(--primary-color);
}
.menu-dropdown > .has-item > a {
  position: relative;
  padding-right: 20px;
}
.menu-dropdown > .has-item > a:after {
  content: '';
  position: absolute;
  top: 50%;
  right: 6px;
  width: 7px;
  height: 7px;

  border-top: 2px solid #374151;
  border-right: 2px solid #374151;

  transform: translateY(-50%) rotate(45deg);
  transition: 300ms ease;
}
.menu-dropdown > .has-item:hover > a:after {
  border-color: var(--primary-color);
  transform: translateY(-50%) rotate(225deg);
}

/* Flip: open LEFT */
.menu-dropdown.open-left {
  top: 11px !important;
  left: auto !important;
  right: 100% !important;
  transform-origin: right;
}

.rotate-180 {
  transform: rotate(180deg);
}
.search-bar {
  position: relative;
  display: flex;
  align-items: center;
}
.search-bar input {
  width: 100%;
  padding: 10px 100px 10px 10px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: all 0.2s;
  -webkit-border-radius: 8px;
  -moz-border-radius: 8px;
  -ms-border-radius: 8px;
  -o-border-radius: 8px;
  -webkit-transition: all 0.2s;
  -moz-transition: all 0.2s;
  -ms-transition: all 0.2s;
  -o-transition: all 0.2s;
  outline: none;
}
.search-bar input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}
.search-bar i {
  position: absolute;
  left: 16px;
}
.search-bar button {
  position: absolute;
  right: 0.5rem;
  padding: 4px 13px;
  font-size: 14px;
  font-weight: 500;
}
.search-bar button:hover {
  background-color: var(--primary-dark);
}
.mobile-dropdown-content {
  display: none;
  padding-left: 1rem;
  margin-top: 0.5rem;
}
.mobile-dropdown-content a {
  display: block;
  padding: 0.5rem 0;
}
.mobile-dropdown-toggle.active+.mobile-dropdown-content {
  display: block;
}
/* Animation for mobile menu */
.mobile-menu-enter {
  opacity: 0;
  transform: translateX(-100%);
}
.mobile-menu-enter-active {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 300ms, transform 300ms;
}
.mobile-menu-exit {
  opacity: 1;
  transform: translateX(0);
}
.mobile-menu-exit-active {
  opacity: 0;
  transform: translateX(-100%);
  transition: opacity 300ms, transform 300ms;
}
.mobile-dropdown-content {
  display: none;
}
.mobile-dropdown-content.show {
  display: block;
}
.mobile-menu {
  width: 100%;
  max-width: 320px;
  right: 0;
}
.mobile-menu.show {
  transform: translateX(0);
}
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 30;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}
.overlay.open {
  opacity: 1;
  visibility: visible;
}
/* cart-css */
.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 24rem;
  background-color: white;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  z-index: 1000;
  overflow-y: auto;
}
.cart-panel.open {
  transform: translateX(0);
}
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}
.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}
.qty-spinner svg path {
  stroke: var(--black);
}
.home-banner-sec .home-arrow-wrapper .swiper-button-prev,
.home-banner-sec .home-arrow-wrapper .swiper-button-next {
  position: unset;
}
/* Product grid and cards */
.product-card:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.product-card:hover img {
  transform: scale(1.05);
}
.product-card img {
  transition: transform 0.3s ease-in-out;
}
/* product-tab-sec */
.product-tab-sec .tab-btn.active {
  background-color: var(--primary-color);
  color: var(--white);
}
/* Blog cards */
.blog-card {
  background-color: var(--white);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
/* newsletter-css */
.newsletter-sec .form-input {
  width: 100%;
  background-color: transparent;
  border: 1px solid var(--white);
}
.newsletter-sec .form-input::placeholder {
  color: var(--white);
}
/* Form elements */
.form-input {
  width: 100%;
  outline: none;
  padding: 10px 15px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  -webkit-border-radius: 8px;
  -moz-border-radius: 8px;
  -ms-border-radius: 8px;
  -o-border-radius: 8px;
 /* text-transform: capitalize; */
}
.card {
  background-color: var(--white);
  border-radius: 0.5rem;
  border: 1px solid var(--border-color);
  overflow: hidden;
}
select {
  padding: 8px 35px 8px 15px !important;
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill='%23000000' d='M201.4 374.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 306.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 12px;
  background-position: calc(100% - 15px) 50%;
  outline: none;
}
/* Style for Swiper swiper navigation arrows */
.swiper-button-prev,
.swiper-button-next {
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: 9999px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: background-color 0.3s ease, transform 0.2s ease;
  outline: none;
}
.swiper-button-prev:hover,
.swiper-button-next:hover {
  background-color: var(--primary-dark);
}
/* Optional: use SVG icons inside these buttons */
.swiper-button-prev::after,
.swiper-button-next::after {
  content: "";
  display: block;
  width: 22px;
  height: 22px;
  background-color: var(--white);
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
}
/* Prev button icon */
.swiper-button-prev::after {
  mask-image: url("data:image/svg+xml,%3Csvg fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15 19l-7-7 7-7'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15 19l-7-7 7-7'/%3E%3C/svg%3E");
}
/* Next button icon */
.swiper-button-next::after {
  mask-image: url("data:image/svg+xml,%3Csvg fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9 5l7 7-7 7'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9 5l7 7-7 7'/%3E%3C/svg%3E");
}
.swiper {
  padding: 0 10px;
  margin: 0 -10px;
}
.swiper-slide {
  height: auto;
}
.swiper-button-next {
  right: 0;
  left: auto;
}
.swiper-button-prev {
  left: 0;
  right: auto;
}
.faq-icon svg path {
  fill: var(--white);
}
.search-popup {
  animation: slideDown 0.3s ease-out forwards;
}
/* common-banner-sec */
.banner-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.2);
}
.thumbnail-slider .swiper-slide-thumb-active .thumb-image {
  border-color: var(--primary-color);
}
.tab-button.active {
  color: var(--primary-color) !important;
  border-color: var(--primary-color);
}
/* product-list page css */
/* checkbox css */
.checkbox input {
  height: 15px;
  width: 15px;
  cursor: pointer;
}
.checkbox label, 
.radio-btn label {
    cursor: pointer;
}
.view-toggle.active {
  background-color: var(--primary-color);
  color: var(--white);
}
/* Responsive adjustments */
@media (max-width: 767px) {
  /* medFlow keeps paragraphs at their designed size on phones (as on the reference design) */
  table,
  select, .form-input {
    font-size: 14px;
  }
  /* btn-css */
  .btn-primary,
  .btn-outline {
    font-size: 14px;
    padding: 10px 15px;
  }
  .header-icons svg {
    height: 20px;
    width: 20px;
  }
  .swiper-button-prev,
  .swiper-button-next {
    width: 35px;
    height: 35px;
  }
  .swiper-button-prev::after,
  .swiper-button-next::after {
    width: 20px;
    height: 20px;
  }
  .offer-content::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.33);
    z-index: 0;
  }
}
/* responsive css */
@media (min-width: 640px) {
  .list-view .product-card {
    flex-direction: row;
    align-items: center;
    padding: 15px;
  }
  .list-view .product-img {
    width: 240px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    -ms-border-radius: 8px;
    -o-border-radius: 8px;
}
  .list-view .product-card .pro-btn-wrapper {
    transform: translate(0);
    -webkit-transform: translate(0);
    -moz-transform: translate(0);
    -ms-transform: translate(0);
    -o-transform: translate(0);
  }
}
.product_final_price{
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.75rem;
}
.product_orignal_price{
  --tw-text-opacity: 1;
  color: rgb(156 163 175 / var(--tw-text-opacity, 1));
  font-size: 0.875rem;
  line-height: 1.25rem;
  -webkit-text-decoration-line: line-through;
  text-decoration-line: line-through;
}

/* order-track-page-start */
.order-track-page .account-info {
  box-shadow: 0 1px 20px 0 rgba(69, 90, 100, 0.08),
    0 0 0 1px rgba(182, 186, 203, 0.1);
}
.order-track-page .profile-img {
  border: 5px solid #f5f5f5;
}
.order-track-page #progressbar .active {
  color: var(--primary-color);
}

.order-track-page #progressbar .active .progressbar-icon {
  background-color: var(--primary-color);
}
.order-track-page #progressbar .active .progressbar-icon i {
  color: var(--white);
}
.order-track-page #progressbar li{
  opacity: 0.8;
}
.order-track-page #progressbar li.active{
  opacity: 1;
}
.order-track-page #progressbar li:after {
  content: "";
  width: 100%;
  height: 2px;
  background: #d3d3d3;
  position: absolute;
  left: 0;
  top: 20px;
  z-index: 0;
}
.order-track-page #progressbar li.active:before,
.order-track-page #progressbar li.active:after {
  background: var(--primary-color);
}
.order-track-page .progress-bar {
  background-color: var(--primary-color);
}
.order-track-page .progressbar-wrapper {
  box-shadow: 0 1px 20px 0 rgba(69, 90, 100, 0.08),
    0 0 0 1px rgba(182, 186, 203, 0.1);
}

/* Select2 Custom Styles */
.select2-container--default .select2-selection--single {
    height: 38px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 0.375rem !important;
    padding: 0.5rem 0.75rem !important;
    background-color: #fff !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 20px !important;
    padding-left: 0 !important;
    color: #374151 !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--primary-color) !important;
}

.select2-dropdown {
    border: 1px solid #e5e7eb !important;
    border-radius: 0.375rem !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06) !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid #e5e7eb !important;
    border-radius: 0.375rem !important;
    padding: 0.5rem !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    outline: none !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 2px rgba(var(--primary-color-rgb), 0.1) !important;
}

/* Match form-input focus state */
.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 2px rgba(var(--primary-color-rgb), 0.1) !important;
}


/* 6-6 */
.wishlist-btn.active{
  color: #ff0000;
}
.faq-col:last-of-type{
  margin-bottom: 0 !important;
}

.pdp-timer .time-svg {
  width: 60px;
  background: var(--primary-color);
  border-radius: 0.375rem;
  border: 1px solid var(--primary-color);
}
.pdp-timer .time-counter {
  gap: 15px;
}
.pdp-timer .time-counter #timer  div{
  background-color: #d9d9d980;
  width: 60px;
  padding: 8px;
  border-radius: 0.375rem;
  border: 1px solid var(--border-color);
  color: var(--black)
}
#timer {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 15px;
  font-size: 16px;
  text-transform: capitalize;
  font-weight: 500;
}
#timer span{
  color: var(--primary-color);
}
.time-counter svg {
  height: 30px;
  width: 30px;
}
.time-counter #timer span {
  margin-top: 5px;
  line-height: 1;
}

@media screen and (max-width:639px){
  .pdp-timer .time-svg {
      width: 43px;
  }
  .pdp-timer .time-counter #timer div {
      width: 43px;
      padding: 5px;
  }
  .time-counter #timer span{
      font-size: 13px;
  }
  .pdp-timer .time-counter,
  #timer{
      gap:10px;
  }
}



/********* RTL CSS **********/
/* home page rtl css  */
[dir="rtl"] .fas.fa-arrow-right,
[dir="rtl"] .header-icons #form_logout svg {
  transform: scaleX(-1);
}
[dir="rtl"] .swiper-button-next{
  right: 10px;
    left: auto;
} 
[dir="rtl"] .swiper-button-prev{
  left: 10px;
  right: auto;
}
[dir="rtl"] #mobile-menu,
[dir="rtl"] .cart-panel{
  left: 0;
  right: auto;
  transform: translateX(-100%)
}

[dir="rtl"] #mobile-menu.show,
[dir="rtl"] .cart-panel.open{
  transform: translate(0);
}
[dir="rtl"] select {
  padding: 8px 15px 8px 35px !important;
  background-position: 15px 50%;
}

/* inner-page-css */
[dir="rtl"] #mobile-filter {
  right: 0;
  left: auto;
}
@media screen and (max-width: 1023px) {
  [dir="rtl"] #mobile-filter.-translate-x-full {
    transform: translateX(100%);
  }
  [dir="rtl"] #mobile-filter {
    transform: translateX(0);
  }
}


[dir="rtl"] .pagination-wrapper svg,
[dir="rtl"] .details-btn svg,
[dir="rtl"] .continue-btn svg,
[dir="rtl"] .continue-btn i {
  transform: scaleX(-1);
}

[dir="rtl"] .collection-card img{
  transform: scale(-1);
  -webkit-transform: scale(-1);
  -moz-transform: scale(-1);
  -ms-transform: scale(-1);
  -o-transform: scale(-1);
}
[dir ="rtl"] .select2-container[dir="rtl"] .select2-selection--single .select2-selection__rendered{
  padding-right: 0 !important;
  padding-left: 8px !important;
  text-align: right;
}

/* ==================================================================
   medFlow design system
   Same tokens as the reference design (shadcn-style HSL variables):
   navy primary, teal accent, soft slate background.
   Colour utilities (bg-primary, text-accent/80, ...) are generated by
   Tailwind from these variables; see tailwind.config in the layout.
================================================================== */
:root {
  --background: 210 20% 98%;
  --foreground: 222 47% 11%;
  --card: 0 0% 100%;
  --card-foreground: 222 47% 11%;
  --popover: 0 0% 100%;
  --popover-foreground: 222 47% 11%;
  --primary: 217 91% 22%;
  --primary-foreground: 210 40% 98%;
  --secondary: 174 62% 40%;
  --secondary-foreground: 210 40% 98%;
  --muted: 210 20% 96%;
  --muted-foreground: 215 16% 47%;
  --accent: 174 62% 40%;
  --accent-foreground: 210 40% 98%;
  --destructive: 0 84% 60%;
  --destructive-foreground: 210 40% 98%;
  --border: 214 32% 91%;
  --input: 214 32% 91%;
  --ring: 217 91% 22%;
  --radius: .75rem;
  --gradient-hero: linear-gradient(135deg, hsl(217 91% 22%) 0%, hsl(217 91% 15%) 50%, hsl(210 50% 20%) 100%);
  --gradient-accent: linear-gradient(135deg, hsl(174 62% 40%) 0%, hsl(174 72% 35%) 100%);
  --shadow-soft: 0 4px 20px -2px hsl(217 91% 22% / .08);
  --shadow-card: 0 10px 40px -10px hsl(217 91% 22% / .12);
  --shadow-elevated: 0 20px 60px -15px hsl(217 91% 22% / .18);
}
* {
  border-color: hsl(var(--border));
}
body.mf-body {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: Inter, sans-serif;
}
.mf-body h1, .mf-body h2, .mf-body h3, .mf-body h4, .mf-body h5, .mf-body h6 {
  font-family: Plus Jakarta Sans, sans-serif;
}
.text-gradient {
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-image: var(--gradient-accent);
}
.bg-hero-gradient { background: var(--gradient-hero); }
.bg-accent-gradient { background: var(--gradient-accent); }
.mf-hero-pattern {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
/* Sideways slide-ins must never cause horizontal scrolling */
.mf-page { overflow-x: clip; }

/* Header: fixed, slides down on load. Shared store pages get a spacer of its height. */
.mf-header { animation: mf-header-in .6s cubic-bezier(0, 0, .58, 1) both; }
@keyframes mf-header-in { from { transform: translateY(-100px); opacity: 0; } to { transform: none; opacity: 1; } }
.mf-header-spacer { height: 73px; }
.mf-dropdown { transform-origin: top left; }
.mf-dropdown.is-open { animation: mf-pop-in .15s ease-out; }
@keyframes mf-pop-in { from { opacity: 0; transform: translateY(-.5rem) scale(.95); } to { opacity: 1; transform: none; } }
.mf-dropdown-item:hover, .mf-dropdown-item:focus-visible {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}
.mf-mobile-menu { overflow: hidden; transition: height .3s ease, opacity .3s ease; }

/* Floating badge on the hero card */
.mf-float { animation: mf-float 6s ease-in-out infinite; }
@keyframes mf-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Buttons (same sizes and variants as the reference design) */
.mf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  white-space: nowrap;
  border-radius: var(--radius);
  font-size: .875rem;
  line-height: 1.25rem;
  font-weight: 600;
  transition: all .3s cubic-bezier(.4, 0, .2, 1);
  cursor: pointer;
}
.mf-btn svg, .mf-btn i { width: 1rem !important; height: 1rem !important; flex-shrink: 0; pointer-events: none; }
.mf-btn i { font-size: .9rem !important; }
.mf-btn:focus-visible { outline: 2px solid hsl(var(--ring)); outline-offset: 2px; }
.mf-btn:disabled { pointer-events: none; opacity: .5; }
.mf-btn-xl { height: 3.5rem; border-radius: .75rem; padding: 1rem 2.5rem; font-size: 1.125rem; line-height: 1.75rem; }
.mf-btn-lg { padding: .75rem 2rem; font-size: 1rem; line-height: 1.5rem; }
.mf-btn-hero { background: var(--gradient-accent); color: hsl(var(--accent-foreground)); box-shadow: var(--shadow-card); }
.mf-btn-hero:hover { box-shadow: var(--shadow-elevated); transform: scale(1.02); }
.mf-btn-hero-outline { border: 1px solid hsl(var(--primary-foreground) / .2); background: hsl(var(--primary-foreground) / .15); color: hsl(var(--primary-foreground)); }
.mf-btn-hero-outline:hover { background: hsl(var(--primary-foreground) / .25); }
.mf-btn-primary { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); box-shadow: var(--shadow-soft); }
.mf-btn-primary:hover { background: hsl(var(--primary) / .9); box-shadow: var(--shadow-card); }
.mf-btn-secondary { background: hsl(var(--secondary)); color: hsl(var(--secondary-foreground)); box-shadow: var(--shadow-soft); }
.mf-btn-secondary:hover { background: hsl(var(--secondary) / .8); }
.mf-btn-outline-light { border: 2px solid hsl(var(--primary-foreground) / .3); background: transparent; color: hsl(var(--primary-foreground)); }
.mf-btn-outline-light:hover { background: hsl(var(--primary-foreground) / .1); }
.mf-btn-link { width: fit-content; padding: 0; height: auto; color: hsl(var(--accent)); }
.mf-btn-link:hover { color: hsl(var(--accent) / .8); }

/* Font Awesome icons chosen in Theme Customize, sized like the Lucide icons they replace */
.mf-fa { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; line-height: 1; }

/* Rich text from the admin editor */
.mf-rich > :not(:first-child) { margin-top: 1rem; }
.mf-rich strong, .mf-rich b { font-weight: 600; }
.mf-rich a { color: hsl(var(--accent)); text-decoration: underline; text-underline-offset: 4px; }
.mf-rich ul { list-style: disc; padding-left: 1.5rem; }
.mf-rich ol { list-style: decimal; padding-left: 1.5rem; }

/* Ordinary CMS pages (Privacy Policy, Terms, HIPAA, ...): Tailwind resets headings and lists */
.mf-cms > * + * { margin-top: 1rem; }
.mf-cms > h2:not(:first-child), .mf-cms > section + section { margin-top: 1.5rem; }
.mf-cms h2 { font-size: 1.5rem; line-height: 2rem; font-weight: 600; color: hsl(var(--foreground)); }
.mf-cms h3 { font-size: 1.25rem; line-height: 1.75rem; font-weight: 600; color: hsl(var(--foreground)); }
.mf-cms h4, .mf-cms h5, .mf-cms h6 { font-weight: 600; color: hsl(var(--foreground)); }
.mf-cms h1 { font-size: 1.875rem; line-height: 2.25rem; font-weight: 700; color: hsl(var(--foreground)); }
.mf-cms ul { list-style: disc; padding-left: 1.5rem; }
.mf-cms ol { list-style: decimal; padding-left: 1.5rem; }
.mf-cms li + li { margin-top: .5rem; }
.mf-cms a { color: hsl(var(--accent)); }
.mf-cms a:hover { text-decoration: underline; }
.mf-cms img { max-width: 100%; height: auto; border-radius: .75rem; }
.mf-cms table { width: 100%; border-collapse: collapse; }
.mf-cms th, .mf-cms td { border: 1px solid hsl(var(--border)); padding: .5rem .75rem; text-align: left; }

/* Consultation form */
.mf-input { color: hsl(var(--foreground)); }
.mf-input:focus-visible, .mf-native-select:focus { box-shadow: 0 0 0 2px #fff, 0 0 0 4px hsl(var(--ring)); outline: none; }
select.mf-native-select {
  padding: .5rem 2.25rem .5rem .75rem !important;
  color: hsl(var(--foreground));
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230f172a' stroke-opacity='.5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-size: 16px;
  background-position: calc(100% - .75rem) 50%;
}
.mf-select { position: relative; }
.mf-select-trigger {
  display: flex; height: 2.5rem; width: 100%; align-items: center; justify-content: space-between;
  border-radius: calc(var(--radius) - 2px); border: 1px solid hsl(var(--input)); background: hsl(var(--background));
  padding: .5rem .75rem; font-size: .875rem; line-height: 1.25rem; color: hsl(var(--foreground)); text-align: left;
}
.mf-select-trigger > span { overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; }
.mf-select-trigger svg { width: 1rem; height: 1rem; opacity: .5; flex-shrink: 0; }
.mf-select-trigger:focus { outline: none; box-shadow: 0 0 0 2px #fff, 0 0 0 4px hsl(var(--ring)); }
.mf-select-content {
  position: absolute; left: 0; right: 0; top: calc(100% + .25rem); z-index: 50; max-height: 24rem; overflow-y: auto;
  border-radius: calc(var(--radius) - 2px); border: 1px solid hsl(var(--border)); background: hsl(var(--popover));
  color: hsl(var(--popover-foreground)); box-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);
  padding: .25rem; animation: mf-pop-in .15s ease-out;
}
.mf-select-option {
  position: relative; display: flex; width: 100%; cursor: default; user-select: none; align-items: center;
  border-radius: calc(var(--radius) - 4px); padding: .375rem .5rem .375rem 2rem; font-size: .875rem; line-height: 1.25rem;
  outline: none; text-align: left;
}
.mf-select-option.is-active { background: hsl(var(--accent)); color: hsl(var(--accent-foreground)); }
.mf-select-option svg { position: absolute; left: .5rem; width: 1rem; height: 1rem; }
[data-mf-field].has-error label { color: hsl(var(--destructive)); }
.mf-field-error { font-size: .875rem; line-height: 1.25rem; font-weight: 500; color: hsl(var(--destructive)); }

/* FAQ page */
.mf-faq-tab { background: hsl(var(--muted)); color: hsl(var(--muted-foreground)); }
.mf-faq-tab:hover { color: hsl(var(--foreground)); }
.mf-faq-tab.is-active { background: hsl(var(--accent)); color: hsl(var(--accent-foreground)); }
[data-faq-item].is-open .mf-faq-chevron { transform: rotate(180deg); }

/* ------------------------------------------------------------------
   Scroll animations (assets/js/reveal.js): each [data-mf] element fades
   in from its start offset (--mf-x / --mf-y / --mf-s) once, like the
   reference site's motion. The layout adds "mf-reveal" to <html> only
   while reveal.js is expected to run.
------------------------------------------------------------------- */
.mf-reveal [data-mf]:not(.mf-in) {
  opacity: 0;
  transform: translate3d(var(--mf-x, 0px), var(--mf-y, 0px), 0) scale(var(--mf-s, 1));
}
.mf-reveal [data-mf].mf-in:not(.mf-done) {
  transition: opacity var(--mf-dur, .6s) cubic-bezier(.42, 0, .58, 1) var(--mf-delay, 0s),
              transform var(--mf-dur, .6s) cubic-bezier(.42, 0, .58, 1) var(--mf-delay, 0s);
}
@media (prefers-reduced-motion: reduce) {
  .mf-reveal [data-mf]:not(.mf-in) { opacity: 1; transform: none; }
  .mf-header, .mf-float { animation: none; }
}
