/* Discover pages: shop cards + category side menu.
   Cards come from DiscoverHelper::shopCardHtml(); the parent-category rows from
   the front-end/discover/*.blade.php side menu. Everything is scoped to
   .pam-shop-card / .pam-cat-parent so no other page is affected. */

/* ---- shop card: soft edging around the whole card ---- */
.item-home .pam-shop-card {
    display: block;
    background: #fff;
    border: 1px solid #dde5da;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.item-home .pam-shop-card:hover {
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* the card itself now provides the rounded corners */
.pam-shop-card .listing-item {
    border-radius: 0;
}

/* ---- footer: city on one side, Visit Store button on the other ---- */
.pam-shop-card .listing-footer.pam-shop-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 0;
    padding: 12px;
    background: #fff;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    line-height: 1.3;
}

.pam-shop-card-city {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    color: #4a4a4a;
    font-size: 14px;
}

.pam-shop-card-city i {
    flex: 0 0 auto;
    color: #2d2d2d;
}

.pam-shop-card-city span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pam-visit-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 15px;
    border-radius: 999px;
    background: #219c02;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: none;
    box-shadow: 0 2px 6px rgba(33, 156, 2, 0.25);
    transition: background 0.2s ease;
}

.pam-shop-card:hover .pam-visit-btn {
    background: #1b8202;
}

@media (max-width: 480px) {
    .pam-shop-card .listing-footer.pam-shop-card-footer {
        padding: 10px 12px;
    }

    .pam-visit-btn {
        padding: 7px 14px;
        font-size: 12px;
    }
}

/* ---- category side menu: parent ("placeholder") categories ---- */
.list-group.list-group-root .list-group-item.pam-cat-parent {
    background: #e5f2e1;
    border-left: 4px solid #219c02;
    color: #1f2a1c;
    font-weight: 500;
    line-height: 1.6;
    padding: 12px 15px;
}

.list-group.list-group-root[dir="rtl"] .list-group-item.pam-cat-parent {
    border-left: 0;
    border-right: 4px solid #219c02;
}

/* sub-categories sit slightly indented under their parent (mirrored for Urdu) */
.list-group.list-group-root[dir="rtl"] > .list-group > .list-group-item {
    padding-left: 15px;
    padding-right: 30px;
}
