/* Æmillius Compare 0.3.3. Palette: gold #cbb162, gold text #a58c44, text #3e3e3e, muted #838383, hairline #ebe8e1. */

/* Toggle on cards and product page: plain underlined text, no icon, no box (Kris 2026-09-29).
 * Size and position live ONLY in the base and variant rules. The :hover/:focus/:active rules may change
 * colours, never margin/display/font-size: in 0.2.2 a shared ":hover, :focus" reset set margin 0, so a
 * clicked (focused) link moved 14px up as the pointer left it and back as it re-entered, bouncing forever. */
.aecmp-btn {
  -webkit-appearance: none;
  appearance: none;
  display: inline-block;
  min-height: 0;
  margin: 0;
  padding: 4px 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  line-height: 1.4;
  color: #616162;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: rgba(97, 97, 98, .45);
  cursor: pointer;
  transition: color .2s, text-decoration-color .2s;
}
/* States: keep theme button hover/focus styles from painting a box; visual properties only */
.aecmp-btn:hover,
.aecmp-btn:focus,
.aecmp-btn:active { background: none; box-shadow: none; border: 0; transform: none; }
@media (hover: hover) {
  .aecmp-btn:hover { color: #3e3e3e; text-decoration-color: #cbb162; } /* mouse only: on touch :hover sticks after a tap */
}
.aecmp-btn:focus-visible { outline: 1px solid #cbb162; outline-offset: 3px; }
.aecmp-btn.is-active,
.aecmp-btn.is-active:hover { color: #a58c44; text-decoration-color: #cbb162; }
ul.products .aecmp-btn { align-self: center; margin: 12px auto 0; }
.aecmp-btn.aecmp-btn--product { display: block; margin-top: 14px; font-size: 15px; }

/* Bottom bar (all pages except the compare page itself) */
.aecmp-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 9990;
  background: rgba(255, 255, 255, .97);
  border-top: 1px solid #ebe8e1;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, .06);
  font-family: inherit;
}
.aecmp-bar[hidden] { display: none; }
body.aecmp-has-bar { padding-bottom: 76px; }
.aecmp-bar__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.aecmp-bar__items { display: flex; gap: 10px; flex: 1; min-width: 0; overflow-x: auto; }
.aecmp-chip {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid #ebe8e1; border-radius: 4px;
  padding: 6px 8px 6px 6px;
  min-width: 0; max-width: 240px;
  background: #fff;
}
.aecmp-chip img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; background: #f7f6f2; }
.aecmp-chip__name { font-size: 13px; color: #3e3e3e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aecmp-chip__x { border: 0; background: transparent; color: #838383; font-size: 18px; line-height: 1; cursor: pointer; padding: 0 2px; }
.aecmp-chip__x:hover { color: #3e3e3e; }
.aecmp-chip--empty { border-style: dashed; width: 120px; height: 54px; justify-content: center; }
.aecmp-chip--empty span { width: 40px; height: 40px; border-radius: 50%; background: #f7f6f2; }
.aecmp-bar__actions { display: flex; align-items: center; gap: 14px; flex: none; }
.aecmp-bar__cta {
  display: inline-block; padding: 12px 24px;
  background: #cbb162; color: #fff !important;
  border-radius: 4px; font-weight: 600; font-size: 15px; text-decoration: none !important;
  transition: background .2s;
}
.aecmp-bar__cta:hover { background: #bda452; }
.aecmp-bar__cta.is-disabled { opacity: .5; cursor: not-allowed; }
.aecmp-bar__clear {
  border: 0; background: transparent; padding: 0; font-family: inherit;
  color: #616162; font-size: 14px; cursor: pointer;
  text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(97, 97, 98, .45);
}
.aecmp-bar__flash {
  position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%);
  background: #3e3e3e; color: #fff; font-size: 13px; padding: 8px 14px; border-radius: 4px;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.aecmp-bar__flash.is-on { opacity: 1; }
body { scroll-padding-bottom: 80px; }

/* ------------------------------------------------------------ Compare page
 * Table rules are scoped to #aecmp: Divi styles cells with #content-area table td (id level). */
.aecmp-page { color: #3e3e3e; margin: 0 auto; padding-bottom: 56px; }
.aecmp-empty { text-align: center; padding: 48px 16px; color: #616162; font-size: 16px; }
.aecmp-empty p { margin: 0 0 22px; padding: 0; }

.aecmp-controls { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
/* 0.2.5: the page title lives in the table's first column (above the controls); the theme's own title is hidden.
   Same look as Divi's .main_title on this site: Comfortaa 38px bold #3e3e3e (phones too). */
body.aecmp-compare-page .entry-title.main_title { display: none; }
#aecmp .aecmp-title {
  margin: 0 0 28px;
  padding: 0;
  font-size: 38px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: normal;
  text-transform: none;
  color: #3e3e3e;
}
.aecmp-link,
.aecmp-link:hover {
  font-size: 14px; color: #616162 !important;
  text-decoration: underline !important; text-underline-offset: 4px; text-decoration-color: rgba(97, 97, 98, .45) !important;
}
.aecmp-link:hover { color: #3e3e3e !important; text-decoration-color: #cbb162 !important; }
.aecmp-toggle { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: #616162; cursor: pointer; user-select: none; }
.aecmp-toggle input[type="checkbox"] {
  -webkit-appearance: none; appearance: none;
  position: relative; flex: none;
  width: 36px; height: 20px; margin: 0;
  border-radius: 20px; background: #e4e1d9;
  cursor: pointer; transition: background .2s;
}
.aecmp-toggle input[type="checkbox"]::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 14px; height: 14px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .18);
  transition: transform .2s;
}
.aecmp-toggle input[type="checkbox"]:checked { background: #cbb162; }
.aecmp-toggle input[type="checkbox"]:checked::after { transform: translateX(16px); }
.aecmp-toggle input[type="checkbox"]:focus-visible { outline: 1px solid #cbb162; outline-offset: 3px; }

.aecmp-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
#aecmp table.aecmp-table {
  width: 100%; min-width: 0; margin: 0;
  border: 0; border-collapse: collapse; border-spacing: 0;
  table-layout: fixed; background: none;
}
#aecmp .aecmp-table th,
#aecmp .aecmp-table td {
  padding: 20px 18px;
  border: 0;
  border-bottom: 1px solid #ebe8e1;
  background: none;
  vertical-align: top;
  text-align: center;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: #3e3e3e;
}
#aecmp .aecmp-table th[scope="row"],
#aecmp .aecmp-table .aecmp-th-label {
  width: 22%;
  padding-left: 0;
  text-align: left;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #838383;
}
#aecmp .aecmp-table th[scope="row"] { padding-top: 23px; }
#aecmp .aecmp-table thead .aecmp-th-label {
  padding: 0 18px 30px 0;
  vertical-align: middle;
  font-size: 14px;
  letter-spacing: normal;
  text-transform: none;
  color: #616162;
}

/* Column headers: the pearl on white, name, price, remove */
#aecmp .aecmp-table thead th { padding-top: 0; padding-bottom: 30px; vertical-align: bottom; }
.aecmp-th-media { display: block; width: 220px; max-width: 100%; margin: 0 auto 18px; overflow: hidden; }
#aecmp .aecmp-img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 1 / 1; object-fit: contain;
  border-radius: 0; background: none; box-shadow: none;
  transition: transform .8s cubic-bezier(.2, .7, .2, 1);
}
#aecmp .aecmp-th-media:hover .aecmp-img { transform: scale(1.05); }
#aecmp .aecmp-th-media:not(.is-pearl) .aecmp-img { width: 82%; margin: 9% auto; }
.aecmp-th-name,
.aecmp-th-name:hover {
  display: block;
  font-size: 19px; font-weight: 500; line-height: 1.35;
  color: #3e3e3e !important; text-decoration: none !important;
}
.aecmp-th-name:hover { color: #a58c44 !important; }
.aecmp-th-price { display: block; margin-top: 8px; font-size: 15px; color: #838383; }
.aecmp-th-price .amount { color: inherit; }
.aecmp-th-remove,
.aecmp-th-remove:hover {
  -webkit-appearance: none; appearance: none;
  margin: 12px 0 0; padding: 2px 0;
  border: 0; border-radius: 0; background: none; box-shadow: none;
  font-family: inherit; font-size: 13px; color: #838383; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(131, 131, 131, .45);
}
.aecmp-th-remove:hover { color: #3e3e3e; }

/* Rows: identical values step back, so the differences read first (no bars, no tints) */
#aecmp .aecmp-row.is-same td { color: #838383; }
#aecmp.only-diff .aecmp-row.is-same { display: none; }
/* Long texts (Разширено описание): centred like every other cell (0.3.0). With JS (.has-clamp) they stop after
   6 lines on desktop / 4 on phones with "Прочети повече"; each column opens on its own. Phones: left-aligned
   (centred narrow columns read badly, Kris 30.09). */
.aecmp-long { max-width: 38ch; margin: 0 auto; text-align: center; font-size: 14px; line-height: 1.7; }
.aecmp-page.has-clamp .aecmp-long__text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  line-clamp: 6;
  overflow: hidden;
}
.aecmp-page.has-clamp .aecmp-long.is-open .aecmp-long__text { display: block; -webkit-line-clamp: unset; line-clamp: unset; overflow: visible; }
/* Size lives only here and in the phone rule; states change colour only (0.3.2: a shared ":hover, :focus"
   reset set the desktop 13px, so after a tap the focused link grew on phones and wrapped onto two lines). */
.aecmp-more {
  -webkit-appearance: none; appearance: none;
  display: inline-block; margin: 8px 0 0; padding: 2px 0;
  border: 0; border-radius: 0; background: none; box-shadow: none;
  font-family: inherit; font-size: 13px; line-height: 1.4; white-space: nowrap; color: #838383; cursor: pointer;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; vertical-align: top; /* never runs into the next column */
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(131, 131, 131, .45);
}
.aecmp-more:hover,
.aecmp-more:focus,
.aecmp-more:active { background: none; box-shadow: none; border: 0; color: #838383; }
.aecmp-more:focus-visible { outline: 1px solid #cbb162; outline-offset: 3px; }
/* Hover colour only with a real mouse: on touch screens :hover sticks after a tap */
@media (hover: hover) {
  .aecmp-more:hover { color: #3e3e3e; text-decoration-color: #cbb162; }
}
.aecmp-more[hidden] { display: none; }
.aecmp-na { color: #c4c4c4; }
#aecmp .aecmp-table .aecmp-row--cta th,
#aecmp .aecmp-table .aecmp-row--cta td { border-bottom: 0; padding-top: 36px; }
.aecmp-cmp__cta,
.aecmp-cmp__cta:hover {
  display: inline-block; padding: 12px 30px;
  border: 1px solid #cbb162; border-radius: 4px;
  background: #fff; color: #cbb162 !important;
  font-size: 16px; font-weight: 600; line-height: 1.2; text-decoration: none !important;
  transition: background .2s, color .2s;
}
.aecmp-cmp__cta:hover { background: #cbb162; color: #fff !important; }

/* Intensity dots reuse caviar-product-page classes when that CSS is missing (compare page is not a product page) */
.caviar-pearl__scale { display: inline-flex; align-items: center; gap: 5px; }
.caviar-pearl__dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; border: 1px solid #cbb162; }
.caviar-pearl__dot.is-on { background: #cbb162; }
.caviar-pearl__scale-num { margin-left: 6px; font-size: 12px; color: #838383; }

@media (max-width: 980px) {
  #aecmp .aecmp-table th[scope="row"],
  #aecmp .aecmp-table .aecmp-th-label { width: 20%; }
  .aecmp-th-media { width: 170px; }
}

/* Phones: the label becomes a caption above its values, products side by side, no sideways scrolling */
@media (max-width: 767px) {
  .aecmp-bar__inner { padding: 8px 10px; gap: 8px; }
  .aecmp-chip img { width: 32px; height: 32px; }
  .aecmp-chip__name { display: none; }
  .aecmp-chip--empty { width: 46px; height: 46px; }
  .aecmp-chip--empty span { width: 32px; height: 32px; }
  .aecmp-bar__cta { padding: 10px 14px; font-size: 14px; }
  .aecmp-bar__clear { display: none; }
  body.aecmp-has-bar { padding-bottom: 64px; }

  /* Divi keeps page content at 80% on phones: the compare block uses the full screen minus 16px gutters */
  #aecmp { width: calc(100vw - 32px); max-width: none; margin-left: calc(50% - 50vw + 16px); }
  .aecmp-link, .aecmp-toggle { font-size: 13px; white-space: nowrap; }
  .aecmp-scroll { overflow: visible; }
  #aecmp .aecmp-table th, #aecmp .aecmp-table td { overflow-wrap: anywhere; hyphens: auto; }
  #aecmp .aecmp-table,
  #aecmp .aecmp-table thead,
  #aecmp .aecmp-table tbody { display: block; width: 100%; }
  #aecmp .aecmp-table tr {
    display: grid;
    grid-template-columns: repeat(var(--aecmp-n, 2), minmax(0, 1fr));
    column-gap: 14px;
    border-bottom: 1px solid #ebe8e1;
  }
  #aecmp .aecmp-table th,
  #aecmp .aecmp-table td { display: block; width: auto; border-bottom: 0; padding: 0 0 18px; font-size: 14px; }
  #aecmp .aecmp-table th[scope="row"] { grid-column: 1 / -1; width: auto; padding: 18px 0 10px; text-align: center; font-size: 11px; }
  #aecmp .aecmp-table .aecmp-row--cta th { display: none; }
  #aecmp .aecmp-table thead th { padding: 0 0 22px; }
  /* Phones: the controls cell becomes a full-width line above the products */
  #aecmp .aecmp-table thead .aecmp-th-label { grid-column: 1 / -1; width: auto; padding: 0 0 22px; }
  .aecmp-controls { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 16px; }
  #aecmp .aecmp-table .aecmp-row--cta { border-bottom: 0; }
  #aecmp .aecmp-table .aecmp-row--cta td { padding-top: 22px; }
  .aecmp-th-media { width: 100%; max-width: 160px; margin-bottom: 12px; }
  .aecmp-th-name { font-size: 15px; }
  .aecmp-th-price { font-size: 13px; }
  .aecmp-long { max-width: none; font-size: 13px; text-align: left; }
  .aecmp-page.has-clamp .aecmp-long__text { -webkit-line-clamp: 4; line-clamp: 4; }
  .aecmp-more { font-size: 12px; }
  .aecmp-cmp__cta,
  .aecmp-cmp__cta:hover { display: block; padding: 11px 6px; font-size: 14px; }

  /* Three products on a phone: tighter type */
  #aecmp .aecmp-n-3 tr { column-gap: 10px; }
  #aecmp .aecmp-n-3 td { font-size: 13px; line-height: 1.5; }
  .aecmp-n-3 .aecmp-th-media { max-width: 104px; }
  .aecmp-n-3 .aecmp-th-name { font-size: 13px; }
  .aecmp-n-3 .aecmp-th-price { font-size: 12px; }
  .aecmp-n-3 .aecmp-long { font-size: 12px; }
  .aecmp-n-3 .aecmp-more { font-size: 11px; } /* one line in a 3-column phone table (360px screens included) */
  .aecmp-n-3 .aecmp-cmp__cta { font-size: 13px; padding: 10px 4px; }
  .aecmp-n-3 .caviar-pearl__scale-num { display: none; }
}
