/* CSS untuk halaman home */
*{
    margin: 0;
    padding: 0;
}
#home{
    background: linear-gradient(rgba(0,0,0,0.5),#009688),url(file_foto/2.webp);
    background-size: cover;
    background-position: center;
    height: 100vh;
}
.logo{
    width: 140px;
    position: absolute;
    top: 4%;
    left: 10%;
}
.homeText{
    text-align: center;
    color: white;
    padding-top: 180px;
}
.homeText h1{
    font-size: 130px;
    font-family: "Kaushan Script", cursive;
}
.homeText p{
    font-size: 20px;
    font-family: "Bebas Neue", sans-serif;
}
.homeButton{
    margin: 70px auto 0;
}
.homeButton a{
    width: 150px;
    text-decoration: none;
    display: inline-block;
    margin: 0 10px;
    padding: 12px 0;
    color: #fff;
    border: .5px solid #fff;
    position: relative;
    z-index: 1;
    transition: color 0.5s;
}
.homeButton a span{
    width: 0;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: #fff;
    z-index: -1;
    transition: 0.5s;
}
.homeButton a:hover span{
    width: 100%;    
}
.homeButton a:hover{
    color: black;
}
#menuNav{
    width: 250px;
    height: 100vh;
    position: fixed;
    right: -250px;
    top: 0;
    background: #009688;
    z-index: 2;
    transition: 0.5s;
}
nav ul li{
    list-style: none;
    margin: 50px 20px;
}
nav ul li a{
    text-decoration: none;
    color: #fff;
    position: relative;
    transition: color 0.3s ease;
}
nav ul li a:hover{
    color: #ffe082; 
}
nav ul li a::after{
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background: #ffe082;
    transition: width 0.3s ease;
}
nav ul li a:hover::after{
    width: 100%;
}
nav ul li a:active{
    color: #ffcc80; 
    transform: scale(0.95); 
    transition: transform 0.1s ease;
}
#menuButton{
    width: 50px;
    height: 50px;
    background: #009688;
    text-align: center;
    position: fixed;
    right: 30px;
    top: 20px;
    border-radius: 3px;
    z-index: 3;
    cursor: pointer;   
}
#menuButton img{
    width: 20px;
    margin-top: 15px;
}

/* CSS untuk menesuaikan tampilan layar halaman 1*/
@media screen and (max-width:770px){
    .homeText h1{
        font-size: 44px;   
    }
    .homeButton a{
        display: block;
        margin: 20px auto;
    }
}

