body {
    font-family: "Inter", sans-serif;
    margin: 0;
}

html {
    scroll-behavior: smooth;
}

*,
*::after,
*::before {
    box-sizing: border-box;
}

:root {
    --blue-color: #4d5bf9;
    --blue-color-hover: #3e3eff;
    --blue-hover-icon: #2600fc8c;
}

.container {
    max-width: 1024px;
    margin: 0 auto;
}

nav {
    box-shadow: 0 4px 40px -8px rgba(0, 0, 0, 0.3);
    position: fixed;
    left: 0;
    right: 0;
    z-index: 400;
    background-color: #ffff;
    padding: 16px 30px;
    transition: all 900ms ease;
}

nav.scrolled {
    padding: 8px 30px;
}

nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

nav .container a.logo {
    font-size: 24px;
}

nav .container a {
    font-size: 13px;
    text-decoration: none;
    font-weight: bold;
    color: #000;
    text-transform: uppercase;
}
.btn-nav {
  padding: 8px 18px;
  border-radius: 18px;
  background: var(--blue-color);
  display: inline-block;
  text-decoration: none;
  font-weight: bold;
  color: #000;
  text-transform: uppercase;
  transition: all 300ms ease;
}


h2 {
    font-size: 40px;
    font-family: "Poppins", sans-serif;
    margin: 16px 0;
    text-align: center;
}

.sub-heading {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

p {
    line-height: 1.5;
}

h3 {
    line-height: 1.6;
}

section {
    padding: 80px;
}

nav.container a:hover {
    color: #ed2243;
}

nav .menu-items {
    display: flex;
    gap: 36px;
    align-items: center;
}

/* Search Button */
.search-container {
    max-width: 80%;
    margin: 20px auto;
    text-align: center;
}

.search-container input[type=text] {
    padding: 10px;
    width: 50%;
    margin-right: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.search-container button {
    padding: 10px 20px;
    background-color: #5a5a5a;
    color: white;
    border: none;
    cursor: pointer;
}



header {
    padding-top: 120px; /* Sesuaikan dengan tinggi navbar agar konten di bawahnya tidak tertutup */
    padding-bottom: 10px;
}

.combobox-container {
    width: 100%;
    margin-bottom: 20px;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 10px;
}

.combobox-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.combobox-wrapper {
    margin-bottom: 16px;
}



#searchInput {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

/* Styling for the table */
.table-box {
    margin-top: 20px;
}

/* Styling untuk galeri */
.gallery {
    margin: 5px;
    border-radius: 5px;
    border: 1px solid #ccc;
    float: left;
    width: 180px;
}

.modal-dialog {
    max-width: 90%;
}
.modal-body img {
    max-width: 70%; /* Maksimum lebar gambar adalah 80% dari lebar modal */
    height: auto; /* Tinggi gambar disesuaikan secara proporsional */
    display: block; /* Agar gambar berada di tengah */
    margin: 0 auto; /* Memberi margin auto di kiri dan kanan untuk memposisikan gambar di tengah */
}
.gallery:hover {
    border: 1px solid #777;
}

.gallery img {
    width: 100%;
    height: auto;
}

.desc {
    padding: 15px;
}
.desc .model{
    margin-bottom: 2px;
    font-weight: bold;
    text-align: center;
}
.desc .pn{
    margin-bottom: 2px;
    font-size: 13px;
    text-align: center;
}
.desc .vendor{
    margin-bottom: 2px;
    text-align: center;
    font-size: 13px;
}
.vcc {
    color: red;
}
.k-line {
    color: green;
}
.gnd {
    color: black;
}

a {
    text-decoration: none;
    color: #555;
}

.pagination {
    justify-content: center;
    margin-top: 20px;
}





@media only screen and (max-width: 600px) {
    .table-row {
        font-size: 11px;
    }
}

/* Mobile View */
.mobile-menu-items {
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 500;
    height: 100vh;
    width: 100%;
    background: #333;
    flex-direction: column;
    gap: 30px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 300ms ease;
}

.mobile-menu-items.active {
    opacity: 1;
    transform: translateX(0);
}

.mobile-menu-items a {
    text-decoration: none;
    color: #fff;
    font-size: 18px;
}

.mobile-menu-items .close-icon {
    position: fixed;
    top: 10px;
    right: 20px;
    background: rgba(255, 255, 255, 0.03);
    padding: 8px;
    border-radius: 15px;
    cursor: pointer;
    display: flex;
}

.mobile-menu-items .close-icon svg {
    width: 30px;
    color: #fff;
}

nav .menu-icon {
    display: none;
}

/*footer*/

footer{
    background: #efefef;
    color: #000;
    padding-top: 30px;

}


footer .sections{
    display: flex;
    gap: 50px;
    justify-content: space-between;
}
footer .section{
    flex: 1;
}

footer h3{
    margin-top: 0;
}
footer ul{
    padding: 0;
    list-style: none;
}
footer ul li{
    margin:  12px 0;
}
footer ul li a{
    color: #000;
    text-decoration: none;
}

.socials {
    display: flex;
    justify-content: center; /* Mengatur agar konten di tengah */
}

.socials a {
    margin-right: 10px; /* Jarak antar link */
}

footer .socials img{
    height: 35px;
    transition:  all 300ms ease;
}
footer .socials img:hover{
    transform:  scale(1.1);
}

footer .copyright{
    background: #000;
    color: #fff;
    padding: 18px;
    margin-top: 30px;

}

/* Smartphone */
@media (max-width: 800px) {
    nav .menu-items {
        display: none;
    }

    nav .menu-icon {
        display: block;
    }

    nav .menu-icon svg {
        width: 30px;
        display: flex;
    }

   
    h2 {
        font-size: 30px;
    }

    section {
        padding-inline: 30px;
    }

    .combobox-container {
        width: 100%;
        margin: 10px auto;
        padding: 10px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        text-align: center;
    }

    #manufactureSelect {
        width: calc(100% - 24px);
        margin-bottom: 10px;
        padding: 8px 12px;
        font-size: 14px;
        border: 1px solid #ccc;
        border-radius: 4px;
        background-color: #fff;
        background-repeat: no-repeat, no-repeat;
        background-position: right 8px center, right 12px center;
        cursor: pointer;
    }

    #searchInput {
        width: calc(100% - 24px);
        margin-bottom: 10px;
        padding: 10px;
        font-size: 14px;
        border: 1px solid #ccc;
        border-radius: 4px;
        box-sizing: border-box;
    }

    .table-box {
        width: 100%;
        margin: 10px auto;
        overflow-x: auto;
    }

    .gallery {
        width: 100%;
        margin: 10px 0;
    }
    .odd .td{
        font-size: 8px;
    }

    footer .sections{
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    footer .socials{
        justify-content: center;
    }


}
