:root {
    --primary-color: #FF385C;
    --text-main: #222222;
    --text-light: #717171;
    --bg-light: #F7F7F7;
    --border-color: #DDDDDD;
    --white: #FFFFFF;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Circular, -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif;
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.4;
}

/* Header */
header {
    position: sticky;
    top: 0;
    background: var(--white);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    padding: 16px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: var(--primary-color);
    font-size: 24px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border: none;
    background: transparent;
}

.search-bar {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 40px;
    padding: 8px 8px 8px 24px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s ease;
    background: var(--white);
}

.search-bar:hover {
    box-shadow: 0 2px 4px rgba(0,0,0,0.18);
}

#search-input {
    border: none;
    outline: none;
    font-size: 14px;
    font-weight: 600;
    width: 250px;
    background: transparent;
}

.search-icon-container {
    background-color: var(--primary-color);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: transform 0.1s ease;
}

.search-icon-container:active {
    transform: scale(0.9);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 5px 5px 5px 12px;
    cursor: pointer;
}

/* Categories */
.categories {
    display: flex;
    padding: 20px 40px;
    gap: 32px;
    overflow-x: auto;
    background: var(--white);
    position: sticky;
    top: 80px;
    z-index: 999;
}

.categories::-webkit-scrollbar {
    display: none;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.6;
    cursor: pointer;
    min-width: fit-content;
    transition: opacity 0.2s;
    border-bottom: 2px solid transparent;
    padding-bottom: 10px;
}

.category-item:hover, .category-item.active {
    opacity: 1;
}

.category-item.active {
    border-bottom: 2px solid var(--text-main);
}

.category-item span {
    font-size: 12px;
    font-weight: 600;
}

/* Main Content */
main {
    padding: 24px 40px;
}

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

.card {
    cursor: pointer;
}

.card-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    background-color: #ebebeb;
    margin-bottom: 12px;
    object-fit: cover;
}

.card-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.info-top {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
}

.rating {
    display: flex;
    align-items: center;
    gap: 4px;
}

.info-mid {
    color: var(--text-light);
    font-size: 14px;
}

.info-bottom {
    margin-top: 4px;
    font-size: 15px;
}

.price {
    font-weight: 600;
}

.comments-section {
    margin-top: 48px;
}

.comments-header {
    margin-bottom: 16px;
}

.comments-header h2 {
    font-size: 28px;
    margin-bottom: 6px;
}

.comments-header p {
    color: var(--text-light);
}

.comments-card {
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 24px;
    background: var(--white);
    box-shadow: 0 16px 50px rgba(0,0,0,0.05);
}

#disqus_thread {
    min-height: 220px;
}

/* Responsive */
@media (max-width: 744px) {
    header, .categories, main {
        padding: 16px 24px;
    }
    
    .search-bar {
        width: 100%;
        margin-top: 10px;
    }
    
    header {
        flex-direction: column;
        padding-bottom: 20px;
    }
    
    .logo, .user-menu {
        width: 100%;
        justify-content: space-between;
    }

    .comments-card {
        padding: 18px;
    }
}
