*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    font-family: Arial, sans-serif;
}

.navbar {
    padding: 0.5rem 1rem;
    background-color: #394034 !important;
    max-width: 100vw;
    overflow-x: hidden;
}

.navbar > .container,
.navbar > .container-fluid {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
}

.navbar-brand {
    margin-right: auto !important;
    white-space: nowrap;
    flex-shrink: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60%;
}

.navbar-toggler {
    flex-shrink: 0;
    margin-left: 1rem;
    color: rgba(255, 255, 255, 0.75);
    border-color: rgba(255, 255, 255, 0.2);
}

.navbar-dark .navbar-brand,
.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9);
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
    color: #D78325;
}

.navbar-dark .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-collapse {
    flex-basis: 100%;
    flex-grow: 1;
    align-items: center;
}

.navbar-nav .nav-link {
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.btn-profile:hover, .btn-cart:hover {
    background-color: #D78325 !important;
    border-color: #D78325 !important;
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    height: 40px;
    width: 100%;
    color: white;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 0.5rem;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    font-weight: 600;
}

.btn-auto {
    width: auto;
}

.btn-icon {
    width: auto;
    min-width: 40px;
}

.btn-primary {
    background-color: #D78325;
    border-color: #D78325;
    color: white;
}

.btn-primary:hover {
    background-color: #394034;
    border-color: #394034;
    color: white;
}

.btn-danger {
    background-color: #d72525;
    border-color: #d72525;
    color: white;
}

.btn-checkout {
    width: 100%;
    margin: 0 0 10px 0;
}

.btn-login {
    width: 100%;
    margin: 20px 0 10px 0;
}

.btn-view-product, .btn-popup {
    margin-bottom: 10px;
}

.btn-kirim-pesan {
    background-color: #D78325;
    color: white;
}

.btn-kirim-pesan:hover {
    background-color: #394034;
    color: white;
}

.plus-btn, .minus-btn {
    cursor: pointer;
    font-size: 20px;
    border-radius: 50%;
    background-color: #D78325;
    border: none;
    margin: 0 0.5rem;
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
}

.plus-btn:hover, .minus-btn:hover {
    background-color: #394034;
    color: white;
}

.emaill, .passwordd {
    padding-left: 15px;
    padding-bottom: 5px;
    text-align: left;
}

.email, .password {
    width: 100%;
    height: 40px;
    margin: 0 0 15px 0;
    font-size: 14px;
}

.quantity-input {
    width: 60px;
    height: 3rem;
    text-align: center;
}

.banner {
    background: url('./images/banner.png') no-repeat right center;
    background-size: 50% auto;
    padding: 15vh 5%;
    text-align: left;
    display: flex;
    align-items: center;
    min-height: 450px;
}

.banner .container {
    width: 50%;
    margin-left: 0;
    padding-right: 1rem;
}

h4 {
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-size: 2.5rem;
    font-weight: bold;
    color: white;
}

h1 {
    font-size: 1.25rem;
}

.menu, .about, .kontak, .footer {
    padding: 50px 0;
}

.about {
    background-color: #99847D;
}

.kontak {
    background-color: #935831;
    color: white;
}

.footer {
    background-color: #394034;
    padding-top: 25px;
    padding-bottom: 25px;
}

.card-image {
    height: 200px;
    padding: 5px;
    object-fit: cover;
}

.crop-img img, .gmbr-popup {
    object-fit: contain;
    max-width: 100%;
    height: auto;
}

.img-cart {
    height: 60px;
    width: 60px;
    margin-left: 5px;
}

.img-about {
    margin: 0 auto 20px auto;
    display: block;
    max-width: 80%;
}

.modal-footer {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.lingkaran {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    color: #fff;
    background-color: #E5DCD3;
}

.album {
    height: auto;
    width: 100%;
    padding: 10px;
    transition: transform 0.3s ease;
}

.gallery-item {
    overflow: hidden;
}

.gallery-item:hover .album {
    transform: scale(1.1);
}

.custom-file-upload-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.custom-file-upload-foto img {
    border-radius: 50%;
    width: 90px;
    height: 90px;
    margin: 1rem 0;
}

.custom-file-upload-foto p {
    margin-bottom: 1rem;
}

.custom-file-upload input[type="file"] {
    display: none;
}

.custom-file-upload label {
    display: inline-block;
    background-color: #3498db;
    color: #fff;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    border: none;
}

.custom-file-upload label:hover {
    background-color: #2980b9;
}

.link-logout a {
    color: red;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem;
}

.link-logout a:hover {
    color: #800000;
}

.history-icon {
    margin: 0 10px;
}

.offcanvas-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 991.98px) {
    .navbar > .container,
    .navbar > .container-fluid {
        flex-wrap: wrap;
    }
    .navbar-collapse {
        flex-basis: 100%;
        margin-top: 1rem;
    }
    .navbar-nav {
        width: 100%;
        align-items: center;
    }
}

@media (max-width: 576px) {
    .navbar-toggler {
        margin-left: 0;
    }
    .navbar-brand {
        flex-shrink: 0;
        max-width: 60%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

@media (min-width: 768px) {
    .banner h4 {
        font-size: 3.5rem;
    }
    .banner h1 {
        font-size: 2rem;
    }
    .card-image {
        height: 250px;
    }
    .img-cart {
        height: 80px;
        width: 80px;
    }
}

@media (min-width: 992px) {
    .email, .password {
        width: 60%;
        margin: 0 0 20px 90px;
    }
    .btn-login {
        width: 60%;
        margin: 30px 0 10px 90px;
    }
    .btn-checkout {
        width: 90%;
        margin: 0 0 10px 25px;
    }
    .img-cart {
        height: 100px;
        width: 100px;
        margin-left: 20px;
    }
    .banner {
        background: url('./images/banner.png') no-repeat right center;
        background-size: contain;
        padding-top: 5%;
        padding-bottom: 5%;
        min-height: auto;
    }
    .banner .container {
        width: 100%;
        margin-left: auto;
    }
    h4 {
        font-size: 100px;
    }
    h1 {
        font-size: 1.5rem;
    }
    .card-image {
        height: 350px;
    }
}

.custom-image-wrapper {
    width: 100%;
    max-width: 380px;
    height: 250px;
    background-image: url('./images/khaira.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 0.5s ease-in-out;
    opacity: 0;
    animation: fadeIn 0.8s forwards;
}

.caption-small {
    font-size: 0.75rem;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

