body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    margin: 0;

    background-color: #fff;
}


.navbar-t {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    font-size: 13px;
    border-bottom: 1px solid #ddd;
    max-height: 30px;
}

.left {
    display: flex;
    gap: 25px;
    margin-left: 200px;
}

.menu {
    display: flex;
    list-style: none;
    gap: 25px;
    margin-right:200px ;
}

.menu li a {
    text-decoration: none;
    color: black;
}


.navbar-b {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 10px 20px;
    margin-left: 200px;
    margin-right: 200px;
}

.logo {
    height: 50px;
}

.search-container {
    display: flex;
    align-items: center;
    flex-grow: 1;
    padding-left: 15px;
    border: 2px solid black;
    border-radius: 30px;
    overflow: hidden;
}

.search-input {
    flex-grow: 1;
    border: none;
    padding: 10px;
    font-size: 16px;
    outline: none;
}

.category-dropdown {
    border: none;
    /* padding: 10px; */
    outline: none;
}

.search-button {
    background-color: #3460E9;
    color: white;
    padding: 10px 50px;
    border: 1px solid #3460E9;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
}
.search-button:hover{
    background-color: #3628E5;
}

.advanced-search {
    color: #898989;
    text-decoration: none;
    font-size: 13px;
}

.advanced-search:hover{
    color: #3460E9;
}

/* Sort by category style */
.category-btn {
    background: white;
    padding: 10px;
    cursor: pointer;
    font-size: 12px;
    color: #898989;
}

.category-btn:hover {
    background: #f3f3f3;
}

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

.dropdown-content {
    display: none;
    position: absolute;
    background: white;
    gap: 50px;
    width: 600px;
    top: 100%;
    left: 0;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    z-index: 1000;
    display: flex;
    flex-wrap: wrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.column {
    flex: 1;
    min-width: 150px;
    padding: 10px;
}

.column h4 {
    margin: 5px 0;
    font-size: 16px;
}

.column p {
    margin: 5px 0;
    font-size: 13px;
    color: #898989;
    cursor: pointer;
}

.column p:hover {
    text-decoration: underline;
}

/* Show dropdown on hover */
.category-dropdown:hover .dropdown-content {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.search-input {
    flex-grow: 1;
    padding: 10px;
    margin-left: 20px;
    font-size: 14px;
}
hr{
    opacity: 70%;
    margin-top: 0;
}


/* header part upto here */



.head {
    display: flex;
    justify-content: space-between;
}

.head ul a {
    color: black;
}
.notification-bar {
    background-color: #3665f3;
    color: white;
    padding: 12px;
    margin-bottom: 20px;
}

.notification-bar a {
    color: white;
    text-decoration: underline;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
}

.main-content {
    padding-right: 20px;
}

.seller-info {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.seller-avatar {
    width: 32px;
    height: 32px;
    background-color: #ddd;
    border-radius: 50%;
    margin-right: 10px;
}
.product-card {
    display: grid;
    grid-template-columns: 100px 1fr 150px;
    gap: 20px;
    padding: 20px;
    border: 1px solid #e8e8e8;
    margin-bottom: 20px;
}

.product-image {
    width: 100px;
    height: 100px;
    background-color: #f8f8f8;
}

.product-details h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: black;
}

.product-details a {
    text-decoration: none;
}

.quantity-selector {
    width: 60px;
    padding: 5px;
    margin-top: 10px;
}
.sidebar {
    position: sticky;
    top: 20px;
    background: white;
    padding: 20px;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    height: fit-content;
}

.checkout-button {
    background-color: #3665f3;
    color: white;
    border: none;
    padding: 12px;
    width: 100%;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 20px;
}

.related-items {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e8e8e8;
    position: relative;
    overflow: scroll;
    
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.related-item {
    border: 1px solid #e8e8e8;
    padding: 10px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    
}

.related-item a {
    color: black;
    text-decoration: none;
}

.related-item img {
    width: 100%;
    height: 150px;
    object-fit: contain;
    margin-bottom: 10px;
}

.price {
    color: #111;
    font-weight: bold;
    font-size: 20px;
}

.price .save a {
    color: black;
    font-size: small;
    font-weight: 200;
}

.same-footer {
    margin-top: 20px;
    font-size: 14px; 
    padding-top: 12px;
    text-align: center;
    }

    .same-footer p {
    margin: 0;
    }

    .same-link {
    color: #3b82f6; 
    text-decoration: none;
    }

    .same-link:hover {
    text-decoration: underline;
    }