.cv-breadcrumbs {
  padding: 20px 0 14px;
}

/* LAYOUT */
.cv-product-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 20px;
}

/* GALLERY FIX */
.cv-product-top,
.cv-product-gallery,
.cv-gallery-main,
.cv-gallery-thumbs {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.cv-gallery-main {
  position: relative;
}

.cv-gallery-main .slick-list,
.cv-gallery-thumbs .slick-list {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.cv-gallery-main .slick-track,
.cv-gallery-thumbs .slick-track {
  display: block !important;
}

.cv-gallery-main .slick-slide,
.cv-gallery-thumbs .slick-slide {
  display: block !important;
  height: auto;
}

.cv-gallery-main .slick-slide > div,
.cv-gallery-thumbs .slick-slide > div {
  width: 100%;
  max-width: 100%;
  height: auto !important;
}

/* SLIDES */
.cv-slide,
.cv-thumb {
  width: 100%;
  max-width: 100%;
}

.cv-product-gallery img {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* THUMBS */
.cv-gallery-thumbs {
  margin-top: 12px;
}

.cv-gallery-thumbs .cv-thumb {
  padding: 4px;
  aspect-ratio: 63 / 88;
  cursor: pointer;
}

.cv-gallery-thumbs img {
  width: 100%;
  border-radius: 6px;
}

/* ARROWS */
.cv-gallery-main .cv-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.4);
  transition: all 500ms ease;
}

.cv-gallery-main .cv-arrow:hover {
  background-color: #fff;
}

.cv-gallery-main .cv-arrow-prev {
  left: 12px;
}

.cv-gallery-main .cv-arrow-next {
  right: 12px;
}

/* INFO */
.cv-product-info h1 {
  font-size: 32px;
  margin-bottom: 20px;
}

.cv-product-info .cv-product-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.cv-tag {
  background: #222;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 13px;
}

.cv-price {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 20px;
}

.cv-cart {
  display: flex;
  gap: 10px;
}

.cv-qty {
  width: 70px;
}

/* RELATED */
.cv-related-products {
  margin-top: 60px;
}

.cv-related-products h2 {
  margin-bottom: 32px;
}

/* LIGHTBOX */
.cv-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 9999;
}

.cv-lightbox.active {
  opacity: 1;
  visibility: visible;
}

.cv-lightbox-inner {
  width: 90%;
  max-width: 900px;
}

.cv-lightbox-slider img {
  width: 100%;
}

.cv-lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 40px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

/* MOBILE */
@media only screen and (max-width: 1024px) {
  .cv-product-top {
    display: flex;
    flex-direction: column;
  }

  .cv-product-gallery {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    max-width: 100%;
  }

  .cv-gallery-thumbs img {
    height: 100%;
    object-fit: cover;
  }

  .cv-product-top {
    gap: 20px;
  }

  .cv-product-info h1 {
    font-size: 22px;
  }

  .cv-related-products h2,
  .cv-product-tabs h2 {
    font-size: 22px;
  }

  .cv-price {
    font-size: 26px;margin-bottom: 12px;
  }
}

/* DESKTOP */
@media only screen and (min-width: 1024px) {
  .cv-product-top {
    display: grid;
    grid-template-columns: 450px 1fr;
    gap: 40px;
    margin-bottom: 60px;
  }
}