/* ============================================================
   AUTHORSTOREFRONT.COM — Combined Stylesheet
   Covers: Home Page + Product Detail Page
   ============================================================ */

   :root {
    --amber-50:  #FAEEDA;
    --amber-100: #FAC775;
    --amber-200: #EF9F27;
    --amber-600: #854F0B;
    --amber-800: #633806;
    --green-50:  #EAF3DE;
    --green-700: #3B6D11;
    --night-900: #0A0F1E;
    --night-100: #A8BAD8;
    --bg:        #FDFCF8;
    --bg-warm:   #F7F5F0;
    --border-soft:     rgba(60,55,40,0.12);
    --border-med:      rgba(60,55,40,0.22);
    --text-primary:    #1C1B18;
    --text-secondary:  #5F5E5A;
    --text-muted:      #888780;
    --radius:    8px;
    --radius-lg: 14px;
  }
  
  /* ── BASE ── */
  body { font-family: 'Source Sans 3', sans-serif; background: var(--bg); color: var(--text-primary); line-height: 1.6; }
  .font-serif      { font-family: 'Playfair Display', serif; }
  .font-serif-body { font-family: 'Libre Baskerville', serif; }
  .text-amber      { color: var(--amber-600) !important; }
  .bg-warm         { background: var(--bg-warm) !important; }
  .border-soft     { border-color: var(--border-soft) !important; }
  
  /* ── NAVBAR ── */
  .navbar { background: rgba(253,252,248,0.97) !important; backdrop-filter: blur(12px); border-bottom: 1px solid var(--border-soft); }
  .navbar-brand { font-family: 'Playfair Display', serif; font-size: 1.25rem; font-weight: 700; color: var(--text-primary) !important; }
  .navbar-brand em { font-style: italic; color: var(--amber-600); }
  .nav-link { font-size: 0.85rem; color: var(--text-secondary) !important; }
  .nav-link:hover { color: var(--text-primary) !important; }
  .navbar-toggler { border-color: var(--border-soft); }
  
  /* ── BREADCRUMBS ── */
  .breadcrumb-item a { font-size: 0.82rem; color: var(--text-muted); text-decoration: none; }
  .breadcrumb-item a:hover { color: var(--amber-600); }
  .breadcrumb-item.active {  font-weight: 500; }
  .breadcrumb-item + .breadcrumb-item::before { color: rgba(60,55,40,0.25); }
  
  /* ── BUTTONS ── */
  .btn-amber         { background: var(--amber-600); color: var(--amber-100); border: 1px solid var(--amber-800); font-weight: 600; }
  .btn-amber:hover   { background: var(--amber-800); color: var(--amber-100); }
  .btn-amber-outline { background: transparent; color: var(--amber-600); border: 1px solid var(--amber-600); font-weight: 600; }
  .btn-amber-outline:hover { background: var(--amber-50); color: var(--amber-800); }
  
  /* ── SECTION TITLES ── */
  .section-title    { font-family: 'Playfair Display', serif; font-size: clamp(1.4rem, 4vw, 1.8rem); font-weight: 700; letter-spacing: -0.3px; }
  .section-title em { font-style: italic; color: var(--amber-600); }
  .eyebrow          { font-size: 0.68rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--amber-600); }
  
  /* ── HERO (HOME) ── */
  .hero-section   { background: var(--bg-warm); border-bottom: 1px solid var(--border-soft); }
  .hero-eyebrow   { font-size: 0.7rem; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--amber-600); }
  .hero-title     { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 6vw, 3.5rem); font-weight: 700; letter-spacing: -1px; line-height: 1.08; }
  .hero-title em  { font-style: italic; color: var(--amber-600); }
  .hero-subtitle  { font-family: 'Libre Baskerville', serif; font-style: italic; font-size: 1rem; color: var(--text-secondary); line-height: 1.75; }
  
  /* ── HERO (DETAIL PAGE) ── */
  .book-hero  { background: var(--night-900); position: relative; overflow: hidden; }
  .hero-glow  { position: absolute; top: -80px; left: 50%; transform: translateX(-50%); width: 500px; height: 350px; background: radial-gradient(ellipse, rgba(132,79,11,0.28) 0%, transparent 70%); pointer-events: none; }
  .hero-grid  { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px); background-size: 44px 44px; pointer-events: none; }
  .hero-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, rgba(253,252,248,0.45) 0%, transparent 100%);
    pointer-events: none;
    z-index: 2;
  }
  
  /* ── BOOK COVER (DETAIL) ── */
  .cover-wrap         { position: relative; filter: drop-shadow(0 28px 44px rgba(0,0,0,0.65)) drop-shadow(0 6px 14px rgba(0,0,0,0.45)); }
  .cover-wrap::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 14px; background: linear-gradient(to right, rgba(0,0,0,0.45), rgba(255,255,255,0.07), transparent); border-radius: 4px 0 0 4px; z-index: 1; }
  .cover-wrap::after  { content: ''; position: absolute; right: -7px; top: 4px; bottom: 4px; width: 7px; background: repeating-linear-gradient(to bottom, rgba(200,190,170,0.55) 0px, rgba(180,170,150,0.35) 1px, rgba(200,190,170,0.45) 2px); border-radius: 0 2px 2px 0; }
  .book-img { width: 100%; max-width: 240px; border-radius: 4px 10px 10px 4px; display: block; }
  
  /* ── SONG PLAYER ── */
  .song-player  { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.11); border-radius: var(--radius-lg); }
  .song-eyebrow { font-size: 0.65rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--amber-100); opacity: 0.75; }
  .song-name    { font-family: 'Playfair Display', serif; font-size: 0.85rem; font-weight: 600; color: #fff; line-height: 1.3; }
  .play-btn     { width: 40px; height: 40px; border-radius: 50%; background: var(--amber-600); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all 0.15s; font-size: 0.9rem; color: var(--amber-100); }
  .play-btn:hover, .play-btn.playing { background: var(--amber-200); }
  .prog-bg  { width: 100%; height: 4px; background: rgba(255,255,255,0.14); border-radius: 2px; cursor: pointer; }
  .prog-fill { height: 100%; background: var(--amber-100); border-radius: 2px; width: 0%; transition: width 0.5s linear; }
  .t-label  { font-size: 0.65rem; color: rgba(255,255,255,0.38); }
  .vol-btn  { font-size: 0.85rem; color: rgba(255,255,255,0.45); cursor: pointer; background: none; border: none; padding: 0; }
  
  /* ── GENRE TAG (DETAIL) ── */
  .genre-tag { display: inline-flex; align-items: center; gap: 5px; background: rgba(132,79,11,0.3); color: var(--amber-100); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; padding: 5px 12px; border-radius: 20px; border: 1px solid rgba(250,199,117,0.22); }
  
  /* ── BOOK TITLE HERO (DETAIL) ── */
  .book-title-hero    { font-family: 'Playfair Display', serif; font-size: clamp(2.2rem, 6vw, 3.8rem); font-weight: 700; color: #fff; letter-spacing: -1.5px; line-height: 1.05; }
  .book-title-hero em { font-style: italic; color: var(--amber-100); }
  .book-by            { font-family: 'Libre Baskerville', serif; font-style: italic; font-size: 0.95rem; color: var(--night-100); }
  .tagline-quote      { font-family: 'Playfair Display', serif; font-style: italic; font-size: 1.15rem; color: rgba(255,255,255,0.68); border-left: 3px solid var(--amber-600); padding-left: 16px; line-height: 1.5; }
  .stars-hero { color: var(--amber-200); letter-spacing: 2px; }
  .star-ct    { font-size: 0.82rem; color: var(--night-100); }
  
  /* ── ORDER BOX (DETAIL) ── */
  .order-box  { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.13); border-radius: var(--radius-lg); backdrop-filter: blur(6px); }
  .price-lg   { font-family: 'Playfair Display', serif; font-size: 2.4rem; font-weight: 700; color: #fff; }
  .price-note { font-size: 0.8rem; color: var(--night-100); }
  .signed-row         { background: rgba(132,79,11,0.22); border: 1px solid rgba(250,199,117,0.2); border-radius: 10px; cursor: pointer; }
  .signed-row input   { accent-color: var(--amber-200); }
  .signed-ttl { font-size: 0.88rem; font-weight: 600; color: #fff; }
  .signed-sub { font-size: 0.72rem; color: var(--night-100); }
  .signed-px  { font-size: 0.88rem; font-weight: 700; color: var(--amber-100); }
  .btn-order        { background: var(--amber-600); color: var(--amber-100); border: 2px solid var(--amber-600); font-weight: 700; font-size: 1rem; transition: all 0.15s; }
  .btn-order:hover  { background: var(--amber-800); border-color: var(--amber-800); color: var(--amber-100); }
  .btn-wish         { width: 48px; height: 48px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); border-radius: 10px; cursor: pointer; font-size: 1.3rem; color: rgba(255,255,255,0.6); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all 0.15s; }
  .btn-wish:hover   { background: rgba(255,255,255,0.14); }
  .btn-wish.saved   { color: #e05252; }
  .ship-ok          { font-size: 0.78rem; color: var(--night-100); }
  .ship-ok::before  { content: '✓'; color: var(--amber-100); font-weight: 700; margin-right: 6px; }
  
  /* ── TABS ── */
  .nav-tabs { border-bottom: 1px solid var(--border-soft); }
  .nav-tabs .nav-link        { font-size: 0.88rem; font-weight: 600; color: var(--text-muted); border: none; border-bottom: 2px solid transparent; padding: 12px 20px; margin-bottom: -1px; transition: all 0.15s; }
  .nav-tabs .nav-link.active { color: var(--amber-600); border-bottom-color: var(--amber-600); background: transparent; }
  .nav-tabs .nav-link:hover  { color: var(--text-primary); }
  
  /* ── PROSE / BODY TEXT ── */
  .sec-title      { font-family: 'Playfair Display', serif; font-size: clamp(1.3rem, 4vw, 1.75rem); font-weight: 700; letter-spacing: -0.3px; }
  .sec-title em   { font-style: italic; color: var(--amber-600); }
  .body-prose     { font-family: 'Libre Baskerville', serif; font-size: 0.9rem; line-height: 1.85; color: var(--text-secondary); }
  .mood-tag       { background: var(--bg-warm); border: 1px solid var(--border-soft); border-radius: 20px; padding: 5px 14px; font-size: 0.75rem; color: var(--text-secondary); }
  
  /* ── BOOK DETAILS SIDEBAR ── */
  .deets-card { background: var(--bg-warm); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); }
  .dr         { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--border-soft); font-size: 0.82rem; }
  .dr:last-child { border-bottom: none; }
  .dk { color: var(--text-muted); }
  .dv { color: var(--text-primary); font-weight: 500; text-align: right; }
  
  /* ── BRAD CARD (HOME) ── */
  .brad-card   { background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius-lg); }
  .brad-avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--amber-50); border: 2px solid var(--amber-100); font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 700; color: var(--amber-600); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
  .brad-name   { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 600; }
  .brad-role   { font-size: 0.75rem; color: var(--text-muted); }
  .brad-quote  { font-family: 'Libre Baskerville', serif; font-style: italic; font-size: 0.82rem; color: var(--text-secondary); border-left: 3px solid var(--amber-100); padding-left: 12px; line-height: 1.7; }
  
  /* ── AUTHOR CARD (DETAIL) ── */
  .auth-card { background: var(--bg-warm); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); }
  .auth-av   { width: 68px; height: 68px; border-radius: 50%; background: var(--amber-50); border: 2px solid var(--amber-100); font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700; color: var(--amber-600); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
  .auth-bio  { font-family: 'Libre Baskerville', serif; font-style: italic; font-size: 0.88rem; line-height: 1.75; color: var(--text-secondary); }
  
  /* ── VET BADGE (SHARED) ── */
  .vet-badge { display: inline-flex; align-items: center; gap: 5px; background: var(--green-50); color: var(--green-700); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.5px; padding: 4px 12px; border-radius: 20px; border: 1px solid rgba(59,109,17,0.2); }
  
  /* ── STAT CARDS (HOME) ── */
  .stat-card  { background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius); }
  .stat-num   { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700; color: var(--amber-600); }
  .stat-label { font-size: 0.7rem; color: var(--text-muted); }
  
  /* ── WHY SECTION (HOME) ── */
  .why-section { background: var(--bg-warm); border-bottom: 1px solid var(--border-soft); }
  .why-card    { background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius-lg); height: 100%; }
  .why-icon    { font-size: 1.6rem; }
  .why-title   { font-family: 'Playfair Display', serif; font-size: 1rem; font-weight: 600; }
  
  /* ── BOOK CARDS (HOME) ── */
  .book-card          { background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius-lg); overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; height: 100%; display: flex; flex-direction: column; }
  .book-card:hover    { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(100,80,40,0.10); }
  .book-cover         { width: 100%; aspect-ratio: 2/3; object-fit: cover; display: block; }
  .book-badge         { position: absolute; top: 10px; left: 10px; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.5px; padding: 4px 9px; border-radius: 4px; text-transform: uppercase; }
  .badge-featured     { background: var(--amber-600); color: var(--amber-100); }
  .badge-pick         { background: var(--text-primary); color: #fff; }
  .badge-new          { background: var(--green-700); color: var(--green-50); }
  .book-price         { font-family: 'Playfair Display', serif; font-size: 1.25rem; font-weight: 700; color: var(--amber-600); }
  .book-title-text    { font-family: 'Playfair Display', serif; font-size: 0.95rem; font-weight: 600; line-height: 1.3; }
  .book-desc          { font-size: 0.78rem; color: var(--text-secondary); line-height: 1.6; }
  .add-btn            { background: transparent; border: 1px solid var(--border-med); color: var(--text-primary); font-size: 0.78rem; font-weight: 600; transition: all 0.15s; }
  .add-btn:hover      { background: var(--amber-600); color: var(--amber-100); border-color: var(--amber-600); }
  .signed-label       { font-size: 0.75rem; color: var(--text-secondary); cursor: pointer; }
  .signed-label input { accent-color: var(--amber-600); }
  
  /* ── BUNDLES (HOME) ── */
  .bundle-card              { background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius-lg); height: 100%; }
  .bundle-card.featured-bundle { border: 2px solid var(--amber-100); }
  .bundle-badge-pill        { background: var(--amber-50); color: var(--amber-600); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.4px; padding: 4px 12px; border-radius: 20px; }
  .bundle-price             { font-family: 'Playfair Display', serif; font-size: 1.75rem; font-weight: 700; color: var(--amber-600); }
  .bundle-savings           { font-size: 0.75rem; font-weight: 600; color: var(--green-700); }
  
  /* ── HOW IT WORKS (HOME) ── */
  .how-section     { background: var(--bg-warm); border-bottom: 1px solid var(--border-soft); }
  .step-num        { font-family: 'Playfair Display', serif; font-size: 3rem; font-weight: 700; color: #ffb232; line-height: 1; }
  .step-title      { font-family: 'Playfair Display', serif; font-size: 1.05rem; font-weight: 600; }
  .step-card       { border-right: 1px solid var(--border-soft); }
  .step-card:last-child { border-right: none; }
  
  /* ── AUTHOR BANNER (HOME) ── */
  .author-banner          { background: var(--amber-600); position: relative; overflow: hidden; }
  .author-banner::before  { content: ''; position: absolute; top: -60px; right: -60px; width: 300px; height: 300px; border-radius: 50%; background: rgba(255,255,255,0.06); pointer-events: none; }
  .author-banner-title    { font-family: 'Playfair Display', serif; font-size: clamp(1.6rem, 5vw, 2.4rem); font-weight: 700; color: #fff; line-height: 1.1; }
  .author-banner-title em { font-style: italic; color: var(--amber-100); }
  .author-banner-body     { font-family: 'Libre Baskerville', serif; font-style: italic; font-size: 0.88rem; color: rgba(255,255,255,0.85); line-height: 1.8; }
  .detail-card-dark       { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15); border-radius: 10px; }
  .detail-card-dark .title { font-size: 0.9rem; font-weight: 600; color: #fff; }
  .detail-card-dark .sub   { font-size: 0.75rem; color: rgba(255,255,255,0.6); }
  .detail-icon { width: 38px; height: 38px; background: rgba(255,255,255,0.15); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
  
  /* ── MISSION STRIP (HOME) ── */
  .mission-icon  { width: 40px; height: 40px; background: var(--amber-50); border: 1px solid var(--amber-100); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
  .mission-title { font-family: 'Playfair Display', serif; font-size: 1.05rem; font-weight: 600; }
  
  /* ── CLOSING (HOME) ── */
  .closing-section { background: var(--bg-warm); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
  .closing-quote   { font-family: 'Playfair Display', serif; font-style: italic; font-size: clamp(1.1rem, 3vw, 1.4rem); color: var(--text-primary); line-height: 1.5; }
  
  /* ── REVIEWS (DETAIL) ── */
  .rating-num  { font-family: 'Playfair Display', serif; font-size: 4rem; font-weight: 700; line-height: 1; }
  .stars-amber { color: var(--amber-200); letter-spacing: 2px; }
  .bar-bg      { height: 6px; background: var(--border-soft); border-radius: 3px; }
  .bar-fill    { height: 100%; background: var(--amber-200); border-radius: 3px; }
  .rev-card    { background: var(--bg-warm); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); }
  .rev-av      { width: 36px; height: 36px; border-radius: 50%; background: var(--amber-50); font-size: 0.78rem; font-weight: 700; color: var(--amber-600); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
  .ver-badge   { font-size: 0.7rem; color: var(--green-700); font-weight: 600; background: var(--green-50); padding: 2px 8px; border-radius: 4px; white-space: nowrap; }
  .rev-text    { font-family: 'Libre Baskerville', serif; font-style: italic; font-size: 0.88rem; line-height: 1.75; color: var(--text-secondary); }
  
  /* ── MORE FROM SHELF (DETAIL) ── */
  .more-sec          { background: var(--bg-warm); border-top: 1px solid var(--border-soft); }
  .more-card         { background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius-lg); overflow: hidden; transition: all 0.15s; cursor: pointer; text-decoration: none; color: inherit; display: flex; }
  .more-card:hover   { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(100,80,40,0.08); color: inherit; }
  .more-spine        { width: 56px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; writing-mode: vertical-rl; font-size: 0.6rem; font-weight: 700; color: rgba(255,255,255,0.65); letter-spacing: 1px; }
  .more-ttl          { font-family: 'Playfair Display', serif; font-size: 0.88rem; font-weight: 600; line-height: 1.3; }
  .more-genre        { font-size: 0.72rem; color: var(--text-muted); }
  .more-px           { font-size: 0.95rem; font-weight: 700; color: var(--amber-600); }
  
  /* ── FOOTER (SHARED) ── */
  footer, .ft          { background: #1C1B18; color: rgba(255,255,255,0.7); }
  .footer-logo em, .ft-logo em { font-style: italic; color: var(--amber-100); }
  .footer-link, .ft-link       { font-size: 0.8rem; color: rgba(255,255,255,0.55); text-decoration: none; }
  .footer-link:hover, .ft-link:hover { color: #fff; }
  .footer-heading  { font-size: 0.68rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,0.35); }
  .footer-copy, .ft-copy { font-size: 0.72rem; color: rgba(255,255,255,0.3); }
  .ft-logo         { font-family: 'Playfair Display', serif; font-size: 1rem; font-weight: 700; color: #fff; }
  
  /* ── ANIMATIONS ── */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .fade-up   { animation: fadeUp 0.5s ease both; }
  .fade-up-1 { animation-delay: 0.08s; }
  .fade-up-2 { animation-delay: 0.16s; }
  .fade-up-3 { animation-delay: 0.24s; }
  .fade-up-4 { animation-delay: 0.32s; }
  
  @keyframes floatIn {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
  }
  .fi  { animation: floatIn 0.7s cubic-bezier(0.22,1,0.36,1) both; }
  .fi2 { animation: floatIn 0.7s 0.15s cubic-bezier(0.22,1,0.36,1) both; }
  
  @keyframes slideR {
    from { opacity: 0; transform: translateX(18px); }
    to   { opacity: 1; transform: translateX(0); }
  }
  .sr { animation: slideR 0.6s 0.1s cubic-bezier(0.22,1,0.36,1) both; }