@import url('https://fonts.googleapis.com/css2?family=Onest:wght@400;500;700&display=swap');

/* Reset and General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Onest', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header Styles */
header {
    width: 100%;
    background-color: #CEB888;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 120px;
}

/* Logo Styles */
.logo {
    flex: 0 0 auto;
    width: 150px;
    height: 50px;
    display: flex;
    align-items: center;
}

.logo img {
    max-width: 230%;
    max-height: 230%;
    object-fit: contain;
}

/* Navigation Styles */
nav {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 20px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

nav ul li a {
    text-decoration: none;
    color: #000000;
    font-weight: bold;
    padding: 5px 15px;
    transition: color 0.3s;
    font-size: 1.2rem;
}

nav ul li a:hover {
    color: #373737;
}

nav ul li a.active {
    border-bottom: 2px solid #000000;
}

/* Icons Container */
.icons {
    flex: 0 0 auto;
    display: flex;
    gap: 20px;
    align-items: center;
}

.profile-icon {
    position: relative;
}

.profile-icon img,
.text-icon img {
    width: 35px;
    height: 35px;
    cursor: pointer;
}

/* Dropdown Menu Styling */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #ffffff;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid #CEB888;
    border-radius: 4px;
    width: 150px;
    z-index: 1000;
}

.dropdown-menu a {
    display: block;
    padding: 10px;
    color: #000000;
    text-decoration: none;
    font-size: 1.1rem;
}

.dropdown-menu a:hover {
    background-color: #CEB888;
    color: #ffffff;
}

.listings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-dropdown {
    padding: 8px;
    border: 1px solid #CEB888;
    border-radius: 4px;
    background-color: white;
}

/* Layout Styling */
.container {
    display: flex;
    justify-content: space-between;
    width: 95%;
    margin: 20px auto;
    flex: 1;
    gap: 30px;
}

/* Left Column Styling */
.left-column {
    flex-basis: 15%;
    min-width: 180px;
    padding-right: 20px;
}

.left-column h2 {
    font-size: 1.8rem;
    color: #000000;
    border-bottom: 2px solid #CEB888;
    padding-bottom: 5px;
    margin-bottom: 20px;
}

.left-column ul {
    list-style: none;
}

.left-column ul li {
    margin-bottom: 15px;
}

.left-column ul li a {
    text-decoration: none;
    color: #000000;
    transition: color 0.3s;
    font-size: 1.2rem;
    display: block;
    padding: 5px 0;
}

.left-column ul li a:hover {
    color: #CEB888;
}

/* Right Column Styling */
.right-column {
    flex-basis: 82%;
}

.right-column input[type="text"] {
    font-family: 'Onest', sans-serif;
    padding: 8px;
    width: 80%;
    margin-right: 5px;
    border: 1px solid #CEB888;
    border-radius: 4px;
}

.right-column button {
    padding: 8px 15px;
    background-color: #000000;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.right-column button:hover {
    background-color: #373737;
}

.right-column h2 {
    font-size: 1.8rem;
    margin: 20px 0;
    color: #000000;
    border-bottom: 2px solid #CEB888;
    padding-bottom: 5px;
}

/* Listings Grid */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.listing-item {
    background-color: #ffffff;
    border: 1px solid #CEB888;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-wrap: wrap;        
    justify-content: space-around; 
}

.listing-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.listing-image img {
  border-radius: 4px;
  width: 100%;              
  max-width: 400px;        
  aspect-ratio: 1 / 1;      
  object-fit: cover;        
}


.listing-info {
    margin-top: 10px;
}

.listing-info p {
    margin: 5px 0;
    color: #000000;
}

.listing-info p strong {
    color: #000000;
}

/* Favorite Icon Styling */
.favorite-icon {
    position: absolute;
    top: 25px;
    right: 25px;
}

.heart-circle {
    background-color: #ffffff;
    border-radius: 50%;
     width: 35px;   
    height: 35px;
    padding: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.heart-icon {
    color: #000000;
    transition: color 0.3s;
}

.heart-icon[data-liked="true"] {
    color: #FFB0CC;
}

/* Product Link Styling */
.product-item {
    text-decoration: none;
    color: inherit;
    display: block;
}


footer {
    width: 100%;
    padding: 25px 0;
    background-color: #000000;
    color: #ffffff;
    text-align: center;
    bottom: 0;
    margin-top: auto;
    box-sizing: border-box;
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        height: auto;
        padding: 10px;
        align-items: center; 
    }

    .logo {
        width: 120px; 
        height: 50px;
        margin-bottom: 10px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    nav {
        width: 100%; 
        margin: 0;
        display: flex; 
        justify-content: center; 
    }

    nav ul {
        display: flex; /* Flex to keep items on the same line */
        gap: 15px;
        justify-content: center; /* Center the items in the navbar */
        padding: 0;
        margin: 0;
    }

    nav ul li {
        display: inline-block; /* Keep the nav items inline */
    }

    .icons {
        margin-top: 10px;
        justify-content: center;
    }

    .container {
        flex-direction: column;
        width: 98%; /* adjustment for mobile */
        gap: 15px;
    }

    .left-column {
        width: 100%;
        min-width: 100%;
        padding-right: 0;
        margin-bottom: 15px;
    }

    .right-column {
        width: 100%;
   

    }

    .right-column input[type="text"] {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }

    .right-column button {
        width: 100%;
    }

    .listings-grid {
        grid-template-columns: repeat(2, 1fr); /* Two columns on smaller screens */
        gap: 15px;
    }
}

@media (max-width: 480px) {
    nav ul {
        flex-direction: row; 
        justify-content: center; 
        gap: 10px;
    }

    .listings-grid {
        grid-template-columns: repeat(2, 1fr); /* Two columns on smaller screens */
        gap: 15px;

    .listing-item {
        flex-direction: column;
        align-items: center;
    }

    .listing-image {
        width: 100%;
        max-width: 300px; 
    }
}
}