* {
            font-family: 'Poppins', sans-serif;
        }
/* Grid container fixes */
#shops {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
    align-items: start; /* Prevents uneven stretching */
}

@media (min-width: 640px) {
    #shops {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    #shops {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1280px) {
    #shops {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Card consistency */
.store-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #f3f4f6;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s, transform 0.2s;
}

.store-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

/* Image container — fixed aspect ratio */
.store-card > img:first-child,
.store-card > a > img:first-child {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

/* Content area grows to fill */
.store-card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1rem;
}

/* Title clamping */
.store-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em; /* Reserve space for 2 lines */
}

/* Description clamping */
.store-card-description {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1rem;
    flex: 1; /* Pushes footer to bottom */
}

/* Footer always at bottom */
.store-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid #f3f4f6;
}

.store-card-contact {
    font-size: 0.75rem;
    color: #9ca3af;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 50%;
}

.store-card-btn {
    flex-shrink: 0;
    padding: 0.5rem 1rem;
    background: #6d28d9;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.15s;
}

.store-card-btn:hover {
    background: #5b21b6;
}

/* Category badge sizing */
.store-category-badge {
    flex-shrink: 0;
    font-size: 0.625rem;
    font-weight: 600;
    padding: 0.125rem 0.5rem;
    background: #f3f4f6;
    color: #6b7280;
    border-radius: 999px;
    white-space: nowrap;
}

/* Seller line */
.store-card-seller {
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

/* Mobile-specific tweaks */
@media (max-width: 639px) {
    .store-card-content {
        padding: 0.875rem;
    }
    
    .store-card-title {
        font-size: 0.9375rem;
    }
    
    .store-card-description {
        -webkit-line-clamp: 2;
    }
    
    .store-card-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .store-card-contact {
        max-width: 100%;
        text-align: center;
    }
    
    .store-card-btn {
        width: 100%;
        text-align: center;
    }
}
        .store-card-btn:hover {
            background-color: #333;
        }
        
        /* Search bar styling */
        .search-container {
            position: relative;
            max-width: 600px;
            margin: 0 auto 30px;
        }
        
        .search-icon {
            position: absolute;
            left: 16px;
            top: 50%;
            transform: translateY(-50%);
            color: #9ca3af;
        }
        
        .search-input {
            width: 100%;
            padding: 14px 20px 14px 50px;
            border-radius: 10px;
            border: 1px solid #e5e7eb;
            font-size: 1rem;
            background-color: #f9fafb;
            transition: all 0.3s;
        }
        
        .search-input:focus {
            outline: none;
            border-color: #1a1a1a;
            background-color: white;
            box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.1);
        }
        
        /* Filter buttons */
        .filter-buttons {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: 30px;
        }
        
        .filter-btn {
            padding: 8px 16px;
            border-radius: 20px;
            background-color: #f3f4f6;
            color: #4b5563;
            font-weight: 500;
            border: 1px solid #e5e7eb;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .filter-btn:hover, .filter-btn.active {
            background-color: #1a1a1a;
            color: white;
            border-color: #1a1a1a;
        }
        
        /* Mobile menu */
        .mobile-menu {
            display: none;
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background-color: white;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            z-index: 100;
        }
        
        .mobile-menu.active {
            display: block;
        }
        
        @media (max-width: 768px) {
            .store-card img {
                height: 150px;
            }
            
            .store-card-content {
                padding: 15px;
            }
            
            .store-card-title {
                font-size: 1.1rem;
            }
        }
        
        @media (max-width: 640px) {
            .filter-buttons {
                justify-content: flex-start;
                overflow-x: auto;
                padding-bottom: 10px;
            }
        }

        h1, h2, h3, h4, .serif-font {
            font-family: 'Playfair Display', serif;
            font-weight: 500;
            letter-spacing: -0.02em;
        }
        
        /* ── Search & Filter Bar ─────────────────────────── */
        .store-filter-bar {
            display: flex;
            align-items: center;
            gap: 12px;
            background: #ffffff;
            border: 1px solid #e5e7eb;
            border-radius: 14px;
            padding: 10px 12px;
            box-shadow: 0 1px 2px rgba(0,0,0,0.03);
            flex-wrap: wrap;
        }

        .store-search-wrap {
            position: relative;
            flex: 1 1 220px;
            min-width: 180px;
        }

        .store-search-icon {
            position: absolute;
            left: 14px;
            top: 50%;
            transform: translateY(-50%);
            color: #9ca3af;
            font-size: 14px;
        }

        .store-search-input {
            width: 100%;
            padding: 11px 14px 11px 38px;
            border: 1px solid #e5e7eb;
            border-radius: 10px;
            font-size: 14px;
            color: #111827;
            background: #f9fafb;
            outline: none;
            transition: border-color 0.15s, background 0.15s;
        }

        .store-search-input:focus {
            border-color: #7c3aed;
            background: #ffffff;
        }

        .store-filter-select-wrap {
            position: relative;
            flex: 0 1 190px;
            min-width: 150px;
        }

        .store-filter-icon {
            position: absolute;
            left: 14px;
            top: 50%;
            transform: translateY(-50%);
            color: #9ca3af;
            font-size: 13px;
            pointer-events: none;
        }

        .store-filter-chevron {
            position: absolute;
            right: 14px;
            top: 50%;
            transform: translateY(-50%);
            color: #9ca3af;
            font-size: 11px;
            pointer-events: none;
        }

        .store-filter-select {
            width: 100%;
            padding: 11px 32px 11px 38px;
            border: 1px solid #e5e7eb;
            border-radius: 10px;
            font-size: 14px;
            color: #374151;
            background: #f9fafb;
            outline: none;
            appearance: none;
            -webkit-appearance: none;
            cursor: pointer;
            transition: border-color 0.15s, background 0.15s;
        }

        .store-filter-select:focus {
            border-color: #7c3aed;
            background: #ffffff;
        }

        .store-filter-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 11px 22px;
            background: #6d28d9;
            color: #ffffff;
            font-size: 14px;
            font-weight: 600;
            border: none;
            border-radius: 10px;
            cursor: pointer;
            white-space: nowrap;
            transition: background 0.15s;
            flex-shrink: 0;
        }

        .store-filter-btn:hover {
            background: #5b21b6;
        }

        @media (max-width: 768px) {
            .store-filter-bar {
                flex-direction: column;
                align-items: stretch;
            }
            .store-search-wrap,
            .store-filter-select-wrap,
            .store-filter-btn {
                flex: 1 1 auto;
                width: 100%;
            }
        }
        .store-category-badge{
            display:inline-flex;
            align-items:center;
            padding:4px 10px;
            border-radius:999px;
            background:linear-gradient(
                135deg,
                rgba(99,102,241,.12),
                rgba(168,85,247,.12)
            );
            border:1px solid rgba(99,102,241,.15);
            color:#6366f1;
            font-size:11px;
            font-weight:600;
            letter-spacing:.5px;
            text-transform:uppercase;
            white-space:nowrap;
        }

        .store-card-title{
            font-size:1.1rem;
            font-weight:700;
            color:#0f172a;
            margin:0;
        }

        /* ── Featured Stores Carousel ───────────────────── */
