header {
  background-color: black;
  color: white;
  text-align: center;
}
header a:link{
  color: white;
}

header a:visited{
  color: white;
}

body {
	background-color: lightgray;
	color: black;
}

footer {
	background-color: black;
	color: white;
  	text-align: left;
}

footer a:link{
  color: white;
}

footer a:visited{
  color: white;
}

footer ul {
  list-style-type: none;
}

p {
	text-align: center; 
}

.article-container p {
  text-align: left;
}

.catalog-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    text-align: left;
}

.catalog-section {
    margin-bottom: 50px;
}

.filter-bar {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.filter-label {
    font-weight: bold;
    margin-left: 10px;
}

.filter-btn {
    padding: 6px 12px;
    border: 1px solid #333;
    background: white;
    cursor: pointer;
    border-radius: 4px;
}

.filter-btn.active,
.filter-btn:hover {
    background: black;
    color: white;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
}

.product-card {
    background: white;
    border: 1px solid #bbb;
    border-radius: 6px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-card img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 10px;
}

.product-card p {
    text-align: left; /* Overrides global centered p */
    margin: 6px 0;
}

.product-card .tags {
    font-size: 0.85em;
    color: #555;
    font-weight: bold;
}

.view-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 14px;
    background: black;
    color: white;
    text-decoration: none;
    text-align: center;
    border-radius: 4px;
}

/* Keep all images from overflowing off narrow phone screens */
img {
    max-width: 100%;
    height: auto;
}

/* Mobile adjustments for screens 768px and smaller */
@media (max-width: 768px) {
    /* Stack side-by-side product image and description vertically */
    .article-container {
        flex-direction: column;
        align-items: center;
        padding: 15px;
    }

    .media-box {
        width: 100%;
        max-width: 300px;
        margin-bottom: 20px;
    }

    /* Make navigation links wrap cleanly instead of squishing */
    header nav ul,
    header ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
        padding: 10px;
    }
}

