/* Static Arabic category page, matched against Microless category layout. */
.category-body {
  background: #fff;
  color: #333;
}

.category-body .site-header {
  margin-bottom: 0;
}

.category-page {
  min-height: 900px;
}

.category-layout {
  padding-top: 27.5px;
  padding-bottom: 28px;
}

.category-row {
  display: flex;
  align-items: flex-start;
}

.catalog-sidebar {
  width: 200px;
  flex: 0 0 200px;
}

.mobile-filter-header {
  display: none;
}

.catalog-content {
  position: relative;
  width: calc(100% - 220px);
  margin-right: 20px;
  padding-right: 20px;
}

/* Microless separates the filter rail from the product area with a light vertical rule. */
.catalog-content::after {
  position: absolute;
  top: 15px;
  right: 0;
  bottom: 0;
  width: 1px;
  background: #e7e7e7;
  content: "";
  pointer-events: none;
}

.catalog-heading-row {
  display: flex;
  min-height: 31px;
  align-items: center;
  justify-content: flex-start;
  margin: 15px 0;
}

.catalog-heading-row h1 {
  margin: 0;
  color: #333;
  font-family: Tajawal, Helvetica, Arial, sans-serif;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.1;
}

.catalog-sidebar,
.shop-categories {
  font-family: Tajawal, Helvetica, Arial, sans-serif;
  line-height: 21px;
}

.shop-categories h2 {
  margin: 25px 0 0;
  color: #333;
  font-family: Tajawal, Helvetica, Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
}

.shop-category-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 25px;
  margin-top: 20px;
  overflow: hidden;
}

.shop-category-card {
  position: relative;
  display: flex;
  width: calc(25% - 18.75px);
  height: auto;
  flex: 0 0 calc(25% - 18.75px);
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: #f5f5f5;
  color: #444;
  text-align: center;
  text-decoration: none !important;
  transition: border-color .16s ease, box-shadow .16s ease;
}

.shop-category-card:hover,
.shop-category-card:focus {
  border: 1px solid #ddd;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, .1);
  color: #444;
}

.shop-category-card img {
  display: block;
  width: calc(100% - 80px);
  height: auto;
  aspect-ratio: 1;
  margin: 30px 40px 10px;
  padding: 0;
  object-fit: contain;
  background: transparent;
}

.shop-category-card span {
  display: flex;
  width: 100%;
  height: 62px;
  min-height: 62px;
  align-items: center;
  justify-content: center;
  padding: 7px 12px 15px;
  overflow: hidden;
  font-size: 14px;
  font-weight: 700;
  line-height: 17px;
}

.catalog-meta-row {
  display: flex;
  min-height: 35px;
  align-items: center;
  justify-content: space-between;
  margin-top: 47px;
  border-bottom: 1px solid #e4e4e4;
  color: #555;
  font-size: 14px;
}

.catalog-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.catalog-breadcrumb a,
.catalog-breadcrumb span {
  color: #666;
}

.catalog-toolbar {
  display: flex;
  min-height: 56px;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid #e4e4e4;
}

.sort-control {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  font-size: 13px;
  font-weight: 400;
}

.sort-control select {
  width: 160px;
  height: 32px;
  padding: 4px 8px;
  border: 1px solid #ccc;
  border-radius: 0;
  background: #fff;
  color: #333;
}

.view-switch {
  display: flex;
  margin-right: auto;
}

.view-button,
.mobile-filter-trigger {
  height: 32px;
  padding: 0 12px;
  border: 1px solid #ccc;
  background: #fff;
  color: #555;
  font-size: 13px;
}

.view-button + .view-button {
  border-right: 0;
}

.view-button.is-active,
.view-button:hover,
.mobile-filter-trigger:hover {
  border-color: #fecb00;
  background: #fecb00;
  color: #000;
}

.mobile-filter-trigger {
  display: none;
}

.filter-panel {
  padding: 0;
  border-bottom: 1px solid #e7e7e7;
}

.filter-panel:first-child {
  padding-top: 0;
}

