/* 1. THE GRID */
.vendor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 0;
    list-style: none;
    width: 100%;
    margin-left: 0.25rem;
}

/* 2. THE CARD STRUCTURE */
.vendor-card {
    background-color: light-dark(#ffffff, #000000);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 4px 8px 20px light-dark(rgba(0, 0, 0, 0.15), rgba(255,255,255,0.35))
}

/* Subtle lift effect on hover to indicate interactivity */
.vendor-card:hover {
    transform: translateY(-4px);
    /*box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);*/
    box-shadow: none;
    border: 1px solid #2266f0;
}

/* 3. HERO IMAGE */
.vendor-hero {
    width: 100%;
    height: 220px; /* Slightly shorter than artist images to emphasize the tagline */
    border-bottom: 1px solid #f1f5f9;
}

.vendor-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 4. VENDOR DETAILS */
.vendor-info {
    padding: 1.5rem 1.5rem 0.5rem 1.5rem;
    flex-grow: 1; /* Pushes the footer to the bottom */
}

.vendor-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.35rem;
    color: light-dark(#0f172a, #f0e9d6);
}

.vendor-tagline {
    margin: 0;
    color: light-dark(#475569, #b0b7c3);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* 5. FOOTER & BUTTONS */
.vendor-actions {
    position: relative;
    max-height: max(80px, 6.5rem);
    min-height: max(80px, 6.5rem);
    width: 97.5%;
    padding: 1.5rem;
    padding-left: 0.3rem;
    display: flex;
    flex-wrap: wrap; /* Allows buttons to stack neatly if there are too many for one row */
    gap: 0.75rem;
    margin-top: auto;
    flex-direction: row;
}

.btn {
    display: inline-block;
    flex: 1; /* Buttons share the width evenly */
    text-align: center;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background-color 0.2s ease;
    min-width: 100px; /* Prevents buttons from getting too squished */
}

/* Specific button branding */
.btn-primary {
    background-color: #2563eb;
    color: #ffffff;
}
.btn-primary:hover { background-color: #1d4ed8; }

.btn-contact {
    background-color: #f16521; /* Classic orange */
    color: #ffffff;
}
.btn-contact:hover { background-color: #d1561c; }