/* Global responsive shell width.
   On laptop it uses almost the full viewport; on wide desktop it stops growing. */
.site-shell,
body .site-shell,
body.single-product .site-shell,
body.archive .site-shell,
body.tax-product_cat .site-shell,
body.woocommerce-page .site-shell {
  width: min(calc(100% - 64px), 1280px) !important;
  max-width: 1280px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body {
  padding-top: 134px;
}

.site-header {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  left: 0 !important;
  z-index: 120 !important;
  width: 100% !important;
  max-width: 100vw !important;
}

body.admin-bar .site-header {
  top: 32px !important;
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px !important;
  }
}

@media (max-width: 1600px) {
  .site-shell,
  body .site-shell,
  body.single-product .site-shell,
  body.archive .site-shell,
  body.tax-product_cat .site-shell,
  body.woocommerce-page .site-shell {
    width: min(100%, calc(100% - 32px)) !important;
    max-width: none !important;
  }
}

@media (max-width: 1024px) {
  .site-shell,
  body .site-shell,
  body.single-product .site-shell,
  body.archive .site-shell,
  body.tax-product_cat .site-shell,
  body.woocommerce-page .site-shell {
    width: min(100%, calc(100% - 24px)) !important;
  }
}

@media (min-width: 1601px) {
  .product-detail,
  .hyp-category-page,
  .home-hero,
  .product-slider,
  .hypogeen-home-reviews,
  .product-content-sections,
  .ingredient-section,
  .hypogeen-choice-section,
  .product-reviews-section__inner,
  .product-faq-placeholder {
    max-width: 1280px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

.site-mobile-bottom-nav,
.product-mobile-cartbar {
  display: none;
}

@media (max-width: 767px) {
  html,
  body.home,
  body.home .site-main,
  body.single-product,
  body.single-product .site-main {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  .site-header {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    left: 0 !important;
    z-index: 120 !important;
    width: 100% !important;
    max-width: 100vw !important;
  }

  body.admin-bar .site-header {
    top: 46px !important;
  }

  .site-mobile-panel:not([hidden]) {
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  body {
    padding-top: 110px;
    padding-bottom: calc(78px + env(safe-area-inset-bottom));
  }

  body.single-product {
    padding-bottom: calc(148px + env(safe-area-inset-bottom));
  }

  body.woocommerce-checkout,
  body.woocommerce-account,
  body.woocommerce-cart {
    padding-bottom: 0;
  }

  body.single-product .site-main {
    padding-bottom: 0;
  }

  .woocommerce-checkout .site-main,
  .woocommerce-account .site-main,
  .woocommerce-cart .site-main {
    padding-bottom: 26px;
  }

  .site-shell,
  body .site-shell,
  body.single-product .site-shell,
  body.archive .site-shell,
  body.tax-product_cat .site-shell,
  body.woocommerce-page .site-shell {
    width: min(100%, calc(100% - 12px)) !important;
  }

  .home .home-hero {
    width: 100vw !important;
    max-width: none !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    border-radius: 0 !important;
    overflow: hidden !important;
  }

  .home .home-hero__media,
  .home .home-hero__slider,
  .home .home-hero__slide {
    border-radius: 0 !important;
  }

  .home .homepage-products,
  .home .homepage-products .skin-products,
  .home .homepage-products .skin-products__viewport,
  .home .homepage-products .skin-products__controls,
  .home .home-category-masonry,
  .home .homepage-story,
  .home .homepage-promises {
    max-width: 100%;
    overflow-x: hidden;
  }

  .site-header__icon-button--account,
  .site-header__icon-button--search {
    display: none;
  }

  .site-header__icon-button--cart {
    display: inline-flex;
  }

  .site-header__brand {
    justify-content: center;
  }

  .site-header__brand .custom-logo,
  .site-header__brand img.custom-logo {
    max-width: 160px;
    max-height: 38px;
    width: auto;
    height: auto;
  }

  .site-header__bar-inner {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center;
  }

  .site-header__left,
  .site-header__right {
    min-width: 44px;
  }

  .site-header__right {
    justify-content: flex-end;
  }

  .site-mobile-bottom-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    border-top: 1px solid #d8e2f0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(14px);
    box-shadow: 0 -8px 24px rgba(22, 46, 95, 0.08);
  }

  body.woocommerce-checkout .site-mobile-bottom-nav,
  body.woocommerce-account .site-mobile-bottom-nav,
  body.woocommerce-cart .site-mobile-bottom-nav,
  body.woocommerce-checkout .product-mobile-cartbar,
  body.woocommerce-account .product-mobile-cartbar,
  body.woocommerce-cart .product-mobile-cartbar {
    display: none !important;
  }

  .site-mobile-bottom-nav__item {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 54px;
    border: 0;
    background: transparent;
    color: #16325c;
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 700;
    text-align: center;
  }

  .site-mobile-bottom-nav__item svg {
    width: 22px;
    height: 22px;
  }

  .site-mobile-bottom-nav__count {
    position: absolute;
    top: 2px;
    right: calc(50% - 18px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: #04589f;
    color: #ffffff;
    font-size: 0.66rem;
    font-weight: 800;
  }

  .site-mobile-bottom-nav__count.is-empty {
    display: none;
  }

  .product-mobile-cartbar {
    position: fixed;
    right: 0;
    bottom: calc(72px + env(safe-area-inset-bottom));
    left: 0;
    z-index: 29;
    box-sizing: border-box;
    width: 100%;
    max-width: 100vw;
    padding: 8px 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid #dbe4ef;
    box-shadow: 0 -8px 22px rgba(22, 46, 95, 0.08);
    backdrop-filter: blur(12px);
  }

  .product-mobile-cartbar.is-visible {
    display: block !important;
  }

  .product-mobile-cartbar__summary {
    display: none;
  }

  .product-mobile-cartbar__row {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    width: 100%;
    max-width: calc(100vw - 24px);
    margin: 0 auto;
  }

  .product-mobile-cartbar__quantity {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) 32px;
    align-items: center;
    min-height: 46px;
    border: 1px solid #d8e2f0;
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
  }

  .product-mobile-cartbar__qty-button {
    width: 32px;
    height: 46px;
    border: 0;
    background: #eef5fd;
    color: #04589f;
    font-size: 1rem;
    font-weight: 800;
  }

  .product-mobile-cartbar__qty {
    width: 100%;
    height: 46px;
    border: 0;
    text-align: center;
    color: #16253d;
    font-size: 0.98rem;
    font-weight: 700;
    font-family: inherit;
    -moz-appearance: textfield;
  }

  .product-mobile-cartbar__qty::-webkit-outer-spin-button,
  .product-mobile-cartbar__qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
  }

  .product-mobile-cartbar__button {
    width: 100%;
    min-height: 46px;
    border: 0;
    border-radius: 10px;
    background: #04589f;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.01em;
  }

  .product-detail {
    gap: 20px;
    padding-top: 18px;
    padding-bottom: 32px;
  }

  .product-detail__breadcrumbs {
    margin-bottom: 10px;
  }

  .product-detail__title {
    font-size: 1.72rem;
    line-height: 1.05;
  }

  .product-detail__badges {
    gap: 6px;
    margin-top: 12px;
  }

  .product-detail__badge {
    min-height: 32px;
    padding: 0 12px;
    font-size: 0.8rem;
  }

  .product-detail__short {
    margin-top: 12px;
    font-size: 0.96rem;
    line-height: 1.38;
  }

  .product-detail__usp-list {
    gap: 8px;
    margin-top: 14px;
  }

  .product-detail__usp-list li {
    font-size: 0.94rem;
    line-height: 1.36;
  }

  .product-detail__price-row {
    margin-top: 16px;
  }

  .product-detail__price-current,
  .product-detail__price-current .amount {
    font-size: 1.7rem;
  }

  .product-detail__price-old,
  .product-detail__price-old .amount {
    font-size: 0.98rem;
  }

  .product-detail__discount {
    min-height: 30px;
    font-size: 0.8rem;
  }

  .product-detail__cart-form-wrap {
    margin-top: 14px;
  }

  .product-detail__cart-row {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 6px;
  }

  .product-detail__cart-form-wrap .quantity .qty,
  .product-detail__add-to-cart,
  .product-detail__cart-form-wrap .single_add_to_cart_button,
  .product-detail__cart-form-wrap .single_add_to_cart_button.button,
  .product-detail__cart-form-wrap button.single_add_to_cart_button {
    min-height: 48px;
  }

  .product-detail__trustpilot {
    margin-top: 12px;
    gap: 8px;
    font-size: 0.92rem;
  }

  .product-detail__trust-block {
    gap: 10px;
    margin-top: 14px;
    padding: 18px;
  }

  .product-detail__trust-item {
    font-size: 0.92rem;
    line-height: 1.34;
  }

  .product-detail__payments {
    margin-top: 16px;
  }

  .product-detail__payment-icons img {
    width: 32px !important;
    height: 32px !important;
    margin-right: 2px !important;
  }

  .product-content-sections {
    gap: 32px;
    padding: 0 0 40px;
  }

  .product-content-block {
    gap: 18px;
  }

  .product-content-block__copy {
    gap: 12px;
  }

  .product-content-block__title {
    font-size: 1.9rem;
    line-height: 1.08;
  }

  .product-content-block__text {
    font-size: 0.98rem;
    line-height: 1.58;
  }

  .product-content-block__text p {
    margin: 0 0 14px;
  }

  .product-content-usage__label {
    font-size: 0.88rem;
  }

  .product-content-usage__value {
    font-size: 0.95rem;
    line-height: 1.45;
  }

  .hypogeen-choice-section {
    margin-bottom: 48px;
    padding: 26px 18px 24px;
  }

  .hypogeen-choice-section__intro {
    margin-bottom: 24px;
  }

  .hypogeen-choice-section__title {
    font-size: 1.55rem;
    line-height: 1.12;
  }

  .hypogeen-choice-card__title {
    font-size: 1rem;
  }

  .hypogeen-choice-card__text {
    font-size: 0.92rem;
    line-height: 1.55;
  }
}

@media (min-width: 768px) {
  .single-product .product-mobile-cartbar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 88;
    box-sizing: border-box;
    width: 100%;
    padding: 14px 32px;
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid #dbe4ef;
    box-shadow: 0 -14px 34px rgba(22, 46, 95, 0.12);
    backdrop-filter: blur(14px);
  }

  .single-product .product-mobile-cartbar.is-visible {
    display: block !important;
  }

  .single-product .product-mobile-cartbar__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 560px);
    gap: 28px;
    align-items: center;
    width: min(calc(100% - 32px), 1280px);
    margin: 0 auto;
  }

  .single-product .product-mobile-cartbar__summary {
    display: grid;
    gap: 4px;
    min-width: 0;
  }

  .single-product .product-mobile-cartbar__title {
    overflow: hidden;
    color: #06244a;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .single-product .product-mobile-cartbar__price {
    color: #04589f;
    font-size: 0.98rem;
    font-weight: 800;
  }

  .single-product .product-mobile-cartbar__price del {
    margin-right: 6px;
    color: #8290a3;
    font-weight: 600;
  }

  .single-product .product-mobile-cartbar__form,
  .single-product .product-mobile-cartbar__row {
    width: 100%;
  }

  .single-product .product-mobile-cartbar__row {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
  }

  .single-product .product-mobile-cartbar__quantity {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    min-height: 50px;
    overflow: hidden;
    border: 1px solid #d8e2f0;
    border-radius: 12px;
    background: #ffffff;
  }

  .single-product .product-mobile-cartbar__qty-button {
    width: 36px;
    border: 0;
    background: #eef5fd;
    color: #04589f;
    font-size: 1rem;
    font-weight: 800;
  }

  .single-product .product-mobile-cartbar__qty {
    width: 100%;
    border: 0;
    text-align: center;
    color: #16253d;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 800;
    -moz-appearance: textfield;
  }

  .single-product .product-mobile-cartbar__qty::-webkit-outer-spin-button,
  .single-product .product-mobile-cartbar__qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
  }

  .single-product .product-mobile-cartbar__button {
    min-height: 50px;
    border: 0;
    border-radius: 12px;
    background: #04589f;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.98rem;
    font-weight: 800;
  }
}

