/* ==========================================================================
   Weticket — Categoria Page Styles
   Estilo: Quadrado (Sem Redondo), Sem Bordas, Preto e Branco, Minimalista & Premium
   Typography: Space Grotesk + Inter
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  border-radius: 0 !important;
}

/* Navbar Active Indicator */
.nav-links a.nav-link-active {
  color: #000000;
  font-weight: 700;
  position: relative;
}

.nav-links a.nav-link-active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 2px;
  background: #000000;
}

/* ==========================================================================
   Category Hero Section (Sharp & Minimalist)
   ========================================================================== */
.cat-hero-section {
  padding: 36px 0 24px;
}

.cat-hero-grid {
  display: grid;
  grid-template-columns: 1fr 490px;
  gap: 48px;
  align-items: center;
}

.cat-hero-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cat-hero-tag {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #71717a;
  margin-bottom: 8px;
}

.cat-hero-title {
  font-family: var(--font-heading);
  font-size: 3.4rem;
  font-weight: 800;
  color: #000000;
  letter-spacing: -0.04em;
  margin: 0 0 14px 0;
  line-height: 1.05;
}

.cat-hero-description {
  font-size: 1.08rem;
  line-height: 1.6;
  color: #52525b;
  max-width: 450px;
  margin: 0 0 20px 0;
}

.cat-hero-counter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #000000;
}

.cat-hero-counter svg {
  color: #000000;
}

.cat-hero-banner-wrap {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background-color: #000000;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: 0 10px 30px -4px rgba(0, 0, 0, 0.12);
}

.cat-hero-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0 !important;
  filter: grayscale(100%);
  transition: transform 0.4s ease, filter 0.4s ease;
}

.cat-hero-banner-wrap:hover .cat-hero-banner-img {
  transform: scale(1.03);
  filter: grayscale(80%);
}

/* ==========================================================================
   Category Navigation Tabs (Sharp Square Tabs — Black & White)
   ========================================================================== */
.cat-pills-container {
  padding: 12px 0 24px;
  margin-bottom: 28px;
  border: none !important;
}

.cat-pills-list {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 4px;
}

.cat-pills-list::-webkit-scrollbar {
  display: none;
}

.cat-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 0 !important;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  border: none !important;
  background: #f4f4f5;
  color: #18181b;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.cat-pill-btn svg {
  width: 16px;
  height: 16px;
  color: inherit;
}

.cat-pill-btn:hover {
  background: #e4e4e7;
  color: #000000;
}

.cat-pill-btn.active {
  background: #000000;
  color: #ffffff;
  font-weight: 800;
}

.cat-pill-btn.active svg {
  color: #ffffff;
}

/* ==========================================================================
   Main Content Layout: Events + Filter Sidebar
   ========================================================================== */
.cat-main-layout {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 36px;
  align-items: start;
  margin-bottom: 50px;
}

/* Events Column */
.cat-events-col {
  display: flex;
  flex-direction: column;
}

.cat-events-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
  gap: 16px;
}

.cat-events-title {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 800;
  color: #000000;
  letter-spacing: -0.03em;
  margin: 0 0 4px 0;
}

.cat-events-count {
  font-size: 0.9rem;
  color: #71717a;
  margin: 0;
}

/* Sort Dropdown (Square, Borderless) */
.cat-sort-wrapper {
  position: relative;
  min-width: 180px;
}

.cat-sort-select {
  width: 100%;
  appearance: none;
  background: #f4f4f5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 14px center;
  border: none !important;
  border-radius: 0 !important;
  padding: 11px 36px 11px 16px;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: #000000;
  cursor: pointer;
  outline: none;
}

.cat-sort-select:focus {
  background-color: #e4e4e7;
}

/* ==========================================================================
   Events Grid (Square, Minimalist, Black & White)
   ========================================================================== */
.cat-events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cat-event-card {
  background: #ffffff;
  border: none !important;
  border-radius: 0 !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  position: relative;
}

