@media (min-width: 992px) {
  @font-face {
    font-family: "IranSans";
    src: url("/web/styles/font/Farsi_numerals/webFonts/fonts/woff2/IRANSansWeb(FaNum).woff2") format("woff2"),
         url("/web/styles/font/Farsi_numerals/webFonts/fonts/woff/IRANSansWeb(FaNum).woff") format("woff");
    font-display: optional;
    font-style: normal;
    font-weight: 400;
  }
}

:root {
  --book-accent: #cf3948;
  --book-green: #168243;
  --book-muted: #6f6f6f;
}

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

html {
  direction: rtl;
  display: flex;
  flex-direction: column;
  font-family: sans-serif;
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex: 1;
  flex-direction: column;
  background-color: #f5f5f5;
  color: #333;
  font-family: Tahoma, Arial, sans-serif;
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.5385;
  text-align: right;
}

@media (min-width: 992px) {
  body {
    font-family: IranSans, Tahoma, Arial, sans-serif !important;
  }
}

article,
aside,
figcaption,
figure,
header,
hgroup,
main,
nav,
section {
  display: block;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
ul {
  margin-top: 0;
}

h1,
.h1 {
  font-size: 1.5625rem;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
  margin-bottom: 0.625rem;
  font-weight: 400;
  line-height: 1.5385;
}

p,
ul {
  margin-bottom: 1rem;
}

a {
  background-color: transparent;
  color: #2196f3;
  text-decoration: none;
}

a:hover {
  color: #0a6ebd;
  text-decoration: none;
}

img {
  border-style: none;
  vertical-align: middle;
}

button,
input,
select {
  margin: 0;
  font: inherit;
  line-height: inherit;
}

select {
  word-wrap: normal;
}

[v-cloak],
[hidden],
.d-none,
.modal:not(.show):not(.in) {
  display: none !important;
}

.container-fluid {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-right: 0.625rem;
  padding-left: 0.625rem;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -0.625rem;
  margin-left: -0.625rem;
}

.col-12,
.col-lg-3,
.col-lg-9,
.col-md-3,
.col-md-5,
.col-md-6,
.col-xl-6 {
  position: relative;
  width: 100%;
  padding-right: 0.625rem;
  padding-left: 0.625rem;
}

.col-2 {
  position: relative;
  width: 100%;
  max-width: 16.66667%;
  flex: 0 0 16.66667%;
  padding-right: 0.625rem;
  padding-left: 0.625rem;
}

.col-12 {
  max-width: 100%;
  flex: 0 0 100%;
}

.content {
  min-height: 40vh;
}

.background-loader-style {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.72);
}

.page-content,
.content-wrapper,
#main-content,
.book-show-page {
  width: 100%;
}

.page-content {
  display: flex;
  flex-grow: 1;
}

.content-wrapper {
  display: flex;
  flex: 1;
  flex-direction: column;
  overflow: auto;
}

.navbar-top.sidebar-main-hidden.margin-top-1-9,
body.navbar-top.sidebar-main-hidden.margin-top-1-9 {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Mobile: keep system/Tahoma until/unless desktop IranSans is intended. */
body {
  font-family: Tahoma, Arial, sans-serif !important;
}

@media (min-width: 992px) {
  body {
    font-family: IranSans, Tahoma, Arial, sans-serif !important;
  }
}

/*
 * Mobile: sidebar is in the HTML but theme CSS hides it.
 * Without this, deferred book-detail.css causes a huge CLS when sidebar disappears.
 * Open state uses body.sidebar-mobile-main (Limitless toggle).
 */
body.sidebar-main-hidden .sidebar.sidebar-main {
  display: none !important;
}

body.sidebar-mobile-main .sidebar.sidebar-main {
  display: block !important;
}

/* Mobile fixed header offset (desktop keeps padding-top:0 + #topVue spacer). */
@media (max-width: 991.98px) {
  body.sidebar-main-hidden .sidebar.sidebar-main {
    display: none !important;
  }

  body.sidebar-mobile-main .sidebar.sidebar-main {
    display: block !important;
  }

  .book-show-page > .container-fluid > .row > .col-lg-3 {
    min-height: 22rem;
  }

  .book-show-page > .container-fluid > .row > .col-lg-9 {
    min-height: 24rem;
  }

  .book-show-page > .container-fluid.mt-4 {
    margin-top: 1.25rem !important;
  }

  #navbar > .d-flex {
    min-height: 4.5rem;
  }
}

