/*
 * 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; }
}

/* --- Savings vs. official in-game price (Mammoth coins & Collector pack) --- */
.sa-discount-badge {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.2rem;
  padding: 0.12rem 0.5rem;
  border-radius: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.3;
  color: #8ef0b0;
  background: rgba(var(--cl-success), 0.18);
  border: 1px solid rgba(var(--cl-success), 0.4);
}

.sa-savings-help {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  margin-bottom: 0.3rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: help;
  color: rgb(var(--cl-t-primary));
  background: rgba(var(--cl-t-primary), 0.18);
}

.sa-savings-box {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-card, 10px);
  border: 1px solid rgba(var(--cl-success), 0.4);
  background: rgba(var(--cl-success), 0.12);
  box-shadow: 0 0 18px rgba(var(--cl-success), 0.15);
}

.sa-savings-box p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.45;
  color: rgb(var(--cl-t-primary));
}

.sa-savings-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  color: #fff;
  background: rgb(var(--cl-success));
}

.sa-savings-amount {
  color: #8ef0b0;
  font-weight: 700;
}


/* ==================================================================
   ASHCOIN v2 - "Explainer" look across the whole site
   Space background + nebula + perspective floor, Exo 2 headings
   with neon glow, theme-blue highlight words, glass cards, gradient buttons.
   ================================================================== */

:root {
  --ash-blue: 74, 144, 217;
  --ash-blue2: 110, 175, 255;
  --ash-purple: 47, 111, 192;   /* deep accent blue (kept the name for the rules below) */
  --ash-gold: 140, 196, 255;    /* light accent blue */
  --ash-title-font: 'Exo 2', var(--ff-heading);
  --ash-title-weight: 700;
  --ash-glass: linear-gradient(160deg, rgba(29, 37, 48, .72) 0%, rgba(18, 24, 31, .72) 100%);
  --ash-edge: rgba(110, 170, 255, .18);
}

/* ---------- Background layers ----------
   Same colours as before; lights are smaller, softer and spread to the
   four corners + a soft spot behind the hero, with a vignette so the
   particles read clearly in the middle of the page. */
