/* ==========================================================================
   NORA CATEGORY — Brand-Styled WooCommerce Product Category Page CSS
   Applies to: Product Category Pages (/product-category/[name]/, /product-cat/*)
   Brand tokens: Cairo font | #C8758A pink | #C9A96E gold | #1E1216 dark
   ========================================================================== */

/* ---------- CRITICAL: HIDE BREADCRUMBS SITE-WIDE ---------------------- */
#base-breadcrumbs,
.base-breadcrumbs,
nav.base-breadcrumbs,
.entry-hero #base-breadcrumbs,
.entry-hero .base-breadcrumbs,
.product-archive-hero-section #base-breadcrumbs,
.product-archive-hero-section .base-breadcrumbs {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

/* ---------- Font override for all archive pages ------------- */
.woocommerce-shop body,
.post-type-archive-product,
.tax-product_cat,
.tax-product_brands,
.woocommerce-shop .woocommerce,
.post-type-archive-product .woocommerce,
body.archive.tax-product_cat,
body.taxonomy-product-cat {
  font-family: "Cairo", sans-serif;
}

/* ---------- Soft warm page background ----------------------- */
.woocommerce-shop .content-container.site-container,
.post-type-archive-product .content-container.site-container,
.tax-product_cat .content-container.site-container,
.tax-product_brands .content-container.site-container {
  background: #fff8f9;
  border-radius: 20px;
  padding: 24px;
}

.woocommerce-shop .content-area,
.post-type-archive-product .content-area,
.tax-product_cat .content-area,
.tax-product_brands .content-area,
.woocommerce-shop .site-content-area,
.post-type-archive-product .site-content-area,
.tax-product_cat .site-content-area,
.tax-product_brands .site-content-area {
  background: transparent !important;
  margin-top: 2rem !important;
  margin-bottom: 2rem !important;
}

/* ==========================================================================
   HERO / HEADER SECTION
   ========================================================================== */

/* Hide hero section for regular product archives, keep for brands */
.woocommerce-shop .entry-hero.product-archive-hero-section,
.post-type-archive-product .entry-hero.product-archive-hero-section,
.tax-product_cat .entry-hero.product-archive-hero-section {
  display: none !important;
}

/* For product brands, keep hero but hide the title and breadcrumbs */
.tax-product_brands .entry-hero.product-archive-hero-section {
  display: block !important;
}

/* CRITICAL: Override theme CSS - Hide all text on brand hero */
.entry-hero.product-archive-hero-section .entry-hero-container-inner .entry-header,
.entry-hero.product-archive-hero-section .entry-header {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  flex: none !important;
}

/* Override flex from theme */
.entry-hero-container-inner .entry-header {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  flex: none !important;
  -webkit-box-align: unset !important;
  -ms-flex-align: unset !important;
  align-items: unset !important;
  -webkit-box-pack: unset !important;
  -ms-flex-pack: unset !important;
  justify-content: unset !important;
}

/* Hide page title */
.page-title.archive-title {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0 !important;
}

/* Make hero section show background image */
.entry-hero.product-archive-hero-section {
  min-height: 300px !important;
  height: auto !important;
}

.entry-hero-container-inner {
  min-height: 300px !important;
  height: auto !important;
  display: block !important;
  background-size: cover !important;
  background-position: center !important;
}

.entry-hero.product-archive-hero-section .entry-title {
  color: #1E1216;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
  font-family: "Cairo", sans-serif;
}

.entry-hero.product-archive-hero-section .entry-description {
  color: #64748B;
  font-size: 15px;
  font-weight: 400;
  margin: 0;
  font-family: "Cairo", sans-serif;
}

#base-breadcrumbs,
.base-breadcrumbs {
  display: none !important;
}

/* Breadcrumbs - HIDDEN BY RULES ABOVE */

/* ==========================================================================
   MOBILE FILTER TOGGLE
   ========================================================================== */

#filter-toggle {
  display: none;
  background: linear-gradient(135deg, #C8758A 0%, #B5667A 100%);
  color: white;
  border: none;
  padding: 12px 16px;
  border-radius: 8px;
  font-family: "Cairo", sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 20px;
  width: 100%;
  transition: all 0.3s ease;
}

#filter-toggle:hover {
  background: linear-gradient(135deg, #B5667A 0%, #A05570 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(200, 117, 138, 0.3);
}

/* ==========================================================================
   SHOP TOOLBAR (Results Count, Sorting, Grid/List Toggle)
   ========================================================================== */

.shop-top-row,
.woocommerce-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  direction: rtl;
  flex-wrap: wrap;
}

