.pvl-variants {
  --pvl-bg: var(--color-bg, #fff);
  --pvl-surface: var(--color-surface, #f4f3f2);
  --pvl-text: var(--color-text, #201e1d);
  --pvl-divider: var(--color-divider, rgba(32, 30, 29, .3));
  --pvl-accent: var(--color-accent, var(--accent-color, #7a2435));
  margin: 24px 0;
  color: var(--pvl-text);
}

.pvl-title {
  margin: 0 0 12px;
}

.pvl-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 8px;
}

.pvl-card {
  display: block;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--pvl-divider);
  border-radius: 0;
  background: transparent;
  color: var(--pvl-text);
  text-decoration: none;
  cursor: pointer;
}

.pvl-card:hover,
.pvl-card:active,
.pvl-card:visited {
  background: transparent !important;
  background-image: none !important;
  color: var(--pvl-text) !important;
  text-decoration: none;
  opacity: 1;
  filter: none;
  box-shadow: none !important;
}

.pvl-card::before,
.pvl-card::after,
.pvl-image-wrap::before,
.pvl-image-wrap::after {
  content: none !important;
  display: none !important;
  background: transparent !important;
  opacity: 0 !important;
}

.pvl-card:focus {
  outline: 0;
}

.pvl-card:focus-visible {
  outline: 2px solid var(--pvl-text);
  outline-offset: 2px;
}

.pvl-card.is-current {
  border: 2px solid var(--pvl-text);
  padding: 7px;
}

.pvl-image-wrap {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: transparent;
}

.pvl-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 1 !important;
  filter: none !important;
}

.pvl-name {
  display: block;
  min-width: 0;
  margin-top: 8px;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.35;
  white-space: nowrap;
  text-overflow: ellipsis;
  opacity: .7;
}

.pvl-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0 24px;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--pvl-text);
  font: inherit;
  font-size: 13px;
  letter-spacing: .02em;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  appearance: none;
}

.pvl-more:hover,
.pvl-more:active,
.pvl-more:focus {
  background: transparent !important;
  background-image: none !important;
  color: var(--pvl-text) !important;
  text-decoration: none;
  box-shadow: none !important;
}

.pvl-more svg {
  transition: transform .16s ease;
}

.pvl-more:hover svg {
  transform: translateX(3px);
}

.pvl-more:focus,
.pvl-close:focus {
  outline: 0;
}

.pvl-more:focus-visible,
.pvl-close:focus-visible,
.pvl-drawer-product:focus-visible {
  outline: 2px solid var(--pvl-text);
  outline-offset: 2px;
}

.pvl-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(32, 30, 29, .4);
}

.pvl-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 10001;
  width: min(480px, 100vw);
  height: 100vh;
  height: 100dvh;
  box-sizing: border-box;
  padding: 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  border-left: 2px solid var(--pvl-divider);
  border-radius: 0;
  background: var(--pvl-bg);
  box-shadow: var(--shadow-lg, -8px 0 30px rgba(0, 0, 0, .14));
  transform: translateX(100%);
  transition: transform .2s ease;
}

.pvl-drawer.is-open {
  transform: translateX(0);
}

.pvl-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--pvl-divider);
}

.pvl-drawer-header h3 {
  margin: 0;
  color: var(--pvl-text);
  font-family: var(--font-heading, "Cormorant Garamond", "Archivo", system-ui, serif);
  font-weight: 600;
}

.pvl-close {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--pvl-text);
  cursor: pointer;
  appearance: none;
}

.pvl-drawer-list {
  padding: 0;
}

.pvl-drawer-product {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--pvl-divider);
  border-radius: 0;
  background: transparent;
  color: var(--pvl-text);
  text-decoration: none;
  cursor: pointer;
}

.pvl-drawer-product:hover,
.pvl-drawer-product:active,
.pvl-drawer-product:visited {
  background-color: transparent !important;
  color: var(--pvl-text) !important;
  text-decoration: none;
}

.pvl-drawer-product.is-current:hover {
  background-color: var(--pvl-surface) !important;
}

.pvl-drawer-product.is-current {
  background: var(--pvl-surface);
}

.pvl-drawer-product img {
  display: block;
  flex: none;
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: var(--pvl-surface);
  filter: none;
}

.pvl-drawer-product__content {
  display: block;
  min-width: 0;
}

.pvl-drawer-product strong {
  display: block;
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

.pvl-drawer-product small {
  display: block;
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
  opacity: .6;
}

.pvl-lock-scroll {
  overflow: hidden;
}

@media (min-width: 861px) {
  .pvl-more--mobile-only {
    display: none;
  }
}

@media (max-width: 860px) {
  .pvl-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .pvl-grid > .pvl-card:nth-child(n + 4) {
    display: none;
  }

  .pvl-card {
    padding: 6px;
  }

  .pvl-card.is-current {
    padding: 5px;
  }

  .pvl-name {
    margin-top: 6px;
    font-size: 11px;
  }

  .pvl-drawer {
    width: 100vw;
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
  }

  .pvl-drawer-list {
    padding-bottom: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pvl-drawer,
  .pvl-more svg {
    transition: none;
  }
}
