/* ===== CATEGORY PAGE STYLES ===== */

/* Category Header */
.post-header {
	padding-top: 500px;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	margin-bottom: var(--sp-48);
}
.brand-simple-header {
	margin-bottom: 50px;
}
.brand-simple-header .brand_subbrands {
	margin-top: 30px;
}
@media (max-width: 990px) {
	.post-header {
		padding-top: 200px;
	}
}
.category-header__breadcrumbs {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
}
.category-header__breadcrumbs a {
  color: inherit;
}
.category-header__breadcrumbs span:last-child {
  color: var(--c-white);
}
.category-header__bottom {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.category-header__title {
  font-size: 65px;
  font-weight: 700;
  line-height: 1;
}
.category-header__subcats-wrapper {
	display: flex;
	gap: 20px;
	align-items: flex-end;
}
.category-header__subcats {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	max-height: 43px;
	overflow:hidden;
	transition: max-height 0.5s linear;
}
@media (min-width: 991px) {
	.category-header__subcats-wrapper.opened .category-header__subcats {
		max-height: 1000px;
	}
}
.subcats_toggle_desktop {
	transition: transform 0.5s ease;
	cursor: pointer;
}
.category-header__subcats-wrapper.opened .subcats_toggle_desktop {
	transform: rotate(180deg);
}
.category-header__subcats-toggle {
	display: none;
}
@media (max-width: 990px) {
	.subcats_toggle_desktop,
	.category-header__subcats-wrapper {
		display: none;
	}
	.category-header__subcats-toggle {
		display: flex;
		gap: 20px;
		align-items: center;
		font-size: 13px;
	}
	.category-header__subcats-toggle > svg {
		transition: transform 0.3s ease;
	}
	.category-header__subcats-toggle.active > svg {
		transform: rotate(90deg);
	}
}
.subcat-link {
	line-height: 100%;
	padding: 12px 20px;
	font-size: 19px;
	font-weight: 400;
	background-color: transparent;
	transition: background-color 0.3s ease;
	border-radius: 10px;
}
.subcat-link:hover {
	background-color: rgba(255, 255, 255, 0.3);
}

/* Category Content */
.category-content {
  padding-block: 0 var(--sp-48);
}

/* Filters (top row as pills) */
.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.filter-group {
  border: none;
  padding: 0;
}
.filter-group__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 15px 25px;
  border-radius: 1000px;
  background: var(--c-surface);
  font-size: 16px;
  font-weight: 500;
  text-align: left;
}
.filter-group__toggle > span {
	white-space: nowrap;
}
.filter-group__toggle svg {
  transition: transform 0.2s;
}
.filter-group__title {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
}

@media (max-width: 990px) {
	.category-toolbar-desktop {
		display: none !important;
	}
}
.filter-group__content {
  display: none;
  flex-direction: column;
  gap: 12px;
  padding-top: 16px;
  margin-top: 4px;
}
.filter-group--open .filter-group__content {
  display: flex;
}
.filter-group--open .filter-group__toggle svg {
  transform: rotate(180deg);
}

/* Filter Checkbox */
.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 15px;
  color: var(--c-text);
}
.filter-checkbox input {
  position: absolute;
  opacity: 0;
}
.filter-checkbox__box {
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--c-border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}
.filter-checkbox input:checked ~ .filter-checkbox__box {
  background: var(--c-primary);
  border-color: var(--c-primary);
}
.filter-checkbox input:checked ~ .filter-checkbox__box::after {
  content: '';
  width: 10px;
  height: 7px;
  border-left: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(-45deg) translateY(-1px);
}
.filter-checkbox__label {
  flex: 1;
}
.filter-checkbox__count {
  color: var(--c-muted);
  font-size: 14px;
}

/* Price Range */
.price-range {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 4px 18px;
  border-radius: 1000px;
  border: 1px solid var(--c-border);
  background: var(--c-surface);
}
.price-range input {
  flex: 1;
  padding: 10px 0;
  border: none;
  background: transparent;
  font-size: 15px;
  font-family: var(--font);
}
.price-range input:focus {
  outline: none;
}
.price-range span {
  color: var(--c-muted2);
}

/* Category Main */
.category-main {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 30px;
}

/* Reset filters button */
.category-filters__reset {
  align-self: flex-start;
  height: auto;
  padding: 0;
  border: none;
  background: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--c-muted);
}
.category-filters__reset:hover {
  transform: none;
  opacity: 0.8;
}

