/*
   Copyright (c) 2023 Capris Furniture. All rights reserved.
*/

body {
  --sidebar-width: 240px;
  --sidebar-background: rgba(248, 245, 236, 0.75);
  overflow: hidden;
}

#page-content {
  display: flex;
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
  height: 800px;
}

#sidebar-menu {
  background-color: #d1c99e38;
  position: fixed;
  height: 100%;
  width: var(--sidebar-width);
  text-align: center;
}

.sidebar {
  position: fixed;
  background-color: var(--side-bar-background);
  transition: right 0.3s ease-in;
  font-family: 'Roboto-Light', 'serif';
  font-size: 16px;
}

.sidebar img.logo {
  margin-top: 12px;
  margin-bottom: 12px;
  width: 100px;
}

.sidebar .nav {
  width: var(--sidebar-width);
}

.sidebar .nav .item {
  display: inline-flex;
  align-items:baseline;
  text-align: left;
  line-height: 28px;
  border-radius: 14px;
  width: calc(var(--sidebar-width) - 45px);
  padding: 2px 4px 2px 7px;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.6s ease;
}

.sidebar .nav .item:hover {
  background-color: rgba(0, 128, 128, 0.2);
}

.sidebar .nav .item.active {
  background-color: rgba(0, 128, 128, 0.2);
}

.sidebar.beachcraft .nav .item:hover {
  background-color: rgb(197 0 212 / 15%);
}

.sidebar.beachcraft .nav .item.active {
  background-color: rgb(197 0 212 / 15%);
}

.sidebar .nav .item img {
  width: 12px;
}

.sidebar .nav .item span {
  margin-left: 7px;
  color: black;
}

.sidebar .nav .item span.code {
  font-family: 'Lato', 'serif';
}

.sidebar .nav hr {
  width: calc(var(--sidebar-width) - 30px);
}

.sidebar .nav .product-line {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  font-family: 'Roboto-Regular', 'serif';
  font-size: 16px;
  cursor: pointer;
}

.sidebar .nav .product-line:not(:first-child) {
  margin-top: 20px;
}

.sidebar .nav .product-line span {
  width: 80%;
  text-align: left;
  margin: 0 20px;
}

.sidebar .nav .product-line img {
  width: 18px;
  padding-right: 20px;
}

.sidebar .nav .category {
  display: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-in-out;
}

.sidebar .nav .product-line.active + .category {
  display: block;
  max-height: 500px;
  transition: max-height 0.5s ease-in-out;
}

.menu-card .menu-items-container .product-line {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  font-family: 'Roboto-Regular', 'serif';
  font-size: 16px;
  cursor: pointer;
}

#gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  align-content: start;
  padding: 0px 20px 60px;
  box-sizing: border-box;
}

#gallery div {
  width: 380px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

#gallery img {
  width: 100%;
  height: 200px;
  object-fit: contain;
}

#gallery .card {
  margin-top: 5px;
  margin-bottom: 20px;
  transition: transform 0.5s ease;
  cursor: pointer;
  position: relative;
  z-index: 2;
}

#gallery .card:hover {
  transform: scale(1.05);
  position: relative;
  z-index: 3;
}

#gallery p {
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 1px;
  word-spacing: 1px;
  text-align: center;
  margin-top: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.pr-20 {
  padding-right: 20px;
}

.header-title-container {
  display: flex;
  align-items: center;
}

.header-title-container > div > a > img {
  margin-left: 0;
  margin-top: 4px;
}

.inspiration-links {
  margin: 0 0 12px;
  font-size: 16px;
  color: teal;
}

.inspiration-links a {
  text-decoration: none;
  vertical-align: middle;
}

@media screen and (min-width: 600px) {
  #gallery div {
    max-width: calc(50% - 10px);
  }
}

@media screen and (min-width: 900px) {
  #gallery div {
    max-width: calc(33.33% - 10px);
  }
}

@media screen and (min-width: 1024px) {
  #gallery {
    margin-left: var(--sidebar-width);
  }

  #action-btn {
    display: none !important;
  }

  #sidebar-menu {
    display: block !important;
  }
}