.filter-panel__title {
  display: flex;
  width: 100%;
  min-height: 16.5px;
  height: 16.5px;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  border: 0;
  background: transparent;
  color: #333;
  font-family: Tajawal, Helvetica, Arial, sans-serif;
  margin: 20px 0 10px;
  font-size: 15px;
  font-weight: 700;
  line-height: 16.5px;
  text-align: right;
}

.filter-panel__title .fa {
  font-size: 12px;
}

.filter-panel__body {
  padding-bottom: 10px;
}

.filter-panel--category .filter-panel__body {
  padding-top: 1px;
}

.filter-panel:not(.is-open) .filter-panel__body {
  display: none;
}

.filter-current-category {
  display: block;
  margin: 0 0 10px;
  padding-top: 10px;
  color: #333;
  font-family: Tajawal, Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 20px;
}

.filter-category-tree,
.filter-category-tree ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.filter-category-tree {
  padding-right: 10px;
}

.filter-category-tree > li {
  margin-bottom: 10px;
}

.filter-category-tree ul {
  padding: 10px 10px 0 0;
}

.filter-category-tree ul li {
  margin-bottom: 10px;
}

.filter-category-tree a {
  display: block;
  color: #444;
  font-family: Tajawal, Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 20px;
}

.filter-category-tree a span {
  margin-right: 7px;
  color: #888;
}

.filter-category-tree > li > a {
  color: #444;
  font-size: 13px;
  font-weight: 700;
  line-height: 20px;
}

.filter-category-tree a:hover {
  color: #2d91ca;
}

.filter-options label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 7px;
  color: #555;
  cursor: pointer;
  font-family: Tajawal, Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 20px;
}

.filter-options input {
  margin: 0;
}

.filter-options em {
  color: #888;
  font-size: 11px;
  font-style: normal;
}

.filter-more {
  padding: 0;
  border: 0;
  background: transparent;
  color: #555;
  font-family: Tajawal, Helvetica, Arial, sans-serif;
  font-size: 13px;
  line-height: 20px;
}

.price-filter {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 6px;
  align-items: center;
}

.price-filter input {
  width: 100%;
  height: 30px;
  padding: 3px 6px;
  border: 1px solid #ccc;
  background: #fff;
  color: #333;
  direction: ltr;
  text-align: center;
}

.price-filter button {
  grid-column: 1 / -1;
  height: 29px;
  border: 0;
  background: #252525;
  color: #fff;
  font-size: 12px;
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 0;
  padding-top: 8px;
}

.active-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border: 1px solid #ddd;
  background: #f5f5f5;
  color: #555;
  font-size: 12px;
}

.active-filter button {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
}

.catalog-products {
  display: flex;
  flex-wrap: wrap;
  padding-top: 8px;
}

.listing-card {
  position: relative;
  display: flex;
  height: auto;
  width: 24.25%;
  flex-direction: column;
  align-items: flex-start;
  margin: 5px .5%;
  padding: 15px;
  border: 1px solid #eee;
  background: #fff;
  color: #333;
  font-family: Tajawal, Helvetica, Arial, sans-serif;
  font-size: 13px;
  line-height: 21px;
  transition: all;
}

.listing-card:nth-child(4n + 1) {
  margin-right: 0;
}

.listing-card:nth-child(4n) {
  margin-left: 0;
}

.listing-card:hover {
  border-color: #ddd;
  box-shadow: 0 0 5px rgba(0, 0, 0, .1) inset;
}

.listing-card__image {
  display: flex;
  width: 100%;
  height: 310px;
  flex: 0 0 310px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: transparent;
  line-height: 300px;
  text-align: center;
}

.listing-card__image img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 300px;
  padding: 8px;
  border-radius: 5px;
  background: #fff;
  object-fit: contain;
}

.listing-card__badge,
.listing-card__bestseller {
  position: absolute;
  z-index: 2;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
  line-height: 12px;
}

.listing-card__badge {
  top: 295px;
  right: 15px;
  padding: 5px 8px;
  background: #cef5bd;
  color: #009006;
  text-align: center;
}

.listing-card__bestseller {
  top: 8px;
  right: 8px;
  padding: 5px 10px;
  background: #518cff;
  color: #fff;
}