/* css untuk halaman Tentang (2) */
#halamanTentang{
    width: 100%;
    padding: 70px 0;
    background: linear-gradient(to right, #eef2f3, #d9e4f5);
}
.judulText{
    text-align: center;
    padding-bottom: 70px;    
}
.judulText p{
    margin: auto;
    font-size: 20px;
    color: #009688;
    font-weight: bold;
    position: relative;
    z-index: 1;
    display: inline-block;
}
.judulText p::after{
    content: '';
    width: 50px;
    height: 35px;
    background: linear-gradient(#019587,#fff);
    position: absolute;
    top: -20px;
    left: 0;
    z-index: -1;
    transform: rotate(10deg);
    border-top-left-radius: 35px;
    border-bottom-right-radius: 35px;
}
.judulText h1{
    font-size: 50px;
}
.tentangBox{
    width: 80%;  
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    text-align: center; 
}
.tentang{
    flex-basis: 50%;
}
.tentangImg{
    flex-basis: 50%;
    margin: auto;
}
.tentangImg img{
    width: 70%;
    border-radius: 10px;
    outline: 3px solid #009688;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.tentangImg img:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(0,0,0,0.35); 
}
.tentang h1{
    text-align: left;
    margin-bottom: 10px;
    font-weight: 100;
    color: #009688;
    font-family: "Kaushan Script", cursive;
}
.tentangDesc{
    display: flex;
    font-style: italic;
    align-items: center;
    margin-bottom: 40px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.tentangDesc:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.tentangText {
    padding: 0 20px;
    text-align: initial;
    transition: transform 0.3s ease;
}

.tentangDesc:hover .tentangText {
    transform: translateY(-5px);
}
.tentangIcon{
    width: 50px;
    height: 50px;
    line-height: 50px;
    border-radius: 8px;
    color: #009688;
    border: 1px solid #009688;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.4s ease;
}
.tentangDesc:hover .tentangIcon {
    transform: rotate(15deg) scale(1.1);
}
.tentangIcon img{
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
}
/* css untuk mengatur tampilan layar agar fleksibel */
@media screen and (max-width:770px){
    .judulText h1{
        font-size: 35px;  
    }
    .tentang{ 
        flex-basis: 100%;
    }
    .tentangImg{
        flex-basis: 100%;
    }  
    .tentangImg img{
        width: 100%;
    }  
}

/* Halaman Catalog */
#catalog{
    width: 100%;
    padding: 70px 0;
    background: linear-gradient(to left, #eef2f3, #d9e4f5);
}
.catalogBox{
    width: 80%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin: auto;
}
.catalogSingle{
    flex-basis: 48%;
    text-align: center;
    border-radius: 7px;
    margin-bottom: 20px;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.catalogSingle img{
    width: 100%;
    border-radius: 7px;
}
.overlay{
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    border-radius: 7px;
    cursor: pointer;
    background: linear-gradient(rgba(0,0,0,0.5),#009688);
    opacity: 0;
    transition: 1s;
}
.catalogSingle:hover .overlay{
    opacity: 1;
}
.catalogDesc{
    width: 80%;
    position: absolute;
    bottom: 0;
    left: 50%;
    opacity: 0;
    transform: translate(-50%);
    transition: 1s;
}
hr{
    background: #fff;
    height: 2px;
    border: 0;
    margin: 15px auto;
    width: 60%;
}
.catalogDesc p{
    font-size: 14px;
}
.catalogSingle:hover .catalogDesc{
    bottom: 40%;
    opacity: 1;
}
@media screen and (max-width:770px){
    .catalogSingle{
        flex-basis: 100%;
        margin-bottom: 30px;   
    }
    .catalogDesc p{
        font-size: 12px;
    }
    hr{
        margin: 5px auto;
    }
    .catalogSingle:hover .catalogDesc{
        bottom: 25% !important;
    }
}

/* tabel detail produk */
#tabel {
    width: 100%;
    padding: 70px 0;
    background: linear-gradient(to right, #eef2f3, #d9e4f5);
}
.tabelBox {
    width: 90%;            
    max-width: 1200px;      
    margin: 0 auto;          
    overflow-x: auto;
    padding: 0 15px;         
}
.tabelBox table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    overflow: hidden;
}
.tabelBox thead tr{
    background: linear-gradient(90deg, #4e54c8, #8f94fb);
    color: white;
    font-weight: bold;
    font-size: 17px;
}
.tabelBox th, .tabelBox td{
    padding: 16px 20px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}
.tabelBox tbody tr:nth-child(even){
    background-color: #f8f9fc;
}
.tabelBox tbody tr:nth-child(odd){
    background-color: #ffffff;
}
.tabelBox tbody tr:hover{
    background-color: #e4ecff;
    box-shadow: inset 0 0 8px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
}
.tabelBox td:nth-child(4){
    font-weight: bold;
    color: #4e54c8;
    font-size: 1.05em;
}
.tabelBox td.low-stock{
    color: #ff4c4c;
    font-weight: bold;
    background-color: #fff0f0;
    border-radius: 8px;
}

/* feedback */
#feedback {
    padding: 50px 20px;
    background: linear-gradient(to left, #eef2f3, #d9e4f5);
    text-align: center;
  }
  .feedbackBox {
    width: 90%;
    max-width: 600px;
    margin: auto;
  }
  .feedbackBox input,
  .feedbackBox textarea {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 15px;
  }
  .feedbackBox button {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(90deg, #4e54c8, #8f94fb);
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
  }
  .feedbackBox button:hover {
    opacity: 0.85;
  }

/* code untuk footer */
.footer {
    background: #4e54c8;
    color: #fff;
    text-align: center;
    padding: 15px 10px;
    font-size: 14px;
    border-top: 2px solid #8f94fb;
}  
.footer-container{
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.footer-col h4{
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 600;
    position: relative;
}
.footer-col p{
    line-height: 1.6;
    font-size: 14px;
}
.footer-col ul{
    list-style: none;
    padding: 0;
}
.footer-col ul li{
    margin: 10px 0;
}
.footer-col ul li a{
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
}
.footer-col ul li a:hover{
    color: #ffe082;
}
.social-links a{
    display: inline-block;
    margin-right: 15px;
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
}
.social-links a:hover{
    color: #ffe082;
}
.footer-bottom{
    text-align: center;
    margin-top: 30px;
    font-size: 14px;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 15px;
}  