.fc-catalog-wrap {
  --fc-gold: #a4874b;
  --fc-dark: #3a3a3a;
  --fc-text: #1a1a1a;
  --fc-muted: #8a8a8a;
  --fc-border: #e2e0da;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--fc-text);
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(16px, 3vw, 32px);
  box-sizing: border-box;
}
.fc-catalog-wrap * {
  box-sizing: border-box;
}
.fc-catalog-wrap ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ---------- TOP BAR ---------- */
.fc-catalog-wrap .fc-topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.fc-catalog-wrap .fc-search {
  display: flex;
  flex: 1 1 260px;
  max-width: 340px;
  border: 1px solid var(--fc-border);
}
.fc-catalog-wrap .fc-search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--fc-text);
  background: #fff;
  min-width: 0;
  border-radius: 0;
  box-shadow: none;
  height: auto;
  margin: 0;
}
.fc-catalog-wrap .fc-search-input::placeholder {
  color: #aaa;
}
.fc-catalog-wrap .fc-search-btn {
  background: var(--fc-dark);
  border: none;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
  min-width: 0;
  line-height: normal;
}
.fc-catalog-wrap .fc-search-btn svg {
  display: block;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
}

.fc-catalog-wrap .fc-view-toggle {
  display: flex;
  gap: 6px;
  flex: 0 0 auto;
}
.fc-catalog-wrap .fc-view-btn {
  width: 32px;
  height: 32px;
  border: 1px solid transparent;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
  padding: 0;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
  min-width: 0;
  line-height: normal;
}
.fc-catalog-wrap .fc-view-btn svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
.fc-catalog-wrap .fc-view-btn.active {
  color: var(--fc-text);
}

.fc-catalog-wrap .fc-results-count {
  color: var(--fc-muted);
  font-size: 14px;
  flex: 1 1 auto;
  white-space: nowrap;
}

.fc-catalog-wrap .fc-filters-toggle {
  display: none;
  border: 1px solid var(--fc-dark);
  background: #fff;
  padding: 10px 18px;
  font-size: 13px;
  letter-spacing: .03em;
  cursor: pointer;
  flex: 0 0 auto;
  border-radius: 0;
  box-shadow: none;
}

.fc-catalog-wrap .fc-sort select {
  border: 1px solid var(--fc-gold);
  background-color: #fff;
  padding: 12px 36px 12px 16px;
  font-size: 14px;
  color: var(--fc-text);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a4874b' stroke-width='2'><polyline points='6 9 12 15 18 9'></polyline></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
  min-width: 190px;
  height: auto;
  line-height: normal;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
}
.fc-catalog-wrap .fc-sort select::-ms-expand {
  display: none;
}

/* ---------- BODY LAYOUT ---------- */
.fc-catalog-wrap .fc-body {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.fc-catalog-wrap .fc-sidebar {
  flex: 0 0 230px;
}
.fc-catalog-wrap .fc-sidebar-close {
  display: none;
}
.fc-catalog-wrap .fc-sidebar-overlay {
  display: none;
}

.fc-catalog-wrap .fc-filter-block {
  margin-bottom: 32px;
}
.fc-catalog-wrap .fc-filter-head {
  margin-bottom: 14px;
}
.fc-catalog-wrap .fc-filter-head h3 {
  font-size: 14px;
  letter-spacing: .03em;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0 0 6px 0;
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
}
.fc-catalog-wrap .fc-filter-head h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 22px;
  height: 2px;
  background: var(--fc-gold);
}
.fc-catalog-wrap .fc-reset-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d9d9d9;
  margin-left: 8px;
  cursor: pointer;
  vertical-align: middle;
}
.fc-catalog-wrap .fc-reset-dot:hover {
  background: var(--fc-gold);
}

.fc-catalog-wrap .fc-filter-list li {
  margin-bottom: 10px;
}
.fc-catalog-wrap .fc-filter-list label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  color: #444;
  cursor: pointer;
}
.fc-catalog-wrap .fc-filter-list input[type=checkbox] {
  width: 15px;
  height: 15px;
  accent-color: var(--fc-dark);
  cursor: pointer;
  flex: 0 0 auto;
  margin: 0;
}
.fc-catalog-wrap .fc-filter-list .fc-count {
  color: var(--fc-muted);
  font-size: 13px;
}

.fc-catalog-wrap .fc-clear-all {
  border: none;
  background: none;
  color: var(--fc-gold);
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

/* ---------- PRODUCT GRID ---------- */
.fc-catalog-wrap .fc-main {
  flex: 1 1 auto;
  min-width: 0;
}
.fc-catalog-wrap .fc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 24px;
}
.fc-catalog-wrap .fc-grid.list-view {
  grid-template-columns: 1fr;
}

.fc-catalog-wrap .fc-card {
  cursor: pointer;
  display: block;
  text-decoration: none;
  color: inherit;
}
.fc-catalog-wrap .fc-card:hover .fc-name {
  color: var(--fc-gold);
}
.fc-catalog-wrap .fc-card .fc-img {
  width: 100%;
  aspect-ratio: 1/1.02;
  overflow: hidden;
  background: #eee;
  margin-bottom: 12px;
}
.fc-catalog-wrap .fc-card .fc-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.fc-catalog-wrap .fc-card:hover .fc-img img {
  transform: scale(1.06);
}
.fc-catalog-wrap .fc-card .fc-name {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
  margin: 0;
}
.fc-catalog-wrap .fc-card .fc-meta {
  font-size: 12px;
  color: var(--fc-muted);
  margin-top: 4px;
}