.cat-event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px -4px rgba(0, 0, 0, 0.12);
}

.cat-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 212 / 113;
  background: #000000;
  overflow: hidden;
  border: none !important;
  border-radius: 0 !important;
}

.cat-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  border-radius: 0 !important;
  transition: transform 0.4s ease;
}

.cat-event-card:hover .cat-card-img {
  transform: scale(1.05);
}

/* Sharp Square Date Badge */
.cat-card-date-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #000000;
  color: #ffffff;
  border-radius: 0 !important;
  padding: 4px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  z-index: 2;
  line-height: 1.1;
  border: none !important;
}

.cat-date-day {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
}

.cat-date-month {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
}

/* Sharp Square Favorite Button */
.cat-card-fav-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 34px;
  height: 34px;
  border-radius: 0 !important;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  z-index: 3;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none !important;
}

.cat-card-fav-btn svg {
  width: 18px;
  height: 18px;
  stroke: #ffffff;
  transition: all 0.2s ease;
}

.cat-card-fav-btn:hover {
  background: #000000;
  transform: scale(1.08);
}

.cat-card-fav-btn.active {
  background: #000000;
  color: #ffffff;
}

.cat-card-fav-btn.active svg {
  fill: #ffffff;
  stroke: #ffffff;
}

/* Card Body */
.cat-card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  background: #ffffff;
}

.cat-card-title {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 800;
  color: #000000;
  line-height: 1.35;
  margin: 0 0 8px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.02em;
}

.cat-card-info-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.85rem;
  color: #52525b;
  margin-bottom: 5px;
}

.cat-card-info-item svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: #000000;
}

.cat-card-info-item span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cat-card-tag {
  align-self: flex-start;
  background: #f4f4f5;
  border: none !important;
  border-radius: 0 !important;
  color: #000000;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  margin-top: 10px;
  margin-bottom: 14px;
}

.cat-card-price {
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 800;
  color: #000000;
  margin-top: auto;
  letter-spacing: -0.02em;
}

/* Empty State */
.cat-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 24px;
  background: #f4f4f5;
  border-radius: 0 !important;
  border: none !important;
}

.cat-empty-state h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: #000000;
  margin-bottom: 8px;
}

.cat-empty-state p {
  color: #71717a;
  font-size: 0.95rem;
  margin-bottom: 20px;
}

/* ==========================================================================
   Pagination (Sharp Square Buttons — Black & White)
   ========================================================================== */
.cat-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 40px;
}

.cat-page-btn {
  width: 40px;
  height: 40px;
  border-radius: 0 !important;
  border: none !important;
  background: #f4f4f5;
  color: #000000;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cat-page-btn:hover:not(.disabled):not(.active) {
  background: #e4e4e7;
  color: #000000;
}

.cat-page-btn.active {
  background: #000000;
  color: #ffffff;
}

.cat-page-btn.disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* ==========================================================================
   Right Column: Filter Sidebar (Square, Borderless, Monochromatic)
   ========================================================================== */
.cat-sidebar-card {
  background: #f4f4f5;
  border: none !important;
  border-radius: 0 !important;
  padding: 28px;
  position: sticky;
  top: 92px;
}

.cat-filter-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 16px;
  margin-bottom: 22px;
  border: none !important;
}

.cat-filter-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #000000;
  margin: 0;
  letter-spacing: -0.02em;
}

.cat-filter-group {
  margin-bottom: 22px;
}

.cat-filter-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: #000000;
  margin-bottom: 10px;
}

.cat-filter-label svg {
  color: #000000;
  width: 16px;
  height: 16px;
}

.cat-filter-select {
  width: 100%;
  appearance: none;
  background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 14px center;
  border: none !important;
  border-radius: 0 !important;
  padding: 12px 36px 12px 14px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: #000000;
  cursor: pointer;
  outline: none;
}

.cat-filter-select:focus {
  background-color: #ffffff;
  outline: 2px solid #000000;
}

