/* === This screens.css file is located in theme folder /assests/css/  === */

/* === Section: General Media Queries for Layout and Display === */
@media only screen and (min-width: 768px) {
  .tablet {
    display: block;
  }
  .container {
    margin: 0 auto;
    padding: 28px 32px 48px;
  }
  .container.content-block,
  .container .content-block {
    padding-right: 35%;
  }
  .container .narrow {
    margin: 0 auto;
    width: 816px;
  }
  ul.inline {
    display: flex;
    gap: 18px;
  }
  ul.reset {
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .intro-content {
    width: 320px;
  }
  .team-posts .cards {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 24px !important;
  }
}

@media only screen and (min-width: 1280px) {
  .desktop {
    display: block;
  }
  .mobile {
    display: none;
  }
  .container {
    width: 1240px;
    padding: 70px 0 140px;
  }
  .container.narrow {
    width: 816px;
  }
  .swiper-container {
    margin: 0 auto;
    width: 1240px;
  }
  .inline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
  }
  .inline-header h2 {
    font-size: 28px;
  }
 .team-page .container {
    padding-top: 10px;
  }
  .team-filter {
    margin-bottom: 28px;
  }
  .team-posts .team-group {
    margin-bottom: 80px;
  }
 .team-posts .cards {
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: 32px !important;
  }
 /* .team-posts .profile {
    font-size: 18px !important;
    line-height: 24px !important;
    height: 132px !important;
    padding: 20px 24px 24px !important;
  }
  .team-posts .profile a {
    font-size: 18px !important;
  }
  .team-posts .profile .top .who {
    width: 100% !important;
  }
  .team-posts .profile .top .more {
    display: none !important;
  }
  .team-posts .profile .bottom {
    transition: opacity .4s ease .1s !important;
  }
}
*/
/* === Section: Background Images === */
@media only screen and (min-width: 1280px) {
  .bg-daisy-img {
    background-image: url("../img/bg-daisy.svg");
    background-repeat: no-repeat;
  }
  .bg-daisy-img.btm-lft {
    background-size: 1240px;
    background-position: left -84px bottom -650px;
  }
  .bg-daisy-img.top-rht {
    background-size: 1240px;
    background-position: right -500px top -555px;
  }
  .bg-circle-img {
    background-image: url("../img/bg-circle.svg");
    background-repeat: no-repeat;
  }
  .bg-circle-img.btm-lft {
    background-size: 1240px;
    background-position: left -84px bottom -650px;
  }
  .bg-circle-img.top-rht {
    background-size: 1240px;
    background-position: right -246px top -555px;
  }
}

/* === Section: Swiper Banners Typography === */
@media only screen and (min-width: 768px) {
  .swiper-banners h1 {
    font-size: 28px;
  }
  .swiper-banners p {
    font-size: 18px !important;
  }
}

/* === Section: Global Typography === */
@media only screen and (min-width: 1280px) {
  body,
  p,
  a,
  li {
    font-size: 18px;
    line-height: 24px;
  }
  h1,
  .h1 {
    font-size: 48px;
    line-height: 56px;
  }
  h2,
  .h2 {
    font-size: 32px;
    line-height: 40px;
  }
  h3,
  .h3 {
    font-size: 28px;
    line-height: 36px;
  }
  h4,
  .h4 {
    font-size: 22px;
    line-height: 28px;
  }
  .subheading {
    font-size: 22px;
    line-height: 28px;
  }
  .normal {
    font-size: 18px !important;
    line-height: 24px !important;
  }
  .content-block p:first-child {
    margin-bottom: 0;
    font-size: 22px;
    line-height: 28px;
  }
}

/* === Section: Menu Styles === */
@media only screen and (min-width: 1280px) {
  :root {
    --container-max-width: 1240px;
    --menu-height: 5rem;
    --menu-font-size: 1.1rem;
    --submenu-font-size: 1.2rem;
    --gutter-x: 0.125rem;
    --submenu-padding: 0.75rem 1rem;
  }
  .menu-desktop a {
    font-size: var(--menu-font-size);
  }
  .menu-desktop .sub-menu a {
    font-size: var(--submenu-font-size);
  }
  .menu-desktop #primary-menu > li {
    padding: 0 var(--gutter-x) 0 0;
    width: auto;
    white-space: nowrap;
  }
  .menu-desktop #primary-menu > li > a {
    padding: 0 var(--gutter-x) 0 0;
    width: auto;
    white-space: nowrap;
  }
  .menu-desktop .search-icon {
    display: block !important;
    padding-left: 2px;
    line-height: var(--menu-height);
  }
  .menu-desktop .search-icon img {
    display: block !important;
    width: 20px !important;
    height: 20px !important;
    object-fit: contain;
  }
}

