/* >>> base/tokens.css */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Montserrat:wght@500;600;700;800&display=swap');

:root {
  --bg: #f3f7fb;
  --surface: #ffffff;
  --surface-2: #f8fbff;
  --text: #182942;
  --text-muted: #6c7a95;

  --line: #d7e3f0;
  --line-strong: #b8cfe7;

  --primary: #0b6fd0;
  --primary-700: #0a5fb2;
  --primary-soft: #eaf4ff;

  --success: #18a871;
  --success-soft: #eafaf3;

  --danger: #c73f5f;
  --danger-soft: #fff1f4;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --shadow-sm: 0 6px 16px rgba(18, 47, 87, 0.08);
  --shadow-md: 0 12px 28px rgba(18, 47, 87, 0.12);

  --container: 1240px;
}


/* >>> base/reset.css */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.52;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.mobile-menu-open,
body.is-login-modal-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--primary-700);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-family: 'Montserrat', 'Manrope', sans-serif;
}

p {
  margin: 0 0 12px;
}

button,
input,
textarea,
select {
  font: inherit;
}

div[hidden],
[hidden] {
  display: none !important;
}


/* >>> layout/shell.css */
.container {
  width: min(var(--container), 94vw);
  margin: 0 auto;
}

.site-main {
  min-height: 60vh;
  padding-bottom: 48px;
}

.apteka-page-wrap {
  padding-top: 24px;
}

.apteka-content,
.apteka-article,
.apteka-search-page {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 20px;
}

.apteka-page-title {
  margin: 0 0 16px;
  font-size: clamp(30px, 3vw, 42px);
}

.apteka-section-head {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.apteka-section-head h1,
.apteka-section-head h2 {
  font-size: clamp(24px, 2vw, 32px);
}

.apteka-section-head a {
  font-size: 14px;
  font-weight: 700;
  color: #2d4f7b;
}

.apteka-breadcrumb {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.apteka-breadcrumb .sep {
  margin: 0 4px;
  opacity: 0.55;
}

.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-error {
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: #fff;
}

.apteka-reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.apteka-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 640px) {
  .container {
    width: min(var(--container), 96vw);
  }

  .apteka-content,
  .apteka-article,
  .apteka-search-page {
    padding: 14px;
  }
}


/* >>> layout/header.css */
.apteka-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.apteka-topbar {
  border-bottom: 1px solid #e5eef8;
  background: #f8fbff;
}

.apteka-topbar__inner {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: #5b7390;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

.apteka-city-picker {
  position: relative;
}

.apteka-topbar .apteka-city-picker {
  min-width: 190px;
}

.apteka-city-picker--mobile {
  display: none;
}

.apteka-city-picker__button {
  min-height: 28px;
  border-radius: 999px;
  border: 1px solid #d4e4f6;
  background: #fff;
  color: #425f82;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.apteka-city-picker__label {
  color: #58718f;
}

.apteka-city-picker__value {
  color: #264a76;
  display: inline-block;
  min-width: 72px;
  max-width: 148px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.apteka-city-picker__chevron {
  width: 12px;
  height: 12px;
  color: #6482a7;
  transition: transform 0.2s ease;
}

.apteka-city-picker.is-open .apteka-city-picker__button {
  border-color: #a8c6e4;
  box-shadow: 0 0 0 2px rgba(11, 111, 208, 0.12);
}

.apteka-city-picker.is-open .apteka-city-picker__chevron {
  transform: rotate(180deg);
}

.apteka-city-picker__menu {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  min-width: 210px;
  max-height: 280px;
  overflow-y: auto;
  border: 1px solid #ccddf0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 28px rgba(16, 50, 87, 0.16);
  padding: 6px;
  display: none;
  z-index: 70;
}

.apteka-city-picker.is-open .apteka-city-picker__menu {
  display: grid;
}

.apteka-city-picker__option {
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #36577e;
  text-align: left;
  min-height: 32px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.apteka-city-picker__option:hover {
  background: #f1f7ff;
  color: #1c4f84;
}

.apteka-city-picker__option.is-selected {
  background: #e9f3ff;
  color: #0f5aa8;
}

.apteka-topbar__phone {
  margin-left: auto;
  color: #48627f;
  font-weight: 700;
  min-width: 220px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  white-space: nowrap;
}

.apteka-topbar__phone a {
  color: #0a4f96;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
}

.apteka-topbar__phone a:hover {
  color: #083e76;
}

.apteka-topbar__lang {
  flex: 0 0 20px;
  color: #445d7a;
  font-weight: 700;
}

.apteka-header__main {
  min-height: 84px;
  display: grid;
  grid-template-columns: minmax(128px, 210px) auto 1fr auto;
  align-items: center;
  gap: 14px;
}

.apteka-burger {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 8px;
  cursor: pointer;
}

.apteka-burger span {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: #2c4b73;
  margin: 5px 0;
}

.apteka-logo {
  min-width: 0;
  display: flex;
  align-items: center;
}

.apteka-logo .custom-logo-link,
.apteka-logo .apteka-logo__link {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
}

.apteka-logo img,
.apteka-logo .custom-logo {
  max-height: 58px;
  max-width: 100%;
  width: auto !important;
  height: auto !important;
  object-fit: contain;
}

.apteka-catalog-btn {
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #9fd7c5;
  background: #effbf6;
  color: #0f7458;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.apteka-catalog-btn .icon {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid #a9dcca;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.apteka-icon {
  width: 18px;
  height: 18px;
}

.apteka-search-form {
  min-height: 46px;
  border: 1px solid #9dcab7;
  border-radius: 10px;
  background: #fff;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.apteka-search-form input[type='search'] {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 0 14px;
  background: transparent;
}

.apteka-search-form input[type='search']::placeholder {
  color: #8090a9;
}

.apteka-search-form button {
  width: 44px;
  height: 44px;
  border: 0;
  border-left: 1px solid #dde9f6;
  background: #fff;
  color: #127b5f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.apteka-header-icons {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.apteka-header-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid #c8daef;
  background: linear-gradient(180deg, #ffffff 0%, #f4f9ff 100%);
  color: #28507f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow:
    0 8px 16px rgba(14, 53, 94, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  flex: 0 0 auto;
  transition:
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.22s ease,
    color 0.22s ease,
    background-color 0.22s ease;
}

.apteka-header-icon:hover {
  border-color: #9fc1e2;
  color: #0e5aa8;
  transform: translateY(-1px);
  box-shadow:
    0 12px 22px rgba(14, 53, 94, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

.apteka-header-icon .apteka-icon {
  width: 20px;
  height: 20px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.apteka-header-icon--cart {
  background: linear-gradient(180deg, #ffffff 0%, #eef8f4 100%);
  border-color: #b6dcca;
  color: #177558;
}

.apteka-header-icon--cart:hover {
  border-color: #8ec9b0;
  color: #0f6a4f;
}

.apteka-header-icon--cart .count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  min-height: 20px;
  border-radius: 999px;
  background: linear-gradient(180deg, #20bb83 0%, #12966b 100%);
  color: #fff;
  border: 2px solid #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 12px rgba(16, 100, 75, 0.25);
}

.apteka-nav-wrap {
  border-top: 1px solid #edf4fb;
}

.apteka-mobile-menu {
  display: none;
}

.apteka-mobile-menu-backdrop {
  display: none;
}

.apteka-nav-wrap .container {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
}

.apteka-promotions-nav {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
}

.apteka-promotions-nav__all {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #8bd6bc;
  background: linear-gradient(180deg, #f0fff9 0%, #e5f9f0 100%);
  color: #137557;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.apteka-promotions-nav__list {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 0;
}

.apteka-promotions-nav__item {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid #d8e5f4;
  background: #fff;
  color: #4d5f7a;
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.apteka-promotions-nav__item:hover,
.apteka-promotions-nav__all:hover {
  border-color: #bfd6ef;
  color: #2c517f;
}

@media (max-width: 1080px) {
  .apteka-header__main {
    grid-template-columns: auto 1fr auto;
  }

  .apteka-catalog-btn {
    display: none;
  }
}

@media (max-width: 780px) {
  :root {
    --apteka-mobile-header-offset: 160px;
    --apteka-mobile-header-gap: 10px;
    --apteka-mobile-adminbar-offset: 46px;
  }

  #site-header.apteka-header {
    position: fixed !important;
    top: env(safe-area-inset-top, 0px);
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1200;
  }

  #primary.site-main {
    padding-top: calc(
      var(--apteka-mobile-header-offset) + var(--apteka-mobile-header-gap) + env(safe-area-inset-top, 0px)
    ) !important;
  }

  body.admin-bar #site-header.apteka-header {
    top: calc(var(--apteka-mobile-adminbar-offset) + env(safe-area-inset-top, 0px));
  }

  body.admin-bar #primary.site-main {
    padding-top: calc(
      var(--apteka-mobile-header-offset) +
      var(--apteka-mobile-header-gap) +
      var(--apteka-mobile-adminbar-offset) +
      env(safe-area-inset-top, 0px)
    ) !important;
  }

  html,
  body {
    overflow-x: hidden;
  }

  .apteka-header {
    overflow-x: clip;
  }

  .apteka-topbar {
    display: none;
  }

  .apteka-burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .apteka-header__main {
    min-height: 70px;
    grid-template-columns: minmax(0, 1fr) auto 40px;
    grid-template-areas:
      'logo city burger'
      'search search search';
    align-items: center;
    column-gap: 10px;
    row-gap: 8px;
    padding: 8px 0 10px;
  }

  .apteka-logo {
    grid-area: logo;
    min-width: 0;
    justify-content: flex-start;
    justify-self: start;
    margin-left: 0;
    overflow: hidden;
  }

  .apteka-burger {
    grid-area: burger;
    justify-self: end;
  }

  .apteka-city-picker--mobile {
    grid-area: city;
    display: block;
    justify-self: start;
  }

  .apteka-city-picker--mobile .apteka-city-picker__button {
    min-height: 24px;
    height: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    justify-content: flex-start;
    background: transparent;
    box-shadow: none;
    gap: 4px;
    margin-top: 1px;
  }

  .apteka-city-picker--mobile .apteka-city-picker__label {
    display: none;
  }

  .apteka-city-picker--mobile .apteka-city-picker__value {
    display: block;
    max-width: 126px;
  }

  .apteka-city-picker--mobile .apteka-city-picker__pin {
    width: 18px;
    height: 18px;
    color: #2e5a88;
  }

  .apteka-city-picker--mobile .apteka-city-picker__chevron {
    display: block;
    width: 10px;
    height: 10px;
    color: #6b88a9;
  }

  .apteka-city-picker--mobile .apteka-city-picker__menu {
    left: auto;
    right: 0;
    min-width: 180px;
    max-width: 82vw;
  }

  .apteka-logo img,
  .apteka-logo .custom-logo {
    max-height: 34px;
  }

  .apteka-header-icons {
    display: none;
  }

  .apteka-search-form {
    grid-area: search;
    order: 4;
    width: 100%;
    min-width: 0;
    margin-bottom: 0;
    min-height: 42px;
  }

  .apteka-search-form button {
    width: 40px;
    height: 40px;
  }

  .apteka-mobile-menu-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(7, 23, 44, 0.28);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.24s ease;
    z-index: 90;
  }

  .apteka-mobile-menu-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .apteka-mobile-menu {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: min(320px, 86vw);
    height: 100dvh;
    background: #fff;
    border-right: 1px solid #dbe9f7;
    box-shadow: 0 24px 54px rgba(8, 33, 62, 0.28);
    transform: translate3d(-102%, 0, 0);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    overflow-y: auto;
    z-index: 100;
  }

  .apteka-mobile-menu.is-open {
    transform: translate3d(0, 0, 0);
  }

  .apteka-mobile-menu__nav {
    display: grid;
    gap: 8px;
    padding: 72px 0 18px;
  }

  .apteka-mobile-menu__nav a {
    min-height: 36px;
    border: 1px solid #d8e6f5;
    border-radius: 10px;
    padding: 8px 12px;
    color: #2f4f77;
    font-size: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    background: linear-gradient(180deg, #fff 0%, #f7fbff 100%);
  }

  .apteka-mobile-menu__nav a:hover {
    border-color: #bdd3ea;
    color: #1f4470;
  }

  .apteka-nav-wrap,
  .apteka-nav-wrap.is-open {
    display: block;
    border-top: 0;
  }

  .apteka-nav-wrap .container {
    min-height: 0;
    overflow: hidden;
  }

  .apteka-promotions-nav {
    min-width: 0;
    align-items: center;
    flex-direction: row;
    gap: 8px;
    padding: 6px 0;
  }

  .apteka-promotions-nav__all {
    display: none;
  }

  .apteka-promotions-nav__list {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    flex: 1 1 auto;
    padding: 2px 2px 6px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .apteka-promotions-nav__list::-webkit-scrollbar {
    display: none;
  }

  .apteka-promotions-nav__item {
    scroll-snap-align: start;
    min-height: 30px;
    padding: 6px 10px;
    font-size: 12px;
  }

  body.mobile-menu-open {
    overflow: hidden;
  }
}

@media (max-width: 420px) {
  .apteka-header__main {
    grid-template-columns: minmax(0, 1fr) auto 36px;
    gap: 8px;
    row-gap: 7px;
  }

  .apteka-burger {
    width: 36px;
    height: 36px;
    padding: 7px;
  }

  .apteka-logo img,
  .apteka-logo .custom-logo {
    max-height: 30px;
  }

  .apteka-city-picker--mobile .apteka-city-picker__button {
    min-height: 24px;
    height: auto;
  }

  .apteka-city-picker--mobile .apteka-city-picker__pin {
    width: 17px;
    height: 17px;
  }

  .apteka-city-picker--mobile .apteka-city-picker__value {
    display: block;
    max-width: 96px;
  }

  .apteka-search-form input[type='search'] {
    padding: 0 10px;
    font-size: 14px;
  }
}

/* Mobile header hard override to avoid legacy conflicts */
@media (max-width: 780px) {
  #site-header > .container.apteka-header__main {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto 40px !important;
    grid-template-areas:
      'logo city burger'
      'search search search' !important;
    align-items: center !important;
    column-gap: 10px !important;
    row-gap: 8px !important;
    min-height: 70px !important;
    padding: 8px 0 10px !important;
  }

  #site-header .apteka-burger {
    grid-area: burger !important;
    justify-self: end !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-direction: column !important;
    gap: 4px !important;
    border: 1px solid #c6d9ee !important;
    background: #ffffff !important;
  }

  #site-header .apteka-burger span {
    display: block !important;
    width: 16px !important;
    height: 2px !important;
    margin: 0 !important;
    border-radius: 999px !important;
    background: #1f4d7d !important;
    opacity: 1 !important;
  }

  #site-header .apteka-burger.is-open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg) !important;
  }

  #site-header .apteka-burger.is-open span:nth-child(2) {
    opacity: 0 !important;
  }

  #site-header .apteka-burger.is-open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg) !important;
  }

  #site-header .apteka-burger span {
    transition: transform 0.2s ease, opacity 0.2s ease !important;
  }

  #site-header .apteka-logo {
    grid-area: logo !important;
    justify-self: start !important;
    margin-left: 0 !important;
    min-width: 0 !important;
  }

  #site-header .apteka-city-picker--mobile {
    grid-area: city !important;
    display: block !important;
  }

  #site-header .apteka-city-picker--mobile .apteka-city-picker__value {
    display: block !important;
    max-width: 126px !important;
  }

  #site-header .apteka-header-icons {
    display: none !important;
  }

  #site-header .apteka-search-form {
    grid-area: search !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  #site-header .apteka-mobile-menu__head {
    position: sticky !important;
    top: 0 !important;
    z-index: 2 !important;
    min-height: 54px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    border-bottom: 1px solid #e3eef9 !important;
    background: #fff !important;
    padding: 10px 0 8px !important;
  }

  #site-header .apteka-mobile-menu__title {
    font-size: 18px !important;
    color: #204a77 !important;
    line-height: 1.2 !important;
    padding-left: 10px !important;
  }

  #site-header .apteka-mobile-menu__close {
    width: 32px !important;
    height: 32px !important;
    border: 1px solid #d2e1f1 !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: #355c87 !important;
    font-size: 22px !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  #site-header .apteka-mobile-menu__nav {
    padding-top: 14px !important;
  }

  #site-header .apteka-catalog-btn {
    display: none !important;
  }
}

