/* =========================
   🌟 Stores Page Layout
========================= */

.stores-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 16px;
}

.stores-container h2 {
    margin-bottom: 18px;
    font-size: 1.6rem;
    font-weight: 700;
}

/* =========================
   🧱 Stores Grid
========================= */

.stores-grid {
    display: grid;
    width: 100%;
    gap: 16px;
}
.stores-grid {
    justify-content: center;
}

/* =========================
   🏬 Store Card
========================= */

.store-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    min-width: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.store-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

/* =========================
   🖼️ Store Image
========================= */

.store-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 10px;
}

/* =========================
   📄 Store Info
========================= */

.store-card h3 {
    margin: 0 0 6px;
    font-size: 1.1rem;
    font-weight: 600;
}

.store-card p {
    margin: 4px 0;
    font-size: 0.9rem;
    color: #555;
}

/* =========================
   🔔 Status Badge
========================= */

.status-badge {
    display: inline-block;
    margin: 8px 0;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-badge.open {
    color: #16a34a;
}

.status-badge.closed {
    color: #dc2626;
}

/* =========================
   🔘 Buttons
========================= */

.store-card a {
    display: inline-block;
    margin-top: auto;
    padding: 8px 14px;
    background: #111827;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
}

.store-card a:hover {
    background: #000000;
}

.btn-disabled {
    display: inline-block;
    margin-top: auto;
    padding: 8px 14px;
    background: #9ca3af;
    color: #ffffff;
    border-radius: 8px;
    font-size: 0.9rem;
    text-align: center;
    cursor: not-allowed;
    pointer-events: none;
}

/* =========================
   📱 Mobile View (1 per row)
========================= */

@media (max-width: 640px) {
    .stores-grid {
        grid-template-columns: 1fr;
    }

    .store-card {
        flex-direction: row;
        gap: 12px;
        align-items: center;
    }

    .store-card {
    max-width: 100%;
    overflow: hidden;
}

    .store-card img {
        width: 110px;
        height: 90px;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .store-card h3 {
        font-size: 1rem;
    }

    .store-card p {
        font-size: 0.85rem;
    }

    .store-card a,
    .btn-disabled {
        margin-top: 6px;
        padding: 6px 10px;
        font-size: 0.85rem;
    }
}

/* =========================
   💤 Empty State
========================= */

.empty-state {
    text-align: center;
    margin-top: 60px;
    padding: 0 20px;
}

.empty-state span {
    font-size: 48px;
}

.empty-state h2 {
    margin-top: 12px;
    font-size: 1.4rem;
}

.empty-state p {
    color: #555;
}

@media (min-width: 1280px) {
    .stores-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* ===== Laptop: 4 per row ===== */
@media (min-width: 1024px) and (max-width: 1279px) {
    .stores-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ===== Tablet: 2 per row ===== */
@media (min-width: 641px) and (max-width: 1023px) {
    .stores-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== Mobile: 1 per row ===== */
@media (max-width: 640px) {
    .stores-grid {
        grid-template-columns: 1fr;
    }
}
