/*
 * Enter any custom CSS here.
 * This file will not be overwritten by theme updates.
 *
 * ── Semantic class hooks (sa-*) ────────────────────────────────────────────
 * Every section, snippet and key element carries a stable `sa-` class you can
 * target with plain CSS — no Tailwind rebuild needed. These classes ship with
 * NO styles of their own; they exist purely as selectors for you to hook onto.
 *
 * Page scope   body.sa-tpl-<template>      e.g. .sa-tpl-product, .sa-tpl-shop
 *              body.sa-no-product-images / .sa-no-category-images when the
 *              matching theme setting is off
 * Chrome       .sa-header .sa-navbar .sa-footer
 *              .sa-navbar-link .sa-navbar-logo .sa-navbar-cart .sa-footer-link
 * Sections     .sa-<component>             e.g. .sa-hero, .sa-features, .sa-faq
 *   variant    .sa-<component>--<variant>  e.g. .sa-hero--split-media
 *   inner      .sa-<component>-title / -subtitle / -eyebrow / -media /
 *              -items / -item / -actions / -link / -price / -badge / -icon
 * Primitives   .sa-btn (+ .sa-btn--<variant>), .sa-section-header
 *              (.sa-section-title / -eyebrow / -subtitle),
 *              .sa-product-card (+ .sa-product-card--<style>,
 *              .sa-product-card-title / -price / -stock / -status / -badges),
 *              .sa-product-form + .sa-add-to-cart, .sa-product-gallery,
 *              .sa-cart-panel + .sa-cart-item, .sa-searchbar, .sa-pagination,
 *              .sa-breadcrumbs, .sa-toasts + .sa-toast, .sa-feedback-card
 *
 * Example — bigger hero heading only on the product page:
 *   .sa-tpl-product .sa-hero-title { font-size: 3rem; }
 * ───────────────────────────────────────────────────────────────────────────
*/

/* ============================================================
   Ashcoin custom styling (merged with the Canvas theme)
   - Ambient blue gradient background (+ particles network)
   - Glowing brand / heading text in accent blue
   - Hover zoom + glow on cards, buttons, nav links
   - Pulsing glow on the Discord buttons
   ============================================================ */

:root {
  --ashcoin-glow: #4A90D9;
  --ashcoin-glow-rgb: 74, 144, 217;
}

/* --- Background: ambient blue glow over #12181F ------------- */
body {
  background-image:
    radial-gradient(ellipse 900px 700px at 12% 15%, rgba(var(--ashcoin-glow-rgb), 0.30), transparent 62%),
    radial-gradient(ellipse 700px 550px at 88% 85%, rgba(var(--ashcoin-glow-rgb), 0.16), transparent 60%),
    radial-gradient(ellipse 1200px 900px at 50% 0%, rgba(255, 255, 255, 0.04), transparent 55%);
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* --- Glowing text ------------------------------------------- */
/* Brand name in the navbar */
.sa-navbar-logo span {
  color: var(--ashcoin-glow);
  text-shadow:
    0 0 6px rgba(var(--ashcoin-glow-rgb), 0.55),
    0 0 14px rgba(var(--ashcoin-glow-rgb), 0.35),
    0 0 24px rgba(var(--ashcoin-glow-rgb), 0.2);
  transition: text-shadow 0.3s ease-in-out;
}
.sa-navbar-logo:hover span {
  text-shadow:
    0 0 10px rgba(var(--ashcoin-glow-rgb), 0.85),
    0 0 22px rgba(var(--ashcoin-glow-rgb), 0.55),
    0 0 36px rgba(var(--ashcoin-glow-rgb), 0.35);
}

/* Headings: soft white/blue glow so plain text like "Welcome to" isn't flat */
.sa-hero-title,
.sa-section-title {
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.28),
    0 0 22px rgba(var(--ashcoin-glow-rgb), 0.22);
}

