:root {
    --primary: #b6895b;
    --bg: #010101;
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    border: none;
    text-decoration: none;
}

body {
    font-family: poppins;
    background-color: var(--bg);
    color: #fff;
    /* min-height: 3500px; */
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.4rem 7%;
    background-color: rgba(1, 1, 1, 0.8);
    border-bottom: 1px solid var(--primary);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
}

.navbar .navbar-logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    font-style: normal;
}

.navbar .navbar-logo span {
    color: var(--primary);
}

.navbar .navbar-nav a {
    color: #fff;
    display: inline-block;
    font-size: 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.3s linear;
}

.navbar .navbar-nav a:hover::after {
    transform: scaleX(0.8);
}

.navbar .navbar-extra a {
    color: #fff;
    margin: 0 0.5rem;
}

.navbar .navbar-extra a:hover {
    color: var(--primary);
}

#hamburger-menu {
    display: none;
}

/* Navbar search form */
.navbar .search-form {
    position: absolute;
    top: 100%;
    right: 8%;
    background-color: #fff;
    width: 25rem;
    height: 3rem;
    display: flex;
    align-items: center;
    transform: scaleY(0);
    transform-origin: top;
    transition: 0.5s;
    }

    .navbar .search-form.active {
        transform: scaleY(1);
    }

    .navbar .search-form input {
        height: 100%;
        width: 100%;
        font-size: 1.2rem;
        color: var(--bg);
        padding: 0.5rem;
    }

    .navbar .search-form label {
        cursor: pointer;
        font-size: 0;
        margin-right: 1rem;
        color: var(--bg);
    }

    /* Search Cart */
     #shopping-cart-button{
        position: relative;
     }

     #shopping-cart-button .quantity-badge {
        display: inline-block;
        padding: 1px 4px;
        background-color: red;
        border-radius: 5px;
        font-size: 0.8rem;
        position: absolute;
        top: 1;
        right: -4px;

     }

    .shopping-cart {
        position: absolute;
        top: 100%;
        right: -100%;
        height: 100vh;
        width: 25rem;
        padding: 0 1rem;
        color: var(--bg);
        background-color: #fff;
        transition: 0.5s;
    }

    .shopping-cart.active {
        right: 0;
    }

    .shopping-cart .cart-item {
        margin: 1rem 0;
        display: flex;
        align-items: center;
        gap: 1rem;
        padding-bottom: 0.7rem;
        border-bottom: 0.5px dashed #222;
        position: relative;
    }

    .shopping-cart img {
        height: 2rem;
        border-radius: 50%;
    }

    .shopping-cart h3 {
        font-size: 1rem;
       
    }

    .shopping-cart .item-price {
        font-size: 1rem;
    }
     
    .shopping-cart .cart-item #add,
    .shopping-cart .cart-item #remove {
        display: inline-block;
        padding: 2px 5px;
        cursor: pointer;
        margin: 0 5px;
        background-color: black;
        color: white;
        font-weight: bold;
        font-size: 0.8rem;
    }

    .shopping-cart h4 {
        font-size: 1.3rem;
        margin-top: -0.5rem;
        text-align: center;
    }

    /* Checkout Form */
    .form-container {
       width: 100%;
       display: flex;
       justify-content: center;
       border-top:  1px dashed black;
       margin-top: 0.5rem; 
       padding: 0.8rem;
    }

    .form-container h5 {
        text-align: center;
        font-size: 0.8rem;
    }

    .form-container form {
        width: 100%;
        text-align: center;
    }

    .form-container label {
        display: flex;
        justify-content: space-around;
        align-items: center;
        margin: 0.8rem 0;
    }

    .form-container span {
       text-align: right;
    }

    .form-container input {
        background-color: #ddd;
        padding: 2px;
        font-size: 0.8rem;
        width: 55%;
    }

    .form-container .checkout-button {
        background-color: black;
        width: 4.2rem;
        height: 1.3rem;
        text-align: center;
        color: white;
        font-weight: bold;
        font-size: 0.8rem;
        border-radius: 1px;
        margin: 1rem auto;
        cursor: pointer;
    }

    .form-container .checkout-button.disabled {
        background-color: #999;
        cursor: not-allowed;
    }


