/* Storefront typography — align with local checkout (Hurme) + bolder Alexandria fallback */

@font-face {
  font-family: 'HurmeGeometricSans1';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(https://cdn.shopify.com/s/files/1/0740/5325/5468/files/HurmeGeometricSans1-Bold.woff?v=1731678362)
    format('woff');
}

@font-face {
  font-family: 'HurmeGeometricSans1';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://cdn.shopify.com/s/files/1/0740/5325/5468/files/HurmeGeometricSans1woff.woff?v=1731678766)
    format('woff');
}

@font-face {
  font-family: 'Alexandria';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(https://pharmazone.com/cdn/shop/t/409/assets/Alexandria-SemiBold.ttf?v=21162984960813822381794389001)
    format('truetype');
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  --font-weight-400: 700;
  --font-weight-500: 700;
  --element-text-font-weight--body: 700;
  --element-text-font-weight--heading: 700;
  --element-text-font-weight--accent: 700;
}

.pz-market-notice,
[data-pz-market-notice] {
  display: none !important;
  height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

html {
  --announcement-bar-height: 0px !important;
}

.template-collection .pz-local-header {
  padding: 12px 0;
  margin-bottom: 8px;
  border-bottom: 1px solid #e8e8e8;
  background: #fff;
}

.template-collection .pz-collection-title {
  margin: 1rem 0 0.35rem;
  color: var(--colorBtnPrimary, #00563f);
}

.template-collection .pz-meta {
  color: #666;
  font-size: 14px;
  margin-bottom: 1.25rem;
}

.template-collection .new-grid.product-grid {
  display: flex;
  flex-wrap: wrap;
  margin-left: -5px;
  margin-right: -5px;
}

.template-collection .new-grid.product-grid > .grid-product {
  flex: 0 0 50%;
  max-width: 50%;
  display: flex;
  padding-left: 5px;
  padding-right: 5px;
}

@media (min-width: 580px) {
  .template-collection .new-grid.product-grid > .grid-product {
    flex: 0 0 33.3333%;
    max-width: 33.3333%;
  }
}

@media (min-width: 992px) {
  .template-collection .new-grid.product-grid > .grid-product {
    flex: 0 0 25%;
    max-width: 25%;
  }
}

@media (min-width: 1200px) {
  .template-collection .new-grid.product-grid > .grid-product {
    flex: 0 0 20%;
    max-width: 20%;
  }
}

.template-collection .grid-product .grid-item__content {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: 100%;
  min-height: 100%;
}

.template-collection .grid-product .grid-item__meta {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.template-collection .grid-product .grid-item__meta-main-bottom {
  margin-top: auto;
}

.template-collection .grid-product .grid-item__content {
  min-height: 280px;
}

html.pz-nav-loading body {
  opacity: 1;
  transition: opacity 0.12s ease-out;
}

.template-collection .grid-product__title a {
  text-decoration: none;
  color: #01563f;
  font-weight: 600;
}

.template-collection .pagination-wrap {
  margin: 2rem 0 3rem;
}

.drawer.drawer--left:not(.drawer--is-open),
.drawer.drawer--right:not(.drawer--is-open),
#HeaderCart.drawer:not(.drawer--is-open),
#NavDrawer.drawer:not(.drawer--is-open),
header-drawer:not([open]),
details.mobile-nav:not([open]) > .mobile-nav__wrapper {
  display: none !important;
}

.shopify-section.toolbar-section,
.toolbar-section,
#shopify-section-sections--27372456575276__toolbar,
.toolbar.color-scheme-10 {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

html[data-pz-storefront='1'] {
  --font-weight-400: 700;
  --font-weight-500: 700;
  --element-text-font-weight--body: 700;
  --element-text-font-weight--heading: 700;
  --element-text-font-weight--accent: 700;
}

html[data-pz-storefront='1'] body {
  font-family: 'Alexandria', 'HurmeGeometricSans1', Cairo, system-ui, sans-serif;
  font-weight: 600;
  -webkit-font-smoothing: antialiased;
  font-synthesis: none;
  text-rendering: geometricPrecision;
}

html[data-pz-storefront='1'] .element-text,
html[data-pz-storefront='1'] input,
html[data-pz-storefront='1'] select,
html[data-pz-storefront='1'] textarea,
html[data-pz-storefront='1'] button {
  font-family: inherit;
}

/* Theme greens — bridge must not paint every link black */
html[data-pz-storefront='1'] .text-link,
html[data-pz-storefront='1'] .cart__item-name,
html[data-pz-storefront='1'] .add-note,
html[data-pz-storefront='1'] cart-note .add-note,
html[data-pz-storefront='1'] .cart__clear-cart-btn,
html[data-pz-storefront='1'] .grid-product__vendor a,
html[data-pz-storefront='1'] a.cart__item-name {
  color: var(--color-primary, #00563f);
}

html[data-pz-storefront='1'] h1,
html[data-pz-storefront='1'] h2,
html[data-pz-storefront='1'] h3,
html[data-pz-storefront='1'] .section-header__title,
html[data-pz-storefront='1'] .element-text--heading,
html[data-pz-storefront='1'] .grid-product__title,
html[data-pz-storefront='1'] .cart__product-title,
html[data-pz-storefront='1'] .btn {
  font-weight: 700 !important;
}

html[data-pz-storefront='1'] .pz-mobile-bar__item {
  font-weight: 600;
}

/* Add to cart — loading + success states */
.pz-atc-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.85;
}

.pz-atc-loading::after {
  content: '';
  position: absolute;
  inset: auto 12px auto auto;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: pz-atc-spin 0.65s linear infinite;
}

html[dir='rtl'] .pz-atc-loading::after {
  inset: auto auto auto 12px;
}

@keyframes pz-atc-spin {
  to {
    transform: rotate(360deg);
  }
}

.pz-atc-done {
  background-color: #035641 !important;
  transition: background-color 0.25s ease;
}

/* Local session cart — show selling price, not CSAIOD compare/strike-only UI */
html[data-pz-storefront='1'] #CartPageForm[data-pz-local-cart] del,
html[data-pz-storefront='1'] #CartPageForm[data-pz-local-cart] .discount-price,
html[data-pz-storefront='1'] #CartPageForm[data-pz-local-cart] .csapps-cart-original-total {
  display: none !important;
}

/* Local cart layout — mirror theme section.main-cart (flex row + details grid) */
html[data-pz-storefront='1'] #CartPageForm[data-pz-local-cart] .cart__page {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
}

html[data-pz-storefront='1'] #CartPageForm[data-pz-local-cart] .cart__page-col:first-child {
  flex: 1 1 100%;
  min-width: 0;
}

html[data-pz-storefront='1'] #CartPageForm[data-pz-local-cart] .cart__page-col.medium-up--overlay {
  flex: 1 1 100%;
  min-width: 0;
}

@media only screen and (min-width: 769px) {
  html[data-pz-storefront='1'] #CartPageForm[data-pz-local-cart] .cart__page {
    flex-wrap: nowrap;
    gap: 46px;
  }

  html[data-pz-storefront='1'] #CartPageForm[data-pz-local-cart] .cart__page-col:first-child {
    flex: 1 1 auto;
  }

  html[data-pz-storefront='1'] #CartPageForm[data-pz-local-cart] .cart__page-col.medium-up--overlay {
    flex: 0 1 500px;
    align-self: flex-start;
    position: sticky;
    top: 130px;
  }
}

