body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-image: url('uploads/productsbg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-color: #061f3c;
}

.products-nav {
    background: rgba(5, 32, 61, 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.logo a {
    color: #ffffff;
    text-decoration: none;
}

.logo h1 {
    font-size: 42px;
    margin: 0;
    letter-spacing: 3px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}

.search-container form {
    display: flex;
    align-items: center;
}

.search-container input {
    width: 340px;
    padding: 12px 18px;
    border: 1px solid rgba(255,255,255,0.15);
    outline: none;
    background: rgba(255,255,255,0.92);
    border-radius: 30px 0 0 30px;
    font-size: 14px;
}

.search-container button {
    padding: 12px 18px;
    border: none;
    background: #ffd166;
    color: #1e1e1e;
    border-radius: 0 30px 30px 0;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.search-container button:hover {
    background: #ffbf3f;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 10px;
    padding: 0;
    margin: 0;
}

.nav-links li a {
    color: #f4f8ff;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.25s ease;
}

.nav-links li a:hover {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(4px);
    transform: translateY(-2px);
}

.nav-user {
    font-weight: 600;
}

.nav-user:hover {
    background: rgba(255,255,255,0.2);
}

.page-wrapper {
    max-width: 1200px;
    margin: 60px auto;
    padding: 20px;
}

#products {
    background: #ffffff;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

#products h2 {
    text-align: center;
    color: #083b66;
    font-size: 40px;
    margin-bottom: 35px;
}

.category-title {
    font-size: 28px;
    color: #0f5fa8;
    margin-top: 40px;
    margin-bottom: 18px;
    padding-left: 12px;
    border-left: 5px solid #0f5fa8;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 22px;
}

.product-card {
    background: #f9fcff;
    border-radius: 16px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: 0.25s;
    border: 1px solid rgba(15,95,168,0.1);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 18px rgba(0,0,0,0.15);
}

.product-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
}

.product-card h3 {
    margin: 10px 0 5px;
    color: #083b66;
}

.product-card p {
    color: #333;
    margin: 5px 0;
}

.product-card a {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 14px;
    background: #0f5fa8;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    transition: 0.3s;
}

.product-card a:hover {
    background: #083b66;
}

.main-footer {
    margin-top: 60px;
    background: rgba(5, 32, 61, 0.92);
    color: white;
    padding-top: 45px;
}

.footer-container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    padding-bottom: 35px;
}

.footer-box h3 {
    margin-bottom: 14px;
    font-size: 24px;
}

.footer-box p {
    color: rgba(255,255,255,0.85);
    line-height: 1.8;
    margin: 8px 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.12);
    text-align: center;
    padding: 20px;
}

.footer-bottom p {
    margin: 0;
    color: rgba(255,255,255,0.75);
}