@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');

.nav-buttons{
    margin-left: 50%;
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    font-family: 'Poppins', sans-serif;
}

h1{
    font-size: 2.5rem;
    font-weight: 700;
}

h2{
    font-size: 1.8rem;
    font-weight: 600;
}

h3{
    font-size: 1.5rem;
    font-weight: 800;
}

h4{
    font-size: 1.2rem;
    font-weight: 600;
}

h5{
    font-size: 1rem;
    font-weight: 400;
}

h6{
    color: #d8d8d8;
}

button{
    font-size: 0.8rem;
    font-weight: 900;
    outline: none;
    border: none;
    background-color: black;
    color: aliceblue;
    padding: 13px 30px;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.5s ease;
}

button:hover{
    background-color: grey;
}

.navbar{
    font-size: 16px;
    padding-top: 1rem !important;
    padding-bottom: 1rem !important ;
    top: 0;
    left: 0;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

.navbar-light .navbar-nav .nav-buttons{
    padding: 0 20px;
    color: black;
    transition: 0.4s ease;
}

.navbar-nav .nav-item {
    margin-right: 20px; 
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar i:hover,
.navbar-light .navbar-nav .nav-link.active
.navbari i:hover{
    color: #D4AF37;
}

.nav-buttons i {
    font-size: 20px; 
    margin-left: 15px; 
    cursor: pointer; 
}

@media only screen and (max-width:990px){

    .nav-buttons{
        margin: 10px;
    }

    .nav-buttons ul{
        margin: 1rem;
        justify-content: flex-start;
        align-items: flex-start;
        text-align: left;
    }

    .nav-buttons i {
        margin-right: 15px;
    }
}

#home{
    background-image: url('../imgs/bcg.jpg');
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-position-x: 200px;
    background-position-y: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

#home span{
    color: lightskyblue;
}

#home div {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    text-align: left;
    color: grey;
}

#home span{
    color: red;
}

#new .one img{
    width: 90%;
    height: 90%; 
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

#new .one{
    position: relative;
}

#new .one .details{
    position: absolute;
    top: 0;
    left: 0;
    color: lightblue;
    font-weight: bold;
    transition: 0.4s ease;
    opacity: 0.8;
    background-color: rgb(1, 1, 1);
    width: 100%;
    height: 100%;
}

#new .one .details:hover{
    background-color: darkgoldenrod;
}

#new .one:nth-child(1) .details{
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: flex-start;
    text-align: start;
}

#new .one:nth-child(2) .details{
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

#new .one:nth-child(3) .details{
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: flex-end;
    text-align: end;
}

/*Product*/

.product{
    cursor: pointer;
    margin-bottom: 2rem;
}

.product img{
    transition: 0.3s all;
    width: 100%; /* Agar gambar mengikuti ukuran div parent */
    height: 500px; /* Tentukan tinggi tetap */
    object-fit: cover; /* Memastikan gambar tetap proporsional */
}

#search{
    position: fixed;
    left: 0;
    top: -50px;
    float: left;
          
}

.product:hover img{
    opacity:0.7;
}

.product .buy-btn{
    background-color: goldenrod;
    transform: translateY(50px);
    opacity: 0;
    transition: 0.3s all;
    color: #fff;
}

.shop-buy-btn{
    background-color: goldenrod;
    opacity: 1;
    color: #fff;
    text-decoration: none;
}



.product:hover .buy-btn{
    transform:translateY(0px);
    opacity: 1;
}


hr{
    width: 30px;
    height: 3px !important;
    opacity: 1 !important;
    background-color: goldenrod;
}

.star{
    padding: 10px 0;
}

.star i{
    font-size: 0.9rem;
    color: goldenrod;
}

#banner{
    background-image: url('../imgs/bcg.jpg');
    width: 100%;
    height: 60vh;
    background-size: cover;
    background-position-x: center;
    background-position-y: 80px;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

#banner h1{
    color: #222222;
}

#banner h4{
    color: #222222;
}

footer{
    background-color: #222222;
}

footer h5{
    color: #d8d8d8;
    font-weight: 700;
    font-size: 1.2rem;
}

footer li{
    padding-bottom: 4px;
}

footer li a{
    font-size: 0.8 rem;
    color: #999;
    text-decoration: none;
}

footer li a:hover{
    color: #d8d8d8;
}

footer .copyright a{
    color: #000;
    height: 40px;
    width: 40px;
    background-color: #fff;
    display: inline-block;
    text-align: center;
    line-height: 38px;
    border-radius: 50%;
    transition: 0.3s ease;
    margin: 0 5px;
}

footer .copyright a:hover{
    color: #fff;
    background-color: goldenrod;
}

footer p{
    color: #fff;
}

footer .copyright img{
    width: 30%;
}

.logo{
    width: 50px;
    height: 50px;
}

.navbar .brand{
    color: goldenrod;
    margin: 3px 5px;
    font-size: 1.5rem;
}

.small-img-group{
    display: flex;
    justify-content: space-between;
}

.small-img-col{
    flex-basis: 24%;
    cursor: pointer;
}

.single-product input{
    width: 50px;
    height: 40px;
    padding-left: 10px;
    font-size: 16px;
    margin-right: 10px;
}

