:root {
  --product-bg: #989898;
  --product-tag1: #e5e5e5;
  --product-tag2: #838383;
  --product-green: #539286;
  --product-brown: #928051;
  --product-type: #bfbfbf;
}

.bg-product {
  background-color: var(--product-bg);
}

.search-box {
  display: inline-flex;
  position: relative;
  margin: 2rem auto;
  left: 50%;
  transform: translateX(-50%);
  font-size: 80%;
}

.search-box .fa-search {
  color: var(--gray);
  position: absolute;
  top: 50%;
  right: 0.5rem;
  transform: translateY(-50%);
  font-size: 120%;
  cursor: pointer;
  transition: 0.2s;
}

.search-box .fa-search:hover {
  opacity: 0.5;
}

.search-label {
  color: var(--white);
  background-color: var(--gray);
  padding: 0.25rem 1rem;
  border: thin solid var(--gray);
}

.search-input {
  padding: 0.25rem 2rem 0.25rem 0.5rem;
  border: thin solid var(--gray);
  outline: none;
  width: 15rem;
}

.products-frame {
  border: thin solid var(--gray);
  padding: 2rem 1.5rem;
  line-height: var(--bs-body-line-height);
}

.products-frame.small {
  font-size: 12px;
}

.products-frame .products-frame-title {
  border-bottom: thin solid var(--dark);
}

.sub-box + .sub-box {
  margin-top: 5rem !important;
}

.products-row {
  margin-left: 0;
  margin-right: 0;
}

.products.category .products-row {
  margin-top: 0.5rem;
}

.products.category .products-row + .products-row {
  margin-top: 1rem;
}

.products-row > [class^=col] {
  border-top: thin solid var(--product-bg);
  border-bottom: thin solid var(--product-bg);
  border-right: thin solid var(--product-bg);
  padding-top: 0.125rem;
  padding-bottom: 0.125rem;
}

.products-row > [class^=col]:first-child {
  border-left: thin solid var(--product-bg);
}

.products-row.border-top-none > [class^=col] {
  border-top: none;
}

.products-row + .products-row > [class^=col] {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.length-gauge {
  background-color: var(--product-bg);
}

.length-gauge.min {
  background-color: var(--product-bg);
}
.length-triangle {
  color: var(--product-bg);
}

.color-gauge,
.color-num,
.light-source-color,
.length-gauge,
.length-num {
  display: inline-block;
  line-height: 1;
}

.light-source-color {
  width: 2.5rem;
  text-align: justify;
  text-align-last: justify;
}

.color-info + .color-info,
br + .length-gauge,
br + .length-num {
  margin-top: 0.25rem;
}

.hole-circle {
  display: inline-block;
  text-align: center;
  border: thin solid var(--dark);
  border-radius: 100rem;
  padding: 0.5rem;
  margin: auto;
}

.colors-row {
  margin-left: calc(-.5 * var(--bs-gutter-x) - 0.5px);
}

.color-col {
  flex: 0 0 auto;
  width: calc(100% / 8);
  font-size: 10px;
  border-top: thin solid var(--product-bg);
  border-left: thin solid var(--product-bg);
  margin-bottom: 0.5rem;
}

.colors-row .color-col:nth-child(8n + 1) {
  border-left-color: transparent;
}

.color-col.col-span-2 {
  width: calc((100% / 8) * 2);
}

.color-col.col-span-3 {
  width: calc((100% / 8) * 3);
}

.color-col.col-span-4 {
  width: calc((100% / 8) * 4);
}

.color-col.col-span-5 {
  width: calc((100% / 8) * 5);
}

.color-col.col-span-6 {
  width: calc((100% / 8) * 6);
}

.color-col.col-span-7 {
  width: calc((100% / 8) * 7);
}

.color-col.col-span-8 {
  width: 100%;
}

.color-col .col {
  border-bottom: thin solid var(--product-bg);
  padding: 0.25rem 0.15rem;
}

#lamps .lamps-frame {
  margin-bottom: 0.5rem;
  border-right: thin solid var(--product-bg);
}

#lamps .color-col {
  margin-bottom: 0;
}

#lamps .colors-row .color-col:nth-child(8n + 1) {
  border-left-color: var(--product-bg);
}

#lamps .color-col .col {
  padding-left: 1rem;
  padding-right: 1rem;
}

.color-short_name {
  color: var(--white);
  border-top: thin solid var(--product-bg);
  border-bottom: thin solid var(--product-bg);
  border-right: thin solid var(--product-bg);
  padding-left: 0.5px;
  padding-right: 0.5px;
}

