/* ==============================================
   Crawler-safe content gate placeholder
   Logged-out gated cards render neutral markup only:
   no product links, image URLs, titles, alt text,
   quick-add forms, product IDs, or variant IDs.

   Visual direction: soft WaifuWorld-style pastel
   placeholders that keep the product-grid rhythm
   without using real product assets.
   ============================================== */

.ww-content-gate,
.ww-content-gate *,
.ww-content-gate *::before,
.ww-content-gate *::after {
  box-sizing: border-box;
}

.ww-content-gate {
  pointer-events: none !important;
  cursor: default !important;
  --ww-gate-bg: #ffffff;
  --ww-gate-surface: #fff8fb;
  --ww-gate-line: rgba(255, 45, 120, 0.12);
  --ww-gate-text: #8a7f89;
  --ww-gate-muted: #b0a5ae;
  --ww-gate-a: rgba(255, 45, 120, 0.22);
  --ww-gate-b: rgba(255, 178, 212, 0.34);
  --ww-gate-c: rgba(194, 226, 255, 0.28);
  --ww-gate-d: rgba(247, 232, 255, 0.72);
}

.ww-content-gate.card-wrapper.product-card-wrapper,
.ww-content-gate.card-wrapper.product-card-wrapper:hover {
  transform: none !important;
  box-shadow: none !important;
}

.ww-content-gate .card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: var(--ww-gate-bg) !important;
  border: 1px solid rgba(20, 20, 20, 0.05);
  box-shadow: 0 6px 18px rgba(24, 16, 28, 0.045);
}

.ww-content-gate .card__inner {
  background: var(--ww-gate-surface) !important;
}

.ww-content-gate .card__media,
.ww-content-gate .media {
  background: transparent !important;
}

.ww-content-gate .card__content {
  background: #fff !important;
}

.ww-content-gate .card__information {
  background: #fff !important;
}

.ww-gated-placeholder {
  position: relative;
  min-height: 100%;
  width: 100%;
  overflow: hidden;
  border-radius: inherit;
  background:
    radial-gradient(circle at 18% 16%, var(--ww-gate-b) 0%, rgba(255, 255, 255, 0) 34%),
    radial-gradient(circle at 84% 20%, var(--ww-gate-c) 0%, rgba(255, 255, 255, 0) 36%),
    radial-gradient(circle at 50% 86%, var(--ww-gate-d) 0%, rgba(255, 255, 255, 0) 48%),
    linear-gradient(135deg, #fff7fb 0%, #f9eef9 48%, #f3f8ff 100%) !important;
  isolation: isolate;
}

.ww-gated-placeholder::before {
  content: "";
  position: absolute;
  inset: -18%;
  z-index: 0;
  background:
    linear-gradient(118deg, transparent 0%, rgba(255, 255, 255, 0.48) 34%, transparent 58%),
    repeating-linear-gradient(90deg, rgba(255, 45, 120, 0.045) 0 1px, transparent 1px 11px),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.018) 0 1px, transparent 1px 9px);
  filter: blur(11px) saturate(1.06);
  transform: rotate(-7deg) scale(1.05);
  opacity: 0.78;
}

.ww-gated-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.62)),
    radial-gradient(circle at 50% 50%, rgba(255, 45, 120, 0.045), transparent 54%);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.ww-gated-placeholder__glow {
  position: absolute;
  inset: 14%;
  z-index: 2;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 45, 120, 0.12), rgba(255, 178, 212, 0.08) 38%, transparent 72%);
  filter: blur(20px);
}

.ww-gated-placeholder__noise {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0.16;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 45, 120, 0.18) 0 1px, transparent 1px),
    radial-gradient(circle at 70% 60%, rgba(80, 160, 255, 0.12) 0 1px, transparent 1px);
  background-size: 15px 19px, 23px 27px;
}

