/* assets/css/style.css */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f9;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- НОВЫЙ КЛАСС ДЛЯ ОГРАНИЧЕНИЯ ШИРИНЫ КОНТЕНТА --- */
.content-wrapper {
    max-width: 1200px; /* Та же ширина, что и у .container */
    margin: 0 auto;    /* Центрируем блок */
    padding: 0 15px;   /* Отступы по бокам, как у .container */
    width: 100%;       /* Занимаем всю доступную ширину внутри max-width */
    box-sizing: border-box;
}

/* Header */
header {
    background-color: #fff;
    padding: 15px 0; /* Убираем горизонтальные паддинги, теперь они будут в content-wrapper */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    /* Убираем flex и justify-content, так как теперь контент будет в wrapper */
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
}

.user-nav a {
    margin-left: 15px;
    text-decoration: none;
    color: #555;
}
.user-nav a:hover {
    color: #000;
}
.user-avatar {
    width: 35px;
    height: 35px;
    background: #ddd;
    border-radius: 50%;
    display: inline-block;
    vertical-align: middle;
}

/* Layout Container */
.container {
    display: flex;
    flex: 1; /* Занимает все свободное место */
    max-width: 1200px;
    margin: 20px auto;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
}

/* Sidebar */
aside {
    width: 250px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-right: 20px;
    height: fit-content;
    flex-shrink: 0;
}
aside h3 { margin-top: 0; font-size: 18px; }
.filter-group { margin-bottom: 20px; }
.filter-group label { display: block; margin-bottom: 5px; cursor: pointer; }

/* Main Content */
main {
    flex-grow: 1;
}

/* Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

/* Product Card */
.card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.card-img {
    height: 180px;
    background-color: #eee;
    object-fit: cover;
    width: 100%;
}
.card-body {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.card-title {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}
.card-price {
    color: #27ae60;
    font-weight: bold;
    font-size: 18px;
    margin-top: auto; /* Прижимает цену к низу */
}
.card-meta {
    font-size: 12px;
    color: #888;
    margin-top: 5px;
}

/* Footer */
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0; /* Убираем горизонтальные паддинги */
    margin-top: auto;
}

.footer-inner {
    /* Стили уже есть в .content-wrapper, но можно добавить специфичные */
}

/* Profile & Details specific */
.profile-info, .project-details {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
}
.btn-buy {
    background: #27ae60;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s;
}
.btn-buy:hover {
    background: #219150;
}