/* Fix the Navbar Position */
.navbar {
    margin-left: 1px;
    margin-right: 1px;
    position: fixed;
    top: 0;
    left: 0;
    width: 99.5%;
    background: #274153eb;
    padding-left: 0px;
    padding-right: 0px;
    padding-top: 12px;
    padding-bottom: 12px;
    display: flex;
    justify-content: space-between;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav-links li {
    display: inline;
}

.nav-links li a {
    display: inline;
    margin-right: 10px;
    padding-right: 15px;
    text-decoration: none;
    color: white;
    font-size: 16px;
    font-weight: bold;
    transition: color 0.3s ease;
}






/* Trending Products Page Styling */
body {
    font-family: Arial, sans-serif;
    background: linear-gradient(to right, #9fcbcd, #5d2a38);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 1px 1px 1px 1px;
    padding: 20px;
}



.logo img {
    position: flex;
    height: 40px;
    width: 80%;
    border: none;
    border-radius: 10px;
    margin-left: 25px;
    padding-left: 0px;
    padding-top: 4px;
    box-shadow: 4px 6px 12px rgba(.2, .4, .2, 0.4);
}






h2 {
    color: #333;
    font-size: 28px;
    margin-bottom: 20px;
    text-align: center;
}

/* Search Container Styling */
.search-container {
    margin-bottom: 20px;
    text-align: center;
}

.search-container form {
    height: 170%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.search-container input {
    padding-top: 4px;
    padding-bottom: 4px;
    width: 220px;
    height: 170%;
    padding: 10px;
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid #ccc;
    outline: none;
}

.search-container button {
    padding: 10px 15px;
    font-size: 16px;
    background: #d13b54; /* Darker shade of background */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease-in-out;
}

.search-container button:hover {
    background: #a02a41; /* Darkest shade */
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    margin: auto;
}

.product-card {
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0px 6px 12px rgba(.7, .5, 0, 0.4);
    text-align: center;
    transition: transform 0.3s ease-in-out;
    
}

.product-card:hover {
    transform: scale(1.05);
}

.product-card img {
    width: 100%;
    max-width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
}

h3 {
    font-size: 18px;
    margin-top: 10px;
    color: #333;
}

.price {
    font-size: 20px;
    font-weight: bold;
    color: #ff3b6f;
    margin: 10px 0;
}

.category, .brand {
    font-size: 14px;
    color: #555;
    margin-bottom: 5px;
}

.btn {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 15px;
    background: #d13b54; /* Darker shade of background */
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease-in-out;
}

.btn:hover {
    background: #a02a41; /* Darkest shade */
}

/* Navigation Buttons */
.nav-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
    width: 100%;
    max-width: 600px;
}

.nav-buttons a {
    padding: 12px 20px;
    text-decoration: none;
    color: white;
    background: #007bff;
    border-radius: 8px;
    font-size: 16px;
    transition: background 0.3s ease-in-out;
}

.nav-buttons a:hover {
    background: #0056b3;
}



/* Pagination Styling */
.pagination {
    text-align: center;
    margin-top: 20px;
}

.pagination a {
    display: inline-block;
    padding: 8px 15px;
    text-decoration: none;
    color: white;
    background: #007bff;
    border-radius: 5px;
    margin: 5px;
    transition: background 0.3s ease-in-out;
}

.pagination a:hover {
    background: #0056b3;
}

.pagination span {
    font-size: 18px;
    font-weight: bold;
    margin: 0 10px;
}
