@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

:root {
  --ink: #342b2a;
  --green: #9a6867; /* kept as --green for compatibility with existing PHP/CSS classes */
  --rose: #9a6867;
  --rose-dark: #7f5555;
  --peach: #e8b7a5;
  --blush: #f1d7ce;
  --cream: #f8f1eb;
  --paper: #fffaf6;
  --line: #e8d9d1;
  --muted: #8a7770;
  --red: #a85650;
  --gold: #b58c67;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
}

header {
  height: 76px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  position: sticky;
  top: 0;
  z-index: 20;
}

.logo {
  font: 700 25px "Playfair Display";
  color: var(--ink);
  text-decoration: none;
}

.logo span { color: var(--rose); }

nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
}

nav a:hover { color: var(--rose-dark); }

.pill {
  border: 1px solid var(--ink);
  padding: 10px 15px;
  border-radius: 999px;
}

.pill:hover {
  border-color: var(--rose);
  color: var(--rose-dark);
}

.wrap {
  max-width: 1240px;
  margin: auto;
  padding: 40px 5% 80px;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 20px;
}

.hero > div {
  border-radius: 28px;
  min-height: 430px;
}

.hero-copy {
  background: var(--rose);
  color: #fffaf7;
  padding: 60px;
}

.hero-copy h1 {
  font: 700 62px/1 "Playfair Display";
  margin: 15px 0;
}

.hero-copy p {
  max-width: 620px;
  line-height: 1.7;
  opacity: .94;
}

.hero-art {
  position: relative;
  overflow: hidden;
  background-image: linear-gradient(180deg, rgba(232,183,165,.06), rgba(91,55,48,.12)), url("hero-fashion.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: end;
  padding: 25px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14);
}

