:root {
  --custom-color: rgb(63, 63, 63); /* Define a custom color variable */
}
html,body{
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
}
h1,h2,h3,h4,h5,h6 {
  padding: 0;
}
h1 {
  font-size: 3em;
}
h2 {
  font-size: 1.5em;
}
h3 {
  font-size: 1em;
}
body {
  background-image:url(/assets/images/PSE-bg.png);
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  position: relative;
}
body.no-scroll {
  overflow: hidden;
}
header {
  z-index: 1;
  top: 0;
  width: calc(100% - 1em);
  display: flex;
  flex-direction: row;
  align-items: center;
  position: fixed;
  background-color: rgb(204, 17, 51);
  padding: 0.5em;
  margin: 0;
  color: white;
}
a,
.link {
  cursor: pointer;
  text-decoration: none;
  color:#2196F3;
  padding: 0.2em;
}
a:hover,
.product-card:hover .product-name,
.link:hover {
  filter: sepia(1) hue-rotate(180deg);
  color:#5d7afc;
}
.brand {
  font-weight: normal !important;
  text-transform: uppercase;
  font-family: 'Markazi Text', 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}
header .brand {
  font-size: 2em;
  padding: 0 1em;
}
#menu {
  width: auto;
}
main {
  position: relative;
  display: flex;
  flex-direction: column;
}
section {
  display: block;
  position: relative;
  margin: 0;
  padding: 0;
}
h1 {
  font-variant-caps: all-petite-caps;
}
section h1 {
  padding-top: 1em;
  grid-column: 1 / -1;
}

/*
Dropdown
*/
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  padding: 0;
  display: none;
  position: absolute;
  background-color: rgb(204, 17, 51);
  min-width: 160px;
  z-index: 3;
  right: 0;
}
.dropdown-content a {
  color: white; /* Change text color to white */
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: rgba(255,255,255,0.3);
}
.dropdown:hover .dropdown-content {
  display: block;
}
.main-menu {
  display: contents;
}
.main-menu .menu-content {
  display: contents;
}
.main-menu a {
  color: white;
  padding: 0 1rem;
}

/*
Language dropdown
*/
.language-dropdown {
  margin-left: auto;
  margin-right: 1em;
}
.language-dropdown .dropdown-content {
  padding-top: 1rem;
}
.language-dropdown  .dropdown-content a.lang-selected {
  background-color: white; /* Define the background color for selected language */
  color: rgb(204, 17, 51) !important;
  cursor:default;
}
.language-dropdown .dropdown-content a.lang-selected:hover {
  background-color: white;
  filter: unset;
}

/*
Home
*/
#home {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 5em;
}
#home > div {
  padding: 3em 2em;
  margin-top: 50vh;
  min-width: 50%;
  background-color: rgba(204, 17, 51, 50%);
  color: white;
}
#home > div > p {
  color: white;
}
#home > div > h1 {
  padding-top: 0 !important;
}

/* 
Product List 
*/
#product-list {
  background: white;
  max-width: unset;
  display: grid;
  gap: 1.5em;
  grid-template-columns: repeat(auto-fill, minmax(15em, 1fr));
  padding: 3em;
  color: black;
}
#product-list .product-list-clear-highlight-button {
  font-size: 12pt;
}
#product-list .product-list-clear-highlight-button.hidden {
  display: none;
}
#product-list h1 {
  margin-bottom: 0.5rem;
}
.product-list-toolbar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
}
.product-quick-filter {
  border: 1px solid #aaa;
  border-radius: 2rem;
  height: 1rem;
  padding: 0.5rem 2rem;
  position: relative;
  left: -2rem;
  width: 20rem;
}
#product-list-num-filter {
  padding: 0 2rem 0 0;
}
#product-list-num-filter.hidden {
  display: none;
}
label[for=product-quick-filter] {
  z-index: 1;
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  color: #aaa
}
.product-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: 0.3s;
}
.product-card img {
  aspect-ratio: 0.75;
  width: 15em;
  object-fit: cover;
}
.product-card .product-name {
  padding: 1em 0;
  font-size: 1.2em;
  font-weight: bold;
  text-align: center;
}
.product-card.shadowed {
  /* filter: brightness(20%) contrast(50%) brightness(200%); */
  display: none;
}
/*
About us
*/
#about-us {
  height: 100vh;
  display: flex;
  width: calc(50% - 20vh);
  padding: 0 10vh;
  flex-direction: column;
  justify-content: center;
  background-color: rgb(204, 17, 51);
  color: white;
  align-items: flex-start;
}
#about-us p {
  padding: 0.5em 0;
}