/* Category Toolbar */
.category-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 25px;
}
@media (max-width: 990px) {
	.category-toolbar {
		flex-wrap: wrap;
		justify-content: space-between;
	}
	.filter-group__toggle {
		width: 100%;
		border-radius: 15px;
	}
}
.category-toolbar__count {
  font-size: 17px;
  color: var(--c-muted);
}
.sort-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  line-height: 120%;
}
.sort-btn__value {
  font-weight: 500;
}
.sort-btn svg {
  width: 12px;
  height: 8px;
}

/* Responsive */
@media (max-width: 1180px) {
  .category-header__title {
    font-size: 48px;
  }
}

@media (max-width: 768px) {
  .category-header__title {
    font-size: 32px;
  }
  .filter-group__toggle {
    font-size: 16px;
  }
}

.filter {
	display: none;
	position: fixed;
	left: 0;
	top: 0;
	bottom: 0;
	right: 0;
	background-color: rgba(21, 21, 21, 0.35);
	z-index: 999;
}
.filter_form {
	height: 100%;
	background-color: var(--c-bg);
	border-top-right-radius: 40px;
	border-bottom-right-radius: 40px;
	position: relative;
	display: flex;
	flex-direction: column;
	max-width: 0px;
	transition: max-width 0.5s linear;
}
.filter.opened > .filter_form {
	max-width: 457px;
}
.filter_inner {
	flex-grow: 1;
	padding: 50px 40px 0 40px;
	min-height: 0;
}
.filter_inner_scroll {
	overflow-y: auto;
	scrollbar-width: thin;
	height: 100%;
	padding-bottom: 30px;
}
.filter_result {
	padding: 30px 40px;
	box-shadow: 0px 0px 35px 0px rgba(58, 13, 0, 0.05);
}
.filter_close {
	position: absolute;
	right: 30px;
	top: 30px;
	background-color: var(--c-bg);
	cursor: pointer;
	outline: none;
	border: none;
}
.filter_block + .filter_block {
	margin-top: 30px;
}
.filter_title_wrapper {
	display: flex;
	align-items: flex-end;
	gap: 10px 20px;
	margin-bottom: 15px;
}
.filter_title {
	font-weight: 700;
	font-size: 35px;
	line-height: 110%;
}
@media (max-width: 990px) {
	.filter_title {
		font-size: 25px;
	}
}
.filter_reset {
	font-size: 16px;
	line-height: 160%;
	color: #AEAEAE;
	cursor: pointer;
}
.filter_line {
	padding: 5px 0;
}

.category-toolbar__right {
	position: relative;
}
.sorting_dropdown {
	display: none;
	position: absolute;
	z-index: 50;
	top: calc(100% + 10px);
	left: -15px;
	background-color: var(--c-bg);
	padding: 10px 10px;
	border-radius: 20px;
	box-shadow: 0px 0px 35px 0px rgba(58, 13, 0, 0.07);
}
.sorting_dropdown > a {
	display: block;
	font-size: 16px;
	line-height: 120%;
	border-radius: 10px;
	padding: 10px;
	transition: background-color 0.3s ease;
	white-space: nowrap;
}
.sorting_dropdown > a:not(:last-child) {
	margin-bottom: 10px;
}
.sorting_dropdown > a:hover,
.sorting_dropdown > a.active {
	background-color: var(--c-surface);
}
.sorting_dropdown > a.active {
	font-weight: 500;
}
.filter_showmore {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--c-accent);
	cursor: pointer;
	padding: 5px 0;
}

.range_footer {
	display: flex;
	gap: 10px;
	align-items: center;
}
.range_footer > input {
	border-radius: 15px;
	border: 1px solid var(--c-border);
	padding: 10px 15px;
	background-color: var(--c-surface);
	flex-grow: 1;
	width: 100px;
	font-family: var(--font);
	outline: none;
	transition: border-color 0.3s ease;
}
.range_footer > input:focus {
	border-color: var(--c-accent);
}

.irs {
	margin-top: 20px;
}
.irs-from, .irs-to, .irs-single, .irs-min, .irs-max {
	display: none !important;
}
.irs-line {
	height: 3px;
	background-color: var(--c-border);
}
.irs-bar {
	height: 3px;
	background-color: var(--c-accent);
	top: 0;
}
.irs-slider.from,
.irs-slider.to {
	width: 13px;
	height: 13px;
	border-radius: 50%;
	background-color: var(--c-accent);
	top: -5px;
}

.blog_categories {
	display: flex;
	gap: 12px;
	padding: 40px 0;
	flex-wrap: wrap;
	justify-content: center;
}
.blog_categories > a {
	border-radius: 30px;
	padding: 12px;
}
.blog_categories > a.active {
	color: var(--c-accent);
	background-color: rgb(from var(--c-accent) r g b / 20%);
}