.tag,
.card,
.panel,
.stat,
.form,
.detail {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.tag { padding: 14px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 11px;
  color: var(--muted);
}

.hero-copy .eyebrow { color: #f4d9d1; }

h1, h2 { font-family: "Playfair Display"; }
h2 { font-size: 36px; }

.section {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin: 50px 0 20px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.card { overflow: hidden; }

.card img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  background: #f1e5df;
}

.cardbody { padding: 15px; }
.price { font-weight: 700; margin-top: 10px; }
.muted { color: var(--muted); font-size: 13px; }

.btn {
  display: inline-block;
  padding: 12px 16px;
  border: 0;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  transition: .18s ease;
}

.btn:hover {
  transform: translateY(-1px);
  opacity: .94;
}

/* Existing pages use .green; it is now the site's rose/peach primary action. */
.green { background: var(--rose); }
.green:hover { background: var(--rose-dark); }

.red { background: var(--red); }
.light {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}

.flash {
  margin: 15px auto;
  max-width: 1240px;
  padding: 13px 5%;
  border-radius: 10px;
}

.success {
  background: #f0e2dc;
  color: #70514c;
}

.error {
  background: #f6e3e1;
  color: #783a35;
}

.form {
  max-width: 760px;
  margin: 20px auto;
  padding: 32px;
}

.field { margin: 15px 0; }

.field label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 7px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.filters input:focus,
.filters select:focus {
  outline: 2px solid rgba(154, 104, 103, .18);
  border-color: var(--rose);
}

.field textarea { min-height: 130px; }

.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.panel { padding: 22px; margin: 20px 0; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.stat { padding: 22px; }
.stat b { display: block; font-size: 30px; margin-top: 7px; }

.tablewrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
}

table { width: 100%; border-collapse: collapse; }

th, td {
  padding: 13px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 13px;
  vertical-align: top;
}

.badge {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 999px;
  background: #eee7e3;
  font-size: 11px;
  text-transform: uppercase;
}

.badge.approved,
.badge.paid,
.badge.delivered,
.badge.completed {
  background: #f0e2dc;
  color: #70514c;
}

.badge.pending,
.badge.placed,
.badge.processing {
  background: #f5e5d8;
  color: #7a5b42;
}

.badge.rejected,
.badge.cancelled,
.badge.failed,
.badge.deleted {
  background: #f4e1df;
  color: #7a3934;
}

.badge.hidden {
  background: #eadbd7;
  color: #755b58;
}

.detail {
  padding: 25px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 35px;
}

.detail img {
  width: 100%;
  max-height: 700px;
  object-fit: contain;
  border-radius: 15px;
  background: #f1e5df;
}

.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px 0;
}

.filters input,
.filters select {
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}

.empty {
  text-align: center;
  padding: 50px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  background: var(--paper);
}

footer {
  border-top: 1px solid var(--line);
  padding: 30px 5%;
  display: flex;
  gap: 30px;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}

@media(max-width:900px) {
  .hero, .detail { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  header {
    height: auto;
    padding: 18px 5%;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  nav { flex-wrap: wrap; }
  .hero-copy h1 { font-size: 45px; }
}

@media(max-width:550px) {
  .grid, .two, .stats { grid-template-columns: 1fr; }
}

.profile-nav { display:inline-flex; align-items:center; gap:7px; }
.profile-nav img { width:28px; height:28px; object-fit:cover; border-radius:50%; border:1px solid var(--line); }
.profile-grid { display:grid; grid-template-columns:280px 1fr; gap:20px; align-items:start; }
.profile-card { padding:30px; text-align:center; }
.profile-avatar-large { width:130px; height:130px; margin:0 auto 18px; border-radius:50%; overflow:hidden; background:var(--blush); border:1px solid var(--line); display:flex; align-items:center; justify-content:center; font:700 48px "Playfair Display"; color:var(--rose-dark); }
.profile-avatar-large img { width:100%; height:100%; object-fit:cover; }
.profile-form { margin:0; max-width:none; }
.profile-head { display:flex; justify-content:space-between; align-items:end; gap:20px; margin:10px 0 25px; }
.profile-head h1 { margin:8px 0; }
.field small { display:block; margin-top:6px; }
@media(max-width:800px){ .profile-grid { grid-template-columns:1fr; } .profile-head { align-items:flex-start; flex-direction:column; } }


/* Login page: editorial buyer / seller choices */
.login-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.login-choice {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 22px;
  min-height: 245px;
  padding: 30px 30px 26px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid #e5cfc6;
  border-radius: 20px;
  background: linear-gradient(135deg, #fffaf7 0%, #faeee8 100%);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.login-choice::after {
  content: '';
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  right: -72px;
  bottom: -78px;
  background: rgba(232,183,165,.20);
}

.login-choice:hover {
  transform: translateY(-3px);
  border-color: #d6aaa0;
  box-shadow: 0 12px 28px rgba(116,78,69,.10);
}

.login-choice-seller {
  background: linear-gradient(135deg, #fff8f4 0%, #f3ddd5 100%);
}

.choice-icon {
  flex: 0 0 92px;
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f5ddd5;
  color: #8f5e59;
  font-size: 42px;
  line-height: 1;
  font-family: Georgia, serif;
}

.login-choice-seller .choice-icon {
  background: #edd0c6;
}

.choice-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.choice-content strong {
  font: 700 31px/1.1 "Playfair Display", serif;
  margin: 2px 0 10px;
}

.choice-content > span:not(.choice-arrow) {
  color: #806e68;
  font-size: 14px;
  line-height: 1.6;
  max-width: 460px;
}

.choice-content b {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  color: #8f514c;
  font-size: 15px;
}

.choice-arrow {
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  transition: transform .2s ease;
}

.login-choice:hover .choice-arrow {
  transform: translateX(5px);
}

.choice-content small {
  margin-top: 22px;
  color: #aa8b83;
  font-size: 10px;
  letter-spacing: 3px;
  font-weight: 600;
}

@media (max-width: 760px) {
  .login-choice-grid {
    grid-template-columns: 1fr;
  }
  .login-choice {
    min-height: auto;
  }
}


/* =========================================================
   LOGIN CTA POLISH
   Scoped to the login buyer/seller choices only.
   ========================================================= */

.login-choice-content,
.choice-content {
  position: relative;
  z-index: 2;
}

/* CTA buttons */
.login-choice .choice-content b {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 320px);
  min-height: 44px;
  margin-top: 22px;
  padding: 0 18px 0 20px;
  border-radius: 999px;
  color: #fffaf7;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  background: #c97873;
  box-shadow: 0 4px 10px rgba(127, 85, 85, .08);
  transition:
    background-color .2s ease,
    transform .2s ease,
    box-shadow .2s ease;
}

.login-choice-seller .choice-content b {
  background: #ad7470;
}

.login-choice .choice-arrow {
  flex: 0 0 auto;
  margin-left: 18px;
  color: #fffaf7;
  font-size: 21px;
  font-weight: 400;
  transition: transform .2s ease;
}

/* Mouse hover */
.login-choice:hover .choice-content b {
  background: #ae625e;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(127, 85, 85, .18);
}

.login-choice-seller:hover .choice-content b {
  background: #925d59;
}

.login-choice:hover .choice-arrow {
  transform: translateX(5px);
}

/* Keyboard accessibility gets the same visual feedback */
.login-choice:focus-visible {
  outline: 2px solid #c97873;
  outline-offset: 4px;
}

.login-choice:focus-visible .choice-content b {
  box-shadow: 0 8px 18px rgba(127, 85, 85, .18);
}

/* Keep the CTA comfortably inside the column */
@media (max-width: 900px) {
  .login-choice .choice-content b {
    width: min(100%, 290px);
  }
}

@media (max-width: 760px) {
  .login-choice .choice-content b {
    width: 100%;
    max-width: 320px;
  }
}