/* === Section: Button Styles === */
@media only screen and (min-width: 1280px) {
  .btn,
  button.btn {
    font-size: 16px;
    padding: 12px 16px !important;
    border-radius: 8px;
  }
  .btn-outline.btn {
    padding: 10px 14px !important;
  }
  .btn.btn-blue {
    background-color: #005f87 !important;
    color: #fff !important;
    border: 1px solid #005f87 !important;
  }
  .btn.btn-blue:hover {
    background-color: #004a6b !important;
    border-color: #004a6b !important;
  }
  .btn.btn-lavender {
    background-color: #6b4e9a !important;
    color: #fff !important;
    border: 1px solid #6b4e9a !important;
  }
  .btn.btn-lavender:hover {
    background-color: #563e7a !important;
    border-color: #563e7a !important;
  }
}

/* === Section: Swiper Banners and Banners === */
@media only screen and (min-width: 1280px) {
  .swiper-banners,
  .banner {
    position: relative;
    width: 100% !important;
    height: 800px;
    overflow: hidden;
    border-bottom-width: 16px;
  }
  .swiper-banners .container,
  .banner .container {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 100%;
    height: 800px;
    display: flex;
    align-items: center;
  }
  .swiper-banners .container .banner-wrapper,
  .banner .container .banner-wrapper {
    width: 1240px;
    margin: 0 auto !important;
  }
  .swiper-banners .container .banner-wrapper .content,
  .banner .container .banner-wrapper .content {
    width: 640px;
  }
  .swiper-banners .container .swiper-nav-wrapper,
  .banner .container .swiper-nav-wrapper {
    max-width: 420px;
    margin-left: 0;
  }
  .swiper-banners .container .content .banner-header,
  .banner .container .content .banner-header {
    font-size: 36px;
  }
  .swiper-banners .container .content .banner-content,
  .banner .container .content .banner-content {
    font-size: 22px;
  }
  .swiper-banners .img-container,
  .banner .img-container {
    height: 100% !important;
    width: 100% !important;
    display: flex;
    justify-content: right;
  }
  .swiper-banners .swiper-slide picture,
  .banner .swiper-slide picture {
    height: 800px;
    width: 46%;
  }
  .swiper-banners .swiper-slide picture img,
  .banner .swiper-slide picture img {
    object-fit: cover;
    object-position: left;
    -webkit-mask-image: url("../img/mask/daisy-lg.svg");
    mask-image: url("../img/mask/daisy-lg.svg");
    mask-position: left;
  }
  .swiper-banners .content p {
    font-size: 22px !important;
  }
  .banner {
    height: 640px;
  }
  .banner.has-logo {
    align-items: end;
  }
  .banner .container {
    height: 640px;
  }
  .banner .container .banner-wrapper {
    display: flex;
    justify-content: end;
  }
  .banner .container .banner-wrapper .content {
    width: 520px;
  }
  .banner .container .banner-wrapper .content .banner-logo {
    margin-top: 65px;
    width: 206px;
    height: auto;
  }
  .banner .img-container {
    justify-content: left;
  }
  .banner .swiper-slide picture {
    height: 640px;
    width: 48%;
  }
  .banner .swiper-slide picture img {
    object-position: right;
    -webkit-mask-image: url("../img/mask/circle-lg.svg");
    mask-image: url("../img/mask/circle-lg.svg");
    mask-position: right;
  }
  .banner-brand,
  .product-banner {
    border-bottom: 12px solid #f9ba13;
    height: 380px;
    align-items: center;
    background: #132c3f url("../img/mask/daisy-white-lg.svg") no-repeat right center;
    background-size: 720px;
  }
  .banner-brand .container,
  .product-banner .container {
    padding: 0;
  }
  .banner-brand .container h1,
  .product-banner .container h1 {
    font-size: 36px;
  }
  .banner-brand .container .content img,
  .product-banner .container .content img {
    height: 47px;
  }
  .product-banner .container {
    background: url("../img/logo/surgical-reversed.svg") no-repeat right center;
    background-size: 206px 47px;
  }
  .recovery-page .product-banner .container {
    background: url("../img/logo/recovery-reversed.svg") no-repeat right center;
    background-size: 206px 47px;
  }
}

