/* DR INTERNATIONAL collection page styled from the Jewellery-NX reference. */

body[data-page="products"] {
  --collection-dark: #061d33;
  --collection-ink: #141414;
  --collection-muted: #909aa5;
  --collection-line: #eceff1;
  --collection-soft: #f8f8f8;
  --collection-badge: #9eb1bd;
  --collection-gold: #c9962e;
  --collection-serif: "Alice", Georgia, serif;
  --collection-sans: "Open Sans", Arial, sans-serif;
  background: #fff;
  color: var(--collection-ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.collection-page {
  min-height: 0;
  background: #fff;
}

.collection-shop {
  position: relative;
  padding: 3.5rem 0 5.2rem;
  background: #fff;
  color: var(--collection-ink);
  font-family: var(--collection-serif);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.5px;
  line-height: 26px;
}

.collection-shop__container {
  max-width: 1440px;
  padding: 0 20px;
}

.collection-shop__title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.collection-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 50px;
  padding-bottom: 19px;
  border-bottom: 1px solid var(--collection-line);
  opacity: 1 !important;
  transform: none !important;
}

.collection-sort {
  display: flex;
  align-items: flex-start;
  gap: 1.7rem;
}

.collection-sort__tab {
  position: relative;
  padding: 0 0 10px;
  border: 0;
  background: transparent;
  color: #929fad;
  font-family: var(--collection-serif);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.5px;
  line-height: 26px;
  text-transform: uppercase;
  transition: color 0.25s ease;
}

.collection-sort__tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -20px;
  height: 2px;
  background: transparent;
  transition: background 0.25s ease;
}

.collection-sort__tab.is-active {
  color: #051e33;
}

.collection-sort__tab.is-active::after {
  background: #c9962e;
}

.collection-sort__tab:not(.is-active) {
  color: #6d757d;
}

.collection-filter-button {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
  color: #051e33;
  font-family: var(--collection-serif);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.5px;
  line-height: 28px;
  opacity: 1;
  transition: opacity 0.25s ease, color 0.25s ease;
}

.collection-filter-button .material-icons {
  font-size: 1.15rem;
  line-height: 1;
}

.collection-filter-button:hover {
  color: #111820;
  opacity: 1;
}

.collection-results {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

body[data-page="products"] .products__grid.collection-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 38px 26px;
  max-width: none;
  margin: 0;
}

body[data-page="products"] .product-card.collection-product {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
  animation: collectionCardIn 0.55s ease both;
}

body[data-page="products"] .product-card.collection-product::before {
  display: none;
}

body[data-page="products"] .product-card.collection-product:hover {
  border-color: transparent;
  box-shadow: none;
  transform: none;
}

body[data-page="products"] .collection-product .product-card__img {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--collection-soft);
  border-radius: 0;
  text-decoration: none;
  color: inherit;
}

body[data-page="products"] .collection-product .product-card__img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

body[data-page="products"] .collection-product:hover .product-card__img img {
  /* Prevent global style.css zoom from fighting the image-swap hover */
  transform: none;
}

body[data-page="products"] .collection-product .product-card__main-img {
  z-index: 1;
  opacity: 1;
  transform: scale(1);
}

body[data-page="products"] .collection-product .product-card__hover-img {
  z-index: 2;
  opacity: 0;
  transform: scale(1.04);
}

body[data-page="products"] .collection-product.has-hover-img:hover .product-card__main-img {
  opacity: 0;
  transform: scale(1.06);
}

body[data-page="products"] .collection-product.has-hover-img:hover .product-card__hover-img {
  opacity: 1;
  transform: scale(1);
}

/* Fallback zoom when no alternate hover image exists */
body[data-page="products"] .collection-product:not(.has-hover-img):hover .product-card__main-img {
  transform: scale(1.08);
}

.product-card__sale {
  position: absolute;
  top: 14px;
  left: 0;
  z-index: 3;
  min-width: 64px;
  padding: 4px 10px;
  background: var(--collection-badge);
  color: #fff;
  font-family: var(--collection-serif);
  font-size: 12px;
  font-weight: 400;
  line-height: 120%;
  text-align: center;
}

body[data-page="products"] .collection-product .product-card__body {
  padding: 17px 0 0;
}

.product-card__title {
  display: block;
  color: #141414;
  font-family: var(--collection-serif);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.5px;
  line-height: 30px;
  transition: color 0.25s ease;
}

.product-card__title:hover {
  color: #0956af;
}

.product-card__footer {
  position: relative;
  min-height: 32px;
  margin-top: 0.55rem;
  overflow: hidden;
}

.product-card__price-wrap,
.product-card__hover-actions {
  transition: transform 0.45s cubic-bezier(0.45, 0, 0.55, 1), opacity 0.45s ease;
}

body[data-page="products"] .collection-product .price-tag {
  margin: 0;
  color: #474747;
  font-family: var(--collection-sans);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 26px;
}

.product-card__compare {
  display: inline-block;
  margin: 0 0 0 0.38rem;
  color: #474747;
  font-family: var(--collection-sans);
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 20px;
  text-decoration: line-through;
}

.product-card__hover-actions {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  display: flex;
  align-items: center;
  gap: 1.05rem;
  opacity: 0;
}

.product-card__hover-actions a {
  position: relative;
  color: #141414;
  font-family: var(--collection-serif);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.5px;
  line-height: 26px;
}

.product-card__hover-actions a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: #1b242d;
  transform: scaleX(1);
  transform-origin: left center;
  transition: transform 0.3s ease;
}

