:root {
  --bg: #f7f2e8;          /* ivory */
  --paper: #fbf8f2;
  --fg: #2b2420;          /* espresso */
  --muted: #8a7e70;
  --line: #e2d8c5;
  --soft: #efe6d4;        /* cream, like the logo circle */
  --blush: #ead6cf;
  --danger: #9b2c2c;
  --ok: #4f6b3a;
  --serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --font: "Jost", "Helvetica Neue", Arial, sans-serif;
  --gutter: 16px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--fg); }
body { font-family: var(--font); font-size: 12px; font-weight: 400; letter-spacing: .04em; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
.upper { text-transform: uppercase; }
.muted { color: var(--muted); }
.hidden { display: none !important; }

/* ---------- Header ---------- */
.announce { background: var(--soft); color: var(--fg); text-align: center; padding: 6px var(--gutter); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(247,242,232,.95); backdrop-filter: blur(6px); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 14px var(--gutter); }
.site-header .left, .site-header .right { display: flex; gap: 18px; align-items: center; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.site-header .right { justify-content: flex-end; }
.logo { font-family: var(--serif); font-size: 34px; font-weight: 400; letter-spacing: .01em; text-transform: lowercase; white-space: nowrap; text-align: center; display: flex; justify-content: center; }
.logo img { height: 46px; width: auto; }
.menu-btn { background: none; border: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; width: 22px; }
.menu-btn span { height: 1px; background: var(--fg); display: block; }
.admin-link { border: 1px solid var(--fg); padding: 3px 8px; }
.drawer { position: fixed; inset: 0; z-index: 40; display: none; }
.drawer.open { display: block; }
.drawer .shade { position: absolute; inset: 0; background: rgba(0,0,0,.15); }
.drawer nav { position: absolute; top: 0; left: 0; bottom: 0; width: min(340px, 86vw); background: var(--bg); padding: 24px var(--gutter); display: flex; flex-direction: column; gap: 14px; text-transform: uppercase; letter-spacing: .12em; font-size: 12px; overflow-y: auto; }
.drawer nav .close { align-self: flex-start; background: none; border: 0; font-size: 22px; padding: 0; margin-bottom: 16px; }
.drawer nav a.active { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Product grid ---------- */
main { min-height: 60vh; }
.page-title { padding: 36px var(--gutter) 16px; font-family: var(--serif); font-size: 26px; font-weight: 400; font-style: italic; letter-spacing: .01em; }
.filters { display: flex; gap: 16px; flex-wrap: wrap; padding: 0 var(--gutter) 20px; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.filters a { color: var(--muted); }
.filters a.active { color: var(--fg); text-decoration: underline; text-underline-offset: 4px; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 4px; padding: 0 4px 60px; }
@media (min-width: 760px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.card .ph { aspect-ratio: 2 / 3; background: var(--soft); overflow: hidden; position: relative; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s; }
.card .ph img.alt { position: absolute; inset: 0; opacity: 0; }
@media (hover: hover) { .card:hover .ph img.alt { opacity: 1; } }
.card .meta { padding: 10px 6px 0; display: flex; flex-direction: column; gap: 2px; text-align: center; }
.card .meta .nm { font-family: var(--serif); font-size: 17px; line-height: 1.2; }
.card .meta .price { font-size: 11px; color: var(--muted); }
.card .tag { position: absolute; left: 8px; top: 8px; background: var(--bg); padding: 2px 6px; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.price s { color: var(--muted); margin-right: 6px; }
.empty { padding: 80px var(--gutter); text-align: center; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }

/* ---------- Product page ---------- */
.pdp { display: grid; grid-template-columns: 1fr; }
@media (min-width: 900px) { .pdp { grid-template-columns: 1.4fr 1fr; } }
.pdp .gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
.pdp .gallery img { width: 100%; flex: 0 0 100%; aspect-ratio: 2 / 3; object-fit: cover; scroll-snap-align: start; background: var(--soft); }
@media (min-width: 900px) {
  .pdp .gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; overflow: visible; }
  .pdp .gallery img { flex: none; }
  .pdp .gallery img:first-child:nth-last-child(odd) { grid-column: span 2; }
}
.pdp .info { padding: 24px var(--gutter) 60px; }
@media (min-width: 900px) { .pdp .info { position: sticky; top: 70px; align-self: start; padding: 40px 48px; max-width: 520px; } }
.pdp h1 { font-family: var(--serif); font-size: 30px; font-weight: 400; line-height: 1.15; letter-spacing: .01em; margin: 0 0 8px; }
.pdp .desc { white-space: pre-line; margin: 24px 0; font-family: var(--serif); font-size: 17px; line-height: 1.55; }
.opt-label { text-transform: uppercase; font-size: 11px; letter-spacing: .1em; margin: 18px 0 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line); background: var(--paper); padding: 8px 12px; min-width: 44px; text-transform: uppercase; font-size: 11px; }
.chip.on { border-color: var(--fg); }
.chip:disabled { color: #bbb; text-decoration: line-through; }

/* ---------- Buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 14px 16px; border: 1px solid var(--fg); background: var(--fg); color: var(--bg); text-transform: uppercase; letter-spacing: .14em; font-size: 11px; }
.btn.ghost { background: var(--bg); color: var(--fg); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.sm { width: auto; padding: 8px 12px; }
.stack { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
label.f { display: flex; flex-direction: column; gap: 4px; text-transform: uppercase; font-size: 10px; letter-spacing: .1em; color: var(--muted); }
.input, input.input, select.input, textarea.input { width: 100%; border: 0; border-bottom: 1px solid #c9bda8; padding: 8px 0; background: transparent; font-size: 13px; color: var(--fg); text-transform: none; letter-spacing: .01em; border-radius: 0; }
.input:focus { outline: none; border-bottom-color: var(--fg); }
textarea.input { resize: vertical; min-height: 70px; }
.msg { padding: 10px 12px; margin: 10px 0; font-size: 12px; }
.msg.err { background: #f4e1dc; color: var(--danger); }
.msg.ok { background: #e6ead9; color: var(--ok); }

/* ---------- Bag ---------- */
.bag { display: grid; grid-template-columns: 1fr; gap: 32px; padding: 0 var(--gutter) 60px; }
@media (min-width: 900px) { .bag { grid-template-columns: 1.3fr 1fr; gap: 64px; } }
.line { display: grid; grid-template-columns: 90px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line img { width: 90px; aspect-ratio: 2/3; object-fit: cover; background: var(--soft); }
.line .t { text-transform: uppercase; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); }
.qty button { background: none; border: 0; width: 28px; height: 28px; }
.qty span { min-width: 24px; text-align: center; }
.link-btn { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; font-size: 11px; text-transform: uppercase; color: var(--muted); }
.totals { border-top: 1px solid var(--fg); padding-top: 12px; margin-top: 12px; }
.totals div { display: flex; justify-content: space-between; padding: 3px 0; text-transform: uppercase; }
.totals .grand { font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 32px var(--gutter) 100px; display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; text-transform: uppercase; font-size: 11px; letter-spacing: .1em; color: var(--muted); }
.site-footer a { color: var(--fg); }

/* ---------- Floating WhatsApp + chat ---------- */
.floaters { position: fixed; right: 16px; bottom: 16px; z-index: 30; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.fab { width: 52px; height: 52px; border-radius: 50%; border: 0; display: grid; place-items: center; box-shadow: 0 2px 10px rgba(0,0,0,.18); }
.fab svg { width: 26px; height: 26px; }
.fab.wa { background: #25d366; color: #fff; }
.fab.chat { background: var(--fg); color: var(--bg); position: relative; }
.fab.wa { background: #25d366; }
.fab .dot { position: absolute; top: 2px; right: 2px; width: 12px; height: 12px; border-radius: 50%; background: #e0245e; border: 2px solid var(--bg); }
.chatbox { position: fixed; right: 16px; bottom: 84px; z-index: 35; width: min(360px, calc(100vw - 32px)); height: min(520px, calc(100vh - 120px)); background: var(--bg); border: 1px solid var(--fg); display: flex; flex-direction: column; }
.chatbox header { padding: 12px 14px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; text-transform: uppercase; letter-spacing: .12em; font-size: 11px; }
.chatbox header button { background: none; border: 0; font-size: 18px; padding: 0 4px; }
.chat-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: var(--soft); }
.bubble { max-width: 80%; padding: 8px 11px; font-size: 13px; letter-spacing: .01em; white-space: pre-wrap; word-wrap: break-word; }
.bubble.me { align-self: flex-end; background: var(--fg); color: var(--bg); }
.bubble.them { align-self: flex-start; background: var(--paper); border: 1px solid var(--line); }
.bubble time { display: block; font-size: 9px; opacity: .6; margin-top: 3px; }
.chat-form { display: flex; border-top: 1px solid var(--line); }
.chat-form textarea { flex: 1; border: 0; background: var(--paper); padding: 12px; resize: none; height: 46px; font-size: 13px; }
.chat-form textarea:focus { outline: none; }
.chat-form button { border: 0; background: var(--fg); color: var(--bg); padding: 0 16px; text-transform: uppercase; font-size: 11px; letter-spacing: .1em; }
.chat-start { padding: 18px 14px; display: flex; flex-direction: column; gap: 12px; }

/* ---------- Admin ---------- */
.admin-wrap { padding: 0 var(--gutter) 80px; max-width: 1200px; margin: 0 auto; }
.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow-x: auto; }
.tabs button { background: none; border: 0; padding: 12px 0; text-transform: uppercase; letter-spacing: .12em; font-size: 11px; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button.on { color: var(--fg); border-bottom-color: var(--fg); }
.badge { display: inline-block; min-width: 16px; padding: 0 4px; border-radius: 8px; background: #e0245e; color: #fff; font-size: 10px; text-align: center; margin-left: 4px; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { text-transform: uppercase; font-size: 10px; letter-spacing: .1em; color: var(--muted); font-weight: 400; }
.table img { width: 44px; aspect-ratio: 2/3; object-fit: cover; background: var(--soft); }
.table-scroll { overflow-x: auto; }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 760px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.thumb { position: relative; width: 96px; }
.thumb img { width: 96px; aspect-ratio: 2/3; object-fit: cover; background: var(--soft); }
.thumb .acts { display: flex; justify-content: space-between; margin-top: 2px; }
.thumb .acts button { background: none; border: 1px solid var(--line); font-size: 11px; padding: 1px 6px; }
.thumb .first { position: absolute; top: 4px; left: 4px; background: var(--fg); color: var(--bg); font-size: 9px; padding: 1px 5px; text-transform: uppercase; }
.dropzone { border: 1px dashed #b3a58d; padding: 22px; text-align: center; text-transform: uppercase; font-size: 11px; letter-spacing: .1em; cursor: pointer; }
.dropzone.over { background: var(--soft); }
.chat-admin { display: grid; grid-template-columns: 1fr; border: 1px solid var(--line); height: 70vh; }
@media (min-width: 760px) { .chat-admin { grid-template-columns: 300px 1fr; } }
.conv-list { overflow-y: auto; border-right: 1px solid var(--line); }
.conv { padding: 12px; border-bottom: 1px solid var(--line); cursor: pointer; }
.conv.on { background: var(--soft); }
.conv .n { display: flex; justify-content: space-between; text-transform: uppercase; }
.conv .l { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-pane { display: flex; flex-direction: column; min-height: 0; }
.chat-pane .head { padding: 12px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
@media (max-width: 759px) { .chat-admin.has-open .conv-list { display: none; } .chat-admin:not(.has-open) .chat-pane { display: none; } }
.status { display: inline-block; padding: 2px 6px; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; border: 1px solid currentColor; }
.status.paid { color: var(--ok); } .status.failed, .status.cancelled { color: var(--danger); } .status.pending { color: var(--muted); }
.login { max-width: 360px; margin: 60px auto; display: flex; flex-direction: column; gap: 18px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--fg); color: var(--bg); padding: 10px 16px; z-index: 60; text-transform: uppercase; font-size: 11px; letter-spacing: .1em; }

/* ---------- Small-screen fixes ---------- */
.site-header .right a { white-space: nowrap; }
.site-footer { padding-right: 84px; }
.pdp .gallery { align-items: flex-start; }
.pdp .gallery img { height: auto; }
@media (max-width: 600px) {
  .logo { font-size: 26px; letter-spacing: .01em; }
  .site-header { gap: 8px; }
}

/* ---------- Brand: einbyaisha ---------- */
.serif { font-family: var(--serif); }
.hero { position: relative; min-height: 78vh; display: grid; place-items: end center; text-align: center; color: var(--paper); background: var(--soft) center / cover no-repeat; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(43,36,32,0) 45%, rgba(43,36,32,.45) 100%); }
.hero .in { position: relative; z-index: 1; padding: 48px var(--gutter) 56px; }
.hero h1 { font-family: var(--serif); font-weight: 300; font-style: italic; font-size: clamp(44px, 9vw, 96px); line-height: 1; margin: 0 0 10px; letter-spacing: .01em; }
.hero p { margin: 0 0 22px; text-transform: uppercase; letter-spacing: .22em; font-size: 11px; }
.hero .btn { width: auto; background: var(--paper); color: var(--fg); border-color: var(--paper); padding: 13px 28px; }
.hero.plain { min-height: 46vh; color: var(--fg); place-items: center; }
.hero.plain::after { display: none; }
.hero.plain .btn { background: var(--fg); color: var(--paper); border-color: var(--fg); }
.custom-band { display: grid; grid-template-columns: 1fr; background: var(--soft); margin: 20px 0 0; }
@media (min-width: 900px) { .custom-band { grid-template-columns: 1fr 1fr; } }
.custom-band .ph { aspect-ratio: 4 / 5; background: var(--blush) center / cover no-repeat; }
.custom-band .tx { padding: 56px var(--gutter); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 18px; }
.custom-band h2 { font-family: var(--serif); font-weight: 300; font-style: italic; font-size: clamp(40px, 6vw, 64px); margin: 0; line-height: 1; }
.custom-band p { font-family: var(--serif); font-size: 19px; line-height: 1.5; max-width: 30ch; margin: 0; }
.custom-band .btn { width: auto; padding: 13px 28px; }
.ornament { text-align: center; font-family: var(--serif); font-size: 22px; color: var(--muted); padding: 8px 0; letter-spacing: .4em; }
.btn { background: var(--fg); color: var(--paper); border-color: var(--fg); }
.btn.ghost { background: transparent; color: var(--fg); }
.site-footer { flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.site-footer .tag { font-family: var(--serif); font-style: italic; font-size: 18px; text-transform: none; letter-spacing: .01em; color: var(--fg); }
.site-footer .flogo { font-family: var(--serif); font-size: 26px; letter-spacing: .01em; text-transform: lowercase; color: var(--fg); }
.icon-btn { display: inline-flex; align-items: center; gap: 6px; }
.icon-btn svg { width: 18px; height: 18px; }
@media (max-width: 600px) { .icon-btn .lbl { display: none; } .logo img { height: 36px; } }
.auth { max-width: 380px; margin: 20px auto 80px; padding: 0 var(--gutter); display: flex; flex-direction: column; gap: 18px; }
.auth .switch { display: flex; gap: 22px; justify-content: center; border-bottom: 1px solid var(--line); }
.auth .switch button { background: none; border: 0; padding: 10px 0; text-transform: uppercase; letter-spacing: .14em; font-size: 11px; color: var(--muted); border-bottom: 1px solid transparent; }
.auth .switch button.on { color: var(--fg); border-bottom-color: var(--fg); }
.account { max-width: 760px; margin: 0 auto 80px; padding: 0 var(--gutter); display: flex; flex-direction: column; gap: 28px; }
.account h2 { font-family: var(--serif); font-weight: 400; font-size: 22px; margin: 0 0 8px; }
.order-card { border-top: 1px solid var(--line); padding: 14px 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.status.shipped, .status.delivered { color: var(--ok); }
.card .tag { background: var(--paper); }
@media (max-width: 600px) { .site-header .admin-link { display: none !important; } }

.custom-band.solo { grid-template-columns: 1fr; }
.site-footer { padding-left: var(--gutter); padding-right: var(--gutter); }
