* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #fdfdfd;
    color: #1a1a1a;
    line-height: 1.6;
}

header {
    background-color: #ffffff;
    padding: 2rem 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-bottom: 4px solid #0d1b2a;
    background-color: #0d1b2a;
}

header h1 {
    font-size: 3rem;
    color: #ebeef1;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
    letter-spacing: 1px;
    font-family: 'Times New Roman', Times, serif;

}

header figure {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

header figure img {
    border-radius: 20px;
    width: 400px;
    height: 400px;
    object-fit: cover;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

header figure img::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #ff7e5f, #feb47b, #86a8e7, #91eae4);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

header figure img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

nav {
    background-color: #0d1b2a;
    border-radius: 12px;
    max-width: 900px;
    margin: 0 auto;
    padding: 0.8rem 1.5rem;
}

nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    list-style: none;

}

nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;

}

nav a:hover {
    background-color: #ffffff;
    color: #0d1b2a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#content {
    padding: 2rem;
    background-color: #ffffff;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

article {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease;
}

article:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

article::before {
    content: "";
    display: block;
    height: 6px;
    width: 100%;
    background: linear-gradient(90deg, #ff7e5f, #feb47b, #86a8e7, #91eae4);
    position: absolute;
    top: 0;
    left: 0;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

article img {
    border-radius: 15px;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin-top: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

article img:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

article figcaption {
    margin-top: 0.8rem;
    font-weight: bold;
    font-size: 1rem;
    color: #0d1b2a;
}

article p {
    margin-top: 0.5rem;
    font-size: 0.95rem;
    color: #333333;
    padding: 0 0.5rem 1rem;
}

figure {
    margin: 0;
}

aside {
    background-color: #f5f7f9;
    padding: 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
}

aside section {
    flex: 1 1 250px;
}

aside h3 {
    margin-bottom: 1rem;
    color: #0d1b2a;
    border-bottom: 2px solid #86a8e7;
    padding-bottom: 0.5rem;
}

aside ul {
    list-style: none;
    padding-left: 0;
}

aside li a,
aside ul a {
    color: #0d1b2a;
    text-decoration: none;
    display: block;
    margin: 0.5rem 0;
}

aside li a:hover {
    color: #ff7e5f;
}


footer {
    background-color: #0d1b2a;
    color: white;
    text-align: center;
    padding: 2rem 1rem;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    header figure {
        flex-direction: column;
    }

    #content {
        grid-template-columns: 1fr;
    }

    aside {
        flex-direction: column;
    }
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding: 0.7rem 1rem;
    background-color: #f4f4f4;
    border-radius: 12px;
    border-top: 2px solid #dcdcdc;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.price {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0d1b2a;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.add-to-cart {
    padding: 0.5rem 1rem;
    background: linear-gradient(90deg, #0d1b2a, #344966);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.add-to-cart:hover {
    background: linear-gradient(90deg, #344966, #0d1b2a);
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

h2{
    text-align: center;
}