.catalog-container {
    width: min(1440px, calc(100% - 48px));
    margin: 0 auto;
}

.catalog-hero {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    background: #222222;
    color: #ffffff;
}

.catalog-hero-image,
.catalog-hero-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.catalog-hero-image img {
    object-fit: cover;
}

.catalog-hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.68),
            rgba(0, 0, 0, 0.18) 62%,
            rgba(0, 0, 0, 0.04)
        );
}

.catalog-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    min-height: 520px;
    justify-content: center;
    flex-direction: column;
}

.catalog-hero-content p {
    margin: 0 0 15px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.catalog-hero-content h1 {
    margin: 0;
    font-size: clamp(54px, 7vw, 96px);
    letter-spacing: -5px;
    line-height: 0.95;
}

.catalog-hero-content span {
    max-width: 580px;
    margin-top: 24px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 16px;
    line-height: 1.7;
}

.catalog-page {
    padding: 75px 0 100px;
    background: #ffffff;
}

.catalog-page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 34px;
}

.catalog-eyebrow {
    margin: 0 0 9px;
    color: #6c4cff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.catalog-page-heading h2 {
    margin: 0;
    font-size: clamp(34px, 4vw, 48px);
    letter-spacing: -2px;
}

.catalog-page-heading span {
    display: block;
    margin-top: 9px;
    color: #73737b;
    font-size: 12px;
}

.catalog-collections {
    display: flex;
    gap: 9px;
    margin-bottom: 26px;
    padding-bottom: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}

.catalog-collections::-webkit-scrollbar {
    display: none;
}

.catalog-collections a {
    display: inline-flex;
    min-height: 39px;
    align-items: center;
    gap: 7px;
    padding: 0 15px;
    border: 1px solid #e3e3e8;
    border-radius: 999px;
    color: #27272c;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.catalog-collections a.active,
.catalog-collections a:hover {
    border-color: #17171b;
    background: #17171b;
    color: #ffffff;
}

.catalog-collections small {
    font-size: 9px;
    opacity: 0.65;
}

.catalog-toolbar {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 220px auto auto;
    gap: 12px;
    margin-bottom: 36px;
    padding: 15px;
    border: 1px solid #e6e6eb;
    border-radius: 15px;
    background: #fafafd;
}

.catalog-search {
    position: relative;
}

.catalog-search > i {
    position: absolute;
    top: 50%;
    left: 15px;
    color: #8b8b92;
    transform: translateY(-50%);
}

.catalog-search input {
    width: 100%;
    height: 46px;
    padding: 0 16px 0 43px;
    border: 1px solid #dfdfe5;
    border-radius: 11px;
    background: #ffffff;
    outline: none;
}

.catalog-search input:focus {
    border-color: #6c4cff;
}

.catalog-sort {
    display: flex;
    flex-direction: column;
}

.catalog-sort > span {
    display: none;
}

.catalog-sort select {
    width: 100%;
    height: 46px;
    padding: 0 13px;
    border: 1px solid #dfdfe5;
    border-radius: 11px;
    background: #ffffff;
}

.catalog-toolbar > button {
    min-height: 46px;
    padding: 0 20px;
    border: 0;
    border-radius: 11px;
    background: #17171b;
    color: #ffffff;
    font-weight: 800;
    cursor: pointer;
}

.catalog-clear {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border: 1px solid #dfdfe5;
    border-radius: 11px;
    color: #55555d;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
}

.catalog-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px 20px;
}

.catalog-product-card {
    min-width: 0;
}

.catalog-product-media {
    position: relative;
    aspect-ratio: 0.78;
    overflow: hidden;
    border-radius: 15px;
    background: #f0f0f2;
}

.catalog-product-media > a:first-child {
    display: block;
    width: 100%;
    height: 100%;
}

.catalog-product-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition:
        opacity 0.35s ease,
        transform 0.45s ease;
}

.catalog-product-image-hover {
    opacity: 0;
}

.catalog-product-card:hover
.catalog-product-image-main {
    opacity: 0;
}

.catalog-product-card:hover
.catalog-product-image-hover {
    opacity: 1;
}

.catalog-product-card:hover
.catalog-product-image {
    transform: scale(1.025);
}

