﻿/************************************
VARIABLES
************************************/
:root {
  /* Bootstrap variables */
  --bs-border-color-translucent: rgba(220,224,229,0.6);
  --bs-border-color-translucent-10: rgba(220,224,229,0.1);
  /* Custom variables */
  --ps-border-width: 2px;
  --ps-container-width: 1320px;
  --ps-primary-dark: #397d71;
  --ps-primary-dark-rgb: 57, 125, 113;
}


/************************************
TABLE
************************************/
.table {
  height: auto !important;
}

  .table tr,
  .table td {
    height: auto !important;
  }

    .table td p {
      margin-bottom: 0 !important;
    }

      .table td p + p {
        margin-top: 1rem;
      }

@media (min-width: 768px) {
  .table {
    max-width: 100% !important;
  }
}

/************************************
CARD
************************************/
.card {
  --bs-card-bg: rgba(255, 255, 255, 0.7);
  --bs-card-title-spacer-y: .5rem;
  --bs-card-spacer-y: 1.25rem;
  --bs-card-spacer-x: 1.25rem;
  --bs-card-cap-padding-y: 1.25rem;
  --bs-card-cap-padding-x: 1.25rem;
  --bs-card-border-width: 1px;
  --bs-card-border-color: rgba(000, 000, 000, 0.1);
  --bs-card-border-radius: var(--bs-border-radius);
  --bs-card-inner-border-radius: var(--bs-card-border-radius);
  --bs-card-box-shadow: none;
  --bs-card-box-shadow-hover: 0 .1rem .5rem rgba(var(--bs-body-color-rgb),.10) !important;
  --bs-card-cap-bg: var(--bs-card-bg);
  box-shadow: var(--bs-card-box-shadow);
}

  .card .card-title {
    font-size: var(--ps-h5-font-size);
    font-weight: var(--ps-title-font-weight);
    line-height: 1;
  }

  .card.card-product .card-title {
    font-size: var(--bs-body-font-size)
  }

.card-product .description {
  font-size: 80%;
  line-height: 1.4;
}

.card-product .manufacturer + .description, .card-product .prices {
  margin-top: 10px;
}

.card.card-click:hover {
  box-shadow: var(--bs-card-box-shadow-hover);
}

.card.card-click .card-title {
  text-decoration: none;
}

.card.card-click:hover .card-title {
  color: var(--bs-link-hover-color)
}

.card-click .stretched-link:not(:hover):focus:after {
  border: 3px solid var(--bs-primary);
  box-shadow: var(--bs-card-box-shadow-hover);
  border-radius: var(--bs-border-radius);
}

.card-img,
.card-img-top {
  border-top-left-radius: var(--bs-card-inner-border-radius);
  border-top-right-radius: var(--bs-card-inner-border-radius);
}

.card-img-start {
  border-bottom-left-radius: var(--bs-card-inner-border-radius);
  border-top-left-radius: var(--bs-card-inner-border-radius);
}

.card-img-start-square {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  height: 100%;
  max-height: 80px;
  margin-right: 1rem;
  align-items: center;
  display: flex;
}

.card-footer {
  border: 0;
  padding: 0 var(--bs-card-cap-padding-x) var(--bs-card-cap-padding-y) var(--bs-card-cap-padding-x);
}


/* Product Image Change Hover Effect */
.product-image-wrapper {
  position: relative;
}

  .product-image-wrapper img {
    width: 100%;
    transition: opacity 0.3s cubic-bezier(0.45, 0, 0.1, 1), transform 0.3s cubic-bezier(0.45, 0, 0.1, 1);
  }

  .product-image-wrapper .hover-image {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    z-index: 2;
  }

.card:hover .product-image-wrapper.has-hover .main-image {
  transform: scale(0.985);
  transition: transform 0.18s ease-in;
}

.card:hover .product-image-wrapper.has-hover .hover-image {
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.32s ease-out, transform 0.32s ease-out;
}

/* Custom card elements */
.card-label {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  padding: 0.2rem 0.5rem;
  font-size: 0.9rem;
  color: rgba(var(--ps-primary-text-rgb),1);
  background-color: rgba(var(--bs-primary-rgb),1);
  border-top-left-radius: var(--bs-border-radius);
  border-bottom-right-radius: var(--bs-border-radius);
}

.card .card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  display: flex;
}

  .card .card-media.card-media-square {
    aspect-ratio: 4 / 4;
  }

  .card .card-media img {
    object-fit: cover;
    height: 100%;
    width: 100%;
  }

