/* Εν Λευκώ — custom styles (loaded automatically by PrestaShop after theme.css) */

/* ==========================================================================
   1. Fonts
   ========================================================================== */

/* Roboto Condensed (self-hosted, latin + greek + greek-ext, 400/700) */
@font-face {
  font-display: swap;
  font-family: "Roboto Condensed";
  font-style: normal;
  font-weight: 400;
  src: url(../fonts/roboto-condensed-latin-400-normal.woff2) format("woff2"),
       url(../fonts/roboto-condensed-latin-400-normal.woff) format("woff");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-display: swap;
  font-family: "Roboto Condensed";
  font-style: normal;
  font-weight: 700;
  src: url(../fonts/roboto-condensed-latin-700-normal.woff2) format("woff2"),
       url(../fonts/roboto-condensed-latin-700-normal.woff) format("woff");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-display: swap;
  font-family: "Roboto Condensed";
  font-style: normal;
  font-weight: 400;
  src: url(../fonts/roboto-condensed-greek-400-normal.woff2) format("woff2"),
       url(../fonts/roboto-condensed-greek-400-normal.woff) format("woff");
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}

@font-face {
  font-display: swap;
  font-family: "Roboto Condensed";
  font-style: normal;
  font-weight: 700;
  src: url(../fonts/roboto-condensed-greek-700-normal.woff2) format("woff2"),
       url(../fonts/roboto-condensed-greek-700-normal.woff) format("woff");
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}

@font-face {
  font-display: swap;
  font-family: "Roboto Condensed";
  font-style: normal;
  font-weight: 400;
  src: url(../fonts/roboto-condensed-greek-ext-400-normal.woff2) format("woff2"),
       url(../fonts/roboto-condensed-greek-ext-400-normal.woff) format("woff");
  unicode-range: U+1F00-1FFF;
}

@font-face {
  font-display: swap;
  font-family: "Roboto Condensed";
  font-style: normal;
  font-weight: 700;
  src: url(../fonts/roboto-condensed-greek-ext-700-normal.woff2) format("woff2"),
       url(../fonts/roboto-condensed-greek-ext-700-normal.woff) format("woff");
  unicode-range: U+1F00-1FFF;
}

/* Bootstrap Icons (self-hosted) */
@font-face {
  font-display: swap;
  font-family: "bootstrap-icons";
  src: url(../fonts/bootstrap-icons.woff2) format("woff2"),
       url(../fonts/bootstrap-icons.woff) format("woff");
}

/* ==========================================================================
   2. Base: typography and colours
   ========================================================================== */

:root {
  --bs-body-font-family: "Roboto Condensed", sans-serif;
  --bs-body-font-size: 1.0625rem;
  --bs-primary: #000000;
  /* text colour: pure black instead of Bootstrap's #212529 */
  --bs-body-color: #000000;
  --bs-body-color-rgb: 0, 0, 0;
}

/* the two places where the parent theme hard-codes #212529 as a text colour */
.btn-outline-dark {
  --bs-btn-color: #000000;
  --bs-btn-disabled-color: #000000;
}

.noui-tooltip {
  color: #000000;
}

.popover,
.tooltip {
  font-family: "Roboto Condensed", sans-serif;
}

.bg-body-tertiary {
  background-color: rgba(var(--bs-secondary-bg-rgb), var(--bs-bg-opacity)) !important;
}

/* ==========================================================================
   3. Icons (Bootstrap Icons)
   ========================================================================== */

.bi::before {
  display: inline-block;
  font-family: bootstrap-icons !important;
  font-style: normal;
  font-weight: 400 !important;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  vertical-align: -0.125em;
}

.bi-cart3::before     { content: "\f244"; }
.bi-globe::before     { content: "\f3ee"; }
.bi-handbag::before   { content: "\f409"; }
.bi-list::before      { content: "\f479"; }
.bi-person::before    { content: "\f4e1"; }
.bi-search::before    { content: "\f52a"; }
.bi-translate::before { content: "\f658"; }
.bi-x-lg::before      { content: "\f659"; }

/* ==========================================================================
   4. Header
   ========================================================================== */

.header {
  position: static;
}

.header-top {
  padding: 0.5rem 0;
}

.header-nav-full-width {
  padding-inline: 1rem;
}

/* Logo */
.header-top .navbar-brand {
  max-height: max(50px, 10vh);
  max-width: 250px;
  padding: 0;
}

.header-top .navbar-brand .logo {
  max-height: 3rem;
  max-width: 8rem;
  width: auto;
}

/* Link list (left) */
.ps-linklist-header__list {
  gap: 24px;
}

.ps-linklist-header__link {
  font-size: 14px;
  text-decoration: none;
  color: var(--bs-body-color);
}

.ps-linklist-header__link:hover {
  text-decoration: underline;
}

