/* Widget overflow — decorative SVG sits above the heading */
.elementor-widget-topviewproductsfournkkaveh,
.elementor-widget-topviewproductsfournkkaveh > .elementor-widget-container {
  overflow: visible !important;
}

/* Elementor editor: readable preview before swiper init */
.elementor-editor-active .top-view-products-four-nk .swiper-top-view-products-four-nk:not(.swiper-initialized) .swiper-wrapper,
.elementor-element-edit-mode .top-view-products-four-nk .swiper-top-view-products-four-nk:not(.swiper-initialized) .swiper-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.elementor-editor-active .top-view-products-four-nk .swiper-top-view-products-four-nk:not(.swiper-initialized) .swiper-slide,
.elementor-element-edit-mode .top-view-products-four-nk .swiper-top-view-products-four-nk:not(.swiper-initialized) .swiper-slide {
  display: block !important;
  width: calc(33.333% - 8px);
  max-width: calc(33.333% - 8px);
}

/* Icons */
.top-view-products-four-nk [class^="icon-"],
.top-view-products-four-nk [class*=" icon-"] {
  font-family: "icomoon" !important;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  speak: never;
  display: inline-block;
  vertical-align: middle;
}
.top-view-products-four-nk .icon-chevron-left-2:before {
  content: "\ea3b";
}
.top-view-products-four-nk .icon-happy-emoji:before {
  content: "\ea3f";
}

.top-view-products-four-nk {
  --tvp4-rows: 3;
  --tvp4-gap: 24px;
  --tvp4-item-h: 132px;
  width: 100%;
  direction: inherit;
  unicode-bidi: isolate;
  overflow: visible;
}

.top-view-products-four-nk .line-clamp-2 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  -webkit-line-clamp: 2;
}

.top-view-products-four-nk a {
  text-decoration: none;
}