.card .card-media-logo {
  min-width: 80px;
  width: 80px;
  height: 80px;
}

  .card .card-media-logo img {
    object-fit: contain;
    height: 100%;
    width: 100%;
  }

.card .overlay-logo {
  min-width: 100px;
  width: 100px;
  height: 100px;
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: #fff;
  padding: 5px;
  border-radius: var(--bs-border-radius);
}

  .card .overlay-logo img {
    object-fit: contain;
    height: 100%;
    width: 100%;
  }


.card .card-icon {
  font-size: 2rem;
  color: rgba(var(--bs-primary-rgb),1);
}

/************************************
BUTTONS
************************************/
.btn {
  --bs-btn-font-size: var(--bs-body-font-size);
  --bs-btn-font-weight: 600;
  --bs-btn-border-radius: var(--ps-btn-border-radius);
  --bs-btn-border-width: var(--ps-border-width);
  --bs-btn-padding-x: 0.75rem;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
}

.btn-sm {
  --bs-btn-font-size: .8rem;
  --bs-btn-padding-x: 0.75rem;
}

/* Bootstrap colors */
.btn-primary {
  --bs-btn-color: rgba(var(--ps-primary-text-rgb),1);
  --bs-btn-bg: rgba(var(--bs-primary-rgb),1);
  --bs-btn-border-color: rgba(var(--bs-primary-rgb),1);
  --bs-btn-hover-color: rgba(var(--ps-primary-text-rgb),1);
  --bs-btn-hover-bg: var(--ps-primary-dark);
  --bs-btn-hover-border-color: rgba(var(--bs-primary-rgb),0);
  --bs-btn-focus-shadow-rgb: rgba(var(--bs-primary-rgb),1);
  --bs-btn-active-color: rgba(var(--ps-primary-text-rgb),1);
  --bs-btn-active-bg: rgba(var(--bs-primary-rgb),.8);
  --bs-btn-active-border-color: rgba(var(--bs-primary-rgb),1);
  --bs-btn-disabled-color: rgba(var(--ps-primary-text-rgb),1);
  --bs-btn-disabled-bg: rgba(var(--bs-primary-rgb),1);
  --bs-btn-disabled-border-color: rgba(var(--bs-primary-rgb),1);
}

.btn-outline-primary {
  --bs-btn-color: rgba(var(--bs-primary-rgb),1);
  --bs-btn-border-color: rgba(var(--bs-primary-rgb),1);
  --bs-btn-hover-color: rgba(var(--ps-primary-text-rgb),1);
  --bs-btn-hover-bg: rgba(var(--bs-primary-rgb),1);
  --bs-btn-hover-border-color: rgba(var(--bs-primary-rgb),0);
  --bs-btn-focus-shadow-rgb: rgba(var(--bs-primary-rgb),1);
  --bs-btn-active-color: rgba(var(--ps-primary-text-rgb),1);
  --bs-btn-active-bg: rgba(var(--bs-primary-rgb),.8);
  --bs-btn-active-border-color: rgba(var(--bs-primary-rgb),.8);
  --bs-btn-disabled-color: rgba(var(--bs-primary-rgb),1);
  --bs-btn-disabled-bg: transparent;
  --bs-btn-disabled-border-color: rgba(var(--bs-primary-rgb),1);
}

.btn-secondary {
  --bs-btn-color: rgba(var(--ps-secondary-text-rgb),1);
  --bs-btn-bg: rgba(var(--bs-secondary-rgb),1);
  --bs-btn-border-color: rgba(var(--bs-secondary-rgb),1);
  --bs-btn-hover-color: rgba(var(--ps-secondary-text-rgb),1);
  --bs-btn-hover-bg: rgba(var(--bs-secondary-rgb),.9);
  --bs-btn-hover-border-color: rgba(var(--bs-secondary-rgb),0);
  --bs-btn-focus-shadow-rgb: rgba(var(--bs-secondary-rgb),1);
  --bs-btn-active-color: rgba(var(--ps-secondary-text-rgb),1);
  --bs-btn-active-bg: rgba(var(--bs-secondary-rgb),.8);
  --bs-btn-active-border-color: rgba(var(--bs-secondary-rgb),1);
  --bs-btn-disabled-color: rgba(var(--ps-secondary-text-rgb),1);
  --bs-btn-disabled-bg: rgba(var(--bs-secondary-rgb),1);
  --bs-btn-disabled-border-color: rgba(var(--bs-secondary-rgb),1);
}

