/* funeral europe marketplace — global styles */
/* Brand: #5e89c2 blue · #999a9b grey · #efefef light · #333 body */

@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700;900&display=swap');

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

:root {
  --blue:        #5e89c2;
  --blue-dark:   #3a6490;
  --blue-light:  #d6e6f7;
  --grey:        #999a9b;
  --grey-light:  #efefef;
  --grey-bg:     #f7f8fa;
  --text:        #333333;
  --text-muted:  #666;
  --white:       #ffffff;
  --border:      #e2e8f0;
  --radius:      6px;
  --shadow:      0 1px 4px rgba(0,0,0,.08);
  --shadow-md:   0 4px 16px rgba(0,0,0,.10);
}

html { font-size: 16px; }
body {
  font-family: 'Lato', 'Source Sans Pro', helvetica, arial, sans-serif;
  color: var(--text);
  background: var(--grey-bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Header ──────────────────────────────────────────── */
.site-header {
  background: var(--blue);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  position: sticky; top: 0; z-index: 100;
}
.site-header .logo {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
}
.site-header .logo span { font-weight: 300; opacity: .85; }
.site-header nav { display: flex; gap: 1.25rem; align-items: center; }
.site-header nav a { color: rgba(255,255,255,.88); font-size: .9rem; font-weight: 400; }
.site-header nav a:hover { color: #fff; text-decoration: none; }
.site-header nav a.btn-sm {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  padding: .3rem .85rem;
  border-radius: var(--radius);
}
.site-header nav a.btn-sm:hover { background: rgba(255,255,255,.25); }
.cart-count {
  background: #fff;
  color: var(--blue);
  font-size: .7rem;
  font-weight: 700;
  border-radius: 99px;
  padding: .1rem .4rem;
  margin-left: .25rem;
}

/* ── Layout ──────────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
main { flex: 1; padding: 2rem 0 3rem; }

/* ── Cards / Products ────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow .2s, transform .2s;
  display: flex;
  flex-direction: column;
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.product-card img {
  width: 100%; height: 180px; object-fit: cover;
  background: var(--grey-light);
}
.product-card .card-body { padding: 1rem; flex: 1; display: flex; flex-direction: column; gap: .4rem; }
.product-card .card-category {
  font-size: .72rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--blue);
}
.product-card h3 { font-size: .98rem; font-weight: 700; color: var(--text); line-height: 1.35; }
.product-card .card-seller { font-size: .8rem; color: var(--text-muted); }
.product-card .card-price {
  font-size: 1.2rem; font-weight: 900; color: var(--blue-dark);
  margin-top: auto; padding-top: .5rem;
}
.product-card .card-actions { padding: .75rem 1rem; border-top: 1px solid var(--border); }

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: inherit; font-size: .9rem; font-weight: 700;
  padding: .55rem 1.4rem;
  border-radius: var(--radius);
  border: none; cursor: pointer;
  transition: background .15s, opacity .15s;
  text-align: center;
}
.btn-primary  { background: var(--blue); color: #fff; }
.btn-primary:hover  { background: var(--blue-dark); text-decoration: none; }
.btn-outline  { background: transparent; color: var(--blue); border: 1.5px solid var(--blue); }
.btn-outline:hover  { background: var(--blue-light); text-decoration: none; }
.btn-danger   { background: #e53e3e; color: #fff; }
.btn-sm       { padding: .35rem .9rem; font-size: .82rem; }
.btn-block    { display: block; width: 100%; }

/* ── Forms ───────────────────────────────────────────── */
.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  max-width: 480px;
  margin: 0 auto;
}
.form-card h1 { font-size: 1.4rem; font-weight: 900; margin-bottom: 1.5rem; color: var(--blue-dark); }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: .85rem; font-weight: 700; margin-bottom: .35rem; color: var(--text-muted); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .55rem .75rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit; font-size: .95rem;
  transition: border-color .15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
}
.form-group textarea { min-height: 100px; resize: vertical; }
.form-hint { font-size: .78rem; color: var(--text-muted); margin-top: .25rem; }

/* ── Alerts ──────────────────────────────────────────── */
.alert { padding: .85rem 1.1rem; border-radius: var(--radius); margin-bottom: 1.25rem; font-size: .9rem; }
.alert-success { background: #f0fff4; border: 1px solid #9ae6b4; color: #276749; }
.alert-error   { background: #fff5f5; border: 1px solid #feb2b2; color: #9b2c2c; }
.alert-info    { background: var(--blue-light); border: 1px solid #a0c4e8; color: var(--blue-dark); }

/* ── Tables ──────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--white); }
th { background: var(--grey-light); font-size: .8rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: .75rem 1rem; text-align: left; }
td { padding: .75rem 1rem; border-bottom: 1px solid var(--border); font-size: .9rem; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: #fafbfc; }

/* ── Page headers ────────────────────────────────────── */
.page-header {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
  color: #fff;
  padding: 2.5rem 0;
  margin-bottom: 2rem;
}
.page-header h1 { font-size: 1.8rem; font-weight: 900; }
.page-header p  { font-size: 1rem; opacity: .85; margin-top: .35rem; }

/* ── Filter bar ──────────────────────────────────────── */
.filter-bar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  display: flex; gap: 1rem; flex-wrap: wrap; align-items: center;
  margin-bottom: 1.5rem;
}
.filter-bar label { font-size: .82rem; font-weight: 700; color: var(--text-muted); }
.filter-bar select { padding: .35rem .65rem; border: 1.5px solid var(--border); border-radius: var(--radius); font-family: inherit; font-size: .9rem; }

/* ── Dashboard ───────────────────────────────────────── */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.stat-card .stat-label { font-size: .78rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }
.stat-card .stat-value { font-size: 1.8rem; font-weight: 900; color: var(--blue-dark); margin-top: .25rem; }

/* ── Badge ───────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: .2rem .6rem;
  border-radius: 99px;
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
}
.badge-pending  { background: #fef3c7; color: #92400e; }
.badge-approved { background: #d1fae5; color: #065f46; }
.badge-paid     { background: #dbeafe; color: #1e40af; }
.badge-paid-out { background: #d1fae5; color: #065f46; }

/* ── Cart ────────────────────────────────────────────── */
.cart-table td:last-child { text-align: right; }
.cart-summary {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  max-width: 340px;
  margin-left: auto;
  margin-top: 1.5rem;
}
.cart-summary .total-row { display: flex; justify-content: space-between; margin-bottom: .5rem; }
.cart-summary .total-final { font-size: 1.25rem; font-weight: 900; color: var(--blue-dark); }

/* ── Footer ──────────────────────────────────────────── */
.site-footer {
  background: var(--blue);
  color: rgba(255,255,255,.85);
  padding: 1.25rem 0;
  margin-top: auto;
  font-size: .82rem;
}
.site-footer .footer-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
}
.site-footer .footer-copy {
  color: rgba(255,255,255,.75);
}
.site-footer .footer-nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.site-footer .footer-nav a {
  color: rgba(255,255,255,.85);
  text-decoration: none;
  transition: color .15s;
}
.site-footer .footer-nav a:hover {
  color: #fff;
  text-decoration: underline;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 640px) {
  .site-header { padding: 0 1rem; }
  .site-header nav a:not(.btn-sm):not(.cart-link) { display: none; }
  .container { padding: 0 1rem; }
  .page-header h1 { font-size: 1.4rem; }
  .filter-bar { flex-direction: column; align-items: flex-start; }
}

/* ── Placeholder image ───────────────────────────────── */
.img-placeholder {
  width: 100%; height: 180px;
  background: linear-gradient(135deg, var(--blue-light), var(--grey-light));
  display: flex; align-items: center; justify-content: center;
  color: var(--blue); font-size: 2.5rem;
}
