/* =========================================
   UNEED — CATALOG
   /assets/css/catalog.css
========================================= */


/* =========================================
   PAGE
========================================= */

.catalog-page {
    padding: 55px 0 90px;
}

.catalog-title {
    margin-bottom: 35px;
}

.catalog-title span {
    display: block;
    margin-bottom: 8px;

    color: var(--accent);

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 1px;
    text-transform: uppercase;
}

.catalog-title h1 {
    margin-bottom: 10px;

    font-size: clamp(
        38px,
        5vw,
        64px
    );

    line-height: 1;
    letter-spacing: -3px;
}

.catalog-title p {
    color: var(--text-soft);
}


/* =========================================
   SEARCH
========================================= */

.catalog-search {
    display: flex;

    gap: 10px;

    margin-bottom: 22px;
}

.catalog-search input {
    width: 100%;
    height: 52px;

    padding: 0 18px;

    outline: none;

    border:
        1px solid
        var(--border);

    border-radius: 14px;

    background: #fff;
    color: var(--text);

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.catalog-search input:focus {
    border-color: var(--accent);

    box-shadow:
        0 0 0 4px
        rgba(37, 99, 235, 0.08);
}

.catalog-search input::placeholder {
    color: #9ca3af;
}

.catalog-search button {
    height: 52px;

    flex-shrink: 0;

    padding: 0 25px;

    border: none;
    border-radius: 14px;

    background: var(--text);
    color: #fff;

    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.catalog-search button:hover {
    background: var(--accent);

    transform: translateY(-1px);
}


/* =========================================
   CATEGORY FILTER
========================================= */

.catalog-categories {
    display: flex;
    flex-wrap: wrap;

    gap: 8px;

    margin-bottom: 35px;
}

.catalog-category {
    padding: 10px 15px;

    border:
        1px solid
        var(--border);

    border-radius: 50px;

    background: #fff;
    color: #50545c;

    font-size: 13px;
    font-weight: 650;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.catalog-category:hover {
    border-color: var(--accent);

    color: var(--accent);

    transform: translateY(-1px);
}

.catalog-category.active {
    border-color: var(--text);

    background: var(--text);
    color: #fff;
}


/* =========================================
   CATALOG INFO
========================================= */

.catalog-info {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 20px;
}

.catalog-info span {
    color: var(--text-soft);

    font-size: 13px;
}


/* =========================================
   PRODUCT GRID
========================================= */

.product-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 15px;
}


/* =========================================
   PRODUCT CARD
========================================= */

.product-card {
    position: relative;

    overflow: hidden;

    display: flex;
    flex-direction: column;

    min-width: 0;
    min-height: 430px;

    border:
        1px solid
        var(--border);

    border-radius: var(--radius);

    background: #fff;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.product-card:hover {
    transform: translateY(-5px);

    border-color:
        rgba(37, 99, 235, 0.18);

    box-shadow: var(--shadow);
}


/* =========================================
   PRODUCT IMAGE
========================================= */

.product-image {
    height: 230px;

    position: relative;

    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            145deg,
            #f8f9fb,
            #eef0f4
        );
}

.product-image img {
    width: 100%;
    height: 100%;

    object-fit: contain;

    padding: 20px;

    transition:
        transform 0.3s ease;
}

.product-card:hover
.product-image img {
    transform: scale(1.04);
}


/* =========================================
   PLACEHOLDER CAMERA
========================================= */

.product-placeholder {
    width: 110px;
    height: 75px;

    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius:
        35px 35px
        24px 24px;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #cfd3da
        );

    box-shadow:
        0 18px 30px
        rgba(0, 0, 0, 0.13);

    transition:
        transform 0.3s ease;
}

.product-card:hover
.product-placeholder {
    transform:
        scale(1.05)
        rotate(-2deg);
}

.product-placeholder::before {
    content: "";

    width: 42px;
    height: 42px;

    border:
        7px solid
        #b9bec6;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            #276a9f,
            #071019 60%
        );
}


/* =========================================
   PRODUCT TYPE
========================================= */

.product-type {
    position: absolute;

    top: 14px;
    left: 14px;

    z-index: 2;

    padding: 6px 9px;

    border-radius: 8px;

    background:
        rgba(
            255,
            255,
            255,
            0.92
        );

    backdrop-filter: blur(10px);

    color: var(--text);

    font-size: 10px;
    font-weight: 800;
}


/* =========================================
   PRODUCT CONTENT
========================================= */

.product-content {
    flex: 1;

    display: flex;
    flex-direction: column;

    padding: 19px;
}

.product-brand {
    margin-bottom: 6px;

    color: var(--text-soft);

    font-size: 11px;
    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.3px;
}

