/* Global Styles */
body {
    font-family: Arial, sans-serif;
    font-size: 16px;
    background-color: #f4f4f9;
    color: #333;
    margin: 0;
    padding: 0;

}

/* Applies to all <h1>...</h1> elements. */
h1 {
  font-size: 35px;
  font-weight: bold;
  color: #595378;
  margin-top: 5px;
}

.content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Grid Container */
#product-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    #product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Product Item Styles */
.product-item {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.product-item:hover {
    transform: translateY(-5px);
}

.product-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}

.product-details h3 {
    font-size: 1.2em;
    color: #333;
    margin: 0 0 10px;
}

.product-details p {
    font-size: 1em;
    margin: 5px 0;
    color: #666;
}

/* Price Style */
.product-price {
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 10px 15px;
    font-weight: bold;
    color: #ffffff;
    background-color: #d9534f; /* Red color */
    border: none;
    border-radius: 5px;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #f0ad4e; /* Yellow color */
}

/* eBay Button Styles */
.ebaybtn {
    display: inline-block;
    padding: 10px 15px;
    font-weight: bold;
    color: #ffffff;
    background-color: #0056b3;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    margin-left: 10px;
    transition: background-color 0.3s ease;
}

.ebaybtn:hover {
    background-color: #ffb700;
}

/* Flex container for buttons */
.button-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: auto; /* Pushes buttons to the bottom */
}

/* Desktop Dropdown Styling */
.desktop-dropdown {
    position: relative;
    display: inline-block;
}

/* Mobile Menu Styling */
.mobile-menu {
    display: none;
}

.menu-icon {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* Show mobile dropdown and hide desktop dropdown only on small screens */
@media (max-width: 768px) {
    .desktop-dropdown {
        display: none; /* Hide desktop dropdown on mobile */
    }
    .menu-icon {
        display: block; /* Show the mobile menu icon on mobile */
    }
    .mobile-menu {
        display: none;
        width: 100%;
        margin: 10px 0;
    }
    .mobile-menu select {
        width: 100%;
        padding: 10px;
        font-size: 18px;
    }
}

.search-button {
    background-color: #0073e6;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

/* Shared Button Styling */
.home-button-style {
    background-color: #0073e6;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

/* Desktop Dropdown Styling */
.desktop-dropdown {
    position: relative;
    display: inline-block;
}

.desktop-dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.desktop-dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.desktop-dropdown-content a:hover {
    background-color: #f1f1f1;
}

/* Show dropdown content on hover */
.desktop-dropdown:hover .desktop-dropdown-content {
    display: block;
}