/* === Section: Swiper General Styles === */
@media only screen and (min-width: 768px) {
  .swiper .swiper-nav-wrapper {
    padding-right: 0;
    padding-left: 0;
  }
  .swiper .swiper-slide {
    width: 30%;
  }
  .swiper-suppliers .swiper-nav-wrapper {
    padding-top: 34px;
  }
  .swiper-events .swiper-slide {
    width: 40%;
  }
}

@media only screen and (min-width: 1280px) {
  .swiper {
    padding: 0;
  }
  .swiper-btn {
    width: 48px;
    height: 48px;
    background-size: 48px !important;
  }
  .swiper-play {
    background-size: 48px !important;
  }
  .bg-stone .swiper-play {
    background-size: 50px !important;
  }
  .event-posts-index .swiper-nav-wrapper .swiper-nav {
    padding-top: 26px;
  }
  .event-posts-index .swiper-nav-wrapper .swiper-btn {
    background-size: 34px !important;
    width: 38px !important;
    height: 38px !important;
  }
}

/* === Section: Swiper Suppliers and Logo Block === */
@media only screen and (min-width: 768px) {
  .swiper-suppliers,
  .logo-block {
    padding: 8px 32px 48px !important;
  }
  .swiper-suppliers .swiper-slide,
  .logo-block .swiper-slide {
    border-radius: 16px;
    width: 96px;
    height: 96px;
  }
  .swiper-suppliers .swiper-slide img,
  .logo-block .swiper-slide img {
    width: 78px;
  }
}

@media only screen and (min-width: 1280px) {
  .swiper-suppliers {
    padding: 8px 32px 122px !important;
  }
  .swiper-suppliers .swiper-wrapper {
    margin: 50px 0 30px;
  }
  .swiper-suppliers .swiper-slide {
    width: 180px;
    height: 180px;
  }
  .swiper-suppliers .swiper-slide img {
    min-width: 130px;
  }
  .swiper-nav-wrapper {
    width: 1240px;
    margin: 0 auto;
    padding: 0 32px;
  }
  .logo-block .swiper-nav-wrapper {
    margin-top: 68px;
  }
  .logo-block .swiper-slide {
    border-radius: 16px;
    width: 180px;
    height: 180px;
  }
  .logo-block .swiper-slide img {
    min-width: 130px;
  }
}

/* === Section: Content Containers and Blocks === */
@media only screen and (min-width: 1280px) {
  .content-container {
    padding-bottom: 25px;
  }
  .content-block {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding-right: 0 !important;
  }
  .content-block h2 {
    width: 360px;
    margin-top: 16px;
  }
  .content-block .text {
    width: 610px;
  }
  .intro-content {
    display: grid;
    grid-template-columns: 50% 50%;
    width: 100%;
    margin-bottom: 55px;
  }
  .intro-content .content {
    order: 1;
  }
  .intro-content .content h2,
  .intro-content .content p {
    width: 375px;
  }
  .intro-content img {
    order: 2;
    justify-self: right;
    width: 285px;
    margin-top: 35px;
  }
  .home .products .intro-content h2,
  .home .products .intro-content p {
    width: 80%;
  }
  .about .intro-content .content h2,
  .about .intro-content .content p.subheading {
    margin-bottom: 28px !important;
  }
  .t7.content-container .narrow {
    margin-top: 64px;
  }
}

/* === Section: Post Images and Related News === */
@media only screen and (min-width: 768px) {
  .post-images {
    display: flex;
    flex-direction: row !important;
  }
  .post-images img {
    width: 100%;
    height: auto;
  }
  .post-image {
    text-align: center;
  }
  .post-image img {
    width: 50%;
  }
  .related-news .card:first-child {
    margin-left: 0;
  }
  .related-news .card:last-child {
    margin-right: 0;
  }
  .related-news .swiper-slide {
    width: 40%;
  }
}

/* === Section: News Posts and Related Posts === */
@media only screen and (min-width: 1280px) {
  .post-banner {
    border-bottom-width: 16px;
  }
  .post-banner .container {
    padding: 130px 16px 42px;
  }
  .post-banner .container h1 {
    font-size: 36px;
    line-height: 48px;
    width: 70%;
  }
  .post-banner .container p {
    font-size: 14px;
  }
  .news-page .blocks {
    padding: 48px 0 97px;
  }
  .news-page .blocks strong:first-child {
    font-size: 22px;
    display: block;
    padding-bottom: 16px;
  }
  .news-page .blocks img {
    border-radius: 16px;
  }
  .news-page .blocks .post-images {
    gap: 32px;
    padding: 44px 0;
  }
  .news-page .blocks .post-image {
    padding: 44px 16px;
  }
  .news-page .blocks .post-image img {
    width: 100%;
  }
  .news-page .tp-bdr-stone {
    border-top: 2px solid #132c3f;
    margin-top: 30px;
  }
  .news-page .news-posts {
    padding-bottom: 125px;
  }
  .related-posts .inline-header {
    border-top: 2px solid #132c3f;
  }
}

