/*
 * Wallet — leather card wallet (380 × 258)
 * Figma: Assets slide → "Wallets" (node 6:1065)
 * Colours: set --wallet-color via .wallet--tan | --brown | --green | --navy | --plum | --black
 * Layer order (back → front): bg · flap · texture · stitching · top pocket
 */
.wallet {
  --wallet-color: var(--wallet-tan);
  position: relative;
  width: 380px;
  height: 258.14px;
}
.wallet--tan   { --wallet-color: var(--wallet-tan); }
.wallet--brown { --wallet-color: var(--wallet-brown); }
.wallet--green { --wallet-color: var(--wallet-green); }
.wallet--navy  { --wallet-color: var(--wallet-navy); }
.wallet--plum  { --wallet-color: var(--wallet-plum); }
.wallet--black { --wallet-color: var(--wallet-black); }

.wallet > div, .wallet__top > div { position: absolute; }
.wallet img { position: absolute; display: block; max-width: none; }

/* ── Bottom (back half) ─────────────────────────────── */
.wallet__bg {
  inset: 0;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: var(--radius-wallet);
  box-shadow: var(--shadow-wallet);
  background:
    linear-gradient(219.3deg, rgba(255, 255, 255, 0.06) 22.767%, rgba(0, 0, 0, 0.05) 85.241%),
    var(--wallet-color);
}
.wallet__flap { left: 1.31px; top: 48.49px; width: 373.448px; height: 208.345px; }
.wallet__flap img { left: -1.07%; top: -1.92%; width: 101.07%; height: 101.92%; }
.wallet__leather {
  inset: 0;
  overflow: hidden;
  border-radius: var(--radius-wallet);
  opacity: 0.3;
  mix-blend-mode: screen;
  transform: rotate(180deg);
  pointer-events: none;
}
.wallet__leather img { top: 0; left: -4.15%; width: 110.01%; height: 100.51%; }
.wallet__stitch { left: 5.24px; width: 369.517px; height: 246.344px; }
.wallet__stitch--light { top: 7.21px; }
.wallet__stitch--dark { top: 6.56px; width: 368.862px; }
.wallet__stitch img { left: -0.27%; top: -0.41%; width: 100.54%; height: 100.82%; }

/* ── Top pocket (front half) ────────────────────────── */
.wallet__top {
  left: 6.55px;
  top: 7.87px;
  width: 366.897px;
  height: 243.724px;
  overflow: hidden;
  border-radius: var(--radius-card);
}
.wallet__top-flap { inset: 29.12% 0 0 0; }
.wallet__top-flap img { left: -4.91%; top: -12.16%; width: 109.82%; height: 120.84%; }
.wallet__top-texture {
  left: -2.5%;
  right: -1.43%;
  top: calc(50% + 23.13px);
  aspect-ratio: 4096 / 2542;
  transform: translateY(-50%);
  opacity: 0.3;
  mix-blend-mode: screen;
  pointer-events: none;
  mask-image: url("../assets/figma/wallet/texture-mask.svg");
  mask-mode: alpha;
  mask-repeat: no-repeat;
  mask-position: -8.828px 23.299px;
  mask-size: 402.896px 208.749px;
}
.wallet--tan .wallet__top-texture { mask-image: url("../assets/figma/wallet/texture-mask-tan.svg"); }
.wallet__top-texture img { inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wallet__top-texture::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow:
    inset -15px 0 18px 0 rgba(255, 255, 255, 0.1),
    inset 15px -15px 18px 0 rgba(45, 16, 8, 0.19);
}
.wallet__stroke img { left: 0; top: -1.11%; width: 100%; height: 102.22%; }
.wallet__stroke--highlight-low { inset: 31.81% -0.36% 49.71% 0; }
.wallet__stroke--shadow        { inset: 31.27% -0.36% 50.25% 0; }
.wallet__stroke--highlight-top { inset: 29.12% -0.36% 52.4% 0; }
