/* ==========================================================
   BOIKHOR BOOKSTORE STYLES (CLEAN DEMO STOREFRONT)
   Matching Reference: "বইঘর - মনেরঘর প্রকাশনী"
   ========================================================== */

:root {
  --bg-store: #0d0711;
  --bg-header: rgba(15, 8, 20, 0.95);
  --bg-card: #150c1b;
  --bg-card-hover: #1c1024;
  --border-card: #2c1634;

  --color-teal: #00e599;
  --color-teal-glow: rgba(0, 229, 153, 0.35);
  --color-teal-dark: #00b377;
  --color-cyan: #00d2d3;

  --text-white: #ffffff;
  --text-muted: #b8abbc;
  --text-dim: #7d6e81;

  --font-bn: 'Hind Siliguri', sans-serif;
  --max-w: 1200px;
}

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

body {
  font-family: var(--font-bn);
  background-color: var(--bg-store);
  color: var(--text-white);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Ambient Subtle Glows */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

.glow-center {
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 450px;
  background: radial-gradient(circle, rgba(0, 229, 153, 0.08) 0%, rgba(255, 0, 102, 0.04) 50%, transparent 75%);
}

/* Top Navbar */
.store-navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-header);
  border-bottom: 1px solid var(--border-card);
  backdrop-filter: blur(12px);
  padding: 14px 24px;
}

.nav-container {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.store-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-icon-box {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #00e599, #00b377);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0d0711;
  box-shadow: 0 0 15px var(--color-teal-glow);
}

.brand-title-wrap {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.45rem;
  font-weight: 800;
  color: #00e599;
  line-height: 1.1;
}

.brand-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Search Bar */
.nav-search {
  flex: 1;
  max-width: 480px;
  position: relative;
}

.search-input {
  width: 100%;
  background: #190e21;
  border: 1px solid #371a40;
  border-radius: 50px;
  padding: 10px 18px 10px 44px;
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.2s ease;
}

.search-input:focus {
  border-color: #00e599;
  box-shadow: 0 0 15px rgba(0, 229, 153, 0.25);
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cart-btn {
  background: #190e21;
  border: 1px solid #371a40;
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.cart-btn:hover {
  border-color: #00e599;
  transform: scale(1.05);
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #00e599;
  color: #0d0711;
  font-size: 0.72rem;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Main Container */
.store-main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 30px 20px 80px 20px;
  position: relative;
  z-index: 1;
}

/* Hero Section */
.store-hero {
  text-align: center;
  margin-bottom: 50px;
  padding: 20px 0;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 229, 153, 0.12);
  border: 1px solid rgba(0, 229, 153, 0.35);
  color: #00e599;
  padding: 5px 18px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-heading {
  font-size: 3.1rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
}

.heading-white {
  color: #ffffff;
}

.heading-teal {
  background: linear-gradient(135deg, #00e599 0%, #00b3cc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  max-width: 650px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Catalog Header */
.catalog-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  border-bottom: 1px solid #23122b;
  padding-bottom: 14px;
}

.catalog-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.55rem;
  font-weight: 700;
}

.catalog-count {
  font-size: 0.92rem;
  color: var(--text-dim);
}

/* Books Grid */
.books-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

.book-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 20px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s ease;
}

.book-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(0, 229, 153, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.card-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.tag-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.78rem;
  padding: 2px 10px;
  border-radius: 20px;
  color: #fff;
  font-weight: 600;
}

.tag-bestseller {
  background: rgba(245, 158, 11, 0.2);
  border-color: #f59e0b;
  color: #fbbf24;
}

.tag-new {
  background: rgba(0, 229, 153, 0.2);
  border-color: #00e599;
  color: #00e599;
}

.btn-wishlist {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-wishlist:hover {
  color: #ff4757;
  border-color: #ff4757;
  background: rgba(255, 71, 87, 0.1);
}

/* 3D Book Mockup */
.book-cover-area {
  height: 220px;
  background: #0f0714;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.mockup-book {
  width: 140px;
  height: 185px;
  border-radius: 4px 10px 10px 4px;
  box-shadow: 
    -6px 6px 15px rgba(0, 0, 0, 0.7),
    inset 4px 0 6px rgba(255, 255, 255, 0.2),
    inset -2px 0 5px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px 12px;
  text-align: center;
  position: relative;
  border-left: 6px solid rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease;
}

.book-card:hover .mockup-book {
  transform: scale(1.04) rotate(1deg);
}

.cover-green { background: linear-gradient(145deg, #1b4d3e, #0e2a22); }
.cover-teal { background: linear-gradient(145deg, #164e63, #082f49); }
.cover-dark { background: linear-gradient(145deg, #2d1933, #150b18); }
.cover-blue { background: linear-gradient(145deg, #1e3a8a, #0f172a); }
.cover-purple { background: linear-gradient(145deg, #581c87, #2e1065); }
.cover-gold { background: linear-gradient(145deg, #78350f, #451a03); }

.mock-spine-title {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.5px;
}

.mock-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.mock-brand {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Card Content */
.card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.book-category {
  display: inline-block;
  background: rgba(0, 229, 153, 0.1);
  color: #00e599;
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  width: fit-content;
  margin-bottom: 8px;
}

.book-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.book-author {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.book-rating-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  color: #fbbf24;
  margin-bottom: 16px;
}

.rating-count {
  color: var(--text-dim);
  font-size: 0.8rem;
}

/* Price & Buy Button */
.card-bottom-row {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #23122a;
  padding-top: 14px;
}

.book-pricing {
  display: flex;
  flex-direction: column;
}

.price-strike {
  font-size: 0.85rem;
  color: var(--text-dim);
  text-decoration: line-through;
}

.price-curr {
  font-size: 1.35rem;
  font-weight: 800;
  color: #00e599;
}

.btn-order {
  background: linear-gradient(135deg, #00e599, #00b377);
  border: none;
  border-radius: 10px;
  color: #0d0711;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 9px 18px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 229, 153, 0.3);
}

.btn-order:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 229, 153, 0.5);
}

/* Site Footer */
.store-footer {
  background: #09040c;
  border-top: 1px solid #1c0d23;
  padding: 40px 20px 30px 20px;
  text-align: center;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.footer-copy {
  color: var(--text-dim);
  font-size: 0.88rem;
  margin-bottom: 8px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 0.85rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #00e599;
}

/* Responsive */
@media (max-width: 992px) {
  .books-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 650px) {
  .hero-heading {
    font-size: 2.1rem;
  }

  .books-grid {
    grid-template-columns: 1fr;
  }

  .nav-search {
    display: none;
  }
}
