.tibr-home-block,
.tibr-home-block *{box-sizing:border-box}
.tibr-home-block{
  --tibr-primary:#052b1e;
  --tibr-secondary:#0b4d35;
  --tibr-gold:#d4af37;
  --tibr-gold-light:#f3df9b;
  --tibr-line:rgba(5,43,30,.14);
  padding:26px 16px;
  background:#fbfaf5;
  font-family:Cairo,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  direction:rtl;
}
.tibr-block-head{
  max-width:1120px;
  margin:0 auto 16px;
  text-align:right;
}
.tibr-block-head.is-center{
  text-align:center;
}
.tibr-block-head.is-right{
  text-align:right;
}
.tibr-block-head span{
  display:inline-flex;
  margin-bottom:8px;
  padding:5px 12px;
  border-radius:999px;
  background:var(--tibr-primary);
  color:var(--tibr-gold-light);
  font-size:12px;
  font-weight:900;
}
.tibr-block-head h2{
  margin:0;
  color:var(--tibr-primary);
  font-size:clamp(24px,3vw,36px);
  font-weight:900;
  line-height:1.35;
}
.tibr-block-head p{
  margin:6px 0 0;
  color:#607068;
  font-size:14px;
  font-weight:800;
  line-height:1.8;
}
.tibr-search-form{
  max-width:1120px;
  margin:0 auto;
  padding:18px;
  border-radius:10px;
  background:#fff;
  border:1px solid rgba(5,43,30,.12);
  box-shadow:0 14px 34px rgba(5,43,30,.08);
}
.tibr-smart-search .tibr-block-head{margin-bottom:14px}
.tibr-search-main{
  display:grid;
  grid-template-columns:42px minmax(0,1fr) 120px;
  align-items:center;
  gap:10px;
  padding:8px;
  border:1px solid var(--tibr-line);
  border-radius:8px;
  background:#f7faf6;
}
.tibr-search-icon{
  width:42px;
  height:42px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--tibr-gold);
  font-size:25px;
  font-weight:900;
}
.tibr-search-main input{
  width:100%;
  height:46px;
  min-width:0;
  border:0;
  outline:0;
  background:transparent;
  color:var(--tibr-primary);
  font-size:16px;
  font-weight:800;
  font-family:inherit;
}
.tibr-search-main button,
.tibr-search-actions button{
  height:46px;
  border:0;
  border-radius:7px;
  background:var(--tibr-primary);
  color:#fff;
  font-size:15px;
  font-weight:900;
  font-family:inherit;
  cursor:pointer;
}
.tibr-search-main button:hover,
.tibr-search-actions button:hover{background:var(--tibr-secondary)}
.tibr-search-filters{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin-top:14px;
}
.tibr-search-filters label{
  display:grid;
  gap:6px;
  min-width:0;
}
.tibr-search-filters span{
  color:#607068;
  font-size:13px;
  font-weight:900;
}
.tibr-search-filters select{
  width:100%;
  height:44px;
  min-width:0;
  border:1px solid var(--tibr-line);
  border-radius:8px;
  background:#fff;
  color:var(--tibr-primary);
  padding:0 12px;
  font-family:inherit;
  font-weight:800;
  outline:none;
}
.tibr-search-filters select:focus{border-color:var(--tibr-gold)}
.tibr-search-actions{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:14px;
}
.tibr-search-actions button{min-width:150px;padding:0 18px}
.tibr-search-actions a{
  min-height:46px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 16px;
  border-radius:7px;
  border:1px solid var(--tibr-line);
  background:#fff;
  color:var(--tibr-primary);
  text-decoration:none!important;
  font-weight:900;
}
.tibr-home-products{
  max-width:1120px;
  margin:0 auto;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
}
.tibr-tabs{
  max-width:1120px;
  margin:0 auto;
}
.tibr-tab-buttons{
  width:min(680px,100%);
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  align-items:center;
  gap:8px;
  padding:8px;
  margin:0 auto 16px;
  border:1px solid rgba(5,43,30,.12);
  border-radius:10px;
  background:#fff;
  box-shadow:0 10px 24px rgba(5,43,30,.06);
}
.tibr-tab-buttons button{
  min-height:48px;
  border:0;
  border-radius:8px;
  padding:0 18px;
  background:#f7faf6;
  color:var(--tibr-primary);
  font-family:inherit;
  font-size:16px;
  font-weight:900;
  cursor:pointer;
  transition:background-color .18s ease,color .18s ease,border-color .18s ease;
  border:1px solid rgba(5,43,30,.08);
}
.tibr-tab-buttons button.is-active{
  background:var(--tibr-primary);
  color:#fff;
  border-color:var(--tibr-primary);
}
.tibr-tab-panel[hidden]{
  display:none!important;
}
.tibr-books-tabs .tibr-home-products{
  grid-template-columns:repeat(auto-fit,minmax(170px,220px));
  justify-content:center;
  justify-items:center;
}
.tibr-books-tabs .tibr-product-card{
  display:grid;
  grid-template-rows:auto 1fr;
  gap:12px;
  width:100%;
  max-width:220px;
  height:100%;
  border:0!important;
  border-radius:0!important;
  overflow:visible!important;
  background:transparent!important;
  box-shadow:none!important;
  text-align:center!important;
}
.tibr-books-tabs .tibr-product-cover{
  display:flex;
  align-items:center;
  justify-content:center;
  width:min(100%, 250px);
  height:300px;
  aspect-ratio:auto!important;
  margin:0 auto;
  overflow:visible!important;
  border-radius:0!important;
  background:transparent!important;
  position:relative;
  line-height:0;
}
.tibr-books-tabs .tibr-product-cover img{
  width:100%!important;
  height:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
  padding:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  filter:none!important;
  transform:none!important;
  display:block!important;
}
.tibr-books-tabs .tibr-product-body{
  display:grid;
  grid-template-rows:auto auto auto;
  gap:7px;
  min-height:156px;
  padding:0 4px 4px!important;
  text-align:center;
  justify-items:center!important;
  align-content:start;
}
.tibr-books-tabs .tibr-product-body h3,
.tibr-books-tabs .tibr-product-price{
  justify-self:center!important;
  width:100%!important;
  margin-left:auto!important;
  margin-right:auto!important;
  text-align:center!important;
}
.tibr-books-tabs .tibr-product-body h3{
  min-height:48px!important;
  font-size:15px;
  line-height:1.6;
  display:flex;
  align-items:center;
  justify-content:center;
}
.tibr-books-tabs .tibr-product-body h3 a{
  display:block;
  width:100%;
  text-align:center!important;
}
.tibr-books-tabs .tibr-product-price,
.tibr-books-tabs .tibr-product-price *,
.tibr-books-tabs .tibr-product-price .amount,
.tibr-books-tabs .tibr-product-price ins,
.tibr-books-tabs .tibr-product-price del{
  text-align:center!important;
}
.tibr-books-tabs .tibr-product-link{
  margin-top:auto;
  align-self:end;
}
.tibr-product-card{
  display:grid;
  grid-template-rows:auto 1fr;
  border:1px solid rgba(5,43,30,.12);
  border-radius:8px;
  overflow:hidden;
  background:#fff;
  box-shadow:0 10px 26px rgba(5,43,30,.07);
}
.tibr-product-cover{
  display:block;
  aspect-ratio:3/4;
  background:#f4efe3;
  overflow:hidden;
}
.tibr-product-cover img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.tibr-product-body{
  display:grid;
  gap:8px;
  padding:12px;
  align-content:start;
}
.tibr-product-body h3{
  margin:0;
  font-size:16px;
  line-height:1.55;
  font-weight:900;
}
.tibr-product-body h3 a{
  color:var(--tibr-primary);
  text-decoration:none!important;
}
.tibr-product-price{
  color:var(--tibr-secondary);
  font-weight:900;
  min-height:24px;
}
.tibr-product-link,
.tibr-reading-body a{
  min-height:38px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 14px;
  border-radius:6px;
  background:var(--tibr-primary);
  color:#fff!important;
  text-decoration:none!important;
  font-weight:900;
  justify-self:center;
}
.tibr-reading-card{
  max-width:1120px;
  margin:0 auto;
  display:grid;
  grid-template-columns:150px minmax(0,1fr);
  gap:18px;
  align-items:center;
  padding:16px;
  border-radius:8px;
  background:#fff;
  border:1px solid rgba(5,43,30,.12);
  box-shadow:0 12px 30px rgba(5,43,30,.08);
}
.tibr-reading-cover{
  display:block;
  aspect-ratio:3/4;
  border-radius:6px;
  overflow:hidden;
  background:#f4efe3;
}
.tibr-reading-cover img{width:100%;height:100%;object-fit:cover;display:block}
.tibr-reading-body{
  display:grid;
  gap:9px;
}
.tibr-reading-body h3{
  margin:0;
  color:var(--tibr-primary);
  font-size:22px;
  font-weight:900;
}
.tibr-reading-body p{
  margin:0;
  color:#607068;
  font-weight:800;
}
.tibr-reading-progress{
  height:12px;
  border-radius:999px;
  overflow:hidden;
  background:rgba(5,43,30,.18);
}
.tibr-reading-progress span{
  display:block;
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg,var(--tibr-primary),var(--tibr-secondary));
}
.tibr-reading-body strong{
  color:var(--tibr-primary);
  font-weight:900;
}
.tibr-empty{
  grid-column:1/-1;
  margin:0;
  padding:18px;
  border-radius:8px;
  background:#fff;
  color:#607068;
  font-weight:800;
}
@media(max-width:980px){
  .tibr-home-products{grid-template-columns:repeat(3,minmax(0,1fr))}
  .tibr-search-filters{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:700px){
  .tibr-home-block{padding:18px 10px}
  .tibr-block-head{text-align:center}
  .tibr-block-head h2{font-size:23px}
  .tibr-search-form{padding:14px;border-radius:8px}
  .tibr-search-main{grid-template-columns:38px minmax(0,1fr);gap:6px}
  .tibr-search-main button{grid-column:1/-1;width:100%}
  .tibr-search-filters{grid-template-columns:1fr}
  .tibr-search-actions{display:grid;grid-template-columns:1fr}
  .tibr-search-actions button,.tibr-search-actions a{width:100%}
  .tibr-home-products{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .tibr-books-tabs .tibr-home-products{
    grid-template-columns:repeat(2,minmax(0,155px));
    justify-content:center;
    gap:18px 12px;
  }
  .tibr-books-tabs .tibr-product-cover{width:min(100%, 155px)}
  .tibr-books-tabs .tibr-product-cover{height:220px}
  .tibr-books-tabs .tibr-product-body{min-height:154px}
  .tibr-books-tabs .tibr-product-body h3{min-height:52px!important}
  .tibr-tabs{text-align:center}
  .tibr-tab-buttons{width:100%;gap:6px;padding:6px}
  .tibr-tab-buttons button{width:100%;padding:0 6px;font-size:13px;line-height:1.45}
  .tibr-product-body{padding:10px}
  .tibr-product-body h3{font-size:14px}
  .tibr-reading-card{grid-template-columns:88px minmax(0,1fr);gap:12px;padding:12px}
  .tibr-reading-body h3{font-size:16px}
}