@media (max-width: 420px) {
  #site-header > .container.apteka-header__main {
    grid-template-columns: minmax(0, 1fr) auto 36px !important;
    column-gap: 8px !important;
    row-gap: 7px !important;
  }

  #site-header .apteka-city-picker--mobile .apteka-city-picker__value {
    max-width: 96px !important;
  }
}


/* >>> layout/footer.css */
.apteka-footer {
  margin-top: 38px;
  border-top: 1px solid var(--line);
  background: #edf4fb;
}

.apteka-footer__inner {
  padding: 32px 0;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 18px;
}

.apteka-footer strong {
  display: block;
  margin-bottom: 8px;
  font-size: 19px;
}

.apteka-footer p {
  margin: 0;
  color: var(--text-muted);
}

.apteka-footer h3 {
  margin: 0 0 10px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6a7891;
}

.apteka-footer ul,
.apteka-footer-menu {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.apteka-footer a {
  color: #3e5678;
}

.apteka-footer a:hover {
  color: var(--primary);
}

.apteka-footer__phone {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.apteka-footer__phone strong {
  margin: 0;
  font-size: 13px;
}

.apteka-footer__phone a {
  font-weight: 700;
}

.apteka-footer-social {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.apteka-footer-social__button {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid #c6d9ed;
  background: #fff;
  box-shadow: 0 6px 14px rgba(16, 45, 79, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.apteka-footer-social__button:hover {
  transform: translateY(-2px);
  border-color: #9fc1e2;
  box-shadow: 0 10px 18px rgba(16, 45, 79, 0.15);
}

.apteka-footer-social__button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.apteka-footer-social__button span {
  font-size: 13px;
  font-weight: 700;
  color: #2c4f78;
}

.apteka-footer__bottom {
  min-height: 46px;
  border-top: 1px solid #dbe7f4;
  display: flex;
  align-items: center;
  color: #74839d;
}

.apteka-footer__bottom-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.apteka-footer__legal-links {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-right: clamp(8px, 1.2vw, 18px);
}

.apteka-footer__legal-links a {
  font-size: 13px;
  color: #4d6789;
}

.apteka-footer__legal-links a:hover {
  color: var(--primary);
}

@media (max-width: 780px) {
  .apteka-footer__inner {
    grid-template-columns: 1fr;
  }

  .apteka-footer__bottom-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .apteka-footer__legal-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

/* Final override: premium footer skin */
#site-footer.apteka-footer {
  margin-top: 44px !important;
  border-top: 1px solid rgba(16, 67, 116, 0.18) !important;
  background: radial-gradient(140% 120% at 0% 0%, #f4f9ff 0%, #e8f2fb 55%, #e3eef9 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7) !important;
}

#site-footer .apteka-footer__inner {
  padding: 34px 0 28px !important;
  grid-template-columns: minmax(220px, 1.2fr) minmax(180px, 1fr) minmax(220px, 1fr) !important;
  gap: 28px !important;
}

#site-footer strong {
  margin-bottom: 10px !important;
  font-size: 22px !important;
  color: #183f68 !important;
  line-height: 1.2 !important;
}

#site-footer p {
  color: #5c7290 !important;
  line-height: 1.6 !important;
}

#site-footer h3 {
  margin-bottom: 12px !important;
  font-size: 12px !important;
  letter-spacing: 0.12em !important;
  color: #6f83a0 !important;
}

#site-footer a {
  color: #2e557f !important;
}

#site-footer a:hover {
  color: #0e62b4 !important;
}

#site-footer .apteka-footer-menu,
#site-footer ul {
  gap: 10px !important;
}

#site-footer .apteka-footer__phone {
  margin-top: 14px !important;
  padding: 10px 12px !important;
  border: 1px solid #d4e3f2 !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.72) !important;
}

#site-footer .apteka-footer-social {
  margin-top: 14px !important;
  gap: 10px !important;
}

#site-footer .apteka-footer-social__button {
  width: 40px !important;
  height: 40px !important;
  border-radius: 12px !important;
  border: 1px solid #c2d8ee !important;
  background: linear-gradient(180deg, #ffffff 0%, #f4f9ff 100%) !important;
  box-shadow: 0 10px 18px rgba(18, 53, 94, 0.13) !important;
}

#site-footer .apteka-footer-social__button:hover {
  transform: translateY(-2px) !important;
  border-color: #94bce4 !important;
  box-shadow: 0 14px 22px rgba(18, 53, 94, 0.18) !important;
}

#site-footer .apteka-footer__bottom {
  border-top: 1px solid #cfdeee !important;
  min-height: 52px !important;
  color: #6b7f99 !important;
  background: rgba(255, 255, 255, 0.44) !important;
}

#site-footer .apteka-footer__bottom-inner {
  justify-content: space-between !important;
  align-items: center !important;
  padding: 10px 0 !important;
}

#site-footer .apteka-footer__legal-links {
  margin-right: 0 !important;
  gap: 18px !important;
}

#site-footer .apteka-footer__legal-links a {
  font-size: 13px !important;
  color: #476284 !important;
}

.apteka-mobile-bottom-nav {
  display: none;
}

/* Contacts column cleanup: no extra circles around messengers */
#site-footer .apteka-footer__col--contacts {
  display: grid;
  align-content: start;
  gap: 10px;
}

#site-footer .apteka-footer__col--contacts .apteka-footer__phone {
  margin-top: 6px !important;
  margin-bottom: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
  line-height: 1.35 !important;
}

#site-footer .apteka-footer__col--contacts .apteka-footer__phone strong {
  display: inline !important;
  margin: 0 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  color: #5a6f8b !important;
}

#site-footer .apteka-footer__col--contacts .apteka-footer__phone a {
  display: inline !important;
  margin: 0 !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
  color: #1f4f80 !important;
}

#site-footer .apteka-footer__col--contacts .apteka-footer-social {
  margin-top: 4px !important;
  gap: 10px !important;
}

#site-footer .apteka-footer__col--contacts .apteka-footer-social__button {
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  transform: none !important;
  overflow: visible !important;
}

#site-footer .apteka-footer__col--contacts .apteka-footer-social__button:hover {
  border: 0 !important;
  box-shadow: none !important;
  transform: translateY(-1px) !important;
}

#site-footer .apteka-footer__col--contacts .apteka-footer-social__button img {
  width: 28px !important;
  height: 28px !important;
  object-fit: contain !important;
  border-radius: 0 !important;
  display: block !important;
}

#site-footer .apteka-footer__col--contacts .apteka-footer-social__button span {
  width: 28px !important;
  height: 28px !important;
  border-radius: 6px !important;
  border: 1px solid #c6d9ed !important;
  background: #fff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

