/* Premium book-library UI v2 — inspired by modern ebook catalogs */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --lib-bg: #f4f6f9;
  --lib-surface: #ffffff;
  --lib-text: #0f172a;
  --lib-muted: #64748b;
  --lib-border: #e2e8f0;
  --lib-accent: #0f766e;
  --lib-accent-hover: #0d9488;
  --lib-accent-soft: #ecfdf5;
  --lib-hero-from: #0f172a;
  --lib-hero-to: #134e4a;
  --lib-radius: 14px;
  --lib-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.06);
  --lib-shadow-hover: 0 12px 32px rgba(15, 23, 42, 0.12);
}

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif !important;
  background: var(--lib-bg) !important;
  color: var(--lib-text);
  -webkit-font-smoothing: antialiased;
}

.wrapper,
.waraper {
  background: var(--lib-bg);
}

/* ── Header (both theme variants) ── */
#wn__header.header__area,
.header-area {
  position: sticky !important;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--lib-border);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

#wn__header.header__absolute {
  position: sticky !important;
}

.header__sidebar__right .shop_search,
.header__sidebar__right .wishlist {
  display: none !important;
}

.logo a,
.logo-project,
.header-area .logo a {
  font-weight: 700 !important;
  font-size: 1.05rem !important;
  color: var(--lib-text) !important;
  text-decoration: none !important;
  letter-spacing: -0.02em;
}

.meninmenu,
.main-menu .menu,
.menu {
  gap: 6px !important;
  list-style: none;
  padding: 0;
  margin: 0;
}

.meninmenu li a,
.main-menu .menu li a,
.menu li a {
  display: inline-block;
  padding: 8px 14px !important;
  border-radius: 999px;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: var(--lib-muted) !important;
  text-decoration: none !important;
  transition: background 0.15s, color 0.15s;
}

.meninmenu li a:hover,
.main-menu .menu li a:hover,
.menu li a:hover {
  background: var(--lib-accent-soft) !important;
  color: var(--lib-accent) !important;
}

/* ── Hero ── */
.site-hero {
  background: linear-gradient(145deg, var(--lib-hero-from) 0%, var(--lib-hero-to) 55%, #115e59 100%);
  color: #fff;
  padding: 56px 0 52px;
  position: relative;
  overflow: hidden;
}

.site-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(45, 212, 191, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 10% 80%, rgba(59, 130, 246, 0.12) 0%, transparent 40%);
  pointer-events: none;
}

.site-hero .container {
  position: relative;
  z-index: 1;
}

.site-hero h1,
.site-hero .title__be--2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem) !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  margin: 0 0 14px !important;
  color: #fff !important;
  letter-spacing: -0.03em;
  max-width: 820px;
}

.site-hero__badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.site-hero__lead {
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin: 0 0 10px;
  opacity: 0.92;
  max-width: 680px;
  line-height: 1.55;
  font-weight: 400;
}

.site-hero__text {
  margin: 0 0 28px;
  max-width: 680px;
  line-height: 1.6;
  opacity: 0.78;
  font-size: 15px;
}

.site-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.site-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 32px;
  max-width: 720px;
}

.site-trust__item {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.4;
  opacity: 0.95;
}

.site-trust__item strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
  color: #99f6e4;
}

/* ── Buttons ── */
.site-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none !important;
  border: 2px solid transparent;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  cursor: pointer;
}

.site-btn:hover {
  transform: translateY(-1px);
}

.site-btn--primary {
  background: #fff;
  color: var(--lib-hero-from);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.site-btn--primary:hover {
  background: #f8fafc;
  color: var(--lib-hero-from);
}

.site-btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.site-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.site-btn--download {
  width: 100%;
  padding: 10px 14px;
  font-size: 13px;
  background: var(--lib-accent);
  color: #fff;
  border-radius: 8px;
  margin-top: auto;
}

.site-btn--download:hover {
  background: var(--lib-accent-hover);
  color: #fff;
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.35);
}

/* ── Sections ── */
.site-section {
  padding: 52px 0;
}

.site-section--alt {
  background: var(--lib-surface);
  border-top: 1px solid var(--lib-border);
  border-bottom: 1px solid var(--lib-border);
}

.site-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--lib-border);
}

.site-section__head h1,
.site-section__head h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--lib-text);
  position: relative;
  padding-left: 16px;
}

