/* =========================================================
   MI FURNITURES
   PRODUCT CATEGORY PAGE ONLY
========================================================= */


/* =========================================================
   01. GLOBAL
========================================================= */

.product-category-page {
    margin: 0;

    font-family: "Poppins", sans-serif;

    color: #111;
    background: #fff;

    overflow-x: hidden;
}

.product-category-page * {
    box-sizing: border-box;
}

.product-category-page a {
    color: inherit;
    text-decoration: none;
}

.category-container {
    padding-left: 2.3%;
    padding-right: 4%;
}

.category-content-container {
    padding-left: 5%;
    padding-right: 4%;
}

.category-product-container {
    padding-left: 2.8%;
    padding-right: 3.5%;
}


/* =========================================================
   02. HEADER
========================================================= */

.category-header {
    position: relative;

    width: 100%;

    padding: 19px 0 17px;

    background: #f5f3f1;

    z-index: 100;
}

.category-header .navbar {
    min-height: 42px;
}


/* Logo */

.category-header .navbar-brand {
    margin: 0;
    padding: 0;

    color: #111;

    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;

    letter-spacing: -0.8px;
}


/* Main Navigation */

.category-main-menu {
    display: flex;

    align-items: center;

    gap: 32px;
}

.category-main-menu .nav-link {
    position: relative;

    padding: 7px 0 !important;

    color: #111;

    font-size: 11px;
    font-weight: 400;
}

.category-main-menu .nav-link::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 2px;

    width: 0;
    height: 1px;

    background: #111;

    transition: width 0.3s ease;
}

.category-main-menu .nav-link:hover::after {
    width: 100%;
}


/* Social */

.category-social {
    display: flex;

    align-items: center;

    gap: 14px;
}

.category-social a {
    display: flex;

    align-items: center;
    justify-content: center;

    color: #111;

    font-size: 15px;

    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}

.category-social a:hover {
    opacity: 0.55;

    transform: translateY(-2px);
}


/* =========================================================
   03. SPACE NAVIGATION
========================================================= */

.space-navigation {
    padding: 81px 0 20px;
    background: #f5f3f1;
}

.space-nav {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: clamp(35px, 5vw, 80px);
}

.space-nav a {
    position: relative;

    color: #111;

    font-size: clamp(15px, 1.45vw, 20px);
    font-weight: 600;

    transition: opacity 0.25s ease;
}

.space-nav a:hover {
    opacity: 0.5;
}

.space-nav a.active {
    color: #9d9b99;
}


/* =========================================================
   04. CATEGORY HERO
========================================================= */

.category-hero {
    position: relative;

    width: 100%;

    height: clamp(330px, 36vw, 520px);

    overflow: hidden;

    background: #ddd;
}

.category-hero > img {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    object-position: center;

    transition:
        transform 8s cubic-bezier(.2, .6, .2, 1);
}

.category-hero:hover > img {
    transform: scale(1.025);
}


/* Hero Overlay */

.category-hero-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.22) 0%,
            rgba(0, 0, 0, 0.04) 45%,
            rgba(0, 0, 0, 0) 70%
        );
}


/* Hero Text */

.category-hero-content {
    position: absolute;

    left: 5%;
    top: 50%;

    z-index: 5;

    transform: translateY(-50%);

    color: #fff;
}

.category-hero-content h1 {
    margin: 0 0 5px;

    font-size: clamp(45px, 5vw, 72px);
    font-weight: 600;
    line-height: 1;

    letter-spacing: -2.5px;
}

.category-hero-content p {
    margin: 0;

    font-size: clamp(15px, 1.45vw, 21px);
    font-weight: 600;
}


/* =========================================================
   05. CATEGORY INTRODUCTION
========================================================= */

.category-introduction {
    padding: 30px 0 28px;
    background: #fff;
    border-bottom: 1px solid #ddd;
}

.category-intro-grid {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) 50px;
    align-items: start;
    column-gap: 45px;
}

/* Heading */

.category-intro-title {
    min-width: 0;
}

.category-intro-title h2 {
    margin: 0;
    font-size: clamp(30px, 2.8vw, 42px);
    font-weight: 600;
    line-height: 0.98;
    letter-spacing: -1.5px;
}

/* Description */

.category-intro-description {
    min-width: 0;
    padding-top: 2px;
}

.category-intro-description p {
    width: 100%;
    max-width: 1000px;
    margin: 0;
    color: #888;
    font-size: 12px;
    font-weight: 300;
    line-height: 1.55;
}

/* Right Line */

.category-intro-line {
    display: flex;
    justify-content: flex-end;
    padding-top: 18px;
}

.category-intro-line span {
    display: block;
    width: 48px;
    height: 1px;
    background: #c5b5ad;
}


/* TABLET */

@media (max-width: 991.98px) {

    .category-intro-grid {
        grid-template-columns: 180px minmax(0, 1fr);
        column-gap: 35px;
    }

    .category-intro-title h2 {
        font-size: 34px;
    }

    .category-intro-description p {
        font-size: 11px;
        line-height: 1.65;
    }

    .category-intro-line {
        display: none;
    }
}