.listing-card__details {
  position: relative;
  width: 100%;
  height: 118px;
  flex: 0 0 118px;
}

.listing-card__title {
  display: block;
  width: 100%;
  height: 50px;
  margin: 0 0 23px;
  overflow: hidden;
  color: #222;
  font-size: 12px;
  font-weight: 700;
  line-height: 17px;
  text-decoration: none !important;
}

.listing-card:hover .listing-card__title {
  color: #428bca;
}

.listing-card__shipping-wrap {
  width: 100%;
  height: 45px;
  padding: 10px 0;
}

.listing-card__shipping {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 15px;
  background: #fecb00;
  color: #424242;
  font-size: 10px;
  font-weight: 600;
  line-height: 12px;
}

.listing-card__rating {
  display: none;
}

.listing-card__attributes,
.listing-card__compare-list {
  display: none;
}

.listing-card__price-box {
  width: 100%;
  margin: 0 0 10px;
  color: #222;
  font-family: "YS Text Regular", Arial, sans-serif;
}

.listing-card__price-row {
  display: block;
  width: 100%;
  height: 25px;
  overflow: hidden;
  direction: ltr;
  color: #222;
  font-family: "YS Text Regular", Arial, sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 23px;
  text-align: right;
  white-space: normal;
}

.listing-card__price-row > span {
  display: inline-block;
}

.listing-card__price {
  font-family: "YS Text Regular", Arial, sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 23px;
  direction: ltr;
}

.listing-card__currency {
  margin: 0;
  font-family: "YS Text Regular", Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 23px;
}

.listing-card__old-price {
  position: relative;
  display: block;
  width: 100%;
  height: 14px;
  margin: 2px 0 5px;
  color: #a09e9e;
  font-family: "YS Text Regular", Arial, sans-serif;
  font-size: 14px;
  line-height: 14px;
  text-decoration: line-through;
  direction: rtl;
  text-align: right;
}

html[dir="ltr"] .listing-card__price-row,
html[dir="ltr"] .listing-card__old-price {
  direction: ltr;
  text-align: left;
}

.listing-card__bottom {
  width: 100%;
  height: auto;
  min-height: 49px;
  flex: 0 0 auto;
  margin-top: auto;
  text-align: right;
}

.listing-card__delivery {
  height: auto;
  min-height: 15px;
  margin-top: 2px;
  color: #000;
  font-size: 12px;
  line-height: 15px;
}

.listing-card__delivery-label,
.listing-card__delivery strong {
  white-space: nowrap;
}

.listing-card__delivery strong {
  color: #55af55;
  font-weight: 400;
}

.listing-card__compare {
  display: flex;
  height: 32px;
  align-items: baseline;
  gap: 5px;
  margin: 0;
  padding-top: 8px;
  color: #777;
  font-size: 12px;
  font-weight: 400;
  direction: rtl;
}

.listing-card__compare input {
  width: 20px;
  height: 20px;
  margin: 0;
}

.catalog-products.view-list {
  display: block;
}

.catalog-products.view-list .listing-card {
  display: grid;
  width: 100%;
  height: 320px;
  grid-template-columns: 19.25% 60.75% 20%;
  grid-template-rows: 1fr;
  margin: 0 0 5px;
  padding: 15px;
  column-gap: 0;
}

.catalog-products.view-list .listing-card__image {
  width: 100%;
  height: 250px;
  flex-basis: auto;
  grid-column: 1;
  grid-row: 1;
  padding-left: 20px;
  line-height: 220px;
}

.catalog-products.view-list .listing-card__badge {
  top: 273px;
  right: 15px;
}

.catalog-products.view-list .listing-card__details {
  height: auto;
  min-height: 268px;
  grid-column: 2;
  grid-row: 1;
  margin: 20px 0 0 20px;
  padding: 0 0 0 10px;
}

.catalog-products.view-list .listing-card__title {
  height: 50px;
  min-height: 50px;
  margin: 0;
  font-size: 12px;
  line-height: 17px;
}

.catalog-products.view-list .listing-card__attributes {
  display: block;
  height: 131px;
  margin: 5px 0;
  overflow: hidden;
}