/* === Section: Event Banners === */
@media only screen and (min-width: 768px) {
  .banner-header.mobile {
    display: none;
  }
  .event-banner .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .event-banner .container .banner-content {
    order: 1;
  }
}

@media only screen and (min-width: 1280px) {
  .events-index .event-posts {
    padding-bottom: 0 !important;
  }
  .events-index .event-posts .swiper-wrapper {
    padding-bottom: 65px;
  }
  .events-index .event-posts h2 {
    margin-bottom: 45px;
  }
  .events-index .event-posts:first-child h2 {
    padding-top: 0;
  }
  .intro-events .content h2 {
    width: 420px;
    margin-bottom: 20px;
    font-size: 32px;
  }
  .intro-events .content p {
    width: 680px;
    font-size: 22px;
  }
  .sub-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
  }
  .sub-heading h3 {
    color: #fff;
    margin: 0;
    font-size: 22px;
  }
  .event-posts {
    padding-bottom: 64px;
  }
  .event-banner .h1 {
    font-size: 36px;
    margin-bottom: 20px;
  }
  .event-banner .container {
    grid-template-columns: 1fr 560px;
    gap: 106px;
    padding-top: 60px;
    padding-bottom: 24px;
  }
  .event-banner .container .banner-content .more {
    display: flex;
    justify-content: space-between;
    padding-top: 34px;
    margin-top: 44px;
  }
  .event-banner .container .banner-content .more .btn {
    display: inline-block;
  }
  .event-banner .container .banner-content .more .logo {
    margin: 0;
  }
  .event-banner #count-down {
    top: 240px;
  }
  .event-banner #count-down span {
    font-size: 14px;
  }
  .event-banner #count-down div {
    padding: 10px 7px;
    width: 74px;
    height: 74px;
  }
  .event-banner #count-down div span:first-child {
    font-size: 32px;
    margin-bottom: 4px;
  }
  .event-banner .venue-wrapper {
    margin: 69px 32px 32px;
  }
  .event-banner .venue-wrapper .venue-details {
    row-gap: 32px;
    font-size: 18px;
    line-height: 24px;
    margin-left: 0;
    margin-right: 0;
  }
  .event-banner .map-container {
    margin: 32px 0 16px;
    border-radius: 8px;
    overflow: auto;
  }
  .event-banner .map-container-2 {
    height: 263px;
  }
  .event-register {
    display: flex;
    margin-top: -330px;
  }
  .event-register .event-form {
    width: 620px;
    padding: 0 64px 16px 40px;
  }
  .event-register .event-form h2 {
    font-size: 22px;
  }
  .event-page .half-bg {
    padding-bottom: 60px;
  }
  .related-events {
    padding-top: 36px;
  }
  .related-events .swiper {
    padding: 0 0 128px 0;
    width: 1240px;
  }
  .related-events .container {
    padding: 0;
  }
  .related-events .inline-header {
    border: none;
  }
  .container.register {
    padding-bottom: 38px;
  }
  .event-page .related-events {
    padding-top: 0;
  }
  .event-page .related-events .inline-header {
    margin-bottom: 48px;
  }
  .event-page .related-events h2 {
    margin: 0;
  }
}

/* === Section: Filters === */
@media only screen and (min-width: 1280px) {
  .filter {
    gap: 8px;
    font-size: 20px;
  }
  .filter .label {
    padding: 16px;
  }
  .filter .options {
    width: 286px;
  }
  .filter .options.open {
    top: 86px;
  }
  .filter .options li a {
    padding: 18px 16px;
  }
  .filter .options label {
    font-size: 18px !important;
  }
  .filter-options-header {
    font-size: 18px;
    background-size: 17px auto;
    padding: 16px 16px 12px !important;
    width: 286px;
  }
  .filter-options-header i {
    top: 12px;
  }
  .filter-options-header.selected i {
    top: 10px;
  }
  .surgical-page .filter-options-header,
  .recovery-page .filter-options-header,
  .clinical-page .filter-options-header {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    font-size: 22px;
  }
  .surgical-page .filter-options-header::after,
  .recovery-page .filter-options-header::after,
  .clinical-page .filter-options-header::after {
    background-image: none !important;
  }
}

