/* AETERNA — restrained interface refinement. Load after the bundled stylesheet. */
:root {
  --ae-ink: #171717;
  --ae-paper: #f7f7f4;
  --ae-line: #d8d8d3;
  --ae-muted: #64645f;
}

body { -webkit-font-smoothing: antialiased; }
header { border-bottom-color: var(--ae-line); }
.section h1, .admin h1 { text-wrap: balance; }
.section-head a, .statement a { text-underline-offset: 5px; }
.image-wrap { isolation: isolate; }
.product-card .image-wrap img { transition: transform .45s cubic-bezier(.2,.65,.2,1); }
.card-meta h3 { line-height: 1.45; }
.category-list a { transition: background .2s ease, transform .2s ease; }
.category-list a:hover { background: #deded8; transform: translateY(-2px); }
.button { transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease; }
.button:hover { opacity: 1; transform: translateY(-1px); }
.button.black:hover { background: #343434; }
.button.light:hover { background: #e6e6e1; }
.button:active { transform: translateY(0); }
.button:focus-visible, .admin-menu button:focus-visible,
.list-row:focus-visible, .quantity button:focus-visible {
  outline: 2px solid #303030;
  outline-offset: 3px;
}

/* Clearer purchase forms and order summaries. */
label { line-height: 1.5; }
input:not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea {
  min-height: 48px;
  border-color: #bdbdb8;
  transition: border-color .2s ease, box-shadow .2s ease;
}
input:not([type=checkbox]):not([type=radio]):not([type=file]):hover,
select:hover, textarea:hover { border-color: #797974; }
input:focus, select:focus, textarea:focus {
  border-color: var(--ae-ink);
  outline: 0;
  box-shadow: 0 0 0 2px rgba(23,23,23,.16);
}
.radio { background: #fff; transition: border-color .2s ease; }
.radio:focus-within { border-color: var(--ae-ink); }
.summary { background: #eeeee9; border: 1px solid var(--ae-line); }
.summary p { line-height: 1.5; }
.cart-row { align-items: flex-start; }
.quantity button { min-width: 36px; min-height: 36px; }
.success, .error { line-height: 1.55; }

/* Admin shell, navigation, cards, product and order lists. */
.admin { background: #f9f9f7; }
.admin-menu { background: #171717; gap: 5px; }
.admin-menu b { letter-spacing: .13em; text-transform: uppercase; }
.admin-menu button {
  min-height: 44px;
  border-radius: 3px;
  transition: background .18s ease, color .18s ease;
}
.admin-menu button:hover { background: #303030; color: #fff; }
.admin-menu button.active { background: #f2f2ed; color: #181818; font-weight: 700; }
.admin-main { max-width: 1280px; }
.admin-main h1 { line-height: 1.08; margin-bottom: 30px; }
.admin-heading { gap: 20px; flex-wrap: wrap; }
.admin-heading .button { flex: none; }
.stats { gap: 16px; }
.stats > div { background: #fff; border: 1px solid var(--ae-line); min-width: 0; }
.stats small { color: var(--ae-muted); line-height: 1.5; }
.stats strong { font-family: Manrope, sans-serif; letter-spacing: -.045em; overflow-wrap: anywhere; }
.list-row {
  min-height: 66px;
  align-items: center;
  gap: 12px;
  border-bottom-color: var(--ae-line);
  transition: background .18s ease;
}
.list-row:hover { background: #f0f0ec; }
.list-row > * { min-width: 0; }
.admin-product-row { border-bottom-color: var(--ae-line); }
.admin-product-row > img { border: 1px solid #e0e0da; }
.admin-product-details small { line-height: 1.4; }
.admin-product-edit { text-decoration: underline; text-underline-offset: 4px; }
.admin-config-block { border-top-color: var(--ae-line); }
.admin-slide-card { background: #fff; border-color: var(--ae-line); }
.admin-config-empty { border: 1px dashed #c9c9c2; }
.variant-row { padding-bottom: 15px; gap: 12px; }
.form-grid { column-gap: 24px; }

@media (max-width: 900px) {
  .admin-menu { scrollbar-width: thin; }
  .admin-menu b { margin: 10px 14px 10px 5px; }
  .admin-menu button { padding: 12px 14px; }
  .admin-main { padding: 30px 22px; }
}
@media (max-width: 600px) {
  .section { padding-block: 55px; }
  .admin-main { padding: 25px 18px; }
  .admin-main h1 { font-size: clamp(30px, 9vw, 39px); }
  .admin-heading { align-items: flex-start; }
  .admin-heading .button { min-height: 44px; }
  .stats { gap: 10px; }
  .stats > div { padding: 20px; }
  .admin-product-row { min-height: 94px; }
  .admin-product-row > img { width: 56px; height: 70px; }
  .admin-product-edit { white-space: normal; text-align: right; }
  .cart-row { gap: 14px; }
  .cart-row img { width: 88px; }
  .summary { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .product-card .image-wrap img, .category-list a, .button,
  .admin-menu button, .list-row, input, select, textarea { transition: none; }
}

/* Order workspace */
.order-overview { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin:24px 0 16px; }
.order-panel { background:#fff; border:1px solid var(--ae-line); padding:24px; min-width:0; }
.order-panel h2 { font-size:13px; font-weight:700; text-transform:uppercase; letter-spacing:.14em; margin:0 0 20px; }
.order-panel > strong { display:block; font-size:20px; margin-bottom:9px; }
.order-panel p { color:var(--ae-muted); overflow-wrap:anywhere; margin:8px 0; }
.order-panel a { display:inline-block; color:var(--ae-ink); overflow-wrap:anywhere; margin:4px 12px 4px 0; }
.order-panel .order-contact { display:block; width:fit-content; border-bottom:1px solid; margin-top:16px; font-weight:700; text-decoration:none; }
.order-items { margin-bottom:24px; }
.order-item, .order-total { display:flex; justify-content:space-between; align-items:baseline; gap:20px; padding:13px 0; border-top:1px solid var(--ae-line); }
.order-item span { overflow-wrap:anywhere; }
.order-item strong, .order-total strong { white-space:nowrap; }
.order-total { margin-top:10px; padding-top:19px; font-size:20px; }
.order-row { justify-content:space-between; flex-wrap:wrap; }
.order-row span:last-child { font-weight:700; }
.stock-list { max-height:440px; overflow:auto; border:1px solid var(--ae-line); background:#fff; padding:12px 20px; }
.stock-list p { display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px; padding:11px 0; margin:0; border-bottom:1px solid var(--ae-line); }
.stock-list p:last-child { border:0; }
.stock-list span { font-weight:700; }
.notice button { border:0; background:none; color:inherit; cursor:pointer; font-size:20px; padding:0 4px; vertical-align:middle; }
@media (max-width:700px) { .order-overview { grid-template-columns:1fr; } .order-panel { padding:20px; } .order-item { align-items:flex-start; } }
