/* ===================================================================
   LamaSmp Store — green theme
   =================================================================== */
:root {
  /* greens */
  --green-300: #6ee7a8;
  --green-400: #4ade80;
  --green-500: #22c55e;
  --green-600: #16a34a;
  --green-700: #15803d;
  --green-glow: rgba(34, 197, 94, .45);

  /* surfaces */
  --bg:        #07120d;
  --bg-2:      #0a1812;
  --surface:   #0f1f18;
  --surface-2: #132a20;
  --border:    rgba(74, 222, 128, .14);
  --border-2:  rgba(74, 222, 128, .28);

  /* text */
  --text:   #e9f7ef;
  --muted:  #9db5a9;
  --faint:  #6f8a7e;

  --radius:   18px;
  --radius-sm:12px;
  --shadow:   0 18px 40px -18px rgba(0, 0, 0, .7);
  --shadow-glow: 0 0 0 1px var(--border-2), 0 20px 60px -24px var(--green-glow);
  --container: 1140px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand__name { font-family: "Outfit", "Inter", sans-serif; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 22px;
}

.grad {
  background: linear-gradient(120deg, var(--green-300), var(--green-500) 60%, var(--green-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- background decoration ---------- */
.bg-grid {
  position: fixed; inset: 0; z-index: -2;
  background:
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}
.bg-grid::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(74, 222, 128, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74, 222, 128, .045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 35%, transparent 75%);
}
.bg-blob {
  position: fixed; z-index: -1; border-radius: 50%;
  filter: blur(90px); opacity: .5; pointer-events: none;
}
.bg-blob--1 { width: 560px; height: 560px; top: -180px; left: -120px;
  background: radial-gradient(circle, var(--green-500), transparent 70%); }
.bg-blob--2 { width: 620px; height: 620px; top: 120px; right: -200px;
  background: radial-gradient(circle, #0e7a48, transparent 70%); opacity: .35; }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(7, 18, 13, .72);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  display: flex; align-items: center; gap: 18px;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand__mark {
  width: 38px; height: auto; display: block;
  image-rendering: pixelated;
  filter: drop-shadow(0 5px 12px var(--green-glow));
}
.footer__brand .brand__mark { width: 30px; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.brand__sub { font-size: 11px; color: var(--green-400); letter-spacing: .22em; text-transform: uppercase; margin-top: 3px; }

.nav { display: flex; gap: 26px; margin-inline: auto; }
.nav a {
  color: var(--muted); font-weight: 500; font-size: 15px;
  position: relative; transition: color .2s;
}
.nav a:hover { color: var(--text); }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--green-400); border-radius: 2px; transition: width .25s var(--ease);
}
.nav a:hover::after { width: 100%; }

.header__actions { display: flex; align-items: center; gap: 14px; }

.live {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 600; color: var(--green-300);
  background: rgba(34, 197, 94, .1); border: 1px solid var(--border-2);
  padding: 6px 11px; border-radius: 999px;
}
.live__dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green-400);
  box-shadow: 0 0 0 0 var(--green-glow); animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(74, 222, 128, .55); }
  70%  { box-shadow: 0 0 0 9px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.cart-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 12px; cursor: pointer;
  color: var(--text); background: var(--surface-2); border: 1px solid var(--border);
  transition: transform .15s, border-color .2s, background .2s;
}
.cart-btn:hover { border-color: var(--border-2); background: #16332698; transform: translateY(-1px); }
.cart-btn__count {
  position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px;
  padding: 0 5px; border-radius: 999px; background: var(--green-500); color: #04130b;
  font-size: 11px; font-weight: 800; display: grid; place-items: center;
  border: 2px solid var(--bg); transform: scale(0); transition: transform .2s var(--ease);
}
.cart-btn__count.show { transform: scale(1); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font: inherit; font-weight: 600; cursor: pointer; border: 0;
  padding: 12px 20px; border-radius: 12px; transition: transform .15s var(--ease), box-shadow .2s, background .2s, opacity .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn--primary {
  color: #04130b;
  background: linear-gradient(120deg, var(--green-400), var(--green-500));
  box-shadow: 0 10px 28px -10px var(--green-glow);
}
.btn--primary:hover { box-shadow: 0 14px 34px -10px var(--green-glow); transform: translateY(-2px); }
.btn--primary:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn--ghost {
  color: var(--text); background: var(--surface-2); border: 1px solid var(--border);
}
.btn--ghost:hover { border-color: var(--border-2); transform: translateY(-2px); }
.btn--block { width: 100%; }

/* ---------- hero ---------- */
.hero { padding: 86px 0 64px; }
.hero__inner { text-align: center; max-width: 760px; margin-inline: auto; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--green-300);
  background: rgba(34, 197, 94, .08); border: 1px solid var(--border-2);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 24px;
}
.hero__title {
  font-size: clamp(2.3rem, 6vw, 3.9rem); line-height: 1.05; letter-spacing: -.03em;
  margin: 0 0 20px; font-weight: 800;
}
.hero__lead { font-size: clamp(1rem, 2.4vw, 1.18rem); color: var(--muted); margin: 0 auto 32px; max-width: 560px; }
.hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero__cta .btn--ghost { font-variant-numeric: tabular-nums; }

.hero__stats {
  display: flex; justify-content: center; gap: 14px; flex-wrap: wrap;
  margin-top: 52px;
}
.stat {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 18px 26px; min-width: 150px;
}
.stat__num { display: block; font-family: "Outfit"; font-weight: 800; font-size: 1.6rem; color: var(--green-300); }
.stat__label { font-size: 13px; color: var(--faint); }

/* ---------- section heads ---------- */
.section-head { text-align: center; max-width: 620px; margin: 0 auto 40px; }
.section-title { font-size: clamp(1.8rem, 4vw, 2.4rem); margin: 0 0 10px; letter-spacing: -.02em; }
.section-desc { color: var(--muted); margin: 0; }

.store { padding: 40px 0 70px; }

/* ---------- shopping-as bar ---------- */
.shopping-as {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  background: linear-gradient(120deg, rgba(34,197,94,.08), rgba(34,197,94,.02));
  border: 1px solid var(--border-2); border-radius: 14px; padding: 14px 20px; margin-bottom: 28px;
}
.shopping-as__label { color: var(--muted); font-size: 14.5px; }
.shopping-as__label b { color: var(--green-300); font-weight: 700; }
.shopping-as__change {
  font: inherit; font-weight: 600; font-size: 14px; cursor: pointer;
  background: none; border: 0; color: var(--green-400);
  text-decoration: underline; text-underline-offset: 3px;
}
.shopping-as__change:hover { color: var(--green-300); }
.shopping-as__form { display: flex; gap: 8px; flex-wrap: wrap; }
.shopping-as__input {
  font: inherit; font-size: 14px; color: var(--text); background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 10px; padding: 9px 13px; min-width: 200px; outline: none;
  transition: border-color .2s;
}
.shopping-as__input:focus { border-color: var(--border-2); }
.shopping-as__set {
  font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; color: #04130b;
  background: linear-gradient(120deg, var(--green-400), var(--green-500));
  border: 0; border-radius: 10px; padding: 9px 18px; transition: transform .15s;
}
.shopping-as__set:hover { transform: translateY(-1px); }

/* ---------- category overview ---------- */
.cat-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, 1fr); }
.cat-card {
  position: relative; isolation: isolate; overflow: hidden; cursor: pointer; text-align: left;
  border: 0; border-radius: 20px; padding: 30px 34px; min-height: 152px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  box-shadow: var(--shadow); transition: transform .22s var(--ease), box-shadow .22s, filter .22s;
  animation: rise .5s var(--ease) both;
}
.cat-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, rgba(0,0,0,.20), transparent 55%);
}
/* light sweep that glides across the whole box on hover */
.cat-card::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.28), transparent);
  transform: skewX(-18deg); pointer-events: none;
  transition: left .65s var(--ease);
}
.cat-card:hover::after { left: 130%; }
.cat-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 32px 56px -22px rgba(0,0,0,.8);
  filter: brightness(1.1) saturate(1.08);
}
.cat-card:active { transform: translateY(-1px) scale(.998); }
.cat-card__name {
  font-family: "Outfit"; font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0;
  color: #fff; letter-spacing: -.02em; text-transform: uppercase; text-shadow: 0 2px 14px rgba(0,0,0,.28);
}
.cat-card__cta { display: inline-block; margin-top: 6px; color: rgba(255,255,255,.92); font-weight: 600; font-size: 14px; }
.cat-card__img {
  width: 116px; height: 116px; object-fit: contain; image-rendering: pixelated; flex-shrink: 0;
  filter: drop-shadow(0 8px 14px rgba(0,0,0,.4));
  transition: transform .35s var(--ease);
}
.cat-card:hover .cat-card__img { transform: scale(1.05); }
/* Ranks: let the llama touch the bottom-right wall */
.cat-card--ranks .cat-card__img {
  position: absolute; right: 0; bottom: 0; top: auto;
  width: 168px; height: 168px; padding: 0;
}
.cat-card--ranks:hover .cat-card__img { transform: scale(1.07); transform-origin: bottom right; }
/* a lone last card stretches full width (like the GEMS banner) */
.cat-card:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* ---------- drill-in ---------- */
.back-btn {
  display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 600; font-size: 14px;
  cursor: pointer; color: var(--muted); background: var(--surface); border: 1px solid var(--border);
  padding: 9px 15px; border-radius: 11px; margin-bottom: 20px; transition: .2s;
}
.back-btn:hover { color: var(--text); border-color: var(--border-2); transform: translateX(-3px); }
.cat-view__title { font-family: "Outfit"; font-weight: 700; font-size: 1.7rem; margin: 0 0 22px; }

