@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;700&family=Inter:wght@400;500&display=swap');

:root {
  --bg: #0b0a0e;
  --panel: #15131b;
  --line: #2a2533;
  --text: #ece8f2;
  --muted: #a79fb3;
  --accent: #9e1b32;
  --accent-hover: #b8203b;
  --accent-text: #e86a7e;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: Inter, system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); min-height: 100vh; display: flex; flex-direction: column; font-family: var(--sans); }
main { flex: 1; padding: 2rem clamp(1rem, 4vw, 3rem); }
h1, h2, h3, .brand { font-family: var(--serif); }
a { color: var(--accent-text); }

/* Landing */
.landing { background: radial-gradient(ellipse at 50% 40%, #2e2436 0%, #17121b 45%, #0a090c 100%); overflow: hidden; }
.stars { position: fixed; inset: 0; pointer-events: none; opacity: 0.55;
  background-image: radial-gradient(1px 1px at 12% 18%, #ede6da 50%, transparent 51%), radial-gradient(1px 1px at 72% 12%, #ede6da 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 38% 72%, #ede6da 50%, transparent 51%), radial-gradient(1px 1px at 86% 64%, #ede6da 50%, transparent 51%),
    radial-gradient(1px 1px at 22% 88%, #ede6da 50%, transparent 51%), radial-gradient(1.5px 1.5px at 58% 34%, #ede6da 50%, transparent 51%),
    radial-gradient(1px 1px at 92% 30%, #ede6da 50%, transparent 51%), radial-gradient(1px 1px at 6% 52%, #ede6da 50%, transparent 51%); }
.landing-inner { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 1rem; padding: 3rem 1.5rem; position: relative; }
.landing-moon { opacity: 0.85; animation: rise 1.6s ease-out both; }
.eyebrow { margin: 0; font-size: 0.8rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--accent-text); }
.landing-title { margin: 0; font-size: clamp(3.5rem, 12vw, 8rem); font-weight: 700; line-height: 0.95; letter-spacing: 0.02em; animation: rise 1.2s ease-out both; }
.landing-tag { margin: 0 0 1rem; font-family: var(--serif); font-size: clamp(1.2rem, 3vw, 1.6rem); color: var(--muted); }
.btn-enter { font-family: var(--sans); letter-spacing: 0.35em; text-transform: uppercase; font-size: 0.95rem; padding: 1rem 2.75rem 1rem 3.1rem; border: 1px solid #e86a7e55; box-shadow: 0 0 40px #9e1b3255; transition: box-shadow 0.3s, background 0.3s; }
.btn-enter:hover { box-shadow: 0 0 60px #c2193c88; }
.landing-foot { margin-top: 1.5rem; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .landing-moon, .landing-title { animation: none; } }

/* Shop */
.site-header { display: flex; justify-content: space-between; align-items: center; padding: 1.25rem clamp(1rem, 4vw, 3rem); border-bottom: 1px solid var(--line); }
.brand { color: var(--text); text-decoration: none; font-size: 1.8rem; font-weight: 700; letter-spacing: 0.04em; }
.cat-nav { display: flex; gap: 0.25rem 1.5rem; flex-wrap: wrap; padding: 0.9rem clamp(1rem, 4vw, 3rem); border-bottom: 1px solid var(--line); }
.cat-nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; padding: 0.35rem 0; border-bottom: 1px solid transparent; }
.cat-nav a:hover { color: var(--text); }
.cat-nav a.active { color: var(--text); border-bottom-color: var(--accent-text); }
.view-title { margin: 0.5rem 0 0.25rem; font-size: clamp(2rem, 5vw, 3rem); }
.view-sub { margin: 0 0 1.75rem; }
.cart-toggle, .btn, .icon-btn { font: inherit; cursor: pointer; border-radius: 2px; }
.cart-toggle { background: none; color: var(--text); border: 1px solid var(--line); padding: 0.55rem 1rem; min-height: 44px; }
.btn { display: inline-block; background: var(--accent); color: #fff; border: 0; padding: 0.7rem 1.25rem; text-decoration: none; font-size: 1rem; min-height: 44px; }
.btn:hover { background: var(--accent-hover); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.icon-btn { background: none; border: 0; color: var(--text); font-size: 1.6rem; width: 44px; height: 44px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.5rem; }
.card { background: var(--panel); border: 1px solid var(--line); padding: 1rem; display: flex; flex-direction: column; gap: 0.4rem; }
.card img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #1e1a26; }
.card h3 { margin: 0.4rem 0 0; font-size: 1.4rem; }
.card .muted { font-size: 0.9rem; line-height: 1.45; }
.card .btn { margin-top: auto; }
.price { font-family: var(--serif); font-size: 1.4rem; margin: 0.2rem 0 0.6rem; }
.tiles-title { margin: 3rem 0 1rem; font-size: 1.9rem; }
.cat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1rem; }
.cat-tiles .tiles-title { grid-column: 1 / -1; }
.cat-tile { display: flex; flex-direction: column; gap: 0.3rem; background: var(--panel); border: 1px solid var(--line); padding: 0.75rem; color: var(--text); text-decoration: none; transition: border-color 0.2s; }
.cat-tile:hover { border-color: var(--accent-text); }
.cat-tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.cat-tile-name { font-family: var(--serif); font-size: 1.3rem; }
.img-placeholder { width: 100%; aspect-ratio: 1; background: #1e1a26; display: flex; align-items: center; justify-content: center; text-align: center; padding: 1rem; color: var(--muted); font-style: italic; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.error { color: #ff8a9e; min-height: 1.2em; }
.notice { background: var(--panel); border-bottom: 1px solid var(--line); padding: 0.75rem clamp(1rem, 4vw, 3rem); color: var(--muted); }
.cart { position: fixed; top: 0; right: 0; width: min(380px, 100%); height: 100%; background: var(--panel); border-left: 1px solid var(--line); padding: 1.25rem 1.5rem; overflow-y: auto; box-shadow: -8px 0 24px #0008; z-index: 10; }
.cart-head { display: flex; justify-content: space-between; align-items: center; }
.cart-head h2 { margin: 0; font-size: 1.7rem; }
.cart ul { list-style: none; padding: 0; margin: 1rem 0; }
.cart li { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
.qty { display: inline-flex; gap: 0.6rem; align-items: center; }
.qty button { background: none; border: 1px solid var(--line); color: var(--text); width: 2rem; height: 2rem; cursor: pointer; }
.cart-subtotal { display: flex; justify-content: space-between; font-size: 1.1rem; }
.center { text-align: center; padding-top: 5rem; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); text-align: center; font-size: 0.85rem; }