body {
  background-color: #080d1f;
  background-image: linear-gradient(170deg, #0b1630 0%, #090f24 45%, #0f0c26 100%);
  background-attachment: fixed;
}
.ash-space { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.ash-nebula { position: absolute; border-radius: 50%; filter: blur(80px); will-change: transform; }
.ash-nebula--a { width: 38vw; height: 38vw; left: -12vw; top: -14vw; opacity: .42; background: radial-gradient(circle, rgba(47, 111, 224, .85), transparent 68%); animation: ash-neb-a 30s ease-in-out infinite alternate; }
.ash-nebula--b { width: 34vw; height: 34vw; right: -12vw; top: 38vh; opacity: .3; background: radial-gradient(circle, rgba(140, 60, 255, .7), transparent 68%); animation: ash-neb-b 36s ease-in-out infinite alternate; }
.ash-nebula--c { width: 30vw; height: 30vw; left: -8vw; bottom: -10vw; opacity: .2; background: radial-gradient(circle, rgba(40, 200, 220, .55), transparent 68%); animation: ash-neb-c 42s ease-in-out infinite alternate; }
.ash-nebula--d { width: 60vw; height: 36vh; left: 20vw; top: -8vh; opacity: .22; border-radius: 50%; background: radial-gradient(ellipse, rgba(110, 175, 255, .7), transparent 70%); animation: ash-neb-d 24s ease-in-out infinite alternate; }
.ash-vignette { position: absolute; inset: 0; background: radial-gradient(ellipse 85% 75% at 50% 45%, transparent 55%, rgba(4, 7, 18, .55) 100%); }
.ash-floor {
  position: absolute; left: -30%; right: -30%; bottom: -6vh; height: 34vh; opacity: .13;
  background-image:
    linear-gradient(rgba(var(--ash-blue2), .7) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--ash-blue2), .7) 1px, transparent 1px);
  background-size: 70px 70px;
  transform: perspective(500px) rotateX(64deg); transform-origin: bottom center;
  -webkit-mask: linear-gradient(to top, #000 0%, transparent 90%); mask: linear-gradient(to top, #000 0%, transparent 90%);
  animation: ash-floor 5s linear infinite;
}
#particles-js { opacity: 1 !important; }
@keyframes ash-neb-a { to { transform: translate(6vw, 6vh) scale(1.08); } }
@keyframes ash-neb-b { to { transform: translate(-5vw, -8vh) scale(1.06); } }
@keyframes ash-neb-c { to { transform: translate(6vw, -5vh) scale(.94); } }
@keyframes ash-neb-d { to { transform: translate(-4vw, 3vh) scale(1.1); opacity: .3; } }
@keyframes ash-floor { from { background-position: 0 0; } to { background-position: 0 70px; } }

/* ---------- Headings ---------- */
.sa-hero-title,
.sa-section-title,
.sa-custom-page-heading-title {
  font-family: var(--ash-title-font);
  font-weight: var(--ash-title-weight);
  text-transform: uppercase;
  letter-spacing: .015em;
  line-height: 1.1;
  color: #fff;
  text-shadow: 0 0 16px rgba(var(--ash-blue), .7), 0 0 40px rgba(var(--ash-blue), .35), 0 3px 0 rgba(8, 16, 40, .9);
}
.sa-hero-title { font-size: clamp(2.3rem, 5.4vw, 4.2rem); animation: ash-title-glow 3.4s ease-in-out infinite; }
.sa-section-title { font-size: clamp(1.7rem, 3.1vw, 2.4rem); }

/* highlighted words (*like this*) turn gold with a moving shine */
.sa-hero-title .mk,
.sa-section-title .mk,
.sa-custom-page-heading-title .mk {
  background: linear-gradient(100deg, #7ab8ff 0%, #4A90D9 35%, #dcefff 50%, #4A90D9 65%, #7ab8ff 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 0 14px rgba(var(--ash-gold), .5)) drop-shadow(0 3px 0 rgba(8, 16, 40, .85));
  animation: ash-shine 4s linear infinite;
}

/* neon line under centered section titles */
.sa-section-header.text-center .sa-section-title::after {
  content: ""; display: block; width: 120px; height: 3px; margin: 16px auto 0; border-radius: 3px;
  background: linear-gradient(90deg, transparent, rgb(var(--ash-blue)), rgb(var(--ash-purple)), rgb(var(--ash-blue)), transparent);
  background-size: 200% 100%;
  box-shadow: 0 0 12px rgba(var(--ash-blue), .8);
  animation: ash-shine 3s linear infinite;
}

.sa-hero-subtitle, .sa-section-subtitle { color: #b9c3d3; }

/* eyebrow text as a glowing pill */
.sa-section-eyebrow, .sa-hero-eyebrow {
  display: inline-flex !important; align-items: center; gap: 8px;
  padding: 5px 13px; border-radius: 999px;
  border: 1px solid rgba(var(--ash-blue), .45); background: rgba(var(--ash-blue), .12);
  color: #9fd0ff !important; font-size: 12px !important; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}

@keyframes ash-shine { from { background-position: 200% 0; } to { background-position: -20% 0; } }
@keyframes ash-title-glow {
  0%, 100% { text-shadow: 0 0 16px rgba(var(--ash-blue), .7), 0 0 40px rgba(var(--ash-blue), .35), 0 3px 0 rgba(8, 16, 40, .9); }
  50% { text-shadow: 0 0 24px rgba(var(--ash-blue2), .95), 0 0 64px rgba(var(--ash-purple), .45), 0 3px 0 rgba(8, 16, 40, .9); }
}

/* ---------- Navbar & header ---------- */
.sa-header {
  background: rgba(8, 12, 30, .62);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
}
.sa-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(var(--ash-blue), .7), rgba(var(--ash-purple), .7), transparent);
}
.sa-navbar { background: transparent !important; }
.sa-navbar-logo span { font-family: var(--ash-title-font); font-weight: 700; letter-spacing: .02em; font-size: 1.1em; }
.sa-navbar-link { position: relative; }
.sa-navbar-link::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; width: 0; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, rgb(var(--ash-blue)), rgb(var(--ash-purple)));
  box-shadow: 0 0 8px rgba(var(--ash-blue), .8);
  transition: width .25s ease, left .25s ease;
}
.sa-navbar-link:hover::after { width: 60%; left: 20%; }

