/* ECVintage — draft stylesheet. White background, ALL CAPS, quiet type. */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --ink: #1a1a1a;
  --muted: #8a8a8a;
  --line: #e6e6e6;
  --bg-soft: #f5f2ec;
}

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 13px;
  letter-spacing: .08em;
  color: var(--ink);
  background: #fff;
  text-transform: uppercase; /* everything on the site is ALL CAPS */
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------------------------------------------------------- promo + header */

.promo {
  background: var(--ink);
  color: #fff;
  text-align: center;
  font-size: 11px;
  padding: 9px 12px;
  letter-spacing: .2em;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}
.header-logo img { height: 30px; }
.cart-link {
  position: absolute;
  right: 24px;
  font-size: 11px;
  letter-spacing: .15em;
}
.cart-link:hover { text-decoration: underline; }

/* ------------------------------------------------------------------ layout */

.layout {
  display: flex;
  max-width: 1280px;
  margin: 0 auto;
  min-height: 70vh;
}
.sidebar {
  width: 210px;
  flex-shrink: 0;
  padding: 36px 24px;
  border-right: 1px solid var(--line);
}
.sidebar a {
  display: block;
  font-size: 12px;
  letter-spacing: .12em;
  margin-bottom: 16px;
  color: var(--ink);
}
.sidebar a:hover { text-decoration: underline; }
.sidebar a.active { font-weight: 700; text-decoration: underline; }
.content { flex: 1; padding: 36px 32px 64px; min-width: 0; }

.site-footer {
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .18em;
  padding: 26px 16px;
}

.page-title { font-size: 16px; font-weight: 400; letter-spacing: .25em; margin-bottom: 28px; }
.section-title { font-size: 13px; font-weight: 700; letter-spacing: .2em; margin: 40px 0 16px; }
.empty-note { color: var(--muted); margin-bottom: 20px; }

/* ----------------------------------------------------------------- buttons */

