/* wrapper */
.ak-swiper-scrollbar {
  display: none;
}

.ak-home-tabs {
  padding: 48px 0px;

  margin: 0 auto;
}

/* header */
.ak-home-tabs__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

/* tabs */
.ak-home-tabs__tabs {
  display: flex;
  gap: 24px;
  padding: 0 20px;
}

.ak-home-tabs__tab {
  border: 0;
  background: transparent;
  padding: 0 0 13px 0;
  cursor: pointer;
  font-size: 36px;
  font-weight: 600;
  font-size: clamp(20px, 2vw, 32px);
  line-height: 1.1;
  color: #ccc;
  position: relative;
  border: 4px solid transparent;
}

.ak-home-tabs__tabs :hover {
  color: var(--ak-green);
  border: 4px solid transparent;
}
.ak-home-tabs__tab.is-active {
  color: var(--ak-text-black);
  border-bottom: 4px solid var(--ak-green);
}

.ak-home-tabs__tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background: #0a8f3a;
}

/* panes */
.ak-home-tabs__pane[hidden] {
  display: none !important;
}

/* прибрати дубль-хедер/футер всередині кожного слайдера (бо хедер вже зверху як на фото) */
.ak-home-tabs .ak-product-slider__head,
.ak-home-tabs .ak-product-slider__footer {
  display: none !important;
}

/* Section --------------------------------------------------------------------------------------------------------------------------*/
/* =========================================================
   Swiper NAV buttons (prev/next) — Autokeys style
   Works for: .ak-product-slider and .ak-home-tabs
========================================================= */

/* контейнер навігації */
.ak-product-slider__nav,
.ak-home-tabs__nav {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-right: 20px;
}

/* кнопки */
.ak-swiper-btn {
  width: 44px;
  height: 44px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 0 !important;
  border-radius: 12px;

  background: #111 !important;
  color: #fff !important;

  cursor: pointer;
  transition:
    transform 0.12s ease,
    opacity 0.12s ease,
    background-color 0.12s ease;
  box-shadow: none !important;
  padding: 0 !important;
  line-height: 0;
}

/* іконка */
.ak-swiper-btn svg {
  width: 20px;
  height: 20px;
  display: block;
}

/* hover/active */
.ak-swiper-btn:hover {
  background: #000 !important;
  transform: translateY(-1px);
}
.ak-swiper-btn:active {
  transform: translateY(0);
  opacity: 0.92;
}

/* disabled */
.ak-swiper-btn:disabled,
.ak-tabs-swiper--locked .ak-swiper-btn {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

/* full width slider area, header stays container-width */
.ak-home-tabs--full .ak-home-tabs__panes {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* щоб не було горизонтального скролу через 100vw + scrollbar */
/* html,
body {
  overflow-x: hidden;
} */
/* трошки повітря зверху/знизу (підженеш під макет) */
.ak-home-tabs--full .ak-home-tabs__panes {
  padding: 10px; /* якщо хочеш легкі поля з боків то падiнг додати */
}
/* =========================================================
   Position like in Figma (right side of section head)
========================================================= */
.ak-product-slider__head,
.ak-home-tabs__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 0px;
}

/* На всяк випадок: якщо у тебе заголовок з табами зліва */
.ak-home-tabs__tabs {
  display: flex;
  gap: 24px;
  align-items: flex-end;
}
.wishlist-title {
  display: none;
}

.yith-wcwl-add-to-wishlist-button__label {
  display: none;
}
.yith-add-to-wishlist-button-block {
  display: flex;
  align-items: center;
  justify-content: right;
  position: absolute;
  width: max-content;
  margin: 7px auto;
  right: 25px;
}

.yith-wcwl-add-to-wishlist-button:is(button) {
  flex-direction: row;
  gap: 5px;
  padding: 6px 10px;
  font-size: 0.9rem;
  background: transparent;
}
.yith-wcwl-add-to-wishlist-button svg,
.yith-wcwl-add-to-wishlist-button img.yith-wcwl-custom-icon {
  width: 23px;
  height: 23px;
  margin-bottom: 0px !important;
}

.ak-card {
  position: relative;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.ak-card__badges {
  position: absolute;
  top: 36px;
  left: 36px;
  z-index: 2;
}
.ak-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  border-radius: var(--ak-radius-sm);
  font-size: 13px;
  font-weight: 500;
  line-height: normal;
  color: var(--ak-text-white);
  background: var(--ak-green);
}
.ak-badge--analog {
  background: var(--ak-black);
}

.ak-card__media {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  background: #f6f6f6;
  text-align: center;
}
.ak-card__media img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  margin-bottom: 0px !important;
  max-height: 251px;
  object-fit: cover;
}