.btn-outline-secondary {
  --bs-btn-color: rgba(var(--bs-secondary-rgb),1);
  --bs-btn-border-color: rgba(var(--bs-secondary-rgb),1);
  --bs-btn-hover-color: rgba(var(--ps-secondary-text-rgb),1);
  --bs-btn-hover-bg: rgba(var(--bs-secondary-rgb),1);
  --bs-btn-hover-border-color: rgba(var(--bs-secondary-rgb),1);
  --bs-btn-focus-shadow-rgb: rgba(var(--bs-secondary-rgb),1);
  --bs-btn-active-color: rgba(var(--ps-secondary-text-rgb),1);
  --bs-btn-active-bg: rgba(var(--bs-secondary-rgb),.8);
  --bs-btn-active-border-color: rgba(var(--bs-secondary-rgb),.8);
  --bs-btn-disabled-color: rgba(var(--bs-secondary-rgb),1);
  --bs-btn-disabled-bg: transparent;
  --bs-btn-disabled-border-color: rgba(var(--bs-secondary-rgb),1);
}

/* Custom colors */
.btn-light-transparent {
  --bs-btn-color: rgba(255,255,255,1);
  --bs-btn-bg: rgba(255,255,255,.2);
  --bs-btn-border-color: transparent;
  --bs-btn-hover-color: rgba(var(--ps-primary-text-rgb),1);
  --bs-btn-hover-bg: rgba(var(--bs-primary-rgb),.9);
  --bs-btn-hover-border-color: rgba(var(--bs-primary-rgb),0);
  --bs-btn-focus-shadow-rgb: rgba(var(--bs-primary-rgb),1);
  --bs-btn-active-color: rgba(var(--ps-primary-text-rgb),1);
  --bs-btn-active-bg: rgba(var(--bs-primary-rgb),.8);
  --bs-btn-active-border-color: rgba(var(--bs-primary-rgb),1);
  --bs-btn-disabled-color: rgba(255,255,255,1);
  --bs-btn-disabled-bg: rgba(255,255,255,.2);
  --bs-btn-disabled-border-color: transparent;
}

.btn-outline-light-transparent {
  --bs-btn-color: rgba(255,255,255,1);
  --bs-btn-border-color: rgba(255,255,255,.2);
  --bs-btn-hover-color: rgba(var(--ps-primary-text-rgb),1);
  --bs-btn-hover-bg: rgba(var(--bs-primary-rgb),1);
  --bs-btn-hover-border-color: rgba(var(--bs-primary-rgb),0);
  --bs-btn-focus-shadow-rgb: rgba(var(--bs-primary-rgb),1);
  --bs-btn-active-color: rgba(var(--ps-primary-text-rgb),1);
  --bs-btn-active-bg: rgba(var(--bs-primary-rgb),.8);
  --bs-btn-active-border-color: rgba(var(--bs-primary-rgb),.8);
  --bs-btn-disabled-color: rgba(255,255,255,1);
  --bs-btn-disabled-bg: transparent;
  --bs-btn-disabled-border-color: rgba(255,255,255,.2);
}

.btn-dark-transparent {
  --bs-btn-color: rgba(000,000,000,1);
  --bs-btn-bg: rgba(000,000,000,.2);
  --bs-btn-border-color: transparent;
  --bs-btn-hover-color: rgba(var(--ps-primary-text-rgb),1);
  --bs-btn-hover-bg: rgba(var(--bs-primary-rgb),.9);
  --bs-btn-hover-border-color: rgba(var(--bs-primary-rgb),0);
  --bs-btn-focus-shadow-rgb: rgba(var(--bs-primary-rgb),1);
  --bs-btn-active-color: rgba(var(--ps-primary-text-rgb),1);
  --bs-btn-active-bg: rgba(var(--bs-primary-rgb),.8);
  --bs-btn-active-border-color: rgba(var(--bs-primary-rgb),1);
  --bs-btn-disabled-color: rgba(000,000,000,1);
  --bs-btn-disabled-bg: rgba(000,000,000,.2);
  --bs-btn-disabled-border-color: transparent;
}

.btn-outline-dark-transparent {
  --bs-btn-color: rgba(000,000,000,1);
  --bs-btn-border-color: rgba(000,000,000,.2);
  --bs-btn-hover-color: rgba(var(--ps-primary-text-rgb),1);
  --bs-btn-hover-bg: rgba(var(--bs-primary-rgb),1);
  --bs-btn-hover-border-color: rgba(var(--bs-primary-rgb),0);
  --bs-btn-focus-shadow-rgb: rgba(var(--bs-primary-rgb),1);
  --bs-btn-active-color: rgba(var(--ps-primary-text-rgb),1);
  --bs-btn-active-bg: rgba(var(--bs-primary-rgb),.8);
  --bs-btn-active-border-color: rgba(var(--bs-primary-rgb),.8);
  --bs-btn-disabled-color: rgba(000,000,000,1);
  --bs-btn-disabled-bg: transparent;
  --bs-btn-disabled-border-color: rgba(000,000,000,.2);
}

