/* Base reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  width: 100%;
  margin: 0;
  padding: 0;
  font-family: var(--ak-font-ui);
  color: var(--ak-text-black);
  background: var(--ak-bg);
  display: flex;
  flex-direction: column;
}

html,
body {
  height: 100%;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

form,
button,
input,
select,
textarea {
  font: inherit;
  margin-bottom: 0px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-family: var(--ak-font-ui);
  font-weight: 600;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  /*outline: 2px solid #7cff79 !important;*/
  outline: none;
  outline-offset: none;
  box-shadow: none;
  /*box-shadow: 0 0 0 3px rgba(124, 255, 121, 0.25);*/
}
button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover,
.button:hover,
.widget a.button:hover {
  background-color: transparent;
  /* border-color: #d5d5d5; */
}

input#user_login.woocommerce-Input.woocommerce-Input--text.input-text {
  background-color: white;
}

button.woocommerce-Button.button {
  width: 100%;
  max-width: 180px;
  min-width: 160px;
  height: 58px;
  background-color: #009846;
  border-radius: 10px;
  display: flex;
  align-items: center;
  color: #ffffff;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 20px;
  transition:
    transform 0.08s ease,
    border-color 0.15s ease,
    background 0.15s ease;
}

@supports (scrollbar-gutter: stable) {
  html {
    scrollbar-gutter: stable;
  } /* ще краще: стабільна “гутер”-зона */
}
#page,
.site {
  flex: 1 0 auto;
}
.site {
  overflow-x: hidden;
  overflow-y: visible;
}
#page {
  overflow: visible;
}

footer.footer {
  margin: 0 auto;
  padding: 0;
  /* position: sticky; */
  bottom: 0;
  right: auto;
}
/* .site-main {
  padding: 0 20px;
} */

.col-full {
  margin-left: 0px;
  margin-right: 0px;
  padding: 0;
  max-width: 100%;
  margin: 0 auto;
}
.ak-container {
  max-width: 1920px;
  margin: 0 auto;
}

/* Точково під дизайн */
.ak-shop__title {
  font-family: var(--ak-font-ui);
}

.ak-cat-chip__text {
  font-family: var(--ak-font-ui);
  font-weight: 600;
}

.ak-badge {
  font-family: var(--ak-font-badge);
  font-weight: 500;
}

/* Storefront wrapper: не фіксуй висоту для кастомного хедера */
#masthead.site-header {
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

/* інколи Storefront дає псевдоелементи/лінії */
#masthead.site-header:before,
#masthead.site-header:after {
  display: none !important;
}

/* якщо є внутрішній контейнер Storefront - прибираємо обмеження */
#masthead.site-header .col-full {
  padding: 0 !important;
  margin: 0 auto !important;
  width: 100%;
  max-width: none !important;
}
/* головний контент */

.site-content::after {
  content: "";
  display: block;
  clear: both;
}

/* .main-section {
  flex-direction: column;
  gap: 10px;
  padding: 36px 20px 0px 20px;
} */
.storefront-full-width-content .content-area {
  min-height: 60vh;
}

.ak-container_popular {
  max-width: 1920px;
  margin: 0 auto;
  padding: 0px;
}

.woocommerce-MyAccount-content p a {
  text-decoration: none !important;
  color: var(--ak-green);
}

.woocommerce-account .edit-link,
.woocommerce-account .post-edit-link {
  display: none !important;
}

/*-------------------------------------------кнопка Ховер-------------------------------------------*/

.ak-card__cta .button,
.catalog-button,
.tech-journal__load-more,
.ak-btn--primary,
.ak-btn--secondary,
.ak-cart-modal__btn,
.ak-wishlist-drawer__btn,
button.woocommerce-Button.button {
  position: relative;
  overflow: hidden;
  transition:
    background-color 0.2s ease,
    transform 0.12s ease;
}

.ak-card__cta .button::after,
.catalog-button::after,
.tech-journal__load-more::after,
.ak-btn--primary::after,
.ak-btn--secondary::after,
.ak-cart-modal__btn::after,
.ak-wishlist-drawer__btn::after,
button.woocommerce-Button.button::after {
  content: "";
  display: block;
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  right: -189px;
  top: -42px;
  background-color: var(--ak-green-dark);
  opacity: 0.35;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.25s ease;
}

/* .ak-card__cta .button:hover,
.ak-card__cta .button:focus-visible {
  background: var(--ak-green-hover);
} */

