@import url('https://fonts.googleapis.com/css2?family=Acme&family=Bebas+Neue&family=BenchNine:wght@400;700&family=Concert+One&family=Passion+One:wght@400;700;900&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-image: url(images/HOMEPAGE.png);
    background-color: #f7a63b;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    background-size: cover;
    margin: 0;
    font-family: "Passion One", sans-serif;
}

/* MAIN NAVBAR STYLING */

.navbar {
    background-color: #EF5225;
    width: 98%; 
    max-width: none; 
    height: 60px;
    margin: 20px auto; 
    border-radius: 50px;
    display: flex;
    align-items: center;
    position: relative; 
    z-index: 10;
}

.navbar::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 260px;
    height: 120px; 
    background-color: #EF5225;
    border-radius: 50px 0 40px 40px;
    z-index: -1; 
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: 0 20px;
    gap: 35px;
}

.nav-links li {
    display: flex;
    justify-content: center; 
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1.4rem; 
    padding: 8px 15px;
    border-radius: 60px;
    transition: 0.3s;
    font-weight: normal;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: #EF5225;
    background-color: white;
}

/* LEFT SIDE: LOGO */

.logo-item {
    width: 180px;
    margin-right: auto; 
    
    display: flex;
    align-items: center;
}

.logo-item img {
    position: absolute;
    left: 38px;
    top: -30px;
    height: 180px; 
    z-index: 20;
}

.right-menu {
    display: flex;
    align-items: center;
    gap: 15px; 
    margin-left: auto; 
}

.right-menu .icon-link {
    padding: 0;
    background-color: transparent !important; 
}

.nav-icon {
    height: 40px;
    width: 40px;
    object-fit: contain;
    transition: transform 0.2s;
}

.nav-icon:hover {
    transform: scale(1.1); 
}

.login-link {
    font-size: 1.4rem !important; 
    font-weight: bold !important;
}

/* DROPDOWN MENU */

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: -8px; 
    background-color: white;
    border-radius: 20px;
    flex-direction: column;
    align-items: center; 
    padding: 8px 20px 20px 20px; 
    z-index: 40; 
    white-space: nowrap; 
    box-shadow: 0px 10px 15px rgba(0,0,0,0.1); 
}

.dropdown:hover .dropdown-content {
    display: flex;
}

.dropdown-content a {
    color: #EF5225 !important; 
    padding: 8px 0 !important; 
    background-color: transparent !important; 
}

.dropdown-content a:nth-child(2),
.dropdown-content a:nth-child(3) {
    font-size: 1.4rem; 
}

.dropdown-content a:hover {
    color: #c43e18 !important; 
}

.dropdown-content a:first-child {
    cursor: default !important;      
    pointer-events: none !important; 
}

.dropdown-content a:first-child:hover {
    color: #EF5225 !important;       
    background-color: transparent !important;
}

/* MY CART STYLES */

.cart-section {
    padding: 40px 20px 80px 20px; 
    display: flex;
    justify-content: center;
}

