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

:root {
    --primary-color: #e91e63;
    --secondary-color: #c2185b;
    --accent-color: #9c27b0;
    --dark-color: #1a1a1a;
    --light-bg: #fce4ec;
    --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --hover-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background: linear-gradient(135deg, #fff 0%, #fce4ec 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, #1a1a1a 0%, #2d2d2d 100%);
    overflow: visible;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    margin-left: 60px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

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

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

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

.dropdown > a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    padding: 10px 0;
    display: block;
}

.dropdown > a:hover {
    color: var(--primary-color);
}

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

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

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

.dropdown-content a {
    color: #333;
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    font-size: 14px;
    transition: var(--transition);
}

.dropdown-content a:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding-left: 25px;
}

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

.right-nav {
    display: flex;
    justify-content: end;
    align-items: center;
    gap: 32px;
}

.cart {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    padding: 10px 15px;
    border-radius: 25px;
    width: 90px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 8px 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;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    font-weight: 600;
    font-size: 12px;
}

/* Hero Section */
.hero-section {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    padding: 60px 20px;
    text-align: center;
    color: white;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '🍰 🧁 🍪 🍩 🎂';
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    font-size: 40px;
    opacity: 0.1;
    white-space: nowrap;
    animation: scrollEmoji 20s linear infinite;
}

@keyframes scrollEmoji {
    from {
        left: 0;
    }
    to {
        left: 100%;
    }
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.hero-content p {
    font-size: 18px;
    font-weight: 300;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

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

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

/* Product Cards */
.box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    overflow: hidden;
    position: relative;
}

.box:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
}

.box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.box:hover::before {
    transform: scaleX(1);
}

.img-box {
    width: 100%;
    height: 220px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 15px;
    background: linear-gradient(135deg, #fff0f5 0%, #ffe6f0 100%);
    margin-bottom: 15px;
    position: relative;
}

.img-box::after {
    content: '✨';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    opacity: 0;
    transition: var(--transition);
}

.box:hover .img-box::after {
    opacity: 1;
}

.images {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
    border-radius: 10px;
}

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

.bottom {
    margin-top: 15px;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.bottom p {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    min-height: 45px;
}

.bottom h2 {
    font-size: 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

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

button {
    flex: 1;
    border: none;
    border-radius: 12px;
    padding: 12px 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.add-to-cart-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
}

.add-to-cart-btn:hover {
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.4);
}

.view-recipe-btn {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.view-recipe-btn:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border-color: transparent;
}

/* Sidebar */
.sidebar {
    width: 350px;
    border-radius: 20px;
    background: white;
    padding: 20px;
    box-shadow: var(--card-shadow);
    height: fit-content;
    position: sticky;
    top: 110px;
}

.head {
    background: linear-gradient(135deg, var(--dark-color), #2d2d2d);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    color: white;
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
}

.foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #fce4ec;
}

.foot h3 {
    font-size: 18px;
    color: #333;
}

.foot h2 {
    font-size: 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: linear-gradient(135deg, #fff 0%, #fef5f9 100%);
    border-radius: 12px;
    margin: 10px 0;
    transition: var(--transition);
    border: 1px solid #fce4ec;
}

.cart-item:hover {
    background: linear-gradient(135deg, #fef5f9 0%, #fce4ec 100%);
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(233, 30, 99, 0.1);
}

.row-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: white;
}

.rowimg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.fa-trash {
    color: #999;
    transition: var(--transition);
    cursor: pointer;
    font-size: 16px;
}

.fa-trash:hover {
    color: var(--primary-color);
    transform: scale(1.2);
}

/* Recipe Modal */
.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: white;
    margin: 3% auto;
    padding: 0;
    width: 90%;
    max-width: 900px;
    border-radius: 25px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.4s ease;
    overflow: hidden;
}

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

.close {
    color: white;
    float: right;
    font-size: 35px;
    font-weight: bold;
    padding: 10px 20px;
    cursor: pointer;
    transition: var(--transition);
}

.close:hover {
    transform: rotate(90deg);
}

.modal-body {
    padding: 0;
}

.recipe-header {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    padding: 30px;
    color: white;
    display: flex;
    align-items: center;
    gap: 30px;
}

.recipe-header img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 20px;
    border: 5px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.recipe-title-section h2 {
    font-size: 32px;
    margin-bottom: 15px;
    color: white;
}

.recipe-meta {
    display: flex;
    gap: 25px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.recipe-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 15px;
    border-radius: 20px;
}

.recipe-content {
    padding: 40px;
}

.ingredients-section,
.instructions-section,
.tips-section {
    margin-bottom: 35px;
}

.recipe-content h3 {
    font-size: 24px;
    color: var(--dark-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary-color);
}

.recipe-content h3 i {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#recipeIngredients {
    list-style: none;
    padding: 0;
}

#recipeIngredients li {
    padding: 12px 0;
    border-bottom: 1px solid #fce4ec;
    font-size: 15px;
    color: #555;
}

#recipeIngredients li:before {
    content: "✓";
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
    margin-right: 10px;
    font-size: 18px;
}

#recipeInstructions {
    counter-reset: step-counter;
    list-style: none;
    padding: 0;
}

#recipeInstructions li {
    counter-increment: step-counter;
    padding: 20px;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #fff 0%, #fef5f9 100%);
    border-radius: 12px;
    position: relative;
    padding-left: 60px;
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    border-left: 4px solid var(--primary-color);
}

#recipeInstructions li:before {
    content: counter(step-counter);
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.tips-section {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    padding: 25px;
    border-radius: 15px;
    border-left: 5px solid #ff9800;
}

.tips-section h3 {
    border: none;
    color: #e65100;
}

.tips-section h3 i {
    background: #ff9800;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tips-section p {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
    margin: 0;
}

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

@media (max-width: 968px) {
    .container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        position: static;
    }
    
    #root {
        width: 100%;
    }
    
    .nav-list {
        gap: 1.5rem;
    }
    
    .recipe-header {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    #root {
        grid-template-columns: 1fr;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .navbar {
        margin-right: 20px;
    }
    
    .logo {
        margin-left: 20px;
    }
    
    .modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .recipe-content {
        padding: 20px;
    }
}