* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f8f8f8;
    color: #222;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: min(1200px, 94%);
    margin: auto;
}

.site-header {
    background: #ffffff;
    border-bottom: 1px solid #eeeeee;
}

.header-inner {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 21px;
    font-weight: 700;
}

.logo img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

nav {
    display: flex;
    gap: 20px;
}

nav a {
    font-weight: 600;
}

.hero {
    text-align: center;
    padding: 70px 20px;
    background: linear-gradient(
        135deg,
        #ffe1ef,
        #fff2d6
    );
}

.hero h1 {
    font-size: 42px;
    margin: 0 0 15px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 25px;
}

.btn {
    display: inline-block;
    padding: 11px 20px;
    background: #e91e63;
    color: white;
    border-radius: 8px;
    font-weight: 600;
}

.section {
    padding: 45px 0;
}

.section-title {
    margin-bottom: 25px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.category-card,
.template-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.category-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.category-content,
.template-content {
    padding: 16px;
}

.category-content h3,
.template-content h3 {
    margin-top: 0;
}

.template-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.template-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.empty {
    background: white;
    padding: 30px;
    text-align: center;
    border-radius: 10px;
}

footer {
    background: #222;
    color: white;
    padding: 25px 0;
    text-align: center;
}

@media (max-width: 900px) {

    .category-grid,
    .template-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 600px) {

    .header-inner {
        flex-direction: column;
        padding: 15px 0;
    }

    nav {
        width: 100%;
        justify-content: center;
    }

    .hero h1 {
        font-size: 30px;
    }

    .category-grid,
    .template-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

}