.product-card__hover-actions a:hover::after {
  transform: scaleX(0);
  transform-origin: right center;
}

body[data-page="products"] .collection-product:hover .product-card__price-wrap {
  opacity: 0;
  transform: translateY(-100%);
}

body[data-page="products"] .collection-product:hover .product-card__hover-actions {
  opacity: 1;
  transform: translateY(-100%);
}

.collection-filter-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1095;
  background: rgba(6, 29, 51, 0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.collection-filter-panel {
  position: fixed;
  top: calc(var(--jz-chrome-h) + 22px);
  right: 24px;
  z-index: 1100;
  width: min(370px, calc(100vw - 32px));
  max-height: calc(100vh - var(--jz-chrome-h) - 44px);
  overflow: auto;
  scrollbar-width: none;
  padding: 50px 58px 42px 40px;
  border: 1px solid var(--collection-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 55px rgba(6, 29, 51, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translateX(28px);
  transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.collection-filter-panel::-webkit-scrollbar {
  display: none;
}

body.collection-filter-open {
  overflow: hidden;
}

body.collection-filter-open .collection-filter-backdrop,
.collection-filter-panel.is-open {
  opacity: 1;
  pointer-events: auto;
}

.collection-filter-panel.is-open {
  transform: translateX(0);
}

.collection-filter-panel__close {
  position: absolute;
  top: 18px;
  right: 16px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #1c242d;
  font-family: "Material Icons", sans-serif;
  font-size: 1.1rem;
  line-height: 30px;
  text-align: center;
  transition: background 0.25s ease, color 0.25s ease, transform 0.3s ease;
}

.collection-filter-panel__close:hover {
  background: #da000b;
  color: #fff;
  transform: rotate(90deg);
}

.collection-filter-widget + .collection-filter-widget {
  margin-top: 2.4rem;
}

.collection-filter-widget__title {
  margin: 0 0 0.8rem;
  color: #141414;
  font-family: var(--collection-serif);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: 0.5px;
  line-height: 30px;
}

.collection-filter-list,
.collection-karat-list {
  display: flex;
  flex-direction: column;
}

.collection-filter-choice {
  display: flex;
  align-items: center;
  gap: 0.62rem;
  width: 100%;
  padding: 0.78rem 0;
  color: #141414;
  font-family: var(--collection-serif);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.5px;
  line-height: 26px;
  text-align: left;
  transition: color 0.25s ease;
}

.collection-filter-choice span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 1px solid #d2d8dc;
  background: #fff;
}

.collection-filter-choice.is-active,
.collection-filter-choice:hover {
  color: #da000b;
}

.collection-filter-choice.is-active span {
  background: #da000b;
  border-color: #da000b;
}

.collection-filter-choice.is-active span::after {
  content: "";
  width: 8px;
  height: 8px;
  background: #fff;
}

.collection-color-grid {
  display: grid;
  grid-template-columns: repeat(5, 26px);
  gap: 14px;
}

.collection-color {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(6, 29, 51, 0.08);
  background: var(--color);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.52);
}

@keyframes collectionCardIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  body[data-page="products"] .products__grid.collection-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .collection-shop {
    padding: calc(var(--jz-chrome-h) + 46px) 0 3.8rem;
  }

  .collection-shop__container {
    padding: 0 16px;
  }

  .collection-toolbar {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    margin-bottom: 34px;
    padding-bottom: 16px;
  }

  .collection-sort {
    min-width: 0;
    gap: 0.9rem;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .collection-sort::-webkit-scrollbar {
    display: none;
  }

  .collection-sort__tab {
    flex: 0 0 auto;
    font-size: 0.74rem;
  }

  .collection-filter-button span {
    display: inline;
  }

  body[data-page="products"] .products__grid.collection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 16px;
    max-width: none;
  }

  .product-card__title {
    font-size: 0.98rem;
  }

  body[data-page="products"] .collection-product .price-tag {
    font-size: 0.78rem;
  }

  .product-card__compare {
    display: block;
    margin-left: 0;
  }

  .product-card__hover-actions {
    gap: 0.7rem;
  }

  .product-card__hover-actions a {
    font-size: 0.74rem;
  }

  .collection-filter-panel {
    top: calc(var(--jz-chrome-h) + 8px);
    right: 12px;
    bottom: 8px;
    width: calc(100vw - 24px);
    max-height: none;
    padding: 36px 28px 16px 28px;
  }

  .collection-filter-widget + .collection-filter-widget {
    margin-top: 1.15rem;
  }

  .collection-filter-widget__title {
    margin-bottom: 0.36rem;
    font-size: 24px;
    line-height: 28px;
  }

  .collection-filter-choice {
    gap: 0.6rem;
    padding: 0.38rem 0;
    font-size: 15px;
    line-height: 22px;
  }

  .collection-filter-choice span {
    width: 16px;
    height: 16px;
  }

  .collection-color-grid {
    grid-template-columns: repeat(5, 24px);
    gap: 11px;
  }

  .collection-color {
    width: 24px;
    height: 24px;
  }

}

@media (max-width: 600px) {
  body[data-page="products"] .products__grid.collection-grid {
    grid-template-columns: 1fr;
    max-width: 330px;
    margin: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="products"] .product-card.collection-product {
    animation: none;
  }

  body[data-page="products"] .collection-product .product-card__img img,
  .product-card__price-wrap,
  .product-card__hover-actions,
  .collection-filter-panel,
  .collection-filter-backdrop {
    transition: none;
  }
}