.btn-success {
  --bs-btn-color: rgba(var(--ps-primary-text-rgb),1);
  --bs-btn-bg: rgba(var(--bs-primary-rgb),1);
  --bs-btn-border-color: rgba(var(--bs-primary-rgb),1);
  --bs-btn-hover-color: rgba(var(--ps-primary-text-rgb),1);
  --bs-btn-hover-bg: rgba(var(--bs-primary-rgb),.9);
  --bs-btn-hover-border-color: rgba(var(--bs-primary-rgb),0);
  --bs-btn-focus-shadow-rgb: rgba(var(--bs-primary-rgb),1);
  --bs-btn-active-color: rgba(var(--ps-primary-text-rgb),1);
  --bs-btn-active-bg: rgba(var(--bs-primary-rgb),.8);
  --bs-btn-active-border-color: rgba(var(--bs-primary-rgb),1);
  --bs-btn-disabled-color: rgba(var(--ps-primary-text-rgb),1);
  --bs-btn-disabled-bg: rgba(var(--bs-primary-rgb),1);
  --bs-btn-disabled-border-color: rgba(var(--bs-primary-rgb),1);
}


/************************************
TABS
************************************/
.nav-tabs .nav-link {
  border-top-left-radius: var(--bs-border-radius);
  border-top-right-radius: var(--bs-border-radius);
}

.tab-content {
  border-top-right-radius: var(--bs-border-radius);
  border-bottom-left-radius: var(--bs-border-radius);
  border-bottom-right-radius: var(--bs-border-radius);
}

/************************************
ACCORDION
************************************/
.accordion {
  --bs-accordion-color: var(--bs-body-color);
  --bs-accordion-bg: transparent;
  --bs-accordion-transition: color 0.2s ease-in-out,background-color 0.2s ease-in-out,border-color 0.2s ease-in-out,box-shadow 0.2s ease-in-out,border-radius 0.15s ease;
  --bs-accordion-border-color: #e2e8f0;
  --bs-accordion-border-width: 1px;
  --bs-accordion-border-radius: 0;
  --bs-accordion-inner-border-radius: calc(var(--bs-accordion-border-radius) - 1px);
  --bs-accordion-btn-padding-x: 0;
  --bs-accordion-btn-padding-y: 1rem;
  --bs-accordion-btn-color: var(--bs-body-color);
  --bs-accordion-btn-bg: var(--bs-accordion-bg);
  --bs-accordion-btn-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ed008c'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  --bs-accordion-btn-icon-width: 1rem;
  --bs-accordion-btn-icon-transform: rotate(-180deg);
  --bs-accordion-btn-icon-transition: transform 0.2s ease-in-out;
  --bs-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ed008c'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  --bs-accordion-btn-focus-border-color: rgba(var(--bs-primary-rgb),1);
  --bs-accordion-btn-focus-box-shadow: unset;
  --bs-accordion-body-padding-x: 1rem;
  --bs-accordion-body-padding-y: 1rem;
  --bs-accordion-active-color: rgba(var(--bs-primary-rgb),1);
  --bs-accordion-active-bg: var(--bs-accordion-bg);
}

.accordion-button {
  font-size: var(--bs-body-font-size);
  font-weight: var(--ps-body-bold-font-weight);
  background-image: none;
}

.accordion-item {
  border-left: 0;
  border-top: 0;
  border-right: 0;
}

.accordion-button::before {
  flex-shrink: 0;
  width: var(--bs-accordion-btn-icon-width);
  height: var(--bs-accordion-btn-icon-width);
  margin-right: .5rem;
  content: "";
  background-size: var(--bs-accordion-btn-icon-width);
  background-color: rgba(var(--bs-primary-rgb),1);
  mask-image: var(--bs-accordion-btn-icon);
  -webkit-mask-image: var(--bs-accordion-btn-icon);
  transition: var(--bs-accordion-btn-icon-transition);
  transform: rotate(-90deg);
}

.accordion-button::after {
  display: none;
}

.accordion-button:not(.collapsed)::before {
  transform: var(--bs-accordion-btn-icon-transform);
}

