/* Unified LIBSEH product card — loaded last so it wins over rwd-all. */
html body:not(.admin-view):not(.merchant-view) .ls-pc,
html body.public-store-page:not(.admin-view):not(.merchant-view) .ls-pc {
  --pc-burgundy: #66001f;
  --pc-olive: #59633A;
  --pc-beige: #E8D8BE;
  --pc-ivory: #FBF7F0;
  --pc-ink: #31352C;
  position: relative;
  display: flex;
  flex-direction: column;
  height: auto;
  min-width: 0;
  background: #f6f1e8;
  border: 1px solid rgba(49, 53, 44, 0.1);
  border-radius: 16px;
  box-shadow: none;
  overflow: hidden;
  isolation: isolate;
}

html body:not(.admin-view):not(.merchant-view) .ls-pc-hit {
  position: absolute;
  inset: 0;
  z-index: 1;
}

html body:not(.admin-view):not(.merchant-view) .ls-pc-media,
html body:not(.admin-view):not(.merchant-view) .ls-pc-body,
html body:not(.admin-view):not(.merchant-view) .ls-pc-icon,
html body:not(.admin-view):not(.merchant-view) .ls-pc-opts,
html body:not(.admin-view):not(.merchant-view) .ls-pc-actions,
html body:not(.admin-view):not(.merchant-view) .ls-pc-title,
html body:not(.admin-view):not(.merchant-view) .favorite-form,
html body:not(.admin-view):not(.merchant-view) .sp-alt-form {
  position: relative;
  z-index: 2;
}

html body:not(.admin-view):not(.merchant-view) .ls-pc-media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--pc-beige);
}

html body:not(.admin-view):not(.merchant-view) .ls-pc-media a {
  display: block;
  width: 100%;
  height: 100%;
}

html body:not(.admin-view):not(.merchant-view) .ls-pc-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

html body:not(.admin-view):not(.merchant-view) .ls-pc-badge {
  position: absolute;
  top: 8px;
  inset-inline-start: 48px;
  z-index: 3;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  padding: 5px 8px;
  border-radius: 999px;
  pointer-events: none;
}

html body:not(.admin-view):not(.merchant-view) .ls-pc-sale {
  background: var(--pc-burgundy);
  color: #fff;
}

html body:not(.admin-view):not(.merchant-view) .ls-pc-oos {
  inset-inline-start: 8px;
  top: auto;
  bottom: 8px;
  background: rgba(49, 53, 44, 0.82);
  color: #fff;
}

html body:not(.admin-view):not(.merchant-view) .ls-pc-icon {
  position: absolute;
  top: 8px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--pc-ink);
  display: grid;
  place-items: center;
  box-shadow: 0 2px 8px rgba(49, 53, 44, 0.1);
  cursor: pointer;
  padding: 0;
}

html body:not(.admin-view):not(.merchant-view) .ls-pc-fav-form {
  position: absolute;
  top: 8px;
  inset-inline-start: 8px;
  margin: 0;
  z-index: 3;
}

html body:not(.admin-view):not(.merchant-view) .ls-pc-fav-form .ls-pc-icon {
  position: static;
}

html body:not(.admin-view):not(.merchant-view) .ls-pc-share {
  inset-inline-end: 8px;
  z-index: 3;
}

html body:not(.admin-view):not(.merchant-view) .ls-pc-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

html body:not(.admin-view):not(.merchant-view) .ls-pc-fav.saved {
  color: var(--pc-burgundy);
}

html body:not(.admin-view):not(.merchant-view) .ls-pc-fav.saved svg {
  fill: currentColor;
}

html body:not(.admin-view):not(.merchant-view) .ls-pc-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px 12px;
  flex: 1;
  min-width: 0;
}

html body:not(.admin-view):not(.merchant-view) .ls-pc-title {
  text-decoration: none;
  color: var(--pc-ink);
}

html body:not(.admin-view):not(.merchant-view) .ls-pc-title h3,
html body:not(.admin-view):not(.merchant-view) .ls-pc-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* The h3 keeps the two-line clamp; the link only grows its tap area to 44px without moving the layout */
html body:not(.admin-view):not(.merchant-view) a.ls-pc-title {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
  padding-block: 12px;
  margin-block: -12px;
  position: relative;
}

