#homepage {
  width: 100%;
  overflow-x: hidden;
}

/* HERO */
.hero {
  padding: 2.5% 0;
  width: 100%;
}

.hero-description {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 5% 0 0;
  align-items: flex-start;
}

.hero-description h1 {
  width: 100%;
  margin-bottom: 20px;
}

.hero-description p {
  width: 100%;
  color: #555;
}

.hero-description a {
  text-decoration: none;
  width: 40%;
}

.hero-description button {
  background: #000;
  color: #fff;
  text-decoration: none;
  border: none;
  padding: 10px 20px;
}

.hero-product-images {
  display: flex;
  min-height: 500px;
}
.hero-product-images > div {
  display: flex;
  width: 100%;
  overflow: hidden;
}

.hero-product-images .random-products-row {
  display: flex;
  width: 100%;
  overflow: hidden;
}

.hero-product-images .random-products-row > div:first-child {
  display: flex;
  width: 100%;
  padding-right: 20px;
  overflow: hidden;
}

.hero-product-images .random-products-row .product-card {
  display: flex;
  height: 100%;
  width: 100%;
}

.hero-product-images .random-products-row .product-card a {
  display: flex;
  height: 100%;
  width: 100%;
  justify-content: center;
  align-items: center;
}

.hero-product-images .random-products-row .product-card img {
  width: 100%;
  object-fit: cover;
}

/* MOST POPULAR CATEGORIES */
.most-popular-categories {
  padding: 60px 0;
  text-align: center;
}

.most-popular-categories h2 {
  margin-bottom: 40px;
}

.specrow {
  display: flex;
  justify-content: center;
  overflow: visible;
}

.specrow img {
  max-width: 100%;
  height: auto;
}

section.hero .specrow img {
  width: 100%;
}

.show-more img {
  width: 100%;
  position: absolute;
  top: 0;
  z-index: 0;
  height: 100%;
  object-fit: cover;
	filter: grayscale(1);
}

.show-more a {
  z-index: 1;
}

#root .show-more a button {
  letter-spacing: 3px;
  padding: 2rem 1.8rem 2rem 2rem;
  width: fit-content;
  text-transform: uppercase;
  font-weight: 600;
  border: 0;
  font-family: "IBM Plex Sans";
	letter-spacing: 1px;
}

/* PRODUCT CAROUSEL */
.product-carousel {
  background: #000;
  padding: 60px 0;
  color: #fff;
}

.carousel {
  display: flex;
  overflow-x: auto;
  padding: 20px 0;
}

/* DYNAMIC CATEGORY SECTION */
section:nth-of-type(4) {
  padding: 60px 0;
  text-align: center;
}

section:nth-of-type(4) h2 {
  margin-bottom: 20px;
  font-size: 28px;
}

section:nth-of-type(4) spec {
  color: #cc9999;
  font-weight: bold;
}

.show-more {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  position: relative;
  min-height: 350px;
  width: 40%;
}

.products {
  display: flex;
  flex-wrap: wrap;
  width: 60%;
}

.products .product-card img {
  width: 100%;
  height: 350px;
  object-fit: cover;
}

.products .random-products-row {
  gap: 3.2rem;
  display: flex;
}

#root .products a {
  text-decoration: none;
}

/* SIGN UP BANNER */
.sign-up-banner {
  background: #c68879;
  padding: 0;
}

.sign-up-banner h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

.sign-up-banner p {
  font-size: 14px;
}

/* EMAIL SUBSCRIBE */
.email-subscribe-email {
  background: #000;
  color: #fff;
  padding: 60px 0;
}

.email-subscribe-email h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

.email-subscribe-email p {
  font-size: 14px;
}

/* === product-carousel Sekcja z karuzelą === */
.product-carousel.black-background {
  background-color: #000;
  padding: 80px 20px;
  position: relative;
  overflow: hidden;
}

.product-carousel .raw {
  max-width: 1400px;
  margin: 0 auto;
}