/* Highlighted word (e.g. the shop name) gets a stronger blue glow */
.sa-hero-title .mk,
.sa-section-title .mk {
  text-shadow:
    0 0 8px rgba(var(--ashcoin-glow-rgb), 0.75),
    0 0 20px rgba(var(--ashcoin-glow-rgb), 0.5),
    0 0 38px rgba(var(--ashcoin-glow-rgb), 0.3);
}

/* Stat numbers */
.sa-stats-item .text-accent-500,
.sa-stats-item [class*="font-heading"] {
  text-shadow: 0 0 14px rgba(var(--ashcoin-glow-rgb), 0.45);
}

/* --- Hover zoom + glow: product / category / review cards ---- */
.sa-product-card,
.sa-categories-item,
.sa-feedback-card {
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.3s ease-in-out,
    background-color 0.3s ease-in-out;
  will-change: transform;
}

.sa-product-card:hover,
.sa-categories-item:hover,
.sa-feedback-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.35),
    0 0 22px rgba(var(--ashcoin-glow-rgb), 0.5),
    0 0 46px rgba(var(--ashcoin-glow-rgb), 0.2);
  border-color: rgba(var(--ashcoin-glow-rgb), 0.5);
  background-color: rgba(var(--ashcoin-glow-rgb), 0.07);
  position: relative;
  z-index: 2;
}

/* Product image zooms inside its frame for extra depth */
.sa-product-card :has(> img),
.sa-categories-item :has(> img) {
  overflow: hidden;
}
.sa-product-card img,
.sa-categories-item img {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.sa-product-card:hover img,
.sa-categories-item:hover img {
  transform: scale(1.08);
}

/* --- Review cards: keep "Verified" fully visible ------------- */
.sa-feedback-card > .relative > div:first-child {
  flex-wrap: wrap;
  row-gap: 0.25rem;
}
.sa-feedback-card span.text-success {
  flex-shrink: 0;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

/* --- Buttons: zoom + glow on hover -------------------------- */
.sa-btn {
  transition:
    transform 0.2s ease-in-out,
    box-shadow 0.2s ease-in-out,
    background-color 0.15s ease-in-out,
    border-color 0.15s ease-in-out,
    color 0.15s ease-in-out;
}
.sa-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 0 18px rgba(var(--ashcoin-glow-rgb), 0.55);
}

/* --- Discord buttons: always-on pulsing glow ---------------- */
.sa-btn[href*="discord.gg"],
.sa-btn[href*="discord.com"],
.sa-btn:has(.fa-discord) {
  box-shadow:
    0 0 14px rgba(var(--ashcoin-glow-rgb), 0.55),
    0 0 30px rgba(var(--ashcoin-glow-rgb), 0.28);
  animation: ashcoin-discord-pulse 2.6s ease-in-out infinite;
}
.sa-btn[href*="discord.gg"]:hover,
.sa-btn[href*="discord.com"]:hover,
.sa-btn:has(.fa-discord):hover {
  animation: none;
  box-shadow:
    0 0 24px rgba(var(--ashcoin-glow-rgb), 0.85),
    0 0 52px rgba(var(--ashcoin-glow-rgb), 0.5);
}

@keyframes ashcoin-discord-pulse {
  0%, 100% {
    box-shadow:
      0 0 10px rgba(var(--ashcoin-glow-rgb), 0.45),
      0 0 22px rgba(var(--ashcoin-glow-rgb), 0.2);
  }
  50% {
    box-shadow:
      0 0 20px rgba(var(--ashcoin-glow-rgb), 0.8),
      0 0 44px rgba(var(--ashcoin-glow-rgb), 0.4);
  }
}

/* --- Navbar links: soft glow on hover ----------------------- */
.sa-navbar-link:hover,
.sa-navbar-cart:hover {
  text-shadow: 0 0 10px rgba(var(--ashcoin-glow-rgb), 0.6);
}

@media (prefers-reduced-motion: reduce) {
  .sa-btn[href*="discord.gg"],
  .sa-btn[href*="discord.com"],
  .sa-btn:has(.fa-discord) { animation: none; }
  .sa-product-card, .sa-categories-item, .sa-feedback-card, .sa-btn { transition: none; }
}
