/**

 * Safirmall Shop / Product Category

 * Uses the native Flatsome product-loop markup.

 */

body:is(.post-type-archive-product, .tax-product_cat) {
  --gw-shop-blue: var(--blue, #000b99);

  --gw-shop-blue-2: #1624b8;

  --gw-shop-blue-soft: var(--blue3, #eef0ff);

  --gw-shop-ink: #101426;

  --gw-shop-muted: var(--muted, #686d7d);

  --gw-shop-line: #e7e9f2;

  --gw-shop-bg: #f7f8fc;

  --gw-shop-card: #ffffff;
}

body:is(.post-type-archive-product, .tax-product_cat) #main {
  overflow: clip;

  background: var(--gw-shop-bg);

  color: var(--gw-shop-ink);
}

/**

 * Main archive layout

 */

body:is(.post-type-archive-product, .tax-product_cat) .category-page-row {
  display: grid;

  padding-top: 30px;

  padding-bottom: 72px;

  grid-template-columns: 270px minmax(0, 1fr);

  gap: 20px;

  align-items: flex-start;
}

body:is(.post-type-archive-product, .tax-product_cat)
  .category-page-row
  > .col {
  width: auto;

  max-width: none;

  min-width: 0;

  padding: 0;

  flex-basis: auto;
}

body:is(.post-type-archive-product, .tax-product_cat) .shop-container {
  width: 100%;
}

body:is(.post-type-archive-product, .tax-product_cat)
  .woocommerce-notices-wrapper:not(:empty) {
  margin-bottom: 18px;
}

body:is(.post-type-archive-product, .tax-product_cat) .woocommerce-message,
body:is(.post-type-archive-product, .tax-product_cat) .woocommerce-info,
body:is(.post-type-archive-product, .tax-product_cat) .woocommerce-error {
  margin: 0 0 16px;

  padding: 14px 16px;

  border: 1px solid #dfe3ff;

  border-radius: 15px;

  background: #f6f7ff;

  color: #30364a;

  font-size: 12px;

  line-height: 1.9;
}

/**

 * Shop sidebar

 */

body:is(.post-type-archive-product, .tax-product_cat) #shop-sidebar {
  position: sticky;

  border: 1px solid var(--gw-shop-line);

  border-radius: 20px;

  background: var(--gw-shop-card);

  box-shadow: 0 8px 28px rgba(16, 20, 38, 0.04);

  display: flex;

  width: 100%;

  min-height: 235px;

  padding: 25px;

  margin-top: 1rem;

  flex-direction: column;

  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;

  max-height: 420px;

  overflow-y: auto;

  scrollbar-width: thin;
}

body:is(.post-type-archive-product, .tax-product_cat) #shop-sidebar .widget {
  margin: 0;

  padding: 0;
}

body:is(.post-type-archive-product, .tax-product_cat)
  #shop-sidebar
  .widget
  + .widget {
  margin-top: 0;

  padding-top: 16px;

  border-top: 1px solid var(--gw-shop-line);
}

body:is(.post-type-archive-product, .tax-product_cat)
  #shop-sidebar
  .widget:not(:last-child) {
  padding-bottom: 16px;
}

body:is(.post-type-archive-product, .tax-product_cat)
  #shop-sidebar
  .widget-title {
  display: block;

  margin: 0;

  color: var(--gw-shop-ink);

  font-size: 12px;

  font-weight: 900;

  line-height: 1.8;

  letter-spacing: 0;

  text-transform: none;
}

body:is(.post-type-archive-product, .tax-product_cat)
  #shop-sidebar
  .is-divider {
  display: none;
}

/**

 * Price filter

 */

body:is(.post-type-archive-product, .tax-product_cat)
  #shop-sidebar
  .price_slider_wrapper {
  padding-top: 12px;
}

body:is(.post-type-archive-product, .tax-product_cat)
  #shop-sidebar
  .price_slider {
  height: 5px;

  margin: 8px 7px 20px;

  border: 0;

  border-radius: 999px;

  background: #e9ebf3;

  box-shadow: none;
}

body:is(.post-type-archive-product, .tax-product_cat)
  #shop-sidebar
  .price_slider
  .ui-slider-range {
  height: 5px;

  border: 0;

  border-radius: 999px;

  background: var(--gw-shop-blue);
}