/* -------------------------------------------------------------------------------- */
/* OPTIONS */
/* -------------------------------------------------------------------------------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 2px 10px;
  border-radius: 20px;
  background-color: white;
  border: 1px solid var(--accent-color-2-darker);
  margin: 4px 12px;
  cursor: pointer;
}

.badge.selected {
  background-color: rgba(0, 128, 128, 0.2);
}

.badge-hidden {
  display: none;
}

.badge-text {
  margin: 4px;
  display: inline-block;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.badge-icon {
  border: none;
  background-color: transparent;
  cursor: pointer;
  padding: 4px;
}

.badge-icon img {
  width: 25px;
}

/* -------------------------------------------------------------------------------- */
/* SEARCH */
/* -------------------------------------------------------------------------------- */

#search-bar {
  font-size: 16px;
  padding: 15px;
  position: fixed;
  top: 0;
  transform: translateY(-100%);
  transition: transform 0.5s linear;
  display: flex;
  /* justify-content: space-between; */
  flex-direction: column;
  width: -webkit-fill-available;
  background-color: var(--secondary-color);
  z-index: var(--z-index-level1);
}

#search-bar.active {
  transform: translateY(0%);
}

.search-box {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.search-box input {
  flex: 1;
}

.input-elevated {
  font-size: 16px;
  font-family: 'Roboto-Regular', 'serif';
  line-height: 1.5;
  border: none;
  background: #ffffff;
  background-image: url("images/search.svg");
  background-repeat: no-repeat;
  background-position: 10px 10px;
  background-size: 20px 20px;
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.08);
  border-radius: 5px;
  width: 300px;
  padding: 0.5em 1em 0.5em 2.5em;
}

.input-elevated::placeholder {
  color: #838d99;
}

.input-elevated:focus {
  outline: none;
}

.closeBtn {
  width: 32px;
  height: 32px;
  opacity: 0.3;
  display: flex;
  justify-content: center;
  align-items: center;
}

.closeBtn:hover {
  opacity: 1;
}

/* -------------------------------------------------------------------------------- */
/* FORM */
/* -------------------------------------------------------------------------------- */

.fields-search {
  display: flex;
  flex-wrap: wrap;
}

.action-panel {
  display: flex;
  flex: 50%;
  justify-content: flex-start;
}

.fields-more {
  display: flex;
  flex: 50%;
  justify-content: flex-end
}

.fields-more p {
  display: flex;
  align-items: center;
}

.fields-more p u {
  padding-bottom: 5px;
  font-family: 'Roboto-Light', 'serif';
}

.form-fields {
  transition: transform 0.3s linear;
  font-size: 16px;
  background-color: #ffffff;
  margin-left: 10px;
  margin-right: 10px;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.button {
  border: 1px solid rgba(27, 31, 35, .15);
  border-radius: 6px;
  box-sizing: border-box;
  cursor: pointer;
  font-family: 'Roboto-Regular', 'serif';
  font-size: 16px;
  height: 36px;
  padding: 6px 16px;
  margin: 8px 12px;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.button.primary {
  background-color: var(--accent-color-2);
  color: #fff;
}

.button.secondary {
  background-color: var(--primary-color);
  color: black;
}

.button:focus:not(:focus-visible):not(.focus-visible) {
  box-shadow: none;
  outline: none;
}

.button:hover {
  background-color: var(--accent-color-2);
}

.button.secondary:hover {
  background-color: rgb(232, 232, 232);
}

.button:focus {
  box-shadow: rgba(0, 128, 128, .4) 0 0 0 3px;
  outline: none;
}

.button:disabled {
  background-color: rgba(0, 128, 128, .2);
  border-color: rgba(27, 31, 35, .1);
  color: rgba(255, 255, 255, .8);
  cursor: default;
}

.button:active {
  background-color: rgba(0, 128, 128, .4);
  box-shadow: rgba(20, 70, 32, .2) 0 1px 0 inset;
}

/* -------------------------------------------------------------------------------- */
/* FABRIC STATUS - MODAL */
/* -------------------------------------------------------------------------------- */

#fabric-status-modal .modal-content {
  width: auto;
  height: 560px;
  overflow: hidden;
}

iframe {
  overflow: hidden;
}