.carousel.swiper {
  position: relative;
  width: 100%;
}

.swiper-wrapper {
  display: flex;
  align-items: stretch;
}

/* === Pojedynczy slajd === */
.swiper-slide {
  width: auto;
  max-width: 50%;
  flex: 1 1 50%;
  padding: 0;
  box-sizing: border-box;
}

.popular-product-card {
  position: relative;
  text-align: left;
  color: #fff;
}

.popular-product-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/* === Informacje o produkcie === */
.product-info {
  padding: 20px 10px 0;
}

.product-title {
  font-size: 14px;
  font-weight: 500;
  margin: 10px 0 4px;
  text-transform: uppercase;
  color: #fff;
}

.product-price {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.product-price del {
  text-decoration: none;
  color: red;
}

.product-price del span {
  text-decoration: line-through;
}

/* === Strzałki Swipera === */
.swiper-button-prev,
.swiper-button-next {
  position: absolute;
  top: 50%;
  z-index: 10;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  background-color: #fff;
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
  transition: background 0.3s ease;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
  background-color: #ddd;
}

.swiper-button-prev {
  left: 20px;
}

.swiper-button-next {
  right: 20px;
}

.hero-description p {
  padding-top: 1rem;
  padding-bottom: 5rem;
  margin: 0;
}

section.most-popular-categories .specrow {
  flex-direction: column;
}

section.most-popular-categories .col-2 {
  width: 100%;
}



/* === Responsywność === */
@media (max-width: 1024px) {
  .swiper-slide {
    max-width: 100%;
    flex: 1 1 100%;
    padding: 0 10px;
  }

  .swiper-button-prev,
  .swiper-button-next {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
}

/* most-popular-categories section */

.most-popular-categories {
  padding: 60px 20px;
  background-color: #f9f9f9; /* możesz zmienić lub usunąć */
}

.most-popular-categories .popular-product-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  max-width: 1600px;
  margin: 0 auto;
  gap: 3.2rem;
  width: 100%;
}

.most-popular-categories .category-item {
  text-align: center;
  padding: 0;
  border-radius: 0;
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
}

.most-popular-categories .category-item:hover {
  transform: translateY(-5px);
}

.most-popular-categories .category-item:hover img {
  filter: grayscale(0.5) brightness(0.9);
}

.most-popular-categories .category-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 0;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 0;
  filter: grayscale(1) brightness(0.7);
  transition: all 0.5s;
}

.most-popular-categories .category-item h3 {
  margin-top: 15px;
  font-size: 1.4rem;
  font-weight: 400;
  color: #ffffff;
  z-index: 1;
  position: absolute;
  bottom: 0;
  text-transform: uppercase;
  left: 0;
  right: 0;
  border-top: 1px solid white;
  padding-top: 1.5rem;
}

.category-item {
  position: relative;
  height: 300px;
  padding: 0;
}

#root .products .product-title,
#root .products .product-price {
  color: #0d0807;
  font-size: 1.2rem;
}

#root .products .product-price {
  color: #0d0807;
  font-size: 1.2rem;
  margin-top: 1rem;
  font-weight: 500;
  font-family: "IBM Plex Sans";
}

#root .products .product-price bdi,
#root .products .product-price span {
  font-weight: 500;
}

#root .products .product-title {
  font-weight: 400;
  margin-top: 0.4rem;
  font-family: "IBM Plex Sans";
}

#root .products .product-description {
  display: none;
}

#root .products .product-meta {
  text-align: left;
  font-family: "IBM Plex Sans";
}

#root section.about {
  flex-direction: column;
  gap: 6rem;
  margin-top: 6rem;
  margin-bottom: 12rem;
  display: flex;
}

section.sign-up-banner .col-4 {
  position: relative;
}

section.sign-up-banner .col-4 a {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  place-self: anchor-center;
}

button.cta-button.register-button {
  background: #0d0807;
  color: white;
  border: 0;
}

section.sign-up-banner .col-8 h3 {
  width: 75%;
  font-weight: 200;
  font-size: 4.8rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 0;
}