/************************************
LIST GROUP
************************************/
.list-group {
  --bs-list-group-color: inherit;
  --bs-list-group-bg: none;
  --bs-list-group-action-hover-color: var(--bs-link-hover-color);
  --bs-list-group-action-active-color: var(--bs-link-color);
  --bs-list-group-action-active-bg: none;
  --bs-list-group-border-radius: 0;
}

.bright-contrast .list-group {
  --bs-list-group-border-color: var(--bs-border-color-translucent-10);
  --bs-list-group-action-hover-bg: none;
  --bs-list-group-item-padding-x: 0;
}

.card > .list-group {
  border-top: 0 !important;
}

.list-group-item {
  border-style: solid;
  display: flex;
  align-items: center;
  flex-direction: row;
}

.list-group-item-icon {
  margin-left: auto;
}

/************************************
PROJECT CARD HOVER EFFECT
************************************/
.ps-card-project {
  transition: all 0.2s ease-in-out;
  position: relative;
}

  .ps-card-project .card-body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    transition: all 0.2s ease-in-out;
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);
    text-align: center;
    border-radius: 0 0 var(--bs-border-radius) var(--bs-border-radius);
  }

  .ps-card-project:hover .card-body {
    background-color: rgba(32, 176, 153, 0.7);
  }

    .ps-card-project:hover .card-body .card-title {
      color: #fff;
    }

/************************************
LIST INLINE
************************************/
.ps-list-inline-separated .list-inline-item + .list-inline-item:before {
  content: "•";
  padding-right: 0.1rem;
}

.ps-list-inline-separated .list-inline-item:not(:last-child) {
  margin-right: 0.1rem;
}

/************************************
SWIPER
************************************/

/* Swiper slideshow */
.swiper-slideshow {
  position: relative;
  overflow: hidden;
}

  .swiper-slideshow .swiper-slide {
    box-shadow: 0 .125rem .25rem rgba(var(--bs-body-color-rgb),.075);
    border-radius: var(--bs-border-radius);
    height: auto !important;
  }

    .swiper-slideshow .swiper-slide img {
      display: block;
      width: 100%;
      object-fit: cover;
      border-radius: var(--bs-border-radius);
    }

  .swiper-slideshow .umb-container {
    column-gap: 0;
  }

.swiper-button-next,
.swiper-button-prev {
  --swiper-navigation-color: rgba(var(--bs-primary-rgb),1);
}

.swiper-pagination-bullet-active {
  --swiper-pagination-color: rgba(var(--bs-primary-rgb),1);
}

/* Swiper articles */
.swiper-articles-container {
  --swiper-navigation-size: 15px;
  --swiper-navigation-sides-offset: -15px;
  position: relative;
}

@media(max-width:768px) {
  .swiper-articles-container {
    --swiper-navigation-top-offset: 20%;
    --swiper-navigation-sides-offset: -10px;
  }
}

.swiper-articles {
  overflow: hidden;
}

  .swiper-articles .swiper-wrapper {
    position: relative;
  }

  .swiper-articles .swiper-slide {
    height: auto;
  }

.swiper-articles-container .swiper-button-next,
.swiper-articles-container .swiper-button-prev {
  background-color: #000;
  border-radius: 100%;
  --swiper-navigation-color: #fff;
  width: calc(var(--swiper-navigation-size) * 2);
  height: calc(var(--swiper-navigation-size) * 2);
}



  .swiper-articles-container .swiper-button-next:hover,
  .swiper-articles-container .swiper-button-prev:hover {
    background-color: rgba(var(--bs-primary-rgb),1);
  }

/* Category */
/* Category */
.card-category {
  --bs-card-bg: var(--category-bg);
  --bs-card-color: #fff;
}

  .card-category .card-body {
    position: absolute;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    z-index: 2;
    padding: 15px !important;
    /*backdrop-filter: blur(3px);*/
    transition: backdrop-filter .1s ease-in-out;
  }

  .card-category .card-title {
    font-size: 22px;
    margin-bottom: 0;
    color: #fff !important;
  }

@media (max-width:768px) {
  .card-category .card-title {
    font-size: 15px;
    word-break: normal;
  }
}

.card-category .card-overlay-bg {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
  background: #323232;
  opacity: 0.5;
}

.card-category:hover .card-body {
  backdrop-filter: blur(3px);
  transition: all .2s ease-in-out;
}

.card-category.card-sm {
  overflow: hidden;
  min-height: 80px;
}

  .card-category.card-sm .card-title {
    font-size: 18px;
    margin-bottom: 0;
  }

@media (max-width: 767px) {
  .card-category.card-sm .card-title {
    font-size: 15px;
  }
}

.card-category.card-sm .card-img-top {
  position: absolute;
  top: -50%;
}
