:root {
  --black: #000;
  --light-blue: #2ddef0;
  --white: #fff;
}

#index #wrapper {
  padding: 0;
}

/* TEL & MAIL */
.tel,
.mail {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tel::before,
.mail::before {
  content: "";
  width: 32px;
  height: 32px;
  aspect-ratio: 1/1;
}

.tel::before {
  background: url("../img/smartphone.svg") no-repeat center / 100%;
}

.mail::before {
  background: url("../img/message.svg") no-repeat center / 100%;
}

/* FA SHOPPING BAG */
.fa-shopping-bag {
  width: unset !important;
  display: flex !important;
}

.fa-shopping-bag::before {
  content: "" !important;
  background: url("../img/bag_alt_light.svg") no-repeat center / 100%;
  width: 32px;
  height: 32px;
  aspect-ratio: 1/1;
}

/* HEADER */
#index #header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

body:not(#index) #header {
  padding-bottom: 1rem;
}

.header-top {
  padding: 2.5rem 0 2.1rem;
}

.search-widget .form-search-control {
  background: transparent;
  border: unset;
  border-bottom: 1px solid var(--black);
  padding: 0 0 0.6rem;

  &::placeholder {
    color: var(--black);
  }
}

.search-widget .search-btn {
  display: flex;
  padding: 0 0 0.6rem;

  .fa-search {
    display: none;
  }

  &::before {
    content: "";
    background: url("../img/search_light.svg") no-repeat center / 100%;
    width: 32px;
    height: 32px;
    aspect-ratio: 1/1;
  }
}

.header-contact-info {
  display: flex;

  ul {
    display: flex;
    align-items: center;
    gap: 2rem;
  }

  li a {
    font-size: 1.1rem;
    text-decoration: none !important;
  }
}

.col-header-right > .row {
  gap: 1rem;
}

.col-header-right > .row > * {
  width: 70px;
  height: 70px;
  background: var(--white);
  display: flex;
  border-radius: 100%;
  aspect-ratio: 1/1;
  padding: 0 !important;
  box-shadow: -1px 13px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.2s cubic-bezier(0.7, 0, 0.3, 1);

  & > a {
    width: 100%;
    height: 100%;
    display: flex !important;
    justify-content: center;
    align-items: center;
  }

  .fa::before {
    transition: all 0.2s cubic-bezier(0.7, 0, 0.3, 1);
  }

  &:hover {
    background: var(--light-blue);

    .fa::before {
      filter: brightness(0) saturate(100%) invert(92%) sepia(92%) saturate(0%)
        hue-rotate(245deg) brightness(107%) contrast(106%);
    }
  }
}

.header-top .col-header-right a:not(.btn):not(.nav-link):hover {
  color: var(--white);
}

.fa-user {
  width: unset !important;
  display: flex !important;
}

.fa-user::before {
  content: "" !important;
  background: url("../img/user_circle.svg") no-repeat center / 100%;
  display: flex;
  width: 32px;
  height: 32px;
  aspect-ratio: 1/1;
}

#ps-shoppingcart-wrapper .fa-shopping-bag::before {
  background-image: url("../img/bag.svg");
}

#ps-shoppingcart {
  width: 100%;
  height: 100%;
  padding: 0 !important;
}

.blockcart,
#cart-toogle {
  width: 100%;
  height: 100%;
}

#cart-toogle {
  display: flex !important;
  justify-content: center;
  align-items: center;
}

#header-wishlist-btn .header-user-btn {
  .fa-heart-o {
    width: unset !important;
    display: flex !important;
  }

  .fa-heart-o::before {
    content: "";
    background: url("../img/favorite_duotone.svg") no-repeat center / 100%;
    display: flex;
    width: 32px;
    height: 32px;
    aspect-ratio: 1/1;
  }
}

#language_selector {
  width: unset;
}

.language-selector-wrapper,
.language-selector {
  width: 100%;
  height: 100%;
}