/* === Section: Modal Forms and Headquarters === */
@media only screen and (min-width: 768px) {
  .surgical-page .modal-form .form {
    width: 620px;
  }
  .headquarters .mobile {
    display: none;
  }
  .headquarters .container {
    display: grid;
    grid-template-columns: 300px 1fr;
    padding: 64px 32px 0;
  }
  .headquarters .container .h2 {
    margin-top: 0;
  }
  .headquarters .container .map-container {
    order: 2;
  }
  .headquarters .container .map-container .map-container-2 {
    height: 480px !important;
  }
  .headquarters .container .address {
    order: 1;
    padding-top: 0;
  }
}

@media only screen and (min-width: 1280px) {
  .headquarters .container {
    grid-template-columns: auto 800px;
    padding: 90px 0 0;
  }
  .headquarters .container .map-container .map-container-2 {
    height: 480px !important;
  }
  .headquarters .address .h2 {
    font-size: 28px !important;
    line-height: 48px;
  }
  .headquarters .address p,
  .headquarters .address a {
    font-size: 22px !important;
    line-height: 30px;
  }
  .contact-cards {
    padding-top: 32px;
  }
  .contact-cards .container {
    padding-bottom: 70px;
  }
  .contact-page .product-complaint {
    padding-bottom: 20px;
  }
  .surgical-page .modal-form .form {
    width: 1024px;
  }
}

/* === Section: JO Details === */
@media only screen and (min-width: 768px) {
  .jo-details {
    grid-template-columns: 1fr 1fr 1fr;
    row-gap: 0;
    column-gap: 24px;
  }
  .jo-details .page-links ul {
    display: unset;
    text-align: right;
  }
  .jo-details .page-links li::after {
    content: "";
    margin-left: 0;
  }
}

/* === Section: Footer === */
@media only screen and (min-width: 1280px) {
  footer {
    border-top-width: 18px;
    line-height: 24px;
  }
  .logo-images {
    margin-bottom: 76px;
    align-items: center;
  }
  .logo-images .jo-logo {
    height: 59px;
    width: 286px;
  }
  .logo-images .accreditations img {
    width: auto;
    height: 80px;
  }
  .logo-images ul {
    gap: 18px;
  }
}

/* === Section: Forms === */
@media only screen and (min-width: 768px) {
  form .group {
    display: flex;
    gap: 21px;
  }
  form .submit {
    justify-content: space-between;
  }
}

@media only screen and (min-width: 1280px) {
  .form {
    display: grid;
    grid-template-columns: 50% 50%;
  }
  .form .form-wrapper {
    margin-right: 48px;
    margin-left: 34px;
  }
  .form .image picture {
    position: relative;
    height: 100%;
    overflow: hidden;
  }
  .form .image picture img {
    object-fit: cover;
    width: 100%;
    height: 100%;
  }
}

/* === Section: Modals and Iframes === */
@media only screen and (min-width: 768px) {
  .modal iframe {
    width: 640px;
    height: 320px;
  }
}

@media only screen and (min-width: 1280px) {
  .modal iframe {
    width: 960px;
    height: 480px;
  }
}

/* === Section: Breadcrumbs === */
@media only screen and (min-width: 768px) {
  .breadcrumbs {
    font-size: 14px !important;
  }
  .breadcrumbs a {
    font-size: 14px !important;
  }
  .breadcrumbs a,
  .breadcrumbs span {
    font-family: "Nunito-Bold", Nunito-fallback, sans-serif;
  }
}

@media only screen and (min-width: 1280px) {
  .breadcrumbs {
    font-size: 14px !important;
  }
  .breadcrumbs a {
    font-size: 14px !important;
    font-family: "Nunito-Bold", Nunito-fallback, sans-serif;
  }
}

@media only screen and (min-width: 1280px) {
  .search p {
    font-size: 22px;
  }
  .search-form {
    margin: 90px 50px 0;
  }
  .search-form input {
    padding: 24px;
    font-size: 18px;
  }
  .search-form .search-field {
    background: #fff url("../img/search-dark.svg") no-repeat left 18px center;
    background-size: 32px;
    padding-left: 62px;
  }
  .search-banner {
    padding: 152px 0 96px;
    background-image: url("../img/bg-daisy-slate.svg");
    background-repeat: no-repeat;
    background-position: left 60px center;
  }
  .search-banner .container {
    margin-top: 0;
  }
  .search-results .item {
    margin-bottom: 44px;
    padding-bottom: 30px;
  }
  .search-results .item h2 {
    margin-top: 12px;
  }
  .search-results .item {
    margin-bottom: 44px;
  }
  .search-results .post-type {
    font-size: 14px;
  }
  .search-results .taxonomy-products {
    margin: 20px 0 28px;
  }
  .search-results .event-posts .card {
    margin-top: 16px;
    width: 380px;
  }
}

