:root {
    --filters-border: rgb(165 165 165);
    --filter-item: #dbd9d9;
    --filter-item-hover: #cecece;
}

.shop-main {
    flex: unset;
    min-height: calc(100vh - 100px);
}

.shop-container {
    display: flex;
    width: 100%;
    height: 100%;
    min-height: calc(100vh - 100px);
    justify-content: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

.categories-container {
    min-width: 280px;
    background-color: #f1f1f1;
    display: flex;
    position: fixed;
    width: 300px;
    left: 0;
    bottom: 0;
    z-index: 3;
    height: calc(100% - var(--header-height));
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), height 0.3s;
    flex-direction: column;
}

.categories-container h2 {
    margin-bottom: 20px;
    background-color: var(--text-color-inverse);
    color: var(--text-color);
    padding: 5px;
    border-radius: 8px;
    text-align: center;
    margin-top: 0;
}

.categories-container ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
}


.categories-container ul a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold;
    padding: 5px;
    width: calc(100% - 10px);
    border-radius: 8px;
    border: 1px solid var(--text-color);
    transition: background-color 0.3s, color 0.3s;
}

.categories-container ul a:hover {
    color: var(--text-color-inverse);
    background-color: var(--text-color);
}

.shop-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: 0;
}

.shop-title {
	text-align: center;
	display: flex;
	font-size: clamp(1.2rem, 4vw, 2rem);
	font-weight: 400;
	color: #4c4c4c;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
	justify-content: center;
	align-items: center;
	height: 80px;
	letter-spacing: .09em;
	text-transform: uppercase;
}


.top-bar-container {
	width: 100%;
	display: flex;
	justify-content: flex-end;
	position: sticky;
	top: var(--header-height);
	z-index: 1;
	transition: top .3s;
	max-width: 1100px;
}

main.hidden .top-bar-container {
    top: var(--header-tucked-height);
}


.top-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 40px;
	cursor: pointer;
	overflow: hidden;
	width: fit-content;
	margin: 10px;
	background-color: var(--main-content-background);
	border-radius: 10px;
	border: 1px solid #c4c4c4;
}

.top-bar-button {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    transition: background-color 0.2s;
    cursor: pointer;
}

#sorting-select {
    width: fit-content;
    text-align: center;
    cursor: pointer;
}

.top-bar-button select,
.top-bar button {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    background-color: transparent;
    color: var(--text-color);
    height: 100%;
    width: fit-content;
    outline: none;
    font-size: 16px;
    padding: 0 10px;
}

.top-bar-button:first-child {
    border-right: 1px solid var(--filters-border);
}

.top-bar-button:hover {
    background-color: var(--main-content-background);
}

#filters-toggle-button {
    width: 100%;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 20px;
    width: calc(100% - 40px);
    max-width: 1400px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
}


.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0px;
    border-bottom: 1px solid;
}

.category-list li {
    color: var(--text-color);
}

#category-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
    margin: 0;
    margin-top: 10px;
    gap: 10px
}

#category-list li {
	list-style-type: none;
	padding: 10px 0;
	cursor: pointer;
	position: relative;
	background-color: var(--filter-item);
	text-indent: 6px;
	border-radius: 10px;
	width: calc(100% - 20px);
    font-size: .9rem;
}

#category-list li:hover {
    background-color: var(--filter-item-hover);
}

#category-list li:first-child {
    order: -1;
}

.parent-category {
    position: absolute;
    right: 10px;
}

.selected-category-background {
    background-color: #dba2d6 !important;
    color: black !important;
}

.pagination-button {
    padding: 10px 40px;
    border-radius: 10px;
}

.view-results-button {
	margin-top: auto;
	height: 45px;
	border: none;
	font-size: 17px;
	cursor: pointer;
	color: white;
	background-color: #de63d3;
}


.categories-container.tucked-header {
    height: calc(100% - var(--header-tucked-height));
}

.categories-container.show {
    transform: translateX(0);
}

.categories-header {
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--text-color-dim);
    height: 50px;
    width: 100%;
    justify-content: space-between;
}

.categories-header i {
    font-size: 20px;
    color: var(--text-color);
    margin-right: 10px;
    cursor: pointer;
}

#categories-title {
	background-color: transparent;
	padding: 0;
	display: flex;
	justify-content: flex-start;
	align-items: center;
	margin-bottom: 0;
	margin-left: 10px;
	border-radius: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	font-size: .9rem;
	font-weight: 500;
	letter-spacing: .08em;
	text-transform: uppercase;
}

#category-list li:last-child {
    border-bottom: none;
}


.shop-main {
    min-height: calc(100vh - 80px);
}

.shop-container {
    min-height: calc(100vh - 80px);
}


.shop-footer {
    padding-bottom: 50px;
}
