:root {
  --main-bg-color: #f5f5f5;
  --text-color: black;
}

h3 {
  font-weight: bold;
}

th {
  font-size: 1.25rem;
}

button {
  background-color: transparent;
  border-style: none;
}

body {
  margin: 0px;
  font-family: Arial !important;
  color: var(--text-color) !important;
}

main {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.nav-header{
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#back{
  padding: 0px;
}

#navigation {
  margin-right: auto;
  margin-left: auto;
}

#categories div,
#categories button {
  color: var(--text-color) !important;
}

#contact span {
  font-size: 1.15rem;
  font-style: italic;
}

.amplitec {
  color: blue;
}

.bold {
  font-weight: bold;
}

.count {
  font-size: 0.8rem;
  color: gray;
  padding-left: 5px;
}

.categories-container,
#right-content {
  box-shadow: 4px 4px 4px #888888;
  border-radius: 5px;
}

header,
#list-container,
#details-container {
  border-radius: 5px;
}

header {
  display: flex;
  flex-shrink: 0;
  height: 47px;
  justify-content: center;
  align-items: center;
  background-color: var(--main-bg-color);
  font-weight: bold;
  font-size: 1.5rem;
  font-style: italic;
  margin-top: 10px;
}

#container {
  display: flex;
  flex: 1;
  background-color: #bbbaba;
}

.offcanvas-body,
.offcanvas-start.categories-container {
  flex: 1 0 15% !important;
  background-color: var(--main-bg-color) !important;
  display: flex;
  flex-direction: column;
}

.offcanvas-body {
  margin-top: 5px !important;
  padding: 5px !important;
}

.offcanvas-start.categories-container {
  margin: 10px;
  margin-right: 0px;
}

.navbar-toggler-icon {
  --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-toggler {
  margin-right: auto;
}

#categories {
  flex: 1 0 0;
  overflow-y: auto;
  scrollbar-color: #8b8b8b #f5f5f5;
}

.button-wrapper {
  display: flex;
  align-items: flex-end;
}

.button-wrapper .btn {
  --bs-btn-border-width: 0px;
}

.button-wrapper button.btn{
  padding-right: 0px;
}

#contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-weight: bold;
  font-size: 1.15rem;
  padding-bottom: 10px;
}

.dropdown-toggle {
  outline: 0;
}

.categories .category-button,
.categories .subcategory-button {
  display: flex;
  align-items: center;
  gap: 5px;
}

.subcategory-button {
  text-align: left;
}

.categories .category-button {
  font-size: 1.25rem;
}

.categories .subcategory-button {
  font-size: 1.1rem;
}

.btn-toggle::before {
  display: inline-block;
  width: 1.25em;
  line-height: 0;
  content: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='rgba%280,0,0,.5%29' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 14l6-6-6-6'/%3e%3c/svg%3e");
  transition: transform .35s ease;
  transform-origin: .5em 50%;
}

[data-bs-theme="dark"] .btn-toggle::before {
  content: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='rgba%28255,255,255,.5%29' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 14l6-6-6-6'/%3e%3c/svg%3e");
}

.btn-toggle[aria-expanded="true"] {
  color: rgba(var(--bs-emphasis-color-rgb), .85);
}

.btn-toggle[aria-expanded="true"]::before {
  transform: rotate(90deg) !important;
}

.btn-toggle-nav button {
  padding: .1875rem .5rem;
  margin-top: .125rem;
  margin-left: 1.25rem;
}

#products-container,
#home,
#right-content {
  display: flex;
  flex-direction: column;
  flex-basis: 100%;
  background-color: var(--main-bg-color);
  margin: 10px 0px 10px 10px;
}

@media (max-width: 992px) {
  div#right-content {
    margin: 0px;
  }

  div.offcanvas-start.categories-container {
    margin: 0px;
  }

  #navigation {
    margin-right: auto;
  }

  .overview,
  div#files {
    justify-content: center;
    align-items: center;
    gap: 25px;
  }

  #details-container,
  #list-container {
    flex-basis: 100%;
  }

}

@media (max-width: 1515px) {
  .gear-ico {
    display: none;
  }

  .overview {
    justify-content: center;
    align-items: center;
    gap: 25px;
  }

}

#right-content {
  margin-right: 10px;
}

hr {
  margin-right: 10px !important;
  margin-left: 10px !important;
}

.hr-no-y-margin {
  margin-bottom: 0;
  margin-top: 0;
}

.hr-top-margin {
  margin-top: 1rem;
  margin-bottom: 0;
}

.hr-bottom-margin {
  margin-bottom: 1rem;
  margin-top: 0;
}

#list-container {
  display: flex;
  flex-wrap: wrap;
  flex: 1 0 0;
  background-color: var(--main-bg-color);
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  scrollbar-color: #8b8b8b #f5f5f5;
}

#list-container:has(#articles.display) {
  justify-content: flex-start;
  align-items: flex-start;
}

#articles {
  flex-wrap: wrap;
  gap: 29px;
}

#home {
  align-items: center;
  justify-content: center;
}

article {
  --img-scale: 1.001;
  --title-color: black;
  --link-icon-translate: -20px;
  --link-icon-opacity: 0;
  position: relative;
  border-radius: 16px;
  box-shadow: none;
  background: #9ed0fb;
  transform-origin: center;
  transition: all 0.4s ease-in-out;
  overflow: hidden;
  margin: 20px;
  max-height: 350px;
}