/*
product details
*/
.product-details {
  display: grid;
  position: fixed;
  top: 3em;
  left: 0;
  width: calc(100% - 3em);
  height: calc(100% - 6em);
  padding: 1.5em;
  background-color: white;
  row-gap: 1em;
}
.product-details .product-image {
  max-width: 640px;
  height: 100%;
  grid-column: 1;
  grid-row: 1 / 10;
}
.product-details h1 {
  grid-column: 2;
}
.product-details p {
  grid-column: 2;
}
.product-details p::before {
  display: block;
  font-weight: bold;
  padding-bottom: 0.5em;
}
.product-name {
  margin-top: 0;
}
.product-selling-point {
  padding-bottom: 2em;
}
.product-content::before {
  content: "Content";
}
.product-function::before {
  content: "Function";
}
.product-ingredients::before {
  content: "Ingredients";
}
.product-usage::before {
  content: "Usage";
}
.product-stock {
  display: flex;
}
.add-to-cart-button {
  display: grid;
  cursor: pointer;
  grid-template-columns: auto auto;
  padding: 1rem;
  column-gap: 0.5rem;
  align-items: center;
}
.add-to-cart-button.disabled {
  background-color: #c9c9c9;
  color: white;
}

.product-back-to-list-text-button {
  display: flex;
  flex-direction: row;
  align-items: center;
  font-size: 1em;
  margin: 0;
}


.menu-box {
  position: absolute;
  padding: 20px;
  float: left;
  z-index: 2;
}
.lang-box {
  padding: 20px;
  float: right;
}
.dropbtn {
  cursor: pointer;
  width: 36px;
  border: none;
  border-radius: 10%;
  position: relative;
  overflow: hidden;
  background-color: transparent;
}

.dropbtn-menu {
  cursor: pointer;
  border: none;
  background-color: transparent;
  color: white;
  font-size: 1.25rem;
}

.lang-icon {
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
}


@media screen and (max-height: 950px) and (max-aspect-ratio: 1/1) {
  body {
    background-position: 75% 0;
  }
  header .brand {
    font-size: 1.2rem;
    margin-right: auto;
  }
  .language-dropdown {
    margin-left: 0;
    margin-right: 0;
  }
  .main-menu {
    position: relative;
    display: inline-block;
    z-index: 2;
  }
  .main-menu::before {
    content: 'menu';
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
  }
  .main-menu::before,
  .language-dropdown > span {
    padding: 0.5rem;
  }
  .dropdown-content, 
  .main-menu .menu-content {
    padding: 0;
    display: none;
    position: absolute;
    background-color: rgb(204, 17, 51);
    min-width: 160px;
    z-index: 3;
    right: 0;
  }
  .dropdown-content a, 
  .menu-content a {
    color: white; /* Change text color to white */
    padding: 12px 16px;
    text-decoration: none;
    display: block;
  }

  .dropdown.dropdown-selected .dropdown-content,
  .main-menu.dropdown-selected .menu-content {
    display: block;
  }
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.2rem;
  }
  #home {
    padding: 0;
  }
  #home div {
    padding: 1rem;
    width: calc(100% - 2rem);
    min-width: unset;
    background-color: rgb(204, 17, 51);
  }

  #product-list {
    padding: 2rem 0.5rem;
    gap: 0.5rem;
  }
  .product-list-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
  label[for=product-quick-filter] {
    margin-left: 0.5rem;
  }
  .product-quick-filter {
    top: -1.8rem;
    left: 0;
  }
  .product-card {
    flex-direction: row;
    border-bottom: 1px dashed #aaa;
    align-items: flex-end;
  }
  .product-card .product-image {
    width: 5rem;
  }
  .product-card .product-name {
    text-align: left;
    padding: 0;
    margin: 0 0 0 0.5rem;
  }

  .product-details {
    overflow: auto;
  }
  .product-details h1 {
    grid-column: 1;
  }
  .product-details p {
    grid-column: 1;
  }
  .product-details .product-image {
    height: 50vh;
    max-width: unset;
    grid-row: 2 / 3;
    grid-column: 1;
    align-self: center;
  }
  .product-details .product-back-to-list-text-button {
    grid-row: 1 / 2;
  }

  #about-us {
    padding: 1rem;
    width: calc(100% - 2rem);
  }
}