@media (max-width: 780px) {
  .apteka-mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 85;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: center;
    border-top: 1px solid #d4e2f0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 -8px 18px rgba(12, 47, 84, 0.12);
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
  }

  .apteka-mobile-bottom-nav__item {
    min-height: 54px;
    border-radius: 10px;
    color: #4f6481;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 3px;
    text-decoration: none;
    padding: 4px 2px;
    transition: color 0.2s ease, background-color 0.2s ease;
  }

  .apteka-mobile-bottom-nav__item span {
    font-size: 10px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0.01em;
  }

  .apteka-mobile-bottom-nav__icon {
    width: 20px;
    height: 20px;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .apteka-mobile-bottom-nav__item.is-active {
    color: #0b6fd0;
    background: #eef6ff;
  }

  #primary.site-main {
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)) !important;
  }

  #site-footer.apteka-footer {
    padding-bottom: calc(82px + env(safe-area-inset-bottom, 0px)) !important;
  }

  #site-footer .apteka-footer__inner {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    padding: 24px 0 20px !important;
  }

  #site-footer .apteka-footer__bottom-inner {
    align-items: flex-start !important;
    flex-direction: column !important;
    gap: 8px !important;
  }

  #site-footer .apteka-footer__legal-links {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
  }

  #site-footer .apteka-footer__col--contacts {
    gap: 8px !important;
  }

  #site-footer .apteka-footer__col--contacts .apteka-footer__phone {
    display: grid !important;
    gap: 4px !important;
    align-items: start !important;
    justify-items: start !important;
  }

  #site-footer .apteka-footer__col--contacts .apteka-footer__phone a {
    font-size: 14px !important;
  }

  #site-footer .apteka-footer__col--contacts .apteka-footer-social {
    gap: 12px !important;
  }

  #site-footer .apteka-footer__col--contacts .apteka-footer-social__button img {
    width: 30px !important;
    height: 30px !important;
  }
}


/* >>> components/buttons.css */
.button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
.woocommerce a.wc-forward {
  appearance: none;
  border: 1px solid #1f7ad4;
  border-radius: 12px;
  background: linear-gradient(140deg, #0b6fd0, #2f8de7);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.1;
  min-height: 42px;
  padding: 11px 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 10px 22px rgba(11, 111, 208, 0.24);
}

.button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover,
.woocommerce a.wc-forward:hover {
  color: #fff;
  transform: translateY(-2px);
  border-color: #1d6dba;
  filter: saturate(1.08);
  box-shadow: 0 14px 26px rgba(11, 111, 208, 0.3);
}

.button:focus-visible,
.woocommerce a.button:focus-visible,
.woocommerce button.button:focus-visible,
.woocommerce input.button:focus-visible,
.woocommerce a.wc-forward:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(11, 111, 208, 0.22), 0 12px 24px rgba(11, 111, 208, 0.26);
}

.button:not(.button-primary):not(.wc-forward),
.woocommerce a.button.alt,
.woocommerce button.button.alt {
  background: #fff;
  color: var(--primary);
  border-color: #b9d3ed;
  box-shadow: none;
}

.apteka-btn-light {
  color: #0f6f55 !important;
  border-color: #9fd8c6 !important;
}

.woocommerce a.added_to_cart.wc-forward {
  border: 1px solid #b8d2eb;
  background: linear-gradient(180deg, #ffffff, #f2f8ff);
  color: #1f5f9f;
  box-shadow: 0 6px 14px rgba(30, 83, 140, 0.12);
}

.woocommerce a.added_to_cart.wc-forward:hover {
  border-color: #9dc2e5;
  color: #184f85;
}

.woocommerce a.added_to_cart.wc-forward::before {
  content: '';
  width: 15px;
  height: 15px;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 35%, #6fd8ae, #1a9e6e);
  box-shadow: 0 0 0 2px #e7f8ef inset;
}

.woocommerce .quantity .qty,
.apteka-quick-checkout__form input,
.apteka-quick-checkout__form textarea,
.apteka-filter-group__search,
.apteka-catalog-products .woocommerce-ordering select {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.woocommerce .quantity .qty {
  min-height: 40px;
  width: 72px;
  padding: 0 8px;
  text-align: center;
}

.woocommerce .quantity .qty:focus,
.apteka-quick-checkout__form input:focus,
.apteka-quick-checkout__form textarea:focus,
.apteka-filter-group__search:focus,
.apteka-catalog-products .woocommerce-ordering select:focus {
  outline: none;
  border-color: #9ec5e7;
  box-shadow: 0 0 0 2px rgba(11, 111, 208, 0.14);
}

.apteka-heart {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: #7e8aa0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.apteka-heart .apteka-icon--heart path {
  fill: transparent;
  transition: fill 0.2s ease, stroke 0.2s ease, transform 0.2s ease;
  transform-origin: center;
}

.apteka-heart:hover {
  border-color: #e3a1b0;
  color: #d34a67;
}

.apteka-heart.is-active {
  border-color: #d97f95;
  color: #d14565;
  background: #fff3f6;
}

.apteka-heart.is-active .apteka-icon--heart path {
  fill: currentColor;
}

.apteka-product-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 800;
}

.apteka-product-badge.sale {
  background: #ecf5ff;
  color: #1d66b5;
}

.apteka-stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
}

.apteka-stock-badge.in-stock,
.apteka-stock-badge.in-stock-many {
  color: var(--success);
  border-color: #9fdfc5;
  background: var(--success-soft);
}

.apteka-stock-badge.out-stock {
  color: var(--danger);
  border-color: #ebb4c1;
  background: var(--danger-soft);
}


/* >>> components/sidebar.css */
.apteka-sidebar,
aside.widget-area,
.widget-area {
  position: relative;
}

