:root {
    --primary: #8B4513;
    --bg : #f7e8dd;
}
html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    border: none;
    text-decoration: none;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg);
    color: #fff;
    /* min-height: 5000px; */
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.4rem 7%;
    background-color: rgba(212, 89, 32, 0.8);
    border-bottom: 1px solid #8B4513;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
}

.navbar .navbar-logo {
    font-size: larger; /*yang dirubah*/
    font-weight: 7000;
    color: #fff;
    font-style: italic;
   
}

.navbar .navbar-logo span{
    color: rgba(0, 0, 0, 0.551);
}

.navbar .navbar-nav a {
    color: #fff;
    display: inline-block;
    font-size: 1.1rem;
    margin: 0 1rem;
}

.navbar .navbar-nav a:hover {
    color: var(--primary);
}

.navbar .navbar-nav a::after {
    content: '';
    display: block;
    padding-bottom: 0.5rem;
    border-bottom: 0.1rem solid var(--primary);
    transform: scaleX(0);
    transition: 0.2s linear;
}

.navbar .navbar-nav a:hover::after {
    transform: scaleY(0.5);
}

.navbar .navbar-extra a {
    color: #fff;
    margin: 0 0.5rem;
}

.navbar .navbar-extra a:hover {
    color: var(--primary);
}
/* navbar search form*/
.navbar .search-form {
    position: absolute;
    top: 100%;
    right: 7%;
    background-color: #ffffff;
    width: 40rem;
    height: 3rem;
    display: flex;
    align-items: center;
    transform: scaleY(0);
    transform-origin: top;
    transition: 0.3s;
}

.navbar .search-form.active{
    transform: scaleY(1);
}

.navbar .search-form input {
    height: 100%;
    width: 100%;
    font-size: 1rem;
    color: #000000;
    padding: 1rem;
}

.navbar .search-form label {
    cursor: pointer;
    font-size: 2rem;
    margin-right: 1.5rem;
    color: #000000;
}
/* shopping card */
/* .shopping-cart {
    position: absolute;
    top: 100%;
    right: -100%;
    height: 100vh;
    width: 25rem;   
    padding: 0 1.5rem;
    background-color: #fff;
    color: black;
    transition: 0.3s;
}
.shopping-cart.active{
    right: 0;
}
.shopping-cart .cart-item {
    margin: 2rem 0;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed #666;
    position: relative;
}
.shopping-cart img {
    height: 6rem;
    border-radius: 50%;
}
.shopping-cart h3 {
    font-size: 1.6rem;
    padding-bottom: 0.5rem;
}
.shopping-cart .item-price {
    font-size: 1.2rem;
}
.shopping-cart .remove-item {
    position: absolute;
    right: 1rem;
    cursor: pointer;
}
.shopping-cart .remove-item:hover {
    color: var(--primary);
} */
.cart {
    display: none;
    position: fixed;
    right: 0;
    top: 80px;
    width: 300px;
    background-color: white;
    border: 2px solid #ccc;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    z-index: 1000;
}
.cart h2 {
    margin-top: 0;
    color: #000000;
}
.cart-items-container {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 5px;
    color: #000000;
}
.total {
    color: #000000;
}
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
}
.cart-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
}
.cart-item-details {
    flex-grow: 1;
    margin-left: 10px;
}
.cart-item-details h3 {
    margin: 0;
    font-size: 1em;
}
.cart-item-details p {
    margin: 5px 0 0;
    font-size: 0.9em;
    color: #555;
}
.quantity-controls {
    display: flex;
    align-items: center;
}
.quantity-controls button {
    background-color: #A0522D;
    color: white;
    border: none;
    padding: 5px;
    cursor: pointer;
}
.quantity-controls button:hover {
    background-color: #8B4513;
}
.quantity-controls input {
    width: 30px;
    text-align: center;
    border: 1px solid #ccc;
    margin: 0 5px;
}
.delete-btn {
    background-color: #ff4d4d;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
}
.delete-btn:hover {
    background-color: #ff1a1a;
}
.checkout-form {
    margin-top: 20px;
}
.checkout-form input {
    width: 100%;
    padding: 10px;
    margin: 5px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}
.checkout-btn {
    background-color: #A0522D;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1em;
    cursor: not-allowed; 
    display: block;
    margin: 20px auto 0;
    opacity: 0.5; 
}
.checkout-btn.active {
    cursor: pointer; 
    opacity: 1; 
}
.checkout-btn:hover {
    background-color: #8B4513;
}
.total {
    text-align: right;
    font-size: 1.2em;
    margin-top: 10px;
}
.badge {
    position: absolute;
    top: 7px;
    right: 100px;
    background-color: red;
    color: white;
    border-radius: 50%;
    padding: 5px 10px;
    font-size: 0.6rem;
    display: none;
}
#menu {
    display: none;
}

