/* YMM Fitment Filter — Garage & Wishlist
 * Matches the frontend filter's Slavens orange/dark palette.
 */

.ymm-garage {
    --ymm-primary: #e8600a;
    --ymm-primary-hover: #cc5309;
    --ymm-bg: #1a1a1a;
    --ymm-bg-row: #2a2a2a;
    --ymm-text: #ffffff;
    --ymm-text-muted: #a0a0a0;
    --ymm-border: #3a3a3a;
    --ymm-radius: 6px;

    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--ymm-bg);
    color: var(--ymm-text);
    border-radius: var(--ymm-radius);
    padding: 20px 24px;
    margin: 16px 0;
}

.ymm-garage__title {
    color: var(--ymm-primary);
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 16px;
}

.ymm-garage__empty {
    color: var(--ymm-text-muted);
}

/* Garage bike rows */
.ymm-garage__list,
.ymm-wishlist__items {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
}

.ymm-garage__bike,
.ymm-wishlist__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--ymm-bg-row);
    border: 1px solid var(--ymm-border);
    border-radius: var(--ymm-radius);
    padding: 12px 16px;
    margin-bottom: 8px;
}

.ymm-garage__bike-name {
    font-weight: 600;
    font-size: 15px;
}

.ymm-garage__bike-actions,
.ymm-wishlist__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.ymm-garage .button,
.ymm-garage button.button {
    background: var(--ymm-primary);
    border: none;
    color: #fff;
    border-radius: var(--ymm-radius);
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

.ymm-garage .button:hover {
    background: var(--ymm-primary-hover);
    color: #fff;
}

.ymm-garage__remove,
.ymm-wishlist__remove {
    background: transparent;
    border: 1px solid var(--ymm-border);
    color: var(--ymm-text-muted);
    border-radius: var(--ymm-radius);
    width: 30px;
    height: 30px;
    line-height: 1;
    font-size: 16px;
    cursor: pointer;
}

.ymm-garage__remove:hover,
.ymm-wishlist__remove:hover {
    border-color: #d63638;
    color: #d63638;
}

/* Add-a-bike form (cascade styles come from ymm-frontend.css) */
.ymm-garage__addform {
    margin: 0;
    padding: 16px 0 0;
    border-top: 1px solid var(--ymm-border);
}

.ymm-garage__addform h3 {
    color: var(--ymm-text);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 12px;
}

/* Wishlist items */
.ymm-wishlist__thumb img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: var(--ymm-radius);
    display: block;
}

.ymm-wishlist__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.ymm-wishlist__info a {
    color: var(--ymm-text);
    font-weight: 600;
    text-decoration: none;
}

.ymm-wishlist__info a:hover {
    color: var(--ymm-primary);
}

.ymm-wishlist__price {
    color: var(--ymm-text-muted);
    font-size: 13px;
}

/* Share box */
.ymm-wishlist__share {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 16px;
    border-top: 1px solid var(--ymm-border);
}

.ymm-wishlist__share label {
    color: var(--ymm-text-muted);
    font-size: 13px;
}

.ymm-wishlist__share input {
    flex: 1;
    min-width: 220px;
    background: var(--ymm-bg-row);
    border: 1px solid var(--ymm-border);
    color: var(--ymm-text);
    border-radius: var(--ymm-radius);
    padding: 6px 10px;
    font-size: 13px;
}

/* Product-page save button */
.ymm-wishlist-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1px solid #e8600a;
    color: #e8600a;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin: 8px 0;
    transition: background 0.15s, color 0.15s;
}

.ymm-wishlist-toggle:hover {
    background: rgba(232, 96, 10, 0.1);
}

.ymm-wishlist-toggle.is-saved {
    background: #e8600a;
    color: #fff;
}

a.ymm-wishlist-toggle--login {
    text-decoration: none;
}

a.ymm-wishlist-toggle--login:hover {
    color: #cc5309;
    border-color: #cc5309;
}

/* Login prompt on the garage page */
.ymm-garage__login-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ymm-garage__register {
    background: transparent !important;
    border: 1px solid var(--ymm-primary) !important;
    color: var(--ymm-primary) !important;
}

@media (max-width: 600px) {
    .ymm-garage__bike,
    .ymm-wishlist__item {
        flex-wrap: wrap;
    }
}
