/* Store — the presentation layer for membership.html.
   shop.css owns the shared machinery (cards, wells, chips, the preview
   dialog) and the --shop-* token contract that theme.css re-declares for the
   light theme; everything here composes those tokens instead of hardcoding
   colors, so one theme switch still flips the whole storefront. This file
   only styles what the store page itself adds: the hero type, the flat
   section slabs (the old blue gradient is retired), the sticky section
   heads, the guest hint, and the phone grid. Logical properties throughout,
   so Arabic mirrors without extra overrides. */

/* overflow:clip instead of shop.css's overflow:hidden — clip never creates a
   scroll container, so the sticky section heads below keep anchoring to the
   viewport instead of dying inside a hidden-overflow ancestor. */
.cosmetics-shop{overflow:clip}

/* Hero ----------------------------------------------------------------------
   The container's glow wash and grid texture come from shop.css; the store's
   own heading gains display type and a roomier rhythm. */
.cosmetics-shop .shop-cosmetics-heading{padding:34px 34px 24px;gap:18px}
.cosmetics-shop .shop-cosmetics-heading h1{margin:6px 0 8px;font-size:clamp(2rem,4.2vw,2.9rem);line-height:1.08;letter-spacing:-.035em;color:var(--shop-ink)}
.cosmetics-shop .shop-cosmetics-heading .community-kicker{color:var(--shop-accent-text)}
.cosmetic-wallet-chip{min-height:48px;padding-inline:16px}
.cosmetic-wallet-chip strong{font-size:1.15rem;font-variant-numeric:tabular-nums}
#storeBackendStatus{margin:16px 34px 0}
.store-guest-hint{display:flex;align-items:center;gap:10px;margin:12px 34px 18px;padding:12px 16px;border:1px solid var(--shop-accent-deep);border-radius:14px;background:var(--shop-accent-wash);color:var(--shop-accent-text);font-weight:700;line-height:1.5}
.store-guest-hint::before{content:"◆";flex:none;font-size:.75em;color:var(--shop-accent)}
.store-guest-hint[hidden]{display:none!important}

/* Section slabs --------------------------------------------------------------
   The old storefront laid its sections over a blue gradient slab; the store
   retires that for one flat, quiet surface per section — the green identity
   lives in the accents, not in a painted gradient. */
.cosmetic-section{margin-top:20px;padding:18px 24px 26px;border:1px solid var(--shop-line);border-radius:18px;background:var(--shop-card);box-shadow:none}
.cosmetics-shop .cosmetic-section:first-of-type{margin-top:16px}

/* Sticky section head: while a long section scrolls, the name and the live
   count stay pinned under the page edge; the opaque slab background lets
   cards pass underneath without showing through. The top offset clears the
   app shell's sticky page toolbar (60px, 52px under 767px — app-shell.css). */
.cosmetic-section-head{position:sticky;top:60px;z-index:6;margin-bottom:14px;padding:16px 0 12px;background:var(--shop-card)}
@media(max-width:767px){
  .cosmetic-section-head{top:52px}
}
.cosmetic-section-count{background:var(--shop-raise)}

/* On the flat slab the search field needs its own tone to read as a field. */
.cosmetic-section .cosmetic-search{background:var(--shop-raise)}
.cosmetic-section .cosmetic-sort select{min-height:40px;padding:0 12px;border:1px solid var(--shop-line-strong);border-radius:11px;background:var(--shop-raise);color:var(--shop-ink);font:inherit}
.cosmetic-section .cosmetic-load-more{display:flex;justify-content:center;margin:18px auto 4px}

/* Phone layout ---------------------------------------------------------------
   shop.css folds the grid to one column at 560px; the store keeps two-up on
   phones (cosmetic cards are compact) and stacks each card's two actions. */
@media(max-width:560px){
  .cosmetics-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:12px 16px 4px}
  .cosmetics-shop .shop-cosmetics-heading{padding:22px 16px 16px;gap:12px}
  .cosmetic-section{padding:14px 14px 20px}
  #storeBackendStatus{margin:12px 16px 0}
  .store-guest-hint{margin:10px 16px 14px}
  .cosmetic-card>.cosmetic-rarity{margin:11px 11px 0}
  .cosmetic-card h3{margin:0 11px;font-size:.9rem}
  .cosmetic-price{margin:4px 11px 0;margin-top:auto;font-size:.92rem}
  .cosmetic-actions{flex-direction:column;gap:6px;margin:10px 11px 12px}
  .cosmetic-preview img[data-animated-dec=true]:not(.cosmetic-avatar-decoration-asset){width:96px;height:96px}
  .cosmetic-frame-scene{min-height:128px}
}