.cart-container {
    background-color: white;
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    margin-top: 40px;
    min-height: 500px;
    box-shadow: 0px 15px 30px rgba(0, 0, 0, 0.15);
    
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cart-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.cart-header-icon {
    height: 45px;
    width: auto;
    filter: brightness(0);
}

.cart-title {
    font-family: 'Passion One', sans-serif;
    font-size: 3rem;
    color: #000000;
    margin: 0;
    letter-spacing: 1px;
}

.cart-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.cart-items { 
    flex: 1; 
    display: flex;
    flex-direction: column;
    justify-content: flex-start; 
}

.cart-item-card {
    flex: 1;
    background-color: #FF5100;
    border-radius: 15px;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.cart-item-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-item-img {
    width: 80px; 
    height: auto;
    filter: drop-shadow(0px 5px 5px rgba(0,0,0,0.3)); 
}

.cart-item-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.cart-title-row {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

.cart-item-title {
    font-family: 'Passion One', sans-serif;
    font-size: 2.2rem;
    margin-bottom: 0; 
    line-height: 1;
    letter-spacing: 1px;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-qty-btn {
    background: none;
    border: none;
    color: white;
    font-family: 'Passion One', sans-serif;
    font-size: 2.8rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.cart-qty-btn:hover {
    transform: scale(1.2); 
}

.cart-qty-num, .cart-qty-label {
    font-size: 1.6rem;
}

.cart-flavor-tag {
    background-color: #08979C; 
    padding: 3px 15px;
    border-radius: 50px;
    font-size: 1.2rem;
    margin-left: 0;
}

.cart-item-right {
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: 'Passion One', sans-serif;
}

.cart-item-total-label { font-size: 1.4rem; }
.cart-item-price { font-size: 1.8rem; }

.cart-delete-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.2s;
}

.cart-delete-btn:hover {
    transform: scale(1.1);
}

.cart-delete-btn img {
    height: 30px;
    width: auto;
}

.cart-summary {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 30px;
    font-family: 'Passion One', sans-serif;
}

.summary-text {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #000000;
}

.summary-total-label { font-size: 1.6rem; }
.summary-total-price { font-size: 2rem; }

.checkout-btn {
    background-color: #889E0C;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 10px 40px;
    font-family: 'Passion One', sans-serif;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0px 5px 10px rgba(0,0,0,0.2);
    transition: transform 0.2s ease;
}

.checkout-btn:hover {
    transform: translateY(-3px);
}

/* FOOTER & TOP BAR ALIGNMENT */

.top-content {
    display: grid;
    grid-template-columns: 1.2fr 1.5fr 2fr 1.5fr 1fr; 
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    height: 100%;
    align-items: center;  
}

.top-bar {
    background-color: #FF6100;
    padding: 10px 10px;
    height: 80px;
    position: relative; 
    z-index: 20;
    overflow: visible !important;
}

.top-logo {
    position: absolute;
    height: 130px; 
    width: auto;
    top: -25px; 
    left: 40;  
    z-index: 30;  
}

.contact-item:first-of-type {
    grid-column: 2; 
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px; 
    font-family: 'BenchNine', sans-serif;
    font-size: 1.8rem;
    color: black;
}

.contact-icon {
    height: 40px;
    width: auto;
}

.footer {
    background-color: #4a2e15;
    padding: 30px 40px;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.2fr 1.5fr 2fr 1.5fr 1fr; 
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    align-items: start;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-family: 'BenchNine', sans-serif;
}

.footer-col h3 {
    color: white;
    font-size: 2rem;
    font-weight: normal;
    margin: 0 0 10px 0;
}

.footer-col a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 1.3rem;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: #FF6100;
}

.desktop-spacer {
    height: 100px;
}

@media screen and (max-width: 768px) {
    .navbar {
        height: 20px;
        border-radius: 30px;
        margin: 10px auto; 
    }
    
    .navbar::after {
        width: 80px;
        height: 40px;
        left: 0;
        border-radius: 0px 0 10px 10px;
    }

    .navbar::before {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        width: 60px;
        height: 35px;
        background-color: #EF5225;
        border-radius: 0px 0 10px 10px;
        z-index: -1; 
    }

    .nav-links {
        padding: 0 5px;
        gap: 3px;
    }

    .nav-links a {
        font-size: 0.6rem;
        padding: 2px 4px;
        white-space: nowrap;
    }

    .logo-item {
        width: 60px; 
        margin-right: auto;
    }
    
    .logo-item img {
        height: 60px;
        top: -10px;
        left: 10px;
    }

    .yakiniku-img {
        width: 80px; 
        height: auto;
        margin-top: -10px;
    }

    .right-menu {
        gap: 4px; 
        margin-left: auto;
        padding-right: 8px;
        z-index: 20;
    }

    .nav-icon {
        width: 25px;
        padding: 2px;
        margin-top: 15px;
        margin-right: -6px;
    }

    .login-link {
        display: none !important; 
    }

    .dropdown-content {
        min-width: 40px;
        padding: 0px 4px 4px 4px;
        border-radius: 10px; 
        top: 0px;
    }

    .dropdown-content a {
        font-size: 0.5rem !important;
        padding: 2px 0 !important; 
    }

    .dropdown-content a:nth-child(2),
    .dropdown-content a:nth-child(3) {
        font-size: 0.5rem !important; 
    }

    /* CART & CHECKOUT LAYOUT */
    .cart-section {
        padding: 20px 10px;
    }

    .cart-container {
        padding: 20px;
        min-height: auto;
    }

    .cart-title {
        font-size: 2rem;
    }

    .cart-row {
        flex-direction: column; 
        align-items: flex-end;
        gap: 10px;
    }

    .cart-item-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        width: 100%;
    }

    .cart-item-left {
        width: 100%;
    }

    .cart-item-controls {
        flex-wrap: wrap; 
    }

    .cart-item-title {
        font-size: 1.6rem;
    }
    
    .cart-item-img {
        width: 70px;
    }

    .cart-item-right {
        width: 100%;
        justify-content: space-between;
        border-top: 1px solid rgba(255, 255, 255, 0.4);
        padding-top: 15px;
    }

    .checkout-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 25px;
    }

    .checkout-notes {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .notes-input {
        width: 100%; 
    }

    .cart-summary {
        width: 100%;
        justify-content: space-between;
        border-top: 2px solid #eeeeee;
        padding-top: 20px;
    }

    .checkout-btn {
        padding: 12px 20px;
        font-size: 1.4rem;
    }

    .top-bar {
        height: 40px; 
        padding: 5px; 
        margin-top: -100px;
    }

    .top-content {
        display: grid;
        grid-template-columns: 1.2fr 1.5fr 2fr 1.5fr 1fr; 
        height: 100%;
        align-items: center;
        gap: 2px;
    }

    .top-logo {
        position: absolute; 
        height: 50px;
        top: 50%; 
        transform: translateY(-50%);
        left: 40;
    }

    .contact-item {
        font-size: 0.65rem; 
        gap: 3px;
        word-break: break-all; 
        overflow-wrap: anywhere; 
        line-height: 1.1;
    }

    .contact-icon {
        height: 12px;
    }

    .footer {
        padding: 15px 5px;
    }

    .footer-container {
        display: grid;
        grid-template-columns: 1.2fr 1.5fr 2fr 1.5fr 1fr; 
        gap: 2px;
    }

    .footer-col {
        gap: 4px;
    }

    .footer-col h3 {
        font-size: 0.9rem;
        margin: 0 0 5px 0;
    }

    .footer-col a {
        font-size: 0.75rem;
    }

    .desktop-spacer {
        display: none;
    }

    .footer-dropdown-content {
    min-width: 80px;
    padding: 3px 0;
    border-radius: 3px;
    box-shadow: 0px 4px 8px rgba(0,0,0,0.2);
    }

    .footer-dropdown-content a {
        font-size: 0.55rem !important;
        padding: 4px 8px;
    }

}

.footer-dropdown {
    position: relative;
    display: inline-block;
}

.footer-dropdown-content {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 0;
    background-color: white;
    min-width: 150px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    z-index: 100;
    border-radius: 5px;
    padding: 5px 0;
}

.footer-dropdown-content.show {
    display: block !important;
}

.footer-dropdown-content a {
    color: black !important;
    padding: 8px 16px;
    text-decoration: none;
    display: block;
    font-size: 1rem;
}

.footer-dropdown-content a:hover {
    background-color: #f1f1f1;
    color: #EF5225 !important;
}