html body:not(.admin-view):not(.merchant-view) .ls-pc-store {
  margin: 0;
  font-size: 0.78rem;
  color: #6a6e64;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

html body:not(.admin-view):not(.merchant-view) .ls-pc-price {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

html body:not(.admin-view):not(.merchant-view) .ls-pc-price strong {
  color: var(--pc-burgundy);
  font-size: 1rem;
  font-weight: 800;
}

html body:not(.admin-view):not(.merchant-view) .ls-pc-price s {
  color: #8a8d84;
  font-size: 0.82rem;
  font-weight: 500;
}

html body:not(.admin-view):not(.merchant-view) .ls-pc-opts {
  display: grid;
  gap: 8px;
}

html body:not(.admin-view):not(.merchant-view) .ls-pc-sizes,
html body:not(.admin-view):not(.merchant-view) .ls-pc .pc-sizes {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
}

html body:not(.admin-view):not(.merchant-view) .ls-pc-chip,
html body:not(.admin-view):not(.merchant-view) .ls-pc .pc-sizes button {
  min-width: 34px;
  min-height: 28px !important;
  height: 28px !important;
  padding: 0 8px !important;
  border: 1px solid rgba(49, 53, 44, 0.18);
  border-radius: 8px;
  background: #f6f1e8;
  color: var(--pc-ink);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

html body:not(.admin-view):not(.merchant-view) .ls-pc-chip.is-active,
html body:not(.admin-view):not(.merchant-view) .ls-pc .pc-sizes button.is-active {
  background: var(--pc-burgundy) !important;
  border-color: var(--pc-burgundy) !important;
  color: #fff !important;
}

html body:not(.admin-view):not(.merchant-view) .ls-pc-chip.is-oos,
html body:not(.admin-view):not(.merchant-view) .ls-pc .pc-sizes button.is-oos {
  opacity: 0.45;
  text-decoration: line-through;
  cursor: not-allowed;
  pointer-events: none;
}

html body:not(.admin-view):not(.merchant-view) .ls-pc-colors,
html body:not(.admin-view):not(.merchant-view) .ls-pc .pc-colors {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center;
  gap: 6px !important;
}

html body:not(.admin-view):not(.merchant-view) .ls-pc-swatch {
  width: 22px;
  height: 22px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
}

html body:not(.admin-view):not(.merchant-view) .ls-pc-swatch i {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  display: block;
  box-shadow: inset 0 0 0 1px rgba(49, 53, 44, 0.12);
}

html body:not(.admin-view):not(.merchant-view) .ls-pc-swatch.is-light i {
  box-shadow: inset 0 0 0 1px #c9c4ba;
}

html body:not(.admin-view):not(.merchant-view) .ls-pc-swatch.is-active {
  border-color: var(--pc-burgundy);
}

html body:not(.admin-view):not(.merchant-view) .ls-pc-swatch.is-oos,
html body:not(.admin-view):not(.merchant-view) .ls-pc-swatch:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

html body:not(.admin-view):not(.merchant-view) .ls-pc-swatch.is-oos i {
  position: relative;
}

html body:not(.admin-view):not(.merchant-view) .ls-pc-swatch.is-oos::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 1.5px;
  background: #31352c;
  transform: rotate(-45deg);
}

html body:not(.admin-view):not(.merchant-view) .ls-pc-more {
  font-size: 11px;
  font-weight: 700;
  color: var(--pc-burgundy);
  text-decoration: none;
  z-index: 3;
}

html body:not(.admin-view):not(.merchant-view) .ls-pc-msg {
  margin: 0;
  font-size: 0.75rem;
  color: var(--pc-burgundy);
}

html body:not(.admin-view):not(.merchant-view) .ls-pc-buy {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex-wrap: nowrap;
  gap: 0;
}

html body:not(.admin-view):not(.merchant-view) .ls-pc-actions {
  display: grid;
  gap: 6px;
  width: 100%;
  min-width: 0;
}

html body:not(.admin-view):not(.merchant-view) .ls-pc-add {
  width: 100%;
  min-height: 38px;
  border: 0;
  border-radius: 10px;
  background: var(--pc-burgundy);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

html body:not(.admin-view):not(.merchant-view) .ls-pc-add:disabled {
  background: #c9c4ba;
  color: #5d6158;
  cursor: not-allowed;
}

html body:not(.admin-view):not(.merchant-view) .ls-pc-view {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 32px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--pc-olive);
  text-decoration: none;
  z-index: 3;
}

html body:not(.admin-view):not(.merchant-view) .ls-pc-skel {
  pointer-events: none;
  min-height: 360px;
  background: linear-gradient(90deg, #f3eee6, #fbf7f0, #f3eee6);
  background-size: 200% 100%;
  animation: ls-pc-shimmer 1.2s ease infinite;
}

@keyframes ls-pc-shimmer {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

html body:not(.admin-view):not(.merchant-view) .luxe-product-grid,
html body:not(.admin-view):not(.merchant-view) .home-product-grid,
html body:not(.admin-view):not(.merchant-view) .product-grid,
html body:not(.admin-view):not(.merchant-view) .favorite-results,
html body:not(.admin-view):not(.merchant-view) .similar-products .luxe-product-grid,
html body.public-store-page:not(.admin-view):not(.merchant-view) .sp-grid:not(.list) {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 12px !important;
  max-width: 1280px;
  width: 100%;
  margin-inline: auto;
  align-items: stretch;
}

@media (min-width: 340px) {
  html body:not(.admin-view):not(.merchant-view) .luxe-product-grid,
  html body:not(.admin-view):not(.merchant-view) .home-product-grid,
  html body:not(.admin-view):not(.merchant-view) .product-grid,
  html body:not(.admin-view):not(.merchant-view) .favorite-results,
  html body:not(.admin-view):not(.merchant-view) .similar-products .luxe-product-grid,
  html body.public-store-page:not(.admin-view):not(.merchant-view) .sp-grid:not(.list) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 601px) {
  html body:not(.admin-view):not(.merchant-view) .luxe-product-grid,
  html body:not(.admin-view):not(.merchant-view) .home-product-grid,
  html body:not(.admin-view):not(.merchant-view) .product-grid,
  html body:not(.admin-view):not(.merchant-view) .favorite-results,
  html body:not(.admin-view):not(.merchant-view) .similar-products .luxe-product-grid,
  html body.public-store-page:not(.admin-view):not(.merchant-view) .sp-grid:not(.list) {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 1025px) {
  html body:not(.admin-view):not(.merchant-view) .luxe-product-grid,
  html body:not(.admin-view):not(.merchant-view) .home-product-grid,
  html body:not(.admin-view):not(.merchant-view) .product-grid,
  html body:not(.admin-view):not(.merchant-view) .favorite-results,
  html body:not(.admin-view):not(.merchant-view) .similar-products .luxe-product-grid,
  html body.public-store-page:not(.admin-view):not(.merchant-view) .sp-grid:not(.list) {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  html body:not(.admin-view):not(.merchant-view) .ls-pc:is(:hover, :focus-within) {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(49, 53, 44, 0.08);
  }
}

@media (min-width: 1441px) {
  html body:not(.admin-view):not(.merchant-view) .luxe-product-grid,
  html body:not(.admin-view):not(.merchant-view) .home-product-grid,
  html body:not(.admin-view):not(.merchant-view) .product-grid,
  html body:not(.admin-view):not(.merchant-view) .favorite-results,
  html body:not(.admin-view):not(.merchant-view) .similar-products .luxe-product-grid,
  html body.public-store-page:not(.admin-view):not(.merchant-view) .sp-grid:not(.list) {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    max-width: 1400px;
  }
}

@media (max-width: 1024px), (pointer: coarse) {
  html body:not(.admin-view):not(.merchant-view) .ls-pc-chip,
  html body:not(.admin-view):not(.merchant-view) .ls-pc .pc-sizes button {
    min-width: 40px;
    min-height: 40px !important;
    height: 40px !important;
    padding: 0 10px !important;
    font-size: 13px;
  }

  html body:not(.admin-view):not(.merchant-view) .ls-pc-swatch {
    width: 40px;
    height: 40px;
  }

  html body:not(.admin-view):not(.merchant-view) .ls-pc-swatch i {
    width: 22px;
    height: 22px;
  }

  html body:not(.admin-view):not(.merchant-view) .ls-pc-swatch.is-oos::after {
    width: 24px;
  }

  html body:not(.admin-view):not(.merchant-view) .ls-pc-more {
    display: inline-grid;
    place-items: center;
    min-width: 40px;
    min-height: 40px;
    font-size: 12px;
  }

  html body:not(.admin-view):not(.merchant-view) .ls-pc-icon {
    width: 40px;
    height: 40px;
  }

  html body:not(.admin-view):not(.merchant-view) .ls-pc-badge {
    inset-inline-start: 52px;
  }

  html body:not(.admin-view):not(.merchant-view) .ls-pc-add {
    min-height: 44px;
    font-size: 0.86rem;
  }

  html body:not(.admin-view):not(.merchant-view) .ls-pc-view {
    min-height: 40px;
  }
}

html body.public-store-page:not(.admin-view):not(.merchant-view) .sp-grid.list {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 12px !important;
}

html body.public-store-page:not(.admin-view):not(.merchant-view) .sp-grid.list .ls-pc {
  flex-direction: row;
  min-height: 0;
}

html body.public-store-page:not(.admin-view):not(.merchant-view) .sp-grid.list .ls-pc-media {
  width: 132px;
  flex: 0 0 132px;
  aspect-ratio: 4 / 5;
}

html body:not(.admin-view):not(.merchant-view) .visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html body:not(.admin-view):not(.merchant-view) .ls-pc .discount-badge,
html body:not(.admin-view):not(.merchant-view) .ls-pc .store-heart:not(.ls-pc-icon),
html body.public-store-page:not(.admin-view):not(.merchant-view) .ls-pc .sp-heart,
html body.public-store-page:not(.admin-view):not(.merchant-view) .ls-pc .ls-stock-chip {
  display: none !important;
}