/* Results Count */
.base-woo-results-count,
.woocommerce-result-count {
  color: #64748B;
  font-size: 14px;
  font-family: "Cairo", sans-serif;
}

.base-woo-results-count strong,
.woocommerce-result-count strong {
  color: #1E1216;
  font-weight: 600;
}

/* Sort/Ordering Dropdown */
.base-woo-ordering,
.woocommerce-ordering {
  display: flex;
  align-items: center;
  gap: 8px;
}

.base-woo-ordering label,
.woocommerce-ordering label {
  color: #1E1216;
  font-size: 14px;
  font-family: "Cairo", sans-serif;
  font-weight: 600;
  margin: 0;
}

.base-woo-ordering select,
.woocommerce-ordering select {
  padding: 10px 12px;
  border: 1px solid #F0D9DE;
  border-radius: 6px;
  font-family: "Cairo", sans-serif;
  font-size: 14px;
  color: #1E1216;
  background: white;
  cursor: pointer;
  transition: all 0.2s ease;
}

.base-woo-ordering select:focus,
.woocommerce-ordering select:focus {
  outline: none;
  border-color: #C8758A;
  box-shadow: 0 0 0 2px rgba(200, 117, 138, 0.1);
}

.base-woo-ordering select:hover,
.woocommerce-ordering select:hover {
  border-color: #C8758A;
}

/* Grid/List View Toggle */
.base-woo-toggle,
.products-toggle-view {
  display: flex;
  gap: 8px;
  align-items: center;
}

.base-woo-toggle button,
.products-toggle-view button {
  padding: 10px 12px;
  background: white;
  border: 1px solid #F0D9DE;
  border-radius: 6px;
  color: #C8758A;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  font-family: "Cairo", sans-serif;
}

.base-woo-toggle button:hover,
.products-toggle-view button:hover {
  background: #FFF8F9;
  border-color: #C8758A;
  color: #B5667A;
}

