/* Category customizations - category-v1.css */

body.category-pasky .category-content-wrapper {
  display: none;
}

body.type-category .category-top {
  display: none;
}

body.type-category #navigation-1 span[itemprop="name"] {
  font-size: 3rem;
  font-weight: 700;
}

body.type-category #navigation-2 span[itemprop="name"],
body.type-category #navigation-3 span[itemprop="name"],
body.type-category #navigation-4 span[itemprop="name"],
body.type-category #navigation-5 span[itemprop="name"] {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
}

body.type-category .category-perex span {
  display: inline !important;
}

body.type-category .category-perex a {
  display: inline !important;
}

/* Category filter nav */
.category-filter-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  gap: 12px;
  padding: 24px 0;
  margin-bottom: 24px;
}

.cfn-item {
  position: relative;
}

.cfn-btn {
  display: inline-block;
  padding: 18px 36px;
  background: #1D1D1B;
  color: #FFFFFF;
  font-family: "DM Sans", sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid #1D1D1B;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
  cursor: pointer;
}

.cfn-btn:hover,
.cfn-item:hover .cfn-btn {
  background: #D61118;
  border-color: #D61118;
  color: #FFFFFF;
  text-decoration: none;
}

/* Dropdown */
.cfn-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 200;
  background: #FFFFFF;
  border: 2px solid #1D1D1B;
  min-width: 286px;
  flex-direction: column;
}

.cfn-item.cfn-has-sub:hover .cfn-dropdown {
  display: flex;
}

.cfn-dropdown a {
  display: block;
  padding: 12px 21px;
  color: #1D1D1B;
  font-family: "DM Sans", sans-serif;
  font-size: 1.125rem;
  text-decoration: none;
  border-bottom: 1px solid #e8e8e8;
  white-space: nowrap;
}

.cfn-dropdown a:last-child {
  border-bottom: none;
}

.cfn-dropdown a:hover {
  background: #D61118;
  color: #FFFFFF;
}

/* Mobile */
@media (max-width: 767px) {
  .category-filter-nav {
    gap: 6px;
  }

  .cfn-btn {
    padding: 10px 16px;
    font-size: 1rem;
  }

  .cfn-dropdown {
    position: fixed;
    left: 16px;
    right: 16px;
    top: auto;
    min-width: unset;
    width: calc(100% - 32px);
  }
}
