/*
 * 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.
 * ───────────────────────────────────────────────────────────────────────────
*/

/* ==========================================================================
   TOKYO GRID — design system
   A near-black / near-white foundation with a dual electric-blue + pink
   signal running through it. Signature device: a HUD "lock-on" corner
   bracket frame (viewfinder brackets), used on the hero and echoed on
   hover states, plus a monospace "terminal tag" treatment for eyebrows,
   prices and status readouts.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&display=swap');
/* Heading font (Rajdhani) and body font (Inter) are loaded automatically by
   the theme from the font_heading / font_body settings — no import needed
   here. */

:root {
  /* secondary signal color — electric pink. Blue (--cl-accent) stays the
     primary interactive color; pink is reserved for glow accents, gradient
     edges and a handful of decorative flourishes so it never competes with
     buttons/links for attention. */
  --cl-accent-2: 328 100% 61%;
  --cl-accent-2-rgb: 255, 39, 173;
  --ff-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --hud-corner: 14px;
  --hud-thickness: 2px;
}

/* ------------------------------------------------------------------------ */
/* Base surfaces                                                            */
/* ------------------------------------------------------------------------ */

::selection {
  background: rgba(var(--cl-accent-2-rgb), 0.35);
  color: rgb(var(--cl-t-primary));
}

html {
  scrollbar-color: rgba(var(--cl-accent), 0.5) transparent;
  scrollbar-width: thin;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(var(--cl-accent), 0.55), rgba(var(--cl-accent-2-rgb), 0.55));
  border-radius: 999px;
  border: 2px solid rgb(var(--cl-background));
}

:focus-visible {
  outline: 2px solid rgba(var(--cl-accent), 0.75);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Faint fixed scanline texture — reinforces the HUD/terminal reading of the
   background pattern that's already enabled via theme settings, with no
   extra DOM required. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 3px,
    rgba(var(--cl-t-primary), 0.012) 3px,
    rgba(var(--cl-t-primary), 0.012) 4px
  );
}

/* ------------------------------------------------------------------------ */
/* Terminal tag — eyebrows, badges, mono numerals                           */
/* ------------------------------------------------------------------------ */

.sa-hero-eyebrow,
.sa-section-eyebrow {
  font-family: var(--ff-mono) !important;
  font-size: 0.6875rem !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 3px !important;
  position: relative;
}

.sa-hero-eyebrow .size-1\.5,
.sa-section-eyebrow .size-1\.5 {
  border-radius: 1px !important;
  box-shadow: 0 0 5px 0.5px rgba(var(--cl-accent), 0.8);
  animation: hud-blink 2.2s ease-in-out infinite;
}

@keyframes hud-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

@media (prefers-reduced-motion: reduce) {
  .sa-hero-eyebrow .size-1\.5,
  .sa-section-eyebrow .size-1\.5 { animation: none; }
}

/* Prices, stats and stock counters read like console output. */
.sa-product-card-price,
.sa-stats-item span.text-h2,
.sa-product-card-stock {
  font-family: var(--ff-mono);
  font-feature-settings: 'tnum' 1;
  letter-spacing: -0.01em;
}

.sa-stats-item span.text-h2 {
  text-shadow: 0 0 24px rgba(var(--cl-accent), 0.35);
}

/* ------------------------------------------------------------------------ */
/* Title highlight — neon glow instead of flat color                       */
/* ------------------------------------------------------------------------ */

.hl-accent .mk {
  position: relative;
  color: rgb(var(--cl-accent));
  text-shadow:
    0 0 1px rgba(var(--cl-accent-2-rgb), 0.9),
    0 0 14px rgba(var(--cl-accent), 0.5),
    0 0 34px rgba(var(--cl-accent), 0.3),
    0 0 54px rgba(var(--cl-accent-2-rgb), 0.16);
}

.hl-accent .mk::after {
  content: '';
  position: absolute;
  left: -2%;
  right: -3%;
  bottom: -0.16em;
  height: 0.15em;
  background: hsl(var(--cl-accent-2));
  opacity: 0.8;
  border-radius: 3px;
  transform: rotate(-0.7deg);
}

/* ------------------------------------------------------------------------ */
/* Navbar                                                                    */
/* ------------------------------------------------------------------------ */

