/* General Styles */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #F8F9FA; /* Off-White */
    color: #212529; /* Dark Gray */
}

h1, h2, h3 {
    color: #0000FF; /* Deep Blue */
}

.card-text {
  font-size: 11px; /* Adjust the size as needed */
  font-weight: normal; /* Can make the text less bold */
  background-color: #0000FF; /* Blue background for non-hover state */
  color: #fff; /* A slightly muted color for smaller text */
}

/* Navbar link buttons */
.navbar-dark .navbar-nav .nav-link {
    background-color: #0000FF; /* Blue background for non-hover state */
    color: #ffffff; /* White text for contrast */
    padding: 10px 15px; /* Button-like padding */
    border-radius: 5px; /* Rounded corners for button appearance */
    margin-right: 5px; /* Spacing between buttons */
    text-align: center;
}

/* Hover and focus states */
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
    background-color: #002752; /* Darker blue for hover state */
    color: #FFC107; /* Yellow text for hover */
    text-decoration: none; /* Remove underline */
}

/* New rule to target site name color in navbar */
.navbar-brand .display-5 {
  color: #0000FF;
  font-size: 1.25rem;
  display: inline-block;
}

@media (min-width: 992px) {
    .navbar-brand .display-5 {
        font-size: 1.75rem;
    }
}
/* Main Content */
.container {
    background-color: #FFFFFF; /* White background for main content */
    color: #212529; /* Dark Gray text */
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-top: 10px; /* Reduced gap between navbar and content */
}

/* Buttons */
button, .button {
    display: inline-block;
    padding: 10px 15px;
    font-size: 14px;
    color: #FFFFFF; /* White text */
    background-color: #0000FF; /* Deep Blue */
    border: none;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
}

button:hover, .button:hover {
    background-color: #002752; /* Darker Blue for hover state */
}

/* Lists */
.list-group-item {
    background-color: #FFFFFF; /* White for better readability */
    color: #212529; /* Dark Gray */
}

.list-group-item:hover {
    background-color: #FFC107; /* Highlight on hover */
    color: #0000FF; /* Deep Blue text */
}

.products {
            font-family: Arial, sans-serif;
            margin: 10px;
            max-width: 1200px;
            margin-left: auto;
            margin-right: auto;
            border: 5px solid #ccc; /* 5px border around the container */
            padding: 10px; /* Padding inside the border */
        }
        .search-container {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }
        .filters {
            display: flex;
            flex-wrap: wrap;
            gap: 15px;
        }
        .filters input[name="searchQuery"] {
        width: 50%; /* Double the width of the search input box */
        }
        .results-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
        }
        .result-item {
            border: 1px solid #ccc;
            border-radius: 5px;
            background-color: #f9f9f9; /* Light gray background for each item */
            text-align: center;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
             padding: 5px; /* Padding inside the item */
        }
       .result-item a {
            text-decoration: none;
            color: inherit;
            display: flex;
            flex-direction: column;
            height: 100%;
            justify-content: space-between;
        }
        .result-item img {
            width: auto;
            max-width: 100%;
            height: 200px; /* Fixed height for consistent sizing */
            object-fit: contain;
            margin-bottom: 5px;
        }
      .result-item > a > div{
          display: flex;
          justify-content: space-between;
          align-items: baseline;
          margin-top: auto; /* pushes the row to the bottom */
      }
      .result-item > a > div p {
          margin-bottom: 0;
      }
     .result-item h3 {
      text-decoration: none;
      }
      .result-item card-details {
    font-color: #0000FF; /* White text */
    font-weight: bold; /* Bold font */
    font-size: 12px; /* Adjust the size as needed */
    text-align: center; /* Centers the text inside the .card */
    }
    
    /* Bid Price Styling */
bid-price {
margin-left: 2px; /* Add a gap from the left edge */
text-align: center;
}
        .view-button {
            background-color: red;
            color: black;
            text-align: center;
            padding: 10px 15px;
            display: block; /* Changed to block */
            border-radius: 5px;
            font-size: 16px;
            font-weight: bold;
        }
         .view-button:hover {
            background-color: #FFC107;
        }
        button[type="submit"] {
            background-color: red;
            color: black;
            font-weight: bold;
            border: none;
            padding: 12px 20px;
            font-size: 16px;
            cursor: pointer;
            border-radius: 5px;
            margin-top: 20px; /* Adds spacing */
            margin-bottom: 10px; /* Adds margin below the button */
            width: 100%; /* Button takes 80% of the container's width */
            text-align: center; /* Left-align the button's text */
        }
        button[type="submit"]:hover {
            background-color: #FFC107;
        }

.card p {
margin-left: 2px; /* Add a gap from the left edge */
}

.form-row {
          display: flex;
          align-items: center; /* Align items vertically in the center */
          gap: 10px; /* Add some space between elements in the row */
          margin-bottom: 10px; /* Add some space after each row */
        }
        .form-row select {
           flex: 1; /* Allow select boxes to grow and fill space */
           min-width: 150px;
        }
           .form-row input {
              flex: 1; /* Allow input boxes to grow and fill space */
        }
//Featured Grid
/* Hero Section */
.hero {
    background: #e0f7fa;
    text-align: center;
    padding: 50px 0;
}