/* Heading — from _new-demos.scss .section-heading-one-nk */
.top-view-products-four-nk .section-heading-one-nk {
  margin-bottom: 26px;
  overflow: visible;
}
.top-view-products-four-nk .section-heading-one-nk .with-icon {
  gap: 12px;
  flex-shrink: 0;
}
.top-view-products-four-nk .section-heading-one-nk .with-icon > i,
.top-view-products-four-nk .section-heading-one-nk .with-icon > .heading-icon-svg {
  width: 57px;
  height: 57px;
  background-color: var(--kaveh-primary-color, #d4242e);
  border-radius: 20px;
  font-size: 28px;
  color: #fff;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}
.top-view-products-four-nk .section-heading-one-nk .with-icon > .heading-icon-svg svg {
  width: 1em;
  height: 1em;
  display: block;
  fill: currentColor;
}
.top-view-products-four-nk .section-heading-one-nk .with-icon > .heading-deco-svg {
  color: #000;
  transform: translateX(-8px);
  pointer-events: none;
  z-index: 0;
}
.top-view-products-four-nk .section-heading-one-nk .title {
  font-size: 20px;
  line-height: 32px;
  font-weight: 500;
  color: #040404;
  margin: 0;
}
.top-view-products-four-nk .section-heading-one-nk .title span {
  color: var(--kaveh-primary-color, #e90544);
}
.top-view-products-four-nk .section-heading-one-nk .sub-title {
  font-size: 15px;
  line-height: 22px;
  color: #5f7086;
  margin: 0;
}
.top-view-products-four-nk .section-heading-one-nk .line {
  margin: 0 3px;
  min-width: 24px;
}
.top-view-products-four-nk .section-heading-one-nk .line span:first-child {
  border-bottom: 1px dashed #d5d5d5;
  height: 1px;
}
.top-view-products-four-nk .section-heading-one-nk .line span:last-child {
  width: 27px;
  height: 3px;
  background-color: var(--kaveh-primary-color, #e90544);
  border-radius: 10px;
  flex-shrink: 0;
}

/* Tabs */
.top-view-products-four-nk .section-heading-one-nk .nav-tabs {
  gap: 26px;
  margin: 0 11px 0 26px;
  list-style: none;
  padding: 0;
  flex-wrap: nowrap;
}
.top-view-products-four-nk .section-heading-one-nk .nav-tabs li {
  font-size: 12px;
  line-height: 18px;
  padding: 22px 27px;
  border: 1px solid rgba(217, 217, 217, 0.3);
  color: #5f7086;
  cursor: pointer;
  border-radius: 30px;
  position: relative;
  z-index: 2;
  white-space: nowrap;
  background-color: transparent;
}
.top-view-products-four-nk .section-heading-one-nk .nav-tabs li,
.top-view-products-four-nk .section-heading-one-nk .nav-tabs li::before {
  transition: all 0.3s ease-in-out;
}
.top-view-products-four-nk .section-heading-one-nk .nav-tabs li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 1px;
  background-image: radial-gradient(47.27% 110.88% at 50% 50%, #f8a203 0%, rgba(248, 162, 3, 0) 100%);
  border-radius: inherit;
  opacity: 0;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: xor;
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.top-view-products-four-nk .section-heading-one-nk .nav-tabs li.active {
  background-color: rgba(248, 162, 3, 0.2);
  color: #040404;
}
.top-view-products-four-nk .section-heading-one-nk .nav-tabs li.active::before {
  opacity: 1;
}

/* More button */
.top-view-products-four-nk .section-heading-one-nk .btn {
  gap: 15px;
  font-size: 12px;
  line-height: 19px;
  padding: 18px 27px;
  flex-shrink: 0;
  text-decoration: none;
  border: 0;
  white-space: nowrap;
}
.top-view-products-four-nk .section-heading-one-nk .btn::after {
  content: "";
  position: absolute;
  top: 31px;
  right: 39px;
  bottom: -4px;
  left: 10px;
  background-color: inherit;
  opacity: 0.5;
  filter: blur(48px);
  z-index: -1;
}
.top-view-products-four-nk .section-heading-one-nk .btn i {
  font-size: 14px;
}
.top-view-products-four-nk .section-heading-one-nk .btn .heading-btn-icon-svg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex-shrink: 0;
}
.top-view-products-four-nk .section-heading-one-nk .btn .heading-btn-icon-svg svg,
.top-view-products-four-nk .section-heading-one-nk .btn > svg {
  width: 1em;
  height: 1em;
  max-width: 1em;
  max-height: 1em;
  display: block;
  fill: currentColor;
  stroke: currentColor;
  flex-shrink: 0;
}
.top-view-products-four-nk .btn-nk-danger {
  background-color: var(--kaveh-primary-color, #e90544);
  color: #fff;
}
.top-view-products-four-nk .btn-nk-danger:hover,
.top-view-products-four-nk .btn-nk-danger:focus,
.top-view-products-four-nk .btn-nk-danger:active {
  background-color: rgb(193.0571428571, 4.1428571429, 56.3428571429);
  color: #fff;
}

/* Swiper */
.top-view-products-four-nk .swiper-top-view-products-four-nk {
  height: calc(var(--tvp4-item-h) * var(--tvp4-rows) + var(--tvp4-gap) * (var(--tvp4-rows) - 1));
  overflow: hidden;
}
.top-view-products-four-nk .swiper:not(.swiper-initialized) .swiper-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: var(--tvp4-gap);
}
.top-view-products-four-nk .swiper:not(.swiper-initialized) .swiper-slide {
  flex: 0 0 calc((100% - (var(--tvp4-gap) * 2)) / 3);
  width: calc((100% - (var(--tvp4-gap) * 2)) / 3);
  height: var(--tvp4-item-h);
}
.top-view-products-four-nk .swiper-slide {
  height: var(--tvp4-item-h);
}

/*
 * Item — exact values from shop assets/scss/_new-demos.scss
 * .top-view-products-four-nk__item
 */
.top-view-products-four-nk__item {
  border-radius: 35px;
  border: 1px solid rgba(164, 168, 186, 0.2);
  padding: 18px 24px;
  z-index: 2;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  background-color: #fff;
}
.top-view-products-four-nk__item,
.top-view-products-four-nk__item::before {
  transition: all 0.3s ease-in-out;
}
.top-view-products-four-nk__item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  padding: 1px;
  background-image: radial-gradient(14.36% 22.22% at 16.22% 92.86%, color-mix(in srgb, var(--kaveh-primary-color, #ff0000) 90%, transparent) 0%, color-mix(in srgb, var(--kaveh-primary-color, #ff0000) 0%, transparent) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: xor;
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  z-index: -1;
  pointer-events: none;
}
.top-view-products-four-nk__item .counter {
  font-size: 23px;
  line-height: 36px;
  color: var(--kaveh-primary-color, #d4242e);
  min-width: 17px;
}
.top-view-products-four-nk__item .image {
  width: 96px;
  height: 96px;
  border: 2px solid rgba(164, 168, 186, 0.1);
}
.top-view-products-four-nk__item .image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 2px;
  background-image: radial-gradient(70.55% 28.1% at 0% 50%, var(--kaveh-primary-color, #d4242e) 0%, rgba(252, 160, 195, 0) 100%);
  border-radius: inherit;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: xor;
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.top-view-products-four-nk__item .image .img {
  width: 80px;
  height: 80px;
  background: transparent;
  overflow: hidden;
}
.top-view-products-four-nk__item .image .img img {
  height: 46px;
  width: auto;
  max-width: none;
  max-height: 46px;
  object-fit: contain;
  display: block;
}
.top-view-products-four-nk__item .title {
  font-size: 15px;
  line-height: 24px;
  max-height: 48px;
  color: #394454;
  margin-right: 12px;
  min-width: 0;
}
.top-view-products-four-nk__item .title a {
  color: inherit;
  text-decoration: none;
}
.top-view-products-four-nk__item .title:hover,
.top-view-products-four-nk__item .title:hover a {
  color: var(--kaveh-primary-color, #d4242e);
}
.top-view-products-four-nk__item:hover {
  background-color: #e6eff3;
  border-color: #e6eff3;
}
.top-view-products-four-nk__item:hover::before {
  opacity: 1;
}

@media only screen and (max-width: 1199px) {
  .top-view-products-four-nk {
    --tvp4-gap: 16px;
  }
  .top-view-products-four-nk .section-heading-one-nk .nav-tabs {
    gap: 12px;
    margin: 0;
  }
  .top-view-products-four-nk .section-heading-one-nk .nav-tabs li {
    padding: 16px 20px;
  }
}

@media only screen and (max-width: 991px) {
  .top-view-products-four-nk .section-heading-one-nk {
    row-gap: 32px !important;
  }
  .top-view-products-four-nk .section-heading-one-nk .nav-tabs {
    order: 99;
    flex-wrap: nowrap;
    overflow: auto hidden;
    scrollbar-width: none;
    width: 100%;
    margin: 0;
  }
  .top-view-products-four-nk .section-heading-one-nk .nav-tabs::-webkit-scrollbar {
    display: none;
  }
  .top-view-products-four-nk .section-heading-one-nk .nav-tabs li {
    flex: 0 0 auto;
  }
  .top-view-products-four-nk .swiper:not(.swiper-initialized) .swiper-slide {
    flex: 0 0 calc((100% - var(--tvp4-gap)) / 2);
    width: calc((100% - var(--tvp4-gap)) / 2);
  }
}

@media only screen and (max-width: 767px) {
  .top-view-products-four-nk {
    --tvp4-item-h: 74px;
    --tvp4-gap: 16px;
  }
  .top-view-products-four-nk .section-heading-one-nk .title {
    font-size: 14px;
    line-height: 20px;
  }
  .top-view-products-four-nk .section-heading-one-nk .sub-title {
    font-size: 12px;
    line-height: 18px;
  }
  .top-view-products-four-nk .section-heading-one-nk .btn {
    font-size: 11px;
    line-height: 17px;
    padding: 11px 18px;
    gap: 6px;
  }
  .top-view-products-four-nk .section-heading-one-nk .btn i,
  .top-view-products-four-nk .section-heading-one-nk .btn .heading-btn-icon-svg,
  .top-view-products-four-nk .section-heading-one-nk .btn .heading-btn-icon-svg svg,
  .top-view-products-four-nk .section-heading-one-nk .btn > svg {
    font-size: 12px;
  }
  .top-view-products-four-nk .section-heading-one-nk .nav-tabs li {
    font-size: 11px;
    line-height: 17px;
    padding: 13px 18px;
  }
  .top-view-products-four-nk__item {
    padding: 10px 12px;
    border-radius: 15px;
  }
  .top-view-products-four-nk__item .counter {
    font-size: 17px;
    line-height: 28px;
    min-width: 9px;
  }
  .top-view-products-four-nk__item .image {
    width: 54px;
    height: 54px;
  }
  .top-view-products-four-nk__item .image .img {
    width: 45px;
    height: 46px;
  }
  .top-view-products-four-nk__item .image .img img {
    height: 26px;
  }
  .top-view-products-four-nk__item .title {
    margin-right: 4px;
    font-size: 11px;
    line-height: 16px;
    max-height: 32px;
  }
}

@media only screen and (max-width: 575px) {
  .top-view-products-four-nk .swiper {
    overflow: visible;
  }
  .top-view-products-four-nk .section-heading-one-nk .nav-tabs {
    margin: 0 -12px;
    padding: 0 12px;
  }
  .top-view-products-four-nk .swiper:not(.swiper-initialized) .swiper-slide {
    flex: 0 0 76%;
    width: 76%;
  }
}
