@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Playfair+Display:wght@500;600;700&family=Space+Grotesk:wght@400;500;600&display=swap');

:root { --wine: #55152a; --wine-dark: #330b1a; --gold: #b78636; --ink: #251c1d; --muted: #786c6b; --paper: #f7f1e8; --line: #dfd3c5; --white: #fffdf9; }
* { box-sizing: border-box; }
body { margin: 0; background: linear-gradient(180deg, #f9f2e9 0%, #f2e7d7 34%, #efe4cf 100%); color: var(--ink); font-family: 'Space Grotesk', sans-serif; overflow-x: hidden; position: relative; }
body > * { position: relative; z-index: 1; }
#fabric-weave { position: fixed; inset: -8% -10% -5% -10%; width: 120vw; height: 120vh; z-index: 0; pointer-events: none; opacity: .8; transform: perspective(1600px) rotateX(22deg) scale(1.18); filter: saturate(1.25) contrast(1.08) brightness(1.02); }
body::before { content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(circle at 20% 20%, rgba(255,255,255,.58), transparent 30%), linear-gradient(135deg, rgba(171,111,72,.08), transparent 30%, rgba(85,21,42,.08) 100%); }
a { color: inherit; text-decoration: none; }
.site-header { background: rgba(24, 13, 18, .9); color: #fffaf2; border-bottom: 1px solid rgba(255,255,255,.15); backdrop-filter: blur(8px); }
.header-inner, .container { max-width: 1180px; margin: 0 auto; padding: 0 30px; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 86px; gap: 24px; }
.brand { display:flex; align-items:center; gap: 12px; }
.brand img { width: 54px; height: 54px; object-fit: cover; border-radius: 50%; border: 1px solid var(--gold); }
.brand strong { font-family: 'Playfair Display', serif; font-size: 20px; letter-spacing: .02em; }
.brand small { display:block; color: #dabd83; font-family: 'DM Mono', monospace; font-size: 9px; letter-spacing: .18em; margin-top: 2px; }
.nav { display:flex; align-items:center; gap: 26px; color: #e8d8bf; font-size: 13px; }
.nav a:hover { color: #fff; }
.nav .nav-admin { border: 1px solid rgba(255,255,255,.3); padding: 10px 13px; }
.hero { background: var(--wine); color: #fffaf2; min-height: 470px; position: relative; overflow: hidden; }
.hero:after { content:''; position:absolute; inset: 0; opacity: .14; background-image: linear-gradient(30deg, transparent 48%, #e2be79 49%, #e2be79 51%, transparent 52%), linear-gradient(150deg, transparent 48%, #e2be79 49%, #e2be79 51%, transparent 52%); background-size: 34px 60px; pointer-events:none; animation: textile-drift 22s linear infinite; }
.hero-inner { max-width: 1180px; margin:auto; padding: 82px 30px 76px; position:relative; z-index:1; display:grid; grid-template-columns: 1.15fr .85fr; align-items:center; gap: 60px; }
.eyebrow { color: #e1bb73; font-family:'DM Mono', monospace; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }
h1, h2, h3 { font-family:'Playfair Display', serif; font-weight: 600; }
h1 { font-size: clamp(44px, 7vw, 78px); line-height: .98; margin: 19px 0 24px; max-width: 680px; letter-spacing: -.04em; }
.hero p { max-width: 500px; color: #eadbcc; line-height: 1.7; font-size: 16px; }
.hero-art { min-height: 300px; border: 1px solid rgba(227,188,115,.6); position:relative; display:grid; place-items:center; transform: rotate(2deg); }
.hero-art:before { content:'∑  •  ∞  •  ∆'; color:#e2bd77; font-family:'DM Mono', monospace; font-size: 13px; letter-spacing:.45em; position:absolute; top: 18px; left: 20px; }
.hero-art:after { content:'◌'; font-size: 210px; line-height: 1; color: transparent; -webkit-text-stroke: 1px #e2bd77; text-shadow: 0 0 0 #e2bd77; animation: orbit-pulse 7s ease-in-out infinite; }
.math-symphony { position:absolute; inset:0; overflow:hidden; pointer-events:none; }
.math-symphony span { position:absolute; color:#f0cd86; font:11px 'DM Mono', monospace; opacity:.72; animation: notation-float 8s ease-in-out infinite; }
.math-symphony span:nth-child(1) { top:28%; left:15%; animation-delay:-2s; }.math-symphony span:nth-child(2) { right:12%; bottom:25%; animation-delay:-5s; }.math-symphony span:nth-child(3) { left:28%; bottom:12%; animation-delay:-1s; }
.section-head { display:flex; justify-content:space-between; align-items:end; gap: 20px; margin: 64px 0 26px; }
.section-head h2 { font-size: 39px; margin: 8px 0 0; }
.section-head p { color: var(--muted); margin:0; font-size:13px; }
.filters { display:flex; flex-wrap:wrap; gap: 8px; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.filter { border: 1px solid var(--line); padding: 11px 15px; background: transparent; font: inherit; color: var(--ink); cursor:pointer; font-size: 12px; }
.filter.active, .filter:hover { background: var(--wine); color: #fff; border-color: var(--wine); }
.catalog-grid { display:grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-bottom: 80px; }
.product-card { background: var(--white); border:1px solid var(--line); transition: transform .25s ease, box-shadow .25s ease; animation: card-arrive .7s both; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(62,34,27,.1); }
.product-image { display:block; aspect-ratio: 3/4; width:100%; object-fit:cover; }
.product-copy { padding: 18px; }
.product-meta { display:flex; justify-content:space-between; color:var(--muted); font: 10px 'DM Mono', monospace; text-transform:uppercase; letter-spacing:.08em; }
.product-copy h3 { font-size: 21px; margin: 10px 0; }
.product-footer { display:flex; justify-content:space-between; align-items:center; gap: 10px; margin-top: 16px; }
.price { font-weight:600; color:var(--wine); }
.button { display:inline-block; border:0; background:var(--wine); color:#fff; padding: 13px 17px; font: 500 12px 'Space Grotesk', sans-serif; cursor:pointer; }
.button:hover { background:var(--wine-dark); transform:translateY(-2px); }.button { transition:transform .2s ease, background .2s ease; }
.button-outline { background:transparent; border: 1px solid var(--wine); color:var(--wine); }
footer { background:var(--wine-dark); color:#d8c7b4; padding: 32px 0; font-size: 12px; }
.footer-inner { display:flex; justify-content:space-between; gap:20px; }
.detail { padding: 78px 0 108px; }
.detail-grid { display:grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .72fr); gap: clamp(42px, 7vw, 92px); align-items:start; }
.detail-image { width:100%; max-height: 700px; object-fit:cover; }
.detail-grid > div:last-child { min-width:0; max-width: 530px; padding-top: 12px; }
.detail h1 { color:var(--wine); font-size: clamp(38px, 5vw, 62px); line-height:1.04; margin: 18px 0 26px; max-width: 12ch; overflow-wrap:anywhere; }
.detail-description { color:var(--muted); line-height:1.9; max-width: 44rem; margin:0 0 32px; font-size:15px; }
.specs { border-top:1px solid var(--line); border-bottom:1px solid var(--line); margin: 34px 0 30px; padding: 4px 0; }
.spec { display:flex; justify-content:space-between; padding: 13px 0; border-bottom:1px solid var(--line); font-size: 13px; }.spec:last-child { border:0; }.spec span:first-child {color:var(--muted);}
.detail .button { margin-top: 4px; padding: 15px 22px; box-shadow: 0 8px 18px rgba(85,21,42,.13); }
.notice { background: #f3e3c7; color: #5d401a; padding: 12px 14px; margin-bottom: 20px; font-size:13px; }
.admin-shell { max-width: 1100px; margin:0 auto; padding: 42px 30px; }.admin-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:30px; }.admin-head h1 { font-size:42px; margin:0; color:var(--wine); }.admin-table { width:100%; border-collapse:collapse; background:var(--white); font-size:13px; }.admin-table th,.admin-table td { text-align:left; padding:15px; border-bottom:1px solid var(--line); }.admin-table th { font: 11px 'DM Mono', monospace; text-transform:uppercase; color:var(--muted); }.admin-table img { width:48px; height:62px; object-fit:cover; }.admin-actions { display:flex; gap:8px; }.form-card { max-width:720px; background:var(--white); padding:28px; border:1px solid var(--line); }.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:18px; }.field { display:flex; flex-direction:column; gap:7px; margin-bottom:18px; }.field.full { grid-column:1/-1; }.field label { font: 11px 'DM Mono', monospace; text-transform:uppercase; color:var(--muted); }.field input,.field textarea,.field select { padding:12px; border:1px solid var(--line); background:#fff; font:inherit; }.field textarea { min-height:110px; resize:vertical; }.check { flex-direction:row; align-items:center; }.login-page { min-height:100vh; display:grid; place-items:center; background:var(--wine-dark); }.login-card { width:min(420px, calc(100% - 40px)); background:var(--paper); padding:36px; }.login-card h1 { font-size:42px; color:var(--wine); margin:8px 0 25px; }.login-card .brand { color:var(--wine); }
@media (max-width: 820px) { .header-inner { min-height:72px; padding:0 18px; }.header-inner .nav a:not(.nav-admin) { display:none; }.container,.hero-inner { padding-left:18px; padding-right:18px; }.hero-inner,.detail-grid { grid-template-columns:1fr; gap: 30px; }.hero { min-height:auto; }.hero-inner { padding-top:60px; }.hero-art { min-height:180px; }.hero-art:after { font-size:140px; }.catalog-grid { grid-template-columns:repeat(2,1fr); gap:12px; }.section-head { margin-top:42px; }.section-head h2 { font-size:32px; }.product-copy { padding:13px; }.product-copy h3 { font-size:18px; }.form-grid { grid-template-columns:1fr; }.field.full { grid-column:auto; }.admin-shell { padding:28px 18px; overflow:auto; }.admin-head h1 { font-size:32px; }.admin-table { min-width:760px; }.footer-inner { padding:0 18px; flex-direction:column; }.detail { padding-top:48px; }.detail-grid > div:last-child { max-width:none; padding-top:0; }.detail h1 { max-width:16ch; } }
@media (max-width: 420px) { .catalog-grid { grid-template-columns:1fr; }.product-image { aspect-ratio: 4/3; }.brand img { width:50px; height:50px; }.brand strong { font-size:17px; } }
@keyframes textile-drift { from { background-position:0 0, 0 0; } to { background-position:68px 120px, -68px 120px; } }
@keyframes orbit-pulse { 0%,100% { transform:scale(.92) rotate(0deg); opacity:.7; } 50% { transform:scale(1.08) rotate(18deg); opacity:1; } }
@keyframes notation-float { 0%,100% { transform:translate3d(0,0,0); } 50% { transform:translate3d(10px,-14px,0); } }
@keyframes card-arrive { from { opacity:0; transform:translateY(14px); } to { opacity:1; transform:translateY(0); } }
.catalog-grid .product-card:nth-child(2) { animation-delay:.08s; }.catalog-grid .product-card:nth-child(3) { animation-delay:.16s; }.catalog-grid .product-card:nth-child(4) { animation-delay:.24s; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration:.01ms !important; animation-iteration-count:1 !important; scroll-behavior:auto !important; transition-duration:.01ms !important; } }
.admin-search { display:grid; grid-template-columns:auto minmax(0, 1fr) auto auto; gap:10px; align-items:center; margin:0 0 28px; padding:12px; background:rgba(255,253,249,.78); border:1px solid rgba(183,134,54,.35); box-shadow:0 12px 28px rgba(62,34,27,.07); }
.admin-success { background:#e9f2e6; color:#315c3b; border-left:3px solid #6b9b67; }
.admin-search:before { content:'SEARCH INVENTORY'; align-self:center; padding:0 8px 0 4px; color:var(--gold); font:10px 'DM Mono', monospace; letter-spacing:.14em; white-space:nowrap; }
.admin-search input { min-width:0; width:100%; padding:13px 15px; border:1px solid var(--line); background:rgba(255,255,255,.88); color:var(--ink); font:14px 'Space Grotesk', sans-serif; outline:none; transition:border-color .2s ease, box-shadow .2s ease; }
.admin-search input::placeholder { color:#9a8e89; }
.admin-search input:focus { border-color:var(--gold); box-shadow:0 0 0 3px rgba(183,134,54,.14); }
.admin-search .button { min-height:44px; white-space:nowrap; }
@media (max-width: 620px) { .admin-search { grid-template-columns:1fr auto; }.admin-search:before { grid-column:1/-1; padding:2px 4px 4px; }.admin-search input { grid-column:1/-1; }.admin-search .button { width:100%; } }