.catalog-products.view-list .listing-card__attributes ul {
  margin: 0;
  padding: 0 18px 5px 0;
}

.catalog-products.view-list .listing-card__compare-list {
  display: flex;
  height: 32px;
  align-items: center;
  gap: 5px;
  color: #777;
  font-size: 12px;
}

.catalog-products.view-list .listing-card__price-box {
  position: absolute;
  top: 22px;
  left: 0;
  height: auto;
  width: auto;
  min-width: 130px;
  margin: 0;
  padding: 10px 15px;
}

.catalog-products.view-list .listing-card__bottom {
  width: 100%;
  height: 69px;
  grid-column: 3;
  grid-row: 1;
  align-self: end;
  margin: 0;
}

.catalog-products.view-list .listing-card__bottom .listing-card__compare {
  display: none;
}

.woocommerce-pagination.catalog-pagination {
  width: 100%;
  margin: 40px 0 0;
  clear: both;
  text-align: center;
}

.woocommerce-pagination.catalog-pagination ul.page-numbers {
  display: flex;
  width: 100%;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  border: 0;
  list-style: none;
}

.woocommerce-pagination.catalog-pagination ul.page-numbers > li {
  display: inline-flex;
  margin: 0 5px;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: transparent;
}

.woocommerce-pagination.catalog-pagination .pagination-page > .page-numbers {
  display: inline-flex;
  min-width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #222;
  font-size: 16px;
  font-weight: 400;
  line-height: 16px;
  text-decoration: none;
}

.woocommerce-pagination.catalog-pagination .pagination-page > a.page-numbers:hover,
.woocommerce-pagination.catalog-pagination .pagination-page > a.page-numbers:focus {
  background: #f3f3f3;
  color: #222;
  text-decoration: none;
}

.woocommerce-pagination.catalog-pagination .pagination-page > .page-numbers.current {
  background: #fecb02;
  color: #222;
}

.woocommerce-pagination.catalog-pagination ul.page-numbers > li.pagination-arrow {
  margin: 0 10px;
}

.woocommerce-pagination.catalog-pagination .pagination-arrow > .page-numbers {
  display: inline-flex;
  min-width: 88px;
  height: 29px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 15px;
  border: 0;
  border-radius: 3px;
  background: #222;
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  line-height: 16px;
  text-decoration: none;
}

.woocommerce-pagination.catalog-pagination .pagination-arrow > .page-numbers:hover,
.woocommerce-pagination.catalog-pagination .pagination-arrow > .page-numbers:focus {
  background: #fecb02;
  color: #222;
  text-decoration: none;
}

.category-filter-overlay {
  display: none;
}

body.dark-theme.category-body {
  background: #262626;
  color: #fff;
}

body.dark-theme .catalog-content {
  border-color: #404040;
}

body.dark-theme .catalog-heading-row h1,
body.dark-theme .shop-categories h2,
body.dark-theme .filter-current-category {
  color: #fff;
}

body.dark-theme .filter-panel__title {
  color: #e1e1e1;
}

body.dark-theme .shop-category-card {
  border: 0;
  background: #3d3d3d;
  color: #fff;
}

body.dark-theme .shop-category-card:hover {
  border: 1px solid #404040;
  box-shadow: inset 0 0 5px rgba(255, 255, 255, .1);
  color: #fff;
}

body.dark-theme .filter-panel,
body.dark-theme .catalog-meta-row,
body.dark-theme .catalog-toolbar {
  border-color: #404040;
}

body.dark-theme .filter-category-tree a,
body.dark-theme .filter-category-tree > li > a,
body.dark-theme .filter-options label,
body.dark-theme .filter-more,
body.dark-theme .catalog-meta-row,
body.dark-theme .catalog-breadcrumb a,
body.dark-theme .catalog-breadcrumb span,
body.dark-theme .sort-control {
  color: #a1a1a1;
}

body.dark-theme .sort-control select,
body.dark-theme .view-button,
body.dark-theme .mobile-filter-trigger,
body.dark-theme .price-filter input {
  border-color: #404040;
  background: #303030;
  color: #fff;
}