.sa-header { position: relative; }
.sa-header::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--cl-accent), 0.55) 20%, rgba(var(--cl-accent-2-rgb), 0.55) 50%, rgba(var(--cl-accent), 0.55) 80%, transparent);
  opacity: 0.7;
  pointer-events: none;
}

.sa-navbar-logo span {
  font-family: var(--ff-heading);
  letter-spacing: -0.01em;
}

.sa-navbar-link.bg-t-primary\/5 { position: relative; }
.sa-navbar-link.bg-t-primary\/5::before {
  content: '';
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  bottom: 2px;
  height: 1px;
  background: rgb(var(--cl-accent));
  box-shadow: 0 0 6px rgba(var(--cl-accent), 0.8);
}

.sa-scheme-toggle:hover,
.sa-navbar-cart:hover {
  filter: drop-shadow(0 0 6px rgba(var(--cl-accent), 0.5));
}

/* ------------------------------------------------------------------------ */
/* Announcement bar                                                          */
/* ------------------------------------------------------------------------ */

.sa-announcement {
  font-family: var(--ff-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.75rem !important;
}

.sa-announcement--accent {
  background: linear-gradient(90deg, rgb(var(--cl-accent)), hsl(var(--cl-accent-2))) !important;
}

/* ------------------------------------------------------------------------ */
/* HUD corner-bracket frame — signature element                             */
/* Applied to the hero and echoed (smaller) on hovered cards.               */
/* ------------------------------------------------------------------------ */

.sa-hero { position: relative; }

.sa-hero::before,
.sa-hero::after,
.sa-hero .wrap::before,
.sa-hero .wrap::after {
  content: '';
  position: absolute;
  width: var(--hud-corner);
  height: var(--hud-corner);
  pointer-events: none;
  z-index: 2;
}

.sa-hero::before { top: 22px; left: 22px; border-top: var(--hud-thickness) solid rgba(var(--cl-accent), 0.55); border-left: var(--hud-thickness) solid rgba(var(--cl-accent), 0.55); }
.sa-hero::after { top: 22px; right: 22px; border-top: var(--hud-thickness) solid rgba(var(--cl-accent-2-rgb), 0.55); border-right: var(--hud-thickness) solid rgba(var(--cl-accent-2-rgb), 0.55); }
.sa-hero .wrap::before { bottom: 22px; left: 22px; border-bottom: var(--hud-thickness) solid rgba(var(--cl-accent-2-rgb), 0.55); border-left: var(--hud-thickness) solid rgba(var(--cl-accent-2-rgb), 0.55); }
.sa-hero .wrap::after { bottom: 22px; right: 22px; border-bottom: var(--hud-thickness) solid rgba(var(--cl-accent), 0.55); border-right: var(--hud-thickness) solid rgba(var(--cl-accent), 0.55); }

@media (max-width: 640px) {
  .sa-hero::before, .sa-hero::after, .sa-hero .wrap::before, .sa-hero .wrap::after { display: none; }
}

/* Dual-tone hero atmosphere: retint the built-in glow layer instead of
   fighting it, so the settings-driven background stays in sync. */
.sa-hero .hero-bg-glow {
  background: radial-gradient(circle, rgba(var(--cl-accent), 0.30), transparent 65%);
}

.sa-hero-title { letter-spacing: -0.02em; }

/* Giant watermark kanji ("電" — electric) sitting quietly behind the hero
   copy. One placement only, kept faint, purely atmospheric. */
.sa-tpl-shop .sa-hero .wrap > div {
  position: relative;
}
.sa-tpl-shop .sa-hero .wrap > div::after {
  content: '電';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  font-size: min(38vw, 26rem);
  line-height: 1;
  font-family: var(--ff-heading);
  color: rgba(var(--cl-t-primary), 0.025);
  z-index: -1;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

/* Vertical katakana rails on the hero edges — pure atmosphere, no claims.
   ようこそ = "welcome", オンライン = "online". Rendered as background SVGs
   directly on the section (not a pseudo-element on an empty absolutely
   positioned div) so they never depend on that div picking up a height.
   Hidden below lg since there's no room once the layout stacks. */
@media (min-width: 1024px) {
  .sa-hero--centered {
    background-image:
      url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2228%22%20height%3D%22116%22%3E%3Ctext%20x%3D%2214%22%20y%3D%2220%22%20font-family%3D%22monospace%22%20font-size%3D%2213%22%20fill%3D%22white%22%20fill-opacity%3D%220.09%22%20text-anchor%3D%22middle%22%3E%E3%82%88%3C/text%3E%3Ctext%20x%3D%2214%22%20y%3D%2244%22%20font-family%3D%22monospace%22%20font-size%3D%2213%22%20fill%3D%22white%22%20fill-opacity%3D%220.09%22%20text-anchor%3D%22middle%22%3E%E3%81%86%3C/text%3E%3Ctext%20x%3D%2214%22%20y%3D%2268%22%20font-family%3D%22monospace%22%20font-size%3D%2213%22%20fill%3D%22white%22%20fill-opacity%3D%220.09%22%20text-anchor%3D%22middle%22%3E%E3%81%93%3C/text%3E%3Ctext%20x%3D%2214%22%20y%3D%2292%22%20font-family%3D%22monospace%22%20font-size%3D%2213%22%20fill%3D%22white%22%20fill-opacity%3D%220.09%22%20text-anchor%3D%22middle%22%3E%E3%81%9D%3C/text%3E%3C/svg%3E"),
      url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2228%22%20height%3D%22140%22%3E%3Ctext%20x%3D%2214%22%20y%3D%2220%22%20font-family%3D%22monospace%22%20font-size%3D%2213%22%20fill%3D%22white%22%20fill-opacity%3D%220.09%22%20text-anchor%3D%22middle%22%3E%E3%82%AA%3C/text%3E%3Ctext%20x%3D%2214%22%20y%3D%2244%22%20font-family%3D%22monospace%22%20font-size%3D%2213%22%20fill%3D%22white%22%20fill-opacity%3D%220.09%22%20text-anchor%3D%22middle%22%3E%E3%83%B3%3C/text%3E%3Ctext%20x%3D%2214%22%20y%3D%2268%22%20font-family%3D%22monospace%22%20font-size%3D%2213%22%20fill%3D%22white%22%20fill-opacity%3D%220.09%22%20text-anchor%3D%22middle%22%3E%E3%83%A9%3C/text%3E%3Ctext%20x%3D%2214%22%20y%3D%2292%22%20font-family%3D%22monospace%22%20font-size%3D%2213%22%20fill%3D%22white%22%20fill-opacity%3D%220.09%22%20text-anchor%3D%22middle%22%3E%E3%82%A4%3C/text%3E%3Ctext%20x%3D%2214%22%20y%3D%22116%22%20font-family%3D%22monospace%22%20font-size%3D%2213%22%20fill%3D%22white%22%20fill-opacity%3D%220.09%22%20text-anchor%3D%22middle%22%3E%E3%83%B3%3C/text%3E%3C/svg%3E");
    background-repeat: no-repeat, no-repeat;
    background-position: 40px center, calc(100% - 40px) center;
  }
  [data-scheme="light"] .sa-hero--centered {
    background-image:
      url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2228%22%20height%3D%22116%22%3E%3Ctext%20x%3D%2214%22%20y%3D%2220%22%20font-family%3D%22monospace%22%20font-size%3D%2213%22%20fill%3D%22black%22%20fill-opacity%3D%220.06%22%20text-anchor%3D%22middle%22%3E%E3%82%88%3C/text%3E%3Ctext%20x%3D%2214%22%20y%3D%2244%22%20font-family%3D%22monospace%22%20font-size%3D%2213%22%20fill%3D%22black%22%20fill-opacity%3D%220.06%22%20text-anchor%3D%22middle%22%3E%E3%81%86%3C/text%3E%3Ctext%20x%3D%2214%22%20y%3D%2268%22%20font-family%3D%22monospace%22%20font-size%3D%2213%22%20fill%3D%22black%22%20fill-opacity%3D%220.06%22%20text-anchor%3D%22middle%22%3E%E3%81%93%3C/text%3E%3Ctext%20x%3D%2214%22%20y%3D%2292%22%20font-family%3D%22monospace%22%20font-size%3D%2213%22%20fill%3D%22black%22%20fill-opacity%3D%220.06%22%20text-anchor%3D%22middle%22%3E%E3%81%9D%3C/text%3E%3C/svg%3E"),
      url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2228%22%20height%3D%22140%22%3E%3Ctext%20x%3D%2214%22%20y%3D%2220%22%20font-family%3D%22monospace%22%20font-size%3D%2213%22%20fill%3D%22black%22%20fill-opacity%3D%220.06%22%20text-anchor%3D%22middle%22%3E%E3%82%AA%3C/text%3E%3Ctext%20x%3D%2214%22%20y%3D%2244%22%20font-family%3D%22monospace%22%20font-size%3D%2213%22%20fill%3D%22black%22%20fill-opacity%3D%220.06%22%20text-anchor%3D%22middle%22%3E%E3%83%B3%3C/text%3E%3Ctext%20x%3D%2214%22%20y%3D%2268%22%20font-family%3D%22monospace%22%20font-size%3D%2213%22%20fill%3D%22black%22%20fill-opacity%3D%220.06%22%20text-anchor%3D%22middle%22%3E%E3%83%A9%3C/text%3E%3Ctext%20x%3D%2214%22%20y%3D%2292%22%20font-family%3D%22monospace%22%20font-size%3D%2213%22%20fill%3D%22black%22%20fill-opacity%3D%220.06%22%20text-anchor%3D%22middle%22%3E%E3%82%A4%3C/text%3E%3Ctext%20x%3D%2214%22%20y%3D%22116%22%20font-family%3D%22monospace%22%20font-size%3D%2213%22%20fill%3D%22black%22%20fill-opacity%3D%220.06%22%20text-anchor%3D%22middle%22%3E%E3%83%B3%3C/text%3E%3C/svg%3E");
  }
}

/* ------------------------------------------------------------------------ */
/* Diagonal slash mark — echoes near the wordmark and in the footer corner  */
/* ------------------------------------------------------------------------ */

.sa-navbar-logo {
  position: relative;
  padding-left: 1.6rem;
}
.sa-navbar-logo::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 18px;
  height: 16px;
  transform: translateY(-50%);
  background: repeating-linear-gradient(
    -55deg,
    transparent 0,
    transparent 2px,
    hsl(var(--cl-accent-2)) 2px,
    hsl(var(--cl-accent-2)) 4px
  );
  opacity: 0.85;
}

/* ------------------------------------------------------------------------ */
/* Chamfered HUD data-panels — reserved for status/stat readouts so they    */
/* read as distinct "instrumentation" against the softer, pill-shaped,     */
/* fully-rounded interactive controls and shopping cards elsewhere.         */
/* ------------------------------------------------------------------------ */

.sa-stats-item,
.sa-trust-badges--card .rounded-card,
.hud-status-panel {
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}

.sa-stats-item {
  position: relative;
}
.sa-stats-item::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 18px;
  height: 18px;
  border-top: 1px solid rgba(var(--cl-accent), 0.4);
  border-right: 1px solid rgba(var(--cl-accent), 0.4);
  clip-path: polygon(100% 0, 100% 100%, 0 0);
  pointer-events: none;
}