.color-short_name:first-of-type {
  border-left: thin solid var(--product-bg);
}

.product-tag {
  display: inline-block;
  width: 4rem;
  border-radius: 0.25rem;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.1;
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
  margin-right: 1rem;
  padding: 0.35rem 0;
  background: linear-gradient(to bottom, var(--product-bg) 0%, var(--product-tag1) 50%, var(--product-tag2) 100%);
}

.product-tag .smallest {
  display: inline-block;
  transform: scale(0.8);
  transform-origin: bottom;
  margin-top: -5.5px;
  width: 100%;
}

.line_up-row {
  min-height: calc(1.5rem * 1.5);
}

.line_up-row > .line_up-tab {
  white-space: nowrap;
  text-align: center;
  transition: color .5s, background-color .5s;
  max-height: calc(1.5rem * 1.5);
  padding-top: 0.25rem !important;
  padding-bottom: 0.25rem !important;
}

.line_up-row + .line_up-row {
  margin-top: 0.25rem;
}

.line_up-row + .line_up-row > .line_up-tab {
  max-width: calc(100% / 8);
}

.line_up-row > .line_up-tab.active {
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
}

.line_up-row > .line_up-tab.active,
.line_up-row > .line_up-tab.active:hover,
.line_up-row > .line_up-tab:hover {
  color: var(--white);
  background-color: var(--product-bg);
}

.line_up-row > .line_up-tab.active:hover {
  opacity: 1;
}

.series + .series {
  margin-top: 3rem;
}

.series-name {
  display: flex;
  align-items: center;
  border-bottom: thin solid var(--dark);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.series-name::before {
  content: "";
  display: inline-block;
  width: 1rem;
  height: 1rem;
  margin-top: 0.25rem;
  margin-right: 0.5rem;
}

.series:nth-of-type(2n + 1) .series-name::before {
  background-color: var(--product-green);
}

.series:nth-of-type(2n) .series-name::before {
  background-color: var(--product-brown);
}

.series.option .series-name::before {
  background-color: var(--product-bg);
}

.series-image {
  margin-top: 1rem;
  border: thin solid var(--product-bg);
  border-bottom: none;
}

.series-info {
  border: thin solid var(--product-bg);
  border-top: none;
  padding: 0.5rem 0.75rem;
}

.model-name {
  font-size: 12px;
  border-left: 4px solid var(--product-green);
  padding-left: 0.25rem;
  margin-bottom: 1rem;
}

.series:nth-of-type(2) .model-name {
  border-left-color: var(--product-brown);
}

.series.option .model-name {
  border-left-color: var(--product-bg);
}

.watt-head,
.watt-body {
  width: 100%;
  text-align: center;
  border: thin solid var(--dark);
  font-size: 10px;
}

.watt-head {
  background-color: var(--light-gray);
  border-bottom: none;
}

.type-name,
.color-name {
  text-align: center;
  background-color: var(--product-type);
  color: var(--white);
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.type-name.product_type {
  color: var(--dark);
  background-color: var(--white);
  border: thin solid var(--dark);
}

.download-frame {
  background-color: var(--light-gray);
  border: thin solid var(--dark);
}

.download-caption {
  text-align: center;
  font-size: 10px;
  margin-bottom: 0;
}

.download-link {
  display: block;
  color: white;
  background-color: var(--product-bg);
  width: 100%;
  text-align: center;
  font-size: 10px;
}
.download-link:hover {
  color: white;
}

.download-button {
  display: block;
  width: 100%;
  text-align: center;
  background-color: var(--light-gray);
  border: thin solid var(--dark);
}

.download-link.disabled,
.download-button.disabled {
  opacity: 0.2 !important;
  cursor: auto;
}
.download-link.disabled:hover {
  color: white;
}

.rotate-90 {
  transform: rotate(90deg);
}

#lightbox_overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgb(0,0,0,0.8);
  z-index: 100000;
}

#lightbox_overlay .close {
  position: absolute;
  top: 20px;
  right: calc(2% + 6px);
  width: 30px;
  height: 30px;
  z-index: 100002;
}

#lightbox_overlay .lightbox-download {
  position: absolute;
  top: 20px;
  left: calc(2% - 6px);
  width: 30px;
  height: 30px;
  z-index: 100002;
}

#lightbox {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: 0.2s;
  width: auto;
  height: auto;
  box-shadow: 0 0 8px rgba(0,0,0,.6);
  z-index: 100001;
}

#lightbox .lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
}

#lightbox .lightbox-pdf {
  width: 90vw;
  height: 90vh;
}
