.wide-carousel {
  max-height: 500px !important;
}

div#carousel {
  max-height: 500px !important;
  overflow: hidden;
}

.carousel-inner {
  max-height: 500px !important;
}

.carousel-inner > .item {
  max-height: 500px !important;
  /* Remove display: flex — it breaks Bootstrap 3 transitions */
  text-align: center;
}

.carousel-inner > .item a {
  max-height: 500px !important;
  display: block;
  width: 100%;
}

.carousel-inner > .item a img {
  height: 500px;
  width: 100%;
  object-fit: cover;
  object-position: center;
}
@media screen and (min-width: 1900px) {
  div#carousel {
    max-height: 700px !important;
  }
  .carousel-inner {
    height: unset;
  }
  .carousel-inner > .item {
    max-height: unset !important;
  }
  .carousel-inner > .item a img {
    height: auto;
  }
}
@media screen and (max-width: 768px) {
  .wide-carousel {
    max-height: unset !important;
  }

  div#carousel {
    max-height: unset !important;
    overflow: hidden;
  }

  .carousel-inner {
    max-height: unset !important;
  }

  .carousel-inner > .item {
    max-height: unset !important;
    text-align: center;
  }

  .carousel-inner > .item a {
    max-height: unset !important;
    display: block;
    width: 100%;
  }

  .carousel-inner > .item a img {
    height: unset;
    width: 100%;
    object-fit: cover;
    object-position: center;
  }
  #content .row.banners-row {
    margin-inline: 0px !important;
  }
  .type-index div#content-wrapper.content-wrapper {
    padding-top: 0px;
  }
  .in-index .product .p .price.price-final strong,
  .type-category #products .product .p .price.price-final strong {
    font-size: 1.2em !important;
  }
  .in-index .product .p .price-additional,
  .type-category #products .product .p .price-additional {
    font-size: 0.8em !important;
  }
  p.p-desc {
    font-size: 0.8em !important;
    margin-bottom: 0 !important;
  }

  .in-index .product .p .p-bottom-2 {
    flex-direction: column-reverse !important;
  }

  .welcome-wrapper.container-narrow {
    padding-inline: 20px !important;
  }

  .custom-footer__categories.col-sm-4 #categories a {
    font-size: 16px !important;
  }
}

a.btn.btn-primary {
  background: #ffc500 !important;
  color: #000 !important;
  border: transparent;
  font-size: 1.6rem;
  font-weight: normal;
}
a.btn.btn-primary:hover {
  background: #ffd442 !important;
  border-color: #ffd442 !important;
  text-decoration: none;
}

.p-bottom.single-button > div {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Custom Owl Carousel Styling */
.custom-owl-carousel {
  position: relative;
}

.custom-owl-carousel .owl-stage-outer {
  overflow: hidden;
  position: relative;
}

/* Fog effect on sides */
.custom-owl-carousel .owl-stage-outer::before,
.custom-owl-carousel .owl-stage-outer::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 5;
  pointer-events: none;
}

.custom-owl-carousel .owl-stage-outer::before {
  left: 0;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0) 100%
  );
}

.custom-owl-carousel .owl-stage-outer::after {
  right: 0;
  background: linear-gradient(
    to left,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0) 100%
  );
}

/* Product items and owl-item width control */
.custom-owl-carousel .owl-item {
  width: 280px !important;
}

@media (min-width: 768px) {
  .custom-owl-carousel .product {
    width: 280px !important;
    max-width: 280px !important;
    margin: 0 !important;
  }
}

/* Navigation arrows */
.custom-owl-carousel .owl-nav {
  display: none;
}

/* Responsive - wider items on larger screens */
@media (min-width: 1440px) {
  .custom-owl-carousel .owl-item {
    width: 350px !important;
  }

  .custom-owl-carousel .product {
    width: 350px !important;
    max-width: 350px !important;
  }
}

@media (min-width: 1920px) {
  .custom-owl-carousel .owl-item {
    width: 400px !important;
  }

  .custom-owl-carousel .product {
    width: 400px !important;
    max-width: 400px !important;
  }

  .custom-owl-carousel .owl-stage-outer::before,
  .custom-owl-carousel .owl-stage-outer::after {
    width: 150px;
  }
}

@media (min-width: 2560px) {
  .custom-owl-carousel .owl-item {
    width: 500px !important;
  }

  .custom-owl-carousel .product {
    width: 500px !important;
    max-width: 500px !important;
  }

  .custom-owl-carousel .owl-stage-outer::before,
  .custom-owl-carousel .owl-stage-outer::after {
    width: 200px;
  }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .custom-owl-carousel .owl-stage-outer::before,
  .custom-owl-carousel .owl-stage-outer::after {
    width: 50px;
  }

  .custom-owl-carousel .owl-nav button {
    padding: 10px 15px !important;
    font-size: 24px !important;
  }
}

/* Smooth dragging */
.custom-owl-carousel .owl-stage {
  display: flex !important;
}

.custom-owl-carousel.owl-drag .owl-item {
  cursor: grab;
}

.custom-owl-carousel.owl-grab .owl-item {
  cursor: grabbing;
}

.btn.btn-cart:hover,
.btn.btn-conversion:hover,
a.btn.btn-cart:hover,
a.btn.btn-conversion:hover {
  color: #333;
}