html[data-pz-storefront='1'] #CartPageForm[data-pz-local-cart] [data-csapp_line_index] {
  display: block;
  width: 100%;
  clear: both;
}

html[data-pz-storefront='1'] #CartPageForm[data-pz-local-cart] .cart__item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0 16px;
  border-bottom: 1px solid #ebebeb;
  position: relative;
  isolation: isolate;
}

html[data-pz-storefront='1'] #CartPageForm[data-pz-local-cart] .cart__image {
  flex: 0 0 100px;
  width: 100px;
  max-width: 100px;
}

html[data-pz-storefront='1'] #CartPageForm[data-pz-local-cart] .cart__image .image-wrap,
html[data-pz-storefront='1'] #CartPageForm[data-pz-local-cart] .cart__image img.image-element {
  width: 100px;
  height: 100px;
  max-width: 100px;
  object-fit: contain;
  display: block;
}

html[data-pz-storefront='1'] #CartPageForm[data-pz-local-cart] .cart__item-details {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr 90px;
  grid-template-areas:
    'title price'
    'qty remove';
  column-gap: 8px;
  row-gap: 8px;
}

html[data-pz-storefront='1'] #CartPageForm[data-pz-local-cart] .cart__item-details > .cart__item-title {
  grid-area: title;
}

html[data-pz-storefront='1'] #CartPageForm[data-pz-local-cart] .cart__item-details > .cart__item-quantity {
  grid-area: qty;
}