@media only screen and (min-width: 1280px) {
  .search-page .menu-bar {
    background: transparent;
  }
  .search-results .container {
    width: 816px;
  }
  .search-banner {
    background-position: right -150px center;
  }
}

/* ————————————————————————————
   Product gallery: fluid aspect ratio
———————————————————————————— */
.product-gallery .swiper-slide .image {
  /* match your desired ratio; 560×360 ≈ 560/360 */
  aspect-ratio: 560 / 360;
  width: 100%;
  overflow: hidden;
}

.product-gallery .swiper-slide .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* ——————————————————————————————
   Single product: external shop button
—————————————————————————————— */
.external-shop-button {
  padding: 1.5rem 0;      /* space above & below */
  text-align: left;       /* left-align the button */
}

.external-shop-button .btn {
  /* inherits your .btn.btn-blue.read-more styling */
}


/* ——————————————————————————————
   Fixed-height logos
—————————————————————————————— */
.logo-wrapper.mobile .logo {
  height: 80px;
  width: auto;
}

@media (min-width: 768px) {
  .logo-wrapper.desktop .logo {
    height: 120px;
    width: auto;
  }
}



/* ——————————————————————————————  */
/* Recovery images: rounded corners, no border */
/* —————————————————————————————— */
@media only screen and (min-width: 768px) {
  .recovery-page .cards .card.recovery-card .image img {
    border: none !important;
  }
}
@media only screen and (max-width: 767px) {
  .recovery-page .cards .card.recovery-card .image img {
    border: none !important;
  }
}



/* =========================
   RELATED PRODUCTS — 3:2 images only (scoped, hardened)
   ========================= */
.container.related-products .cards.related-products-swiper .swiper-wrapper .swiper-slide.card.basic-card .image {
  position: relative;
  width: 100%;
  height: auto !important;       /* override any fixed height like 180px */
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.container.related-products .cards.related-products-swiper .swiper-wrapper .swiper-slide.card.basic-card .image img.product-card__img {
  display: block;
  width: 100%;
  height: 100% !important;       /* ensure it fills the box */
  object-fit: cover !important;  /* override any object-fit: fill */
}

/* Fallback when aspect-ratio unsupported */
@supports not (aspect-ratio: 3 / 2) {
  .container.related-products .cards.related-products-swiper .swiper-wrapper .swiper-slide.card.basic-card .image {
    padding-top: 66.6667%;
    height: 0 !important;
  }
  .container.related-products .cards.related-products-swiper .swiper-wrapper .swiper-slide.card.basic-card .image img.product-card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100% !important;
    object-fit: cover !important;
  }
}



/* Existing rule in screens.css - Updated to remove fixed height and fit image */
@media only screen and (min-width: 1280px) {
  .about-product .product-gallery {
    order: 2;
    border: 1px solid #f3f4f5;
    border-radius: 8px;
    width: 560px;
    height: auto !important; /* Removed 360px; auto allows natural expansion */
  }

  /* Add this to fit image without cropping */
  .about-product .product-gallery .image img.product-gallery__img {
    object-fit: contain !important; /* Fits full image, no crop */
    height: auto !important;
    width: 100% !important;
  }
}


/* === PRODUCT PAGES ONLY — lock gallery square and stop height bleed === */
body.surgical-page .about-product .product-gallery,
body.recovery-page .about-product .product-gallery {
  height: auto !important; /* ignore any inherited 100% heights */
}

/* Kill Swiper's fixed heights for THIS gallery only */
body.surgical-page .about-product .product-gallery .swiper,
body.surgical-page .about-product .product-gallery .swiper-wrapper,
body.surgical-page .about-product .product-gallery .swiper-slide,
body.recovery-page .about-product .product-gallery .swiper,
body.recovery-page .about-product .product-gallery .swiper-wrapper,
body.recovery-page .about-product .product-gallery .swiper-slide {
  height: auto !important;
}

/* Square image box, overriding the old 560/360 ratio */
body.surgical-page .about-product .product-gallery .swiper-slide .image,
body.recovery-page .about-product .product-gallery .swiper-slide .image {
  aspect-ratio: 1 / 1 !important;
  width: 100%;
  overflow: hidden;
}

/* Fit image inside the square without cropping */
body.surgical-page .about-product .product-gallery .swiper-slide .image img,
body.recovery-page .about-product .product-gallery .swiper-slide .image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

