/**
 * Site-wide gold frames + cert-style shimmer (buttons + panels).
 * Loads after spruce-rose / home-pack. Scoped html body.sk-gems.
 */

@keyframes sk-gold-ui-shift {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

@keyframes sk-gold-ui-sheen {
  0%,
  18% {
    transform: translateX(-130%);
    opacity: 0;
  }
  42% {
    opacity: 1;
  }
  70%,
  100% {
    transform: translateX(130%);
    opacity: 0;
  }
}

@keyframes sk-gold-ui-ring {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 220% 50%;
  }
}

/* —— Gold shimmer CTAs: каталог (desktop + mobile) —— */
html body.sk-gems .site-header #menu-item-6925 > .menu-link,
html body.sk-gems .site-header .main-header-menu > .menu-item > a[href*="/catalog/"],
html body.sk-gems a.sk-mhead-link--shop {
  position: relative !important;
  isolation: isolate;
  overflow: hidden !important;
  background-color: #d4af37 !important;
  background-image: linear-gradient(
    105deg,
    #fff6d4 0%,
    #d4af37 28%,
    #f8e7a0 50%,
    #c5a572 72%,
    #fff6d4 100%
  ) !important;
  background-size: 220% 100% !important;
  color: #3a3228 !important;
  -webkit-text-fill-color: #3a3228 !important;
  border: 1px solid #d4af37 !important;
  border-color: #d4af37 !important;
  box-shadow:
    0 0 0 1px rgba(212, 175, 55, 0.75),
    0 0 22px rgba(212, 175, 55, 0.45) !important;
  animation: sk-gold-ui-shift 2.4s linear infinite;
}

html body.sk-gems .site-header #menu-item-6925 > .menu-link::after,
html body.sk-gems .site-header .main-header-menu > .menu-item > a[href*="/catalog/"]::after,
html body.sk-gems a.sk-mhead-link--shop::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(105deg, transparent 28%, rgba(255, 255, 255, 0.72) 50%, transparent 72%);
  transform: translateX(-130%);
  animation: sk-gold-ui-sheen 2.1s ease-in-out infinite;
  pointer-events: none;
}

/* Mobile: «Наши проекты» (burger) — тот же перелив */
@media (max-width: 1023px) {
  html body.sk-gems .ast-mobile-header-wrap .menu-toggle,
  html body.sk-gems .ast-mobile-header-wrap .menu-toggle.main-header-menu-toggle,
  html body.sk-gems .ast-mobile-header-wrap .menu-toggle.ast-mobile-menu-trigger-minimal,
  html body.sk-ritual .ast-mobile-header-wrap .menu-toggle.main-header-menu-toggle,
  html body.sk-ritual .ast-button-wrap .menu-toggle {
    position: relative !important;
    isolation: isolate;
    overflow: hidden !important;
    background-color: #d4af37 !important;
    background-image: linear-gradient(
      105deg,
      #fff6d4 0%,
      #d4af37 28%,
      #f8e7a0 50%,
      #c5a572 72%,
      #fff6d4 100%
    ) !important;
    background-size: 220% 100% !important;
    color: #3a3228 !important;
    -webkit-text-fill-color: #3a3228 !important;
    border-color: #d4af37 !important;
    box-shadow:
      0 0 0 1px rgba(212, 175, 55, 0.75),
      0 0 22px rgba(212, 175, 55, 0.45) !important;
    animation: sk-gold-ui-shift 2.4s linear infinite;
  }

  html body.sk-gems .ast-mobile-header-wrap .menu-toggle::after,
  html body.sk-gems .ast-mobile-header-wrap .menu-toggle.main-header-menu-toggle::after,
  html body.sk-ritual .ast-button-wrap .menu-toggle::after {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(105deg, transparent 28%, rgba(255, 255, 255, 0.72) 50%, transparent 72%);
    transform: translateX(-130%);
    animation: sk-gold-ui-sheen 2.1s ease-in-out infinite;
    pointer-events: none;
  }

  html body.sk-gems .sk-mhead-burger-label {
    position: relative;
    z-index: 1;
    color: #3a3228 !important;
    -webkit-text-fill-color: #3a3228 !important;
  }
}

/* —— Panels: золотая рамка + переливающийся кант —— */
html body.sk-gems :is(
    .sk-micro,
    .sk-purchase-gift,
    .sk-dev-fund,
    .sk-digital-head,
    .sk-queries,
    .sk-daily-challenge,
    .sk-product-of-day,
    .sk-referral,
    .sk-box,
    .sk-community,
    .sk-home-soul,
    .sk-also,
    .sk-bio,
    .sk-mission,
    .sk-dir,
    .sk-article,
    .sk-articles,
    .sk-popular-queries,
    .sk-live-purchases,
    .sk-viewed,
    .sk-curator,
    .sk-promo-shokeri,
    .sk-daily-challenge__card,
    .sk-purchase-gift__card,
    .sk-pod__card,
    .sk-box__summary,
    .sk-mood-quiz__panel,
    .sk-sisters__in,
    .sk-sisters__card,
    .sk-merch-intro,
    .sk-viewed__card,
    .sk-quiet-hubs
  ) {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-color: #d4af37 !important;
  box-shadow:
    0 0 0 1px rgba(212, 175, 55, 0.55),
    0 0 22px rgba(212, 175, 55, 0.3) !important;
}