.featured-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.featured-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: #111827;
}

.featured-title-icon {
    color: #f59e0b;
    font-size: 18px;
}

.featured-nav {
    display: flex;
    gap: 8px;
}

.featured-nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #4b5563;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
}

.featured-nav-btn:hover {
    background: #6d28d9;
    border-color: #6d28d9;
    color: #ffffff;
}

.featured-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.featured-nav-btn:disabled:hover {
    background: #ffffff;
    border-color: #e5e7eb;
    color: #4b5563;
}

.featured-carousel-wrap {
    position: relative;
}

.featured-carousel {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 8px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.featured-carousel::-webkit-scrollbar {
    display: none;
}

/* ── Featured Card ─────────────────────────────── */
.featured-card {
    flex: 0 0 calc(25% - 18px);
    min-width: 260px;
    scroll-snap-align: start;
    background: #ffffff;
    border: 1px solid #f3f4f6;
    border-radius: 16px;
    overflow: visible;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative; /* Anchor for absolute logo */
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Image area — logo is NO LONGER inside here */
.featured-card-image-wrap {
    position: relative;
    width: 100%;
    height: 160px;
    background: #f3f4f6;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}

.featured-card-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Featured badge (top right) */
.featured-card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    background: rgba(251, 191, 36, 0.95);
    color: #92400e;
    backdrop-filter: blur(4px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.featured-card-badge i {
    font-size: 9px;
}

/* Circular logo — positioned relative to the CARD, not the image */
.featured-card-logo-wrap {
    position: absolute;
    top: 124px; /* 160px image - 36px = sits 36px on image, 28px into white */
    left: 16px;
    display: flex;
    align-items: flex-end;
    z-index: 10;
}

.featured-card-logo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 3px solid #ffffff;
    background: #ffffff;
    object-fit: cover;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14);
    
    /* Force the browser to render this on its own crisp layer */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
    will-change: transform;
}

/* Verified checkmark */
.verified-badge {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #7c3aed;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    margin-left: -14px;
    margin-bottom: 2px;
    border: 2px solid #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.verified-badge i {
    font-size: 8px;
}

/* Card body — extra breathing room for the bigger logo */
.featured-card-body {
    padding: 48px 16px 16px;
    position: relative;
}

.featured-card-name {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.featured-card-category {
    font-size: 12.5px;
    color: #9ca3af;
    margin-bottom: 3px;
}

.featured-card-seller {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 10px;
}



/* Plan badge */
.featured-card-plan {
    margin-bottom: 14px;
}

.featured-plan-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 600;
}

.featured-plan-badge.premium {
    color: #7c3aed;
}

.featured-plan-badge.organizational {
    color: #d97706;
}

.featured-plan-badge.free {
    color: #6b7280;
}

.featured-plan-badge i {
    font-size: 10px;
}

/* Visit Store button */
.featured-card-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px 0;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #6d28d9;
    background: transparent;
    transition: all 0.2s ease;
    cursor: pointer;
}

.featured-card:hover .featured-card-btn {
    background: #6d28d9;
    border-color: #6d28d9;
    color: #ffffff;
}

/* Responsive: match main grid breakpoints */
@media (max-width: 1279px) {
    .featured-card {
        flex: 0 0 calc(33.333% - 16px); /* 3 per row */
    }
}

@media (max-width: 1023px) {
    .featured-card {
        flex: 0 0 calc(50% - 12px); /* 2 per row */
    }
}

@media (max-width: 639px) {
    .featured-card {
        flex: 0 0 85%; /* 1 per row, peek next */
        min-width: 260px;
    }
}