/* ------------------------------------------------------------------------ */
/* Status strip (custom-html component injected via settings.json)         */
/* ------------------------------------------------------------------------ */

.hud-status-panel {
  border: 1px solid rgba(var(--cl-t-primary), 0.1);
  background: rgba(var(--cl-t-primary), 0.02);
  padding: 1rem 1.25rem;
}

.hud-status-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(var(--cl-t-muted), 1);
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px dashed rgba(var(--cl-t-primary), 0.1);
}

.hud-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgb(var(--cl-success));
  box-shadow: 0 0 8px 1px rgba(var(--cl-success), 0.8);
  animation: hud-blink 2.2s ease-in-out infinite;
  flex-shrink: 0;
}

.hud-status-online {
  margin-left: auto;
  color: rgb(var(--cl-success));
  font-weight: 600;
}

.hud-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.hud-status-grid > div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.hud-status-label {
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(var(--cl-t-muted), 1);
}

.hud-status-value {
  font-family: var(--ff-mono);
  font-weight: 600;
  color: rgb(var(--cl-t-primary));
}

.sa-btn {
  font-family: var(--ff-body);
  letter-spacing: 0.01em;
  position: relative;
}

.sa-btn--primary.sa-btn--solid {
  box-shadow: 0 0 0 1px rgba(var(--cl-accent), 0.4), 0 8px 28px -8px rgba(var(--cl-accent), 0.55);
  transition: box-shadow var(--dur) ease, transform var(--dur) ease, background-color var(--dur) ease;
}
.sa-btn--primary.sa-btn--solid:hover {
  box-shadow: 0 0 0 1px rgba(var(--cl-accent), 0.6), 0 0 0 4px rgba(var(--cl-accent), 0.12), 0 10px 34px -6px rgba(var(--cl-accent), 0.7);
  transform: translateY(-1px);
}

