/* ============ Abayev Elementor Kit ============ */

/* ---------- Before / After ---------- */
.abv-ba__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.abv-ba__item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  user-select: none;
  touch-action: pan-y;
  cursor: ew-resize;
}
.abv-ba__layer {
  position: absolute;
  inset: 0;
}
.abv-ba__layer--after  { z-index: 1; }
.abv-ba__layer--before { z-index: 2; }
.abv-ba__layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.abv-ba__ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
}
.abv-ba__ph--before { background: #8d8a8c; }
.abv-ba__ph--after  { background: #a9c653; }

.abv-ba__label {
  position: absolute;
  inset-block-start: 14px;
  z-index: 3;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 100px;
  pointer-events: none;
}
.abv-ba__label--before { inset-inline-start: 14px; background: rgba(77,75,76,.82); }
.abv-ba__label--after  { inset-inline-end: 14px;  background: rgba(180,208,92,.92); }

.abv-ba__handle {
  /* Positioned with physical `left` so it always tracks the clip-path
     boundary, which is also physical. Logical inset-inline-start would
     mirror in RTL and drift away from the split. */
  position: absolute;
  inset-block: 0;
  left: 50%;
  width: 4px;
  background: #fff;
  z-index: 4;
  transform: translateX(-50%);
  pointer-events: none;
}
.abv-ba__grip {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 10px 30px rgba(77,75,76,.12);
  display: grid;
  place-items: center;
  color: #9bbb3f;
  font-weight: 800;
  z-index: 5;
}
.abv-ba__grip svg { width: 22px; height: 22px; display: block; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Reviews carousel ---------- */
.abv-rev { --abv-gap: 24px; }

.abv-rev__badgewrap { text-align: center; margin-bottom: 40px; }
.abv-rev__rating {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  padding: 9px 20px;
  border-radius: 100px;
  box-shadow: 0 4px 14px rgba(77,75,76,.08);
}
.abv-rev__score  { font-weight: 800; font-size: 1.35rem; color: #4D4B4C; }
.abv-rev__rstars { color: #9bbb3f; letter-spacing: 2px; }
.abv-rev__rtext  { color: #6f6d6e; font-size: .9rem; }

.abv-rev__carousel { position: relative; }
/* No scroll-snap: it blocks animated scrollBy() in RTL, breaking the arrows
   and autoplay. Arrow steps already land on item boundaries. */
.abv-rev__track {
  display: flex;
  gap: var(--abv-gap);
  overflow-x: auto;
  padding: 10px 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.abv-rev__track::-webkit-scrollbar { display: none; }

.abv-rev__card {
  flex: 0 0 calc((100% - (var(--abv-gap) * 2)) / 3);
  background: #fff;
  border-radius: 18px;
  padding: 26px 24px;
  box-shadow: 0 4px 14px rgba(77,75,76,.08);
  display: flex;
  flex-direction: column;
}
.abv-rev__head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.abv-rev__avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #B4D05C;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.1rem;
  flex: 0 0 auto;
}
.abv-rev__avatar--img { object-fit: cover; display: block; }
.abv-rev__meta   { min-width: 0; }
.abv-rev__name   { display: block; line-height: 1.2; color: #4D4B4C; }
.abv-rev__source { font-size: .8rem; color: #6f6d6e; }
.abv-rev__g      { width: 18px; height: 18px; margin-inline-start: auto; flex: 0 0 auto; }
.abv-rev__stars  { color: #9bbb3f; letter-spacing: 2px; margin-bottom: 10px; }
.abv-rev__text   { color: #4D4B4C; font-size: .97rem; line-height: 1.6; margin: 0; }

.abv-rev__nav {
  position: absolute;
  inset-block-start: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  box-shadow: 0 10px 30px rgba(77,75,76,.12);
  color: #4D4B4C;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .25s, color .25s;
}
.abv-rev__nav svg { width: 20px; height: 20px; display: block; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.abv-rev__nav--prev { inset-inline-end: -12px; }
.abv-rev__nav--next { inset-inline-start: -12px; }

.abv-rev__cta { text-align: center; margin-top: 36px; }
.abv-rev__btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
  font-family: inherit;
  padding: 14px 30px;
  border-radius: 100px;
  border: 2px solid #4D4B4C;
  color: #4D4B4C;
  text-decoration: none;
  transition: background .25s, color .25s;
}

@media (max-width: 767px) {
  .abv-rev__carousel { padding-bottom: 58px; }
  .abv-rev__nav {
    width: 42px;
    height: 42px;
    inset-block-start: auto;
    inset-block-end: 2px;
    transform: none;
  }
  .abv-rev__nav--prev { inset-inline-end: calc(50% - 48px); inset-inline-start: auto; }
  .abv-rev__nav--next { inset-inline-start: calc(50% - 48px); inset-inline-end: auto; }
}

/* ---------- Video carousel ---------- */
.abv-vc { --abv-vc-gap: 22px; }
.abv-vc__carousel { position: relative; }
.abv-vc__track {
  display: flex;
  gap: var(--abv-vc-gap);
  overflow-x: auto;
  padding: 6px 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.abv-vc__track::-webkit-scrollbar { display: none; }
.abv-vc__item {
  flex: 0 0 calc((100% - (var(--abv-vc-gap) * 2)) / 3);
}
.abv-vc__frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  padding: 0;
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  background-color: #000;
  background-size: cover;
  background-position: center;
  box-shadow: 0 10px 30px rgba(77,75,76,.12);
  transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s;
}
.abv-vc__frame:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(77,75,76,.2); }
.abv-vc__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.abv-vc__play {
  /* Physical top/left: logical inset-inline-start resolves to `right` in RTL,
     which fights translateX(-50%) and pushes the button off centre. */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: rgba(180,208,92,.95);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  transition: transform .3s cubic-bezier(.22,1,.36,1);
}
.abv-vc__frame:hover .abv-vc__play { transform: translate(-50%, -50%) scale(1.08); }
.abv-vc__play svg { width: 30px; height: 30px; fill: #fff; margin-left: 3px; display: block; }
.abv-vc__caption {
  margin-top: 10px;
  font-size: .95rem;
  font-weight: 600;
  color: #4D4B4C;
  text-align: center;
}
.abv-vc__nav {
  position: absolute;
  inset-block-start: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  box-shadow: 0 10px 30px rgba(77,75,76,.12);
  color: #4D4B4C;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .25s, color .25s;
}
.abv-vc__nav svg { width: 20px; height: 20px; display: block; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.abv-vc__nav--prev { inset-inline-end: -14px; }
.abv-vc__nav--next { inset-inline-start: -14px; }

@media (max-width: 767px) {
  .abv-vc__carousel { padding-bottom: 56px; }
  .abv-vc__nav {
    width: 42px; height: 42px;
    inset-block-start: auto; inset-block-end: 2px;
    transform: none;
  }
  .abv-vc__nav--prev { inset-inline-end: calc(50% - 48px); inset-inline-start: auto; }
  .abv-vc__nav--next { inset-inline-start: calc(50% - 48px); inset-inline-end: auto; }
}