.hero h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.hero .lead {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 30px;
}

/* Button Style */
.btn {
    display: inline-flex; /* Changed to inline-flex */
    align-items: center;    /* Vertically center button text */
    justify-content: center; /* Center text horizontally */
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    white-space: nowrap; /* Prevent wrapping if there are longer words */
  /*  min-width: 100px; set a minimum width for buttons if required */
}

.btn-primary {
    background-color: #0000FF;
    color: white;
}
.btn-secondary {
    background-color: #6c757d;
    color: white;
    display: inline-block;
}

/* Container for buttons - use this class when you want a row of buttons */
.button-row {
  display: flex;
  gap: 10px; /* add some spacing between buttons */
  align-items: center; /* Vertically center buttons */
  justify-content: flex-start; /* Align buttons from the start */
}

.featured-products {
    padding: 40px 0;
}

.featured-products h2 {
    text-align: center;
    margin-bottom: 30px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    justify-content: space-around;
}

.product-card {
  width: 300px; /* Set consistent card width */
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
  background-color: #fff;
  text-align: center;
}

.product-card .btn {
    margin-top: auto; /* Push the button to the bottom */
}
.product-card img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.product-card h3 {
    font-size: 1.3em;
}
.product-card h3 a {
  text-decoration: none;
  color: #333;
}

.ebay-resellers {
    background: #f8f9fa;
    padding: 40px 0;
}

.ebay-resellers h2 {
    text-align: center;
    margin-bottom: 30px;
}

.ebay-resellers-content{
    max-width: 800px;
    margin: 0 auto;
}
.ebay-resellers-content ul{
    list-style-type: square;
    padding-left: 20px;
}
.why-choose-us {
    padding: 40px 0;
}
.why-choose-us h2 {
    text-align: center;
    margin-bottom: 30px;
}
.why-choose-us-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.feature {
  text-align: center;
}
.feature-icon {
    max-width: 100px;
    height: auto;
    margin-bottom: 10px;
    display: block;
    margin-left: auto;
    margin-right: auto;

}

/* Product page styles */

.product-hero {
  padding: 40px 0;
  background: #e0f7fa;
}

.product-hero .container {
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-hero-content{
    display: flex;
    align-items: center;
    max-width: 1000px;

}
.product-hero-content .product-details{
    flex: 1;
  padding-left: 20px;
}
.product-image-hero {
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    flex: 1;
}

.product-features {
  padding: 40px 0;
}
.product-features h2{
    text-align: center;
    margin-bottom: 20px;
}
.feature-grid {
  display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.feature-grid .feature {
    background: white;
     padding: 15px;
     border-radius: 8px;
     border: 1px solid #ddd;
    text-align: center;
}

.how-to-order {
    padding: 40px 0;
  background: #f8f9fa;
}
.how-to-order h2{
    text-align: center;
    margin-bottom: 20px;
}
.how-to-order ol {
    max-width: 800px;
    margin: 0 auto;
    padding-left: 20px;
}
.contact-us {
    padding: 40px 0;
    text-align: center;
}

/* Flexbox for buttons */
.button-container {
  display: flex; /* Align buttons in a row */
  gap: 10px; /* Add spacing between buttons */
  justify-content: center; /* Center buttons horizontally */
}

       .category-section {
             margin-bottom: 30px;
            padding: 20px;
            border: 1px solid #ddd;
            border-radius: 8px;
        }
         .trending-item {
             margin-bottom: 20px;
             padding: 15px;
           border: 1px solid #eee;
            border-radius: 5px;
            overflow: hidden; /* Added to clear floats */
        }
        .trending-item h3 {
           margin-bottom: 5px;
         }
       .trending-item a {
            color: #007bff;
            text-decoration: none;
         }
        .trending-item a:hover {
            text-decoration: underline;
        }
        .trending-item img { /* Target images specifically inside trending-item */
            max-width: 250px; /* Fixed image width for consistent alignment */
            height: auto;
            float: left; /* Align image to the left */
            margin-right: 15px;
             margin-bottom: 10px; /* Add some margin at the bottom of the image */
         }
        .trending-item-text {
             overflow: hidden; /* Ensures text wraps around the float */
         }
         .fun-item {
             margin-bottom: 15px;
            padding: 10px;
             border: 1px solid #eee;
            border-radius: 5px;
        }
        
        .search-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    font-family: 'Roboto', sans-serif;
}

.form-row, .form-row-inline {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.form-row label {
    flex: 0 0 120px;
    font-weight: 500;
    color: #333;
}

.form-row select, 
.form-row input {
    flex: 1;
    padding: 8px 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    color: #333;
}

.form-row-inline {
    justify-content: space-between;
    gap: 10px;
}

.form-group-inline {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group-inline label {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
}

.form-group-inline input, 
.form-group-inline select {
    padding: 8px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    color: #333;
}

button.btn-search {
    width: 100%;
    padding: 10px 0;
    background-color: #478ac9;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button.btn-search:hover {
    background-color: #367bbd;
}

@media (max-width: 600px) {
    .form-row, .form-row-inline {
        flex-direction: column;
    }

    .form-row label, 
    .form-group-inline label {
        margin-bottom: 8px;
    }

    .form-row-inline .form-group-inline {
        width: 100%;
    }
}