.sa-btn--primary.sa-btn--outline {
  position: relative;
  border-color: transparent !important;
}
.sa-btn--primary.sa-btn--outline::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(120deg, rgb(var(--cl-accent)), hsl(var(--cl-accent-2)));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.sa-btn--secondary:hover {
  box-shadow: 0 0 0 1px rgba(var(--cl-t-primary), 0.12);
}

/* ------------------------------------------------------------------------ */
/* Section header rhythm                                                    */
/* ------------------------------------------------------------------------ */

.sa-section-title { letter-spacing: -0.01em; }

/* ------------------------------------------------------------------------ */
/* Product & category cards                                                 */
/* ------------------------------------------------------------------------ */

.sa-product-card,
.sa-categories-item {
  position: relative;
  transition: box-shadow var(--dur) ease, border-color var(--dur) ease, transform var(--dur) ease;
}

.sa-product-card::before,
.sa-product-card::after,
.sa-categories-item::before,
.sa-categories-item::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  opacity: 0;
  transition: opacity var(--dur) ease;
  pointer-events: none;
  z-index: 3;
}
.sa-product-card::before,
.sa-categories-item::before { top: -1px; left: -1px; border-top: var(--hud-thickness) solid rgb(var(--cl-accent)); border-left: var(--hud-thickness) solid rgb(var(--cl-accent)); }
.sa-product-card::after,
.sa-categories-item::after { bottom: -1px; right: -1px; border-bottom: var(--hud-thickness) solid hsl(var(--cl-accent-2)); border-right: var(--hud-thickness) solid hsl(var(--cl-accent-2)); }

