/* ..::Shop page::.. */

.rts-shop-section .shop-filter-form {
  flex-wrap: wrap;
  gap: 10px;
}

.rts-shop-section .shop-filter-form .filter-search input {
  vertical-align: top;
  padding: 10px 15px;
  border: 1px solid #ced4da;
  color: #040404;
  font-size: 16px;
  border-radius: 5px;
  outline: none;
  background: transparent;
  width: 220px;
  transition: border-color 0.2s ease;
}

.rts-shop-section .shop-filter-form .filter-search input:focus {
  border-color: #ee403d;
}

.rts-shop-section .shop-filter-form .select-area {
  margin: 0;
}

.rts-shop-section .shop-filter-form .filter-btn-main {
  padding: 10px 22px;
  border: 0;
  border-radius: 5px;
  background: #ee403d;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.rts-shop-section .shop-filter-form .filter-btn-main:hover {
  opacity: 0.9;
}

.rts-shop-section .shop-filter-form .filter-reset {
  font-size: 15px;
  color: #777777;
  text-decoration: underline;
}

.rts-shop-section .shop-filter-form .filter-reset:hover {
  color: #ee403d;
}

.rts-shop-section .products-area .product-image {
  position: relative;
}

.rts-shop-section .product-promo-badge {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  z-index: 3;
  background: #ee403d;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(238, 64, 61, 0.3);
}

.shop-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 60px 20px;
  text-align: center;
}

.shop-empty-state i {
  font-size: 48px;
  color: #e3e3e3;
}

.shop-empty-state p {
  margin: 0;
  font-size: 18px;
  color: #777777;
}

.shop-empty-state-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  border-radius: 5px;
  background: #ee403d;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.shop-empty-state-btn:hover {
  color: #fff;
  opacity: 0.9;
}

.product-pagination-area .page-item {
  width: 50px;
  height: 50px;
  border: 1px solid #f0f0f0;
  border-radius: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  color: #040404;
  margin-right: 7px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.product-pagination-area .page-item.active,
.product-pagination-area .page-item:hover {
  background: #ee403d;
  border-color: #ee403d;
  color: #fff;
}

.product-pagination-area .page-item.disabled {
  color: #c9c9c9;
  cursor: not-allowed;
}

.product-pagination-area .page-item.dots {
  border-color: transparent;
  color: #777777;
}

.product-pagination-area .page-item.dots:hover {
  background: transparent;
  color: #777777;
}

/* The filter panel is only a wrapper on desktop: it is made transparent so the
   topbar keeps the exact same flex layout, and becomes a collapsible block on
   small screens where every field needs its own row. */
.rts-shop-section .shop-filter-form .shop-filter-panel,
.rts-shop-section .shop-filter-form .shop-filter-panel-actions {
  display: contents;
}

.rts-shop-section .shop-filter-form .filter-toggle,
.rts-shop-section .shop-filter-form .filter-search-clear,
.rts-shop-section .shop-filter-form .filter-field-label,
.rts-shop-section .shop-active-filters {
  display: none;
}

@media (max-width: 767px) {
  /* ..::Section spacing::.. */
  .rts-shop-section.section-gap {
    padding: 10px 0 30px;
  }

  /* ..::Topbar::.. */
  .rts-shop-section .container .shop-product-topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    margin-bottom: 16px;
  }

  .rts-shop-section .container .shop-filter-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    width: 100%;
    margin-left: 0;
  }

  /* ..::Search::.. */
  .rts-shop-section .shop-filter-form .filter-search {
    grid-column: 1;
    position: relative;
    min-width: 0;
  }

  .rts-shop-section .shop-filter-form .filter-search input {
    width: 100%;
    height: 48px;
    padding-inline-end: 40px;
    background: #fff;
  }

  .rts-shop-section .shop-filter-form .filter-search-clear {
    position: absolute;
    top: 50%;
    inset-inline-end: 10px;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #e9e9e9;
    color: #404040;
    font-size: 13px;
    cursor: pointer;
  }

  .rts-shop-section .shop-filter-form .filter-search-clear[hidden] {
    display: none;
  }

  /* ..::Filter toggle::.. */
  .rts-shop-section .shop-filter-form .filter-toggle {
    grid-column: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 48px;
    padding: 0 16px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    background: #fff;
    color: #040404;
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
  }

  .rts-shop-section .shop-filter-form .filter-toggle-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 10px;
    background: #ee403d;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
  }

  .rts-shop-section .shop-filter-form .filter-toggle-count[hidden] {
    display: none;
  }

  /* ..::Filter panel::.. */
  .rts-shop-section .shop-filter-form .shop-filter-panel {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 16px;
    border: 1px solid #ededed;
    border-radius: 8px;
    background: #fff;
  }

  .rts-shop-section .shop-filter-form .shop-filter-panel[data-collapsed] {
    display: none;
  }

  .rts-shop-section .shop-filter-form .filter-field-label {
    display: block;
    margin-bottom: 6px;
    color: #171f32;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .rts-shop-section .shop-filter-form .shop-filter-panel .select-area {
    width: 100%;
  }

  .rts-shop-section .shop-filter-form .shop-filter-panel .select-area .select {
    width: 100%;
    height: 48px;
    color: #040404;
    background: #fff;
  }

  .rts-shop-section .shop-filter-form .shop-filter-panel-actions {
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .rts-shop-section .shop-filter-form .shop-filter-panel-actions .filter-btn-main {
    flex: 1 1 auto;
    min-height: 48px;
  }

  .rts-shop-section .shop-filter-form .shop-filter-panel-actions .filter-reset {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
  }

  /* ..::Active filter chips::.. */
  .rts-shop-section .shop-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 4px;
  }

  .rts-shop-section .shop-active-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    min-height: 34px;
    padding: 5px 12px;
    border: 1px solid #e2e2e2;
    border-radius: 20px;
    background: #fff;
    color: #040404;
    font-size: 13px;
    line-height: 20px;
    text-decoration: none;
  }

  .rts-shop-section .shop-active-chip-label {
    color: #8a8a8a;
  }

  .rts-shop-section .shop-active-chip-value {
    max-width: 45vw;
    overflow: hidden;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .rts-shop-section .shop-active-chip i {
    color: #ee403d;
    font-size: 12px;
  }

  /* ..::Product grid::.. */
  .rts-shop-section .product-item {
    margin-bottom: 0;
  }

  .rts-shop-section .product-item .product-name {
    display: -webkit-box;
    min-height: 52px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  .rts-shop-section .product-item .action-wrap {
    max-height: none;
    margin-top: 6px;
    overflow: visible;
  }

  .rts-shop-section .product-item .product-price,
  .rts-shop-section .product-item .addto-cart,
  .rts-shop-section .product-item:hover .action-wrap .product-price,
  .rts-shop-section .product-item:hover .action-wrap .addto-cart {
    transform: none;
  }

  .rts-shop-section .product-item .addto-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 42px;
    margin-top: 8px;
    padding: 8px 10px;
    border: 1px solid #ececec;
    border-radius: 24px;
    font-size: 14px;
    text-align: center;
  }

  /* No hover on touch devices: the second variation would only waste a request. */
  .rts-shop-section .image-hover-variations .image-vari2 {
    display: none;
  }

  /* ..::Pagination::.. */
  .rts-shop-section .product-pagination-area {
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
  }

  .rts-shop-section .product-pagination-area .page-item {
    width: 42px;
    height: 42px;
    margin-right: 0;
    font-size: 13px;
  }
}