/* Price Range Inputs (Square, Borderless) */
.cat-price-range {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cat-price-input-wrap {
  position: relative;
  flex: 1;
}

.cat-price-input {
  width: 100%;
  border: none !important;
  border-radius: 0 !important;
  background: #ffffff;
  padding: 11px 14px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: #000000;
  outline: none;
}

.cat-price-input:focus {
  outline: 2px solid #000000;
}

.cat-price-separator {
  color: #71717a;
  font-weight: 700;
}

/* Checkbox Groups (Square) */
.cat-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cat-checkbox-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #18181b;
  cursor: pointer;
  user-select: none;
}

.cat-checkbox-item input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: none !important;
  border-radius: 0 !important;
  background: #e4e4e7;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 0;
}

.cat-checkbox-item input[type="checkbox"]:checked {
  background-color: #000000;
}

.cat-checkbox-item input[type="checkbox"]:checked::after {
  content: '';
  width: 4px;
  height: 8px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-top: -2px;
}

/* Clear Filters Button (Square, Sharp, Black & White) */
.cat-btn-clear-filters {
  width: 100%;
  padding: 13px;
  border: none !important;
  border-radius: 0 !important;
  background: #000000;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 12px;
}

.cat-btn-clear-filters:hover {
  background: #27272a;
}

/* Mobile Filter Trigger Button (hidden by default on desktop) */
.cat-mobile-filter-btn {
  display: none;
}

/* ==========================================================================
   Promoter CTA Banner (Square, Borderless, Premium Minimalist)
   ========================================================================= */
.cat-promoter-banner {
  background: #f4f4f5;
  border: none !important;
  border-radius: 0 !important;
  padding: 36px 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 60px;
}

.cat-promoter-left {
  display: flex;
  align-items: center;
  gap: 22px;
}

.cat-promoter-icon {
  width: 58px;
  height: 58px;
  border-radius: 0 !important;
  background: #000000;
  color: #ffffff;
  border: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cat-promoter-icon svg {
  width: 28px;
  height: 28px;
  color: #ffffff;
}

.cat-promoter-tag {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #71717a;
  margin-bottom: 4px;
}

.cat-promoter-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: #000000;
  letter-spacing: -0.02em;
  margin: 0 0 4px 0;
}

.cat-promoter-desc {
  font-size: 0.95rem;
  color: #52525b;
  margin: 0;
}

.cat-promoter-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #000000;
  color: #ffffff;
  padding: 14px 28px;
  border-radius: 0 !important;
  border: none !important;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.cat-promoter-btn:hover {
  background: #27272a;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 1024px) {
  .cat-hero-grid {
    grid-template-columns: 1fr 380px;
    gap: 32px;
  }

  .cat-main-layout {
    grid-template-columns: 1fr 270px;
    gap: 24px;
  }

  .cat-events-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 850px) {
  .cat-hero-grid {
    grid-template-columns: 1fr;
  }

  .cat-hero-banner-wrap {
    height: 200px;
  }

  .cat-main-layout {
    grid-template-columns: 1fr;
  }

  .cat-sidebar-card {
    position: static;
    margin-top: 32px;
  }

  .cat-mobile-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #000000;
    color: #ffffff;
    border: none !important;
    border-radius: 0 !important;
    padding: 10px 16px;
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .cat-mobile-filter-btn:hover {
    background: #27272a;
  }

  .cat-promoter-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
  }

  .cat-promoter-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 580px) {
  .cat-hero-title {
    font-size: 2.4rem;
  }

  .cat-events-grid {
    grid-template-columns: 1fr;
  }

  .cat-events-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .cat-sort-wrapper {
    width: 100%;
  }

  .cat-header-actions {
    width: 100%;
    display: flex;
    gap: 8px;
    margin-top: 12px;
  }

  .cat-mobile-filter-btn {
    flex: 1;
    justify-content: center;
  }

  .cat-sort-wrapper {
    flex: 1;
  }

  .cat-promoter-left {
    flex-direction: column;
    align-items: flex-start;
  }
}
