html,
body{
overflow-x:hidden;
width:100%;
}

/* =========================
   GLOBAL
========================= */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
}

body{
    background:#f8f3ee;
    animation:fadeIn 0.6s ease-in;
}

/* =========================
   HEADER
========================= */
header{
    background:#8B4513;
    color:white;
    text-align:center;
    padding:22px;
    box-shadow:0 3px 12px rgba(0,0,0,.25);
    animation:slideDown .6s ease;
}

h2{
    color:#8B4513;
}

/* =========================
   NAVBAR
========================= */

.nav-link:hover{
    transform:scale(1.1);
    color:#FFD2A0 !important;
}

.navbar-toggler{
    border:4px solid rgba(255,255,255,.5);
    border-radius:15px;
    padding:3px 9px;
    width:60px;
    height:55px;
}

.navbar-toggler-icon{
    width:1.5em;
    height:1.5em;
}

.navbar-toggler:focus{
    box-shadow:none;
}

.navbar{
    box-shadow:0 4px 12px rgba(0,0,0,.2);
}

.nav-link{
    color:#ffffff;
    transition:.3s;
    font-weight:500;
}

.nav-link i{
    color:#ffffff;
}

.nav-link:hover{
    color:#FFD54F !important;
}

.nav-link:hover i{
    color:#FFD54F !important;
}

/* =========================
   CARDS
========================= */
.card{
    border:none;
    border-radius:15px;
    box-shadow:0 6px 18px rgba(0,0,0,.15);
    transition:.3s;
    overflow:hidden;
}

.card:hover{
    transform:translateY(-10px) scale(1.02);
    box-shadow:0 15px 30px rgba(0,0,0,.25);
}

.card-body{
    padding:30px;
}

.card h4{
    font-size:2rem;
    margin-bottom:15px;
}

.card p{
    font-size:1.1rem;
    margin-bottom:0;
}

.product-card img{
    height:220px;
    object-fit:cover;
}

/* =========================
   BUTTONS
========================= */
button{
    transition:0.3s ease;
}

button:hover{
    transform:scale(1.05);
}

/* =========================
   HOME PAGE
========================= */
.hero{
    background:
    linear-gradient(rgba(0,0,0,.45),rgba(0,0,0,.45)),
    url("https://images.unsplash.com/photo-1509440159596-0249088772ff?w=1600");

    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;

    min-height:100vh;

    padding:60px 20px;
    display:flex;
    justify-content:center;
    align-items:flex-start;

    text-align:center;
    color:white;

    padding:25px 30px 10px;
}

.overlay{
    width:100%;
    max-width:1250px;
}

.hero h2{
    color:white;
    font-size:48px;
    font-weight:700;
    margin-bottom:10px;
}

.hero p{
    font-size:20px;
    margin-bottom:18px;
}

.footer{
    background:#6b3410;
    color:white;
    text-align:center;
    padding:15px;
    margin-top:0;
    font-size:17px;
    font-weight:500;
}

/* =========================
   ORDER PAGE
========================= */
.order-container{
    width:95%;
    max-width:1100px;
    margin:auto;
    background:white;
    padding:25px;
    border-radius:15px;
    box-shadow:0 3px 10px rgba(0,0,0,.2);
}

.order-container:hover{
    transform:translateY(-5px);
}