.catalog-product-badge {
    position: absolute;
    top: 13px;
    left: 13px;
    z-index: 3;
    padding: 7px 10px;
    border-radius: 20px;
    background: #ffffff;
    color: #17171b;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

.catalog-wishlist {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    display: flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    cursor: pointer;
}

.catalog-wishlist.active {
    background: #17171b;
    color: #ffffff;
}

.catalog-quick-view {
    position: absolute;
    right: 13px;
    bottom: 13px;
    left: 13px;
    z-index: 3;
    display: flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(17, 17, 21, 0.94);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
    opacity: 0;
    transform: translateY(10px);
    transition: 0.25s ease;
}

.catalog-product-card:hover
.catalog-quick-view {
    opacity: 1;
    transform: translateY(0);
}

.catalog-product-details {
    padding: 16px 2px 0;
}

.catalog-product-details > p {
    margin: 0 0 7px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.catalog-product-details > p a {
    color: #77777e;
    text-decoration: none;
}

.catalog-product-details h3 {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
}

.catalog-product-details h3 a {
    color: #17171b;
    text-decoration: none;
}

.catalog-product-price {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 10px;
}

.catalog-product-price strong {
    font-size: 13px;
}

.catalog-product-price del {
    color: #909096;
    font-size: 11px;
}

.catalog-product-meta {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    color: #85858d;
    font-size: 10px;
}

.catalog-empty-state {
    grid-column: 1 / -1;
    display: flex;
    min-height: 340px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 40px;
    border: 1px dashed #d8d8df;
    border-radius: 16px;
    text-align: center;
}

.catalog-empty-state > i {
    margin-bottom: 18px;
    color: #6c4cff;
    font-size: 32px;
}

.catalog-empty-state h3 {
    margin: 0;
}

.catalog-empty-state p {
    margin: 9px 0 18px;
    color: #77777e;
}

.catalog-empty-state a {
    color: #17171b;
    font-weight: 800;
}

.catalog-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 60px;
}

.catalog-pagination > a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #17171b;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
}

.catalog-pagination > div {
    display: flex;
    gap: 7px;
}

.catalog-pagination > div a {
    display: flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border: 1px solid #e0e0e5;
    border-radius: 9px;
    color: #55555d;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
}

.catalog-pagination > div a.active {
    border-color: #17171b;
    background: #17171b;
    color: #ffffff;
}

.catalog-toast {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 2500;
    padding: 14px 18px;
    border-radius: 11px;
    background: #17171b;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    opacity: 0;
    transform: translateY(14px);
    pointer-events: none;
    transition: 0.25s ease;
}

.catalog-toast.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1100px) {
    .catalog-product-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .catalog-toolbar {
        grid-template-columns: 1fr 1fr;
    }

    .catalog-product-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 580px) {
    .catalog-container {
        width: calc(100% - 24px);
    }

    .catalog-hero,
    .catalog-hero-content {
        min-height: 430px;
    }

    .catalog-toolbar {
        grid-template-columns: 1fr;
    }

    .catalog-product-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 25px 10px;
    }

    .catalog-product-media {
        border-radius: 10px;
    }

    .catalog-quick-view {
        opacity: 1;
        transform: none;
    }

    .catalog-pagination {
        align-items: stretch;
        flex-direction: column;
    }
}



.catalog-product-grid {
    position: relative;
}

.catalog-product-grid.loading {
    min-height: 320px;
    opacity: 0.45;
    pointer-events: none;
}

.catalog-product-grid.loading::after {
    content: "";
    position: absolute;
    top: 110px;
    left: 50%;
    width: 34px;
    height: 34px;
    border: 3px solid #d9d9df;
    border-top-color: #17171b;
    border-radius: 50%;
    animation: catalog-spin 0.7s linear infinite;
}

.catalog-pagination button {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 13px;
    border: 1px solid #e0e0e5;
    border-radius: 9px;
    background: #ffffff;
    color: #55555d;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.catalog-pagination button.active {
    border-color: #17171b;
    background: #17171b;
    color: #ffffff;
}

.catalog-pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

@keyframes catalog-spin {
    to {
        transform: rotate(360deg);
    }
}