article button::after {
  position: absolute;
  inset-block: 0;
  inset-inline: 0;
  cursor: pointer;
  content: "";
}

article h2 {
  margin: 0 0 10px 0;
  font-family: "Arial";
  font-size: 1.4rem;
  letter-spacing: 0.06em;
  color: var(--title-color);
  transition: color 0.3s ease-out;
}

article figure {
  margin: 0;
  padding: 0;
  aspect-ratio: 5 / 5;
  overflow: hidden;
}

article img {
  max-width: 100%;
  transform-origin: center;
  transform: scale(var(--img-scale));
  transition: transform 0.4s ease-in-out;
  width: 250px;
  height: 250px;
  object-fit: contain;
  background-color: #e8f0f7;
}

#categories-container article {
  max-width: 400px;
  max-height: 500px;
}

#categories-container .product-name {
  word-wrap: break-word;
  white-space: normal;
  max-width: 220px;
}

.article-body {
  padding: 10px;
  background-color: #9ed0fb;
}

article button {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: black;
  border: none;
  outline: none;
  background-color: transparent;
  background-repeat: no-repeat;
  padding: 0px;
}

article button .icon {
  min-width: 24px;
  width: 24px;
  height: 24px;
  margin-left: 5px;
  transform: translateX(var(--link-icon-translate));
  opacity: var(--link-icon-opacity);
  transition: all 0.3s;
}

@keyframes appear {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes vanish {
  from {
    display: flex;
    opacity: 1;
  }

  to {
    display: none;
    opacity: 0;
  }
}

.display {
  display: flex;
  animation: appear 600ms;
}

article:has(:hover, :focus) {
  --img-scale: 1.1;
  --title-color: rgb(87, 86, 86);
  --link-icon-translate: 0;
  --link-icon-opacity: 1;
  box-shadow: rgba(0, 0, 0, 0.16) 0px 10px 36px 0px, rgba(0, 0, 0, 0.06) 0px 0px 0px 1px;
}

#details-container {
  display: flex;
  flex-direction: column;
  padding-top: 20px;
  background-color: var(--main-bg-color);
  flex: 1 0 0;
  overflow-y: auto;
  scrollbar-color: #8b8b8b #f5f5f5;
}

table {
  text-align: center;
  border: 1px solid black;
  table-layout: fixed;
}

thead tr,
thead td {
  --bs-table-bg: #304073;
  --bs-table-color: white;
}

tbody tr,
tbody td {
  --bs-table-bg: #4151a2;
  --bs-table-color: white;
}

tbody tr td:first-child,
tbody tr th:first-child {
  border-right: 1px solid #dee2e6;
}

.overview {
  display: flex;
  flex-wrap: wrap;

}

#gallery {
  flex: 0 1 50%;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 5px;
}

.view-gallery-button {
  font-size: 1.3rem;
  font-weight: bolder;
  margin-top: 5px;
}

.spotlight-rest {
  display: flex;
  align-items: center;
  gap: 5px;
}

.spotlight-more {
  height: 80px;
  width: 80px;
  text-align: center;
  vertical-align: middle;
  line-height: 80px;
  background-color: transparent;
  border: none;
}

.spotlight img {
  object-fit: contain;
}

#specifications {
  flex: 0 1 50%;
  padding-right: 25px;
}

.description-container,
#files-container {
  padding: 10px 25px 0px 25px;
}

.description-container h2,
#files-container h2 {
  margin-bottom: 15px;
  font-weight: bolder;
}

.description-container p {
  font-size: 1.5rem;
  letter-spacing: 0.04em;
}

#description {
  display: flex;
}

#files {
  padding-right: 25px;
  display: flex;
  row-gap: 10px;
  column-gap: 30px;
  flex-wrap: wrap;
  align-items: center;
}

.download {
  background-color: transparent;
  border: none;
}

.preview {
  text-decoration: none;
}

.file-wrapper {
  --img-scale: 1.001;
  --title-color: black;
  --link-icon-translate: -20px;
  --link-icon-opacity: 0;
  position: relative;
  border-radius: 16px;
  box-shadow: none;
  background: #fff;
  transform-origin: center;
  transition: all 0.4s ease-in-out;
  margin: 20px;
  margin-left: 0px;
  max-width: 450px;
  display: flex;
  flex-direction: row;
  padding: 10px;
}

.file-wrapper h2 {
  margin: 0 0 10px 0;
  font-family: "Arial";
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  color: var(--title-color);
  transition: color 0.3s ease-out;
}

.file-wrapper figure {
  margin: 0;
  padding: 10px;
  display: flex;
  align-items: center;
}

.file-wrapper img {
  transform-origin: center;
  transform: scale(var(--img-scale));
  transition: transform 0.4s ease-in-out;
  width: 50px;
  height: 50px;
}

.file-body {
  padding: 10px;
}

.file-wrapper a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: black;
  border: none;
  outline: none;
  background-color: transparent;
  background-repeat: no-repeat;
  padding: 0px;
  z-index: 999;
}

.file-wrapper a .icon {
  min-width: 24px;
  width: 24px;
  height: 24px;
  margin-left: 5px;
}

.file-wrapper:has(:hover, :focus) {
  --title-color: rgb(87, 86, 86);
  box-shadow: rgba(0, 0, 0, 0.16) 0px 10px 36px 0px, rgba(0, 0, 0, 0.06) 0px 0px 0px 1px;
}

.file-wrapper .actions {
  display: flex;
  justify-content: flex-start;
  gap: 20px;
}