/* product-section-container */

.protective-wrapper {
  margin-bottom: 20px;
}

.protective-wrapper .product-section-container {
  text-align: center;
  margin-bottom: var(--section-margin);
}
/* Swiper komponente */
.protective-wrapper .swiper {
  width: 100%;
  height: fit-content;
  padding: 0px 10px;
  align-items: center;
}

.protective-wrapper .swiper-wrapper {
  align-items: center;
  width: 100% !important;
}

.protective-wrapper .centered-wrapper {
  justify-content: center;
  width: 100% !important;
  align-items: center;
}

.protective-wrapper .swiper-slide {
  flex: 0 0 auto;
  height: var(--product-picture-height) !important;
  min-height: var(--product-picture-height) !important;
  background: white;
  max-height: 490px;
  border-radius: var(--border-radius-lg);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  overflow: hidden;
  border: 1px solid var(--primary-color);
}

.protective-wrapper .swiper-button-next,
.protective-wrapper .swiper-button-prev {
  color: var(--primary-color) !important;
}

.protective-wrapper .swiper-button-next:hover,
.protective-wrapper .swiper-button-prev:hover {
  color: var(--primary-color-opacity) !important;
}

/* Proizvod komponente */
.protective-wrapper .product-container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  position: relative;
}

.protective-wrapper .product-pic {
  width: 100%;
  display: block;
  max-height: 280px;
  transition: transform 0.3s ease;
  transform-origin: center center;
}

.product-container:has(.nedostupan-title) .product-pic {
  opacity: 0.3;
  filter: grayscale(100%); /* Opciono, da izgleda još "nedostupnije" */
}

.product-container:has(.nedostupan-title) .nedostupan-title {
  position: absolute;
  top: 38%;
  left: 50%;
  display: block;
  width: 80%;
  text-align: center;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.obavestenje-proizvod-slider a {
  display: flex;
  align-items: center;
  width: 92%;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--secondary-color) 0%, #15803d 100%);
  text-align: var(--text-alignment);
  padding: var(--padding-10);
  border-radius: var(--border-radius-lg);
  font-weight: var(--font-light-weight);
  font-size: var(--p-font-size-l);
  color: white;
  border: none;
  height: 40px;
  margin-bottom: var(--margin-10);
  justify-content: center;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-md);
  cursor: pointer;
}