html[data-pz-storefront='1'] #CartPageForm[data-pz-local-cart] .cart__item-details > .cart__item-price {
  grid-area: price;
  align-self: flex-start;
  text-align: end;
}

html[data-pz-storefront='1'] #CartPageForm[data-pz-local-cart] .cart__item-details > .cart__item-remove {
  grid-area: remove;
  text-align: end;
}

html[data-pz-storefront='1'] #CartPageForm[data-pz-local-cart] .cart__item-quantity .element-quantity-selector {
  width: fit-content;
  max-width: 130px;
}

html[data-pz-storefront='1'] #CartPageForm[data-pz-local-cart] .cs_final_price,
html[data-pz-storefront='1'] #CartPageForm[data-pz-local-cart] [data-pz-line-price] .cart__price,
html[data-pz-storefront='1'] #CartPageForm[data-pz-local-cart] [data-pz-line-price] .pz-currency__symbol {
  text-decoration: none !important;
  color: var(--color-primary, #00563f) !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1.2;
}

html[data-pz-storefront='1'] #CartPageForm[data-pz-local-cart] .cart__item--subtotal .cart__total-price-pz,
html[data-pz-storefront='1'] #CartPageForm[data-pz-local-cart] .cart__item--subtotal .cart__total-price-pz.cs_final_price,
html[data-pz-storefront='1'] #CartPageForm[data-pz-local-cart] .cart__item--subtotal .cart__item-sub__value,
html[data-pz-storefront='1'] #CartPageForm[data-pz-local-cart] .cart__item--subtotal .pz-currency__symbol {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: var(--color-primary, #00563f) !important;
}

/* Bloom loyalty card (cart sidebar) */
html[data-pz-storefront='1'] #shopwaive_accttable_div__ .section-header__title {
  color: var(--color-primary, #00563f);
  font-weight: 700;
}

html[data-pz-storefront='1'] .bloom-loyalty-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 12px;
  background-color: var(--color-primary, #00563f);
  color: #fff;
}

html[data-pz-storefront='1'] .bloom-loyalty-card__left {
  flex: 1 1 auto;
  min-width: 0;
}

html[data-pz-storefront='1'] .bloom-loyalty-card__right {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

html[data-pz-storefront='1'] .bloom-loyalty-card__points-label {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}

html[data-pz-storefront='1'] .bloom-loyalty-card__highlight {
  color: #eeb2cb !important;
  font-weight: 700;
}

html[data-pz-storefront='1'] .bloom-loyalty-card__points-message {
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  margin-top: 6px;
}

/* Session cart — theme section.main-cart CSS; only normalize remove control */
html[data-pz-storefront='1'] .cart__item-remove .text-link.cart__remove {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
  color: var(--color-primary, #00563f);
  text-decoration: underline;
}

html[data-pz-storefront='1'] #CartPageForm[data-pz-local-cart] .cart__clear-cart-btn {
  display: block;
  margin: 8px 0 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--color-primary, #00563f);
  text-decoration: underline;
  cursor: pointer;
}

/* Theme cart notification (pz-cart-notification) — ensure visible above mobile bar */
html[data-pz-storefront='1'] pz-cart-notification.pz-cart-notification[data-visible] {
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 100001;
}

/* Search results — hide "popular searches" chrome when a query is active */
html[data-pz-search-query='1'] .pz-popular-searches-section {
  display: none !important;
}

html[data-pz-search-query='1'] #algolia-shopify-instantsearch {
  min-height: 40vh;
}

