/* ===============================
   PAGE HEADER
================================ */

.page-header{
    background:
        linear-gradient(rgba(80,0,0,0.88), rgba(128,0,0,0.88)),
        url('../img/batik.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 110px 8%;
    text-align: center;
    color: white;
}

.page-header h1{
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.page-header p{
    font-size: 18px;
    margin: 0;
    color: #ffeaea;
}

/* ===============================
   SECTION
================================ */

.product-section{
    padding: 85px 8%;
}

.bg-soft{
    background: #f8f8f8;
}

/* ===============================
   PRODUCT
================================ */

.product-grid{
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 22px;
}

.product-card{
    background: white;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0,0,0,0.10);
    transition: 0.3s ease;
    position: relative;
}

.product-card:hover{
    transform: translateY(-8px);
    box-shadow: 0 18px 38px rgba(0,0,0,0.15);
}

.product-card img{
    width: 100%;
    height: 160px;
    object-fit: contain;
    padding: 15px;
    background: #f8f8f8;
    transition: 0.4s ease;
}

.product-card:hover img{
    transform: scale(1.08);
}

.product-content{
    padding: 22px;
    text-align: center;
}

.product-content h3{
    color: #800000;
    font-size: 20px;
    font-weight: 800;
    margin: 0;
}

/* ===============================
   PRODUCT MODAL
================================ */

.product-modal{
    border: none;
    border-radius: 22px;
    overflow: hidden;
}

.product-modal .modal-header{
    background: linear-gradient(90deg,#7a0000,#990000);
    color: white;
    padding: 20px 28px;
}

.product-modal .modal-title{
    font-weight: 800;
    letter-spacing: 0.5px;
}

.product-detail{
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 25px;
}

.product-detail-image{
    flex: 1;
    background: #f8f8f8;
    border-radius: 18px;
    padding: 25px;
}

.product-detail-image img{
    width: 100%;
    max-height: 420px;
    object-fit: contain;
}

.product-detail-info{
    flex: 1;
}

.product-detail-info h2{
    color: #800000;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 15px;
}

.product-divider{
    width: 70px;
    height: 4px;
    background: #800000;
    border-radius: 10px;
    margin-bottom: 22px;
}

.product-detail-info p{
    color: #555;
    font-size: 16px;
    line-height: 30px;
    text-align: justify;
}

/* ===============================
   SERVICE
================================ */

.service-grid{
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 22px;
}

.service-card{
    background: white;
    border-radius: 22px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: 0 10px 28px rgba(0,0,0,0.08);
    transition: 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg,#7a0000,#b30000);
}

.service-card:hover{
    transform: translateY(-8px);
    box-shadow: 0 18px 38px rgba(0,0,0,0.15);
}

.service-card img{
    width: 100%;
    height: 185px;
    object-fit: contain;
    margin-bottom: 20px;
    transition: 0.3s ease;
}

.service-card:hover img{
    transform: scale(1.08);
}

.service-card h3{
    color: #800000;
    font-size: 18px;
    font-weight: 800;
    margin: 0;
}

/* ===============================
   EMPTY DATA
================================ */

.empty-text{
    grid-column: 1 / -1;
    text-align: center;
    font-size: 20px;
    color: #777;
    background: white;
    padding: 35px;
    border-radius: 18px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.08);
}

/* ===============================
   RESPONSIVE
================================ */

@media(max-width: 992px){

    .product-grid,
    .service-grid{
        grid-template-columns: repeat(2,1fr);
    }

    .product-detail{
        flex-direction: column;
        text-align: center;
    }

    .product-divider{
        margin: 0 auto 22px;
    }

    .product-detail-info p{
        text-align: center;
    }
}

@media(max-width: 768px){

    .page-header{
        padding: 90px 6%;
    }

    .page-header h1{
        font-size: 36px;
    }

    .product-section{
        padding: 60px 6%;
    }

    .product-grid,
    .service-grid{
        grid-template-columns: 1fr;
    }

    .product-card img{
        height: 220px;
    }

    .product-detail-info h2{
        font-size: 24px;
    }
}

/* ===============================
   RESPONSIVE VISITOR - PRODUCT
================================ */

@media(max-width: 768px){

    .page-header{
        padding: 85px 6%;
    }

    .page-header h1{
        font-size: 32px;
        line-height: 1.3;
    }

    .page-header p{
        font-size: 15px;
    }

    .product-section{
        padding: 60px 6%;
    }

    .product-grid,
    .service-grid{
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .product-card{
        border-radius: 18px;
    }

    .product-card img{
        height: 170px;
        object-fit: contain;
        padding: 15px;
        background: #f8f8f8;
    }

    .product-content{
        padding: 18px;
    }

    .product-content h3{
        font-size: 18px;
        line-height: 1.4;
    }

    .service-card{
        padding: 25px 20px;
    }

    .service-card img{
        height: 150px;
    }

    .service-card h3{
        font-size: 17px;
    }

    .product-detail{
        flex-direction: column;
        gap: 20px;
        padding: 15px;
    }

    .product-detail-image{
        padding: 15px;
    }

    .product-detail-image img{
        max-height: 260px;
    }

    .product-detail-info h2{
        font-size: 23px;
        text-align: center;
    }

    .product-divider{
        margin: 0 auto 18px;
    }

    .product-detail-info p{
        font-size: 15px;
        line-height: 1.8;
        text-align: left;
    }
}