/* ==========================================================================
   دار طيبة الدمشقية — DAR TAIBA AL-DIMASHQIYAH
   DEDICATED PRODUCTS CATALOG STYLESHEET (products.css)
   Aesthetic: Refined Damascus Royal Editorial & High-End E-Commerce
   ========================================================================== */

/* ── 1. ROYAL DAMASCUS GRAND LIBRARY HERO & SEARCH STAGE ────────────────── */
.catalog-page-hero {
  position: relative;
  background: linear-gradient(-180deg, #FBF9ED 0%, #F1EEDB 100%);
  padding: 22px 0 32px;
  border-bottom: 1px solid rgba(186, 155, 50, 0.18);
}

/* Breadcrumbs */
.catalog-breadcrumbs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #7a6e60;
  margin-bottom: 16px;
  padding: 0 4px;
}

.catalog-breadcrumbs a {
  color: #005943;
  text-decoration: none;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.catalog-breadcrumbs a:hover {
  color: #BA9B32;
}

.catalog-breadcrumbs .crumb-sep {
  font-size: 11px;
  color: #BA9B32;
  opacity: 0.65;
}

.catalog-breadcrumbs .crumb-current {
  color: #8F7520;
  font-weight: 800;
}

/* Framed Cinematic Archival Stage (مسرح معماري بظل محدد وأبعاد ملكية) */
.library-hero-stage {
  position: relative;
  width: 100%;
  min-height: 390px;
  border-radius: 26px;
  overflow: hidden;
  background: 
    linear-gradient(-180deg, rgba(0, 35, 26, 0.72) 0%, rgba(0, 43, 32, 0.86) 60%, rgba(0, 31, 23, 0.94) 100%),
    url('../img/products-hero-library.jpg') center center / cover no-repeat;
  border: 1px solid rgba(204, 168, 59, 0.45);
  box-shadow: 
    0 24px 60px -12px rgba(0, 43, 32, 0.45),
    0 10px 24px -6px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  padding: 44px 32px 38px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
}

/* Inner Damascus Delicate Golden Framing Inset */
.library-hero-stage::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(204, 168, 59, 0.22);
  border-radius: 18px;
  pointer-events: none;
  z-index: 1;
}

/* Ambient Radial Light Beam */
.stage-overlay-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 20%, rgba(204, 168, 59, 0.16) 0%, transparent 75%);
  pointer-events: none;
  z-index: 1;
}

/* Editorial Title Block */
.stage-header {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 820px;
  margin-bottom: 22px;
}

.stage-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #CCA83B;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.stage-kicker .kicker-star {
  font-size: 9px;
  color: #fce49e;
}

.stage-headline {
  font-family: 'Inter', sans-serif;
  font-size: 36px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.25;
  margin: 0;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.7);
  letter-spacing: -0.3px;
}

