/* BREADCRUMB */
*,
:after,
:before {
    box-sizing: border-box;
}

.breadcrumb {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
}

.breadcrumb > a,
.breadcrumb > span {
    flex-shrink: 0;
    font-size: 14px;
}

.breadcrumb > a {
    font-weight: 400;
    text-decoration: none;
    color: var(--font-2);
}

.breadcrumb > span {
    font-weight: 500;
    color: var(--font-1);
}

.breadcrumb > i {
    font-size: 14px;
    color: var(--font-2);
}

/* NOTIFICATION */
.notification {
    padding: 16px;
    width: 100%;
    background-color: var(--bg-2);
    border-top: 2px solid var(--accent-1);
    font-size: 14px;
    font-weight: 400;
}

/* PRODUCTS ARCHIVE */
.archive-products {
    width: 100%;
    display: flex;
    gap: 48px;
}

.archive-products__sidebar {
    width: 272px;
}

.archive-products__sidebar-inner {
    position: sticky;
    position: -webkit-sticky;
    top: 24px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.archive-products__sidebar-categories {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.archive-products__sidebar-categories > h5 {
    position: relative;
    font-size: 16px;
    font-weight: 500;
}

.archive-products__sidebar-categories > h5::after {
    position: absolute;
    content: '';
    bottom: -4px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-1);
}

.archive-products__sidebar-categories > ul,
.archive-products__sidebar-categories > ul > li > ul {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 4px;
    list-style-type: none;
}

.archive-products__sidebar-categories > ul > li > ul {
    padding-top: 4px;
    padding-left: 16px;
}

.archive-products__sidebar-categories li {
    width: 100%;
}

.archive-products__sidebar-categories a {
    font-size: 14px;
    text-decoration: none;
    color: inherit;
}

.archive-products__sidebar-categories > ul > li.current > a,
.archive-products__sidebar-categories > ul > li > ul > li.current > a {
    font-weight: 500;
}

.archive-products__sidebar-outer {
    padding-top: 16px;
    width: 10%;
    height: 100%;
    display: none;
    justify-content: center;
}

.archive-products__sidebar-close {
    width: fit-content;
    height: fit-content;
    background-color: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 24px;
    color: var(--bg-1);
}

.archive-products__content {
    width: calc(100% - 272px - 48px);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.archive-products__content-header {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.archive-products__content-header > h1 {
    position: relative;
    font-size: 24px;
    font-weight: 500;
    color: var(--font-1);
}

.archive-products__content-header > h1::after {
    position: absolute;
    content: '';
    bottom: -4px;
    left: 0;
    width: 100px;
    height: 2px;
    background-color: var(--accent-1);
}

.archive-products__content-sub-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.archive-products__ordering {
    margin: 0 0 0 10px;
    position: relative;
}

.archive-products__ordering-button {
    padding: 0px 24px;
    height: 40px;
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: transparent;
    border: 1px solid var(--border);
    outline: none;
    cursor: pointer;
}

.archive-products__ordering-button.active {
    border: 1px solid #485b48;
}

.archive-products__content-sub-header-wrapper {
    display: flex;
    justify-content: space-between;
}

@media (max-width: 363px) {
    .archive-products__content-sub-header-wrapper {
        display: grid;
        justify-content: center;
        grid-template-columns: repeat(3, 1fr);
    }
    .archive-products__ordering-button,
    .archive-products__filter-button {
        width: 100%;
    }
    .archive-products__filtering,
    .archive-products__ordering {
        grid-column: 1 / 4;
    }
}

.archive-products__filtering {
    margin: 0 0 0 10px;
    position: relative;
}

.archive-products__filter-button {
    padding: 0px 24px;
    height: 40px;
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: transparent;
    border: 1px solid var(--border);
    outline: none;
    cursor: pointer;
}

.archive-products__filter-button.active {
    border: 1px solid #485b48;
}

.archive-products__ordering-button > i,
.archive-products__filter-button > i {
    font-size: 18px;
}

.archive-products__ordering-button > span,
.archive-products__filter-button > span {
    font-size: 14px;
    font-weight: 400;
    color: var(--font-1);
}

.archive-products__ordering-items {
    position: absolute;
    top: 48px;
    right: 0;
    width: max-content;
    z-index: 50;
    display: none;
    flex-direction: column;
    background-color: var(--bg-1);
    border: 1px solid var(--border);
}

.archive-products__ordering-items.active {
    display: flex;
}

.filter-content {
    display: none;
    background-color: var(--bg-1);
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    box-shadow: 0 2px 15px 0 rgba(0, 0, 0, 0.1);
    margin-top: 4px;
    position: absolute;
    width: 260px;
    z-index: 50;
}

.filter-content.active {
    display: block;
}

.filter-select {
    padding: 12px 0;
}

.filter-select__search {
    padding: 0 12px 12px;
}

.form-control-wrap {
    position: relative;
}

.filter-search .form-control-wrap.has-icons-right .form-control {
    padding-right: 34px;
}

.filter-search .form-control-wrap.has-icons-left .form-control {
    padding-left: 32px;
}

.filter-search .form-control {
    min-height: 36px;
    padding: 9px;
}

.filter-search .form-control-wrap.has-icons-left .form-control-icon.is-left {
    color: #afafaf;
    width: 32px;
}

.form-control-wrap.has-icons-left .form-control-icon.is-left {
    left: 0;
}

.form-control-wrap.has-icons-left .form-control-icon,
.form-control-wrap.has-icons-right .form-control-icon {
    bottom: 0;
    color: #afafaf;
    pointer-events: none;
    position: absolute;
    top: 0;
    transition: color 0.15s ease-in-out;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    width: 46px;
    z-index: 4;
}

.filter-select__item:not(:last-child) {
    margin-bottom: 6px;
}

.filter-select__option._active {
    background-color: #485b48;
    color: #fff;
    font-weight: 700;
}

.filter-select__option {
    border: 1px solid #d0d0d0;
    align-items: flex-start;
    border-radius: 2px;
    color: #000;
    cursor: pointer;
    display: flex;
    font-size: 13px;
    line-height: 16px;
    padding: 10px 8px;
    position: relative;
}

.filter-select__list {
    height: auto;
    max-height: 280px;
    min-height: 135px;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0 12px;
    padding: 0 var(--filter-dropdown-padding, 12px);
    transform: translateZ(0);
}

.form-control-icon {
    align-items: center;
    display: inline-flex;
    justify-content: center;
}

.filter-price {
    padding: 12px;
}

.filter-price__controls {
    align-items: center;
    display: flex;
    margin-bottom: 16px;
}

.filter-price__control-input {
    flex: 1;
    position: relative;
}

.price-filter-field {
    position: relative;
}

.price-filter-field__currency {
    align-items: center;
    color: #000;
    display: flex;
    font-size: 14px;
    height: 100%;
    line-height: 16px;
    pointer-events: none;
    position: absolute;
    right: 10px;
    top: 0;
}

.form-control {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-clip: padding-box;
    background-color: var(--bg-1);
    border: 1px solid #d0d0d0;
    border-radius: 2px;
    color: #000;
    display: block;
    font-size: 13px;
    font-weight: 400;
    line-height: 16px;
    min-height: 40px;
    padding: 11px 12px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    width: 100%;
}

.price-filter-field .form-control {
    font-size: 14px;
    line-height: 16px;
    min-height: 36px;
    padding: 9px 30px 9px 10px;
}

.filter-price__control-separator {
    background-color: #d4d4d4;
    height: 1px;
    margin: 0 10px;
    width: 16px;
}

.filter-price__control-input {
    flex: 1;
    position: relative;
}

.filter-price__slider {
    margin-bottom: 8px;
    padding: 0 10px;
}

.el-slider {
    padding: 8px 0;
}

.el-slider__runway {
    background-color: #ebebeb;
    cursor: pointer;
    height: 4px;
    position: relative;
    vertical-align: middle;
    width: 100%;
}

.el-slider__runway {
    background-color: #e4e7ed;
    border-radius: 3px;
    height: 6px;
    margin: 16px 0;
}

.el-slider__bar {
    background-color: #777;
    height: 4px;
    position: absolute;
}

.el-slider__bar {
    background-color: #409eff;
    border-bottom-left-radius: 3px;
    border-top-left-radius: 3px;
    height: 6px;
}

.el-slider__button-wrapper {
    background-color: transparent;
    height: 36px;
    line-height: normal;
    text-align: center;
    top: -15px;
    transform: translateX(-50%);
    width: 36px;
}

.el-slider__button-wrapper {
    height: 20px;
    position: absolute;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    width: 20px;
    z-index: 1001;
}

.el-slider__button-wrapper .el-tooltip,
.el-slider__button-wrapper:after {
    display: inline-block;
    vertical-align: middle;
}

.el-slider__button {
    background-color: #fff;
    border: 2px solid #409eff;
    height: 16px;
    width: 16px;
}

.el-slider__button {
    background-color: #000;
    border-radius: 50%;
    height: 100%;
    transition: 0.2s;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    width: 100%;
}
/* FIND ME */

.filter-content__footer {
    align-items: center;
    border-top: 1px solid #ebebeb;
    display: flex;
    padding: 12px;
}

.filter-content__footer .btn {
    font-size: 13px;
    font-weight: 400;
    line-height: 16px;
    padding: 9px 23px;
}

.filter-content__btn-clear {
    -webkit-text-decoration: underline;
    text-decoration: underline;
}

.btn {
    align-items: center;
    background: none;
    border: 1px solid transparent;
    border-radius: 2px;
    color: #212529;
    cursor: pointer;
    display: inline-flex;
    font-size: 16px;
    font-weight: 700;
    justify-content: center;
    line-height: 1.2;
    margin: 0;
    padding: 12px 40px 13px;
    position: relative;
    text-align: center;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
        border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out,
        filter 0.15s ease-in-out;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    vertical-align: middle;
}

.filter-content__btn-save {
    background-color: #485b48;
    color: #fff;
    flex: 1;
}

.archive-products__filtering-items {
    position: absolute;
    top: 48px;
    right: 0;
    width: max-content;
    z-index: 50;
    display: none;
    flex-direction: column;
    background-color: var(--bg-1);
    border: 1px solid var(--border);
}

.archive-products__filtering-items.active {
    display: flex;
}

.archive-products__ordering-item {
    padding: 8px 16px;
    background-color: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 400;
    transition: var(--transition);
}

.archive-products__ordering-item:hover {
    background-color: var(--bg-2);
}

.archive-products__ordering-item.active {
    font-weight: 500;
    background-color: #485b48;
    color: #f6f5ed;
}

.archive-products__content-categories {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.archive-products__content-categories > a {
    padding: 8px;
    width: calc((100% - 72px) / 3);
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: inherit;
}

.archive-products__content-categories > a > img {
    width: 92px;
    height: 92px;
    object-fit: cover;
    object-position: center;
}

.archive-products__content-categories > a > h2 {
    font-size: 16px;
    font-weight: 400;
    color: var(--font-1);
}

.archive-products__content-products {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
}

@media (max-width: 599px) {
    .archive-products__content-products {
        grid-template-columns: repeat(auto-fill, calc(50% - 12px));
    }
}

@media (max-width: 599px) {
    .archive-products__content-sub-header-wrapper {
        width: 100%;
    }
}

.archive-products__content-pagination {
    width: 100%;
    display: flex;
    justify-content: center;
}

.archive-products__content-pagination > ul.page-numbers {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 8px;
    list-style-type: none;
}

.archive-products__content-pagination > .page-numbers > li > a,
.archive-products__content-pagination > .page-numbers > li > span {
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-2);
    font-size: 16px;
    text-decoration: none;
    color: var(--font-1);
    transition: var(--transition);
}

.archive-products__content-pagination > .page-numbers > li > a:hover,
.archive-products__content-pagination > .page-numbers > li > span {
    background-color: var(--accent-1);
    color: var(--bg-1);
}

/* PRODUCTS BLOCK */
.products-block {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.products-block > h3 {
    position: relative;
    font-size: 24px;
    font-weight: 500;
    color: var(--font-1);
}

.products-block > h3::after {
    position: absolute;
    content: '';
    bottom: -4px;
    left: 0;
    width: 100px;
    height: 2px;
    background-color: var(--accent-1);
}

.products-block__content {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
}

@media (max-width: 599px) {
    .products-block__content {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(auto-fill, calc(50% - 12px));
        gap: 24px;
    }
}

@media (max-width: 599px) {
    .archive-products__filtering {
        margin: 0;
    }
    .archive-products__ordering {
        margin: 0;
    }
}

/* PRODUCT CARD */
.product-card {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.product-card:hover {
    box-shadow: var(--shadow);
}

.product-card__image img.hover-image {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.product-card__image:hover img.hover-image {
    opacity: 1;
}

/* Disable hover effects specifically on iOS devices */
@supports (-webkit-touch-callout: none) {
    /* iOS-specific CSS - disables hover functionality */
    @media (max-width: 1024px) {
        .product-card__image:hover img.hover-image {
            opacity: 0; /* Keep images hidden on iOS mobile/tablet */
        }
    }
}

.product-card__image {
    position: relative;
    padding-top: 100%;
    width: 100%;
    height: 0;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

.product-card__image > img {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.product-card__image > .onsale-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    padding: 4px 8px;
    background-color: var(--accent-1);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--bg-1);
}

.product-card__image > .tag-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    z-index: 2;
    padding: 4px 16px;
    background-color: var(--accent-1);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--bg-1);
}

.product-card__image > .wishlist-button {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    border-radius: 50%;
    outline: none;
    cursor: pointer;
    font-size: 20px;
    color: var(--font-1);
}

.product-card__content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 16px;
}

.product-card__title {
    width: 100%;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    color: inherit;
}

.product-card__price {
    margin-top: auto;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 24px;
    font-weight: 700;
}

.archive-products__ordering-button,
.archive-products__filter-button {
    padding: 0px 18px;
}

@media (max-width: 490px) {
    .archive-products__ordering-button,
    .archive-products__filter-button {
        height: 60px;
    }
}

@media (max-width: 599px) {
    .product-card__price {
        font-size: inherit;
    }
}

.product-card__price > ins {
    order: 1;
    text-decoration: none;
    color: var(--accent-1);
}

.product-card__price > del {
    order: 2;
    font-size: 14px;
    font-weight: 500;
    color: var(--font-2);
}

.product-card__button {
    width: 100%;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--accent-1);
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    color: var(--bg-1);
}

.product-card__button:disabled {
    background-color: var(--bg-2);
    cursor: not-allowed;
    color: var(--font-2);
}

@media screen and (max-width: 767px) {
    .archive-products__result-count {
        display: none;
    }
}

@media screen and (max-width: 1023px) {
    .archive-products__sidebar {
        position: fixed;
        top: 0;
        left: 0;
        z-index: -300;
        transform: translateX(-100%);
        width: 100%;
        max-width: 500px;
        height: 100%;
        display: flex;
        transition: var(--transition);
    }

    .archive-products__sidebar.active {
        z-index: 300;
        transform: translateX(0);
    }

    .archive-products__sidebar-inner {
        position: static;
        top: unset;
        padding: 24px;
        width: 90%;
        height: 100%;
        background-color: var(--bg-1);
    }

    .archive-products__sidebar-inner > .sidebar-banner {
        display: none;
    }

    .archive-products__sidebar-outer {
        display: flex;
    }

    .archive-products__content {
        width: 100%;
    }

    .archive-products__filter-button {
        display: flex;
    }

    .archive-products__content-categories > a {
        width: calc((100% - 48px) / 2);
    }
}

.archive-products__content-categories > a > img {
    width: auto;
    height: auto;
}

@media screen and (max-width: 490px) {
    .archive-products__content-categories {
        display: grid;
    }

    .archive-products__content-categories > a > img {
        object-fit: cover;
        aspect-ratio: 1;
        width: 40px;
        height: 40px;
    }

    .archive-products__content-categories {
        gap: 16px;
    }

    .archive-products__content-categories > a {
        width: 100%;
    }
}

@media screen and (min-width: 1024px) and (max-width: 1165px) {
    .archive-products__content-categories {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .archive-products__content-categories > a {
        width: auto;
    }
}
