.content
{
  border-top: 1px solid lightgray;
  padding: 0.75em;
  grid-gap: 0.5em;
  display: grid;
  grid-template-rows: auto auto auto auto auto 1fr;
}

.content .description
{
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.content .description,
.content .price
{
    font-size: 1.5em;
}

.content .category,
.content .product_number
{
  font-size: 1.25em;
  align-items: center;
  color: #222;
  display: flex;
  grid-gap: 0.5em;
}

.previews
{
  display: grid;
  grid-auto-flow: column;
  grid-gap: 0.5em;
  overflow: scroll;
  height: 100%;
}

.preview-wrapper
{
  color: #aaa;
  text-align: center;
  margin: auto;
  height: 100%;
  display: grid;
  align-items: center;
  box-sizing: border-box;
}

.content-item img
{
  box-sizing: border-box;
  border: 2px lightgray solid;
  border-radius: 1em;
  max-height: 25em;
  object-fit: cover;
}

@media only screen and (max-width: 500px)
{
  .content-item img
  {
     max-height: 20em;
  }
}

.preview-wrapper:has(input:checked)
{
  position: fixed;
  z-index: 1;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.preview-wrapper:has(input:checked) .content-item img
{
  border: none;
  border-radius: 0;
  max-height: 100vh;
  max-width: 100vw;
  margin: auto;
  object-fit: scale-down;
  border-radius: 0em;
  transition: 1s all;
  touch-action: pinch-zoom;
}

.preview-wrapper:has(input:checked):before
{
  content: "";
  position: fixed;
  z-index: -1;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #000;
}

.content .button
{
  font-size: 1em;
  margin: auto;
  width: 100%;
  background: #efe;
  border-color: green;
}

.content .button:hover
{
  background: #dfd;
}


.content:has(.ribbon)
{
  overflow: hidden;
  background: #dddd;
}

.content:has(.ribbon) .button
{
  display: none;
}

.content .ribbon
{
  position: absolute;
  background: red;
  align-content: center;
  text-align: center;
  margin: auto;
  width: 20em;
  line-height: 3em;
  transform: rotateZ(-45deg) translateY(-3em) translateX(-6.5em);
}

.inquiry
{
  margin: auto;
  margin-top: 1.5em;
  gap: 0.5em;
  max-width: 40em;
  display: flex;
  flex-direction: column;
}

.inquiry .button
{
  display: flex;
  flex-direction: row;
}

.inquiry .button img
{
  width: 3em;
  height: 3em;
}

.inquiry .expandable .options
{
  background: lightgray;
  display: flex;
  overflow: hidden;
  gap: 1em;
  max-height: 0em;
  box-sizing: border-box;
  padding: 0 1em;
  flex-direction: column;
  transition: ease-in 0.5s;
}

.inquiry .expandable:has(input:checked) .options
{
  padding: 1em;
  max-height: 30em;
  transition: ease-out 0.5s;
  transform: translateY(0%);
}

.wechat_qr
{
  margin: auto;
  width: 10em;
}

.inquiry .wechat
{
  flex: 1;
  margin-bottom: auto;
}
