:root { --green: #173d2c; --line: #e8e7dc; --gold: #d3a650; }
* { box-sizing: border-box; }
body { margin: 0; background: #f7f6f1; color: #233329; font-family: Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
[hidden] { display: none !important; }
.shop-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px; padding: 18px max(20px, calc((100% - 1100px) / 2)); background: #fffefa; border-bottom: 1px solid var(--line); color: var(--green); }
.shop-brand { display: flex; align-items: center; gap: 12px; font: 24px Georgia, serif; }
.shop-brand img { width: 58px; height: 58px; object-fit: contain; }
.checkout { width: min(1100px, calc(100% - 40px)); margin: 40px auto; }
.eyebrow { color: #98722d; font-size: 11px; font-weight: bold; letter-spacing: .12em; text-transform: uppercase; }
h1 { color: var(--green); font: 38px Georgia, serif; margin: 10px 0 15px; }
h2 { color: var(--green); font-size: 20px; margin: 0 0 20px; }
.intro { color: #6b786d; font-size: 13px; line-height: 1.8; }
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; margin-top: 24px; align-items: start; }
.panel { min-width: 0; padding: 26px; margin-bottom: 24px; background: #fffefa; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 4px 18px #173d2c05; }
form { display: grid; gap: 18px; }
label { display: grid; gap: 9px; font-size: 14px; font-weight: 600; }
input, textarea, select { width: 100%; min-width: 0; padding: 12px; border: 1px solid #d9ded3; border-radius: 6px; background: white; color: #233329; }
textarea { resize: vertical; }
input:focus, textarea:focus, select:focus, button:focus-visible, a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.check-label { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; font-weight: normal; line-height: 1.7; }
.check-label input { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; accent-color: var(--green); }
button, .button { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 12px 16px; border: 1px solid #d9ded3; border-radius: 6px; background: white; color: var(--green); font-weight: 600; cursor: pointer; }
button:hover { background: #edf2e9; }
.primary { background: var(--green); border-color: var(--green); color: white; font-size: 17px; min-height: 54px; }
.primary:hover { background: #24543b; }
button:disabled { opacity: .55; cursor: not-allowed; }
.message { margin: 0; font-size: 13px; line-height: 1.7; color: #24543b; overflow-wrap: anywhere; }
.message.error { color: #964a3d; }
.summary-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.7; }
.summary-row strong { text-align: right; flex-shrink: 0; }
.summary-row.total { font-size: 18px; color: var(--green); font-weight: bold; }
.summary-row.total strong { color: #b52f2f; font-size: 23px; font-weight: 700; }
.summary-row small { display: block; color: #748075; }
.order-summary button { margin: 4px 0 14px; }
.success { max-width: 760px; margin: 30px auto; line-height: 1.8; overflow-wrap: anywhere; }
.success h2 { margin-top: 14px; font-size: 28px; }
.admin-layout { min-height: 100vh; display: grid; grid-template-columns: 248px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; display: flex; height: 100vh; flex-direction: column; padding: 25px 17px; background: var(--green); color: white; }
.sidebar { overflow-y: auto; }
.sidebar > * { flex-shrink: 0; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 28px; border-bottom: 1px solid #ffffff24; }
.brand img { width: 58px; height: 58px; object-fit: contain; border-radius: 4px; background: #fdf9ed; }
.brand strong { display: block; font: 600 17px Georgia, serif; }
.brand small { display: block; margin-top: 4px; color: #ffffff9e; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.side-label { padding: 25px 11px 10px; color: #d9c28f; font-size: 9px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.side-link { display: flex; align-items: center; gap: 11px; min-height: 43px; margin: 2px 0; padding: 0 12px; border-radius: 5px; color: #ffffffba; font-size: 12px; font-weight: 500; }
.side-link.active { background: #ffffff1f; color: white; }
.side-link:hover { background: #ffffff14; color: white; }
.side-icon { width: 18px; color: #e8c46f; font-size: 16px; text-align: center; }
.main { min-width: 0; }
.topbar { display: flex; min-height: 73px; align-items: center; justify-content: space-between; gap: 20px; padding: 0 38px; border-bottom: 1px solid var(--line); background: #fffefa; font-size: 12px; }
.content { width: min(1120px, calc(100% - 76px)); margin: 0 auto; padding: 39px 0 65px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 20px; }
.orders-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; margin: 24px 0 20px; }
.orders-toolbar h2 { margin: 0 0 8px; font-size: 20px; }
.toolbar-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.order-card { margin-bottom: 16px; border: 1px solid #dfe5db; border-radius: 10px; background: #fffefa; box-shadow: 0 3px 14px #173d2c05; overflow: hidden; overflow-wrap: anywhere; }
.order-card-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 11px 18px; border-bottom: 1px solid var(--line); background: #fbfcf8; }
.order-identity { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 16px; }
.order-identity h3 { margin: 0; color: var(--green); font-size: 17px; letter-spacing: .02em; }
.order-identity p { margin: 0; }
.order-badge { display: inline-flex; align-items: center; padding: 8px 13px; border: 1px solid transparent; border-radius: 24px; font-size: 12px; font-weight: 700; }
.status-new { color: #906817; background: #fff3d5; border-color: #eed9a7; }
.status-confirmed { color: #285a41; background: #e8f2e8; border-color: #cde1ce; }
.status-shipping { color: #315d80; background: #e9f2fa; border-color: #cddfed; }
.status-completed { color: #1d573d; background: #ddefe3; border-color: #bcd8c7; }
.status-cancelled { color: #994c42; background: #faece8; border-color: #e9cdc7; }
.order-meta { color: #748075; font-size: 12px; }
.order-details { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 20px; padding: 12px 18px; }
.order-section-title { margin: 0 0 12px; font-size: 11px; font-weight: 700; color: #6c7e70; text-transform: uppercase; letter-spacing: .08em; }
.customer-fields { display: grid; gap: 10px; margin: 0; }
.customer-field { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 10px; align-items: baseline; }
.customer-field dt { margin: 0; color: #748075; font-size: 12px; line-height: 1.7; }
.customer-field dd { margin: 0; color: #25392c; font-size: 14px; line-height: 1.7; white-space: pre-wrap; }
.customer-field .customer-name { color: var(--green); font-size: 16px; font-weight: 700; }
.customer-phone { display: inline-flex; min-height: 44px; align-items: center; padding: 0 10px; border-radius: 6px; border: 1px solid #d7e3d4; background: #f0f6eb; color: #24543b; font-size: 14px; font-weight: 700; }
.customer-phone:hover { background: #e5efdf; }
.customer-note { margin-top: 12px; padding: 9px 12px; border-left: 3px solid var(--gold); border-radius: 0 6px 6px 0; background: #faf5e9; font-size: 13px; line-height: 1.6; }
.customer-note strong { color: #806326; font-size: 12px; }
.customer-note p { margin: 5px 0 0; white-space: pre-wrap; }
.order-products { min-width: 0; padding-left: 18px; border-left: 1px solid var(--line); }
.order-product-list { list-style: none; margin: 0; padding: 0; }
.order-product-row { display: flex; justify-content: space-between; align-items: start; gap: 12px; padding: 0 0 10px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.order-product-row > div { min-width: 0; }
.order-product-name { display: block; margin-bottom: 3px; color: var(--green); font-size: 14px; line-height: 1.5; }
.order-product-meta { display: block; color: #748075; font-size: 12px; line-height: 1.7; }
.order-line-total { flex-shrink: 0; font-size: 14px; line-height: 1.7; }
.order-amount-row { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; font-size: 12px; line-height: 1.7; color: #6b786d; }
.order-amount-row strong { text-align: right; color: #354b3c; }
.order-grand-total { margin-top: 8px; padding: 9px 12px; border-radius: 6px; background: #eef4e9; color: var(--green); font-size: 13px; font-weight: 700; align-items: center; }
.order-grand-total strong { font-size: 19px; color: #b52f2f; }
.order-card-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 8px 18px; background: #faf9f4; border-top: 1px solid var(--line); }
.order-status-label { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; color: #5d7061; font-size: 12px; }
.order-status-label select { width: 180px; min-height: 44px; padding: 9px 10px; font-size: 13px; font-weight: 600; color: var(--green); cursor: pointer; }
.order-full-id { max-width: 100%; color: #849085; font-size: 10px; line-height: 1.7; }
.order-pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 16px; padding: 8px 0 16px; font-size: 13px; color: #6b786d; }
.orders-footnote { color: #849085; font-size: 12px; line-height: 1.8; text-align: center; }
.orders-empty { padding: 55px 24px; border: 1px dashed #cfd9c9; border-radius: 14px; background: #fffefa; text-align: center; }
.orders-empty-icon { display: inline-grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; background: #eef4e9; color: #68865f; font-size: 30px; }
.orders-empty h3 { margin: 18px 0 10px; color: var(--green); font-size: 22px; }
.orders-empty p { margin: 0; color: #748075; font-size: 14px; line-height: 1.8; }
@media (max-width: 900px) {
  .admin-layout { grid-template-columns: 205px minmax(0, 1fr); }
  .topbar { padding: 0 24px; }
  .content { width: calc(100% - 48px); }
  .checkout-grid { grid-template-columns: 1fr; }
  .order-details { grid-template-columns: 1fr; }
  .order-products { padding: 16px 0 0; border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 650px) {
  .admin-layout { display: block; }
  .sidebar { position: static; height: auto; padding: 12px 16px; }
  .brand { padding: 0; border: 0; }
  .brand img { width: 46px; height: 46px; }
  .brand strong { font-size: 15px; }
  .side-label { display: none; }
  .side-link { display: inline-flex; min-height: 44px; margin: 8px 3px 0 0; padding: 0 9px; font-size: 10px; }
  .topbar { min-height: 53px; padding: 0 17px; }
  .content { width: calc(100% - 30px); padding: 28px 0 42px; }
  h1 { font-size: 31px; }
  .panel { padding: 18px; }
  .order-details { grid-template-columns: 1fr; }
  .order-card-header, .order-card-footer { padding: 12px 15px; }
  .order-details { padding: 15px; gap: 16px; }
  .customer-field { grid-template-columns: 92px minmax(0, 1fr); gap: 8px; }
  .order-grand-total strong { font-size: 19px; }
  .order-status-label { width: 100%; }
  .order-status-label select { width: 100%; }
}