/* ---------- Glass cards ---------- */
.sa-product-card,
.sa-feedback-card,
.sa-categories-item,
.sa-stats-items.rounded-card,
.sa-stats-item.rounded-card,
.sa-faq .rounded-card,
.sa-status-card,
.sa-text-image-block .rounded-card,
.sa-text-video-block .rounded-card {
  background: var(--ash-glass) !important;
  border-color: var(--ash-edge) !important;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .02) inset, 0 12px 30px -12px rgba(0, 0, 0, .6);
}
.sa-product-card:hover,
.sa-categories-item:hover,
.sa-feedback-card:hover {
  border-color: rgba(var(--ash-blue2), .55) !important;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .05) inset, 0 16px 34px -10px rgba(0, 0, 0, .6), 0 0 26px rgba(var(--ash-blue), .45), 0 0 60px rgba(var(--ash-purple), .2);
}
.sa-product-card-title { font-weight: 700; }
.sa-product-card-price {
  color: #8cc4ff !important; font-weight: 700;
  text-shadow: 0 0 12px rgba(var(--ash-gold), .45);
}
.sa-product-card-price-slash { color: #7d8796 !important; }

/* stats numbers */
.sa-stats-item .text-h2 {
  font-family: var(--ash-title-font); font-weight: var(--ash-title-weight); font-size: clamp(1.9rem, 3vw, 2.4rem);
  color: #fff; text-shadow: 0 0 14px rgba(var(--ash-blue), .75), 0 0 34px rgba(var(--ash-blue), .35);
}

/* feature icons glow */
.sa-features-item i, .sa-features-item svg { filter: drop-shadow(0 0 8px rgba(var(--ash-blue), .7)); }

/* ---------- Buttons ---------- */
.sa-btn--primary.sa-btn--solid,
.sa-add-to-cart {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(135deg, #5fa3ec 0%, #4A90D9 50%, #3a76b8 100%) !important;
  color: #fff !important; border: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .16) inset, 0 8px 22px rgba(74, 144, 217, .4), 0 0 26px rgba(74, 144, 217, .3);
}
.sa-btn--primary.sa-btn--solid::after,
.sa-add-to-cart::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent);
  transform: skewX(-20deg); animation: ash-sweep 3.2s ease-in-out infinite;
}
.sa-btn--primary.sa-btn--solid:hover,
.sa-add-to-cart:hover {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .26) inset, 0 12px 30px rgba(74, 144, 217, .55), 0 0 44px rgba(74, 144, 217, .5);
}
.sa-btn--secondary {
  background: rgba(14, 20, 44, .55) !important;
  border-color: rgba(var(--ash-blue2), .35) !important;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
@keyframes ash-sweep { 0%, 55% { left: -60%; } 100% { left: 130%; } }

/* ---------- Search bar ---------- */
.sa-searchbar input {
  background: rgba(14, 20, 44, .6) !important;
  border-color: rgba(var(--ash-blue2), .25) !important;
  transition: border-color .2s, box-shadow .2s;
}
.sa-searchbar input:focus {
  border-color: rgba(var(--ash-blue2), .7) !important;
  box-shadow: 0 0 0 3px rgba(var(--ash-blue), .18), 0 0 24px rgba(var(--ash-blue), .35);
}

/* ---------- Footer ---------- */
.sa-footer {
  position: relative;
  background: rgba(6, 10, 26, .7) !important;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top-color: transparent !important;
}
.sa-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--ash-blue), .7), rgba(var(--ash-purple), .7), transparent);
}

/* ---------- Small touches ---------- */
::selection { background: rgba(var(--ash-blue), .45); color: #fff; }
html { scrollbar-color: rgba(var(--ash-blue), .6) #080d1f; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #080d1f; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, rgb(var(--ash-blue)), rgb(var(--ash-purple))); border-radius: 10px; border: 2px solid #080d1f; }

@media (max-width: 768px) {
  .ash-nebula { filter: blur(60px); }
  .ash-floor { height: 30vh; }
}
@media (prefers-reduced-motion: reduce) {
  .ash-nebula, .ash-floor, .sa-hero-title, .sa-hero-title .mk, .sa-section-title .mk,
  .sa-section-header .sa-section-title::after, .sa-btn--primary.sa-btn--solid::after, .sa-add-to-cart::after { animation: none !important; }
}


/* ==================================================================
   Arabic / right-to-left
   Exo 2 and Play have no Arabic letters, so RTL pages use Cairo.
   Letter-spacing is removed (it breaks joined Arabic letters) and
   arrows point the other way.
   ================================================================== */
html[dir="rtl"] {
  --ash-title-font: 'Cairo', 'Exo 2', sans-serif;
  --ash-title-weight: 700;
}
html[dir="rtl"] body,
html[dir="rtl"] button,
html[dir="rtl"] input,
html[dir="rtl"] textarea,
html[dir="rtl"] select { font-family: 'Cairo', var(--ff-body); }
html[dir="rtl"] .sa-hero-title,
html[dir="rtl"] .sa-section-title,
html[dir="rtl"] .sa-custom-page-heading-title,
html[dir="rtl"] .sa-section-eyebrow,
html[dir="rtl"] .sa-hero-eyebrow,
html[dir="rtl"] .sa-navbar-logo span,
html[dir="rtl"] [class^="sa-fb-"],
html[dir="rtl"] [class^="sa-fh-"] { letter-spacing: 0 !important; }
html[dir="rtl"] .sa-hero-title,
html[dir="rtl"] .sa-section-title,
html[dir="rtl"] .sa-custom-page-heading-title { line-height: 1.35; }
html[dir="rtl"] .sa-av-sound { right: auto; left: 14px; }
