/* ── Budget Finder ── */
#mop-budget-finder {
    width: 100%;
}

/* Form */
.mop-bf-form {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 24px 28px;
    margin-bottom: 20px;
}

.mop-bf-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.mop-bf-row:last-child { margin-bottom: 0; }

.mop-bf-label {
    font-weight: 600;
    font-size: 14px;
    color: #1a1a2e;
    min-width: 140px;
    white-space: nowrap;
}

.mop-bf-qty-select {
    border: 2px solid #1e3a8a;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 14px;
    width: 79%;
    outline: none;
    cursor: pointer;
}
@media (max-width: 768px) {
    .mop-bf-qty-select { width: 100%; }
}
.mop-bf-qty-select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

/* Budget radio options */
.mop-bf-budget-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.mop-bf-budget-opt {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: border-color 0.15s, background 0.15s;
}
.mop-bf-budget-opt:hover {
    border-color: #2563eb;
}
.mop-bf-budget-opt input[type="radio"] { accent-color: #1e3a8a; }
.mop-bf-budget-opt:has(input:checked) {
    border-color: #1e3a8a;
    background: #eff6ff;
}

/* Status messages */
.mop-bf-loading {
    padding: 14px 18px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    color: #1e40af;
    font-size: 14px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mop-bf-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #bfdbfe;
    border-top-color: #1e40af;
    border-radius: 50%;
    animation: mop-spin 0.7s linear infinite;
    flex-shrink: 0;
}
@keyframes mop-spin { to { transform: rotate(360deg); } }

.mop-bf-msg {
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 16px;
}
.mop-bf-msg--success {
    background: #f0fdf4;
    border: 1px solid #86efac;
    color: #166534;
}
.mop-bf-msg--info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}
.mop-bf-msg--warn {
    background: #fff7ed;
    border: 1px solid #fdba74;
    color: #c2410c;
}

/* Category block */
.mop-bf-cat-group,
.mop-bf-cat-block {
    margin-bottom: 40px;
}

.mop-bf-cat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.mop-bf-cat-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
}

.mop-bf-see-more {
    font-size: 13px;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
    white-space: nowrap;
}
.mop-bf-see-more:hover { text-decoration: underline; }

/* Product grid */
.mop-bf-products {
    list-style: none;
    margin: 0 0 0 0 !important;
    padding: 0 !important;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}
@media (max-width: 1200px) { .mop-bf-products { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 900px)  { .mop-bf-products { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px)  { .mop-bf-products { grid-template-columns: repeat(2, 1fr); } }

/* Product card */
.mop-bf-product-card {
    display: block;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}
.mop-bf-product-card:hover {
    box-shadow: 0 4px 18px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.mop-bf-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}
.mop-bf-card-link:hover { text-decoration: none; color: inherit; }

.mop-bf-card-img {
    aspect-ratio: 1;
    overflow: hidden;
    background: #f8f8f8;
}
.mop-bf-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}
.mop-bf-product-card:hover .mop-bf-card-img img {
    transform: scale(1.04);
}

.mop-bf-card-info {
    padding: 8px 10px 12px;
}

.mop-bf-card-title {
    font-size: 12px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.4;
    margin: 0 0 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mop-bf-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}

/* Shared tag pill — used in budget cards and WC product grids */
.mop-grid-tag {
    background: #f4f4f4;
    font-size: 10px;
    padding: 5px;
    border-radius: 5px;
    color: black;
    margin-right: 5px;
    display: inline-block;
    line-height: 1;
}