section.sign-up-banner .col-8 p {
  width: 50%;
  font-size: 2rem;
  line-height: 1.5;
  font-weight: 200;
}

section.email-subscribe-banner .col-8 p {
  width: 50%;
  line-height: 1.5;
}

section.email-subscribe-banner .col-8 h3 {
  width: 75%;
}

section.sign-up-banner .col-8 h3 img {
  height: 40px;
  width: auto;
  vertical-align: bottom;
	padding-top: 5px;
}

#root section.sign-up-banner .col-8 {
  flex-direction: column;
  justify-content: center;
  gap: 3.2rem;
  display: flex;
}

section.email-subscribe-banner {
  background: #0d0807;
  color: white;
  position: relative;
	border-bottom: 1px solid #ADADAD;
}

section.email-subscribe-banner form {
  position: absolute;
  top: 24%;
  right: 25%;
  background: #FBFAF8;
  color: black;
  padding: 3.2rem;
  width: 20%;
  z-index: 100000;
  font-size: 1.6rem;
  display: flex;
  flex-direction: column;
}

section.email-subscribe-banner .specrow {
  align-items: center;
}

#root section.email-subscribe-banner .specrow,
#root section.sign-up-banner .specrow {
  min-height: 60vh;
}

input.wpcf7-validates-as-email {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

span.wpcf7-form-control.wpcf7-checkbox {
  display: flex;
  flex-direction: row;
  column-gap: 1rem;
  width: 100%;
  flex-wrap: wrap;
  justify-content: flex-start;
}

label.interesuje {
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

span.wpcf7-form-control-wrap {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  width: 100%;
}

span.wpcf7-list-item.last, span.wpcf7-list-item.first {
  width: fit-content;
}

form.wpcf7-form.init p {
  display: flex;
  width: 100%;
}

label.akceptacja {
  display: flex;
  flex-direction: row;
  width: 100%;
  margin-top: 3rem;
  font-size: 1.2rem;
}

#root label.akceptacja span.wpcf7-form-control-wrap {
  width: 15%;
}

#root form.wpcf7-form.init label input[type="checkbox"] + span.checkbox-custom {
  width: 14px;
  height: 14px;
}

input.wpcf7-form-control.wpcf7-submit.has-spinner {
  background: #0d0807;
  color: #f9f9f9;
  font-weight: 500;
  font-size: 1.4rem;
  padding: 1.8rem 2rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 2rem;
	font-family: "IBM Plex Sans", sans-serif;
}

label.interesuje,
label.mail {
  font-weight: 400;
  max-width: 100%;
}

.wpcf7 input[type="url"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"] {
  max-width: 100%;
background: #FBFAF8;
	border: 1px solid;
}

#root .product-card p.product-vendor {
  color: #8d8482;
  text-transform: uppercase;
  font-weight: 400;
  margin-top: 1.6rem;
  font-family: "IBM Plex Sans";
}

@media (max-width: 1590px) {
  #root.page-template-homepage-php .swiper-wrapper {
    max-width: 1000px;
  }

  #root.page-template-homepage-php .product-carousel .product-card img {
    height: 650px;
    width: 492px;
  }

  .most-popular-categories .popular-product-categories {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    max-width: 1400px;
    gap: 2.4rem;
  }

  .most-popular-categories .category-item img {
    height: 250px;
  }

  .category-item {
    height: 250px;
  }
}

@media only screen and (max-width: 1480px) {

  .category-switch a, .category-switch a.active {
      padding: 1rem;
  }

  .most-popular-categories .popular-product-categories {
      gap: .5rem;
  }

  section.email-subscribe-banner form {
      right: 20%;
      width: 25%;
  }

  .category-item {
    height: 300px;
}

.most-popular-categories .category-item img {
  height: 300px;
}

}