.ak-card {
  margin-right: 21px;
  margin-bottom: 0px !important;
}

.ak-card__row--top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  font-size: 13px;
  margin-bottom: 17px;
  padding-top: 21px;
}

.ak-stock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  font-size: 13px;
  line-height: 1;
  color: var(--ak-green-dark);
  align-items: center;
  border-radius: 999px;
}
.ak-stock--in {
  background-color: var(--ak-status-yes);
}
.ak-stock--out {
  background-color: var(--ak-status-no);
  color: var(--ak-text-cod-lightgrey);
}
.ak-stock--order {
  background-color: var(--ak-status-order);
}
.ak-stock__dot {
  width: 5.6px;
  height: 5.6px;
  border-radius: 50%;
  flex: 0 0 5.6px;
}
.ak-stock--in .ak-stock__dot {
  background: var(--ak-green);
}
.ak-stock--order .ak-stock__dot {
  background: #e87e06; /* як у фігмі */
}
.ak-stock--out .ak-stock__dot {
  display: none;
}

.ak-sku {
  color: var(--ak-text-cod-lightgrey);
}

.ak-card__title {
  display: -webkit-box;
  font-family: var(--ak-font-ui);
  font-size: 18px;
  line-height: 120%;
  font-weight: 500;
  text-decoration: none;
  text-align: left;
  color: var(--ak-text-black);
  min-height: 55px;
  margin-bottom: 18px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: calc(1.2em * 3);
  white-space: normal;
  word-break: break-word;
}

.ak-card__price {
  display: flex;
  align-items: baseline;
  margin-bottom: 22px;
  font-size: 15px;
  font-weight: 500;
}
.ak-card__price del {
  color: #9b9b9b;
  order: 2;
}
.ak-card__price ins {
  text-decoration: none;
  margin-right: 10px;
  order: 1;
}
/*-------------------------------------------кнопка -------------------------------------------*/
.ak-card__cta .button {
  width: 100%;
  border-radius: var(--ak-radius-lg);
  background: var(--ak-green);
  border: 0;
  color: var(--ak-text-white);
  padding: 20px;
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
}

.ak-card__bottom {
  margin-top: auto; /* магія притискання вниз */
  gap: 12px; /* підлаштуєш під Figma */
}
/* Hide "View cart" link after add to cart (shop loop) */
a.added_to_cart.wc-forward {
  display: none !important;
}

.button.product_type_simple.add_to_cart_button.ajax_add_to_cart.added,
.button.product_type_simple.add_to_cart_button.ajax_add_to_cart.loading {
  background: var(--ak-green) !important;
  color: var(--ak-text-white) !important;
  opacity: 1 !important;
  filter: none !important;
}

