:root {
  --cream: #f8f4ed;
  --paper: #fffdf9;
  --sand: #efe6d8;
  --line: #e4d8c5;
  --gold: #a87b3f;
  --gold-deep: #8a6230;
  --gold-soft: #d9bf91;
  --sage: #7f8f6c;
  --sage-deep: #5d6d4d;
  --ink: #33291f;
  --muted: #7a6b5a;
  --danger: #a4452f;
  --ok: #4f7a4a;
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(74, 52, 24, .22);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); font-weight: 400; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; letter-spacing: .01em; }
.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.eyebrow { font-size: .74rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); font-weight: 500; }
.muted { color: var(--muted); }
.hidden { display: none !important; }

/* buttons & forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .85em 1.7em; border-radius: 999px; border: 1px solid var(--gold); background: var(--gold); color: #fff; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; cursor: pointer; transition: background .2s, color .2s, transform .1s; }
.btn:hover { background: var(--gold-deep); border-color: var(--gold-deep); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--gold-deep); }
.btn.ghost:hover { background: var(--gold); color: #fff; }
.btn.sage { background: var(--sage); border-color: var(--sage); }
.btn.sage:hover { background: var(--sage-deep); }
.btn.small { padding: .55em 1.1em; font-size: .72rem; }
.btn.block { width: 100%; }
.btn.danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn.danger:hover { background: var(--danger); color: #fff; }
.link { color: var(--gold-deep); border-bottom: 1px solid var(--gold-soft); cursor: pointer; background: none; border-top: 0; border-left: 0; border-right: 0; padding: 0; }
label { display: block; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .35em; }
.field { margin-bottom: 1rem; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=password], input[type=search], select, textarea {
  width: 100%; padding: .75em .95em; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); outline: none; transition: border-color .2s, box-shadow .2s; }
input:focus, select:focus, textarea:focus { border-color: var(--gold-soft); box-shadow: 0 0 0 3px rgba(168, 123, 63, .12); }
textarea { resize: vertical; min-height: 90px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.check { display: flex; align-items: center; gap: .6em; text-transform: none; letter-spacing: 0; font-size: .95rem; color: var(--ink); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--gold); }

/* announcement + header */
.announce { background: var(--sage-deep); color: #f3efe4; text-align: center; font-size: .78rem; letter-spacing: .12em; padding: .55em 16px; }
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(248, 244, 237, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .7rem; }
.brand img { width: 52px; height: 52px; border-radius: 50%; box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.brand .name { font-family: var(--serif); font-size: 1.65rem; letter-spacing: .28em; color: var(--gold-deep); line-height: 1; }
.brand .sub { display: block; font-family: var(--serif); font-style: italic; font-size: .85rem; letter-spacing: .04em; color: var(--muted); margin-top: 3px; }
.nav { display: flex; gap: 2rem; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; }
.nav a { padding: .4em 0; border-bottom: 1px solid transparent; transition: border-color .2s, color .2s; }
.nav a:hover, .nav a.active { color: var(--gold-deep); border-color: var(--gold-soft); }
.header-actions { display: flex; align-items: center; gap: .4rem; }
.icon-btn { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 0; background: transparent; cursor: pointer; color: var(--ink); }
.icon-btn:hover { background: var(--sand); }
.icon-btn svg { width: 22px; height: 22px; }
.badge { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--gold); color: #fff; font-size: .68rem; display: grid; place-items: center; font-weight: 600; }
.menu-toggle { display: none; }

/* hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(ellipse at 80% 20%, #fbf6ec 0%, var(--cream) 50%), var(--cream); }
.hero .inner { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 3rem; padding: 5.5rem 0 5rem; }
.hero h1 { font-size: clamp(2.6rem, 5.5vw, 4.6rem); font-weight: 400; color: var(--ink); }
.hero h1 em { color: var(--gold); font-style: italic; }
.hero p.lead { font-size: 1.12rem; color: var(--muted); max-width: 32rem; margin: 0 0 2rem; }
.hero .ctas { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero-art { position: relative; aspect-ratio: 1; max-width: 460px; justify-self: center; width: 100%; }
.hero-art .ring { position: absolute; inset: 0; border: 1px solid var(--gold-soft); border-radius: 50%; }
.hero-art .ring.r2 { inset: -18px; border-color: var(--line); }
.hero-art img { position: absolute; inset: 7%; width: 86%; border-radius: 50%; box-shadow: var(--shadow); animation: floaty 7s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-10px); } }
.hero-stats { display: flex; gap: 2.5rem; margin-top: 2.6rem; }
.hero-stats b { display: block; font-family: var(--serif); font-size: 1.9rem; font-weight: 500; color: var(--gold-deep); line-height: 1; }
.hero-stats span { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* sections */
section.block { padding: 5rem 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-head h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
.divider { display: flex; align-items: center; justify-content: center; gap: .8rem; color: var(--gold); margin: .3rem 0 1rem; }
.divider::before, .divider::after { content: ''; width: 60px; height: 1px; background: var(--gold-soft); }

/* categories */
.cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.cat-card { text-align: center; padding: 1.4rem .6rem; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); transition: transform .25s, box-shadow .25s, border-color .25s; }
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold-soft); }
.cat-card .ic { width: 64px; height: 64px; margin: 0 auto .8rem; border-radius: 50%; display: grid; place-items: center; background: var(--sand); color: var(--gold-deep); }
.cat-card .ic svg { width: 30px; height: 30px; }
.cat-card span { font-family: var(--serif); font-size: 1.15rem; }