body.dark-theme .listing-card {
  border-color: #303030;
  background: #303030;
  color: #fff;
}

body.dark-theme .listing-card:hover {
  border-color: #404040;
  box-shadow: inset 0 0 5px rgba(255, 255, 255, .1);
}

body.dark-theme .listing-card__title,
body.dark-theme .listing-card__price-row {
  color: #e1e1e1;
}

body.dark-theme .listing-card__delivery,
body.dark-theme .listing-card__compare {
  color: #a1a1a1;
}

body.dark-theme .listing-card__shipping {
  color: #424242;
}

body.dark-theme .listing-card__delivery-label {
  color: #e1e1e1;
}

body.dark-theme .listing-card__attributes,
body.dark-theme .listing-card__compare-list {
  color: #a1a1a1;
}

body.dark-theme .active-filter {
  border-color: #404040;
  background: #303030;
  color: #e1e1e1;
}

body.dark-theme .woocommerce-pagination.catalog-pagination .pagination-page > .page-numbers {
  color: #e1e1e1;
}

body.dark-theme .woocommerce-pagination.catalog-pagination .pagination-page > a.page-numbers:hover,
body.dark-theme .woocommerce-pagination.catalog-pagination .pagination-page > a.page-numbers:focus {
  background: #404040;
  color: #fff;
}

body.dark-theme .woocommerce-pagination.catalog-pagination .pagination-page > .page-numbers.current {
  background: #fecb02;
  color: #222;
}

body.dark-theme .woocommerce-pagination.catalog-pagination .pagination-arrow > .page-numbers {
  background: #111;
  color: #fff;
}

body.dark-theme .woocommerce-pagination.catalog-pagination .pagination-arrow > .page-numbers:hover,
body.dark-theme .woocommerce-pagination.catalog-pagination .pagination-arrow > .page-numbers:focus {
  background: #fecb02;
  color: #222;
}

