* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Pretendard Variable', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #161617;
    color: #FEFEFE;
    overflow-x: hidden;
}

.section-content {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 272px;
}

/* Breadcrumb */
.breadcrumb-section {
    width: 100%;
    padding: 24px 0;
    background: #161617;
    border-bottom: 1px solid #222325;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb-item {
    font-weight: 400;
    font-size: 14px;
    color: #A4ADB3;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb-item:hover {
    color: #65B6F2;
}

.breadcrumb-item.active {
    color: #FEFEFE;
}

.breadcrumb-separator {
    color: #616470;
    font-size: 14px;
}

/* Page Header */
.page-header {
    width: 100%;
    padding: 60px 0;
    background: #161617;
    text-align: center;
}

.page-title {
    font-weight: 700;
    font-size: 48px;
    line-height: 57px;
    color: #FEFEFE;
    margin-bottom: 16px;
}

.page-subtitle {
    font-weight: 400;
    font-size: 20px;
    line-height: 160%;
    color: #A4ADB3;
    margin-bottom: 24px;
}

.page-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.stat-item {
    font-weight: 400;
    font-size: 16px;
    color: #A4ADB3;
}

.stat-item strong {
    font-weight: 600;
    color: #65B6F2;
}

.stat-separator {
    color: #616470;
}

/* Main Products Section */
.products-main-section {
    width: 100%;
    padding: 60px 0 100px;
    background: #161617;
}

/* Toolbar */
.products-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding: 16px 24px;
    background: #222325;
    border-radius: 12px;
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.results-count {
    font-weight: 500;
    font-size: 16px;
    color: #A4ADB3;
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sort-select {
    padding: 10px 16px;
    background: #34363A;
    border: none;
    border-radius: 8px;
    color: #FEFEFE;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.sort-select:hover {
    background: #4a4c50;
}

.sort-select:focus {
    outline: 2px solid #65B6F2;
    outline-offset: 2px;
}

.view-toggle {
    display: flex;
    gap: 8px;
}

.view-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #34363A;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.view-btn:hover {
    background: #4a4c50;
}

.view-btn.active {
    background: #65B6F2;
}

.view-btn img {
    width: 20px;
    height: 20px;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

/* Product Card */
.product-card {
    background: #222325;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.3s;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.product-image {
    width: 100%;
    height: 240px;
    background: #616470;
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 12px;
    z-index: 5;
}

.product-badge.system {
    background: rgba(78, 157, 247, 0.15);
    color: #4E9DF7;
    border: 1px solid rgba(78, 157, 247, 0.3);
}

.product-badge.art {
    background: rgba(194, 122, 255, 0.15);
    color: #C27AFF;
    border: 1px solid rgba(194, 122, 255, 0.3);
}

.product-badge.map {
    background: rgba(5, 223, 114, 0.15);
    color: #05DF72;
    border: 1px solid rgba(5, 223, 114, 0.3);
}

.product-badge.tutorial {
    background: rgba(255, 137, 4, 0.15);
    color: #FF8904;
    border: 1px solid rgba(255, 137, 4, 0.3);
}

.product-info {
    padding: 20px;
}

.product-title {
    font-weight: 600;
    font-size: 18px;
    line-height: 120%;
    color: #FEFEFE;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-creator {
    font-weight: 400;
    font-size: 14px;
    color: #616470;
    margin-bottom: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.star {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.star img {
    width: 100%;
    height: 100%;
}

.rating-text {
    font-weight: 600;
    font-size: 14px;
    color: #FEFEFE;
}

.rating-count {
    font-weight: 400;
    font-size: 14px;
    color: #616470;
}

.product-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #34363A;
}

.price-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.current-price {
    font-weight: 600;
    font-size: 20px;
    color: #FEFEFE;
}

.current-price.sale {
    color: #F94E51;
}

.current-price.free {
    color: #05DF72;
}

.original-price {
    font-weight: 400;
    font-size: 14px;
    text-decoration: line-through;
    color: #616470;
}

.sale-badge {
    background: #3D1414;
    color: #F94E51;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

/* List View */
.products-grid.list-view {
    grid-template-columns: 1fr;
}

.products-grid.list-view .product-card {
    display: flex;
    flex-direction: row;
}

.products-grid.list-view .product-image {
    width: 300px;
    height: auto;
    flex-shrink: 0;
}

.products-grid.list-view .product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.products-grid.list-view .product-title {
    font-size: 20px;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}

.products-grid.list-view .product-creator {
    white-space: normal;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.pagination-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #222325;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.pagination-btn:hover:not(:disabled) {
    background: #34363A;
}

.pagination-btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.pagination-btn img {
    width: 20px;
    height: 20px;
}

.pagination-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #222325;
    border: none;
    border-radius: 8px;
    color: #A4ADB3;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.pagination-number:hover {
    background: #34363A;
    color: #FEFEFE;
}

.pagination-number.active {
    background: #65B6F2;
    color: #161617;
}

.pagination-dots {
    color: #616470;
    font-size: 14px;
    padding: 0 8px;
}

/* Responsive Design */
@media (max-width: 1920px) {
    .section-content {
        padding-left: 5%;
        padding-right: 5%;
    }
}

@media (max-width: 1400px) {
    .section-content {
        padding-left: 60px;
        padding-right: 60px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 968px) {
    .page-title {
        font-size: 40px;
        line-height: 48px;
    }

    .page-subtitle {
        font-size: 18px;
    }

    .products-toolbar {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }

    .toolbar-left {
        flex-direction: column;
        align-items: stretch;
    }

    .toolbar-right {
        justify-content: space-between;
    }

    .sort-select {
        flex: 1;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .products-grid.list-view .product-card {
        flex-direction: column;
    }

    .products-grid.list-view .product-image {
        width: 100%;
        height: 240px;
    }
}

@media (max-width: 768px) {
    .section-content {
        padding-left: 20px;
        padding-right: 20px;
    }

    .breadcrumb-section {
        padding: 16px 0;
    }

    .page-header {
        padding: 40px 0;
    }

    .page-title {
        font-size: 32px;
        line-height: 38px;
    }

    .page-subtitle {
        font-size: 16px;
    }

    .page-stats {
        flex-direction: column;
        gap: 8px;
    }

    .stat-separator {
        display: none;
    }

    .products-main-section {
        padding: 40px 0 60px;
    }

    .products-toolbar {
        padding: 16px;
    }

    .view-toggle {
        display: none;
    }

    .product-image {
        height: 200px;
    }

    .product-info {
        padding: 16px;
    }

    .pagination {
        flex-wrap: wrap;
        gap: 8px;
    }

    .pagination-number {
        width: 36px;
        height: 36px;
    }

    .pagination-btn {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 28px;
        line-height: 34px;
    }

    .page-subtitle {
        font-size: 14px;
    }

    .results-count {
        font-size: 14px;
    }

    .product-title {
        font-size: 16px;
    }

    .current-price {
        font-size: 18px;
    }

    .pagination-dots {
        display: none;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.product-card:focus,
.sort-select:focus,
.view-btn:focus,
.pagination-btn:focus,
.pagination-number:focus {
    outline: 2px solid #65B6F2;
    outline-offset: 2px;
}