.stage-headline .stage-gold {
  color: #E0C76C;
  background: linear-gradient(-135deg, #fff3c9 0%, #E0C76C 45%, #BA9B32 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stage-subline {
  font-size: 15px;
  color: #e6dfd3;
  line-height: 1.7;
  margin: 0;
  max-width: 720px;
  font-weight: 500;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

/* Master Monolithic Floating Search Podium in Center */
.library-search-podium {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 720px;
  margin: 0 auto 20px auto;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(16px);
  border: 2px solid rgba(204, 168, 59, 0.55);
  border-radius: 9999px;
  padding: 5px 18px 5px 6px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.25);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.library-search-podium:focus-within {
  border-color: #CCA83B;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.45), 0 0 0 4px rgba(204, 168, 59, 0.25);
  transform: translateY(-2px);
}

.search-podium-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.search-lead-icon {
  color: #BA9B32;
  font-size: 17px;
  flex-shrink: 0;
  transition: color 0.2s;
}

.library-search-podium:focus-within .search-lead-icon {
  color: #005943;
}

.search-podium-input-wrap input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #005943;
}

.search-podium-input-wrap input::placeholder {
  color: #8c7d6d;
  font-size: 13.5px;
  font-weight: 500;
}

.catalog-clear-btn {
  background: none;
  border: none;
  color: #8c7d6d;
  font-size: 15px;
  padding: 4px 8px;
  cursor: pointer;
  display: none;
  transition: color 0.2s;
}

.catalog-clear-btn:hover {
  color: #005943;
}

.btn-podium-submit {
  background: linear-gradient(-135deg, #005943 0%, #00382b 100%);
  color: #ffffff;
  border: 1px solid rgba(204, 168, 59, 0.5);
  border-radius: 9999px;
  padding: 9px 24px;
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-podium-submit:hover {
  background: linear-gradient(-135deg, #CCA83B 0%, #BA9B32 100%);
  color: #002b20;
  border-color: #ffe08a;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(204, 168, 59, 0.45);
}

.btn-podium-submit i {
  font-size: 11px;
  transition: transform 0.2s;
}

.btn-podium-submit:hover i {
  transform: translateX(3px);
}

/* Floating Glass Capsule Disciplines Bar directly underneath in Center */
.library-disciplines-bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  background: rgba(0, 35, 26, 0.55);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(204, 168, 59, 0.3);
  border-radius: 9999px;
  padding: 6px 10px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.3);
}

.discipline-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9999px;
  padding: 7px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #e5ded2;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.discipline-tab i {
  font-size: 11.5px;
  color: #CCA83B;
  transition: color 0.2s;
}

.discipline-tab:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(204, 168, 59, 0.7);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.discipline-tab.active {
  background: linear-gradient(-135deg, #CCA83B 0%, #BA9B32 100%);
  color: #002b20;
  font-weight: 900;
  border-color: #E0C76C;
  box-shadow: 0 4px 18px rgba(204, 168, 59, 0.5);
  transform: translateY(-2px);
}

.discipline-tab.active i {
  color: #002b20;
}

@media (max-width: 900px) {
  .library-hero-stage {
    padding: 36px 22px 30px;
  }
  .stage-headline {
    font-size: 30px;
  }
}

@media (max-width: 768px) {
  .catalog-page-hero {
    padding: 16px 0 24px;
  }
  .library-hero-stage {
    min-height: auto;
    padding: 28px 16px 22px;
    border-radius: 18px;
  }
  .library-hero-stage::before {
    inset: 6px;
    border-radius: 14px;
  }
  .stage-headline {
    font-size: 24px;
  }
  .stage-subline {
    font-size: 13px;
    line-height: 1.6;
  }
  .library-search-podium {
    flex-direction: column;
    border-radius: 18px;
    padding: 10px 12px;
    gap: 10px;
  }
  .search-podium-input-wrap {
    width: 100%;
  }
  .btn-podium-submit {
    width: 100%;
    justify-content: center;
  }
  .library-disciplines-bar {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    gap: 6px;
  }
  .discipline-tab {
    padding: 6px 12px;
    font-size: 12px;
  }
}

/* ── 2. CATALOG MAIN WORKSPACE LAYOUT ────────────────────────────────────── */
.catalog-workspace-section {
  padding: 32px 0 64px;
  background: #FBF9ED;
}

.catalog-layout-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
}

/* ── 3. FILTER SIDEBAR PANEL ─────────────────────────────────────────────── */
.filter-sidebar-panel {
  position: sticky;
  top: 90px;
  background: #ffffff;
  border: 1px solid rgba(186, 155, 50, 0.25);
  border-radius: 20px;
  padding: 22px 20px;
  box-shadow: 0 10px 30px rgba(0, 89, 67, 0.04);
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #BA9B32 transparent;
}

.filter-sidebar-panel::-webkit-scrollbar {
  width: 5px;
}

.filter-sidebar-panel::-webkit-scrollbar-thumb {
  background: rgba(186, 155, 50, 0.4);
  border-radius: 10px;
}

/* Sidebar Header */
.filter-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1.5px solid #f2ede1;
}

.filter-panel-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 15.5px;
  font-weight: 800;
  color: #005943;
  margin: 0;
}

.filter-panel-title i {
  color: #BA9B32;
}

.btn-reset-filters-link {
  background: none;
  border: none;
  color: #9c8e7e;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: color 0.2s;
  padding: 2px 4px;
}

.btn-reset-filters-link:hover {
  color: #b02a2a;
}

/* Filter Group Container */
.filter-group-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-bottom: 1px solid #F1EEDB;
  padding-bottom: 18px;
}

.filter-group-block:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.filter-group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  font-weight: 800;
  color: #005943;
  margin: 0;
  cursor: pointer;
  user-select: none;
}

