/* ═══════════════════════════════════════════
   Mall Directory — Shared Card & Grid Styles
   ═══════════════════════════════════════════ */

:root {
    --mall-accent: #e91e8a;
    --mall-text: #333;
    --mall-text-light: #777;
    --mall-bg: #fff;
    --mall-border: #eee;
    --mall-radius: 10px;
    --mall-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ─── Grid ─── */
.mall-shops-grid {
    display: grid;
    gap: 28px;
    margin: 20px 0;
}
.mall-cols-2 { grid-template-columns: repeat(2, 1fr); }
.mall-cols-3 { grid-template-columns: repeat(3, 1fr); }
.mall-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
    .mall-cols-3, .mall-cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .mall-shops-grid { grid-template-columns: 1fr !important; }
}

/* ─── Shop Card ─── */
.mall-shop-card {
    background: var(--mall-bg);
    border-radius: var(--mall-radius);
    overflow: hidden;
    box-shadow: var(--mall-shadow);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    border: 1px solid var(--mall-border);
}
.mall-shop-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* Image */
.mall-shop-card__image-link {
    text-decoration: none;
    display: block;
}
.mall-shop-card__image {
    position: relative;
    width: 100%;
    padding-top: 62%;
    overflow: hidden;
    background: #f0f0f0;
}
.mall-shop-card__image img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.mall-shop-card:hover .mall-shop-card__image img {
    transform: scale(1.03);
}
.mall-shop-card__placeholder {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 14px;
}

/* Badge */
.mall-shop-card__badge {
    position: absolute;
    top: 12px; left: 12px;
    background: var(--mall-accent);
    color: #fff;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    z-index: 2;
}

/* Wishlist */
.mall-wishlist-btn {
    position: absolute;
    top: 12px; right: 12px;
    background: rgba(255, 255, 255, 0.85);
    border: none;
    border-radius: 50%;
    width: 38px; height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #999;
    transition: all 0.2s ease;
    z-index: 2;
    padding: 0;
}
.mall-wishlist-btn:hover { background: #fff; color: var(--mall-accent); }
.mall-wishlist-btn.active { color: var(--mall-accent); }
.mall-wishlist-btn.active svg { fill: var(--mall-accent); }

/* Content */
.mall-shop-card__content {
    padding: 16px 18px 20px;
}
.mall-shop-card__title {
    margin: 0 0 4px;
    font-size: 17px;
    font-weight: 700;
    color: var(--mall-text);
    display: flex;
    align-items: center;
    gap: 6px;
}
.mall-shop-card__title a { color: inherit; text-decoration: none; }
.mall-shop-card__title a:hover { color: var(--mall-accent); }
.mall-shop-card__verified {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px; height: 20px;
    background: #ff9800;
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}
.mall-shop-card__location {
    margin: 0 0 10px;
    font-size: 14px;
    color: var(--mall-text-light);
}

/* Tags */
.mall-shop-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 12px;
    border-top: 1px solid var(--mall-border);
}
.mall-shop-card__tag {
    font-size: 13px;
    color: var(--mall-text-light);
    text-decoration: none;
    transition: color 0.2s ease;
}
.mall-shop-card__tag:hover { color: var(--mall-accent); }

/* ─── Category Section (for [mall_shops_by_category]) ─── */
.mall-category-section {
    margin-bottom: 50px;
}
.mall-category-section__title {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 6px;
    color: var(--mall-text);
}
.mall-category-section__divider {
    border: none;
    border-top: 2px solid var(--mall-text);
    margin: 0 0 24px;
}

/* ─── Pagination ─── */
.mall-pagination {
    text-align: center;
    margin: 30px 0;
}
.mall-pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 3px;
    border: 1px solid var(--mall-border);
    border-radius: 6px;
    text-decoration: none;
    color: var(--mall-text);
    font-size: 14px;
    transition: all 0.2s ease;
}
.mall-pagination .page-numbers.current,
.mall-pagination .page-numbers:hover {
    background: var(--mall-accent);
    color: #fff;
    border-color: var(--mall-accent);
}

/* ─── No Results ─── */
.mall-no-results {
    text-align: center;
    padding: 40px;
    color: var(--mall-text-light);
}
