:root {
  --book-bg: #ebe7e1;
  --book-panel: rgba(255,255,255,0.78);
  --book-panel-strong: rgba(255,255,255,0.94);
  --book-ink: #17191d;
  --book-muted: #696a70;
  --book-line: rgba(27,29,34,0.1);
  --book-orange: #d76f35;
  --book-teal: #1e6968;
  --book-purple: #9159e5;
  --book-pink: #e4869b;
  --book-shadow: 0 24px 70px rgba(40,36,31,0.14);
  --rail-left: max(24px, calc((100vw - 1180px) / 2));
  --rail-width: 220px;
  --rail-gap: 46px;
  --content-left: calc(var(--rail-left) + var(--rail-width) + var(--rail-gap));
  --sticky-page-top: 86px;
  --bend-thickness: 34px;
  --bend-radius: 160px;
  --bend-overlap: 56px;
  --bend-line-left: calc(var(--rail-left) + var(--rail-width) + var(--bend-radius) - var(--bend-overlap));
  --bend-y: 61.8vh;
}

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

html {
  color: var(--book-ink);
  font-family: Nunito, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  text-size-adjust: 100%;
}

body {
  background:
    linear-gradient(180deg, #f8f6f2 0%, #ede9e2 48%, #dcddd9 100%),
    linear-gradient(90deg, rgba(255,255,255,0.56) 0%, rgba(255,255,255,0) 38%);
  color: var(--book-ink);
  margin: 0;
  min-height: 100vh;
}

body:before {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.24), rgba(255,255,255,0) 36%),
    linear-gradient(90deg, rgba(255,255,255,0.42), rgba(255,255,255,0) 54%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: fixed;
  z-index: 0;
}

body:after {
  background:
    linear-gradient(90deg, rgba(255,255,255,0.58) 0 1px, transparent 1px 25%),
    linear-gradient(rgba(255,255,255,0.64), rgba(255,255,255,0.64));
  background-position:
    0 0,
    0 var(--bend-y);
  background-repeat: repeat-x, no-repeat;
  background-size:
    25% var(--bend-y),
    100% calc(100% - var(--bend-y));
  content: "";
  height: 100vh;
  left: var(--bend-line-left);
  opacity: 0.64;
  pointer-events: none;
  position: fixed;
  top: 0;
  width: calc(100vw - var(--bend-line-left));
  z-index: 1;
}

