/* ============================================================
   home-stores.css – Ana Sayfa Restoran Kartları (iOS-style horizontal scroll)
   ============================================================ */

.section--stores {
    background: linear-gradient(180deg, transparent 0%, rgba(104, 135, 69, .03) 100%);
}

/* ── Yatay Kaydırılabilir Satır ── */
.home-store-grid {
    display: flex;
    gap: 16px;
    margin-top: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    /* iOS momentum scroll */
    scroll-padding-inline-start: 16px;
    padding-bottom: 8px;
    /* scrollbar için boşluk */

    /* iOS/macOS scrollbar gizleme */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
}

.home-store-grid::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

/* Kart */
.home-store-card {
    flex: 0 0 220px;
    /* sabit genişlik, küçülmesin */
    scroll-snap-align: start;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, .05);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .06);
    transition: transform .25s ease, box-shadow .25s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.home-store-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(0, 0, 0, .1);
}

/* Görsel */
.home-store-card__img-wrap {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #e8e0d8, #d4cec6);
}

.home-store-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.home-store-card:hover .home-store-card__img-wrap img {
    transform: scale(1.06);
}

.home-store-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-primary-dark);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 99px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    z-index: 2;
    letter-spacing: 0.5px;
}

.home-store-card__no-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: rgba(0, 0, 0, .1);
}

/* Body */
.home-store-card__body {
    padding: 14px 16px 16px;
}

.home-store-card__name {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 4px;
    color: var(--color-secondary-dark);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-store-card__location {
    font-size: 12px;
    color: var(--color-muted);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Responsive ── */
@media (max-width: 640px) {
    .home-store-card {
        flex: 0 0 180px;
    }

    .home-store-card__body {
        padding: 10px 12px 12px;
    }

    .home-store-card__name {
        font-size: 14px;
    }

    .home-store-card__location {
        font-size: 11px;
    }
}

/* ── Carousel Arrows ── */
.home-store-grid-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    font-size: 18px;
    color: #333;
    transition: all 0.2s ease;
    opacity: 0; 
    /* Show on hover of wrapper (optional) or always visible? 
       User said "yarı transparent ok tuşları ekle". 
       Let's make them always visible but semi-transparent, and more opaque on hover.
    */
    opacity: 0.6;
}

.scroll-arrow:hover {
    background-color: #fff;
    opacity: 1;
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    transform: translateY(-50%) scale(1.1);
}

.scroll-arrow--left {
    left: -20px;
}

.scroll-arrow--right {
    right: -20px;
}

/* Hide arrows on touch devices where swipe is natural, to avoid clutter */
@media (hover: none) and (pointer: coarse) {
    .scroll-arrow {
        display: none;
    }
}

/* Adjust wrapper on small screens if arrows need space */
@media (max-width: 768px) {
    .scroll-arrow--left {
        left: 0;
    }
    .scroll-arrow--right {
        right: 0;
    }
}