.article > .container {
	max-width: 1000px;
}
.article_bottom {
	display: flex;
	margin-top: 50px;
	justify-content: space-between;
	align-items: center;
}
.article_bottom > time {
	font-size: 18px;
	line-height: 130%;
	color: var(--c-muted);
}

.brand_subbrands {
	position: relative;
}
.brand_subbrands .owl-stage {
	padding: 25px 10px;
}
.brand_subbrands .arrows > button {
	position: absolute;
	top: calc(50% - 22px);
	z-index: 10;
}
.brand_subbrands .owl-prev {
	left: 0;
}
.brand_subbrands .owl-next {
	right: 0;
}
.subbrand_card {
	background: var(--c-white);
	border-radius: var(--r-pill);
	display: flex;
	flex-direction: column;
	gap: 10px;
	text-align: center;
	height: 100%;
	box-sizing: border-box;
}
.subbrand_card.selected {
	border: 1px solid var(--c-accent);
}
.brand_subbrands .subbrand_card {
	box-shadow: 0px 0px 35px 0px #3A0D000D;
	padding: 20px;
}
.subbrand_card > img {
	border-radius: var(--r-pill);
	background-color: var(--c-surface);
	margin-bottom: 10px;
}
.subbrand_card > strong {
	font-weight: 700;
	font-size: 19px;
	transition: color 0.3s ease;
}
.subbrand_card:hover > strong {
	color: var(--c-accent);
}
.subbrand_card > span {
	font-size: 14px;
}

.featured_subbrands .subbrand_card {
	text-align: left;
}

.brand_banner {
	margin-top: 50px;
	width: 100%;
}
.brand_banner > img {
	width: 100%;
	border-radius: var(--r-pill);
}

.brand_featured > .container {
	position: relative;
}
.brand_featured .arrows > button {
	position: absolute;
	top: calc(50% - 22px);
	z-index: 10;
}
.brand_featured .owl-prev {
	left: 0;
}
.brand_featured .owl-next {
	right: 0;
}
.brand_featured .section-head {
	background: linear-gradient(139.39deg, #F98A2E 8.96%, var(--c-accent) 94.77%);
	padding: 50px 50px 150px 50px;
	color: var(--c-white);
	margin-bottom: -100px;
	border-radius: 40px;
}
.brand_featured_products {
	padding: 0 75px;
}
.brand_featured .section-head__title {
	font-size: 50px;
}
.brand_text {
	display: flex;
	gap: 20px;
	align-items: flex-start;
	border-top: 1px solid #EEEEEE;
	padding: 50px 0 100px 0;
}
@media (max-width: 990px) {
	.brand_text {
		flex-direction: column;
	}
}
@media (max-width: 560px) {
	.brand_featured_products {
		padding: 0 30px;
	}
	.brand_featured .section-head {
		padding: 30px 30px 130px 30px;
	}
}
.brand_text > img {
	max-width: 300px;
	max-height: 300px;
}
.brand_text > div {
	min-width: 500px;
}

.category_banner img {
	width: 100%;
	margin: 20px 0;
}

.subcats_perfume_grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 20px;
	margin-bottom: 50px;
}
.subcats_perfume {
	margin-bottom: 50px;
}
.subcats_perfume .owl-stage {
	padding: 25px 10px;
}
.subcats_perfume_card {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 20px;
	border-radius: 30px;
	box-shadow: 0px 0px 35px 0px rgba(58, 13, 0, 0.05);
	font-family: Onest;
	font-weight: 700;
	font-size: 19px;
	text-align: center;
	height: 100%;
}

.perfume_featured {
	background-image: url('../assets/perf_feat_bg.jpg');
	background-size: cover;
	background-position: center;
}

.article .text {
	font-size: 18px;
	line-height: 130%;
}

@media (max-width: 990px) {
	.brand_text > div {
		min-width: auto;
	}
	.brand_featured .section-head__title {
		font-size: 30px;
	}
}

.post_links {
	padding: 30px;
	border-radius: 20px;
	background-color: var(--c-surface);
	margin-bottom: 30px;
}
.post_links > label {
	font-weight: 700;
	font-size: 20px;
	line-height: 130%;
	display: block;
	margin-bottom: 10px;
}
.post_links > ol {
	font-size: 18px;
	line-height: 150%;
	list-style-position:inside;
}
@media (max-width: 560px) {
	.post_links {
		padding: 20px;
	}
	.post_links > label {
		font-size: 15px;
	}
	.post_links > ol {
		font-size: 15px;
	}
}