.catalog-page {
  min-height: calc(100vh - 70px);
  background:
    radial-gradient(circle at 18% 8%, rgba(233, 30, 140, 0.11), transparent 28%),
    radial-gradient(circle at 88% 24%, rgba(31, 111, 91, 0.09), transparent 24%),
    linear-gradient(180deg, #fff8fb 0%, #ffeaf3 100%);
  padding: 58px 24px 90px;
}

.catalog-inner {
  max-width: 1600px;
  margin: 0 auto;
}

.catalog-header {
  text-align: center;
  margin-bottom: 30px;
}

.catalog-eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: #c2185b;
  font-family: "Montserrat", sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.catalog-title {
  font-family: "Noto Serif Georgian", "Sylfaen", serif;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  color: #3a0a20;
  margin-bottom: 12px;
  line-height: 1.08;
  letter-spacing: 0;
}

.catalog-subtitle {
  max-width: 560px;
  margin: 0 auto 18px;
  color: #7b3d59;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  line-height: 1.7;
}

.catalog-line {
  display: block;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, #e91e8c, #ff80b5);
  margin: 0 auto;
  border-radius: 4px;
}

.search-section {
  display: flex;
  justify-content: center;
  margin-bottom: 44px;
}

.search-wrapper {
  position: relative;
  width: 100%;
  max-width: 520px;
}

#catalog-search {
  width: 100%;
  padding: 15px 54px 15px 24px;
  border: 1px solid rgba(233, 30, 140, 0.18);
  border-radius: 40px;
  background: rgba(255, 255, 255, 0.88);
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  color: #3a0a20;
  outline: none;
  box-shadow: 0 16px 42px rgba(122, 26, 68, 0.08);
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}

#catalog-search:focus {
  border-color: rgba(233, 30, 140, 0.55);
  background: #fff;
  box-shadow: 0 18px 46px rgba(233, 30, 140, 0.14);
}

.search-icon {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #e91e8c;
  pointer-events: none;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  align-items: flex-start;
}

.catalog-layout::after {
  content: none;
}

.catalog-sidebar {
  width: 220px;
  position: sticky;
  top: 96px;
}

.filters-label {
  font-family: "Montserrat", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #e91e8c;
  text-transform: uppercase;
  margin-bottom: 12px;
  padding-left: 2px;
}

.catalog-filters {
  background: rgba(255, 244, 250, 0.94);
  border: 1px solid rgba(233, 30, 140, 0.16);
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 14px 32px rgba(122, 26, 68, 0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
  backdrop-filter: blur(8px);
}

.filter-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid rgba(233, 30, 140, 0.2);
  border-radius: 999px;
  background: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #3a0a20;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.filter-btn:hover {
  background: #fff7fb;
  border-color: rgba(233, 30, 140, 0.36);
}

.filter-btn.active {
  background: linear-gradient(135deg, #e91e8c, #c2185b);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 22px rgba(233, 30, 140, 0.22);
}

.filter-count {
  min-width: 24px;
  text-align: center;
  background: rgba(233, 30, 140, 0.08);
  color: #e91e8c;
  border-radius: 20px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
}

.filter-btn.active .filter-count {
  background: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.catalog-content {
  width: 100%;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.c-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(233, 30, 140, 0.11);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(122, 26, 68, 0.08);
}

.c-card:hover {
  transform: translateY(-7px);
  border-color: rgba(233, 30, 140, 0.25);
  box-shadow: 0 24px 54px rgba(122, 26, 68, 0.14);
}

.c-card-img {
  aspect-ratio: 1 / 1;
  background:
    radial-gradient(circle at 50% 48%, rgba(255,255,255,0.86) 0 26%, transparent 27%),
    linear-gradient(180deg, #fff7fb 0%, #ffe2ef 100%);
  position: relative;
  overflow: hidden;
}

.c-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
  filter: drop-shadow(0 18px 18px rgba(58, 10, 32, 0.12));
}

.c-card:hover .c-card-img img {
  transform: scale(1.045) rotate(-1deg);
}

.c-wishlist-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.3s;
  color: #3a0a20;
  box-shadow: 0 8px 20px rgba(58, 10, 32, 0.1);
}

.c-wishlist-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(233, 30, 140, 0.3);
}

.c-wishlist-btn svg {
  width: 20px;
  height: 20px;
}

.c-card-info {
  padding: 16px 16px 18px;
}

.c-card-info > div:first-child {
  min-height: 22px;
  gap: 8px;
}

.c-card-material {
  display: inline-flex;
  max-width: 48%;
  color: #7b3d59;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.c-card-info > div:first-child span:last-child {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(31, 111, 91, 0.08);
  white-space: nowrap;
}

.c-card-name {
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: #3a0a20;
  line-height: 1.35;
  margin-bottom: 10px;
}

.c-badge {
  position: absolute;
  left: 14px;
  z-index: 9;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  box-shadow: 0 8px 18px rgba(58, 10, 32, 0.12);
}

