.header-search_content--inner{
    display: flex;
    flex-direction: column;
}
.header-search_content--inner .section.categories{
    order: 1;
}
.header-search_content--inner .section.products{
    order: 2;
}
.header-search_content--inner .section.media{
    order: 4;
}
.header-search_products{
    order: 2;
    margin-bottom: 20px;
}
.header-search_videos{
    order: 3;
}
.header-search_posts{
    order: 4;
}
.section {
}

/* Скелетоны */
.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
}

.skeleton-item {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 10px;
}

.skeleton-image {
  width: 100%;
  height: 60px;
  border-radius: 4px;
  margin-bottom: 10px;
  grid-area: 1 / 1 / 2 / 1;
}

.skeleton-text {
  height: 15px;
  border-radius: 4px;
  margin-bottom: 8px;
  grid-area: 1 / 2 / 2 / 3;
}

.skeleton-price {
  height: 15px;
  border-radius: 4px;
  width: 60%;
  grid-area: 1 / 2 / 2 / 3;
  margin-top: 20px;
}

.skeleton-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}

.skeleton-category {
  border-radius: 20px;
  flex: 1 0 20%;
}
.skeleton-category:nth-child(2n+2) {
  flex: 1 0 27%;
}
.skeleton-category:nth-child(2n+3) {
  flex: 1 0 33%;
}

.skeleton-category-text {
  height: 20px;
  border-radius: 4px;
  width: 100%;
}
#media-container .skeleton-section:not(:last-child) {
    margin-bottom: 30px;

}
.skeleton-list {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.skeleton-media-item,
.skeleton-article-item {
  display: flex;
  gap: 15px;
  align-items: center;
}

.skeleton-media-item{
    flex: 1 0 50%;
    max-width: calc(50% - 15px / 2);
}
.skeleton-article-item {
    flex: 1 0 100%;
}


.skeleton-thumbnail {
  width: 80px;
  height: 60px;
  border-radius: 4px;
}

.skeleton-title {
  height: 20px;
  border-radius: 4px;
  width: 70%;
}

.skeleton-excerpt {
  height: 15px;
  border-radius: 4px;
  width: 90%;
  margin-top: 5px;
}

.loader {
  text-align: center;
  padding: 15px;
  display: none;
}

.skeleton-animated {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

[data-theme=dark] .skeleton-animated {
    background: linear-gradient(90deg, #2d3748 25%, #3d4a5c 50%, #2d3748 75%);
    background-size: 200% 100%;
}

@keyframes skeleton-loading {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Категории */
.categories-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-item {
  padding: 8px 15px;
  background: #f8f8f8;
  border: 1px solid #ddd;
  border-radius: 20px;
  cursor: pointer;
}

.category-item:hover {
  background: #e8e8e8;
}

/* Товары */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
}

.item {
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  transition: transform 0.2s;
}

.item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.item img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 10px;
}

.item h4 {
  font-size: 14px;
  margin: 8px 0;
}

.item .price {
  font-weight: bold;
  color: #d32f2f;
}

/* Медиа */
.media-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.media-item {
  display: flex;
  gap: 15px;
  align-items: center;
}

.media-item img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
}

.media-item h5 {
  font-size: 14px;
  margin: 0;
}

.article-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.article-item {
  padding: 10px;
  border: 1px solid #eee;
  border-radius: 8px;
}

.article-item h5 {
  font-size: 14px;
  margin: 0 0 5px 0;
}

.article-item p {
  font-size: 12px;
  color: #666;
  margin: 0;
}