/* GiftVault — premium storefront design system (shadcn/ui-inspired).
   Light is default; [data-theme="dark"] on <html> switches. */
:root {
  --background: #ffffff;
  --foreground: #09090b;
  --card: #ffffff;
  --card-foreground: #09090b;
  --muted: #f4f4f5;
  --muted-foreground: #71717a;
  --subtle: #fafafa;
  --border: #e8e8eb;
  --input: #e4e4e7;
  --ring: #a1a1aa;
  --primary: #6366f1;
  --primary-foreground: #ffffff;
  --radius: 0.85rem;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / .04);
  --shadow: 0 4px 14px -4px rgb(0 0 0 / .1);
  --shadow-lg: 0 18px 40px -12px rgb(0 0 0 / .22);
  --maxw: 1220px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
[data-theme="dark"] {
  --background: #08080a;
  --foreground: #fafafa;
  --card: #111114;
  --card-foreground: #fafafa;
  --muted: #1a1a1e;
  --muted-foreground: #a1a1aa;
  --subtle: #0d0d10;
  --border: #242429;
  --input: #2a2a30;
  --ring: #52525b;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / .5);
  --shadow: 0 4px 18px -4px rgb(0 0 0 / .6);
  --shadow-lg: 0 18px 50px -12px rgb(0 0 0 / .75);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--background); color: var(--foreground); font-family: var(--font);
  -webkit-font-smoothing: antialiased; line-height: 1.5; font-feature-settings: "cv11", "ss01"; letter-spacing: -0.006em;
  transition: background .25s, color .25s;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: color-mix(in srgb, var(--primary) 26%, transparent); }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--muted-foreground) 35%, transparent); border-radius: 99px; border: 3px solid var(--background); }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted-foreground); }

/* promo */
.promo { background: var(--foreground); color: var(--background); text-align: center;
  font-size: 12.5px; font-weight: 500; padding: 9px 12px; letter-spacing: .01em; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--background) 78%, transparent);
  backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.scrolled { border-color: var(--border); box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; gap: 18px; height: 66px; }
.brand { font-size: 19px; font-weight: 700; letter-spacing: -.03em; display: flex; align-items: center; gap: 10px; }
.brand .logo { width: 33px; height: 33px; border-radius: 10px; object-fit: cover;
  background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 50%, #000)); display: grid; place-items: center; font-size: 16px; color: #fff; box-shadow: 0 4px 12px -3px color-mix(in srgb, var(--primary) 55%, transparent); }
.search { flex: 1; max-width: 460px; position: relative; }
.search input { width: 100%; height: 42px; border-radius: 999px; border: 1px solid var(--input);
  background: var(--subtle); color: var(--foreground); padding: 0 16px 0 42px; font-size: 14px; outline: none; transition: border-color .15s, box-shadow .15s, background .15s; }
.search input:focus { border-color: var(--primary); background: var(--background); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 14%, transparent); }
.search svg { position: absolute; left: 15px; top: 13px; color: var(--muted-foreground); }
.nav-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; font-size: 14px; }
.nav-link { color: var(--muted-foreground); font-weight: 500; padding: 8px 12px; border-radius: var(--radius); transition: .15s; }
.nav-link:hover { color: var(--foreground); background: var(--muted); }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 999px;
  border: 1px solid var(--border); background: var(--background); color: var(--foreground); cursor: pointer; transition: .15s; }
.icon-btn:hover { background: var(--muted); transform: translateY(-1px); }
.tabs { display: flex; gap: 4px; height: 46px; align-items: center; font-size: 14px; }
.tabs a { color: var(--muted-foreground); font-weight: 500; padding: 7px 13px; border-radius: 999px; transition: .15s; }
.tabs a.active, .tabs a:hover { color: var(--foreground); background: var(--muted); }