html[data-pz-search-query='1'] .ais-page {
  margin-top: 0;
}

html[data-pz-search-query='1'] .ais-page .ais-search-header {
  margin-top: 8px;
}

html[data-pz-storefront='1'] cart-note,
html[data-pz-storefront='1'] .pz-cart-note,
html[data-pz-storefront='1'] is-land--cart-note {
  display: block;
  width: 100%;
}

html[data-pz-storefront='1'] cart-note .add-note,
html[data-pz-storefront='1'] .pz-cart-note .add-note,
html[data-pz-storefront='1'] is-land--cart-note .add-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: inherit;
  font-weight: 600;
}

html[data-pz-storefront='1'] cart-note .note-icon,
html[data-pz-storefront='1'] .pz-cart-note .note-icon,
html[data-pz-storefront='1'] is-land--cart-note .note-icon {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

html[data-pz-storefront='1'] cart-note .add-note .note-icon--close,
html[data-pz-storefront='1'] .pz-cart-note .add-note .note-icon--close,
html[data-pz-storefront='1'] is-land--cart-note .add-note .note-icon--close {
  display: none;
}

html[data-pz-storefront='1'] cart-note .add-note.is-active .note-icon--open,
html[data-pz-storefront='1'] .pz-cart-note .add-note.is-active .note-icon--open,
html[data-pz-storefront='1'] is-land--cart-note .add-note.is-active .note-icon--open {
  display: none;
}

html[data-pz-storefront='1'] cart-note .add-note.is-active .note-icon--close,
html[data-pz-storefront='1'] .pz-cart-note .add-note.is-active .note-icon--close,
html[data-pz-storefront='1'] is-land--cart-note .add-note.is-active .note-icon--close {
  display: inline-flex;
}

html[data-pz-storefront='1'] cart-note .cart__note,
html[data-pz-storefront='1'] .pz-cart-note .cart__note,
html[data-pz-storefront='1'] is-land--cart-note .cart__note {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid var(--color-primary, #00563f);
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  line-height: 1.45;
  resize: vertical;
  min-height: 84px;
  box-sizing: border-box;
}

html[data-pz-storefront='1'] cart-note .cart__note.hide,
html[data-pz-storefront='1'] .pz-cart-note .cart__note.hide,
html[data-pz-storefront='1'] is-land--cart-note .cart__note.hide {
  display: none !important;
}

html[data-pz-storefront='1'] .pz-cart-note .add-note.is-active ~ .cart__note:not(.hide),
html[data-pz-storefront='1'] is-land--cart-note .add-note.is-active ~ .cart__note:not(.hide) {
  display: block !important;
}

html[data-pz-storefront='1'] recently-viewed.hide,
html[data-pz-storefront='1'] is-land--recently-viewed.hide {
  display: none !important;
}

html[data-pz-storefront='1'] .recently-viewed__section:has(.grid-product),
html[data-pz-storefront='1'] .recently-viewed__section [id^='RecentlyViewed-']:not(:empty) {
  display: block;
}

html[data-pz-storefront='1'] .recently-viewed__section:has(.grid-product) recently-viewed,
html[data-pz-storefront='1'] .recently-viewed__section:has(.grid-product) is-land--recently-viewed {
  display: block !important;
}

.shopify-section[id*='pz_shoppable_banner'],
#shopify-section-template--27372455166252__pz_shoppable_banner {
  display: none !important;
}

a[href*='utm_campaign=AIskin'],
a[href*='utm_campaign%3DAIskin'],
a.pz-link-pills__pill[href*='ai-personalized-routine'],
a[href*='ai-personalized-skin-routine'] {
  display: none !important;
}

html[data-pz-hero-static='1'] .index-section--hero .slideshow__slide:not([data-index='0']) {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
}

html[data-pz-hero-static='1'] .index-section--hero .flickity-slider {
  transform: none !important;
}

html[data-pz-hero-static='1'] .index-section--hero .slideshow__slide[data-index='0'] {
  position: relative !important;
  transform: none !important;
  opacity: 1 !important;
}

html[data-pz-hero-static='1'] .index-section--hero .flickity-page-dots,
html[data-pz-hero-static='1'] .index-section--hero .slideshow__pause,
html[data-pz-hero-static='1'] .index-section--hero .flickity-button {
  display: none !important;
}

html[data-pz-storefront='1'] .index-section--hero .hero__image {
  animation: none !important;
  transition: none !important;
}

html[data-pz-storefront='1'] .pz-product-tabs__panels {
  min-height: var(--pz-product-tabs-min-height, auto);
  transition: min-height 0.15s ease;
}

html[data-pz-storefront='1'] .pz-product-tabs__nav [role='tab'] {
  position: relative;
  z-index: 2;
  pointer-events: auto !important;
  touch-action: manipulation;
}

html[data-pz-storefront='1'] .pz-product-tabs__panel[hidden] {
  display: none !important;
}

html[data-pz-storefront='1'] .pz-scroller__track .at-add-to-cart,
html[data-pz-storefront='1'] .pz-scroller__track at-add-to-cart,
html[data-pz-storefront='1'] .pz-scroller__track .at-add-to-cart__button,
html[data-pz-storefront='1'] .pz-scroller__track .quick-add-btn {
  position: relative;
  z-index: 4;
  pointer-events: auto !important;
  touch-action: manipulation;
}

html[data-pz-storefront='1'] .pz-scroller__track.is-dragging .at-add-to-cart__button,
html[data-pz-storefront='1'] .pz-scroller__track.is-dragging .quick-add-btn {
  pointer-events: auto !important;
}

html[data-pz-storefront='1'] .product-grid.scrollable-grid--small {
  display: flex !important;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  padding-bottom: 4px;
}

html[data-pz-storefront='1'] .product-grid.scrollable-grid--small .grid-product {
  flex: 0 0 52%;
  max-width: 52%;
  align-self: stretch;
  display: flex;
  min-height: 100%;
}

html[data-pz-storefront='1'] .product-grid.scrollable-grid--small .product-grid-item,
html[data-pz-storefront='1'] .product-grid.scrollable-grid--small .grid-item__content {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
}

html[data-pz-storefront='1'] .product-grid.scrollable-grid--small .grid-item__meta {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  justify-content: space-between;
  min-height: 148px;
}

html[data-pz-storefront='1'] .product-grid.scrollable-grid--small .grid-product__title {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3.6em;
}

html[data-pz-storefront='1'] .recently-viewed__section .product-grid:not(.scrollable-grid--small) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (min-width: 769px) {
  html[data-pz-storefront='1'] .product-grid.scrollable-grid--small .grid-product {
    flex-basis: 28%;
    max-width: 28%;
  }

  html[data-pz-storefront='1'] .recently-viewed__section .product-grid:not(.scrollable-grid--small) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  html[data-pz-storefront='1'] #CartPageForm[data-pz-local-cart] .cart__page {
    margin-bottom: 8px;
  }

  html[data-pz-storefront='1'] #CartPageForm[data-pz-local-cart] .cart__checkout-wrapper {
    position: relative;
    margin: 12px 0 4px;
    z-index: 1;
  }

  html[data-pz-storefront='1'] .shopify-section.recently-viewed__section,
  html[data-pz-storefront='1'] .index-section--sub-product {
    contain: layout style;
  }

  html[data-pz-storefront='1'] .bloom-loyalty-card {
    margin-bottom: 8px;
  }
}