.apteka-sidebar-card,
.apteka-sidebar > .apteka-sidebar-card,
.apteka-catalog-sidebar .apteka-filters-form,
.apteka-quick-checkout__summary,
aside.widget-area .widget,
.widget-area .widget,
.woocommerce .widget {
  border: 1px solid #cfe0f2;
  border-radius: 18px;
  background:
    radial-gradient(140% 100% at 100% 0%, rgba(221, 240, 255, 0.45) 0%, rgba(221, 240, 255, 0) 42%),
    linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  box-shadow:
    0 16px 30px rgba(18, 52, 88, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.apteka-sidebar-card h2,
.apteka-sidebar-card h3,
.apteka-sidebar-card h4,
.apteka-sidebar-card .widget-title,
.apteka-sidebar-card .widgettitle,
aside.widget-area .widget h2,
aside.widget-area .widget h3,
.widget-area .widget h2,
.widget-area .widget h3,
.woocommerce .widget h2,
.woocommerce .widget h3,
.woocommerce .widget-title {
  margin: 0 0 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e2ecf8;
  color: #1d3e66;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.apteka-sidebar-card ul,
aside.widget-area .widget ul,
.widget-area .widget ul,
.woocommerce .widget ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.apteka-sidebar-card ul li,
aside.widget-area .widget ul li,
.widget-area .widget ul li,
.woocommerce .widget ul li {
  margin: 0;
  padding: 8px 10px;
  border: 1px solid #e1ebf7;
  border-radius: 10px;
  background: #fbfdff;
  color: #3a5477;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.apteka-sidebar-card ul li:hover,
aside.widget-area .widget ul li:hover,
.widget-area .widget ul li:hover,
.woocommerce .widget ul li:hover {
  border-color: #c8dcef;
  background: #f4f9ff;
  transform: translateX(1px);
}

.apteka-sidebar-card a,
aside.widget-area .widget a,
.widget-area .widget a,
.woocommerce .widget a {
  color: #29527f;
  text-decoration: none;
  transition: color 0.2s ease;
}

.apteka-sidebar-card a:hover,
aside.widget-area .widget a:hover,
.widget-area .widget a:hover,
.woocommerce .widget a:hover {
  color: #0b6fd0;
}

.apteka-sidebar-card input[type='text'],
.apteka-sidebar-card input[type='search'],
.apteka-sidebar-card input[type='email'],
.apteka-sidebar-card input[type='tel'],
.apteka-sidebar-card select,
.apteka-sidebar-card textarea,
aside.widget-area .widget input[type='text'],
aside.widget-area .widget input[type='search'],
aside.widget-area .widget select,
aside.widget-area .widget textarea,
.widget-area .widget input[type='text'],
.widget-area .widget input[type='search'],
.widget-area .widget select,
.widget-area .widget textarea,
.woocommerce .widget input[type='text'],
.woocommerce .widget input[type='search'],
.woocommerce .widget select,
.woocommerce .widget textarea {
  width: 100%;
  border: 1px solid #ccddf0;
  border-radius: 11px;
  background: #fff;
  color: #2f4f74;
  padding: 9px 11px;
  min-height: 40px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.apteka-sidebar-card input:focus,
.apteka-sidebar-card select:focus,
.apteka-sidebar-card textarea:focus,
aside.widget-area .widget input:focus,
aside.widget-area .widget select:focus,
aside.widget-area .widget textarea:focus,
.widget-area .widget input:focus,
.widget-area .widget select:focus,
.widget-area .widget textarea:focus,
.woocommerce .widget input:focus,
.woocommerce .widget select:focus,
.woocommerce .widget textarea:focus {
  outline: none;
  border-color: #8bb6df;
  box-shadow: 0 0 0 3px rgba(11, 111, 208, 0.14);
}

.apteka-sidebar-scroll {
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.apteka-sidebar-scroll::-webkit-scrollbar {
  width: 9px;
}

.apteka-sidebar-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.apteka-sidebar-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
  background-color: #bed4ea;
}

.apteka-sidebar-scroll::-webkit-scrollbar-thumb:hover {
  background-color: #9ebfdf;
}


/* >>> components/product-card.css */
.apteka-home-products ul.products,
.apteka-catalog-products ul.products,
.apteka-wishlist-page ul.products,
.woocommerce ul.products {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.apteka-home-products ul.products::before,
.apteka-home-products ul.products::after,
.apteka-catalog-products ul.products::before,
.apteka-catalog-products ul.products::after,
.apteka-wishlist-page ul.products::before,
.apteka-wishlist-page ul.products::after,
.woocommerce ul.products::before,
.woocommerce ul.products::after {
  content: none !important;
  display: none !important;
}

.apteka-home-products ul.products li.product,
.apteka-catalog-products ul.products li.product,
.apteka-wishlist-page ul.products li.product,
.woocommerce ul.products li.product {
  width: auto !important;
  float: none !important;
  margin: 0 !important;
}

.apteka-home-products ul.products li.product.apteka-product-card,
.apteka-catalog-products ul.products li.product.apteka-product-card,
.apteka-wishlist-page ul.products li.product.apteka-product-card,
.woocommerce ul.products li.product.apteka-product-card {
  border: 1px solid #d2e1ef;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(18, 55, 96, 0.1);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.apteka-home-products ul.products li.product.apteka-product-card:hover,
.apteka-catalog-products ul.products li.product.apteka-product-card:hover,
.apteka-wishlist-page ul.products li.product.apteka-product-card:hover,
.woocommerce ul.products li.product.apteka-product-card:hover {
  border-color: #9ac0e3;
  box-shadow: 0 18px 38px rgba(18, 55, 96, 0.18);
}

.apteka-product-card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: linear-gradient(160deg, #eef6ff 0%, #f7fbff 100%);
}

.apteka-product-card__image-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 16px;
}

.apteka-home-products ul.products li.product.apteka-product-card img,
.apteka-catalog-products ul.products li.product.apteka-product-card img,
.apteka-wishlist-page ul.products li.product.apteka-product-card img,
.woocommerce ul.products li.product.apteka-product-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1);
}

.apteka-home-products ul.products li.product.apteka-product-card:hover .apteka-product-card__image-link img,
.apteka-catalog-products ul.products li.product.apteka-product-card:hover .apteka-product-card__image-link img,
.apteka-wishlist-page ul.products li.product.apteka-product-card:hover .apteka-product-card__image-link img,
.woocommerce ul.products li.product.apteka-product-card:hover .apteka-product-card__image-link img {
  transform: scale(1.03);
}

.apteka-product-card__top {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  z-index: 2;
}

.apteka-product-card__top .apteka-heart {
  margin-left: auto;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(210, 225, 239, 0.92);
  background: rgba(255, 255, 255, 0.94);
  color: #617593;
  backdrop-filter: blur(5px);
}

.apteka-product-card__top .apteka-heart:hover {
  border-color: #d88ca0;
  color: #c74667;
}

.apteka-product-card__top .apteka-heart.is-active {
  border-color: #d5728d;
  background: #fff2f6;
  color: #c24668;
}

.apteka-product-badge.sale {
  border-radius: 999px;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  background: linear-gradient(135deg, #ea4c75, #f97b57);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.apteka-product-card__body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 276px;
}

.apteka-product-card__topline {
  display: grid;
  gap: 6px;
  align-items: start;
}

.apteka-home-products ul.products li.product.apteka-product-card .woocommerce-loop-product__title,
.apteka-catalog-products ul.products li.product.apteka-product-card .woocommerce-loop-product__title,
.apteka-wishlist-page ul.products li.product.apteka-product-card .woocommerce-loop-product__title,
.woocommerce ul.products li.product.apteka-product-card .woocommerce-loop-product__title {
  margin: 0;
  min-width: 0;
  font-size: 15px;
  line-height: 1.28;
  font-weight: 700;
  color: #1e3552;
  display: block !important;
  overflow: visible !important;
  white-space: normal !important;
  text-wrap: pretty;
  word-break: break-word;
  hyphens: auto;
  -webkit-line-clamp: unset !important;
  -webkit-box-orient: initial !important;
}

.apteka-home-products ul.products li.product.apteka-product-card .woocommerce-loop-product__title a,
.apteka-catalog-products ul.products li.product.apteka-product-card .woocommerce-loop-product__title a,
.apteka-wishlist-page ul.products li.product.apteka-product-card .woocommerce-loop-product__title a,
.woocommerce ul.products li.product.apteka-product-card .woocommerce-loop-product__title a {
  display: block;
  color: inherit;
}

.apteka-product-card__category {
  justify-self: start;
  flex-shrink: 0;
  border-radius: 999px;
  border: 1px solid #bcd6ee;
  background: #edf6ff;
  color: #2d6dab;
  padding: 4px 9px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.apteka-product-card__description {
  margin: 0;
  color: #60718c;
  font-size: 13px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.apteka-product-card__footer {
  margin-top: auto;
  display: grid;
  gap: 10px;
}

.apteka-product-card__price {
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 7px;
  flex-wrap: wrap;
  width: 100%;
  text-align: left;
}

.apteka-product-card__price .price {
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  width: 100%;
}

.apteka-product-card__price ins,
.apteka-product-card__price .amount {
  text-decoration: none;
  color: #123c66;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.apteka-product-card__price del,
.apteka-product-card__price del .amount {
  color: #8f9fb5;
  font-size: 12px;
  font-weight: 600;
}

.apteka-product-card__actions {
  margin: 0;
  display: grid;
  gap: 8px;
}

.apteka-home-products ul.products li.product.apteka-product-card .button,
.apteka-catalog-products ul.products li.product.apteka-product-card .button,
.apteka-wishlist-page ul.products li.product.apteka-product-card .button,
.woocommerce ul.products li.product.apteka-product-card .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  min-height: 42px;
  border-radius: 12px;
  border: 0;
  background: linear-gradient(140deg, #0b6fd0, #2f8de7);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 11px 14px;
  box-shadow: 0 10px 20px rgba(11, 111, 208, 0.22);
}

.apteka-home-products ul.products li.product.apteka-product-card .add_to_cart_button,
.apteka-catalog-products ul.products li.product.apteka-product-card .add_to_cart_button,
.apteka-wishlist-page ul.products li.product.apteka-product-card .add_to_cart_button,
.woocommerce ul.products li.product.apteka-product-card .add_to_cart_button {
  gap: 8px;
}

.apteka-home-products ul.products li.product.apteka-product-card .add_to_cart_button::before,
.apteka-catalog-products ul.products li.product.apteka-product-card .add_to_cart_button::before,
.apteka-wishlist-page ul.products li.product.apteka-product-card .add_to_cart_button::before,
.woocommerce ul.products li.product.apteka-product-card .add_to_cart_button::before {
  content: '';
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  background: center / contain no-repeat url('/wp-content/uploads/2026/04/basket-icon.png');
  filter: brightness(0) invert(1);
}

.apteka-home-products ul.products li.product.apteka-product-card .button:hover,
.apteka-catalog-products ul.products li.product.apteka-product-card .button:hover,
.apteka-wishlist-page ul.products li.product.apteka-product-card .button:hover,
.woocommerce ul.products li.product.apteka-product-card .button:hover {
  transform: translateY(-1px);
  filter: saturate(1.06);
}

.apteka-home-products ul.products li.product.apteka-product-card .added_to_cart.wc-forward,
.apteka-catalog-products ul.products li.product.apteka-product-card .added_to_cart.wc-forward,
.apteka-wishlist-page ul.products li.product.apteka-product-card .added_to_cart.wc-forward,
.home #primary .apteka-home-products ul.products li.product.apteka-product-card .apteka-product-card__actions > a.added_to_cart.wc-forward,
.woocommerce ul.products li.product.apteka-product-card .added_to_cart.wc-forward {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  min-height: 40px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 10px 14px;
  gap: 6px;
}

.apteka-home-products ul.products li.product.apteka-product-card .button::after,
.apteka-catalog-products ul.products li.product.apteka-product-card .button::after,
.apteka-wishlist-page ul.products li.product.apteka-product-card .button::after,
.woocommerce ul.products li.product.apteka-product-card .button::after,
.apteka-home-products ul.products li.product.apteka-product-card .added_to_cart.wc-forward::after,
.apteka-catalog-products ul.products li.product.apteka-product-card .added_to_cart.wc-forward::after,
.apteka-wishlist-page ul.products li.product.apteka-product-card .added_to_cart.wc-forward::after,
.woocommerce ul.products li.product.apteka-product-card .added_to_cart.wc-forward::after {
  display: none !important;
  content: none !important;
}

.apteka-home-products ul.products li.product.apteka-product-card .add_to_cart_button.added,
.apteka-catalog-products ul.products li.product.apteka-product-card .add_to_cart_button.added,
.apteka-wishlist-page ul.products li.product.apteka-product-card .add_to_cart_button.added,
.woocommerce ul.products li.product.apteka-product-card .add_to_cart_button.added {
  opacity: 0.8;
}

@media (max-width: 1180px) {
  .apteka-home-products ul.products,
  .apteka-catalog-products ul.products,
  .apteka-wishlist-page ul.products,
  .woocommerce ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .apteka-home-products ul.products,
  .apteka-catalog-products ul.products,
  .apteka-wishlist-page ul.products,
  .woocommerce ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .apteka-product-card__body {
    min-height: 248px;
    padding: 11px;
  }

  .apteka-product-card__price ins,
  .apteka-product-card__price .amount {
    font-size: 19px;
  }
}

@media (max-width: 560px) {
  .apteka-home-products ul.products,
  .apteka-catalog-products ul.products,
  .apteka-wishlist-page ul.products,
  .woocommerce ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .apteka-home-products ul.products li.product.apteka-product-card,
  .apteka-catalog-products ul.products li.product.apteka-product-card,
  .apteka-wishlist-page ul.products li.product.apteka-product-card,
  .woocommerce ul.products li.product.apteka-product-card {
    border-radius: 14px;
  }

  .apteka-product-card__body {
    min-height: 232px;
    padding: 10px;
    gap: 8px;
  }

  .apteka-home-products ul.products li.product.apteka-product-card .woocommerce-loop-product__title,
  .apteka-catalog-products ul.products li.product.apteka-product-card .woocommerce-loop-product__title,
  .apteka-wishlist-page ul.products li.product.apteka-product-card .woocommerce-loop-product__title,
  .woocommerce ul.products li.product.apteka-product-card .woocommerce-loop-product__title {
    font-size: 14px;
  }

  .apteka-product-card__description {
    font-size: 12px;
  }

  .apteka-product-card__price ins,
  .apteka-product-card__price .amount {
    font-size: 18px;
  }

  .apteka-home-products ul.products li.product.apteka-product-card .button,
  .apteka-catalog-products ul.products li.product.apteka-product-card .button,
  .apteka-wishlist-page ul.products li.product.apteka-product-card .button,
  .woocommerce ul.products li.product.apteka-product-card .button {
    min-height: 38px;
    border-radius: 10px;
    font-size: 12px;
  }
}


/* >>> pages/home.css */
.apteka-hero,
.apteka-promo {
  position: relative;
}

.apteka-hero,
.apteka-promo--carousel {
  overflow: hidden;
}

.apteka-hero {
  margin-top: 20px;
}

.apteka-promo {
  margin-top: 14px;
}

.apteka-hero__track,
.apteka-promo__track {
  display: flex;
  width: 100%;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.apteka-hero__slide,
.apteka-promo__page {
  flex: 0 0 100%;
  min-width: 100%;
}

.apteka-hero__slide.is-clone,
.apteka-promo__page.is-clone {
  pointer-events: none;
}

.apteka-hero__slide {
  display: block;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
  color: inherit;
  text-decoration: none;
}

.apteka-hero__media,
.apteka-promo__media {
  margin: 0;
}

.apteka-banner-image {
  display: block;
  width: 100%;
}

.apteka-banner-image--hero {
  height: auto;
  aspect-ratio: 16 / 6.3;
  object-fit: cover;
  object-position: center;
  background: transparent;
  border-radius: 0;
}

.apteka-promo__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.apteka-promo .apteka-promo__grid > .apteka-promo__card {
  display: block;
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
  color: inherit;
  text-decoration: none;
}

.apteka-banner-image--promo {
  height: auto;
  object-fit: initial;
  background: transparent;
  border-radius: 0;
}

.apteka-hero__fallback,
.apteka-promo__fallback {
  display: grid;
  gap: 8px;
  padding: clamp(18px, 2.2vw, 30px);
}

.apteka-hero__fallback {
  min-height: clamp(220px, 31vw, 420px);
  align-content: center;
  color: #163b62;
  background: linear-gradient(145deg, #e8f2fd 0%, #f3f8ff 100%);
}

.apteka-hero__fallback .badge {
  margin: 0;
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  border: 1px solid #bfd8f1;
  background: #fff;
  padding: 6px 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 11px;
  font-weight: 700;
}

.apteka-hero__fallback h1,
.apteka-hero__fallback h2 {
  margin: 0;
  color: #163b62;
  font-size: clamp(26px, 3vw, 44px);
  line-height: 1.06;
}

.apteka-hero__fallback p {
  margin: 0;
  color: #446389;
  font-size: 15px;
}

.apteka-promo__fallback {
  min-height: clamp(132px, 13.2vw, 206px);
  align-content: center;
  color: #163b62;
}

.apteka-promo__fallback h3 {
  margin: 0;
  font-size: clamp(24px, 2.2vw, 32px);
  line-height: 1.02;
}

.apteka-promo__fallback p {
  margin: 0;
  font-size: 14px;
  color: #4d6788;
}

.apteka-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border: 1px solid rgba(16, 97, 176, 0.36);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(244, 250, 255, 0.96) 100%);
  backdrop-filter: blur(4px);
  color: #0d67bf;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  z-index: 8;
  box-shadow:
    0 12px 24px rgba(13, 64, 117, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition:
    transform 0.26s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.26s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.26s ease,
    color 0.26s ease;
}

.apteka-slider-btn:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(236, 247, 255, 1) 100%);
  color: #0857a4;
  transform: translateY(-50%) scale(1.06);
  box-shadow:
    0 16px 30px rgba(10, 68, 124, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.apteka-slider-btn:active {
  transform: translateY(-50%) scale(0.98);
}

.apteka-slider-btn.prev {
  left: 14px;
}

.apteka-slider-btn.next {
  right: 14px;
}

.apteka-home-products,
.apteka-brands-home {
  margin-top: 30px;
}

.apteka-home-products {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 14px;
  position: relative;
  overflow: hidden;
}

.apteka-home-products::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
}

.apteka-home-products--day {
  background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
  border-color: #b8ded0;
}

.apteka-home-products--day::before {
  background: linear-gradient(90deg, #2ea47f, #57c29f);
}

.apteka-home-products--day .apteka-section-head h2 {
  color: #1b7b61;
}

.apteka-home-products--hits {
  background: linear-gradient(180deg, #fff 0%, #fbfdf9 100%);
  border-color: #c8dbef;
}

.apteka-home-products--hits::before {
  background: linear-gradient(90deg, #1c73cb, #4e95db);
}

.apteka-home-products--hits .apteka-section-head h2 {
  color: #1f5f9f;
}

.apteka-brands-home__grid,
.apteka-brands-page-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.apteka-brand-item {
  min-height: 86px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 6px;
  padding: 10px;
}

.apteka-brand-item img {
  max-width: 130px;
  max-height: 34px;
  width: 100%;
  object-fit: contain;
}

.apteka-brand-item span {
  font-size: 12px;
  color: #53647f;
}

/* Brands carousel */
.apteka-brands-carousel {
  --brands-per-view: 6;
  position: relative;
}

.apteka-brands-carousel__viewport {
  overflow: hidden;
}

.apteka-brands-carousel__track {
  margin: 0;
  padding: 0;
  display: flex;
  gap: 10px;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.apteka-brands-carousel__track .apteka-brand-item {
  flex: 0 0 calc((100% - (var(--brands-per-view) - 1) * 10px) / var(--brands-per-view));
}

.apteka-brands-carousel .apteka-brand-item {
  min-height: 72px;
  padding: 0;
  overflow: hidden;
  display: block;
  background: #fff;
}

.apteka-brands-carousel .apteka-brand-item img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  padding: 8px;
  display: block;
}

.apteka-brands-carousel .apteka-brand-item span {
  display: none;
}

.apteka-brands-carousel .apteka-slider-btn {
  width: 28px;
  height: 28px;
  font-size: 18px;
  border-color: rgba(147, 177, 210, 0.55);
  background: rgba(255, 255, 255, 0.72);
  color: rgba(24, 83, 140, 0.9);
  box-shadow: 0 4px 10px rgba(14, 50, 88, 0.14);
  z-index: 3;
}

.apteka-brands-carousel .apteka-slider-btn:disabled {
  opacity: 0.2;
  cursor: default;
}

.apteka-brands-carousel .apteka-slider-btn.prev {
  left: 6px;
}

.apteka-brands-carousel .apteka-slider-btn.next {
  right: 6px;
}

.apteka-brands-carousel.is-static .apteka-slider-btn {
  display: none;
}

/* Home brands: make logo image fill the entire tile. */
.apteka-brands-home__grid .apteka-brand-item {
  min-height: 72px;
  padding: 0;
  overflow: hidden;
  display: block;
  background: #fff;
}

.apteka-brands-home__grid .apteka-brand-item img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  padding: 8px;
  display: block;
}

.apteka-brands-home__grid .apteka-brand-item span {
  display: none;
}

@media (max-width: 1080px) {
  .apteka-brands-carousel {
    --brands-per-view: 4;
  }

  .apteka-brands-home__grid,
  .apteka-brands-page-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .apteka-brands-carousel {
    --brands-per-view: 3;
  }

  .apteka-banner-image--hero {
    aspect-ratio: 16 / 8;
  }

  .apteka-slider-btn {
    width: 42px;
    height: 42px;
    font-size: 26px;
  }

  .apteka-brands-home__grid,
  .apteka-brands-page-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .apteka-promo__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .apteka-slider-btn.prev {
    left: 8px;
  }

  .apteka-slider-btn.next {
    right: 8px;
  }
}

@media (max-width: 520px) {
  .apteka-brands-carousel {
    --brands-per-view: 2;
  }

  .apteka-promo__grid {
    grid-template-columns: 1fr;
  }

  .apteka-brands-home__grid,
  .apteka-brands-page-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .home .apteka-hero,
  .home .apteka-promo {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }

  .home .apteka-hero {
    margin-top: 10px;
  }

  .home .apteka-promo {
    margin-top: 8px;
  }

  .home .apteka-hero__slide,
  .home .apteka-promo__card {
    border-radius: 0;
  }

  .home .apteka-banner-image--hero {
    aspect-ratio: 16 / 8.6;
  }

  .home .apteka-promo__grid {
    gap: 0;
  }
}

/* Home products carousel */
.apteka-home-products--carousel {
  --cards-per-view: 4;
}

.apteka-products-carousel {
  position: relative;
}

.apteka-products-carousel__viewport {
  overflow: hidden;
}

.home .apteka-home-products--carousel ul.products {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 14px !important;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.home .apteka-home-products--carousel ul.products li.product {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  flex: 0 0 calc((100% - (var(--cards-per-view) - 1) * 14px) / var(--cards-per-view));
}

.home .apteka-home-products--carousel ul.products li.product.apteka-product-card {
  display: grid !important;
  grid-template-rows: auto 1fr !important;
}

.apteka-products-carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid #b4cee7;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 248, 255, 0.96));
  color: #1b5f9f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  z-index: 4;
  box-shadow: 0 10px 20px rgba(15, 48, 84, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.apteka-products-carousel__btn.prev {
  left: 8px;
}

.apteka-products-carousel__btn.next {
  right: 8px;
}

.apteka-products-carousel__btn:hover:not(:disabled) {
  color: #0e4f8d;
  transform: translateY(-50%) scale(1.04);
  box-shadow: 0 13px 24px rgba(15, 48, 84, 0.2);
}

.apteka-products-carousel__btn:disabled {
  opacity: 0.4;
  cursor: default;
  box-shadow: none;
}

.apteka-products-carousel.is-static .apteka-products-carousel__btn {
  display: none;
}

@media (max-width: 1180px) {
  .apteka-home-products--carousel {
    --cards-per-view: 3;
  }
}

@media (max-width: 860px) {
  .apteka-home-products--carousel {
    --cards-per-view: 2;
  }

  .home .apteka-home-products--carousel ul.products {
    gap: 12px !important;
  }

  .home .apteka-home-products--carousel ul.products li.product {
    flex-basis: calc((100% - (var(--cards-per-view) - 1) * 12px) / var(--cards-per-view));
  }

  .apteka-products-carousel__btn.prev {
    left: 8px;
  }

  .apteka-products-carousel__btn.next {
    right: 8px;
  }
}

@media (max-width: 560px) {
  .home .apteka-home-products--carousel ul.products {
    gap: 10px !important;
  }

  .home .apteka-home-products--carousel ul.products li.product {
    flex-basis: calc((100% - (var(--cards-per-view) - 1) * 10px) / var(--cards-per-view));
  }
}


/* >>> pages/catalog.css */
.apteka-shop-page {
  padding-top: 16px;
}

.apteka-shop-head {
  margin-bottom: 14px;
}

.apteka-catalog-description {
  width: 100%;
  max-width: none;
  margin-top: 10px;
  color: #49627f;
  font-size: 15px;
  line-height: 1.65;
}

.apteka-catalog-description > :first-child {
  margin-top: 0;
}

.apteka-catalog-description > :last-child {
  margin-bottom: 0;
}

.apteka-catalog-description--bottom {
  margin-top: 28px;
  padding: 22px 24px;
  border: 1px solid rgba(26, 107, 74, 0.16);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(245, 250, 247, 0.98) 100%);
  box-shadow:
    0 18px 34px rgba(18, 45, 33, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.apteka-catalog-description--bottom p {
  margin: 0 0 12px;
}

.apteka-catalog-description--bottom ul,
.apteka-catalog-description--bottom ol {
  margin: 0 0 12px 20px;
  padding: 0;
}

.apteka-catalog-description--bottom li + li {
  margin-top: 6px;
}

.apteka-catalog-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  padding: 7px 9px;
  border: 1px solid #d4e3f3;
  border-radius: 14px;
  background: linear-gradient(165deg, #f4f9ff 0%, #eef5fd 100%);
  box-shadow: 0 8px 18px rgba(20, 56, 96, 0.08);
}

.apteka-catalog-meta .woocommerce-result-count {
  margin: 0;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid #d4e3f2;
  border-radius: 10px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  color: #3e587a;
  white-space: nowrap;
}

.apteka-catalog-meta .woocommerce-ordering {
  margin: 0;
  position: relative;
}

.apteka-catalog-meta .woocommerce-ordering::after {
  content: '';
  position: absolute;
  right: 12px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid #4f6481;
  border-bottom: 2px solid #4f6481;
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

.apteka-catalog-meta .woocommerce-ordering select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  min-height: 38px;
  min-width: 170px;
  padding: 0 38px 0 12px;
  border: 1px solid #c7dbef;
  border-radius: 10px;
  background: #fff;
  background-image: none;
  color: #29496f;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(18, 47, 87, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.apteka-catalog-meta .woocommerce-ordering select::-ms-expand {
  display: none;
}

.apteka-catalog-meta .woocommerce-ordering select:hover {
  border-color: #9fc1e2;
}

.apteka-catalog-meta .woocommerce-ordering select:focus {
  outline: none;
  border-color: #7eaee0;
  box-shadow: 0 0 0 2px rgba(11, 111, 208, 0.16);
}

.apteka-categories-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.apteka-category-card {
  min-height: 144px;
  border-radius: 12px;
  border: 1px solid #c8d8ea;
  background: var(--cat-bg, #eaf4ff);
  color: #263a58;
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 10px;
}

.apteka-category-card h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.32;
}

.apteka-category-card img {
  width: 62px;
  height: 62px;
  border-radius: 8px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.7);
  align-self: end;
}

.apteka-catalog-layout {
  display: grid;
  grid-template-columns: 286px 1fr;
  gap: 18px;
  align-items: start;
}

.apteka-catalog-layout.is-loading {
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.apteka-catalog-sidebar {
  position: sticky;
  top: 114px;
  align-self: start;
  max-height: calc(100vh - 128px);
}

.apteka-filters-form {
  padding: 14px;
  max-height: calc(100vh - 128px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.apteka-filters-form__head {
  margin: 0 0 10px;
  padding: 0 2px 10px;
  border-bottom: 1px solid #e3edf8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.apteka-filters-form__head h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  color: #27496f;
}

.apteka-mobile-filters-toggle,
.apteka-mobile-filters-close,
.apteka-catalog-filters-backdrop {
  display: none;
}

.apteka-filter-group {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid #deebf7;
  border-radius: 12px;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.apteka-filter-group:first-of-type {
  margin-top: 0;
}

.apteka-filter-group__title {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  color: #2d4f76;
}

.apteka-filter-group__search {
  width: 100%;
  min-height: 38px;
  margin-bottom: 9px;
  padding: 0 11px;
  border: 1px solid #cddff1;
  border-radius: 10px;
  background: #fbfdff;
  font-size: 13px;
  color: #335377;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.apteka-filter-group__search:focus {
  outline: none;
  border-color: #8ab6e0;
  box-shadow: 0 0 0 2px rgba(11, 111, 208, 0.12);
}

.apteka-filter-group__list {
  max-height: none;
  overflow: visible;
  display: grid;
  gap: 6px;
  min-width: 0;
}

.apteka-filter-option {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  min-width: 0;
  font-size: 14px;
  color: #425c7b;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 7px 8px;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.apteka-filter-option:hover {
  background: #f5f9ff;
  border-color: #d4e3f2;
  color: #284b74;
}

.apteka-filter-option input[type='checkbox'] {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: #0b6fd0;
}

.apteka-filter-option input {
  accent-color: var(--primary);
}

.apteka-filter-option span {
  flex: 1 1 auto;
  min-width: 0;
  white-space: normal;
  line-height: 1.4;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.apteka-filters-form__actions {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.apteka-filters-form__actions .button {
  min-height: 40px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
}

.apteka-active-filters {
  margin: 0 0 16px;
  border: 1px solid #d7e4f2;
  border-radius: 10px;
  background: #f8fbff;
  padding: 10px 12px;
}

.apteka-active-filters__label {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #61718d;
}

.apteka-active-filters__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.apteka-filter-chip {
  min-height: 30px;
  border-radius: 999px;
  border: 1px solid #b9d3eb;
  background: #fff;
  color: #2c4f7a;
  padding: 5px 11px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
}

.apteka-filter-chip--clear {
  border-color: #9fd4c3;
  color: #0f7659;
  background: #f0fbf7;
}

.apteka-catalog-products .woocommerce-ordering {
  margin: 0;
}

.apteka-catalog-products .woocommerce-ordering select {
  min-height: 40px;
  padding: 0 10px;
}

.apteka-catalog-products .woocommerce-pagination {
  margin-top: 16px;
}

.apteka-catalog-products .woocommerce-pagination ul.page-numbers {
  border: 0;
  display: flex;
  gap: 6px;
}

.apteka-catalog-products .woocommerce-pagination ul.page-numbers li {
  border: 0;
}

.apteka-catalog-products .woocommerce-pagination .page-numbers {
  min-width: 34px;
  min-height: 34px;
  border: 1px solid #c4d8ed;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #4f5f79;
}

.apteka-catalog-products .woocommerce-pagination .page-numbers.current {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}

@media (max-width: 1080px) {
  .apteka-catalog-layout {
    grid-template-columns: 1fr;
  }

  .apteka-catalog-sidebar {
    position: static;
  }

  .apteka-categories-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .apteka-catalog-products .apteka-shop-head {
    display: grid;
    gap: 6px;
    align-items: start;
  }

  .apteka-catalog-products .apteka-shop-head h1 {
    width: 100%;
  }

  .apteka-categories-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .apteka-catalog-meta {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    margin: 0;
    gap: 8px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .apteka-mobile-filters-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    width: auto;
    flex: 0 0 auto;
    white-space: nowrap;
    min-height: 28px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #20242b;
    font-size: 15px;
    font-weight: 500;
    order: 2;
    padding: 0 4px 0 0;
    margin-left: auto;
    cursor: pointer;
    line-height: 1.2;
    gap: 6px;
  }

  .apteka-mobile-filters-toggle__icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    color: currentColor;
  }

  .apteka-catalog-meta .woocommerce-ordering,
  .apteka-catalog-meta .woocommerce-ordering select {
    width: auto;
    min-width: 0;
    margin: 0;
  }

  .apteka-catalog-meta .woocommerce-ordering {
    flex: 0 1 auto;
    order: 1;
    position: relative;
    padding-left: 18px;
    margin-right: 0;
  }

  .apteka-catalog-meta .woocommerce-ordering::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    background: no-repeat center / 14px 14px
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M6 3v14m0 0-3-3m3 3 3-3M14 17V3m0 0-3 3m3-3 3 3' stroke='%2320242b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  }

  .apteka-catalog-meta .woocommerce-ordering select {
    max-width: 100%;
    min-height: 28px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    appearance: none;
    padding: 0;
    color: #20242b;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
  }

  .apteka-catalog-meta .woocommerce-ordering::after {
    display: none;
  }

  /* Force override against WooCommerce theme/plugin rules on mobile */
  #primary .apteka-catalog-layout .apteka-catalog-products .apteka-shop-head {
    justify-content: initial !important;
  }

  #primary .apteka-catalog-layout .apteka-catalog-products .apteka-catalog-meta {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    justify-content: initial !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 8px !important;
  }

  #primary .apteka-catalog-layout .apteka-catalog-products .apteka-catalog-meta > form.woocommerce-ordering {
    float: none !important;
    grid-column: 1 !important;
    justify-self: start !important;
    width: max-content !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding-left: 18px !important;
  }

  #primary .apteka-catalog-layout .apteka-catalog-products .apteka-catalog-meta > form.woocommerce-ordering select.orderby {
    width: auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  #primary .apteka-catalog-layout .apteka-catalog-products .apteka-catalog-meta > button.apteka-mobile-filters-toggle {
    grid-column: 2 !important;
    justify-self: end !important;
    margin: 0 4px 0 0 !important;
    flex: 0 0 auto !important;
  }

  .apteka-catalog-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: min(344px, 88vw);
    height: 100dvh;
    max-height: none;
    z-index: 1300;
    transform: translate3d(102%, 0, 0);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
  }

  .apteka-catalog-sidebar .apteka-filters-form {
    height: 100%;
    max-height: none;
    border-radius: 0;
    border: 0;
    box-shadow: none;
    padding: 12px 14px 18px;
  }

  .apteka-mobile-filters-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid #d2e1f1;
    border-radius: 9px;
    background: #fff;
    color: #355c87;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
  }

  .apteka-catalog-filters-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    border: 0;
    padding: 0;
    margin: 0;
    background: rgba(7, 23, 44, 0.3);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.24s ease;
    z-index: 1250;
  }

  .apteka-catalog-layout.is-filters-open .apteka-catalog-sidebar {
    transform: translate3d(0, 0, 0);
    pointer-events: auto;
  }

  .apteka-catalog-layout.is-filters-open .apteka-catalog-filters-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  body.catalog-filters-open {
    overflow: hidden;
  }
}

@media (max-width: 520px) {
  .apteka-categories-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* >>> pages/single-product.css */
.apteka-single-product-page {
  padding-top: 18px;
}

.apteka-single-product-page .woocommerce-breadcrumb {
  margin-bottom: 14px;
}

.apteka-single-product-title {
  margin: 0 0 14px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.apteka-single-product {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  padding: clamp(14px, 2vw, 22px);
}

.single-product div[id^='product-'] > section {
  position: relative;
  border-radius: 18px;
  animation: aptekaSectionIn 0.56s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.apteka-single-product__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(16px, 2.2vw, 26px);
  align-items: start;
}

.apteka-single-product__media {
  display: grid;
  gap: 10px;
}

.apteka-product-main-image {
  border: 1px solid #d3e2f1;
  border-radius: 16px;
  background: linear-gradient(180deg, #fbfdff 0%, #f3f8ff 100%);
  width: 90%;
  height: clamp(460px, calc(21vw + 300px), 538px);
  min-height: 0;
  position: relative;
  overflow: hidden;
}

.apteka-product-main-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transform: scale(0.94);
}

.apteka-product-thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.apteka-thumb {
  border: 1px solid #d3e2f1;
  border-radius: 10px;
  background: #fff;
  padding: 6px;
  cursor: pointer;
}

.apteka-thumb img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
}

.apteka-thumb:hover,
.apteka-thumb.is-active {
  border-color: #8cb8e2;
  box-shadow: 0 0 0 2px rgba(11, 111, 208, 0.14);
}

.apteka-single-product__summary {
  display: grid;
  align-content: start;
  gap: 14px;
}

.apteka-single-product__summary .apteka-heart {
  justify-self: end;
}

.apteka-product-main-image .apteka-heart--image {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  z-index: 3;
  box-shadow: 0 8px 20px rgba(20, 45, 78, 0.22);
}

.apteka-product-facts {
  margin-top: clamp(56px, 4.5vw, 92px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fbff;
  padding: 10px 12px;
  display: grid;
  gap: 8px;
}

.apteka-product-facts__row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 10px;
  font-size: 14px;
}

.apteka-product-facts__label {
  color: #5b6f8d;
}

.apteka-product-facts__value {
  color: #203857;
  font-weight: 700;
}

.apteka-single-product__price .price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.apteka-single-product__price ins,
.apteka-single-product__price .amount {
  text-decoration: none;
  color: #123960;
  font-size: clamp(28px, 2.6vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.apteka-single-product__price del,
.apteka-single-product__price del .amount {
  color: #8c99af;
  font-size: 16px;
  font-weight: 600;
}

.apteka-single-product__cart form.cart {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.apteka-single-product__cart .single_add_to_cart_button,
.apteka-single-product__cart .single_add_to_cart_button.button,
.apteka-single-product__cart .single_add_to_cart_button.button.alt {
  min-width: 180px;
  border: 1px solid #1f7ad4;
  background: linear-gradient(140deg, #0b6fd0, #2f8de7);
  color: #fff;
  box-shadow: 0 12px 24px rgba(11, 111, 208, 0.24);
  gap: 8px;
}

.apteka-single-product__cart .single_add_to_cart_button::before {
  content: '';
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  background: center / contain no-repeat url('/wp-content/uploads/2026/04/basket-icon.png');
  filter: brightness(0) invert(1);
}

.apteka-single-product__cart .single_add_to_cart_button:hover,
.apteka-single-product__cart .single_add_to_cart_button.button:hover,
.apteka-single-product__cart .single_add_to_cart_button.button.alt:hover {
  color: #fff;
  border-color: #1d6dba;
  box-shadow: 0 16px 28px rgba(11, 111, 208, 0.3);
}

.apteka-single-product__cart .single_add_to_cart_button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(11, 111, 208, 0.22), 0 12px 24px rgba(11, 111, 208, 0.26);
}

.apteka-tabs {
  margin-top: 24px;
  border: 1px solid #ccddf1;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(13, 44, 82, 0.1);
  overflow: hidden;
}

.apteka-tabs__nav {
  margin: 0;
  padding: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  background: #f6faff;
  border-bottom: 1px solid #d9e6f5;
}

.apteka-tabs__button {
  border: 1px solid #c6d9ee;
  border-radius: 999px;
  background: #ffffff;
  color: #4b6586;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.1;
  min-height: 38px;
  padding: 8px 16px;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.apteka-tabs__button:hover {
  border-color: #9ebfe0;
  color: #1f4d80;
  transform: translateY(-1px);
}

.apteka-tabs__button.is-active {
  border-color: #2d82d1;
  background: #edf6ff;
  color: #0f4f96;
  box-shadow: 0 6px 14px rgba(16, 83, 150, 0.14);
}

.apteka-tabs__button:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(37, 121, 204, 0.22),
    0 6px 14px rgba(16, 83, 150, 0.14);
}

.apteka-tabs__content {
  padding: 18px 18px 20px;
}

.apteka-tabs__panel {
  color: #344a67;
  line-height: 1.65;
  opacity: 0;
  transform: translateY(6px);
}

.apteka-tabs__panel.is-active {
  animation: aptekaTabPanelIn 0.28s ease both;
}

.apteka-product-tab-content {
  color: #334862;
  line-height: 1.68;
}

.apteka-reviews-block {
  margin-top: 18px;
  border: 1px solid #cfdef0;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 10px 22px rgba(13, 44, 82, 0.1);
  padding: 16px;
}

.apteka-reviews-block__title {
  margin: 0 0 12px;
  font-size: clamp(22px, 2vw, 28px);
  color: #183e67;
  letter-spacing: -0.02em;
}

.apteka-reviews-block #reviews #comments h2,
.apteka-reviews-block #reviews #review_form_wrapper h3 {
  margin: 0 0 12px;
  font-size: 22px;
}

.apteka-reviews-block #reviews #comments > h2 {
  display: none;
}

.apteka-reviews-block #reviews #comments ol.commentlist {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
  border: 1px solid #d7e4f3;
  border-radius: 14px;
  background: linear-gradient(180deg, #fbfdff 0%, #f4f9ff 100%);
  padding: 12px;
}

.apteka-reviews-block #reviews #comments ol.commentlist li {
  margin: 0;
  border: 1px solid #cfe0f2;
  border-radius: 12px;
  background: #fff;
  padding: 14px 14px 12px;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
  position: relative;
}

.apteka-reviews-block #reviews #comments ol.commentlist li:hover {
  border-color: #b8d2eb;
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(20, 55, 95, 0.12);
}

.apteka-reviews-block #reviews #comments .comment-text {
  margin: 0;
  border: 0;
  padding: 0 0 0 62px;
  position: relative;
  min-height: 48px;
}

.apteka-reviews-block #reviews #comments .comment_container > img.avatar {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 2px solid #e2ecf8;
  box-shadow: 0 6px 14px rgba(18, 62, 108, 0.14);
  padding: 0;
  background: #fff;
}

.apteka-reviews-block #reviews #comments .star-rating {
  float: none;
  margin: 0 0 6px;
  color: #f5a623;
  letter-spacing: 0.02em;
}

.apteka-reviews-block #reviews #comments .meta {
  margin: 0 0 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  color: #6a7a91;
}

.apteka-reviews-block #reviews #comments .meta .woocommerce-review__author {
  color: #203f66;
  font-size: 15px;
  font-weight: 800;
}

.apteka-reviews-block #reviews #comments .meta .woocommerce-review__dash {
  display: none;
}

.apteka-reviews-block #reviews #comments .meta .woocommerce-review__published-date {
  color: #6f85a4;
  font-size: 13px;
  font-weight: 600;
}

.apteka-reviews-block #reviews #comments .description {
  color: #324a69;
  line-height: 1.62;
  font-size: 15px;
}

.apteka-reviews-block #reviews #comments .description p {
  margin: 0;
}

