.site-header .navbar { min-height: 82px; }
.brand-logo { display: block; object-fit: contain; }
.brand-logo-dark { width: clamp(185px, 21vw, 260px); height: 62px; object-position: left center; }
body[dir="rtl"] .brand-logo-dark { object-position: right center; }
.brand-logo-light { width: 128px; height: 132px; object-position: left center; }
body[dir="rtl"] .brand-logo-light { object-position: right center; }
.category-menu { min-width: 245px; padding: .55rem; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
body[dir="rtl"] .category-menu { text-align: right; }
.category-menu .dropdown-item { border-radius: 9px; padding: .55rem .85rem; font-size: .86rem; font-weight: 600; white-space: normal; }
.category-menu .dropdown-item:hover, .category-menu .dropdown-item:focus { background: #f5e9df; color: var(--accent-dark); }
.featured-section { background: #fffdf9; }
.featured-section .book-card { box-shadow: 0 7px 24px rgba(21,39,59,.04); }
.featured-section .book-card .cover-panel { height: 260px; }
#categories { background: linear-gradient(180deg, #f7f3ed, #f3eee6); }
.category-card { display: flex !important; flex-direction: column; min-height: 214px; position: relative; overflow: hidden; }
.category-card::after { content: ''; position: absolute; width: 118px; height: 118px; border-radius: 50%; background: rgba(201,95,61,.055); inset-inline-end: -50px; top: -48px; pointer-events: none; }
.category-icon { width: 58px; height: 58px; margin-bottom: .85rem; border-radius: 17px; background: #f8e7dc; color: #ad5639; }
.category-icon svg { width: 31px; height: 31px; }
#categories .col-6:nth-child(2n) .category-icon { background: #e8f0e9; color: #467b60; }
#categories .col-6:nth-child(3n) .category-icon { background: #e8ecf5; color: #4a6698; }
#categories .col-6:nth-child(5n) .category-icon { background: #f5ebd9; color: #9a6c24; }
.category-card h3 { font-size: 1.06rem; line-height: 1.5; position: relative; }
.category-card p { font-size: .78rem; line-height: 1.6; margin: .35rem 0 .8rem; position: relative; }
.category-count { margin-top: auto; padding-top: .5rem; border-top: 1px solid var(--line); color: var(--accent-dark); font-size: .72rem; font-weight: 800; display: flex; justify-content: space-between; position: relative; }
.site-footer .brand { display: inline-flex; }
.site-footer .brand-logo { max-width: 100%; }
.admin-brand { gap: .45rem; }
.admin-brand-label { color: var(--accent-dark); font-size: .85rem; font-weight: 800; letter-spacing: .03em; }
.admin-preview { max-width: 230px; max-height: 110px; object-fit: contain; padding: .5rem; border: 1px solid var(--line); background: #fff; border-radius: 10px; }
.admin-preview-dark { background: var(--ink); }
@media (max-width: 991px) {
  .site-header .navbar { min-height: 72px; }
  .brand-logo-dark { width: 185px; height: 52px; }
  .category-menu { box-shadow: none; margin: .25rem 0 .5rem; }
}
@media (max-width: 767px) {
  .featured-section .book-card .cover-panel { height: 200px; }
  .category-card { min-height: 225px; padding: 1rem; }
  .category-icon { width: 48px; height: 48px; }
  .category-icon svg { width: 27px; height: 27px; }
  .category-card h3 { font-size: .9rem; }
  .category-card p { font-size: .7rem; }
}
@media (prefers-reduced-motion: reduce) {
  .category-card, .book-card { transition: none; }
}