/* Language selector */
.ps-languageselector-header .header-block__action-btn {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ps-languageselector-header .dropdown-toggle::after {
  display: none;
}

.ps-languageselector-header__current {
  font-size: 12px;
  text-transform: uppercase;
}

/* Icons */
.bi-person.header-block__icon {
  font-size: 1.625rem;
}

/* Mobile menu toggle: same colour and size as the other header icons */
.ps-mainmenu__mobile-toggle .menu-toggle {
  color: inherit;
  padding: 0.25rem;
  line-height: 1;
}

.ps-mainmenu__mobile-toggle .bi-list.header-block__icon {
  font-size: 1.75rem;
}

/* Left / right sides (display set here, not with d-flex, so that mobile can override it) */
.header-top__left,
.header-top__right {
  display: flex;
  align-items: center;
}

.header-top__right {
  justify-content: flex-end;
}

/* Mobile: one row — menu | search | logo | account | cart.
   The two sides become part of one grid with equal icon cells,
   so the logo is exactly centred. */
@media (max-width: 767.98px) {
  .header-top .row {
    display: grid;
    grid-template-columns: 2.5rem 2.5rem 1fr auto 1fr 2.5rem 2.5rem;
    align-items: center;
  }

  .header-top__left,
  .header-top__right {
    display: contents;
  }

  .header-top .row > *,
  .header-top__left > *,
  .header-top__right > * {
    grid-row: 1;
    justify-self: center;
  }

  .ps-mainmenu__mobile-toggle {
    grid-column: 1;
  }

  .header-top__right > div:has(> .header-block .bi-search) {
    grid-column: 2;
  }

  .header-top__logo {
    grid-column: 4;
  }

  #_desktop_ps_customersignin {
    grid-column: 6;
  }

  #_desktop_ps_shoppingcart {
    grid-column: 7;
  }

  /* The language selector is in the mobile menu */
  #_desktop_ps_languageselector {
    display: none;
  }

  .header-top__logo img {
    max-width: 110px;
    height: auto;
  }

  .header-top__right .header-block,
  .header-top__right .header-block__action-btn,
  .header-top__right .header-block a {
    margin: 0;
    padding-left: 0.125rem;
    padding-right: 0.125rem;
  }

  .header-top__right .header-block__icon,
  .header-top__right .bi-person.header-block__icon,
  .ps-mainmenu__mobile-toggle .bi-list.header-block__icon {
    font-size: 1.5rem;
  }

  .header-top .bi-search.header-block__icon {
    font-size: 1.3rem;
  }
}

@media (min-width: 768px) {
  .header-top .navbar-brand .logo {
    max-width: 9rem;
  }
}

/* ==========================================================================
   5. Footer: white background, black text
   ========================================================================== */

.footer__main {
  background: var(--bs-white);
  color: var(--bs-primary);
}

.footer-block__title,
.footer-block__title a,
.footer-block a {
  color: var(--bs-primary);
}

.footer-block a:hover {
  color: var(--bs-primary);
  text-decoration: underline;
}

/* ==========================================================================
   6. Creative Elements
   ========================================================================== */

.elementor-widget-product-carousel > .elementor-widget-container {
  grid-column: 1 / -1;
}

/* ==========================================================================
   7. Main menu: no focus ring on mouse click (kept for keyboard navigation)
   ========================================================================== */

.ps-mainmenu:is(.ps-mainmenu--desktop) .ps-mainmenu__tree > li .ps-mainmenu__tree-link:focus:not(:focus-visible) {
  outline: 0;
}

/* Main menu links: always black (parent theme: grey, and blue on hover / current page).
   Hover, keyboard focus and the current page are underlined instead. */
.ps-mainmenu:is(.ps-mainmenu--desktop) .ps-mainmenu__tree > li .ps-mainmenu__tree-link,
.ps-mainmenu:is(.ps-mainmenu--desktop) .ps-mainmenu__tree > li .ps-mainmenu__tree-link:hover,
.ps-mainmenu:is(.ps-mainmenu--desktop) .ps-mainmenu__tree > li .ps-mainmenu__tree-link:active,
.ps-mainmenu:is(.ps-mainmenu--desktop) .ps-mainmenu__tree > li .ps-mainmenu__tree-link:focus,
.ps-mainmenu:is(.ps-mainmenu--desktop) .ps-mainmenu__tree > li.current .ps-mainmenu__tree-link {
  color: #000000;
}

.ps-mainmenu:is(.ps-mainmenu--desktop) .ps-mainmenu__tree > li.current .ps-mainmenu__tree-link,
.ps-mainmenu:is(.ps-mainmenu--desktop) .ps-mainmenu__tree > li .ps-mainmenu__tree-link:hover,
.ps-mainmenu:is(.ps-mainmenu--desktop) .ps-mainmenu__tree > li .ps-mainmenu__tree-link:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

/* Mobile menu: links keep their colour when tapped (parent theme: blue on :hover / :active,
   which flashes on touch screens). */
.ps-mainmenu:is(.ps-mainmenu--mobile) .menu a:hover,
.ps-mainmenu:is(.ps-mainmenu--mobile) .menu a:active,
.ps-mainmenu:is(.ps-mainmenu--mobile) .menu a:focus,
.ps-mainmenu:is(.ps-mainmenu--mobile) .menu .menu__link:active {
  color: var(--bs-secondary-color);
}