/*-------------------------------------------попап-------------------------------------------*/
.ak-toast {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 99999;

  padding: 12px 14px;
  border-radius: 12px;

  background: rgba(16, 16, 16, 0.92);
  color: #fff;
  font-size: 14px;
  font-weight: 600;

  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;

  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.ak-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* сама кнопка */
.ak-swiper-btn {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: #111;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;

  transition:
    transform 0.15s ease,
    background-color 0.15s ease,
    opacity 0.15s ease;
}

.ak-swiper-btn svg {
  width: 20px;
  height: 20px;
  display: block;
}

.ak-swiper-btn:hover {
  transform: translateY(-1px);
}

.ak-swiper-btn:active {
  transform: translateY(0);
}

/* disabled (коли не можна гортати) */
.ak-swiper-btn.swiper-button-disabled {
  background: #7b7b7b;
  opacity: 1;
  cursor: default;
}

/* фокус з клави */
.ak-swiper-btn:focus-visible {
  outline: 2px solid var(--ak-green);
  outline-offset: 2px;
}

/* якщо свайпер "locked" (мало товарів) — ховаємо стрілки */
.ak-swiper--locked .ak-product-slider__nav {
  display: none;
}
.ak-product-slider__footerbtn {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.ak-product-slider__all {
  width: 212px;
  height: 65px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  border: 1px solid #000;
  background: #f0f0f0;
  color: #101010;
  text-align: center;
  font-family:
    "Inter Tight",
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    Arial,
    sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: normal;
  text-decoration: none;
  transition:
    transform 0.15s ease,
    background-color 0.15s ease;
}

.ak-product-slider__all:hover {
  background: var(--ak-green);
  color: white;
  transform: translateY(-1px);
}

.ak-product-slider__all:active {
  transform: translateY(0);
}
.ak-product-slider__head {
  margin-bottom: 40px;
}

.ak-product-slider__title {
  font-weight: 600;
  font-size: 40px;
  line-height: 1.1;
  color: var(--ak-text-black);
}
.ak-product-slider--single-parts-9 {
  margin-bottom: 120px;
}
.ak-product-swiper {
  margin-bottom: 120px;
}
/* .ak-product-swiper .swiper-horizontal {
  margin-bottom: 0px;
} */

.swiper.ak-product-swiper[data-ak-swiper="home-popular"],
.swiper.ak-product-swiper[data-ak-swiper="home-sale"] {
  margin-bottom: 0px;
  padding-bottom: 8px;
}
@media screen and (max-width: 1471px) {
  .ak-product-slider__head {
    margin-bottom: 30px;
  }
  .ak-product-slider__title {
    font-size: 34px;
  }
  .ak-product-swiper {
    margin-bottom: 145px;
  }

  .ak-home-tabs__tabs {
    font-size: 34px;
  }

  .single-product .ak-product-summary p.price {
    margin: 0px !important;
  }
  .yith-add-to-wishlist-button-block {
    right: 10px;
    top: auto;
  }
  .ak-card__badges {
    top: 14px;
    left: 14px;
  }
  .ak-card__cta .button {
    padding: 14px;
    padding: 14px;
  }
  .ak-badge {
    padding: 8px 9px;
    font-size: 10px;
  }

  .ak-card__row--top {
    font-size: 10px;
    margin-bottom: 15px;
    padding-top: 21px;
  }
  .ak-stock {
    font-size: 10px;
  }

  .ak-card__title {
    font-size: 14px;
    min-height: 42px;
    margin-bottom: 15px;
  }
}

@media (max-width: 1370px) {
    .ak-card__media img {
        max-height: none;
    }
}

@media screen and (max-width: 1025px) {
  .ak-home-tabs__tabs {
    font-size: 28px;
  }
  .ak-product-swiper {
    margin-bottom: 160px;
  }
  .yith-add-to-wishlist-button-block {
    right: 15px;
    top: 22px;
  }
  .ak-card {
    max-width: 315px;
    padding: 15px;
  }

  .ak-card__cta .button {
    border-radius: var(--ak-radius-md);
    padding: 22px;
    font-size: 14px;
  }
  .ak-card__row--top {
    margin-bottom: 18px;
  }

  .ak-card__media img {
    max-height: 213px;
  }
  .ak-card__badges {
    top: 30px;
    left: 30px;
  }

  .ak-badge {
    padding: 8px 16px;
    font-size: 14px;
  }
  .ak-stock {
    font-size: 14px;
  }
  .ak-home-tabs__tab.is-active {
    font-size: 28px;
  }
  .ak-home-tabs__tab {
    font-size: 28px;
  }
}
@media screen and (max-width: 769px) {
  .ak-product-slider__head {
    margin-bottom: 25px;
  }
  .ak-product-slider__title {
    font-size: 24px;
  }
  .ak-badge {
    padding: 7px 7px;
    font-size: 8px;
  }
  .ak-card__badges {
    top: 16px;
    left: 16px;
  }
  .ak-badge {
    padding: 6px 6px;
    font-size: 7px;
  }
  .ak-card__badges {
    top: 12px;
    left: 16px;
  }
  .ak-home-tabs__tab.is-active {
    font-size: 22px;
    margin-bottom: 0px;
  }
  .ak-home-tabs__tab {
    font-size: 22px;
    padding-bottom: 3px;
  }
  .yith-add-to-wishlist-button-block {
    right: 12px;
    top: 4px;
  }

  .ak-stock {
    font-size: 10px;
  }
}
@media screen and (max-width: 426px) {
  .ak-product-swiper {
    margin-bottom: 140px;
  }
  .ak-home-tabs__nav {
    display: none !important;
  }
  .ak-home-tabs__head {
    padding: 0px;
  }
  .ak-product-slider__all {
    width: 152px;
    height: 55px;
  }
  .ak-swiper-scrollbar {
    display: block;
  }
  .ak-home-tabs__tab.is-active {
    font-size: 20px;
    margin-bottom: 0px;
  }
  .ak-home-tabs__tab {
    font-size: 20px;
    padding-bottom: 5px;
    margin-bottom: 0px;
  }
  .ak-home-tabs--full .ak-home-tabs__panes {
    padding: 0px;
  }
  /* scrollbar line (як у Figma) */
  .ak-swiper-scrollbar {
    height: 4px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.12);
    margin-top: 16px;
  }

  .ak-swiper-scrollbar .swiper-scrollbar-drag {
    background: var(--ak-green);
    border-radius: 999px;
  }

  .yith-add-to-wishlist-button-block {
    right: 11px;
    top: auto;
    bottom: 13px;
  }
  .yith-wcwl-add-to-wishlist-button svg,
  .yith-wcwl-add-to-wishlist-button img.yith-wcwl-custom-icon {
    width: 18px;
    height: 18px;
  }
  .ak-card {
    padding: 10px !important;
    margin-bottom: 23px;
    max-width: none;
    /* width: 180px !important; */
  }

  .ak-card__media img {
    max-height: 114px;
  }
  .ak-card__badges {
    top: 20px;
    left: 20px;
  }
  .ak-sku {
    font-size: 8px;
  }

  .ak-badge {
    padding: 6px 6px;
    font-size: 7px;
  }
  .ak-card__badges {
    top: 12px;
    left: 16px;
    z-index: 0;
  }

  .ak-card__cta {
    width: 75%;
  }
  .ak-card__title {
    font-size: 10px;
  }
  .ak-card__row--top {
    gap: 5px;
    margin-bottom: 10px;
  }
  .ak-stock {
    font-size: 8px;
  }
  .ak-card__price {
    font-size: 12px;
    margin-bottom: 10px;
  }
  .ak-card__cta .button {
    border-radius: var(--ak-radius-sm);
    padding: 11px;
    font-size: 12px;
  }
  .ak-product-swiper ul.products {
    margin: 0 !important;
    padding: 0 !important;
    margin-bottom: 23px !important;
  }
  .home-popular_container {
    padding: 31px 10px;
  }

  .popular-card--image img {
    height: 100%;
    width: auto;
  }
  .ak-home-tabs__tabs {
    padding: 0 10px;
    gap: 15px;
  }
  .ak-product-slider__nav,
  .ak-home-tabs__nav {
    padding-right: 0px;
  }
}
@media screen and (max-width: 376px) {
  .ak-card {
    /* width: 165px !important; */
  }
}

/* .ak-product-slider {
  padding: 48px 0;
} */

/* Head */
/* .ak-product-slider__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

 */

/* Nav buttons (як на макеті: чорні квадратні) */
/* .ak-product-slider__nav {
  display: flex;
  gap: 10px;
}

.ak-swiper-btn {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: #111;
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: opacity .15s, transform .15s;
}

.ak-swiper-btn svg {
  width: 18px;
  height: 18px;
}

.ak-swiper-btn:active {
  transform: scale(0.98);
} */

/* Disabled state when мало слайдів */
/* .ak-product-slider.ak-swiper--locked .ak-swiper-btn {
  opacity: 0.35;
  pointer-events: none;
} */

/* Swiper base */
/* .ak-product-swiper {
  overflow: hidden;
} */

/* Важливо: прибираємо woo float/width */
/* .ak-product-swiper ul.products.swiper-wrapper { */
/* margin: 0;
  padding: 0;
  list-style: none;
} */

/* .ak-product-swiper li.product.swiper-slide {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  height: auto;
} */

/* Якщо треба, щоб картка тягнулась по висоті */
/* .ak-product-swiper li.product.swiper-slide > * {
  height: 100%;
} */

/* Footer button */
/* .ak-product-slider__footer {
  display: flex;
  justify-content: center;
  margin-top: 22px;
} */
/* 
.ak-product-slider__all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid #1a1a1a;
  background: transparent;
  color: #111;
  text-decoration: none;
  font-weight: 500;
} */