body:is(.post-type-archive-product, .tax-product_cat)
  #shop-sidebar
  .price_slider
  .ui-slider-handle {
  top: 50%;

  width: 16px;

  height: 16px;

  margin-top: -8px;

  border: 3px solid var(--gw-shop-blue);

  border-radius: 50%;

  background: #ffffff;

  box-shadow: 0 3px 10px rgba(0, 11, 153, 0.16);

  cursor: grab;
}

body:is(.post-type-archive-product, .tax-product_cat)
  #shop-sidebar
  .price_slider
  .ui-slider-handle:focus-visible {
  outline: 3px solid rgba(0, 11, 153, 0.14);

  outline-offset: 2px;
}

body:is(.post-type-archive-product, .tax-product_cat)
  #shop-sidebar
  .price_slider_amount {
  display: grid;

  grid-template-columns: auto minmax(0, 1fr);

  gap: 10px;

  align-items: center;
}

body:is(.post-type-archive-product, .tax-product_cat)
  #shop-sidebar
  .price_slider_amount
  .button {
  order: 1;

  min-height: 38px;

  margin: 0;

  padding: 7px 14px;

  border: 0;

  border-radius: 11px;

  background: linear-gradient(
    135deg,
    var(--gw-shop-blue),
    var(--gw-shop-blue-2)
  );

  box-shadow: none;

  color: #ffffff;

  font-size: 11px;

  font-weight: 900;

  line-height: 1.8;

  letter-spacing: 0;

  text-transform: none;
}

body:is(.post-type-archive-product, .tax-product_cat)
  #shop-sidebar
  .price_slider_amount
  .price_label {
  order: 2;

  min-width: 0;

  color: var(--gw-shop-muted);

  font-size: 10px;

  font-weight: 700;

  line-height: 1.9;
}

body:is(.post-type-archive-product, .tax-product_cat)
  #shop-sidebar
  .price_slider_amount
  .clear {
  display: none;
}

/**

 * Product categories widget

 */

body:is(.post-type-archive-product, .tax-product_cat)
  #shop-sidebar
  .product-categories {
  display: grid;

  margin: 0;

  padding: 0;

  gap: 8px;

  list-style: none;
}

body:is(.post-type-archive-product, .tax-product_cat)
  #shop-sidebar
  .product-categories
  > li {
  margin: 0;

  padding: 0;

  border: 0;
}

body:is(.post-type-archive-product, .tax-product_cat)
  #shop-sidebar
  .product-categories
  > li::before {
  display: none;
}

body:is(.post-type-archive-product, .tax-product_cat)
  #shop-sidebar
  .product-categories
  > li
  > a {
  display: flex;

  min-height: 24px;

  padding: 0;

  align-items: center;

  color: #565b69;

  font-size: 11px;

  font-weight: 600;

  line-height: 1.8;

  text-decoration: none;

  transition:
    color 0.2s ease,
    background-color 0.2s ease;
}

body:is(.post-type-archive-product, .tax-product_cat)
  #shop-sidebar
  .product-categories
  > li
  > a:hover,
body:is(.post-type-archive-product, .tax-product_cat)
  #shop-sidebar
  .product-categories
  > li.current-cat
  > a,
body:is(.post-type-archive-product, .tax-product_cat)
  #shop-sidebar
  .product-categories
  > li.current-cat-parent
  > a {
  color: var(--gw-shop-blue);

  background: transparent;
}

/**

 * Native Flatsome products grid

 *

 * Product-card visuals live in the shared component inside style.css.

 * Flatsome remains responsible for archive column counts.

 */

body:is(.post-type-archive-product, .tax-product_cat)
  .shop-container
  > .products.row {
  margin-bottom: 8px;

  align-items: stretch;
}


body:is(.post-type-archive-product, .tax-product_cat){
  
}



/**

 * Pagination

 */

body:is(.post-type-archive-product, .tax-product_cat) .woocommerce-pagination {
  margin-top: 20px;
}

body:is(.post-type-archive-product, .tax-product_cat)
  .woocommerce-pagination
  .page-numbers {
  display: flex;

  margin: 0;

  padding: 0;

  flex-wrap: wrap;

  align-items: center;

  justify-content: center;

  gap: 7px;

  list-style: none;
}