/* =========================
   ANIMATIONS
========================= */
@keyframes fadeIn{
    from{
        opacity:0;
        transform:translateY(10px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

@keyframes slideDown{
    from{
        transform:translateY(-20px);
        opacity:0;
    }
    to{
        transform:translateY(0);
        opacity:1;
    }
}

/* =========================
   LOGIN / SIGNUP PAGE
========================= */

.auth-page{
    display:flex;
    justify-content:center;
    align-items:center;
    min-height:100vh;
}

.auth-container{
    max-width:420px;
    width:100%;
    margin:auto;
    padding:20px;
}

.services{
    margin-top:25px;
}

.services-title{
    color:white;
    font-size:32px;
    margin-bottom:20px;
}

.service-card{
    background:rgba(45,25,15,.65);
    backdrop-filter:blur(8px);

    border:1px solid rgba(255,255,255,.15);

    border-radius:18px;

    width:100%;
    height:210px;

    padding:20px;

    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;

    text-align:center;

    transition:.3s;
}   

.services .row{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    align-items:stretch;
}

.services .col-lg-4,
.services .col-md-4{
    display:flex;
}

.service-card:hover{

    transform:translateY(-5px);

    background:rgba(70,40,20,.75);

}

.service-card .icon{

    width:70px;
    height:70px;

    border-radius:50%;

    background:#d98c22;

    display:flex;
    justify-content:center;
    align-items:center;

    font-size:34px;

    margin-bottom:15px;
}

.service-card h4{

    color:#ffbf45;

    font-size:28px;

    margin-bottom:10px;
}

.service-card p{

    color:white;

    font-size:17px;

    line-height:1.5;

    margin:0;
}

/* =========================
   NAVIGATION DIVIDER
========================= */

.navbar-nav{
    display: flex;
    align-items: center;
}

.nav-divider{
    display: flex;
    align-items: center;
    justify-content: center;

    color: #ffffff;
    font-size: 22px;
    font-weight: 300;

    margin: 0 8px;

    transform: translateY(2px); 
}

@media (max-width:991px){

    .nav-divider{
        display:none;
    }

}

/* =========================
   STAR RATING
========================= */

.rating{
    display:flex;
    justify-content:center;
    flex-direction:row-reverse;
    gap:8px;
    margin:10px 0;
}

.rating input{
    display:none;
}

.rating label{
    font-size:38px;
    color:#d3d3d3;
    cursor:pointer;
    transition:.25s;
}

.rating label:hover,
.rating label:hover ~ label{
    color:#ffc107;
    transform:scale(1.15);
}

.rating input:checked ~ label{
    color:#ffc107;
}

.form-label{
    color:#6b3410;
    font-size:18px;
}

textarea{
    resize:none;
}

.btn-warning{
    background:#ff9800;
    border:none;
    color:white;
    font-weight:bold;
}

.btn-warning:hover{
    background:#f57c00;
}

/* =========================
   USER PROFILE
========================= */

.user-profile{
    display:inline-flex;
    align-items:center;
    gap:12px;

    background:rgba(107,52,16,.85);

    color:#fff;

    padding:12px 22px;

    border-radius:50px;

    font-size:18px;

    font-weight:600;

    margin-bottom:30px;

    box-shadow:0 5px 15px rgba(0,0,0,.25);
}

.user-profile i{
    font-size:28px;
    color:#6c4ab6;
}

#usernameDisplay{
    color:white;
}

/* ORDER HISTORY */

#orderHistory .card{

    border-radius:15px;

    transition:.3s;

}

#orderHistory .card:hover p{

    transform:translateY(-3px);

}

.badge{

    font-size:14px;

}

/* ORDER TABS */

.order-tabs{

    display:flex;

    margin-bottom:20px;

}

.tab-btn{

    flex:1;

    padding:15px;

    border:none;

    background:#eee;

    font-size:18px;

    font-weight:600;

    cursor:pointer;

    transition:.3s;

}

.tab-btn:first-child{

    border-radius:12px 0 0 12px;

}

.tab-btn:last-child{

    border-radius:0 12px 12px 0;

}

.tab-btn.active{

    background:#8B4513;

    color:white;

}

.tab-btn:hover{

    background:#a0522d;

    color:white;

}

.cart-item{

    border:1px solid #ddd;

    padding:15px;

    border-radius:15px;

    background:white;

}

.cart-item img{

    width:110px;
    height:110px;

    object-fit:contain;

    border-radius:10px;

    background:#fff;

}

.cart-product-img{

    width:120px;
    height:120px;

    object-fit:contain;

    display:block;

    margin:auto;

    border-radius:10px;

    background:white;
}

/* ==========================
   RESPONSIVE DESIGN
==========================*/

/* Images */
img{
    max-width:100%;
    height:auto;
    display:block;
}

/* Header */
header h1{
    font-size:clamp(1.5rem,4vw,2.4rem);
}

/* Footer */
.footer{
    width:100%;
}

/* Products */
.product-card{
    height:100%;
}

.product-card img{
    width:100%;
    height:220px;
    object-fit:cover;
}

/* Order */

.order-container{
    width:95%;
    max-width:900px;
    margin:auto;
}

/* Cart */

.cart-item{
    width:100%;
}

.cart-product-img{
    width:100px;
    height:100px;
}

/* Prevent Overflow */

.container,
.container-fluid,
.row{
    overflow-x:hidden;
}

/* Text */

h1,h2,h3,h4,h5,p{
    word-wrap:break-word;
}

/* Buttons */

.btn{
    white-space:normal;
}

/* ==========================
   TABLET
==========================*/