/* Mobile menu: the current page and a tapped link are underlined, as in the desktop menu. */
.ps-mainmenu:is(.ps-mainmenu--mobile) .menu li.current > .menu__link,
.ps-mainmenu:is(.ps-mainmenu--mobile) .menu a:hover,
.ps-mainmenu:is(.ps-mainmenu--mobile) .menu a:active,
.ps-mainmenu:is(.ps-mainmenu--mobile) .menu a:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

/* Product cards: title in black, two lines at most (longer titles end with "…"; the full name stays in
   the page for search engines and screen readers). Always two lines high, so the cards line up. */
.product-miniature .product-miniature__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  min-height: 3em;
  min-height: 2lh;
  color: #000000;
  font-size: 18px;
  font-weight: 600;
  text-transform: capitalize;
}

.product-miniature .product-miniature__title:hover,
.product-miniature .product-miniature__title:active,
.product-miniature .product-miniature__title:focus {
  color: #000000;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

/* Product cards: "See details" is not a button under the title any more. With a mouse it slides in as a
   bar over the bottom of the photo when the card is hovered (or reached with the keyboard); on touch
   screens it is hidden — the photo and the title are the links. Cards with "Add to cart" are untouched. */
.product-miniature .product-miniature__bottom {
  position: relative;
}

.product-miniature .product-miniature__actions:has(> .product-miniature__details) {
  margin-top: -0.5rem; /* the empty block must not add the column gap */
}

.product-miniature .product-miniature__details {
  position: absolute;
  bottom: 100%;
  left: 0;
  z-index: 2;
  width: 100%;
  padding-block: 0.75rem;
  border: 0;
  border-radius: 0;
  background-color: #ffffff;
  color: #000000;
  opacity: 0;
  transform: translateY(0.5rem);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.product-miniature .product-miniature__details:hover,
.product-miniature .product-miniature__details:active,
.product-miniature .product-miniature__details:focus {
  background-color: #ffffff;
  color: #000000;
  box-shadow: none;
}

.product-miniature .product-miniature__details:hover,
.product-miniature .product-miniature__details:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.product-miniature .product-miniature__inner:hover .product-miniature__details,
.product-miniature .product-miniature__inner:has(:focus-visible) .product-miniature__details {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

@media (hover: none) {
  .product-miniature .product-miniature__details {
    display: none;
  }
}

/* Product page: the wishlist heart sits on the main photo (top right), as on the product cards.
   The parent theme already gives .wishlist-button-add its top / right / margin (with !important). */
.product__left {
  position: relative;
}

.product__left > .product__wishlist .wishlist-button-add {
  position: absolute;
  z-index: 10;
}

/* Product page: the label of a variant group shows only its name ("Μέγεθος"), not the chosen value
   ("Μέγεθος: 8") — the chosen button is already highlighted. Colour swatches keep the value, because
   a swatch has no text. The hidden text is aria-hidden in the template, so nothing is lost for screen readers. */
.product-variant:not(:has(.product-variant__colors)) .product-variant__selected {
  display: none;
}

/* The label floats, so without the value text the buttons must start on their own line. */
.product-variant:not(:has(.product-variant__colors)) .product-variant__attributes {
  clear: both;
  padding-top: 0.5rem;
}

/* Forms buttons ("Κλείστε ραντεβού"): first letter of every word in capitals. */
.forms-button .btn {
  text-transform: capitalize;
}

/* Product page, orderable product: quantity | Add to cart | forms button in one row; the two buttons
   share the free width and wrap under each other on narrow screens. */
.product__actions-qty-add {
  flex-wrap: wrap;
  gap: 0.5rem; /* same as between the size buttons */
}

/* The two buttons share the free width equally but never get narrower than their text, so the row
   stays on one line wherever it fits. */
.product__actions-qty-add .product__add-to-cart,
.product__actions-qty-add .forms-button {
  flex: 1 1 0;
  min-width: max-content;
  margin-top: 0;
}

.product__actions-qty-add .product__add-to-cart-button,
.product__actions-qty-add .forms-button .btn {
  width: 100%;
  white-space: nowrap;
}

.product__actions-qty-add .forms-button .btn {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product__add-to-cart-button .bi {
  margin-right: 0.35rem;
  font-size: 1.15em;
  line-height: 1;
}

/* Product page: narrower quantity field (was 64px wide). */
.product__quantity .quantity-button__group {
  width: auto;
}

.product__quantity #quantity_wanted {
  flex: 0 0 2.5rem;
  width: 2.5rem;
  min-width: 0;
  padding-inline: 0.25rem;
  text-align: center;
}

/* When the box that holds the row is too narrow for quantity + both buttons (phones), the quantity gets
   its own line and the two buttons stay side by side at equal width. The switch depends on the width of
   that box, not of the screen, so wider screens keep everything on one line. */
.product__add-to-cart-container {
  container-type: inline-size;
}

/* The parent theme makes the quantity 100% wide below 576px, which pushed the buttons down even when
   they fitted. Its width now follows its content; the rule below decides when it gets its own line. */
.page-product .product__actions-qty-add .product__quantity {
  width: auto;
}

@container (max-width: 24.99rem) {
  .product__actions-qty-add .product__quantity {
    flex: 0 0 100%;
  }

  .product__actions-qty-add .product__add-to-cart,
  .product__actions-qty-add .forms-button {
    min-width: 0;
  }
}

/* Product page button colours: "Αγορά" black, forms button ("Κλείστε Ραντεβού") #c7a39a.
   Bootstrap buttons take their colours from these variables, so hover / active / disabled follow. */
.product__add-to-cart-button {
  --bs-btn-color: #ffffff;
  --bs-btn-bg: #000000;
  --bs-btn-border-color: #000000;
  --bs-btn-hover-color: #ffffff;
  --bs-btn-hover-bg: #333333;
  --bs-btn-hover-border-color: #333333;
  --bs-btn-active-color: #ffffff;
  --bs-btn-active-bg: #333333;
  --bs-btn-active-border-color: #333333;
  --bs-btn-disabled-color: #ffffff;
  --bs-btn-disabled-bg: #000000;
  --bs-btn-disabled-border-color: #000000;
}

.forms-button .btn {
  --bs-btn-color: #ffffff;
  --bs-btn-bg: #c7a39a;
  --bs-btn-border-color: #c7a39a;
  --bs-btn-hover-color: #ffffff;
  --bs-btn-hover-bg: #b98f85;
  --bs-btn-hover-border-color: #b98f85;
  --bs-btn-active-color: #ffffff;
  --bs-btn-active-bg: #b98f85;
  --bs-btn-active-border-color: #b98f85;
}

/* Disabled "Αγορά" (e.g. size out of stock): "not allowed" pointer. Bootstrap turns pointer events off
   on a disabled button, so the pointer is set on its wrapper. */
.product__add-to-cart:has(.product__add-to-cart-button:disabled) {
  cursor: not-allowed;
}

/* Product cards with several photos: horizontal strip with scroll snap (swipe on phones), arrows on
   hover with a mouse, dots for the position. Markup: miniatures/product-image.tpl, script: custom.js. */
.product-miniature__slides {
  display: flex;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.product-miniature__slides::-webkit-scrollbar {
  display: none;
}

.product-miniature__slides > picture {
  flex: 0 0 100%;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.product-miniature__slide-image {
  display: block;
  width: 100%;
  height: auto;
}

.product-miniature__slides .product-miniature__image {
  display: block;
}

/* The parent theme zooms the photo on hover; in a strip that would only blur the edges of the slides. */
.product-miniature__inner:hover .product-miniature__slides .product-miniature__image {
  transform: none;
}

.product-miniature__slide-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: none;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: var(--bs-border-radius-sm);
  background-color: #ffffff;
  color: #000000;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.product-miniature__slide-nav--prev {
  left: 0.5rem;
}

.product-miniature__slide-nav--next {
  right: 0.5rem;
}

/* At the first / last photo the arrow stays in place, faded, and still takes the click: otherwise a
   visitor clicking through the photos would hit the link underneath and open the product. */
.product-miniature__slide-nav.is-disabled {
  cursor: default;
}

@media (hover: hover) {
  .product-miniature__slide-nav {
    display: flex;
  }

  .product-miniature__inner:hover .product-miniature__slide-nav,
  .product-miniature__slide-nav:focus-visible {
    opacity: 1;
  }

  .product-miniature__inner:hover .product-miniature__slide-nav.is-disabled,
  .product-miniature__slide-nav.is-disabled:focus-visible {
    opacity: 0.4;
  }
}

.product-miniature__dots {
  position: absolute;
  right: 0;
  bottom: 0.5rem;
  left: 0;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 0.3rem;
  pointer-events: none;
}

.product-miniature__dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background-color: #ffffff;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
  opacity: 0.55;
}

.product-miniature__dot.is-active {
  opacity: 1;
}

/* Product photo carousels: quicker slide (Bootstrap: 0.6s), so a swipe feels direct. */
.carousel[data-enlefko-swipe] .carousel-item {
  transition-duration: 0.3s;
}

/* With a mouse the "See details" bar slides over the bottom of the photo: the dots move up above it. */
.product-miniature__dots {
  transition: bottom 0.2s ease;
}

@media (hover: hover) {
  .product-miniature__inner:hover .product-miniature__dots,
  .product-miniature__inner:has(:focus-visible) .product-miniature__dots {
    bottom: 3.5rem; /* bar height (3rem) + the usual 0.5rem */
  }
}

/* Product page main gallery as a strip that follows the finger (carousel with data-enlefko-strip).
   Same Bootstrap carousel markup, but the slides sit side by side with scroll snap; custom.js keeps
   the active slide, the thumbnails, the arrows and the video in step. */
.carousel[data-enlefko-strip] > .carousel-inner {
  display: flex;
  overflow-anchor: none; /* productsync inserts the video slide first: the strip must not jump to keep the photo in view */
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.carousel[data-enlefko-strip] > .carousel-inner::-webkit-scrollbar {
  display: none;
}

.carousel[data-enlefko-strip] > .carousel-inner > .carousel-item {
  display: block !important;
  flex: 0 0 100%;
  float: none;
  margin-right: 0;
  transform: none !important;
  transition: none !important;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

/* Wishlist heart: no white box; black outline, red and filled when the product is in the wishlist
   (custom.js adds .is-favorite, because the module only swaps the icon name).
   The parent theme sets these with !important inside the cascade layer "ps-modules". Important rules
   of an EARLIER layer win, so the overrides go into the first layer of the theme, "vendors". */
@layer vendors {
  .wishlist-button-add,
  .wishlist-button-add:hover {
    border-color: transparent !important;
    background-color: transparent !important;
    color: #000000 !important;
  }

  .wishlist-button-add.is-favorite,
  .wishlist-button-add.is-favorite:hover {
    color: #d70015 !important;
  }

  /* Without its box only the heart shape is visible, in the middle of a 40px touch area. The area goes
     into the corner of the photo, so the shape lines up with the product flags on the other side. */
  .wishlist-button-add {
    top: 1px !important;
    right: 0 !important;
  }
}

/* Product flags ("Νέο", …): larger text, to match the size of the heart. */
.product-flags .badge {
  font-size: 16px;
}

/* The heart is never see-through: black outline with a white inside, or with a red inside when the
   product is in the wishlist. The module prints one icon (outline, or filled when saved), so the
   missing part is drawn with the same icon font behind (the white inside) or on top (the outline). */
.wishlist-button-add i {
  position: relative;
  z-index: 1;
  font-size: 26px;
}

.wishlist-button-add::before,
.wishlist-button-add.is-favorite::after {
  position: absolute;
  top: 50%;
  left: 50%;
  font-family: "Material Icons", sans-serif;
  font-size: 26px;
  font-style: normal;
  font-weight: 400;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  direction: ltr;
  font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* Not saved: white filled heart behind the black outline. */
.wishlist-button-add::before {
  content: "favorite";
  color: rgba(255, 255, 255, 0.7);
}

/* Saved: the module icon is the filled heart (red); the black outline goes on top. */
.wishlist-button-add.is-favorite::before {
  content: none;
}

.wishlist-button-add.is-favorite::after {
  content: "favorite_border";
  z-index: 2;
  color: #000000;
}

/* Product page and zoom window: the galleries do not loop (data-bs-wrap="false" in the templates).
   At the first / last photo the arrow stays visible but faded (custom.js adds .is-disabled). */
.carousel .carousel-control-prev.is-disabled,
.carousel .carousel-control-next.is-disabled,
.carousel .carousel-control-prev.is-disabled:hover,
.carousel .carousel-control-next.is-disabled:hover,
.carousel .carousel-control-prev.is-disabled:focus,
.carousel .carousel-control-next.is-disabled:focus {
  opacity: 0.15;
  cursor: default;
}

/* Product page thumbnails: always one row. The parent theme shows 4 / 5 / 6 per row and wraps the
   rest; here the same number is visible and the others are reached by scrolling the row sideways
   (custom.js keeps the active thumbnail in view). */
.page-product .product__thumbnails-list {
  --enlefko-thumbs: 4;
  --enlefko-thumb-gap: 1rem;
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--enlefko-thumbs) - 1) * var(--enlefko-thumb-gap)) / var(--enlefko-thumbs));
  gap: var(--enlefko-thumb-gap);
  padding: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  list-style: none;
}

.page-product .product__thumbnails-list::-webkit-scrollbar {
  display: none;
}

.page-product .product__thumbnails-list > * {
  scroll-snap-align: start;
}

@media (min-width: 768px) {
  .page-product .product__thumbnails-list {
    --enlefko-thumbs: 5;
    --enlefko-thumb-gap: 1.5rem;
  }
}

@media (min-width: 1200px) {
  .page-product .product__thumbnails-list {
    --enlefko-thumbs: 6;
  }
}

/* ==========================================================================
   Product filters: floating round button (bottom centre) + sheet from the bottom.
   Markup: modules/ps_facetedsearch/ps_facetedsearch.tpl, counter: custom.js.
   ========================================================================== */

.enlefko-filters-fab {
  position: fixed;
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  left: 50%;
  z-index: 1030; /* under the sheet (1045) and its backdrop (1040) */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background-color: #000000;
  color: #ffffff;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.3);
  transform: translateX(-50%);
  transition: background-color 0.15s ease;
}

.enlefko-filters-fab:hover,
.enlefko-filters-fab:focus-visible {
  background-color: #333333;
  color: #ffffff;
}

.enlefko-filters-fab .material-icons {
  font-size: 1.5rem;
}

/* Pages with the floating button: room under the footer copyright, so at the very bottom of the
   page the button (3.5rem high, 1rem from the bottom) sits under the text, not on it. */
body:has(.enlefko-filters-fab) .footer .copyright {
  padding-bottom: calc(5rem + env(safe-area-inset-bottom, 0px));
}

/* Number of active filters. */
.enlefko-filters-fab__count {
  position: absolute;
  top: -0.15rem;
  right: -0.15rem;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.3rem;
  border-radius: 0.625rem;
  background-color: #c7a39a;
  color: #000000;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.25rem;
  text-align: center;
}

.enlefko-filters-fab__count[hidden] {
  display: none;
}

/* The filter window: centred on the screen in both directions, as high as its content (at most 85%
   of the screen). It is Bootstrap's "offcanvas" panel, which normally slides in from an edge; here it
   fades in at the centre instead. */
.ps-facetedsearch--sheet.offcanvas-bottom {
  --bs-offcanvas-height: auto;
  top: 50%;
  right: auto;
  bottom: auto;
  left: 50%;
  width: min(calc(100% - 2rem), 40rem);
  max-height: 85vh;
  margin: 0;
  border: 0;
  border-radius: 1rem;
  opacity: 0;
  transform: translate(-50%, -46%);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.ps-facetedsearch--sheet.offcanvas-bottom.showing,
.ps-facetedsearch--sheet.offcanvas-bottom.show:not(.hiding) {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.ps-facetedsearch--sheet .offcanvas-body {
  overscroll-behavior: contain;
}

.ps-facetedsearch__footer {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--bs-border-color, #dee2e6);
}

/* The sheet has its own title; the one printed with the filters is a Bootstrap utility
   (d-md-block, !important in a late layer), so it is switched off from the first layer. */
@layer vendors {
  .ps-facetedsearch--sheet .left-block__title {
    display: none !important;
  }
}

/* The old "Filter" button next to the sort menu (phones) is replaced by the floating button. */
#search_filter_toggler {
  display: none;
}

/* The left column is collapsed when it holds nothing but the filter button and window (or nothing at
   all; Bootstrap also puts the dark backdrop of the open window in there); the list then uses the full width, with four cards per row on wide screens. A shop that
   puts other blocks in the left column keeps its column. */
.layout-left-column:not(:has(#left-column > :not(.enlefko-filters-fab, #offcanvas-faceted, .offcanvas-backdrop))) #left-column {
  flex: 0 0 0;
  width: 0;
  max-width: 0;
  padding: 0;
}

.layout-left-column:not(:has(#left-column > :not(.enlefko-filters-fab, #offcanvas-faceted, .offcanvas-backdrop))) #center-column {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
}

@media (min-width: 992px) {
  .layout-left-column:not(:has(#left-column > :not(.enlefko-filters-fab, #offcanvas-faceted, .offcanvas-backdrop))) .products {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* "Show results" in the sheet: black, like the buy button. */
.ps-facetedsearch__footer .btn {
  --bs-btn-color: #ffffff;
  --bs-btn-bg: #000000;
  --bs-btn-border-color: #000000;
  --bs-btn-hover-color: #ffffff;
  --bs-btn-hover-bg: #333333;
  --bs-btn-hover-border-color: #333333;
  --bs-btn-active-color: #ffffff;
  --bs-btn-active-bg: #333333;
  --bs-btn-active-border-color: #333333;
}

/* ==========================================================================
   Product lists: next pages load on scroll (custom.js, last block).
   The class is on <html> only while the script runs.
   ========================================================================== */

.enlefko-infinite #js-product-list .products__pagination {
  display: none;
}

.enlefko-infinite__status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.5rem 0;
  color: var(--bs-secondary-color, #6c757d);
}

.enlefko-infinite__status[hidden] {
  display: none;
}

.enlefko-infinite__restart {
  margin-bottom: 1.5rem;
  text-align: center;
}

.enlefko-infinite__restart .btn {
  --bs-btn-color: #000000;
  --bs-btn-bg: transparent;
  --bs-btn-border-color: #000000;
  --bs-btn-hover-color: #ffffff;
  --bs-btn-hover-bg: #000000;
  --bs-btn-hover-border-color: #000000;
  --bs-btn-active-color: #ffffff;
  --bs-btn-active-bg: #000000;
  --bs-btn-active-border-color: #000000;
}

/* On these pages the footer is at least as high as the screen. From the very bottom of the page the
   end of the product list is then out of sight, so nothing more loads while the visitor is at the
   footer (as on fmsstores.gr, whose footer is naturally that high). The extra height opens above
   the copyright line, which stays at the bottom. */
.enlefko-infinite #footer {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.enlefko-infinite #footer .footer__main,
.enlefko-infinite #footer .footer__main > .container {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
}

.enlefko-infinite #footer .footer__main .copyright {
  margin-top: auto;
}

/* ==========================================================================
   Header on scroll (custom.js): part of the page (position: relative, scrolled by the browser) while
   any of it is on screen; once it is fully out of view, scrolling up pins it to the top of the screen
   (.is-pinned = position: sticky) and slides it in (.is-revealing). Scrolling down it goes back to
   being part of the page, at the place where it is (custom.js sets top). It keeps its place in the
   page flow in every state, so the content below never jumps.
   ========================================================================== */

.header.js-sticky-header {
  position: relative;
  z-index: 1021;
}

.header.js-sticky-header.is-pinned {
  position: sticky;
  top: 0;
}

.header.js-sticky-header.is-revealing {
  transition: transform 0.45s ease-out;
}

@media (prefers-reduced-motion: reduce) {
  .header.js-sticky-header.is-revealing {
    transition: none;
  }
}

/* ==========================================================================
   Breadcrumb directly above the page title (templates: _partials/breadcrumb.tpl,
   components/page-title-section.tpl, catalog/product.tpl). No bar, ">" after every step,
   black links underlined on hover like the menu.
   ========================================================================== */

.breadcrumb__wrapper--inline {
  margin: 0 0 0.35rem;
  padding: 0;
  background: transparent;
}

.breadcrumb__wrapper--inline .breadcrumb {
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  background: transparent;
  font-size: 0.9375rem;
  line-height: 1.4;
}

.breadcrumb__wrapper--inline .breadcrumb-item,
.breadcrumb__wrapper--inline .breadcrumb-item + .breadcrumb-item {
  padding-left: 0;
}

.breadcrumb__wrapper--inline .breadcrumb-item::before,
.breadcrumb__wrapper--inline .breadcrumb-item + .breadcrumb-item::before {
  content: none;
}

.breadcrumb__wrapper--inline .breadcrumb-item::after {
  padding-inline: 0.4rem;
  color: #000000;
  content: ">";
}

.breadcrumb__wrapper--inline .breadcrumb-link,
.breadcrumb__wrapper--inline .breadcrumb-link:hover,
.breadcrumb__wrapper--inline .breadcrumb-link:focus {
  color: #000000;
  text-decoration: none;
}

.breadcrumb__wrapper--inline .breadcrumb-link:hover,
.breadcrumb__wrapper--inline .breadcrumb-link:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

/* Sorting inside the filter window (markup: catalog/_partials/enlefko-filters.tpl): built with the
   same accordion and round choices as the filters, so it needs no look of its own. */

/* Filter window: open sections, ticked boxes and the chosen sort order in black instead of the
   theme blue. */
.ps-facetedsearch--sheet {
  --bs-accordion-active-color: #000000;
  --bs-accordion-active-bg: transparent;
  --bs-accordion-btn-active-icon: var(--bs-accordion-btn-icon);
  --bs-accordion-btn-focus-box-shadow: 0 0 0 0.25rem rgba(0, 0, 0, 0.15);
}

.ps-facetedsearch--sheet .accordion-button:not(.collapsed) {
  color: #000000;
  background-color: transparent;
  box-shadow: none;
}

.ps-facetedsearch--sheet .form-check-input:checked {
  background-color: #000000;
  border-color: #000000;
}

.ps-facetedsearch--sheet .form-check-input:focus {
  border-color: #000000;
  box-shadow: 0 0 0 0.25rem rgba(0, 0, 0, 0.15);
}

/* The sort menu above the list is not needed where the filter window (with the sorting) exists. */
body:has(#offcanvas-faceted) .products__sort {
  display: none;
}

/* Product lists: the number of products sits on the right of the page title
   (wrapper .enlefko-list-heading in catalog/listing/product-list.tpl). */
.enlefko-list-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  column-gap: 1.5rem;
  margin-bottom: 0.5rem;
}

.enlefko-list-heading > :first-child {
  flex: 1 1 auto;
  min-width: 0;
}

/* Pushed down by the height of the breadcrumb line, then centred on the line of the title. */
.enlefko-list-heading > #js-product-list-top {
  flex: 0 0 auto;
  margin-top: calc(0.9375rem * 1.4 + 0.35rem);
}

/* The parent theme lays this block out as a two-column grid (count | sort menu); with the sort menu
   hidden the count would stop short of the right edge. */
.enlefko-list-heading .products__selection {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  min-height: 2.4rem;
  margin-bottom: 0;
}

.enlefko-list-heading .products__count {
  white-space: nowrap;
}

/* Phones: the count goes back under the title. */
@media (max-width: 575.98px) {
  .enlefko-list-heading {
    display: block;
    margin-bottom: 1rem;
  }

  .enlefko-list-heading > #js-product-list-top {
    margin-top: 0;
  }

  .enlefko-list-heading .products__selection {
    min-height: 0;
  }
}

/* Product page: "already in your cart" in the place of the availability message
   (catalog/_partials/product-add-to-cart.tpl). The core notice above the product says the same
   thing once, for the variant the page opened with, and is hidden here. */
.product__in-cart {
  color: #2e7d32;
}

.product__in-cart .product__in-cart-link {
  display: inline-block;
  margin-left: 0.35rem;
  color: #000000;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

body#product #notifications .alert-info {
  display: none;
}

/* One green and one red for the whole shop (both pass WCAG AA on white: 5.1 and 5.4).
   Bootstrap reads these variables for .text-success / .text-danger (product availability),
   for form errors and for anything else drawn in the success or danger colour. The saved
   heart of the wishlist uses the same red. */
:root {
  --bs-success: #2e7d32;
  --bs-success-rgb: 46, 125, 50;
  --bs-danger: #d70015;
  --bs-danger-rgb: 215, 0, 21;
  --bs-form-valid-color: #2e7d32;
  --bs-form-valid-border-color: #2e7d32;
  --bs-form-invalid-color: #d70015;
  --bs-form-invalid-border-color: #d70015;
}

/* Header cart badge: the same small black circle on the top right corner of the bag on desktop and
   on mobile (Hummingbird draws it next to the bag, larger and grey, from 768px up, and on mobile ties
   it to the button, whose padding differs per width). Here it sits in the row right after the bag,
   takes no width (margin-right = minus its width) and is moved from the bag's top right corner:
   top: larger = lower, right: larger = further left. Now top -0.2rem, right 0.8rem. */
.blockcart .header-block__badge {
  position: relative;
  top: -0.2rem;
  right: 0.8rem;
  align-self: flex-start;
  margin-right: -1rem;
  height: 1rem;
  min-width: 1rem;
  font-size: 0.625rem;
  background: #000000;
  color: #ffffff;
}

/* ==========================================================================
   Product page: black instead of Bootstrap blue
   (brand link, size buttons, accordion "Περιγραφή / Λεπτομέρειες προϊόντος /
   Χαρακτηριστικά" and the links inside it)
   ========================================================================== */

body#product .product__manufacturer a,
body#product .product__manufacturer a:hover,
body#product .product__accordion a,
body#product .product__accordion a:hover {
  color: #000000;
}

body#product .btn-outline-primary {
  --bs-btn-color: #000000;
  --bs-btn-border-color: #000000;
  --bs-btn-hover-color: #ffffff;
  --bs-btn-hover-bg: #000000;
  --bs-btn-hover-border-color: #000000;
  --bs-btn-focus-shadow-rgb: 0, 0, 0;
  --bs-btn-active-color: #ffffff;
  --bs-btn-active-bg: #000000;
  --bs-btn-active-border-color: #000000;
  --bs-btn-disabled-color: #000000;
  --bs-btn-disabled-border-color: #000000;
}