/* checkout form */
/* .form-container {
    width: 100%;
    display: flex;
    color: #000000;
    justify-content: center;
    border-top: 1px dashed black;
    margin-top: 1rem;
    padding: 1rem;
}

.form-container h5 {
    text-align: center;
    font-size: 1rem;
}

.form-container form {
    width: 100%;
    text-align: center;
}
.form-container label {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 1rem 0;
}
.form-container span {
    text-align: right;
}
.form-container input {
    background-color: #ddd;
    padding: 20px;
    font-size: 1rem;
    width: 80%;  
}
.form-container .checkout-button {
    padding: 6px 14px;
    background-color: royalblue;
    color: white;
    font-weight:  bold;
    font-size: 1rem;
    border-radius:  20px;
    margin: 1rem auto;
    cursor: pointer;
} */
/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-image: url('./img/bg.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    position: relative;

}
/* gradasi item*/
.hero::after {
    content: '';
    display: block;
    position: absolute;
    width: 100%;
    height: 10%;
    bottom: 0;
    background: linear-gradient(0deg,rgba(1,1,3,1)9%,rgba(255,255,255,0)57%);
}
/* bagian nama tengah gambarnya */
.hero .content {
    padding: 1.4rem 7%;
    max-width: 60rem;
}

.hero .content h1 {
    font-size: 5em;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(1,1,3,0.5);
    line-height: 1.1;
}

.hero .content h1 span {
    color: var(--primary);
}
/* paragrafnya */
.hero .content p {
    font-size: 1.6rem;
    margin-top: 1rem;
    line-height: 1.4;
    font-weight: 300;
    text-shadow: 1px 1px 3px rgba(1,1,3,0.5);
    mix-blend-mode: difference;
}
/* tombol Buy nya */
.hero .content .cta {
    margin-top: 1rem;
    display: inline-block;
    padding: 1rem 3rem;
    font-size: 1.4rem;
    color: #fff;
    background-color: var(--primary);
    border-radius: 0.5rem;
    box-shadow: 1px 1px 3px rgba(1,1,3,0.5);

}
/* About Section  */
.about,
.contact {
    /* menus */
    padding: 6rem 7% 1.4rem;
}


.about h2, 
.contact h2 {
    text-align: center;
    font-size: 2.4rem;
    margin-bottom: 2rem;
    color: #000000;
}

/* .menus h2 {
    text-align: center;
    font-size: 2.4rem;
    margin-bottom: 1rem;
    color: #000000;
} */

.about h2 span,
.contact h2 span {
    /* menus */
    color: var(--primary); 
}

.about .row {
    display: flex;
}

.about .row .about-img {
    flex: 1 1 45rem;

}
.about .row .about-img img {
    width: 100%;
    

}

.about .row .content {
    flex: 1 1 35rem;
    padding: 0 1rem;

}

.about .row .content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #000000;
}

.about .row .content p {
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    font-weight: 100;
    line-height: 1.6;
    color: #000000;
}

/* Map */
.map-body {
    
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 70vh;
}
.form-container h1 {
    color: #000000;
}
.container {
    display: flex;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    width: 90%;
    max-width: 1200px;
    height: auto; /* Menyesuaikan tinggi elemen */
}
.form-container {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 50%;
}
.form-container h1 {
    font-family: 'Dancing Script', cursive;
    font-size: 36px;
    margin-bottom: 20px;
}
.form-container input, .form-container select {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}
.form-container input[type="date"] {
    padding-right: 40px;
}
.form-container button {
    background-color: #ffc107;
    color: #fff;
    padding: 15px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}
.form-container button:hover {
    background-color: #e0a800;
}
.map-container {
    width: 50%;
    height: auto; /* Otomatis menyesuaikan tinggi */
    display: flex;
    align-items: center;
}
.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* menu */
/* .menus p{
    text-align: center;
    color: #000000;
    max-width: 30rem;
    margin: auto;
    font-weight: 100;
    line-height: 1.6;
    font-size: 1.1rem;
}


.menus .product-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin: 0 auto;
    max-width: 1200px; Maksimal lebar untuk kontainer produk
}
.menus .product p {
    color: #000000;
    margin: auto;
    line-height: 1.6;
    max-width: 30rem;
    font-weight: 100;
    font-size: 0.9rem;
}
.menus .product {
    color: #000000;
    font-size: 1rem;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 15px;
    text-align: center;
    margin: 10px;
    width: 200px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.menus .product:hover { */
    /* transform: scale(1.05); Efek zoom saat hover */
/* }

.menus .product img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
} */

/* .menus .product h3 {
    font-size: 1.5em;
    margin: 10px 0;
}


button {
    background-color: #6F4C3E; 
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 1em;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #8f2f05;
} */
.menus {
    padding: 6rem 7% 1.4rem;
}
.menus h2 {
    text-align: center;
    font-size: 2.4rem;
    margin-bottom: 1rem;
    color: #000000;
}
.menus h2 span {
    color: var(--primary);
}
.menus p {
    text-align: center;
    color: #000000;
    max-width: 30rem;
    margin: auto;
    font-weight: 100;
    line-height: 1.6;
    font-size: 1.1rem;
}
.menus .product-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin: 0 auto;
    max-width: 1200px;
}
.menus .product p {
    color: #000000;
    margin: auto;
    line-height: 1.6;
    max-width: 30rem;
    font-weight: 100;
    font-size: 0.9rem;
}
.menus .product {
    color: #000000;
    font-size: 1rem;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 15px;
    text-align: center;
    margin: 10px;
    width: 200px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}
