/* ---------------------------------------------------
   CATEGORY NAV
--------------------------------------------------- */
.category-nav {
  background: #f7f9fc;
  padding: 15px 0;
  border-bottom: 1px solid #e5e8ef;
  border-top: 1px solid #e5e8ef;
}
.category-nav-container {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
}

.cat-item {
  padding: 8px;
  border-radius: 20px;
  font-size: 15px;
  cursor: pointer;
  transition: 0.2s;
  color: #333;
}

.cat-item:hover,
.cat-item.active {
  background: #0f66d7;
  color: #fff;
}
@media screen and (max-width: 1100px) {
  .cat-item {
    font-size: 12px;
    padding: 8px 12px;
  }
}
@media screen and (max-width: 992px) {
  .category-nav-container {
    display: block;
    text-align: center;
  }
  .cat-item {
    /* margin: 5px 0; */
    display: inline-block;
  }
}
/* ---------------------------------------------
   SIDEBAR FILTERS STYLING
--------------------------------------------- */

.filter-sidebar {
  background: #fff;
  padding: 20px;
  border-radius: 14px;
  border: 1px solid #e5e9f2;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  height: fit-content;
}

.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.filter-reset {
  background: none;
  border: none;
  color: #0f66d7;
  cursor: pointer;
  font-size: 14px;
}

/* GROUP WRAPPER */

/* BUTTON */
.accordion-btn {
  width: 100%;
  background: #f7f8fa;
  border: 1px solid #dce1eb;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion-btn i {
  transition: transform 0.3s ease;
}

/* OPEN STATE */
.accordion-btn.active i {
  transform: rotate(180deg);
}

/* CONTENT AREA */
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  padding-left: 4px;
}

.accordion-panel label {
  display: block;
  padding: 8px 0;
  font-size: 14px;
}

/* ---------------------------------------------
   PRICE RANGE SLIDER
--------------------------------------------- */

.price-slider-box {
  margin-top: 10px;
}

.price-slider-box input[type="range"] {
  width: 100%;
  -webkit-appearance: none;
  background: transparent;
  margin: 10px 0;
}

.price-slider-box input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  background: #d0d5dd;
  border-radius: 4px;
}

.price-slider-box input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 18px;
  width: 18px;
  background: #0f66d7;
  border-radius: 50%;
  cursor: pointer;
}

.price-values {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
}

/* APPLY BTN */
.btn-apply-filters {
  width: 100%;
  padding: 12px;
  border: none;
  background: #0f66d7;
  color: #fff;
  margin-top: 25px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 15px;
}

.btn-apply-filters:hover {
  background: #004a9d;
}

.view-switch i.active {
  color: white;
}

/* ---------------------------------------------------
   PAGINATION
--------------------------------------------------- */

.pagination {
  list-style: none;
  display: flex;
  gap: 10px;
}

.page-number,
.page-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d5d8df;
  cursor: pointer;
}

.page-number.active {
  background: #0f66d7;
  color: white;
}
/* LIST VIEW FORMAT */
@media screen and (min-width: 576px) {
  .product-list-view {
    display: flex;
    flex-direction: row;
    gap: 20px;
  }

  .product-list-view .product-image-wrapper img {
    width: 180px !important;
  }

  .product-list-view .product-card-body {
    text-align: left;
  }

  .product-list-view .prod-add-cart {
    width: auto;
  }
}

/* ---------------------------------------------
   LARGE FILTER WITH COLLAPSIBLE PANEL
--------------------------------------------- */

/* Header button */
.filter-large-header {
  width: 100%;
  background: #f7f8fa;
  border: 1px solid #dce1eb;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.filter-large-header i {
  transition: transform 0.3s ease;
}

/* Panel (closed by default) */
.filter-large-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

/* Content box with scroll */
.filter-large-content {
  /* margin-top: 12px; */
  border: 1px solid #e3e7ef;
  padding: 12px 14px;
  background: #fff;
  border-radius: 10px;

  max-height: 220px; /* scroll limit */
  overflow-y: auto;
}

/* Scrollbar styling */
.filter-large-content::-webkit-scrollbar {
  width: 6px;
}

.filter-large-content::-webkit-scrollbar-thumb {
  background: #c9d1dd;
  border-radius: 4px;
}

.filter-large-content label {
  display: block;
  padding: 6px 0;
  font-size: 15px;
  color: #444;
}

/* When open */
.filter-large-header.active i {
  transform: rotate(180deg);
}
/* ---------------------------------------------
   SINGLE PRICE SLIDER
--------------------------------------------- */

.single-slider {
  padding: 10px 4px;
}

/* slider track */
.single-slider input[type="range"] {
  width: 100%;
  -webkit-appearance: none;
  background: transparent;
}

/* background track */
.single-slider input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  background: #e1e5ee;
  border-radius: 4px;
}

/* thumb */
.single-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 22px;
  width: 22px;
  background: #0f66d7;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px #0f66d7;
  cursor: pointer;
  margin-top: -8px;
}

