/* 1. RESET & BASE */
*, *::before, *::after { 
    box-sizing: border-box; 
}

body { 
    background-color: #fff; 
    font-family: system-ui, -apple-system, sans-serif; 
    color: #1a1a1a; /* Darkened for maximum contrast */
    line-height: 1.5; 
    margin: 0;
}

/* 2. GRID SYSTEM & CONTAINERS */
.container-fluid {
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

#product-container.product-grid { 
    display: grid !important;
    grid-template-columns: minmax(0, 1fr); /* 1 per row mobile */
    gap: 15px; 
    margin-top: 20px;
    margin-bottom: 30px;
}

/* Tablet: 3 per row */
@media (min-width: 768px) {
    #product-container.product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

/* Desktop: 4 per row */
@media (min-width: 992px) {
    #product-container.product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 20px; 
    }
}

.col-product {
    width: auto !important;
    height: 100%;
}

/* 3. HEADER & NAVIGATION */
.header { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    padding: 15px 0; 
}

.header-slogan { 
    display: flex; 
    flex-direction: column; 
    text-align: right; 
    line-height: 1.2; 
}

.header-slogan span:first-child { 
    font-size: 0.75rem; 
    font-weight: 700; 
    color: #000; /* Pure Black */
}

.header-slogan span:last-child { 
    font-size: 0.65rem; 
    color: #333; /* Darkened from #555/666 */
}

.category-icons { 
    display: flex; 
    justify-content: space-around; 
    margin-bottom: 20px; 
    padding: 12px 0; 
    border-bottom: 1px solid #bbb; /* Darkened border line */
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.category-icons a { 
    text-decoration: none; 
    color: #222; /* High contrast link text */
    text-align: center; 
    flex: 1; 
    font-size: 0.65rem; 
    font-weight: 700; 
    display: flex; 
    flex-direction: column; 
    align-items: center;
    min-width: 70px;
}

.category-icons svg { 
    width: 24px; 
    height: 24px; 
    fill: #222; /* Match link text color */
    margin-bottom: 5px; 
}
/* 4. COLLECTION PAGE HEADER - COMPACT VERSION */
h1.collection-header { 
    display: block;
    font-size: 0.85rem;      /* Small but legible */
    font-weight: 700;        /* Bold for hierarchy */
    text-transform: uppercase; 
    color: #777;             /* Muted color to keep focus on products */
    margin: 10px 0 5px 5px;  /* Minimal space around the text */
    padding: 0;              /* Remove padding to save vertical height */
    letter-spacing: 0.05em;
    border: none;            /* Remove borders to reduce visual "weight" */
    background: transparent; /* Blends into the page background */
}

/* 5. PRODUCT CARDS */
.card { 
    text-decoration: none; 
    border: 1px solid #aaa; /* Darker border for accessibility */
    border-radius: 6px; 
    height: 100%; 
    display: flex; 
    flex-direction: column; 
    background: #fff;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2); /* Darker shadow on hover */
}

.card img { 
    width: 100%; 
    height: auto; 
    aspect-ratio: 330 / 206; 
    object-fit: cover; 
    display: block;
    background: #f9f9f9; 
    border-bottom: 1px solid #bbb;
}

.card-body { 
    padding: 12px; 
    display: flex; 
    flex-direction: column; 
    flex-grow: 1; 
}

.cat-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #000; /* Pure black */
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.brand-subtext {
    font-size: 0.8rem; /* Increased size slightly */
    color: #222; /* Near black for maximum contrast */
    text-transform: uppercase;
    font-weight: 700;
    margin-top: auto; 
    display: block; /* Ensures it renders clearly as a block */
}

/* 6. PAGINATION & LOADER */
.seo-pagination {
    padding: 40px 0;
    text-align: center;
}

.seo-pagination p {
    font-size: 0.9rem;
    color: #222;
    margin-bottom: 10px;
    font-weight: 600;
}

.seo-pagination a {
    display: inline-block;
    padding: 8px 16px;
    background-color: #f0f0f0;
    color: #004a99; /* Darker blue for accessibility */
    text-decoration: underline; /* Underline helps with accessibility */
    border: 1px solid #999;
    border-radius: 4px;
    font-weight: 700;
    margin: 0 5px;
}

#loader {
    font-weight: 800;
    color: #000;
    padding: 20px;
}