/* ============================================================
   0f. BOOK STORE PAGE
   ============================================================ */

/* ══════════════════════════════════════════════
   BOOK STORE PAGE STYLES (SAFE INTEGRATION)
══════════════════════════════════════════════ */

/* ── HERO ── */
.bs-hero { padding: 51px 0px 0px 0px; background: #1a1410; position: relative; overflow: hidden; min-height: 560px; display: flex; align-items: center; font-family: 'inter', sans-serif; }
.bs-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 900px 600px at 10% 60%, rgba(196,84,26,.18) 0%, transparent 65%), radial-gradient(ellipse 600px 400px at 85% 20%, rgba(212,160,23,.12) 0%, transparent 60%), radial-gradient(ellipse 500px 500px at 60% 90%, rgba(74,124,89,.10) 0%, transparent 60%); pointer-events: none; }
.bs-hero::after { content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 42%; background: rgba(255,255,255,.025); clip-path: polygon(8% 0, 100% 0, 100% 100%, 0% 100%); pointer-events: none; }
.bs-hero-inner { max-width: 1450px; margin: 0 auto; padding: 120px 40px 80px; display: grid; grid-template-columns: 1fr 480px; gap: 60px; align-items: center; position: relative; z-index: 2; width: 100%; }

.bs-hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(212,160,23,.15); border: 1px solid rgba(212,160,23,.3); color: #d4a017; font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; padding: 6px 14px; border-radius: 50px; margin-bottom: 24px; }
.bs-hero-h1 { font-family: 'Fraunces', serif; font-size: clamp(2.4rem, 4.5vw, 3.8rem); font-weight: 800; color: #fff; line-height: 1.08; margin-bottom: 20px; letter-spacing: -.02em; }
.bs-hero-h1 em { font-style: italic; font-weight: 300; color: rgba(255,255,255,.65); }
.bs-hero-desc { font-size: 17px; color: rgba(255,255,255,.55); line-height: 1.75; max-width: 500px; margin-bottom: 36px; }

.bs-hero-stats { display: flex; gap: 32px; margin-bottom: 40px; flex-wrap: wrap; }
.bs-h-stat { text-align: left; }
.bs-h-stat .bs-num { font-family: 'Fraunces', serif; font-size: 2rem; font-weight: 800; color: #fff; display: block; line-height: 1; }
.bs-h-stat .bs-lbl { font-size: 11px; color: rgba(255,255,255,.4); text-transform: uppercase; letter-spacing: 1px; margin-top: 3px; display: block; }

.bs-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.bs-btn-primary { display: inline-flex; align-items: center; gap: 9px; background: #c4541a; color: #fff; padding: 14px 28px; border-radius: 50px; font-size: 15px; font-weight: 600; text-decoration: none; transition: all .25s; border: 2px solid #c4541a; white-space: nowrap; }
.bs-btn-primary:hover { background: #b04a14; transform: translateY(-2px); box-shadow: 0 12px 30px rgba(196,84,26,.4); color: #fff; }
.bs-btn-secondary { display: inline-flex; align-items: center; gap: 9px; background: transparent; color: rgba(255,255,255,.7); padding: 14px 28px; border-radius: 50px; font-size: 15px; font-weight: 500; text-decoration: none; border: 1.5px solid rgba(255,255,255,.2); transition: all .25s; white-space: nowrap; }
.bs-btn-secondary:hover { background: rgba(255,255,255,.07); color: #fff; border-color: rgba(255,255,255,.4); }

.bs-hero-right { position: relative; height: 400px; display: flex; align-items: center; justify-content: center; }
.bs-book-showcase { position: relative; width: 100%; height: 100%; }
.bs-showcase-img { position: absolute; border-radius: 10px; box-shadow: 0 30px 70px rgba(0,0,0,.5); transition: all .9s cubic-bezier(.25,.8,.25,1); object-fit: cover; }
.bs-pos-main { width: 180px; height: 250px; left: 50%; top: 50%; transform: translate(-50%,-50%) rotate(-3deg); z-index: 5; opacity: 1; }
.bs-pos-left { width: 140px; height: 195px; left: 20%; top: 50%; transform: translate(-50%,-50%) rotate(-10deg); z-index: 3; opacity: .7; }
.bs-pos-right { width: 140px; height: 195px; left: 80%; top: 50%; transform: translate(-50%,-50%) rotate(8deg); z-index: 3; opacity: .7; }
.bs-pos-back { width: 120px; height: 168px; left: 65%; top: 30%; transform: translate(-50%,-50%) rotate(15deg); z-index: 1; opacity: .4; }
.bs-pos-back2 { width: 110px; height: 154px; left: 35%; top: 75%; transform: translate(-50%,-50%) rotate(-15deg); z-index: 1; opacity: .4; }

/* ── SEARCH BAR ── */
.bs-search-bar { background: #ffffff; border-bottom: 1px solid #e2d9cc; position: sticky; top: 80px; z-index: 300; box-shadow: 0 4px 20px rgba(26,20,16,.06); font-family: 'DM Sans', sans-serif;}
.bs-search-inner { max-width: 1450px; margin: 0 auto; padding: 14px 40px; display: flex; align-items: center; gap: 16px; }
.bs-search-wrap { flex: 1; position: relative; max-width: 560px; }
.bs-search-wrap i { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: #7a6e62; font-size: 15px; pointer-events: none; }
.bs-search-wrap input { width: 100%; padding: 12px 20px 12px 48px; border: 1.5px solid #e2d9cc; border-radius: 50px; font-family: 'DM Sans', sans-serif; font-size: 14px; color: #1a1410; background: #faf7f2; outline: none; transition: all .2s; }
.bs-search-wrap input::placeholder { color: #7a6e62; }
.bs-search-wrap input:focus { border-color: #c4541a; background: #fff; box-shadow: 0 0 0 3px rgba(196,84,26,.1); }

.bs-filter-pills { display: flex; gap: 8px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.bs-filter-pills::-webkit-scrollbar { display: none; }
.bs-fp-pill { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 50px; border: 1.5px solid #e2d9cc; font-size: 13px; font-weight: 500; color: #7a6e62; background: #faf7f2; cursor: pointer; white-space: nowrap; transition: all .2s; text-decoration: none; }
.bs-fp-pill:hover { border-color: #1a1410; color: #1a1410; }
.bs-fp-pill.active { background: #1a1410; color: #fff; border-color: #1a1410; }

.bs-sort-select { padding: 9px 14px; border: 1.5px solid #e2d9cc; border-radius: 50px; font-family: 'DM Sans', sans-serif; font-size: 13px; color: #1a1410; background: #faf7f2; cursor: pointer; outline: none; appearance: none; padding-right: 28px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%237a6e62' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }

/* ── LAYOUT ── */
.bs-layout { max-width: 1450px; margin: 0 auto; padding: 36px 0px 40px; display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: start; font-family: 'DM Sans', sans-serif; background: #ffffff; }

/* ── SIDEBAR ── */
.bs-sidebar { position: sticky; top: 150px; background: #ffffff; border: 1px solid #e2d9cc; border-radius: 14px; overflow: hidden; }
.bs-sidebar-section { padding: 20px 20px 14px; border-bottom: 1px solid #e2d9cc; }
.bs-sidebar-section:last-child { border-bottom: none; }
.bs-ss-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.8px; color: #b0a899; margin-bottom: 12px; display: block; }
.bs-sf-link { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; border-radius: 9px; font-size: 14px; color: #7a6e62; text-decoration: none; cursor: pointer; transition: all .18s; margin-bottom: 2px; font-weight: 500; }
.bs-sf-link:hover { background: #f0ebe0; color: #1a1410; text-decoration:none; }
.bs-sf-link.active { background: #1a1410; color: #fff; }
.bs-sf-link.active .bs-sf-count { background: rgba(255,255,255,.15); color: rgba(255,255,255,.8); }
.bs-sf-left { display: flex; align-items: center; gap: 9px; }
.bs-sf-icon { font-size: 15px; }
.bs-sf-count { font-family: 'JetBrains Mono', monospace; font-size: 10px; background: #f0ebe0; color: #7a6e62; padding: 2px 8px; border-radius: 20px; font-weight: 500; }
.bs-sidebar-ad { padding: 16px; border-top: 1px solid #e2d9cc; }

/* ── MAIN CONTENT ── */
.bs-featured-row { margin-bottom: 40px; }
.bs-section-label { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.bs-section-label h2 { font-family: 'Fraunces', serif; font-size: 1.35rem; font-weight: 700; color: #1a1410; display: flex; align-items: center; gap: 10px; margin:0;}
.bs-section-label a { font-size: 13px; color: #c4541a; text-decoration: none; font-weight: 600; display: flex; align-items: center; gap: 4px; }
.bs-section-label a:hover { text-decoration: underline; }
.bs-featured-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.bs-results-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.bs-results-title { font-family: 'Fraunces', serif; font-size: 1.5rem; font-weight: 700; color: #1a1410; }
.bs-results-count { font-size: 13px; color: #7a6e62; background: #f0ebe0; padding: 5px 14px; border-radius: 20px; font-weight: 500; }

/* ── BOOK CARDS ── */
.bs-book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 22px; transition: opacity .3s; }
.bs-book-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; background: #ffffff; border: 1px solid #e2d9cc; border-radius: 14px; overflow: hidden; transition: all .28s cubic-bezier(.25,.8,.25,1); }
.bs-book-card:hover { transform: translateY(-6px); box-shadow: 0 8px 40px rgba(26,20,16,.14); border-color: transparent; text-decoration:none; color:inherit; }

.bs-bc-cover { position: relative; aspect-ratio: 2/3; background: #f0ebe0; overflow: hidden; }
.bs-bc-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.25,.8,.25,1); display: block; }
.bs-book-card:hover .bs-bc-cover img { transform: scale(1.08); }

.bs-bc-overlay { position: absolute; inset: 0; background: rgba(26,20,16,.55); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .3s; backdrop-filter: blur(2px); }
.bs-book-card:hover .bs-bc-overlay { opacity: 1; }
.bs-bc-inner { text-align: center; }
.bs-overlay-btn { display: inline-block; background: #fff; color: #1a1410; padding: 9px 20px; border-radius: 50px; font-size: 13px; font-weight: 700; transform: translateY(10px); transition: transform .3s .05s; }
.bs-book-card:hover .bs-overlay-btn { transform: translateY(0); }

.bs-bc-featured { position: absolute; top: 10px; left: 10px; z-index: 3; }
.bs-bc-featured span { background: #d4a017; color: #1a1410; font-size: 10px; font-weight: 800; padding: 4px 10px; border-radius: 6px; text-transform: uppercase; letter-spacing: .5px; }
.bs-bc-price { position: absolute; top: 10px; right: 10px; background: rgba(255,255,255,.95); color: #1a1410; font-family: 'Fraunces', serif; font-size: 13px; font-weight: 800; padding: 4px 12px; border-radius: 20px; z-index: 3; backdrop-filter: blur(4px); box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.bs-bc-price.free { background: #4a7c59; color: #fff; }
.bs-bc-price.view { background: #f0ebe0; color: #7a6e62; }

.bs-bc-body { padding: 14px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.bs-bc-meta { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.bs-bc-cat { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: #c4541a; }
.bs-bc-age { font-size: 10px; background: rgba(74,124,89,.1); color: #4a7c59; padding: 2px 8px; border-radius: 20px; font-weight: 600; }
.bs-bc-title { font-family: 'Fraunces', serif; font-size: 15px; font-weight: 600; color: #1a1410; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 38px; margin:0;}
.bs-bc-author { display: flex; align-items: center; gap: 7px; margin-top: auto; padding-top: 8px; border-top: 1px solid #e2d9cc; }
.bs-bc-avatar { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; border: 1.5px solid #e2d9cc; }
.bs-bc-author span { font-size: 12px; color: #7a6e62; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bs-bc-formats { display: flex; gap: 5px; margin-top: 4px; }
.bs-fmt-dot { font-size: 13px; opacity: .7; }

/* ── EXTRAS ── */
.bs-empty-state { grid-column: 1 / -1; text-align: center; padding: 80px 30px; }
.bs-empty-state .bs-es-icon { font-size: 60px; margin-bottom: 16px; display: block; }
.bs-empty-state h3 { font-family: 'Fraunces', serif; font-size: 1.4rem; color: #1a1410; margin-bottom: 8px; }
.bs-empty-state p  { font-size: 15px; color: #7a6e62; }

#bs-loader { display: none; grid-column: 1 / -1; text-align: center; padding: 60px; }
.bs-spinner-ring { width: 36px; height: 36px; border: 3px solid #f0ebe0; border-top-color: #c4541a; border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto; }

.bs-pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 48px; flex-wrap: wrap; }
.bs-pg-btn { min-width: 40px; height: 40px; padding: 0 14px; border: 1.5px solid #e2d9cc; border-radius: 10px; background: #ffffff; color: #1a1410; font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 600; cursor: pointer; transition: all .18s; display: flex; align-items: center; justify-content: center; gap: 5px; }
.bs-pg-btn:hover { border-color: #c4541a; color: #c4541a; }
.bs-pg-btn.active { background: #1a1410; color: #fff; border-color: #1a1410; }

.bs-seo-block { background: #ffffff; border: 1px solid #e2d9cc; border-radius: 14px; padding: 36px 40px; margin-top: 48px; }
.bs-seo-block h2 { font-family: 'Fraunces', serif; font-size: 1.2rem; color: #1a1410; margin-bottom: 14px; }
.bs-seo-block p { font-size: 14px; color: #7a6e62; line-height: 1.8; margin-bottom: 12px; }
.bs-seo-block p:last-child { margin-bottom: 0; }

.bs-promo-strip { background: linear-gradient(90deg, #c4541a, #e8682a); padding: 14px 40px; display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; text-align: center; font-family: 'DM Sans', sans-serif;}
.bs-promo-strip span { color: rgba(255,255,255,.85); font-size: 14px; }
.bs-promo-strip strong { color: #fff; }
.bs-promo-strip a { background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.35); color: #fff; padding: 6px 18px; border-radius: 50px; font-size: 13px; font-weight: 700; text-decoration: none; transition: background .2s; white-space: nowrap; }
.bs-promo-strip a:hover { background: rgba(255,255,255,.25); }

.bs-tag-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.bs-tag-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 16px; border: 1.5px solid #e2d9cc; border-radius: 50px; font-size: 13px; font-weight: 500; color: #7a6e62; background: #ffffff; cursor: pointer; transition: all .18s; text-decoration: none; }
.bs-tag-chip:hover { border-color: #1a1410; color: #1a1410; background: #f0ebe0; }
.bs-tag-chip.active { background: #1a1410; color: #fff; border-color: #1a1410; }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
    .bs-layout { grid-template-columns: 220px 1fr; padding: 28px 24px 60px; }
    .bs-featured-grid { grid-template-columns: repeat(3, 1fr); }
    .bs-hero-inner { padding: 80px 24px 60px; gap: 40px; }
}
@media (max-width: 860px) {
    .bs-layout { grid-template-columns: 1fr; padding: 20px 16px 60px; }
    .bs-hero-inner { grid-template-columns: 1fr; }
    .bs-hero-right { display: none; }
    .bs-hero { min-height: auto; }
    .bs-hero-inner { padding: 90px 20px 50px; }
    .bs-search-inner { padding: 12px 16px; flex-wrap: wrap; gap: 10px; }
    .bs-search-wrap { max-width: 100%; width: 100%; }
    .bs-sidebar { position: static; border-radius: 14px; overflow-x: auto; }
    .bs-sidebar-section { display: flex; flex-direction: row; align-items: center; gap: 6px; border: none; padding: 10px 16px; overflow-x: auto; scrollbar-width: none; }
    .bs-sidebar-section::-webkit-scrollbar { display: none; }
    .bs-ss-label { display: none; }
    .bs-sf-link { padding: 7px 14px; border-radius: 50px; border: 1.5px solid #e2d9cc; white-space: nowrap; background: #faf7f2; }
    .bs-sf-link:hover { background: #f0ebe0; }
    .bs-sf-link.active { background: #1a1410; }
    .bs-sf-count { display: none; }
    .bs-sidebar-ad { display: none; }
    .bs-featured-grid { grid-template-columns: repeat(2, 1fr); }
    .bs-book-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .bs-promo-strip { padding: 12px 16px; }
    .bs-seo-block { padding: 24px 20px; }
}
@media (max-width: 480px) {
    .bs-hero-h1 { font-size: 2rem; }
    .bs-hero-stats { gap: 20px; }
    .bs-book-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .bs-featured-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .bs-bc-body { padding: 10px; }
    .bs-bc-title { font-size: 13px; }
}


/* ============================================================