/* filled track effect */
.single-slider input[type="range"]::-webkit-slider-runnable-track {
  background: linear-gradient(
    to right,
    #0f66d7 var(--slider-percent),
    #e1e5ee var(--slider-percent)
  );
}

/* VALUES */
.price-input-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  gap: 10px;
}

.price-input-row input {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border-radius: 8px;
  border: 1px solid #cfd5df;
  text-align: center;
}

.btn-price-apply {
  width: 45px;
  height: 45px;
  border-radius: 10px;
  background: #f3f5f9;
  border: 1px solid #d7dce6;
  cursor: pointer;
  transition: 0.2s;
}

.btn-price-apply:hover {
  background: #0f66d7;
  color: #fff;
}
.offer-btn {
  width: 100%;
  background: #eaf8e8;
  border: 1px solid #2fa33b;
  color: #2fa33b;
  font-weight: 600;
  font-size: 16px;
  padding: 14px;
  border-radius: 12px;
  margin-bottom: 20px;
  cursor: pointer;
  transition: 0.25s ease;
}

.offer-btn i {
  margin-right: 8px;
}

.offer-btn:hover {
  background: #eaf8e8;
  border-color: #eaf8e8;
}

.offer-btn.active {
  background: #2fa33b;
  border-color: #2fa33b;
  color: #fff;
}
.price-card {
  background: #ffffff;
  padding: 18px 18px 22px 18px;
  border-radius: 14px;
  border: 1px solid #e3e7ef;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  margin-bottom: 25px;
}

.price-card h5 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 12px;
}

/* ================================
   PREMIUM CUSTOM CHECKBOXES
================================ */

.filter-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  cursor: pointer;
  font-size: 17px;
  color: #222;
  user-select: none;
  transition: 0.2s ease;
}

.filter-item:hover {
  color: #0f66d7;
}

/* ascundem checkbox-ul real */
.filter-item input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #c7ced9;
  border-radius: 6px;
  display: inline-block;
  position: relative;
  cursor: pointer;
  transition: 0.2s;
  background: #fff;
}

/* hover effect */
.filter-item input[type="checkbox"]:hover {
  border-color: #0f66d7;
}

/* când este bifat */
.filter-item input[type="checkbox"]:checked {
  background-color: #0f66d7;
  border-color: #0f66d7;
}

.filter-item input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-size: contain;
  background-repeat: no-repeat;
  background-image: url('data:image/svg+xml;utf8,<svg fill="white" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M6.173 13.727L.443 7.996 1.857 6.58l4.316 4.316L14.142.928l1.414 1.414z"/></svg>');
}

/* ================================
   DROPDOWN ITEMS LIST STYLE
================================ */

.filter-large-panel,
.accordion-panel {
  margin-top: 5px;
  margin-bottom: 5px;
}

.filter-large-panel label.filter-item,
.accordion-panel label.filter-item {
  padding: 10px 8px;
  background: #fff;
  border-radius: 10px;
  margin-bottom: 10px;
  transition: 0.2s;
  border: 1px solid #e7eaf0;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
}

/* hover pe item */
.filter-large-panel label.filter-item:hover,
.accordion-panel label.filter-item:hover {
  background: #f6f9fe;
  border-color: #d9e4ff;
}

/* PRODUCT CARD */
.product-card {
  position: relative;
  background: #fff;
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
  transition: 0.25s ease;
}

.product-card:hover {
  transform: translateY(-4px);
}

/* IMAGE */
.product-image-wrapper {
  text-align: center;
  margin-bottom: 15px;
  height: 220px;
  /* border: 1px solid black; */
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-image-wrapper img {
  height: 180px;
  max-width: max-content;
}
.product-image-wrapper .product-image {
  width: 100%;
  height: 180px;
  object-fit: contain;
}

/* BADGE -20% */
.product-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  background: #0f66d7;
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
}

