.container-product {
    min-height: 80vh;
    padding-top: 100px;
}

.galeri img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.galeri{
    padding-top: 100px;
    height: auto;
    background-color: #ededed;
}

.struktur{
    margin-top: 8em;
    margin-bottom: 2em;
}

.img-container{
    justify-content: center;
    text-align: center;
}
.img-container img{
    width: 50%;
    height: auto;

}

.additional {
    text-align: center;
    padding: 50px 20px;
    background-color: #f9f9f9;
}

.card-products {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.cards {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 250px;
}

.cards img {
    max-width: 100%;
    border-radius: 8px;
}

.cards p {
    margin-top: 10px;
    font-size: 16px;
    font-weight: bold;
}

.cards:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}

.judul-text {
    text-align: center;
    margin-bottom: 1em;
    font-family: 'Trebuchet MS', Arial, sans-serif;
}

.carousel-control-prev, .carousel-control-next {
    width: 5%;
}

.main {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.main .card {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 400px;
    max-height: fit-content;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease-in-out;
}

.main .card:hover {
    transform: translateY(-5px);
}

.main .card .card-image {
    width: 100%;
    height: 200px;
    border-bottom: 1px solid #ddd;
    overflow: hidden;
}

.main .card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.main .card .card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.main .card .card-title {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.main .card .card-description {
    font-size: 1em;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.main .card .card-footer {
    padding: 10px 15px;
    border-top: 1px solid #ddd;
    font-size: 0.9em;
    color: #999;
    display: flex;
    justify-content: space-evenly;
}

/* Container utama */
.container-product {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

/* Styling untuk setiap section */
.color-options,
.materials-list {
    text-align: center;
    margin-top: 40px;
}

/* Styling untuk panel dan frame */
.panels,
.frame {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

/* Kotak untuk panel dan frame */
.panel-color-box,
.frame-box {
    text-align: center;
    background: #f8f8f8;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

/* Efek hover biar lebih interaktif */
.panel-color-box:hover,
.frame-box:hover,
.material-item:hover {
    transform: scale(1.1);
}

/* Gambar */
.panel-color-box img,
.frame-box img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 8px;
}

/* Text di bawah gambar */
.panel-color-box p,
.frame-box p {
    font-size: 14px;
    font-weight: 500;
    margin-top: 10px;
    color: #333;
}

.materials-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 kolom */
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

/* Item material */
.material-item {
    text-align: center;
    background: #f8f8f8;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

/* Hover efek */
.material-item:hover {
    transform: scale(1.1);
}

/* Gambar */
.material-item img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 8px;
}

/* Text di bawah gambar */
.material-item p {
    font-size: 14px;
    font-weight: 500;
    margin-top: 10px;
    color: #333;
}

/* Styling Section */
.panel-options {
    text-align: center;
    margin: 40px 0;
}

.panel-options h2 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

/* Grid Panel */
.sandwich-panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    /* Responsive */
    gap: 20px;
    justify-content: center;
}

/* Panel Box */
.panel-box {
    position: relative;
    background: #f8f8f8;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease-in-out;
    overflow: hidden;
}

/* Hover efek utama */
.panel-box:hover {
    transform: scale(1.05);
}

/* Gambar Panel */
.panel-box img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 8px;
    transition: opacity 0.3s ease;
}

/* Nama Panel */
.panel-box p {
    font-size: 14px;
    font-weight: 500;
    margin-top: 10px;
    color: #333;
}

/* Bagian spesifikasi (default hidden) */
.panel-box .material-spec {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    padding: 15px;
    text-align: center;
    border-radius: 10px;
    pointer-events: none;
}

/* Hover: Munculkan spesifikasi */
.panel-box:hover .material-spec {
    opacity: 1;
    pointer-events: auto;
}

/* Hilangkan gambar dan nama saat hover */
.panel-box:hover img,
.panel-box:hover>p {
    opacity: 0;
}

/* Styling teks dalam material-spec */
.material-spec h4 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
}

.material-spec p {
    color: white;
    font-size: 12px;
    margin: 2px 0;
    line-height: 1.4;
}



/* Responsif */
@media (max-width: 768px) {
    .panels,
    .frame,
    .materials-container {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .panel-color-box img,
    .frame-box img,
    .material-item img {
        width: 80px;
        height: 80px;
    }

    .carousel-inner .row {
        display: flex;
        flex-wrap: wrap;
        margin-left: 0.5em;
        margin-right: 0.5em;
        
    }
    .carousel-inner .col-md-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    

    
}


@media (max-width: 480px) {
    .judul-text {
        font-size: 18px;
    }

    .col-md-4 img {
        width: 90%;
    }
}