a {
  color: var(--book-teal);
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

img {
  height: auto;
  max-width: 100%;
}

ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.clear {
  clear: both;
}

.wrapper {
  margin: 0 auto;
  width: min(1180px, calc(100% - 48px));
}

.app-topbar {
  background: transparent;
  border: 0;
  left: 0;
  padding: 16px 15px 0;
  position: sticky;
  top: 0;
  z-index: 80;
}

.app-topbar .wrapper {
  padding-left: 272px;
}

.topbar-shell {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  gap: 14px;
  min-height: 64px;
  padding: 0;
}

.topbar-brand {
  color: var(--book-ink);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 1px;
  line-height: 24px;
  text-transform: uppercase;
}

.topbar-spacer {
  flex: 1;
}

.topbar-account {
  position: relative;
}

.account-trigger,
.account-login,
button,
.btn {
  align-items: center;
  background: var(--book-teal);
  border: 0;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-family: inherit;
  font-size: 14px;
  font-weight: 900;
  gap: 8px;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
}

.account-trigger {
  background: transparent;
  border-radius: 999px;
  color: var(--book-ink);
  gap: 12px;
  padding: 4px 6px;
}

.account-trigger:hover,
.account-trigger:focus {
  background: rgba(255,255,255,0.52);
}

.account-trigger img {
  border: 3px solid #f2cd75;
  border-radius: 50%;
  height: 38px;
  object-fit: cover;
  width: 38px;
}

.account-trigger span {
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-menu {
  background: var(--book-panel-strong);
  border: 1px solid rgba(255,255,255,0.65);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(32,28,24,0.16);
  min-width: 180px;
  opacity: 0;
  padding: 8px;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  transform: translateY(-6px);
  transition: 0.18s ease;
}

.topbar-account:hover .account-menu,
.topbar-account:focus-within .account-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.account-menu a,
.account-login {
  border-radius: 10px;
  color: var(--book-ink);
  display: block;
  font-weight: 800;
  padding: 10px 12px;
}

.account-login {
  background: rgba(255,255,255,0.72);
}

.account-menu a:hover,
.account-login:hover {
  background: rgba(30,105,104,0.1);
  color: var(--book-teal);
}

section {
  padding: 0 15px 52px;
  position: relative;
  z-index: 2;
}

.second-shelf-layout {
  display: grid;
  gap: 46px;
  grid-template-columns: 220px minmax(0, 1fr);
}

.second-shelf-main-area {
  grid-column: 2;
  min-width: 0;
  position: relative;
  z-index: 70;
}

#main {
  min-width: 0;
  position: relative;
  z-index: 2;
}

.app-sidebar {
  align-self: start;
  height: calc(100vh - 114px);
  left: var(--rail-left);
  overflow: visible;
  position: fixed;
  top: 114px;
  width: var(--rail-width);
  z-index: 64;
}

.app-sidebar:before,
.app-sidebar:after {
  content: "";
  pointer-events: none;
  position: absolute;
}

.app-sidebar:before {
  border-bottom: var(--bend-thickness) solid rgba(255,255,255,0.76);
  border-left: var(--bend-thickness) solid rgba(255,255,255,0.76);
  border-radius: 0 0 0 var(--bend-radius);
  height: var(--bend-radius);
  left: calc(var(--rail-width) - var(--bend-overlap));
  top: calc(var(--bend-y) - 114px - var(--bend-radius));
  width: var(--bend-radius);
  z-index: 0;
}

.app-sidebar:after {
  background: rgba(255,255,255,0.76);
  box-shadow: 0 22px 70px rgba(42,38,34,0.08);
  height: var(--bend-thickness);
  left: calc(var(--rail-width) + var(--bend-radius) - var(--bend-overlap));
  top: calc(var(--bend-y) - 114px);
  width: calc(100vw - var(--rail-left) - var(--rail-width) - var(--bend-radius) + var(--bend-overlap));
  z-index: 0;
}

.app-sidebar-inner {
  background: rgba(255,255,255,0.84);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 26px;
  box-shadow: var(--book-shadow);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  padding: 38px 16px 22px;
  position: relative;
  z-index: 3;
}

.sidebar-logo {
  color: var(--book-ink);
  display: block;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 2px;
  line-height: 24px;
  margin: 0 18px 36px;
  text-transform: uppercase;
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sidebar-menu-muted {
  border-top: 1px solid var(--book-line);
  margin-top: auto;
  padding-top: 26px;
}

.sidebar-menu a {
  align-items: center;
  border-radius: 12px;
  color: var(--book-ink);
  display: flex;
  font-size: 16px;
  font-weight: 800;
  gap: 14px;
  min-height: 52px;
  padding: 8px 16px;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
  background: rgba(224,219,214,0.72);
}

.sidebar-menu span {
  align-items: center;
  background: #eef0f1;
  border-radius: 10px;
  color: var(--book-muted);
  display: flex;
  height: 32px;
  justify-content: center;
  min-width: 32px;
}

.sidebar-menu a.active span {
  background: var(--book-orange);
  color: #fff;
}

.sidebar-menu a:nth-child(2) span {
  color: var(--book-purple);
}

.sidebar-menu a:nth-child(2) span:after {
  background: var(--book-pink);
  border-radius: 2px;
  content: "";
  display: block;
  height: 18px;
  margin-left: 3px;
  width: 6px;
}

.home-discover {
  backdrop-filter: blur(16px);
  background: rgba(248,246,242,0.76);
  margin: 0 0 34px;
  max-width: none;
  padding: 24px 0 20px;
  position: sticky;
  top: var(--sticky-page-top);
  z-index: 56;
}

.home-discover h1,
body.search h1,
body.user h1,
body.item h1,
.form-container .header h1 {
  color: var(--book-ink);
  font-size: 36px;
  font-weight: 900;
  line-height: 44px;
  margin: 0 0 26px;
}

.list-header,
#main > h1,
.form-container > .header {
  backdrop-filter: blur(16px);
  background: rgba(248,246,242,0.76);
  position: sticky;
  top: var(--sticky-page-top);
  z-index: 56;
}

#main > h1 {
  margin: 0 0 24px;
  padding: 24px 0 20px;
}

.form-container > .header {
  border-bottom: 0;
  margin: -22px -22px 22px;
  padding: 24px 22px 0;
}

.form-container > .header h1 {
  margin-bottom: 18px;
}

.home-book-search {
  align-items: center;
  background: rgba(255,255,255,0.76);
  border: 1px solid rgba(255,255,255,0.82);
  border-radius: 10px;
  box-shadow: 0 18px 42px rgba(48,42,36,0.08);
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) 110px;
  height: 52px;
  max-width: 560px;
  overflow: hidden;
  width: 100%;
}

