/*!
 * Copyright (c) 2014-2025 Bjoern Kimminich & the OWASP Juice Shop contributors.
 * SPDX-License-Identifier: MIT
 */

$bg-heading: rgba(0, 0, 0, 0.2);

.table-container {
  min-width: 350px;
  width: 80%;
}

.heading {
  background: $bg-heading;
  font-size: x-large;
  justify-content: center;
  padding: 12px 20px;
}

.img-thumbnail {
  align-self: start;
  width: 61% !important;
}

.heading {
  margin-bottom: 10px;
}

.product {
  cursor: pointer;
}

.item-price {
  font-size: initial;
  margin-top: 12px;
  text-align: center;
}

.item-name {
  font-size: large;
  text-align: center;
}

.emptyState {
  display: block;
  height: auto !important;
  margin: 20px auto;
  width: 50%;
}

.noResult {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 60%;
}

.noResultText {
  display: block;
  margin-top: 10px;
  text-align: center;
}

.ribbon-card {
  position: relative;
}

.ribbon {
  height: 150px;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  width: 150px;
}

.ribbon::before {
  content: '';
  display: block;
  position: absolute;
  z-index: -1;
}

.ribbon span {
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  color: #fff;
  display: block;
  font: 700 18px/1 'Lato', sans-serif;
  padding: 15px 0;
  position: absolute;
  text-align: center;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
  width: 225px;
}

.ribbon-top-left {
  left: -10px;
  top: -10px;
  z-index: 1;
}

.ribbon-top-left::before {
  border-left-color: transparent;
  border-top-color: transparent;
  right: 0;
  top: 0;
}

.ribbon-top-left span {
  right: -25px;
  top: 30px;
  transform: rotate(-45deg);
}

.img-responsive {
  height: auto;
  object-fit: cover;
  width: 100%;
}

.btn-basket {
  margin-top: 20px;
}

.mdc-card {
  border: 0;
  display: flex;
  flex-direction: column;
  height: calc(100% - 20px);
  justify-content: space-between;
  overflow: hidden;
}

mat-card {
  height: calc(100% - 70px);
  width: 100%;
}

mat-grid-tile {
  align-items: stretch;
  height: auto !important;
}

.mat-divider.mat-divider-horizontal {
  margin-top: 10px;
}

.product {
  margin-left: -17px;
  margin-right: 6px;
  margin-top: -17px;
}