.btn {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: 14px 34px;
  cursor: pointer;
  text-align: center;
}
.btn:hover { background: #000; }
.btn[disabled] { background: #c9c9c9; border-color: #c9c9c9; cursor: default; }
.btn-outline { background: #fff; color: var(--ink); }
.btn-outline:hover { background: var(--bg-soft); }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: #eee; }
.link-btn {
  background: none; border: none; cursor: pointer;
  font: inherit; font-size: 10px; color: var(--muted);
  text-transform: uppercase; letter-spacing: .12em;
  text-decoration: underline;
}

/* ----------------------------------------------------------------- landing */

.landing-body { background: #000; }
.landing { display: flex; height: 100vh; position: relative; }
.landing-half {
  flex: 1;
  background-size: cover;
  background-position: center;
  filter: brightness(.82);
  transition: filter .25s;
}
.landing-half:hover { filter: brightness(.95); }
.landing-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 34px;
  pointer-events: none;
}
.landing-overlay .btn { pointer-events: auto; }
.landing-logo { width: min(480px, 78vw); filter: drop-shadow(0 1px 8px rgba(0,0,0,.35)); }

/* ------------------------------------------------------------ product grid */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 28px 22px;
}
.card-photo { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--bg-soft); }
.card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card:hover .card-photo img { transform: scale(1.03); }
.card-name { margin-top: 10px; font-size: 12px; letter-spacing: .1em; }
.card-meta { margin-top: 4px; font-size: 11px; color: var(--muted); }
.card.is-sold .card-photo img { opacity: .4; }

.sold-badge {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  letter-spacing: .25em;
  padding: 8px 18px;
}
.sold-badge-lg { font-size: 13px; padding: 10px 26px; }

/* --------------------------------------------------------------- item page */

.item-page { display: flex; gap: 48px; align-items: flex-start; }
.gallery { flex: 1.2; min-width: 0; }
.gallery-main { position: relative; aspect-ratio: 3 / 4; background: var(--bg-soft); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 10px; }
.thumb {
  width: 72px; aspect-ratio: 3 / 4; object-fit: cover;
  cursor: pointer; border: 1px solid transparent; opacity: .75;
}
.thumb:hover { opacity: 1; }
.thumb.active { border-color: var(--ink); opacity: 1; }

.item-info { flex: 1; padding-top: 8px; }
.item-info h1 { font-size: 15px; font-weight: 400; letter-spacing: .22em; margin-bottom: 14px; }
.item-price { font-size: 14px; margin-bottom: 6px; }
.item-size { font-size: 11px; color: var(--muted); margin-bottom: 22px; }
.item-desc { line-height: 1.9; margin-bottom: 28px; }
.shipping-note { margin-top: 18px; font-size: 10px; color: var(--muted); }

/* -------------------------------------------------------------------- cart */

.cart-list { border-top: 1px solid var(--line); max-width: 720px; }
.cart-row {
  display: flex; align-items: center; gap: 20px;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.cart-photo img { width: 72px; aspect-ratio: 3 / 4; object-fit: cover; }
.cart-details { flex: 1; }
.cart-price { font-size: 13px; }
.cart-warning { color: #a04030; font-size: 10px; margin-top: 6px; }

.cart-summary { max-width: 720px; margin-top: 24px; }
.cart-summary > div { display: flex; justify-content: space-between; margin-bottom: 10px; }
.cart-summary .shipping-note { justify-content: flex-end; }
.cart-total { font-weight: 700; border-top: 1px solid var(--line); padding-top: 12px; margin-bottom: 22px; }
.cart-summary .btn { width: 100%; }

/* ---------------------------------------------------------------- checkout */

.checkout-page { display: flex; gap: 48px; align-items: flex-start; flex-wrap: wrap; }
.checkout-form { flex: 1.3; min-width: 300px; }
.checkout-form h2, .order-summary h2 {
  font-size: 12px; font-weight: 700; letter-spacing: .2em; margin: 22px 0 14px;
}
.checkout-form label { display: block; font-size: 10px; color: var(--muted); margin-bottom: 14px; }
.checkout-form input {
  display: block; width: 100%; margin-top: 6px;
  padding: 11px 12px; border: 1px solid #cfcfcf;
  font: inherit; letter-spacing: .05em;
}
.checkout-form input:focus { outline: none; border-color: var(--ink); }
.form-row { display: flex; gap: 12px; }
.form-row label { flex: 1; }
.payment-placeholder {
  border: 1px dashed #b9b3a5;
  background: var(--bg-soft);
  color: #6f6a5e;
  font-size: 11px;
  line-height: 1.8;
  padding: 18px;
  margin-bottom: 22px;
}
.order-summary {
  flex: 1; min-width: 260px;
  border: 1px solid var(--line); padding: 24px;
}
.summary-row { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; font-size: 11px; }

.confirmation p { margin-bottom: 14px; line-height: 1.8; }
.confirmation .btn-outline { margin-top: 16px; }

/* -------------------------------------------------------- admin dashboard */

.kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 8px;
}
.kpi-tile { border: 1px solid var(--line); padding: 16px; }
.kpi-label { font-size: 9px; letter-spacing: .18em; color: var(--muted); margin-bottom: 10px; }
.kpi-value { font-size: 24px; letter-spacing: .04em; }

.bar-chart { max-width: 640px; }
.bar-row { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.bar-label { width: 90px; font-size: 10px; color: var(--muted); text-align: right; }
.bar-track { flex: 1; height: 14px; background: none; }
.bar-fill {
  display: block; height: 100%;
  background: var(--ink);
  border-radius: 0 4px 4px 0; /* rounded at the data end only */
  min-width: 2px;
}
.bar-value { width: 70px; font-size: 11px; }

.table-wrap { overflow-x: auto; }
.orders-table { border-collapse: collapse; width: 100%; font-size: 10px; }
.orders-table th, .orders-table td {
  text-align: left; padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top; line-height: 1.6;
}
.orders-table th { letter-spacing: .15em; color: var(--muted); font-weight: 400; }

/* ------------------------------------------------------------------ mobile */

@media (max-width: 760px) {
  .layout { flex-direction: column; }
  .sidebar {
    width: 100%; border-right: none; border-bottom: 1px solid var(--line);
    padding: 16px 20px; display: flex; gap: 18px; overflow-x: auto; white-space: nowrap;
  }
  .sidebar a { margin-bottom: 0; font-size: 11px; }
  .content { padding: 24px 18px 48px; }
  .item-page { flex-direction: column; gap: 28px; }
  .landing { flex-direction: column; }
}