/* hero */
.hero { padding: 68px 0 30px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -40% 0 auto 0; height: 600px; z-index: -1;
  background:
    radial-gradient(520px 320px at 12% 0%, color-mix(in srgb, var(--primary) 22%, transparent), transparent 70%),
    radial-gradient(560px 340px at 88% 6%, color-mix(in srgb, #ec4899 16%, transparent), transparent 70%),
    radial-gradient(620px 360px at 50% -20%, color-mix(in srgb, #06b6d4 12%, transparent), transparent 70%); }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600;
  color: var(--primary); background: color-mix(in srgb, var(--primary) 11%, var(--background)); border: 1px solid color-mix(in srgb, var(--primary) 22%, transparent);
  padding: 6px 13px; border-radius: 999px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(34px, 5vw, 52px); margin: 0 0 14px; letter-spacing: -.04em; line-height: 1.04; font-weight: 800; max-width: 760px;
  background: linear-gradient(180deg, var(--foreground), color-mix(in srgb, var(--foreground) 62%, var(--background))); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--muted-foreground); font-size: 17px; margin: 0; max-width: 560px; line-height: 1.6; }

/* trust strip */
.trust { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 26px; }
.trust .item { display: flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 500; color: var(--muted-foreground); }
.trust .item svg { color: var(--primary); }

/* layout */
.layout { display: grid; grid-template-columns: 232px 1fr; gap: 34px; padding: 36px 0 60px; align-items: start; }
.sidebar { position: sticky; top: 138px; }
.sidebar h3 { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-foreground); margin: 0 0 12px; font-weight: 600; }
.cat-list { display: flex; flex-direction: column; gap: 2px; }
.cat-list a { padding: 9px 13px; border-radius: var(--radius); color: var(--muted-foreground); font-weight: 500; font-size: 14px;
  display: flex; align-items: center; gap: 12px; transition: .14s; }
.cat-list a:hover { background: var(--muted); color: var(--foreground); }
.cat-list a.active { background: color-mix(in srgb, var(--primary) 12%, var(--background)); color: var(--primary); font-weight: 600; }

.toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; gap: 12px; flex-wrap: wrap; }
.toolbar h2 { margin: 0; font-size: 23px; letter-spacing: -.03em; font-weight: 700; }
.select { background: var(--background); border: 1px solid var(--input); color: var(--foreground);
  border-radius: var(--radius); padding: 9px 13px; font-size: 13.5px; cursor: pointer; font-weight: 500; transition: .15s; }
.select:hover { border-color: var(--ring); }

/* product grid */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; cursor: pointer; transition: transform .22s cubic-bezier(.2,.7,.2,1), box-shadow .22s, border-color .22s;
  display: flex; flex-direction: column; animation: fadeUp .45s cubic-bezier(.2,.7,.2,1) both; }
.grid .card:nth-child(1){animation-delay:.02s}.grid .card:nth-child(2){animation-delay:.05s}
.grid .card:nth-child(3){animation-delay:.08s}.grid .card:nth-child(4){animation-delay:.11s}
.grid .card:nth-child(5){animation-delay:.14s}.grid .card:nth-child(6){animation-delay:.17s}
.grid .card:nth-child(7){animation-delay:.2s}.grid .card:nth-child(8){animation-delay:.23s}
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--ring) 50%, var(--border)); }