.sa-product-card:hover::before,
.sa-product-card:hover::after,
.sa-categories-item:hover::before,
.sa-categories-item:hover::after { opacity: 1; }

.sa-product-card:hover,
.sa-categories-item:hover {
  box-shadow: 0 0 0 1px rgba(var(--cl-accent), 0.35), 0 16px 40px -18px rgba(var(--cl-accent), 0.45);
}

.sa-product-card-price {
  text-shadow: 0 0 18px rgba(var(--cl-accent), 0.25);
}

/* Badges: monospace, tracked, slightly sharper than the pill default */
.sa-product-card-badges span {
  font-family: var(--ff-mono);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.625rem !important;
}

/* ------------------------------------------------------------------------ */
/* Stats / trust blocks                                                     */
/* ------------------------------------------------------------------------ */

.sa-stats-item {
  position: relative;
}
.sa-stats-item::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(var(--cl-accent), 0.06);
  pointer-events: none;
}

/* ------------------------------------------------------------------------ */
/* FAQ                                                                       */
/* ------------------------------------------------------------------------ */

.sa-faq-item {
  transition: border-color var(--dur) ease, box-shadow var(--dur) ease;
}
.sa-faq-item:hover {
  border-color: rgba(var(--cl-accent), 0.25);
}
.sa-faq-item:has(.faq-panel-open) {
  border-color: rgba(var(--cl-accent), 0.4) !important;
  box-shadow: 0 0 0 1px rgba(var(--cl-accent), 0.12);
}

/* ------------------------------------------------------------------------ */
/* Feedback cards                                                           */
/* ------------------------------------------------------------------------ */

.sa-feedbacks-item {
  transition: border-color var(--dur) ease, box-shadow var(--dur) ease, transform var(--dur) ease;
}
.sa-feedbacks-item:hover {
  border-color: rgba(var(--cl-accent), 0.3) !important;
  box-shadow: 0 12px 32px -16px rgba(var(--cl-accent), 0.4);
}

