/* =====================================================
   Hamoom - Fashion & Beauty | App stylesheet
   Mobile-first. Designed to feel like a simple, trustworthy
   shop-counter tool: warm, tidy, easy to use with one thumb.
   ===================================================== */

:root {
  --cream:      #FBF6EF;
  --maroon:     #7A1F3D;
  --maroon-dark:#5C1530;
  --gold:       #C8932B;
  --charcoal:   #2B2420;
  --rose:       #F1DCDC;
  --green:      #3F7D58;
  --red:        #B3433D;
  --line:       #E7DFD2;
  --white:      #FFFFFF;
  --radius:     14px;
  --shadow:     0 2px 10px rgba(43, 36, 32, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  padding-bottom: 78px; /* space for bottom nav */
}

h1, h2, h3, .display {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--maroon-dark);
}

a { color: var(--maroon); text-decoration: none; }

/* ---------- Top header ---------- */
.app-header {
  background: var(--maroon);
  color: var(--white);
  padding: 16px 18px 20px;
  position: relative;
}
.app-header h1 {
  color: var(--white);
  font-size: 1.25rem;
  margin: 0;
}
.app-header .sub {
  font-size: 0.8rem;
  opacity: 0.85;
  margin-top: 2px;
}
.scallop {
  position: absolute;
  bottom: -9px; left: 0; right: 0;
  height: 10px;
  background-image: radial-gradient(circle at 8px 0, transparent 8px, var(--gold) 8.5px);
  background-size: 16px 10px;
  background-repeat: repeat-x;
  opacity: 0.9;
}

/* ---------- Layout ---------- */
.container {
  max-width: 480px;
  margin: 0 auto;
  padding: 22px 16px 16px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  margin-bottom: 16px;
  border-top: 3px solid var(--gold);
}

.card.quiet { border-top-color: var(--line); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 16px;
  border-radius: 10px;
  border: none;
  font-size: 0.97rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary { background: var(--maroon); color: var(--white); }
.btn-primary:active { background: var(--maroon-dark); }
.btn-gold { background: var(--gold); color: var(--white); }
.btn-whatsapp { background: #25D366; color: var(--white); }
.btn-outline { background: transparent; color: var(--maroon); border: 1.5px solid var(--maroon); }
.btn-ghost { background: var(--rose); color: var(--maroon-dark); }
.btn-sm { width: auto; padding: 8px 14px; font-size: 0.85rem; }
.btn-row { display: flex; gap: 10px; }
.btn-row .btn { flex: 1; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ---------- Forms ---------- */
label { display: block; font-weight: 600; font-size: 0.85rem; margin: 14px 0 6px; color: var(--maroon-dark); }
label:first-child { margin-top: 0; }
input[type=text], input[type=number], input[type=password], input[type=file],
select, textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--white);
  color: var(--charcoal);
}
textarea { resize: vertical; min-height: 110px; }
.hint { font-size: 0.78rem; color: #8a7f72; margin-top: 4px; }

/* ---------- Misc components ---------- */
.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.badge-draft  { background: var(--rose); color: var(--maroon-dark); }
.badge-ready  { background: #FCEBC8; color: #8a6310; }
.badge-posted { background: #DEEFE3; color: var(--green); }

.price-line { font-size: 1.15rem; font-weight: 700; color: var(--maroon-dark); }
.price-old { text-decoration: line-through; color: #a89a8a; font-weight: 500; font-size: 0.95rem; margin-right: 6px; }

.product-thumb {
  width: 100%;
  border-radius: 10px;
  display: block;
  margin-bottom: 4px;
  background: var(--rose);
  object-fit: cover;
  aspect-ratio: 1/1;
}
.thumb-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.thumb-row img { width: 84px; height: 84px; border-radius: 8px; object-fit: cover; flex-shrink: 0; border: 1px solid var(--line); }

.caption-box {
  white-space: pre-wrap;
  background: var(--cream);
  border: 1px dashed var(--gold);
  border-radius: 10px;
  padding: 12px;
  font-size: 0.92rem;
}

.flash {
  padding: 11px 14px;
  border-radius: 10px;
  margin-bottom: 14px;
  font-size: 0.9rem;
  font-weight: 600;
}
.flash-success { background: #DEEFE3; color: var(--green); }
.flash-error   { background: #FBE3E1; color: var(--red); }

.empty-state { text-align: center; padding: 40px 10px; color: #8a7f72; }

.step-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

/* ---------- Bottom navigation ---------- */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--white);
  border-top: 1px solid var(--line);
  display: flex;
  z-index: 50;
  padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav a {
  flex: 1;
  text-align: center;
  padding: 9px 4px 8px;
  font-size: 0.68rem;
  font-weight: 600;
  color: #a89a8a;
}
.bottom-nav a.active { color: var(--maroon); }
.bottom-nav .icon { font-size: 1.25rem; display: block; margin-bottom: 2px; }

/* ---------- Login page ---------- */
.login-wrap {
  max-width: 380px;
  margin: 12vh auto;
  padding: 0 20px;
}
.login-wrap .card { border-top: 4px solid var(--gold); }
.login-logo { text-align: center; margin-bottom: 18px; }
.login-logo .mark {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--maroon); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.4rem;
  margin: 0 auto 10px;
}

@media (min-width: 480px) {
  .container { padding-top: 28px; }
}