/* PRODUCT PAGES — make images fill the square (cropped edges) */
body.surgical-page .about-product .product-gallery .swiper-slide .image img,
body.recovery-page .about-product .product-gallery .swiper-slide .image img {
  object-fit: cover !important;
  object-position: center;
}


/* PRODUCT PAGES — fallback for browsers without aspect-ratio */
@supports not (aspect-ratio: 1 / 1) {
  body.surgical-page .about-product .product-gallery .swiper-slide .image,
  body.recovery-page .about-product .product-gallery .swiper-slide .image {
    position: relative;
  }
  body.surgical-page .about-product .product-gallery .swiper-slide .image::before,
  body.recovery-page .about-product .product-gallery .swiper-slide .image::before {
    content: "";
    display: block;
    padding-top: 100%; /* square spacer */
  }
  body.surgical-page .about-product .product-gallery .swiper-slide .image img,
  body.recovery-page .about-product .product-gallery .swiper-slide .image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
}

/* === PRODUCT PAGES ONLY — cap gallery square on desktop === */
@media (min-width: 1280px) {
  /* Narrow the whole gallery container on the two product templates */
  body.surgical-page .about-product .product-gallery,
  body.recovery-page .about-product .product-gallery {
    max-width: 560px;        /* adjust this if you ever want a bigger/smaller square */
    margin-left: auto;
    margin-right: auto;
  }

  /* Ensure the inner square doesn’t exceed the cap either */
  body.surgical-page .about-product .product-gallery .swiper-slide .image,
  body.recovery-page .about-product .product-gallery .swiper-slide .image {
    width: 100%;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
  }
}


/* === Desktop menu: Safari-stable 2-column grid (global override) === */
@media (min-width: 1280px) {
  .menu-desktop .menu-items { position: relative; } /* containing block for absolute submenu */

  .menu-desktop #primary-menu > li > ul.sub-menu-0 {
    /* Layer & anchor */
    position: absolute !important;
    top: 96px !important; /* directly under the bar */
    left: 0 !important;
    right: 0 !important;
    z-index: 2000;

    /* Layout: grid (replaces flex/columns) */
    display: grid !important;
    grid-template-columns: repeat(2, minmax(280px, 1fr)) !important;
    grid-auto-rows: minmax(44px, auto);
    gap: 32px !important;

    /* Interaction: no layout thrash */
    opacity: 0 !important;
    transform: translateY(-6px) !important;
    pointer-events: none !important;
    transition: opacity .35s ease, transform .35s ease !important;

    /* Kill height/visibility tug-of-war */
    max-height: none !important;
    visibility: visible !important;
    overflow: visible !important;

    /* Remove 1px hover seam that can drop :hover */
    margin-top: -1px !important;
    padding-top: 1px !important;

    /* WebKit paint stability */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: opacity, transform;
  }

  .menu-desktop #primary-menu > li:hover > ul.sub-menu-0,
  .menu-desktop #primary-menu > li:focus-within > ul.sub-menu-0 {
    opacity: 1 !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
  }

  /* Ensure no item can span across both columns */
  .menu-desktop #primary-menu > li > ul.sub-menu-0 > li {
    grid-column: auto !important;
    min-width: 0 !important;
    break-inside: auto !important;
  }
}

/* WebKit nudge to avoid first-frame flash */
@supports (-webkit-hyphens: none) {
  .menu-desktop #primary-menu > li > ul.sub-menu-0 { -webkit-transform: translateZ(0); }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .menu-desktop #primary-menu > li > ul.sub-menu-0 {
    transition: none !important;
    transform: none !important;
  }
}


/* === Desktop dropdown: compact item height (override) === */
@media (min-width: 1280px) {
  /* Tighten panel padding and row spacing */
  .menu-desktop #primary-menu > li > ul.sub-menu-0 {
    padding: 8px 20px !important;           /* around the whole panel */
    gap: 8px 32px !important;               /* row-gap, column-gap */
    grid-auto-rows: auto !important;        /* no forced 44px minimum */
  }

  /* Remove legacy padding on each LI */
  .menu-desktop #primary-menu > li > ul.sub-menu-0 > li {
    padding: 0 !important;
    margin: 0 !important;
    break-inside: auto !important;          /* keep our previous safety */
  }

  /* Give the clickable link a modest hit-area */
  .menu-desktop #primary-menu > li > ul.sub-menu-0 > li > a {
    display: block !important;
    padding: 10px 12px !important;          /* adjust to taste */
    line-height: 1.3 !important;
  }
}