.fc-catalog-wrap .fc-grid.list-view .fc-card {
  display: flex;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--fc-border);
  padding-bottom: 16px;
}
.fc-catalog-wrap .fc-grid.list-view .fc-card .fc-img {
  width: 120px;
  flex: 0 0 120px;
  aspect-ratio: 1/1;
  margin-bottom: 0;
}

.fc-catalog-wrap .fc-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}
.fc-catalog-wrap .fc-pagination button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--fc-border);
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  color: var(--fc-text);
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  min-width: 0;
  line-height: normal;
}
.fc-catalog-wrap .fc-pagination button.active {
  background: var(--fc-dark);
  color: #fff;
  border-color: var(--fc-dark);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .fc-catalog-wrap .fc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .fc-catalog-wrap .fc-topbar {
    gap: 10px;
  }
  .fc-catalog-wrap .fc-search {
    max-width: 100%;
    flex: 1 1 100%;
    order: 1;
  }
  .fc-catalog-wrap .fc-view-toggle {
    order: 3;
  }
  .fc-catalog-wrap .fc-results-count {
    order: 4;
    flex: 1 1 auto;
    font-size: 13px;
  }
  .fc-catalog-wrap .fc-filters-toggle {
    display: block;
    order: 2;
  }
  .fc-catalog-wrap .fc-sort {
    order: 5;
    flex: 1 1 100%;
  }
  .fc-catalog-wrap .fc-sort select {
    width: 100%;
  }

  .fc-catalog-wrap .fc-body {
    gap: 0;
  }
  .fc-catalog-wrap .fc-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 82%;
    max-width: 320px;
    background: #fff;
    z-index: 1001;
    padding: 24px;
    overflow-y: auto;
    transform: translateX(-105%);
    transition: transform .3s ease;
    box-shadow: 2px 0 12px rgba(0, 0, 0, .1);
  }
  .fc-catalog-wrap .fc-sidebar.open {
    transform: translateX(0);
  }
  .fc-catalog-wrap .fc-sidebar-close {
    display: block;
    position: absolute;
    top: 14px;
    right: 16px;
    font-size: 26px;
    line-height: 1;
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
  }
  .fc-catalog-wrap .fc-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .4);
    z-index: 1000;
  }
  .fc-catalog-wrap .fc-sidebar-overlay.open {
    display: block;
  }

  .fc-catalog-wrap .fc-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 14px;
  }
  .fc-catalog-wrap .fc-card .fc-name {
    font-size: 12.5px;
  }
}

@media (max-width: 480px) {
  .fc-catalog-wrap .fc-grid {
    grid-template-columns: 1fr;
  }
  .fc-catalog-wrap .fc-grid.list-view .fc-card .fc-img {
    width: 90px;
    flex: 0 0 90px;
  }
  .fc-catalog-wrap .fc-filter-list input[type=checkbox] {
    width: 18px;
    height: 18px;
  }
}

/* =========================================================
   THEME-OVERRIDE HARDENING
   Your theme / global stylesheet has button, svg, and select
   resets with higher specificity (or that load AFTER this
   file, possibly also using !important) which were hiding
   the search/view icons and breaking the sort dropdown's
   padding. Repeating ".fc-catalog-wrap" raises specificity
   above typical theme selectors, and !important is added on
   top so this wins even against other !important rules of
   equal-or-lower specificity, regardless of stylesheet order.
   ========================================================= */
.fc-catalog-wrap.fc-catalog-wrap .fc-search-btn,
.fc-catalog-wrap.fc-catalog-wrap .fc-view-btn,
.fc-catalog-wrap.fc-catalog-wrap .fc-filters-toggle,
.fc-catalog-wrap.fc-catalog-wrap .fc-pagination button {
  border-radius: 0 !important;
  box-shadow: none !important;
  min-width: 0 !important;
  max-width: none !important;
  line-height: normal !important;
  box-sizing: border-box !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-clip: initial !important;
  overflow: visible !important;
}

.fc-catalog-wrap.fc-catalog-wrap .fc-search-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 46px !important;
  height: 46px !important;
  flex: 0 0 46px !important;
  padding: 0 !important;
  margin: 0 !important;
  background-color: var(--fc-dark) !important;
  border: none !important;
}

.fc-catalog-wrap.fc-catalog-wrap .fc-view-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 32px !important;
  height: 32px !important;
  padding: 0 !important;
  margin: 0 !important;
  background-color: transparent !important;
  border: 1px solid transparent !important;
}

.fc-catalog-wrap.fc-catalog-wrap .fc-search-btn svg,
.fc-catalog-wrap.fc-catalog-wrap .fc-view-btn svg {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 17px !important;
  height: 17px !important;
  max-width: none !important;
  max-height: none !important;
  fill: none !important;
  stroke-width: 2 !important;
}
.fc-catalog-wrap.fc-catalog-wrap .fc-search-btn svg { stroke: #fff !important; }
.fc-catalog-wrap.fc-catalog-wrap .fc-view-btn svg { stroke: currentColor !important; }
.fc-catalog-wrap.fc-catalog-wrap .fc-view-btn.active svg { stroke: var(--fc-text) !important; }

.fc-catalog-wrap.fc-catalog-wrap .fc-sort select {
  display: inline-block !important;
  height: auto !important;
  line-height: normal !important;
  padding: 12px 36px 12px 16px !important;
  border: 1px solid var(--fc-gold) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  margin: 0 !important;
  min-width: 190px !important;
  max-width: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-color: #fff !important;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a4874b' stroke-width='2'><polyline points='6 9 12 15 18 9'></polyline></svg>") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background-size: 14px !important;
}
.fc-catalog-wrap.fc-catalog-wrap .fc-sort select::-ms-expand {
  display: none !important;
}