.language-selector {
  display: flex;

  .expand-more {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

.language-selector .lang-flag {
  display: none;
}

/* MENU */
.cbp-hrmenu > ul {
  display: flex;
  gap: 1rem;

  .cbp-hrmenu-tab-1 {
    padding-right: 2rem;
  }
}

.cbp-horizontal .cbp-tab-title {
  font-size: 1rem !important;
}

/* PRODUKTY - KARUZELA */
.products-grid .product-miniature-default .product-description {
  flex-flow: wrap;
}

.product-miniature-default .product-thumbnail img {
  width: 100%;
}

.product-miniature-default .product-description {
  display: flex;
  flex-wrap: wrap;

  .product-price-and-shipping,
  .product-add-cart {
    width: 50%;
    display: flex;
    align-items: center;
    padding: 1rem 0 0.5rem;
  }

  .product-price-and-shipping {
    justify-content: left;
  }

  .product-add-cart {
    justify-content: right;
  }
}

.product-miniature-default .add-to-cart {
  background: var(--light-blue);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.75rem;
  border-radius: 100%;

  .fa-shopping-bag::before {
    width: 20px;
    height: 20px;
  }
}

.swiper-button-prev,
.swiper-button-next {
  background: var(--light-blue) !important;
  padding: 0.5rem;
  border-radius: 100%;
  opacity: 1;
}

.swiper-button-prev {
  left: 1rem;
}

.swiper-button-next {
  right: 1rem;
}

.swiper-button-prev::after,
.swiper-button-next::after {
  content: "";
  width: 48px;
  height: 48px;
}

.swiper-button-prev::after {
  background: url("../img/arrow_alt_left.svg") no-repeat center / 100%;
}

.swiper-button-next::after {
  background: url("../img/arrow_alt_right.svg") no-repeat center / 100%;
}

/* NASZE STATYSTYKI */
.nasze-statystyki .elementor-image-box-description p > b {
  font-size: 1.6rem;
}

/* BANNERY REKLAMOWE */
.bannery-reklamowe .elementor-iqit-banner-title {
  margin-bottom: 1rem;
}

/* NASZE NOWOSCI */
.nasze-nowosci .elementor-social-icons-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: -50px;
  margin-bottom: 40px;

  .elementor-social-icon:first-child,
  .elementor-social-icon:last-child {
    margin-top: -100px;
  }

  .elementor-social-icon:nth-child(3) {
    margin: 80px 120px 0 20px !important;
  }
}

/* NEWSLETTER */
.newsletter-form .elementor-newsletter-form .row > .col-12 {
  display: flex;
  flex-direction: column-reverse;
  align-items: start;
  gap: 1.5rem;
}

.elementor-newsletter .input-wrapper {
  width: 100%;
  overflow: visible;
}

.newsletter-form .form-control {
  color: var(--black);
  border: 1px solid var(--black);
  border-radius: 40px;

  &::placeholder {
    color: var(--black);
  }
}

.newsletter-form .elementor-newsletter-btn {
  border-radius: 60px;
}

/* FOOTER */
#footer .site-name {
  text-align: center;
  padding-bottom: 2.5rem;

  a {
    font-size: 3.2rem;
    font-weight: 600;
    color: var(--white) !important;
    text-decoration: none !important;
    line-height: 1.2;
  }
}

#footer .footer-container {
  padding-bottom: 1.5rem;
}

#footer .footer-container > .container > .row:nth-child(2) {
  padding: 0 3rem;
}

#footer .row #desktop_logo {
  flex: 0;
  padding: 0 6rem 0 0;
}

#footer .block-title {
  margin-bottom: 0;
}

#footer .block-links ul > li a {
  padding-left: 0;
  text-decoration: none !important;

  &:hover {
    color: var(--light-blue);
  }

  &::before {
    display: none;
  }
}

.copyright-txt {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--white);
  padding-top: 2rem;
  border-top: 1px solid var(--white);

  p {
    text-align: center;
    white-space: nowrap;
    margin-bottom: 0;
  }
}

.copyright-txt .footer-socials {
  display: flex;
  align-items: center;
  gap: 1rem;

  li a {
    color: var(--white) !important;
    text-decoration: none !important;
    white-space: nowrap;
  }
}

/* RWD */
@media screen and (max-width: 1440px) {
  html {
    font-size: 18px;
  }

  #footer {
    padding: 0 15px;
  }
}

@media screen and (max-width: 1280px) {
  html {
    font-size: 16px;
  }

  /* HEADER */
  .header-top {
    padding-top: 0;
  }

  #desktop-header-container > .row {
    gap: 2rem;
  }

  .col-header-left {
    order: 2;
  }

  .col-header-center {
    flex: 100%;
    display: flex;
    justify-content: end;
    order: 1;
  }

  .col-header-right {
    order: 3;
  }

  .col-header-right > .row > * {
    width: 60px;
    height: 60px;
  }

  /* BANNERY REKLAMOWE */
  .bannery-reklamowe .elementor-iqit-banner-img img {
    min-height: 340px;
    object-fit: cover;
  }

  /* NASZE NOWOSCI */
  .nasze-nowosci .elementor-social-icons-wrapper {
    margin-top: 1rem;
  }

  .elementor-element.elementor-element-nelwuak .elementor-social-icon:not(:last-child) {
    margin-right: 60px !important;
  }

  .nasze-nowosci .elementor-social-icons-wrapper {
    .elementor-social-icon:first-child,
    .elementor-social-icon:last-child {
      margin-top: 0;
    }

    .elementor-social-icon:nth-child(3) {
      margin: 0 !important;
      margin-right: 60px !important;
    }
  }
}