@media (max-width: 767px) {
  .woocommerce-pagination.catalog-pagination {
    margin-top: 28px;
  }

  .woocommerce-pagination.catalog-pagination .pagination-page {
    display: none;
  }

  .woocommerce-pagination.catalog-pagination ul.page-numbers > li.pagination-arrow {
    margin: 0 5px;
  }

  .woocommerce-pagination.catalog-pagination .pagination-arrow > .page-numbers {
    min-width: 105px;
    height: 34px;
  }

  .catalog-content::after {
    display: none;
  }

  .category-layout {
    padding-top: 28px;
  }

  .category-row {
    display: block;
  }

  .catalog-content {
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
  }

  .catalog-heading-row {
    min-height: 25px;
    margin: 7px 0 24px;
    justify-content: flex-start;
  }

  .catalog-heading-row h1 {
    font-size: 22px;
  }

  .shop-categories h2 {
    margin: 0;
    font-size: 18px;
  }

  .shop-category-grid {
    gap: 8px;
    justify-content: flex-start;
  }

  .shop-category-card {
    width: calc(25% - 6px);
    height: auto;
    flex-basis: calc(25% - 6px);
  }

  .shop-category-card img {
    width: calc(100% - 40px);
    height: auto;
    margin: 20px 20px 5px;
    padding: 0;
  }

  .shop-category-card span {
    min-height: 62px;
    padding: 7px 8px 15px;
    font-size: 11px;
  }

  .catalog-meta-row {
    display: block;
    margin-top: 26px;
    padding-bottom: 8px;
  }

  .catalog-count {
    display: block;
    margin-bottom: 8px;
  }

  .catalog-breadcrumb {
    font-size: 12px;
  }

  .catalog-toolbar {
    flex-wrap: wrap;
    gap: 7px;
    padding: 8px 0;
  }

  .mobile-filter-trigger {
    display: inline-block;
  }

  .sort-control {
    flex: 1;
  }

  .sort-control > span {
    display: none;
  }

  .sort-control select {
    width: 100%;
  }

  .view-switch {
    margin-right: 0;
  }

  .view-button {
    width: 34px;
    padding: 0;
    overflow: hidden;
    color: transparent;
    white-space: nowrap;
  }

  .view-button .fa {
    color: #555;
  }

  .view-button.is-active .fa {
    color: #000;
  }

  .catalog-products {
    display: flex;
    margin-top: -3px;
    padding-top: 0;
  }

  .listing-card {
    width: 49%;
    height: auto;
    margin: 3.5px 1%;
    padding: 8px;
  }

  .listing-card:nth-child(odd) {
    margin-right: 0;
    margin-left: 1%;
  }

  .listing-card:nth-child(even) {
    margin-right: 1%;
    margin-left: 0;
  }

  .listing-card__image {
    height: 260px;
    flex-basis: 260px;
    line-height: 250px;
  }

  .listing-card__image img {
    max-height: 250px;
  }

  .listing-card__badge {
    top: 240px;
    right: 8px;
  }

  .listing-card__details {
    height: 115px;
    flex-basis: 115px;
  }

  .listing-card__title {
    height: 47px;
    min-height: 47px;
    font-size: 12px;
    line-height: 16px;
  }

  .listing-card__shipping {
    padding: 4px 6px;
    font-size: 9px;
  }

  .listing-card__price {
    font-size: 20px;
  }

  .listing-card__bottom {
    min-height: 52px;
  }

  .catalog-products.view-list .listing-card {
    display: grid;
    width: 100%;
    height: 250px;
    grid-template-columns: 38% 62%;
    grid-template-rows: auto auto 1fr;
    margin: 0 0 5px;
    padding: 8px;
    column-gap: 10px;
  }

  .catalog-products.view-list .listing-card__image {
    height: 210px;
    grid-column: 1;
    grid-row: 1 / 4;
    padding-left: 8px;
  }

  .catalog-products.view-list .listing-card__details {
    min-height: 225px;
    grid-column: 2;
    grid-row: 1;
    margin: 8px 0 0;
    padding: 0;
  }

  .catalog-products.view-list .listing-card__attributes {
    height: 78px;
    font-size: 10px;
    line-height: 15px;
  }

  .catalog-products.view-list .listing-card__price-box {
    position: static;
    width: 100%;
    min-width: 0;
    grid-column: 2;
    grid-row: 2;
    padding: 0;
  }

  .catalog-products.view-list .listing-card__bottom {
    display: none;
    grid-column: 2;
    grid-row: 3;
  }

  .catalog-sidebar {
    position: fixed;
    z-index: 2100;
    top: 0;
    right: 0;
    display: block;
    width: min(90vw, 365px);
    height: 100vh;
    padding: 16px;
    overflow-y: auto;
    background: #fff;
    box-shadow: -6px 0 18px rgba(0, 0, 0, .18);
    transform: translateX(105%);
    transition: transform .22s ease;
  }

  .mobile-filter-header {
    position: sticky;
    z-index: 2;
    top: -16px;
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    margin: -16px -16px 8px;
    padding: 0 16px;
    border-bottom: 1px solid #ddd;
    background: inherit;
    font-size: 16px;
  }

  .mobile-filter-header button {
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 18px;
  }

  body.dark-theme .mobile-filter-header {
    border-color: #404040;
  }

  .catalog-sidebar.is-open {
    transform: translateX(0);
  }

  body.dark-theme .catalog-sidebar {
    background: #303030;
    color: #e1e1e1;
  }

  .category-filter-overlay {
    position: fixed;
    z-index: 2090;
    inset: 0;
    display: block;
    visibility: hidden;
    background: rgba(0, 0, 0, .55);
    opacity: 0;
    transition: opacity .2s ease, visibility .2s ease;
  }

  .category-filter-overlay.is-visible {
    visibility: visible;
    opacity: 1;
  }
}

@media (max-width: 390px) {
  .listing-card__image {
    height: 260px;
    flex-basis: 260px;
  }
}

@media (max-width: 360px) {
  .listing-card {
    height: auto;
  }

  .listing-card__image {
    height: 260px;
    flex-basis: 260px;
  }
}