/* ------------------------------------------------------------------------ */
/* Footer                                                                    */
/* ------------------------------------------------------------------------ */

.sa-footer {
  position: relative;
  overflow: hidden;
}
.sa-footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--cl-accent), 0.6), rgba(var(--cl-accent-2-rgb), 0.6), transparent);
}

/* Large, faint watermark kanji ("店" — shop/store) anchored bottom-right.
   Pairs with the "電" mark in the hero and gives the footer's empty lower
   space some atmosphere instead of sitting flat and bare. */
.sa-footer .wrap {
  position: relative;
  z-index: 1;
}
.sa-footer::after {
  content: '店';
  position: absolute;
  right: -0.06em;
  bottom: -0.22em;
  font-size: min(22vw, 15rem);
  line-height: 1;
  font-family: var(--ff-heading);
  color: rgba(var(--cl-t-primary), 0.02);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* Column headers ("// NAVIGATION" etc.) */
.sa-footer h3 {
  font-family: var(--ff-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(var(--cl-t-muted), 1);
  position: relative;
  padding-bottom: 0.6rem;
}
.sa-footer h3::before { content: '// '; color: rgba(var(--cl-accent), 0.55); }
.sa-footer h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 22px;
  height: 1px;
  background: rgb(var(--cl-accent));
  opacity: 0.5;
}

/* Links read like a terminal menu: a marker glyph that slides in on hover
   and nudges the label right, instead of a flat color change. */
.sa-footer-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding-left: 0;
  transition: padding-left var(--dur) ease, color var(--dur) ease;
}
.sa-footer-link::before {
  content: '›';
  position: absolute;
  left: -0.85em;
  color: rgb(var(--cl-accent));
  opacity: 0;
  transition: opacity var(--dur) ease, transform var(--dur) ease;
  transform: translateX(-4px);
}
.sa-footer-link:hover {
  color: rgb(var(--cl-t-primary));
  padding-left: 0.85em;
  text-shadow: 0 0 10px rgba(var(--cl-accent), 0.4);
}
.sa-footer-link:hover::before {
  opacity: 1;
  transform: translateX(0);
}

/* Vertical dividers between the footer's grid columns, so the columns read
   as distinct panels rather than text floating in empty space. */
@media (min-width: 768px) {
  .sa-footer .grid > div + div {
    border-left: 1px solid rgba(var(--cl-t-primary), 0.07);
    padding-left: 2rem;
  }
}

/* Social icon buttons become small bordered HUD chips instead of plain
   ghost icons, matching the rest of the site's button language. */
.sa-footer a[aria-label] {
  border: 1px solid rgba(var(--cl-t-primary), 0.1);
  border-radius: 999px;
}
.sa-footer a[aria-label]:hover {
  border-color: rgba(var(--cl-accent), 0.5);
  box-shadow: 0 0 0 1px rgba(var(--cl-accent), 0.2), 0 0 16px -2px rgba(var(--cl-accent), 0.5);
  color: rgb(var(--cl-accent));
}

/* Copyright row gets a hairline glow to match the top border treatment */
.sa-footer .border-t.border-theme.mt-10 {
  position: relative;
}

/* ------------------------------------------------------------------------ */
/* Breadcrumbs, cart, toasts                                                */
/* ------------------------------------------------------------------------ */

.sa-breadcrumbs {
  font-family: var(--ff-mono);
  font-size: 0.75rem !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sa-cart-panel,
[role="dialog"] {
  box-shadow: 0 30px 90px -20px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(var(--cl-accent), 0.08);
}

.sa-toast {
  border-left: 2px solid rgb(var(--cl-accent));
}

/* ------------------------------------------------------------------------ */
/* Cursor-tracked spotlight (lit up by custom.js)                           */
/* ------------------------------------------------------------------------ */

.sa-hero {
  --spot-x: 50%;
  --spot-y: 30%;
}

@media (hover: hover) {
  .sa-hero-spotlight {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(480px circle at var(--spot-x) var(--spot-y), rgba(var(--cl-accent), 0.10), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  .sa-hero:hover .sa-hero-spotlight { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .sa-hero-spotlight { display: none; }
}