@media (max-width: 680px) {
  .cat-grid { grid-template-columns: 1fr; }
  .cat-card:last-child:nth-child(odd) { grid-column: auto; }
}

/* ---------- grid + cards ---------- */
.grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.card {
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; position: relative;
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
  animation: rise .5s var(--ease) both;
}
.card:hover { transform: translateY(-6px); border-color: var(--border-2); box-shadow: var(--shadow-glow); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.card__media {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  background: radial-gradient(120% 120% at 50% 0%, #18402d, #0c1c14);
  display: grid; place-items: center;
}
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 14px; transition: transform .4s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__media-fallback { font-family: "Outfit"; font-weight: 800; font-size: 3rem; color: var(--green-500); opacity: .55; }

.card__badge {
  position: absolute; top: 12px; left: 12px;
  font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px; backdrop-filter: blur(6px);
  background: rgba(7, 18, 13, .7); border: 1px solid var(--border-2); color: var(--green-300);
}

.card__body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__name { font-family: "Outfit"; font-weight: 700; font-size: 1.18rem; margin: 0; letter-spacing: -.01em; }
.card__desc {
  color: var(--muted); font-size: 14px; margin: 0;
}
.card__desc p { margin: 0 0 6px; }
.card__desc :is(h1,h2,h3) { font-size: 14px; margin: 0 0 4px; color: var(--text); }

.card__foot {
  margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border-top: 1px solid var(--border);
}
.card__price { display: flex; align-items: baseline; gap: 4px; }
.card__price b { font-family: "Outfit"; font-size: 1.4rem; color: var(--text); }
.card__price span { font-size: 12px; color: var(--faint); }
.card__add {
  font: inherit; font-weight: 600; font-size: 14px; cursor: pointer;
  color: #04130b; background: linear-gradient(120deg, var(--green-400), var(--green-500));
  border: 0; padding: 10px 16px; border-radius: 11px; transition: transform .15s, box-shadow .2s;
  box-shadow: 0 8px 22px -10px var(--green-glow);
}
.card__add:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -10px var(--green-glow); }
.card__add:active { transform: translateY(0); }

/* ---------- skeletons ---------- */
.skeleton { min-height: 360px; border-color: var(--border); animation: none; }
.skeleton::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(74,222,128,.07) 50%, transparent 80%);
  background-size: 200% 100%; animation: shimmer 1.4s infinite;
}
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ---------- empty state ---------- */
.empty {
  grid-column: 1 / -1; text-align: center; padding: 60px 24px;
  background: var(--surface); border: 1px dashed var(--border-2); border-radius: var(--radius);
}
.empty__icon { width: 78px; height: auto; image-rendering: pixelated; display: inline-block; filter: drop-shadow(0 6px 16px var(--green-glow)); margin-bottom: 14px; }
.empty h3 { margin: 0 0 8px; font-size: 1.4rem; }
.empty p { color: var(--muted); margin: 0 0 18px; }
.empty__listening {
  display: inline-flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600;
  color: var(--green-300); background: rgba(34,197,94,.08);
  border: 1px solid var(--border-2); padding: 8px 14px; border-radius: 999px;
}

