.container {
    --accent-color: #f2724c;
    --text-main: #1a1a1a;
    --text-muted: #828282;
    --bg-placeholder: #f8f8f6;
    --font-heading: "Advent Pro", sans-serif;
    --font-body: "Inter", sans-serif;
    font-family: var(--font-body);
    background-color: #f8f8f6;
    color: var(--text-main);
    padding: 40px 20px;
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 200px 1fr;
    column-gap: 100px;
}

/* --- Sidebar --- */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.nav-main,
.nav-secondary {
    list-style: none;
    text-align: right;
}

.nav-main li {
    margin-bottom: 15px;
}
.nav-main a {
    text-decoration: none;
    color: var(--text-main);
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 600;
    transition: color 0.2s;
}

.nav-main a.active {
    position: relative;
    margin-right: 1.5rem;
    color: var(--text-main);
}

.nav-main a.active::after {
    content: "";
    position: absolute;

    right: -45px;
    top: 50%;
    width: 40px;
    height: 1px;
    background: var(--accent-color);
}

.nav-secondary li {
    margin-bottom: 12px;
}
.nav-secondary a {
    color: black;
    text-decoration: none;
    /*color: var(--text-muted);*/
    font-weight: 300;
    font-size: 14px;
}

/* --- Main Content --- */
.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 60px;
}

.avatar-placeholder {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--bg-placeholder);
}

.profile-info h1 {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 1px;
}

.profile-info p {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 4px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 24px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.section-title::after {
    content: "↗";
    font-size: 16px;
    color: var(--accent-color);
}

/* --- Grid (Теперь обе секции используют 3 колонки) --- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px 20px;
    margin-bottom: 70px;
}

/* --- Card Style --- */
.card {
    display: flex;
    flex-direction: column;
}

.card-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: var(--bg-placeholder);
    margin-bottom: 15px;
}

.badge {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--accent-color);
    color: white;
    padding: 4px 10px;
    font-size: 12px;
    font-family: var(--font-heading);
}

.card-title {
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 12px;
    height: 36px;
    overflow: hidden;
}

.price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 15px;
    font-weight: 700;
    font-size: 15px;
}

.old-price {
    text-decoration: line-through;
    color: var(--text-muted);
    font-weight: 400;
    font-size: 13px;
}

.btn-cart {
    width: 100%;
    padding: 10px 16px;
    background: transparent;
    border: 1px solid #f46036;
    border-radius: 8px;
    color: #f46036;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: 0.2s;
}

.btn-cart:hover {
    background: var(--accent-color);
    color: white;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .container {
        column-gap: 40px;
    }
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }
    .sidebar {
        text-align: left;
        margin-bottom: 40px;
    }
    .nav-main,
    .nav-secondary {
        text-align: left;
    }
    .nav-main a.active::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}
