:root {
  --paper: #f6f3ec;
  --paper-2: #ebe7dc;
  --ink: #1d211e;
  --ink-soft: #5d645e;
  --line: #d8d5c8;
  --accent: #2f7a55;       /* emerald — the green eyes */
  --accent-deep: #1f3b2d;
  --accent-soft: #e2eee6;
  --accent-ink: #fff;
  --ok: #2f6b4a;
  --radius: 10px;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.55 var(--sans);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; text-decoration: none; letter-spacing: -0.01em; }
.site-nav { display: flex; gap: 22px; font-size: 0.95rem; }
.site-nav a { text-decoration: none; color: var(--ink-soft); }
.site-nav a:hover { color: var(--ink); }

/* ---------- hero ---------- */
.hero { padding-top: 72px; padding-bottom: 56px; }
.hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(2.4rem, 5.4vw, 4rem); line-height: 1.04; margin: 0 0 16px; letter-spacing: -0.02em; max-width: 16ch; }
.hero p { color: var(--ink-soft); font-size: 1.1rem; margin: 0; max-width: 46ch; }

/* ---------- carousel ---------- */
.carousel { position: relative; overflow: hidden; background: #16201a; height: clamp(380px, 62vh, 640px); }
.car-track { display: flex; height: 100%; transition: transform .7s cubic-bezier(.65, 0, .35, 1); }
.car-slide { position: relative; flex: 0 0 100%; height: 100%; overflow: hidden; cursor: pointer; border: 0; padding: 0; background: none; color: #fff; text-align: left; }
/* Blurred copy fills the frame so the artwork itself is never cropped. */
.car-slide .bg { position: absolute; inset: -40px; background-size: cover; background-position: center; filter: blur(32px) brightness(.55) saturate(1.1); }
.car-slide .art { position: absolute; left: 42%; top: 32px; width: calc(58% - 80px); height: calc(100% - 64px); max-width: none; object-fit: contain; filter: drop-shadow(0 18px 40px rgba(0,0,0,.45)); }
.car-caption { position: absolute; left: max(24px, calc((100vw - 1180px) / 2 + 24px)); top: 50%; transform: translateY(-50%); max-width: min(38%, 440px); }
.car-caption .kicker { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; opacity: .8; margin-bottom: 10px; }
.car-caption h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.9rem, 3.6vw, 3.1rem); line-height: 1.05; margin: 0 0 12px; letter-spacing: -0.015em; }
.car-caption .facts { opacity: .85; margin: 0 0 22px; font-size: .98rem; }
.car-caption .cta { display: inline-flex; align-items: center; gap: 14px; }
.car-caption .cta .btn { background: #fff; color: var(--ink); border-color: #fff; pointer-events: none; }
.car-caption .cta .price { font-size: 1.15rem; }
.car-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(0,0,0,.25); color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; display: grid; place-items: center; padding-bottom: 4px; backdrop-filter: blur(6px); }
.car-arrow:hover { background: rgba(0,0,0,.45); }
.car-arrow.prev { left: 14px; }
.car-arrow.next { right: 14px; }
.car-dots { position: absolute; bottom: 18px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.car-dots button { width: 9px; height: 9px; border-radius: 999px; border: 0; padding: 0; background: rgba(255,255,255,.45); cursor: pointer; transition: width .3s, background .3s; }
.car-dots button[aria-selected="true"] { width: 26px; background: #fff; }
.carousel.single .car-arrow, .carousel.single .car-dots { display: none; }
.car-slide:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }

@media (max-width: 760px) {
  .carousel { height: 560px; }
  .car-slide .art { left: 20px; top: 20px; width: calc(100% - 40px); height: 56%; }
  .car-caption { left: 20px; right: 20px; top: auto; bottom: 44px; transform: none; max-width: none; }
  .car-caption h2 { font-size: 1.7rem; margin-bottom: 6px; }
  .car-caption .facts { margin-bottom: 14px; font-size: .9rem; }
  .car-arrow { top: 32%; width: 38px; height: 38px; font-size: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) { .car-track { transition: none; } }

/* ---------- filters ---------- */
.filters { display: flex; gap: 8px; margin: 8px 0 28px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: transparent; padding: 7px 16px; border-radius: 999px; cursor: pointer; font-size: 0.92rem; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- gallery ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 34px 26px; }
.card { cursor: pointer; background: none; border: 0; padding: 0; text-align: left; }
.card .frame { background: var(--paper-2); aspect-ratio: 4 / 5; border-radius: 4px; overflow: hidden; position: relative; }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover img, .card:focus-visible img { transform: scale(1.03); }
.card .meta { padding-top: 12px; display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.card h3 { font-family: var(--serif); font-weight: 500; font-size: 1.12rem; margin: 0; }
.card .sub { color: var(--ink-soft); font-size: 0.88rem; margin-top: 2px; }
.price { font-variant-numeric: tabular-nums; white-space: nowrap; }
.badge { position: absolute; top: 10px; left: 10px; background: var(--ink); color: var(--paper); font-size: 0.72rem; letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px; border-radius: 3px; }
.placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: var(--ink-soft); font-size: .9rem; }
.empty { color: var(--ink-soft); padding: 40px 0; }

/* ---------- item dialog ---------- */
dialog.item-dialog { border: 0; padding: 0; border-radius: var(--radius); max-width: 1000px; width: calc(100% - 32px); background: var(--paper); color: var(--ink); }
dialog::backdrop { background: rgba(30, 25, 20, .55); }
.item-layout { display: grid; grid-template-columns: 1.25fr 1fr; }
.item-media { background: var(--paper-2); padding: 18px; }
.item-media .main { aspect-ratio: 1; display: grid; place-items: center; }
.item-media .main img { max-height: 100%; object-fit: contain; }
.thumbs { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; }
.thumbs button { border: 2px solid transparent; padding: 0; width: 64px; height: 64px; flex: none; border-radius: 4px; overflow: hidden; cursor: pointer; background: none; }
.thumbs button[aria-current="true"] { border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.item-info { padding: 30px 30px 26px; display: flex; flex-direction: column; gap: 14px; }
.item-info h2 { font-family: var(--serif); font-weight: 500; font-size: 1.9rem; margin: 0; line-height: 1.1; }
.item-info .facts { color: var(--ink-soft); font-size: .93rem; margin: 0; }
.item-info .desc { white-space: pre-line; margin: 0; }
.item-info .big-price { font-size: 1.4rem; }
.close-x { position: absolute; top: 10px; right: 12px; background: var(--paper); border: 1px solid var(--line); width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 1.2rem; line-height: 1; }

/* ---------- buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); padding: 11px 20px; border-radius: 6px; cursor: pointer; text-decoration: none; font-weight: 500; }
.btn:hover { background: #000; }
.btn.accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.accent:hover { filter: brightness(.95); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.small { padding: 6px 12px; font-size: .88rem; }
.btn.danger { background: transparent; color: #a3302a; border-color: #d9a8a4; }
.btn[disabled] { opacity: .55; cursor: wait; }

.section { padding: 72px 0; }
.section h2.title { font-family: var(--serif); font-weight: 500; font-size: 2.1rem; margin: 0 0 8px; }
.section .lead { color: var(--ink-soft); margin: 0 0 30px; max-width: 56ch; }

.commission { background: var(--paper-2); border-top: 1px solid var(--line); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; max-width: 760px; }
.form .full { grid-column: 1 / -1; }
.field label { display: block; font-size: .87rem; font-weight: 500; margin-bottom: 6px; }
.field .hint { color: var(--ink-soft); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: #fffdf9;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.dropzone { border: 1.5px dashed var(--line); border-radius: var(--radius); padding: 22px; text-align: center; background: #fffdf9; cursor: pointer; color: var(--ink-soft); }
.dropzone.drag { border-color: var(--accent); background: #fff6f1; }
.dropzone input { display: none; }
.previews { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.previews figure { margin: 0; width: 92px; position: relative; }
.previews img { width: 92px; height: 92px; object-fit: cover; border-radius: 6px; }
.previews figcaption { font-size: .72rem; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.previews .rm { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0,0,0,.65); color: #fff; cursor: pointer; font-size: .8rem; line-height: 1; }

.notice { padding: 12px 14px; border-radius: 6px; font-size: .93rem; }
.notice.ok { background: #e4efe6; color: var(--ok); }
.notice.err { background: #f6e1de; color: #8a2a22; }

.site-footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--ink-soft); font-size: .88rem; }

@media (max-width: 760px) {
  .item-layout { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .site-nav { gap: 14px; font-size: .88rem; }
  .hero { padding-top: 40px; padding-bottom: 24px; }
  .brand { font-size: 1.2rem; white-space: nowrap; }
  .site-header .wrap { padding: 0 16px; }
}

/* ---------- admin ---------- */
.admin-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 24px 0; }
.admin-tabs button { border: 0; background: none; padding: 10px 16px; cursor: pointer; border-bottom: 2px solid transparent; color: var(--ink-soft); }
.admin-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); font-weight: 500; }
.panel { background: #fffdf9; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.admin-grid { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 28px; align-items: start; }
.admin-grid .form { grid-template-columns: 1fr 1fr; }
.row-list { display: flex; flex-direction: column; gap: 12px; }
.row { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #fffdf9; }
.row img, .row .ph { width: 72px; height: 72px; object-fit: cover; border-radius: 5px; background: var(--paper-2); }
.row h4 { margin: 0; font-size: 1rem; }
.row .sub { color: var(--ink-soft); font-size: .85rem; }
.row .actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.row select { padding: 5px 8px; border: 1px solid var(--line); border-radius: 5px; background: #fff; font-size: .88rem; }
.existing-images { display: flex; flex-wrap: wrap; gap: 10px; }
.existing-images figure { margin: 0; position: relative; }
.existing-images img { width: 92px; height: 92px; object-fit: cover; border-radius: 6px; }
.req { padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: #fffdf9; display: grid; gap: 6px; }
.req header { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.req .details { white-space: pre-line; }
.req .ref { max-width: 220px; border-radius: 6px; margin-top: 6px; }
.pill { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; padding: 3px 8px; border-radius: 999px; background: var(--paper-2); }
.pill.new { background: var(--accent); color: #fff; }
.login { max-width: 380px; margin: 80px auto; }
@media (max-width: 480px) { .site-nav a[data-filter-link] { display: none; } }
@media (max-width: 900px) { .admin-grid { grid-template-columns: 1fr; } }

/* ---------- admin: shipping & orders ---------- */
.rates { border-collapse: collapse; width: 100%; max-width: 640px; }
.rates th, .rates td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); font-size: .93rem; }
.rates th { font-weight: 500; color: var(--ink-soft); }
.rates td input { width: 110px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 5px; background: #fff; }
.rates .money { position: relative; display: inline-block; }
.rates .money::before { content: "$"; position: absolute; left: 9px; top: 50%; transform: translateY(-50%); color: var(--ink-soft); }
.rates .money input { padding-left: 20px; }
.order { padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: #fffdf9; display: grid; grid-template-columns: 1fr auto; gap: 6px 18px; }
.order .totals { text-align: right; font-variant-numeric: tabular-nums; font-size: .92rem; }
.order .totals strong { font-size: 1.05rem; }
.order .warn { grid-column: 1 / -1; background: #fbeee0; color: #7a4512; padding: 8px 10px; border-radius: 6px; font-size: .9rem; }
.pill.paid { background: var(--ok); color: #fff; }
.pill.processing { background: #c9a227; color: #fff; }

/* ---------- storefront checkout ---------- */
.checkout { padding: 28px 30px; display: grid; gap: 16px; }
.checkout h2 { font-family: var(--serif); font-weight: 500; font-size: 1.7rem; margin: 0; }
.checkout .summary { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; }
.checkout .summary img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; }
.checkout .form { max-width: none; }
.totals-box { background: var(--paper-2); border-radius: 8px; padding: 14px 16px; display: grid; gap: 6px; font-variant-numeric: tabular-nums; }
.totals-box div { display: flex; justify-content: space-between; gap: 12px; }
.totals-box .muted { color: var(--ink-soft); font-size: .9rem; }
.totals-box .total { border-top: 1px solid var(--line); padding-top: 8px; font-weight: 500; }
.secure { color: var(--ink-soft); font-size: .85rem; }
.hold-note { color: var(--ink-soft); font-size: .93rem; }

/* ---------- AI features ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.smart-search { display: flex; gap: 10px; margin: 6px 0 14px; max-width: 760px; }
.smart-search input { flex: 1; padding: 12px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fffdf9; font-size: 1rem; }
.smart-search input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.smart-search .btn { border-radius: 999px; }
.search-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 22px; color: var(--ink-soft); }
.search-head .tag { background: var(--paper-2); border-radius: 999px; padding: 3px 10px; font-size: .85rem; color: var(--ink); }
.search-head button { background: none; border: 0; text-decoration: underline; cursor: pointer; color: var(--ink); padding: 0 4px; }
.ai-btn { margin-top: 8px; }
.helper-card { margin-top: 10px; background: #fffdf9; border: 1px solid var(--line); border-radius: 8px; padding: 14px; display: grid; gap: 8px; }
.helper-card .brief { white-space: pre-line; }
.helper-card ul { margin: 0; padding-left: 18px; color: var(--ink-soft); }

.chat-fab { position: fixed; right: 20px; bottom: 20px; z-index: 30; border: 0; border-radius: 999px; padding: 13px 20px; background: var(--ink); color: var(--paper); font-weight: 500; cursor: pointer; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.chat-fab:hover { background: #000; }
.chat-panel { position: fixed; right: 20px; bottom: 20px; z-index: 31; width: min(380px, calc(100vw - 24px)); height: min(560px, calc(100vh - 40px)); background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 20px 50px rgba(0,0,0,.22); display: flex; flex-direction: column; overflow: hidden; }
.chat-panel header { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.chat-panel header .close-x { position: static; width: 30px; height: 30px; }
.chat-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 88%; padding: 9px 12px; border-radius: 12px; white-space: pre-line; font-size: .94rem; line-height: 1.45; }
.msg.user { align-self: flex-end; background: var(--ink); color: var(--paper); border-bottom-right-radius: 4px; }
.msg.bot { align-self: flex-start; background: #fffdf9; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg.bot.typing { color: var(--ink-soft); font-style: italic; }
.msg .item-ref { border: 0; background: var(--paper-2); border-radius: 4px; padding: 0 5px; cursor: pointer; font: inherit; text-decoration: underline; }
.msg-cards { display: flex; gap: 8px; flex-wrap: wrap; align-self: flex-start; }
.msg-card { display: grid; grid-template-columns: 44px auto; gap: 8px; align-items: center; border: 1px solid var(--line); background: #fffdf9; border-radius: 8px; padding: 6px 10px 6px 6px; cursor: pointer; font-size: .85rem; text-align: left; }
.msg-card img, .msg-card .ph { width: 44px; height: 44px; object-fit: cover; border-radius: 5px; background: var(--paper-2); }
.chat-suggest { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 8px; }
.chat-suggest button { border: 1px solid var(--line); background: #fffdf9; border-radius: 999px; padding: 5px 10px; font-size: .82rem; cursor: pointer; }
.chat-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fffdf9; }
.chat-note { margin: 0; padding: 0 12px 10px; font-size: .74rem; color: var(--ink-soft); }
.ai-status { margin: -6px 0 12px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
@media (max-width: 760px) {
  .smart-search { flex-direction: column; }
  .chat-panel { right: 12px; bottom: 12px; }
  .chat-fab { right: 12px; bottom: 12px; }
}


/* ---------- The Green Eyed Artist branding ---------- */
/* Logo: round eye badge + two-tone wordmark */
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--accent-deep); text-decoration: none; }
.brand-badge { width: 52px; height: 52px; flex: none; filter: drop-shadow(0 3px 8px rgba(31, 59, 45, .28)); transition: transform .25s ease; }
.brand:hover .brand-badge { transform: rotate(-8deg) scale(1.05); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-the { font-family: var(--sans); font-size: .68rem; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 3px 2px; }
.brand-name { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; letter-spacing: -0.015em; color: var(--accent-deep); white-space: nowrap; }
.brand-name em { font-style: italic; font-weight: 500; color: var(--accent); }
.site-header .wrap { height: 80px; }
.hero .eyebrow, .eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; color: var(--accent); font-weight: 500; margin: 0 0 14px; }
.hero h1 em { font-style: italic; color: var(--accent); font-weight: 400; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.section-head { margin: 8px 0 18px; }
.section-head .title { font-family: var(--serif); font-weight: 500; font-size: clamp(1.8rem, 3.2vw, 2.4rem); margin: 0 0 6px; }
.section-head .lead { color: var(--ink-soft); margin: 0; max-width: 60ch; }
#shop { padding-top: 24px; border-top: 1px solid var(--line); }
.commission { background: linear-gradient(180deg, var(--accent-soft), var(--paper-2)); }
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 0; margin: 0 0 34px; max-width: 900px; }
.steps li { counter-increment: step; background: #fffdf8; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 16px 16px 58px; position: relative; display: grid; gap: 2px; }
.steps li::before { content: counter(step); position: absolute; left: 16px; top: 16px; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 500; font-size: .9rem; }
.steps span { color: var(--ink-soft); font-size: .92rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 18px; }
.footer-links a { color: var(--ink-soft); }
.chat-fab { background: var(--accent-deep); }
.chat-fab:hover { background: var(--accent); }
.msg.user { background: var(--accent-deep); }
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; }
  .brand-badge { width: 42px; height: 42px; }
  .brand-name { font-size: 1.3rem; }
  .site-header .wrap { height: 68px; }
  .hero h1 { font-size: 2.3rem; }
}
@media (max-width: 420px) {
  .brand { gap: 9px; }
  .brand-badge { width: 38px; height: 38px; }
  .brand-name { font-size: 1.12rem; }
  .brand-the { font-size: .6rem; letter-spacing: .26em; }
}