.filter-group-title i {
  font-size: 11px;
  color: #BA9B32;
  transition: transform 0.2s;
}

.filter-group-title.collapsed i {
  transform: rotate(-180deg);
}

/* Category Checkboxes List */
.filter-options-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-check-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s;
  user-select: none;
}

.filter-check-item:hover {
  background: #FBF9ED;
}

.check-label-wrap {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 600;
  color: #2b3d35;
}

.custom-checkbox {
  width: 17px;
  height: 17px;
  border-radius: 5px;
  border: 1.5px solid #d4c4a8;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 10px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

input[type="checkbox"]:checked + .custom-checkbox,
input[type="radio"]:checked + .custom-checkbox {
  background: #005943;
  border-color: #005943;
}

.filter-check-item input {
  display: none;
}

.filter-count-badge {
  font-size: 11px;
  font-weight: 700;
  color: #8c7e6c;
  background: #F1EEDB;
  padding: 1px 7px;
  border-radius: 9999px;
}

/* Price Range Slider */
.price-filter-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.price-inputs-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.price-input-capsule {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #FBF9ED;
  border: 1px solid #F1EEDB;
  border-radius: 10px;
  padding: 5px 10px;
  flex: 1;
}

.price-input-capsule span {
  font-size: 11px;
  color: #9e8d76;
  font-weight: 700;
}

.price-input-capsule strong {
  font-size: 13px;
  color: #005943;
  font-weight: 800;
}

.price-slider-track {
  position: relative;
  width: 100%;
}

.price-range-slider {
  width: 100%;
  accent-color: #005943;
  cursor: pointer;
}

.price-presets-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.price-preset-btn {
  background: #FBF9ED;
  border: 1px solid #F1EEDB;
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  color: #005943;
  cursor: pointer;
  transition: all 0.2s;
}

.price-preset-btn:hover,
.price-preset-btn.active {
  background: #005943;
  color: #CCA83B;
  border-color: #005943;
}

/* ── 4. CATALOG STREAM & TOOLBAR ─────────────────────────────────────────── */
.catalog-stream-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Top Toolbar */
.catalog-toolbar-card {
  background: #ffffff;
  border: 1px solid rgba(186, 155, 50, 0.25);
  border-radius: 18px;
  padding: 14px 20px;
  box-shadow: 0 4px 18px rgba(0, 89, 67, 0.03);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.toolbar-left-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.results-count-headline {
  font-family: 'Inter', sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  color: #4a5c54;
  margin: 0;
}

.results-count-headline strong {
  color: #005943;
  font-weight: 900;
  font-size: 16px;
}

.mobile-filter-trigger-btn {
  display: none;
  align-items: center;
  gap: 7px;
  background: #F1EEDB;
  border: 1px solid rgba(186, 155, 50, 0.35);
  border-radius: 9999px;
  padding: 6px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: #005943;
  cursor: pointer;
  transition: all 0.2s;
}

.mobile-filter-trigger-btn:hover {
  background: #005943;
  color: #CCA83B;
}

.toolbar-right-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Sort Selector */
.sort-selector-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sort-label {
  font-size: 12.5px;
  font-weight: 700;
  color: #7d6e5d;
}

.custom-sort-select {
  position: relative;
  background: #FBF9ED;
  border: 1px solid rgba(186, 155, 50, 0.3);
  border-radius: 9999px;
  padding: 6px 30px 6px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #005943;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  transition: all 0.2s;
}

.custom-sort-select:hover,
.custom-sort-select:focus {
  border-color: #CCA83B;
  background: #ffffff;
}

.sort-chevron {
  position: absolute;
  right: 12px;
  font-size: 10px;
  color: #BA9B32;
  pointer-events: none;
}

/* View Mode Toggles */
.view-mode-switch {
  display: flex;
  align-items: center;
  background: #F1EEDB;
  border-radius: 9999px;
  padding: 3px;
  border: 1px solid rgba(186, 155, 50, 0.25);
}

.btn-view-toggle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: #7d6e5d;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-view-toggle:hover {
  color: #005943;
}

.btn-view-toggle.active {
  background: #005943;
  color: #CCA83B;
  box-shadow: 0 2px 8px rgba(0, 89, 67, 0.2);
}

/* Active Filter Badges Strip */
.active-filters-ribbon {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 4px 0;
}

.active-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid rgba(186, 155, 50, 0.35);
  color: #005943;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 9999px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.active-filter-pill button {
  background: none;
  border: none;
  color: #b02a2a;
  font-size: 12px;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  transition: transform 0.15s;
}