@media (min-width: 1200px) {
  .shop-category-card {
    width: calc(20% - 20px);
    flex-basis: calc(20% - 20px);
  }

  .catalog-meta-row {
    position: relative;
    min-height: 56px;
    margin-top: 44px;
    justify-content: flex-start;
    color: #333;
    font-family: Tajawal, Helvetica, Arial, sans-serif;
    line-height: 25px;
  }

  .catalog-count {
    color: #333;
  }

  .catalog-breadcrumb {
    position: absolute;
    right: 92px;
    gap: 8px;
    color: #333;
    font-family: Tajawal, Helvetica, Arial, sans-serif;
    line-height: 25px;
  }

  .catalog-breadcrumb a {
    color: #000;
  }

  .catalog-breadcrumb span {
    color: #222;
  }

  .catalog-toolbar {
    position: relative;
    width: 395.34px;
    min-height: 56px;
    margin-top: -56px;
    margin-right: auto;
    gap: 15px;
    border-bottom: 0;
    font-family: Tajawal, Helvetica, Arial, sans-serif;
    line-height: 25px;
  }

  .sort-control {
    width: 248.26px;
    height: 31px;
    flex: 0 0 248.26px;
    gap: 8px;
    font-family: Tajawal, Helvetica, Arial, sans-serif;
    font-size: 13px;
    line-height: 25px;
    transform: translateY(1.6px);
  }

  .sort-control > .sort-icon {
    display: none;
  }

  .sort-control > .sort-label {
    flex: 0 0 auto;
    padding-left: 5px;
    white-space: nowrap;
  }

  .sort-control select {
    width: 171.43px;
    height: 31px;
    flex: 0 0 171.43px;
    padding: 5px 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    background: #fff;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
    color: #555;
    font-family: Tajawal, Helvetica, Arial, sans-serif;
    font-size: 12px;
  }

  .view-switch {
    width: 132.08px;
    height: 33px;
    flex: 0 0 132.08px;
    transform: translateY(1.6px);
  }

  .view-button {
    display: flex;
    height: 33px;
    align-items: baseline;
    justify-content: center;
    gap: 3px;
    padding: 5px 10px;
    border: 1px solid #ccc;
    background: #fff;
    color: #222;
    font-family: Tajawal, Helvetica, Arial, sans-serif;
    font-size: 12px;
    line-height: 18px;
    white-space: nowrap;
  }

  .view-button[data-view="list"] {
    width: 65.98px;
    border-radius: 0 4px 4px 0;
  }

  .view-button[data-view="grid"] {
    width: 67.1px;
    margin-right: -1px;
    border-right: 1px solid #adadad;
    border-radius: 4px 0 0 4px;
  }

  .view-button .fa {
    font-size: 14px;
    line-height: 20px;
  }

  .view-button.is-active,
  .view-button:hover {
    border-color: #adadad;
    background: #e6e6e6;
    box-shadow: inset 0 3px 5px rgba(0, 0, 0, .1);
    color: #222;
  }

  .active-filters:empty {
    padding-top: 5px;
  }

  .catalog-products {
    padding-top: 0;
  }
}

@media (max-width: 991px) {
  .shop-category-card {
    width: calc(33.3333% - 16.9px);
    flex-basis: calc(33.3333% - 16.9px);
  }

  .shop-category-card img {
    width: calc(100% - 40px);
    margin: 20px 20px 5px;
  }
}

