/* ================================================
   ASHA BOOKS — Shared Styles
   Second Bloom inspired, subscription-first
   ================================================ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,900;1,400;1,700&family=DM+Sans:wght@300;400;500&display=swap');

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

:root {
  --pink:        #e8789a;
  --pink-dark:   #c4527a;
  --pink-pale:   #fce4f4;
  --pink-mid:    #f9cfe3;
  --pink-soft:   #f8e8f4;
  --cream:       #fdf5f0;
  --white:       #ffffff;
  --dark:        #2a1a2a;
  --body:        #4a3a46;
  --muted:       #8a6a82;
  --border:      #f0d8e8;
  --success:     #5a9a6a;
  --danger:      #c05060;
  --radius:      14px;
  --radius-sm:   8px;
  --radius-pill: 999px;
}

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--dark);
  background: var(--pink-pale);
  font-size: 14px;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
h1,h2,h3,h4 { font-family: 'Playfair Display', serif; font-weight: 700; }

/* ── NAV ── */
nav {
  background: white;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-links {
  display: flex;
  gap: 1.8rem;
  list-style: none;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--body);
}
.nav-links a { transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--pink); }
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--dark);
  text-align: center;
  line-height: 1.1;
  text-decoration: none;
}
.nav-logo em {
  display: block;
  font-style: italic;
  font-weight: 700;
  color: var(--pink);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.nav-sign-in {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
  transition: color 0.2s;
}
.nav-sign-in:hover { color: var(--pink); }
.nav-basket {
  background: var(--pink);
  color: white;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: background 0.2s;
  text-decoration: none;
}
.nav-basket:hover { background: var(--pink-dark); }
.basket-count {
  background: white;
  color: var(--pink);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 0.62rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.8rem;
  border-radius: var(--radius-pill);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-pink { background: var(--pink); color: white; }
.btn-pink:hover { background: var(--pink-dark); }
.btn-outline { background: transparent; color: var(--pink); border: 1.5px solid var(--pink); }
.btn-outline:hover { background: var(--pink); color: white; }
.btn-dark { background: var(--dark); color: white; }
.btn-dark:hover { background: var(--pink-dark); }
.btn-sm { padding: 0.5rem 1.2rem; font-size: 0.75rem; }
.btn-lg { padding: 0.9rem 2.2rem; font-size: 0.9rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── SECTIONS ── */
.section { max-width: 1200px; margin: 0 auto; padding: 3rem 2rem; }
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 0.4rem;
}
.section-sub {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ── PINK SECTION BACKGROUNDS ── */
.bg-pink-mid { background: var(--pink-mid); }
.bg-pink-pale { background: var(--pink-pale); }
.bg-white { background: white; }
.bg-cream { background: var(--cream); }

/* ── HOW IT WORKS CARDS ── */
.how-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; margin-top: 1.8rem; }
.how-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
}
.how-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--pink);
  margin-bottom: 0.8rem;
  opacity: 0.7;
}
.how-title { font-size: 0.92rem; font-weight: 600; color: var(--dark); margin-bottom: 0.5rem; }
.how-desc { font-size: 0.8rem; color: var(--muted); line-height: 1.65; }

/* ── BOX CARDS ── */
.box-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.box-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(200,80,130,0.12); }
.box-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: linear-gradient(135deg, var(--pink-mid), var(--pink));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-style: italic;
  color: white;
  font-weight: 700;
}
.box-card-body { padding: 1.2rem; }
.box-card-title { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 900; color: var(--dark); margin-bottom: 0.3rem; }
.box-card-desc { font-size: 0.78rem; color: var(--muted); line-height: 1.6; margin-bottom: 0.8rem; }
.box-card-price { font-size: 0.88rem; font-weight: 600; color: var(--pink); margin-bottom: 0.8rem; }

