/* ==========================================
   1. BASE & SITE WIDE STYLES
   ========================================== */
body { 
    font-family: sans-serif; 
    margin: 0;
    padding: 0;
    background-color: #ffffff; /* Clean white background for contrast */
    color: #111111;            /* Deep black for highly readable body text */
}

/* ==========================================
   2. SITE HEADER STYLES (Logo Area)
   ========================================== */
.site-header {
    display: flex;
    justify-content: center; 
    align-items: center;     
    width: 100%;             
    padding: 25px 0;         
    background-color: #111111; /* Sleek black header background */
    border-bottom: 3px solid #D4AF37; /* Metallic gold bottom accent bar */
}

.header-logo {
    max-width: 100%;         
    height: auto;            
    display: block;
}

/* ==========================================
   3. CATEGORY HEADER STYLES (Updated Design)
   ========================================== */
.category-header { 
    text-align: center; 
    margin: 40px auto 20px auto; 
    max-width: 1200px;         /* Keeps it aligned with grid container */
    font-size: 26px; 
    font-weight: bold; 
    letter-spacing: 1px;       /* Adds a premium, spacious look */
    text-transform: uppercase; /* Looks sharp in black and gold */
    background-color: #111111; /* Solid black background */
    color: #D4AF37;            /* Premium metallic gold text */
    padding: 15px; 
    border-radius: 4px; 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* ==========================================
   4. PRODUCT CATALOGUE GRID STYLES
   ========================================== */
.grid-container { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); /* Maintains requested 3-column layout */
    gap: 25px; 
    padding: 20px; 
    max-width: 1200px;         /* Prevents the grid from getting too wide on huge monitors */
    margin: 0 auto;            /* Centers the entire grid container on the screen */
}

.grid-item { 
    text-align: center; 
    border: 1px solid #e0e0e0; 
    background-color: #ffffff;
    padding: 15px; 
    border-radius: 6px; 
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); 
    transition: transform 0.2s ease, box-shadow 0.2s ease; /* Smooth hover effect */
}

/* Elegant gold border focus when a user hovers over a product card */
.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    border-color: #D4AF37;
}

.grid-item img { 
    max-width: 100%; 
    height: auto; 
    max-height: 250px; 
    object-fit: contain; 
    margin-bottom: 10px;
}

.sku { 
    font-weight: bold; 
    margin-bottom: 8px; 
    color: #D4AF37;            /* Gold SKU color to stand out as a key feature */
    font-size: 1.1em; 
}

.name { 
    margin-top: 5px; 
    font-size: 14px; 
    color: #444444;            /* Dark charcoal grey for soft, readable product names */
    line-height: 1.4;
}

/* ==========================================
   5. MOBILE RESPONSIVE STYLES
   ========================================== */
@media (max-width: 768px) {
    /* Shrinks the 3-column grid to 1 column on tablets and mobile phones */
    .grid-container {
        grid-template-columns: repeat(1, 1fr);
        gap: 15px; /* Slightly tighter spacing for smaller screens */
        padding: 15px;
    }

    /* Slightly reduces font size so long titles don't look awkward on mobile */
    .category-header {
        font-size: 20px;
        padding: 12px;
        margin: 20px 15px 15px 15px; /* Adds space on the sides so it doesn't touch the screen edge */
    }
}