.site-section__head h1::before,
.site-section__head h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.15em;
  bottom: 0.15em;
  width: 4px;
  border-radius: 4px;
  background: var(--lib-accent);
}

.site-section__head p {
  margin: 0;
  color: var(--lib-muted);
  font-size: 14px;
  line-height: 1.5;
  flex: 1 1 100%;
  padding-left: 16px;
}

.site-section__tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--lib-accent);
  background: var(--lib-accent-soft);
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ── Book grid & cards ── */
.book-grid {
  margin: 0 -10px;
}

.book-grid__item {
  padding: 10px;
  margin-bottom: 4px;
}

.book-card {
  background: var(--lib-surface);
  border: 1px solid var(--lib-border);
  border-radius: var(--lib-radius);
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--lib-shadow);
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

.book-card:hover {
  box-shadow: var(--lib-shadow-hover);
  transform: translateY(-3px);
  border-color: #cbd5e1;
}

.book-card__cover {
  display: block;
  position: relative;
  background: linear-gradient(160deg, #e2e8f0 0%, #f1f5f9 100%);
  aspect-ratio: 2 / 3;
  overflow: hidden;
}

.book-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.book-card:hover .book-card__cover img {
  transform: scale(1.03);
}

.book-card__format {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.82);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.book-card__body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.book-card__title {
  font-size: 14px;
  line-height: 1.4;
  margin: 0;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
}

.book-card__title a {
  color: var(--lib-text);
  text-decoration: none;
}

.book-card__title a:hover {
  color: var(--lib-accent);
}

.book-card__author,
.book-card__category {
  font-size: 12px;
  color: var(--lib-muted);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.book-card__category a {
  color: var(--lib-accent);
  text-decoration: none;
}

.book-card__category a:hover {
  text-decoration: underline;
}

.book-card__desc {
  font-size: 12px;
  line-height: 1.45;
  color: var(--lib-muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Footer polish ── */
#wn__footer,
.footer__area,
footer {
  margin-top: 0 !important;
}

#wn__footer .footer__menu a,
.footer__area a {
  color: var(--lib-muted) !important;
}

/* ── Legacy fixes ── */
.slider-area:not(.owl-loaded) .slide {
  display: block !important;
}

.slider-area .slide.fullscreen {
  min-height: auto !important;
  padding: 48px 0;
}

.single-price-table.mb-100 {
  margin-bottom: 24px !important;
}

.product.product__style--3 {
  margin-bottom: 16px;
}

/* Hide broken legacy sliders on homepage when book-grid present */
.best-seel-area .slider.center:not(.slick-initialized) {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* Product page tweaks */
.page-section .title,
.product-details .title {
  font-weight: 700 !important;
  letter-spacing: -0.02em;
}

.btn-prd,
.btn.fitness-btn,
.btn.default-btn {
  border-radius: 8px !important;
  font-weight: 600 !important;
}

/* ── Product & category pages ── */
.ht__bradcaump__area {
  display: none !important;
}

.maincontent.bg--white,
.wn__faq__area.bg--white {
  background: var(--lib-bg) !important;
  padding-top: 36px !important;
  padding-bottom: 48px !important;
}

.wn__single__product {
  background: var(--lib-surface);
  border: 1px solid var(--lib-border);
  border-radius: var(--lib-radius);
  box-shadow: var(--lib-shadow);
  padding: clamp(20px, 4vw, 36px);
  margin-bottom: 28px;
}

.product__info__main h1,
.wn__accordeion__content h1 {
  font-size: clamp(1.45rem, 3vw, 2rem) !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em;
  line-height: 1.25 !important;
  color: var(--lib-text);
  margin-bottom: 12px !important;
}

.product__info__main > p,
.wn__accordeion__content h2 {
  color: var(--lib-muted);
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 16px;
}

.product-reviews-summary,
.rating-summary {
  display: none !important;
}

.product__overview p {
  color: var(--lib-muted);
  line-height: 1.65;
  font-size: 15px;
}

.product_meta {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--lib-border);
  font-size: 14px;
  color: var(--lib-muted);
}

.wn__fotorama__wrapper {
  border-radius: var(--lib-radius);
  overflow: hidden;
  border: 1px solid var(--lib-border);
  box-shadow: var(--lib-shadow);
  background: linear-gradient(160deg, #e2e8f0 0%, #f8fafc 100%);
}

.wn__fotorama__wrapper img {
  display: block;
  width: 100%;
  height: auto;
}

.btn.fitness-btn,
.btn.default-btn,
.btn-prd {
  background: var(--lib-accent) !important;
  color: #fff !important;
  border: none !important;
  padding: 12px 22px !important;
  font-size: 13px !important;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 14px rgba(15, 118, 110, 0.25);
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}

.btn.fitness-btn:hover,
.btn.default-btn:hover,
.btn-prd:hover {
  background: var(--lib-accent-hover) !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(15, 118, 110, 0.35);
}

.books-table-data {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--lib-border);
  border-radius: var(--lib-radius);
  overflow: hidden;
  background: var(--lib-surface);
  box-shadow: var(--lib-shadow);
}

.books-table-data thead {
  background: #f8fafc;
}

.books-table-data th {
  padding: 14px 18px !important;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--lib-muted);
  border-bottom: 1px solid var(--lib-border);
}

.books-table-data td {
  padding: 14px 18px !important;
  vertical-align: middle;
  border-top: 1px solid var(--lib-border) !important;
  font-size: 14px;
}

.books-table-data td p {
  margin: 0;
  line-height: 1.45;
}

.books-table-data .btn.default-btn {
  padding: 8px 16px !important;
  font-size: 12px !important;
  white-space: nowrap;
}

.product__info__detailed {
  background: var(--lib-surface);
  border: 1px solid var(--lib-border);
  border-radius: var(--lib-radius);
  box-shadow: var(--lib-shadow);
  padding: 24px;
  margin-top: 8px;
}

.pro_details_nav .nav-link {
  border-radius: 999px !important;
  padding: 8px 18px !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  color: var(--lib-muted) !important;
  margin-right: 8px;
}

.pro_details_nav .nav-link.active {
  background: var(--lib-accent-soft) !important;
  color: var(--lib-accent) !important;
}

.description__attribute ul {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 10px;
}

.description__attribute li {
  padding: 10px 14px;
  background: var(--lib-bg);
  border-radius: 8px;
  font-size: 14px;
  color: var(--lib-muted);
}

.description__attribute li span,
.description__attribute li b {
  color: var(--lib-text);
}

.wn__related__product .section__title h2 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.wn__related__product .section__title {
  margin-bottom: 8px;
}

.shop__sidebar {
  position: sticky;
  top: 88px;
}

.shop__sidebar .wedget__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.shop__sidebar .wedget__categories ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.shop__sidebar .wedget__categories ul li a {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--lib-surface);
  border: 1px solid var(--lib-border);
  color: var(--lib-muted) !important;
  font-size: 13px;
  text-decoration: none !important;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.shop__sidebar .wedget__categories ul li a:hover {
  background: var(--lib-accent-soft);
  border-color: #99f6e4;
  color: var(--lib-accent) !important;
}

.category-list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  text-align: left;
}

.category-list > li {
  background: var(--lib-surface);
  border: 1px solid var(--lib-border);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: var(--lib-shadow);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.category-list > li:hover {
  border-color: #99f6e4;
  box-shadow: var(--lib-shadow-hover);
}

.category-list a {
  color: var(--lib-text) !important;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none !important;
}

.category-list a:hover {
  color: var(--lib-accent) !important;
}

.category-list ul {
  list-style: none;
  padding: 8px 0 0 12px;
  margin: 0;
}

.category-list ul li {
  margin-top: 6px;
}

.category-list ul a {
  font-weight: 500;
  font-size: 13px;
  color: var(--lib-muted) !important;
}

.wn__accordeion__content p {
  color: var(--lib-muted);
  line-height: 1.65;
  max-width: 720px;
}

@media (max-width: 991px) {
  .shop__sidebar {
    position: static;
    margin-top: 32px;
  }

  .books-table-data .hidden-td {
    display: none;
  }
}

@media (max-width: 991px) {
  .site-trust {
    grid-template-columns: 1fr;
  }

  .site-section__head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 767px) {
  .site-hero {
    padding: 36px 0 32px;
  }

  .site-section {
    padding: 36px 0;
  }

  .book-grid__item {
    padding: 8px;
  }
}