body#product .product__accordion {
  --bs-accordion-active-color: #000000;
  --bs-accordion-active-bg: transparent;
  --bs-accordion-btn-focus-box-shadow: 0 0 0 0.25rem rgba(0, 0, 0, 0.15);
  --bs-accordion-btn-active-icon: var(--bs-accordion-btn-icon);
}

/* ==========================================================================
   Brands page: logo-only cards (catalog/_partials/miniatures/brand.tpl)
   ========================================================================== */

.brand.brand--logo {
  padding: 0;
  overflow: hidden;
}

.brand--logo .brand__logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 2 / 1;
  color: #000000;
  text-decoration: none;
}

.brand--logo picture {
  display: block;
  width: 100%;
  height: 100%;
}

/* The stored picture is square with the 2:1 logo canvas in its middle; cropping it to the card
   shows that canvas, margins included. */
.brand--logo .brand__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.15s ease;
}

.brand--logo .brand__logo-link:hover .brand__img,
.brand--logo .brand__logo-link:focus-visible .brand__img {
  opacity: 0.6;
}

.brand--logo .brand__title {
  margin: 0;
  font-weight: 700;
}

/* Phones: two logos per row instead of one very wide card. */
@media (max-width: 575.98px) {
  .brand__list:has(.brand--logo) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ==========================================================================
   Primary buttons black everywhere (newsletter "Εγγραφή", forms "Αποστολή", account, checkout…)
   instead of the theme blue. Buttons with their own colours (the forms button on the product page,
   .forms-button .btn) keep them: their rules are more specific.
   ========================================================================== */

.btn-primary {
  --bs-btn-color: #ffffff;
  --bs-btn-bg: #000000;
  --bs-btn-border-color: #000000;
  --bs-btn-hover-color: #ffffff;
  --bs-btn-hover-bg: #333333;
  --bs-btn-hover-border-color: #333333;
  --bs-btn-focus-shadow-rgb: 0, 0, 0;
  --bs-btn-active-color: #ffffff;
  --bs-btn-active-bg: #333333;
  --bs-btn-active-border-color: #333333;
  --bs-btn-disabled-color: #ffffff;
  --bs-btn-disabled-bg: #000000;
  --bs-btn-disabled-border-color: #000000;
}

/* Forms: the privacy policy link next to the consent box in black (underlined, like the rest of the
   text links of the forms) instead of the theme blue. */
.forms-form .form-check-label a,
.forms-form .form-check-label a:hover,
.forms-form .form-check-label a:focus {
  color: #000000;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
