/* Cyber Sentry Homepage styles -- black / red / white scheme */

/* ---------------------------------------------------
   Cyber Sentry homepage category grid
   --------------------------------------------------- */

:root {
    --cs-black: #0d0d0d;
    --cs-red: #d90429;
    --cs-white: #f5f5f5;
    --cs-gray: #1a1a1a;
    --cs-border: #2b2b2b;
}

.cs-homepage {
    background-color: var(--cs-black);
    color: var(--cs-white);
    padding: 40px 5vw 80px;
}

.cs-hero {
    text-align: center;
    padding: 60px 20px 50px;
    border-bottom: 2px solid var(--cs-red);
    margin-bottom: 50px;
}

.cs-hero h1 {
    color: var(--cs-white);
    font-size: 2.4rem;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.cs-hero p {
    color: #b8b8b8;
    font-size: 1.1rem;
    max-width: 640px;
    margin: 0 auto;
}

.cs-category-section {
    margin-bottom: 60px;
}

.cs-category-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    border-bottom: 1px solid var(--cs-border);
    padding-bottom: 12px;
    margin-bottom: 24px;
}

.cs-category-header h2 {
    color: var(--cs-white);
    font-size: 1.6rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-left: 4px solid var(--cs-red);
    padding-left: 14px;
    margin: 0;
}

.cs-category-header a {
    color: var(--cs-red);
    font-size: 0.9rem;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}

.cs-category-header a:hover {
    text-decoration: underline;
}

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

.cs-product-card {
    background-color: var(--cs-gray);
    border: 1px solid var(--cs-border);
    border-radius: 6px;
    overflow: hidden;
    transition: border-color 0.2s ease, transform 0.2s ease;
    display: flex;
    flex-direction: column;
}

.cs-product-card:hover {
    border-color: var(--cs-red);
    transform: translateY(-3px);
}

.cs-product-card a.cs-product-link {
    color: inherit;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.cs-product-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    background-color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cs-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cs-product-body {
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.cs-product-body h3 {
    color: var(--cs-white);
    font-size: 1.05rem;
    margin: 0 0 8px;
}

.cs-product-price {
    margin-top: auto;
    color: var(--cs-red);
    font-weight: 700;
    font-size: 1rem;
    padding-top: 10px;
}

.cs-empty-state {
    color: #888;
    font-style: italic;
    padding: 20px 0;
}

@media (max-width: 600px) {
    .cs-hero h1 {
        font-size: 1.8rem;
    }
    .cs-category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}
