/* ============================================================
   GIFTED SHOP — Shared Styles (Mobile-First)
   ============================================================ */

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

:root {
  --rose:        #D4537E;
  --rose-dark:   #993556;
  --rose-light:  #FBEAF0;
  --rose-mid:    #F4C0D1;
  --teal:        #1D9E75;
  --teal-dark:   #0F6E56;
  --teal-light:  #E1F5EE;
  --teal-mid:    #9FE1CB;
  --amber:       #BA7517;
  --amber-dark:  #854F0B;
  --amber-light: #FAEEDA;
  --amber-mid:   #FAC775;
  --gray-50:     #F8F7F4;
  --gray-100:    #F1EFE8;
  --gray-200:    #D3D1C7;
  --gray-400:    #888780;
  --gray-600:    #5F5E5A;
  --gray-900:    #2C2C2A;
  --white:       #FFFFFF;
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.06);
  --shadow-md:   0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg:   0 8px 24px rgba(0,0,0,0.1);
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   20px;
  --font-sans:   'DM Sans', sans-serif;
  --font-serif:  'Playfair Display', serif;
}

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

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  background: var(--gray-50);
  color: var(--gray-900);
  line-height: 1.6;
  min-height: 100vh;
}

/* ── Typography ── */
h1 { font-family: var(--font-serif); font-size: clamp(1.5rem, 5vw, 2rem); font-weight: 600; }
h2 { font-size: 1.125rem; font-weight: 600; }
h3 { font-size: 1rem; font-weight: 600; }
p  { font-size: 0.9rem; color: var(--gray-600); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 18px; border-radius: var(--radius-sm); border: none;
  font-family: var(--font-sans); font-size: 0.875rem; font-weight: 500;
  cursor: pointer; transition: all 0.18s; text-decoration: none; white-space: nowrap;
}
.btn-primary   { background: var(--rose); color: #fff; }
.btn-primary:hover { background: var(--rose-dark); }
.btn-secondary { background: var(--gray-100); color: var(--gray-900); border: 1px solid var(--gray-200); }
.btn-secondary:hover { background: var(--gray-200); }
.btn-teal   { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-dark); }
.btn-ghost  { background: transparent; color: var(--gray-600); border: 1px solid var(--gray-200); }
.btn-ghost:hover { background: var(--gray-100); }
.btn-danger { background: #FCEBEB; color: #A32D2D; border: 1px solid #F7C1C1; }
.btn-danger:hover { background: #F7C1C1; }
.btn-sm { padding: 6px 12px; font-size: 0.8rem; }
.btn-lg { padding: 14px 24px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-wa { background: #25D366; color: #fff; }
.btn-wa:hover { background: #1ebe5d; }

/* ── Cards ── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
}
.card-pad { padding: 1.25rem; }

/* ── Form elements ── */
.field { display: flex; flex-direction: column; gap: 5px; }
.field label { font-size: 0.8rem; font-weight: 500; color: var(--gray-600); }
input[type="text"], input[type="email"], input[type="password"],
input[type="number"], input[type="tel"], textarea, select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--gray-900);
  background: var(--white);
  transition: border-color 0.15s;
  -webkit-appearance: none;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(212,83,126,0.1);
}
textarea { resize: vertical; min-height: 80px; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888780' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }

/* ── Badges / Pills ── */
.badge {
  display: inline-flex; align-items: center;
  padding: 3px 9px; border-radius: 20px;
  font-size: 0.72rem; font-weight: 500; white-space: nowrap;
}
.badge-retail     { background: var(--rose-light);   color: var(--rose-dark); }
.badge-wholesale  { background: var(--teal-light);   color: var(--teal-dark); }
.badge-bulk       { background: var(--amber-light);  color: var(--amber-dark); }
.badge-gray       { background: var(--gray-100);     color: var(--gray-600); }
.badge-success    { background: #EAF3DE; color: #3B6D11; }
.badge-danger     { background: #FCEBEB; color: #A32D2D; }
.badge-pending    { background: var(--amber-light);  color: var(--amber-dark); }

/* ── Tag chips ── */
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 20px; font-size: 0.75rem;
  background: var(--gray-100); color: var(--gray-600);
  border: 1px solid var(--gray-200); cursor: pointer; transition: all 0.15s;
  white-space: nowrap;
}
.tag.active  { background: var(--rose-light); color: var(--rose-dark); border-color: var(--rose-mid); }
.tag:hover   { border-color: var(--gray-400); }

/* ── Divider ── */
.divider { height: 1px; background: var(--gray-100); margin: 1rem 0; }

/* ── Toast ── */
#toast-container {
  position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  z-index: 9999; display: flex; flex-direction: column; gap: 8px; pointer-events: none;
}
.toast {
  background: var(--gray-900); color: #fff;
  padding: 10px 18px; border-radius: var(--radius-sm);
  font-size: 0.85rem; box-shadow: var(--shadow-md);
  animation: slideUp 0.25s ease; pointer-events: all;
}
.toast.success { background: var(--teal-dark); }
.toast.error   { background: #A32D2D; }
@keyframes slideUp { from { opacity:0; transform: translateY(10px); } to { opacity:1; transform: translateY(0); } }

/* ── Modal ── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.45);
  display: flex; align-items: flex-end; justify-content: center;
  z-index: 1000; padding: 0;
}
@media (min-width: 600px) {
  .modal-overlay { align-items: center; padding: 1rem; }
}
.modal-box {
  background: var(--white); border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  width: 100%; max-width: 480px; max-height: 92vh;
  overflow-y: auto; padding: 1.5rem;
  animation: sheetUp 0.25s ease;
}
@media (min-width: 600px) {
  .modal-box { border-radius: var(--radius-xl); max-height: 85vh; }
}
@keyframes sheetUp { from { transform: translateY(40px); opacity:0; } to { transform: translateY(0); opacity:1; } }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.modal-header h2 { font-size: 1.1rem; }
.modal-close { background: var(--gray-100); border: none; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 1rem; display: flex; align-items: center; justify-content: center; }

/* ── Loader ── */
.spinner {
  width: 24px; height: 24px;
  border: 2.5px solid var(--gray-200); border-top-color: var(--rose);
  border-radius: 50%; animation: spin 0.7s linear infinite; margin: auto;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-screen {
  position: fixed; inset: 0; background: var(--white);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; z-index: 9999;
}

/* ── Scrollbars ── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gray-200); border-radius: 4px; }

/* ── Utilities ── */
.flex  { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.text-muted { color: var(--gray-400); }
.text-sm { font-size: 0.85rem; }
.text-xs { font-size: 0.75rem; }
.fw-500 { font-weight: 500; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.hidden { display: none !important; }
.w-full { width: 100%; }
.text-center { text-align: center; }