@media (max-width: 767px) {
  .shop-category-card {
    width: calc(25% - 6px);
    flex-basis: calc(25% - 6px);
  }

  .shop-category-grid {
    margin-bottom: 45px;
  }

  .catalog-meta-row {
    height: 41px;
    min-height: 41px;
    margin-top: 0;
    padding: 15px 0 0;
    color: #333;
    font-family: Tajawal, Helvetica, Arial, sans-serif;
    line-height: 25px;
  }

  .catalog-count {
    margin: 0;
    color: #333;
    line-height: 25px;
  }

  .catalog-breadcrumb {
    display: none;
  }

  .catalog-toolbar {
    height: 59px;
    min-height: 59px;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 15px;
    padding: 0 0 27px;
    border: 0;
    font-family: Tajawal, Helvetica, Arial, sans-serif;
    line-height: 25px;
  }

  .sort-control {
    width: auto;
    height: 31px;
    min-width: 0;
    flex: 1 1 auto;
    justify-content: flex-start;
    gap: 3px;
    font-family: Tajawal, Helvetica, Arial, sans-serif;
    line-height: 25px;
  }

  .sort-control > .sort-icon {
    display: inline-flex;
    width: 18.33px;
    height: 31px;
    flex: 0 0 18.33px;
    align-items: center;
    justify-content: flex-start;
  }

  .sort-control > .sort-icon i {
    font-size: 13px;
    line-height: 13px;
  }

  .sort-control > .sort-label {
    display: none;
  }

  .sort-control select {
    width: 110px;
    height: 31px;
    flex: 0 0 110px;
    padding: 5px 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    background: #fff;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
    color: #555;
    font-family: Tajawal, Helvetica, Arial, sans-serif;
    font-size: 12px;
    transform: translateY(.45px);
  }

  .mobile-filter-trigger {
    display: inline-flex;
    width: 36.89px;
    height: 32px;
    flex: 0 0 36.89px;
    align-items: center;
    justify-content: center;
    padding: 5px 12px;
    border: 1px solid #ccc;
    border-radius: 2px;
    background: #fff;
    color: #333;
    font-size: 14px;
    line-height: 20px;
  }

  .mobile-filter-trigger span {
    display: none;
  }

  .view-switch {
    width: 70.82px;
    height: 32px;
    flex: 0 0 70.82px;
    margin-right: 0;
  }

  .view-button {
    display: block;
    width: 35.91px;
    height: 32px;
    padding: 5px 10px;
    border: 1px solid #ccc;
    background: #fff;
    color: transparent;
    font-size: 0;
    line-height: 0;
  }

  .view-button[data-view="list"] {
    border-radius: 0 4px 4px 0;
  }

  .view-button[data-view="grid"] {
    margin-right: -1px;
    border-right: 1px solid #adadad;
    border-radius: 4px 0 0 4px;
  }

  .view-button .fa {
    color: #222;
    font-size: 14px;
    line-height: 20px;
  }

  .view-button.is-active,
  .view-button:hover {
    border-color: #adadad;
    background: #e6e6e6;
    box-shadow: inset 0 3px 5px rgba(0, 0, 0, .1);
    color: transparent;
  }
}

@media (max-width: 680px) {
  .shop-category-card {
    width: calc(33.3333% - 5.33px);
    flex-basis: calc(33.3333% - 5.33px);
  }
}

@media (max-width: 375px) {
  .shop-category-card {
    width: calc(50% - 4px);
    flex-basis: calc(50% - 4px);
  }
}

body.dark-theme .catalog-count,
body.dark-theme .sort-control {
  color: #e1e1e1;
}

body.dark-theme .catalog-breadcrumb,
body.dark-theme .catalog-breadcrumb a,
body.dark-theme .catalog-breadcrumb span {
  color: #fff;
}

body.dark-theme .sort-control select,
body.dark-theme .mobile-filter-trigger {
  border-color: #404040;
  background: #404040;
  color: #e1e1e1;
}

body.dark-theme .view-button {
  border-color: #404040;
  background: #303030;
  color: #e1e1e1;
}

body.dark-theme .view-button .fa {
  color: #e1e1e1;
}

body.dark-theme .view-button.is-active,
body.dark-theme .view-button:hover {
  border-color: #404040;
  background: #404040;
  box-shadow: inset 0 3px 5px rgba(0, 0, 0, .1);
  color: #e1e1e1;
}

/* Match the Microless mobile catalogue: two equal, edge-to-edge product cards. */
@media (max-width: 767px) {
  .woocommerce .catalog-content .products.catalog-products.view-grid {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 5px;
    margin: -3px 0 0;
    padding: 0;
  }

  .woocommerce .catalog-content .products.catalog-products.view-grid > .listing-card {
    width: 100%;
    min-width: 0;
    max-width: none;
    float: none;
    clear: none;
    margin: 0;
  }
}

@media (max-width: 472px) {
  .listing-card__price {
    font-size: 18px;
  }
}
