* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
    font-size: 14px;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    min-height: 100vh;
}

/* Header Styles */
.header {
    height: 90px;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    margin-right: 60px;
}

.nav-list {
    display: flex;
    align-items: center;
    font-family: "Poppins", sans-serif;
    gap: 3rem;
    list-style: none;
    margin-right: 11rem;
}

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

.dropdown a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 10px 15px;
    border-radius: 5px;
}

.dropdown > a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 220px;
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    overflow: hidden;
    z-index: 1;
    top: 100%;
    left: 0;
    margin-top: 10px;
}

.nav-list li a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
}

.dropdown-content a {
    color: #2c3e50;
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
}

.dropdown-content a:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding-left: 25px;
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.right-nav {
    height: 30px;
    width: 54px;
    color: #ffffff;
    display: flex;
    justify-content: end;
    align-items: center;
    gap: 32px;
    padding: 2px;
}

/* Cart Styles */
.cart {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    padding: 8px 12px;
    border-radius: 25px;
    width: 85px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.fa-solid {
    color: black;
    font-size: 16px;
}

.cart p {
    height: 24px;
    width: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 5px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
}

/* Page Title */
.page-title {
    text-align: center;
    margin: 40px 0;
    padding: 20px;
}

.page-title h1 {
    font-size: 42px;
    color: #2c3e50;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.page-title p {
    font-size: 18px;
    color: #555;
}

/* Container */
.container {
    display: flex;
    width: 90%;
    max-width: 1400px;
    margin-bottom: 50px;
}

#root {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-gap: 30px;
}

/* Product Box */
.box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.box:hover::before {
    left: 100%;
}

.box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.img-box {
    width: 100%;
    height: 220px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.images {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.box:hover .images {
    transform: scale(1.1);
}

.bottom {
    margin-top: 20px;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 140px;
}

.bottom p {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
    line-height: 1.4;
}

h2 {
    font-size: 24px;
    color: #e74c3c;
    font-weight: 700;
    margin: 10px 0;
}

.button-group {
    display: flex;
    gap: 10px;
    width: 100%;
}

button {
    flex: 1;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    cursor: pointer;
    color: white;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.add-to-cart-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.add-to-cart-btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(118, 75, 162, 0.4);
}

.view-recipe-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.view-recipe-btn:hover {
    background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(245, 87, 108, 0.4);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: #fefefe;
    margin: 3% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    color: #aaa;
    float: right;
    font-size: 35px;
    font-weight: bold;
    padding: 10px 20px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover,
.close:focus {
    color: #e74c3c;
}

.modal-header {
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px 15px 0 0;
    text-align: center;
}

.modal-header img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid white;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.modal-header h2 {
    font-size: 28px;
    color: white;
    margin: 0;
}

.modal-body {
    padding: 30px;
    max-height: 70vh;
    overflow-y: auto;
}

.recipe-info {
    display: flex;
    justify-content: space-around;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    border-radius: 10px;
}

.info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.info-item i {
    font-size: 24px;
    color: #e74c3c;
}

.info-item span {
    font-weight: 600;
    color: #2c3e50;
}

.recipe-section {
    margin-bottom: 30px;
}

.recipe-section h3 {
    font-size: 22px;
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 3px solid #667eea;
    display: flex;
    align-items: center;
    gap: 10px;
}

.recipe-section h3 i {
    color: #667eea;
    font-size: 20px;
}

.recipe-section ul,
.recipe-section ol {
    padding-left: 25px;
}

.recipe-section li {
    margin-bottom: 12px;
    line-height: 1.6;
    color: #555;
    font-size: 15px;
}

.recipe-section p {
    line-height: 1.8;
    color: #555;
    font-size: 15px;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #f093fb;
}

/* Responsive Design */
@media (max-width: 1200px) {
    #root {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .nav-list {
        gap: 1.5rem;
        margin-right: 2rem;
    }

    #root {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        grid-gap: 20px;
    }

    .page-title h1 {
        font-size: 32px;
    }

    .modal-content {
        width: 95%;
        margin: 5% auto;
    }

    .recipe-info {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    #root {
        grid-template-columns: 1fr;
    }

    .button-group {
        flex-direction: column;
    }

    .header {
        height: auto;
        padding: 15px;
    }

    .nav-list {
        flex-direction: column;
        gap: 0.5rem;
        margin-right: 0;
    }
}