@import "vars.css";

* {gap: 5px}

.selected {
  box-shadow:0 2px 3px var(--primaryColor);
}

.product-banner{
  font-family: var(--bodyFont), serif;
  position:absolute;
  top:10px;
  left:10px;
  padding:.5rem;
  border-radius:8px;
  background: var(--whiteColorDim0);
  box-shadow: 0 2px 10px var(--blackColorDim);
  font-size: clamp(.7rem, calc(100vw / 1024), 0.93rem);
  font-weight: bolder;
  letter-spacing: .025rem;
  text-transform:uppercase;
  z-index: 50;
}

.badge-pop{background:var(--darkGreyColor);color:#fff;}


.product-image {
  width: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 1;
  background: var(--lightGreyColor);
}

.product-title {
  margin-bottom: 1vh;
  font-family: var(--bodyFont), serif;
  font-weight: normal;
  font-size: clamp(1.5rem, calc(100vw / 1024), 2.0rem);
  border-bottom: 1px solid var(--blackColorDim);
}

.product-price {
  font-family: var(--bodyFont), serif;
  font-weight: bold;
  margin-bottom: 2vh;
  font-size: 1.8rem;
}

.product-price-stub {
  margin: 0 .3rem;
  font-size: .7rem;
  vertical-align: bottom;
  color: var(--lightGreyColor6);
}

.product-properties {
  font-family: var(--bodyFont), serif;
  margin-bottom: .75vh;
  gap: 20px;
  font-size: clamp(1.1rem, calc(100vw / 1024), 1.46rem);
}

.product-properties select {
  font-family: var(--bodyFont), serif;
  font-size: clamp(.9rem, calc(100vw / 1024), 1.2rem);
  font-weight: bold;
  opacity: 50%;
  min-width: 1vw;
  padding: 8px;
  box-shadow: 0 2px 10px var(--blackColorDim);
  color: var(--blackColor);
  border-radius: 8px;
  border-width: 1px;
  margin: 0 10px;
}

.product-properties option {
  font-family: var(--bodyFont), serif;
  font-size: clamp(.9rem, calc(100vw / 1024), 1.2rem);
  opacity: 50%;
  text-shadow: 0 2px 10px var(--blackColorDim);
  color: var(--blackColor);
  border-radius: 8px;
}

.product-properties option:active {
  background-color: var(--secondaryColor);
}

.product-properties select:hover,select:focus-visible{
  border-width: 1px;
  opacity: 100%;
  outline: none;
  cursor: pointer;
}


.product-nav {
  width: clamp(40px, calc(100vw / 1024), 66px);
  height: 60vh;
  margin: 30px 0;
  border-radius: 20px;
  border: none;
  cursor: default;
  transition: all 0.2s ease;
  position: absolute;
  z-index: 1005;
  gap: 0;
}

.product-arrow {
  margin: 25vh 0;
  width: 40px;
  padding: 0;
  text-align: center;
  position: fixed;
  cursor: pointer;
  font-size: clamp(60px, calc(100vw / 1024), 80px);
  gap: 0;
  background: var(--whiteColorDim3);
  color: var(--blackColorDim);
  text-shadow: 0 2px 10px var(--blackColorDim);
}

.product-arrow:hover .product-arrow:active {
  color: var(--blackColor);
  box-shadow: 0 2px 10px var(--blackColorDim);
}

.left-arrow {
  left: 5px;
}

.right-arrow {
  right: 5px;
}

#product-colors {
  display:flex;gap:.22rem;
  align-items:center;
  flex-direction: row;
  margin-top: 5px;
}

.product-desc {
  margin-top: 6px;
  margin-bottom: 0;
  font-size: clamp(1.1rem, calc(100vw / 1024), 1.46rem);
}

.product-desc .product-text {
  font-family: var(--bodyFont), serif;
  color: var(--lightGreyColor6);
  font-size: clamp(.9rem, calc(100vw / 1024), 1.2rem);
  font-weight: normal;
  text-justify: auto;
  margin-top: 10px;
  padding: 10px 20px;
  height: 35vh;
  overflow: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border: 1px solid var(--lightGreyColor3);
  border-radius: 8px;
  box-shadow: 0 2px 10px var(--blackColorDim);
}

.product-desc .product-text ul {
  list-style-type: circle
}

.product-line {
  width: 100%;
  padding: 0 .25rem;
  line-height: clamp(2rem, calc(100vw / 1024), 2.66rem);
}

.product-line ul {
  list-style: inside;
}

.product-overlay {
  position: fixed;
  pointer-events: auto;
  inset: 0;
  background: var(--blackColorDim);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.product-overlay.hidden {
  display: none;
}

.product-body {
  height: 85vh;
  position: relative;
  width: 1024px;
  overflow: scroll;
  scrollbar-color: var(--lightGreyColor5);
  background: white;
  border-radius: 20px;
  display: flex;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
  padding: 30px;
}

.product-gallery {
  margin-top: 0;
  min-height: 50vh;
  width: 60%;
  vertical-align: center;
  display: flex;
}

.product-gallery img {
  border-radius: 14px;
  border-width: 0;
  margin: 0 auto 20px;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.product-info {
  margin: 1vh;
  padding: 1vh;
  display: flex;
  flex-direction: column;
  width: 50%;
}

.thumb-row {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.thumb-row img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  border: 2px solid transparent;
}

.thumb-row img:hover {
  border-color: #111;
}

.product-cart-btn {
  margin: 30px auto 5px;
  width: clamp(80%, calc(100vw / 1024), 100%);
  font-size: clamp(1rem, calc(100vw / 1024), 1.33rem);
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: black;
  color: white;
  cursor: pointer;
}

.goto-cart {
  padding: 1rem;
  margin: 0 auto;
  background: var(--whiteColorDim);
  color: var(--blackColorDim2);
  text-shadow: 0 2px 10px var(--blackColorDim2);
  width: clamp(60%, calc(100vw / 1024), 80%);
}

.close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 999px;
  background: rgba(0,0,0,0.08);
  cursor: pointer;
  font-size: 18px;
  z-index: 1010;
}

#toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--blackColorDim);
  opacity: 50%;
  color: white;
  padding: 18px 28px;
  border-radius: 14px;
  font-size: 18px;
  font-weight: 500;
  z-index: 9999;
  display: none;
  pointer-events: auto;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
  backdrop-filter: blur(6px);
}

#toast p, h2, h3, strong, text {
  line-height: clamp(2.5rem, calc(100vw / 1024), 3.33rem);
}

#toast.show {
  display: block;
  transform:
    translate(-50%, -50%);
    opacity: 100%;
    scale: 1;
}

@media (max-width: 1024px) {
  #toast {
    text-align: center;
  }
  * {gap: 8px}
  .product-body {
    grid-template-columns: 1fr;
    display: grid;
    border-radius: 0;
    width: 100%;
    height: 100%;
    padding: 20px;
  }
  .product-info {width: 100%}
  .product-nav {margin: 0}
  .product-gallery {width: 100%; margin: 0 auto 4vh;box-shadow: none}
  .product-gallery img {width: 100%; box-shadow: none}
}