.pac-linked-products { padding: 8px 0 16px; }
.pac-linked-products .pac-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  justify-items: center;
}
.pac-linked-products .pac-title {
  text-align: center;
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.4;
  margin: 0 0 14px 0;
  padding: 10px 14px;
  background: linear-gradient(180deg, #f9fbfc, #f3f5f7);
  border: 1px solid #e8eaef;
  border-radius: 12px;
  color: #222;
  box-shadow: 0 1px 0 rgba(0,0,0,.03) inset;
}
.pac-linked-products .pac-item {
  display: block;
  background: #fff;
  border: 1px solid #e9eef3;
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
  max-width: 220px;
  width: 100%;
}
.pac-linked-products .pac-item:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,.08); }
.pac-linked-products .pac-thumb { aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 10px; background: #f8fafb; margin-bottom: 8px; }
.pac-linked-products .pac-thumb img { width: 100%; height: auto; object-fit: cover; display: block; }
.pac-linked-products .pac-name { font-size: .98rem; line-height: 1.35; min-height: 2.5em; margin-bottom: 6px; color: #111; }
.pac-linked-products .pac-price { font-weight: 600; font-size: 1rem; color: #2a2a2a; }

/* Mobile: 3'lü yatay scroll ve 90x90 görsel */
@media (max-width: 576px) {
  .pac-linked-products .pac-grid {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
  }
  .pac-linked-products .pac-item {
    flex: 0 0 calc(33.333% - 8px);
    max-width: none;
    scroll-snap-align: start;
    box-sizing: border-box;
    width: calc(33.333% - 8px);
    padding: 10px;
  }
  .pac-linked-products .pac-thumb {
    width: 90px;
    height: 90px;
    margin: 0 auto 8px;
    border-radius: 8px;
    background: #f8fafb;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .pac-linked-products .pac-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .pac-linked-products .pac-name {
    font-size: .9rem;
    min-height: unset;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
  }
}

/* Desktop: tek satır yatay scroll */
@media (min-width: 992px) {
  .pac-linked-products .pac-grid {
    display: flex;                 /* genişliği konteynıra bağla */
    width: 100%;
    flex-wrap: nowrap;             /* tek satırda tut */
    overflow-x: auto;              /* yatay kaydırma */
    gap: 16px;
    padding-bottom: 8px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }
  .pac-linked-products .pac-item {
    flex: 0 0 calc((100% - 48px) / 4); /* 4 kart görünür: 3*16px gap = 48px */
    max-width: none;
    box-sizing: border-box;        /* padding/border genişliğe dahil olsun */
    scroll-snap-align: start;
  }
  /* Scrollbar styling (webkit-based) */
  .pac-linked-products .pac-grid::-webkit-scrollbar { height: 8px; }
  .pac-linked-products .pac-grid::-webkit-scrollbar-thumb { background: #cfd8e3; border-radius: 4px; }
  .pac-linked-products .pac-grid::-webkit-scrollbar-track { background: #f3f4f6; }
}