* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    overflow-x: hidden;
}

main {
    padding: 40px 80px;
    background-image: url( Food/Фон.jpg);
}

header {
    width: 100%;
    height: 95px;
    background: white;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 60px;
    box-sizing: border-box;

    box-shadow: 0 5px 20px rgba(0,0,0,0.08);

    position: sticky;
    top: 0;
    z-index: 999;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo img {
    width: 46px;
}

.logo h2 {
    font-size: 36px;
    font-weight: 700;
    color: #1E1E1E;
}

nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

nav a {
    text-decoration: none;
    color: #1E1E1E;
    font-size: 22px;
    font-weight: 600;
    transition: 0.3s;
}

nav a:hover,
nav a.active {
    color: #FFB800;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-actions > img {
    width: 28px;
    height: 28px;
    cursor: pointer;
    object-fit: contain;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;

    background: #f1f1f1;
    padding: 10px 14px;
    border-radius: 14px;
}

.search-box input {
    width: 140px;
    border: none;
    outline: none;
    background: transparent;

    font-size: 18px;
}

.search-box img {
    width: 26px;
    height: 26px;
    cursor: pointer;
}

#orderButton {
    padding: 14px 28px;
    border: none;
    border-radius: 14px;
    background: #FFB800;
    color: white;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

#orderButton:hover {
    background: #e6a600;
}

#orderButton img {
    width: 26px;
    height: 26px;
}
.found-food {
    outline: 5px solid #FFB800;
    transform: scale(1.03);
    transition: 0.3s;
}


.home {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
}



.home nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

/* CARD */

.food {
    background: #f1ecec;
    border-radius: 28px;
    overflow: hidden;
    padding: 14px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);

    display: flex;
    flex-direction: column;
    justify-content: space-between;
}


.food:hover {
    transform: translateY(-6px);
}

/* ФОТО */

.food img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 20px;
}

/* НИЖНІЙ БЛОК */

.item {
    margin-top: 14px;
    background: #5c5c5c;
    border-radius: 20px;
    padding: 18px;
    color: white;

    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 12px;
}


/* НАЗВА */

.item h2:nth-child(2) {
    background: #ececec;
    color: #444;
    width: fit-content;
    padding: 8px 16px;
    border-radius: 14px;
    font-size: 20px;
}

/* ЦІНА */

.item h2:nth-child(2) {
    background: #e7e7e7;
    color: #444;
    display: inline-block;
    padding: 8px 16px;
    border-radius: 14px;
    font-size: 22px;
    margin-bottom: 16px;
}

/* ОПИС */

.item h3 {
    color: #ececec;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
}

/* КНОПКА */

.order-btn {
    margin-top: auto;
    padding: 14px;
    border: none;
    border-radius: 14px;
    background: #ff9100;
    color: white;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.order-btn:hover {
    background: #e67f00;
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    width: 500px;
    padding: 30px;
    border-radius: 24px;
    position: relative;
}

.modal-content img {
    width: 100%;
    border-radius: 20px;
    margin-bottom: 20px;
}

#closeModalBtn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    cursor: pointer;
}

/* МОДАЛЬНИЙ ФОН */

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(6px);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

/* ВІКНО */

.modal-content {
    width: 420px;
    background: #f5f1f1;
    border-radius: 30px;
    padding: 25px;
    position: relative;

    animation: modalShow 0.3s ease;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

/* АНІМАЦІЯ */

@keyframes modalShow {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ХРЕСТИК */

#closeModalBtn {
    position: absolute;
    top: 18px;
    right: 22px;
    font-size: 30px;
    cursor: pointer;
    color: #555;
    transition: 0.3s;
}

#closeModalBtn:hover {
    color: #ff8c00;
    transform: rotate(90deg);
}

/* ФОТО */

#modalImage {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 22px;
    margin-bottom: 20px;
}

/* НАЗВА */

#modalTitle {
    font-size: 32px;
    margin-bottom: 15px;
    color: #222;
}

/* ЦІНА */

#modalPrice {
    background: #ff9800;
    color: white;
    display: inline-block;
    padding: 10px 18px;
    border-radius: 14px;
    font-size: 22px;
    margin-bottom: 20px;
}

/* ТЕКСТ */

.modal-content p {
    font-size: 18px;
    line-height: 1.6;
    color: #444;
}

/* ЗАГОЛОВКИ */

.modal-content strong{
    color: black;
    font-size: 20px;
}

.main-footer{
background-color:#1a1a1a;
color:#ffffff;
padding:50px 20px;
margin-top:50px;
font-family:'Segoe UI',Tahoma,Geneva,Verdana,sans-serif;
}

.footer-container{
max-width:1200px;
margin:0 auto;
display:flex;
justify-content: space-between;
flex-wrap:wrap;
padding:20px;
}

.footer-block{
flex:1;
min-width:250px;
margin-bottom:30px;
}

.footer-block h2{
color:#ffa11d;
margin-bottom: 15px;
font-size: 24px;
}

.footer-block h4{
margin-bottom:15px;
font-size:18px;
text-transform:uppercase;
letter-spacing:1px;
color:#fa9d1b;
}

.footer-block p{
    line-height:1.6;
    color:#cccccc;
    margin-bottom:10px;
}

social-icons{
    margin-top:10px;
}

.social-icons a{
    display:inline-block;
    color:#ffffff;
    text-decoration:none;
    margin-right:15px;
    padding: 8px 15px;
    border:1px solid #ff9f1c;
    border-radius: 20px;
    transition:all 0.3s ease;
}

.social-icons a:hover{
    background-color:#ff9f1c;
    color:#000;
}

.footer-bottom{
    width:100%;
    text-align:center;
    border-top:1px solid #333;
    margin-top:30px;
    padding-top:20px;
}

footer-bottom p{
    color:#777;
    font-size:14px;
}
.cart-nav {
    position: relative;
    cursor: pointer;
    font-size: 26px;
}

#cartCount {
    position: absolute;
    top: -8px;
    right: -10px;
    background: red;
    color: white;
    font-size: 12px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-dropdown {
    position: absolute;
    top: 80px;
    right: 60px;
    width: 300px;
    background: white;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    border-radius: 16px;
    padding: 15px;
    display: none;
}

.cart-dropdown.active {
    display: block;
}

.card-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.cart-btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 12px;
    background: #00c853;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

.onclick{
    font-weight: bold;
    color: #fff;
    background-color: #e67f00;
    border: none;
    border-radius: 7px;
    padding: 10px;
}