.base-woo-toggle button.active,
.products-toggle-view button.active {
  background: linear-gradient(135deg, #C8758A 0%, #B5667A 100%);
  color: white;
  border-color: #C8758A;
}

/* ==========================================================================
   ACTIVE FILTERS BAR
   ========================================================================== */

#active-filters-bar,
.active-filters-bar {
  background: #FFF8F9;
  border: 1px solid #F0D9DE;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  direction: rtl;
  flex-wrap: wrap;
}

#active-filters-bar:empty,
.active-filters-bar:empty {
  display: none;
}

.active-filters-bar .filter-label {
  color: #1E1216;
  font-size: 14px;
  font-weight: 600;
  font-family: "Cairo", sans-serif;
}

.active-filters-bar .active-filter-tag,
.active-filter {
  background: white;
  border: 1px solid #C8758A;
  border-radius: 20px;
  padding: 6px 12px;
  color: #C8758A;
  font-size: 13px;
  font-family: "Cairo", sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.active-filters-bar .active-filter-tag:hover,
.active-filter:hover {
  background: #FFF8F9;
  border-color: #B5667A;
  color: #B5667A;
}

.active-filters-bar .remove-filter {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font-size: 16px;
  padding: 0;
  transition: color 0.2s ease;
}

.active-filters-bar .remove-filter:hover {
  color: #B5667A;
}

.active-filters-bar .clear-all {
  margin-left: auto;
  margin-right: auto;
  padding: 6px 12px;
  background: white;
  border: 1px solid #E0E7FF;
  color: #64748B;
  border-radius: 6px;
  cursor: pointer;
  font-family: "Cairo", sans-serif;
  font-size: 13px;
  transition: all 0.2s ease;
}

.active-filters-bar .clear-all:hover {
  background: #F8FAFC;
  border-color: #C8758A;
  color: #C8758A;
}

/* ==========================================================================
   MAIN LAYOUT - PRODUCTS + SIDEBAR
   ========================================================================== */

.site-content-area {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 30px;
  direction: rtl;
  margin-top: 30px;
  margin-bottom: 30px;
}

.primary-content {
  width: 100%;
}

.sidebar-primary {
  width: 100%;
}

/* ==========================================================================
   PRODUCT GRID LAYOUT
   ========================================================================== */

.products.grid-cols {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  width: 100%;
  margin-bottom: 30px;
}

.loop-entry.product {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(200, 117, 138, 0.08);
  transition: all 0.3s ease;
  border: 1px solid #F0D9DE;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.loop-entry.product:hover {
  box-shadow: 0 8px 20px rgba(200, 117, 138, 0.15);
  transform: translateY(-4px);
  border-color: #C8758A;
}

/* Product Image/Thumbnail */
.product-thumbnail {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: #FFF8F9;
}

.product-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.loop-entry.product:hover .product-thumbnail img {
  transform: scale(1.05);
}

.product-thumbnail .product-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, #C8758A 0%, #B5667A 100%);
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  font-family: "Cairo", sans-serif;
}

/* Product Details */
.product-details {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  direction: rtl;
  text-align: right;
}

.product-title,
.product-details h2,
.product-details a.product-title {
  color: #1E1216;
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 8px 0;
  line-height: 1.4;
  font-family: "Cairo", sans-serif;
  text-decoration: none;
  transition: color 0.3s ease;
}

.product-title:hover,
.product-details a.product-title:hover {
  color: #C8758A;
}

/* Ratings */
.product-rating,
.product-details .star-rating {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 13px;
  color: #64748B;
}

.star-rating {
  display: flex;
  gap: 2px;
}

.star-rating .star {
  color: #C9A96E;
  font-size: 14px;
}

.star-rating .star.empty {
  color: #E2E8F0;
}

/* Price */
.product-price,
.product-details .price {
  color: #C9A96E;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  font-family: "Cairo", sans-serif;
}

.product-price .currency,
.price span {
  font-size: 14px;
}

/* Product Excerpt */
.product-excerpt,
.product-details .description,
.product-details p {
  color: #64748B;
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 12px 0;
  flex: 1;
  font-family: "Cairo", sans-serif;
}

/* Action Button */
.product-action-wrap {
  padding-top: 12px;
  border-top: 1px solid #F0D9DE;
}

.read-more,
.product-action-wrap a,
.product-action-wrap button {
  display: block;
  width: 100%;
  padding: 10px 12px;
  background: linear-gradient(135deg, #C8758A 0%, #B5667A 100%);
  color: white;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  text-align: center;
  font-family: "Cairo", sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.read-more:hover,
.product-action-wrap a:hover,
.product-action-wrap button:hover {
  background: linear-gradient(135deg, #B5667A 0%, #A05570 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(200, 117, 138, 0.3);
}

/* ==========================================================================
   SIDEBAR WIDGETS
   ========================================================================== */

.primary-sidebar.widget-area,
.sidebar-primary {
  font-family: "Cairo", sans-serif;
}

.primary-sidebar.widget-area .widget,
.sidebar-primary .widget,
#filter-drawer .drawer-inner .product-filter-widgets .widget {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
}

.primary-sidebar .sidebar-inner-wrap,
.sidebar-primary .sidebar-inner-wrap {
  background: #fff8f9;
  border-radius: 16px;
  border: 1px solid #f0d9de;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Widget title */
.primary-sidebar .widget-title,
.primary-sidebar .gamma.widget-title,
.sidebar-primary .widget-title,
.sidebar-primary .widgettitle {
  font-family: "Cairo", sans-serif;
  font-weight: 900;
  font-size: 14.5px;
  color: #1e1216;
  border-bottom: 2px solid #c9a96e;
  padding-bottom: 8px;
  margin-bottom: 12px;
  direction: rtl;
  text-align: right;
}

/* Filter widget styling */
.primary-sidebar .tmcore-wp-widget-filter,
.primary-sidebar .widget.widget_search,
.primary-sidebar .widget.widget_block,
.sidebar-primary .tmcore-wp-widget-filter,
.sidebar-primary .widget.widget_search,
.sidebar-primary .widget.widget_block {
  background: #fff;
  border: 1px solid #f0d9de;
  border-radius: 14px;
  padding: 16px;
}

/* Search Widget */
.primary-sidebar .widget.widget_search form,
.primary-sidebar .wp-block-search,
.sidebar-primary .widget.widget_search form,
.sidebar-primary .wp-block-search {
  direction: rtl;
  text-align: right;
}

.primary-sidebar .wp-block-search__label,
.primary-sidebar .wp-block-heading,
.sidebar-primary .search-widget label {
  display: block;
  font-family: "Cairo", sans-serif;
  font-weight: 900;
  font-size: 14.5px;
  color: #1e1216;
  margin: 0 0 12px;
  text-align: right;
}

.primary-sidebar .wp-block-search__inside-wrapper,
.sidebar-primary .search-widget {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.primary-sidebar .wp-block-search__input,
.sidebar-primary .search-widget input[type="search"],
.sidebar-primary .search-widget input[type="text"] {
  min-height: 42px;
  width: 100%;
  border: 1px solid #f0d9de;
  border-radius: 999px;
  background: #fff;
  padding: 10px 14px;
  color: #1e1216;
  font-family: "Cairo", sans-serif;
  font-size: 14px;
  transition: all 0.2s ease;
}

.primary-sidebar .wp-block-search__input:focus,
.sidebar-primary .search-widget input[type="search"]:focus,
.sidebar-primary .search-widget input[type="text"]:focus {
  outline: none;
  border-color: #c8758a;
  box-shadow: 0 0 0 2px rgba(200, 117, 138, 0.1);
}

.primary-sidebar .wp-block-search__button,
.primary-sidebar .wp-element-button,
.sidebar-primary .search-widget button {
  min-height: 42px;
  border: none;
  border-radius: 999px;
  background: #c8758a;
  color: #fff !important;
  padding: 10px 16px;
  font-family: "Cairo", sans-serif;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  margin-top: 8px;
}

.primary-sidebar .wp-block-search__button:hover,
.primary-sidebar .wp-element-button:hover,
.sidebar-primary .search-widget button:hover {
  background: #b5667a;
  transform: translateY(-2px);
}

/* Category / brand / layered nav list items */
.primary-sidebar .wc-layered-nav-term,
.primary-sidebar .filter-item,
.sidebar-primary .widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
  direction: rtl;
  text-align: right;
}

.primary-sidebar .wc-layered-nav-term,
.primary-sidebar .filter-item,
.sidebar-primary .widget li {
  list-style: none;
  padding: 0;
  margin-block-end: 2px;
  padding: 0;
  margin: 0;
  border-bottom: 1px solid #f7e6eb;
}

.sidebar-primary .widget li:last-child,
.primary-sidebar .wc-layered-nav-term:last-child,
.primary-sidebar .filter-item:last-child {
  border-bottom: none;
}

.primary-sidebar .wc-layered-nav-term a,
.primary-sidebar .filter-item .filter-link,
.sidebar-primary .widget a {
  font-family: "Cairo", sans-serif;
  font-size: 13px;
  color: #555;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  padding-block: 5px;
  transition: color 0.2s;
  direction: rtl;
  text-align: right;
  flex-direction: row-reverse;
  justify-content: flex-end;
  width: 100%;
}

body.rtl .primary-sidebar .wc-layered-nav-term a,
body.rtl .primary-sidebar .filter-item .filter-link,
body.rtl .primary-sidebar.widget-area .sidebar-inner-wrap a:where(:not(.button):not(.wp-block-button__link):not(.wp-element-button)),
body.rtl .primary-sidebar .wp-block-latest-posts__post-title {
  direction: rtl !important;
  text-align: right !important;
}

.primary-sidebar .wc-layered-nav-term a:hover,
.primary-sidebar .filter-item .filter-link:hover,
.sidebar-primary .widget a:hover {
  color: #c8758a;
}

/* Active / chosen filter */
.primary-sidebar .wc-layered-nav-term.chosen a,
.primary-sidebar .filter-item.chosen .filter-link {
  color: #c8758a;
  font-weight: 700;
}

/* Item count badges */
.primary-sidebar .wc-layered-nav-term .count,
.sidebar-primary .widget a .count {
  color: #aaa;
  font-size: 11px;
  margin-inline-start: auto;
  font-weight: 600;
}

/* Price Filter */
.primary-sidebar .tmcore-product-price-filter,
.primary-sidebar .widget.tmcore-wp-widget-product-price-filter,
.sidebar-primary .price-filter {
  font-family: "Cairo", sans-serif;
  font-size: 13px;
  color: #555;
}

.primary-sidebar .price-filter .price-label,
.sidebar-primary .price-filter .price-label {
  color: #1E1216;
  font-weight: 600;
  margin-bottom: 12px;
  font-family: "Cairo", sans-serif;
}

.primary-sidebar .tmcore-product-price-filter input[type="range"],
.sidebar-primary .price-filter input[type="range"] {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #F0D9DE;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.primary-sidebar .tmcore-product-price-filter input[type="range"]::-webkit-slider-thumb,
.sidebar-primary .price-filter input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #c8758a;
  cursor: pointer;
  transition: all 0.2s ease;
}

.primary-sidebar .tmcore-product-price-filter input[type="range"]::-webkit-slider-thumb:hover,
.sidebar-primary .price-filter input[type="range"]::-webkit-slider-thumb:hover {
  background: #B5667A;
  box-shadow: 0 0 0 4px rgba(200, 117, 138, 0.1);
}

.sidebar-primary .price-filter input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #c8758a;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.sidebar-primary .price-filter input[type="range"]::-moz-range-thumb:hover {
  background: #B5667A;
  box-shadow: 0 0 0 4px rgba(200, 117, 138, 0.1);
}

/* Rating Filter */
.primary-sidebar .tm-star-rating.style-02,
.primary-sidebar .wc-layered-nav-rating a,
.sidebar-primary .rating-filter ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.primary-sidebar .tm-star-rating svg,
.sidebar-primary .tm-star-rating svg {
  fill: #c9a96e;
}

.sidebar-primary .rating-filter li {
  padding: 0;
  border: none;
  margin-block-end: 2px;
}

.sidebar-primary .rating-filter label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  margin: 0;
  color: #1E1216;
  font-family: "Cairo", sans-serif;
  font-size: 13px;
}

/* Latest Posts Widget */
.primary-sidebar .wp-block-latest-posts__list,
.sidebar-primary .latest-posts ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.primary-sidebar .wp-block-latest-posts__list li,
.sidebar-primary .latest-posts li {
  padding: 0;
  border: none;
  margin: 0;
}

.primary-sidebar .wp-block-latest-posts__post-title,
.primary-sidebar .widget-content,
.primary-sidebar .widget-content-inner,
.sidebar-primary .latest-posts a {
  font-family: "Cairo", sans-serif;
  color: #555;
  text-align: right;
  text-decoration: none !important;
  font-size: 13px;
}

.primary-sidebar .wp-block-latest-posts__post-title,
.primary-sidebar .widget-content a:where(:not(.button):not(.wp-block-button__link):not(.wp-element-button)) {
  color: #555 !important;
  text-decoration: none !important;
}

.primary-sidebar .wp-block-latest-posts__post-title:hover,
.primary-sidebar .widget-content a:where(:not(.button):not(.wp-block-button__link):not(.wp-element-button)):hover,
.sidebar-primary .latest-posts a:hover {
  color: #c8758a !important;
  text-decoration: underline;
}

/* Checkbox & radio input accents */
.primary-sidebar input[type="checkbox"],
.primary-sidebar input[type="radio"],
.sidebar-primary input[type="checkbox"],
.sidebar-primary input[type="radio"] {
  accent-color: #c8758a;
  cursor: pointer;
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */

.pagination,
.woocommerce-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  margin-bottom: 30px;
  direction: rtl;
}

.pagination a,
.pagination span,
.woocommerce-pagination a,
.woocommerce-pagination span {
  padding: 10px 12px;
  border: 1px solid #F0D9DE;
  border-radius: 6px;
  text-decoration: none;
  color: #1E1216;
  font-family: "Cairo", sans-serif;
  font-size: 14px;
  transition: all 0.2s ease;
}

.pagination a:hover,
.woocommerce-pagination a:hover {
  background: #FFF8F9;
  border-color: #C8758A;
  color: #C8758A;
}

.pagination .current,
.pagination span.current,
.woocommerce-pagination .page-numbers.current {
  background: linear-gradient(135deg, #C8758A 0%, #B5667A 100%);
  color: white;
  border-color: #C8758A;
}

.pagination .dots,
.woocommerce-pagination .page-numbers.dots {
  border: none;
  color: #64748B;
  padding: 10px 6px;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 1024px) {
  .products.grid-cols {
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 16px;
  }

  .site-content-area {
    grid-template-columns: 1fr 240px;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  #filter-toggle {
    display: block;
  }

  .site-content-area {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .sidebar-primary {
    display: none;
    width: 100%;
  }

  .sidebar-primary.show {
    display: block;
  }

  .products.grid-cols {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
  }

  .shop-top-row {
    flex-wrap: wrap;
    gap: 12px;
  }

  .base-woo-results-count,
  .woocommerce-result-count {
    flex: 1 100%;
    order: 1;
  }

  .base-woo-ordering,
  .woocommerce-ordering {
    flex: 1 50%;
    order: 2;
  }

  .base-woo-toggle,
  .products-toggle-view {
    flex: 1 50%;
    order: 3;
  }

  .entry-hero.product-archive-hero-section .entry-title {
    font-size: 24px;
  }

  .product-details {
    padding: 12px;
  }

  .product-title,
  .product-details h2 {
    font-size: 14px;
  }

  .product-price,
  .product-details .price {
    font-size: 16px;
  }

  .sidebar-primary .widget {
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .entry-hero.product-archive-hero-section {
    padding-block: 20px 16px;
  }

  .entry-hero.product-archive-hero-section .entry-title {
    font-size: 20px;
  }

  .products.grid-cols {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
  }

  .shop-top-row {
    flex-direction: column;
    gap: 12px;
  }

  .shop-top-row > * {
    flex: 1 100%;
  }

  .product-thumbnail {
    aspect-ratio: 1;
  }

  .product-details {
    padding: 10px;
  }

  .product-title,
  .product-details h2 {
    font-size: 13px;
    margin-bottom: 6px;
  }

  .product-excerpt {
    font-size: 12px;
    margin-bottom: 8px;
  }

  .product-price,
  .product-details .price {
    font-size: 14px;
  }

  .product-action-wrap {
    padding-top: 8px;
  }

  .read-more,
  .product-action-wrap a {
    padding: 8px 10px;
    font-size: 12px;
  }

  .product-rating,
  .product-details .star-rating {
    font-size: 12px;
    gap: 4px;
  }

  .pagination,
  .woocommerce-pagination {
    gap: 4px;
    margin-top: 30px;
  }

  .pagination a,
  .pagination span {
    padding: 8px 10px;
    font-size: 13px;
  }

  .sidebar-primary .widget {
    padding: 12px;
    margin-bottom: 16px;
  }

  .sidebar-primary .widget-title,
  .sidebar-primary .widgettitle {
    font-size: 14px;
    margin-bottom: 12px;
  }

  .sidebar-primary .widget a {
    font-size: 13px;
  }
}

/* ==========================================================================
   ACCESSIBILITY & ANIMATIONS
   ========================================================================== */

/* Focus states for keyboard navigation */
.products.grid-cols a:focus,
.sidebar-primary a:focus,
.pagination a:focus,
#filter-toggle:focus {
  outline: 2px solid #C8758A;
  outline-offset: 2px;
}

.sidebar-primary .widget input:focus,
.sidebar-primary .widget select:focus {
  outline: 2px solid #C8758A;
  outline-offset: 2px;
}

/* Smooth transitions */
.loop-entry.product,
.sidebar-primary .widget,
.product-action-wrap a {
  transition-property: background-color, border-color, color, box-shadow, transform;
  transition-duration: 0.2s;
  transition-timing-function: ease;
}

/* ==========================================================================
   STICKY SIDEBAR & ADVANCED WIDGET STYLING
   ========================================================================== */

.sidebar-primary .sidebar-inner-wrap,
.primary-sidebar .sidebar-inner-wrap {
  position: sticky;
  top: 110px;
  max-height: calc(100vh - 140px);
  overflow: auto;
}

.sidebar-primary .widget_rating_filter ul,
.sidebar-primary .woocommerce-widget-layered-nav-rating ul,
.sidebar-primary .woocommerce-widget-layered-nav-list,
.sidebar-primary .woocommerce-product-categories,
.primary-sidebar .widget_rating_filter ul,
.primary-sidebar .woocommerce-widget-layered-nav-rating ul,
.primary-sidebar .woocommerce-widget-layered-nav-list,
.primary-sidebar .woocommerce-product-categories {
  max-height: 320px;
  overflow: auto;
  padding-inline-end: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-primary .wc-layered-nav-rating a,
.sidebar-primary .woocommerce-widget-layered-nav-rating a,
.primary-sidebar .wc-layered-nav-rating a,
.primary-sidebar .woocommerce-widget-layered-nav-rating a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  color: #555;
  text-decoration: none;
  transition: all 0.2s ease;
}

.sidebar-primary .wc-layered-nav-rating a:hover,
.sidebar-primary .woocommerce-widget-layered-nav-rating a:hover,
.primary-sidebar .wc-layered-nav-rating a:hover,
.primary-sidebar .woocommerce-widget-layered-nav-rating a:hover {
  background: #fff;
  color: #c8758a;
}

.primary-sidebar .star-rating,
.sidebar-primary .star-rating {
  flex-shrink: 0;
}

.primary-sidebar .count,
.sidebar-primary .count {
  color: #999;
  font-size: 12px;
}

.primary-sidebar .widget_block .wp-block-group,
.primary-sidebar .widget.widget_block {
  background: #fff;
  border: 1px solid #f0d9de;
  border-radius: 14px;
  padding: 16px;
}

.primary-sidebar .widget_block .wp-block-group,
.primary-sidebar .widget.widget_block,
.primary-sidebar .tmcore-wp-widget-filter,
.primary-sidebar .widget.widget_search,
.sidebar-primary .widget.widget_search {
  background: #fff;
  border: 1px solid #f0d9de;
  border-radius: 14px;
  padding: 16px;
}

.primary-sidebar .widget-content ul,
.primary-sidebar .wp-block-latest-posts__list,
.primary-sidebar .tmcore-product-highlight-filter,
.primary-sidebar .tmcore-product-price-filter,
.primary-sidebar .show-display-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-sidebar .widget-content li,
.primary-sidebar .wp-block-latest-posts__list li,
.primary-sidebar .tmcore-product-highlight-filter li,
.primary-sidebar .tmcore-product-price-filter li {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid #f7e6eb;
}

.primary-sidebar .widget-content li:last-child,
.primary-sidebar .wp-block-latest-posts__list li:last-child,
.primary-sidebar .tmcore-product-highlight-filter li:last-child,
.primary-sidebar .tmcore-product-price-filter li:last-child {
  border-bottom: none;
}

@media (max-width: 1024px) {
  .sidebar-primary .sidebar-inner-wrap,
  .primary-sidebar .sidebar-inner-wrap {
    position: static;
    max-height: none;
    overflow: visible;
  }
}

/* ==========================================================================
   REAL CATEGORY SIDEBAR OVERRIDES
   Matches live product-category sidebar markup and keeps it aligned with the
   polished shop sidebar treatment.
   ========================================================================== */

body.tax-product_cat .entry-hero.product-archive-hero-section,
body.tax-product_cat .entry-hero.product-archive-hero-section .entry-header,
body.tax-product_cat .entry-hero.product-archive-hero-section .hero-section-overlay,
body.tax-product_cat .entry-hero.product-archive-hero-section #base-breadcrumbs,
body.tax-product_cat .entry-hero.product-archive-hero-section .base-breadcrumbs,
body.tax-product_cat .entry-hero.product-archive-hero-section .page-title.archive-title {
  display: none !important;
}

body.tax-product_cat .content-area {
  margin-top: 2rem !important;
  margin-bottom: 2rem !important;
  background: transparent !important;
}

body.tax-product_cat .content-container.site-container {
  background: #fff8f9 !important;
  border: 1px solid #f0d9de;
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 18px 40px rgba(30, 18, 22, 0.05);
}

body.tax-product_cat .primary-sidebar.widget-area {
  align-self: start;
}

body.tax-product_cat .primary-sidebar .sidebar-inner-wrap {
  background: #fff8f9;
  border: 1px solid #f0d9de;
  border-radius: 18px;
  padding: 20px;
  gap: 18px;
  box-shadow: 0 14px 30px rgba(200, 117, 138, 0.08);
}

body.tax-product_cat .primary-sidebar .widget,
body.tax-product_cat .primary-sidebar .widget.widget_block,
body.tax-product_cat .primary-sidebar .tmcore-wp-widget-filter,
body.tax-product_cat .primary-sidebar .widget.widget_search {
  background: #ffffff !important;
  border: 1px solid #f2d9df !important;
  border-radius: 16px;
  padding: 16px !important;
  box-shadow: 0 8px 18px rgba(30, 18, 22, 0.04);
}

body.tax-product_cat .primary-sidebar .widget-title,
body.tax-product_cat .primary-sidebar .gamma.widget-title,
body.tax-product_cat .primary-sidebar .wp-block-heading,
body.tax-product_cat .primary-sidebar .wp-block-search__label {
  color: #1e1216;
  font-size: 14px;
  font-weight: 800;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #c9a96e;
  text-align: right;
}

body.tax-product_cat .primary-sidebar #tmcore-wp-widget-product-highlight-filter-2 > .widget-title {
  font-size: 0;
  line-height: 0;
}

body.tax-product_cat .primary-sidebar #tmcore-wp-widget-product-highlight-filter-2 > .widget-title::before {
  content: "الميزات";
  display: block;
  font-size: 14px;
  line-height: 1.4;
  color: #1e1216;
  font-weight: 800;
}

body.tax-product_cat .primary-sidebar .wp-block-search__inside-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

body.tax-product_cat .primary-sidebar .wp-block-search__input {
  min-height: 44px;
  border: 1px solid #f0d9de;
  border-radius: 999px;
  background: #fff;
  color: #1e1216;
  padding: 10px 14px;
}

body.tax-product_cat .primary-sidebar .wp-block-search__button,
body.tax-product_cat .primary-sidebar .wp-element-button {
  min-height: 44px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #c8758a 0%, #b5667a 100%);
  color: #fff !important;
  padding: 10px 16px;
  font-weight: 700;
}

body.tax-product_cat .primary-sidebar .wp-block-search__button:hover,
body.tax-product_cat .primary-sidebar .wp-element-button:hover {
  background: linear-gradient(135deg, #b5667a 0%, #a7586c 100%);
}

body.tax-product_cat .primary-sidebar .widget-content ul,
body.tax-product_cat .primary-sidebar .wp-block-latest-posts__list,
body.tax-product_cat .primary-sidebar .tmcore-product-highlight-filter,
body.tax-product_cat .primary-sidebar .tmcore-product-price-filter,
body.tax-product_cat .primary-sidebar .show-display-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

body.tax-product_cat .primary-sidebar .widget-content li,
body.tax-product_cat .primary-sidebar .wp-block-latest-posts__list li,
body.tax-product_cat .primary-sidebar .tmcore-product-highlight-filter li,
body.tax-product_cat .primary-sidebar .tmcore-product-price-filter li,
body.tax-product_cat .primary-sidebar .wc-layered-nav-term,
body.tax-product_cat .primary-sidebar .filter-item {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid #f7e6eb;
}

body.tax-product_cat .primary-sidebar .widget-content li:last-child,
body.tax-product_cat .primary-sidebar .wp-block-latest-posts__list li:last-child,
body.tax-product_cat .primary-sidebar .tmcore-product-highlight-filter li:last-child,
body.tax-product_cat .primary-sidebar .tmcore-product-price-filter li:last-child,
body.tax-product_cat .primary-sidebar .wc-layered-nav-term:last-child,
body.tax-product_cat .primary-sidebar .filter-item:last-child {
  border-bottom: none;
}

body.tax-product_cat .primary-sidebar .wc-layered-nav-term a,
body.tax-product_cat .primary-sidebar .filter-item .filter-link,
body.tax-product_cat .primary-sidebar .item-link,
body.tax-product_cat .primary-sidebar .wp-block-latest-posts__post-title,
body.tax-product_cat .primary-sidebar .widget-content a:where(:not(.button):not(.wp-block-button__link):not(.wp-element-button)) {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  width: 100%;
  padding: 10px 2px;
  color: #555 !important;
  font-size: 13px;
  text-decoration: none !important;
  direction: rtl !important;
  text-align: right !important;
  transition: color 0.2s ease, transform 0.2s ease;
}

body.tax-product_cat .primary-sidebar .wc-layered-nav-term a:hover,
body.tax-product_cat .primary-sidebar .filter-item .filter-link:hover,
body.tax-product_cat .primary-sidebar .item-link:hover,
body.tax-product_cat .primary-sidebar .wp-block-latest-posts__post-title:hover,
body.tax-product_cat .primary-sidebar .widget-content a:where(:not(.button):not(.wp-block-button__link):not(.wp-element-button)):hover {
  color: #c8758a !important;
  transform: translateX(-2px);
}

body.tax-product_cat .primary-sidebar .wc-layered-nav-term.chosen a,
body.tax-product_cat .primary-sidebar .wc-layered-nav-term.selected a,
body.tax-product_cat .primary-sidebar .filter-item.chosen .filter-link {
  color: #c8758a !important;
  font-weight: 800;
}

body.tax-product_cat .primary-sidebar .wc-layered-nav-term .count,
body.tax-product_cat .primary-sidebar .filter-link .count,
body.tax-product_cat .primary-sidebar .wc-layered-nav-rating .count {
  margin-inline-start: auto;
  color: #9b7c86;
  font-size: 11px;
  font-weight: 700;
}

body.tax-product_cat .primary-sidebar .wc-layered-nav-rating a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  color: #555;
  text-decoration: none;
}

body.tax-product_cat .primary-sidebar .wc-layered-nav-rating a:hover {
  background: #fff7fa;
  color: #c8758a;
}

body.tax-product_cat .primary-sidebar .tm-star-rating svg {
  fill: #c9a96e;
}

body.tax-product_cat .primary-sidebar .no-comments {
  color: #8b6f77;
  font-size: 13px;
  text-align: right;
}

body.tax-product_cat .primary-sidebar .ps__rail-x,
body.tax-product_cat .primary-sidebar .ps__rail-y {
  opacity: 0.35;
}

@media (max-width: 1024px) {
  body.tax-product_cat .content-container.site-container {
    padding: 18px;
  }

  body.tax-product_cat .primary-sidebar .sidebar-inner-wrap {
    position: static;
    top: auto;
    max-height: none;
    overflow: visible;
    padding: 16px;
  }
}

body.tax-product_cat .primary-sidebar #tmcore-wp-widget-product-highlight-filter-2 > .widget-title::before {
  content: "\0627\0644\0645\064A\0632\0627\062A";
}

body.tax-product_cat .primary-sidebar .tmcore-wp-widget-product-rating-filter,
body.tax-product_cat .primary-sidebar #tmcore-wp-widget-product-rating-filter-2,
body.tax-product_cat #filter-drawer .tmcore-wp-widget-product-rating-filter {
  display: none !important;
}