/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-image: url(../img/warung_kopi.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero::after {
    content: '';
    display: block;
    position: absolute;
    width: 100%;
    height: 25%;
    background: linear-gradient(0deg,rgba(1,1,3,1) 10%, rgba(255,255,255,0) 50%);
    bottom: 0;
}

.hero .content {
    padding: 1.4rem 7%;
    max-width: 55rem;
}

.hero .content h1 {
    font-size: 1.8rem;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(1, 1, 3, 0.8);
    line-height: 1.7;
    margin-top: 0.5rem;
    
}

.hero .content h1 span {
    color: var(--primary);
}

.hero .content p {
    font-size: 1.1rem;
    margin-top: 1rem;
    line-height: 1.3;
    font-weight: 80;
    text-shadow: 1px 1px 3px rgba(1, 1, 3, 0.5);
    mix-blend-mode: difference;

}

.hero .content .cta {
    margin-top: 1rem;
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    color: #fff;
    background-color: var(--primary);
    border-radius: 0.5rem;
    box-shadow: 1px 1px 3px rgba(1, 1, 3, 0.5);
}

/* About Section */
.about,
.menu,
.products,
.contact {
    padding: 7rem 5% 4rem;
}

.about h2,
.menu h2,
.products h2,
.contact h2 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.about h2 span,
.products h2 span,
.menu h2 span {
 color: var(--primary);
}

.about .row {
    display: flex;   
}

.about .row .about-img img {
    flex: 0.8 0.8 50rem;
}

.about .row .about-img img {
    width: 100%;
}

.about .row .content {
    flex: 0.8 0.8 50rem;
    padding: 0 0 0 2rem;
    
}

.about .row .content h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.about .row .content p {
    margin-bottom: 0.3rem;
    font-size: 1rem;
    font-weight: 80;
    line-height: 1.4;
    text-align: justify;
}

.about .reward h3 {
    color: var(--primary);
    margin-top: 0.5rem;
    text-align: justify;
    text-decoration-line: underline;
    font-weight: bold;
}

.about .reward p {
    font-weight: 80;
    text-align: justify;
    font-size: 1rem;
    line-height: 1.4;
    padding-right: 0.8rem;
   
}


/* Menu Section */

.menu h2 {
    margin-top: 5rem;
   
}

.menu p,
.products p,
.contact p {
    text-align: center;
    max-width: 25rem;
    margin: auto;
    font-weight: 200;
    line-height: 1;
}

.menu .row {
    display: flex;
    flex-wrap: wrap;
    margin-top: 3rem;
    justify-content: center;
}

.menu .row .menu-card {
    text-align: center;
    padding-bottom: 5rem;
}

.menu .row .menu-card img {
    border-radius: 50%;
    width: 75%;
}

.menu .row .menu-card .menu-card-title {
    margin-top: 1rem auto 1rem;
}

/* Products Section */
.products .row {
    /* display: grid; */
    /* grid-template-columns: repeat(auto-fit, minmax(45rem, 1fr)); */
    display:flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem; 
    margin-top: 1.5rem;
}

.products .product-card {
    text-align: center;
    border: 1px solid #666;
    padding: 1rem;
}

.products .product-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.products .product-icons a {
    width: 3.5rem;
    height: 3.5rem;
    color: var(--primary);
    margin: 0.3rem;
    border: 1px solid #666;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    
}

.products .product-icons a:hover {
    background-color: var(--primary);
    border: 1px solid var(--primary);
    color: #fff;
}

.products .product-image {
    padding: 1.5rem;
}

.products .product-image img {
    height: 20rem;
}

.products .product-content h3 {
    font-size: 1.3rem;
}

.products .product-stars {
    font-size: 1rem;
    padding: 0.4rem;
    color: var(--primary);
}

.products .product-stars .star-full {
    fill: var(--primary);
}

.products .product-price {
    font-size: 1rem;
    font-weight: bold;
}




/* Contact Section*/
.contact .row {
    display: flex;
    margin-top: 2rem;
    background-color: #222;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.contact h2 span{
    color: var(--primary);
}

.contact .row .map {
    flex: 1 1 35rem;
    width: 100%;
    object-fit: cover;
}

.contact .row form {
    flex:1 1 35rem;
    padding: 3.5rem 1rem;
    text-align: center;
}

.contact .row form .input-group {
    display: flex;
    align-items: center;
    margin-top: 1.2rem;
    background-color: var(--bg);
    /* border: 1px solid var(--primary); */
    padding-left: 1rem;
}

.contact .row form .input-group input {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    background: none;
    color: #fff;
}

.contact .row form .btn {
    margin-top: 1.5rem;
    display: inline-block;
    padding: 0.5rem 1.5rem;
    font-size: 1rem;
    color: var(--primary); 
    background-color: var(--bg);
    border: 1px solid var(--primary);
    cursor: pointer;  
}

.contact .row form .btn:hover {
    background-color: var(--primary);
    color: #fff;
}



/* Footer */
footer {
    background-color:transparent;
    text-align: center;
    padding: 1rem 0;
    margin-top: 3rem;
    border-top: 0.1rem solid var(--primary);
   
}

footer .socials {
    padding: 1rem 0;
}

footer .socials a {
    color: #fff;
    margin: 0.5rem;
}

footer .socials a:hover {
    color: var(--primary);
}

footer .links {
    margin-bottom: 0.5rem;
}

footer .links a {
    padding: 0.5rem;
    color: var(--primary);    
}

footer .links a:hover {
    color:#fff;
}

footer .credit a {
    color: var(--primary);
    font-weight: 700;
}

footer .credit a:hover {
    color: #fff;
}

/* Modal Box */
/* Item Detail */
.modali,
.modale,
.modals,
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
}