/* === FLUENT FORMS – GLOBAL PATCHES (screens.css) ===================== */
/* Scope: any Fluent Form wrapper whose id starts with 'fluentform_' */

/* Remove theme pseudo-element on GDPR checkbox */
[id^="fluentform_"] input.ff-el-form-check-input.ff_gdpr_field::after,
[id^="fluentform_"] input[type="checkbox"][name="gdpr-agreement"]::after{
  content: none !important;           /* kill generated box */
  background: none !important;
  box-shadow: none !important;
  border: 0 !important;
  width: 0 !important;
  height: 0 !important;
  display: none !important;
}

/* Ensure native checkbox renders */
[id^="fluentform_"] input.ff-el-form-check-input.ff_gdpr_field,
[id^="fluentform_"] input[type="checkbox"][name="gdpr-agreement"]{
  -webkit-appearance: checkbox !important;
  appearance: checkbox !important;
  position: static !important;
  opacity: 1 !important;
  margin: 0 .5rem 0 0 !important;   /* spacing before label text */
  vertical-align: middle;
}

/* brand colour for all Fluent Forms checkboxes */
 [id^="fluentform_"] input[type="checkbox"]{ accent-color:#132C3F; } 

/* enlarge GDPR checkbox only */
[id^="fluentform_"] input[type="checkbox"][name="gdpr-agreement"]{
     transform: scale(1.35); !important;
     transform-origin: left center;
     margin-right: .65rem !important;
   } 

/* Restore native select arrow on Fluent Forms selects */
[id^="fluentform_"] select.ff-el-form-control{
  -webkit-appearance: menulist !important; /* Safari/Chrome */
  appearance: menulist !important;         /* show native arrow */
  background-image: initial !important;     /* undo any 'none' */
  background-repeat: no-repeat !important;
  padding-right: 2.25rem !important;        /* space for arrow */
}

/* ===== Konservativ (Recovery) single product – force lavender everywhere ===== */

/* Tabs */
.recovery-page .product-details .accordion{
  background: rgba(132, 98, 160, 0.25) !important; /* lavender 25% */
}
.recovery-page .product-details .accordion:hover,
.recovery-page .product-details .accordion.active,
.recovery-page .product-details .active{
  background: rgba(132, 98, 160, 0.75) !important; /* lavender 75% */
}

/* Tables inside tabs */
.recovery-page .product-details table tr{
  background-color: rgba(132, 98, 160, 0.25) !important;
}
.recovery-page .product-details table tbody tr{
  background-color: rgba(132, 98, 160, 0.10) !important;
}

/* Gallery pagination bullets */
.recovery-page .about-product .swiper-pagination-bullet-active{
  background-color: #8462a0 !important; /* match .btn-lavender */
}

/* Any blue buttons used on these pages (e.g., “Zum Shop”) */
.recovery-page .btn-blue{
  background-color: #8462a0 !important;
  border-color: #8462a0 !important;
  color: #fff !important;
}
.recovery-page .btn-blue:hover{
  background-color: #a389b8 !important;
  border-color: #a389b8 !important;
}

/* Light “blue-50” panels used in contact blocks etc. */
.recovery-page #main-content .bg-blue-50{
  background-color: rgba(132, 98, 160, 0.05) !important;
}

/* If any inline SVGs were injected with surgical blue, recolor them */
.recovery-page #main-content svg [fill="#005f87"],
.recovery-page #main-content svg [stroke="#005f87"]{
  fill: #8462a0 !important;
  stroke: #8462a0 !important;
}

/* === Desktop dropdown: match container width & stop at search icon === */
@media (min-width: 1280px) {
  .menu-desktop .menu-items { position: relative; }

  .menu-desktop #primary-menu > li > ul.sub-menu-0 {
    /* anchor stays under OPERATIV */
    left: 0 !important;

    /* stop stretching past the menu container */
    right: auto !important;
    width: var(--container-max-width, 1240px) !important;
    max-width: 100% !important;
    box-sizing: border-box !important; /* include panel padding in that width */
  }
}


/* Accessibility: clear keyboard focus + open on focus */
@media (min-width: 1280px) {
  .menu-desktop #primary-menu a:focus-visible {
    outline: 2px solid #f9ba13;   /* brand yellow */
    outline-offset: 2px;
    border-radius: 6px;
  }

  /* Ensure focus also opens the dropdown (works with our existing hover) */
  .menu-desktop #primary-menu > li:focus-within > ul.sub-menu-0 {
    opacity: 1 !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
  }
}

/* Utility for screen-reader-only text if you ever need it */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
