:root {
    --bg: #f1eee7;
    --ink: #111111;
    --paper: #fffdf8;
    --muted: #6f6a63;
    --line: #d8d2c8;
    --accent: #d9ff43;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
.site-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 28px; border-bottom: 1px solid var(--line); background: rgba(241,238,231,.94); backdrop-filter: blur(12px); }
.brand { font-size: 1.6rem; font-weight: 900; letter-spacing: -.08em; }
.main-nav { display: flex; flex-wrap: wrap; gap: 18px; font-size: .92rem; font-weight: 700; text-transform: uppercase; }
.header-actions { display: flex; gap: 14px; font-size: .85rem; }
.page { min-height: calc(100vh - 70px); }
.hero { min-height: 74vh; display: grid; align-content: end; padding: clamp(32px, 7vw, 96px); border-bottom: 1px solid var(--line); background: linear-gradient(140deg, #111 0%, #24211d 55%, #444039 100%); color: white; overflow: hidden; }
.eyebrow { text-transform: uppercase; font-size: .78rem; letter-spacing: .18em; font-weight: 750; }
.hero h1 { max-width: 9ch; margin: 16px 0 20px; font-size: clamp(4rem, 13vw, 11rem); line-height: .78; letter-spacing: -.08em; text-transform: uppercase; }
.hero p { max-width: 620px; font-size: clamp(1rem, 2vw, 1.35rem); line-height: 1.45; color: #dedbd4; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 18px; border: 1px solid var(--ink); background: var(--ink); color: white; font-weight: 800; text-transform: uppercase; font-size: .82rem; letter-spacing: .05em; cursor: pointer; }
.button.alt { border-color: white; background: white; color: #111; }
.button.ghost { background: transparent; color: inherit; }
.button-dark { background: #111; color: #fff; }
.worlds { display: grid; grid-template-columns: repeat(5, 1fr); border-bottom: 1px solid var(--line); }
.world-card { min-height: 260px; padding: 24px; border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; background: var(--paper); }
.world-card:last-child { border-right: 0; }
.world-card strong { font-size: clamp(1.6rem, 3vw, 3.6rem); letter-spacing: -.06em; text-transform: uppercase; }
.world-card span { color: var(--muted); font-size: .9rem; }
.section { padding: clamp(32px, 6vw, 84px); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.section h2 { margin: 0; font-size: clamp(2.5rem, 7vw, 6rem); line-height: .9; letter-spacing: -.07em; text-transform: uppercase; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.product-card { min-height: 360px; padding: 20px; background: var(--paper); display: flex; flex-direction: column; justify-content: end; }
.product-card a { height: 100%; display: flex; flex-direction: column; }
.product-media { min-height: 270px; flex: 1; margin-bottom: 18px; background: #e4dfd5; overflow: hidden; }
.product-media img { width: 100%; height: 100%; min-height: 270px; object-fit: cover; display: block; }
.media-placeholder, .product-detail-placeholder { min-height: 270px; display: grid; place-items: center; font-size: clamp(3rem, 9vw, 8rem); font-weight: 900; letter-spacing: -.08em; background: linear-gradient(145deg,#d7d0c5,#f7f3eb); }
.product-meta { display: flex; justify-content: space-between; gap: 14px; align-items: baseline; }
.product-meta h2 { margin: 0; font-size: 1rem; text-transform: uppercase; }
.product-meta p { margin: 0; color: var(--muted); white-space: nowrap; }
.product-card .image-placeholder { flex: 1; min-height: 240px; margin-bottom: 22px; background: linear-gradient(145deg,#ded9d0,#f8f4ec); }
.product-card h3 { margin: 0 0 6px; font-size: 1rem; text-transform: uppercase; }
.product-card p { margin: 0; color: var(--muted); }
.catalog-hero, .cart-page { padding: clamp(36px, 7vw, 92px); }
.catalog-hero h1, .cart-page h1, .product-info h1 { margin: 8px 0 14px; font-size: clamp(3rem, 8vw, 8rem); line-height: .85; letter-spacing: -.07em; text-transform: uppercase; }
.category-strip { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 clamp(20px, 4vw, 56px) 28px; }
.category-strip span { padding: 9px 13px; border: 1px solid var(--line); background: var(--paper); font-size: .78rem; text-transform: uppercase; font-weight: 800; }
.product-detail { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr); gap: 1px; background: var(--line); }
.product-gallery, .product-info { background: var(--paper); }
.product-gallery { display: grid; gap: 1px; }
.product-gallery img { width: 100%; display: block; background: #e4dfd5; }
.product-info { padding: clamp(28px, 5vw, 70px); position: sticky; top: 72px; align-self: start; min-height: calc(100vh - 72px); }
.price { font-size: 1.25rem; font-weight: 800; }
.buy-box { display: grid; gap: 10px; margin: 34px 0; }
.buy-box label { margin-top: 8px; font-size: .78rem; text-transform: uppercase; font-weight: 800; }
.buy-box select, .buy-box input { width: 100%; min-height: 48px; border: 1px solid var(--line); background: white; padding: 10px 12px; }
.product-description { padding-top: 24px; border-top: 1px solid var(--line); line-height: 1.7; color: #3e3a35; }
.notice { padding: 14px 16px; background: var(--accent); margin: 20px 0; font-weight: 700; }
.empty-state { min-height: 260px; padding: 40px; display: grid; place-content: center; text-align: center; background: var(--paper); }
.cart-list { border-top: 1px solid var(--line); }
.cart-item { display: flex; justify-content: space-between; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.cart-item > div { display: grid; gap: 6px; }
.cart-item > div:last-child { text-align: right; }
.cart-item span, .muted { color: var(--muted); }
.link-button { padding: 0; border: 0; background: none; text-decoration: underline; cursor: pointer; }
.cart-summary { margin-top: 28px; display: flex; justify-content: space-between; font-size: 1.3rem; }
.footer { padding: 32px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: .85rem; }
.not-found { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 40px; }
.not-found h1 { font-size: clamp(5rem, 20vw, 14rem); margin: 0; letter-spacing: -.1em; }
.admin-body { min-height: 100vh; background: #111; color: #f4f1eb; }
.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 240px 1fr; }
.admin-sidebar { border-right: 1px solid #343434; padding: 28px 22px; }
.admin-sidebar nav { display: grid; gap: 10px; margin-top: 40px; }
.admin-sidebar a { padding: 10px 0; color: #c7c3bc; }
.admin-main { padding: clamp(24px, 5vw, 64px); }
.admin-title { font-size: clamp(3rem, 8vw, 7rem); line-height: .84; letter-spacing: -.07em; text-transform: uppercase; margin: 0 0 32px; }
.admin-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.admin-card { min-height: 160px; padding: 22px; border: 1px solid #343434; background: #181818; }
.admin-card strong { display: block; font-size: 2rem; margin-top: 30px; }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: min(460px, 100%); padding: 34px; border: 1px solid #343434; background: #181818; }
.login-card h1 { font-size: 3rem; line-height: .9; letter-spacing: -.06em; text-transform: uppercase; }
.form-stack { display: grid; gap: 16px; }
.form-stack label { display: grid; gap: 7px; font-size: .85rem; color: #d0ccc5; }
.form-stack input { width: 100%; padding: 12px 14px; border: 1px solid #4a4a4a; background: #0f0f0f; color: white; }
.notice-error { border: 1px solid #8a3b3b; background: #2b1717; padding: 12px 14px; margin-bottom: 18px; }
.logout-form { margin-top: 28px; }
@media (max-width: 980px) {
    .worlds { grid-template-columns: repeat(2, 1fr); }
    .world-card:nth-child(2n) { border-right: 0; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .product-detail { grid-template-columns: 1fr; }
    .product-info { position: static; min-height: 0; }
    .admin-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .site-header { align-items: flex-start; padding: 16px; }
    .main-nav { display: none; }
    .header-actions { font-size: .78rem; }
    .worlds, .product-grid { grid-template-columns: 1fr; }
    .world-card { border-right: 0; border-bottom: 1px solid var(--line); }
    .product-meta { align-items: flex-start; }
    .cart-item { flex-direction: column; }
    .cart-item > div:last-child { text-align: left; }
    .admin-shell { grid-template-columns: 1fr; }
    .admin-sidebar { border-right: 0; border-bottom: 1px solid #343434; }
}