.active-filter-pill button:hover {
  transform: scale(1.2);
}

.btn-clear-all-pill {
  background: none;
  border: none;
  color: #b02a2a;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: underline;
  padding: 4px 8px;
}

/* ── 5. PRODUCTS DISPLAY GRIDS ───────────────────────────────────────────── */
/* Grid Mode: Default 4 columns in workspace (leaves generous room for sidebar) */
.products-display-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px 16px;
  padding: 4px 0 20px;
}

/* 5 Column Extended Mode */

/* List View Mode (Detailed Horizontal Card) */
.products-display-grid.view-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.products-display-grid.view-list .product-item-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px;
  align-items: center;
  padding: 16px 20px;
}

.products-display-grid.view-list .product-item-visual {
  height: 220px;
  margin-bottom: 0;
}

.products-display-grid.view-list .product-info-col {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.products-display-grid.view-list .product-title {
  font-size: 17px;
  margin-bottom: 6px;
}

/* Empty State */
.catalog-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  background: #ffffff;
  border: 1px dashed rgba(186, 155, 50, 0.4);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.empty-state-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #f7f3e8;
  color: #BA9B32;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

.empty-state-title {
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: #005943;
  margin: 0;
}

.empty-state-desc {
  font-size: 14px;
  color: #7d6e5d;
  max-width: 440px;
  margin: 0;
  line-height: 1.5;
}

.btn-empty-reset {
  background: #005943;
  color: #CCA83B;
  border: 1px solid #CCA83B;
  border-radius: 9999px;
  padding: 10px 24px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  margin-top: 6px;
  transition: all 0.2s;
}

.btn-empty-reset:hover {
  background: #CCA83B;
  color: #002b20;
}

/* ── 6. CATALOG PAGINATION ───────────────────────────────────────────────── */
.catalog-pagination-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-top: 24px;
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(186, 155, 50, 0.3);
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  font-weight: 800;
  color: #005943;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.pagination-btn:hover {
  background: #FBF9ED;
  border-color: #BA9B32;
  transform: translateY(-1px);
}

.pagination-btn.active {
  background: #005943;
  color: #CCA83B;
  border-color: #005943;
  box-shadow: 0 4px 12px rgba(0, 89, 67, 0.2);
}

.pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

/* ── 7. RESPONSIVE BREAKPOINTS ───────────────────────────────────────────── */
@media (max-width: 1200px) {
  .products-display-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .catalog-layout-grid {
    grid-template-columns: 1fr;
  }

  .mobile-filter-trigger-btn {
    display: inline-flex;
  }

  /* Slide-in Drawer on Mobile */
  .filter-sidebar-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 320px;
    height: 100vh;
    max-height: 100vh;
    z-index: 2000;
    border-radius: 0;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.25);
  }

  .filter-sidebar-panel.drawer-open {
    transform: translateX(0);
  }

  .filter-drawer-mask {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .filter-drawer-mask.visible {
    opacity: 1;
    visibility: visible;
  }

  .filter-drawer-close-btn {
    display: block !important;
  }

  .products-display-grid {
    grid-template-columns: repeat(3, 1fr);
  }

}

@media (max-width: 768px) {
  .catalog-hero-title {
    font-size: 24px;
  }

  .catalog-search-console {
    flex-direction: column;
    border-radius: 20px;
    padding: 10px;
    gap: 10px;
  }

  .catalog-search-sep {
    display: none;
  }

  .catalog-scope-chamber {
    width: 100%;
    justify-content: space-between;
  }

  .catalog-input-chamber {
    width: 100%;
  }

  .btn-catalog-search-submit {
    width: 100%;
    justify-content: center;
  }

  .catalog-toolbar-card {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .toolbar-left-group,
  .toolbar-right-group {
    justify-content: space-between;
  }

  .products-display-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 10px;
  }


  .products-display-grid.view-list .product-item-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .products-display-grid {
    grid-template-columns: 1fr;
  }

}