.apteka-reviews-block #reviews #review_form_wrapper {
  margin-top: 16px;
  border-top: 1px solid #e3ecf7;
  padding-top: 16px;
}

.apteka-reviews-block #reviews textarea,
.apteka-reviews-block #reviews input[type='text'],
.apteka-reviews-block #reviews input[type='email'] {
  width: 100%;
  border: 1px solid #cddced;
  border-radius: 10px;
  padding: 10px 12px;
}

@media (max-width: 980px) {
  .apteka-single-product__layout {
    grid-template-columns: 1fr;
  }

  .apteka-product-main-image {
    width: 100%;
    min-height: 420px;
  }

  .apteka-product-facts {
    margin-top: 0;
  }

  .apteka-product-facts__row {
    grid-template-columns: 120px minmax(0, 1fr);
  }
}

@media (max-width: 620px) {
  .apteka-single-product-title {
    font-size: 26px;
  }

  .apteka-product-main-image {
    min-height: 320px;
  }

  .apteka-product-thumbs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .apteka-product-facts__row {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .apteka-single-product__cart .single_add_to_cart_button {
    width: 100%;
  }

  .apteka-single-product__cart .quantity {
    width: 100%;
  }

  .apteka-single-product__cart .quantity .qty {
    width: 100%;
  }

  .apteka-tabs__nav {
    padding: 10px;
    gap: 6px;
  }

  .apteka-tabs__button {
    font-size: 12px;
    padding: 6px 10px;
  }

  .apteka-tabs__content {
    padding: 14px;
  }

  .apteka-reviews-block #reviews #comments .comment-text {
    padding-left: 0;
  }

  .apteka-reviews-block #reviews #comments .comment_container > img.avatar {
    float: none;
    position: static;
    margin-bottom: 8px;
  }
}

