/* ------------------------------------------Page Layout------------------------------------------------------- */

.archive {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
        'banner'
        'sidebar'
        'content';
}
.archive .banner {
  grid-area: banner;
}
.archive .sidebar-nav {
  grid-area: sidebar;
  display: none;
}

.archive .content {
  grid-area: content;
}

.archive .banner .main-banner,
.wishlist .banner .main-banner {
  height: 150px;
  background-color: #bfe7e7;
}

.text-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: min(5vw, 20px);
  margin: auto;
}
.text-content h2 {
  margin-bottom: 0;
}
.text-content li {
  padding-bottom: 1rem;
  line-height: 1.3rem;
}

.text-content .faq {
  width: 100%;
  border: none;
}
.text-content .faq .question-symbol {
  width: 2rem;
}
.text-content .faq .question {
  font-weight: bold;
  background-color: Gainsboro;
}
.text-content .faq td,
.text-content .faq .spacer,
.text-content .faq .spacer td {
  border: none;
}


/* ---------------------------------------Archive Sidebar--------------------------------------------------- */
.archive .sidebar-nav {
  display: none;
  opacity: 0;
  inset: 0;
  right: 100%;
  transition: 0.5s;
}

.archive .sidebar-nav.active {
  position: fixed;
  overflow-y: auto;
  inset: 0;
  opacity: 1;
  width: auto;
  height: 100vh;
  background-color: rgba(191, 231, 231, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 11;
  transition: 0.5s;

  display: flex;
  flex-direction: column;
  padding: 50px;
}
.sidebar-nav .close-button {
  /* display: none; */
  color: black;
  position: absolute;
  top: 30px;
  right: 30px;
  border: none;
  background: transparent;
  width: 30px;
  height: 30px;
  padding: 0;
  z-index: 100;
  font-size: 2rem;
  cursor: pointer;
}

#sort {
  font-size: 0.9rem;
  margin: 0.5em 0;
  padding: 0.5em;
  border: none;
}

.archive .sidebar-nav .categories,
.archive .sidebar-nav .filter-options,
.archive .sidebar-nav .prices {
  width: 1rem;
  height: 1rem;
  vertical-align: middle;
}
.archive .sidebar-nav .categories + label,
.archive .sidebar-nav .filter-options + label,
.archive .sidebar-nav .prices + label {
  color: black;
  vertical-align: middle;
  font-size: 0.9rem;
}
.archive .sidebar-nav div>h2 {
  color: #279e9b;
  font-size: 1.17rem;
}


.filter {
  display: flex;
  flex-direction: row;
  justify-content: start;
  align-items: center;
  gap: 10px;
}
.display-items-dropdown {
  margin-left: auto;
}
.filter-button {
  font-size: 1rem;
  margin-top: 0.5rem;
  padding: 0.5rem;
  border: 1px solid #279e9b;
  border-radius: 20px;
  cursor: pointer;
  width: 100%;
  font-family: "Noto Sans", sans-serif;
  /* font-weight: 600; */
  background-color: #bfe7e7;
  color: #279e9b;
}

.filter-button.w200px {
  width: 200px;
}
.filter-button:hover {
  background-color: #279e9b;
  color: white;
}
.filter-button:disabled {
  background-color: #eeeeee;
  color: #dddd;
}

/* ------------------------------------------Product Elements------------------------------------------------------- */
.archive .archive-info {
  grid-column: span 2;
  margin-right: auto;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap-reverse;
  gap: 8px;
  align-items: center;
  width: 100%;
}
.archive .archive-info .sidebar-icon {
  margin-left: auto;
  margin-right: 0.5rem;
}
.archive .archive-info .sidebar-icon button {
  font-size: 1rem;
  margin: 0.5rem 0;
  padding: 0.5rem 0.8rem;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  background-color: #279e9b;
  color: white;
}
.archive .archive-info .sidebar-icon button:hover {
  background-color: #bfe7e7;
  color: white;
}

.archive .products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  place-content: start;
  width: 100vw;
  margin: 20px auto 100px auto;
  justify-items: center;
}