.c-badge-new {
  top: 14px;
  background: #1f6f5b;
}

.c-badge-sale {
  top: 48px;
  background: linear-gradient(135deg, #e91e8c, #c2185b);
}

.c-card-prices {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

.c-price {
  font-family: "Montserrat", sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: #e91e8c;
}

.c-price-old {
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  color: #999;
  text-decoration: line-through;
}

.c-card-btn {
  width: 100%;
  padding: 12px 10px;
  background: linear-gradient(135deg, #e91e8c, #c2185b);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s;
  font-family: "Montserrat", sans-serif;
}

.c-card-btn:hover:not(:disabled) {
  box-shadow: 0 4px 15px rgba(233, 30, 140, 0.3);
  transform: translateY(-2px);
}

.c-card-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.catalog-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: #999;
  display: none;
}

.catalog-toolbar {
  margin-bottom: 18px;
  padding: 0 2px;
}

.catalog-count {
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  color: #8d5470;
  font-weight: 600;
}

/* DESKTOP */
@media (max-width: 1400px) {
  .catalog-layout {
    grid-template-columns: 210px 1fr;
  }
  .catalog-sidebar {
    width: 210px;
  }
  .catalog-layout::after {
    display: none;
  }
  .catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* TABLET */
@media (max-width: 900px) {
  .catalog-layout {
    grid-template-columns: 1fr;
  }
  .catalog-sidebar {
    width: 100%;
  }
  .catalog-filters {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 3px;
    gap: 8px;
    scrollbar-width: none;
  }
  .catalog-filters::-webkit-scrollbar {
    display: none;
  }
  .filter-btn {
    flex: 0 0 auto;
    width: auto;
  }
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* MOBILE - TAB STYLE */
@media (max-width: 768px) {
  .catalog-page {
    padding: 32px 16px 60px;
  }

  .catalog-header {
    margin-bottom: 24px;
  }

  .catalog-title {
    font-size: 32px;
    margin-bottom: 10px;
  }

  .search-section {
    margin-bottom: 24px;
  }

  #catalog-search {
    padding: 12px 40px 12px 16px;
    font-size: 12px;
  }

  .search-icon {
    right: 14px;
    width: 18px;
    height: 18px;
  }

  .catalog-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .catalog-sidebar {
    width: 100%;
    order: -1;
    position: static;
  }

  .filters-label {
    display: none;
  }

  /* TAB-STYLE FILTERS */
  .catalog-filters {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: visible;
    padding: 6px;
    background: rgba(255, 244, 250, 0.96);
    border: 1px solid rgba(233, 30, 140, 0.16);
    box-shadow: 0 10px 24px rgba(122, 26, 68, 0.07);
    gap: 6px;
  }

  .filter-btn {
    width: 100%;
    justify-content: center;
    min-width: 0;
    padding: 9px 8px;
    border-radius: 999px;
    background: #fff;
    color: #3a0a20;
    font-size: 11px;
    font-weight: 600;
    position: relative;
    transition: all 0.3s;
  }

  .filter-count {
    min-width: 20px;
    padding: 2px 6px;
    font-size: 9px;
  }

  .filter-btn:hover {
    background: rgba(233, 30, 140, 0.05);
  }

  .filter-btn.active {
    background: linear-gradient(135deg, #e91e8c, #c2185b);
    color: #fff;
    box-shadow: 0 8px 18px rgba(233, 30, 140, 0.18);
  }

  .filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

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

  .c-card-info {
    padding: 12px;
  }

  .c-card-name {
    font-size: 12px;
    margin-bottom: 6px;
  }

  .c-price {
    font-size: 14px;
  }

  .c-card-btn {
    padding: 8px;
    font-size: 11px;
  }
}


/* SMALL MOBILE */
@media (max-width: 480px) {
  .catalog-page {
    padding: 22px 10px 48px;
  }

  .catalog-title {
    font-size: 28px;
  }

  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .catalog-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .filter-btn {
    padding: 9px 8px;
    font-size: 10px;
    min-width: 0;
  }

  .c-card-img {
    aspect-ratio: 1 / 1.06;
  }

  .c-wishlist-btn {
    width: 32px;
    height: 32px;
    top: 10px;
    right: 10px;
  }

  .c-card-info {
    padding: 10px;
  }

  .c-card-info > div:first-child {
    display: block !important;
    min-height: 0;
    margin-bottom: 6px !important;
  }

  .c-card-material,
  .c-card-info > div:first-child span:last-child {
    font-size: 9px;
  }

  .c-card-material {
    max-width: 100%;
    margin-bottom: 4px;
  }

  .c-card-info > div:first-child span:last-child {
    display: inline-flex;
    padding: 3px 6px;
  }

  .c-card-name {
    font-size: 11px;
  }

  .c-card-btn {
    font-size: 10px;
    padding: 8px 6px;
  }
}