@media (max-width: 767px) {
  html.hypogeen-product-overflow-lock,
  body.single-product {
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
    overscroll-behavior-x: none;
  }

  body.single-product {
    position: relative;
  }

  body.single-product .site-main,
  body.single-product .site-shell {
    width: min(100%, calc(100vw - 12px)) !important;
    max-width: calc(100vw - 12px) !important;
    min-width: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    overflow-x: clip !important;
  }

  body.single-product .site-header,
  body.single-product .site-header__promo,
  body.single-product .site-header__bar,
  body.single-product .site-mobile-bottom-nav,
  body.single-product .product-mobile-cartbar {
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    left: 0 !important;
    right: 0 !important;
  }

  body.single-product .product-detail,
  body.single-product .product-detail__media-column,
  body.single-product .product-detail__summary-column,
  body.single-product .product-gallery,
  body.single-product .product-gallery__stage,
  body.single-product .product-gallery__thumbs,
  body.single-product .product-detail__badges,
  body.single-product .product-detail__short,
  body.single-product .product-detail__cart-row,
  body.single-product .product-detail__trust-list,
  body.single-product .product-detail__quick-links-wrap,
  body.single-product .product-detail__quick-links,
  body.single-product .product-content-sections,
  body.single-product .product-content-block,
  body.single-product .product-content-block__copy,
  body.single-product .product-content-block__media,
  body.single-product .ingredient-section,
  body.single-product .hypogeen-choice-section,
  body.single-product .product-reviews-section,
  body.single-product .product-related-section {
    max-width: 100% !important;
    min-width: 0 !important;
  }

  body.single-product .product-detail,
  body.single-product .product-content-sections,
  body.single-product .ingredient-section,
  body.single-product .hypogeen-choice-section,
  body.single-product .product-reviews-section,
  body.single-product .product-related-section {
    overflow-x: clip !important;
  }


  body.single-product .product-gallery__stage {
    position: relative !important;
  }

  body.single-product .product-gallery__slide {
    position: relative;
    z-index: 1;
  }

  body.single-product .product-gallery__promo-label {
    position: absolute !important;
    top: 12px !important;
    left: 12px !important;
    z-index: 8 !important;
    display: inline-flex !important;
    max-width: calc(100% - 24px);
    pointer-events: none;
  }
  body.single-product .product-detail__title,
  body.single-product .product-detail__short,
  body.single-product .product-content-block__title,
  body.single-product .product-content-block__text {
    overflow-wrap: anywhere;
  }

  body.single-product .product-related-section__grid {
    max-width: 100% !important;
    overflow-x: auto !important;
  }
}
