/* Body */
body {
    font-family: Arial, sans-serif;
    background: #f5f5f5; /* light silver */
    margin: 0;
    color: #111; /* black text */
}

/* Header always at top */
.site-header {
    position: fixed;      /* Fix it to the top */
    top: 0;               /* Stick to top */
    left: 0;
    width: 100%;          /* Full width */
    z-index: 1000;        /* Above content */
    background-color: #111;
    padding: 15px 0;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Push content below header so it doesn't overlap */
body {
    padding-top: 80px; /* Adjust based on header height */
}

/* Mobile adjustments for nav links */
.nav-bar {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 6px;
    transition: 0.3s;
}

.nav-link:hover,
.nav-link.active {
    background-color: #aaa;
    color: #111;
}

/* For very small screens */
@media (max-width: 480px) {
    .nav-bar {
        flex-direction: column;
        gap: 10px;
    }
}


.nav-bar {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 15px;
    border-radius: 6px;
    transition: 0.3s;
}

.nav-link:hover {
    background-color: #aaa; /* silver hover */
    color: #111; /* black text */
}

.nav-link.active {
    background-color: #aaa; /* silver active */
    color: #111;
}

/* Main Content */
h1 {
    text-align: center;
    margin: 30px 0;
}



/* Categories */
.categories {
    text-align: center;
    margin-bottom: 25px;
}
.categories a {
    margin: 0 8px;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 6px;
    background: #e0e0e0; /* silver */
    color: #111;
    font-weight: bold;
    transition: 0.3s;
}
.categories a.active, .categories a:hover {
    background-color: #111; /* black */
    color: #fff; /* white */
}

/* Grid Cards */
.grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.card {
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    width: 240px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}
.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}
.price {
    font-weight: bold;
    color: #111;
}
.card p {
    font-size: 0.9em;
    color: #333;
}

/* Footer */
.site-footer {
    background-color: #111;
    color: #fff;
    text-align: center;
    padding: 20px;
    border-radius: 12px 12px 0 0;
    margin-top: 40px;
}
.site-footer .footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.site-footer a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}
.site-footer a:hover {
    color: #aaa;
}
/* ===== MOBILE FIXES ===== */
.categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 10px;
}

.categories a {
    margin: 0; /* remove inline margin */
    white-space: nowrap;
}

/* Mobile screens */
@media (max-width: 600px) {

    /* Header nav buttons */
    .nav-bar {
        flex-direction: column;
        gap: 10px;
    }

    /* Category buttons full-width */
    .categories a {
        flex: 1 1 45%;
        text-align: center;
        padding: 10px;
        font-size: 14px;
    }

    /* Cards stack better */
    .card {
        width: 90%;
        max-width: 320px;
    }

    h1 {
        flex-direction: column;
        gap: 5px;
        font-size: 1.4em;
    }
}
/* ===============================
   MOBILE CONSISTENCY (HOME + PRODUCT)
================================ */
@media (max-width: 600px) {

    /* Header consistency */
    .nav-bar {
        flex-direction: column;
        gap: 10px;
    }

    /* Headings */
    h1 {
        font-size: 1.6em;
        padding: 0 10px;
        text-align: center;
    }

    /* Generic page spacing */
    .home-content,
    .product-content {
        padding: 0 15px;
    }

    /* Product page layout */
    .product-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        text-align: center;
    }

    .product-wrapper img {
        width: 100%;
        max-width: 320px;
        height: auto;
    }

    .product-details {
        width: 100%;
    }

    /* Buttons / links consistency */
    a {
        -webkit-tap-highlight-color: transparent;
    }
}
@media (max-width: 768px) {
    .product-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 5px; /* space between image and info */
        margin: 0; /* remove container margin if any */
    }

    .product-image {
        max-width: 300px;
        width: 80%;
        margin: 0; /* remove internal margin */
    }

    .product-info {
        max-width: 90%;
        margin: 0; /* remove top margin */
        padding: 0; /* remove padding if any */
    }

    .product-info h1 {
        margin: 5px 0; /* small top/bottom margin */
    }

    .product-info p {
        margin: 3px 0; /* small top/bottom margin */
    }

    .back-btn {
        display: block;
        margin: 15px auto;
    }
}
/* Home page model grid adjustments */
.grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px; /* spacing between cards */
}

/* Cards */
.card {
    flex: 1 1 200px; /* allow cards to shrink on smaller screens */
    max-width: 240px;
    background: #fff;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.grid a.card {
    color: #000;
    text-decoration: none;
}

.grid a.card h3 {
    color: #000;
}


/* Footer always at bottom of screen */
.site-footer {
    position: fixed;      /* Fix it to the viewport */
    bottom: 0;            /* Stick to bottom */
    left: 0;
    width: 100%;          /* Full width */
    height: 120px;        /* Adjust height as needed */
    background-color: #111;
    color: #fff;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    font-size: 16px;
    z-index: 999;         /* Make sure it’s above other content */
}

.site-footer .footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.site-footer a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.site-footer a:hover {
    color: #aaa;
}

/* Add bottom padding to body so content doesn't overlap footer */
body {
    padding-bottom: 140px; /* Should be slightly bigger than footer height */
}



