/*
 Theme Name:   Dynamic Divi Child Theme
 Theme URI:    https://diviengine.com/
 Description:  Dynamic Divi Child Theme for APTEKA SANTE 2026
 Author:       Divi Engine
 Author URI:   https://diviengine.com/
 Template:     Divi
*/

/* Tab for profile page */

/* Аптека Санте — Global Header custom styles
   v1.1: desktop/tablet search + mobile search + cart presentation
*/

/* =========================================================
   1. Product search — Desktop and Tablet
   ========================================================= */

.as-product-search-module {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
}

.as-product-search-module .et_pb_code_inner {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
}

.as-product-search-module .as-product-search-form {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 96px !important;
  align-items: stretch !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 42px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.as-product-search-module .as-product-search-form,
.as-product-search-module .as-product-search-form * {
  box-sizing: border-box !important;
}

.as-product-search-module .as-product-search-field {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 42px !important;
  min-height: 42px !important;
  max-height: 42px !important;
  margin: 0 !important;
  padding: 0 14px !important;
  color: #5a5a5a !important;
  background: #ffffff !important;
  border: 1px solid #d9dee5 !important;
  border-right: 0 !important;
  border-radius: 10px 0 0 10px !important;
  font-family: Inter, Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: normal !important;
  outline: none !important;
  box-shadow: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

.as-product-search-module .as-product-search-field::placeholder {
  color: #7a7a7a !important;
  font-family: Inter, Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  opacity: 1 !important;
}

.as-product-search-module .as-product-search-field:focus {
  border-color: #4c78d3 !important;
  box-shadow: inset 0 0 0 1px #4c78d3 !important;
}

.as-product-search-module .as-product-search-button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 96px !important;
  min-width: 96px !important;
  max-width: 96px !important;
  height: 42px !important;
  min-height: 42px !important;
  max-height: 42px !important;
  margin: 0 !important;
  padding: 0 12px !important;
  color: #ffffff !important;
  background: #4c78d3 !important;
  border: 1px solid #4c78d3 !important;
  border-radius: 0 10px 10px 0 !important;
  font-family: Inter, Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  text-align: center !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  box-shadow: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

.as-product-search-module .as-product-search-button:hover {
  background: #3f67bb !important;
  border-color: #3f67bb !important;
}

.as-product-search-module .as-product-search-button:focus-visible {
  outline: 2px solid #2f3440 !important;
  outline-offset: 2px !important;
}

@media (min-width: 768px) and (max-width: 980px) {
  .as-product-search-module .as-product-search-form {
    grid-template-columns: minmax(0, 1fr) 90px !important;
    height: 40px !important;
  }

  .as-product-search-module .as-product-search-field,
  .as-product-search-module .as-product-search-button {
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
  }

  .as-product-search-module .as-product-search-button {
    width: 90px !important;
    min-width: 90px !important;
    max-width: 90px !important;
  }
}

  /* Search Results — align product-card actions */

  .as-product-search-results
  .as-search-products
  ul.products
  li.product {
      display: flex !important;
      flex-direction: column !important;
      height: auto !important;
  }

  .as-product-search-results
  .as-search-products
  ul.products
  li.product
  > a.woocommerce-LoopProduct-link {
      display: flex !important;
      flex-direction: column !important;
      flex: 1 1 auto !important;
  }

  .as-product-search-results
  .as-search-products
  ul.products
  li.product
  .as-product-card-actions {
      margin-top: auto !important;
  }

/* =========================================================
   2. Cart — Desktop and Tablet
   ========================================================= */

@media (min-width: 768px) {
  .as-account-actions .et_pb_menu__menu,
  .as-account-actions .et_mobile_nav_menu,
  .as-account-actions .et_pb_menu__search-button {
    display: none !important;
  }

  .as-account-actions .et_pb_menu__wrap {
    justify-content: flex-end !important;
  }

  .as-account-actions .et_pb_menu__cart-button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
  }
}

/* =========================================================
   3. Product search — Mobile
   ========================================================= */

@media (max-width: 767px) {
  .as-mobile-product-search-module,
  .as-mobile-product-search-module .et_pb_code_inner {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .as-mobile-product-search,
  .as-mobile-product-search * {
    box-sizing: border-box !important;
  }

  .as-mobile-product-search {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 90px !important;
    align-items: stretch !important;
    width: 100% !important;
    height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    font-family: Inter, Arial, sans-serif !important;
  }

  .as-mobile-product-search__field {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    margin: 0 !important;
    padding: 0 14px !important;
    color: #5a5a5a !important;
    background: #ffffff !important;
    border: 1px solid #d9dee5 !important;
    border-right: 0 !important;
    border-radius: 10px 0 0 10px !important;
    font-family: Inter, Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: normal !important;
    outline: none !important;
    box-shadow: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
  }

  .as-mobile-product-search__field::placeholder {
    color: #7a7a7a !important;
    font-family: Inter, Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    opacity: 1 !important;
  }

  .as-mobile-product-search__field:focus {
    border-color: #4c78d3 !important;
    box-shadow: inset 0 0 0 1px #4c78d3 !important;
  }

  .as-mobile-product-search__button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 90px !important;
    min-width: 90px !important;
    max-width: 90px !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    margin: 0 !important;
    padding: 0 12px !important;
    color: #ffffff !important;
    background: #4c78d3 !important;
    border: 1px solid #4c78d3 !important;
    border-radius: 0 10px 10px 0 !important;
    font-family: Inter, Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    box-shadow: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
  }

  .as-mobile-product-search__button:hover,
  .as-mobile-product-search__button:focus-visible {
    background: #3f67bb !important;
    border-color: #3f67bb !important;
  }
}

/* =========================================================
   4. Cart — Mobile
   ========================================================= */

@media (max-width: 767px) {
  .as-mobile-cart-menu {
    display: block !important;
    flex: 0 0 44px !important;
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    min-height: 44px !important;
    overflow: visible !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .as-mobile-cart-menu .et_pb_menu__menu,
  .as-mobile-cart-menu .et_mobile_nav_menu,
  .as-mobile-cart-menu .et_pb_menu__search-button {
    display: none !important;
  }

  .as-mobile-cart-menu .et_pb_menu_inner_container,
  .as-mobile-cart-menu .et_pb_menu__wrap {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    min-height: 44px !important;
    overflow: visible !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .as-mobile-cart-menu .et_pb_menu__cart-button,
  .as-mobile-cart-menu .et_pb_menu__icon.et_pb_menu__cart-button {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #4c78d3 !important;
    background: transparent !important;
    overflow: visible !important;
  }
}

@media (max-width: 360px) {
  .as-mobile-product-search {
    grid-template-columns: minmax(0, 1fr) 84px !important;
  }

  .as-mobile-product-search__button {
    width: 84px !important;
    min-width: 84px !important;
    max-width: 84px !important;
    padding-right: 10px !important;
    padding-left: 10px !important;
    font-size: 13px !important;
  }
}

/* =========================================================
   5. Mobile header alignment and readable hamburger dropdown
   ========================================================= */

@media (max-width: 767px) {
  /* Divi Row presets can retain a centered 90% width on Phone.
     Force the custom mobile header to use the available width. */
  .as-mobile-header-section {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    overflow: visible !important;
  }

  .as-mobile-header-section .et_pb_row,
  .as-mobile-header-section .et_pb_column,
  .as-mobile-header-section .et_pb_group {
    overflow: visible !important;
  }

  .as-mobile-header-section .et_pb_row {
    width: 100% !important;
    max-width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  /* Keep the logo anchored to the left edge of its flex area. */
  .as-mobile-header-section .et_pb_image {
    margin-right: auto !important;
    margin-left: 0 !important;
    text-align: left !important;
  }

  .as-mobile-header-section .et_pb_image .et_pb_image_wrap,
  .as-mobile-header-section .et_pb_image img {
    display: block !important;
    margin-right: auto !important;
    margin-left: 0 !important;
  }

  /* The dropdown is positioned from the hamburger module.
     -96px compensates for the Account and Cart icon areas to its right. */
  .as-mobile-nav-menu {
    position: relative !important;
    z-index: 10010 !important;
    overflow: visible !important;
  }

  .as-mobile-nav-menu .et_pb_menu_inner_container,
  .as-mobile-nav-menu .et_pb_menu__wrap,
  .as-mobile-nav-menu .et_mobile_nav_menu {
    overflow: visible !important;
  }

  .as-mobile-nav-menu .et_mobile_menu {
    position: absolute !important;
    top: 44px !important;
    right: -96px !important;
    left: auto !important;

    width: calc(100vw - 20px) !important;
    min-width: calc(100vw - 20px) !important;
    max-width: calc(100vw - 20px) !important;
    max-height: calc(100vh - 150px) !important;

    margin: 0 !important;
    padding: 8px 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;

    background: #ffffff !important;
    border-top: 3px solid #4c78d3 !important;
    border-radius: 0 0 10px 10px !important;
    box-shadow: 0 12px 30px rgba(47, 52, 64, 0.16) !important;
    z-index: 10020 !important;
  }

  .as-mobile-nav-menu .et_mobile_menu > li,
  .as-mobile-nav-menu .et_mobile_menu li {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .as-mobile-nav-menu .et_mobile_menu li a {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 12px 18px !important;

    color: #2f3440 !important;
    background: #ffffff !important;
    border-bottom: 1px solid #eef1f4 !important;

    font-family: Inter, Arial, sans-serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    text-align: left !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
  }

  .as-mobile-nav-menu .et_mobile_menu li:last-child > a {
    border-bottom: 0 !important;
  }

  .as-mobile-nav-menu .et_mobile_menu li a:hover,
  .as-mobile-nav-menu .et_mobile_menu li.current-menu-item > a,
  .as-mobile-nav-menu .et_mobile_menu li.current_page_item > a {
    color: #4c78d3 !important;
    background: #f7f8fa !important;
    opacity: 1 !important;
  }

  .as-mobile-nav-menu .et_mobile_menu .sub-menu {
    position: static !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 0 0 14px !important;
    background: #f7f8fa !important;
    box-shadow: none !important;
  }

  .as-mobile-nav-menu .et_mobile_menu .sub-menu li a {
    padding-left: 20px !important;
    font-size: 15px !important;
    font-weight: 500 !important;
  }
}
  /* =========================================================
   Mobile My Account — icon-only button
   ========================================================= */

@media (max-width: 767px) {

  a.as-mobile-account-button.et_pb_button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    flex: 0 0 44px !important;
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;

    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;

    margin: 0 !important;
    padding: 0 !important;

    font-size: 0 !important;
    line-height: 0 !important;
    color: transparent !important;

    border: 0 !important;
    border-radius: 0 !important;

    background-color: transparent !important;

    background-image:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%234c78d3' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21a8 8 0 0 0-16 0'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E") !important;

    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 23px 23px !important;

    box-shadow: none !important;
    overflow: hidden !important;
  }

  a.as-mobile-account-button.et_pb_button:hover,
  a.as-mobile-account-button.et_pb_button:focus {
    color: transparent !important;
    background-color: transparent !important;
  }

  a.as-mobile-account-button.et_pb_button::before,
  a.as-mobile-account-button.et_pb_button::after {
    display: none !important;
    content: none !important;
  }
}

/* =========================================================
   6. Header stacking and dropdown layers
   Работи както в Theme Builder, така и в AS Header Footer Lab.
   ========================================================= */

/* Само реалният Theme Builder Header трябва да стои над page body. */
.et-l--header {
  position: relative !important;
  z-index: 99990 !important;
}

/* Не допускаме Divi контейнери да изрязват падащите менюта. */
.et-l--header,
.et-l--header .et_builder_inner_content,
.et-l--header .et_pb_section,
.et-l--header .et_pb_row,
.et-l--header .et_pb_column,
.et-l--header .et_pb_group,
.et-l--header .et_pb_menu,
.et-l--header .et_pb_menu_inner_container,
.et-l--header .et_pb_menu__wrap,
.as-header-nav-row,
.as-header-nav-row .et_pb_column,
.as-header-nav-row .et_pb_group,
.as-header-nav-row .et_pb_menu,
.as-header-nav-row .et_pb_menu_inner_container,
.as-header-nav-row .et_pb_menu__wrap {
  overflow: visible !important;
}

/* Mobile: редът с hamburger менюто остава над search реда. */
.as-mobile-main-row {
  position: relative !important;
  z-index: 300 !important;
}

.as-mobile-search-row {
  position: relative !important;
  z-index: 200 !important;
}

.as-mobile-nav-menu {
  position: relative !important;
  z-index: 99998 !important;
}

.as-mobile-nav-menu .et_mobile_menu {
  z-index: 99999 !important;
}

@media (min-width: 768px) {
  /* Важно: селекторите не са ограничени само до .et-l--header.
     Така работят и когато Header layout се тества в съдържанието
     на AS Header Footer Lab. */
  .as-header-nav-row {
    position: relative !important;
    z-index: 1000 !important;
    isolation: auto !important;
    overflow: visible !important;
  }

  .as-header-tools-row {
    position: relative !important;
    z-index: 1 !important;
    isolation: auto !important;
    overflow: visible !important;
  }

  /* Не създаваме ненужни вложени stacking contexts. */
  .as-header-nav-row .et_pb_column,
  .as-header-nav-row .et_pb_group,
  .as-header-nav-row .et_pb_menu_inner_container,
  .as-header-nav-row .et_pb_menu__wrap,
  .as-header-nav-row .et_pb_menu__menu,
  .as-header-nav-row nav {
    position: relative !important;
    z-index: auto !important;
    isolation: auto !important;
    overflow: visible !important;
  }

  /* Самият Menu module и submenu са над целия tools/search ред. */
  .as-header-nav-row .et_pb_menu {
    position: relative !important;
    z-index: 1001 !important;
    isolation: auto !important;
    overflow: visible !important;
  }

  /* Search модулът не трябва да създава по-висок слой. */
  .as-header-tools-row .as-product-search-module,
  .as-header-tools-row .as-product-search-module .et_pb_code_inner,
  .as-header-tools-row .as-product-search-form,
  .as-header-tools-row .as-product-search-field,
  .as-header-tools-row .as-product-search-button {
    position: relative !important;
    z-index: auto !important;
    isolation: auto !important;
    transform: none !important;
    filter: none !important;
  }
}

/* =========================================================
   7. Desktop submenu and Tablet hamburger dropdown
   Divi switches the main Menu module to mobile mode at 980px.
   ========================================================= */

/* Desktop only: classic submenu positioning. */
@media (min-width: 981px) {
  .as-header-nav-row .et_pb_menu__menu .sub-menu {
    position: absolute !important;
    z-index: 1002 !important;
  }
}

/* Tablet: readable dropdown from the collapsed main navigation. */
@media (min-width: 768px) and (max-width: 980px) {
  .as-header-nav-row,
  .as-header-nav-row .et_pb_column,
  .as-header-nav-row .et_pb_group,
  .as-header-nav-row .et_pb_menu,
  .as-header-nav-row .et_pb_menu_inner_container,
  .as-header-nav-row .et_pb_menu__wrap,
  .as-header-nav-row .et_mobile_nav_menu {
    overflow: visible !important;
  }

  .as-header-nav-row .et_pb_menu {
    position: relative !important;
    z-index: 1001 !important;
  }

  .as-header-nav-row .et_mobile_nav_menu {
    position: relative !important;
    z-index: 1002 !important;
  }

  .as-header-nav-row .et_mobile_menu {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    right: 0 !important;
    left: auto !important;

    width: 360px !important;
    min-width: 320px !important;
    max-width: calc(100vw - 32px) !important;

    margin: 0 !important;
    padding: 8px 0 !important;

    background: #ffffff !important;
    border-top: 3px solid #4c78d3 !important;
    border-radius: 0 0 10px 10px !important;
    box-shadow: 0 12px 30px rgba(47, 52, 64, 0.16) !important;

    overflow-x: hidden !important;
    overflow-y: auto !important;
    z-index: 1003 !important;
  }

  .as-header-nav-row .et_mobile_menu > li,
  .as-header-nav-row .et_mobile_menu li {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .as-header-nav-row .et_mobile_menu li a {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 12px 18px !important;

    color: #2f3440 !important;
    background: #ffffff !important;
    border-bottom: 1px solid #eef1f4 !important;

    font-family: Inter, Arial, sans-serif !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    text-align: left !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  .as-header-nav-row .et_mobile_menu li:last-child > a {
    border-bottom: 0 !important;
  }

  .as-header-nav-row .et_mobile_menu li a:hover,
  .as-header-nav-row .et_mobile_menu li.current-menu-item > a,
  .as-header-nav-row .et_mobile_menu li.current_page_item > a {
    color: #4c78d3 !important;
    background: #f7f8fa !important;
    opacity: 1 !important;
  }

  /* Critical tablet fix: nested mobile submenus must stay in normal flow. */
  .as-header-nav-row .et_mobile_menu ul.sub-menu,
  .as-header-nav-row .et_mobile_menu .sub-menu {
    display: block !important;
    position: static !important;
    inset: auto !important;

    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;

    margin: 0 !important;
    padding: 0 0 0 14px !important;

    background: #f7f8fa !important;
    border: 0 !important;
    box-shadow: none !important;
    transform: none !important;
  }

  .as-header-nav-row .et_mobile_menu ul.sub-menu li a,
  .as-header-nav-row .et_mobile_menu .sub-menu li a {
    padding-left: 20px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
  }
}

/* =========================================================
   8. APTEKA SANTE — WooCommerce Order Received
   v1.3: clean dynamic confirmation layout
   Scope: body.woocommerce-order-received
   ========================================================= */

body.woocommerce-order-received {
  --as-order-primary: #4c78d3;
  --as-order-primary-hover: #3f67bb;
  --as-order-heading: #2f3440;
  --as-order-body: #5a5a5a;
  --as-order-muted: #7a7a7a;
  --as-order-bg: #f7f8fa;
  --as-order-card: #ffffff;
  --as-order-border: #d9dee5;
  --as-order-border-soft: #eef1f4;
  --as-order-radius: 14px;
}

body.woocommerce-order-received .woocommerce-order {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 24px 72px;
  color: var(--as-order-body);
  font-family: Inter, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  box-sizing: border-box;
}

body.woocommerce-order-received .woocommerce-order *,
body.woocommerce-order-received .woocommerce-order *::before,
body.woocommerce-order-received .woocommerce-order *::after {
  box-sizing: border-box;
}

body.woocommerce-order-received .woocommerce-order h1,
body.woocommerce-order-received .woocommerce-order h2,
body.woocommerce-order-received .woocommerce-order h3,
body.woocommerce-order-received .woocommerce-order h4 {
  color: var(--as-order-heading);
  font-family: Manrope, Arial, sans-serif;
  line-height: 1.2;
}

body.woocommerce-order-received .woocommerce-order h2 {
  margin: 0 0 16px;
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

body.woocommerce-order-received .woocommerce-thankyou-order-received {
  margin: 0 0 22px;
  color: var(--as-order-heading);
  font-size: 18px;
  font-weight: 600;
}

/* Order number, date, email, total and payment method. */
body.woocommerce-order-received ul.woocommerce-order-overview {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  width: 100%;
  margin: 0 0 44px !important;
  padding: 0 !important;
  overflow: hidden;
  list-style: none !important;
  background: var(--as-order-bg);
  border: 1px solid var(--as-order-border-soft);
  border-radius: var(--as-order-radius);
}

body.woocommerce-order-received ul.woocommerce-order-overview::before,
body.woocommerce-order-received ul.woocommerce-order-overview::after {
  display: none !important;
}

body.woocommerce-order-received ul.woocommerce-order-overview li {
  float: none !important;
  width: auto !important;
  min-width: 0;
  margin: 0 !important;
  padding: 17px 18px !important;
  color: var(--as-order-muted);
  border-right: 1px solid var(--as-order-border-soft) !important;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

body.woocommerce-order-received ul.woocommerce-order-overview li:last-child {
  border-right: 0 !important;
}

body.woocommerce-order-received ul.woocommerce-order-overview li strong {
  display: block;
  margin-top: 5px;
  color: var(--as-order-heading);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  text-transform: none;
  overflow-wrap: anywhere;
}

/* Payment gateway instruction. */
body.woocommerce-order-received .woocommerce-order > p:not(.woocommerce-thankyou-order-received) {
  margin: 0 0 24px;
  padding: 14px 16px;
  color: var(--as-order-heading);
  background: var(--as-order-bg);
  border-left: 4px solid var(--as-order-primary);
  border-radius: 0 10px 10px 0;
  font-weight: 600;
}

/* Order details table. */
body.woocommerce-order-received .woocommerce-order-details {
  margin: 0 0 42px;
}

body.woocommerce-order-received .woocommerce-order-details table.shop_table,
body.woocommerce-order-received .woocommerce-order-details table.woocommerce-table {
  width: 100%;
  margin: 0 !important;
  overflow: hidden;
  border: 1px solid var(--as-order-border-soft) !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border-radius: var(--as-order-radius) !important;
  background: var(--as-order-card);
}

body.woocommerce-order-received .woocommerce-order-details table.shop_table th,
body.woocommerce-order-received .woocommerce-order-details table.shop_table td,
body.woocommerce-order-received .woocommerce-order-details table.woocommerce-table th,
body.woocommerce-order-received .woocommerce-order-details table.woocommerce-table td {
  padding: 15px 18px !important;
  color: var(--as-order-body);
  border: 0 !important;
  border-bottom: 1px solid var(--as-order-border-soft) !important;
  background: transparent;
  font-size: 15px;
  line-height: 1.45;
  text-align: left;
  vertical-align: middle;
  overflow-wrap: anywhere;
}

body.woocommerce-order-received .woocommerce-order-details table.shop_table thead th,
body.woocommerce-order-received .woocommerce-order-details table.woocommerce-table thead th {
  color: var(--as-order-heading);
  background: var(--as-order-bg);
  font-weight: 700;
}

body.woocommerce-order-received .woocommerce-order-details table.shop_table th:first-child,
body.woocommerce-order-received .woocommerce-order-details table.shop_table td:first-child,
body.woocommerce-order-received .woocommerce-order-details table.woocommerce-table th:first-child,
body.woocommerce-order-received .woocommerce-order-details table.woocommerce-table td:first-child {
  width: 47%;
}

body.woocommerce-order-received .woocommerce-order-details table.shop_table th:last-child,
body.woocommerce-order-received .woocommerce-order-details table.shop_table td:last-child,
body.woocommerce-order-received .woocommerce-order-details table.woocommerce-table th:last-child,
body.woocommerce-order-received .woocommerce-order-details table.woocommerce-table td:last-child {
  width: 53%;
}

body.woocommerce-order-received .woocommerce-order-details table.shop_table tr:last-child th,
body.woocommerce-order-received .woocommerce-order-details table.shop_table tr:last-child td,
body.woocommerce-order-received .woocommerce-order-details table.woocommerce-table tr:last-child th,
body.woocommerce-order-received .woocommerce-order-details table.woocommerce-table tr:last-child td {
  border-bottom: 0 !important;
}

body.woocommerce-order-received .woocommerce-order-details table.shop_table tfoot th,
body.woocommerce-order-received .woocommerce-order-details table.woocommerce-table tfoot th {
  color: var(--as-order-heading);
  font-weight: 700;
}

body.woocommerce-order-received .woocommerce-order-details table.shop_table tfoot tr:last-child,
body.woocommerce-order-received .woocommerce-order-details table.woocommerce-table tfoot tr:last-child {
  background: var(--as-order-bg);
}

body.woocommerce-order-received .woocommerce-order-details table.shop_table tfoot tr:last-child th,
body.woocommerce-order-received .woocommerce-order-details table.shop_table tfoot tr:last-child td,
body.woocommerce-order-received .woocommerce-order-details table.woocommerce-table tfoot tr:last-child th,
body.woocommerce-order-received .woocommerce-order-details table.woocommerce-table tfoot tr:last-child td {
  color: var(--as-order-heading);
  font-size: 17px;
  font-weight: 700;
}

body.woocommerce-order-received .woocommerce-order-details a {
  color: var(--as-order-primary);
  font-weight: 600;
  text-decoration: none;
}

body.woocommerce-order-received .woocommerce-order-details a:hover {
  color: var(--as-order-primary-hover);
  text-decoration: underline;
}

/* Address headings and cards — visual treatment only. */
body.woocommerce-order-received
  [class*="order-confirmation-billing-wrapper"] h2,
body.woocommerce-order-received
  [class*="order-confirmation-shipping-wrapper"] h2,
body.woocommerce-order-received .woocommerce-customer-details h2 {
  margin: 0 0 12px !important;
  color: var(--as-order-heading) !important;
  font-family: Manrope, Arial, sans-serif !important;
  font-size: clamp(24px, 2.2vw, 32px) !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  text-align: left !important;
}

body.woocommerce-order-received
  [class*="order-confirmation-billing-address"],
body.woocommerce-order-received
  [class*="order-confirmation-shipping-address"],
body.woocommerce-order-received .woocommerce-customer-details address {
  display: block !important;
  float: none !important;
  clear: none !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 18px 20px !important;
  color: var(--as-order-body) !important;
  background: var(--as-order-card) !important;
  border: 1px solid var(--as-order-border) !important;
  border-radius: 10px !important;
  font-family: Inter, Arial, sans-serif !important;
  font-size: 15px !important;
  font-style: normal !important;
  line-height: 1.6 !important;
  text-align: left !important;
  overflow: visible !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}

body.woocommerce-order-received
  [class*="order-confirmation-billing-address"] address,
body.woocommerce-order-received
  [class*="order-confirmation-shipping-address"] address {
  min-height: 0 !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.woocommerce-order-received .woocommerce-customer-details address p {
  margin: 8px 0 0;
  overflow-wrap: anywhere;
}

body.woocommerce-order-received .woocommerce-customer-details .woocommerce-customer-details--phone,
body.woocommerce-order-received .woocommerce-customer-details .woocommerce-customer-details--email {
  padding-left: 28px;
}

/*
 * Desktop and Tablet: make the whole confirmation wrapper a two-column grid.
 * Every normal confirmation block spans both columns. Shipping and billing are
 * the only half-width grid items, so they are guaranteed to share one row.
 */
@media (min-width: 768px) {
  body.woocommerce-order-received .woocommerce-order {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: row dense;
    column-gap: 32px;
    align-items: start;
  }

  body.woocommerce-order-received .woocommerce-order > * {
    grid-column: 1 / -1;
    min-width: 0;
  }

  /* Flatten one optional Gutenberg grouping level around the address blocks. */
  body.woocommerce-order-received .woocommerce-order >
    :is(.wp-block-group, .wp-block-columns, .woocommerce-customer-details)
    :has([class*="order-confirmation-billing-wrapper"])
    :has([class*="order-confirmation-shipping-wrapper"]) {
    display: contents !important;
  }

  body.woocommerce-order-received .woocommerce-order >
    :has(> [class*="order-confirmation-billing-wrapper"]),
  body.woocommerce-order-received .woocommerce-order >
    :has(> [class*="order-confirmation-shipping-wrapper"]) {
    display: contents !important;
  }

  body.woocommerce-order-received .woocommerce-order
    [class*="order-confirmation-shipping-wrapper"] {
    grid-column: 1 !important;
    float: none !important;
    clear: none !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 0 42px !important;
    padding: 0 !important;
    align-self: start;
    box-sizing: border-box !important;
  }

  body.woocommerce-order-received .woocommerce-order
    [class*="order-confirmation-billing-wrapper"] {
    grid-column: 2 !important;
    float: none !important;
    clear: none !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 0 42px !important;
    padding: 0 !important;
    align-self: start;
    box-sizing: border-box !important;
  }

  /* Classic WooCommerce address markup fallback. */
  body.woocommerce-order-received .woocommerce-customer-details
    .woocommerce-columns--addresses,
  body.woocommerce-order-received .woocommerce-customer-details
    .col2-set.addresses {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    width: 100%;
    margin: 0 !important;
  }

  body.woocommerce-order-received .woocommerce-customer-details .col-2 {
    grid-column: 1;
    grid-row: 1;
  }

  body.woocommerce-order-received .woocommerce-customer-details .col-1 {
    grid-column: 2;
    grid-row: 1;
  }

  body.woocommerce-order-received .woocommerce-customer-details .woocommerce-column,
  body.woocommerce-order-received .woocommerce-customer-details .col-1,
  body.woocommerce-order-received .woocommerce-customer-details .col-2 {
    float: none !important;
    clear: none !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
  }
}

/* Standard WooCommerce action buttons. */
body.woocommerce-order-received .woocommerce-order .button,
body.woocommerce-order-received .woocommerce-order a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px !important;
  color: #ffffff !important;
  background: var(--as-order-primary) !important;
  border: 1px solid var(--as-order-primary) !important;
  border-radius: 10px !important;
  font-family: Inter, Arial, sans-serif;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  box-shadow: none !important;
}

body.woocommerce-order-received .woocommerce-order .button:hover,
body.woocommerce-order-received .woocommerce-order a.button:hover {
  color: #ffffff !important;
  background: var(--as-order-primary-hover) !important;
  border-color: var(--as-order-primary-hover) !important;
}

body.woocommerce-order-received .woocommerce-order .button:focus-visible,
body.woocommerce-order-received .woocommerce-order a.button:focus-visible,
body.woocommerce-order-received .woocommerce-order a:focus-visible {
  outline: 2px solid var(--as-order-heading);
  outline-offset: 3px;
}

@media (min-width: 768px) and (max-width: 980px) {
  body.woocommerce-order-received .woocommerce-order {
    padding: 40px 22px 64px;
    column-gap: 24px;
  }

  body.woocommerce-order-received ul.woocommerce-order-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.woocommerce-order-received ul.woocommerce-order-overview li {
    border-right: 1px solid var(--as-order-border-soft) !important;
    border-bottom: 1px solid var(--as-order-border-soft) !important;
  }

  body.woocommerce-order-received ul.woocommerce-order-overview li:nth-child(2n) {
    border-right: 0 !important;
  }

  body.woocommerce-order-received ul.woocommerce-order-overview li:last-child {
    border-bottom: 0 !important;
  }
}

@media (max-width: 767px) {
  body.woocommerce-order-received .woocommerce-order {
    display: block !important;
    padding: 32px 18px 52px;
    font-size: 15px;
  }

  body.woocommerce-order-received .woocommerce-thankyou-order-received {
    margin-bottom: 18px;
    font-size: 16px;
  }

  body.woocommerce-order-received ul.woocommerce-order-overview {
    grid-template-columns: 1fr;
    margin-bottom: 34px !important;
  }

  body.woocommerce-order-received ul.woocommerce-order-overview li,
  body.woocommerce-order-received ul.woocommerce-order-overview li:nth-child(2n) {
    padding: 14px 16px !important;
    border-right: 0 !important;
    border-bottom: 1px solid var(--as-order-border-soft) !important;
  }

  body.woocommerce-order-received ul.woocommerce-order-overview li:last-child {
    border-bottom: 0 !important;
  }

  body.woocommerce-order-received .woocommerce-order-details {
    margin-bottom: 34px;
  }

  body.woocommerce-order-received .woocommerce-order-details table.shop_table th,
  body.woocommerce-order-received .woocommerce-order-details table.shop_table td,
  body.woocommerce-order-received .woocommerce-order-details table.woocommerce-table th,
  body.woocommerce-order-received .woocommerce-order-details table.woocommerce-table td {
    padding: 12px 10px !important;
    font-size: 14px;
    line-height: 1.4;
  }

  body.woocommerce-order-received .woocommerce-order-details table.shop_table th:first-child,
  body.woocommerce-order-received .woocommerce-order-details table.shop_table td:first-child,
  body.woocommerce-order-received .woocommerce-order-details table.woocommerce-table th:first-child,
  body.woocommerce-order-received .woocommerce-order-details table.woocommerce-table td:first-child {
    width: 43%;
  }

  body.woocommerce-order-received .woocommerce-order-details table.shop_table th:last-child,
  body.woocommerce-order-received .woocommerce-order-details table.shop_table td:last-child,
  body.woocommerce-order-received .woocommerce-order-details table.woocommerce-table th:last-child,
  body.woocommerce-order-received .woocommerce-order-details table.woocommerce-table td:last-child {
    width: 57%;
  }

  body.woocommerce-order-received .woocommerce-order-details table.shop_table tfoot tr:last-child th,
  body.woocommerce-order-received .woocommerce-order-details table.shop_table tfoot tr:last-child td,
  body.woocommerce-order-received .woocommerce-order-details table.woocommerce-table tfoot tr:last-child th,
  body.woocommerce-order-received .woocommerce-order-details table.woocommerce-table tfoot tr:last-child td {
    font-size: 15px;
  }

  body.woocommerce-order-received
    [class*="order-confirmation-billing-wrapper"],
  body.woocommerce-order-received
    [class*="order-confirmation-shipping-wrapper"] {
    display: block !important;
    float: none !important;
    clear: both !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 0 30px !important;
    padding: 0 !important;
  }

  body.woocommerce-order-received .woocommerce-customer-details
    .woocommerce-columns--addresses,
  body.woocommerce-order-received .woocommerce-customer-details
    .col2-set.addresses {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
  }

  body.woocommerce-order-received .woocommerce-customer-details .woocommerce-column,
  body.woocommerce-order-received .woocommerce-customer-details .col-1,
  body.woocommerce-order-received .woocommerce-customer-details .col-2 {
    display: block !important;
    float: none !important;
    clear: both !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 30px !important;
  }

  body.woocommerce-order-received
    [class*="order-confirmation-billing-wrapper"] h2,
  body.woocommerce-order-received
    [class*="order-confirmation-shipping-wrapper"] h2,
  body.woocommerce-order-received .woocommerce-customer-details h2 {
    margin-bottom: 12px !important;
    font-size: 25px !important;
    line-height: 1.12 !important;
  }

  body.woocommerce-order-received
    [class*="order-confirmation-billing-address"],
  body.woocommerce-order-received
    [class*="order-confirmation-shipping-address"],
  body.woocommerce-order-received .woocommerce-customer-details address {
    min-height: 0 !important;
    height: auto !important;
    padding: 16px !important;
  }

  body.woocommerce-order-received .woocommerce-order .button,
  body.woocommerce-order-received .woocommerce-order a.button {
    width: 100%;
  }
}

@media (max-width: 380px) {
  body.woocommerce-order-received .woocommerce-order {
    padding-right: 14px;
    padding-left: 14px;
  }

  body.woocommerce-order-received .woocommerce-order-details table.shop_table th,
  body.woocommerce-order-received .woocommerce-order-details table.shop_table td,
  body.woocommerce-order-received .woocommerce-order-details table.woocommerce-table th,
  body.woocommerce-order-received .woocommerce-order-details table.woocommerce-table td {
    padding-right: 8px !important;
    padding-left: 8px !important;
    font-size: 13px;
  }
}

/* =========================================================
   9. APTEKA SANTE — WooCommerce Cart Block
   v1.0: full cart, empty cart and responsive presentation
   Scope: body.woocommerce-cart
   ========================================================= */

body.woocommerce-cart {
  --as-cart-primary: #4c78d3;
  --as-cart-primary-hover: #3f67bb;
  --as-cart-magenta: #b64a9a;
  --as-cart-heading: #2f3440;
  --as-cart-body: #5a5a5a;
  --as-cart-muted: #7a7a7a;
  --as-cart-bg: #f7f8fa;
  --as-cart-card: #ffffff;
  --as-cart-border: #d9dee5;
  --as-cart-border-soft: #eef1f4;
  --as-cart-radius: 14px;
}

body.woocommerce-cart .entry-title,
body.woocommerce-cart .wp-block-post-title {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto 24px !important;
  padding: 42px 24px 0 !important;
  color: var(--as-cart-heading) !important;
  font-family: Manrope, Arial, sans-serif !important;
  font-size: clamp(30px, 3.2vw, 44px) !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.02em !important;
}

body.woocommerce-cart .wp-block-woocommerce-cart {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto !important;
  padding: 0 24px 72px !important;
  color: var(--as-cart-body);
  font-family: Inter, Arial, sans-serif;
  box-sizing: border-box;
}

body.woocommerce-cart .wp-block-woocommerce-cart *,
body.woocommerce-cart .wp-block-woocommerce-cart *::before,
body.woocommerce-cart .wp-block-woocommerce-cart *::after {
  box-sizing: border-box;
}

body.woocommerce-cart .wp-block-woocommerce-cart a {
  color: var(--as-cart-primary);
  text-decoration: none;
}

body.woocommerce-cart .wp-block-woocommerce-cart a:hover {
  color: var(--as-cart-primary-hover);
  text-decoration: underline;
}

/* Main two-column cart layout. */
body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart {
  display: grid !important;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.85fr) !important;
  gap: 32px !important;
  align-items: start !important;
  width: 100% !important;
  margin: 0 !important;
}

body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart__main,
body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart__sidebar {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
}

/* Product list card. */
body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart-items {
  width: 100% !important;
  margin: 0 !important;
  overflow: hidden !important;
  background: var(--as-cart-card) !important;
  border: 1px solid var(--as-cart-border-soft) !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border-radius: var(--as-cart-radius) !important;
}

body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart-items thead th {
  padding: 14px 16px !important;
  color: var(--as-cart-heading) !important;
  background: var(--as-cart-bg) !important;
  border: 0 !important;
  border-bottom: 1px solid var(--as-cart-border-soft) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.02em !important;
}

body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart-items td {
  padding: 18px 16px !important;
  color: var(--as-cart-body) !important;
  background: var(--as-cart-card) !important;
  border: 0 !important;
  border-bottom: 1px solid var(--as-cart-border-soft) !important;
  vertical-align: top !important;
}

body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart-items tr:last-child td {
  border-bottom: 0 !important;
}

body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart-item__image {
  width: 104px !important;
  min-width: 104px !important;
}

body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart-item__image img {
  display: block !important;
  width: 88px !important;
  height: 88px !important;
  margin: 0 !important;
  object-fit: cover !important;
  background: var(--as-cart-bg) !important;
  border: 1px solid var(--as-cart-border-soft) !important;
  border-radius: 10px !important;
}

body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-product-name {
  display: inline-block !important;
  margin: 0 0 6px !important;
  color: var(--as-cart-heading) !important;
  font-family: Manrope, Arial, sans-serif !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
}

body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-product-metadata,
body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-product-details,
body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart-item__prices {
  color: var(--as-cart-muted) !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
}

body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-product-price {
  color: var(--as-cart-heading) !important;
  font-weight: 700 !important;
}

body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-product-price del {
  color: var(--as-cart-muted) !important;
  font-weight: 500 !important;
  opacity: 0.8 !important;
}

body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-product-price ins {
  color: var(--as-cart-magenta) !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-product-badge {
  display: inline-flex !important;
  align-items: center !important;
  max-width: 100% !important;
  margin: 6px 0 0 !important;
  padding: 5px 8px !important;
  color: var(--as-cart-heading) !important;
  background: var(--as-cart-bg) !important;
  border: 1px solid var(--as-cart-border-soft) !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  white-space: normal !important;
}

/* Quantity selector and remove action. */
body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-quantity-selector {
  display: inline-grid !important;
  grid-template-columns: 36px minmax(42px, 1fr) 36px !important;
  width: auto !important;
  min-width: 116px !important;
  min-height: 42px !important;
  margin: 10px 8px 0 0 !important;
  overflow: hidden !important;
  background: #ffffff !important;
  border: 1px solid var(--as-cart-border) !important;
  border-radius: 10px !important;
}

body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-quantity-selector::after {
  display: none !important;
}

body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-quantity-selector__button,
body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-quantity-selector__input {
  min-width: 0 !important;
  min-height: 40px !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--as-cart-heading) !important;
  background: #ffffff !important;
  border: 0 !important;
  font-family: Inter, Arial, sans-serif !important;
  box-shadow: none !important;
}

body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-quantity-selector__button:hover {
  background: var(--as-cart-bg) !important;
}

body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart-item__remove-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 42px !important;
  min-height: 42px !important;
  margin: 10px 0 0 !important;
  padding: 0 8px !important;
  color: var(--as-cart-muted) !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 10px !important;
  text-decoration: none !important;
}

body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart-item__remove-link:hover {
  color: #c94b4b !important;
  background: #fff6f6 !important;
}

/* Totals card. */
body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart__sidebar {
  padding: 22px !important;
  background: var(--as-cart-card) !important;
  border: 1px solid var(--as-cart-border-soft) !important;
  border-radius: var(--as-cart-radius) !important;
  box-shadow: 0 10px 28px rgba(47, 52, 64, 0.06) !important;
}

body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart__totals-title {
  margin: 0 0 14px !important;
  padding: 0 0 12px !important;
  color: var(--as-cart-heading) !important;
  border-bottom: 1px solid var(--as-cart-border-soft) !important;
  font-family: Manrope, Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  text-transform: uppercase !important;
}

body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-totals-wrapper {
  padding: 14px 0 !important;
  border-top: 0 !important;
  border-bottom: 1px solid var(--as-cart-border-soft) !important;
}

body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-totals-wrapper:last-of-type {
  border-bottom: 0 !important;
}

body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-totals-item {
  color: var(--as-cart-body) !important;
  font-size: 15px !important;
  line-height: 1.45 !important;
}

body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-totals-item__label {
  color: var(--as-cart-heading) !important;
  font-weight: 600 !important;
}

body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-totals-item__value {
  color: var(--as-cart-heading) !important;
  font-weight: 700 !important;
}

body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-totals-footer-item {
  padding-top: 16px !important;
}

body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
  color: var(--as-cart-heading) !important;
  font-family: Manrope, Arial, sans-serif !important;
  font-size: 22px !important;
  font-weight: 700 !important;
}

body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-totals-item__description,
body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-shipping-rates-control__package {
  color: var(--as-cart-muted) !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
}

/* Coupon accordion. */
body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-panel__button {
  min-height: 44px !important;
  padding: 10px 0 !important;
  color: var(--as-cart-heading) !important;
  background: transparent !important;
  border: 0 !important;
  font-family: Inter, Arial, sans-serif !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}

body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-totals-coupon__form {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 10px !important;
  padding-top: 10px !important;
}

body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-text-input input {
  min-height: 46px !important;
  color: var(--as-cart-heading) !important;
  background: #ffffff !important;
  border: 1px solid var(--as-cart-border) !important;
  border-radius: 10px !important;
  font-family: Inter, Arial, sans-serif !important;
  font-size: 15px !important;
  box-shadow: none !important;
}

body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-text-input input:focus {
  border-color: var(--as-cart-primary) !important;
  box-shadow: inset 0 0 0 1px var(--as-cart-primary) !important;
}

/* Primary cart actions. */
body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-button,
body.woocommerce-cart .wp-block-woocommerce-cart a.wc-block-components-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 48px !important;
  padding: 13px 20px !important;
  color: #ffffff !important;
  background: var(--as-cart-primary) !important;
  border: 1px solid var(--as-cart-primary) !important;
  border-radius: 10px !important;
  font-family: Inter, Arial, sans-serif !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  box-shadow: none !important;
}

body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-button:hover,
body.woocommerce-cart .wp-block-woocommerce-cart a.wc-block-components-button:hover {
  color: #ffffff !important;
  background: var(--as-cart-primary-hover) !important;
  border-color: var(--as-cart-primary-hover) !important;
  text-decoration: none !important;
}

body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart__submit-button {
  width: 100% !important;
  margin-top: 16px !important;
}

/* Empty cart. */
body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-empty-cart-block {
  width: 100% !important;
  max-width: 980px !important;
  margin: 0 auto !important;
  padding: 28px 0 0 !important;
  text-align: center !important;
}

body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart__empty-cart__title {
  margin: 0 0 12px !important;
  color: var(--as-cart-heading) !important;
  font-family: Manrope, Arial, sans-serif !important;
  font-size: clamp(24px, 3vw, 34px) !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
}

body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-separator {
  width: 64px !important;
  margin: 18px auto !important;
  border-color: var(--as-cart-border) !important;
}

body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-heading {
  color: var(--as-cart-heading) !important;
  font-family: Manrope, Arial, sans-serif !important;
  font-weight: 700 !important;
}

body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-product-new,
body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-product-collection {
  margin-top: 28px !important;
}

body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-grid__products,
body.woocommerce-cart .wp-block-woocommerce-cart ul.wc-block-product-template {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 24px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-grid__product,
body.woocommerce-cart .wp-block-woocommerce-cart li.wc-block-product {
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 0 18px !important;
  overflow: hidden !important;
  background: #ffffff !important;
  border: 1px solid var(--as-cart-border-soft) !important;
  border-radius: var(--as-cart-radius) !important;
}

body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-grid__product-image img,
body.woocommerce-cart .wp-block-woocommerce-cart li.wc-block-product img {
  display: block !important;
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  margin: 0 0 16px !important;
  object-fit: cover !important;
  background: var(--as-cart-bg) !important;
}

body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-grid__product-title,
body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-post-title {
  margin: 0 !important;
  padding: 0 16px 8px !important;
  color: var(--as-cart-heading) !important;
  font-family: Manrope, Arial, sans-serif !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
}

body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-grid__product-price,
body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-product-price {
  padding: 0 16px !important;
  color: var(--as-cart-primary) !important;
  font-weight: 700 !important;
}

body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-grid__product-onsale,
body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-product-sale-badge {
  top: 12px !important;
  right: 12px !important;
  left: auto !important;
  margin: 0 !important;
  padding: 6px 9px !important;
  color: #ffffff !important;
  background: var(--as-cart-magenta) !important;
  border: 0 !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-button {
  margin: 14px 16px 0 !important;
}

body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-button__link {
  min-height: 44px !important;
  padding: 11px 18px !important;
  color: #ffffff !important;
  background: var(--as-cart-primary) !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
}

/* Focus states. */
body.woocommerce-cart .wp-block-woocommerce-cart button:focus-visible,
body.woocommerce-cart .wp-block-woocommerce-cart a:focus-visible,
body.woocommerce-cart .wp-block-woocommerce-cart input:focus-visible {
  outline: 2px solid var(--as-cart-heading) !important;
  outline-offset: 3px !important;
}

/* Tablet. */
@media (min-width: 768px) and (max-width: 980px) {
  body.woocommerce-cart .entry-title,
  body.woocommerce-cart .wp-block-post-title {
    padding: 36px 22px 0 !important;
  }

  body.woocommerce-cart .wp-block-woocommerce-cart {
    padding-right: 22px !important;
    padding-bottom: 64px !important;
    padding-left: 22px !important;
  }

  body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart {
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr) !important;
    gap: 24px !important;
  }

  body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart__sidebar {
    padding: 20px !important;
  }

  body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart-item__image {
    width: 88px !important;
    min-width: 88px !important;
  }

  body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart-item__image img {
    width: 72px !important;
    height: 72px !important;
  }

  body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-grid__products,
  body.woocommerce-cart .wp-block-woocommerce-cart ul.wc-block-product-template {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 20px !important;
  }
}

/* Mobile. */
@media (max-width: 767px) {
  body.woocommerce-cart .entry-title,
  body.woocommerce-cart .wp-block-post-title {
    padding: 32px 18px 0 !important;
    font-size: 32px !important;
  }

  body.woocommerce-cart .wp-block-woocommerce-cart {
    padding: 0 18px 52px !important;
  }

  body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart {
    display: block !important;
  }

  body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart__main {
    margin-bottom: 24px !important;
  }

  body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart__sidebar {
    padding: 18px !important;
  }

  body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart-items {
    display: block !important;
  }

  body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart-items thead {
    display: none !important;
  }

  body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart-items tbody,
  body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart-items tr,
  body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart-items td {
    display: block !important;
    width: 100% !important;
  }

  body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart-items td {
    padding: 16px !important;
  }

  body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart-item__product {
    display: grid !important;
    grid-template-columns: 84px minmax(0, 1fr) !important;
    gap: 12px !important;
    align-items: start !important;
  }

  body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart-item__image {
    grid-column: 1 !important;
    width: 84px !important;
    min-width: 84px !important;
    margin: 0 !important;
  }

  body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart-item__image img {
    width: 76px !important;
    height: 76px !important;
  }

  body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart-item__wrap {
    grid-column: 2 !important;
    min-width: 0 !important;
  }

  body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-product-name {
    font-size: 16px !important;
    overflow-wrap: anywhere !important;
  }

  body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart-item__total {
    display: none !important;
  }

  body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-quantity-selector {
    margin-top: 12px !important;
  }

  body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
  body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
    font-size: 20px !important;
  }

  body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-totals-coupon__form {
    grid-template-columns: 1fr !important;
  }

  body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-totals-coupon__form .wc-block-components-button {
    width: 100% !important;
  }

  body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-empty-cart-block {
    padding-top: 18px !important;
  }

  body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-grid__products,
  body.woocommerce-cart .wp-block-woocommerce-cart ul.wc-block-product-template {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }
}

@media (max-width: 380px) {
  body.woocommerce-cart .entry-title,
  body.woocommerce-cart .wp-block-post-title {
    padding-right: 14px !important;
    padding-left: 14px !important;
  }

  body.woocommerce-cart .wp-block-woocommerce-cart {
    padding-right: 14px !important;
    padding-left: 14px !important;
  }

  body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart-item__product {
    grid-template-columns: 72px minmax(0, 1fr) !important;
    gap: 10px !important;
  }

  body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart-item__image {
    width: 72px !important;
    min-width: 72px !important;
  }

  body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart-item__image img {
    width: 64px !important;
    height: 64px !important;
  }
}

/* =========================================================
   9.1 Cart saving badge — keep label and amount on one line
   Translation is handled separately in WooCommerce locale.
   ========================================================= */

body.woocommerce-cart
  .wp-block-woocommerce-cart
  .wc-block-components-product-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  width: max-content !important;
  min-width: max-content !important;
  max-width: none !important;
  white-space: nowrap !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  hyphens: none !important;
}

body.woocommerce-cart
  .wp-block-woocommerce-cart
  .wc-block-cart-item__total
  .wc-block-components-product-badge {
  margin-left: auto !important;
}

@media (max-width: 767px) {
  body.woocommerce-cart
    .wp-block-woocommerce-cart
    .wc-block-components-product-badge {
    font-size: 12px !important;
    line-height: 1.2 !important;
  }
}

/* =========================================================
   10. APTEKA SANTE — WooCommerce Checkout Block
   v1.0: form, validation, order summary and responsive layout
   Scope: body.woocommerce-checkout
   ========================================================= */

body.woocommerce-checkout {
  --as-checkout-primary: #4c78d3;
  --as-checkout-primary-hover: #3f67bb;
  --as-checkout-magenta: #b64a9a;
  --as-checkout-heading: #2f3440;
  --as-checkout-body: #5a5a5a;
  --as-checkout-muted: #7a7a7a;
  --as-checkout-bg: #f7f8fa;
  --as-checkout-card: #ffffff;
  --as-checkout-border: #d9dee5;
  --as-checkout-border-soft: #eef1f4;
  --as-checkout-error: #c94b4b;
  --as-checkout-error-bg: #fff6f6;
  --as-checkout-radius: 14px;
}

body.woocommerce-checkout .entry-title,
body.woocommerce-checkout .wp-block-post-title {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto 26px !important;
  padding: 42px 24px 0 !important;
  color: var(--as-checkout-heading) !important;
  font-family: Manrope, Arial, sans-serif !important;
  font-size: clamp(30px, 3.2vw, 44px) !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.02em !important;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto !important;
  padding: 0 24px 72px !important;
  color: var(--as-checkout-body);
  font-family: Inter, Arial, sans-serif;
  box-sizing: border-box;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout *,
body.woocommerce-checkout .wp-block-woocommerce-checkout *::before,
body.woocommerce-checkout .wp-block-woocommerce-checkout *::after {
  box-sizing: border-box;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-checkout {
  display: grid !important;
  grid-template-columns: minmax(0, 1.55fr) minmax(340px, 0.75fr) !important;
  gap: 40px !important;
  align-items: start !important;
  width: 100% !important;
  margin: 0 !important;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-checkout__sidebar {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-checkout-step {
  margin: 0 0 28px !important;
  padding: 0 !important;
  border: 0 !important;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-checkout-step__heading {
  margin: 0 0 14px !important;
  padding: 0 !important;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-checkout-step__title,
body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-title {
  color: var(--as-checkout-heading) !important;
  font-family: Manrope, Arial, sans-serif !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout input[type="text"],
body.woocommerce-checkout .wp-block-woocommerce-checkout input[type="email"],
body.woocommerce-checkout .wp-block-woocommerce-checkout input[type="tel"],
body.woocommerce-checkout .wp-block-woocommerce-checkout input[type="number"],
body.woocommerce-checkout .wp-block-woocommerce-checkout select,
body.woocommerce-checkout .wp-block-woocommerce-checkout textarea,
body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-combobox-control input {
  min-height: 50px !important;
  margin: 0 !important;
  padding: 14px 13px !important;
  color: var(--as-checkout-heading) !important;
  background: #ffffff !important;
  border: 1px solid var(--as-checkout-border) !important;
  border-radius: 10px !important;
  font-family: Inter, Arial, sans-serif !important;
  font-size: 15px !important;
  line-height: 1.35 !important;
  box-shadow: none !important;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout input:focus,
body.woocommerce-checkout .wp-block-woocommerce-checkout select:focus,
body.woocommerce-checkout .wp-block-woocommerce-checkout textarea:focus,
body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-combobox-control input:focus {
  border-color: var(--as-checkout-primary) !important;
  box-shadow: inset 0 0 0 1px var(--as-checkout-primary) !important;
  outline: 0 !important;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-radio-control {
  overflow: hidden !important;
  background: var(--as-checkout-card) !important;
  border: 1px solid var(--as-checkout-border-soft) !important;
  border-radius: 12px !important;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-radio-control__option,
body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-radio-control-accordion-option {
  min-height: 54px !important;
  margin: 0 !important;
  padding: 14px 16px !important;
  color: var(--as-checkout-heading) !important;
  background: #ffffff !important;
  border: 0 !important;
  border-bottom: 1px solid var(--as-checkout-border-soft) !important;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-radio-control__option:last-child,
body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-radio-control-accordion-option:last-child {
  border-bottom: 0 !important;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-radio-control__option:hover,
body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-radio-control-accordion-option:hover,
body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-radio-control__option--checked-option-highlighted {
  background: var(--as-checkout-bg) !important;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-checkbox {
  margin: 14px 0 !important;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-checkbox__input {
  width: 20px !important;
  height: 20px !important;
  border: 1px solid var(--as-checkout-border) !important;
  border-radius: 5px !important;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout a {
  color: var(--as-checkout-primary);
  text-decoration: none;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout a:hover {
  color: var(--as-checkout-primary-hover);
  text-decoration: underline;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-checkout__sidebar {
  padding: 22px !important;
  background: var(--as-checkout-card) !important;
  border: 1px solid var(--as-checkout-border-soft) !important;
  border-radius: var(--as-checkout-radius) !important;
  box-shadow: 0 10px 28px rgba(47, 52, 64, 0.06) !important;
}

@media (min-width: 981px) {
  body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-checkout__sidebar {
    position: sticky !important;
    top: 28px !important;
  }
}

body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-checkout-order-summary__title,
body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-order-summary__button-text {
  color: var(--as-checkout-heading) !important;
  font-family: Manrope, Arial, sans-serif !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-order-summary-item {
  display: grid !important;
  grid-template-columns: 72px minmax(0, 1fr) auto !important;
  gap: 12px !important;
  align-items: start !important;
  padding: 16px 0 !important;
  border-bottom: 1px solid var(--as-checkout-border-soft) !important;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-order-summary-item__image {
  width: 72px !important;
  min-width: 72px !important;
  margin: 0 !important;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-order-summary-item__image img {
  display: block !important;
  width: 64px !important;
  height: 64px !important;
  object-fit: cover !important;
  background: var(--as-checkout-bg) !important;
  border: 1px solid var(--as-checkout-border-soft) !important;
  border-radius: 10px !important;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-order-summary-item__description {
  min-width: 0 !important;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-product-name {
  color: var(--as-checkout-heading) !important;
  font-family: Manrope, Arial, sans-serif !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  overflow-wrap: anywhere !important;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-product-metadata,
body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-product-details,
body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-product-price {
  color: var(--as-checkout-muted) !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
  overflow-wrap: anywhere !important;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-order-summary-item__total-price {
  min-width: 72px !important;
  color: var(--as-checkout-heading) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  text-align: right !important;
  white-space: nowrap !important;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-product-badge {
  display: inline-flex !important;
  align-items: center !important;
  width: max-content !important;
  max-width: 100% !important;
  margin-top: 6px !important;
  padding: 5px 8px !important;
  color: var(--as-checkout-heading) !important;
  background: var(--as-checkout-bg) !important;
  border: 1px solid var(--as-checkout-border-soft) !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-totals-wrapper {
  padding: 14px 0 !important;
  border-top: 0 !important;
  border-bottom: 1px solid var(--as-checkout-border-soft) !important;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
  color: var(--as-checkout-heading) !important;
  font-family: Manrope, Arial, sans-serif !important;
  font-size: 22px !important;
  font-weight: 700 !important;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-notice-banner {
  margin: 0 0 28px !important;
  padding: 14px 16px !important;
  color: var(--as-checkout-error) !important;
  background: var(--as-checkout-error-bg) !important;
  border: 1px solid var(--as-checkout-error) !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout .has-error input,
body.woocommerce-checkout .wp-block-woocommerce-checkout .has-error select,
body.woocommerce-checkout .wp-block-woocommerce-checkout .has-error textarea {
  border-color: var(--as-checkout-error) !important;
  box-shadow: inset 0 0 0 1px var(--as-checkout-error) !important;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-validation-error,
body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-validation-error p {
  margin: 6px 0 0 !important;
  color: var(--as-checkout-error) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-checkout-place-order-button,
body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-checkout__actions_row .wc-block-components-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 50px !important;
  margin-top: 18px !important;
  padding: 13px 22px !important;
  color: #ffffff !important;
  background: var(--as-checkout-primary) !important;
  border: 1px solid var(--as-checkout-primary) !important;
  border-radius: 10px !important;
  font-family: Inter, Arial, sans-serif !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  box-shadow: none !important;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-checkout-place-order-button:hover,
body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-checkout__actions_row .wc-block-components-button:hover {
  background: var(--as-checkout-primary-hover) !important;
  border-color: var(--as-checkout-primary-hover) !important;
}

@media (min-width: 768px) and (max-width: 980px) {
  body.woocommerce-checkout .entry-title,
  body.woocommerce-checkout .wp-block-post-title {
    padding: 36px 22px 0 !important;
  }

  body.woocommerce-checkout .wp-block-woocommerce-checkout {
    padding-right: 22px !important;
    padding-bottom: 64px !important;
    padding-left: 22px !important;
  }

  body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-checkout {
    display: block !important;
  }

  body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-checkout__sidebar {
    margin: 0 0 28px !important;
    padding: 18px !important;
    box-shadow: none !important;
  }
}

@media (max-width: 767px) {
  body.woocommerce-checkout .entry-title,
  body.woocommerce-checkout .wp-block-post-title {
    padding: 32px 18px 0 !important;
    font-size: 32px !important;
  }

  body.woocommerce-checkout .wp-block-woocommerce-checkout {
    padding: 0 18px 52px !important;
  }

  body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-checkout {
    display: block !important;
  }

  body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-checkout__sidebar {
    margin: 0 0 26px !important;
    padding: 16px !important;
    box-shadow: none !important;
  }

  body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-address-form {
    display: block !important;
  }

  body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-address-form > * {
    width: 100% !important;
    margin-bottom: 12px !important;
  }

  body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-order-summary-item {
    grid-template-columns: 64px minmax(0, 1fr) !important;
    gap: 10px !important;
  }

  body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-order-summary-item__image {
    grid-column: 1 !important;
    grid-row: 1 / span 2 !important;
    width: 64px !important;
    min-width: 64px !important;
  }

  body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-order-summary-item__image img {
    width: 58px !important;
    height: 58px !important;
  }

  body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-order-summary-item__description {
    grid-column: 2 !important;
    grid-row: 1 !important;
  }

  body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-order-summary-item__total-price {
    grid-column: 2 !important;
    grid-row: 2 !important;
    min-width: 0 !important;
    text-align: left !important;
  }

  body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-product-badge {
    white-space: normal !important;
  }
}

@media (max-width: 380px) {
  body.woocommerce-checkout .entry-title,
  body.woocommerce-checkout .wp-block-post-title {
    padding-right: 14px !important;
    padding-left: 14px !important;
  }

  body.woocommerce-checkout .wp-block-woocommerce-checkout {
    padding-right: 14px !important;
    padding-left: 14px !important;
  }
}

/* =========================================================
   10.1 Checkout desktop order summary width fix
   Prevents product name, variation and prices from collapsing
   into extremely narrow columns. Tablet and Mobile unchanged.
   ========================================================= */

@media (min-width: 981px) {
  body.woocommerce-checkout
    .wp-block-woocommerce-checkout
    .wc-block-checkout {
    grid-template-columns: minmax(0, 1fr) minmax(390px, 430px) !important;
    gap: 36px !important;
  }

  body.woocommerce-checkout
    .wp-block-woocommerce-checkout
    .wc-block-checkout__sidebar {
    width: 100% !important;
    min-width: 390px !important;
    max-width: 430px !important;
  }

  body.woocommerce-checkout
    .wp-block-woocommerce-checkout
    .wc-block-components-order-summary-item {
    grid-template-columns: 72px minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    column-gap: 12px !important;
    row-gap: 6px !important;
  }

  body.woocommerce-checkout
    .wp-block-woocommerce-checkout
    .wc-block-components-order-summary-item__image {
    grid-column: 1 !important;
    grid-row: 1 / span 2 !important;
  }

  body.woocommerce-checkout
    .wp-block-woocommerce-checkout
    .wc-block-components-order-summary-item__description {
    grid-column: 2 !important;
    grid-row: 1 !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  body.woocommerce-checkout
    .wp-block-woocommerce-checkout
    .wc-block-components-order-summary-item__total-price {
    grid-column: 2 !important;
    grid-row: 2 !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    text-align: left !important;
    white-space: nowrap !important;
  }

  body.woocommerce-checkout
    .wp-block-woocommerce-checkout
    .wc-block-components-product-name {
    width: auto !important;
    max-width: 100% !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    hyphens: none !important;
  }

  body.woocommerce-checkout
    .wp-block-woocommerce-checkout
    .wc-block-components-product-metadata,
  body.woocommerce-checkout
    .wp-block-woocommerce-checkout
    .wc-block-components-product-details,
  body.woocommerce-checkout
    .wp-block-woocommerce-checkout
    .wc-block-components-product-price {
    width: auto !important;
    max-width: 100% !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
  }

  body.woocommerce-checkout
    .wp-block-woocommerce-checkout
    .wc-block-components-product-badge {
    max-width: 100% !important;
    white-space: nowrap !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
  }
}

/* =========================================================
   11. APTEKA SANTE — WooCommerce My Account
   v1.0: login, registration, account navigation, orders,
   addresses, account details, lost password and wishlist
   Scope: body.woocommerce-account
   ========================================================= */

body.woocommerce-account {
  --as-account-primary: #4c78d3;
  --as-account-primary-hover: #3f67bb;
  --as-account-magenta: #b64a9a;
  --as-account-heading: #2f3440;
  --as-account-body: #5a5a5a;
  --as-account-muted: #7a7a7a;
  --as-account-bg: #f7f8fa;
  --as-account-card: #ffffff;
  --as-account-border: #d9dee5;
  --as-account-border-soft: #eef1f4;
  --as-account-success: #78c22a;
  --as-account-error: #c94b4b;
  --as-account-radius: 14px;
}

body.woocommerce-account .entry-title,
body.woocommerce-account .wp-block-post-title {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto 26px !important;
  padding: 42px 24px 0 !important;
  color: var(--as-account-heading) !important;
  font-family: Manrope, Arial, sans-serif !important;
  font-size: clamp(30px, 3.2vw, 44px) !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.02em !important;
}

body.woocommerce-account .woocommerce {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto !important;
  padding: 0 24px 72px !important;
  color: var(--as-account-body);
  font-family: Inter, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  box-sizing: border-box;
}

body.woocommerce-account .woocommerce *,
body.woocommerce-account .woocommerce *::before,
body.woocommerce-account .woocommerce *::after {
  box-sizing: border-box;
}

body.woocommerce-account .woocommerce h1,
body.woocommerce-account .woocommerce h2,
body.woocommerce-account .woocommerce h3,
body.woocommerce-account .woocommerce h4 {
  color: var(--as-account-heading) !important;
  font-family: Manrope, Arial, sans-serif !important;
  line-height: 1.2 !important;
}

body.woocommerce-account .woocommerce h2 {
  margin: 0 0 18px !important;
  font-size: clamp(25px, 2.4vw, 34px) !important;
  font-weight: 700 !important;
}

body.woocommerce-account .woocommerce h3 {
  margin: 0 0 14px !important;
  font-size: clamp(21px, 2vw, 28px) !important;
  font-weight: 700 !important;
}

body.woocommerce-account .woocommerce p {
  margin-top: 0;
  margin-bottom: 16px;
}

body.woocommerce-account .woocommerce a {
  color: var(--as-account-primary);
  text-decoration: none;
}

body.woocommerce-account .woocommerce a:hover {
  color: var(--as-account-primary-hover);
  text-decoration: underline;
}

body.logged-in.woocommerce-account .woocommerce {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  column-gap: 36px;
  align-items: start;
}

body.logged-in.woocommerce-account .woocommerce > .woocommerce-notices-wrapper,
body.logged-in.woocommerce-account .woocommerce > .woocommerce-error,
body.logged-in.woocommerce-account .woocommerce > .woocommerce-message,
body.logged-in.woocommerce-account .woocommerce > .woocommerce-info {
  grid-column: 1 / -1;
}

body.woocommerce-account .woocommerce-MyAccount-navigation,
body.woocommerce-account .woocommerce-MyAccount-content {
  float: none !important;
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
}

body.woocommerce-account .woocommerce-MyAccount-navigation {
  overflow: hidden;
  background: var(--as-account-card);
  border: 1px solid var(--as-account-border-soft);
  border-radius: var(--as-account-radius);
  box-shadow: 0 10px 28px rgba(47, 52, 64, 0.05);
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul {
  display: block !important;
  margin: 0 !important;
  padding: 8px !important;
  list-style: none !important;
}

body.woocommerce-account .woocommerce-MyAccount-navigation li {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

body.woocommerce-account .woocommerce-MyAccount-navigation li::before,
body.woocommerce-account .woocommerce-MyAccount-navigation li::marker {
  display: none !important;
  content: none !important;
}

body.woocommerce-account .woocommerce-MyAccount-navigation li a {
  display: flex !important;
  align-items: center !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 10px 13px !important;
  color: var(--as-account-heading) !important;
  background: transparent !important;
  border-radius: 9px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  text-decoration: none !important;
}

body.woocommerce-account .woocommerce-MyAccount-navigation li a:hover {
  color: var(--as-account-primary) !important;
  background: var(--as-account-bg) !important;
  text-decoration: none !important;
}

body.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
  color: #ffffff !important;
  background: var(--as-account-primary) !important;
}

body.woocommerce-account
  .woocommerce-MyAccount-navigation
  li.woocommerce-MyAccount-navigation-link--customer-logout {
  margin-top: 6px !important;
  padding-top: 6px !important;
  border-top: 1px solid var(--as-account-border-soft) !important;
}

body.woocommerce-account
  .woocommerce-MyAccount-navigation
  li.woocommerce-MyAccount-navigation-link--as-reservations
  a {
  color: var(--as-account-primary) !important;
  background: #f3f7ff !important;
}

body.woocommerce-account
  .woocommerce-MyAccount-navigation
  li.woocommerce-MyAccount-navigation-link--as-reservations
  a:hover {
  color: #ffffff !important;
  background: var(--as-account-primary) !important;
}

body.logged-in.woocommerce-account .woocommerce-MyAccount-content {
  min-height: 300px;
  padding: 26px;
  background: var(--as-account-card);
  border: 1px solid var(--as-account-border-soft);
  border-radius: var(--as-account-radius);
}

body.woocommerce-account .woocommerce-MyAccount-content > :first-child {
  margin-top: 0 !important;
}

body.woocommerce-account .woocommerce-MyAccount-content > :last-child {
  margin-bottom: 0 !important;
}

body.woocommerce-account #customer_login {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px !important;
  width: 100% !important;
  margin: 0 !important;
}

body.woocommerce-account #customer_login::before,
body.woocommerce-account #customer_login::after {
  display: none !important;
}

body.woocommerce-account #customer_login .col-1,
body.woocommerce-account #customer_login .col-2 {
  float: none !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
}

body.woocommerce-account form.login,
body.woocommerce-account form.register,
body.woocommerce-account form.woocommerce-form-login,
body.woocommerce-account form.woocommerce-form-register,
body.woocommerce-account form.woocommerce-ResetPassword {
  margin: 0 !important;
  padding: 26px !important;
  background: var(--as-account-card) !important;
  border: 1px solid var(--as-account-border-soft) !important;
  border-radius: var(--as-account-radius) !important;
  box-shadow: none !important;
}

body.woocommerce-account form.woocommerce-ResetPassword {
  width: 100%;
  max-width: 680px;
}

body.woocommerce-account .woocommerce-form-row,
body.woocommerce-account .form-row {
  margin: 0 0 18px !important;
  padding: 0 !important;
}

body.woocommerce-account .form-row-first,
body.woocommerce-account .form-row-last {
  width: calc(50% - 8px) !important;
}

body.woocommerce-account .form-row-first {
  float: left !important;
}

body.woocommerce-account .form-row-last {
  float: right !important;
}

body.woocommerce-account label {
  display: block;
  margin: 0 0 7px !important;
  color: var(--as-account-heading) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.45 !important;
}

body.woocommerce-account .required {
  color: var(--as-account-error) !important;
}

body.woocommerce-account input[type="text"],
body.woocommerce-account input[type="email"],
body.woocommerce-account input[type="tel"],
body.woocommerce-account input[type="password"],
body.woocommerce-account input[type="number"],
body.woocommerce-account select,
body.woocommerce-account textarea,
body.woocommerce-account .select2-container .select2-selection--single {
  width: 100% !important;
  min-height: 50px !important;
  margin: 0 !important;
  padding: 12px 14px !important;
  color: var(--as-account-heading) !important;
  background: #ffffff !important;
  border: 1px solid var(--as-account-border) !important;
  border-radius: 10px !important;
  font-family: Inter, Arial, sans-serif !important;
  font-size: 15px !important;
  line-height: 1.4 !important;
  box-shadow: none !important;
}

body.woocommerce-account textarea {
  min-height: 120px !important;
  resize: vertical !important;
}

body.woocommerce-account input:focus,
body.woocommerce-account select:focus,
body.woocommerce-account textarea:focus,
body.woocommerce-account .select2-container--focus .select2-selection--single {
  border-color: var(--as-account-primary) !important;
  box-shadow: inset 0 0 0 1px var(--as-account-primary) !important;
  outline: 0 !important;
}

body.woocommerce-account .select2-container {
  width: 100% !important;
}

body.woocommerce-account .select2-container .select2-selection--single {
  display: flex !important;
  align-items: center !important;
}

body.woocommerce-account
  .select2-container
  .select2-selection--single
  .select2-selection__rendered {
  padding: 0 !important;
  color: var(--as-account-heading) !important;
}

body.woocommerce-account .password-input {
  display: block !important;
  position: relative !important;
}

body.woocommerce-account .show-password-input {
  top: 50% !important;
  right: 14px !important;
  transform: translateY(-50%) !important;
}

body.woocommerce-account fieldset {
  margin: 28px 0 0 !important;
  padding: 22px !important;
  background: var(--as-account-bg) !important;
  border: 1px solid var(--as-account-border-soft) !important;
  border-radius: 12px !important;
}

body.woocommerce-account fieldset legend {
  padding: 0 8px !important;
  color: var(--as-account-heading) !important;
  font-family: Manrope, Arial, sans-serif !important;
  font-size: 18px !important;
  font-weight: 700 !important;
}

body.woocommerce-account input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  margin: 0 6px 0 0 !important;
  accent-color: var(--as-account-primary);
  vertical-align: middle !important;
}

body.woocommerce-account .woocommerce-form-login__rememberme {
  display: inline-flex !important;
  align-items: center !important;
  margin: 0 0 0 12px !important;
}

body.woocommerce-account em,
body.woocommerce-account .woocommerce-form-row span.description {
  color: var(--as-account-muted) !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
}

body.woocommerce-account .woocommerce button.button,
body.woocommerce-account .woocommerce a.button,
body.woocommerce-account .woocommerce input.button,
body.woocommerce-account .woocommerce .button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 46px !important;
  margin: 0 !important;
  padding: 11px 19px !important;
  color: #ffffff !important;
  background: var(--as-account-primary) !important;
  border: 1px solid var(--as-account-primary) !important;
  border-radius: 10px !important;
  font-family: Inter, Arial, sans-serif !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  box-shadow: none !important;
}

body.woocommerce-account .woocommerce button.button:hover,
body.woocommerce-account .woocommerce a.button:hover,
body.woocommerce-account .woocommerce input.button:hover,
body.woocommerce-account .woocommerce .button:hover {
  color: #ffffff !important;
  background: var(--as-account-primary-hover) !important;
  border-color: var(--as-account-primary-hover) !important;
  text-decoration: none !important;
}

body.woocommerce-account .woocommerce-error,
body.woocommerce-account .woocommerce-info,
body.woocommerce-account .woocommerce-message {
  width: 100%;
  margin: 0 0 24px !important;
  padding: 15px 18px 15px 48px !important;
  color: var(--as-account-heading) !important;
  background: var(--as-account-bg) !important;
  border: 1px solid var(--as-account-border-soft) !important;
  border-top: 0 !important;
  border-left: 4px solid var(--as-account-primary) !important;
  border-radius: 0 10px 10px 0 !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
}

body.woocommerce-account .woocommerce-error {
  background: #fff6f6 !important;
  border-left-color: var(--as-account-error) !important;
}

body.woocommerce-account .woocommerce-message {
  background: #f7fff1 !important;
  border-left-color: var(--as-account-success) !important;
}

body.woocommerce-account .woocommerce-error::before,
body.woocommerce-account .woocommerce-info::before,
body.woocommerce-account .woocommerce-message::before {
  top: 15px !important;
  left: 18px !important;
  color: var(--as-account-primary) !important;
}

body.woocommerce-account .woocommerce-error::before {
  color: var(--as-account-error) !important;
}

body.woocommerce-account .woocommerce-message::before {
  color: var(--as-account-success) !important;
}

body.woocommerce-account table.shop_table,
body.woocommerce-account table.woocommerce-orders-table,
body.woocommerce-account table.woocommerce-table {
  width: 100% !important;
  margin: 0 !important;
  overflow: hidden !important;
  background: var(--as-account-card) !important;
  border: 1px solid var(--as-account-border-soft) !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border-radius: 12px !important;
}

body.woocommerce-account table.shop_table th,
body.woocommerce-account table.shop_table td,
body.woocommerce-account table.woocommerce-orders-table th,
body.woocommerce-account table.woocommerce-orders-table td,
body.woocommerce-account table.woocommerce-table th,
body.woocommerce-account table.woocommerce-table td {
  padding: 14px 16px !important;
  color: var(--as-account-body) !important;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid var(--as-account-border-soft) !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
  text-align: left !important;
  vertical-align: middle !important;
  overflow-wrap: anywhere !important;
}

body.woocommerce-account table.shop_table thead th,
body.woocommerce-account table.woocommerce-orders-table thead th,
body.woocommerce-account table.woocommerce-table thead th {
  color: var(--as-account-heading) !important;
  background: var(--as-account-bg) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
}

body.woocommerce-account table.shop_table tr:last-child th,
body.woocommerce-account table.shop_table tr:last-child td,
body.woocommerce-account table.woocommerce-orders-table tr:last-child th,
body.woocommerce-account table.woocommerce-orders-table tr:last-child td,
body.woocommerce-account table.woocommerce-table tr:last-child th,
body.woocommerce-account table.woocommerce-table tr:last-child td {
  border-bottom: 0 !important;
}

body.woocommerce-account
  table.woocommerce-orders-table
  .woocommerce-orders-table__cell-order-actions {
  white-space: nowrap !important;
}

body.woocommerce-account
  table.woocommerce-orders-table
  .woocommerce-orders-table__cell-order-actions
  .button {
  min-height: 38px !important;
  padding: 8px 14px !important;
  font-size: 14px !important;
}

body.woocommerce-account .woocommerce-order-details,
body.woocommerce-account .woocommerce-customer-details {
  margin: 28px 0 0 !important;
}

body.woocommerce-account .woocommerce-customer-details address {
  padding: 18px 20px !important;
  color: var(--as-account-body) !important;
  background: var(--as-account-bg) !important;
  border: 1px solid var(--as-account-border-soft) !important;
  border-radius: 10px !important;
  font-style: normal !important;
  line-height: 1.65 !important;
}

body.woocommerce-account .woocommerce-Addresses {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px !important;
  margin: 24px 0 0 !important;
}

body.woocommerce-account .woocommerce-Addresses::before,
body.woocommerce-account .woocommerce-Addresses::after {
  display: none !important;
}

body.woocommerce-account .woocommerce-Address {
  float: none !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 22px !important;
  background: var(--as-account-bg) !important;
  border: 1px solid var(--as-account-border-soft) !important;
  border-radius: 12px !important;
}

body.woocommerce-account .woocommerce-Address-title {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 16px !important;
  margin: 0 0 14px !important;
}

body.woocommerce-account .woocommerce-Address-title h3 {
  margin: 0 !important;
}

body.woocommerce-account .woocommerce-Address-title .edit {
  flex: 0 0 auto !important;
  font-size: 14px !important;
  font-weight: 600 !important;
}

body.woocommerce-account .woocommerce-Address address {
  margin: 0 !important;
  color: var(--as-account-body) !important;
  font-style: normal !important;
  line-height: 1.65 !important;
}

body.woocommerce-account .woocommerce-address-fields__field-wrapper,
body.woocommerce-account .woocommerce-EditAccountForm {
  display: flow-root;
}

body.woocommerce-account .woocommerce-MyAccount-content > p:first-of-type {
  color: var(--as-account-heading);
  font-weight: 600;
}

body.woocommerce-account .woocommerce-MyAccount-content .wishlist-empty,
body.woocommerce-account .woocommerce-MyAccount-content .tinvwl-table-manage-list,
body.woocommerce-account .woocommerce-MyAccount-content .shop_table.wishlist_table {
  margin-top: 18px !important;
}

body.woocommerce-account .woocommerce-MyAccount-content .wishlist-empty,
body.woocommerce-account .woocommerce-MyAccount-content .yith-wcwl-wishlistaddedbrowse,
body.woocommerce-account .woocommerce-MyAccount-content .yith-wcwl-wishlistexistsbrowse {
  padding: 18px 20px !important;
  background: var(--as-account-bg) !important;
  border: 1px solid var(--as-account-border-soft) !important;
  border-radius: 10px !important;
}

body.woocommerce-account .woocommerce button:focus-visible,
body.woocommerce-account .woocommerce a:focus-visible,
body.woocommerce-account .woocommerce input:focus-visible,
body.woocommerce-account .woocommerce select:focus-visible,
body.woocommerce-account .woocommerce textarea:focus-visible {
  outline: 2px solid var(--as-account-heading) !important;
  outline-offset: 3px !important;
}

@media (min-width: 768px) and (max-width: 980px) {
  body.woocommerce-account .entry-title,
  body.woocommerce-account .wp-block-post-title {
    padding: 36px 22px 0 !important;
  }

  body.woocommerce-account .woocommerce {
    padding-right: 22px !important;
    padding-bottom: 64px !important;
    padding-left: 22px !important;
  }

  body.logged-in.woocommerce-account .woocommerce {
    grid-template-columns: 220px minmax(0, 1fr);
    column-gap: 24px;
  }

  body.logged-in.woocommerce-account .woocommerce-MyAccount-content {
    padding: 22px;
  }

  body.woocommerce-account #customer_login {
    gap: 24px !important;
  }

  body.woocommerce-account form.login,
  body.woocommerce-account form.register,
  body.woocommerce-account form.woocommerce-form-login,
  body.woocommerce-account form.woocommerce-form-register {
    padding: 22px !important;
  }
}

@media (max-width: 767px) {
  body.woocommerce-account .entry-title,
  body.woocommerce-account .wp-block-post-title {
    padding: 32px 18px 0 !important;
    font-size: 32px !important;
  }

  body.woocommerce-account .woocommerce {
    padding: 0 18px 52px !important;
  }

  body.logged-in.woocommerce-account .woocommerce {
    display: block !important;
  }

  body.woocommerce-account .woocommerce-MyAccount-navigation {
    margin-bottom: 22px !important;
    box-shadow: none !important;
  }

  body.woocommerce-account .woocommerce-MyAccount-navigation ul {
    padding: 6px !important;
  }

  body.woocommerce-account .woocommerce-MyAccount-navigation li a {
    min-height: 42px !important;
    padding: 9px 11px !important;
    font-size: 14px !important;
  }

  body.logged-in.woocommerce-account .woocommerce-MyAccount-content {
    min-height: 0 !important;
    padding: 20px 18px !important;
  }

  body.woocommerce-account #customer_login {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }

  body.woocommerce-account form.login,
  body.woocommerce-account form.register,
  body.woocommerce-account form.woocommerce-form-login,
  body.woocommerce-account form.woocommerce-form-register,
  body.woocommerce-account form.woocommerce-ResetPassword {
    padding: 20px !important;
  }

  body.woocommerce-account .form-row-first,
  body.woocommerce-account .form-row-last {
    float: none !important;
    width: 100% !important;
  }

  body.woocommerce-account .woocommerce-form-login__rememberme {
    margin-top: 10px !important;
    margin-left: 0 !important;
  }

  body.woocommerce-account fieldset {
    padding: 18px !important;
  }

  body.woocommerce-account .woocommerce-Addresses {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  body.woocommerce-account .woocommerce-Address {
    padding: 18px !important;
  }

  body.woocommerce-account .woocommerce-Address-title {
    display: block !important;
  }

  body.woocommerce-account .woocommerce-Address-title .edit {
    display: inline-block !important;
    margin-top: 8px !important;
  }

  body.woocommerce-account table.woocommerce-orders-table {
    display: block !important;
    overflow: visible !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
  }

  body.woocommerce-account table.woocommerce-orders-table thead {
    display: none !important;
  }

  body.woocommerce-account table.woocommerce-orders-table tbody,
  body.woocommerce-account table.woocommerce-orders-table tr,
  body.woocommerce-account table.woocommerce-orders-table td {
    display: block !important;
    width: 100% !important;
  }

  body.woocommerce-account table.woocommerce-orders-table tr {
    margin: 0 0 18px !important;
    overflow: hidden !important;
    background: var(--as-account-card) !important;
    border: 1px solid var(--as-account-border-soft) !important;
    border-radius: 12px !important;
  }

  body.woocommerce-account table.woocommerce-orders-table td {
    display: grid !important;
    grid-template-columns: minmax(105px, 0.8fr) minmax(0, 1.2fr) !important;
    gap: 12px !important;
    align-items: center !important;
    padding: 12px 14px !important;
    text-align: right !important;
  }

  body.woocommerce-account table.woocommerce-orders-table td::before {
    color: var(--as-account-heading) !important;
    font-weight: 700 !important;
    text-align: left !important;
  }

  body.woocommerce-account
    table.woocommerce-orders-table
    .woocommerce-orders-table__cell-order-actions {
    display: block !important;
    text-align: left !important;
  }

  body.woocommerce-account
    table.woocommerce-orders-table
    .woocommerce-orders-table__cell-order-actions::before {
    display: block !important;
    margin-bottom: 10px !important;
  }

  body.woocommerce-account
    table.woocommerce-orders-table
    .woocommerce-orders-table__cell-order-actions
    .button {
    width: 100% !important;
  }

  body.woocommerce-account table.shop_table th,
  body.woocommerce-account table.shop_table td,
  body.woocommerce-account table.woocommerce-table th,
  body.woocommerce-account table.woocommerce-table td {
    padding: 12px 10px !important;
    font-size: 13px !important;
  }

  body.woocommerce-account .woocommerce-customer-details .woocommerce-column {
    float: none !important;
    width: 100% !important;
    margin: 0 0 20px !important;
  }
}

@media (max-width: 380px) {
  body.woocommerce-account .entry-title,
  body.woocommerce-account .wp-block-post-title {
    padding-right: 14px !important;
    padding-left: 14px !important;
  }

  body.woocommerce-account .woocommerce {
    padding-right: 14px !important;
    padding-left: 14px !important;
  }

  body.logged-in.woocommerce-account .woocommerce-MyAccount-content {
    padding: 18px 14px !important;
  }

  body.woocommerce-account form.login,
  body.woocommerce-account form.register,
  body.woocommerce-account form.woocommerce-form-login,
  body.woocommerce-account form.woocommerce-form-register,
  body.woocommerce-account form.woocommerce-ResetPassword {
    padding: 18px 14px !important;
  }

  body.woocommerce-account table.woocommerce-orders-table td {
    grid-template-columns: 92px minmax(0, 1fr) !important;
    gap: 8px !important;
    padding: 11px 12px !important;
  }
}

/* =========================================================
   11.1 My Account grid placement and login spacing fix
   Prevents WooCommerce clearfix pseudo-elements from becoming
   grid items and explicitly aligns navigation/content columns.
   ========================================================= */

@media (min-width: 768px) {
  body.logged-in.woocommerce-account .woocommerce::before,
  body.logged-in.woocommerce-account .woocommerce::after {
    display: none !important;
    content: none !important;
  }

  body.logged-in.woocommerce-account .woocommerce-MyAccount-navigation {
    grid-column: 1 !important;
    grid-row: 1 !important;
    align-self: start !important;
  }

  body.logged-in.woocommerce-account .woocommerce-MyAccount-content {
    grid-column: 2 !important;
    grid-row: 1 !important;
    align-self: start !important;
  }
}

body.woocommerce-account .woocommerce-form-login__submit {
  margin-right: 16px !important;
}

body.woocommerce-account .woocommerce-form-login__rememberme {
  gap: 7px !important;
}

@media (max-width: 767px) {
  body.woocommerce-account .woocommerce-form-login__submit {
    margin-right: 18px !important;
  }

  body.woocommerce-account .woocommerce-form-login__rememberme {
    margin-left: 0 !important;
  }
}

/* =========================================================
   11.2 Address card actions and mobile login spacing
   Keeps address edit links inside their cards and separates
   the login button from the Remember me checkbox.
   ========================================================= */

/* Desktop: place the edit action below the address heading. */
@media (min-width: 981px) {
  body.woocommerce-account .woocommerce-Address-title {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
    align-items: start !important;
  }

  body.woocommerce-account .woocommerce-Address-title h3 {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow-wrap: break-word !important;
  }

  body.woocommerce-account .woocommerce-Address-title .edit {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: fit-content !important;
    max-width: 100% !important;
    margin: 0 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
  }
}

/* Tablet: stack the two address cards for readable content. */
@media (min-width: 768px) and (max-width: 980px) {
  body.woocommerce-account .woocommerce-Addresses {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  body.woocommerce-account .woocommerce-Address-title {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 9px !important;
    align-items: start !important;
  }

  body.woocommerce-account .woocommerce-Address-title h3 {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow-wrap: break-word !important;
  }

  body.woocommerce-account .woocommerce-Address-title .edit {
    display: inline-flex !important;
    width: fit-content !important;
    max-width: 100% !important;
    margin: 0 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }
}

/* Mobile login action row. */
@media (max-width: 767px) {
  body.woocommerce-account
    form.woocommerce-form-login
    .form-row:last-of-type {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    column-gap: 16px !important;
    row-gap: 10px !important;
  }

  body.woocommerce-account
    form.woocommerce-form-login
    .woocommerce-form-login__submit {
    margin: 0 !important;
  }

  body.woocommerce-account
    form.woocommerce-form-login
    .woocommerce-form-login__rememberme {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 !important;
  }

  body.woocommerce-account
    form.woocommerce-form-login
    .woocommerce-form-login__rememberme
    input[type="checkbox"] {
    flex: 0 0 auto !important;
    margin: 0 !important;
  }
}

/* =========================================================
   11.3 Mobile My Account form width and login action spacing
   Widens the form content area and guarantees space between
   the Login button and the Remember me control.
   ========================================================= */

@media (max-width: 767px) {
  /* Reduce outer page padding on narrow screens. */
  body.woocommerce-account .woocommerce {
    padding-right: 12px !important;
    padding-left: 12px !important;
  }

  /* Let login, registration and password forms use more width. */
  body.woocommerce-account form.login,
  body.woocommerce-account form.register,
  body.woocommerce-account form.woocommerce-form-login,
  body.woocommerce-account form.woocommerce-form-register,
  body.woocommerce-account form.woocommerce-ResetPassword {
    width: 100% !important;
    max-width: none !important;
    padding-right: 14px !important;
    padding-left: 14px !important;
  }

  /* Keep a clear gap even if WooCommerce changes the row markup. */
  body.woocommerce-account
    form.woocommerce-form-login
    .woocommerce-form-login__submit {
    margin-right: 16px !important;
    margin-bottom: 8px !important;
  }

  body.woocommerce-account
    form.woocommerce-form-login
    .woocommerce-form-login__rememberme {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 0 8px 0 !important;
    white-space: nowrap !important;
  }

  body.woocommerce-account
    form.woocommerce-form-login
    .woocommerce-form-login__rememberme
    input[type="checkbox"] {
    flex: 0 0 auto !important;
    margin: 0 !important;
  }
}

@media (max-width: 380px) {
  body.woocommerce-account .woocommerce {
    padding-right: 10px !important;
    padding-left: 10px !important;
  }

  body.woocommerce-account form.login,
  body.woocommerce-account form.register,
  body.woocommerce-account form.woocommerce-form-login,
  body.woocommerce-account form.woocommerce-form-register,
  body.woocommerce-account form.woocommerce-ResetPassword {
    padding-right: 12px !important;
    padding-left: 12px !important;
  }

  body.woocommerce-account
    form.woocommerce-form-login
    .woocommerce-form-login__submit {
    margin-right: 14px !important;
  }
}

/* Desktop — AS empty state notice */

@media (min-width: 981px) {

  body.tax-product_cat .woocommerce .woocommerce-info,
  body.post-type-archive-product .woocommerce .woocommerce-info {
    margin: 18px 0 0 !important;
    padding: 16px 18px !important;

    background: #b64a9a !important;
    color: #ffffff !important;

    border: 0 !important;
    border-radius: 10px !important;
    box-shadow: none !important;

    font-family: Inter, Arial, sans-serif !important;
    font-weight: 600 !important;
    line-height: 1.45 !important;
  }

  body.tax-product_cat .woocommerce .woocommerce-info::before,
  body.post-type-archive-product .woocommerce .woocommerce-info::before {
    color: #ffffff !important;
  }

  body.tax-product_cat .woocommerce .woocommerce-info a,
  body.post-type-archive-product .woocommerce .woocommerce-info a {
    color: #ffffff !important;
    text-decoration: underline !important;
  }
}

/* =========================================================
   APTEKA SANTE – WooCommerce My Account / Orders
   Tablet + Mobile responsive fixes
   ========================================================= */

/* Tablet and below */
@media (max-width: 980px) {

    /* Orders table -> cards */
    .woocommerce-account table.woocommerce-orders-table,
    .woocommerce-account table.woocommerce-orders-table tbody,
    .woocommerce-account table.woocommerce-orders-table tr,
    .woocommerce-account table.woocommerce-orders-table td {
        display: block;
        width: 100%;
    }

    .woocommerce-account table.woocommerce-orders-table thead {
        display: none;
    }

    .woocommerce-account table.woocommerce-orders-table tr {
        margin: 0 0 16px;
        border: 1px solid #e3e7ef;
        border-radius: 12px;
        overflow: hidden;
        background: #fff;
    }

    .woocommerce-account table.woocommerce-orders-table td {
        box-sizing: border-box;
        padding: 12px 14px;
        border-bottom: 1px solid #e8ebf1;
        text-align: right;
        min-height: 45px;
        word-break: normal;
        overflow-wrap: break-word;
    }

    .woocommerce-account table.woocommerce-orders-table td:last-child {
        border-bottom: 0;
    }

    /* WooCommerce generates the label from data-title */
    .woocommerce-account table.woocommerce-orders-table td::before {
        float: left;
        font-weight: 700;
        text-align: left;
        margin-right: 15px;
    }

    /* Actions */
    .woocommerce-account
    table.woocommerce-orders-table
    td.woocommerce-orders-table__cell-order-actions {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .woocommerce-account
    table.woocommerce-orders-table
    td.woocommerce-orders-table__cell-order-actions::before {
        float: none;
    }

    .woocommerce-account
    table.woocommerce-orders-table
    td.woocommerce-orders-table__cell-order-actions
    .button {
        width: auto;
        min-width: 110px;
        max-width: 100%;
        margin: 0;
        white-space: nowrap;
        box-sizing: border-box;
    }
}

/* =========================================================
   8.1 APTEKA SANTE — Order Received next steps
   Native WooCommerce thank-you endpoint CTA panel
   ========================================================= */

body.woocommerce-order-received .as-order-next-steps {
  grid-column: 1 / -1;
  width: 100%;
  margin: 0;
  padding: 26px 28px;
  color: var(--as-order-body);
  background: var(--as-order-bg);
  border: 1px solid var(--as-order-border-soft);
  border-left: 4px solid var(--as-order-primary);
  border-radius: 0 var(--as-order-radius) var(--as-order-radius) 0;
}

body.woocommerce-order-received .as-order-next-steps h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 2.2vw, 30px);
}

body.woocommerce-order-received .as-order-next-steps p {
  max-width: 760px;
  margin: 0 0 20px;
}

body.woocommerce-order-received .as-order-next-steps__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

body.woocommerce-order-received
  .woocommerce-order
  a.button.as-order-next-steps__secondary {
  color: var(--as-order-primary) !important;
  background: transparent !important;
  border-color: var(--as-order-primary) !important;
}

body.woocommerce-order-received
  .woocommerce-order
  a.button.as-order-next-steps__secondary:hover {
  color: #ffffff !important;
  background: var(--as-order-primary-hover) !important;
  border-color: var(--as-order-primary-hover) !important;
}

@media (max-width: 767px) {
  body.woocommerce-order-received .as-order-next-steps {
    padding: 22px 18px;
  }

  body.woocommerce-order-received .as-order-next-steps__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  body.woocommerce-order-received
    .as-order-next-steps__actions
    .button {
    width: 100%;
  }
}

/* =========================================================
   APTEKA SANTE – Order details
   Narrow tablet fix: 768–900px
   ========================================================= */

@media (min-width: 768px) and (max-width: 900px) {

    /* Customer addresses: 2 columns -> 1 column */
    .woocommerce-account
    .woocommerce-customer-details
    .woocommerce-columns {
        display: block !important;
    }

    .woocommerce-account
    .woocommerce-customer-details
    .woocommerce-column {
        float: none !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 24px !important;
    }

    .woocommerce-account
    .woocommerce-customer-details
    .woocommerce-column:last-child {
        margin-bottom: 0 !important;
    }

    /* Prevent headings from colliding */
    .woocommerce-account
    .woocommerce-customer-details
    .woocommerce-column__title {
        width: 100%;
        max-width: 100%;
        margin-bottom: 16px;
        overflow-wrap: normal;
        word-break: normal;
    }

    /* Address card */
    .woocommerce-account
    .woocommerce-customer-details
    address {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        overflow-wrap: break-word;
        word-break: normal;
    }

    /* Phone and e-mail */
    .woocommerce-account
    .woocommerce-customer-details--phone,
    .woocommerce-account
    .woocommerce-customer-details--email {
        max-width: 100%;
        overflow-wrap: anywhere;
        word-break: normal;
    }
}

@media (max-width: 980px) {

    .woocommerce-account .woocommerce-customer-details {
        min-width: 0;
    }

    .woocommerce-account .woocommerce-customer-details address {
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
        overflow-wrap: break-word;
    }

    .woocommerce-account .woocommerce-customer-details--phone,
    .woocommerce-account .woocommerce-customer-details--email {
        max-width: 100%;
        overflow-wrap: anywhere;
    }
}

@media (max-width: 767px) {

    .woocommerce-account
    table.woocommerce-orders-table
    td.woocommerce-orders-table__cell-order-actions {
        overflow: visible;
    }

    .woocommerce-account
    table.woocommerce-orders-table
    td.woocommerce-orders-table__cell-order-actions
    .button {
        width: auto;
        min-width: 120px;
        max-width: calc(100% - 90px);
        padding-left: 18px;
        padding-right: 18px;
        text-align: center;
    }
}

/* WooCommerce Checkout: разстояние между радиобутона и платежния метод */
body.woocommerce-checkout
span.wc-block-components-payment-method-label {
	padding-left: 24px;
}

/* =========================================================
   APTEKA SANTE — WooCommerce archive product cards
   Final consolidated CTA + Tablet grid
   ========================================================= */

/*
 * Base CTA layout for WooCommerce archive cards.
 * The wrapper is centered inside the product card and both actions
 * occupy the full wrapper width.
 */
.as-product-card-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;

    width: calc(100% - 36px);
    max-width: calc(100% - 36px);

    margin: 16px auto 0 !important;
    padding: 0;

    float: none !important;
    clear: both !important;
    align-self: center !important;
    box-sizing: border-box;
}

.as-product-card-actions .button,
.as-product-card-actions a.button,
.as-product-card-actions .add_to_cart_button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 46px;

    margin: 0 !important;
    padding: 10px 14px !important;

    float: none !important;
    align-self: stretch !important;
    box-sizing: border-box !important;

    text-align: center !important;
    white-space: normal !important;
    line-height: 1.25;
}

/* Secondary action — product details */
.as-product-card-details {
    background: transparent !important;
    color: #4f7edb !important;
    border: 2px solid #4f7edb !important;
}

/* Separator between the two actions */
.as-product-card-actions-separator {
    display: block;
    width: 100%;

    color: #777;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    text-align: center;
}

/* Neutralize Divi button expansion and icons in archive cards */
.as-product-card-actions .button:hover {
    margin: 0 !important;
    padding: 10px 14px !important;
}

.as-product-card-actions .button::before,
.as-product-card-actions .button::after {
    display: none !important;
}

/*
 * Divi Shop Body Layout contains a more specific archive rule that adds
 * horizontal button margins. This targeted override wins that cascade
 * without changing the Divi layout itself.
 */
.as-shop-archive
.as-shop-products
ul.products
li.product
.as-product-card-actions {
    width: calc(100% - 36px) !important;
    max-width: calc(100% - 36px) !important;
    margin: 16px auto 0 !important;
    padding: 0 !important;
    float: none !important;
    clear: both !important;
    align-self: center !important;
    box-sizing: border-box !important;
}

.as-shop-archive
.as-shop-products
ul.products
li.product
.as-product-card-actions
.button,
.as-shop-archive
.as-shop-products
ul.products
li.product
.as-product-card-actions
a.button,
.as-shop-archive
.as-shop-products
ul.products
li.product
.as-product-card-actions
.add_to_cart_button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    margin: 0 !important;
    padding: 10px 14px !important;

    float: none !important;
    align-self: stretch !important;
    box-sizing: border-box !important;

    text-align: center !important;
    white-space: normal !important;
}

.as-shop-archive
.as-shop-products
ul.products
li.product
.as-product-card-actions
.button:hover {
    margin: 0 !important;
    padding: 10px 14px !important;
}

.as-shop-archive
.as-shop-products
ul.products
li.product
.as-product-card-actions
.button::before,
.as-shop-archive
.as-shop-products
ul.products
li.product
.as-product-card-actions
.button::after {
    display: none !important;
}

/* Slightly tighter CTA spacing on Mobile */
@media (max-width: 767px) {
    .as-product-card-actions,
    .as-shop-archive
    .as-shop-products
    ul.products
    li.product
    .as-product-card-actions {
        width: calc(100% - 32px) !important;
        max-width: calc(100% - 32px) !important;
        margin: 14px auto 0 !important;
        gap: 7px;
    }

    .as-product-card-actions .button {
        min-height: 44px;
    }
}

/* =========================================================
   WooCommerce archive grid / Tablet
   2 columns between 768px and 980px
   ========================================================= */

@media only screen and (min-width: 768px) and (max-width: 980px) {

    /*
     * WooCommerce clearfix pseudo-elements become grid items when
     * ul.products is converted to CSS Grid, so disable them.
     */
    body.woocommerce.archive ul.products.columns-4::before,
    body.woocommerce.archive ul.products.columns-4::after,
    body.woocommerce-page.archive ul.products.columns-4::before,
    body.woocommerce-page.archive ul.products.columns-4::after {
        content: none !important;
        display: none !important;
    }

    body.woocommerce.archive ul.products.columns-4,
    body.woocommerce-page.archive ul.products.columns-4 {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        grid-auto-flow: row !important;
        column-gap: 32px !important;
        row-gap: 48px !important;
    }

    body.woocommerce.archive ul.products.columns-4 > li.product,
    body.woocommerce-page.archive ul.products.columns-4 > li.product {
        display: block !important;
        float: none !important;
        clear: none !important;

        grid-column: auto !important;
        grid-row: auto !important;

        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    body.woocommerce.archive ul.products.columns-4 > li.product.first,
    body.woocommerce.archive ul.products.columns-4 > li.product.last,
    body.woocommerce-page.archive ul.products.columns-4 > li.product.first,
    body.woocommerce-page.archive ul.products.columns-4 > li.product.last {
        float: none !important;
        clear: none !important;
        margin-right: 0 !important;
    }
}

/* =========================================================
   12. APTEKA SANTE — Cart Theme Builder support
   Structural styles for AS_Cart_Body_Layout.
   The Divi template now contains layout only; Cart CSS lives here.
   ========================================================= */

.as-cart-template,
.as-cart-template * {
  box-sizing: border-box;
}

.as-cart-dynamic-area {
  width: 100% !important;
}

/* The Theme Builder provides its own empty-cart state. */
.as-cart-post-content .wp-block-woocommerce-empty-cart-block,
.as-cart-post-content .cart-empty,
.as-cart-post-content .return-to-shop,
.as-cart-post-content .wc-empty-cart-message {
  display: none !important;
}

.as-empty-cart-state {
  display: block !important;
  width: 100% !important;
  max-width: 720px !important;
  margin: 0 auto !important;
  padding: 42px !important;
  text-align: center !important;
  background: #ffffff !important;
  border: 1px solid #eef1f4 !important;
  border-radius: 14px !important;
  box-shadow: 0 8px 24px rgba(47, 52, 64, 0.06) !important;
}

.as-empty-cart-state h2 {
  margin-bottom: 14px !important;
}

.as-empty-cart-state .et_pb_button_module_wrapper {
  margin-top: 24px !important;
}

/* A real product row exists only when the cart contains an item. */
.as-cart-dynamic-area:has(.wc-block-cart-items__row, .woocommerce-cart-form__cart-item)
  .as-empty-cart-state {
  display: none !important;
}

/* Keep the Cart block's own cross-sell block hidden. Divi's native
   Woo Cross Sells module is the single cross-sell renderer on this page. */
.as-cart-post-content .wp-block-woocommerce-cart-cross-sells-block,
.as-cart-post-content .wp-block-woocommerce-cart-cross-sells-products-block,
.as-cart-post-content .wc-block-cart__cross-sells {
  display: none !important;
}

.as-cart-info-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 20px !important;
  width: 100% !important;
  margin-top: 22px !important;
}

.as-cart-info-card {
  height: 100% !important;
  padding: 26px !important;
  background: #ffffff !important;
  border: 1px solid #eef1f4 !important;
  border-radius: 14px !important;
  box-shadow: 0 8px 24px rgba(47, 52, 64, 0.05) !important;
}

.as-cart-info-card h3 {
  margin-bottom: 12px !important;
}

@media (max-width: 980px) {
  .as-cart-info-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 767px) {
  .as-empty-cart-state {
    padding: 28px 22px !important;
  }

  .as-cart-info-card {
    padding: 22px !important;
  }
}

/* =========================================================
   12.1 APTEKA SANTE — Divi Woo Cross Sells product cards
   Native Divi product selection + AS card/actions presentation.
   ========================================================= */

/* The AS heading is already present directly above the Divi module. */
.as-divi-cart-cross-sells .cross-sells > h2,
.as-divi-cart-cross-sells > h2,
.as-divi-cart-cross-sells .et_pb_module_inner > h2 {
  display: none !important;
}

.as-divi-cart-cross-sells {
  margin-top: 24px !important;
}

.as-divi-cart-cross-sells ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  gap: 24px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.as-divi-cart-cross-sells ul.products::before,
.as-divi-cart-cross-sells ul.products::after {
  content: none !important;
  display: none !important;
}

.as-divi-cart-cross-sells ul.products li.product {
  display: flex !important;
  float: none !important;
  flex-direction: column !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 16px !important;
  overflow: hidden !important;
  background: #ffffff !important;
  border: 1px solid #eef1f4 !important;
  border-radius: 14px !important;
  box-shadow: 0 8px 24px rgba(47, 52, 64, 0.06) !important;
  box-sizing: border-box !important;
}

/* Divi wraps image/title/price in the product permalink. Keep that area
   flexible so the actions always align at the bottom of equal-height cards. */
.as-divi-cart-cross-sells ul.products li.product > a:first-child,
.as-divi-cart-cross-sells ul.products li.product .woocommerce-LoopProduct-link {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  width: 100% !important;
  min-width: 0 !important;
  color: inherit !important;
  text-decoration: none !important;
}

.as-divi-cart-cross-sells ul.products li.product img {
  display: block !important;
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  height: auto !important;
  margin: 0 0 16px !important;
  padding: 12px !important;
  object-fit: contain !important;
  background: #f7f8fa !important;
  border-radius: 10px !important;
  box-sizing: border-box !important;
}

.as-divi-cart-cross-sells .woocommerce-loop-product__title,
.as-divi-cart-cross-sells li.product h2 {
  min-height: 2.7em !important;
  margin: 0 !important;
  padding: 0 2px 10px !important;
  color: #2f3440 !important;
  font-family: Manrope, Arial, sans-serif !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  overflow-wrap: break-word !important;
}

.as-divi-cart-cross-sells li.product .price {
  display: block !important;
  margin: auto 0 0 !important;
  padding: 0 2px !important;
  color: #4c78d3 !important;
  font-family: Inter, Arial, sans-serif !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
}

/* Two-action Apteka Sante CTA: View product / or / Add to cart. */
.as-divi-cart-cross-sells .as-cart-cross-sell-actions {
  display: flex !important;
  flex: 0 0 auto !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 8px !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 16px 0 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

.as-divi-cart-cross-sells .as-cart-cross-sell-actions .button,
.as-divi-cart-cross-sells .as-cart-cross-sell-actions a.button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  min-height: 46px !important;
  margin: 0 !important;
  padding: 10px 14px !important;
  float: none !important;
  border-radius: 10px !important;
  font-family: Inter, Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  text-align: center !important;
  text-decoration: none !important;
  white-space: normal !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}

.as-divi-cart-cross-sells .as-cart-cross-sell-actions .as-product-card-details {
  color: #4c78d3 !important;
  background: #ffffff !important;
  border: 2px solid #4c78d3 !important;
}

.as-divi-cart-cross-sells .as-cart-cross-sell-actions .as-product-card-details:hover {
  color: #3f67bb !important;
  background: #f7f8fa !important;
  border-color: #3f67bb !important;
}

.as-divi-cart-cross-sells .as-cart-cross-sell-actions .as-product-card-add {
  color: #ffffff !important;
  background: #4c78d3 !important;
  border: 2px solid #4c78d3 !important;
}

.as-divi-cart-cross-sells .as-cart-cross-sell-actions .as-product-card-add:hover {
  color: #ffffff !important;
  background: #3f67bb !important;
  border-color: #3f67bb !important;
}

.as-divi-cart-cross-sells .as-cart-cross-sell-actions .button::before,
.as-divi-cart-cross-sells .as-cart-cross-sell-actions .button::after {
  display: none !important;
}

.as-divi-cart-cross-sells .as-product-card-actions-separator {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  color: #7a7a7a !important;
  font-family: Inter, Arial, sans-serif !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  text-align: center !important;
}

/* Tablet: two cards. */
@media (min-width: 768px) and (max-width: 980px) {
  .as-divi-cart-cross-sells ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 20px !important;
  }
}

/* Mobile: one card. */
@media (max-width: 767px) {
  .as-divi-cart-cross-sells {
    margin-top: 20px !important;
  }

  .as-divi-cart-cross-sells ul.products {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  .as-divi-cart-cross-sells ul.products li.product {
    padding: 14px !important;
  }

  .as-divi-cart-cross-sells .woocommerce-loop-product__title,
  .as-divi-cart-cross-sells li.product h2 {
    min-height: 0 !important;
    font-size: 16px !important;
  }
}

/* Cart cross-sell add-to-cart POST form: keep the form visually neutral. */
.as-divi-cart-cross-sells .as-cart-cross-sell-add-form {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* =========================================================
   12.2 APTEKA SANTE — Cart responsive final fixes
   v4: Tablet cart stacking, resilient Divi cross-sell grid,
       hide cross-sell section when the cart is empty.
   ========================================================= */

/* The recommendation heading has no useful context when the cart is empty. */
body.woocommerce-cart:not(:has(.wc-block-cart-items__row, .woocommerce-cart-form__cart-item))
  .as-cart-cross-sells-host {
  display: none !important;
}

/* Tablet: the Woo Blocks cart needs the full available width. Keeping the
   totals card beside the items table at 768–980px makes the two areas collide. */
@media (min-width: 768px) and (max-width: 980px) {
  body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart {
    display: block !important;
    width: 100% !important;
  }

  body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart__main,
  body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart__sidebar {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    position: static !important;
    inset: auto !important;
  }

  body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart__main {
    margin: 0 0 24px !important;
  }

  body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart__sidebar {
    margin: 0 !important;
    padding: 20px !important;
  }

  /* Divi can emit responsive product-width rules after the child-theme CSS.
     Use a stronger scoped selector and reset all classic Woo float widths so
     each product fills its CSS-grid cell. */
  body.woocommerce-cart
    .as-cart-cross-sells-host
    .as-divi-cart-cross-sells,
  body.woocommerce-cart
    .as-cart-cross-sells-host
    .as-divi-cart-cross-sells .et_pb_module_inner,
  body.woocommerce-cart
    .as-cart-cross-sells-host
    .as-divi-cart-cross-sells .cross-sells {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  body.woocommerce-cart
    .as-cart-cross-sells-host
    .as-divi-cart-cross-sells ul.products {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-flow: row !important;
    gap: 20px !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.woocommerce-cart
    .as-cart-cross-sells-host
    .as-divi-cart-cross-sells ul.products li.product,
  body.woocommerce-cart
    .as-cart-cross-sells-host
    .as-divi-cart-cross-sells ul.products li.product:nth-child(n) {
    display: flex !important;
    float: none !important;
    clear: none !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  body.woocommerce-cart
    .as-cart-cross-sells-host
    .as-divi-cart-cross-sells ul.products li.product > a:first-child,
  body.woocommerce-cart
    .as-cart-cross-sells-host
    .as-divi-cart-cross-sells ul.products li.product .woocommerce-LoopProduct-link,
  body.woocommerce-cart
    .as-cart-cross-sells-host
    .as-divi-cart-cross-sells .as-cart-cross-sell-actions {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
  }
}

/* =========================================================
   10.2 APTEKA SANTE — Checkout field labels + coupon action
   v1.0: keep Woo Blocks floating labels readable and align
   the coupon Apply button with the Apteka Sante button system.
   Scope: body.woocommerce-checkout
   ========================================================= */

/*
 * WooCommerce Checkout Blocks use floating labels. The base checkout field
 * rule above gives every input equal vertical padding, which leaves too little
 * room between a floated label and the entered value. Reserve a dedicated top
 * line for the label instead of changing the block markup or JS state.
 */
body.woocommerce-checkout
  .wp-block-woocommerce-checkout
  .wc-block-components-text-input,
body.woocommerce-checkout
  .wp-block-woocommerce-checkout
  .wc-block-components-combobox-control {
  position: relative !important;
}

body.woocommerce-checkout
  .wp-block-woocommerce-checkout
  .wc-block-components-text-input input,
body.woocommerce-checkout
  .wp-block-woocommerce-checkout
  .wc-block-components-combobox-control input {
  min-height: 54px !important;
  padding: 22px 13px 7px !important;
  line-height: 1.25 !important;
}

/* Keep the Woo Blocks label in a predictable floating position. */
body.woocommerce-checkout
  .wp-block-woocommerce-checkout
  .wc-block-components-text-input label,
body.woocommerce-checkout
  .wp-block-woocommerce-checkout
  .wc-block-components-combobox-control label {
  position: absolute !important;
  top: 7px !important;
  right: 13px !important;
  left: 13px !important;
  z-index: 2 !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--as-checkout-muted) !important;
  background: transparent !important;
  font-family: Inter, Arial, sans-serif !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  line-height: 1.1 !important;
  transform: none !important;
  transform-origin: left top !important;
  pointer-events: none !important;
}

/* Some Checkout Block versions wrap the select/combobox label differently. */
body.woocommerce-checkout
  .wp-block-woocommerce-checkout
  .wc-block-components-combobox
  label,
body.woocommerce-checkout
  .wp-block-woocommerce-checkout
  .wc-block-components-address-form
  .components-base-control__label {
  color: var(--as-checkout-muted) !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  line-height: 1.1 !important;
}

/* Coupon field: keep the input and action visually part of one system. */
body.woocommerce-checkout
  .wp-block-woocommerce-checkout
  .wc-block-components-totals-coupon__form {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 10px !important;
  align-items: stretch !important;
  padding-top: 10px !important;
}

body.woocommerce-checkout
  .wp-block-woocommerce-checkout
  .wc-block-components-totals-coupon__form
  .wc-block-components-text-input input {
  min-height: 48px !important;
  padding: 13px 14px !important;
}

body.woocommerce-checkout
  .wp-block-woocommerce-checkout
  .wc-block-components-totals-coupon__form
  .wc-block-components-text-input label {
  /* Coupon uses a placeholder-like label; keep it vertically centered. */
  top: 50% !important;
  font-size: 14px !important;
  transform: translateY(-50%) !important;
}

body.woocommerce-checkout
  .wp-block-woocommerce-checkout
  .wc-block-components-totals-coupon__form
  .wc-block-components-text-input.is-active label,
body.woocommerce-checkout
  .wp-block-woocommerce-checkout
  .wc-block-components-totals-coupon__form
  .wc-block-components-text-input:focus-within label {
  top: 6px !important;
  font-size: 10px !important;
  transform: none !important;
}

body.woocommerce-checkout
  .wp-block-woocommerce-checkout
  .wc-block-components-totals-coupon__form
  .wc-block-components-text-input.is-active input,
body.woocommerce-checkout
  .wp-block-woocommerce-checkout
  .wc-block-components-totals-coupon__form
  .wc-block-components-text-input:focus-within input {
  padding-top: 20px !important;
  padding-bottom: 6px !important;
}

body.woocommerce-checkout
  .wp-block-woocommerce-checkout
  .wc-block-components-totals-coupon__form
  .wc-block-components-button,
body.woocommerce-checkout
  .wp-block-woocommerce-checkout
  .wc-block-components-totals-coupon__button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 116px !important;
  min-height: 48px !important;
  margin: 0 !important;
  padding: 12px 18px !important;
  color: #ffffff !important;
  background: var(--as-checkout-primary) !important;
  border: 1px solid var(--as-checkout-primary) !important;
  border-radius: 10px !important;
  font-family: Inter, Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  box-shadow: none !important;
}

body.woocommerce-checkout
  .wp-block-woocommerce-checkout
  .wc-block-components-totals-coupon__form
  .wc-block-components-button:not(:disabled):hover,
body.woocommerce-checkout
  .wp-block-woocommerce-checkout
  .wc-block-components-totals-coupon__button:not(:disabled):hover {
  color: #ffffff !important;
  background: var(--as-checkout-primary-hover) !important;
  border-color: var(--as-checkout-primary-hover) !important;
}

body.woocommerce-checkout
  .wp-block-woocommerce-checkout
  .wc-block-components-totals-coupon__form
  .wc-block-components-button:disabled,
body.woocommerce-checkout
  .wp-block-woocommerce-checkout
  .wc-block-components-totals-coupon__button:disabled {
  color: #ffffff !important;
  background: var(--as-checkout-primary) !important;
  border-color: var(--as-checkout-primary) !important;
  opacity: 0.46 !important;
  cursor: not-allowed !important;
}

/* Mobile: stack coupon field and button so both remain easy to tap. */
@media (max-width: 767px) {
  body.woocommerce-checkout
    .wp-block-woocommerce-checkout
    .wc-block-components-totals-coupon__form {
    grid-template-columns: 1fr !important;
  }

  body.woocommerce-checkout
    .wp-block-woocommerce-checkout
    .wc-block-components-totals-coupon__form
    .wc-block-components-button,
  body.woocommerce-checkout
    .wp-block-woocommerce-checkout
    .wc-block-components-totals-coupon__button {
    width: 100% !important;
  }
}

/* =========================================================
   10.3 APTEKA SANTE — Checkout payment, notes, terms + CTA
   v1.0: calm card-style choices, readable descriptions and
   consistent final checkout actions.
   Scope: body.woocommerce-checkout
   ========================================================= */

/* Delivery and payment choices: remove the heavy default outline and use
   the same soft-card language as the rest of Apteka Sante. */
body.woocommerce-checkout
  .wp-block-woocommerce-checkout
  .wc-block-components-radio-control {
  overflow: hidden !important;
  background: var(--as-checkout-card) !important;
  border: 1px solid var(--as-checkout-border-soft) !important;
  border-radius: 12px !important;
  box-shadow: none !important;
}

body.woocommerce-checkout
  .wp-block-woocommerce-checkout
  .wc-block-components-radio-control__option,
body.woocommerce-checkout
  .wp-block-woocommerce-checkout
  .wc-block-components-radio-control-accordion-option {
  position: relative !important;
  min-height: 58px !important;
  padding: 16px 18px !important;
  color: var(--as-checkout-heading) !important;
  background: #ffffff !important;
  border: 0 !important;
  border-bottom: 1px solid var(--as-checkout-border-soft) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
  transition: background-color 0.18s ease, box-shadow 0.18s ease !important;
}

body.woocommerce-checkout
  .wp-block-woocommerce-checkout
  .wc-block-components-radio-control__option:last-child,
body.woocommerce-checkout
  .wp-block-woocommerce-checkout
  .wc-block-components-radio-control-accordion-option:last-child {
  border-bottom: 0 !important;
}

/* Selected row — blue accent without the thick black frame. */
body.woocommerce-checkout
  .wp-block-woocommerce-checkout
  .wc-block-components-radio-control__option--checked-option-highlighted,
body.woocommerce-checkout
  .wp-block-woocommerce-checkout
  .wc-block-components-radio-control-accordion-option--checked-option-highlighted,
body.woocommerce-checkout
  .wp-block-woocommerce-checkout
  .wc-block-components-radio-control__option:has(input[type="radio"]:checked),
body.woocommerce-checkout
  .wp-block-woocommerce-checkout
  .wc-block-components-radio-control-accordion-option:has(input[type="radio"]:checked) {
  background: #f6f9ff !important;
  box-shadow: inset 3px 0 0 var(--as-checkout-primary) !important;
  outline: 0 !important;
}

body.woocommerce-checkout
  .wp-block-woocommerce-checkout
  .wc-block-components-radio-control__option:hover,
body.woocommerce-checkout
  .wp-block-woocommerce-checkout
  .wc-block-components-radio-control-accordion-option:hover {
  background: var(--as-checkout-bg) !important;
}

/* Keyboard focus remains visible, but follows the brand system. */
body.woocommerce-checkout
  .wp-block-woocommerce-checkout
  .wc-block-components-radio-control__option:focus-within,
body.woocommerce-checkout
  .wp-block-woocommerce-checkout
  .wc-block-components-radio-control-accordion-option:focus-within {
  outline: 2px solid var(--as-checkout-primary) !important;
  outline-offset: -2px !important;
}

body.woocommerce-checkout
  .wp-block-woocommerce-checkout
  input[type="radio"] {
  accent-color: var(--as-checkout-primary) !important;
}

body.woocommerce-checkout
  .wp-block-woocommerce-checkout
  .wc-block-components-radio-control__label,
body.woocommerce-checkout
  .wp-block-woocommerce-checkout
  .wc-block-components-payment-method-label {
  color: var(--as-checkout-heading) !important;
  font-family: Inter, Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
}

/* Payment method details — keep the explanatory text calm and separate. */
body.woocommerce-checkout
  .wp-block-woocommerce-checkout
  .wc-block-components-radio-control-accordion-content,
body.woocommerce-checkout
  .wp-block-woocommerce-checkout
  .wc-block-components-payment-method-description {
  margin: 10px 0 0 !important;
  padding: 12px 0 0 !important;
  color: var(--as-checkout-body) !important;
  background: transparent !important;
  border: 0 !important;
  border-top: 1px solid var(--as-checkout-border-soft) !important;
  font-family: Inter, Arial, sans-serif !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
}

body.woocommerce-checkout
  .wp-block-woocommerce-checkout
  .wc-block-components-radio-control-accordion-content p,
body.woocommerce-checkout
  .wp-block-woocommerce-checkout
  .wc-block-components-payment-method-description p {
  margin: 0 !important;
}

/* Order note control. */
body.woocommerce-checkout
  .wp-block-woocommerce-checkout
  .wc-block-checkout__add-note,
body.woocommerce-checkout
  .wp-block-woocommerce-checkout
  .wc-block-components-checkout-step--order-notes {
  margin-top: 22px !important;
}

body.woocommerce-checkout
  .wp-block-woocommerce-checkout
  .wc-block-checkout__add-note
  .wc-block-components-checkbox,
body.woocommerce-checkout
  .wp-block-woocommerce-checkout
  .wc-block-components-checkout-step--order-notes
  .wc-block-components-checkbox {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  margin: 0 !important;
  color: var(--as-checkout-heading) !important;
}

body.woocommerce-checkout
  .wp-block-woocommerce-checkout
  .wc-block-checkout__add-note textarea,
body.woocommerce-checkout
  .wp-block-woocommerce-checkout
  .wc-block-components-checkout-step--order-notes textarea,
body.woocommerce-checkout
  .wp-block-woocommerce-checkout
  textarea.wc-block-components-textarea {
  width: 100% !important;
  min-height: 112px !important;
  margin-top: 12px !important;
  padding: 14px 15px !important;
  color: var(--as-checkout-heading) !important;
  background: #ffffff !important;
  border: 1px solid var(--as-checkout-border) !important;
  border-radius: 10px !important;
  font-family: Inter, Arial, sans-serif !important;
  font-size: 15px !important;
  line-height: 1.5 !important;
  resize: vertical !important;
  box-shadow: none !important;
}

body.woocommerce-checkout
  .wp-block-woocommerce-checkout
  .wc-block-checkout__add-note textarea:focus,
body.woocommerce-checkout
  .wp-block-woocommerce-checkout
  .wc-block-components-checkout-step--order-notes textarea:focus,
body.woocommerce-checkout
  .wp-block-woocommerce-checkout
  textarea.wc-block-components-textarea:focus {
  border-color: var(--as-checkout-primary) !important;
  box-shadow: inset 0 0 0 1px var(--as-checkout-primary) !important;
  outline: 0 !important;
}

/* Terms/privacy copy: subtle separator and comfortable reading width. */
body.woocommerce-checkout
  .wp-block-woocommerce-checkout
  .wc-block-checkout__terms,
body.woocommerce-checkout
  .wp-block-woocommerce-checkout
  .wc-block-components-checkout-step__container
  .wc-block-components-checkout-return-to-cart-button + p {
  margin: 24px 0 0 !important;
  padding: 18px 0 0 !important;
  color: var(--as-checkout-body) !important;
  border-top: 1px solid var(--as-checkout-border-soft) !important;
  font-family: Inter, Arial, sans-serif !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
}

body.woocommerce-checkout
  .wp-block-woocommerce-checkout
  .wc-block-checkout__terms a {
  color: var(--as-checkout-primary) !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}

body.woocommerce-checkout
  .wp-block-woocommerce-checkout
  .wc-block-checkout__terms a:hover {
  color: var(--as-checkout-primary-hover) !important;
  text-decoration: underline !important;
}

/* Final CTA — one clear primary action. */
body.woocommerce-checkout
  .wp-block-woocommerce-checkout
  .wc-block-components-checkout-place-order-button,
body.woocommerce-checkout
  .wp-block-woocommerce-checkout
  .wc-block-checkout__actions_row
  .wc-block-components-button {
  min-height: 52px !important;
  margin-top: 24px !important;
  border-radius: 10px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  box-shadow: 0 6px 16px rgba(76, 120, 211, 0.14) !important;
}

body.woocommerce-checkout
  .wp-block-woocommerce-checkout
  .wc-block-components-checkout-place-order-button:focus-visible,
body.woocommerce-checkout
  .wp-block-woocommerce-checkout
  .wc-block-checkout__actions_row
  .wc-block-components-button:focus-visible {
  outline: 2px solid var(--as-checkout-heading) !important;
  outline-offset: 3px !important;
}

/* Validation: keep errors obvious but restrained. */
body.woocommerce-checkout
  .wp-block-woocommerce-checkout
  .wc-block-components-validation-error {
  margin-top: 6px !important;
  padding-left: 2px !important;
}

body.woocommerce-checkout
  .wp-block-woocommerce-checkout
  .wc-block-components-notice-banner.is-error,
body.woocommerce-checkout
  .wp-block-woocommerce-checkout
  .wc-block-components-notice-banner[role="alert"] {
  color: var(--as-checkout-error) !important;
  background: var(--as-checkout-error-bg) !important;
  border: 1px solid rgba(201, 75, 75, 0.42) !important;
  border-left: 4px solid var(--as-checkout-error) !important;
  border-radius: 10px !important;
}

@media (max-width: 767px) {
  body.woocommerce-checkout
    .wp-block-woocommerce-checkout
    .wc-block-components-radio-control__option,
  body.woocommerce-checkout
    .wp-block-woocommerce-checkout
    .wc-block-components-radio-control-accordion-option {
    min-height: 56px !important;
    padding: 14px 15px !important;
  }

  body.woocommerce-checkout
    .wp-block-woocommerce-checkout
    .wc-block-components-radio-control-accordion-content,
  body.woocommerce-checkout
    .wp-block-woocommerce-checkout
    .wc-block-components-payment-method-description {
    padding-top: 10px !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
  }

  body.woocommerce-checkout
    .wp-block-woocommerce-checkout
    .wc-block-checkout__terms {
    margin-top: 22px !important;
    padding-top: 16px !important;
  }

  body.woocommerce-checkout
    .wp-block-woocommerce-checkout
    .wc-block-components-checkout-place-order-button,
  body.woocommerce-checkout
    .wp-block-woocommerce-checkout
    .wc-block-checkout__actions_row
    .wc-block-components-button {
    width: 100% !important;
    min-height: 50px !important;
    margin-top: 22px !important;
  }
}

/* =========================================================
   10.4 APTEKA SANTE — Checkout shipping radio spacing fix
   v1.0: keep Woo Blocks radio control clear of shipping and
   pickup labels while preserving payment-method styling.
   Scope: plain RadioControl options used by shipping rates
   and pickup locations (payment methods use accordion options).
   ========================================================= */

/* Woo Blocks places the radio input inside the same label as the
   shipping/pickup copy. Our generic card padding in 10.3 was too
   small for that native input position, so the radio visually sat
   on top of the first letters of "Flat rate" / pickup location name. */
body.woocommerce-checkout
  .wp-block-woocommerce-checkout
  .wc-block-components-radio-control__option:not(.wc-block-components-radio-control-accordion-option) {
  padding-left: 48px !important;
  padding-right: 18px !important;
}

/* Keep the native radio in its own fixed lane. */
body.woocommerce-checkout
  .wp-block-woocommerce-checkout
  .wc-block-components-radio-control__option:not(.wc-block-components-radio-control-accordion-option)
  > .wc-block-components-radio-control__input {
  left: 16px !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Price / FREE label must stay clear of the method name. */
body.woocommerce-checkout
  .wp-block-woocommerce-checkout
  .wc-block-components-radio-control__option:not(.wc-block-components-radio-control-accordion-option)
  .wc-block-components-radio-control__secondary-label {
  margin-left: auto !important;
  padding-left: 14px !important;
  white-space: nowrap !important;
}

@media (max-width: 767px) {
  body.woocommerce-checkout
    .wp-block-woocommerce-checkout
    .wc-block-components-radio-control__option:not(.wc-block-components-radio-control-accordion-option) {
    padding-left: 44px !important;
    padding-right: 14px !important;
  }

  body.woocommerce-checkout
    .wp-block-woocommerce-checkout
    .wc-block-components-radio-control__option:not(.wc-block-components-radio-control-accordion-option)
    > .wc-block-components-radio-control__input {
    left: 14px !important;
  }
}

/* =========================================================
   APTEKA SANTE — PRODUCT CATEGORY FILTER
   Final UI pass
   ========================================================= */

/* Основен filter card */
.et_pb_post_filter__form {
    background: #ffffff;
    border: 1px solid #e3e7ee;
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 8px 24px rgba(24, 39, 75, 0.08);
}

/* Разстояние между отделните полета */
.et_pb_post_filter__form .et_pb_post_filter__item {
    margin-bottom: 24px;
}

.et_pb_post_filter__form .et_pb_post_filter__item:last-of-type {
    margin-bottom: 20px;
}

/* Заглавия: Търсене, Марка, Цена */
.et_pb_post_filter__form label,
.et_pb_post_filter__form .et_pb_post_filter__item-label {
    display: block;
    margin-bottom: 9px;
    font-weight: 600;
    line-height: 1.35;
}

/* Search / Select */
.et_pb_post_filter__form
input[type="text"]:not(.et_pb_post_filter__item-range-value),
.et_pb_post_filter__form input[type="search"],
.et_pb_post_filter__form select {
    width: 100%;
    min-height: 48px;
    padding: 10px 14px;
    background: #ffffff;
    border: 1px solid #d9dfe8;
    border-radius: 9px;
    box-shadow: none;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

/* Focus */
.et_pb_post_filter__form
input[type="text"]:not(.et_pb_post_filter__item-range-value):focus,
.et_pb_post_filter__form input[type="search"]:focus,
.et_pb_post_filter__form select:focus {
    outline: none;
    border-color: #4d7bd8;
    box-shadow: 0 0 0 3px rgba(77, 123, 216, 0.12);
}

/* Price value boxes */
.et_pb_post_filter__form input[type="number"] {
    min-height: 44px;
    border: 1px solid #e1e5eb;
    border-radius: 8px;
    background: #f7f8fa;
}

/* Бутоните */
.et_pb_post_filter__form
.et_pb_post_filter__item-control-button {
    min-height: 48px;
    border-radius: 9px;
    font-weight: 600;
    transition:
        background-color 0.18s ease,
        color 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}

/* Apply — основен CTA */
.et_pb_post_filter__form
.et_pb_post_filter__item-control-submit {
    background: #4d7bd8;
    color: #ffffff;
    border: 1px solid #4d7bd8;
}

/* Reset — secondary action */
.et_pb_post_filter__form
.et_pb_post_filter__item-control-reset {
    background: #ffffff;
    color: #4d7bd8;
    border: 1px solid #4d7bd8;
}

.et_pb_post_filter__form
.et_pb_post_filter__item-control-submit:hover {
    box-shadow: 0 5px 14px rgba(77, 123, 216, 0.22);
    transform: translateY(-1px);
}

.et_pb_post_filter__form
.et_pb_post_filter__item-control-reset:hover {
    background: #f4f7fd;
}

/* No-results card */
.et_pb_post_filter__form + .et_pb_post_filter__no_results,
.et_pb_post_filter__no_results {
    border: 1px solid #e3e7ee;
    border-radius: 14px;
    background: #ffffff;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (min-width: 768px) and (max-width: 980px) {

    .et_pb_post_filter__form {
        width: 100%;
        padding: 24px;
        border-radius: 14px;
    }

    .et_pb_post_filter__form
    .et_pb_post_filter__item-control-button {
        width: 100%;
    }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .et_pb_post_filter__form {
        width: 100%;
        padding: 20px 16px;
        border-radius: 12px;
        box-shadow: none;
    }

    .et_pb_post_filter__form .et_pb_post_filter__item {
        margin-bottom: 22px;
    }

    .et_pb_post_filter__form
    .et_pb_post_filter__item-control-button {
        width: 100%;
        min-height: 48px;
    }

    .et_pb_post_filter__form
    input[type="text"]:not(.et_pb_post_filter__item-range-value),
    .et_pb_post_filter__form input[type="search"],
    .et_pb_post_filter__form select {
    	min-height: 50px;
    }
}

/* =========================================================
   APTEKA SANTE — POST FILTER FINAL FIXES
   ========================================================= */

/*
 * Price range value fields:
 * prevent Divi widths from escaping the filter card.
 */
.et_pb_post_filter__form
.et_pb_post_filter__item[data-field-type="price_range"],
.et_pb_post_filter__form
.et_pb_post_filter__item {
    max-width: 100%;
}

/*
 * Reset = secondary action.
 * Higher specificity is intentional to override Divi button styles.
 */
.et_pb_post_filter__form
button.et_pb_post_filter__item-control-reset.et_pb_button {
    background-color: #ffffff !important;
    color: #4d7bd8 !important;
    border: 1px solid #4d7bd8 !important;
    box-shadow: none !important;
}

.et_pb_post_filter__form
button.et_pb_post_filter__item-control-reset.et_pb_button:hover {
    background-color: #f4f7fd !important;
    color: #4d7bd8 !important;
    border-color: #4d7bd8 !important;
    box-shadow: none !important;
}

/*
 * Apply stays primary.
 */
.et_pb_post_filter__form
button.et_pb_post_filter__item-control-submit.et_pb_button {
    background-color: #4d7bd8 !important;
    color: #ffffff !important;
    border: 1px solid #4d7bd8 !important;
}

/* =========================================================
   APTEKA SANTE — DESKTOP PRICE RANGE FIX
   Divi sets each min/max field to 140px, which overflows
   the narrow desktop filter sidebar.
   ========================================================= */

@media (min-width: 981px) {

    .et_pb_post_filter__form
    .et_pb_post_filter__item-range-value {
        width: calc(50% - 8px) !important;
        max-width: calc(50% - 8px) !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .et_pb_post_filter__form
    .et_pb_post_filter__item-range-value--min {
        margin-right: 16px !important;
    }

    .et_pb_post_filter__form
    .et_pb_post_filter__item-range-value--max {
        margin-left: 0 !important;
    }
}

/* AS — hidden Divi loop used only as Post Filter target */
.as-filter-target-loop {
    display: none !important;
}

/* =========================================================
   APTEKA SANTE — Product Catalogue FINAL
   Single source of truth for category product grids/cards
   Desktop 5 / Tablet 3 / Mobile 2
   ========================================================= */

/* ---------- Product grid ---------- */

.as-shop-archive .as-shop-products .et_pb_shop ul.products,
.as-shop-archive .as-shop-products ul.products {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    align-items: stretch !important;

    gap: 24px !important;

    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.as-shop-archive .as-shop-products ul.products::before,
.as-shop-archive .as-shop-products ul.products::after {
    content: none !important;
    display: none !important;
}


/* ---------- Product card ---------- */

.as-shop-archive
.as-shop-products
ul.products
li.product,
.as-shop-archive
.as-shop-products
ul.products
li.product:nth-child(n) {
    display: flex !important;
    flex-direction: column !important;

    float: none !important;
    clear: none !important;

    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 100% !important;

    margin: 0 !important;
    padding: 16px !important;

    background: #ffffff !important;

    border: 1px solid #eef1f4 !important;
    border-radius: 16px !important;

    box-sizing: border-box !important;
    overflow: hidden !important;
}


/* ---------- Main product link ---------- */

.as-shop-archive
.as-shop-products
ul.products
li.product
> a.woocommerce-LoopProduct-link {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;

    min-width: 0 !important;

    color: inherit !important;
    text-decoration: none !important;
}


/* ---------- Product image ---------- */

.as-shop-archive
.as-shop-products
ul.products
li.product
a img {
    display: block !important;

    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;

    margin: 0 0 16px !important;
    padding: 16px !important;

    object-fit: contain !important;

    background: #f7f8fa !important;
    border-radius: 12px !important;

    box-sizing: border-box !important;
}


/* ---------- Product title ---------- */

.as-shop-archive
.as-shop-products
.woocommerce-loop-product__title,
.as-shop-archive
.as-shop-products
ul.products
li.product h2,
.as-shop-archive
.as-shop-products
ul.products
li.product h3 {
    margin: 0 !important;
    padding: 0 !important;

    color: #2f3440 !important;

    font-family: Manrope, Arial, sans-serif !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
}


/* ---------- Price ---------- */

.as-shop-archive
.as-shop-products
ul.products
li.product
.price {
    display: block !important;

    margin: 10px 0 0 !important;
    padding: 0 !important;

    color: #4c78d3 !important;

    font-family: Manrope, Arial, sans-serif !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
}

.as-shop-archive
.as-shop-products
ul.products
li.product
.price del {
    color: #7a7a7a !important;
    font-weight: 500 !important;
    opacity: .8 !important;
}

.as-shop-archive
.as-shop-products
ul.products
li.product
.price ins {
    color: #b64a9a !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

/* ---------- AS / Badge / Promotion ---------- */

.as-shop-archive
.as-shop-products
ul.products
li.product
.onsale{
    top: 12px !important;
    right: 12px !important;
    left: auto !important;

    min-width: 0 !important;
    min-height: 0 !important;

    margin: 0 !important;
    padding: 6px 10px !important;

    color: #b64a9a !important;
    background: #faf0f7 !important;

    border: 1px solid #b64a9a !important;
    border-radius: 999px !important;

    font-family: Inter, Arial, sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;

    white-space: nowrap !important;
}

/* ---------- CTA area ---------- */

.as-shop-archive
.as-shop-products
ul.products
li.product
.as-product-card-actions {
    display: flex !important;
    flex-direction: column !important;

    width: 100% !important;
    max-width: 100% !important;

    margin: auto 0 0 !important;
    padding: 16px 0 0 !important;

    gap: 8px !important;

    box-sizing: border-box !important;
}


/* Base button geometry */

.as-shop-archive
.as-shop-products
.as-product-card-actions
.button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 48px !important;

    margin: 0 !important;
    padding: 14px 12px !important;

    border-radius: 10px !important;

    font-family: Inter, Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.15 !important;

    text-align: center !important;
    white-space: normal !important;

    box-sizing: border-box !important;
}


/* Primary — View product */

.as-shop-archive
.as-shop-products
.as-product-card-actions
.as-product-card-details {
    color: #ffffff !important;
    background: #4c78d3 !important;
    border: 1px solid #4c78d3 !important;
}


/* Secondary — Add to cart / Woo secondary action */

.as-shop-archive
.as-shop-products
.as-product-card-actions
.button:not(.as-product-card-details):not(.as-product-card-ghost) {
    color: #ffffff !important;
    background: #b64a9a !important;
    border: 1px solid #b64a9a !important;
}

/* ---------- Out of stock state ---------- */

/* Card is the positioning context for stock badges. */
.as-shop-archive
.as-shop-products
ul.products
li.product {
    position: relative !important;
}

/* AS / Badge / Out of Stock — below product image */
.as-shop-archive
.as-shop-products
ul.products
li.product
.as-product-card-stock-badge--out {
    position: static !important;
    align-self: flex-start !important;
    z-index: auto !important;

    display: inline-flex !important;
    align-items: center !important;

    width: auto !important;
    max-width: 100% !important;
    min-width: 0 !important;

    margin: 0 0 10px !important;
    padding: 7px 11px !important;

    color: #b42318 !important;
    background: #fdecec !important;

    border: 1px solid #f5c2c0 !important;
    border-radius: 999px !important;

    font-family: Inter, Arial, sans-serif !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;

    white-space: nowrap !important;
}

.as-shop-archive
.as-shop-products
ul.products
li.product.outofstock
a img {
    margin-bottom: 10px !important;
}

/* AS / Badge / In Stock — below product image */
.as-shop-archive
.as-shop-products
ul.products
li.product
.as-product-card-stock-badge--in {
    position: static !important;
    align-self: flex-start !important;
    z-index: auto !important;

    display: inline-flex !important;
    align-items: center !important;

    width: auto !important;
    max-width: 100% !important;
    min-width: 0 !important;

    margin: 0 0 10px !important;
    padding: 6px 10px !important;

    color: #78c22a !important;
    background: #f1f8e9 !important;

    border: 1px solid #78c22a !important;
    border-radius: 999px !important;

    font-family: Inter, Arial, sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;

    white-space: nowrap !important;
}

/* Space between product image and In Stock badge */
.as-shop-archive
.as-shop-products
ul.products
li.product.instock
a img {
    margin-bottom: 10px !important;
}

/* Separator */

.as-shop-archive
.as-shop-products
.as-product-card-actions-separator {
    display: block !important;

    margin: 0 !important;

    color: #7a7a7a !important;

    font-family: Inter, Arial, sans-serif !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 1 !important;

    text-align: center !important;
}


/* ---------- Pagination ----------
   Shared: WooCommerce archives + custom catalogue pagination
   --------------------------------------------------------- */

.as-shop-archive
.as-shop-products
.woocommerce-pagination,

.as-shop-archive
.as-promotions-pagination {
    width: 100% !important;

    margin: 36px 0 0 !important;
    padding: 0 !important;
}


/* =========================================================
   Pagination layout
   ========================================================= */

.as-shop-archive
.as-shop-products
.woocommerce-pagination
ul.page-numbers,

.as-shop-archive
.as-promotions-pagination
.as-promotions-pagination__inner {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;

    align-items: center !important;
    justify-content: center !important;

    gap: 8px !important;

    width: 100% !important;
    max-width: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;

    list-style: none !important;

    box-sizing: border-box !important;
}


/* WooCommerce list items */

.as-shop-archive
.as-shop-products
.woocommerce-pagination
ul.page-numbers
li {
    display: block !important;
    float: none !important;

    width: auto !important;
    height: auto !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
}


/* =========================================================
   Page buttons
   IMPORTANT:
   li > .page-numbers prevents the Woo <ul class="page-numbers">
   itself from receiving the 42 × 42 button dimensions.
   ========================================================= */

.as-shop-archive
.as-shop-products
.woocommerce-pagination
ul.page-numbers
li > .page-numbers,

.as-shop-archive
.as-promotions-pagination
.as-promotions-pagination__page,

.as-shop-archive
.as-promotions-pagination
.as-promotions-pagination__prev,

.as-shop-archive
.as-promotions-pagination
.as-promotions-pagination__next,

.as-shop-archive
.as-promotions-pagination
.as-promotions-pagination__ellipsis {
    display: inline-flex !important;

    align-items: center !important;
    justify-content: center !important;

    flex: 0 0 42px !important;

    width: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;

    height: 42px !important;
    min-height: 42px !important;

    margin: 0 !important;
    padding: 8px !important;

    color: #2f3440 !important;
    background: #ffffff !important;

    border: 1px solid #d9dee5 !important;
    border-radius: 10px !important;

    font-family: Inter, Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1 !important;

    text-align: center !important;
    text-decoration: none !important;

    box-sizing: border-box !important;
}


/* =========================================================
   Current page
   ========================================================= */

.as-shop-archive
.as-shop-products
.woocommerce-pagination
ul.page-numbers
li > .page-numbers.current,

.as-shop-archive
.as-promotions-pagination
.as-promotions-pagination__page--current {
    color: #ffffff !important;

    background: #4c78d3 !important;

    border-color: #4c78d3 !important;
}


/* =========================================================
   Hover
   ========================================================= */

.as-shop-archive
.as-shop-products
.woocommerce-pagination
ul.page-numbers
li > a.page-numbers:hover,

.as-shop-archive
.as-promotions-pagination
a.as-promotions-pagination__page:hover,

.as-shop-archive
.as-promotions-pagination
a.as-promotions-pagination__prev:hover,

.as-shop-archive
.as-promotions-pagination
a.as-promotions-pagination__next:hover {
    color: #ffffff !important;

    background: #4c78d3 !important;

    border-color: #4c78d3 !important;
}


/* =========================================================
   Promotions Prev / Next
   Show only arrows visually.
   Text remains in HTML for accessibility.
   ========================================================= */

.as-shop-archive
.as-promotions-pagination
.as-promotions-pagination__prev,

.as-shop-archive
.as-promotions-pagination
.as-promotions-pagination__next {
    font-size: 0 !important;
}


.as-shop-archive
.as-promotions-pagination
.as-promotions-pagination__prev
span,

.as-shop-archive
.as-promotions-pagination
.as-promotions-pagination__next
span {
    font-size: 16px !important;
    line-height: 1 !important;
}


/* =========================================================
   Ellipsis
   ========================================================= */

.as-shop-archive
.as-promotions-pagination
.as-promotions-pagination__ellipsis {
    cursor: default !important;
}


/* =========================================================
   Keyboard focus
   ========================================================= */

.as-shop-archive
.as-shop-products
.woocommerce-pagination
ul.page-numbers
li > a.page-numbers:focus-visible,

.as-shop-archive
.as-promotions-pagination
a:focus-visible {
    outline: 2px solid #2f3440 !important;
    outline-offset: 2px !important;
}


/* =========================================================
   Tablet — 3 columns
   ========================================================= */

@media (min-width: 768px) and (max-width: 980px) {

    .as-shop-archive .as-shop-products .et_pb_shop ul.products,
    .as-shop-archive .as-shop-products ul.products {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 20px !important;
    }

    .as-shop-archive
    .as-shop-products
    .woocommerce-loop-product__title,
    .as-shop-archive
    .as-shop-products
    ul.products
    li.product h2,
    .as-shop-archive
    .as-shop-products
    ul.products
    li.product h3 {
        font-size: 17px !important;
    }

    .as-shop-archive
    .as-shop-products
    ul.products
    li.product
    .price {
        font-size: 17px !important;
    }
}


/* =========================================================
   Mobile — compact 2-column cards
   ========================================================= */

@media (max-width: 767px) {

    .as-shop-archive .as-shop-products .et_pb_shop ul.products,
    .as-shop-archive .as-shop-products ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 18px !important;
    }

    .as-shop-archive
    .as-shop-products
    ul.products
    li.product {
        padding: 12px !important;
    }

    .as-shop-archive
    .as-shop-products
    ul.products
    li.product
    a img {
        margin-bottom: 12px !important;
        padding: 10px !important;
    }

    /*
     * Deliberately small values for current visual test.
     * These can now be adjusted from ONE place.
     */
    .as-shop-archive
    .as-shop-products
    .woocommerce-loop-product__title,
    .as-shop-archive
    .as-shop-products
    ul.products
    li.product h2,
    .as-shop-archive
    .as-shop-products
    ul.products
    li.product h3 {
        font-size: 14px !important;
        font-weight: 400 !important;
        line-height: 1.15 !important;
    }

    .as-shop-archive
    .as-shop-products
    ul.products
    li.product
    .price {
        margin-top: 8px !important;
        font-size: 12px !important;
        line-height: 1.2 !important;
    }

    .as-shop-archive
    .as-shop-products
    ul.products
    li.product
    .as-product-card-actions {
        padding-top: 12px !important;
        gap: 7px !important;
    }

    .as-shop-archive
    .as-shop-products
    .as-product-card-actions
    .button {
        min-height: 44px !important;

        padding: 10px 8px !important;

        font-size: 12px !important;
        line-height: 1.15 !important;
    }

    .as-shop-archive
    .as-shop-products
    .as-product-card-actions-separator {
        font-size: 12px !important;
    }

/* Mobile — compact product card badges */
    .as-shop-archive
    .as-shop-products
    ul.products
    li.product
    .as-product-card-stock-badge--out,
    .as-shop-archive
    .as-shop-products
    ul.products
    li.product
    .as-product-card-stock-badge--in,
    .as-shop-archive
    .as-shop-products
    ul.products
    li.product
    .onsale {
        margin-bottom: 8px !important;
        padding: 5px 8px !important;
        font-size: 11px !important;    
      }

    .as-shop-archive
    .as-shop-products
    ul.products
    li.product.instock
    a img {
        margin-bottom: 8px !important;
    }

    .as-shop-archive
    .as-shop-products
    ul.products
    li.product.outofstock
    a img {
        margin-bottom: 8px !important;
    }
}

  /* =========================================================
    APTEKA SANTE — Anchor targets
    Keep anchored content clear of the site header
    ========================================================= */

  #as-related-products,
  #as-contact-form {
      scroll-margin-top: 120px;
}

/* =========================================================
   APTEKA SANTE — Empty state notice
   Mobile + Tablet only
   ========================================================= */

@media (max-width: 980px) {

  body.tax-product_cat .woocommerce .woocommerce-info,
  body.post-type-archive-product .woocommerce .woocommerce-info {
    margin: 18px 0 0 !important;
    padding: 16px 18px !important;

    background: #b64a9a !important;
    color: #ffffff !important;

    border: 0 !important;
    border-radius: 10px !important;
    box-shadow: none !important;

    font-family: Inter, Arial, sans-serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.45 !important;
  }

  body.tax-product_cat .woocommerce .woocommerce-info::before,
  body.post-type-archive-product .woocommerce .woocommerce-info::before {
    color: #ffffff !important;
  }

  body.tax-product_cat .woocommerce .woocommerce-info a,
  body.post-type-archive-product .woocommerce .woocommerce-info a {
    color: #ffffff !important;
    text-decoration: underline !important;
  }
}

/* Phone — още една стъпка по-компактно */
@media (max-width: 767px) {

  body.tax-product_cat .woocommerce .woocommerce-info,
  body.post-type-archive-product .woocommerce .woocommerce-info {
    padding: 14px 16px !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    border-radius: 10px !important;
  }
}

/* =========================================================
   APTEKA SANTE — Single Product promotion badge
   ========================================================= */

body.single-product
.as-product-gallery
span.onsale {
    min-width: 0 !important;
    min-height: 0 !important;

    padding: 6px 10px !important;

    background: #faf0f7 !important;
    color: #b64a9a !important;

    border: 1px solid #b64a9a !important;
    border-radius: 999px !important;

    font-family: Inter, Arial, sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;

    white-space: nowrap !important;
}

/* =========================================================
   APTEKA SANTE — Single Product stock badge
   ========================================================= */

body.single-product
.as-single-product-stock-badge {
    display: inline-block;

    padding: 6px 10px;

    border: 1px solid;
    border-radius: 999px;

    font-family: Inter, Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;

    white-space: nowrap;
}

/* In stock */

body.single-product
.as-single-product-stock-badge--in {
    background: #f1f8e9;
    color: #78c22a;
    border-color: #78c22a;
}

/* Out of stock */

body.single-product
.as-single-product-stock-badge--out {
    background: #fdecec;
    color: #b42318;
    border-color: #f5c2c0;
}

/* =========================================================
   APTEKA SANTE — Out-of-stock Single Product
   Hide redundant Woo/Divi stock message
   ========================================================= */

body.single-product
.product.outofstock
.as-product-add-to-cart {
    display: none !important;
}

/* =========================================================
   APTEKA SANTE — Single Product upsell stock badges
   ========================================================= */

body.single-product
.as-product-upsell-row
.as-product-card-stock-badge {
    display: inline-block;

    margin-bottom: 10px;
    padding: 6px 10px;

    border: 1px solid;
    border-radius: 999px;

    font-family: Inter, Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;

    white-space: nowrap;
}

/* In stock */

body.single-product
.as-product-upsell-row
.as-product-card-stock-badge--in {
    background: #f1f8e9;
    color: #78c22a;
    border-color: #78c22a;
}

/* Out of stock */

body.single-product
.as-product-upsell-row
.as-product-card-stock-badge--out {
    background: #fdecec;
    color: #b42318;
    border-color: #f5c2c0;
}

/* =========================================================
   APTEKA SANTE — Single Product upsell cards
   Align action buttons to card bottom
   ========================================================= */

body.single-product
.as-product-upsell-row
ul.products
li.product {
    display: flex !important;
    flex-direction: column !important;
}

body.single-product
.as-product-upsell-row
ul.products
li.product
.as-product-card-actions {
    margin-top: auto !important;
}

/* =========================================================
   APTEKA SANTE — Single Product lower product cards
   Promotion badge
   ========================================================= */

body.single-product
.as-product-upsell-row
ul.products
li.product
.onsale,

body.single-product
#as-related-products
ul.products
li.product
.onsale {
    min-width: 0 !important;
    min-height: 0 !important;

    margin: 0 !important;
    padding: 6px 10px !important;

    background: #faf0f7 !important;
    color: #b64a9a !important;

    border: 1px solid #b64a9a !important;
    border-radius: 999px !important;

    font-family: Inter, Arial, sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;

    white-space: nowrap !important;
}

/* =========================================================
   APTEKA SANTE — Cart cross-sell badges
   ========================================================= */

body.woocommerce-cart
.as-cart-cross-sells-host
.as-product-card-stock-badge {
    display: inline-block;

    margin-bottom: 10px;
    padding: 6px 10px;

    border: 1px solid;
    border-radius: 999px;

    font-family: Inter, Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;

    white-space: nowrap;
}

/* In stock */

body.woocommerce-cart
.as-cart-cross-sells-host
.as-product-card-stock-badge--in {
    background: #f1f8e9;
    color: #78c22a;
    border-color: #78c22a;
}

/* Out of stock */

body.woocommerce-cart
.as-cart-cross-sells-host
.as-product-card-stock-badge--out {
    background: #fdecec;
    color: #b42318;
    border-color: #f5c2c0;
}

/* Promotion */

body.woocommerce-cart
.as-cart-cross-sells-host
ul.products
li.product
.onsale {
    min-width: 0 !important;
    min-height: 0 !important;

    margin: 0 !important;
    padding: 6px 10px !important;

    background: #faf0f7 !important;
    color: #b64a9a !important;

    border: 1px solid #b64a9a !important;
    border-radius: 999px !important;

    font-family: Inter, Arial, sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;

    white-space: nowrap !important;
}

/* Mobile compact */

@media (max-width: 767px) {

    body.woocommerce-cart
    .as-cart-cross-sells-host
    .as-product-card-stock-badge,

    body.woocommerce-cart
    .as-cart-cross-sells-host
    ul.products
    li.product
    .onsale {
        margin-bottom: 8px !important;
        padding: 5px 8px !important;
        font-size: 11px !important;
    }
}

/* Cart cross-sells — keep stock badges content-width */

body.woocommerce-cart
.as-cart-cross-sells-host
.as-product-card-stock-badge {
    width: auto !important;
    max-width: max-content !important;
    align-self: flex-start !important;
}

/* =========================================================
   APTEKA SANTE — Cart savings badge
   ========================================================= */

body.woocommerce-cart
.wc-block-cart-item__total-price-and-sale-badge-wrapper
.wc-block-components-sale-badge {
    width: auto !important;
    max-width: max-content !important;

    padding: 6px 10px !important;

    background: #faf0f7 !important;
    color: #b64a9a !important;

    border: 1px solid #b64a9a !important;
    border-radius: 999px !important;

    font-family: Inter, Arial, sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;

    white-space: nowrap !important;
    box-shadow: none !important;
}

/* Mobile — compact savings badge */

@media (max-width: 767px) {

    body.woocommerce-cart
    .wc-block-cart-item__total-price-and-sale-badge-wrapper
    .wc-block-components-sale-badge {
        padding: 5px 8px !important;
        font-size: 11px !important;
    }
}

/* =========================================================
   APTEKA SANTE — Search Results product cards
   Align actions independently from title length
   ========================================================= */

.as-product-search-results
.as-search-products
ul.products
li.product {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
}

.as-product-search-results
.as-search-products
ul.products
li.product
> a.woocommerce-LoopProduct-link {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
}

.as-product-search-results
.as-search-products
ul.products
li.product
.as-product-card-actions {
    margin-top: auto !important;
}

/* =========================================================
   APTEKA SANTE — Search Results badges
   ========================================================= */

.as-product-search-results
.as-search-products
.as-product-card-stock-badge {
    display: inline-block !important;

    width: auto !important;
    max-width: max-content !important;
    align-self: flex-start !important;

    margin-bottom: 10px !important;
    padding: 6px 10px !important;

    border: 1px solid !important;
    border-radius: 999px !important;

    font-family: Inter, Arial, sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;

    white-space: nowrap !important;
}

/* In stock */

.as-product-search-results
.as-search-products
.as-product-card-stock-badge--in {
    background: #f1f8e9 !important;
    color: #78c22a !important;
    border-color: #78c22a !important;
}

/* Out of stock */

.as-product-search-results
.as-search-products
.as-product-card-stock-badge--out {
    background: #fdecec !important;
    color: #b42318 !important;
    border-color: #f5c2c0 !important;
}

/* Promotion */

.as-product-search-results
.as-search-products
ul.products
li.product
.onsale {
    top: 12px !important;
    right: 12px !important;
    left: auto !important;

    min-width: 0 !important;
    min-height: 0 !important;

    margin: 0 !important;
    padding: 6px 10px !important;

    background: #faf0f7 !important;
    color: #b64a9a !important;

    border: 1px solid #b64a9a !important;
    border-radius: 999px !important;

    font-family: Inter, Arial, sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;

    white-space: nowrap !important;
}

/* Mobile — compact */

@media (max-width: 767px) {

    .as-product-search-results
    .as-search-products
    .as-product-card-stock-badge,

    .as-product-search-results
    .as-search-products
    ul.products
    li.product
    .onsale {
        margin-bottom: 8px !important;
        padding: 5px 8px !important;
        font-size: 11px !important;
    }
}

/* =========================================================
   APTEKA SANTE — Search Results Filter
   Button states
   v1.0: remove Magenta hover/active flash
   ========================================================= */

/* Primary action — Apply */
.as-product-search-results.as-product-search-results__catalogue
.as-search-filter-slot
.as-search-filter-form
.as-search-filter-submit {
    color: #ffffff !important;
    background: #4c78d3 !important;
    background-color: #4c78d3 !important;
    border-color: #4c78d3 !important;
    box-shadow: none !important;
}

.as-product-search-results.as-product-search-results__catalogue
.as-search-filter-slot
.as-search-filter-form
.as-search-filter-submit:hover,
.as-product-search-results.as-product-search-results__catalogue
.as-search-filter-slot
.as-search-filter-form
.as-search-filter-submit:focus,
.as-product-search-results.as-product-search-results__catalogue
.as-search-filter-slot
.as-search-filter-form
.as-search-filter-submit:active {
    color: #ffffff !important;
    background: #3f67bb !important;
    background-color: #3f67bb !important;
    border-color: #3f67bb !important;
    box-shadow: none !important;
}

/* Secondary action — Reset */
.as-product-search-results.as-product-search-results__catalogue
.as-search-filter-slot
.as-search-filter-form
.as-search-filter-reset,
.as-product-search-results.as-product-search-results__catalogue
.as-search-filter-slot
.as-search-filter-form
.as-search-filter-reset:link,
.as-product-search-results.as-product-search-results__catalogue
.as-search-filter-slot
.as-search-filter-form
.as-search-filter-reset:visited {
    color: #4c78d3 !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    border-color: #4c78d3 !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

.as-product-search-results.as-product-search-results__catalogue
.as-search-filter-slot
.as-search-filter-form
.as-search-filter-reset:hover,
.as-product-search-results.as-product-search-results__catalogue
.as-search-filter-slot
.as-search-filter-form
.as-search-filter-reset:focus,
.as-product-search-results.as-product-search-results__catalogue
.as-search-filter-slot
.as-search-filter-form
.as-search-filter-reset:active {
    color: #4c78d3 !important;
    background: #f4f7fd !important;
    background-color: #f4f7fd !important;
    border-color: #4c78d3 !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

/* Accessible keyboard focus without changing the brand colour. */
.as-product-search-results.as-product-search-results__catalogue
.as-search-filter-slot
.as-search-filter-form
.as-search-filter-submit:focus-visible,
.as-product-search-results.as-product-search-results__catalogue
.as-search-filter-slot
.as-search-filter-form
.as-search-filter-reset:focus-visible {
    outline: 2px solid #2f3440 !important;
    outline-offset: 2px !important;
}

/* =========================================================
   APTEKA SANTE — Search Results Product Cards
   Desktop visual alignment with Product Catalogue
   v1.0
   ========================================================= */

@media (min-width: 981px) {

    /* Product card */
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-products
    ul.products
    li.product {
        padding: 16px !important;

        background: #ffffff !important;

        border: 1px solid #eef1f4 !important;
        border-radius: 16px !important;

        box-shadow: none !important;
        overflow: hidden !important;
    }

    /* Remove the separate Search hover lift/shadow */
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-products
    ul.products
    li.product:hover {
        transform: none !important;
        border-color: #eef1f4 !important;
        box-shadow: none !important;
    }

    /* Product image — same visual system as Category */
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-products
    ul.products
    li.product
    a img {
        display: block !important;

        width: 100% !important;
        max-width: none !important;
        height: auto !important;
        aspect-ratio: 1 / 1 !important;

        margin: 0 0 10px !important;
        padding: 16px !important;

        object-fit: contain !important;

        background: #f7f8fa !important;
        border-radius: 12px !important;

        box-sizing: border-box !important;
    }

    /* Product title */
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-products
    .woocommerce-loop-product__title,
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-products
    ul.products
    li.product h2,
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-products
    ul.products
    li.product h3 {
        margin: 0 !important;
        padding: 0 !important;

        color: #2f3440 !important;

        font-family: Manrope, Arial, sans-serif !important;
        font-size: 18px !important;
        font-weight: 600 !important;
        line-height: 1.2 !important;
    }

    /*
     * Keep margin-top:auto.
     * This is deliberate: Search card price alignment is already PASS
     * and must not be lost while matching the Category visual style.
     */
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-products
    ul.products
    li.product
    .price {
        display: block !important;

        margin: auto 0 0 !important;
        padding: 10px 0 0 !important;

        color: #4c78d3 !important;

        font-family: Manrope, Arial, sans-serif !important;
        font-size: 18px !important;
        font-weight: 700 !important;
        line-height: 1.2 !important;
    }

    /* CTA area — preserve bottom alignment */
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-products
    ul.products
    li.product
    .as-product-card-actions {
        display: flex !important;
        flex-direction: column !important;

        width: 100% !important;
        max-width: 100% !important;

        margin: auto 0 0 !important;
        padding: 16px 0 0 !important;

        gap: 8px !important;

        box-sizing: border-box !important;
    }

    /* Shared button geometry */
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-products
    .as-product-card-actions
    .button {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        min-height: 48px !important;

        margin: 0 !important;
        padding: 14px 12px !important;

        border-radius: 10px !important;

        font-family: Inter, Arial, sans-serif !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        line-height: 1.15 !important;

        text-align: center !important;
        white-space: normal !important;

        box-sizing: border-box !important;
    }

    /* Primary — View product */
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-products
    .as-product-card-actions
    .as-product-card-details {
        color: #ffffff !important;
        background: #4c78d3 !important;
        border: 1px solid #4c78d3 !important;
    }

    .as-product-search-results.as-product-search-results__catalogue
    .as-search-products
    .as-product-card-actions
    .as-product-card-details:hover {
        color: #ffffff !important;
        background: #3f67bb !important;
        border-color: #3f67bb !important;
    }

    /* Secondary — Add to cart */
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-products
    .as-product-card-actions
    .button:not(.as-product-card-details):not(.as-product-card-ghost) {
        color: #ffffff !important;
        background: #b64a9a !important;
        border: 1px solid #b64a9a !important;
    }

    /*
     * Do not touch out-of-stock ghost actions.
     * Badge system also remains completely untouched.
     */

    .as-product-search-results.as-product-search-results__catalogue
    .as-search-products
    .as-product-card-actions
    .button::before,
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-products
    .as-product-card-actions
    .button::after {
        display: none !important;
    }

    .as-product-search-results.as-product-search-results__catalogue
    .as-search-products
    .as-product-card-actions-separator {
        margin: 0 !important;

        color: #7a7a7a !important;

        font-family: Inter, Arial, sans-serif !important;
        font-size: 12px !important;
        font-weight: 500 !important;
        line-height: 1 !important;

        text-align: center !important;
    }
}

/* =========================================================
   APTEKA SANTE — Search Results Product Cards
   Desktop CTA alignment fix
   ========================================================= */

@media (min-width: 981px) {

    .as-product-search-results.as-product-search-results__catalogue
    .as-search-products
    ul.products
    li.product
    .as-product-card-actions
    .button,
    
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-products
    ul.products
    li.product
    .as-product-card-actions
    a.button {

        display: flex !important;
        align-self: stretch !important;

        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;

        margin: 0 !important;
        padding: 14px 12px !important;

        float: none !important;

        box-sizing: border-box !important;
    }
}

/* =========================================================
   APTEKA SANTE — Search Results Product Cards
   Tablet visual alignment with Product Catalogue
   768–980px
   ========================================================= */

@media (min-width: 768px) and (max-width: 980px) {

    /* Product card */
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-products
    ul.products
    li.product {
        padding: 16px !important;

        background: #ffffff !important;
        border: 1px solid #eef1f4 !important;
        border-radius: 16px !important;

        box-shadow: none !important;
        overflow: hidden !important;
    }

    .as-product-search-results.as-product-search-results__catalogue
    .as-search-products
    ul.products
    li.product:hover {
        transform: none !important;
        border-color: #eef1f4 !important;
        box-shadow: none !important;
    }

    /* Product image */
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-products
    ul.products
    li.product
    a img {
        display: block !important;

        width: 100% !important;
        max-width: none !important;
        height: auto !important;
        aspect-ratio: 1 / 1 !important;

        margin: 0 0 10px !important;
        padding: 14px !important;

        object-fit: contain !important;

        background: #f7f8fa !important;
        border-radius: 12px !important;

        box-sizing: border-box !important;
    }

    /* Product title */
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-products
    .woocommerce-loop-product__title,

    .as-product-search-results.as-product-search-results__catalogue
    .as-search-products
    ul.products
    li.product h2,

    .as-product-search-results.as-product-search-results__catalogue
    .as-search-products
    ul.products
    li.product h3 {
        margin: 0 !important;
        padding: 0 !important;

        color: #2f3440 !important;

        font-family: Manrope, Arial, sans-serif !important;
        font-size: 17px !important;
        font-weight: 600 !important;
        line-height: 1.2 !important;
    }

    /* Price — preserve vertical alignment */
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-products
    ul.products
    li.product
    .price {
        display: block !important;

        margin: auto 0 0 !important;
        padding: 10px 0 0 !important;

        color: #4c78d3 !important;

        font-family: Manrope, Arial, sans-serif !important;
        font-size: 17px !important;
        font-weight: 700 !important;
        line-height: 1.2 !important;
    }

    /* CTA wrapper */
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-products
    ul.products
    li.product
    .as-product-card-actions {
        display: flex !important;
        flex-direction: column !important;

        width: 100% !important;
        max-width: 100% !important;

        margin: auto 0 0 !important;
        padding: 14px 0 0 !important;

        gap: 8px !important;

        box-sizing: border-box !important;
    }

    /* Button geometry + alignment */
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-products
    ul.products
    li.product
    .as-product-card-actions
    .button,

    .as-product-search-results.as-product-search-results__catalogue
    .as-search-products
    ul.products
    li.product
    .as-product-card-actions
    a.button {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        align-self: stretch !important;

        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        min-height: 46px !important;

        margin: 0 !important;
        padding: 11px 8px !important;

        float: none !important;

        border-radius: 10px !important;

        font-family: Inter, Arial, sans-serif !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        line-height: 1.15 !important;

        text-align: center !important;
        white-space: normal !important;

        box-sizing: border-box !important;
    }

    /* Primary — View product */
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-products
    .as-product-card-actions
    .as-product-card-details {
        color: #ffffff !important;
        background: #4c78d3 !important;
        border: 1px solid #4c78d3 !important;
    }

    /* Secondary — Add to cart */
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-products
    .as-product-card-actions
    .button:not(.as-product-card-details):not(.as-product-card-ghost) {
        color: #ffffff !important;
        background: #b64a9a !important;
        border: 1px solid #b64a9a !important;
    }

    /* Separator */
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-products
    .as-product-card-actions-separator {
        margin: 0 !important;

        color: #7a7a7a !important;

        font-family: Inter, Arial, sans-serif !important;
        font-size: 12px !important;
        font-weight: 500 !important;
        line-height: 1 !important;

        text-align: center !important;
    }

    .as-product-search-results.as-product-search-results__catalogue
    .as-search-products
    .as-product-card-actions
    .button::before,

    .as-product-search-results.as-product-search-results__catalogue
    .as-search-products
    .as-product-card-actions
    .button::after {
        display: none !important;
    }
}

/* =========================================================
   APTEKA SANTE — Search Results Product Cards
   Mobile visual alignment with Product Catalogue
   <=767px
   ========================================================= */

@media (max-width: 767px) {

    /* ---------- Product card ---------- */

    .as-product-search-results.as-product-search-results__catalogue
    .as-search-products
    ul.products
    li.product {
        padding: 12px !important;

        background: #ffffff !important;

        border: 1px solid #eef1f4 !important;
        border-radius: 16px !important;

        box-shadow: none !important;
        overflow: hidden !important;
    }

    .as-product-search-results.as-product-search-results__catalogue
    .as-search-products
    ul.products
    li.product:hover {
        transform: none !important;
        border-color: #eef1f4 !important;
        box-shadow: none !important;
    }


    /* ---------- Product image ---------- */

    .as-product-search-results.as-product-search-results__catalogue
    .as-search-products
    ul.products
    li.product
    a img {
        display: block !important;

        width: 100% !important;
        max-width: none !important;
        height: auto !important;
        aspect-ratio: 1 / 1 !important;

        margin: 0 0 8px !important;
        padding: 10px !important;

        object-fit: contain !important;

        background: #f7f8fa !important;
        border-radius: 12px !important;

        box-sizing: border-box !important;
    }


    /* ---------- Product title ---------- */

    .as-product-search-results.as-product-search-results__catalogue
    .as-search-products
    .woocommerce-loop-product__title,

    .as-product-search-results.as-product-search-results__catalogue
    .as-search-products
    ul.products
    li.product h2,

    .as-product-search-results.as-product-search-results__catalogue
    .as-search-products
    ul.products
    li.product h3 {
        margin: 0 !important;
        padding: 0 !important;

        color: #2f3440 !important;

        font-family: Manrope, Arial, sans-serif !important;
        font-size: 14px !important;
        font-weight: 400 !important;
        line-height: 1.15 !important;
    }


    /* ---------- Price ---------- */

    /*
     * Keep auto top margin.
     * Price alignment must remain independent
     * from different title lengths.
     */
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-products
    ul.products
    li.product
    .price {
        display: block !important;

        margin: auto 0 0 !important;
        padding: 8px 0 0 !important;

        color: #4c78d3 !important;

        font-family: Manrope, Arial, sans-serif !important;
        font-size: 12px !important;
        font-weight: 700 !important;
        line-height: 1.2 !important;
    }


    /* ---------- CTA area ---------- */

    .as-product-search-results.as-product-search-results__catalogue
    .as-search-products
    ul.products
    li.product
    .as-product-card-actions {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;

        width: 100% !important;
        max-width: 100% !important;

        margin: auto 0 0 !important;
        padding: 12px 0 0 !important;

        gap: 7px !important;

        box-sizing: border-box !important;
    }


    /* ---------- Button geometry ---------- */

    .as-product-search-results.as-product-search-results__catalogue
    .as-search-products
    ul.products
    li.product
    .as-product-card-actions
    .button,

    .as-product-search-results.as-product-search-results__catalogue
    .as-search-products
    ul.products
    li.product
    .as-product-card-actions
    a.button {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        align-self: stretch !important;

        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        min-height: 44px !important;

        margin: 0 !important;
        padding: 10px 8px !important;

        float: none !important;

        border-radius: 10px !important;

        font-family: Inter, Arial, sans-serif !important;
        font-size: 12px !important;
        font-weight: 600 !important;
        line-height: 1.15 !important;

        text-align: center !important;
        white-space: normal !important;

        box-sizing: border-box !important;
    }


    /* ---------- Primary — View product ---------- */

    .as-product-search-results.as-product-search-results__catalogue
    .as-search-products
    .as-product-card-actions
    .as-product-card-details {
        color: #ffffff !important;

        background: #4c78d3 !important;
        background-color: #4c78d3 !important;

        border: 1px solid #4c78d3 !important;
    }


    /* ---------- Secondary — Add to cart ---------- */

    /*
     * Ghost is deliberately excluded.
     * Out-of-stock styling is the NEXT separate step.
     */
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-products
    .as-product-card-actions
    .button:not(.as-product-card-details):not(.as-product-card-ghost) {
        color: #ffffff !important;

        background: #b64a9a !important;
        background-color: #b64a9a !important;

        border: 1px solid #b64a9a !important;
    }


    /* ---------- Separator ---------- */

    .as-product-search-results.as-product-search-results__catalogue
    .as-search-products
    .as-product-card-actions-separator {
        display: block !important;

        margin: 0 !important;

        color: #7a7a7a !important;

        font-family: Inter, Arial, sans-serif !important;
        font-size: 12px !important;
        font-weight: 500 !important;
        line-height: 1 !important;

        text-align: center !important;
    }


    /* ---------- Neutralize Divi button icons ---------- */

    .as-product-search-results.as-product-search-results__catalogue
    .as-search-products
    .as-product-card-actions
    .button::before,

    .as-product-search-results.as-product-search-results__catalogue
    .as-search-products
    .as-product-card-actions
    .button::after {
        display: none !important;
    }
}

/* =========================================================
   APTEKA SANTE — Search Results Filter
   Desktop visual parity with Product Category filter
   >=981px
   ========================================================= */

@media (min-width: 981px) {

    /* Filter card */
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-panel {
        width: 100% !important;
        padding: 22px !important;

        background: #ffffff !important;

        border: 1px solid #e3e7ee !important;
        border-radius: 14px !important;

        box-shadow: 0 8px 24px rgba(24, 39, 75, 0.08) !important;

        box-sizing: border-box !important;
    }

    /* Form */
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-form {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Field spacing */
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-field {
        margin: 0 0 24px !important;
    }

    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-price {
        margin: 0 0 20px !important;
        padding: 0 !important;

        border: 0 !important;
    }

    /* Labels */
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-field label,

    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-price legend,

    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-price label {
        display: block !important;

        margin: 0 0 9px !important;
        padding: 0 !important;

        color: #2f3440 !important;

        font-family: Inter, Arial, sans-serif !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        line-height: 1.35 !important;
    }

    /* Brand select */
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-field select {
        display: block !important;

        width: 100% !important;
        min-height: 48px !important;

        margin: 0 !important;
        padding: 10px 14px !important;

        color: #5a5a5a !important;
        background: #ffffff !important;

        border: 1px solid #d9dfe8 !important;
        border-radius: 9px !important;

        font-family: Inter, Arial, sans-serif !important;
        font-size: 14px !important;

        box-shadow: none !important;

        box-sizing: border-box !important;
    }

    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-field select:focus {
        outline: none !important;

        border-color: #4c78d3 !important;
        box-shadow: 0 0 0 3px rgba(76, 120, 211, 0.12) !important;
    }

    /* Price fields — compact two-column layout */
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-price-fields {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;

        gap: 12px !important;

        width: 100% !important;
    }

    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-price-fields > div {
        min-width: 0 !important;
    }

    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-price-fields input[type="number"] {
        display: block !important;

        width: 100% !important;
        min-width: 0 !important;
        min-height: 44px !important;

        margin: 0 !important;
        padding: 10px 12px !important;

        color: #5a5a5a !important;
        background: #f7f8fa !important;

        border: 1px solid #e1e5eb !important;
        border-radius: 8px !important;

        font-family: Inter, Arial, sans-serif !important;
        font-size: 14px !important;

        box-shadow: none !important;

        box-sizing: border-box !important;
    }

    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-price-fields input[type="number"]:focus {
        outline: none !important;

        border-color: #4c78d3 !important;
        box-shadow: 0 0 0 3px rgba(76, 120, 211, 0.12) !important;
    }

    /* Actions — same hierarchy as Category filter */
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-actions {
        display: grid !important;
        grid-template-columns: 1fr !important;

        gap: 12px !important;

        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-reset,

    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-submit {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        width: 100% !important;
        min-width: 0 !important;
        min-height: 48px !important;

        margin: 0 !important;
        padding: 12px 16px !important;

        border-radius: 9px !important;

        font-family: Inter, Arial, sans-serif !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        line-height: 1.2 !important;

        text-align: center !important;
        text-decoration: none !important;

        box-sizing: border-box !important;
    }

    /* Reset */
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-reset {
        color: #4c78d3 !important;
        background: #ffffff !important;
        border: 1px solid #4c78d3 !important;
    }

    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-reset:hover {
        color: #4c78d3 !important;
        background: #f4f7fd !important;
        border-color: #4c78d3 !important;
    }

    /* Apply */
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-submit {
        color: #ffffff !important;
        background: #4c78d3 !important;
        border: 1px solid #4c78d3 !important;
    }

    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-submit:hover {
        color: #ffffff !important;
        background: #3f67bb !important;
        border-color: #3f67bb !important;
    }
}

/* =========================================================
   APTEKA SANTE — Search Results
   Desktop catalogue geometry parity with Product Category
   >=981px
   ========================================================= */

@media (min-width: 981px) {

    /*
     * Category measured geometry:
     * viewport 1500 -> row 1200px
     * equivalent to 80% width, max-width 1440px.
     */
    .as-product-search-results.as-product-search-results__catalogue
    .as-shop-products-row {
        width: 80% !important;
        max-width: 1440px !important;

        margin-left: auto !important;
        margin-right: auto !important;
    }

    /*
     * Match Divi's measured Category 6/24 + 18/24 geometry:
     *
     * sidebar: 20.875%
     * gutter:   5.5%
     * products: remaining 73.625%
     *
     * At 1200px this gives approximately:
     * 251px + 66px + 884px.
     */
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-catalogue-layout {
        display: grid !important;

        grid-template-columns:
            20.875% minmax(0, 1fr) !important;

        column-gap: 5.5% !important;
        row-gap: 0 !important;

        align-items: start !important;

        width: 100% !important;
        max-width: 100% !important;
    }

    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-slot,

    .as-product-search-results.as-product-search-results__catalogue
    .as-search-products {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }
}

/* =========================================================
   APTEKA SANTE — Search Results
   Desktop row width parity with Product Category
   Final specificity override
   ========================================================= */

@media (min-width: 981px) {

    body.search-results
    .as-product-search-results.as-product-search-results__catalogue
    .et_pb_row.as-shop-products-row,

    body.search-no-results
    .as-product-search-results.as-product-search-results__catalogue
    .et_pb_row.as-shop-products-row {
        width: 80% !important;
        max-width: 1440px !important;

        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* =========================================================
   APTEKA SANTE — Search Results Filter
   Desktop Brand select parity with Product Category
   >=981px
   ========================================================= */

@media (min-width: 981px) {

    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-field
    select {
        display: block !important;

        width: 100% !important;
        min-height: 49px !important;
        height: 49px !important;

        margin: 0 !important;
        padding: 16px 42px 16px 16px !important;

        color: #999999 !important;
        background-color: #eeeeee !important;

        border: 0 !important;
        border-radius: 0 !important;

        font-family: Inter, Arial, sans-serif !important;
        font-size: 14px !important;
        font-weight: 400 !important;
        line-height: 17px !important;

        box-shadow: none !important;

        appearance: none !important;
        -webkit-appearance: none !important;
        -moz-appearance: none !important;

        /*
         * Category arrow is provided outside the native select.
         * Search uses its own equivalent arrow because this is
         * our shortcode, not Divi Post Filter.
         */
        background-image:
            url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23666666' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;

        background-repeat: no-repeat !important;
        background-position: right 16px center !important;
        background-size: 10px 6px !important;

        box-sizing: border-box !important;
        cursor: pointer !important;
    }

    /*
     * Keep keyboard focus visible without changing
     * the normal Category-style appearance.
     */
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-field
    select:focus-visible {
        outline: 2px solid #4c78d3 !important;
        outline-offset: 2px !important;
        box-shadow: none !important;
    }
}
/* =========================================================
   APTEKA SANTE — Search Results Filter
   Desktop dual price slider — Category visual parity
   >=981px
   ========================================================= */

@media (min-width: 981px) {

    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-price-range {
        position: relative;

        width: 100%;
        height: 24px;

        margin: 8px 0 14px;

        box-sizing: border-box;
    }

    /*
     * Single common track.
     */
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-price-range::before {
        content: "";

        position: absolute;
        z-index: 1;

        top: 50%;
        left: 8px;
        right: 8px;

        height: 1px;

        background: #333333;

        transform: translateY(-50%);

        pointer-events: none;
    }

    /*
     * Both functional range inputs occupy exactly
     * the same physical space.
     */
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-price-range
    .as-search-filter-range {
        position: absolute;

        top: 0;
        left: 0;

        width: 100% !important;
        height: 24px !important;

        margin: 0 !important;
        padding: 0 !important;

        border: 0 !important;
        border-radius: 0 !important;

        background: transparent !important;

        box-shadow: none !important;

        appearance: none !important;
        -webkit-appearance: none !important;
        -moz-appearance: none !important;

        pointer-events: none;

        box-sizing: border-box;
    }

    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-range-min {
        z-index: 2;
    }

    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-range-max {
        z-index: 3;
    }


    /* ---------- Chromium / Safari track ---------- */

    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-range::-webkit-slider-runnable-track {
        width: 100%;
        height: 1px;

        border: 0;
        background: transparent;

        box-shadow: none;
    }


    /* ---------- Chromium / Safari handle ---------- */

    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-range::-webkit-slider-thumb {
        width: 18px;
        height: 18px;

        margin-top: -8.5px;

        border: 1px solid #333333;
        border-radius: 50%;

        background: #ffffff;

        box-shadow: none;

        -webkit-appearance: none;
        appearance: none;

        pointer-events: auto;
        cursor: pointer;
    }


    /* ---------- Firefox track ---------- */

    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-range::-moz-range-track {
        width: 100%;
        height: 1px;

        border: 0;
        background: transparent;

        box-shadow: none;
    }


    /* ---------- Firefox handle ---------- */

    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-range::-moz-range-thumb {
        width: 18px;
        height: 18px;

        border: 1px solid #333333;
        border-radius: 50%;

        background: #ffffff;

        box-shadow: none;

        pointer-events: auto;
        cursor: pointer;
    }


    /*
     * Keyboard focus remains visible,
     * but without restoring the old input box.
     */
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-range:focus {
        outline: none !important;
        box-shadow: none !important;
    }

    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-range:focus-visible::-webkit-slider-thumb {
        outline: 2px solid #4c78d3;
        outline-offset: 2px;
    }

    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-range:focus-visible::-moz-range-thumb {
        outline: 2px solid #4c78d3;
        outline-offset: 2px;
    }
}

/* =========================================================
   APTEKA SANTE — Search Results Filter
   Desktop dual range — defeat legacy generic input rule
   >=981px
   ========================================================= */

@media (min-width: 981px) {

    body.search-results
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-slot
    .as-search-filter-price-range
    input.as-search-filter-range[type="range"] {

        position: absolute !important;

        top: 0 !important;
        left: 0 !important;

        width: 100% !important;
        height: 24px !important;
        min-height: 0 !important;
        max-height: 24px !important;

        margin: 0 !important;
        padding: 0 !important;

        border: 0 !important;
        border-top: 0 !important;
        border-right: 0 !important;
        border-bottom: 0 !important;
        border-left: 0 !important;

        border-radius: 0 !important;

        background: transparent !important;
        background-color: transparent !important;
        background-image: none !important;

        box-shadow: none !important;

        appearance: none !important;
        -webkit-appearance: none !important;
        -moz-appearance: none !important;

        pointer-events: none !important;

        box-sizing: border-box !important;
    }


    /* Chrome / Edge / Safari — invisible native tracks */

    body.search-results
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-slot
    .as-search-filter-price-range
    input.as-search-filter-range[type="range"]
   ::-webkit-slider-runnable-track {

        width: 100% !important;
        height: 1px !important;

        border: 0 !important;
        background: transparent !important;

        box-shadow: none !important;
    }


    /* Chrome / Edge / Safari — visible handles */

    body.search-results
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-slot
    .as-search-filter-price-range
    input.as-search-filter-range[type="range"]
   ::-webkit-slider-thumb {

        width: 18px !important;
        height: 18px !important;

        margin-top: -8.5px !important;

        border: 1px solid #333333 !important;
        border-radius: 50% !important;

        background: #ffffff !important;

        box-shadow: none !important;

        appearance: none !important;
        -webkit-appearance: none !important;

        pointer-events: auto !important;

        cursor: pointer !important;
    }


    /* Firefox — invisible native tracks */

    body.search-results
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-slot
    .as-search-filter-price-range
    input.as-search-filter-range[type="range"]
   ::-moz-range-track {

        width: 100% !important;
        height: 1px !important;

        border: 0 !important;
        background: transparent !important;

        box-shadow: none !important;
    }


    /* Firefox — visible handles */

    body.search-results
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-slot
    .as-search-filter-price-range
    input.as-search-filter-range[type="range"]
   ::-moz-range-thumb {

        width: 18px !important;
        height: 18px !important;

        border: 1px solid #333333 !important;
        border-radius: 50% !important;

        background: #ffffff !important;

        box-shadow: none !important;

        pointer-events: auto !important;

        cursor: pointer !important;
    }
}

/* =========================================================
   APTEKA SANTE — Search Results Filter
   Desktop price inputs parity with Product Category
   >=981px
   ========================================================= */

@media (min-width: 981px) {

    /*
     * Match Category price-fields geometry:
     * 94px + 17px gap + 94px = 205px
     */
    body.search-results
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-price-fields {
        display: grid !important;
        grid-template-columns: 94px 94px !important;
        column-gap: 17px !important;
        row-gap: 0 !important;

        width: 205px !important;
        max-width: 100% !important;

        margin: 0 !important;
        padding: 0 !important;
    }


    /*
     * FROM / TO
     */
    body.search-results
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-slot
    .as-search-filter-price-fields
    input[name="as_min_price"],

    body.search-results
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-slot
    .as-search-filter-price-fields
    input[name="as_max_price"] {

        width: 94px !important;
        min-width: 94px !important;
        max-width: 94px !important;

        height: 49px !important;
        min-height: 49px !important;

        margin: 0 !important;
        padding: 16px !important;

        color: #999999 !important;
        background: #eeeeee !important;
        background-color: #eeeeee !important;

        border: 0 !important;
        border-top: 0 !important;
        border-right: 0 !important;
        border-bottom: 0 !important;
        border-left: 0 !important;

        border-radius: 0 !important;

        font-family: Inter, Arial, sans-serif !important;
        font-size: 14px !important;
        font-weight: 400 !important;
        line-height: 17px !important;

        box-shadow: none !important;

        box-sizing: border-box !important;
    }


    /*
     * Preserve visible keyboard focus without
     * changing the normal Category-style appearance.
     */
    body.search-results
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-price-fields
    input[name="as_min_price"]:focus-visible,

    body.search-results
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-price-fields
    input[name="as_max_price"]:focus-visible {
        outline: 2px solid #4c78d3 !important;
        outline-offset: 2px !important;
        box-shadow: none !important;
    }
}

/* =========================================================
   APTEKA SANTE — Search Results
   Tablet catalogue width parity with Product Category
   768–980px
   ========================================================= */

@media (min-width: 768px) and (max-width: 980px) {

    body.search-results
    .as-product-search-results.as-product-search-results__catalogue
    .et_pb_row.as-shop-products-row {
        width: 80% !important;
        max-width: none !important;

        margin-left: auto !important;
        margin-right: auto !important;
    }

    body.search-results
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-catalogue-layout,
    
    body.search-results
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-details,
    
    body.search-results
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-summary,
    
    body.search-results
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-panel,
    
    body.search-results
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-products,
    
    body.search-results
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-products ul.products {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }
}

/* =========================================================
   APTEKA SANTE — Search Results Filter
   Tablet accordion header parity with Product Category
   768–980px
   ========================================================= */

@media (min-width: 768px) and (max-width: 980px) {

    body.search-results
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-summary {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;

        width: 100% !important;
        min-height: 50px !important;

        margin: 0 !important;
        padding: 12px 18px !important;

        text-align: center !important;

        list-style: none !important;
        cursor: pointer !important;

        box-sizing: border-box !important;
    }

    body.search-results
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-summary::-webkit-details-marker {
        display: none !important;
    }

    /*
     * Remove any previous far-right positioning
     * and keep the arrow beside "Филтри".
     */
    body.search-results
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-summary::after {
        content: "▾" !important;

        position: static !important;
        top: auto !important;
        right: auto !important;

        display: inline-block !important;

        margin: 0 !important;

        font-size: 11px !important;
        line-height: 1 !important;

        transform: none !important;
    }

    body.search-results
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-details[open]
    .as-search-filter-summary::after {
        content: "▴" !important;
        transform: none !important;
    }
}

/* =========================================================
   APTEKA SANTE — Search Results Filter
   Tablet Brand select parity with Product Category
   768–980px
   ========================================================= */

@media (min-width: 768px) and (max-width: 980px) {

    body.search-results
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-slot
    .as-search-filter-field
    select {
        display: block !important;

        width: 100% !important;
        height: 49px !important;
        min-height: 49px !important;

        margin: 0 !important;
        padding: 16px 42px 16px 16px !important;

        color: #999999 !important;

        background-color: #eeeeee !important;

        border: 0 !important;
        border-top: 0 !important;
        border-right: 0 !important;
        border-bottom: 0 !important;
        border-left: 0 !important;

        border-radius: 0 !important;

        font-family: Inter, Arial, sans-serif !important;
        font-size: 14px !important;
        font-weight: 400 !important;
        line-height: 17px !important;

        box-shadow: none !important;

        appearance: none !important;
        -webkit-appearance: none !important;
        -moz-appearance: none !important;

        background-image:
            url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23666666' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;

        background-repeat: no-repeat !important;
        background-position: right 16px center !important;
        background-size: 10px 6px !important;

        box-sizing: border-box !important;

        cursor: pointer !important;
    }


    body.search-results
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-slot
    .as-search-filter-field
    select:focus {
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }


    body.search-results
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-slot
    .as-search-filter-field
    select:focus-visible {
        outline: 2px solid #4c78d3 !important;
        outline-offset: 2px !important;
    }
}

/* =========================================================
   APTEKA SANTE — Search Results
   Mobile catalogue width parity with Product Category
   <=767px
   ========================================================= */

@media (max-width: 767px) {

    body.search-results
    .as-product-search-results.as-product-search-results__catalogue
    .et_pb_row.as-shop-products-row {
        width: 80% !important;
        max-width: none !important;

        margin-left: auto !important;
        margin-right: auto !important;
    }

    body.search-results
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-catalogue-layout,

    body.search-results
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-details,

    body.search-results
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-summary,

    body.search-results
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-panel,

    body.search-results
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-products,

    body.search-results
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-products ul.products {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }
}

/* =========================================================
   APTEKA SANTE — Search Results Filter
   Mobile accordion header parity with Product Category
   <=767px
   ========================================================= */

@media (max-width: 767px) {

    body.search-results
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-summary {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;

        width: 100% !important;
        min-height: 50px !important;

        margin: 0 !important;
        padding: 12px 16px !important;

        text-align: center !important;

        list-style: none !important;
        cursor: pointer !important;

        box-sizing: border-box !important;
    }

    body.search-results
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-summary::-webkit-details-marker {
        display: none !important;
    }

    body.search-results
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-summary::after {
        content: "▾" !important;

        position: static !important;
        top: auto !important;
        right: auto !important;

        display: inline-block !important;

        margin: 0 !important;

        font-size: 11px !important;
        line-height: 1 !important;

        transform: none !important;
    }

    body.search-results
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-details[open]
    .as-search-filter-summary::after {
        content: "▴" !important;
        transform: none !important;
    }
}

/* =========================================================
   APTEKA SANTE — Search Results Filter
   Mobile Brand select parity with Product Category
   <=767px
   ========================================================= */

@media (max-width: 767px) {

    body.search-results
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-slot
    .as-search-filter-field
    select {
        display: block !important;

        width: 100% !important;
        height: 49px !important;
        min-height: 49px !important;

        margin: 0 !important;
        padding: 16px 42px 16px 16px !important;

        color: #999999 !important;
        background-color: #eeeeee !important;

        border: 0 !important;
        border-radius: 0 !important;

        font-family: Inter, Arial, sans-serif !important;
        font-size: 14px !important;
        font-weight: 400 !important;
        line-height: 17px !important;

        box-shadow: none !important;

        appearance: none !important;
        -webkit-appearance: none !important;
        -moz-appearance: none !important;

        background-image:
            url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23666666' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;

        background-repeat: no-repeat !important;
        background-position: right 16px center !important;
        background-size: 10px 6px !important;

        box-sizing: border-box !important;
        cursor: pointer !important;
    }

    body.search-results
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-slot
    .as-search-filter-field
    select:focus {
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    body.search-results
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-slot
    .as-search-filter-field
    select:focus-visible {
        outline: 2px solid #4c78d3 !important;
        outline-offset: 2px !important;
    }
}

/* =========================================================
   APTEKA SANTE — Search Results Filter
   Mobile dual price slider — Category visual parity
   <=767px
   ========================================================= */

@media (max-width: 767px) {

    body.search-results
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-price-range {
        position: relative !important;

        width: 100% !important;
        height: 24px !important;

        margin: 8px 0 14px !important;
        padding: 0 !important;

        box-sizing: border-box !important;
    }


    /* Common visible track */
    body.search-results
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-price-range::before {
        content: "";

        position: absolute;
        z-index: 1;

        top: 50%;
        left: 8px;
        right: 8px;

        height: 1px;

        background: #333333;

        transform: translateY(-50%);

        pointer-events: none;
    }


    /*
     * Override the legacy generic input rule
     * which otherwise turns range inputs into boxes.
     */
    body.search-results
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-slot
    .as-search-filter-price-range
    input.as-search-filter-range[type="range"] {

        position: absolute !important;

        top: 0 !important;
        left: 0 !important;

        width: 100% !important;
        height: 24px !important;
        min-height: 0 !important;
        max-height: 24px !important;

        margin: 0 !important;
        padding: 0 !important;

        border: 0 !important;
        border-radius: 0 !important;

        background: transparent !important;
        background-color: transparent !important;
        background-image: none !important;

        box-shadow: none !important;

        appearance: none !important;
        -webkit-appearance: none !important;
        -moz-appearance: none !important;

        pointer-events: none !important;

        box-sizing: border-box !important;
    }


    body.search-results
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-range-min {
        z-index: 2 !important;
    }

    body.search-results
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-range-max {
        z-index: 3 !important;
    }


    /* Chrome / Edge / Safari track */
    body.search-results
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-slot
    .as-search-filter-price-range
    input.as-search-filter-range[type="range"]
    ::-webkit-slider-runnable-track {
        width: 100% !important;
        height: 1px !important;

        border: 0 !important;
        background: transparent !important;

        box-shadow: none !important;
    }


    /* Chrome / Edge / Safari handles */
    body.search-results
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-slot
    .as-search-filter-price-range
    input.as-search-filter-range[type="range"]
    ::-webkit-slider-thumb {
        width: 18px !important;
        height: 18px !important;

        margin-top: -8.5px !important;

        border: 1px solid #333333 !important;
        border-radius: 50% !important;

        background: #ffffff !important;

        box-shadow: none !important;

        appearance: none !important;
        -webkit-appearance: none !important;

        pointer-events: auto !important;

        cursor: pointer !important;
    }


    /* Firefox track */
    body.search-results
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-slot
    .as-search-filter-price-range
    input.as-search-filter-range[type="range"]
    ::-moz-range-track {
        width: 100% !important;
        height: 1px !important;

        border: 0 !important;
        background: transparent !important;

        box-shadow: none !important;
    }


    /* Firefox handles */
    body.search-results
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-slot
    .as-search-filter-price-range
    input.as-search-filter-range[type="range"]
    ::-moz-range-thumb {
        width: 18px !important;
        height: 18px !important;

        border: 1px solid #333333 !important;
        border-radius: 50% !important;

        background: #ffffff !important;

        box-shadow: none !important;

        pointer-events: auto !important;

        cursor: pointer !important;
    }
}

/* =========================================================
   APTEKA SANTE — Search Results Filter
   Mobile dual slider — thumb selector fix
   <=767px
   ========================================================= */

@media (max-width: 767px) {

    /* Chrome / Edge / Safari — transparent native track */
    body.search-results
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-slot
    .as-search-filter-price-range
    input.as-search-filter-range[type="range"]::-webkit-slider-runnable-track {
        width: 100% !important;
        height: 1px !important;

        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    /* Chrome / Edge / Safari — draggable custom thumb */
    body.search-results
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-slot
    .as-search-filter-price-range
    input.as-search-filter-range[type="range"]::-webkit-slider-thumb {
        width: 18px !important;
        height: 18px !important;

        margin-top: -8.5px !important;

        border: 1px solid #333333 !important;
        border-radius: 50% !important;

        background: #ffffff !important;
        box-shadow: none !important;

        -webkit-appearance: none !important;
        appearance: none !important;

        pointer-events: auto !important;
        cursor: pointer !important;
    }

    /* Firefox — transparent native track */
    body.search-results
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-slot
    .as-search-filter-price-range
    input.as-search-filter-range[type="range"]::-moz-range-track {
        width: 100% !important;
        height: 1px !important;

        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    /* Firefox — draggable custom thumb */
    body.search-results
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-slot
    .as-search-filter-price-range
    input.as-search-filter-range[type="range"]::-moz-range-thumb {
        width: 18px !important;
        height: 18px !important;

        border: 1px solid #333333 !important;
        border-radius: 50% !important;

        background: #ffffff !important;
        box-shadow: none !important;

        pointer-events: auto !important;
        cursor: pointer !important;
    }
}

/* =========================================================
   APTEKA SANTE — Search Results Filter
   Mobile price inputs parity with Product Category
   <=767px
   ========================================================= */

@media (max-width: 767px) {

    body.search-results
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-price-fields {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
        column-gap: 12px !important;
        row-gap: 0 !important;

        width: 100% !important;
        max-width: 100% !important;

        margin: 0 !important;
        padding: 0 !important;
    }

    body.search-results
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-price-fields > * {
        min-width: 0 !important;
        width: 100% !important;
    }

    body.search-results
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-slot
    .as-search-filter-price-fields
    input[name="as_min_price"],

    body.search-results
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-slot
    .as-search-filter-price-fields
    input[name="as_max_price"] {

        display: block !important;

        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;

        height: 49px !important;
        min-height: 49px !important;

        margin: 0 !important;
        padding: 16px !important;

        color: #999999 !important;

        background: #eeeeee !important;
        background-color: #eeeeee !important;

        border: 0 !important;
        border-radius: 0 !important;

        font-family: Inter, Arial, sans-serif !important;
        font-size: 14px !important;
        font-weight: 400 !important;
        line-height: 17px !important;

        box-shadow: none !important;

        box-sizing: border-box !important;
    }

    body.search-results
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-price-fields
    input[name="as_min_price"]:focus-visible,

    body.search-results
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-price-fields
    input[name="as_max_price"]:focus-visible {
        outline: 2px solid #4c78d3 !important;
        outline-offset: 2px !important;
        box-shadow: none !important;
    }
}

/* =========================================================
   APTEKA SANTE — Search Results Filter
   Mobile action buttons parity with Product Category
   <=767px
   ========================================================= */

@media (max-width: 767px) {

    body.search-results
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-actions {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;

        width: 100% !important;
        max-width: 100% !important;

        row-gap: 60px !important;
        column-gap: 0 !important;

        margin: 0 !important;
        padding: 0 !important;

        box-sizing: border-box !important;
    }


    /* RESET */
    body.search-results
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-actions
    .as-search-filter-reset {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;

        height: 48px !important;
        min-height: 48px !important;

        margin: 0 !important;
        padding: 0 16px !important;

        color: #4d7bd8 !important;
        background: #ffffff !important;

        border: 1px solid #4d7bd8 !important;
        border-radius: 10px !important;

        font-family: Inter, Arial, sans-serif !important;
        font-size: 16px !important;
        font-weight: 700 !important;
        line-height: 1.2 !important;

        text-align: center !important;
        text-decoration: none !important;

        box-shadow: none !important;

        box-sizing: border-box !important;
    }


    /* APPLY */
    body.search-results
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-actions
    .as-search-filter-submit {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;

        height: 48px !important;
        min-height: 48px !important;

        margin: 0 !important;
        padding: 0 16px !important;

        color: #ffffff !important;
        background: #4d7bd8 !important;

        border: 1px solid #4d7bd8 !important;
        border-radius: 10px !important;

        font-family: Inter, Arial, sans-serif !important;
        font-size: 16px !important;
        font-weight: 700 !important;
        line-height: 1.2 !important;

        text-align: center !important;

        box-shadow: none !important;

        box-sizing: border-box !important;

        cursor: pointer !important;
    }


    /* Keep existing interaction states, but in Category palette */

    body.search-results
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-reset:hover,
    body.search-results
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-reset:active {
        color: #4d7bd8 !important;
        background: #f4f7fd !important;
        border-color: #4d7bd8 !important;
    }

    body.search-results
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-submit:hover,
    body.search-results
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-submit:active {
        color: #ffffff !important;
        background: #3f67bb !important;
        border-color: #3f67bb !important;
    }
}

/* =========================================================
   APTEKA SANTE — Search Results Filter
   Mobile spacing before action buttons
   <=767px
   ========================================================= */

@media (max-width: 767px) {

    body.search-results
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-actions {
        margin-top: 60px !important;
    }
}

/* =========================================================
   APTEKA SANTE — Search Results Filter
   Mobile spacing between Brand and Price
   <=767px
   ========================================================= */

@media (max-width: 767px) {

    body.search-results
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-field {
        margin-bottom: 18px !important;
    }
}

/* =========================================================
   APTEKA SANTE — Search Results Filter
   Tablet final control parity
   768–980px
   ========================================================= */

@media (min-width: 768px) and (max-width: 980px) {

    /* ---------- PRICE SLIDER WRAPPER ---------- */

    body.search-results
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-price-range {
        position: relative !important;

        width: 100% !important;
        height: 24px !important;

        margin: 8px 0 14px !important;
        padding: 0 !important;

        box-sizing: border-box !important;
    }

    body.search-results
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-price-range::before {
        content: "";

        position: absolute;
        z-index: 1;

        top: 50%;
        left: 8px;
        right: 8px;

        height: 1px;

        background: #333333;

        transform: translateY(-50%);

        pointer-events: none;
    }


    /* ---------- BOTH RANGE INPUTS ---------- */

    body.search-results
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-slot
    .as-search-filter-price-range
    input.as-search-filter-range[type="range"] {
        position: absolute !important;

        top: 0 !important;
        left: 0 !important;

        width: 100% !important;
        height: 24px !important;
        min-height: 0 !important;
        max-height: 24px !important;

        margin: 0 !important;
        padding: 0 !important;

        border: 0 !important;
        border-radius: 0 !important;

        background: transparent !important;
        background-color: transparent !important;
        background-image: none !important;

        box-shadow: none !important;

        appearance: none !important;
        -webkit-appearance: none !important;
        -moz-appearance: none !important;

        pointer-events: none !important;

        box-sizing: border-box !important;
    }

    body.search-results
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-range-min {
        z-index: 2 !important;
    }

    body.search-results
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-range-max {
        z-index: 3 !important;
    }


    /* ---------- CHROME / EDGE / SAFARI ---------- */

    body.search-results
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-slot
    .as-search-filter-price-range
    input.as-search-filter-range[type="range"]::-webkit-slider-runnable-track {
        width: 100% !important;
        height: 1px !important;

        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    body.search-results
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-slot
    .as-search-filter-price-range
    input.as-search-filter-range[type="range"]::-webkit-slider-thumb {
        width: 18px !important;
        height: 18px !important;

        margin-top: -8.5px !important;

        border: 1px solid #333333 !important;
        border-radius: 50% !important;

        background: #ffffff !important;

        box-shadow: none !important;

        -webkit-appearance: none !important;
        appearance: none !important;

        pointer-events: auto !important;
        cursor: pointer !important;
    }


    /* ---------- FIREFOX ---------- */

    body.search-results
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-slot
    .as-search-filter-price-range
    input.as-search-filter-range[type="range"]::-moz-range-track {
        width: 100% !important;
        height: 1px !important;

        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    body.search-results
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-slot
    .as-search-filter-price-range
    input.as-search-filter-range[type="range"]::-moz-range-thumb {
        width: 18px !important;
        height: 18px !important;

        border: 1px solid #333333 !important;
        border-radius: 50% !important;

        background: #ffffff !important;

        box-shadow: none !important;

        pointer-events: auto !important;
        cursor: pointer !important;
    }


    /* ---------- FROM / TO ---------- */

    body.search-results
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-price-fields {
        display: grid !important;

        grid-template-columns:
            minmax(0, 1fr)
            minmax(0, 1fr) !important;

        column-gap: 16px !important;
        row-gap: 0 !important;

        width: 100% !important;

        margin: 0 !important;
        padding: 0 !important;
    }

    body.search-results
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-price-fields > * {
        width: 100% !important;
        min-width: 0 !important;
    }

    body.search-results
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-slot
    .as-search-filter-price-fields
    input[name="as_min_price"],

    body.search-results
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-slot
    .as-search-filter-price-fields
    input[name="as_max_price"] {
        width: 100% !important;
        min-width: 0 !important;

        height: 49px !important;
        min-height: 49px !important;

        margin: 0 !important;
        padding: 16px !important;

        color: #999999 !important;

        background: #eeeeee !important;

        border: 0 !important;
        border-radius: 0 !important;

        font-family: Inter, Arial, sans-serif !important;
        font-size: 14px !important;
        font-weight: 400 !important;

        box-shadow: none !important;

        box-sizing: border-box !important;
    }


    /* ---------- ACTION BUTTONS ---------- */

    body.search-results
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-actions {
        display: grid !important;
        grid-template-columns: 1fr !important;

        width: 100% !important;

        row-gap: 60px !important;

        margin-top: 60px !important;
        padding: 0 !important;
    }

    body.search-results
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-reset,

    body.search-results
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-submit {
        width: 100% !important;

        height: 48px !important;
        min-height: 48px !important;

        margin: 0 !important;
        padding: 0 16px !important;

        border-radius: 10px !important;

        font-family: Inter, Arial, sans-serif !important;
        font-size: 16px !important;
        font-weight: 700 !important;

        box-sizing: border-box !important;
    }

    body.search-results
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-reset {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        color: #4d7bd8 !important;
        background: #ffffff !important;

        border: 1px solid #4d7bd8 !important;

        text-decoration: none !important;
    }

    body.search-results
    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-submit {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        color: #ffffff !important;
        background: #4d7bd8 !important;

        border: 1px solid #4d7bd8 !important;
    }
}

/* =========================================================
   APTEKA SANTE — Search Results
   Template utilities migrated from Divi inline CSS
   Cleanup phase 1
   ========================================================= */

.as-product-search-results,
.as-product-search-results * {
    box-sizing: border-box;
}

.as-product-search-results .as-search-title {
    max-width: 920px;
}

/* Search / No-results presentation */
body.search-no-results .as-search-results-heading {
    display: none !important;
}

body.search-results .as-search-no-results-help {
    display: none !important;
}

/* No-results CTA actions */
.as-product-search-results .as-search-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 12px !important;
}

@media (max-width: 767px) {
    .as-product-search-results .as-search-actions {
        display: grid !important;
        grid-template-columns: 1fr !important;
    }
}

/* =========================================================
   APTEKA SANTE — Search Results
   Pagination + empty-loop notice
   Cleanup phase 2A
   ========================================================= */

/* ---------- Pagination ---------- */

.as-product-search-results
.as-search-products
.woocommerce-pagination {
    margin-top: 36px !important;
}

.as-product-search-results
.as-search-products
.woocommerce-pagination
ul.page-numbers {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;

    gap: 8px !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
}

.as-product-search-results
.as-search-products
.woocommerce-pagination
ul.page-numbers
li {
    margin: 0 !important;
    border: 0 !important;
}

.as-product-search-results
.as-search-products
.woocommerce-pagination
.page-numbers {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    min-width: 42px !important;
    min-height: 42px !important;

    padding: 8px 12px !important;

    color: #2f3440 !important;
    background: #ffffff !important;

    border: 1px solid #d9dee5 !important;
    border-radius: 10px !important;

    font-family: Inter, Arial, sans-serif !important;
    font-weight: 600 !important;

    text-decoration: none !important;
}

.as-product-search-results
.as-search-products
.woocommerce-pagination
.page-numbers.current,

.as-product-search-results
.as-search-products
.woocommerce-pagination
a.page-numbers:hover {
    color: #ffffff !important;
    background: #4c78d3 !important;
    border-color: #4c78d3 !important;
}


/* ---------- Empty Current Loop result ---------- */

.as-product-search-results
.as-search-products
.woocommerce-info,

.as-product-search-results
.as-search-products
.woocommerce-no-products-found {
    width: 100% !important;
    margin: 0 !important;
}

.as-product-search-results
.as-search-products
.woocommerce-info {
    padding: 22px 24px !important;

    color: #2f3440 !important;
    background: #f7f8fa !important;

    border: 1px solid #d9dee5 !important;
    border-left: 4px solid #4c78d3 !important;
    border-radius: 0 12px 12px 0 !important;

    font-family: Inter, Arial, sans-serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.55 !important;
}

.as-product-search-results
.as-search-products
.woocommerce-info::before {
    color: #4c78d3 !important;
}


/* ---------- Mobile empty notice ---------- */

@media (max-width: 767px) {

    .as-product-search-results
    .as-search-products
    .woocommerce-info {
        padding: 18px !important;
        font-size: 15px !important;
    }
}

/* =========================================================
   APTEKA SANTE — Search Results
   Product grid structure
   Cleanup phase 3A
   Desktop 5 / Tablet 3 / Mobile 2
   ========================================================= */

.as-product-search-results
.as-search-products
.et_pb_shop
ul.products,

.as-product-search-results
.as-search-products
ul.products {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;

    gap: 24px !important;

    width: 100% !important;

    margin: 0 !important;
    padding: 0 !important;
}

.as-product-search-results
.as-search-products
ul.products::before,

.as-product-search-results
.as-search-products
ul.products::after {
    display: none !important;
}


/* ---------- Tablet ---------- */

@media (min-width: 768px) and (max-width: 980px) {

    .as-product-search-results
    .as-search-products
    .et_pb_shop
    ul.products,

    .as-product-search-results
    .as-search-products
    ul.products {
        grid-template-columns:
            repeat(3, minmax(0, 1fr)) !important;

        gap: 20px !important;
    }
}


/* ---------- Mobile ---------- */

@media (max-width: 767px) {

    .as-product-search-results
    .as-search-products
    .et_pb_shop
    ul.products,

    .as-product-search-results
    .as-search-products
    ul.products {
        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;

        gap: 14px !important;
    }
}

/* =========================================================
   APTEKA SANTE — Search Results
   Product card foundation
   Cleanup phase 4A
   ========================================================= */

/* Keep WooCommerce/Divi legacy float geometry neutralized. */
.as-product-search-results
.as-search-products
ul.products
li.product {
    float: none !important;

    width: auto !important;
    min-width: 0 !important;

    margin: 0 !important;
}


/* Base product-link behaviour. */
.as-product-search-results
.as-search-products
ul.products
li.product
a {
    color: inherit;
    text-decoration: none;
}


/* Sale-price typography.
   The responsive card blocks style .price itself,
   but these two child elements still came from
   the old Divi inline CSS. */
.as-product-search-results
.as-search-products
ul.products
li.product
.price
del {
    color: #7a7a7a !important;
    font-weight: 500 !important;
    opacity: .8 !important;
}

.as-product-search-results
.as-search-products
ul.products
li.product
.price
ins {
    color: #b64a9a !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

/* =========================================================
   APTEKA SANTE — Search Results
   Filter + Products structural layout
   Cleanup phase 9A
   ========================================================= */

.as-product-search-results.as-product-search-results__catalogue
.as-search-catalogue-layout {
    display: grid !important;
    align-items: start !important;

    width: 100% !important;
    max-width: 100% !important;
}

.as-product-search-results.as-product-search-results__catalogue
.as-search-filter-slot,

.as-product-search-results.as-product-search-results__catalogue
.as-search-products {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
}


/* Tablet + Mobile: filter above products */
@media (max-width: 980px) {

    .as-product-search-results.as-product-search-results__catalogue
    .as-search-catalogue-layout {
        grid-template-columns: minmax(0, 1fr) !important;

        column-gap: 0 !important;
        row-gap: 20px !important;
    }
}

/* =========================================================
   APTEKA SANTE — Search Results Filter
   Filter shell foundation
   Cleanup phase 10A
   ========================================================= */

/* ---------- DETAILS SHELL ---------- */

.as-product-search-results.as-product-search-results__catalogue
.as-search-filter-slot
.as-search-filter-details {
    width: 100% !important;
    margin: 0 !important;

    color: #2f3440 !important;
    background: #ffffff !important;

    border: 1px solid #e3e7ed !important;
    border-radius: 14px !important;

    box-shadow: 0 8px 24px rgba(47, 52, 64, 0.06) !important;

    overflow: hidden !important;
}


/* ---------- SUMMARY ---------- */

.as-product-search-results.as-product-search-results__catalogue
.as-search-filter-slot
.as-search-filter-summary {
    box-sizing: border-box !important;

    width: 100% !important;
    min-height: 50px !important;

    margin: 0 !important;
    padding: 13px 16px !important;

    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;

    color: #2f3440 !important;
    background: #ffffff !important;

    border: 0 !important;
    border-radius: 10px !important;

    font-family: Inter, Arial, sans-serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;

    cursor: pointer !important;
    list-style: none !important;
}

.as-product-search-results.as-product-search-results__catalogue
.as-search-filter-slot
.as-search-filter-summary::-webkit-details-marker {
    display: none !important;
}

.as-product-search-results.as-product-search-results__catalogue
.as-search-filter-slot
.as-search-filter-summary::after {
    content: "▾";

    flex: 0 0 auto;

    color: #4c78d3;

    font-size: 16px;
    line-height: 1;
}

.as-product-search-results.as-product-search-results__catalogue
.as-search-filter-slot
.as-search-filter-details[open]
> .as-search-filter-summary::after {
    content: "▴";
}


/* ---------- PANEL ---------- */

.as-product-search-results.as-product-search-results__catalogue
.as-search-filter-slot
.as-search-filter-panel {
    padding: 20px !important;
}


/* ---------- DESKTOP ---------- */

@media (min-width: 981px) {

    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-slot
    .as-search-filter-summary {
        display: none !important;
    }

    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-slot
    .as-search-filter-panel {
        display: block !important;
    }
}


/* ---------- TABLET + MOBILE ---------- */

@media (max-width: 980px) {

    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-slot
    .as-search-filter-details {
        background: transparent !important;

        border: 0 !important;
        border-radius: 0 !important;

        box-shadow: none !important;

        overflow: visible !important;
    }

    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-slot
    .as-search-filter-summary {
        display: flex !important;

        min-height: 50px !important;

        background: #ffffff !important;

        border: 1px solid #e3e7ed !important;
        border-radius: 10px !important;

        box-shadow: 0 6px 18px rgba(47, 52, 64, 0.05) !important;
    }

    .as-product-search-results.as-product-search-results__catalogue
    .as-search-filter-slot
    .as-search-filter-panel {
        margin-top: 10px !important;
        padding: 18px !important;

        background: #ffffff !important;

        border: 1px solid #eef1f4 !important;
        border-radius: 12px !important;

        box-shadow: 0 8px 24px rgba(47, 52, 64, 0.06) !important;
    }
}

/* =========================================================
   APTEKA SANTE — Search Results Filter
   Form controls foundation
   Cleanup phase 11A
   ========================================================= */

/* ---------- FORM ---------- */

.as-product-search-results
.as-search-filter-slot
form {
    margin: 0 !important;
}


/* ---------- LABELS ---------- */

.as-product-search-results
.as-search-filter-slot
label {
    display: block !important;

    margin: 0 0 7px !important;

    color: #2f3440 !important;

    font-family: Inter, Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
}


/* ---------- GENERIC SELECT / INPUT FOUNDATION ---------- */

.as-product-search-results
.as-search-filter-slot
select,

.as-product-search-results
.as-search-filter-slot
input:not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="reset"]) {
    display: block !important;

    width: 100% !important;
    min-height: 44px !important;

    margin: 0 0 16px !important;
    padding: 10px 12px !important;

    color: #2f3440 !important;
    background: #ffffff !important;

    border: 1px solid #d9dee5 !important;
    border-radius: 10px !important;

    outline: 0 !important;

    font-family: Inter, Arial, sans-serif !important;
    font-size: 14px !important;
    line-height: 1.3 !important;
}


/* ---------- GENERIC FOCUS ---------- */

.as-product-search-results
.as-search-filter-slot
select:focus,

.as-product-search-results
.as-search-filter-slot
input:not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="reset"]):focus {
    border-color: #4c78d3 !important;

    box-shadow:
        0 0 0 3px rgba(76, 120, 211, 0.12) !important;
}

/* =========================================================
   APTEKA SANTE — Search Results Filter
   Action interaction foundation
   Cleanup phase 12A
   ========================================================= */

.as-product-search-results.as-product-search-results__catalogue
.as-search-filter-slot
.as-search-filter-submit,

.as-product-search-results.as-product-search-results__catalogue
.as-search-filter-slot
.as-search-filter-reset {
    cursor: pointer !important;
    text-decoration: none !important;
}

/* =========================================================
   APTEKA SANTE — /shop catalogue
   Tablet final grid: 4 columns
   ========================================================= */

@media (min-width: 768px) and (max-width: 980px) {

    body.post-type-archive-product.woocommerce.archive
    .as-shop-archive
    .as-shop-products
    .et_pb_shop
    ul.products,

    body.post-type-archive-product.woocommerce.archive
    .as-shop-archive
    .as-shop-products
    ul.products {
        display: grid !important;
        grid-template-columns:
            repeat(4, minmax(0, 1fr)) !important;

        gap: 20px !important;
    }
}

/* =========================================================
   APTEKA SANTE — /shop main categories
   Dynamic category grid: 6 / 4 / 2
   ========================================================= */

.as-shop-archive__categories
.as-shop-main-categories
.as-shop-category-buttons {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 14px !important;
  width: 100% !important;
}


/* Dynamic category link */
.as-shop-archive__categories
.as-shop-main-categories
.as-shop-category-button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  width: 100% !important;
  min-width: 0 !important;
  min-height: 58px !important;

  padding: 12px 14px !important;

  color: #ffffff !important;
  background: #4c78d3 !important;

  border: 1px solid #4c78d3 !important;
  border-radius: 10px !important;

  font-family: Inter, Arial, sans-serif !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;

  text-align: center !important;
  text-decoration: none !important;

  transition:
    background-color .2s ease,
    border-color .2s ease !important;
}


.as-shop-archive__categories
.as-shop-main-categories
.as-shop-category-button:hover {
  color: #ffffff !important;
  background: #3f67bb !important;
  border-color: #3f67bb !important;
}


.as-shop-archive__categories
.as-shop-main-categories
.as-shop-category-button__label {
  display: block !important;
  width: 100% !important;
}


/* Tablet — 4 columns */
@media (min-width: 768px) and (max-width: 980px) {

  .as-shop-archive__categories
  .as-shop-main-categories
  .as-shop-category-buttons {
    grid-template-columns:
      repeat(4, minmax(0, 1fr)) !important;
  }

}


/* Mobile — 2 columns */
@media (max-width: 767px) {

  .as-shop-archive__categories
  .as-shop-main-categories
  .as-shop-category-buttons {
    grid-template-columns:
      repeat(2, minmax(0, 1fr)) !important;

    gap: 12px !important;
  }


  .as-shop-archive__categories
  .as-shop-main-categories
  .as-shop-category-button {
    min-height: 54px !important;
    padding: 10px 9px !important;
    font-size: 14px !important;
  }

}

/* =========================================================
   APTEKA SANTE — /shop Product Rails
   Shared rail engine
   Best Sellers + Seasonal + future curated sections
   ========================================================= */


/* ---------------------------------------------------------
   Rail shell
   --------------------------------------------------------- */

.as-shop-curated
.as-shop-product-rail {
  width: 100% !important;
  min-width: 0 !important;
}

.as-shop-curated
.as-shop-product-rail__viewport {
  width: 100% !important;
  min-width: 0 !important;
}


/* ---------------------------------------------------------
   WooCommerce product list → horizontal rail
   --------------------------------------------------------- */

.as-shop-curated
.as-shop-product-rail
ul.products {
  display: flex !important;
  flex-wrap: nowrap !important;

  gap: 24px !important;

  width: 100% !important;
  min-width: 0 !important;

  margin: 0 !important;
  padding: 0 !important;

  overflow-x: auto !important;
  overflow-y: hidden !important;

  scroll-snap-type: x mandatory !important;
  scroll-behavior: smooth !important;

  -webkit-overflow-scrolling: touch;

  scrollbar-width: none;
}

.as-shop-curated
.as-shop-product-rail
ul.products::-webkit-scrollbar {
  display: none;
}


/* Disable WooCommerce clearfix pseudo-elements inside rail */

.as-shop-curated
.as-shop-product-rail
ul.products::before,

.as-shop-curated
.as-shop-product-rail
ul.products::after {
  display: none !important;
  content: none !important;
}


/* ---------------------------------------------------------
   Product width
   Desktop = 6
   --------------------------------------------------------- */

.as-shop-curated
.as-shop-product-rail
ul.products
li.product {
  flex: 0 0 calc((100% - 120px) / 6) !important;

  width: auto !important;
  min-width: 0 !important;

  margin: 0 !important;

  scroll-snap-align: start !important;
}


/* =========================================================
   APTEKA SANTE — /shop Product Rails
   Shared controls + responsive geometry
   Best Sellers + Seasonal + future curated rails
   ========================================================= */


/* ---------------------------------------------------------
   Controls wrapper
   --------------------------------------------------------- */

.as-shop-curated
.as-shop-product-rail__controls {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;

  gap: 10px !important;

  width: 100% !important;

  margin: 0 0 18px !important;
  padding: 0 !important;
}


/* No horizontal overflow -> no controls */

.as-shop-curated
.as-shop-product-rail__controls.is-hidden {
  display: none !important;
}


/* ---------------------------------------------------------
   Previous / Next buttons
   --------------------------------------------------------- */

.as-shop-curated
.as-shop-product-rail__control {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  width: 44px !important;
  height: 44px !important;

  margin: 0 !important;
  padding: 0 !important;

  color: #4c78d3 !important;
  background: #ffffff !important;

  border: 1px solid #4c78d3 !important;
  border-radius: 10px !important;

  font-family: Arial, sans-serif !important;
  font-size: 24px !important;
  font-weight: 600 !important;
  line-height: 1 !important;

  cursor: pointer !important;

  transition:
    color .2s ease,
    background-color .2s ease,
    border-color .2s ease,
    opacity .2s ease !important;
}


/* Hover */

.as-shop-curated
.as-shop-product-rail__control:hover:not(:disabled) {
  color: #ffffff !important;
  background: #4c78d3 !important;
  border-color: #4c78d3 !important;
}


/* Disabled */

.as-shop-curated
.as-shop-product-rail__control:disabled {
  color: #9ca3af !important;
  background: #f7f8fa !important;
  border-color: #d9dee5 !important;

  opacity: .65 !important;
  cursor: default !important;
}


/* =========================================================
   Tablet = 4 products
   ========================================================= */

@media (min-width: 768px) and (max-width: 980px) {

  .as-shop-curated
  .as-shop-product-rail
  ul.products {
    gap: 20px !important;
  }

  .as-shop-curated
  .as-shop-product-rail
  ul.products
  li.product {
    flex-basis: calc((100% - 60px) / 4) !important;
  }

}


/* =========================================================
   Mobile = 2 products
   ========================================================= */

@media (max-width: 767px) {

  .as-shop-curated
  .as-shop-product-rail
  ul.products {
    gap: 14px !important;
  }

  .as-shop-curated
  .as-shop-product-rail
  ul.products
  li.product {
    flex-basis: calc((100% - 14px) / 2) !important;
  }

  .as-shop-curated
  .as-shop-product-rail__controls {
    margin-bottom: 14px !important;
  }

  .as-shop-curated
  .as-shop-product-rail__control {
    width: 42px !important;
    height: 42px !important;
  }

}


/* =========================================================
   APTEKA SANTE — /shop Shared Curated Product Cards
   Best Sellers + Seasonal + future curated rails
   ========================================================= */


/* =========================================================
   Card shell
   ========================================================= */

.as-shop-curated
.as-shop-product-rail
ul.products
li.product {
  display: flex !important;
  flex-direction: column !important;

  padding: 0 0 20px !important;

  overflow: hidden !important;

  background: #ffffff !important;

  border: 1px solid #eef1f4 !important;
  border-radius: 14px !important;

  box-shadow:
    0 8px 24px rgba(47, 52, 64, 0.06) !important;

  transition:
    transform .2s ease,
    box-shadow .2s ease,
    border-color .2s ease !important;
}


.as-shop-curated
.as-shop-product-rail
ul.products
li.product:hover {
  transform: translateY(-3px) !important;

  border-color: #d9dee5 !important;

  box-shadow:
    0 14px 32px rgba(47, 52, 64, 0.11) !important;
}


/* =========================================================
   Image zone
   ========================================================= */

.as-shop-curated
.as-shop-product-rail
ul.products
li.product
a
img {
  display: block !important;

  width: 100% !important;
  max-width: none !important;

  aspect-ratio: 1 / 1 !important;

  margin: 0 0 18px !important;
  padding: 12px !important;

  object-fit: contain !important;
  object-position: center !important;

  background: #f7f8fa !important;
}


/* =========================================================
   Product title
   ========================================================= */

.as-shop-curated
.as-shop-product-rail
.woocommerce-loop-product__title,

.as-shop-curated
.as-shop-product-rail
ul.products
li.product
h2,

.as-shop-curated
.as-shop-product-rail
ul.products
li.product
h3 {
  margin: 0 !important;

  padding: 0 16px 10px !important;

  color: #2f3440 !important;

  font-family:
    Manrope,
    Arial,
    sans-serif !important;

  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
}


/* =========================================================
   Price
   ========================================================= */

.as-shop-curated
.as-shop-product-rail
ul.products
li.product
.price {
  display: block !important;

  margin: 0 !important;
  padding: 0 18px !important;

  color: #4c78d3 !important;

  font-family:
    Inter,
    Arial,
    sans-serif !important;

  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.45 !important;
}


.as-shop-curated
.as-shop-product-rail
ul.products
li.product
.price
del {
  color: #7a7a7a !important;
  font-weight: 500 !important;
  opacity: .8 !important;
}


.as-shop-curated
.as-shop-product-rail
ul.products
li.product
.price
ins {
  color: #b64a9a !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}


/* Variable products on sale may render only a price range. */

.as-shop-curated
.as-shop-product-rail
ul.products
li.product.sale
.price {
  color: #b64a9a !important;
}


/* =========================================================
   Promotion badge
   Shared Sante product-card standard
   ========================================================= */

.as-shop-curated
.as-shop-product-rail
ul.products
li.product
.onsale {
  top: 10px !important;
  right: 10px !important;
  left: auto !important;

  min-width: 0 !important;
  min-height: 0 !important;

  margin: 0 !important;
  padding: 6px 10px !important;

  color: #b64a9a !important;
  background: #faf0f7 !important;

  border: 1px solid #b64a9a !important;
  border-radius: 999px !important;

  font-family: Inter, Arial, sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;

  text-transform: none !important;
  white-space: nowrap !important;
}


/* Mobile */

@media (max-width: 767px) {

  .as-shop-curated
  .as-shop-product-rail
  ul.products
  li.product
  .onsale {
    top: 8px !important;
    right: 8px !important;
    left: auto !important;

    padding: 5px 8px !important;

    font-size: 11px !important;
  }

}


/* =========================================================
   Main product-content link
   Vertical card alignment
   ========================================================= */

.as-shop-curated
.as-shop-product-rail
ul.products
li.product
> a.woocommerce-loop-product__link {
  display: flex !important;
  flex-direction: column !important;

  flex: 1 1 auto !important;

  width: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;

  color: inherit !important;
  text-decoration: none !important;
}


.as-shop-curated
.as-shop-product-rail
ul.products
li.product
> a.woocommerce-loop-product__link
.price {
  margin-top: auto !important;
}


/* =========================================================
   Actions container
   ========================================================= */

.as-shop-curated
.as-shop-product-rail
ul.products
li.product
.as-product-card-actions {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;

  flex: 0 0 auto !important;

  width: 100% !important;

  margin: 0 !important;
  padding: 0 !important;
}


/* =========================================================
   VIEW PRODUCT — blue primary
   ========================================================= */

.as-shop-curated
.as-shop-product-rail
ul.products
li.product
.as-product-card-details {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  width: calc(100% - 12px) !important;
  min-height: 48px !important;

  margin: 16px 6px 0 !important;
  padding: 10px 6px !important;

  color: #ffffff !important;
  background: #4c78d3 !important;

  border: 1px solid #4c78d3 !important;
  border-radius: 10px !important;

  font-family: Inter, Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;

  text-align: center !important;
  text-decoration: none !important;
}


.as-shop-curated
.as-shop-product-rail
ul.products
li.product
.as-product-card-details:hover {
  color: #ffffff !important;
  background: #3f67bb !important;
  border-color: #3f67bb !important;
}


/* =========================================================
   SIMPLE PRODUCT — Add to cart
   Magenta secondary
   ========================================================= */

.as-shop-curated
.as-shop-product-rail
ul.products
li.product.product-type-simple
.add_to_cart_button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  width: calc(100% - 20px) !important;
  min-height: 48px !important;

  margin-left: 10px !important;
  margin-right: 10px !important;

  padding: 10px 8px !important;

  color: #ffffff !important;
  background: #b64a9a !important;

  border: 1px solid #b64a9a !important;
  border-radius: 10px !important;

  font-family: Inter, Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;

  text-align: center !important;
  text-decoration: none !important;
}


.as-shop-curated
.as-shop-product-rail
ul.products
li.product.product-type-simple
.add_to_cart_button:hover {
  color: #ffffff !important;
  background: #9f3f86 !important;
  border-color: #9f3f86 !important;
}


/* =========================================================
   VARIABLE PRODUCT — Select option
   Ghost blue
   ========================================================= */

.as-shop-curated
.as-shop-product-rail
ul.products
li.product.product-type-variable
.add_to_cart_button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  width: calc(100% - 20px) !important;
  min-height: 48px !important;

  margin-left: 10px !important;
  margin-right: 10px !important;

  padding: 10px 8px !important;

  color: #4c78d3 !important;
  background: #ffffff !important;

  border: 1px solid #4c78d3 !important;
  border-radius: 10px !important;

  font-family: Inter, Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;

  text-align: center !important;
  text-decoration: none !important;
}


.as-shop-curated
.as-shop-product-rail
ul.products
li.product.product-type-variable
.add_to_cart_button:hover {
  color: #4c78d3 !important;
  background: #f7f8fa !important;
  border-color: #4c78d3 !important;
}


/* =========================================================
   CTA separator
   ========================================================= */

.as-shop-curated
.as-shop-product-rail
ul.products
li.product
.as-product-card-actions-separator {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  width: 100% !important;

  margin: 8px 0 !important;
  padding: 0 !important;

  color: #7a7a7a !important;

  font-family: Inter, Arial, sans-serif !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  line-height: 1 !important;

  text-align: center !important;
}


.as-shop-curated
.as-shop-product-rail
ul.products
li.product
.as-product-card-actions
.add_to_cart_button {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}


/* =========================================================
   Availability badges
   Shared Sante product-card standard
   ========================================================= */

.as-shop-curated
.as-shop-product-rail
ul.products
li.product
.as-product-card-stock-badge {
  position: static !important;
  align-self: flex-start !important;
  z-index: auto !important;

  display: inline-flex !important;
  align-items: center !important;

  width: auto !important;
  max-width: max-content !important;
  min-width: 0 !important;

  margin: 0 16px 10px !important;
  padding: 6px 10px !important;

  border: 1px solid !important;
  border-radius: 999px !important;

  font-family: Inter, Arial, sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;

  white-space: nowrap !important;
}


/* In stock */

.as-shop-curated
.as-shop-product-rail
ul.products
li.product
.as-product-card-stock-badge--in {
  color: #78c22a !important;
  background: #f1f8e9 !important;
  border-color: #78c22a !important;
}


/* Out of stock
   Kept for visual-system consistency.
   Curated dynamic sections currently exclude these products.
*/

.as-shop-curated
.as-shop-product-rail
ul.products
li.product
.as-product-card-stock-badge--out {
  color: #b42318 !important;
  background: #fdecec !important;
  border-color: #f5c2c0 !important;
}


/* =========================================================
   Tablet
   ========================================================= */

@media (min-width: 768px) and (max-width: 980px) {

  .as-shop-curated
  .as-shop-product-rail
  .woocommerce-loop-product__title,

  .as-shop-curated
  .as-shop-product-rail
  ul.products
  li.product
  h2,

  .as-shop-curated
  .as-shop-product-rail
  ul.products
  li.product
  h3 {
    padding-left: 14px !important;
    padding-right: 14px !important;

    font-size: 15px !important;
    font-weight: 500 !important;
  }


  .as-shop-curated
  .as-shop-product-rail
  ul.products
  li.product
  .as-product-card-details {
    width: calc(100% - 10px) !important;

    margin-left: 5px !important;
    margin-right: 5px !important;
    margin-top: 14px !important;

    min-height: 46px !important;
    padding: 9px 5px !important;

    font-size: 13px !important;
    line-height: 1.15 !important;
  }


  .as-shop-curated
  .as-shop-product-rail
  ul.products
  li.product
  .as-product-card-actions-separator {
    margin: 7px 0 !important;
    font-size: 11px !important;
  }

}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 767px) {

  /* ---------------------------------------------------------
     Product title
     --------------------------------------------------------- */

  .as-shop-curated
  .as-shop-product-rail
  .woocommerce-loop-product__title,

  .as-shop-curated
  .as-shop-product-rail
  ul.products
  li.product
  h2,

  .as-shop-curated
  .as-shop-product-rail
  ul.products
  li.product
  h3 {
    padding-left: 12px !important;
    padding-right: 12px !important;

    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.35 !important;
  }


  /* ---------------------------------------------------------
     Promotion badge
     Compact pill at top-right
     --------------------------------------------------------- */

  .as-shop-curated
  .as-shop-product-rail
  ul.products
  li.product
  .onsale {
    position: absolute !important;

    top: 8px !important;
    right: 8px !important;
    left: auto !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: auto !important;
    max-width: max-content !important;
    min-width: 0 !important;

    margin: 0 !important;
    padding: 5px 8px !important;

    font-size: 11px !important;
    line-height: 1.2 !important;

    white-space: nowrap !important;
  }


  /* ---------------------------------------------------------
     Availability badge
     --------------------------------------------------------- */

  .as-shop-curated
  .as-shop-product-rail
  ul.products
  li.product
  .as-product-card-stock-badge {
    margin: 0 12px 8px !important;
    padding: 5px 8px !important;

    font-size: 11px !important;
  }


  /* ---------------------------------------------------------
     View product
     --------------------------------------------------------- */

  .as-shop-curated
  .as-shop-product-rail
  ul.products
  li.product
  .as-product-card-details {
    width: calc(100% - 8px) !important;

    margin-left: 4px !important;
    margin-right: 4px !important;
    margin-top: 12px !important;

    min-height: 44px !important;
    padding: 8px 4px !important;

    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;

    border-radius: 9px !important;
  }


  /* ---------------------------------------------------------
     Second CTA
     --------------------------------------------------------- */

  .as-shop-curated
  .as-shop-product-rail
  ul.products
  li.product.product-type-simple
  .add_to_cart_button,

  .as-shop-curated
  .as-shop-product-rail
  ul.products
  li.product.product-type-variable
  .add_to_cart_button {
    width: calc(100% - 16px) !important;

    margin-left: 8px !important;
    margin-right: 8px !important;

    min-height: 48px !important;
    padding: 9px 6px !important;

    font-size: 14px !important;
  }


  /* ---------------------------------------------------------
     "или"
     --------------------------------------------------------- */

  .as-shop-curated
  .as-shop-product-rail
  ul.products
  li.product
  .as-product-card-actions-separator {
    margin: 6px 0 !important;

    font-size: 10px !important;
    font-weight: 500 !important;
  }

}

/* =========================================================
   APTEKA SANTE — /shop Curated Section Archive CTA
   Shared by:
   Seasonal Offers
   Promotions
   Home Pharmacy
   Featured Brands
   ========================================================= */


/* ---------- Footer ---------- */

.as-shop-curated--seasonal
.as-shop-seasonal__footer,

.as-shop-curated--promotions
.as-shop-promotions__footer,

.as-shop-curated--home-pharmacy
.as-shop-home-pharmacy__footer,

.as-shop-curated--brands
.as-shop-featured-brands__footer {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;

    width: 100% !important;

    margin: 20px 0 0 !important;
    padding: 0 !important;

    box-sizing: border-box !important;
}


/* ---------- Ghost CTA ---------- */

.as-shop-curated--seasonal
.as-shop-seasonal__archive-link,

.as-shop-curated--promotions
.as-shop-promotions__archive-link,

.as-shop-curated--home-pharmacy
.as-shop-home-pharmacy__archive-link,

.as-shop-curated--brands
.as-shop-featured-brands__archive-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;

    min-height: 44px !important;

    margin: 0 !important;
    padding: 10px 16px !important;

    color: #4c78d3 !important;
    background: #ffffff !important;

    border: 1px solid #4c78d3 !important;
    border-radius: 10px !important;

    font-family: Inter, Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;

    text-align: center !important;
    text-decoration: none !important;

    box-sizing: border-box !important;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease !important;
}


/* ---------- Ghost Hover ---------- */

.as-shop-curated--seasonal
.as-shop-seasonal__archive-link:hover,

.as-shop-curated--promotions
.as-shop-promotions__archive-link:hover,

.as-shop-curated--home-pharmacy
.as-shop-home-pharmacy__archive-link:hover,

.as-shop-curated--brands
.as-shop-featured-brands__archive-link:hover {
    color: #4c78d3 !important;
    background: #f7f8fa !important;
    border-color: #4c78d3 !important;
}


/* ---------- Focus ---------- */

.as-shop-curated--seasonal
.as-shop-seasonal__archive-link:focus-visible,

.as-shop-curated--promotions
.as-shop-promotions__archive-link:focus-visible,

.as-shop-curated--home-pharmacy
.as-shop-home-pharmacy__archive-link:focus-visible,

.as-shop-curated--brands
.as-shop-featured-brands__archive-link:focus-visible {
    outline: 2px solid #2f3440 !important;
    outline-offset: 2px !important;
}


/* ---------- Arrow ---------- */

.as-shop-curated--seasonal
.as-shop-seasonal__archive-link-arrow,

.as-shop-curated--promotions
.as-shop-promotions__archive-link-arrow,

.as-shop-curated--home-pharmacy
.as-shop-home-pharmacy__archive-link-arrow,

.as-shop-curated--brands
.as-shop-featured-brands__archive-link-arrow {
    display: inline-block !important;

    font-size: 18px !important;
    line-height: 1 !important;

    transition: transform 0.2s ease !important;
}


/* ---------- Arrow Hover ---------- */

.as-shop-curated--seasonal
.as-shop-seasonal__archive-link:hover
.as-shop-seasonal__archive-link-arrow,

.as-shop-curated--promotions
.as-shop-promotions__archive-link:hover
.as-shop-promotions__archive-link-arrow,

.as-shop-curated--home-pharmacy
.as-shop-home-pharmacy__archive-link:hover
.as-shop-home-pharmacy__archive-link-arrow,

.as-shop-curated--brands
.as-shop-featured-brands__archive-link:hover
.as-shop-featured-brands__archive-link-arrow {
    transform: translateX(3px) !important;
}


/* ---------- Mobile ---------- */

@media (max-width: 767px) {

    .as-shop-curated--seasonal
    .as-shop-seasonal__footer,

    .as-shop-curated--promotions
    .as-shop-promotions__footer,

    .as-shop-curated--home-pharmacy
    .as-shop-home-pharmacy__footer,

    .as-shop-curated--brands
    .as-shop-featured-brands__footer {
        margin-top: 16px !important;
    }


    .as-shop-curated--seasonal
    .as-shop-seasonal__archive-link,

    .as-shop-curated--promotions
    .as-shop-promotions__archive-link,

    .as-shop-curated--home-pharmacy
    .as-shop-home-pharmacy__archive-link,

    .as-shop-curated--brands
    .as-shop-featured-brands__archive-link {
        width: 100% !important;
        min-height: 46px !important;

        padding: 10px 12px !important;

        font-size: 13px !important;
    }
}

/* =========================================================
   APTEKA SANTE — Promotions Page
   FINAL
   Scope:
   - product grid 5 / 3 / 2
   - responsive filter toggle
   - results / sorting toolbar
   Product-card visuals are inherited from:
   .as-shop-archive .as-shop-products
   ========================================================= */


/* =========================================================
   2. Responsive filter toggle
   ========================================================= */

@media (max-width: 980px) {

  .as-promotions-page
  .et_pb_button_module_wrapper
  > a.as-filter-toggle-wrap {
    display: flex !important;

    width: 100% !important;
    min-width: 100% !important;
    max-width: none !important;

    box-sizing: border-box !important;

    align-items: center !important;
    justify-content: center !important;
  }

}


/* =========================================================
   3. Results toolbar — shared base
   ========================================================= */

.as-promotions-results-toolbar {
  width: 100% !important;
}


.as-promotions-results-count {
  margin: 0 !important;

  font-family: Inter, sans-serif !important;
  line-height: 1.4 !important;
  font-weight: 600 !important;
  color: #2f3440 !important;
}


.as-promotions-sorting-form {
  display: flex !important;
  align-items: center !important;

  min-width: 0 !important;

  margin: 0 !important;
}


.as-promotions-orderby {
  height: 44px !important;

  background-color: #ffffff !important;

  border: 1px solid #eef1f4 !important;
  border-radius: 10px !important;

  font-family: Inter, sans-serif !important;
  font-weight: 400 !important;
  color: #2f3440 !important;

  cursor: pointer !important;
}


.as-promotions-orderby-submit {
  height: 44px !important;
  min-height: 44px !important;

  background: #ffffff !important;
  background-color: #ffffff !important;

  border: 1px solid #4c78d3 !important;
  border-radius: 10px !important;

  font-family: Inter, sans-serif !important;
  font-weight: 600 !important;
  color: #4c78d3 !important;

  cursor: pointer !important;

  transition:
    background-color 0.2s ease,
    color 0.2s ease !important;
}


.as-promotions-orderby-submit:hover {
  background: #f7f8fa !important;
  background-color: #f7f8fa !important;

  color: #4c78d3 !important;
}


.as-promotions-orderby:focus-visible,
.as-promotions-orderby-submit:focus-visible {
  outline: 2px solid #4c78d3 !important;
  outline-offset: 2px !important;
}


/* =========================================================
   4. Results toolbar — Desktop
   ========================================================= */

@media (min-width: 981px) {

  .as-promotions-results-toolbar {
    display: flex !important;

    align-items: center !important;
    justify-content: space-between !important;

    gap: 20px !important;

    margin: 0 0 24px !important;
  }


  .as-promotions-results-count {
    font-size: 15px !important;
  }


  .as-promotions-sorting-form {
    justify-content: flex-end !important;

    gap: 10px !important;
  }


  .as-promotions-orderby {
    min-width: 230px !important;

    padding: 0 38px 0 14px !important;

    font-size: 14px !important;
    line-height: 1.2 !important;
  }


  .as-promotions-orderby-submit {
    padding: 0 18px !important;

    font-size: 14px !important;
    line-height: 1.2 !important;
  }

}


/* =========================================================
   5. Results toolbar — Tablet
   ========================================================= */

@media (min-width: 768px) and (max-width: 980px) {

  .as-promotions-results-toolbar {
    display: flex !important;

    align-items: center !important;
    justify-content: space-between !important;

    gap: 16px !important;

    margin: 0 0 22px !important;
  }


  .as-promotions-results-count {
    flex: 0 0 auto !important;

    font-size: 15px !important;
  }


  .as-promotions-sorting-form {
    justify-content: flex-end !important;

    gap: 10px !important;
  }


  .as-promotions-orderby {
    width: 220px !important;
    max-width: 220px !important;

    padding: 0 36px 0 14px !important;

    font-size: 14px !important;
  }


  .as-promotions-orderby-submit {
    padding: 0 16px !important;

    font-size: 14px !important;
  }

}


/* =========================================================
   6. Results toolbar — Mobile
   ========================================================= */

@media (max-width: 767px) {

  .as-promotions-results-toolbar {
    display: flex !important;
    flex-direction: column !important;

    align-items: stretch !important;

    gap: 12px !important;

    margin: 0 0 20px !important;
  }


  .as-promotions-results-count {
    width: 100% !important;

    font-size: 14px !important;
  }


  .as-promotions-sorting-form {
    width: 100% !important;

    gap: 8px !important;
  }


  .as-promotions-orderby {
    flex: 1 1 auto !important;

    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;

    padding: 0 34px 0 12px !important;

    font-size: 13px !important;
  }


  .as-promotions-orderby-submit {
    flex: 0 0 auto !important;

    padding: 0 14px !important;

    font-size: 13px !important;
  }

}

/* =========================================================
   APTEKA SANTE — Shared Product Card Ghost Action
   Variable products / non-direct purchase actions
   ========================================================= */

.as-product-card-actions
.button.as-product-card-ghost,
.as-product-card-actions
a.button.as-product-card-ghost {
    color: #4c78d3 !important;

    background: transparent !important;
    background-color: transparent !important;

    border: 1px solid #4c78d3 !important;

    box-shadow: none !important;
}

.as-product-card-actions
.button.as-product-card-ghost:hover,
.as-product-card-actions
a.button.as-product-card-ghost:hover,
.as-product-card-actions
.button.as-product-card-ghost:active,
.as-product-card-actions
a.button.as-product-card-ghost:active {
    color: #4c78d3 !important;

    background: #f3f6fc !important;
    background-color: #f3f6fc !important;

    border-color: #4c78d3 !important;

    box-shadow: none !important;
}

.as-product-card-actions
.button.as-product-card-ghost:focus-visible,
.as-product-card-actions
a.button.as-product-card-ghost:focus-visible {
    outline: 2px solid #2f3440 !important;
    outline-offset: 2px !important;
}

/* =========================================================
   APTEKA SANTE — /shop Featured Brands
   Grid + Brand Cards + Temporary Dummy Logo
   ========================================================= */

.as-shop-curated--brands .as-shop-featured-brands {
    width: 100%;
}


/* ---------- Grid ---------- */

.as-shop-curated--brands
.as-shop-featured-brands__grid {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 24px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}


/* ---------- Brand Card ---------- */

.as-shop-curated--brands
.as-shop-brand-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;

    min-width: 0 !important;
    min-height: 154px !important;

    padding: 20px 16px !important;

    color: #2f3440 !important;
    background: #ffffff !important;

    border: 1px solid #eef1f4 !important;
    border-radius: 14px !important;

    box-shadow: 0 8px 24px rgba(47, 52, 64, 0.06) !important;

    text-align: center !important;
    text-decoration: none !important;

    box-sizing: border-box !important;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease !important;
}


.as-shop-curated--brands
.as-shop-brand-card:hover {
    color: #2f3440 !important;

    border-color: #d9dee5 !important;

    box-shadow: 0 14px 32px rgba(47, 52, 64, 0.11) !important;

    transform: translateY(-3px) !important;
}


.as-shop-curated--brands
.as-shop-brand-card:focus-visible {
    outline: 2px solid #4c78d3 !important;
    outline-offset: 3px !important;
}


/* ---------- Temporary Logo Area ---------- */

.as-shop-curated--brands
.as-shop-brand-card__logo {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 100% !important;
    max-width: 150px !important;
    height: 72px !important;

    margin: 0 auto 14px !important;
    padding: 10px !important;

    background: #f7f8fa !important;
    border: 1px solid #eef1f4 !important;
    border-radius: 10px !important;

    box-sizing: border-box !important;
}


/* ---------- Dummy Logo ---------- */

.as-shop-curated--brands
.as-shop-brand-card__dummy-text {
    color: #8b929c !important;

    font-family: Inter, Arial, sans-serif !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1 !important;

    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
}


/* ---------- Brand Name ---------- */

.as-shop-curated--brands
.as-shop-brand-card__name {
    display: block !important;

    width: 100% !important;

    color: #2f3440 !important;

    font-family: Manrope, Arial, sans-serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;

    overflow-wrap: anywhere !important;
}


/* ---------- Tablet ---------- */

@media (max-width: 980px) {

    .as-shop-curated--brands
    .as-shop-featured-brands__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 20px !important;
    }

    .as-shop-curated--brands
    .as-shop-brand-card {
        min-height: 150px !important;
        padding: 18px 14px !important;
    }
}


/* ---------- Mobile ---------- */

@media (max-width: 767px) {

    .as-shop-curated--brands
    .as-shop-featured-brands__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 14px !important;
    }

    .as-shop-curated--brands
    .as-shop-brand-card {
        min-height: 138px !important;
        padding: 14px 10px !important;
    }

    .as-shop-curated--brands
    .as-shop-brand-card__logo {
        height: 62px !important;
        margin-bottom: 12px !important;
        padding: 8px !important;
    }

    .as-shop-curated--brands
    .as-shop-brand-card__name {
        font-size: 14px !important;
    }

    .as-shop-curated--brands
    .as-shop-brand-card__dummy-text {
        font-size: 11px !important;
    }
}

/* =========================================================
   APTEKA SANTE — /marki/ All Brands Grid
   Desktop 8 / Tablet 6 / Mobile 3
   ========================================================= */

.as-brands-page
.as-brand-index {
    width: 100%;
}


/* ---------- Grid ---------- */

.as-brands-page
.as-brand-index__grid {
    display: grid !important;
    grid-template-columns: repeat(8, minmax(0, 1fr)) !important;
    gap: 18px !important;

    width: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    box-sizing: border-box !important;
}


/* ---------- Brand Card ---------- */

.as-brands-page
.as-brand-index-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;

    min-width: 0 !important;
    min-height: 142px !important;

    padding: 16px 12px !important;

    color: #2f3440 !important;
    background: #ffffff !important;

    border: 1px solid #eef1f4 !important;
    border-radius: 14px !important;

    box-shadow: 0 6px 18px rgba(47, 52, 64, 0.05) !important;

    text-align: center !important;
    text-decoration: none !important;

    box-sizing: border-box !important;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease !important;
}


.as-brands-page
.as-brand-index-card:hover {
    color: #2f3440 !important;

    border-color: #d9dee5 !important;

    box-shadow: 0 12px 28px rgba(47, 52, 64, 0.10) !important;

    transform: translateY(-3px) !important;
}


.as-brands-page
.as-brand-index-card:focus-visible {
    outline: 2px solid #4c78d3 !important;
    outline-offset: 3px !important;
}


/* ---------- Logo Area ---------- */

.as-brands-page
.as-brand-index-card
.as-shop-brand-card__logo {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 100% !important;
    max-width: 120px !important;
    height: 64px !important;

    margin: 0 auto 12px !important;
    padding: 8px !important;

    background: #f7f8fa !important;
    border: 1px solid #eef1f4 !important;
    border-radius: 10px !important;

    box-sizing: border-box !important;
}


/* ---------- Dummy Logo ---------- */

.as-brands-page
.as-brand-index-card
.as-shop-brand-card__dummy-text {
    color: #8b929c !important;

    font-family: Inter, Arial, sans-serif !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1 !important;

    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
}


/* ---------- Brand Name ---------- */

.as-brands-page
.as-brand-index-card
.as-shop-brand-card__name {
    display: block !important;

    width: 100% !important;

    color: #2f3440 !important;

    font-family: Manrope, Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;

    overflow-wrap: anywhere !important;
}


/* ---------- Tablet ---------- */

@media (max-width: 980px) {

    .as-brands-page
    .as-brand-index__grid {
        grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
        gap: 16px !important;
    }

    .as-brands-page
    .as-brand-index-card {
        min-height: 138px !important;
        padding: 14px 10px !important;
    }

    .as-brands-page
    .as-brand-index-card
    .as-shop-brand-card__logo {
        height: 60px !important;
    }
}


/* ---------- Mobile ---------- */

@media (max-width: 767px) {

    .as-brands-page
    .as-brand-index__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }

    .as-brands-page
    .as-brand-index-card {
        min-height: 126px !important;
        padding: 12px 8px !important;
    }

    .as-brands-page
    .as-brand-index-card
    .as-shop-brand-card__logo {
        max-width: 100px !important;
        height: 54px !important;

        margin-bottom: 10px !important;
        padding: 6px !important;
    }

    .as-brands-page
    .as-brand-index-card
    .as-shop-brand-card__name {
        font-size: 12px !important;
    }

    .as-brands-page
    .as-brand-index-card
    .as-shop-brand-card__dummy-text {
        font-size: 10px !important;
    }
}

/* =========================================================
   APTEKA SANTE — Brand Logo Images
   Native WooCommerce product_brand thumbnail support
   ========================================================= */


/* ---------- Shared Brand Image ---------- */

.as-shop-brand-card__image {
    display: block !important;

    width: auto !important;
    max-width: 100% !important;

    height: auto !important;
    max-height: 100% !important;

    margin: 0 auto !important;
    padding: 0 !important;

    object-fit: contain !important;
    object-position: center !important;

    border: 0 !important;
    border-radius: 0 !important;

    box-shadow: none !important;

    background: transparent !important;
}


/* ---------- Real Logo Container ---------- */

.as-shop-brand-card__logo--image {
    overflow: hidden !important;

    background: #ffffff !important;
}


/* ---------- /shop Featured Brands ---------- */

.as-shop-curated--brands
.as-shop-brand-card__logo--image
.as-shop-brand-card__image {
    max-width: 130px !important;
    max-height: 52px !important;
}


/* ---------- /marki/ All Brands ---------- */

.as-brands-page
.as-brand-index-card
.as-shop-brand-card__logo--image
.as-shop-brand-card__image {
    max-width: 104px !important;
    max-height: 46px !important;
}


/* ---------- Tablet ---------- */

@media (max-width: 980px) {

    .as-shop-curated--brands
    .as-shop-brand-card__logo--image
    .as-shop-brand-card__image {
        max-width: 120px !important;
        max-height: 48px !important;
    }

    .as-brands-page
    .as-brand-index-card
    .as-shop-brand-card__logo--image
    .as-shop-brand-card__image {
        max-width: 96px !important;
        max-height: 42px !important;
    }
}


/* ---------- Mobile ---------- */

@media (max-width: 767px) {

    .as-shop-curated--brands
    .as-shop-brand-card__logo--image
    .as-shop-brand-card__image {
        max-width: 100px !important;
        max-height: 42px !important;
    }

    .as-brands-page
    .as-brand-index-card
    .as-shop-brand-card__logo--image
    .as-shop-brand-card__image {
        max-width: 82px !important;
        max-height: 38px !important;
    }
}

/* =========================================================
   AS / Brand Archive
   Desktop layout geometry
   v0.1
   ========================================================= */

@media (min-width: 981px) {

    .as-brand-archive-page .as-brand-archive-layout {
        width: 80% !important;
        max-width: 1440px !important;
        margin-left: auto !important;
        margin-right: auto !important;

        display: grid !important;
        grid-template-columns:
            minmax(220px, 1fr)
            minmax(0, 3fr) !important;

        column-gap: 32px !important;
        align-items: start !important;
    }

    .as-brand-archive-page
    .as-brand-archive-layout
    > .as-brand-archive-filter-column,

    .as-brand-archive-page
    .as-brand-archive-layout
    > .as-brand-archive-results {
        width: auto !important;
        max-width: none !important;
        min-width: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        flex: none !important;
    }
}

/* =========================================================
   AS / Brand Archive
   Filter card
   v0.2
   ========================================================= */

.as-brand-archive-page .as-brand-archive-filter {
    background: #ffffff;
    border: 1px solid #e7eaf0;
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 6px 20px rgba(30, 45, 70, 0.06);
}

.as-brand-archive-page .as-brand-archive-filter__form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 12px;
}

.as-brand-archive-page
.as-brand-archive-filter__field--search,

.as-brand-archive-page
.as-brand-archive-filter__field--category,

.as-brand-archive-page
.as-brand-archive-filter__actions {
    grid-column: 1 / -1;
}

.as-brand-archive-page .as-brand-archive-filter__field {
    min-width: 0;
}

.as-brand-archive-page .as-brand-archive-filter__label {
    display: block;
    margin: 0 0 7px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    color: #2f3440;
}

.as-brand-archive-page
.as-brand-archive-filter__input,

.as-brand-archive-page
.as-brand-archive-filter__select {
    display: block;
    width: 100%;
    min-width: 0;
    height: 44px;
    margin: 0;
    padding: 0 12px;

    border: 1px solid #d9dee5;
    border-radius: 1px;
    background: #EEF1F4;

    font: inherit;
    font-size: 14px;
    color: #2f3440;

    box-sizing: border-box;
}

.as-brand-archive-page
.as-brand-archive-filter__input:focus,

.as-brand-archive-page
.as-brand-archive-filter__select:focus {
    outline: none;
    border-color: #4c78d3;
    box-shadow: 0 0 0 2px rgba(76, 120, 211, 0.12);
}

.as-brand-archive-page .as-brand-archive-filter__actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 2px;
}

.as-brand-archive-page .as-brand-archive-filter__submit,
.as-brand-archive-page .as-brand-archive-filter__reset {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 44px;
    margin: 0;
    padding: 10px 16px;

    border-radius: 8px;

    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;

    cursor: pointer;
    box-sizing: border-box;
}

/* Apply — Primary Blue */
.as-brand-archive-page .as-brand-archive-filter__submit {
    border: 1px solid #4c78d3;
    background: #4c78d3;
    color: #ffffff;
}

.as-brand-archive-page .as-brand-archive-filter__submit:hover {
    border-color: #4c78d3;
    background: #426bc0;
    color: #ffffff;
}

/* Reset — Ghost */
.as-brand-archive-page .as-brand-archive-filter__reset {
    border: 1px solid #4c78d3;
    background: #ffffff;
    color: #4c78d3;
}

.as-brand-archive-page .as-brand-archive-filter__reset:hover {
    border-color: #4c78d3;
    background: #f7f8fa;
    color: #4c78d3;
}

/* =========================================================
   AS / Brand Archive
   Toolbar
   v0.3
   ========================================================= */

.as-brand-archive-page .as-brand-archive-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    width: 100%;
    margin: 0 0 22px;
}

.as-brand-archive-page .as-brand-archive-results-count {
    margin: 0;

    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: #5f6672;
}

.as-brand-archive-page .as-brand-archive-sorting-form {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;

    margin: 0;
}

.as-brand-archive-page .as-brand-archive-orderby {
    width: auto;
    min-width: 230px;
    height: 44px;
    margin: 0;
    padding: 0 38px 0 12px;

    border: 1px solid #d9dee8;
    border-radius: 8px;
    background-color: #ffffff;

    font: inherit;
    font-size: 14px;
    color: #2f3440;

    box-sizing: border-box;
}

.as-brand-archive-page .as-brand-archive-orderby:focus {
    outline: none;
    border-color: #4c78d3;
    box-shadow: 0 0 0 2px rgba(76, 120, 211, 0.12);
}

.as-brand-archive-page .as-brand-archive-sorting-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;
    margin: 0;
    padding: 10px 18px;

    border: 1px solid #4c78d3;
    border-radius: 8px;
    background: #ffffff;

    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    color: #4c78d3;

    cursor: pointer;
    box-sizing: border-box;
}

.as-brand-archive-page .as-brand-archive-sorting-submit:hover {
    border-color: #4c78d3;
    background: #f7f8fa;
    color: #4c78d3;
}

/* =========================================================
   AS / Brand Archive
   Desktop filter parity with Catalogue / Promotions
   v0.4
   ========================================================= */

@media (min-width: 981px) {

    /* Match Promotions filter/results geometry */
    .as-brand-archive-page .as-brand-archive-layout {
        grid-template-columns:
            265px
            minmax(0, 1fr) !important;

        column-gap: 72px !important;
    }

    /* More vertical breathing room between filter groups */
    .as-brand-archive-page
    .as-brand-archive-filter__form {
        row-gap: 22px !important;
        column-gap: 12px !important;
    }

    /* Keep price fields together */
    .as-brand-archive-page
    .as-brand-archive-filter__field--min-price,
    .as-brand-archive-page
    .as-brand-archive-filter__field--max-price {
        min-width: 0 !important;
    }

    /* Buttons: Reset first, Apply second */
    .as-brand-archive-page
    .as-brand-archive-filter__actions {
        margin-top: 4px !important;
        gap: 10px !important;
    }

    .as-brand-archive-page
    .as-brand-archive-filter__reset {
        order: 1;
    }

    .as-brand-archive-page
    .as-brand-archive-filter__submit {
        order: 2;
    }
}

/* =========================================================
   AS / Brand Archive
   Dual price slider
   Desktop v0.1
   ========================================================= */

@media (min-width: 981px) {

    /*
     * Slider occupies the full filter width,
     * above the two numeric price fields.
     */
    .as-brand-archive-page
    .as-brand-archive-filter__price-range {
        position: relative;

        grid-column: 1 / -1;

        width: 100%;
        height: 24px;

        margin: -3px 0 0;
        padding: 0;

        box-sizing: border-box;
    }

    /*
     * Visible Sante track.
     */
    .as-brand-archive-page
    .as-brand-archive-filter__price-range::before {
        content: "";

        position: absolute;
        z-index: 1;

        top: 50%;
        left: 8px;
        right: 8px;

        height: 1px;

        background: #333333;

        transform: translateY(-50%);
        pointer-events: none;
    }

    /*
     * Both functional range controls occupy
     * exactly the same physical space.
     */
    .as-brand-archive-page
    .as-brand-archive-filter__price-range
    input.as-brand-archive-filter__range[type="range"] {
        position: absolute !important;

        top: 0 !important;
        left: 0 !important;

        width: 100% !important;
        height: 24px !important;
        min-height: 0 !important;
        max-height: 24px !important;

        margin: 0 !important;
        padding: 0 !important;

        border: 0 !important;
        border-radius: 0 !important;

        background: transparent !important;
        background-color: transparent !important;
        background-image: none !important;

        box-shadow: none !important;

        appearance: none !important;
        -webkit-appearance: none !important;
        -moz-appearance: none !important;

        pointer-events: none !important;

        box-sizing: border-box !important;
    }

    .as-brand-archive-page
    .as-brand-archive-filter__range--min {
        z-index: 2;
    }

    .as-brand-archive-page
    .as-brand-archive-filter__range--max {
        z-index: 3;
    }

    /* Chrome / Edge / Safari — invisible native track */
    .as-brand-archive-page
    .as-brand-archive-filter__range::-webkit-slider-runnable-track {
        width: 100%;
        height: 1px;

        border: 0;

        background: transparent;

        box-shadow: none;
    }

    /* Chrome / Edge / Safari — handles */
    .as-brand-archive-page
    .as-brand-archive-filter__range::-webkit-slider-thumb {
        width: 18px;
        height: 18px;

        margin-top: -8.5px;

        border: 1px solid #333333;
        border-radius: 50%;

        background: #ffffff;

        box-shadow: none;

        appearance: none;
        -webkit-appearance: none;

        pointer-events: auto;

        cursor: pointer;
    }

    /* Firefox — invisible native track */
    .as-brand-archive-page
    .as-brand-archive-filter__range::-moz-range-track {
        width: 100%;
        height: 1px;

        border: 0;

        background: transparent;

        box-shadow: none;
    }

    /* Firefox — handles */
    .as-brand-archive-page
    .as-brand-archive-filter__range::-moz-range-thumb {
        width: 18px;
        height: 18px;

        border: 1px solid #333333;
        border-radius: 50%;

        background: #ffffff;

        box-shadow: none;

        pointer-events: auto;

        cursor: pointer;
    }

    /*
     * Accessible keyboard focus.
     */
    .as-brand-archive-page
    .as-brand-archive-filter__range:focus {
        outline: none !important;
        box-shadow: none !important;
    }

    .as-brand-archive-page
    .as-brand-archive-filter__range:focus-visible::-webkit-slider-thumb {
        outline: 2px solid #4c78d3;
        outline-offset: 2px;
    }

    .as-brand-archive-page
    .as-brand-archive-filter__range:focus-visible::-moz-range-thumb {
        outline: 2px solid #4c78d3;
        outline-offset: 2px;
    }
}

/* =========================================================
   AS / Brand Archive
   Responsive filter toggle alignment
   ========================================================= */

@media (max-width: 980px) {

    #as-brand-responsive-filter-toggle {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        width: 100% !important;

        text-align: center !important;
    }
}

/* =========================================================
   AS / Brand Archive
   Mobile toolbar
   <= 767px
   ========================================================= */

@media (max-width: 767px) {

    .as-brand-archive-page
    .as-brand-archive-toolbar {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;

        width: 100% !important;
        gap: 12px !important;

        margin-bottom: 22px !important;
    }

    .as-brand-archive-page
    .as-brand-archive-results-count {
        width: 100% !important;
        margin: 0 !important;
    }

    .as-brand-archive-page
    .as-brand-archive-sorting-form {
        display: grid !important;
        grid-template-columns:
            minmax(0, 1fr)
            auto !important;

        width: 100% !important;
        min-width: 0 !important;

        gap: 10px !important;
        margin: 0 !important;
    }

    .as-brand-archive-page
    .as-brand-archive-orderby {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .as-brand-archive-page
    .as-brand-archive-sorting-submit {
        width: auto !important;
        min-width: 0 !important;
        white-space: nowrap !important;
    }
}

/* =========================================================
   APTEKA SANTE
   Special Pages Bar
   Desktop visual v0.1
   ========================================================= */

.as-special-pages-bar {
    width: 100%;

    background: #f7f8fa;
    border-bottom: 1px solid #eef1f4;

    box-sizing: border-box;
}

.as-special-pages-bar__inner {
    width: 90%;
    max-width: 1280px;

    margin-left: auto;
    margin-right: auto;

    box-sizing: border-box;
}

.as-special-pages-bar__nav {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 48px;

    gap: 44px;

    margin: 0;
    padding: 0;
}

.as-special-pages-bar__link {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 48px;

    margin: 0;
    padding: 0 4px;

    font-family: Inter, sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;

    color: #2f3440;

    text-decoration: none;

    box-sizing: border-box;
}

.as-special-pages-bar__link:hover,
.as-special-pages-bar__link:focus {
    color: #4c78d3;
    text-decoration: none;
}

/*
 * Current destination.
 * Static for now — animation comes later.
 */
.as-special-pages-bar__link--active {
    color: #4c78d3;
}

.as-special-pages-bar__link--active::after {
    content: "";

    position: absolute;

    left: 4px;
    right: 4px;
    bottom: 7px;

    height: 2px;

    border-radius: 999px;
    background: #4c78d3;
}

.as-special-pages-bar__link:focus-visible {
    outline: 2px solid #4c78d3;
    outline-offset: 3px;
    border-radius: 4px;
}

/* =========================================================
   APTEKA SANTE
   Special Pages Bar
   Micro interactions v0.1
   ========================================================= */

/*
 * Gentle link movement.
 */
.as-special-pages-bar__link {
    transition:
        color 180ms ease,
        transform 180ms ease;
}

.as-special-pages-bar__link:hover,
.as-special-pages-bar__link:focus-visible {
    transform: translateY(-1px);
}


/*
 * Fine underline.
 *
 * Hidden by default and softly expands
 * from the centre on hover/focus.
 */
.as-special-pages-bar__link::after {
    content: "";

    position: absolute;

    left: 4px;
    right: 4px;
    bottom: 7px;

    height: 2px;

    border-radius: 999px;
    background: #4c78d3;

    transform: scaleX(0);
    transform-origin: center;

    opacity: 0;

    transition:
        transform 200ms ease,
        opacity 160ms ease;
}


/*
 * Hover / keyboard focus.
 */
.as-special-pages-bar__link:hover::after,
.as-special-pages-bar__link:focus-visible::after {
    transform: scaleX(1);
    opacity: 1;
}


/*
 * Current page remains visibly active.
 */
.as-special-pages-bar__link--active::after {
    transform: scaleX(1);
    opacity: 1;
}


/*
 * One soft entrance when the page loads.
 * No pulse, loop or repeating movement.
 */
.as-special-pages-bar__inner {
    animation:
        as-special-pages-bar-enter
        300ms
        ease-out
        both;
}

@keyframes as-special-pages-bar-enter {

    from {
        opacity: 0;
        transform: translateY(-3px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/*
 * Accessibility:
 * respect reduced-motion preference.
 */
@media (prefers-reduced-motion: reduce) {

    .as-special-pages-bar__inner {
        animation: none !important;
    }

    .as-special-pages-bar__link,
    .as-special-pages-bar__link::after {
        transition: none !important;
    }

    .as-special-pages-bar__link:hover,
    .as-special-pages-bar__link:focus-visible {
        transform: none !important;
    }
}

/* =========================================================
   APTEKA SANTE
   Special Pages Bar
   Mobile horizontal rail
   <= 767px
   ========================================================= */

@media (max-width: 767px) {

    .as-special-pages-bar__inner {
        width: 100% !important;
        max-width: none !important;
    }

    .as-special-pages-bar__nav {
        justify-content: flex-start !important;

        width: 100% !important;
        min-height: 48px !important;

        gap: 28px !important;

        padding-left: 18px !important;
        padding-right: 18px !important;

        overflow-x: auto !important;
        overflow-y: hidden !important;

        white-space: nowrap !important;

        scrollbar-width: none;

        -webkit-overflow-scrolling: touch;

        scroll-snap-type: x proximity;

        box-sizing: border-box;
    }

    .as-special-pages-bar__nav::-webkit-scrollbar {
        display: none;
    }

    .as-special-pages-bar__link {
        flex: 0 0 auto !important;

        white-space: nowrap !important;

        scroll-snap-align: center;
    }
}

/* =========================================================
   APTEKA SANTE
   Special Pages Bar
   Mobile auto-drift compatibility
   ========================================================= */

@media (max-width: 767px) {

    .as-special-pages-bar__nav {
        scroll-snap-type: none !important;
    }

    .as-special-pages-bar__link {
        scroll-snap-align: none !important;
    }
}

/* =========================================================
   APTEKA SANTE
   WooCommerce Mobile Header Width Parity
   Divi 5 specificity fix
   <= 767px
   ========================================================= */

@media (max-width: 767px) {

    body.woocommerce.et-db
    #et-boc
    .et-l.et-l--header
    .as-mobile-header-section
    .et_pb_row.as-mobile-main-row,

    body.woocommerce.et-db
    #et-boc
    .et-l.et-l--header
    .as-mobile-header-section
    .et_pb_row.as-mobile-search-row,

    body.woocommerce-page.et-db
    #et-boc
    .et-l.et-l--header
    .as-mobile-header-section
    .et_pb_row.as-mobile-main-row,

    body.woocommerce-page.et-db
    #et-boc
    .et-l.et-l--header
    .as-mobile-header-section
    .et_pb_row.as-mobile-search-row {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* =========================================================
   APTEKA SANTE
   Mobile Header Logo Alignment
   Divi 5 specificity fix
   <= 767px
   ========================================================= */

@media (max-width: 767px) {

    .et-db
    #et-boc
    .et-l.et-l--header
    .as-mobile-header-section
    .as-mobile-main-row
    .et_pb_image {
        margin-left: 0 !important;
        margin-right: auto !important;
        text-align: left !important;
    }
}