@media (max-width: 1380px) {
  #root.page-template-homepage-php .swiper-wrapper {
    max-width: 900px;
  }

  #root.page-template-homepage-php .product-carousel .product-card img {
    height: 600px;
    width: 442px;
  }

  .most-popular-categories .popular-product-categories {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    max-width: 1200px;
    gap: 2.4rem;
  }
}

@media (max-width: 1024px) {
  .specrow {
    flex-direction: column;
  }

  .hero .specrow {
    flex-direction: column-reverse;
  }

  .hero-product-images {
    min-height: inherit;
  }

  .col-5,
  .col-7,
  .col-8,
  .col-4 {
    flex: 0 0 100%;
    width: 100%;
  }

  .most-popular-categories {
    position: relative;
    padding: 100px 0;
    margin-top: 10rem;
  }

  .most-popular-categories .specrow {
    overflow: scroll;
  }

  .most-popular-categories .popular-product-categories {
    width: 2000px;
    overflow: scroll;
  }

  section.most-popular-categories h2 {
    position: absolute;
    top: 0;
  }

  #root.page-template-homepage-php .product-carousel .product-card img {
    width: 100%;
  }

  .show-more img {
    display: none;
  }

  #root .show-more a button {
    background: #0d0807;
    color: #f9f9f9;
    font-weight: 500;
    font-size: 1.4rem;
    padding: 1.8rem 2rem;
    letter-spacing: 2px;
  }

  .show-more {
    min-height: inherit;
    width: 100%;
  }

  .products {
    width: 100%;
    overflow: scroll;
  }

  .products .col-4 {
    flex: 0 0 60%;
    width: 60%;
  }

  .products .product-card img {
    height: 270px;
  }

  .products .random-products-row {
    gap: 1.2rem;

    overflow: none;
  }

  .specrow.cont {
    flex-direction: column-reverse;
  }

  #root section.about {
    gap: 3.2rem;
    margin-top: 7rem;
    margin-bottom: 10rem;
    padding: 0;
  }

  section.sign-up-banner .col-8 h3,
  section.email-subscribe-banner .col-8 h3 {
    width: 100%;
    font-size: 3.2rem;
    justify-content: center;
    margin-top: 7.2rem;
  }

  section.sign-up-banner .col-8 h3 img {
    height: 26px;
  }

  #root section.sign-up-banner .col-8 p,
  #root section.email-subscribe-banner .col-8 p.rozmiar20.light {
    width: 100%;
    font-size: 1.6rem;
    margin-bottom: 4rem;
  }

  section.sign-up-banner .specrow img {
    height: 280px;
    object-fit: cover;
  }

  #root section.email-subscribe-banner .specrow,
  #root section.sign-up-banner .specrow {
    min-height: 0;
  }

  #root section.sign-up-banner .col-8 {
    gap: 2.8rem;
  }

  section.email-subscribe-banner img {
    display: none;
  }

  section.email-subscribe-banner form {
    position: relative;
    top: 0;
    right: 0;
    padding: 3.2rem;
    width: calc(100% - 6.4rem);
  }

  div#wpcf7-f273-o1 {
    display: flex;
    width: 100%;
    margin: 0;
  }

  form.wpcf7-form.init input {
    display: flex;
    width: 100%;
  }

  .specrow.row.footer-top {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    row-gap: 6.4rem;
  }

  .col-3.footer-col.logo-social {
    flex: 0 0 100%;
    width: 100%;
    order: 1;
  }

  .col-3.footer-col {
    flex: 0 0 50%;
    width: 50%;
    order: 3;
  }

  .col-3.footer-col.szuk {
    flex: 0 0 100%;
    width: 100%;
    order: 2;
  }

  #root.page-template-homepage-php .swiper-wrapper {
    max-width: 30%;
  }

  #root .product-carousel.black-background {
    padding: 80px 0;
  }

  .product-carousel .swiper-button-next,
  .product-carousel .swiper-rtl .swiper-button-prev {
    right: inherit;
    left: 20em;
  }

  #root.page-template-homepage-php .product-carousel .product-card a {
    width: 80%;
  }
}
