/* =========================================================
   ROOMERA CATALOG
   ========================================================= */

.catalog-section {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 52px 0 60px;
    background: #faf9f7;
}


/* =========================================================
   CONTAINER
   ========================================================= */

.catalog-section .ht-container {
    width: min(1320px, calc(100% - 48px));
    max-width: 1320px;
    margin: 0 auto;
}


/* =========================================================
   HEADING
   ========================================================= */

.catalog-section .catalog-heading {
    max-width: 760px;
    margin: 0 auto 30px;
    text-align: center;
}


.catalog-section .catalog-heading h2 {
    margin: 0;

    color: #102a40;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(32px, 3vw, 40px);
    font-weight: 400;

    line-height: 1.15;
}


.catalog-section .catalog-heading p {
    max-width: 650px;

    margin: 10px auto 0;

    color: #6a747d;

    font-size: 15px;
    line-height: 1.55;
}


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

.catalog-section .category-grid {
    display: grid;

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

    gap: 16px;

    width: 100%;

    margin: 0;
    padding: 0;
}


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

.catalog-section .category-card {
    position: relative;

    display: flex;
    flex-direction: column;

    min-width: 0;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid #e4dfd6;
    border-radius: 7px;

    box-shadow: 0 1px 2px rgba(16, 42, 64, 0.02);

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


.catalog-section .category-card:hover {
    transform: translateY(-3px);

    border-color: #d5c7b1;

    box-shadow: 0 12px 28px rgba(16, 42, 64, 0.07);
}


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

.catalog-section .category-image {
    position: relative;

    display: block;

    width: 100%;
    height: 180px;

    overflow: hidden;

    background: #eeeae3;

    text-decoration: none;
}


.catalog-section .category-image::after {
    content: "";

    position: absolute;
    inset: 0;

    pointer-events: none;

    background: linear-gradient(
        to bottom,
        rgba(16, 42, 64, 0) 68%,
        rgba(16, 42, 64, 0.04) 100%
    );
}


.catalog-section .category-image img {
    display: block;

    width: 100%;
    height: 100%;

    margin: 0;

    object-fit: cover;
    object-position: center;

    transition: transform 0.45s ease;
}


.catalog-section .category-card:hover .category-image img {
    transform: scale(1.035);
}


/* =========================================================
   CARD BODY
   ========================================================= */

.catalog-section .category-body {
    display: flex;
    flex: 1;
    flex-direction: column;

    min-height: 150px;

    padding: 15px 17px 16px;
}


/* =========================================================
   TITLE
   ========================================================= */

.catalog-section .category-body h3 {
    margin: 0 0 7px;

    color: #102a40;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 19px;
    font-weight: 400;

    line-height: 1.22;
}


.catalog-section .category-body h3 a {
    color: inherit;
    text-decoration: none;

    transition: color 0.2s ease;
}


.catalog-section .category-body h3 a:hover {
    color: #9b7f4d;
}


/* =========================================================
   DESCRIPTION
   ========================================================= */

.catalog-section .category-body p {
    display: -webkit-box;

    overflow: hidden;

    margin: 0 0 13px;

    color: #69757e;

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

    line-height: 1.5;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}


/* =========================================================
   DETAILS LINK
   ========================================================= */

.catalog-section .category-details {
    display: inline-flex;
    align-items: center;

    width: max-content;

    margin-top: auto;

    gap: 7px;

    color: #102a40;

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

    line-height: 1;

    text-decoration: none;

    transition:
        color 0.2s ease,
        gap 0.2s ease;
}


.catalog-section .category-details svg {
    width: 15px;
    height: 15px;

    transition: transform 0.2s ease;
}


.catalog-section .category-details:hover {
    gap: 10px;
    color: #a18451;
}


.catalog-section .category-details:hover svg {
    transform: translateX(2px);
}


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

@media (max-width: 1100px) {

    .catalog-section {
        padding: 48px 0 56px;
    }


    .catalog-section .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }


    .catalog-section .category-image {
        height: 220px;
    }


    .catalog-section .category-body {
        min-height: 145px;
    }
}


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

@media (max-width: 640px) {

    .catalog-section {
        padding: 40px 0 46px;
    }


    .catalog-section .ht-container {
        width: calc(100% - 28px);
    }


    .catalog-section .catalog-heading {
        margin-bottom: 22px;
    }


    .catalog-section .catalog-heading h2 {
        font-size: 29px;
    }


    .catalog-section .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }


    .catalog-section .category-image {
        height: 135px;
    }


    .catalog-section .category-body {
        min-height: 138px;
        padding: 12px 11px 13px;
    }


    .catalog-section .category-body h3 {
        margin-bottom: 6px;
        font-size: 16px;
    }


    .catalog-section .category-body p {
        margin-bottom: 10px;

        font-size: 10.5px;
        line-height: 1.42;

        -webkit-line-clamp: 3;
    }


    .catalog-section .category-details {
        gap: 4px;
        font-size: 10.5px;
    }


    .catalog-section .category-details svg {
        width: 13px;
        height: 13px;
    }
}


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

@media (max-width: 390px) {

    .catalog-section .category-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }


    .catalog-section .category-image {
        height: 205px;
    }


    .catalog-section .category-body {
        min-height: 135px;
        padding: 15px;
    }


    .catalog-section .category-body h3 {
        font-size: 19px;
    }


    .catalog-section .category-body p {
        font-size: 12.5px;
    }


    .catalog-section .category-details {
        font-size: 12px;
    }
}