#inventory-app {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.im-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.im-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.im-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.im-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.im-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.im-status {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #28a745;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.im-status.sold {
    background: #dc3545;
}

.im-card-body {
    padding: 15px;
}

.im-card-title {
    margin: 0 0 5px;
    font-size: 18px;
    font-weight: 600;
}

.im-card-trim {
    margin: 0 0 10px;
    color: #666;
    font-size: 14px;
}

.im-card-details {
    display: flex;
    font-size: 13px;
    color: #888;
    margin-bottom: 10px;
}

.im-separator {
    margin: 0 8px;
}

.im-card-price {
    font-size: 20px;
    font-weight: bold;
    color: #10CFC9; /* Astra primary color match */
    margin-bottom: 15px;
}

.im-btn-details {
    display: block;
    text-align: center;
    text-decoration: none;
    width: 100%;
    padding: 10px;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.im-btn-details:hover {
    background: #333;
    color: #fff;
}

/* Loader */
.im-loading {
    text-align: center;
    font-size: 18px;
    padding: 50px;
    color: #666;
}

.im-spinner {
    display: inline-block;
    animation: flutter 1s infinite alternate;
}

@keyframes flutter {
    0% { transform: scale(1); }
    100% { transform: scale(1.2) rotate(10deg); }
}