.ak-card__cta .button:hover::after,
.ak-card__cta .button:focus-visible::after,
.catalog-button:hover::after,
.tech-journal__load-more:hover::after,
.tech-journal__load-more:focus-visible::after,
.ak-btn--primary:hover::after,
.ak-btn--primary:focus-visible::after,
.ak-btn--secondary:hover::after,
.ak-btn--secondary:focus-visible::after,
.ak-cart-modal__btn:hover::after,
.ak-cart-modal__btn:focus-visible::after,
.ak-wishlist-drawer__btn:hover::after,
.ak-wishlist-drawer__btn:focus-visible::after,
button.woocommerce-Button.button:hover::after,
button.woocommerce-Button.button:focus-visible::after {
  opacity: 0.55;
  transform: translate3d(-159px, 10px, 0);
  right: -189px;
  top: -42px;
}

.ak-card__cta .button:active,
.tech-journal__load-more:active,
.ak-btn--primary:active,
.ak-btn--secondary:active,
.ak-cart-modal__btn:active,
.ak-wishlist-drawer__btn:active,
button.woocommerce-Button.button:active {
  transform: translateY(1px);
  opacity: 1;
}

a.add_to_cart_button.added,
a.add_to_cart_button.added:hover,
a.add_to_cart_button.added:active {
  background: var(--ak-green);
  color: #fff;
  opacity: 1;
}

/*--------------------------------------------------------------------------------------------------------------*/
/* Hide "View cart" link after add to cart (shop loop) */
.woocommerce ul.products li.product a.added_to_cart.wc-forward,
.woocommerce ul.products li.product a.added_to_cart {
  display: none !important;
}
@media screen and (max-width: 426px) {
  .ak-card__cta::after {
    width: 120px;
    height: 120px;
    right: -70px;
    top: -35px;
  }
}

/*-------------------------------------------a посилання кнопка Ховер-------------------------------------------*/

a.cta-btn,
a.hero-btn,
a.phone-btn-large,
a.home-tech-journal__btn,
a.product_type_simple {
  position: relative;
  overflow: hidden;
  transition:
    background-color 0.2s ease,
    transform 0.12s ease;
}

a.cta-btn::after,
a.hero-btn::after,
a.phone-btn-large::after,
a.home-tech-journal__btn::after,
a.product_type_simple::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  right: -189px;
  top: -42px;
  background: var(--ak-green-dark);
  opacity: 0.35;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.25s ease;
}

/* a.cta-btn:hover,
a.cta-btn:focus-visible {
  background: var(--ak-green);
} */

a.cta-btn:hover::after,
a.cta-btn:focus-visible::after,
a.hero-btn:hover::after,
a.hero-btn:hover::after,
a.phone-btn-large:hover::after,
a.phone-btn-large:focus-visible::after,
a.home-tech-journal__btn:hover::after,
a.home-tech-journal__btn:focus-visible::after,
a.product_type_simple:hover::after,
a.product_type_simple:focus-visible::after {
  opacity: 0.55;
  transform: translate3d(-150px, 5px, 0);
  display: block;
  right: -189px;
  top: -42px;
}

a.cta-btn:active,
a.hero-btn:active,
a.product_type_simple:active {
  transform: translateY(1px);
}

@media screen and (max-width: 768px) {
  a.cta-btn::after {
    content: "";
    position: absolute;
    width: 250px;
    height: 250px;

    right: -250px;
    top: -42px;
  }
  a.cta-btn:hover::after,
  a.cta-btn:focus-visible::after {
    opacity: 0.55;
    transform: translate3d(-200px, 5px, 0);
    display: block;
    right: -250px;
    top: -42px;
  }
}

/*----------------------------------- скролл доріжка --------------------------------------------------------*/
.scrollbox {
  overflow-y: auto; /* вертикальний скрол */
  overflow-x: hidden;
}
.scrollbox::-webkit-scrollbar {
  width: 4px; /* ширина вертикального скролу */
  height: 4px; /* висота горизонтального */
}

.scrollbox::-webkit-scrollbar-track {
  background: #f2f2f2; /* бекграунд доріжки */
  border-radius: 12px;
}
.scrollbox::-webkit-scrollbar-thumb {
  background-color: #009846; /* колір бігунка */
  border-radius: 12px;
  min-height: 40px; /* мін. висота бігунка */
}
.scrollbox::-webkit-scrollbar-thumb:hover {
  background-color: #007a38;
}
.scrollbox::-webkit-scrollbar-button {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}
.scrollbox {
  /*padding-right: 10px; /* відсунути контент від скролу */
  /* margin-right: -20px; */
  box-sizing: border-box;
}
/* .scrollbox {
  scrollbar-gutter: stable;
} */
.scrollbox {
  scrollbar-width: thin; /* auto | thin | none */
  scrollbar-color: #009846 #f2f2f2; /* thumb track */
}

/*-------------------------------------------------------------------------------------------*/

/* Storefront FIX: disable float layout on desktop */
@media (min-width: 768px) {
  .storefront-full-width-content .content-area {
    float: none !important;
  }
}
