/**
 * Ana sayfa — mobil “Yeni Eklenen” yatay kaydırma şeridi
 * (KomşuyaSor yeşil dilinde; referans uygulamadan bağımsız)
 */

@media (max-width: 900px) {
  body[data-page="home"] .home-new-section .section__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem;
    text-align: left;
    margin-bottom: 0.85rem;
  }

  body[data-page="home"] .home-new-section .section__header > div {
    flex: 1;
    min-width: 0;
  }

  body[data-page="home"] .home-new-section .section__header h2 {
    font-size: 1.15rem;
    margin: 0 0 0.2rem;
    text-align: left;
  }

  body[data-page="home"] .home-new-section .section__header p {
    margin: 0;
    font-size: 0.8rem;
    text-align: left;
  }

  body[data-page="home"] .home-new-section__all {
    flex-shrink: 0;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--color-primary, #16a34a);
    text-decoration: none;
    white-space: nowrap;
    padding: 0.35rem 0;
  }

  body[data-page="home"] .home-new-section__all:active {
    opacity: 0.75;
  }

  /* Yatay kaydırma — 2 sütun grid yerine */
  body[data-page="home"] #featured-products.products-grid,
  body[data-page="home"] #featured-products.home-new-rail,
  body[data-page="home"] #newest-products.products-grid,
  body[data-page="home"] #newest-products.home-new-rail,
  body[data-page="home"] #smart-picks-grid.products-grid,
  body[data-page="home"] #smart-picks-grid.home-new-rail {
    display: flex !important;
    flex-wrap: nowrap !important;
    grid-template-columns: none !important;
    gap: 0.75rem !important;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 1rem;
    padding: 0.15rem 1rem 0.85rem;
    margin-inline: -1rem;
    width: calc(100% + 2rem);
    max-width: none;
    scrollbar-width: none;
    touch-action: pan-x;
  }

  body[data-page="home"] #featured-products::-webkit-scrollbar,
  body[data-page="home"] #newest-products::-webkit-scrollbar,
  body[data-page="home"] #smart-picks-grid::-webkit-scrollbar {
    display: none;
    height: 0;
  }

  body[data-page="home"] #featured-products .product-card,
  body[data-page="home"] #newest-products .product-card,
  body[data-page="home"] #smart-picks-grid .product-card {
    flex: 0 0 min(72vw, 240px) !important;
    width: min(72vw, 240px) !important;
    max-width: min(72vw, 240px) !important;
    scroll-snap-align: start;
    margin: 0 !important;
  }

  body[data-page="home"] #featured-products .product-card__image,
  body[data-page="home"] #newest-products .product-card__image,
  body[data-page="home"] #smart-picks-grid .product-card__image {
    aspect-ratio: 4 / 3 !important;
    border-radius: 16px !important;
  }

  body[data-page="home"] #smart-picks-section .section__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem;
    text-align: left;
    margin-bottom: 0.85rem;
  }

  body[data-page="home"] #smart-picks-section .section__header h2 {
    font-size: 1.15rem;
    margin: 0.35rem 0 0.2rem;
    text-align: left;
  }

  body[data-page="home"] #smart-picks-section .smart-section__hint {
    margin: 0;
    font-size: 0.8rem;
    text-align: left;
  }

  body[data-page="home"] .home-new-section .home-new-section__cta {
    display: none;
  }
}

@media (min-width: 901px) {
  body[data-page="home"] .home-new-section__all {
    display: none;
  }
}