.nodata {
  grid-column: span 2;
  text-align: center;
}
.products, .products2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  place-content: start;
  width: 100vw;
  margin: 100px auto;
  justify-items: center;
}
.products2 {
  grid-gap: 5px;
}
.products-title {
  grid-column: span 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0 20px;
  /* padding-left: 10px; */
}
.products-title button {
  font-size: 0.7rem;
  font-weight: 700;
  color: #279e9b;
  border: 1px solid #279e9b;
  background-color: unset;
  padding: 10px 20px;
  text-align: center;
  margin: 4px 2px;
  cursor: pointer;
  border-radius: 16px;
}
.products-title button:hover {
  background-color: #279e9b;
  color: #bfe7e7;
}
.product-thumb {
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: center;
  width: 100%;
}

.product-image {
  position: relative;
  border: 1px solid WhiteSmoke;
  display: flex;
}
.product-image img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4/5;
  /* min-height: 320px; */
}

.product-thumb2 {
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: center;
  width: 100%;
  background-color: white;
  border-radius: 15px;
}
.product-image2 {
  position: relative;
  display: flex;
  margin: 10px 15px;
}
.product-image2 img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4/5;
  border-radius: 15px;
  /* min-height: 320px; */
}

.products .cart-empty {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.wishlist-button {
  position: absolute;
  top: 10px;
  right: 10px;
  color: #279e9b;
  cursor: pointer;
}
.wishlist-button i {
  font-size: 1.5rem;
}
.wishlist-button i:hover {
  color: #bfe7e7;
}

.product-info {
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: start;
  border: 1px solid WhiteSmoke;
  width: 100%;
  padding: 10px;
  height: 100%;
  position: relative;
}
.product-info p {
  margin: 0;
}

.product-info .product-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 1rem 0;
}
.product-info .product-price {
  margin: 1rem 0;
  position: relative;
  bottom: 0;
}

.product-info .product-sold {
  font-size: 0.8rem;
  font-style: italic;
  margin: 0;
  height: 1rem;
  position: relative;
  bottom: 0;
}
.product-info .category {
  padding: 5px 8px;
  border-radius: 10px;
  background-color: #e0eff6;
  color: black;
}

.product-info .category:hover {
  background-color: #279e9b;
  color: white;
}

.product-info2 {
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: center;
  /* border: 1px solid WhiteSmoke; */
  width: 100%;
  padding: 10px;
  height: 100%;
  position: relative;
}

.product-info2 .product-name p {
  font-size: 1.3rem;
  margin: 0;
}
.product-info2 .product-price p {
  margin: 0.5rem 0;
}

.product-categories {
  display: flex;
  flex-direction: row;
  flex-flow: wrap;
  gap: 5px;
  margin: 5px 0;
}
.product-categories a {
  text-wrap: nowrap;
}

/* ---------------------------------------CKEditor--------------------------------------------------- */

/* img {
  width: 100%;
  height: 100%;
  object-fit: contain;
} */

figure.image_resized {
  overflow: hidden,
  backgroundSize: contain,
}
figure.image-style-align-center {
  /* display: flex;
  justify-items: end; */
  margin: auto;
}
figure.image-style-align-right{
  margin: auto;
  margin-right: 0;
}
figure.image-style-align-left{
  margin: auto;
  margin-left: 0;
}

/* ------------------------------------------Product Page------------------------------------------------------- */
.product {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 2rem;
  width: 100%;
}
.product .mobile-info {
  display: flex;
  justify-content: start;
  width: min(100%, 500px);
  padding: 0 2rem;
}
.product .images {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
  margin: auto;
  margin-right: 0;
}

.product .images .main-image img,
.product .images .thumbnails .thumbset img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4/5;
}

.product .images .main-image .hide {
  display: none;
  visibility: hidden;
}

.product .images .thumbnails .thumbset {
  display: flex;
}
.product .images .thumbnails .thumbset>a {
  cursor: pointer;
}

.product .images .thumbnails .thumbset.hide {
  display: none;
  visibility: hidden;
}

.product .prices {
  display: flex;
  flex-direction: row;
}
.product .prices .discounted-price {
  margin-left: 0.5rem;
}