.obavestenje-proizvod-slider a:hover {
  background: linear-gradient(
    135deg,
    var(--button-hover-color) 0%,
    var(--secondary-color) 100%
  );
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.protective-wrapper .swiper-slide:hover .product-pic {
  transform: scale(1.1);
}

.protective-wrapper .fast-view-container {
  height: 0;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  background: linear-gradient(135deg, var(--secondary-color) 0%, #15803d 100%);
  padding: 0 var(--space-3);
  transition: all var(--transition-base);
  opacity: 0;
  color: var(--link-color);
  font-weight: var(--font-light-weight);
  will-change: height, opacity, transform;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 2;
}

.protective-wrapper .fast-view-container:hover {
  background: linear-gradient(
    135deg,
    var(--button-hover-color) 0%,
    var(--secondary-color) 100%
  );
  box-shadow: var(--shadow-md);
}

.protective-wrapper .effect-wrapper {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.protective-wrapper .product-i-btn-text {
  font-size: var(--p-font-size-m);
  position: absolute;
  background-color: #008000;
  top: 30px;
  left: 0;
  height: fit-content;
  border-radius: var(--border-radius-lg);
  padding: 10px 15px;
  z-index: 10;
  color: white;
  opacity: 0;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.protective-wrapper .fast-view-link-item {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  transition: all var(--transition-base);
  height: 100%;
  width: 50%;
}
.protective-wrapper .product-i-btn {
  color: white;
  transition: all var(--transition-base);
  font-size: var(--p-font-size-l);
}

.protective-wrapper .fast-view-link-item:hover .product-i-btn {
  color: var(--primary-color);
}

.protective-wrapper .fast-view-link-item:hover .product-i-btn-text {
  opacity: 1;

  visibility: visible;
  transform: translateY(0);
}

.protective-wrapper .effect-wrapper {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.protective-wrapper .effect-wrapper::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition:
    width 0.6s,
    height 0.6s;
}
.protective-wrapper .fast-view-container:hover .effect-wrapper::before {
  width: 300px;
  height: 300px;
}
.protective-wrapper .swiper-slide:hover .fast-view-container {
  height: 40px;
  padding: var(--space-3);
  opacity: 1;
  transform: translateY(0);
}

.protective-wrapper .product-title {
  margin-top: 8px;
  font-size: var(--p-font-size-l);
  color: var(--body-font-color);
  padding: 0px var(--padding-10);
  z-index: 1;
  height: max-content;
  margin-top: auto;
  cursor: default !important;
  text-align: center;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  text-overflow: ellipsis;
}

.protective-wrapper .add-to-cart-container {
  padding: 0px var(--padding-10) var(--padding-10) var(--padding-10);
}

.protective-wrapper .input-group {
  display: flex;
  align-items: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border-radius: var(--border-radius-lg);
  height: 40px;
  background-color: var(--background-color);
  overflow: hidden;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.protective-wrapper .input-group:hover {
  box-shadow: 0 6px 20px rgba(21, 128, 61, 0.15);
  border-color: rgba(21, 128, 61, 0.2);
}

.protective-wrapper .product-inputs {
  vertical-align: middle;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 65%;
  height: 100%;
  gap: 2px;
}

.protective-wrapper .add-remove-quantity {
  border: none;
  text-align: center;
  background-color: var(--background-light-color);
  color: var(--text-color);
  font-size: var(--p-font-size-xl);
  font-weight: var(--font-bold-weight);
  width: 100%;
  height: 100%;
  cursor: pointer;
  transition: all 0.2s ease;
}

.protective-wrapper .add-remove-quantity:hover {
  background: linear-gradient(
    135deg,
    var(--button-hover-color) 0%,
    var(--secondary-color) 100%
  );
  color: white;
  transform: scale(1.05);
}

.protective-wrapper .add-remove-quantity:active {
  transform: scale(0.95);
}

.protective-wrapper .added-quantity {
  width: 50px;
  text-align: center;
  border: none;
  border: none;
  height: 100%;
  font-weight: var(--font-bold-weight);
  font-size: 16px;
  background: white;
  transition: all 0.2s ease;
}

.protective-wrapper .added-quantity:hover {
  border: 2px solid var(--secondary-color);
  background: rgba(21, 128, 61, 0.05);
}

.protective-wrapper .added-quantity:focus {
  outline: none;
  border: 2px solid var(--secondary-color);
  background: rgba(21, 128, 61, 0.08);
}

.protective-wrapper .dodaj-u-korpu {
  width: 35%;
  border: none;
  color: var(--link-color) !important;
  background: linear-gradient(135deg, var(--secondary-color) 0%, #15803d 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: var(--add-to-cart-icon-font-size-xl);
  cursor: pointer;
  padding: 10px;
  height: 100%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.protective-wrapper .dodaj-u-korpu::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition:
    width 0.6s,
    height 0.6s;
}

.protective-wrapper .dodaj-u-korpu:hover::before {
  width: 300px;
  height: 300px;
}

.protective-wrapper .dodaj-u-korpu:hover {
  background: linear-gradient(
    135deg,
    var(--button-hover-color) 0%,
    var(--secondary-color) 100%
  );
  transform: scale(1.02);
}

.protective-wrapper .dodaj-u-korpu:active {
  transform: scale(0.98);
}

.protective-wrapper .dodaj-u-korpu > i {
  transition: transform 0.3s ease;
  z-index: 1;
}

.protective-wrapper .dodaj-u-korpu:hover > i {
  transform: translateY(-3px) rotate(-10deg);
}

.protective-wrapper .product-info-container {
  display: none;
}

.protective-wrapper .select-container {
  display: none;
}

.protective-wrapper .brend-img {
  width: 50%;
  margin-top: auto;
  max-width: 100px;
  height: auto;
  object-fit: contain;
  margin-left: var(--padding-10);
  will-change: scale;
  transition: 0.3s ease-out;
}

.protective-wrapper .brend-img:hover {
  cursor: pointer;
  scale: 1.1;
}

.protective-wrapper .product-code {
  font-size: var(--p-font-size-m);
  color: var(--text-color);
  font-weight: var(--font-light-weight);
}

.protective-wrapper .product-code > span {
  font-weight: var(--font-bold-weight);
}

.protective-wrapper .description-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.protective-wrapper .description-item {
  padding-bottom: var(--padding-10);
  font-size: var(--p-font-size-m);
  line-height: 1.5;
  color: var(--text-color);
  opacity: 0.8;
}

.protective-wrapper .description-item > * {
  text-align: start !important;
}

.protective-wrapper .description-item:last-child {
  padding-bottom: 0px;
}

.protective-wrapper .more-info {
  display: inline-block;
  width: 50%;
  background: linear-gradient(135deg, var(--secondary-color) 0%, #15803d 100%);
  text-align: var(--text-alignment);
  padding: var(--section-button-padding);
  border-radius: var(--border-radius-lg);
  font-weight: var(--font-light-weight);
  font-size: var(--p-font-size-xl);
  color: white;
  border: none;
  height: 40px;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-md);
}

.protective-wrapper .more-info:hover {
  background: linear-gradient(
    135deg,
    var(--button-hover-color) 0%,
    var(--secondary-color) 100%
  );
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* Base Modal Styles (for all resolutions) */
.modal-product-container {
  display: none;
}

.modal-product-container.show-modal {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  opacity: 0;
  animation: modalFadeIn 0.3s ease forwards;
}

@keyframes modalFadeIn {
  to {
    opacity: 1;
  }
}

.modal-product-owerlay {
  padding: 35px var(--section-margin);
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  width: 90%;
  max-width: 1350px;
  height: fit-content;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.726);
  background-color: var(--background-color-no-opacity);
  position: relative;
  transform: scale(0.95);
  animation: modalScaleIn 0.3s ease forwards;
  overflow-y: auto;
}

@keyframes modalScaleIn {
  to {
    transform: scale(1);
  }
}

.modal-product-img-container {
  width: 55%;
  height: 100%;
  display: flex;
  align-items: start;
  justify-content: center;
}

.modal-product-img-container img {
  width: 100%;
  max-height: 750px;
  object-fit: contain;
  border: 1px solid var(--primary-color);
}

.close-menu-fast-view {
  font-size: 30px;
  position: absolute;
  top: 0;
  right: 20px;
  padding: 10px;
  cursor: pointer;
  color: var(--primary-color);
  z-index: 3;
}

.modal-product-main-title-container {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: var(--padding-20);
  min-height: 140px;
}

.modal-product-title {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  width: 70%;
  height: 100%;
}

.modal-product-title .product-title {
  text-align: start;
  margin: 0;
  padding: 0;
  font-size: var(--p-font-size-xl);
  font-weight: var(--font-medium-weight);
  color: var(--text-color);
}

.modal-product-title .product-code {
  font-size: var(--p-font-size-m);
  color: var(--text-color);
  font-weight: var(--font-light-weight);
}

.product-code > span {
  font-weight: var(--font-bold-weight);
}

.brend-img {
  width: 50%;
  margin-top: auto;
  max-width: 100px;
  height: auto;
  object-fit: contain;
  margin-left: var(--padding-10);
  will-change: scale;
  transition: 0.3s ease-out;
}

.brend-img:hover {
  cursor: pointer;
  scale: 1.1;
}

.modal-product-description {
  position: relative;
  width: 70%;
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: var(--padding-10);
  max-height: 730px;
}

.modal-product-description > div {
  position: relative;
}

.modal-product-description > div:not(:last-child)::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--primary-color),
    transparent
  );
}

.modal-description {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: fit-content;
  margin-top: var(--padding-10);
  padding-bottom: var(--padding-20);
}

.modal-product-description-title {
  font-size: 1.1em;
  font-weight: var(--font-medium-weight);
  color: var(--primary-color);
  text-shadow: var(--shadow-md);
  padding-bottom: var(--padding-10);
}

.modal-product-description .description-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.description-item {
  padding-bottom: var(--padding-10);
  font-size: var(--p-font-size-m);
  line-height: 1.5;
  color: var(--text-color);
  opacity: 0.8;
}

.description-item > * {
  text-align: start !important;
}

.description-item:last-child {
  padding-bottom: 0px;
}

.description-item ul li {
  list-style-type: circle !important;
  margin-left: 20px;
}

.modal-product-more-info {
  display: flex;
  justify-content: end;
  align-items: center;
  min-height: 40px;
  width: 100%;
  padding-bottom: var(--padding-20);
  padding-top: var(--padding-10);
}

.more-info {
  display: inline-block;
  width: 50%;
  background: linear-gradient(135deg, var(--secondary-color) 0%, #15803d 100%);
  text-align: var(--text-alignment);
  padding: var(--section-button-padding);
  border-radius: var(--border-radius-lg);
  font-weight: var(--font-light-weight);
  font-size: var(--p-font-size-xl);
  color: white;
  border: none;
  height: 40px;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-md);
}

.more-info:hover {
  background: linear-gradient(
    135deg,
    var(--button-hover-color) 0%,
    var(--secondary-color) 100%
  );
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.icons-container {
  height: fit-content;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--gap-20);
  padding-top: var(--padding-10);
}

.icons-container > i {
  font-size: var(--header-icons-font-size);
  opacity: 0.6;
  cursor: pointer;
  transition: all 0.2s ease;
}

.icons-container > i:hover {
  opacity: 1;
  transform: scale(1.1);
}

.fa-facebook {
  color: #1877f2;
}

.fa-facebook:hover {
  color: #166fe5;
}

.fa-twitter {
  color: #1da1f2;
}

.fa-twitter:hover {
  color: #0d8bd9;
}

.fa-pinterest {
  color: #e60023;
}

.fa-pinterest:hover {
  color: #cc001f;
}

/* Responsive stilovi */

@media screen and (max-width: 1440px) {
  .protective-wrapper .swiper-slide {
    height: var(--product-picture-height-m) !important;
    min-height: var(--product-picture-height-m) !important;
  }

  .protective-wrapper .swiper {
    height: fit-content;
  }
  .obavestenje-proizvod-slider a {
    width: 90%;
    text-align: center;
    padding: var(--padding-5);
    font-size: var(--p-font-size-m);
  }
}

@media screen and (max-width: 1222px) {
  .protective-wrapper .swiper-slide {
    height: var(--product-picture-height-s) !important;
    min-height: var(--product-picture-height-s) !important;
  }

  .protective-wrapper .product-title {
    font-size: var(--p-font-size-m);
  }

  /* modal */
  .modal-product-owerlay {
    flex-direction: column;
    align-items: start;
    gap: 10px;
    max-height: unset;
    min-height: unset;
  }

  .modal-product-img-container {
    width: 100%;
    margin: 0 auto;
    gap: 20px;
  }

  .modal-product-img-container img {
    width: 25%;
  }

  .brend-img {
    border: unset !important;
    border-radius: unset !important;
    width: 100%;
    margin-left: unset;
    margin-top: 10px;
  }

  .modal-product-main-title-container {
    flex-direction: row;
    padding-bottom: unset;
    align-items: center;
    padding-bottom: 20px;
  }

  .modal-product-img-container {
    height: fit-content;
    justify-content: start;
  }

  .modal-product-title {
    justify-content: center;
    gap: 20px;
  }

  .modal-product-description {
    width: 100%;
    max-height: unset;
    height: 100%;
  }

  .close-menu-fast-view {
    padding: 3px;
  }
  /* modal */

  .product-container:has(.nedostupan-title) .nedostupan-title {
    top: 35%;
  }
}

@media screen and (max-width: 909px) {
  .protective-wrapper .swiper {
    height: fit-content;
  }

  .protective-wrapper .swiper-slide {
    height: var(--product-picture-height-m) !important;
    min-height: var(--product-picture-height-m) !important;
  }

  .protective-wrapper .fast-view-container {
    height: 40px;
    padding: var(--space-3);
    opacity: 1;
    transform: translateY(0px);
  }

  .protective-wrapper .swiper-button-next,
  .protective-wrapper .swiper-button-prev {
    top: 46% !important;
  }

  .protective-wrapper .dodaj-u-korpu {
    font-size: var(--add-to-cart-icon-font-size-l);
  }

  /* modal */
  .modal-product-container.show-modal {
    bottom: 0;
    height: unset;
  }

  .modal-product-owerlay {
    justify-content: unset;
    height: 100%;
    width: 100%;
  }

  .modal-description {
    height: 100%;
  }

  .modal-product-title .product-title {
    height: unset;
    display: block;
  }

  .close-menu-fast-view {
    padding: 10px;
  }

  .modal-product-img-container .product-pic {
    width: 100%;
    max-width: 229px;
  }

  .modal-product-description > h3 {
    font-size: var(--h2-font-size-m);
  }

  .description-item:last-child {
    padding-bottom: var(--padding-10);
  }

  .modal-product-title {
    width: 67%;
    gap: 10px;
  }
  /* modal */
  .product-container:has(.nedostupan-title) .nedostupan-title {
    top: 30%;
  }

  .final-product-small-desc-container .obavestenje-proizvod-slider a {
    width: 100%;
  }

  .obavestenje-proizvod-slider a {
    width: 89%;
  }
}

@media screen and (max-width: 550px) {
  .protective-wrapper .added-quantity {
    width: 30px;
  }

  .protective-wrapper .add-to-cart-container {
    padding: 0px var(--padding-10) var(--padding-10) var(--padding-10);
  }

  .protective-wrapper .dodaj-u-korpu {
    font-size: var(--add-to-cart-icon-font-size-l);
  }

  .protective-wrapper .modal-product-img-container img,
  .protective-wrapper .modal-product-cart .input-group,
  .protective-wrapper .more-info {
    width: 100%;
    font-size: var(--p-font-size-l);
  }

  .protective-wrapper .description-item {
    text-align: start;
    font-size: var(--p-font-size-m) !important;
  }

  .protective-wrapper .swiper-button-next,
  .protective-wrapper .swiper-button-prev {
    top: 39% !important;
  }

  .protective-wrapper .swiper-slide {
    height: var(--product-picture-height-s) !important;
    min-height: var(--product-picture-height-s) !important;
  }

  .final-product-small-desc-container .obavestenje-proizvod-slider a {
    margin-top: 10px;
    font-size: var(--p-font-size-m);
    width: 100%;
  }

  .obavestenje-proizvod-slider a {
    font-size: var(--p-font-size-m);
  }
  /* modal */
  .modal-product-owerlay {
    all: unset;
    display: block;
    overflow-y: auto;
    height: 100%;
    max-height: fit-content;
    background-color: var(--background-color-no-opacity);
    padding: 10px;
    margin-top: 10px;
    position: relative;
  }

  .modal-product-description,
  .modal-product-img-container,
  .modal-product-main-title-container {
    height: fit-content;
    padding-bottom: 0px;
  }

  .modal-product-description > h3 {
    margin-top: 10px;
  }

  @supports (-webkit-touch-callout: none) {
    .modal-product-container.show-modal {
      min-height: -webkit-fill-available;
    }
  }

  .modal-product-img-container {
    flex-direction: column;
    position: relative;
    gap: 10px;
  }

  .modal-product-img-container img,
  .modal-product-cart .input-group,
  .more-info {
    width: 100%;
    font-size: var(--p-font-size-l);
  }

  .modal-product-more-info,
  .modal-product-cart {
    min-height: unset;
  }

  .description-list {
    text-align: start;
    margin-bottom: 10px !important;
  }

  .description-item {
    text-align: start;
    font-size: var(--p-font-size-m) !important;
  }

  .modal-product-img-container:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(
      90deg,
      transparent,
      var(--primary-color),
      transparent
    );
  }

  .brend-img {
    margin: unset;
    max-width: 170px;
  }

  .modal-product-title {
    gap: 10px;
    text-align: center;
    margin-bottom: 20px;
    width: 100%;
  }

  .modal-product-description {
    text-align: center;
    margin-top: 0px;
    overflow-y: unset;
    flex: unset;
    height: fit-content;
  }

  .icons-container {
    padding: var(--padding-10);
  }

  .modal-product-img-container .product-pic {
    max-width: unset;
  }

  .modal-product-main-title-container {
    flex-direction: column-reverse;
    gap: 10px;
    align-items: center;
  }

  .close-menu-fast-view {
    right: 5px;
  }
  /* modal */
}
@media screen and (max-width: 375px) {
  .protective-wrapper .swiper-slide {
    height: var(--product-picture-height-s) !important;
    min-height: var(--product-picture-height-s) !important;
  }
}
@media screen and (max-width: 355px) {
  .protective-wrapper .input-group {
    height: 40px;
  }

  .protective-wrapper .swiper {
    height: fit-content;
  }

  .protective-wrapper .swiper-slide {
    height: var(--product-picture-height-xs) !important;
    min-height: var(--product-picture-height-xs) !important;
  }
  .obavestenje-proizvod-slider a {
    width: 96.5%;
  }
}

@media screen and (max-width: 320px) {
}