/* Lock desktop header flow height so Vue mount / late CSS cannot push #main-content. */
@media (min-width: 992px) {
  #topVue {
    height: 11.4rem !important;
    min-height: 11.4rem !important;
    max-height: 11.4rem !important;
  }

  #navbar > .d-flex {
    height: 6.6rem !important;
    min-height: 6.6rem !important;
    max-height: 6.6rem !important;
  }

  #topVue .site-secondary-navbar {
    margin-top: 6.6rem !important;
    height: 4.8rem !important;
    min-height: 4.8rem !important;
    max-height: 4.8rem !important;
    box-sizing: border-box;
  }

  #main-content {
    min-height: 36rem;
  }

  .book-show-page > .container-fluid > .row {
    min-height: 22rem;
  }

  .book-show-page .col-lg-3 > .border {
    width: 100%;
    max-width: 15.5rem;
  }

  .book-cover-lcp {
    display: block;
    width: 100%;
    max-width: 14.375rem;
    height: auto;
    aspect-ratio: 230 / 320;
  }

  #navbar .search-dropdown-toggle {
    min-height: 3.25rem;
  }
}

#topVue {
  position: relative;
  z-index: 2050;
}

#navbar {
  z-index: 2060;
}

#navbar > .d-flex {
  width: 100%;
}

#navbar .width-6-rem {
  aspect-ratio: 189 / 150;
  width: 6rem !important;
  height: auto !important;
}

#navbar .search-dropdown-toggle + .dropdown-menu,
#navbar .search-dropdown-toggle ~ .dropdown-menu {
  z-index: 2070;
}

.navbar {
  align-items: center;
  display: flex;
  padding: 0.5rem 1rem;
  position: relative;
}

.navbar-dark {
  color: #fff;
}

.navbar-expand-md {
  flex-flow: row nowrap;
  justify-content: flex-start;
}

.fixed-top {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1030;
}

.navbar-nav {
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
  padding-right: 0;
  list-style: none;
}

.navbar-brand {
  display: inline-block;
  margin-left: 1rem;
  padding-top: 0.3125rem;
  padding-bottom: 0.3125rem;
  white-space: nowrap;
}

.navbar-nav-link,
.nav-link {
  display: block;
  padding: 0.875rem 1rem;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 1000;
  min-width: 11.25rem;
  margin: 0.125rem 0 0;
  padding: 0.5rem 0;
  background-color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.15);
  color: #333;
  text-align: right;
}

.dropdown-menu.show {
  display: block;
}

.dropdown-menu-right {
  right: auto;
  left: 0;
}

.dropdown-toggle::after {
  display: inline-block;
  margin-right: 0.255em;
  vertical-align: 0.255em;
  content: "";
  border-top: 0.3em solid;
  border-right: 0.3em solid transparent;
  border-bottom: 0;
  border-left: 0.3em solid transparent;
}

.shop-dropdown-toggle::after {
  color: #000 !important;
  font-weight: 900;
}

.search-dropdown-toggle::after,
.user-drop-down-toggle::after {
  display: none !important;
}

.form-control {
  display: block;
  width: 100%;
  height: calc(1.5385em + 0.875rem + 2px);
  padding: 0.4375rem 0.875rem;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ddd;
  border-radius: 0.1875rem;
  color: #333;
}

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

.shadow,
.shadow-1 {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}

.border {
  border: 1px solid #ddd !important;
}

.border-0 {
  border: 0 !important;
}

.border-bottom {
  border-bottom: 1px solid #ddd !important;
}

.border-right-1px-ececec {
  border-right: 1px solid #ececec;
}

.border-1px-ececec {
  border: 1px solid #ececec;
}

.border-1px-e84c3d {
  border: 1px solid #e84c3d;
}

.border-cfcfcf {
  border: 0.1rem solid #cfcfcf;
}

.rounded {
  border-radius: 0.1875rem !important;
}

.overflow-hidden {
  overflow: hidden;
}

.position-relative {
  position: relative;
}

.cursor-pointer {
  cursor: pointer;
}

.white-space-nowrap,
.text-nowrap {
  white-space: nowrap;
}

.text-decoration-line-through {
  text-decoration: line-through;
}

.display-inline-block {
  display: inline-block;
}

.d-block {
  display: block !important;
}

.d-flex {
  display: flex !important;
}

.flex-column {
  flex-direction: column !important;
}

.flex-row {
  flex-direction: row !important;
}

.flex-wrap,
.flex-wrap-wrap {
  flex-wrap: wrap !important;
}

.align-items-start {
  align-items: flex-start !important;
}

.align-items-center {
  align-items: center !important;
}

.align-items-end {
  align-items: flex-end !important;
}

.justify-content-center {
  justify-content: center !important;
}

.justify-content-end {
  justify-content: flex-end !important;
}