/* MOBILE */

@media (max-width: 575.98px) {

    .category-introduction {
        padding: 28px 0 30px;
    }

    .category-intro-grid {
        display: block;
    }

    .category-intro-title {
        margin-bottom: 20px;
    }

    .category-intro-title h2 {
        font-size: 30px;
        line-height: 1;
        letter-spacing: -1px;
    }

    .category-intro-description {
        padding: 0;
    }

    .category-intro-description p {
        max-width: none;
        font-size: 11px;
        line-height: 1.65;
    }

    .category-intro-line {
        display: none;
    }
}


/* =========================================================
   06. PRODUCTS AREA
========================================================= */

.category-products {
    padding: 32px 0 35px;

    background: #fff;
}


/* =========================================================
   07. PRODUCT GRID
========================================================= */

.category-product-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 8px;
}


/* =========================================================
   08. PRODUCT CARD
========================================================= */

.category-product-card {
    position: relative;

    display: block;

    min-width: 0;

    background: #f0f3f4;

    color: #111;

    overflow: hidden;
}


/* Product Image */

.category-product-image {
    position: relative;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 100%;

    aspect-ratio: 0.72 / 1;

    padding:
        35px
        15px
        70px;
}

.category-product-image img {
    display: block;

    width: auto;
    height: auto;

    max-width: 88%;
    max-height: 78%;

    object-fit: contain;

    transition:
        transform 0.6s cubic-bezier(.2, .6, .2, 1);
}


/* Product Hover */

.category-product-card:hover
.category-product-image img {
    transform: scale(1.045);
}


/* =========================================================
   09. PRODUCT INFORMATION
========================================================= */

.category-product-info {
    position: absolute;

    left: 15px;
    right: 15px;
    bottom: 16px;

    text-align: center;
}

.category-product-info h3 {
    margin: 0 0 3px;

    font-size:10px;
    font-weight: 600;
    line-height: 1.25;

    color: #111;
}

.category-product-info p {
    margin: 0;

    font-size:8px;
    font-weight: 400;

    color: #555;
}


/* =========================================================
   10. CATEGORY SIDEBAR
========================================================= */

.category-sidebar {
    padding-left: 48px;
}

.category-sidebar-nav {
    position: sticky;

    top: 30px;

    display: flex;

    flex-direction: column;

    align-items: flex-start;

    gap: 17px;
}

.category-sidebar-nav a {
    position: relative;

    display: inline-block;

    color: #111;

    font-size: clamp(14px, 1.4vw, 19px);
    font-weight: 400;
    line-height: 1.2;

    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}

.category-sidebar-nav a:hover {
    opacity: 0.55;

    transform: translateX(4px);
}

.category-sidebar-nav a.active {
    color: #aaa;
}


/* =========================================================
   11. FOOTER
========================================================= */

.category-footer {
    padding:
        72px
        0
        22px;

    background: #ddd4ce;
}

.category-footer-container {
    padding-left: 8%;
    padding-right: 3%;
}

.category-footer-main {
    min-height: 220px;
}


/* Footer Links */

.category-footer-links,
.category-footer-right {
    display: flex;

    flex-direction: column;

    gap: 10px;
}

.category-footer-links a,
.category-footer-right a {
    color: #111;

    font-size: 14px;
    font-weight: 500;

    transition: opacity 0.25s ease;
}

.category-footer-links a:hover,
.category-footer-right a:hover {
    opacity: 0.55;
}


/* Logo */

.category-footer-logo {
    font-size: 27px;
    font-weight: 700;

    letter-spacing: -1px;
}


/* Right */

.category-footer-right {
    text-align: right;
}


/* Bottom */

.category-footer-bottom {
    display: flex;

    align-items: center;
    justify-content: space-between;

    margin-top: 45px;
}

.category-footer-bottom small {
    font-size: 8px;
}


/* Social */

.category-footer-social {
    display: flex;

    align-items: center;

    gap: 14px;
}

.category-footer-social a {
    color: #111;

    font-size: 14px;
}


/* =========================================================
   12. LARGE DESKTOP
========================================================= */

@media (min-width: 1400px) {

    .category-product-image {
        aspect-ratio: 1 / 1;
    }

}


/* =========================================================
   13. TABLET
========================================================= */