.product .info {
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: start;
  height: 100%;
  width: min(100%, 500px);
  padding: 0 2rem;
}
.product .info .product-name {
  display: none;
}
.product #variations {
  width: 100%;
}
.product #variations .types {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 1em 0;
}

.product .info .quantity {
  font-size: 1rem;
  margin: 0.5em 0;
  padding: 0.5em;
  width: 100px;
  background-color: White;
  color: black;
}
.product .info .quantity:disabled {
  background-color: White;
  color: darkgrey;
}
.product .info #add-to-cart {
  font-size: 1rem;
  margin-top: 0.5rem;
  padding: 0.5rem;
  border: none;
  border-radius: 20px;
  width: min(70vw, 200px);
  background-color: var(--colour-1);
  color: black;
  cursor: pointer;
}
.product .info #add-to-cart:hover {
  background-color: #279e9b;
  color: white;
}
.options {
  background-color: White;
  color: black;
  padding: 0.5em 0.3em;
  border: 1px solid grey;
  min-width: 50px;
  width: auto;
  cursor: pointer;
}
.options.select:disabled {
  background-color: darkgrey;
  color: white;
  cursor: unset;
}

.options:disabled {
  background-color: WhiteSmoke;
  color: darkgrey;
  border-color: darkgrey;
}

.strikethrough {
  text-decoration: line-through;
}
.product .wishlist-button {
  position: relative;
  cursor: pointer;
  padding: 5px;
  inset: 0;
}
.product .wishlist-button i {
  font-size: 1.3rem;
}

.product .description {
  width: min(100%, 500px);
  padding: 0 1rem;
}
.product .description>* {
  margin: 2rem 0;
}


@media screen and (min-width: 425px) {
  .products-title h2 {
    font-size: 2rem;
  }
  .text-content {
    padding: min(10vw, 50px);
  }
  .product .description {
    padding: 0 2rem;
  }
}
@media screen and (min-width: 600px) {
  .archive .products,
  .products, .products2 {
    grid-template-columns: repeat(3, 1fr);
  }
  .products-title {
    grid-column: span 3;
  }
  .archive .archive-info {
    grid-column: span 3;
  }
  .nodata {
    grid-column: span 3;
  }
}
@media screen and (min-width: 769px) {

  .product {
    grid-template-columns: 1fr 1fr;
  }
  .product .mobile-info {
    display: none;
  }
  .product .images {
    align-items: end;
    width: min(100%, 500px);
  }
  .product .info {
    width: min(100%, 500px);
    padding-left: 0;
    margin: auto;
    margin-left: 0;
  }
  .product .info .product-name {
    display: block;
  }
  .product .description {
    grid-column: span 2;
    width: min(100%, 1000px);
    padding: 0 5rem;
  }
}
@media screen and (min-width: 1024px) {
  .archive .sidebar-nav {
    display: flex;
    flex-direction: column;
    width: 250px;
    height: 100%;
    padding: 20px;
    background-color: #bfe7e7;
    opacity: 1;
  }
  .archive .sidebar-nav .close-button {
    display: none;
  }
  .products {
    grid-template-columns: repeat(4, 1fr);
    width: min(90vw, 1200px);
    grid-gap: 20px;
  }
  .products2 {
    grid-template-columns: repeat(4, 1fr);
    width: min(90vw, 1000px);
    grid-gap: 20px;
  }
  .products-title {
    grid-column: span 4;
    padding: 0 50px;
    /* width: 100%; */
    /* padding-left: 20px; */
  }
  .archive .archive-info {
    grid-column: span 4;
  }
  .archive {
    grid-template-columns: 250px 1fr;
    grid-template-areas:
          'banner banner'
          'sidebar content';
  }
  .archive .sidebar {
    display: block;
  }
  .archive .content.products {
    width: min(calc(90vw - 250px), 1200px);
    margin-left: 50px;
  }
  .archive .products {
    grid-template-columns: repeat(4, 1fr);
  }
  .archive .sidebar-icon {
    display: none;
  }
  .nodata {
    grid-column: span 4;
  }
}
@media screen and (min-width: 1200px) {
/* Extra */
}
@media screen and (min-width: 1440px) {
/* Extra */
}