.modali-container,
.modale-container,
.modals-container,
.modal-container {
    position: relative;
    background-color: #fff;
    color: var(--bg);
    margin: 10% auto;
    padding: 1rem;
    border: 1px solid #666;
    width: 80%;
    animation: animateModal 0.9s;
}

/* Modal Animation */
@keyframes animateModal {
   from {
    top: -300px;
    opacity: 0;
   }
   to {
    top: 0;
    opacity: 1;
   }
}


@keyframes animateModals {
    from {
     top: -300px;
     opacity: 0;
    }
    to {
     top: 0;
     opacity: 1;
    }
 }
.modali-container .close-icon,
.modale-container .close-icon,
.modals-container .close-icon,
.modal-container .close-icon {
    position: absolute;
    right: 0.9rem;
}
.modali-content,
.modale-content,
.modals-content,
.modal-content {
    display: flex;
    flex-wrap: nowrap;
}
.modali-content img,
.modale-content img,
.modals-content img,
.modal-content img {
    height: 21rem;
    margin-right: 2rem;
    margin-bottom: 1rem;

}
.modali-content p,
.modale-content p,
.modals-content p,
.modal-content p {
    font-size: 1rem;
    line-height: 1.3rem;
    margin-top: 0.7rem;
    margin-bottom: 0.7rem;
}
.modali-content a,
.modale-content a,
.modals-content a,
.modal-content a {
    display: flex;
    gap: 0.5rem;
    width: 11rem;
    background-color: var(--primary);
    color: #fff;
    margin-top: 0.5rem;
    padding: 0.5rem 1.2rem;
}
.modali .product-stars,
.modale .product-stars,
.modals .product-stars,
.modal .product-stars {
    font-size: 0.5rem;
    padding: 0.4rem;
    color: var(--primary);   
}
.modali .product-stars .star-full,
.modale .product-stars .star-full,
.modals .product-stars .star-full,
.modal .product-stars .star-full {
    fill: var(--primary);
}
.modali-content .product-price span,
.modale-content .product-price span,
.modals-content .product-price span,
.modal-content .product-price span {
    text-decoration: line-through;
    font-weight: normal;
    font-size: 1rem;
}



/* Media Queries */

/* Tablet */
 @media screen and (max-width:768px) {
    html {
        font-size:70%;
    }

    .hero {
       min-height: 85vh;
    }

    #hamburger-menu {
        display: inline-block;
    }

    .navbar .navbar-nav {
       position: absolute;
       top: 100%;
       right: -100%;
       background-color:var(--primary);
       width: 18rem; 
       height: 100vh;
       transition: 0.5s;
    }

    

    .navbar .navbar-nav a:hover {
        color: #fff;
        border-bottom: 0.1rem solid #fff;
        transform: scaleX(1);
        transition: 0.2s linear;
    }

    .navbar .navbar-nav.active{
        right: 0;
    }

    .navbar .navbar-nav a {
        color: var(--bg);
        display: block;
        margin: 1.5rem;
        padding: 0.5rem;
        font-size: 1.5rem;
    }

    .navbar .navbar-nav a::after {
        transform-origin: 0 0;
        
    }

    .navbar .navbar-nav a:hover::after {
        transform: scaleX(0.2);
        
    }
    
    .about h2,
    .menu h2,
    .contact h2,
    .products h2 {
        text-align: center;
        font-size: 1.5rem;
        margin-bottom: 3rem;
        
    }
    
 

    .about .row .about-img img {
        height: 45rem;
        object-fit: cover;
        object-position: center;
    }

    
    .about .row {
    display: flex;
    flex-wrap: nowrap;   
    }

    .about .row .content p {
        margin-bottom: 0.3rem;
        font-size: 1rem;
        font-weight: 80;
        line-height: 1.4;
        text-align: justify;
    }

    .about .row .content h3 {
        margin-top: 0rem;
        font-size: 1rem;
    }

    .menu p,
    .contact p {
        text-align: center;
       
    }

    .contact .row .map {
        height: 10rem;
    }

    .products .product-icons a {
        width: 4rem;
        height: 4rem;
        color: var(--primary);
        margin: 0.3rem;
        border: 1px solid #666;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;     
    }

    
.products .product-image img {
    height: 40rem;
}

 .modal-content {
    flex-wrap: wrap;
 }

} 



/* Mobile Phone */
 @media screen and (max-width:600px) {
    html {
        font-size: 50%;
    }

 .modal-content {
    flex-wrap: wrap;
 }

 .hero {
       min-height: 85vh;
    }


    .about h2,
    .menu h2,
    .contact h2,
    .products h2 {
        text-align: center;
        font-size: 1.5rem;
        margin-bottom: 1.8rem;
        margin-top: 7.5rem;
    }

    
    .about .row .about-img img {
        height: 33rem;
        object-fit: cover;
        object-position: center;
    }


    .about .row .content {
        flex: 0.4 0.8 40rem;
        padding: 0 0.8rem;
        margin-bottom: 3rem;
    }

    .contact .row {
        margin-bottom: 14rem;
    }

    /* .about .content p {
        line-height: 10px;
        text-align: justify;
    } */

   
} 