/* the realistic gift card inside each tile */
.thumb { padding: 18px 18px 6px; position: relative; }
.gcard { aspect-ratio: 1.586 / 1; border-radius: 13px; position: relative; overflow: hidden; padding: 14px;
  background: linear-gradient(140deg, var(--c, #6366f1), color-mix(in srgb, var(--c, #6366f1) 60%, #000));
  box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--c, #6366f1) 75%, transparent), inset 0 1px 0 rgb(255 255 255 / .28), inset 0 -30px 50px rgb(0 0 0 / .18);
  display: flex; flex-direction: column; justify-content: space-between; }
.gcard::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 80% -10%, rgb(255 255 255 / .22), transparent 55%); }
.gcard .shine { position: absolute; top: -60%; left: -70%; width: 55%; height: 220%; transform: rotate(22deg);
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / .38), transparent); transition: left .65s ease; }
.card:hover .gcard .shine { left: 130%; }
.chip { width: 30px; height: 23px; border-radius: 5px; position: relative; z-index: 1;
  background: linear-gradient(135deg, #fde68a, #d4af37); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .12); }
.chip::after { content: ""; position: absolute; inset: 5px 8px; border: 1px solid rgb(0 0 0 / .22); border-radius: 2px; }
.gname { font-size: 19px; font-weight: 800; color: #fff; letter-spacing: -.02em; text-shadow: 0 1px 10px rgb(0 0 0 / .35); position: relative; z-index: 1; line-height: 1.1; }
.badge { position: absolute; top: 28px; right: 28px; z-index: 3; background: rgb(255 255 255 / .95); color: #18181b;
  font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; display: flex; align-items: center; gap: 3px; box-shadow: var(--shadow-sm); }
.card .body { padding: 12px 16px 16px; }
.card .body .title { font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; min-height: 2.5em; line-height: 1.25; }
.card .body .meta { display: flex; justify-content: space-between; margin-top: 6px; color: var(--muted-foreground); font-size: 13px; align-items: center; gap: 8px; }
.card .body .meta .price { font-weight: 600; color: var(--foreground); white-space: nowrap; }
.card .body .meta .star { white-space: nowrap; }
.star { color: #f59e0b; font-weight: 600; display: inline-flex; align-items: center; gap: 2px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; white-space: nowrap;
  border: 1px solid transparent; border-radius: var(--radius); padding: 0 20px; height: 44px; font-size: 14px; font-weight: 600; font-family: var(--font);
  transition: transform .12s, background .15s, box-shadow .15s; }
.btn:active { transform: scale(.985); }
.btn-primary { background: var(--primary); color: var(--primary-foreground); box-shadow: 0 6px 18px -6px color-mix(in srgb, var(--primary) 70%, transparent); }
.btn-primary:hover { background: color-mix(in srgb, var(--primary) 90%, #000); box-shadow: 0 8px 22px -6px color-mix(in srgb, var(--primary) 75%, transparent); }
.btn-ghost { background: var(--background); color: var(--foreground); border-color: var(--border); }
.btn-ghost:hover { background: var(--muted); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* product page */
.product-wrap { display: grid; grid-template-columns: 1.02fr 1fr; gap: 48px; padding: 38px 0 80px; }
.product-hero .gcard { aspect-ratio: 1.586 / 1; border-radius: 20px; padding: 28px; }
.product-hero .gcard .gname { font-size: 34px; }
.product-hero .chip { width: 48px; height: 37px; border-radius: 7px; }
.panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.howto { display: flex; gap: 18px; margin-top: 18px; }
.howto .step { flex: 1; text-align: center; }
.howto .step .n { width: 34px; height: 34px; margin: 0 auto 8px; border-radius: 999px; display: grid; place-items: center; font-weight: 700; font-size: 14px;
  background: color-mix(in srgb, var(--primary) 12%, var(--background)); color: var(--primary); }
.howto .step .t { font-size: 12.5px; color: var(--muted-foreground); }
.denoms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0; }
.denom { border: 1.5px solid var(--border); border-radius: var(--radius); padding: 15px 10px; text-align: center; cursor: pointer; transition: .14s; background: var(--background); }
.denom:hover { border-color: var(--ring); transform: translateY(-1px); }
.denom.selected { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 8%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 14%, transparent); }
.denom .fv { font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.denom .pr { font-size: 12px; color: var(--muted-foreground); margin-top: 2px; }
.denom .oos { font-size: 11px; color: #ef4444; margin-top: 4px; font-weight: 600; }
.field { margin: 16px 0; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; }
.field input, .field select { width: 100%; height: 44px; background: var(--background); border: 1px solid var(--input);
  border-radius: var(--radius); color: var(--foreground); padding: 0 14px; font-size: 14px; outline: none; transition: .15s; }
.field input:focus, .field select:focus { border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 13%, transparent); }
.summary { display: flex; justify-content: space-between; align-items: center; font-size: 15px; padding: 18px 0 8px; border-top: 1px solid var(--border); margin-top: 8px; }
.summary .total { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }

/* order / receipt */
.code-box { background: var(--muted); border: 1px dashed var(--primary); border-radius: var(--radius); padding: 15px 16px;
  font-family: ui-monospace, Menlo, monospace; font-size: 16px; letter-spacing: .05em; margin-top: 8px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pay-addr { background: var(--muted); border: 1px solid var(--border); border-radius: var(--radius); padding: 13px 14px;
  font-family: ui-monospace, monospace; font-size: 13px; word-break: break-all; margin: 8px 0; }
.pill { display: inline-flex; align-items: center; padding: 4px 13px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.pill.pending { background: #fef3c7; color: #92400e; }
.pill.paid { background: #dbeafe; color: #1e40af; }
.pill.fulfilled { background: #dcfce7; color: #166534; }
.pill.cancelled { background: #fee2e2; color: #991b1b; }
[data-theme="dark"] .pill.pending { background: #422006; color: #fde68a; }
[data-theme="dark"] .pill.paid { background: #1e3a5f; color: #bfdbfe; }
[data-theme="dark"] .pill.fulfilled { background: #14331f; color: #bbf7d0; }
[data-theme="dark"] .pill.cancelled { background: #3f1414; color: #fecaca; }

/* footer */
.footer { border-top: 1px solid var(--border); margin-top: 40px; background: var(--subtle); }
.footer .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 28px; padding: 50px 0 34px; }
.footer h4 { font-size: 13px; font-weight: 600; margin: 0 0 14px; letter-spacing: -.01em; }
.footer a, .footer p { color: var(--muted-foreground); font-size: 13.5px; display: block; margin-bottom: 9px; line-height: 1.5; }
.footer a:hover { color: var(--foreground); }
.footer .fbrand { font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 9px; margin-bottom: 12px; letter-spacing: -.02em; }
.footer .fbrand .logo { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 50%, #000)); display: grid; place-items: center; color: #fff; font-size: 15px; }
.paybadges { display: flex; flex-wrap: wrap; gap: 8px; }
.paybadge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--foreground);
  background: var(--background); border: 1px solid var(--border); padding: 6px 11px; border-radius: 999px; }
.footer .bottom { border-top: 1px solid var(--border); padding: 20px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: var(--muted-foreground); font-size: 13px; }

/* toast */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--foreground); color: var(--background);
  padding: 13px 22px; border-radius: 999px; box-shadow: var(--shadow-lg); z-index: 100; opacity: 0; transition: .22s; pointer-events: none; font-size: 14px; font-weight: 500; }
.toast.show { opacity: 1; bottom: 34px; }

.empty { text-align: center; padding: 70px 0; color: var(--muted-foreground); }
.skeleton { background: linear-gradient(90deg, var(--muted), color-mix(in srgb, var(--muted) 55%, var(--background)), var(--muted));
  background-size: 200% 100%; animation: sk 1.3s infinite; border-radius: var(--radius); aspect-ratio: 16/13; }
@keyframes sk { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

@media (max-width: 920px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .cat-list { flex-direction: row; flex-wrap: wrap; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .product-wrap { grid-template-columns: 1fr; }
  .footer .cols { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (max-width: 540px) { .footer .cols { grid-template-columns: 1fr; } }