.home-book-search-category {
  align-items: center;
  border-right: 1px solid rgba(27,29,34,0.14);
  display: flex;
  height: 100%;
  position: relative;
}

.home-book-search-category select,
.home-book-search-query input {
  background: transparent;
  border: 0;
  color: var(--book-ink);
  font: inherit;
  height: 100%;
  margin: 0;
  outline: 0;
  width: 100%;
}

.home-book-search-category select {
  appearance: none;
  color: var(--book-muted);
  padding: 0 34px 0 16px;
}

.home-book-search-category i {
  color: var(--book-muted);
  pointer-events: none;
  position: absolute;
  right: 14px;
}

.home-book-search-query {
  align-items: center;
  display: flex;
  gap: 12px;
  height: 100%;
  padding: 0 18px;
}

.home-book-search-query i,
.home-book-search-query input::placeholder {
  color: #a4a0a0;
}

.home-book-search button {
  height: 36px;
  margin-right: 8px;
  min-height: 36px;
}

.section-heading {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 0 22px;
}

.section-heading h2,
body.search #main h2 {
  color: var(--book-ink);
  font-size: 26px;
  font-weight: 800;
  line-height: 32px;
  margin: 0;
}

.section-heading a {
  align-items: center;
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.75);
  border-radius: 9px;
  color: var(--book-ink);
  display: inline-flex;
  font-size: 14px;
  font-weight: 900;
  gap: 8px;
  min-height: 32px;
  padding: 0 14px;
}

.home-latest,
.home-categories,
#sidebar .filters,
body.user #sidebar,
body.item #sidebar .widget-box,
body.user-public-profile #sidebar .widget-box,
.form-container-box,
.form-container,
#contact,
.page #main,
.not-found #main {
  background: rgba(255,255,255,0.62);
  border: 1px solid rgba(255,255,255,0.72);
  border-radius: 16px;
  box-shadow: 0 18px 45px rgba(42,38,34,0.08);
  padding: 22px;
}

.home-latest,
.home-categories {
  background: transparent;
  border: 0;
  box-shadow: none;
  margin: 0 0 34px;
  padding: 0;
  position: relative;
  z-index: 40;
}

.listing-card-list {
  clear: both;
  position: relative;
  z-index: 42;
  width: 100%;
}

.listing-card-list.listing-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.listing-card {
  background: rgba(255,255,255,0.68);
  border: 1px solid rgba(255,255,255,0.78);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(42,38,34,0.1);
  display: flex;
  flex-direction: column;
  margin: 0 0 14px;
  min-height: 250px;
  overflow: hidden;
  position: relative;
}

.listing-grid .listing-card {
  margin: 0;
}

.listing-thumb {
  align-items: center;
  background: linear-gradient(145deg, rgba(255,255,255,0.48), rgba(226,222,218,0.52));
  display: flex;
  height: 165px;
  justify-content: center;
  overflow: hidden;
  padding: 12px;
  width: 100%;
}

.listing-thumb img {
  border-radius: 4px;
  box-shadow: 0 10px 26px rgba(26,24,22,0.18);
  height: 100%;
  max-width: 76%;
  object-fit: cover;
  width: auto;
}