@media(max-width:992px){

.hero{
padding:40px 20px;
}

.hero h2{
font-size:35px;
}

.services .col-md-4{
margin-bottom:20px;
}

.order-tabs{
flex-direction:column;
}

.tab-btn{
border-radius:10px !important;
margin-bottom:8px;
}

}

/* ==========================
   MOBILE
==========================*/

@media(max-width:768px){

header{
padding:18px;
}

.navbar-brand{
font-size:18px;
}

.hero{
min-height:auto;
padding:40px 15px;
}

.hero h2{
font-size:30px;
}

.hero p{
font-size:16px;
}

.user-profile{
width:100%;
justify-content:center;
}

.service-card{
height:auto;
padding:25px;
}

.product-card img{
height:180px;
}

.order-container{
padding:15px;
}

.card{
margin-bottom:20px;
}

}

/* ==========================
   SMALL PHONES
==========================*/

@media(max-width:576px){

.hero h2{
font-size:26px;
}

.hero p{
font-size:15px;
}

.services-title{
font-size:24px;
}

.service-card h4{
font-size:22px;
}

.service-card p{
font-size:15px;
}

.card h4{
font-size:22px;
}

.order-tabs{
display:block;
}

.tab-btn{
width:100%;
margin-bottom:10px;
}

.cart-product-img{
width:80px;
height:80px;
}

}

#orderHistory .card{
    border-radius:18px;
    border:none;
    padding:25px;
}

#orderHistory h5{
    font-weight:700;
}

#orderHistory img{
    border-radius:12px;
}

#orderHistory .text-success{
    font-size:20px;
    font-weight:700;
}

/* ==========================================
   ADMIN DASHBOARD
========================================== */

.admin-body{
    background:#f5f5f5;
    font-family:'Poppins',sans-serif;
}

.sidebar{
    width:250px;
    height:100vh;
    position:fixed;
    top:0;
    left:0;
    background:#5a2d0c;
    padding-top:20px;
    overflow-y:auto;
}

.sidebar h3{
    color:#fff;
    text-align:center;
    margin-bottom:30px;
    font-weight:700;
}

.sidebar a{
    display:block;
    padding:15px 20px;
    color:#fff;
    text-decoration:none;
    transition:.3s;
    font-size:16px;
}

.sidebar a i{
    margin-right:10px;
}

.sidebar a:hover,
.sidebar a.active{
    background:#8B4513;
}

.main{
    margin-left:250px;
    padding:30px;
}

.admin-card{
    border:none;
    border-radius:15px;
}

.admin-card i{
    font-size:45px;
}

.admin-card h2{
    margin-top:10px;
    font-weight:700;
}

.admin-card h5{
    margin-top:10px;
    color:#666;
}

@media(max-width:768px){

.sidebar{
    width:100%;
    height:auto;
    position:relative;
}

.main{
    margin-left:0;
}

}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #f8f3ee, #fff);
    margin: 0;
}