.product-name {
    margin-bottom: 10px;

    color: var(--text);

    font-size: 16px;
    font-weight: 750;

    line-height: 1.35;

    transition:
        color 0.2s ease;
}

.product-name:hover {
    color: var(--accent);
}

.product-spec {
    margin-bottom: 18px;

    color: var(--text-soft);

    font-size: 12px;
}


/* =========================================
   STOCK
========================================= */

.stock {
    width: fit-content;

    margin-bottom: 10px;

    font-size: 11px;
    font-weight: 700;
}

.stock.yes {
    color: #15803d;
}

.stock.no {
    color: #b91c1c;
}


/* =========================================
   PRODUCT BOTTOM
========================================= */

.product-bottom {
    margin-top: auto;
}


/* =========================================
   PRICE
========================================= */

.price-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;

    gap: 8px;

    margin-bottom: 13px;
}

.price {
    color: var(--text);

    font-size: 20px;
    font-weight: 850;

    letter-spacing: -0.7px;
}

.old-price {
    color: #9ca3af;

    font-size: 12px;

    text-decoration: line-through;
}


/* =========================================
   PRODUCT ACTIONS
========================================= */

.product-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.product-cart-form {
    margin: 0;
    padding: 0;
}

.product-button {
    width: 100%;
    min-height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 8px 10px;

    border: 1px solid var(--text);
    border-radius: 12px;

    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;

    text-align: center;
    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.product-button-cart {
    background: var(--text);
    color: #fff;
}

.product-button-cart:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-1px);
}

.product-button-more {
    background: #fff;
    color: var(--text);
}

.product-button-more:hover {
    background: var(--text);
    color: #fff;
    transform: translateY(-1px);
}

.product-button.disabled {
    pointer-events: none;

    border-color: #e5e7eb;
    background: #e5e7eb;
    color: #9ca3af;
}


/* =========================================
   EMPTY RESULT
========================================= */

.catalog-empty {
    grid-column:
        1 / -1;

    padding: 70px 20px;

    border:
        1px dashed
        var(--border);

    border-radius:
        var(--radius);

    background: #fff;

    text-align: center;
}

.catalog-empty strong {
    display: block;

    margin-bottom: 8px;

    font-size: 22px;
}

.catalog-empty p {
    color: var(--text-soft);

    font-size: 14px;
}


/* =========================================
   LARGE TABLET
========================================= */

@media (
    max-width: 1050px
) {

    .product-grid {
        grid-template-columns:
            repeat(3, 1fr);
    }

}


/* =========================================
   TABLET
========================================= */

@media (
    max-width: 800px
) {

    .product-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

}


/* =========================================
   MOBILE
========================================= */

@media (
    max-width: 550px
) {

    .catalog-page {
        padding:
            35px 0
            60px;
    }

    .catalog-title {
        margin-bottom: 25px;
    }

    .catalog-title h1 {
        font-size: 42px;

        letter-spacing: -2px;
    }


    /* SEARCH */

    .catalog-search {
        display: grid;

        grid-template-columns:
            1fr auto;
    }

    .catalog-search input {
        min-width: 0;

        height: 48px;

        padding: 0 14px;
    }

    .catalog-search button {
        height: 48px;

        padding: 0 16px;
    }


    /* CATEGORIES */

    .catalog-categories {
        flex-wrap: nowrap;

        overflow-x: auto;

        margin-left: -14px;
        margin-right: -14px;

        padding:
            0 14px
            7px;

        scrollbar-width: none;
    }

    .catalog-categories::-webkit-scrollbar {
        display: none;
    }

    .catalog-category {
        flex: 0 0 auto;
    }


    /* PRODUCTS */

    .product-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 8px;
    }

    .product-card {
        min-height: 350px;

        border-radius: 15px;
    }

    .product-image {
        height: 160px;
    }

    .product-placeholder {
        width: 80px;
        height: 55px;
    }

    .product-placeholder::before {
        width: 31px;
        height: 31px;

        border-width: 5px;
    }

    .product-type {
        top: 9px;
        left: 9px;

        padding: 5px 7px;

        font-size: 9px;
    }

    .product-content {
        padding: 13px;
    }

    .product-brand {
        font-size: 9px;
    }

    .product-name {
        font-size: 13px;
    }

    .product-spec {
        margin-bottom: 12px;

        font-size: 10px;
    }

    .stock {
        font-size: 9px;
    }

    .price {
        font-size: 16px;
    }

    .old-price {
        display: none;
    }

    .product-actions {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .product-button {
        min-height: 38px;
        padding: 7px 6px;

        font-size: 10px;
    }

}


/* =========================================
   VERY SMALL MOBILE
========================================= */

@media (
    max-width: 370px
) {

    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-image {
        height: 200px;
    }

}