@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root{
    --maincolor: #FFA200;
    --darkcolor: #1D1E24;
}

*{
    font-family: "Poppins", monospace, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* border: greenyellow solid 1px; */
}

.navbar > .wrapper > h4 {
    margin: 0;
}
div, a{
    font-size: 1em;
}
a{
    color: black;
    text-decoration: none;
}

.flex-produk-parent{
    display: flex;
    gap: 5em;
    width: 90%;
}
.jenis-produk{
    width: 50%;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
}

.img-title{
    width: 70%;
}

.title{
    font-size: 4rem;
}

.desc{
    max-width: 85%;
    margin-top: 0;
}

.card-title{
    z-index: 2;
    width: 50vw;
    max-width: 80vw;
    height: 20em;
    background-color: rgba(255,255,255,0.85);
}

.title-produk{
    font-size: 3rem;
}

.jenis-produk > .img-jenis-produk{
    box-shadow: #ffa2009c 5px 5px;
    overflow: hidden;
    height: 10em;
    width: 30%;
    border-radius: 16px;
}

.title-detail-produk{
    width: 50%;
    height: 50% !important;
}

.btn-detail-product{
    background-color: var(--maincolor);
    font-size: 1rem;
    text-decoration: none;
    margin-top: 0.5em;
}

.card-title-produk{
    width: 100% !important;
    height: 50vh !important;
}

.img-jenis-produk > img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.img-title{
    z-index: 1;
    margin-left: -20%;
    height: 110%;
}

.text-jenis-produk{
    width: 70%;
    padding-left: 1em;
}

.footer{
    background-color: var(--darkcolor);
}

.footer-info{
    width: 50%;
}

.main-footer{
    color: white;

}

.footer-info-item > .icon > img{
    width: 1.5em;
}

.footer-info-item > p{
    font-size: 1.2em;
}

.cp-footer{
    background-color: var(--maincolor);
}

.scroll-img {
    flex: 0 0 auto;
    width: 450px;
    height: 450px;
    object-fit:fill;
    background-color: lightgray;
}

.preview-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1050;
    display: flex;
    justify-content: center;
    align-items: center;
}

.backdrop {
    position: absolute;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(8px);
    background-color: rgba(0, 0, 0, 0.7);
    top: 0;
    left: 0;
    z-index: 1;
}

.preview-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    z-index: 2;
    box-shadow: 0 0 20px rgba(0,0,0,0.7);
}

.close-preview{
    position: absolute;
    top: 1em;
    right: 1em;
    z-index: 3;
    background: none;
    border: none;
    font-size: 2em;
    color: white;
    cursor: pointer;
}

.sidebar{
    position: fixed;
    top: 0;
    right: 0;
    width: 200px;
    background-color: rgba(255, 255, 255, 1);
    height: 100%;
    padding: 1.5rem;
    z-index: 4;
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

.sidebar.show {
    transform: translateX(0);
}

.d-none {
    display: none;
}

.map{
    width: 400px;
    height: 300px;
}

.grid-layout {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    gap: 1rem;
    grid-auto-flow: dense;
}

.grid-item {
    background-size: cover;
    background-position: center;
    border-radius: 10px;
}

.span-2x2 {
    grid-column: span 1;
    grid-row: span 2;
}

.span-2x1 {
    grid-column: span 2;
}

.span-1x2 {
    grid-row: span 2;
}

@media (max-width: 992px) {
    .masonry {
        column-count: 1;
    }
}

@media (max-width: 768px) {
    .grid-layout {
        grid-template-columns: 1fr !important; /* Satu kolom */
        grid-auto-rows: 200px; /* Ukuran tetap */
    }

    /* Reset span di mobile agar semua item sama */
    .span-2x2,
    .span-2x1,
    .span-1x2 {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }
}

@media (max-width: 576px) {
    .masonry {
        column-count: 1;
    }
}

@media (max-width: 767.98px) {
    .navbar h4 {
        margin: 0;
    }

    .img-title{
        width:100%;
        height: 100%;
        margin-left: 0;
    }

    .img-jenis-produk > img {
        height: 100%;
        width: 100%;
        object-fit: cover;
    }

    .title-produk{
        padding: 10px;
        font-size: 1.5rem;
    }

    .title{
        font-size: 2rem;
    }

    .desc{
        font-size: 1rem;
        max-width: 100%;
    }

    .card-title{
        width: 100vw;
        height: 100%;
    }

    .flex-produk-parent{
        flex-direction: column;
    }

    .jenis-produk{
        width: 100%;
    }

    .jenis-produk > .img-jenis-produk{
        width: 50%;
    }

    .text-jenis-produk{
        margin-left: 1em;
    }

    .main-footer{
        flex-direction: column;
    }

    .wrapper{
        width: 100%;
    }

    .pesan-whatsapp {
        width: 150px;
        font-size: 0.7rem;
        padding: 0;
    }

    .footer-info{
        width: 100%;
        gap: 1;
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }

    .map{
        width: 300px;
        height: 250px;
    }

    .scroll-img{
        width: 200px;
        height: 200px;
    }

    .card-title-produk{
        width: 100%;
        height: 25%;
    }

    .title-detail-produk{
        width: 80%;
    }

    .btn-detail-product{
        font-size: 0.9em;
    }
}