.menus .product:hover {
    transform: scale(1.05);
}
.menus .product img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}
.menus .product h3 {
    font-size: 1.5em;
    margin: 10px 0;
}
button {
    background-color: #6F4C3E;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 1em;
    transition: background-color 0.3s;
}
button:hover {
    background-color: #8f2f05;
}

/* Contact Maps */
.contact .row {
    display: flex;
    margin-top: 2rem;
    background-color: #222;
    
}

.contact .row .map {
    flex: 1 1 45rem;
    width: 100%;
    object-fit: cover;
}

.contact .row form {
    flex: 1 1 45rem;
    padding: 5rem 2rem;
    text-align: center;
}
.contact .row form .input-group {
    display: flex;
    align-items: center;
    margin-top: 2rem;
    background-color: var(--bg);
    border: 1px solid #eee;
    padding-left: 2rem;

}
.contact .row form .input-group input {
    width: 100%;
    padding: 2rem;
    font-size: 1.7rem;
    background: nonen;
}
/* teams */
.team-body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}
/* .title {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 5px;
}
.main-title {
    font-size: 32px;
    color: #343a40;
    margin-bottom: 40px;
    font-weight: bold;
} */
.team {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.team-member {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 10px;
    overflow: hidden;
    width: 250px;
    text-align: center;
    position: relative;
}
.team-member img {
    height: auto;
    transition: opacity 0.3s ease;
    width: 200px; /* Lebar gambar */
    height: 65%; /* Tinggi gambar */
}
.team-member .info {
    padding: 20px;
}
.team-member .name {
    font-size: 18px;
    color: #343a40;
    font-weight: bold;
    margin: 10px 0 5px;
}
.team-member .position {
    font-size: 14px;
    color: #6c757d;
}
.social-icons {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.social-icons a {
    color: #fff;
    margin: 0 5px;
    text-decoration: none;
    font-size: 18px;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 50%;
}
.team-member:hover img {
    opacity: 0.3;
}
.team-member:hover .social-icons {
    opacity: 1;
}
/* footers */
.footers {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #2c3e50;
    color: #ecf0f1;
}
.footer {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 20px;
    background-color: #2c3e50;
    text-align: center;
}
.footer div {
    flex: 1;
}
.footer h3 {
    font-family: 'Cursive', sans-serif;
    font-size: 24px;
    margin-bottom: 10px;
}
.footer p, .footer a {
    font-size: 16px;
    color: #ecf0f1;
    text-decoration: none;
}
.footer a:hover {
    text-decoration: underline;
}
.footer .social-icons a {
    margin: 0 5px;
    color: #ecf0f1;
    font-size: 20px;
}
.footer .social-icons a:hover {
    color: #3498db;
}
.footer .copyright {
    font-size: 14px;
    margin-top: 20px;
}
/* Media Queries */

/* labtop */
@media (max-width: 1366px){
    html{
        font-size: 75%;
    }

}
/* tablet */
@media (max-width: 768px){
    html{
        font-size: 62.5%;
    }
    #menu {
        display: inline-block;
    }  
    
    .navbar .navbar-nav {
        position: absolute;
        top: 100%;
        right: -100%;
        background-color: #fff;
        width: 30rem;
        height: 100vh;
        transition: 0.3s;
    }

    .navbar .navbar-nav.active {
        right: 0;
    }

    .navbar .navbar-nav a{
        color : #000000;
        display: block;
        margin: 1.5rem;
        padding: 0.5rem;
        font-size: 2rem;
    }

    .navbar .navbar-nav a::after {
        transform-origin: 0 0;
    }

    .navbar .navbar-nav a:hover a::after {
        transform: scaleX(0.2)
    }

    .container {
        flex-direction: column;
    }
    .map-container {
        width: 100%;
        height: 300px;
    }
    .form-container {
        width: 100%;
        height: 490px;
    }
    .map-body {
        height: 120vh;
    }
    .team {
        flex-direction: column;
        align-items: center;
    }
    /* buget */
    .badge {
        top: 10px;
        right: 80px;
    }
    .cart {
        top: 55px;
    }
/* menurunkan paragraf yang dari samping sebelahan dengan gambar */
    .about .row { 
        flex-wrap: wrap;
    }

    .about .row .about-img img {
        height:  24rem;
        object-fit: cover;
        object-position: center;

    }

    .about .row .content {
        padding: 0;
    }

    .about .row .content p {
        font-size: 1.6rem;
    }

    .menus p {
        font-size: 1.3rem;
    }

    .footer {
        flex-direction: column;
    }
    .footer div {
        margin-bottom: 20px;
    }
}
/* hp */
@media (max-width: 450px){
    html{
        font-size: 55%;
    }
    /* buget */
    .badge {
        top: 15px;
        right: 65px;
    }
}