@media screen and (max-width: 1024px) {
  /* HEADER */
  #mobile-header {
    border: unset;

    .fa-shopping-bag::before {
      filter: brightness(0) saturate(100%);
    }
  }

  .col-mobile-logo img {
    max-width: 120px;
  }

  /* BANNER HOME */
  .banner-home .elementor-iqit-banner-img > img {
    min-height: 800px;
    object-fit: cover;
  }

  /* NASZE STATYSTYKI */
  .nasze-statystyki > .elementor-container > .elementor-row {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 1rem;
  }

  .nasze-statystyki .elementor-column.elementor-col-20 {
    width: usnet;
    flex: 0 0 30%;

    .elementor-widget-wrap {
      display: flex;
      justify-content: center;
    }

    img {
      min-width: 48px;
    }
  }

  /* NASZE NOWOSCI */
  .elementor-element-un437in > .elementor-container > .elementor-row {
    flex-direction: column;

    .elementor-column {
      width: 100%;

      p {
        text-align: center;
      }
    }
  }

  /* FOOTER */
  #footer .footer-container > .container > .row:nth-child(2) {
    padding: 0 1.5rem;
  }

  #footer #desktop_logo {
    padding: 0 3rem 0 0 !important;
  }

  #footer #desktop_logo img {
    max-width: 140px;
  }

  .copyright-txt > * {
    flex: 0 1 30%;
  }

  .copyright-txt > *:last-child {
    flex: 100%;
    text-align: center;
  }
}

@media screen and (max-width: 991px) {
  #mobile-header {
    .fa::before {
      width: 40px !important;
      height: 40px !important;
    }

    .m-nav-btn {
      .fa-search {
        width: unset !important;
        display: flex !important;
      }

      .fa-search::before {
        content: "" !important;
        background: url("../img/search_light.svg") no-repeat center / 100%;
        display: flex;
        width: 32px;
        height: 32px;
        aspect-ratio: 1/1;
      }
    }

    .fa-bars {
      width: unset !important;
      display: flex !important;
    }

    .fa-bars::before {
      content: "" !important;
      background: url("../img/hamburger.svg") no-repeat center / 100%;
      display: flex;
      width: 32px;
      height: 32px;
      aspect-ratio: 1/1;
    }
  }

  .mobile-menu__column {
    font-size: 1rem;
  }

  .mobile-menu__tab--id-1 {
    display: none !important;
  }
}

@media screen and (max-width: 834px) {
  /* BANNER HOME */
  .banner-home .elementor-iqit-banner-img > img {
    min-height: 600px;
  }

  /* NASZE NOWOSCI */
  .elementor-element.elementor-element-xxu4uz7 .elementor-image img {
    max-width: 70% !important;
  }

  .nasze-nowosci .elementor-social-icons-wrapper {
    margin-top: 3rem;
  }

  /* NEWSLETTER */
  .newsletter-banner {
    padding: 2rem 0 !important;

    .elementor-row {
      flex-direction: column;
      align-items: center;
      gap: 5rem;

      .elementor-element.elementor-element-9j1d9kc > .elementor-element-populated {
        padding: 0;
      }

      .elementor-image-box-description p br {
        content: "";
        display: none;
      }

      .elementor-text-editor {
        text-align: center;
      }

      .newsletter-form {
        text-align: center;
      }

      .elementor-newsletter-btn {
        width: 100%;
      }
    }
  }
}

@media screen and (max-width: 768px) {
  /* BANNERY REKLAMOWE */
  .bannery-reklamowe > .elementor-container > .elementor-row {
    row-gap: 1.25rem;
  }

  .bannery-reklamowe .elementor-iqit-banner-img img {
    min-height: 300px;
    object-fit: cover;
  }

  /* NASZE NOWOSCI */
  .nasze-nowosci > .elementor-container > .elementor-row {
    padding: 0 0.75rem;
  }

  .elementor-element.elementor-element-nelwuak .elementor-social-icon:not(:last-child) {
    margin-right: 30px !important;
  }

  .elementor-element.elementor-element-nelwuak .elementor-social-icon {
    padding: 0.6rem !important;
  }

  /* NEWSLETTER */
  .newsletter-banner .elementor-column {
    width: 80%;
  }

  .newsletter-form > form {
    max-width: 100% !important;
  }

  /* FOOTER */
  #footer .site-name a {
    font-size: 2rem;
  }

  #footer .row #desktop_logo {
    flex: 100%;
    display: flex;
    justify-content: center;
    padding: 0 0 2rem !important;
  }

  #footer #desktop_logo img {
    max-width: 190px;
  }

  .copyright-txt {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
}

@media screen and (max-width: 480px) {
  html {
    font-size: 14px;
  }

  /* HEADER */
  .col-mobile-logo img {
    max-width: 80px;
  }

  /* NASZE STATYSTYKI */
  .nasze-statystyki > .elementor-container > .elementor-row {
    gap: 2rem;
  }

  /* PRODUKTY - KARUZELA */
  .swiper-button-prev {
    left: 0.5rem;
  }

  .swiper-button-next {
    right: 0.5rem;
  }

  .swiper-button-prev::after,
  .swiper-button-next::after {
    width: 32px;
    height: 32px;
  }

  /* FOOTER */
  #footer .site-name {
    font-size: 2rem;
  }

  #footer .row #desktop_logo {
    padding: 0 0 3rem !important;
  }

  #footer .row > .block-iqitlinksmanager {
    flex: 50%;
    text-align: center;
  }
}