html body.sk-gems :is(
    .sk-micro,
    .sk-purchase-gift,
    .sk-dev-fund,
    .sk-digital-head,
    .sk-queries,
    .sk-daily-challenge,
    .sk-product-of-day,
    .sk-referral,
    .sk-box,
    .sk-community,
    .sk-home-soul,
    .sk-also,
    .sk-bio,
    .sk-mission,
    .sk-dir,
    .sk-article,
    .sk-articles,
    .sk-popular-queries,
    .sk-live-purchases,
    .sk-viewed,
    .sk-curator,
    .sk-promo-shokeri,
    .sk-daily-challenge__card,
    .sk-purchase-gift__card,
    .sk-pod__card,
    .sk-box__summary,
    .sk-mood-quiz__panel,
    .sk-sisters__in,
    .sk-sisters__card,
    .sk-merch-intro,
    .sk-viewed__card,
    .sk-quiet-hubs
  )::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    120deg,
    #d4af37,
    #f8e7a0,
    #e8c547,
    #b8860b,
    #fff6d4,
    #d4af37
  );
  background-size: 220% 100%;
  animation: sk-gold-ui-ring 3.6s linear infinite;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
}

html body.sk-gems :is(
    .sk-micro,
    .sk-purchase-gift,
    .sk-dev-fund,
    .sk-digital-head,
    .sk-queries,
    .sk-daily-challenge,
    .sk-product-of-day,
    .sk-referral,
    .sk-box,
    .sk-community,
    .sk-home-soul,
    .sk-also,
    .sk-bio,
    .sk-mission,
    .sk-dir,
    .sk-article,
    .sk-articles,
    .sk-popular-queries,
    .sk-live-purchases,
    .sk-viewed,
    .sk-curator,
    .sk-promo-shokeri,
    .sk-daily-challenge__card,
    .sk-purchase-gift__card,
    .sk-pod__card,
    .sk-box__summary,
    .sk-mood-quiz__panel,
    .sk-sisters__in,
    .sk-sisters__card,
    .sk-merch-intro,
    .sk-viewed__card,
    .sk-quiet-hubs
  )::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.38) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: sk-gold-ui-sheen 3.4s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

html body.sk-gems .sk-mood-quiz {
  overflow: visible;
}

html body.sk-gems .sk-mood-quiz::before,
html body.sk-gems .sk-mood-quiz::after {
  display: none;
}

/* Карточки каталога: блик по золотой рамке */
html body.sk-gems .woocommerce ul.products li.product:not(.product-category),
html body.sk-gems ul.products li.product:not(.product-category) {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

html body.sk-gems .woocommerce ul.products li.product:not(.product-category)::before,
html body.sk-gems ul.products li.product:not(.product-category)::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(105deg, transparent 32%, rgba(255, 255, 255, 0.35) 50%, transparent 68%);
  transform: translateX(-120%);
  animation: sk-gold-ui-sheen 3.8s ease-in-out infinite;
  pointer-events: none;
  z-index: 3;
}