@keyframes aptekaSectionIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes aptekaTabPanelIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* >>> pages/checkout.css */
.apteka-empty-state {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  padding: 18px;
  display: grid;
  gap: 10px;
  justify-items: start;
}

.apteka-empty-state p {
  margin: 0;
  color: #516482;
}

.apteka-wishlist-page {
  display: grid;
  gap: 16px;
}

.apteka-quick-checkout {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  padding: clamp(14px, 2vw, 22px);
}

.apteka-quick-checkout__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: start;
}

.apteka-quick-checkout__form {
  border: 1px solid #d4e3f2;
  border-radius: 14px;
  background: #f9fcff;
  padding: 14px;
  display: grid;
  gap: 10px;
}

.apteka-quick-checkout__form label {
  display: grid;
  gap: 6px;
}

.apteka-quick-checkout__form label span {
  font-size: 13px;
  font-weight: 700;
  color: #4f6380;
}

.apteka-quick-checkout__form input,
.apteka-quick-checkout__form textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid #ccddf0;
  border-radius: 10px;
  padding: 9px 11px;
}

.apteka-quick-checkout__form textarea {
  min-height: 104px;
  resize: vertical;
}

.apteka-quick-checkout__message {
  margin: 4px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
}

.apteka-quick-checkout__message.is-success {
  background: var(--success-soft);
  color: var(--success);
  border: 1px solid #9fdfc5;
}