/* ---------- about / values ---------- */
.about { padding: 60px 0; }
.value-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.value {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: transform .25s var(--ease), border-color .25s;
}
.value:hover { transform: translateY(-4px); border-color: var(--border-2); }
.value__icon { font-size: 30px; margin-bottom: 12px; }
.value h3 { margin: 0 0 8px; font-size: 1.15rem; }
.value p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---------- support ---------- */
.support { padding: 20px 0 80px; }
.support__card {
  display: flex; gap: 20px; align-items: center;
  background: linear-gradient(120deg, rgba(34,197,94,.1), rgba(34,197,94,.02));
  border: 1px solid var(--border-2); border-radius: var(--radius); padding: 28px 32px;
}
.support__icon { font-size: 38px; }
.support__card h3 { margin: 0 0 6px; }
.support__card p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--border); background: var(--bg-2); padding: 40px 0; }
.footer__inner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.footer__brand { display: flex; align-items: center; gap: 9px; font-family: "Outfit"; font-size: 18px; }
.footer__fine { color: var(--faint); font-size: 13px; max-width: 620px; margin: 0; }
.footer__fine a { color: var(--green-400); }
.footer__copy { color: var(--faint); font-size: 13px; margin: 0; }

/* ---------- cart drawer ---------- */
.drawer-overlay {
  position: fixed; inset: 0; z-index: 50; background: rgba(3, 9, 6, .6);
  backdrop-filter: blur(3px); opacity: 0; transition: opacity .25s; pointer-events: none;
}
.drawer-overlay.show { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; z-index: 60; height: 100%; width: min(420px, 100%);
  background: var(--bg-2); border-left: 1px solid var(--border-2);
  display: flex; flex-direction: column; transform: translateX(100%);
  transition: transform .32s var(--ease); box-shadow: var(--shadow);
}
.drawer.show { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--border); }
.drawer__head h3 { margin: 0; font-size: 1.2rem; }
.icon-btn { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; cursor: pointer; color: var(--muted); background: var(--surface-2); border: 1px solid var(--border); transition: .2s; }
.icon-btn:hover { color: var(--text); border-color: var(--border-2); }