/* ICONS */
.product-actions-icons {
  position: absolute;
  top: 18px;
  left: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.icon-btn-listare {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  border: none;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.2s;
}

.icon-btn-listare:hover {
  background: #f0f4ff;
  color: #0f66d7;
}

/* STOCK */
.product-stock {
  font-size: 14px;
  font-weight: 600;
  color: #28a745;
  margin-bottom: 10px;
}

.product-stock .dot {
  width: 10px;
  height: 10px;
  background: #28a745;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
}
.product-stock.precomanda {
  color: #0f66d7;
}
.product-stock.precomanda .dot {
  background: #0f66d7;
}

/* BRAND */
.product-brand a {
  font-size: 14px;
  font-weight: 700;
  color: #8a8a8a;
  margin-bottom: 6px;
}

/* TITLE */
.product-card .product-title {
  margin-bottom: 0;
}
.product-card .product-title a {
  font-size: 18px;
  font-weight: 700;
  color: #222;
  line-height: 1.3;
  height: 48px; /* Exactly 2 rows */
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 8px;
}

/* PRICES */
.product-prices {
  margin-bottom: 16px;
}

.old-price {
  display: block;
  font-size: 14px;
  color: #999;
  text-decoration: line-through;
}

.new-price {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: #000;
}
.new-price ins {
  display: block;
  font-size: 14px;
  color: #999;
  text-decoration: line-through;
}
.add-cart-listing {
  transition: 0.3s all ease-in-out;
  width: 100%;
}

.btn-add-cart.add-cart-listing a {
  background: unset;
  color: unset;
  font-weight: 600;
  transition: 0.3s all ease-in-out;
}
.btn-add-cart.add-cart-listing a.added {
  display: none;
}
.woocommerce a.added_to_cart {
  padding-top: 0;
  padding-left: 25px;
}
.btn-add-cart.add-cart-listing:hover {
  background: black;
  color: white;
}
.btn-add-cart.add-cart-listing a:hover {
  background-color: unset;
  color: unset;
}
/* ==============================
   LISTING TOP FILTER BAR
============================== */

.listing-top {
  padding: 12px 0;
  border-bottom: 1px solid #f0f2f5;
}

.listing-count {
  font-size: 18px;
  font-weight: 600;
  color: #222;
}

/* Select wrapper */
.select-box {
  position: relative;
  display: inline-block;
}

.select-box select {
  appearance: none;
  -webkit-appearance: none;
  padding: 12px 32px 12px 18px;
  border-radius: 12px;
  border: 1.5px solid #dce1eb;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

.select-box select:hover {
  border-color: #b8c1d6;
}

.select-box select:focus {
  border-color: #0f66d7;
  outline: none;
}
.woocommerce .woocommerce-ordering {
  margin: 0;
}
/* Dropdown arrow */
.select-box i {
  position: absolute;
  right: 11px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #888;
  font-size: 12px;
}

/* VIEW SWITCH */
.view-switch .view-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid #dce1eb;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.2s;
  font-size: 18px;
}

.view-switch .view-btn:hover {
  border-color: #0f66d7;
  color: #0f66d7;
}

.view-switch .view-btn.active {
  background: #0f66d7;
  border-color: #0f66d7;
  color: #fff;
}
/* SHOW FILTERS */
.active-filters-box {
  background: #f5f7fa;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #e2e6eb;
}

.active-filter-chip {
  background: #0f66d7;
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.active-filter-chip .remove-chip {
  color: white;
  font-weight: bold;
  text-decoration: none;
  margin-left: 4px;
}

.active-filter-chip .remove-chip:hover {
  opacity: 0.7;
}

.clear-all-filters {
  margin-left: auto;
  color: #0f66d7;
  font-weight: 600;
  text-decoration: none;
  align-self: center;
}

.clear-all-filters:hover {
  text-decoration: underline;
}

/* Responsive behavior */

@media screen and (min-width: 576px) {
  /* LIST VIEW MODE */
  .products-grid.list-view .col-6,
  .products-grid.list-view .col-md-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .products-grid.list-view .product-card {
    display: flex;
    gap: 24px;
    align-items: center;
  }

  .products-grid.list-view .product-image-wrapper {
    width: 180px;
    flex-shrink: 0;
    margin-left: 25px;
  }

  .products-grid.list-view .product-image {
    height: 160px;
    object-fit: contain;
  }

  .products-grid.list-view .product-actions-icons {
    top: 10px;
    left: 10px;
  }

  .products-grid.list-view .product-title {
    height: auto;
  }

  .products-grid.list-view .add-cart-listing {
    width: 260px;
    margin-top: 12px;
  }
  .products-grid.list-view .product-card .product-prices {
    margin-bottom: 0;
  }
}
@media screen and (max-width: 1400px) {
  .listing-count {
    margin-bottom: 10px;
  }
  .btn-add-cart.add-cart-listing {
    padding: 0 14px 0 0;
    font-size: 14px;
  }
  .btn-add-cart.add-cart-listing img {
    height: 40px;
  }
}
@media screen and (max-width: 1200px) {
  .product-card .product-title a {
    font-size: 14px;
    height: 36px;
    margin-bottom: 6px;
  }
  .product-card {
    padding: 14px;
  }

  .product-prices {
    margin-bottom: 12px;
  }
  .listing-count {
    font-size: 16px;
  }
  .select-box select {
    padding: 10px 46px 10px 18px;
    font-size: 14px;
  }
  .filter-sidebar {
    padding: 14px;
  }
  .offer-btn {
    margin-bottom: 14px;
    padding: 8px 14px;
  }
  .price-card {
    padding: 12px;
  }
  .price-card h5 {
    font-size: 16px;
    margin-bottom: 8px;
    text-align: center;
  }
  .accordion-btn,
  .filter-large-header {
    font-size: 12px;
    padding: 8px 16px;
  }
}
@media screen and (max-width: 992px) {
  .listing-count {
    font-size: 12px;
    margin-bottom: 0;
  }
  .select-box select {
    padding: 8px 38px 8px 13px;
    font-size: 12px;
  }
  .view-switch .view-btn {
    width: 37px;
    height: 37px;
  }
}
@media (max-width: 768px) {
  .listing-top {
    gap: 10px;
  }
  .listing-count {
    width: 100%;
    margin-bottom: 6px;
  }
}
