/* Theme Variables */
:root {
    --background: #f0f4f8;
    --body-color: #333;
    --header-bg: linear-gradient(90deg, #ff6f61, #ff9f43);
    --header-color: #fff;
    --search-bg: #fff;
    --search-text: #333;
    --search-icon: #ff6f61;
    --card-bg: #fff;
    --card-text: #666;
    --title-color: #ff6f61;
    --link-color: #ff6f61;
    --link-hover: #ff9f43;
    --button-bg: #ff6f61;
    --button-hover: #ff9f43;
    --button-text: #fff;
    --footer-bg: #ff6f61;
    --footer-text: #fff;
    --tools-banner-bg: linear-gradient(90deg, #4a90e2, #50c878);
    --post-border: #ff6f61;
}

.theme-dark {
    --background: #1a1a1a;
    --body-color: #ddd;
    --header-bg: linear-gradient(90deg, #333, #555);
    --header-color: #fff;
    --search-bg: #333;
    --search-text: #ddd;
    --search-icon: #888;
    --card-bg: #444;
    --card-text: #bbb;
    --title-color: #888;
    --link-color: #bbb;
    --link-hover: #fff;
    --button-bg: #555;
    --button-hover: #777;
    --button-text: #fff;
    --footer-bg: #333;
    --footer-text: #fff;
    --tools-banner-bg: linear-gradient(90deg, #2c3e50, #34495e);
    --post-border: #888;
}

.theme-blue {
    --background: #e3f2fd;
    --body-color: #0d47a1;
    --header-bg: linear-gradient(90deg, #1976d2, #42a5f5);
    --header-color: #fff;
    --search-bg: #fff;
    --search-text: #0d47a1;
    --search-icon: #1976d2;
    --card-bg: #fff;
    --card-text: #0d47a1;
    --title-color: #1976d2;
    --link-color: #42a5f5;
    --link-hover: #1976d2;
    --button-bg: #1976d2;
    --button-hover: #42a5f5;
    --button-text: #fff;
    --footer-bg: #1976d2;
    --footer-text: #fff;
    --tools-banner-bg: linear-gradient(90deg, #0288d1, #4fc3f7);
    --post-border: #1976d2;
}

.theme-green {
    --background: #e8f5e9;
    --body-color: #1b5e20;
    --header-bg: linear-gradient(90deg, #388e3c, #66bb6a);
    --header-color: #fff;
    --search-bg: #fff;
    --search-text: #1b5e20;
    --search-icon: #388e3c;
    --card-bg: #fff;
    --card-text: #1b5e20;
    --title-color: #388e3c;
    --link-color: #66bb6a;
    --link-hover: #388e3c;
    --button-bg: #388e3c;
    --button-hover: #66bb6a;
    --button-text: #fff;
    --footer-bg: #388e3c;
    --footer-text: #fff;
    --tools-banner-bg: linear-gradient(90deg, #2e7d32, #81c784);
    --post-border: #388e3c;
}

/* General Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--background);
    color: var(--body-color);
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    line-height: 1.5;
}

/* Theme Switcher */
.theme-switcher {
    position: fixed;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 6px;
    z-index: 1000;
}

.theme-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    border: 1px solid var(--body-color);
    transition: transform 0.2s;
}

.theme-icon.theme-default {
    background: #f0f4f8;
}

.theme-icon.theme-dark {
    background: #1a1a1a;
}

.theme-icon.theme-blue {
    background: #e3f2fd;
}

.theme-icon.theme-green {
    background: #e8f5e9;
}

.theme-icon:hover {
    transform: scale(1.1);
}

.theme-icon.active {
    border-color: var(--button-bg);
}

/* Header */
.main-header {
    width: 100%;
    max-width: 100vw;
    background: var(--header-bg);
    color: var(--header-color);
    padding: 12px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 900;
    overflow-x: hidden;
}

.logo-link {
    text-decoration: none;
    color: inherit;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 36px;
    transition: transform 0.2s;
}

.logo img:hover {
    transform: scale(1.1);
}

.logo span {
    font-size: 1.4em;
    font-weight: 600;
    letter-spacing: 1px;
}

.header-nav {
    display: flex;
    align-items: center;
}

.header-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 15px;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--header-color);
    text-decoration: none;
    font-size: 1em;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
}

.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--card-bg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    list-style: none;
    padding: 10px 0;
    min-width: 150px;
}

.nav-item:hover .dropdown {
    display: block;
}

.dropdown li a {
    color: var(--body-color);
    text-decoration: none;
    padding: 8px 15px;
    display: block;
    font-size: 0.9em;
}

.dropdown li a:hover {
    background: var(--button-bg);
    color: var(--button-text);
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--header-color);
    font-size: 1.2em;
    cursor: pointer;
}

/* Search Bar */
.search-bar-container {
    width: 100%;
    max-width: 100vw;
    background: var(--search-bg);
    padding: 8px 10px;
    overflow-x: hidden;
}

.search-bar-container form {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

.search-input-wrapper {
    width: 100%;
}

.search-bar-container input {
    width: 100%;
    padding: 6px 30px 6px 10px;
    border: none;
    border-radius: 16px;
    font-size: 0.95em;
    color: var(--search-text);
    background: var(--search-bg);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.search-bar-container .search-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--search-icon);
    font-size: 0.95em;
}

/* Marquee */
.marquee {
    width: 100%;
    max-width: 100vw;
    background: var(--search-bg);
    padding: 6px 10px;
    font-size: 0.9em;
    color: var(--body-color);
    overflow: hidden;
    height: 28px;
    line-height: 18px;
}

.marquee-content {
    white-space: nowrap;
    animation: scroll-left 30s linear infinite;
    animation-play-state: running;
}

.marquee-content:hover {
    animation-play-state: paused;
}

.marquee-content a {
    color: var(--link-color);
    text-decoration: none;
    margin-right: 8px;
}

.marquee-content a:hover {
    color: var(--link-hover);
}

@keyframes scroll-left {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* App Banner */
.app-banner {
    width: 100%;
    max-width: 100vw;
    background: var(--card-bg);
    padding: 10px 10px;
    margin: 10px 0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    overflow-x: hidden;
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.banner-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.banner-text {
    flex: 1;
    text-align: left;
    max-width: 100%;
}

.banner-text h3 {
    font-size: 1.2em;
    color: var(--title-color);
    margin: 0 0 5px;
}

.banner-text p {
    font-size: 0.9em;
    color: var(--card-text);
    margin: 0;
}

.banner-button {
    padding: 8px 15px;
    background: var(--button-bg);
    color: var(--button-text);
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9em;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: background 0.2s;
}

.banner-button:hover {
    background: var(--button-hover);
}

/* Categories Box (for index.php) */
.categories-box {
    width: 100%;
    max-width: 100vw;
    background: var(--card-bg);
    padding: 15px;
    margin: 10px 0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.category-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.category-grid .category-item {
    padding: 8px 15px;
    background: var(--button-bg);
    color: var(--button-text);
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9em;
    transition: background 0.2s;
}

.category-grid .category-item:hover {
    background: var(--button-hover);
}

/* Tools Banner */
.tools-banner {
    width: 100%;
    max-width: 100vw;
    background: var(--tools-banner-bg);
    padding: 12px 10px;
    margin: 10px 0;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    text-align: center;
    overflow-x: hidden;
}

.tools-banner .banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.tools-banner .banner-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.tools-banner .banner-text {
    flex: 1;
    text-align: left;
    max-width: 100%;
}

.tools-banner .banner-text h3 {
    font-size: 1.3em;
    color: #fff;
    margin: 0 0 6px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.tools-banner .banner-text p {
    font-size: 0.95em;
    color: #fff;
    margin: 0;
    opacity: 0.9;
}

.tools-banner .banner-button {
    padding: 10px 18px;
    background: #fff;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.95em;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s, color 0.2s;
}

.tools-banner .banner-button:hover {
    background: #f0f0f0;
    color: #ff6f61;
}

/* Main Content */
.main-content {
    width: 100%;
    max-width: 100vw;
    padding: 10px 8px;
    overflow-x: hidden;
}

/* Tag Box */
.tag-box {
    width: 100%;
    max-width: 100%;
    background: var(--card-bg);
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tag-title {
    text-align: center;
    font-size: 1.4em;
    color: var(--title-color);
    margin-bottom: 20px;
    position: relative;
}

.tag-title::after {
    content: '';
    width: 60px;
    height: 3px;
    background: var(--title-color);
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 100%;
    max-width: 100%;
}

.post-card {
    background: var(--card-bg);
    border: 2px solid var(--post-border);
    border-radius: 6px;
    padding: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.post-content h3 {
    font-size: 1em;
    font-weight: normal;
    color: var(--title-color);
    margin: 0;
}

.post-content h3 a {
    text-decoration: none;
    color: inherit;
}

.post-content h3 a:hover {
    color: var(--link-hover);
}

.view-all-container {
    text-align: center;
    margin-top: 10px;
}

.view-all {
    display: inline-block;
    padding: 6px 12px;
    background: var(--button-bg);
    color: var(--button-text);
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9em;
}

.view-all:hover {
    background: var(--button-hover);
}

/* Post Detail */
.post-detail {
    width: 100%;
    max-width: 100%;
    background: var(--card-bg);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.post-title-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.post-detail h1 {
    font-size: 1.4em;
    color: var(--title-color);
    margin: 0;
}

.post-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

.post-date {
    font-size: 0.85em;
    color: var(--card-text);
    margin: 5px 0;
    display: block;
}

.post-body {
    font-size: 0.95em;
    color: var(--body-color);
}

/* Social Actions */
.social-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 10px 0;
    padding: 10px 0;
}

.social-divider {
    border: 0;
    border-top: 1px solid #e0e0e0;
    margin: 10px 0;
    width: 100%;
}

.action-btn {
    padding: 6px 10px;
    background: var(--button-bg);
    color: var(--button-text);
    border: none;
    border-radius: 4px;
    font-size: 0.85em;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.action-btn:hover {
    background: var(--button-hover);
}

#like-count {
    font-size: 0.85em;
    color: var(--card-text);
    display: flex;
    align-items: center;
}

.app-download {
    padding: 6px 10px;
    background: var(--button-bg);
    color: var(--button-text);
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.85em;
    display: flex;
    align-items: center;
    gap: 4px;
}

.app-download:hover {
    background: var(--button-hover);
}

/* Links Box */
.links-box {
    background: var(--card-bg);
    padding: 10px;
    border-radius: 6px;
    margin: 10px 0;
    border: 1px solid #e0e0e0;
    width: 100%;
}

.links-box h3 {
    font-size: 1.1em;
    color: var(--title-color);
    margin: 0 0 8px;
}

.links-box h4 {
    font-size: 0.95em;
    color: var(--body-color);
    margin: 8px 0 4px;
}

.links-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.links-box ul li {
    margin: 4px 0;
}

.links-box ul li a {
    color: var(--link-color);
    text-decoration: none;
}

.links-box ul li a:hover {
    color: var(--link-hover);
}

/* Categories (for post.php) */
.categories {
    width: 100%;
    max-width: 100%;
    background: var(--card-bg);
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.section-title {
    font-size: 1.3em;
    color: var(--title-color);
    margin: 0 0 15px;
    text-align: center;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-item {
    font-size: 0.9em;
    margin: 8px 0;
    padding-left: 20px;
    position: relative;
    background: none;
}

.category-item::before {
    content: '•';
    color: var(--title-color);
    position: absolute;
    left: 0;
    font-size: 1.2em;
}

.category-item a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.2s;
}

.category-item a:hover {
    color: var(--link-hover);
}

.subcategories {
    margin-left: 25px;
    font-size: 0.85em;
    list-style: none;
    padding: 0;
}

.subcategories li {
    padding-left: 20px;
    position: relative;
    margin: 6px 0;
}

.subcategories li::before {
    content: '•';
    color: var(--title-color);
    position: absolute;
    left: 0;
    font-size: 1.2em;
}

.subcategories li a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.2s;
}

.subcategories li a:hover {
    color: var(--link-hover);
}

/* Recent Posts */
.recent-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-post-item {
    font-size: 0.9em;
    margin: 6px 0;
    padding-left: 15px;
    position: relative;
}

.recent-post-item::before {
    content: '•';
    color: var(--title-color);
    position: absolute;
    left: 0;
    font-size: 1.2em;
}

.recent-post-item a {
    color: var(--link-color);
    text-decoration: none;
}

.recent-post-item a:hover {
    color: var(--link-hover);
}

/* Sidebar */
.sidebar {
    width: 100%;
    max-width: 100%;
    background: var(--card-bg);
    padding: 10px;
    border-radius: 8px;
    margin-top: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar ul li {
    margin: 6px 0;
}

.sidebar ul li a {
    color: var(--link-color);
    text-decoration: none;
}

.sidebar ul li a:hover {
    color: var(--link-hover);
}

.sidebar-toggle {
    display: none;
    position: fixed;
    bottom: 15px;
    right: 15px;
    background: var(--button-bg);
    color: var(--button-text);
    border: none;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

/* Popup */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100vw;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    overflow-x: hidden;
}

.popup-content {
    background: var(--card-bg);
    padding: 15px;
    width: 90%;
    max-width: 400px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.popup-content img {
    width: 100%;
    max-width: 100%;
    border-radius: 6px;
}

.popup-button {
    padding: 8px 15px;
    background: var(--button-bg);
    color: var(--button-text);
    text-decoration: none;
    border-radius: 4px;
    margin: 8px;
    display: inline-block;
}

.popup-button:hover {
    background: var(--button-hover);
}

.popup-content button {
    padding: 8px 15px;
    background: var(--button-bg);
    color: var(--button-text);
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.popup-content button:hover {
    background: var(--button-hover);
}

/* Footer */
.small-footer {
    width: 100%;
    max-width: 100vw;
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 8px 10px;
    text-align: center;
    overflow-x: hidden;
}

.small-footer p {
    margin: 0;
    font-size: 0.9em;
}

.small-footer a {
    color: var(--footer-text);
    text-decoration: none;
    margin-left: 8px;
}

.small-footer a:hover {
    text-decoration: underline;
}

/* Admin Panel Styles */
.admin-container {
    width: 100%;
    max-width: 800px;
    margin: 15px auto;
    padding: 15px;
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.admin-container h1 {
    font-size: 1.5em;
    color: var(--body-color);
    margin: 0 0 15px;
}

.admin-nav {
    background: var(--card-bg);
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
}

.admin-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-nav ul li a {
    padding: 6px 12px;
    color: var(--link-color);
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.95em;
}

.admin-nav ul li a:hover {
    background: var(--button-bg);
    color: var(--button-text);
}

form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

label {
    font-size: 0.95em;
    font-weight: 500;
    color: var(--body-color);
}

input[type="text"],
input[type="url"],
textarea,
select,
input[type="file"] {
    width: 100%;
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.95em;
}

textarea {
    min-height: 100px;
    resize: vertical;
}

input[type="checkbox"] {
    margin-right: 5px;
}

button,
input[type="submit"] {
    padding: 8px 15px;
    background: var(--button-bg);
    color: var(--button-text);
    border: none;
    border-radius: 4px;
    font-size: 0.95em;
    cursor: pointer;
    align-self: flex-start;
}

button:hover,
input[type="submit"]:hover {
    background: var(--button-hover);
}

table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

table th,
table td {
    padding: 8px;
    border: 1px solid #e0e0e0;
    text-align: left;
    font-size: 0.95em;
}

table th {
    background: var(--card-bg);
    font-weight: 500;
}

table td a {
    color: var(--link-color);
    text-decoration: none;
}

table td a:hover {
    color: var(--link-hover);
}

.error {
    color: #ff0000;
    font-size: 0.95em;
    margin-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-content {
        padding: 8px 6px;
    }
    .main-header {
        padding: 8px 8px;
        flex-wrap: wrap;
    }
    .logo img {
        height: 28px;
    }
    .logo span {
        font-size: 1.2em;
    }
    .header-nav {
        display: none;
        width: 100%;
        margin-top: 10px;
    }
    .header-nav.active {
        display: block;
    }
    .header-nav ul {
        flex-direction: column;
        gap: 10px;
    }
    .nav-item {
        width: 100%;
    }
    .nav-link {
        display: block;
        text-align: center;
    }
    .dropdown {
        position: static;
        background: var(--search-bg);
        box-shadow: none;
    }
    .menu-toggle {
        display: block;
    }
    .search-bar-container {
        padding: 6px 8px;
    }
    .marquee {
        padding: 6px 8px;
    }
    .app-banner {
        padding: 8px 8px;
    }
    .tools-banner {
        padding: 8px 8px;
    }
    .categories-box {
        padding: 10px;
    }
    .banner-content {
        flex-direction: column;
        text-align: center;
    }
    .banner-text {
        text-align: center;
    }
    .banner-logo {
        width: 32px;
        height: 32px;
    }
    .banner-text h3 {
        font-size: 1.1em;
    }
    .banner-text p {
        font-size: 0.85em;
    }
    .banner-button {
        font-size: 0.85em;
        padding: 6px 12px;
    }
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .post-content h3 {
        font-size: 0.95em;
    }
    .sidebar {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        width: 200px;
        height: 100%;
        background: var(--card-bg);
        padding: 10px;
        box-shadow: -2px 0 4px rgba(0, 0, 0, 0.2);
        z-index: 1000;
    }
    .sidebar.active {
        display: block;
    }
    .sidebar-toggle {
        display: block;
    }
    .search-bar-container input {
        font-size: 0.9em;
    }
    .search-input-wrapper .search-icon {
        font-size: 0.9em;
    }
    .admin-container {
        margin: 10px 8px;
        padding: 10px;
    }
    .admin-nav ul {
        flex-direction: column;
        gap: 8px;
    }
    .admin-nav ul li a {
        display: block;
        text-align: center;
    }
    .post-detail h1 {
        font-size: 1.3em;
    }
    .tag-title {
        font-size: 1.2em;
    }
    .section-title {
        font-size: 1.2em;
    }
}

@media (max-width: 480px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }
    .post-content h3 {
        font-size: 0.9em;
    }
    .admin-container {
        margin: 8px 6px;
        padding: 8px;
    }
    .category-grid {
        flex-direction: column;
        align-items: center;
    }
    .category-grid .category-item {
        width: 100%;
        text-align: center;
    }
}