.ww-gated-placeholder__lock {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  color: rgba(255, 45, 120, 0.54);
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 45, 120, 0.16);
  box-shadow:
    0 10px 24px rgba(255, 45, 120, 0.08),
    inset 0 0 14px rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.ww-gated-placeholder__icon {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.ww-gated-placeholder__content {
  pointer-events: none !important;
}

.ww-gated-placeholder__title {
  display: inline-block;
  font-family: 'Inter', sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  color: var(--ww-gate-text) !important;
  letter-spacing: 0 !important;
  text-decoration: none !important;
  text-transform: none !important;
}

.ww-gated-placeholder__caption {
  display: inline-block;
  margin-top: 4px;
  font-family: 'Inter', sans-serif !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  color: var(--ww-gate-muted) !important;
  line-height: 1.3 !important;
}

/* Neutral per-position variation so gated cards do not look copied, while still revealing no product data. */
.wc-block-product-template > li:nth-child(6n + 1) .ww-content-gate {
  --ww-gate-surface: #fff7fb;
  --ww-gate-a: rgba(255, 45, 120, 0.20);
  --ww-gate-b: rgba(255, 190, 218, 0.36);
  --ww-gate-c: rgba(190, 225, 255, 0.25);
  --ww-gate-d: rgba(248, 232, 255, 0.70);
}

.wc-block-product-template > li:nth-child(6n + 2) .ww-content-gate {
  --ww-gate-surface: #fbf7ff;
  --ww-gate-a: rgba(167, 113, 255, 0.18);
  --ww-gate-b: rgba(226, 207, 255, 0.40);
  --ww-gate-c: rgba(255, 205, 225, 0.24);
  --ww-gate-d: rgba(241, 246, 255, 0.70);
}

.wc-block-product-template > li:nth-child(6n + 3) .ww-content-gate {
  --ww-gate-surface: #f8fbff;
  --ww-gate-a: rgba(88, 190, 255, 0.18);
  --ww-gate-b: rgba(207, 235, 255, 0.40);
  --ww-gate-c: rgba(255, 197, 222, 0.22);
  --ww-gate-d: rgba(251, 237, 255, 0.68);
}

.wc-block-product-template > li:nth-child(6n + 4) .ww-content-gate {
  --ww-gate-surface: #fff9f4;
  --ww-gate-a: rgba(255, 150, 92, 0.15);
  --ww-gate-b: rgba(255, 219, 198, 0.38);
  --ww-gate-c: rgba(255, 194, 223, 0.22);
  --ww-gate-d: rgba(244, 238, 255, 0.68);
}

.wc-block-product-template > li:nth-child(6n + 5) .ww-content-gate {
  --ww-gate-surface: #f9fff9;
  --ww-gate-a: rgba(111, 210, 174, 0.16);
  --ww-gate-b: rgba(216, 245, 231, 0.40);
  --ww-gate-c: rgba(255, 204, 228, 0.22);
  --ww-gate-d: rgba(238, 245, 255, 0.70);
}

.wc-block-product-template > li:nth-child(6n) .ww-content-gate {
  --ww-gate-surface: #fff7f8;
  --ww-gate-a: rgba(255, 74, 124, 0.18);
  --ww-gate-b: rgba(255, 210, 220, 0.40);
  --ww-gate-c: rgba(210, 230, 255, 0.24);
  --ww-gate-d: rgba(252, 239, 248, 0.72);
}

.wc-block-product-template > li:nth-child(3n + 1) .ww-gated-placeholder::before {
  transform: rotate(-7deg) scale(1.06);
  background-position: 0 0, 0 0, 0 0;
}

.wc-block-product-template > li:nth-child(3n + 2) .ww-gated-placeholder::before {
  transform: rotate(6deg) scale(1.08);
  background-position: 18px 0, 8px 0, 0 12px;
}

.wc-block-product-template > li:nth-child(3n) .ww-gated-placeholder::before {
  transform: rotate(-2deg) scale(1.07);
  background-position: 0 18px, 10px 5px, 16px 0;
}

.ww-content-gate .quick-add,
.ww-content-gate product-form,
.ww-content-gate quick-add-modal,
.ww-content-gate modal-opener,
.ww-content-gate modal-dialog,
.ww-content-gate bulk-modal,
.ww-content-gate .price,
.ww-content-gate .badge,
.ww-content-gate .ww-release-ship-date,
.ww-content-gate .ww-preorder-badge {
  display: none !important;
}

/* Explicit, scoped exception: this is the ONE interactive element allowed
   inside an otherwise fully inert gated card (see .ww-content-gate and
   .ww-gated-placeholder__content above, both pointer-events:none). It is a
   real link to the account page, not a product link, and reveals no product
   data (title, image, URL, IDs) — so it does not weaken the crawler-safe
   gate. Do not widen this exception to any other selector. */
.ww-content-gate .ww-gated-placeholder__unified {
  pointer-events: auto !important;
}

.ww-gated-placeholder__unified {
  display: block;
  padding: 12px 10px;
  border-radius: 10px;
  border: 1px dashed rgba(138, 127, 137, 0.35);
  text-decoration: none !important;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.ww-gated-placeholder__unified:hover {
  border-color: rgba(138, 127, 137, 0.55);
  background: rgba(0, 0, 0, 0.015);
}

.ww-gated-placeholder__unified-icon {
  display: block;
  width: 18px;
  height: 18px;
  margin: 0 auto 4px;
  fill: var(--ww-gate-text);
}

.ww-gated-placeholder__unified-line1 {
  display: block;
  font-family: 'Inter', sans-serif !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  color: var(--ww-gate-text) !important;
  line-height: 1.3 !important;
  margin-bottom: 2px;
  text-decoration: none !important;
}

.ww-gated-placeholder__unified-line2 {
  display: block;
  font-family: 'Inter', sans-serif !important;
  font-size: 11.5px !important;
  font-weight: 500 !important;
  color: var(--ww-gate-muted) !important;
  line-height: 1.3 !important;
  text-decoration: none !important;
}

@media screen and (max-width: 749px) {
  .ww-gated-placeholder__lock {
    width: 42px;
    height: 42px;
  }

  .ww-gated-placeholder__icon {
    width: 20px;
    height: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ww-content-gate,
  .ww-content-gate * {
    animation: none !important;
    transition: none !important;
  }
}

/* --- WooCommerce block-grid adaptation ---------------------------------
   The Shopify card relied on the theme's .ratio / --ratio-percent system,
   which does not exist here. The real product cards in this grid use a
   3/4 aspect ratio, so the placeholder matches that directly. */
li.ww-gate-item {
  list-style: none;
  margin: 0;
}

.ww-content-gate .card__inner {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 10px;
}

.ww-content-gate .card__media {
  position: absolute;
  inset: 0;
}

.ww-content-gate .ww-gated-placeholder {
  position: absolute;
  inset: 0;
  min-height: 0;
}

.ww-content-gate .card__content {
  padding: 12px 10px 14px;
}