.listing-detail {
  background: rgba(255,255,255,0.64);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,0.45);
  flex: 1;
  padding: 14px 52px 14px 16px;
}

.listing-basicinfo a.title {
  color: var(--book-ink);
  display: block;
  font-size: 18px;
  font-weight: 900;
  line-height: 22px;
  margin: 0 0 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.listing-seller {
  color: var(--book-muted);
  display: block;
  font-size: 14px;
  line-height: 18px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.currency-value {
  color: var(--book-ink);
  font-size: 19px;
  font-weight: 900;
  line-height: 24px;
  position: absolute;
  right: 12px;
  top: 14px;
  z-index: 2;
}

.listing-avatar {
  align-items: center;
  background: #d6dbe0;
  border: 2px solid rgba(255,255,255,0.9);
  border-radius: 50%;
  bottom: 48px;
  color: var(--book-muted);
  display: flex;
  height: 34px;
  justify-content: center;
  position: absolute;
  right: 14px;
  width: 34px;
  z-index: 3;
}

.listing-avatar img {
  border-radius: 50%;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.listing-details,
.listing-grid .desc,
.listing-grid .category,
.listing-grid .location,
.listing-grid .date {
  display: none;
}

.listing-list .listing-card {
  min-height: 0;
}

.listing-list .listing-thumb {
  float: left;
  height: 120px;
  width: 110px;
}

.listing-list .listing-detail {
  min-height: 120px;
}

.book-category-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  position: relative;
  z-index: 42;
}

.book-category-card {
  align-items: center;
  background: rgba(255,255,255,0.48);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 8px;
  color: var(--book-ink);
  display: flex;
  flex-direction: column;
  min-height: 170px;
  padding: 0 16px 18px;
  text-align: center;
}

.book-category-card:hover {
  background: rgba(255,255,255,0.72);
  color: var(--book-teal);
}

.book-category-cover {
  align-items: center;
  background: linear-gradient(160deg, #f3d097, #d56d39);
  border-radius: 4px;
  box-shadow: 0 14px 30px rgba(46,40,36,0.16);
  color: #fff;
  display: flex;
  font-size: 32px;
  height: 104px;
  justify-content: center;
  margin: -18px 0 16px;
  width: 76px;
}

.book-category-card:nth-child(2) .book-category-cover {
  background: linear-gradient(160deg, #85d4e4, #1e6968);
}

.book-category-card:nth-child(3) .book-category-cover {
  background: linear-gradient(160deg, #dfb7ef, #8c56d8);
}

.book-category-card:nth-child(4) .book-category-cover {
  background: linear-gradient(160deg, #f5c0cc, #d76f35);
}

.book-category-card strong {
  color: var(--book-ink);
  font-size: 16px;
  line-height: 20px;
}

.book-category-card em {
  color: var(--book-muted);
  font-size: 13px;
  font-style: normal;
  margin-top: 6px;
}

#sidebar {
  width: 100%;
}

#sidebar fieldset {
  border: 0;
  margin: 0 0 16px;
  padding: 0;
}

#sidebar h3 {
  color: var(--book-ink);
  font-size: 15px;
  margin: 0 0 6px;
}

#sidebar .category a,
.user_menu a {
  color: var(--book-ink);
  display: block;
  padding: 6px 0;
}

.user_menu a:hover,
#sidebar .category a:hover {
  color: var(--book-teal);
}

.list-header {
  margin-bottom: 20px;
  padding: 24px 0 20px;
  top: var(--sticky-page-top);
  z-index: 56;
}

.list-header .actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.counter-search,
.empty {
  color: var(--book-muted);
}

.see_by {
  position: relative;
}

.see_by ul {
  background: var(--book-panel-strong);
  border-radius: 10px;
  box-shadow: 0 16px 42px rgba(36,32,28,0.16);
  display: none;
  min-width: 160px;
  padding: 8px;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 20;
}

.see_by.hover ul,
.see_by:hover ul {
  display: block;
}

.see_by a {
  color: var(--book-ink);
  display: block;
  padding: 7px 8px;
}

.doublebutton {
  display: inline-flex;
  gap: 6px;
}

.doublebutton a {
  min-width: 40px;
  padding: 0;
}

input[type="text"],
input[type="url"],
input[type="password"],
input[type="email"],
input[type="date"],
input[type="time"],
input[type="tel"],
input[type="number"],
select,
textarea {
  background: rgba(255,255,255,0.82);
  border: 1px solid var(--book-line);
  border-radius: 8px;
  color: var(--book-ink);
  font: inherit;
  margin: 0 0 16px;
  min-height: 44px;
  padding: 10px 12px;
  width: 100%;
}

textarea {
  min-height: 140px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--book-teal);
  outline: 0;
}

label {
  color: var(--book-ink);
  display: block;
  font-weight: 800;
  margin-bottom: 5px;
}

.form-horizontal .control-group {
  margin-bottom: 16px;
}

.form-horizontal .control-label {
  float: left;
  padding-right: 18px;
  text-align: right;
  width: 30%;
}

.form-horizontal .controls {
  float: left;
  width: 70%;
}

.form-horizontal .actions,
.form-horizontal .pblbt,
.form-horizontal .recpt {
  margin-left: 30%;
}

.form-horizontal .control-group:after {
  clear: both;
  content: "";
  display: table;
}

.item-post h2 {
  clear: both;
  font-size: 22px;
  margin: 26px 0 16px 30%;
}

.photos_div,
.qq-upload-list {
  clear: both;
}

.isbn-lookup .controls {
  position: relative;
}

.isbn-lookup-status {
  color: var(--book-muted);
  display: block;
  font-size: 13px;
  min-height: 18px;
}

.isbn-lookup-status[data-state="error"] {
  color: #b42318;
}

.isbn-lookup-status[data-state="success"] {
  color: var(--book-teal);
}

.isbn-lookup-results {
  background: #fff;
  border: 1px solid var(--book-line);
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(32,36,42,0.14);
  left: 0;
  max-height: 260px;
  overflow: auto;
  position: absolute;
  top: 58px;
  width: 100%;
  z-index: 20;
}

.isbn-lookup-result,
.isbn-lookup-result:hover,
.isbn-lookup-result:focus {
  background: #fff;
  border: 0;
  border-bottom: 1px solid var(--book-line);
  border-radius: 0;
  box-shadow: none;
  color: var(--book-ink);
  display: block;
  font-size: 14px;
  line-height: 18px;
  min-height: 0;
  padding: 10px 12px;
  text-align: left;
  width: 100%;
}

.isbn-lookup-result:hover,
.isbn-lookup-result:focus {
  background: rgba(30,105,104,0.08);
}

.isbn-lookup-result strong,
.isbn-lookup-result span {
  display: block;
}

.isbn-lookup-result span {
  color: var(--book-muted);
  font-size: 12px;
  margin-top: 2px;
}

.flashmessage,
#error_list,
.error_list {
  background: rgba(255,255,255,0.84);
  border: 1px solid var(--book-line);
  border-radius: 10px;
  color: var(--book-ink);
  margin: 0 0 16px;
  padding: 12px 14px;
}

.breadcrumb {
  color: var(--book-muted);
  font-size: 13px;
  margin-bottom: 12px;
}

.paginate {
  margin-top: 20px;
}

.paginate a,
.paginate span {
  background: rgba(255,255,255,0.72);
  border-radius: 8px;
  color: var(--book-ink);
  display: inline-block;
  margin-right: 4px;
  padding: 8px 11px;
}

.item-photos {
  margin-bottom: 24px;
}

.item-photos .main-photo img,
.item-photos .thumbs img {
  border-radius: 10px;
}

#item-content .price {
  color: var(--book-orange);
  font-size: 26px;
  font-weight: 900;
}

.admin-options {
  display: block;
  margin-top: 12px;
}

.admin-options a {
  display: inline-block;
  margin-right: 8px;
}

.fixed-close {
  display: none;
}

footer {
  background: transparent;
  color: var(--book-muted);
  padding: 20px 15px 34px;
}

footer .box > a,
footer .copy,
footer .language,
footer .language a,
footer .copy a {
  color: var(--book-muted);
  margin-right: 12px;
}