/* ── BOOK CARDS ── */
.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px,1fr)); gap: 1.2rem; }
.book-card {
  background: white;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid var(--border);
}
.book-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(200,80,130,0.1); }
.book-cover-wrap { position: relative; aspect-ratio: 2/3; background: var(--pink-soft); overflow: hidden; }
.book-cover-wrap img { width: 100%; height: 100%; object-fit: cover; }
.book-cover-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: flex-end; padding: 0.7rem;
  font-family: 'Playfair Display', serif;
  font-style: italic; color: white;
  font-size: 0.8rem; line-height: 1.3;
  position: relative;
}
.book-cover-placeholder::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 60%);
}
.book-cover-placeholder span { position: relative; z-index: 1; }
.oos-badge {
  position: absolute; top: 0.4rem; left: 0.4rem;
  background: rgba(44,26,42,0.75); color: white;
  font-size: 0.6rem; font-weight: 500; padding: 0.2rem 0.5rem;
  border-radius: var(--radius-pill);
}
.book-info { padding: 0.7rem 0.8rem 0.9rem; }
.book-price { font-family: 'Playfair Display', serif; font-size: 1rem; color: var(--dark); font-weight: 700; margin-bottom: 0.15rem; }
.book-title { font-size: 0.78rem; font-weight: 500; color: var(--dark); margin-bottom: 0.1rem; line-height: 1.3; }
.book-author { font-size: 0.72rem; color: var(--muted); font-style: italic; margin-bottom: 0.6rem; }
.book-btn { width: 100%; padding: 0.45rem; background: var(--pink); color: white; border: none; border-radius: var(--radius-pill); font-family: 'DM Sans', sans-serif; font-size: 0.72rem; font-weight: 500; cursor: pointer; transition: background 0.2s; }
.book-btn:hover:not(:disabled) { background: var(--pink-dark); }
.book-btn:disabled { background: var(--border); color: var(--muted); cursor: not-allowed; }

/* ── FORMS ── */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.72rem; font-weight: 500; color: var(--muted); margin-bottom: 0.35rem; letter-spacing: 0.06em; text-transform: uppercase; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 0.7rem 0.9rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-family: 'DM Sans', sans-serif; font-size: 0.88rem; color: var(--dark); outline: none; transition: border-color 0.2s; background: white; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--pink); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ── ALERTS ── */
.alert { padding: 0.8rem 1rem; border-radius: var(--radius-sm); font-size: 0.84rem; margin-bottom: 1rem; }
.alert-error { background: #fff0f2; color: var(--danger); border: 1px solid #ffd0d8; }
.alert-success { background: #f0faf3; color: var(--success); border: 1px solid #c0deca; }

/* ── STATUS PILLS ── */
.status { display: inline-block; padding: 0.2rem 0.7rem; font-size: 0.68rem; font-weight: 500; border-radius: var(--radius-pill); letter-spacing: 0.04em; }
.status-pending { background: #fff8e6; color: #9a7040; }
.status-processing { background: #e8f0ff; color: #4060b0; }
.status-shipped { background: #e8f0ff; color: #4060b0; }
.status-delivered { background: #f0faf3; color: var(--success); }
.status-refunded { background: #fff0f2; color: var(--danger); }

/* ── SKELETON ── */
.skel { background: linear-gradient(90deg,#f5dce8 25%,#f0d4e4 50%,#f5dce8 75%); background-size: 200% 100%; animation: sk 1.3s infinite; border-radius: var(--radius-sm); }
@keyframes sk { 0%{background-position:200% 0}100%{background-position:-200% 0} }
.skel-cover { aspect-ratio: 2/3; }
.skel-line { height: 12px; margin: 6px 0; }

/* ── BREADCRUMB ── */
.breadcrumb { font-size: 0.75rem; color: var(--muted); display: flex; gap: 0.4rem; align-items: center; padding: 0.8rem 2rem; max-width: 1200px; margin: 0 auto; }
.breadcrumb a { color: var(--muted); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--pink); }

/* ── FOOTER ── */
footer { background: var(--pink-mid); border-top: 1px solid var(--border); margin-top: 4rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 2.5rem 2rem; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; }
.f-logo { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 900; color: var(--dark); margin-bottom: 0.5rem; }
.f-logo em { font-style: italic; color: var(--pink); font-size: 0.72rem; display: block; font-weight: 700; letter-spacing: 0.08em; }
.f-desc { font-size: 0.8rem; color: var(--muted); line-height: 1.7; max-width: 220px; }
.f-col h4 { font-family: 'DM Sans', sans-serif; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.15em; font-weight: 600; color: var(--dark); margin-bottom: 0.8rem; }
.f-col ul { list-style: none; }
.f-col li { margin-bottom: 0.4rem; }
.f-col a { font-size: 0.8rem; color: var(--muted); transition: color 0.2s; }
.f-col a:hover { color: var(--pink); }
.footer-bot { border-top: 1px solid var(--border); padding: 1rem 2rem; text-align: center; font-size: 0.72rem; color: var(--muted); max-width: 1200px; margin: 0 auto; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .how-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .book-grid { grid-template-columns: repeat(2,1fr); }
  .section { padding: 2rem 1rem; }
}