/* Mobile: блок «Другие проекты» — сильнее золото */
@media (max-width: 1023px) {
  html body.sk-gems .sk-sisters__in {
    border: 1px solid #d4af37 !important;
    box-shadow:
      0 0 0 1px rgba(212, 175, 55, 0.65),
      0 0 28px rgba(212, 175, 55, 0.38) !important;
  }

  html body.sk-gems .sk-sisters__card {
    border: 1px solid #d4af37 !important;
    background: linear-gradient(165deg, #fffdf6 0%, #f7ecd0 55%, #efe3c0 100%) !important;
  }

  html body.sk-gems .sk-mhead-menu-kicker {
    margin: 0 0 10px;
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid #d4af37;
    background: linear-gradient(165deg, #fffdf6, #f7ecd0);
    color: #3a3228;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 11px;
    box-shadow: 0 0 18px rgba(212, 175, 55, 0.35);
  }
}

/* Карточки товара: кнопка только золотая с переливом. Синий #423e8e с карточек снят. */
html body.sk-gems.sk-ritual ul.products li.product:not(.product-category) .button,
html body.sk-gems.sk-ritual ul.products li.product:not(.product-category) a.button,
html body.sk-gems.sk-ritual .woocommerce ul.products li.product a.button,
html body.sk-gems.sk-ritual .woocommerce a.button.add_to_cart_button,
html body.sk-gems.sk-ritual .woocommerce a.button.product_type_simple,
html body.sk-gems.sk-ritual .woocommerce button.button.alt,
html body.sk-gems.sk-ritual .single_add_to_cart_button,
html body.sk-gems.single-product.sk-product-buy .sk-buy .single_add_to_cart_button,
html body.sk-gems.single-product.sk-product-buy .sk-buy__cart--physical-mix .single_add_to_cart_button,
html body.sk-gems.sk-product-digital-card .sk-buy .single_add_to_cart_button,
html body.sk-gems.sk-product-digital-card .sk-buy button.single_add_to_cart_button,
html body.sk-gems.sk-product-photo-pets .sk-buy .single_add_to_cart_button,
html body.sk-gems.sk-product-photo-pets .sk-buy button.single_add_to_cart_button {
  position: relative !important;
  isolation: isolate;
  overflow: hidden !important;
  background-color: #d4af37 !important;
  background-image: linear-gradient(
    105deg,
    #fff6d4 0%,
    #d4af37 28%,
    #f8e7a0 50%,
    #c5a572 72%,
    #fff6d4 100%
  ) !important;
  background-size: 220% 100% !important;
  color: #3a3228 !important;
  -webkit-text-fill-color: #3a3228 !important;
  border-color: #d4af37 !important;
  box-shadow:
    0 0 0 1px rgba(212, 175, 55, 0.75),
    0 0 22px rgba(212, 175, 55, 0.45) !important;
  animation: sk-gold-ui-shift 2.4s linear infinite;
}

html body.sk-gems.sk-ritual ul.products li.product:not(.product-category) .button:hover,
html body.sk-gems.sk-ritual ul.products li.product:not(.product-category) a.button:hover,
html body.sk-gems.sk-ritual .woocommerce a.button.add_to_cart_button:hover,
html body.sk-gems.sk-ritual .single_add_to_cart_button:hover,
html body.sk-gems.single-product.sk-product-buy .sk-buy .single_add_to_cart_button:hover,
html body.sk-gems.sk-product-digital-card .sk-buy .single_add_to_cart_button:hover,
html body.sk-gems.sk-product-photo-pets .sk-buy .single_add_to_cart_button:hover {
  background-color: #e8c547 !important;
  background-image: linear-gradient(
    105deg,
    #fff6d4 0%,
    #e8c547 28%,
    #f8e7a0 50%,
    #d4af37 72%,
    #fff6d4 100%
  ) !important;
  color: #3a3228 !important;
  -webkit-text-fill-color: #3a3228 !important;
  filter: none !important;
}

html body.sk-gems.sk-ritual ul.products li.product:not(.product-category) .button::after,
html body.sk-gems.sk-ritual ul.products li.product:not(.product-category) a.button::after,
html body.sk-gems.single-product.sk-product-buy .sk-buy .single_add_to_cart_button::after,
html body.sk-gems.sk-product-digital-card .sk-buy .single_add_to_cart_button::after,
html body.sk-gems.sk-product-photo-pets .sk-buy .single_add_to_cart_button::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(105deg, transparent 28%, rgba(255, 255, 255, 0.72) 50%, transparent 72%);
  transform: translateX(-130%);
  animation: sk-gold-ui-sheen 2.1s ease-in-out infinite;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  html body.sk-gems .site-header #menu-item-6925 > .menu-link,
  html body.sk-gems .site-header .main-header-menu > .menu-item > a[href*="/catalog/"],
  html body.sk-gems a.sk-mhead-link--shop,
  html body.sk-gems .ast-mobile-header-wrap .menu-toggle,
  html body.sk-gems :is(.sk-sisters__in, .sk-sisters__card)::before,
  html body.sk-gems.sk-ritual ul.products li.product:not(.product-category) .button,
  html body.sk-gems.single-product.sk-product-buy .sk-buy .single_add_to_cart_button,
  html body.sk-gems.sk-product-digital-card .sk-buy .single_add_to_cart_button {
    animation: none !important;
  }

  html body.sk-gems :is(.sk-sisters__in, .sk-sisters__card, .sk-queries)::after,
  html body.sk-gems a.sk-mhead-link--shop::after,
  html body.sk-gems .site-header .main-header-menu > .menu-item > a[href*="/catalog/"]::after,
  html body.sk-gems.sk-ritual ul.products li.product:not(.product-category) .button::after,
  html body.sk-gems.single-product.sk-product-buy .sk-buy .single_add_to_cart_button::after,
  html body.sk-gems.sk-product-digital-card .sk-buy .single_add_to_cart_button::after {
    animation: none !important;
    display: none;
  }
}