.apteka-quick-checkout__message.is-error {
  background: var(--danger-soft);
  color: var(--danger);
  border: 1px solid #ebb4c1;
}

.apteka-quick-checkout__summary {
  padding: 14px;
  position: sticky;
  top: 110px;
}

.apteka-quick-checkout__summary h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.apteka-quick-checkout__summary ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.apteka-quick-checkout__summary li {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 10px;
  font-size: 14px;
  color: #3a4f6d;
}

.apteka-quick-checkout__summary li strong {
  color: #1f3f66;
}

.apteka-quick-checkout__total {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #d6e6f6;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.apteka-quick-checkout__total strong {
  font-size: 28px;
  color: #113a62;
}

.apteka-login-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
}

.apteka-login-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 28, 46, 0.46);
}

.apteka-login-modal__content {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(440px, 92vw);
  border-radius: 16px;
  border: 1px solid #c7d9ec;
  background: #fff;
  box-shadow: 0 24px 56px rgba(7, 27, 50, 0.25);
  padding: 18px;
}

.apteka-login-modal__close {
  position: absolute;
  right: 10px;
  top: 8px;
  width: 32px;
  height: 32px;
  border: 1px solid #d4e2f0;
  border-radius: 10px;
  background: #fff;
  color: #60779a;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.apteka-login-modal__content h3 {
  margin: 0 0 8px;
  font-size: 26px;
}

.apteka-login-modal__content p {
  margin: 0;
  color: #4f6482;
}

.apteka-login-modal__actions {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.woocommerce-cart .cart,
.woocommerce-checkout .checkout,
.woocommerce-account .woocommerce {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  padding: 14px;
}

.woocommerce table.shop_table {
  border-color: #d4e3f2;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
  padding: 11px;
}

.woocommerce .cart_totals,
.woocommerce .woocommerce-checkout-review-order {
  border: 1px solid #d4e3f2;
  border-radius: 12px;
  background: #f8fbff;
  padding: 12px;
}

/* Cart polish */
.woocommerce-cart form.woocommerce-cart-form {
  border: 1px solid #c9ddee;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fcff 100%);
  box-shadow: 0 12px 24px rgba(14, 49, 86, 0.08);
  padding: 14px;
}

.woocommerce-cart table.shop_table.cart {
  border: 1px solid #cfe0f2;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.woocommerce-cart table.shop_table.cart thead th {
  background: #f1f7ff;
  color: #35567c;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.woocommerce-cart table.shop_table.cart td {
  border-color: #e3edf8;
  vertical-align: middle;
}

.woocommerce-cart table.shop_table.cart .product-name a {
  color: #1f3f66;
  font-weight: 700;
}

.woocommerce-cart table.shop_table.cart .product-name a:hover {
  color: #0f5ea9;
}

.woocommerce-cart table.shop_table.cart .product-thumbnail img {
  width: 74px;
  border-radius: 10px;
  border: 1px solid #d6e5f4;
  background: #fff;
}

.woocommerce-cart .quantity .qty {
  width: 84px;
  min-height: 38px;
  border: 1px solid #c7dbef;
  border-radius: 10px;
  background: #fff;
  color: #20486f;
  font-weight: 700;
  text-align: center;
}

.woocommerce-cart .actions {
  padding-top: 12px;
}

.woocommerce-cart .actions .coupon {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.woocommerce-cart .actions .coupon label {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  color: #526a89;
}

.woocommerce-cart #coupon_code {
  width: 240px !important;
  min-height: 42px;
  border: 1px solid #b8d4ec !important;
  border-radius: 11px !important;
  background: #fff !important;
  color: #1c476f !important;
  font-size: 14px;
  font-weight: 600;
  padding: 0 12px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.woocommerce-cart #coupon_code::placeholder {
  color: #86a0be;
}

.woocommerce-cart #coupon_code:focus {
  outline: none;
  border-color: #83b3df !important;
  box-shadow: 0 0 0 3px rgba(11, 111, 208, 0.14);
}