.justify-content-space-between,
.justify-content-between {
  justify-content: space-between !important;
}

.w-75 {
  width: 75% !important;
}

.w-100 {
  width: 100% !important;
}

.h-100 {
  height: 100% !important;
}

.m-0 {
  margin: 0 !important;
}

.my-1 {
  margin-top: 0.3125rem !important;
  margin-bottom: 0.3125rem !important;
}

.my-2 {
  margin-top: 0.625rem !important;
  margin-bottom: 0.625rem !important;
}

.mt-1 {
  margin-top: 0.3125rem !important;
}

.mt-2 {
  margin-top: 0.625rem !important;
}

.mt-3 {
  margin-top: 1.25rem !important;
}

.mt-4 {
  margin-top: 1.875rem !important;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.mb-2 {
  margin-bottom: 0.625rem !important;
}

.mr-1 {
  margin-right: 0.3125rem !important;
}

.mr-2 {
  margin-right: 0.625rem !important;
}

.mr-3 {
  margin-right: 1.25rem !important;
}

.ml-1 {
  margin-left: 0.3125rem !important;
}

.ml-2 {
  margin-left: 0.625rem !important;
}

.p-0 {
  padding: 0 !important;
}

.p-1 {
  padding: 0.3125rem !important;
}

.p-2 {
  padding: 0.625rem !important;
}

.px-0 {
  padding-right: 0 !important;
  padding-left: 0 !important;
}

.px-1 {
  padding-right: 0.3125rem !important;
  padding-left: 0.3125rem !important;
}

.px-2 {
  padding-right: 0.625rem !important;
  padding-left: 0.625rem !important;
}

.px-3 {
  padding-right: 1.25rem !important;
  padding-left: 1.25rem !important;
}

.px-4 {
  padding-right: 1.875rem !important;
  padding-left: 1.875rem !important;
}

.py-0 {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.py-1 {
  padding-top: 0.3125rem !important;
  padding-bottom: 0.3125rem !important;
}

.py-2 {
  padding-top: 0.625rem !important;
  padding-bottom: 0.625rem !important;
}

.pb-1 {
  padding-bottom: 0.3125rem !important;
}

.pb-2 {
  padding-bottom: 0.625rem !important;
}

.font-weight-900 {
  font-weight: 900 !important;
}

.font-weight-bold {
  font-weight: 700 !important;
}

.font-size-sm {
  font-size: 0.75rem;
}

.font-size-0-6-rem {
  font-size: 0.6rem;
}

.font-size-0-7-rem {
  font-size: 0.7rem;
}

.font-size-0-8-rem,
.font-size-0-8rem {
  font-size: 0.8rem !important;
}

.font-size-0-9-rem {
  font-size: 0.9rem;
}

.font-size-1-rem {
  font-size: 1rem;
}

.font-size-1-3rem {
  font-size: 1.3rem;
}

.text-align-center {
  text-align: center;
}

.bg-white {
  background-color: #fff !important;
}

.bg-F9F9F9 {
  background-color: #f9f9f9;
}

.bg-E4E4E4 {
  background-color: #e4e4e4;
}

.bg-F05662 {
  background-color: var(--book-accent) !important;
  color: #fff !important;
}

.bg-33c66d {
  background-color: var(--book-green) !important;
}

.color-white {
  color: #fff !important;
}

.color-black {
  color: #000 !important;
}

.color-5e5e5e,
.color-707070,
.color-787878,
.color-858585,
.color-8e8e8e,
.color-969696,
.color-ADACAD,
.color-a7b1bb,
.color-b8b8b8,
.color-b9b9b9,
.color-c2c2c0 {
  color: var(--book-muted) !important;
}

.color-F05662 {
  color: var(--book-accent) !important;
}

.color-36c66e {
  color: var(--book-green) !important;
}

.color-645b56 {
  color: #645b56;
}

.color-797979 {
  color: #797979;
}

.color-b9b9b9 {
  color: #b9b9b9 !important;
}

.border-radius-0-4-rem {
  border-radius: 0.4rem;
}

.border-radius-0-8-rem {
  border-radius: 0.8rem;
}

.border-radius-3-rem {
  border-radius: 3rem;
}

.border-radius-100 {
  border-radius: 100%;
}

.max-height-3rem {
  max-height: 3rem;
}

.width-6-rem {
  width: 6rem !important;
  height: auto !important;
}

.line-styles {
  width: 100%;
  height: 1px;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  background-color: #e0e0e0;
}

.shop-design-2 {
  width: 2.2rem;
  height: 2.2rem;
  font-size: 1.2rem;
}

.shop-cart-price-slot {
  min-height: 1.25rem;
}

.rating-widget {
  float: right;
}

.rating-stars ul {
  margin: 0;
  padding: 0;
  list-style-type: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

.rating-stars ul > li.star {
  display: inline-block;
  float: left;
}

.rating-stars ul > li.star > .mystar {
  color: #ccc;
  font-size: 1.5em;
}

.book-cover-lcp {
  display: block;
  width: 100%;
  max-width: 14.375rem;
  height: auto;
  aspect-ratio: 230 / 320;
  object-fit: contain;
}

.book-cover-frame {
  display: block;
  width: 100%;
  max-width: 15.5rem;
  aspect-ratio: 230 / 320;
  box-sizing: border-box;
}

.book-cover-frame .book-cover-lcp {
  width: 100%;
  max-width: none;
  height: auto;
  aspect-ratio: 230 / 320;
}

.book-show-page .kioskDetails {
  min-height: 5rem;
}

.book-rating-row {
  min-height: 3.5rem;
}

.book-favorite-slot,
.book-read-slot,
.book-suggest-slot {
  min-height: 3rem;
}

.book-add-to-cart-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 11rem;
  min-height: 2.5rem;
}

.book-show-page .kioskDetails a {
  color: #0875c4;
}

.book-show-page .bg-33c66d.color-F05662,
.book-show-page [style*="background-color: #ff4d4d"].color-F05662 {
  color: #fff !important;
}

.book-show-page [style*="background-color: #ff4d4d"].color-F05662 {
  background-color: #c93636 !important;
}

.text-color-info {
  margin-left: -22px;
  color: #005fcc;
  font-size: 0.69rem;
}

@media (min-width: 576px) {
  .mr-sm-3 {
    margin-right: 1.25rem !important;
  }

  .ml-sm-3 {
    margin-left: 1.25rem !important;
  }
}

@media (min-width: 768px) {
  .d-md-block {
    display: block !important;
  }

  .d-md-flex {
    display: flex !important;
  }

  .flex-md-row {
    flex-direction: row !important;
  }

  .align-items-md-center {
    align-items: center !important;
  }

  .mt-md-0 {
    margin-top: 0 !important;
  }

  .mr-md-3 {
    margin-right: 1.25rem !important;
  }

  .ml-md-4 {
    margin-left: 1.875rem !important;
  }

  .px-md-2 {
    padding-right: 0.625rem !important;
    padding-left: 0.625rem !important;
  }

  .py-md-2 {
    padding-top: 0.625rem !important;
    padding-bottom: 0.625rem !important;
  }

  .col-md-3 {
    max-width: 25%;
    flex: 0 0 25%;
  }

  .col-md-5 {
    max-width: 41.66667%;
    flex: 0 0 41.66667%;
  }

  .col-md-6 {
    max-width: 50%;
    flex: 0 0 50%;
  }
}

@media (min-width: 992px) {
  #topVue {
    height: 11.4rem !important;
    min-height: 11.4rem !important;
    max-height: 11.4rem !important;
  }

  #navbar > .d-flex {
    height: 6.6rem !important;
    min-height: 6.6rem !important;
    max-height: 6.6rem !important;
  }

  #topVue .site-secondary-navbar {
    margin-top: 6.6rem !important;
    height: 4.8rem !important;
    min-height: 4.8rem !important;
    max-height: 4.8rem !important;
    box-sizing: border-box;
  }

  .d-lg-block {
    display: block !important;
  }

  .d-lg-flex {
    display: flex !important;
  }

  .flex-lg-row {
    flex-direction: row !important;
  }

  .align-items-lg-stretch {
    align-items: stretch !important;
  }

  .justify-content-lg-start {
    justify-content: flex-start !important;
  }

  .mr-lg-0 {
    margin-right: 0 !important;
  }

  .ml-lg-3 {
    margin-left: 1.25rem !important;
  }

  .py-lg-0 {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .pb-lg-4 {
    padding-bottom: 1.875rem !important;
  }

  .col-lg-1 {
    max-width: 8.33333%;
    flex: 0 0 8.33333%;
  }

  .col-lg-3 {
    max-width: 25%;
    flex: 0 0 25%;
  }

  .col-lg-9 {
    max-width: 75%;
    flex: 0 0 75%;
  }

  .w-lg-50 {
    width: 50% !important;
  }
}

@media (min-width: 1200px) {
  .col-xl-6 {
    max-width: 50%;
    flex: 0 0 50%;
  }

  .pl-xl-5 {
    padding-left: 3rem !important;
  }

  .pr-xl-5 {
    padding-right: 3rem !important;
  }
}

@media (max-width: 768px) {
  .text-color-info {
    margin-left: 7px;
  }
}