.single-product input:focus{
    outline: none;
}

.single-product .buy-btn{
    background-color: goldenrod;
    opacity: 1;
    transition: 0.4s all;
}

.single-product .buy-btn:hover{
    background-color: #222222;
}

/*Cart*/
.cart table{
    width: 100%;
    border-collapse: collapse;
}

.cart .product-info{
    display: flex;
    flex-wrap: wrap;
}

.cart th{
    text-align: left;
    padding: 5px 10px;
    color: #fff;
    background-color: goldenrod;
}

.cart td{
    padding: 10px 20px;
}

.cart td img{
    width: 80px;
    height: 80px;
    margin-right: 10px;
}

.cart td input{
    width: 40px;
    height: 30px;
    padding: 5px;
}

.cart td a{
    color: goldenrod;
}

.cart .remove-btn{
    color: goldenrod;
    text-decoration: none;
    font-size: 14px;
    background-color: #fff;
    border: none;
    width: 100%;
}

.cart .edit-btn{
    color: goldenrod;
    text-decoration: none;
    font-size: 14px;
    background-color: #fff;
    border: none;
}

.cart .product-info p{
    margin: 3px;
}

.cart-total{
    display: flex;
    justify-content: flex-end;
}

.cart-total table{
    width: 100%;
    max-width: 500px;
    border-top: 3px solid goldenrod;
}

td:last-child{
    text-align: right;
}

th:last-child{
    text-align: right;
}

.checkout-container{
    display: flex;
    justify-content: flex-end;
}

.checkout-btn{
    background-color: #D4AF37;
    color: #fff;
}

/*Login*/
#login-form{
    width: 50%;
    margin: 5px auto;
    text-align: center;
    padding: 20px;
    border-top: 1px solid goldenrod;
}

#login-form input{
    width: 50%;
    margin: 5px auto;
}

#login-form #login-btn{
    background-color: goldenrod;
    color: #fff;
}

#login-form #register-url{
    color: goldenrod;
}

/*Register*/
#register-form{
    width: 50%;
    margin: 5px auto;
    text-align: center;
    padding: 20px;
    border-top: 1px solid goldenrod;
}

#register-form input{
    width: 50%;
    margin: 5px auto;
}

#register-form #register-btn{
    background-color: goldenrod;
    color: #fff;
}

#register-form #login-url{
    color: goldenrod;
}

/*Account*/
#account-form{
    width: 50%;
    margin: 35px auto;
    text-align: center;
    padding: 20px;
}

#account-form input{
    margin: 5px auto;
}

#account-form #change-pass-btn{
    color: #fff;
    background-color: goldenrod;
}

.account-info #orders-btn,#logout-btn{
    color: goldenrod;
    text-decoration: none;
}

/*Orders*/
.orders table{
    width: 100%;
    border-collapse: collapse;
}

.orders .product-info{
    display: flex;
    flex-wrap: wrap;
} 

.orders th{
    padding: 5px 10px;
    color: #fff;
    background-color: goldenrod;
    /* text-align: left; */
}

.orders th:nth-child(2){
    /* text-align: right; */
}

.orders td{
    padding: 10px 20px;
}

.orders td img{
    width: 80px;
    height: 80px;
    margin-right: 10px;
}

.orders .order-details-btn{
    color: #fff;
    background-color: #D4AF37;

}

/*Check Out*/
#checkout-form .checkout-small-element{
    display: inline-block;
    width: 48%;
    margin: 10px auto;
}

#checkout-form .checkout-large-element{
    width: 95%;
}

#checkout-form .checkout-btn-container{
    margin: 10px;
    text-align: right;
    margin-right: 40px;
}

#checkout-form #checkout-btn{
    color: #fff;
    background-color: goldenrod;
}

/*Contact*/
#contact span{
    color: goldenrod;
}

.cart-quantity{ 
    background-color: goldenrod; 
    color: #fff; 
    padding: 2px 5px; 
    border-radius: 50%; 
    margin: -5px; 
    font-size: 1rem; 
}

/* Contact Page Styling */
.contact-info-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.contact-icon {
    margin-bottom: 1rem;
}

.contact-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

.contact-address {
    font-style: normal;
    line-height: 1.6;
    color: #666;
}

/* Contact Form Styling */
.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.form-control, .form-select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Social Media Links */
.social-media-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.social-link {
    text-align: center;
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-link:hover {
    color: #007bff;
    transform: translateY(-3px);
    text-decoration: none;
}

.social-link span {
    font-size: 0.9rem;
    font-weight: 500;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    background: #25D366;
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
}

.whatsapp-btn:hover {
    background: #128C7E;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    text-decoration: none;
}

.whatsapp-btn i {
    font-size: 1.5rem;
    margin-right: 8px;
}

.whatsapp-text {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .social-media-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .whatsapp-btn {
        padding: 10px 15px;
    }
    
    .whatsapp-text {
        display: none;
    }
    
    .contact-form {
        padding: 1rem;
    }
}

/* HR Styling */
hr.mx-auto {
    width: 60px;
    height: 3px;
    background-color: goldenrod;
    border: none;
    margin: 1rem auto 2rem auto;
}