body:is(.post-type-archive-product, .tax-product_cat)
  .woocommerce-pagination
  .page-numbers
  > li {
  margin: 0;

  padding: 0;

  border: 0;
}

body:is(.post-type-archive-product, .tax-product_cat)
  .woocommerce-pagination
  .page-number {
  display: inline-flex;

  width: 40px;

  min-width: 40px;

  height: 40px;

  min-height: 40px;

  margin: 0;

  padding: 0;

  border: 1px solid var(--gw-shop-line);

  border-radius: 11px;

  background: #ffffff;

  box-shadow: none;

  align-items: center;

  justify-content: center;

  color: #4d5261;

  font-size: 11px;

  font-weight: 900;

  line-height: 1;

  text-decoration: none;

  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    background-color 0.2s ease;
}

body:is(.post-type-archive-product, .tax-product_cat)
  .woocommerce-pagination
  .page-number:hover,
body:is(.post-type-archive-product, .tax-product_cat)
  .woocommerce-pagination
  .page-number.current {
  border-color: var(--gw-shop-blue);

  background: var(--gw-shop-blue);

  color: #ffffff;
}

/**

 * Responsive refinements; Flatsome keeps control of column counts.

 */

@media (max-width: 849px) {
  body:is(.post-type-archive-product, .tax-product_cat) .category-page-row {
    padding-top: 22px;

    padding-bottom: 56px;

    grid-template-columns: minmax(0, 1fr);
  }

  body:is(.post-type-archive-product, .tax-product_cat) .category-filtering {
    width: 100%;

    margin: 0 0 14px;

    padding: 0;
  }

  body:is(.post-type-archive-product, .tax-product_cat) .filter-button {
    display: flex !important;

    width: 100%;

    min-height: 48px;

    margin: 0 !important;

    padding: 10px 16px;

    border: 1px solid var(--gw-shop-blue);

    border-radius: 12px;

    background: linear-gradient(
      135deg,
      var(--gw-shop-blue),
      var(--gw-shop-blue-2)
    );

    box-shadow: 0 8px 20px rgba(0, 11, 153, 0.16);

    align-items: center;

    justify-content: center;

    gap: 8px;

    color: #ffffff !important;

    font-size: 12px;

    font-weight: 900;

    line-height: 1.8;

    letter-spacing: 0;

    text-decoration: none;

    text-transform: none;

    transition:
      background-color 0.2s ease,
      box-shadow 0.2s ease,
      transform 0.2s ease;
  }

  body:is(.post-type-archive-product, .tax-product_cat) .filter-button i,
  body:is(.post-type-archive-product, .tax-product_cat) .filter-button strong {
    margin: 0;

    color: inherit;
  }

  body:is(.post-type-archive-product, .tax-product_cat) .filter-button i {
    font-size: 18px;
  }

  body:is(.post-type-archive-product, .tax-product_cat) .filter-button:hover,
  body:is(.post-type-archive-product, .tax-product_cat) .filter-button:focus {
    background: var(--gw-shop-blue-2);

    box-shadow: 0 10px 24px rgba(0, 11, 153, 0.2);

    color: #ffffff !important;

    transform: translateY(-1px);
  }

  body:is(.post-type-archive-product, .tax-product_cat)
    .filter-button:focus-visible {
    outline: 3px solid rgba(0, 11, 153, 0.18);

    outline-offset: 3px;
  }

  body:is(.post-type-archive-product, .tax-product_cat)
    .shop-container
    > .products.row {
    width: 100%;

    margin-right: 0;

    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  body:is(.post-type-archive-product, .tax-product_cat)
    #shop-sidebar
    .product-categories
    > li
    > a,
  body:is(.post-type-archive-product, .tax-product_cat) .filter-button {
    transition: none;
  }
}

.term-description {
  display: flex;

  width: 100%;

  min-height: 235px;

  padding: 25px;

  margin-top: 1rem;

  border: 1px solid #e7e9f2;

  border-radius: 22px;

  background: #ffffff;

  flex-direction: column;

  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;

  max-height: 420px;

  overflow-y: auto;

  scrollbar-width: thin;
}

/* link color */
.term-description a{
  color: #000b99;

}