@media (max-width: 991.98px) {

    .category-container,
    .category-content-container,
    .category-product-container {
        padding-left: 28px;
        padding-right: 28px;
    }


    /* Mobile Navbar */

    .category-header .navbar-collapse {
        margin-top: 15px;

        padding: 20px;

        background: #fff;
    }

    .category-main-menu {
        align-items: flex-start;

        gap: 2px;
    }

    .category-main-menu .nav-link {
        padding: 9px 0 !important;

        font-size: 13px;
    }

    .category-social {
        margin-top: 15px;
        padding-top: 15px;

        border-top: 1px solid #eee;
    }


    /* Space Navigation */

    .space-nav {
        justify-content: flex-start;

        gap: 30px;

        overflow-x: auto;

        white-space: nowrap;

        scrollbar-width: none;
    }

    .space-nav::-webkit-scrollbar {
        display: none;
    }


    /* Hero */

    .category-hero {
        height: 430px;
    }


    /* Intro */

    .category-intro-grid {
        grid-template-columns:
            120px
            1fr;

        gap: 30px;
    }

    .category-intro-line {
        display: none;
    }


    /* Products */

    .category-product-grid {
        grid-template-columns:
            repeat(3, 1fr);
    }


    /* Sidebar */

    .category-sidebar {
        padding:
            35px
            0
            0;
    }

    .category-sidebar-nav {
        position: static;

        flex-direction: row;

        flex-wrap: wrap;

        gap:
            12px
            28px;

        padding:
            20px
            0;

        border-top: 1px solid #ddd;
    }


    /* Footer */

    .category-footer-logo {
        margin: 40px 0;
    }

    .category-footer-right {
        text-align: left;
    }

}


/* =========================================================
   14. MOBILE
========================================================= */

@media (max-width: 575.98px) {

    .category-container,
    .category-content-container,
    .category-product-container,
    .category-footer-container {
        padding-left: 20px;
        padding-right: 20px;
    }


    /* Header */

    .category-header {
        padding:
            14px
            0;
    }

    .category-header .navbar-brand {
        font-size: 18px;
    }


    /* Space Navigation */

    .space-navigation {
        padding:
           57px 12px 18px 0px;
    }

    .space-nav {
        gap: 25px;
    }

    .space-nav a {
        font-size: 14px;
    }


    /* Hero */

    .category-hero {
        height: 340px;
    }

    .category-hero-content {
        left: 20px;
    }

    .category-hero-content h1 {
        font-size: 43px;

        letter-spacing: -1.5px;
    }

    .category-hero-content p {
        font-size: 14px;
    }


    /* Introduction */

    .category-introduction {
        padding:
            28px
            0;
    }

    .category-intro-grid {
        display: block;
    }

    .category-intro-title {
        margin-bottom: 20px;
    }

    .category-intro-title h2 {
        font-size: 30px;
        line-height: 1;
    }

    .category-intro-description p {
        font-size: 11px;
        line-height: 1.6;
    }


    /* Products */

    .category-products {
        padding:
            20px
            0
            30px;
    }

    .category-product-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 5px;
    }

    .category-product-image {
        aspect-ratio: 0.72 / 1;

        padding:
            25px
            8px
            55px;
    }

    .category-product-image img {
        max-width: 90%;
        max-height: 76%;
    }

    .category-product-info {
        left: 8px;
        right: 8px;
        bottom: 11px;
    }

    .category-product-info h3 {
        font-size: 7px;
    }

    .category-product-info p {
        font-size: 5px;
    }


    /* Sidebar */

    .category-sidebar-nav a {
        font-size: 13px;
    }


    /* Footer */

    .category-footer {
        padding:
            50px
            0
            20px;
    }

    .category-footer-main {
        min-height: auto;
    }

    .category-footer-logo {
        margin:
            35px
            0;

        text-align: left !important;

        font-size: 23px;
    }

    .category-footer-bottom {
        flex-direction: column;

        align-items: flex-start;

        gap: 25px;

        margin-top: 45px;
    }

    .category-footer-bottom small {
        font-size: 7px;
        line-height: 1.7;
    }

}


/* =========================================================
   15. SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .category-container,
    .category-content-container,
    .category-product-container,
    .category-footer-container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .category-product-grid {
        grid-template-columns: 1fr;
    }

    .category-product-image {
        aspect-ratio: 0.9 / 1;
    }

}


/* =========================================================
   16. REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .category-product-image img,
    .category-hero > img,
    .category-sidebar-nav a,
    .category-main-menu a {
        transition: none !important;
    }

}


/* =========================================================
   MOBILE - 2 PRODUCTS PER ROW
========================================================= */

@media (max-width: 575.98px) {

    .category-product-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px 10px;
    }

    .category-product-card {
        width: 100%;
        min-width: 0;
    }

    .category-product-image {
        width: 100%;
        aspect-ratio: 1 / 1;
        overflow: hidden;
    }

    .category-product-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
    }

    .category-product-info {
        padding-top: 10px;
    }

    .category-product-info h3 {
        margin: 0;
        font-size: 13px;
        line-height: 1.35;
    }

}


.outdoor-sofa-heading {
    grid-column: 1 / -1;
    margin: 0 0 20px;
    font-size: 32px;
    font-weight: 500;
    line-height: 1.2;
    color: #111;
    letter-spacing: -1px;
}

@media (max-width: 575.98px) {
    .outdoor-sofa-heading {
        grid-column: 1 / -1;
        margin-bottom: 15px;
        font-size: 24px;
    }
}



.category-sidebar-nav a {
    
    transition: color 0.25s ease;
}