/* product grid */
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem 1.4rem; }
.card { display: flex; flex-direction: column; }
.card .media { position: relative; aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; background: var(--sand); }
.card .media img, .card .media .ph { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .media img, .card:hover .media .ph { transform: scale(1.04); }
.card .tag { position: absolute; top: 12px; left: 12px; background: var(--paper); color: var(--gold-deep); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; padding: .35em .8em; border-radius: 999px; }
.card .tag.out { color: var(--danger); }
.card .quick { position: absolute; left: 12px; right: 12px; bottom: 12px; opacity: 0; transform: translateY(8px); transition: .25s; }
.card:hover .quick { opacity: 1; transform: none; }
.card .info { padding: .9rem .2rem 0; }
.card .cat { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--sage-deep); }
.card h3 { font-size: 1.3rem; margin: .15em 0 .2em; }
.price { font-weight: 500; color: var(--ink); }
.price s { color: var(--muted); font-weight: 400; margin-left: .5em; font-size: .9em; }
.price .off { color: var(--sage-deep); font-size: .8em; margin-left: .5em; letter-spacing: .05em; }

/* placeholder art */
.ph { display: grid; place-items: center; position: relative; }
.ph svg.motif { width: 42%; height: 42%; color: var(--gold); opacity: .85; }
.ph::after { content: ''; position: absolute; inset: 14px; border: 1px solid rgba(168, 123, 63, .28); border-radius: 10px; }

