.home-tabs__nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  margin-bottom: 24px;
  justify-content: flex-start;
  overflow-x: auto;
  padding: 4px 2px 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.home-tabs__nav::-webkit-scrollbar {
  display: none;
}

.home-tabs__nav-btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

.home-tabs__nav-btn--shop {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.18), rgba(212, 146, 10, 0.28));
  border-color: rgba(212, 146, 10, 0.35);
}

.shop-header {
  text-align: center;
}

.shop-empty {
  text-align: center;
  padding: 36px 24px;
}

.shop-empty__icon {
  font-size: 42px;
  margin-bottom: 12px;
}

.shop-empty__title {
  margin: 0 0 10px;
  font-size: 22px;
}

.shop-empty__text {
  color: var(--text-muted);
  margin: 0 0 20px;
  line-height: 1.55;
}

.shop-box {
  overflow: visible;
}

.shop-sidebar {
  max-width: 220px;
  min-width: 168px;
  flex-shrink: 0;
  overflow: visible;
  z-index: 2;
}

.shop-tabs {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  width: 100%;
}

.shop-tab {
  flex: 0 0 auto;
  width: 100% !important;
  max-width: 100%;
  padding: 12px 14px !important;
  border-radius: 12px !important;
  font-weight: 700;
  white-space: normal;
  text-align: center;
}

.shop-grid {
  width: 100%;
}

.shop-grid__empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  padding: 28px 16px;
}

.shop-card {
  overflow: hidden;
  min-height: 0 !important;
}

.shop-card__image {
  border-radius: calc(var(--radius-md) - 2px);
  background: linear-gradient(145deg, rgba(255, 224, 130, 0.12), rgba(255, 255, 255, 0.04));
}

.shop-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  padding-top: 4px;
}

.shop-card__name {
  font-size: 15px;
  line-height: 1.3;
  min-height: 2.6em;
}

.shop-card__price {
  font-size: 20px;
  font-weight: 800;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.shop-card__actions {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.shop-card__actions .donate__products-button {
  padding: 11px 8px;
  font-size: 13px;
  border-radius: 10px;
}

.last__box--scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}

.last-purchase {
  flex: 0 0 150px;
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--surface-border);
  background: var(--surface);
}

.last-purchase img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin: 0 auto 10px;
  display: block;
}

.last-purchase__name {
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 6px;
}

.last-purchase__user {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
  word-break: break-word;
}

@media (max-width: 900px) {
  .home-shop .donate__box {
    flex-direction: column;
    padding: 20px 16px;
    gap: 18px;
  }

  .shop-sidebar {
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
  }

  .shop-sidebar::before {
    display: none !important;
  }

  .shop-tabs {
    flex-direction: row;
    flex-wrap: wrap;
    overflow: visible;
    padding-bottom: 4px;
  }

  .shop-tab {
    width: auto !important;
    flex: 0 0 auto;
  }

  .shop-tabs::-webkit-scrollbar {
    display: none;
  }

  .shop-sidebar .donate__sidebar-title {
    text-align: left;
    font-size: 14px;
    margin-bottom: 12px;
    opacity: 0.75;
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }

  .home-shop .donate__products-carts.active,
  .donate__box .donate__products-carts.active {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  .home-shop .donate__products-carts.active .donate__products-item,
  .donate__products-carts.active .shop-card {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    max-width: none !important;
    width: 100% !important;
    min-height: 0 !important;
    padding: 12px !important;
  }

  .shop-card__image {
    height: 96px !important;
  }

  .shop-card__actions {
    grid-template-columns: 1fr;
  }

  .shop-card__actions .donate__products-buy {
    order: -1;
  }
}

@media (max-width: 640px) {
  .home-tabs__nav {
    flex-wrap: nowrap;
  }

  .home-tabs__nav-btn {
    width: auto;
    min-width: max-content;
    padding: 12px 18px;
    border-radius: 999px;
  }

  .hero-server-widget {
    border-radius: 16px;
    padding: 14px;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.12), rgba(255, 255, 255, 0.06));
  }

  .hero-server-widget__avatar {
    width: 58px;
    height: 58px;
    border-radius: 16px;
  }

  .home-shop .donate__products-carts.active,
  .donate__box .donate__products-carts.active {
    grid-template-columns: 1fr !important;
  }

  .shop-card {
    display: grid;
    grid-template-columns: 88px 1fr;
    grid-template-rows: auto auto;
    gap: 12px;
    align-items: center;
    text-align: left;
    padding: 14px !important;
  }

  .shop-card__image {
    grid-row: 1 / span 2;
    height: 88px !important;
    width: 88px;
  }

  .shop-card__image img {
    max-height: 72px;
  }

  .shop-card__body {
    padding-top: 0;
  }

  .shop-card__name {
    min-height: 0;
    margin: 0;
  }

  .shop-card__price {
    margin: 0;
  }

  .shop-card__actions {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
  }

  .hero-card {
    padding: 24px 18px;
  }

  .hero-card__media img {
    max-width: 220px;
  }
}

@media (max-width: 400px) {
  .shop-card__actions {
    grid-template-columns: 1fr;
  }
}

body.theme-dark .shop-empty,
body.theme-dark .last-purchase {
  background: rgba(255, 255, 255, 0.03);
}

body.theme-dark .hero-server-widget {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.08), rgba(20, 16, 10, 0.85));
}

body.theme-dark .shop-card__image {
  background: linear-gradient(145deg, rgba(255, 193, 7, 0.08), rgba(255, 255, 255, 0.02));
}
