/* ============================================
   QIBAH STORE - Rose Gold Premium CSS
   Mobile-first design for female customers
   ============================================ */

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

/* ---- CSS Variables ---- */
:root {
  --rose:        #be185d;
  --rose-dark:   #9d174d;
  --rose-light:  #fce7f3;
  --rose-soft:   #fff1f6;
  --text:        #1f1f1f;
  --muted:       #6b7280;
  --border:      #f0e4e9;
  --white:       #ffffff;
  --bg:          #fafafa;
  --green:       #16a34a;
  --green-light: #f0fdf4;
  --amber:       #b45309;
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   20px;
}

/* ---- Reset ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Quicksand', sans-serif;
  background: var(--bg);
  color: var(--text);
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ---- Typography ---- */
h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
}

/* ---- Topbar ---- */
.topbar {
  background: var(--rose);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.topbar-title {
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  flex: 1;
}

.btn-icon {
  background: rgba(255,255,255,0.2);
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  flex-shrink: 0;
  transition: background 0.2s;
}

.btn-icon:active { background: rgba(255,255,255,0.3); }

/* ---- Cards ---- */
.card {
  background: var(--white);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px;
}

.card-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-title i { color: var(--rose); font-size: 16px; }

/* ---- Buttons ---- */
.btn-primary {
  width: 100%;
  background: var(--rose);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: 14px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Quicksand', sans-serif;
  transition: background 0.2s;
}

.btn-primary:active { background: var(--rose-dark); }

.btn-secondary {
  width: 100%;
  background: var(--rose-soft);
  color: var(--rose);
  border: 0.5px solid var(--rose-light);
  border-radius: var(--radius-md);
  padding: 13px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Quicksand', sans-serif;
}

/* ---- Form Fields ---- */
.field { margin-bottom: 10px; }
.field:last-child { margin-bottom: 0; }

.field label {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-bottom: 5px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--bg);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 13px;
  color: var(--text);
  outline: none;
  font-family: 'Quicksand', sans-serif;
  transition: border-color 0.2s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--rose);
}

.field textarea { resize: none; height: 70px; }

/* ---- Bottom Nav ---- */
.bottom-nav {
  background: var(--white);
  border-top: 0.5px solid var(--border);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 8px 0 16px;
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  z-index: 100;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  padding: 4px;
}

.nav-icon { font-size: 22px; color: var(--muted); }
.nav-icon.active { color: var(--rose); }
.nav-label { font-size: 10px; color: var(--muted); }
.nav-label.active { color: var(--rose); font-weight: 500; }

/* ---- Cart Badge ---- */
.cart-badge {
  position: relative;
  cursor: pointer;
}

.cart-dot {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 17px;
  height: 17px;
  background: #fff;
  color: var(--rose);
  border-radius: 50%;
  font-size: 9px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- Badges ---- */
.badge {
  font-size: 9px;
  padding: 2px 7px;
  border-radius: 20px;
  font-weight: 500;
}

.badge-sale { background: var(--green); color: #fff; }
.badge-new  { background: var(--rose); color: #fff; }
.badge-hot  { background: #f97316; color: #fff; }
.badge-free { background: var(--green-light); color: var(--green); }

/* ---- Toast Notification ---- */
.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: #1f1f1f;
  color: #fff;
  font-size: 13px;
  padding: 10px 20px;
  border-radius: 20px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 999;
  font-family: 'Quicksand', sans-serif;
}

.toast.show { opacity: 1; }

/* ---- Loading Spinner ---- */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  color: var(--muted);
  font-size: 13px;
  gap: 8px;
}

/* ---- Empty State ---- */
.empty {
  padding: 3rem 2rem;
  text-align: center;
}

.empty-icon {
  font-size: 48px;
  color: var(--border);
  margin-bottom: 1rem;
}

.empty-text { font-size: 14px; color: var(--muted); }

/* ---- Announcement Bar ---- */
.announce-bar {
  background: var(--rose-dark);
  text-align: center;
  font-size: 12px;
  color: #fce7f3;
  padding: 6px 16px;
}

/* ---- Search Bar ---- */
.search-bar {
  background: var(--rose-dark);
  padding: 0 16px 12px;
}

.search-input {
  background: #fff;
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.search-input input {
  border: none;
  outline: none;
  font-size: 13px;
  color: var(--text);
  width: 100%;
  background: transparent;
  font-family: 'Quicksand', sans-serif;
}

/* ---- Product Card ---- */
.prod-card {
  background: var(--white);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s;
}

.prod-card:active { border-color: var(--rose); }

.prod-img {
  background: var(--rose-soft);
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  position: relative;
}

.prod-info { padding: 9px 10px; }
.prod-name { font-size: 12px; font-weight: 500; color: var(--text); margin-bottom: 2px; line-height: 1.4; }
.prod-meta { font-size: 10px; color: var(--muted); margin-bottom: 6px; }
.prod-price { font-size: 14px; font-weight: 600; color: var(--rose-dark); }
.prod-old { font-size: 10px; color: var(--muted); text-decoration: line-through; }

.add-btn {
  width: 28px;
  height: 28px;
  background: var(--rose);
  color: #fff;
  border: none;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  flex-shrink: 0;
}

/* ---- Section spacing ---- */
.section { padding: 16px; }
.section-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.section-title { font-size: 15px; font-weight: 500; }
.see-all { font-size: 12px; color: var(--rose); cursor: pointer; }

/* ---- Utility ---- */
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pb-nav { padding-bottom: 80px; }
.text-rose { color: var(--rose); }
.text-muted { color: var(--muted); }
.text-green { color: var(--green); }
.fw-500 { font-weight: 500; }
.fs-12 { font-size: 12px; }
.fs-13 { font-size: 13px; }
