/*
 * Enter any custom CSS here.
 * This file will not be overwritten by theme updates.
*/

/* Hide Alpine cloaked elements until initialised */
[x-cloak] {
  display: none !important;
}

/* =========================================================
   Discord community widget
   Styled with the theme's own CSS variables so it always
   matches the shop's accent / card / text colors.
   ========================================================= */
.sa-discord {
  --sa-blurple: 88, 101, 242;
  width: 100%;
  max-width: 440px;
}

.sa-discord--iframe {
  max-width: 350px;
}

.sa-discord--iframe iframe {
  display: block;
  width: 350px;
  max-width: 100%;
  height: 500px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(var(--cl-card), 0.75);
}

.sa-discord__card {
  position: relative;
  overflow: hidden;
  padding: 1.5rem;
  background: rgba(var(--cl-card), 0.75);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.sa-discord__card:hover {
  border-color: rgba(var(--sa-blurple), 0.35);
}

/* Soft blurple glow in the corner for a premium feel */
.sa-discord__glow {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(var(--sa-blurple), 0.35) 0%, transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}

.sa-discord--accent .sa-discord__glow {
  background: radial-gradient(circle, rgba(var(--cl-accent), 0.35) 0%, transparent 70%);
}

.sa-discord__header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1.25rem;
}

.sa-discord__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  color: #fff;
  background: rgb(var(--sa-blurple));
  box-shadow: 0 6px 18px -6px rgba(var(--sa-blurple), 0.8);
}

.sa-discord--accent .sa-discord__logo {
  background: rgb(var(--cl-accent));
  box-shadow: 0 6px 18px -6px rgba(var(--cl-accent), 0.8);
}

.sa-discord__heading {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.2;
}

.sa-discord__eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(var(--cl-t-primary), 0.5);
}

.sa-discord__name {
  font-size: 1.05rem;
  font-weight: 700;
  color: rgb(var(--cl-t-primary));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sa-discord__presence {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(var(--cl-t-primary), 0.8);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  white-space: nowrap;
}

.sa-discord__dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: #23a55a;
  box-shadow: 0 0 0 0 rgba(35, 165, 90, 0.7);
  animation: sa-discord-pulse 2s infinite;
}

@keyframes sa-discord-pulse {
  0% { box-shadow: 0 0 0 0 rgba(35, 165, 90, 0.6); }
  70% { box-shadow: 0 0 0 6px rgba(35, 165, 90, 0); }
  100% { box-shadow: 0 0 0 0 rgba(35, 165, 90, 0); }
}

.sa-discord__avatars {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.sa-discord__avatar {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}

.sa-discord__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 9999px;
}

.sa-discord__avatar-status {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 12px;
  height: 12px;
  border-radius: 9999px;
  border: 2px solid rgb(var(--cl-card));
  background: #80848e;
}

.sa-discord__avatar-status--online { background: #23a55a; }
.sa-discord__avatar-status--idle { background: #f0b232; }
.sa-discord__avatar-status--dnd { background: #f23f43; }

.sa-discord__avatar--more {
  overflow: visible;
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(var(--cl-t-primary), 0.85);
  background: rgba(var(--cl-accent), 0.15);
  border: 1px solid rgba(var(--cl-accent), 0.4);
}

.sa-discord__avatar--skeleton {
  background: linear-gradient(90deg,
    rgba(255, 255, 255, 0.04) 25%,
    rgba(255, 255, 255, 0.09) 37%,
    rgba(255, 255, 255, 0.04) 63%);
  background-size: 400% 100%;
  animation: sa-discord-shimmer 1.4s ease infinite;
}

@keyframes sa-discord-shimmer {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

.sa-discord__fallback {
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgba(var(--cl-t-primary), 0.7);
}

.sa-discord__btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  background: rgb(var(--sa-blurple));
  border: 1px solid rgba(var(--sa-blurple), 1);
  transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.sa-discord__btn:hover {
  background: rgb(71, 82, 196);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -10px rgba(var(--sa-blurple), 0.9);
}

.sa-discord--accent .sa-discord__btn {
  color: rgb(var(--cl-t-accent));
  background: rgb(var(--cl-accent));
  border-color: rgb(var(--cl-accent));
}

.sa-discord--accent .sa-discord__btn:hover {
  background: color-mix(in srgb, rgb(var(--cl-accent)), black 12%);
  box-shadow: 0 10px 22px -10px rgba(var(--cl-accent), 0.9);
}

/* =========================================================
   Tasteful global polish (keeps the existing theme intact)
   ========================================================= */

/* Accent-tinted text selection */
::selection {
  background: rgba(var(--cl-accent), 0.35);
  color: rgb(var(--cl-t-primary));
}

/* Slim, accent-aware scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--cl-accent), 0.6) transparent;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(var(--cl-accent), 0.45);
  border: 2px solid transparent;
  background-clip: content-box;
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(var(--cl-accent), 0.7);
  background-clip: content-box;
}

/* Product cards: gentle lift + image zoom on hover */
a.group {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

a.group:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--cl-accent), 0.35);
  box-shadow: 0 14px 30px -18px rgba(var(--cl-accent), 0.65);
}

a.group img {
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

a.group:hover img {
  transform: scale(1.05);
}

/* Feature cards: subtle lift + accent border on hover */
.component .text-center.bg-card\/75 {
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.component .text-center.bg-card\/75:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--cl-accent), 0.3);
  box-shadow: 0 14px 30px -18px rgba(var(--cl-accent), 0.55);
}

/* Feature icons pop a little on card hover */
.component .text-center.bg-card\/75 i {
  transition: transform 0.2s ease;
}

.component .text-center.bg-card\/75:hover i {
  transform: scale(1.12);
}

/* Clearer keyboard focus for accessibility */
a:focus-visible,
button:focus-visible,
select:focus-visible {
  outline: 2px solid rgba(var(--cl-accent), 0.8);
  outline-offset: 2px;
}