@import url("https://fonts.googleapis.com/css?family=Muli:300,400,600,700,800,900");

/* General Styles */
body {
    font-family: "Muli", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    padding-top: 70px; /* Adjust for fixed header */
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: #333;
}

p {
    font-size: 14px;
    line-height: 1.6;
}

h1 {
    font-size: 28px;
    font-weight: bold;
}

h2 {
    font-size: 24px;
}
h5 {
    font-size: 16px;
}

p {
    font-size: 16px;
    line-height: 1.6;
}
@media (max-width: 768px) {
    h1 { font-size: 24px; }
    h2 { font-size: 20px; }
    p { font-size: 16px; }
}




/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 0px 0;
}
.header-top1{
    padding: 0px;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 10px;
    padding: 0 15px;
    display: block;
    justify-content: space-between;
    align-items: center;
}
.content {
    margin-top: 80px; /* adds space between header and content */
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.navbar-brand {
    font-size: 24px;
    font-weight: bold;
    color: #007bff;
    text-decoration: none;
}
marquee{
    justify-content: space-between;
    align-items: center;
}
.navbar-nav {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}
.navbar-nav .nav-item{
    margin: 2px;
    padding: 2px;
}
.nav-link {
    text-decoration: none;
    font-size: 16px;
    color: #333;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #007bff;
}

/* Search Bar */
.search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-bar select,
.search-bar input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.search-bar button {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px 15px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-bar button:hover {
    background-color: #0056b3;
}

/* Product Section */
.section {
    padding: 60px 15px;
    background-color: #fff;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 24px;
    font-weight: 600;
    color: #333;
}
.category-title a{
    color: #333;
}
.subcategory-title a{ 
    color: #333;
}
/* Product Listing */


.product-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.product-img-wrapper {
    height: 200px;
    width: 100%;
    background-color: #fff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* crop edges if needed */
    display: block;
}


.card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
}

.card-title {
    font-size: 16px;
    min-height: 48px;
}

.card-text {
    font-size: 14px;
    margin-bottom: 12px;
}


    /* Business Info (Seller Details) */
    .business-info {
        max-width: 1200px;
        margin: auto;
        padding: 20px;
        border: 1px solid #ddd;
        border-radius: 8px;
        background: #f9f9f9;
    }
    .business-info h2 {
        font-size: 22px;
        margin-bottom: 10px;
    }
    .business-info p {
        font-size: 16px;
        color: #555;
    }
    .business-info a {
        color: #007bff;
        font-weight: bold;
        text-decoration: none;
    }
    .business-info a:hover {
        text-decoration: underline;
    }
    .seller-header {
        text-align: center;
        padding: 20px;
        border-bottom: 2px solid #ddd;
        background: #f8f8f8;
        border-radius: 10px;
        margin-bottom: 20px;
    }
    .seller-logo {
        max-width: 150px;
        height: auto;
        border-radius: 5px;
        margin-bottom: 10px;
    }
    .seller-header h2 {
        font-size: 24px;
        margin: 5px 0;
        color: #333;
    }
    .seller-header p {
        font-size: 16px;
        color: #555;
    }

    /* Contact Information */
    .contact-info {
        background: #fff;
        padding: 20px;
        border-radius: 10px;
        box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
        margin-bottom: 20px;
    }
    .contact-info h3 {
        font-size: 20px;
        color: #333;
        margin-bottom: 10px;
    }
    .contact-info p {
        font-size: 16px;
        color: #555;
        margin: 5px 0;
    }
    .contact-info a {
        color: #007bff;
        text-decoration: none;
        font-weight: bold;
    }
    .contact-info a:hover {
        text-decoration: underline;
    }
 /* Product Section */
 .product-section {
    background: #fff;
    padding: 50px;
    border-radius: 10px;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
}
.product-section h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
}
.product-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}
.product-card {
  width: 200px;
  height: 350px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  padding: 10px;
}

.product-image {
  width: 100%;
  height: 187px;
  object-fit: cover;
}

.product-title {
  height: 40px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

.product-price {
  font-weight: bold;
  margin: 10px 0;
}

.view-details-btn {
  background-color: #007bff;
  color: white;
  padding: 8px 12px;
  border: none;
  border-radius;
}
.product-card h4 {
    font-size: 16px;
    margin: 10px 10px;
    color: #333;
    flex-grow: 1; /* Makes sure title takes available space */
}

.product-card p {
    font-size: 14px;
    color: #666;
}

.product-card a {
    display: block;
 /*    padding: 10px;
 background: #007bff;
    color: #fff;*/
    text-decoration: none;
    border-radius: 0 0 8px 8px;
   /* margin-top: auto;    Pushes the button to the bottom */
}

.product-card a:hover {
    background: #eeeef1;
}
/* General Styles */
.login-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f4f4f4;
}

/* Container */
.container-1 {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

/* Heading */
.container-1 h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

/* Form Inputs */
.container-1 label {
    display: block;
    text-align: left;
    font-weight: bold;
    margin-bottom: 5px;
    color: #555;
}

.container-1 input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
}

/* Button */
.container-1 button {
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s;
}

.container-1 button:hover {
    background-color: #0056b3;
}

/* Success & Error Messages */
.success, .error {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    font-size: 14px;
}

.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Register Link */
.container-1 p {
    margin-top: 15px;
    font-size: 14px;
}

.container-1 a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

.container-1 a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .search-bar {
        flex-direction: column;
        gap: 5px;
    }

    .navbar-nav {
        flex-direction: column;
        gap: 10px;
    }

    .product-listing {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .section-title {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 10px 0;
    }

    .search-bar select,
    .search-bar input {
        width: 100%;
    }

    .search-bar button {
        width: 100%;
    }
}



.title, .price {
  margin: 0;
  padding: 0 5px; /* reduce horizontal padding */
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 30px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
}

.pagination li {
    margin: 0 5px;
}


.pagination a {
    display: block;
    padding: 10px 15px;
    color: #007bff;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.pagination a:hover {
    background-color: #007bff;
    color: #fff;
}

.pagination .active a {
    background-color: #007bff;
    color: #fff;
}
