/*Important to leave it 240 so that the carousel pictures align perfectly*/
.products-results-title-details {
  color: var(--tm-text-muted, #777);
  font-weight: 400;
}

.reset-search-criteria-command {
  white-space: nowrap;
  text-decoration: none;
  font-size: 14px;
  padding: 0;
  margin: 0;
  border: none;
  line-height: 1.2;
  letter-spacing: 1px;
  display: inline-block;
  margin: 0 0 0 calc(0.5 * 10px);
  text-transform: none;
}

.reset-search-criteria-command:hover {
  text-decoration: none;
}

.dropdown-menu.for-products-sort-order {
  background: var(--tm-surface, white);
  width: 220px;
  box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.05);
}
.dropdown-menu.for-products-sort-order .dropdown-item {
  padding-top: 10px;
  padding-bottom: 10px;
}

.sort-dropdown-toggle-command {
  padding-left: 0;
  padding-right: 0;
}

.for-sort-order .tm-icon {
  color: var(--tm-secondary, #00c893);
}

.for-sort-order .dropdown-toggle,
.for-sort-order .dropdown-menu {
  font-size: 14px;
}

.catalogue-filter-container {
  background: rgba(255, 255, 255, 0.4);
  /*background: var(--tm-surface, white);*/
  border-radius: 5px 5px 0 0;
}

.catalogue-list-container {
  background: rgba(255, 255, 255, 0.4);
  /*border-bottom: solid 2px $secondary-color;*/
  border-radius: 0 0 5px 5px;
}

.catalogue-list-container h4,
.catalogue-filter-container h4 {
  cursor: default;
  padding: 10px 0 10px 10px;
  margin: 0 0 0 0;
  font-size: 14px;
  color: var(--tm-text, #555);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.products-list-container {
  padding: 0 calc(2 * 10px) calc(1 * 10px) calc(2 * 10px);
}

.selected-filter-item {
  background: var(--tm-surface, white);
  border-radius: 2px;
  padding: calc(10px / 2) 10px;
  transition-duration: 0.2s;
  position: relative;
  cursor: default;
  margin: 0 0 calc(10px / 2) 0;
  color: var(--tm-text-muted, #777);
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
}

.selected-filter-item:hover {
  background: rgba(135, 212, 255, 0.25);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.selected-filter-item .filter-item-label {
  font-size: 12px;
}

.remove-filter-item {
  transition-duration: 0.2s;
  position: absolute;
  z-index: 5;
  width: 30px;
  height: 30px;
  line-height: 30px;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  top: 0;
  right: 0;
  background: rgba(255, 255, 255, 0);
  opacity: 0.25;
}

.remove-filter-item:focus {
  outline: none;
}

.remove-filter-item .tm-icon {
  color: var(--tm-text-muted, #777);
  transition-duration: 0.2s;
}

.remove-filter-item:hover {
  opacity: 1;
}

.remove-filter-item:hover .tm-icon {
  color: var(--tm-danger, #ff6500);
}

.selected-filter-criteria-values-container {
  font-size: 14px;
  padding: 0 10px 10px 10px;
}

.search-criteria-group {
  padding: calc(0.7 * 10px) calc(0.5 * 10px) calc(0.7 * 10px) 10px;
  margin: 0 10px calc(0.7 * 10px) 10px;
  background: var(--tm-surface, white);
  border-radius: 2px;
  /*box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);*/
  transition-duration: 0.2s;
  transition-timing-function: ease-out;
  will-change: contents;
}
.search-criteria-group .criteria-group-title {
  overflow: hidden;
}

.search-criteria-group h6 {
  transition-duration: 0.2s;
  color: var(--tm-text-muted, #777);
  font-weight: 400;
  cursor: pointer;
  padding-right: 4px;
  margin: 0;
}

.search-criteria-group h6:hover {
  color: var(--tm-primary, #0088d4);
}

.search-criteria-group h6 span {
  transition-duration: 0.2s;
}

.search-criteria-group h6 .tm-icon.criterion-icon {
  color: var(--tm-primary-light, #63bef1);
  font-size: 12px;
}

.search-criteria-group h6 .tm-icon.for-expand-collapse {
  transition-duration: 0.2s;
  height: 20px;
  width: 12px;
  font-size: 12px;
}

.search-criteria-group .search-criteria-list {
  padding: 10px 0 0 0;
  transition-duration: 0.2s;
}

.search-criteria-group.collapsed .search-criteria-list {
  opacity: 0;
  height: 0;
  padding: 0;
  overflow: hidden;
}

.search-criteria-group.collapsed h6 .tm-icon.for-expand-collapse {
  transform: rotate(90deg);
}

.search-criteria-group .own-checkbox-wrapper label,
.search-criteria-group .own-checkbox-wrapper input[type=checkbox] {
  font-size: 14px;
}

.search-criteria-group .own-checkbox-wrapper label {
  margin-bottom: 3px;
  color: var(--tm-text-muted, #777);
  max-width: 97%;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.search-criteria-group .search-criterion .count {
  color: #bababa;
  font-weight: lighter;
}

.search-criteria-group .search-criterion .own-checkbox-wrapper [type=checkbox].filled-in ~ label:after {
  border-width: 1px;
  border-radius: 3px;
  transform: scale(0.75);
}

.search-criteria-group .search-criterion .own-checkbox-wrapper [type=checkbox].filled-in:checked ~ label {
  color: var(--tm-text, #333);
}

.search-criteria-group .search-criterion label .score {
  margin-bottom: 4px;
}

.products-filter-contents {
  display: none;
  margin-bottom: calc(3 * 10px);
}

.products-filter-container.expanded .products-filter-contents {
  display: block;
}

.expand-filter-criteria-command {
  text-decoration: none;
  padding: 0;
  margin: 0;
  color: var(--tm-text-muted, #777);
  cursor: pointer;
  transition-duration: 0.2s;
  background: none;
  border: none;
  text-align: center;
  z-index: 10;
}

.expand-filter-criteria-command:focus {
  outline: none;
}

.expand-filter-criteria-command:hover {
  text-decoration: none;
  color: var(--tm-anchor-hover, #004796);
}

.expand-filter-criteria-command .tm-icon {
  transition-duration: 0.2s;
  display: inline-block;
  margin: 0 calc(0.5 * 10px) 0 0;
}

.products-filter-container.expanded .expand-filter-criteria-command .tm-icon {
  transform: rotate(90deg);
}

.products-results-title-container .tm-icon {
  margin-right: calc(0.5 * 10px);
  color: var(--tm-secondary, #00c893);
}

.products-filter-title-container .tm-icon {
  color: var(--tm-secondary, #00c893);
}

.scroll-to-filter-criteria-command {
  text-transform: none;
  margin-left: calc(0.5 * 10px);
}

.catalogue-child-categs-container {
  margin-bottom: calc(2 * 10px);
}
.catalogue-child-categs-container h4.child-categs-title {
  font-size: 14px;
  color: var(--tm-text, #555);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.catalogue-child-categs-container h4.child-categs-title .tm-icon {
  color: var(--tm-secondary, #00c893);
}
.catalogue-child-categs-container .product-category-link {
  display: inline-block;
  vertical-align: middle;
  white-space: nowrap;
  border: solid 1px var(--tm-secondary, #00c893);
  color: var(--tm-secondary-dark, #009970);
  border-radius: 100px;
  margin: calc(0.5 * 10px) calc(0.25 * 10px);
  padding: calc(0.5 * 10px) calc(1.5 * 10px) calc(0.5 * 10px) calc(1 * 10px);
  transition-duration: 0.2s;
  background: rgba(0, 200, 147, 0.05);
}
.catalogue-child-categs-container .product-category-link .tm-icon {
  color: var(--tm-accent, #ff6500);
  transition-duration: 0.2s;
}
.catalogue-child-categs-container .product-category-link:hover {
  background: var(--tm-secondary, #00c893);
  color: white;
}
.catalogue-child-categs-container .product-category-link:hover .tm-icon {
  color: white;
}

.product-groups {
  margin-bottom: calc(10px * 2);
}

.product-groups .search-criterion-groups {
  background: transparent;
  display: inline-block;
  padding: calc(10px / 3) calc(10px * 2);
  border: 1px solid #aaa;
  margin-top: calc(10px / 2);
  border-radius: 20px;
  transition-duration: 0.2s;
  margin-right: 10px;
  margin-bottom: 10px;
  font-weight: 500;
  color: var(--tm-text, #555);
}
.product-groups .search-criterion-groups:hover {
  border: 1px solid #87489b;
  background: rgba(255, 255, 255, 0.5);
}
.product-groups .search-criterion-groups:has(input.selected-group) {
  background: linear-gradient(90deg, #87489b 0%, #b269ca 100%);
  border: 1px solid #87489b;
  color: white;
}
.product-groups .search-criterion-groups label {
  padding: 0;
}
.product-groups .search-criterion-groups label::after {
  display: none;
}
.product-groups .search-criterion-groups label::before {
  display: none;
}

.specification-group .group-title {
  cursor: pointer;
  padding: 10px;
  font-weight: inherit;
  font-size: inherit;
}
.specification-group .group-title .specification-group-icon-container {
  transition-duration: 0.2s;
  height: 20px;
  width: 12px;
  font-size: 12px;
}
.specification-group .collapse-specification-group {
  transition: height 0.3s ease;
  display: none;
}
.specification-group .collapse-specification-group.show {
  display: block;
}

/* Small devices (landscape phones, 576px and up) */
/* Medium devices (tablets, 768px and up) */
/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .products-filter-contents {
    display: block;
  }
  .search-criteria-group {
    margin: 0 0 calc(0.7 * 10px) 10px;
  }
  .selected-filter-criteria-values-container {
    padding: 0 0 10px 10px;
  }
  .catalogue-list-container h4 {
    margin: 0 0 calc(1 * 10px) 10px;
  }
  .catalogue-filter-container h4 {
    margin: 0 0 calc(1 * 10px) 0;
  }
  .catalogue-filter-container {
    border-radius: 5px 0 0 5px;
  }
  .catalogue-list-container {
    border-radius: 0 5px 5px 0;
  }
  .products-filter-contents {
    margin-bottom: 0;
  }
}
/* Extra large devices (large desktops, 1200px and up) */

/*Important to leave it 240 so that the carousel pictures align perfectly*/
.list-view-pagination-container {
  padding: 10px 0;
  text-align: left;
  font-size: 0;
}

.list-view-pagination-container > a.page-link {
  display: inline-block;
  min-width: 30px;
  width: auto;
  height: 30px;
  text-align: center;
  line-height: 28px;
  border: solid 1px var(--tm-border, #e5e5e5);
  font-size: 14px;
  color: var(--tm-text-muted, #aaa);
  text-decoration: none;
  background: none;
  padding: 0 calc(10px / 2);
  margin: 0 calc(10px / 6);
  border-radius: 15px;
  transition-duration: 0.2s;
}

.list-view-pagination-container > a.page-link.last-page,
.list-view-pagination-container > a.page-link.first-page {
  width: auto;
  padding: 0 10px;
  margin: 0 calc(10px / 6);
  border-radius: 15px;
  border: solid 1px var(--tm-border, #e5e5e5);
}

.list-view-pagination-container > a.page-link.first-page {
  margin-left: 0;
}

.list-view-pagination-container > a.page-link.last-page {
  margin-right: 0;
}

.list-view-pagination-container > a.page-link:hover {
  color: white;
  background: var(--tm-primary, #0088d4);
  border: solid 1px var(--tm-primary, #0088d4);
}

.list-view-pagination-container > a.page-link:focus,
.list-view-pagination-container > a.page-link:active {
  outline: none;
  border: solid 1px var(--tm-primary, #0088d4);
}

.list-view-pagination-container > a.page-link.selected {
  color: white;
  background: var(--tm-primary, #0088d4);
  border: solid 1px var(--tm-primary, #0088d4);
}

.list-view-pagination-container .total-items-count {
  height: 30px;
  line-height: 30px;
  font-style: italic;
  float: right;
  font-size: 14px;
  color: var(--tm-text-muted, #bababa);
}

/*Important to leave it 240 so that the carousel pictures align perfectly*/
:root {
  --shake-frequency: 300;
}

/*Product card modifs -----------*/
.add-to-cart-container .product-link .picture-wrapper {
  height: 200px;
}

.add-to-cart-container .product-link .picture-wrapper .product-picture {
  max-height: calc(7 * 200px / 8);
}

.add-to-cart-container .product-link .product-name {
  font-size: 18px;
}

.add-to-cart-container .product-link .rating-container {
  display: none;
}

.own-popup-container .product-card-wrapper {
  display: none;
}

/*--------------------------------*/
.add-to-cart-value-details-container {
  border-radius: 10px;
  overflow: hidden;
}

.add-to-cart-quantity-container {
  text-align: center;
  background: rgba(135, 212, 255, 0.15);
  padding: calc(2 * 10px);
}

.add-to-cart-value-container {
  text-align: center;
  background: rgba(135, 212, 255, 0.25);
  padding: calc(2 * 10px);
}

.own-popup-container .add-to-cart-quantity-container,
.own-popup-container .add-to-cart-value-container {
  background: none;
}

.own-popup-container .finalize-add-to-cart-command {
  display: none;
}

.add-to-cart-value-container .add-to-cart-value {
  margin: 0 auto;
  width: auto;
}

.add-to-cart-value-container .add-to-cart-value span.value {
  font-weight: 600;
  font-size: 50px;
  color: var(--tm-text-muted, #777);
}

.add-to-cart-value-container .add-to-cart-value span.currency {
  font-size: 24px;
}

.add-to-cart-quantity-wrapper {
  display: block;
  width: 100%;
  margin: 0 auto;
}

.add-to-cart-quantity-input-wrapper {
  display: flex;
  flex-wrap: nowrap;
  flex-direction: row;
}

.add-to-cart-quantity-input-wrapper .quantity-command {
  flex-grow: 0;
  background: var(--tm-success, #85c177);
  color: white;
  border: none;
  padding: 10px calc(2 * 10px);
  cursor: pointer;
  font-size: 26px;
  display: inline-block;
  vertical-align: middle;
  width: auto;
}

.add-to-cart-quantity-input-wrapper .quantity-command:focus,
.add-to-cart-quantity-input-wrapper .quantity-command:active {
  outline: none;
}

.add-to-cart-quantity-input-wrapper .quantity-command.decrement {
  border-radius: 10px 0 0 10px;
}

.add-to-cart-quantity-input-wrapper .quantity-command.increment {
  border-radius: 0 10px 10px 0;
}

.add-to-cart-quantity-input-wrapper .quantity-value {
  flex-grow: 1;
  font-size: 26px;
  text-align: center;
  border: solid 1px var(--tm-success, #85c177);
  padding: 10px;
  display: inline-block;
  vertical-align: middle;
  min-width: 0;
}

.commands-container:has(.product-card-reserve-action) {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  justify-content: center;
}
.commands-container:has(.product-card-reserve-action) .product-card-reserve-action-container {
  width: 100%;
}
.commands-container:has(.product-card-reserve-action) .product-card-reserve-action-container .product-card-reserve-action {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 10px;
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, #87489b 0%, #b269ca 100%);
  color: white;
  border-radius: 5px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}
.commands-container:has(.product-card-reserve-action) .product-card-reserve-action-container .product-card-reserve-action::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #b269ca 0%, #87489b 100%);
  transition: left 0.4s ease-out;
  z-index: 0;
  pointer-events: none;
}
.commands-container:has(.product-card-reserve-action) .product-card-reserve-action-container .product-card-reserve-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}
.commands-container:has(.product-card-reserve-action) .product-card-reserve-action-container .product-card-reserve-action:hover::before {
  left: 0;
}
.commands-container:has(.product-card-reserve-action) .product-card-reserve-action-container .product-card-reserve-action .tm-icon {
  position: relative;
  z-index: 1;
}
.commands-container:has(.product-card-reserve-action) .product-card-reserve-action-container .product-card-reserve-action-text {
  position: relative;
  z-index: 1;
  width: 100%;
  text-align: center;
  padding-left: 17px;
  white-space: nowrap;
}

@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  /*5%
  {
  	transform: translateX(-5px);
  }*/
  10% {
    transform: translateX(-5px);
  }
  /*15%
  {
  	transform: translateX(-5px);
  }*/
  20% {
    transform: translateX(5px);
  }
  /*25%
  {
  	transform: translateX(-5px);
  }*/
  30% {
    transform: translateX(-5px);
  }
  /*35%
  {
  	transform: translateX(-5px);
  }*/
  40% {
    transform: translateX(5px);
  }
  /*45%
  {
  	transform: translateX(-5px);
  }*/
  50% {
    transform: translateX(-5px);
  }
  /*55%
  {
  	transform: translateX(-5px);
  }*/
  60% {
    transform: translateX(5px);
  }
  /*65%
  {
  	transform: translateX(-5px);
  }*/
  70% {
    transform: translateX(-5px);
  }
  /*75%
  {
  	transform: translateX(-5px);
  }*/
  80% {
    transform: translateX(5px);
  }
  /*85%
  	{
  		transform: translateX(-5px);
  	}
  */
  90% {
    transform: translateX(-5px);
  }
  /*
  95%
  {
  	transform: translateX(-5px);
  }*/
}
/*@keyframes shake
{
	0%, 100%
	{
		transform: translateX(0);
	}

	5%
	{
		transform: translateX(-5px);
	}

	10%
	{
		transform: translateX(5px);
	}

	15%
	{
		transform: translateX(-5px);
	}

	20%
	{
		transform: translateX(5px);
	}

	25%
	{
		transform: translateX(-5px);
	}

	30%
	{
		transform: translateX(5px);
	}

	35%
	{
		transform: translateX(-5px);
	}

	40%
	{
		transform: translateX(5px);
	}

	45%
	{
		transform: translateX(-5px);
	}

	50%
	{
		transform: translateX(5px);
	}

	55%
	{
		transform: translateX(-5px);
	}

	60%
	{
		transform: translateX(5px);
	}

	65%
	{
		transform: translateX(-5px);
	}

	70%
	{
		transform: translateX(5px);
	}

	75%
	{
		transform: translateX(-5px);
	}

	80%
	{
		transform: translateX(5px);
	}

	85%
	{
		transform: translateX(-5px);
	}

	90%
	{
		transform: translateX(5px);
	}

	95%
	{
		transform: translateX(-5px);
	}
}*/
.shake-animation {
  animation: shake 300ms ease-in-out;
}

.flying-circle {
  position: absolute;
  z-index: 1000;
  box-shadow: 0 0 10px rgba(0, 128, 0, 0.5);
  background: linear-gradient(90deg, #5e945e 0%, #85c177 100%);
  color: white;
  text-align: center;
  width: 44px;
  height: 44px;
  line-height: 47px;
  border-radius: 50%;
  padding: 0;
  margin: 5px 0 0 0;
  border: none;
  cursor: pointer;
  transition-duration: 0.2s;
  opacity: 0.9;
}

/* MEDIA QUERIES --------------------------------------------------------------------------*/
/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  .commands-container:has(.product-card-reserve-action) {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    justify-content: center;
  }
  .commands-container:has(.product-card-reserve-action) .product-card-reserve-action-container {
    width: unset;
  }
  .commands-container:has(.product-card-reserve-action) .product-card-reserve-action-container .product-card-reserve-action {
    border-radius: 50%;
    padding: 10px;
    height: 44px;
    width: 44px;
    display: inline-block;
    background: #87489b;
    color: white;
    box-shadow: none;
    transition: background-color 0.2s, box-shadow 0.2s;
  }
  .commands-container:has(.product-card-reserve-action) .product-card-reserve-action-container .product-card-reserve-action::before {
    display: none;
  }
  .commands-container:has(.product-card-reserve-action) .product-card-reserve-action-container .product-card-reserve-action:hover {
    background: #b269ca;
    transform: none;
    box-shadow: none;
  }
  .commands-container:has(.product-card-reserve-action) .product-card-reserve-action-container .product-card-reserve-action-text {
    display: none;
  }
}
/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .add-to-cart-quantity-input-wrapper .quantity-command {
    width: 75px;
    padding: 10px calc(3 * 10px);
  }
  .add-to-cart-quantity-wrapper {
    width: 60%;
  }
}
/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .add-to-cart-container .product-link .product-name {
    font-size: 22px;
  }
}
/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .add-to-cart-quantity-wrapper {
    width: 35%;
  }
}