.woocommerce-cart .actions .button,
.woocommerce-cart .actions .coupon .button,
.woocommerce-cart .actions button[name='update_cart'] {
  min-height: 42px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.01em;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.woocommerce-cart .cart-collaterals {
  margin-top: 14px;
}

.woocommerce-cart .cart_totals {
  border: 1px solid #c8ddef;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: 0 10px 22px rgba(12, 42, 76, 0.08);
  padding: 14px;
}

.woocommerce-cart .cart_totals h2 {
  margin: 0 0 10px;
  color: #1d446e;
  font-size: 22px;
}

.woocommerce-cart .cart_totals table.shop_table {
  border: 1px solid #d9e7f6;
  border-radius: 12px;
  background: #fff;
}

.woocommerce-cart .cart_totals table.shop_table th,
.woocommerce-cart .cart_totals table.shop_table td {
  padding: 10px 12px;
}

.woocommerce-cart .cart_totals .order-total th,
.woocommerce-cart .cart_totals .order-total td {
  font-size: 16px;
  font-weight: 800;
  color: #153d66;
}

/* My account */
.woocommerce-account .woocommerce {
  border: 1px solid #c8dbef;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fcff 100%);
  box-shadow: 0 14px 28px rgba(15, 47, 84, 0.1);
  padding: 16px;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li {
  margin: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
  min-height: 44px;
  border: 1px solid #c9dced;
  border-radius: 12px;
  background: #fff;
  color: #35577c;
  padding: 10px 12px;
  display: inline-flex;
  width: 100%;
  align-items: center;
  font-weight: 700;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
  border-color: #9ec1e3;
  color: #1d4f84;
  transform: translateX(2px);
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
  border-color: #79aedf;
  background: #edf6ff;
  color: #0f4f95;
  box-shadow: 0 8px 16px rgba(20, 78, 138, 0.13);
}

.woocommerce-account .woocommerce-MyAccount-content {
  border: 1px solid #cfe1f3;
  border-radius: 14px;
  background: #fff;
  padding: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.woocommerce-account .woocommerce-MyAccount-content h2,
.woocommerce-account .woocommerce-MyAccount-content h3 {
  margin-top: 0;
  color: #1a436e;
}

.woocommerce-account .woocommerce-MyAccount-content p {
  color: #516681;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-message,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-error {
  border-radius: 12px;
  border-width: 1px;
}

.woocommerce-account .woocommerce-MyAccount-content form .form-row {
  margin-bottom: 12px;
}

.woocommerce-account .woocommerce-MyAccount-content input.input-text,
.woocommerce-account .woocommerce-MyAccount-content input[type='email'],
.woocommerce-account .woocommerce-MyAccount-content input[type='text'],
.woocommerce-account .woocommerce-MyAccount-content input[type='password'],
.woocommerce-account .woocommerce-MyAccount-content input[type='tel'],
.woocommerce-account .woocommerce-MyAccount-content select,
.woocommerce-account .woocommerce-MyAccount-content textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid #c7dbef;
  border-radius: 11px;
  background: #fff;
  color: #214a72;
  padding: 9px 11px;
}

.woocommerce-account .woocommerce-MyAccount-content input:focus,
.woocommerce-account .woocommerce-MyAccount-content select:focus,
.woocommerce-account .woocommerce-MyAccount-content textarea:focus {
  outline: none;
  border-color: #81b2df;
  box-shadow: 0 0 0 3px rgba(11, 111, 208, 0.14);
}

.woocommerce-account .woocommerce-MyAccount-content table.shop_table {
  border: 1px solid #cfe1f3;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.woocommerce-account .woocommerce-MyAccount-content table.shop_table th {
  background: #f1f7ff;
  color: #3a597d;
}

.woocommerce-account .woocommerce-MyAccount-content .button,
.woocommerce-account .woocommerce-MyAccount-content button.button {
  min-height: 42px;
  border-radius: 11px;
  font-weight: 800;
}

/* Keep only one primary border on cart/checkout page wrapper */
.woocommerce-cart .apteka-article > .apteka-content,
.woocommerce-checkout .apteka-article > .apteka-content,
.page .apteka-article .apteka-quick-checkout {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0 !important;
}

.woocommerce-cart form.woocommerce-cart-form {
  border: 0;
  box-shadow: none;
  background: transparent;
  padding: 0;
}

.woocommerce-cart table.shop_table.cart {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.woocommerce-cart .cart-collaterals .cart_totals {
  border: 0;
  box-shadow: none;
  background: #f8fbff;
}

.apteka-quick-checkout {
  border: 0;
  box-shadow: none;
  background: transparent;
  padding: 0;
}

.apteka-quick-checkout__form,
.apteka-quick-checkout__summary {
  border: 0;
  box-shadow: none;
}

@media (max-width: 980px) {
  .apteka-quick-checkout__layout {
    grid-template-columns: 1fr;
  }

  .apteka-quick-checkout__summary {
    position: static;
  }

  .woocommerce-cart .actions .coupon {
    display: grid;
    width: 100%;
  }

  .woocommerce-cart #coupon_code {
    width: 100% !important;
  }

  .woocommerce-account .woocommerce {
    grid-template-columns: 1fr;
  }
}

/* Final My Account layout fix */
.woocommerce-account .apteka-article .apteka-content {
  padding: 14px;
}

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

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

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

.woocommerce-account .woocommerce-MyAccount-navigation {
  position: sticky;
  top: 110px;
  align-self: start;
  border: 1px solid #cfe1f3;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 10px 20px rgba(14, 48, 84, 0.08);
  padding: 10px;
}

.woocommerce-account .woocommerce-MyAccount-navigation-link {
  margin: 0;
}

.woocommerce-account .woocommerce-MyAccount-content {
  min-width: 0;
  border: 1px solid #cfe1f3;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 20px rgba(14, 48, 84, 0.08);
  padding: 16px;
}

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

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address {
  border: 1px solid #d9e7f6;
  border-radius: 12px;
  background: #fbfdff;
  padding: 12px;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address-title h3 {
  margin: 0;
  font-size: 18px;
}

.woocommerce-account .woocommerce-MyAccount-content .addresses .title .edit {
  font-size: 13px;
  font-weight: 700;
}

.woocommerce-account .woocommerce-MyAccount-content table.shop_table {
  width: 100%;
}

.woocommerce-account .woocommerce-MyAccount-content table.shop_table tbody td,
.woocommerce-account .woocommerce-MyAccount-content table.shop_table tbody th {
  border-color: #e3edf8;
}

.woocommerce-account .woocommerce-MyAccount-content .button,
.woocommerce-account .woocommerce-MyAccount-content button.button,
.woocommerce-account .woocommerce-MyAccount-content input.button {
  min-height: 40px;
  padding: 0 12px;
}

.woocommerce-account .woocommerce-form-login,
.woocommerce-account .woocommerce-form-register {
  border: 1px solid #d4e4f3;
  border-radius: 14px;
  background: #f9fcff;
  padding: 14px;
}

.woocommerce-account .u-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.woocommerce-account .u-column1,
.woocommerce-account .u-column2 {
  width: auto;
  float: none;
  margin: 0;
}

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

  .woocommerce-account .woocommerce-MyAccount-navigation {
    position: static;
  }

  .woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses,
  .woocommerce-account .u-columns {
    grid-template-columns: 1fr;
  }
}

/* My account: keep only one border (outer page wrapper) */
.woocommerce-account .apteka-article > .apteka-content {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.woocommerce-account .woocommerce {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address,
.woocommerce-account .woocommerce-MyAccount-content table.shop_table,
.woocommerce-account .woocommerce-form-login,
.woocommerce-account .woocommerce-form-register {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

@media (max-width: 620px) {
  .apteka-login-modal__actions {
    grid-template-columns: 1fr;
  }

  .apteka-quick-checkout__total strong {
    font-size: 24px;
  }
}


/* >>> pages/promotions.css */
.apteka-promo__footer {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.apteka-promo__all-link {
  min-height: 38px;
  padding: 9px 14px;
  margin: 0 auto;
  border-radius: 10px;
  border: 1px solid #9ec5e7;
  background: #fff;
  color: #1d5f9f;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.apteka-promo__all-link:hover {
  border-color: #7faee0;
  color: #124f8a;
  transform: translateY(-1px);
}

.apteka-promotions-page {
  padding-top: 20px;
  padding-bottom: 28px;
}

.apteka-promotions-page > .apteka-promotions-grid,
.apteka-promotions-page > .apteka-promo-single,
.apteka-promotions-page > .apteka-promo-products {
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
}

.apteka-promotions-page__head {
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 14px;
  display: grid;
  gap: 8px;
}

.apteka-promotions-breadcrumbs {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  line-height: 1.3;
  color: #6a7d95;
}

.apteka-promotions-breadcrumbs a {
  color: #3c6593;
  font-weight: 600;
}

.apteka-promotions-breadcrumbs a:hover {
  color: #1f568f;
}

.apteka-promotions-breadcrumbs__badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid #9ed5bf;
  background: #ebfaf3;
  color: #1a775a;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.apteka-promotions-page h1 {
  margin: 0;
}

.apteka-promotions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.apteka-promotions-card {
  border: 1px solid #c8dcf0;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f9fcff 100%);
  box-shadow: 0 14px 28px rgba(15, 47, 84, 0.1);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.apteka-promotions-card:hover {
  transform: translateY(-4px);
  border-color: #a9cae8;
  box-shadow: 0 20px 34px rgba(15, 47, 84, 0.16);
}

.apteka-promotions-card__media {
  aspect-ratio: 16 / 8;
  overflow: hidden;
  background: #f0f6ff;
}

.apteka-promotions-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.apteka-promotions-card:hover .apteka-promotions-card__image {
  transform: scale(1.03);
}

.apteka-promotions-card__body {
  padding: 14px;
}

.apteka-promotions-card__body h3 {
  margin: 0 0 6px;
  font-size: 20px;
  line-height: 1.16;
  color: #173a60;
}

.apteka-promotions-card__body p {
  margin: 0;
  color: #53667f;
}

.apteka-promo-single {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 20px;
  align-items: stretch;
}

.apteka-promo-single__media {
  border: 1px solid #c4daef;
  border-radius: 16px;
  overflow: hidden;
  background: #f5f9ff;
  box-shadow: 0 12px 26px rgba(15, 47, 84, 0.09);
}

.apteka-promo-single__image {
  width: 100%;
  height: auto;
  display: block;
}

.apteka-promo-single__content {
  border: 1px solid #c7dbef;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fcff 100%);
  padding: 16px;
  box-shadow: 0 12px 26px rgba(15, 47, 84, 0.1);
}

.apteka-promo-single__badge {
  margin: 0 0 8px;
  width: fit-content;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid #9ed5bf;
  background: #ebfaf3;
  color: #177358;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.apteka-promo-single__content h2 {
  margin: 0 0 8px;
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1.08;
  color: #17395f;
}

.apteka-promo-single__content h3 {
  margin: 14px 0 10px;
}

.apteka-promo-products {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid #c8dcef;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fcff 100%);
  box-shadow: 0 12px 24px rgba(15, 47, 84, 0.08);
}

.apteka-promotions-page__empty {
  color: #61728a;
}

@media (max-width: 1024px) {
  .apteka-promotions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .apteka-promo-single {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .apteka-promotions-grid {
    grid-template-columns: 1fr;
  }
}


/* >>> pages/ui-pass.css */
/* Final visual normalization layer (loaded last). */

/* Header */
.apteka-header__main {
  min-height: 86px;
  grid-template-columns: minmax(140px, 200px) minmax(140px, 192px) minmax(280px, 1fr) auto;
  gap: clamp(10px, 1.4vw, 16px);
}

.apteka-logo {
  min-height: 64px;
}

.apteka-logo .custom-logo-link {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
}

.apteka-logo img,
.apteka-logo .custom-logo {
  max-height: 62px;
  width: auto !important;
}

.apteka-header-icons {
  justify-self: end;
  align-self: center;
  flex-wrap: nowrap;
}

.apteka-search-form {
  min-width: 0;
}

/* Product cards */
.apteka-home-products ul.products,
.apteka-catalog-products ul.products,
.apteka-wishlist-page ul.products,
.woocommerce ul.products {
  gap: 16px;
}

.apteka-home-products ul.products li.product.apteka-product-card,
.apteka-catalog-products ul.products li.product.apteka-product-card,
.apteka-wishlist-page ul.products li.product.apteka-product-card,
.woocommerce ul.products li.product.apteka-product-card {
  border-radius: 16px;
  border-color: #c8dbef;
  box-shadow: 0 10px 22px rgba(16, 48, 83, 0.1);
}

.apteka-product-card__media {
  aspect-ratio: 4 / 4.8;
}

.apteka-product-card__body {
  min-height: 304px;
  gap: 12px;
}

.apteka-home-products ul.products li.product.apteka-product-card .woocommerce-loop-product__title,
.apteka-catalog-products ul.products li.product.apteka-product-card .woocommerce-loop-product__title,
.apteka-wishlist-page ul.products li.product.apteka-product-card .woocommerce-loop-product__title,
.woocommerce ul.products li.product.apteka-product-card .woocommerce-loop-product__title {
  font-size: 16px;
  line-height: 1.3;
}

.apteka-product-card__price ins,
.apteka-product-card__price .amount {
  font-size: 19px;
  font-weight: 800;
}

.apteka-product-card__price del,
.apteka-product-card__price del .amount {
  font-size: 13px;
}

.apteka-home-products ul.products li.product.apteka-product-card .button,
.apteka-catalog-products ul.products li.product.apteka-product-card .button,
.apteka-wishlist-page ul.products li.product.apteka-product-card .button,
.woocommerce ul.products li.product.apteka-product-card .button,
.apteka-home-products ul.products li.product.apteka-product-card .added_to_cart.wc-forward,
.apteka-catalog-products ul.products li.product.apteka-product-card .added_to_cart.wc-forward,
.apteka-wishlist-page ul.products li.product.apteka-product-card .added_to_cart.wc-forward,
.woocommerce ul.products li.product.apteka-product-card .added_to_cart.wc-forward {
  min-height: 42px;
  justify-content: center;
  text-align: center;
  padding: 0 12px;
}

.apteka-home-products ul.products li.product.apteka-product-card .button::after,
.apteka-catalog-products ul.products li.product.apteka-product-card .button::after,
.apteka-wishlist-page ul.products li.product.apteka-product-card .button::after,
.woocommerce ul.products li.product.apteka-product-card .button::after,
.apteka-home-products ul.products li.product.apteka-product-card .added_to_cart.wc-forward::after,
.apteka-catalog-products ul.products li.product.apteka-product-card .added_to_cart.wc-forward::after,
.apteka-wishlist-page ul.products li.product.apteka-product-card .added_to_cart.wc-forward::after,
.woocommerce ul.products li.product.apteka-product-card .added_to_cart.wc-forward::after {
  content: none !important;
}

/* Sidebar */
.apteka-catalog-sidebar .apteka-filters-form {
  border-radius: 16px;
  border-color: #cadced;
  box-shadow:
    0 14px 28px rgba(17, 49, 84, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.apteka-filter-group {
  border-radius: 14px;
}

.apteka-filter-option {
  border-radius: 10px;
}

/* Single product */
.apteka-single-product {
  border-radius: 20px;
  padding: clamp(16px, 2vw, 24px);
}

.apteka-single-product__layout {
  gap: clamp(20px, 2.5vw, 30px);
}

.apteka-product-main-image {
  width: 94%;
  height: clamp(440px, 30vw, 580px);
  border-radius: 18px;
}

.apteka-product-main-image .apteka-heart--image {
  right: 16px;
  bottom: 16px;
  width: 44px;
  height: 44px;
}

.apteka-product-facts {
  margin-top: clamp(46px, 4.5vw, 86px);
}

.apteka-tabs {
  border-radius: 18px;
}

@media (max-width: 1160px) {
  .apteka-header__main {
    grid-template-columns: minmax(132px, 180px) minmax(132px, 176px) minmax(200px, 1fr) auto;
  }
}

@media (max-width: 1080px) {
  .apteka-header__main {
    grid-template-columns: minmax(130px, 190px) minmax(220px, 1fr) auto;
  }
}

@media (max-width: 780px) {
  .apteka-logo img,
  .apteka-logo .custom-logo {
    max-height: 54px;
  }

  .apteka-product-main-image {
    width: 100%;
    height: clamp(360px, 76vw, 480px);
  }

  .apteka-product-facts {
    margin-top: 8px;
  }
}


