* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Poppins", Arial, sans-serif;
    background: #f4f6f9;
    color: #333;
}
/*header styles*/
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 40px;
    background: #7e8083;
    color: hsl(350, 93%, 45%);
}

.site-title {
    font-size: 2.8rem;
    font-weight: 900;
    letter-spacing: 0.5px;
}

.logo img {
    height: 55px;
    object-fit: contain;
}
/*Naviagtion bar*/
nav {
    background: #1565c0;
    padding: 0 40px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    padding: 0;
    margin: 0;
}

nav ul li a {
    display: block;
    padding: 14px 0;
    text-decoration: none;
    color: #fff;
    font-weight: 500;
}

nav ul li a:hover {
    border-bottom: 3px solid #ffca28;
}
/*page title*/
.page-title {
    text-align: center;
    margin: 30px 0 20px;
    font-size: 1.8rem;
    color: #0d47a1;
}
/*product grid*/
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 25px;
    padding: 0 40px 40px;
}
/*product card*/
.product-card {
    background: #fff;
    border-radius: 10px;
    display: flex;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}
/*Left  section*/
.left-section {
    flex: 1;
    padding: 15px;
    border-right: 1px solid #eee;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.left-section img {
    width: 100%;
    height: 160px;
    object-fit: contain;
    border-radius: 6px;
    background: #fafafa;
}

.left-section h2 {
    margin: 12px 0 10px;
    font-size: 1.3rem;
    color: #0d47a1;
    text-align: center;
}
/*sell Button*/
.sell-button-wrapper {
    margin-top: auto;
}

.sell-button {
    display: inline-block;
    padding: 10px 22px;
    background: #2e7d32;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 5px;
    transition: background 0.2s ease;
}

.sell-button:hover {
    background: #1b5e20;
}
/*right section*/
.right-section {
    flex: 2;
    padding: 18px;
    background: #f9fafc;
}

.right-section p {
    margin: 6px 0;
    font-size: 0.95rem;
}

.right-section strong {
    color: #333;
}
/*footer*/
footer {
    text-align: center;
    padding: 15px;
    background: #0d47a1;
    color: #fff;
    font-size: 0.9rem;
}
/*Responsive code*/
@media (max-width: 768px) {

    header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
    }

    nav ul li a {
        padding: 10px 0;
        text-align: center;
    }

    .product-card {
        flex-direction: column;
    }

    .left-section {
        border-right: none;
        border-bottom: 1px solid #eee;
    }
}