/* story / steps */
.story { background: var(--paper); border-block: 1px solid var(--line); }
.story .inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.story blockquote { font-family: var(--serif); font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-style: italic; color: var(--gold-deep); margin: 0 0 1.4rem; line-height: 1.3; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; counter-reset: step; }
.step { padding: 2rem 1.4rem; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); text-align: center; }
.step .num { width: 46px; height: 46px; border-radius: 50%; margin: 0 auto 1rem; display: grid; place-items: center; border: 1px solid var(--gold-soft); color: var(--gold-deep); font-family: var(--serif); font-size: 1.3rem; }
.step h4 { font-size: 1.3rem; }
.step p { margin: 0; color: var(--muted); font-size: .94rem; }
.promises { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 2.4rem 0; }
.promise { display: flex; gap: .9rem; align-items: center; }
.promise svg { width: 30px; height: 30px; color: var(--gold); flex: none; }
.promise b { display: block; font-weight: 500; }
.promise span { font-size: .85rem; color: var(--muted); }
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.quote { padding: 2rem; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.quote p { font-family: var(--serif); font-size: 1.25rem; font-style: italic; margin: 0 0 1rem; }
.quote .stars { color: var(--gold); letter-spacing: .2em; margin-bottom: .6rem; }
.quote small { color: var(--muted); letter-spacing: .1em; text-transform: uppercase; font-size: .72rem; }

/* shop page */
.page-head { padding: 3.5rem 0 2rem; text-align: center; }
.page-head h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); }
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: center; margin-bottom: 2rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { padding: .5em 1.1em; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; font-size: .85rem; transition: .2s; }
.chip:hover { border-color: var(--gold-soft); }
.chip.active { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.toolbar .right { display: flex; gap: .6rem; }
.toolbar input[type=search] { width: 220px; }
.toolbar select { width: auto; }
.empty { text-align: center; padding: 4rem 1rem; color: var(--muted); }

/* product detail */
.pdp { display: grid; grid-template-columns: 1.05fr 1fr; gap: 4rem; padding: 3rem 0 5rem; }
.gallery .main { aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; background: var(--sand); }
.gallery .main img, .gallery .main .ph { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: .6rem; margin-top: .8rem; flex-wrap: wrap; }
.thumbs button { width: 74px; height: 74px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: var(--sand); }
.thumbs button.active { border-color: var(--gold); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp h1 { font-size: clamp(2.1rem, 3.6vw, 3rem); }
.pdp .price { font-size: 1.5rem; }
.pdp .desc { color: var(--muted); font-size: 1.04rem; margin: 1.4rem 0; }
.pdp ul.details { list-style: none; padding: 0; margin: 0 0 1.8rem; border-top: 1px solid var(--line); }
.pdp ul.details li { padding: .7em 0; border-bottom: 1px solid var(--line); display: flex; gap: .7em; }
.pdp ul.details li::before { content: '✦'; color: var(--gold); font-size: .8em; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.qty button { width: 42px; height: 46px; border: 0; background: none; cursor: pointer; font-size: 1.1rem; }
.qty input { width: 44px; border: 0; text-align: center; background: none; padding: 0; box-shadow: none !important; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.buy-row { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; margin-bottom: 1.4rem; }
.buy-row .btn { flex: 1; min-width: 180px; height: 48px; }
.meta-line { display: flex; gap: .5rem; align-items: center; font-size: .9rem; color: var(--sage-deep); margin: .4rem 0; }
.meta-line svg { width: 18px; height: 18px; }
.crumbs { font-size: .8rem; color: var(--muted); letter-spacing: .06em; padding-top: 1.6rem; }
.crumbs a:hover { color: var(--gold-deep); }

/* drawer */
.overlay { position: fixed; inset: 0; background: rgba(51, 41, 31, .38); opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 80; }
.overlay.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--paper); z-index: 90; transform: translateX(100%); transition: transform .35s cubic-bezier(.2, .8, .2, 1); display: flex; flex-direction: column; visibility: hidden; transition: transform .35s cubic-bezier(.2, .8, .2, 1), visibility 0s .35s; }
.drawer.open { transform: none; visibility: visible; transition: transform .35s cubic-bezier(.2, .8, .2, 1); box-shadow: -20px 0 40px -20px rgba(0, 0, 0, .2); }
.drawer header { display: flex; justify-content: space-between; align-items: center; padding: 1.2rem 1.4rem; border-bottom: 1px solid var(--line); }
.drawer header h3 { margin: 0; font-size: 1.6rem; }
.drawer .body { flex: 1; overflow-y: auto; padding: 1rem 1.4rem; }
.drawer footer { padding: 1.2rem 1.4rem; border-top: 1px solid var(--line); }
.line-item { display: grid; grid-template-columns: 72px 1fr auto; gap: .9rem; padding: .9rem 0; border-bottom: 1px solid var(--line); align-items: center; }
.line-item .thumb { width: 72px; height: 86px; border-radius: 10px; overflow: hidden; background: var(--sand); }
.line-item .thumb img, .line-item .thumb .ph { width: 100%; height: 100%; object-fit: cover; }
.line-item .thumb .ph::after { inset: 5px; }
.line-item h4 { font-size: 1.1rem; margin: 0 0 .2rem; }
.line-item .qty button { width: 30px; height: 32px; font-size: .95rem; }
.line-item .qty input { width: 30px; font-size: .9rem; }
.line-item .remove { font-size: .75rem; color: var(--muted); background: none; border: 0; cursor: pointer; text-decoration: underline; padding: 0; margin-top: .3rem; }
.totals .row { display: flex; justify-content: space-between; margin: .3rem 0; }
.totals .row.grand { font-size: 1.15rem; font-weight: 500; border-top: 1px solid var(--line); padding-top: .6rem; margin-top: .6rem; }
.ship-progress { font-size: .85rem; color: var(--sage-deep); margin-bottom: .8rem; }
.ship-progress .bar { height: 4px; background: var(--sand); border-radius: 2px; margin-top: .4rem; overflow: hidden; }
.ship-progress .bar i { display: block; height: 100%; background: var(--sage); transition: width .4s; }

/* checkout */
.checkout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; padding: 2rem 0 5rem; align-items: start; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; }
.panel h3 { font-size: 1.6rem; }
.panel + .panel { margin-top: 1.4rem; }
.pay-opt { display: flex; gap: .8rem; align-items: flex-start; padding: 1rem; border: 1px solid var(--line); border-radius: 10px; margin-bottom: .6rem; cursor: pointer; text-transform: none; letter-spacing: 0; color: var(--ink); font-size: 1rem; }
.pay-opt:has(input:checked) { border-color: var(--gold); background: #fbf6ee; }
.pay-opt input { accent-color: var(--gold); margin-top: .3em; }
.pay-opt small { display: block; color: var(--muted); }
.summary { position: sticky; top: 100px; }
.error { background: #f8e6e0; color: var(--danger); padding: .8rem 1rem; border-radius: 10px; margin-bottom: 1rem; font-size: .92rem; }
.success-box { text-align: center; max-width: 640px; margin: 3rem auto 5rem; }
.success-box .tick { width: 84px; height: 84px; margin: 0 auto 1.2rem; border-radius: 50%; display: grid; place-items: center; background: var(--sage); color: #fff; }
.success-box .tick svg { width: 40px; height: 40px; }

/* order timeline */
.timeline { display: flex; justify-content: space-between; position: relative; margin: 2rem 0; }
.timeline::before { content: ''; position: absolute; top: 15px; left: 8%; right: 8%; height: 2px; background: var(--line); }
.timeline .t { position: relative; text-align: center; flex: 1; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.timeline .t i { display: block; width: 32px; height: 32px; margin: 0 auto .5rem; border-radius: 50%; background: var(--paper); border: 2px solid var(--line); position: relative; z-index: 1; }
.timeline .t.done i { background: var(--sage); border-color: var(--sage); }
.timeline .t.done { color: var(--ink); }
.timeline .t.current i { box-shadow: 0 0 0 5px rgba(127, 143, 108, .22); }

/* footer */
.site-footer { background: #2f271e; color: #d9cfbf; padding: 4rem 0 2rem; margin-top: 2rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 2rem; }
.site-footer h4 { color: #f2e6cf; font-size: 1.25rem; }
.site-footer a { display: block; padding: .2em 0; color: #c9bda9; }
.site-footer a:hover { color: var(--gold-soft); }
.site-footer .brand .name { color: var(--gold-soft); }
.site-footer .brand .sub { color: #b5a891; }
.site-footer .legal { border-top: 1px solid #4a3f33; margin-top: 3rem; padding-top: 1.4rem; font-size: .8rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; color: #9d907b; }
.newsletter { display: flex; gap: .5rem; margin-top: .8rem; }
.newsletter input { background: #3b3127; border-color: #574a3c; color: #f2e6cf; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: var(--cream); padding: .8rem 1.4rem; border-radius: 999px; font-size: .9rem; opacity: 0; transition: .3s; z-index: 200; pointer-events: none; max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: var(--danger); }

.whatsapp-fab { position: fixed; right: 20px; bottom: 20px; width: 56px; height: 56px; border-radius: 50%; background: #3f9b5b; color: #fff; display: grid; place-items: center; box-shadow: var(--shadow); z-index: 60; }
.whatsapp-fab svg { width: 28px; height: 28px; }

.fade-in { animation: fadeIn .5s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } }

/* responsive */
@media (max-width: 1024px) {
  .products { grid-template-columns: repeat(3, 1fr); }
  .cats { grid-template-columns: repeat(3, 1fr); }
  .steps, .promises { grid-template-columns: repeat(2, 1fr); }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .menu-toggle { display: grid; }
  .nav { position: fixed; top: 0; left: 0; bottom: 0; width: min(300px, 85%); background: var(--paper); flex-direction: column; gap: 0; padding: 5rem 1.6rem 2rem; transform: translateX(-100%); transition: transform .35s, visibility 0s .35s; visibility: hidden; z-index: 95; }
  .nav.open { transform: none; visibility: visible; transition: transform .35s; box-shadow: 20px 0 40px -20px rgba(0,0,0,.2); }
  .nav a { padding: 1em 0; border-bottom: 1px solid var(--line); }
  .hero .inner, .story .inner, .pdp, .checkout { grid-template-columns: 1fr; gap: 2rem; }
  .hero .inner { padding: 3rem 0; }
  .hero-art { max-width: 300px; order: -1; }
  .products { grid-template-columns: repeat(2, 1fr); gap: 1.6rem 1rem; }
  .testimonials { grid-template-columns: 1fr; }
  .summary { position: static; }
  .card .quick { display: none; }
  .brand .sub { display: none; }
  .brand .name { font-size: 1.35rem; }
  .brand img { width: 44px; height: 44px; }
  .toolbar .right { width: 100%; }
  .toolbar input[type=search] { flex: 1; width: auto; min-width: 0; }
  .toolbar select { max-width: 48%; }
  .admin td:nth-child(2) { min-width: 160px; }
}
@media (max-width: 520px) {
  .cats { grid-template-columns: repeat(2, 1fr); }
  .steps, .promises, .site-footer .cols, .grid-2 { grid-template-columns: 1fr; }
  section.block { padding: 3.5rem 0; }
  .hero-stats { gap: 1.4rem; }
  .card h3 { font-size: 1.1rem; }
  .timeline .t { font-size: .62rem; }
  .panel { padding: 1.3rem; }
}

/* ===================== ADMIN ===================== */
.admin-body { background: #f4efe6; }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login-card { width: min(400px, 100%); background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 2.4rem; text-align: center; box-shadow: var(--shadow); }
.login-card img { width: 120px; margin: 0 auto 1rem; border-radius: 50%; }
.login-card form { text-align: left; margin-top: 1.4rem; }
.admin { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin aside { background: #2f271e; color: #d9cfbf; padding: 1.4rem 1rem; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; }
.admin aside .brand { padding: 0 .4rem 1.6rem; }
.admin aside .brand .name { color: var(--gold-soft); font-size: 1.3rem; }
.admin aside .brand .sub { color: #a89c86; display: block; }
.admin aside nav { display: flex; flex-direction: column; gap: .2rem; flex: 1; }
.admin aside nav button { text-align: left; padding: .75em 1em; border-radius: 10px; border: 0; background: none; color: #d9cfbf; cursor: pointer; display: flex; gap: .7em; align-items: center; font-size: .95rem; }
.admin aside nav button svg { width: 18px; height: 18px; }
.admin aside nav button:hover { background: #3b3127; }
.admin aside nav button.active { background: var(--gold); color: #fff; }
.admin aside .foot a, .admin aside .foot button { display: block; color: #a89c86; font-size: .85rem; padding: .4em 1em; background: none; border: 0; cursor: pointer; }
.admin main { padding: 2rem 2.4rem 4rem; min-width: 0; }
.admin main > header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.admin main > header h1 { font-size: 2.2rem; margin: 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.6rem; }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.4rem; }
.stat small { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.stat b { display: block; font-family: var(--serif); font-size: 2.1rem; font-weight: 500; color: var(--gold-deep); line-height: 1.2; }
.table-wrap { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th { text-align: left; font-weight: 500; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: .9rem 1rem; border-bottom: 1px solid var(--line); background: #fbf8f2; white-space: nowrap; }
td { padding: .8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tr.clickable { cursor: pointer; }
tr.clickable:hover td { background: #fbf6ee; }
td .mini { width: 52px; height: 60px; border-radius: 8px; overflow: hidden; background: var(--sand); }
td .mini img, td .mini .ph { width: 100%; height: 100%; object-fit: cover; }
td .mini .ph::after { inset: 4px; }
td input.inline { width: 100px; padding: .45em .6em; }
.pill { display: inline-block; padding: .25em .75em; border-radius: 999px; font-size: .74rem; letter-spacing: .06em; text-transform: capitalize; background: var(--sand); white-space: nowrap; }
.pill.placed { background: #f3e7cf; color: #8a6230; }
.pill.confirmed { background: #e3e9f3; color: #3c5378; }
.pill.crafting { background: #efe3f0; color: #6d3f72; }
.pill.shipped { background: #dfecef; color: #2f6670; }
.pill.delivered { background: #e2ecdc; color: #3f6b39; }
.pill.cancelled { background: #f4dfda; color: var(--danger); }
.pill.off { background: #eee; color: #888; }
.switch { position: relative; width: 40px; height: 22px; display: inline-block; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; border-radius: 11px; background: #d6cbb9; cursor: pointer; transition: .2s; }
.switch span::before { content: ''; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; border-radius: 50%; background: #fff; transition: .2s; }
.switch input:checked + span { background: var(--sage); }
.switch input:checked + span::before { transform: translateX(18px); }
.modal-bg { position: fixed; inset: 0; background: rgba(51, 41, 31, .45); z-index: 100; display: grid; place-items: center; padding: 16px; overflow-y: auto; }
.modal { width: min(760px, 100%); background: var(--paper); border-radius: 18px; box-shadow: var(--shadow); max-height: calc(100vh - 32px); display: flex; flex-direction: column; }
.modal > header { display: flex; justify-content: space-between; align-items: center; padding: 1.2rem 1.6rem; border-bottom: 1px solid var(--line); }
.modal > header h2 { margin: 0; font-size: 1.7rem; }
.modal .content { padding: 1.4rem 1.6rem; overflow-y: auto; }
.modal > footer { padding: 1rem 1.6rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: .6rem; flex-wrap: wrap; }
.img-grid { display: flex; flex-wrap: wrap; gap: .7rem; }
.img-grid .im { position: relative; width: 96px; height: 110px; border-radius: 10px; overflow: hidden; background: var(--sand); }
.img-grid .im img { width: 100%; height: 100%; object-fit: cover; }
.img-grid .im .x { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .55); color: #fff; cursor: pointer; line-height: 1; }
.img-grid .im .first { position: absolute; left: 4px; bottom: 4px; font-size: .62rem; background: var(--gold); color: #fff; padding: .1em .5em; border-radius: 6px; }
.img-grid .im .mv { position: absolute; left: 4px; top: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(255,255,255,.85); cursor: pointer; font-size: .8rem; }
.img-grid .add { width: 96px; height: 110px; border-radius: 10px; border: 1.5px dashed var(--gold-soft); display: grid; place-items: center; cursor: pointer; color: var(--gold-deep); font-size: .8rem; text-align: center; background: #fbf6ee; text-transform: none; letter-spacing: 0; margin: 0; }
.order-items .li { display: flex; justify-content: space-between; padding: .5rem 0; border-bottom: 1px dashed var(--line); }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: .3rem 1rem; font-size: .94rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.admin-mobile-bar { display: none; }
@media (max-width: 900px) {
  .admin { grid-template-columns: 1fr; }
  .admin aside { position: static; height: auto; padding: .8rem 16px; }
  .admin aside .brand { padding-bottom: .8rem; }
  .admin aside nav { flex-direction: row; overflow-x: auto; }
  .admin aside nav button { white-space: nowrap; }
  .admin aside .foot { display: flex; }
  .admin main { padding: 1.4rem 16px 3rem; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .kv { grid-template-columns: 1fr; }
  .kv dt { margin-top: .4rem; }
}
