/* Shared storefront + admin styling. The legacy app carried one hand-tuned
   CSS file per storefront; the port uses one clean sheet - customers arrive
   from the marketing sites, so the checkout just needs to look tidy and
   trustworthy, not pixel-match 2010. */

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    color: #333;
    background: #f4f4f0;
}

#page {
    max-width: 760px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    min-height: 100vh;
}

#header {
    padding: 10px 0 20px;
    border-bottom: 1px solid #c0c0c0;
    margin-bottom: 20px;
}

#header img { max-height: 80px; border: 0; }

#header .site-name {
    font-size: 1.6em;
    font-weight: bold;
    color: #2c4a6b;
}

#header a { text-decoration: none; }

h1 { font-size: 1.5em; color: #2c4a6b; }
h2 { font-size: 1.2em; color: #2c4a6b; }

a { color: #2c5d8a; }

.flash { padding: 10px 14px; margin: 0 0 15px; border-radius: 3px; }
.flash-notice { background: #e5f2e5; border: 1px solid #9c9; color: #262; }
.flash-error { background: #f6e3e3; border: 1px solid #c99; color: #822; }

ul.products-nav, ul.summary-nav, ul.footer-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

ul.summary-nav li { display: inline-block; margin-right: 15px; }

#order-details { margin-bottom: 10px; }
#order-details > span { font-weight: bold; }

.product { padding: 12px 0; border-bottom: 1px solid #e5e5e5; }
.product h2 { margin: 0 0 6px; }
.product p { margin: 6px 0; }
.product-buy { font-weight: bold; }

table { border-collapse: collapse; width: 100%; margin: 10px 0 20px; }
th, td { text-align: left; padding: 6px 8px; }
thead th, tfoot th { background: #eee; }
tbody tr:nth-child(even) { background: #f9f9f7; }
.total-label { text-align: right; }

#discount-form, #payment { margin-top: 20px; }

fieldset {
    border: 1px solid #c0c0c0;
    padding: 15px;
}

legend { font-weight: bold; padding: 0 8px; }

.form-row, form div { margin-bottom: 10px; }

label { display: inline-block; min-width: 160px; vertical-align: top; }

input[type="text"], input[type="email"], input[type="date"], select {
    padding: 5px 6px;
    border: 1px solid #aaa;
    border-radius: 2px;
    font-size: 1em;
    max-width: 280px;
}

.button {
    display: inline-block;
    padding: 8px 16px;
    background: #2c5d8a;
    color: #fff;
    border: 0;
    border-radius: 3px;
    font-size: 1em;
    cursor: pointer;
    text-decoration: none;
}

.button:hover { background: #244d73; }
.button-danger { background: #a33; }
.button-danger:hover { background: #822; }

.card-errors { color: #822; margin: 10px 0; }

ul + p, .invoice-note { margin-top: 25px; }

.invoice-columns { display: flex; gap: 40px; }
.invoice-intro { margin: 0 0 15px; padding: 0 0 15px; border-bottom: 1px solid #c0c0c0; }
.invoice-legal { text-align: center; font-size: 80%; color: #777; }

#footer {
    margin-top: 40px;
    padding-top: 15px;
    border-top: 1px solid #c0c0c0;
    font-size: 0.85em;
    color: #777;
}

ul.footer-nav li { display: inline-block; margin-right: 12px; }

/* Admin */
.admin-nav { margin-bottom: 20px; }
.report-filter label { min-width: 0; margin-right: 15px; }
.report-breakdowns { display: flex; gap: 40px; flex-wrap: wrap; }
.report-breakdowns > div { min-width: 180px; }
table.detail th { width: 140px; background: #eee; }
.log-message { font-family: monospace; font-size: 0.85em; word-break: break-all; }