.drawer__body { flex: 1; overflow-y: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.cart-empty { text-align: center; color: var(--muted); margin: auto 0; padding: 40px 0; }
.cart-empty span { font-size: 42px; display: block; margin-bottom: 10px; opacity: .8; }

.cart-item { display: flex; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px; }
.cart-item__img { width: 56px; height: 56px; border-radius: 9px; object-fit: cover; background: var(--surface-2); flex-shrink: 0; }
.cart-item__img--ph { display: grid; place-items: center; font-weight: 800; color: var(--green-500); }
.cart-item__main { flex: 1; min-width: 0; }
.cart-item__name { font-weight: 600; font-size: 14.5px; margin: 0 0 2px; }
.cart-item__price { color: var(--green-300); font-size: 13px; font-weight: 600; }
.cart-item__bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.qty { display: inline-flex; align-items: center; gap: 0; border: 1px solid var(--border); border-radius: 9px; overflow: hidden; }
.qty button { width: 28px; height: 28px; cursor: pointer; background: var(--surface-2); border: 0; color: var(--text); font-size: 16px; line-height: 1; transition: background .15s; }
.qty button:hover { background: #1b3a2b; }
.qty span { min-width: 30px; text-align: center; font-size: 14px; font-weight: 600; }
.cart-item__remove { background: none; border: 0; color: var(--faint); cursor: pointer; font-size: 13px; transition: color .15s; }
.cart-item__remove:hover { color: #ef6b6b; }

.drawer__foot { padding: 18px 20px 22px; border-top: 1px solid var(--border); }
.drawer__total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.drawer__total strong { font-family: "Outfit"; font-size: 1.5rem; }
.drawer__secure { text-align: center; color: var(--faint); font-size: 12px; margin: 10px 0 0; }

/* ---------- toasts ---------- */
.toasts { position: fixed; bottom: 22px; right: 22px; z-index: 80; display: flex; flex-direction: column; gap: 10px; }
.toast {
  display: flex; align-items: center; gap: 10px; min-width: 240px; max-width: 340px;
  background: var(--surface-2); border: 1px solid var(--border-2); border-left: 3px solid var(--green-400);
  border-radius: 12px; padding: 13px 16px; font-size: 14px; box-shadow: var(--shadow);
  transform: translateX(120%); animation: toastIn .4s var(--ease) forwards;
}
.toast.out { animation: toastOut .35s var(--ease) forwards; }
.toast__icon { font-size: 18px; }
@keyframes toastIn  { to { transform: none; } }
@keyframes toastOut { to { transform: translateX(120%); opacity: 0; } }

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  .nav { display: none; }
  .hero { padding: 60px 0 40px; }
  .support__card { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; scroll-behavior: auto; transition-duration: .05ms !important; }
}