/* SIDEBAR */
.sidebar {
    width: 240px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    background: linear-gradient(180deg, #5a2d0c, #8B4513);
    padding-top: 20px;
    box-shadow: 5px 0 15px rgba(0,0,0,0.2);
}

.sidebar h3 {
    color: white;
    text-align: center;
    margin-bottom: 20px;
}

.sidebar a {
    display: block;
    padding: 14px 18px;
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

.sidebar a:hover {
    background: rgba(255,255,255,0.15);
    transform: translateX(5px);
}

/* MAIN */
.main {
    margin-left: 240px;
    padding: 25px;
    animation: fadeIn 0.5s ease;
}

/* CARDS */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

/* TABLE HEADER */
.table th {
    background: #8B4513;
    color: white;
}

/* BUTTON */
.btn {
    transition: 0.3s;
}

.btn:hover {
    transform: scale(1.05);
}

/* ANIMATION */
@keyframes fadeIn {
    from {opacity: 0; transform: translateY(10px);}
    to {opacity: 1; transform: translateY(0);}
}

/* RESPONSIVE */
@media(max-width:768px){
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }

    .main {
        margin-left: 0;
    }
}

/* ==========================================
   FINAL NAVBAR
========================================== */

.custom-navbar{
    background:#8B4513 !important;
    background-image:none !important;
    box-shadow:0 3px 12px rgba(0,0,0,.25);
}

.custom-navbar .container{
    display:flex;
    align-items:center;
}

.custom-navbar .navbar-brand{
    color:#fff !important;
    font-weight:700;
    font-size:30px;
}

.custom-navbar .navbar-nav{
    margin:auto;
}

.custom-navbar .nav-link{
    color:#fff !important;
    font-size:18px;
    font-weight:500;
    padding:10px 16px;
    transition:.3s;
}

.custom-navbar .nav-link:hover,
.custom-navbar .nav-link.active{
    color:#FFD54F !important;
}

/* PROFILE */

.profile-toggle{
    display:flex;
    align-items:center;
    gap:8px;
    color:#fff !important;
    text-decoration:none;
    font-weight:600;
    font-size:18px;
}

.profile-toggle:hover{
    color:#FFD54F !important;
}

.profile-toggle i{
    font-size:28px;
}

.profile-toggle::after{
    display:none !important;
}

/* DROPDOWN */

.dropdown-menu{
    border:none;
    border-radius:12px;
    min-width:180px;
    box-shadow:0 8px 20px rgba(0,0,0,.2);
}

.dropdown-item{
    padding:12px 18px;
    transition:.3s;
}

.dropdown-item:hover{
    background:#8B4513;
    color:#fff;
}

/* HAMBURGER */

.navbar-toggler{
    border:3px solid rgba(255,255,255,.5);
    border-radius:14px;
}

.navbar-toggler:focus{
    box-shadow:none;
}

/* MOBILE */

@media (max-width:991px){

    .custom-navbar,
    .custom-navbar .container,
    .custom-navbar .navbar-collapse{
        background:#8B4513 !important;
        background-image:none !important;
    }

    .custom-navbar .navbar-collapse{
        padding:20px;
        margin-top:0;
        border-radius:0;
    }

    .custom-navbar .navbar-nav{
        margin:0;
        text-align:center;
    }

    .custom-navbar .nav-link{
        color:#fff !important;
        padding:12px 0;
    }

    .profile-toggle{
        display:flex;
        justify-content:center;
        align-items:center;
        width:100%;
        margin-top:10px;
    }

    .dropdown-menu{
        width:100%;
        text-align:center;
    }
}

/* DESKTOP */

@media(min-width:992px){

    .custom-navbar .navbar-collapse{
        display:flex !important;
        align-items:center;
    }

}

/* ===== NAVIGATION ===== */

.custom-navbar .nav-link{
    color:#ffffff !important;
    font-size:18px;
    font-weight:500;
}

.custom-navbar .nav-link i{
    color:#ffffff !important;
}

.custom-navbar .nav-link:visited{
    color:#ffffff !important;
}

.custom-navbar .nav-link:hover,
.custom-navbar .nav-link.active{
    color:#FFD54F !important;
}

.custom-navbar .nav-link:hover i,
.custom-navbar .nav-link.active i{
    color:#FFD54F !important;
}

/* Divider */

.nav-divider{
    color:#ffffff !important;
}

/* CONTACT PAGE */

.contact-card{
    max-width:650px;
    margin:auto;
}

.contact-card .card{
    border-radius:20px;
}

.contact-card h2{
    color:#8B4513;
    font-weight:700;
}

.contact-card h5{
    color:#8B4513;
    font-weight:600;
}

.contact-card p{
    font-size:18px;
    color:#444;
}

@media(max-width:768px){

    .contact-card .card-body{
        padding:30px 20px;
    }

    .contact-card p{
        font-size:16px;
    }

}

/* =========================
   CATEGORY BUTTONS
========================= */

.category-buttons{
    display:flex;
    justify-content:center;
    gap:15px;
    margin-bottom:35px;
    flex-wrap:wrap;
}

.category-buttons button{

    min-width:180px;
    padding:12px 30px;

    border:none;
    border-radius:50px;

    font-size:18px;
    font-weight:600;

    cursor:pointer;

    transition:all .35s ease;

    box-shadow:0 8px 20px rgba(0,0,0,.15);

}

.category-buttons .bread-btn{

    background:#d68c2f;
    color:white;

}

.category-buttons .drink-btn{

    background:#0d6efd;
    color:white;

}

/* Hover */

.category-buttons button:hover{

    transform:translateY(-5px) scale(1.05);

    box-shadow:0 15px 30px rgba(0,0,0,.25);

}

/* Click */

.category-buttons button:active{

    transform:scale(.95);

}

/* Active Button */

.category-buttons button.active{

    transform:scale(1.08);

    box-shadow:0 0 25px rgba(255,193,7,.6);

}

/* Fade Animation */

#breadSection,
#drinksSection{

    animation:fadeIn .45s ease;

}

@keyframes fadeIn{

    from{

        opacity:0;
        transform:translateY(20px);

    }

    to{

        opacity:1;
        transform:translateY(0);

    }

}